Mercurial > hg > sv-dependency-builds
comparison src/portaudio_20140130/configure @ 124:e3d5853d5918
Current stable PortAudio source
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 18 Oct 2016 13:11:05 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
123:0cef3a1bd1ae | 124:e3d5853d5918 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.69. | |
4 # | |
5 # | |
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 # | |
8 # | |
9 # This configure script is free software; the Free Software Foundation | |
10 # gives unlimited permission to copy, distribute and modify it. | |
11 ## -------------------- ## | |
12 ## M4sh Initialization. ## | |
13 ## -------------------- ## | |
14 | |
15 # Be more Bourne compatible | |
16 DUALCASE=1; export DUALCASE # for MKS sh | |
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 emulate sh | |
19 NULLCMD=: | |
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 # is contrary to our usage. Disable this feature. | |
22 alias -g '${1+"$@"}'='"$@"' | |
23 setopt NO_GLOB_SUBST | |
24 else | |
25 case `(set -o) 2>/dev/null` in #( | |
26 *posix*) : | |
27 set -o posix ;; #( | |
28 *) : | |
29 ;; | |
30 esac | |
31 fi | |
32 | |
33 | |
34 as_nl=' | |
35 ' | |
36 export as_nl | |
37 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 # but without wasting forks for bash or zsh. | |
43 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 as_echo='print -r --' | |
46 as_echo_n='print -rn --' | |
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 as_echo='printf %s\n' | |
49 as_echo_n='printf %s' | |
50 else | |
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 as_echo_n='/usr/ucb/echo -n' | |
54 else | |
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 as_echo_n_body='eval | |
57 arg=$1; | |
58 case $arg in #( | |
59 *"$as_nl"*) | |
60 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 esac; | |
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 ' | |
65 export as_echo_n_body | |
66 as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 fi | |
68 export as_echo_body | |
69 as_echo='sh -c $as_echo_body as_echo' | |
70 fi | |
71 | |
72 # The user is always right. | |
73 if test "${PATH_SEPARATOR+set}" != set; then | |
74 PATH_SEPARATOR=: | |
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 PATH_SEPARATOR=';' | |
78 } | |
79 fi | |
80 | |
81 | |
82 # IFS | |
83 # We need space, tab and new line, in precisely that order. Quoting is | |
84 # there to prevent editors from complaining about space-tab. | |
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 # splitting by setting IFS to empty value.) | |
87 IFS=" "" $as_nl" | |
88 | |
89 # Find who we are. Look in the path if we contain no directory separator. | |
90 as_myself= | |
91 case $0 in #(( | |
92 *[\\/]* ) as_myself=$0 ;; | |
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 for as_dir in $PATH | |
95 do | |
96 IFS=$as_save_IFS | |
97 test -z "$as_dir" && as_dir=. | |
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 done | |
100 IFS=$as_save_IFS | |
101 | |
102 ;; | |
103 esac | |
104 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 # in which case we are not to be found in the path. | |
106 if test "x$as_myself" = x; then | |
107 as_myself=$0 | |
108 fi | |
109 if test ! -f "$as_myself"; then | |
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 exit 1 | |
112 fi | |
113 | |
114 # Unset variables that we do not need and which cause bugs (e.g. in | |
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 # suppresses any "Segmentation fault" message there. '((' could | |
117 # trigger a bug in pdksh 5.2.14. | |
118 for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 do eval test x\${$as_var+set} = xset \ | |
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 done | |
122 PS1='$ ' | |
123 PS2='> ' | |
124 PS4='+ ' | |
125 | |
126 # NLS nuisances. | |
127 LC_ALL=C | |
128 export LC_ALL | |
129 LANGUAGE=C | |
130 export LANGUAGE | |
131 | |
132 # CDPATH. | |
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | |
135 # Use a proper internal environment variable to ensure we don't fall | |
136 # into an infinite loop, continuously re-executing ourselves. | |
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 _as_can_reexec=no; export _as_can_reexec; | |
139 # We cannot yet assume a decent shell, so we have to provide a | |
140 # neutralization value for shells without unset; and this also | |
141 # works around shells that cannot unset nonexistent variables. | |
142 # Preserve -v and -x to the replacement shell. | |
143 BASH_ENV=/dev/null | |
144 ENV=/dev/null | |
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 case $- in # (((( | |
147 *v*x* | *x*v* ) as_opts=-vx ;; | |
148 *v* ) as_opts=-v ;; | |
149 *x* ) as_opts=-x ;; | |
150 * ) as_opts= ;; | |
151 esac | |
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 # Admittedly, this is quite paranoid, since all the known shells bail | |
154 # out after a failed `exec'. | |
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 as_fn_exit 255 | |
157 fi | |
158 # We don't want this to propagate to other subprocesses. | |
159 { _as_can_reexec=; unset _as_can_reexec;} | |
160 if test "x$CONFIG_SHELL" = x; then | |
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 emulate sh | |
163 NULLCMD=: | |
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 # is contrary to our usage. Disable this feature. | |
166 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 setopt NO_GLOB_SUBST | |
168 else | |
169 case \`(set -o) 2>/dev/null\` in #( | |
170 *posix*) : | |
171 set -o posix ;; #( | |
172 *) : | |
173 ;; | |
174 esac | |
175 fi | |
176 " | |
177 as_required="as_fn_return () { (exit \$1); } | |
178 as_fn_success () { as_fn_return 0; } | |
179 as_fn_failure () { as_fn_return 1; } | |
180 as_fn_ret_success () { return 0; } | |
181 as_fn_ret_failure () { return 1; } | |
182 | |
183 exitcode=0 | |
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | |
190 else | |
191 exitcode=1; echo positional parameters were not saved. | |
192 fi | |
193 test x\$exitcode = x0 || exit 1 | |
194 test -x / || exit 1" | |
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | |
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 PATH=/empty FPATH=/empty; export PATH FPATH | |
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
207 test \$(( 1 + 1 )) = 2 || exit 1" | |
208 if (eval "$as_required") 2>/dev/null; then : | |
209 as_have_required=yes | |
210 else | |
211 as_have_required=no | |
212 fi | |
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | |
215 else | |
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 as_found=false | |
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
219 do | |
220 IFS=$as_save_IFS | |
221 test -z "$as_dir" && as_dir=. | |
222 as_found=: | |
223 case $as_dir in #( | |
224 /*) | |
225 for as_base in sh bash ksh sh5; do | |
226 # Try only shells that exist, to save several forks. | |
227 as_shell=$as_dir/$as_base | |
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 CONFIG_SHELL=$as_shell as_have_required=yes | |
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 break 2 | |
233 fi | |
234 fi | |
235 done;; | |
236 esac | |
237 as_found=false | |
238 done | |
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 CONFIG_SHELL=$SHELL as_have_required=yes | |
242 fi; } | |
243 IFS=$as_save_IFS | |
244 | |
245 | |
246 if test "x$CONFIG_SHELL" != x; then : | |
247 export CONFIG_SHELL | |
248 # We cannot yet assume a decent shell, so we have to provide a | |
249 # neutralization value for shells without unset; and this also | |
250 # works around shells that cannot unset nonexistent variables. | |
251 # Preserve -v and -x to the replacement shell. | |
252 BASH_ENV=/dev/null | |
253 ENV=/dev/null | |
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 case $- in # (((( | |
256 *v*x* | *x*v* ) as_opts=-vx ;; | |
257 *v* ) as_opts=-v ;; | |
258 *x* ) as_opts=-x ;; | |
259 * ) as_opts= ;; | |
260 esac | |
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 # Admittedly, this is quite paranoid, since all the known shells bail | |
263 # out after a failed `exec'. | |
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 exit 255 | |
266 fi | |
267 | |
268 if test x$as_have_required = xno; then : | |
269 $as_echo "$0: This script requires a shell more modern than all" | |
270 $as_echo "$0: the shells that I found on your system." | |
271 if test x${ZSH_VERSION+set} = xset ; then | |
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
274 else | |
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
276 $0: including any error possibly output before this | |
277 $0: message. Then install a modern shell, or manually run | |
278 $0: the script under such a shell if you do have one." | |
279 fi | |
280 exit 1 | |
281 fi | |
282 fi | |
283 fi | |
284 SHELL=${CONFIG_SHELL-/bin/sh} | |
285 export SHELL | |
286 # Unset more variables known to interfere with behavior of common tools. | |
287 CLICOLOR_FORCE= GREP_OPTIONS= | |
288 unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | |
290 ## --------------------- ## | |
291 ## M4sh Shell Functions. ## | |
292 ## --------------------- ## | |
293 # as_fn_unset VAR | |
294 # --------------- | |
295 # Portably unset VAR. | |
296 as_fn_unset () | |
297 { | |
298 { eval $1=; unset $1;} | |
299 } | |
300 as_unset=as_fn_unset | |
301 | |
302 # as_fn_set_status STATUS | |
303 # ----------------------- | |
304 # Set $? to STATUS, without forking. | |
305 as_fn_set_status () | |
306 { | |
307 return $1 | |
308 } # as_fn_set_status | |
309 | |
310 # as_fn_exit STATUS | |
311 # ----------------- | |
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 as_fn_exit () | |
314 { | |
315 set +e | |
316 as_fn_set_status $1 | |
317 exit $1 | |
318 } # as_fn_exit | |
319 | |
320 # as_fn_mkdir_p | |
321 # ------------- | |
322 # Create "$as_dir" as a directory, including parents if necessary. | |
323 as_fn_mkdir_p () | |
324 { | |
325 | |
326 case $as_dir in #( | |
327 -*) as_dir=./$as_dir;; | |
328 esac | |
329 test -d "$as_dir" || eval $as_mkdir_p || { | |
330 as_dirs= | |
331 while :; do | |
332 case $as_dir in #( | |
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 *) as_qdir=$as_dir;; | |
335 esac | |
336 as_dirs="'$as_qdir' $as_dirs" | |
337 as_dir=`$as_dirname -- "$as_dir" || | |
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 X"$as_dir" : 'X\(//\)$' \| \ | |
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 $as_echo X"$as_dir" | | |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 s//\1/ | |
345 q | |
346 } | |
347 /^X\(\/\/\)[^/].*/{ | |
348 s//\1/ | |
349 q | |
350 } | |
351 /^X\(\/\/\)$/{ | |
352 s//\1/ | |
353 q | |
354 } | |
355 /^X\(\/\).*/{ | |
356 s//\1/ | |
357 q | |
358 } | |
359 s/.*/./; q'` | |
360 test -d "$as_dir" && break | |
361 done | |
362 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
364 | |
365 | |
366 } # as_fn_mkdir_p | |
367 | |
368 # as_fn_executable_p FILE | |
369 # ----------------------- | |
370 # Test if FILE is an executable regular file. | |
371 as_fn_executable_p () | |
372 { | |
373 test -f "$1" && test -x "$1" | |
374 } # as_fn_executable_p | |
375 # as_fn_append VAR VALUE | |
376 # ---------------------- | |
377 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 # advantage of any shell optimizations that allow amortized linear growth over | |
379 # repeated appends, instead of the typical quadratic growth present in naive | |
380 # implementations. | |
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 eval 'as_fn_append () | |
383 { | |
384 eval $1+=\$2 | |
385 }' | |
386 else | |
387 as_fn_append () | |
388 { | |
389 eval $1=\$$1\$2 | |
390 } | |
391 fi # as_fn_append | |
392 | |
393 # as_fn_arith ARG... | |
394 # ------------------ | |
395 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 # must be portable across $(()) and expr. | |
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 eval 'as_fn_arith () | |
400 { | |
401 as_val=$(( $* )) | |
402 }' | |
403 else | |
404 as_fn_arith () | |
405 { | |
406 as_val=`expr "$@" || test $? -eq 1` | |
407 } | |
408 fi # as_fn_arith | |
409 | |
410 | |
411 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
412 # ---------------------------------------- | |
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
415 # script with STATUS, using 1 if that was 0. | |
416 as_fn_error () | |
417 { | |
418 as_status=$1; test $as_status -eq 0 && as_status=1 | |
419 if test "$4"; then | |
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
422 fi | |
423 $as_echo "$as_me: error: $2" >&2 | |
424 as_fn_exit $as_status | |
425 } # as_fn_error | |
426 | |
427 if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 as_expr=expr | |
430 else | |
431 as_expr=false | |
432 fi | |
433 | |
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 as_basename=basename | |
436 else | |
437 as_basename=false | |
438 fi | |
439 | |
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
441 as_dirname=dirname | |
442 else | |
443 as_dirname=false | |
444 fi | |
445 | |
446 as_me=`$as_basename -- "$0" || | |
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 X"$0" : 'X\(//\)$' \| \ | |
449 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
450 $as_echo X/"$0" | | |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 s//\1/ | |
453 q | |
454 } | |
455 /^X\/\(\/\/\)$/{ | |
456 s//\1/ | |
457 q | |
458 } | |
459 /^X\/\(\/\).*/{ | |
460 s//\1/ | |
461 q | |
462 } | |
463 s/.*/./; q'` | |
464 | |
465 # Avoid depending upon Character Ranges. | |
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 as_cr_digits='0123456789' | |
470 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | |
472 | |
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 sed -n ' | |
479 p | |
480 /[$]LINENO/= | |
481 ' <$as_myself | | |
482 sed ' | |
483 s/[$]LINENO.*/&-/ | |
484 t lineno | |
485 b | |
486 :lineno | |
487 N | |
488 :loop | |
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 t loop | |
491 s/-\n.*// | |
492 ' >$as_me.lineno && | |
493 chmod +x "$as_me.lineno" || | |
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
495 | |
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
497 # already done that, so ensure we don't try to do so again and fall | |
498 # in an infinite loop. This has already happened in practice. | |
499 _as_can_reexec=no; export _as_can_reexec | |
500 # Don't try to exec as it changes $[0], causing all sort of problems | |
501 # (the dirname of $[0] is not the place where we might find the | |
502 # original and so on. Autoconf is especially sensitive to this). | |
503 . "./$as_me.lineno" | |
504 # Exit status is that of the last command. | |
505 exit | |
506 } | |
507 | |
508 ECHO_C= ECHO_N= ECHO_T= | |
509 case `echo -n x` in #((((( | |
510 -n*) | |
511 case `echo 'xy\c'` in | |
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 xy) ECHO_C='\c';; | |
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 ECHO_T=' ';; | |
516 esac;; | |
517 *) | |
518 ECHO_N='-n';; | |
519 esac | |
520 | |
521 rm -f conf$$ conf$$.exe conf$$.file | |
522 if test -d conf$$.dir; then | |
523 rm -f conf$$.dir/conf$$.file | |
524 else | |
525 rm -f conf$$.dir | |
526 mkdir conf$$.dir 2>/dev/null | |
527 fi | |
528 if (echo >conf$$.file) 2>/dev/null; then | |
529 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 as_ln_s='ln -s' | |
531 # ... but there are two gotchas: | |
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
534 # In both cases, we have to default to `cp -pR'. | |
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
536 as_ln_s='cp -pR' | |
537 elif ln conf$$.file conf$$ 2>/dev/null; then | |
538 as_ln_s=ln | |
539 else | |
540 as_ln_s='cp -pR' | |
541 fi | |
542 else | |
543 as_ln_s='cp -pR' | |
544 fi | |
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 rmdir conf$$.dir 2>/dev/null | |
547 | |
548 if mkdir -p . 2>/dev/null; then | |
549 as_mkdir_p='mkdir -p "$as_dir"' | |
550 else | |
551 test -d ./-p && rmdir ./-p | |
552 as_mkdir_p=false | |
553 fi | |
554 | |
555 as_test_x='test -x' | |
556 as_executable_p=as_fn_executable_p | |
557 | |
558 # Sed expression to map a string onto a valid CPP name. | |
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | |
561 # Sed expression to map a string onto a valid variable name. | |
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | |
564 SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | |
566 | |
567 test -n "$DJDIR" || exec 7<&0 </dev/null | |
568 exec 6>&1 | |
569 | |
570 # Name of the host. | |
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
572 # so uname gets run too. | |
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | |
575 # | |
576 # Initializations. | |
577 # | |
578 ac_default_prefix=/usr/local | |
579 ac_clean_files= | |
580 ac_config_libobj_dir=. | |
581 LIBOBJS= | |
582 cross_compiling=no | |
583 subdirs= | |
584 MFLAGS= | |
585 MAKEFLAGS= | |
586 | |
587 # Identity of this package. | |
588 PACKAGE_NAME= | |
589 PACKAGE_TARNAME= | |
590 PACKAGE_VERSION= | |
591 PACKAGE_STRING= | |
592 PACKAGE_BUGREPORT= | |
593 PACKAGE_URL= | |
594 | |
595 ac_unique_file="include/portaudio.h" | |
596 # Factoring default headers for most tests. | |
597 ac_includes_default="\ | |
598 #include <stdio.h> | |
599 #ifdef HAVE_SYS_TYPES_H | |
600 # include <sys/types.h> | |
601 #endif | |
602 #ifdef HAVE_SYS_STAT_H | |
603 # include <sys/stat.h> | |
604 #endif | |
605 #ifdef STDC_HEADERS | |
606 # include <stdlib.h> | |
607 # include <stddef.h> | |
608 #else | |
609 # ifdef HAVE_STDLIB_H | |
610 # include <stdlib.h> | |
611 # endif | |
612 #endif | |
613 #ifdef HAVE_STRING_H | |
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
615 # include <memory.h> | |
616 # endif | |
617 # include <string.h> | |
618 #endif | |
619 #ifdef HAVE_STRINGS_H | |
620 # include <strings.h> | |
621 #endif | |
622 #ifdef HAVE_INTTYPES_H | |
623 # include <inttypes.h> | |
624 #endif | |
625 #ifdef HAVE_STDINT_H | |
626 # include <stdint.h> | |
627 #endif | |
628 #ifdef HAVE_UNISTD_H | |
629 # include <unistd.h> | |
630 #endif" | |
631 | |
632 enable_option_checking=no | |
633 ac_subst_vars='LTLIBOBJS | |
634 LIBOBJS | |
635 WITH_ASIO_FALSE | |
636 WITH_ASIO_TRUE | |
637 ENABLE_CXX_FALSE | |
638 ENABLE_CXX_TRUE | |
639 subdirs | |
640 INCLUDES | |
641 NASMOPT | |
642 NASM | |
643 DLL_LIBS | |
644 THREAD_CFLAGS | |
645 SHARED_FLAGS | |
646 PADLL | |
647 OTHER_OBJS | |
648 LT_AGE | |
649 LT_REVISION | |
650 LT_CURRENT | |
651 JACK_LIBS | |
652 JACK_CFLAGS | |
653 PKG_CONFIG_LIBDIR | |
654 PKG_CONFIG_PATH | |
655 PKG_CONFIG | |
656 INSTALL_DATA | |
657 INSTALL_SCRIPT | |
658 INSTALL_PROGRAM | |
659 CXXCPP | |
660 CPP | |
661 OTOOL64 | |
662 OTOOL | |
663 LIPO | |
664 NMEDIT | |
665 DSYMUTIL | |
666 MANIFEST_TOOL | |
667 AWK | |
668 RANLIB | |
669 STRIP | |
670 ac_ct_AR | |
671 AR | |
672 LN_S | |
673 NM | |
674 ac_ct_DUMPBIN | |
675 DUMPBIN | |
676 LD | |
677 FGREP | |
678 EGREP | |
679 GREP | |
680 SED | |
681 LIBTOOL | |
682 OBJDUMP | |
683 DLLTOOL | |
684 AS | |
685 ac_ct_CXX | |
686 CXXFLAGS | |
687 CXX | |
688 OBJEXT | |
689 EXEEXT | |
690 ac_ct_CC | |
691 CPPFLAGS | |
692 LDFLAGS | |
693 CFLAGS | |
694 CC | |
695 target_os | |
696 target_vendor | |
697 target_cpu | |
698 target | |
699 host_os | |
700 host_vendor | |
701 host_cpu | |
702 host | |
703 build_os | |
704 build_vendor | |
705 build_cpu | |
706 build | |
707 target_alias | |
708 host_alias | |
709 build_alias | |
710 LIBS | |
711 ECHO_T | |
712 ECHO_N | |
713 ECHO_C | |
714 DEFS | |
715 mandir | |
716 localedir | |
717 libdir | |
718 psdir | |
719 pdfdir | |
720 dvidir | |
721 htmldir | |
722 infodir | |
723 docdir | |
724 oldincludedir | |
725 includedir | |
726 localstatedir | |
727 sharedstatedir | |
728 sysconfdir | |
729 datadir | |
730 datarootdir | |
731 libexecdir | |
732 sbindir | |
733 bindir | |
734 program_transform_name | |
735 prefix | |
736 exec_prefix | |
737 PACKAGE_URL | |
738 PACKAGE_BUGREPORT | |
739 PACKAGE_STRING | |
740 PACKAGE_VERSION | |
741 PACKAGE_TARNAME | |
742 PACKAGE_NAME | |
743 PATH_SEPARATOR | |
744 SHELL' | |
745 ac_subst_files='' | |
746 ac_user_opts=' | |
747 enable_option_checking | |
748 with_alsa | |
749 with_jack | |
750 with_oss | |
751 with_asihpi | |
752 with_winapi | |
753 with_asiodir | |
754 with_dxdir | |
755 enable_debug_output | |
756 enable_cxx | |
757 enable_mac_debug | |
758 enable_mac_universal | |
759 with_host_os | |
760 enable_shared | |
761 enable_static | |
762 with_pic | |
763 enable_fast_install | |
764 with_gnu_ld | |
765 with_sysroot | |
766 enable_libtool_lock | |
767 ' | |
768 ac_precious_vars='build_alias | |
769 host_alias | |
770 target_alias | |
771 CC | |
772 CFLAGS | |
773 LDFLAGS | |
774 LIBS | |
775 CPPFLAGS | |
776 CXX | |
777 CXXFLAGS | |
778 CCC | |
779 CPP | |
780 CXXCPP | |
781 PKG_CONFIG | |
782 PKG_CONFIG_PATH | |
783 PKG_CONFIG_LIBDIR | |
784 JACK_CFLAGS | |
785 JACK_LIBS' | |
786 ac_subdirs_all='bindings/cpp' | |
787 | |
788 # Initialize some variables set by options. | |
789 ac_init_help= | |
790 ac_init_version=false | |
791 ac_unrecognized_opts= | |
792 ac_unrecognized_sep= | |
793 # The variables have the same names as the options, with | |
794 # dashes changed to underlines. | |
795 cache_file=/dev/null | |
796 exec_prefix=NONE | |
797 no_create= | |
798 no_recursion= | |
799 prefix=NONE | |
800 program_prefix=NONE | |
801 program_suffix=NONE | |
802 program_transform_name=s,x,x, | |
803 silent= | |
804 site= | |
805 srcdir= | |
806 verbose= | |
807 x_includes=NONE | |
808 x_libraries=NONE | |
809 | |
810 # Installation directory options. | |
811 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
812 # and all the variables that are supposed to be based on exec_prefix | |
813 # by default will actually change. | |
814 # Use braces instead of parens because sh, perl, etc. also accept them. | |
815 # (The list follows the same order as the GNU Coding Standards.) | |
816 bindir='${exec_prefix}/bin' | |
817 sbindir='${exec_prefix}/sbin' | |
818 libexecdir='${exec_prefix}/libexec' | |
819 datarootdir='${prefix}/share' | |
820 datadir='${datarootdir}' | |
821 sysconfdir='${prefix}/etc' | |
822 sharedstatedir='${prefix}/com' | |
823 localstatedir='${prefix}/var' | |
824 includedir='${prefix}/include' | |
825 oldincludedir='/usr/include' | |
826 docdir='${datarootdir}/doc/${PACKAGE}' | |
827 infodir='${datarootdir}/info' | |
828 htmldir='${docdir}' | |
829 dvidir='${docdir}' | |
830 pdfdir='${docdir}' | |
831 psdir='${docdir}' | |
832 libdir='${exec_prefix}/lib' | |
833 localedir='${datarootdir}/locale' | |
834 mandir='${datarootdir}/man' | |
835 | |
836 ac_prev= | |
837 ac_dashdash= | |
838 for ac_option | |
839 do | |
840 # If the previous option needs an argument, assign it. | |
841 if test -n "$ac_prev"; then | |
842 eval $ac_prev=\$ac_option | |
843 ac_prev= | |
844 continue | |
845 fi | |
846 | |
847 case $ac_option in | |
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
849 *=) ac_optarg= ;; | |
850 *) ac_optarg=yes ;; | |
851 esac | |
852 | |
853 # Accept the important Cygnus configure options, so we can diagnose typos. | |
854 | |
855 case $ac_dashdash$ac_option in | |
856 --) | |
857 ac_dashdash=yes ;; | |
858 | |
859 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
860 ac_prev=bindir ;; | |
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
862 bindir=$ac_optarg ;; | |
863 | |
864 -build | --build | --buil | --bui | --bu) | |
865 ac_prev=build_alias ;; | |
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
867 build_alias=$ac_optarg ;; | |
868 | |
869 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
871 ac_prev=cache_file ;; | |
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
874 cache_file=$ac_optarg ;; | |
875 | |
876 --config-cache | -C) | |
877 cache_file=config.cache ;; | |
878 | |
879 -datadir | --datadir | --datadi | --datad) | |
880 ac_prev=datadir ;; | |
881 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
882 datadir=$ac_optarg ;; | |
883 | |
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
885 | --dataroo | --dataro | --datar) | |
886 ac_prev=datarootdir ;; | |
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
889 datarootdir=$ac_optarg ;; | |
890 | |
891 -disable-* | --disable-*) | |
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
893 # Reject names that are not valid shell variable names. | |
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
895 as_fn_error $? "invalid feature name: $ac_useropt" | |
896 ac_useropt_orig=$ac_useropt | |
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
898 case $ac_user_opts in | |
899 *" | |
900 "enable_$ac_useropt" | |
901 "*) ;; | |
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
903 ac_unrecognized_sep=', ';; | |
904 esac | |
905 eval enable_$ac_useropt=no ;; | |
906 | |
907 -docdir | --docdir | --docdi | --doc | --do) | |
908 ac_prev=docdir ;; | |
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
910 docdir=$ac_optarg ;; | |
911 | |
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
913 ac_prev=dvidir ;; | |
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
915 dvidir=$ac_optarg ;; | |
916 | |
917 -enable-* | --enable-*) | |
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
919 # Reject names that are not valid shell variable names. | |
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
921 as_fn_error $? "invalid feature name: $ac_useropt" | |
922 ac_useropt_orig=$ac_useropt | |
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
924 case $ac_user_opts in | |
925 *" | |
926 "enable_$ac_useropt" | |
927 "*) ;; | |
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
929 ac_unrecognized_sep=', ';; | |
930 esac | |
931 eval enable_$ac_useropt=\$ac_optarg ;; | |
932 | |
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
935 | --exec | --exe | --ex) | |
936 ac_prev=exec_prefix ;; | |
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
939 | --exec=* | --exe=* | --ex=*) | |
940 exec_prefix=$ac_optarg ;; | |
941 | |
942 -gas | --gas | --ga | --g) | |
943 # Obsolete; use --with-gas. | |
944 with_gas=yes ;; | |
945 | |
946 -help | --help | --hel | --he | -h) | |
947 ac_init_help=long ;; | |
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
949 ac_init_help=recursive ;; | |
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
951 ac_init_help=short ;; | |
952 | |
953 -host | --host | --hos | --ho) | |
954 ac_prev=host_alias ;; | |
955 -host=* | --host=* | --hos=* | --ho=*) | |
956 host_alias=$ac_optarg ;; | |
957 | |
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
959 ac_prev=htmldir ;; | |
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
961 | --ht=*) | |
962 htmldir=$ac_optarg ;; | |
963 | |
964 -includedir | --includedir | --includedi | --included | --include \ | |
965 | --includ | --inclu | --incl | --inc) | |
966 ac_prev=includedir ;; | |
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
968 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
969 includedir=$ac_optarg ;; | |
970 | |
971 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
972 ac_prev=infodir ;; | |
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
974 infodir=$ac_optarg ;; | |
975 | |
976 -libdir | --libdir | --libdi | --libd) | |
977 ac_prev=libdir ;; | |
978 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
979 libdir=$ac_optarg ;; | |
980 | |
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
982 | --libexe | --libex | --libe) | |
983 ac_prev=libexecdir ;; | |
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
985 | --libexe=* | --libex=* | --libe=*) | |
986 libexecdir=$ac_optarg ;; | |
987 | |
988 -localedir | --localedir | --localedi | --localed | --locale) | |
989 ac_prev=localedir ;; | |
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
991 localedir=$ac_optarg ;; | |
992 | |
993 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
994 | --localstate | --localstat | --localsta | --localst | --locals) | |
995 ac_prev=localstatedir ;; | |
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
998 localstatedir=$ac_optarg ;; | |
999 | |
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1001 ac_prev=mandir ;; | |
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1003 mandir=$ac_optarg ;; | |
1004 | |
1005 -nfp | --nfp | --nf) | |
1006 # Obsolete; use --without-fp. | |
1007 with_fp=no ;; | |
1008 | |
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1010 | --no-cr | --no-c | -n) | |
1011 no_create=yes ;; | |
1012 | |
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1015 no_recursion=yes ;; | |
1016 | |
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1019 | --oldin | --oldi | --old | --ol | --o) | |
1020 ac_prev=oldincludedir ;; | |
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1024 oldincludedir=$ac_optarg ;; | |
1025 | |
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1027 ac_prev=prefix ;; | |
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1029 prefix=$ac_optarg ;; | |
1030 | |
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1032 | --program-pre | --program-pr | --program-p) | |
1033 ac_prev=program_prefix ;; | |
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1036 program_prefix=$ac_optarg ;; | |
1037 | |
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1039 | --program-suf | --program-su | --program-s) | |
1040 ac_prev=program_suffix ;; | |
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1043 program_suffix=$ac_optarg ;; | |
1044 | |
1045 -program-transform-name | --program-transform-name \ | |
1046 | --program-transform-nam | --program-transform-na \ | |
1047 | --program-transform-n | --program-transform- \ | |
1048 | --program-transform | --program-transfor \ | |
1049 | --program-transfo | --program-transf \ | |
1050 | --program-trans | --program-tran \ | |
1051 | --progr-tra | --program-tr | --program-t) | |
1052 ac_prev=program_transform_name ;; | |
1053 -program-transform-name=* | --program-transform-name=* \ | |
1054 | --program-transform-nam=* | --program-transform-na=* \ | |
1055 | --program-transform-n=* | --program-transform-=* \ | |
1056 | --program-transform=* | --program-transfor=* \ | |
1057 | --program-transfo=* | --program-transf=* \ | |
1058 | --program-trans=* | --program-tran=* \ | |
1059 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1060 program_transform_name=$ac_optarg ;; | |
1061 | |
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1063 ac_prev=pdfdir ;; | |
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1065 pdfdir=$ac_optarg ;; | |
1066 | |
1067 -psdir | --psdir | --psdi | --psd | --ps) | |
1068 ac_prev=psdir ;; | |
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1070 psdir=$ac_optarg ;; | |
1071 | |
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1073 | -silent | --silent | --silen | --sile | --sil) | |
1074 silent=yes ;; | |
1075 | |
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1077 ac_prev=sbindir ;; | |
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1079 | --sbi=* | --sb=*) | |
1080 sbindir=$ac_optarg ;; | |
1081 | |
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1084 | --sharedst | --shareds | --shared | --share | --shar \ | |
1085 | --sha | --sh) | |
1086 ac_prev=sharedstatedir ;; | |
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1090 | --sha=* | --sh=*) | |
1091 sharedstatedir=$ac_optarg ;; | |
1092 | |
1093 -site | --site | --sit) | |
1094 ac_prev=site ;; | |
1095 -site=* | --site=* | --sit=*) | |
1096 site=$ac_optarg ;; | |
1097 | |
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1099 ac_prev=srcdir ;; | |
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1101 srcdir=$ac_optarg ;; | |
1102 | |
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1104 | --syscon | --sysco | --sysc | --sys | --sy) | |
1105 ac_prev=sysconfdir ;; | |
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1108 sysconfdir=$ac_optarg ;; | |
1109 | |
1110 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1111 ac_prev=target_alias ;; | |
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1113 target_alias=$ac_optarg ;; | |
1114 | |
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1116 verbose=yes ;; | |
1117 | |
1118 -version | --version | --versio | --versi | --vers | -V) | |
1119 ac_init_version=: ;; | |
1120 | |
1121 -with-* | --with-*) | |
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1123 # Reject names that are not valid shell variable names. | |
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1125 as_fn_error $? "invalid package name: $ac_useropt" | |
1126 ac_useropt_orig=$ac_useropt | |
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1128 case $ac_user_opts in | |
1129 *" | |
1130 "with_$ac_useropt" | |
1131 "*) ;; | |
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1133 ac_unrecognized_sep=', ';; | |
1134 esac | |
1135 eval with_$ac_useropt=\$ac_optarg ;; | |
1136 | |
1137 -without-* | --without-*) | |
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1139 # Reject names that are not valid shell variable names. | |
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1141 as_fn_error $? "invalid package name: $ac_useropt" | |
1142 ac_useropt_orig=$ac_useropt | |
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1144 case $ac_user_opts in | |
1145 *" | |
1146 "with_$ac_useropt" | |
1147 "*) ;; | |
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1149 ac_unrecognized_sep=', ';; | |
1150 esac | |
1151 eval with_$ac_useropt=no ;; | |
1152 | |
1153 --x) | |
1154 # Obsolete; use --with-x. | |
1155 with_x=yes ;; | |
1156 | |
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1158 | --x-incl | --x-inc | --x-in | --x-i) | |
1159 ac_prev=x_includes ;; | |
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1162 x_includes=$ac_optarg ;; | |
1163 | |
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1166 ac_prev=x_libraries ;; | |
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1169 x_libraries=$ac_optarg ;; | |
1170 | |
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1172 Try \`$0 --help' for more information" | |
1173 ;; | |
1174 | |
1175 *=*) | |
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1177 # Reject names that are not valid shell variable names. | |
1178 case $ac_envvar in #( | |
1179 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1181 esac | |
1182 eval $ac_envvar=\$ac_optarg | |
1183 export $ac_envvar ;; | |
1184 | |
1185 *) | |
1186 # FIXME: should be removed in autoconf 3.0. | |
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1191 ;; | |
1192 | |
1193 esac | |
1194 done | |
1195 | |
1196 if test -n "$ac_prev"; then | |
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1198 as_fn_error $? "missing argument to $ac_option" | |
1199 fi | |
1200 | |
1201 if test -n "$ac_unrecognized_opts"; then | |
1202 case $enable_option_checking in | |
1203 no) ;; | |
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1206 esac | |
1207 fi | |
1208 | |
1209 # Check all directory arguments for consistency. | |
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1211 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1213 libdir localedir mandir | |
1214 do | |
1215 eval ac_val=\$$ac_var | |
1216 # Remove trailing slashes. | |
1217 case $ac_val in | |
1218 */ ) | |
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1220 eval $ac_var=\$ac_val;; | |
1221 esac | |
1222 # Be sure to have absolute directory names. | |
1223 case $ac_val in | |
1224 [\\/$]* | ?:[\\/]* ) continue;; | |
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1226 esac | |
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1228 done | |
1229 | |
1230 # There might be people who depend on the old broken behavior: `$host' | |
1231 # used to hold the argument of --host etc. | |
1232 # FIXME: To remove some day. | |
1233 build=$build_alias | |
1234 host=$host_alias | |
1235 target=$target_alias | |
1236 | |
1237 # FIXME: To remove some day. | |
1238 if test "x$host_alias" != x; then | |
1239 if test "x$build_alias" = x; then | |
1240 cross_compiling=maybe | |
1241 elif test "x$build_alias" != "x$host_alias"; then | |
1242 cross_compiling=yes | |
1243 fi | |
1244 fi | |
1245 | |
1246 ac_tool_prefix= | |
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1248 | |
1249 test "$silent" = yes && exec 6>/dev/null | |
1250 | |
1251 | |
1252 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1253 ac_ls_di=`ls -di .` && | |
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1255 as_fn_error $? "working directory cannot be determined" | |
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1257 as_fn_error $? "pwd does not report name of working directory" | |
1258 | |
1259 | |
1260 # Find the source files, if location was not specified. | |
1261 if test -z "$srcdir"; then | |
1262 ac_srcdir_defaulted=yes | |
1263 # Try the directory containing this script, then the parent directory. | |
1264 ac_confdir=`$as_dirname -- "$as_myself" || | |
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1266 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1267 X"$as_myself" : 'X\(//\)$' \| \ | |
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1269 $as_echo X"$as_myself" | | |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1271 s//\1/ | |
1272 q | |
1273 } | |
1274 /^X\(\/\/\)[^/].*/{ | |
1275 s//\1/ | |
1276 q | |
1277 } | |
1278 /^X\(\/\/\)$/{ | |
1279 s//\1/ | |
1280 q | |
1281 } | |
1282 /^X\(\/\).*/{ | |
1283 s//\1/ | |
1284 q | |
1285 } | |
1286 s/.*/./; q'` | |
1287 srcdir=$ac_confdir | |
1288 if test ! -r "$srcdir/$ac_unique_file"; then | |
1289 srcdir=.. | |
1290 fi | |
1291 else | |
1292 ac_srcdir_defaulted=no | |
1293 fi | |
1294 if test ! -r "$srcdir/$ac_unique_file"; then | |
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1297 fi | |
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1299 ac_abs_confdir=`( | |
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1301 pwd)` | |
1302 # When building in place, set srcdir=. | |
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1304 srcdir=. | |
1305 fi | |
1306 # Remove unnecessary trailing slashes from srcdir. | |
1307 # Double slashes in file names in object file debugging info | |
1308 # mess up M-x gdb in Emacs. | |
1309 case $srcdir in | |
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1311 esac | |
1312 for ac_var in $ac_precious_vars; do | |
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1314 eval ac_env_${ac_var}_value=\$${ac_var} | |
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1317 done | |
1318 | |
1319 # | |
1320 # Report the --help message. | |
1321 # | |
1322 if test "$ac_init_help" = "long"; then | |
1323 # Omit some internal or obsolete options to make the list less imposing. | |
1324 # This message is too long to be a string in the A/UX 3.1 sh. | |
1325 cat <<_ACEOF | |
1326 \`configure' configures this package to adapt to many kinds of systems. | |
1327 | |
1328 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1329 | |
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1331 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1332 | |
1333 Defaults for the options are specified in brackets. | |
1334 | |
1335 Configuration: | |
1336 -h, --help display this help and exit | |
1337 --help=short display options specific to this package | |
1338 --help=recursive display the short help of all the included packages | |
1339 -V, --version display version information and exit | |
1340 -q, --quiet, --silent do not print \`checking ...' messages | |
1341 --cache-file=FILE cache test results in FILE [disabled] | |
1342 -C, --config-cache alias for \`--cache-file=config.cache' | |
1343 -n, --no-create do not create output files | |
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1345 | |
1346 Installation directories: | |
1347 --prefix=PREFIX install architecture-independent files in PREFIX | |
1348 [$ac_default_prefix] | |
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1350 [PREFIX] | |
1351 | |
1352 By default, \`make install' will install all the files in | |
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1355 for instance \`--prefix=\$HOME'. | |
1356 | |
1357 For better control, use the options below. | |
1358 | |
1359 Fine tuning of the installation directories: | |
1360 --bindir=DIR user executables [EPREFIX/bin] | |
1361 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1362 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1366 --libdir=DIR object code libraries [EPREFIX/lib] | |
1367 --includedir=DIR C header files [PREFIX/include] | |
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1371 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1373 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1375 --htmldir=DIR html documentation [DOCDIR] | |
1376 --dvidir=DIR dvi documentation [DOCDIR] | |
1377 --pdfdir=DIR pdf documentation [DOCDIR] | |
1378 --psdir=DIR ps documentation [DOCDIR] | |
1379 _ACEOF | |
1380 | |
1381 cat <<\_ACEOF | |
1382 | |
1383 System types: | |
1384 --build=BUILD configure for building on BUILD [guessed] | |
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1386 --target=TARGET configure for building compilers for TARGET [HOST] | |
1387 _ACEOF | |
1388 fi | |
1389 | |
1390 if test -n "$ac_init_help"; then | |
1391 | |
1392 cat <<\_ACEOF | |
1393 | |
1394 Optional Features: | |
1395 --disable-option-checking ignore unrecognized --enable/--with options | |
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1398 --enable-debug-output Enable debug output [no] | |
1399 --enable-cxx Enable C++ bindings [no] | |
1400 --enable-mac-debug Enable Mac debug [no] | |
1401 --enable-mac-universal Build Mac universal binaries [yes] | |
1402 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1403 --enable-static[=PKGS] build static libraries [default=yes] | |
1404 --enable-fast-install[=PKGS] | |
1405 optimize for fast installation [default=yes] | |
1406 --disable-libtool-lock avoid locking (might break parallel builds) | |
1407 | |
1408 Optional Packages: | |
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1411 --with-alsa Enable support for ALSA [autodetect] | |
1412 --with-jack Enable support for JACK [autodetect] | |
1413 --with-oss Enable support for OSS [autodetect] | |
1414 --with-asihpi Enable support for ASIHPI [autodetect] | |
1415 --with-winapi Select Windows API support | |
1416 ([wmme|directx|asio|wasapi|wdmks][,...]) [wmme] | |
1417 --with-asiodir ASIO directory [/usr/local/asiosdk2] | |
1418 --with-dxdir DirectX directory [/usr/local/dx7sdk] | |
1419 | |
1420 --with-pic try to use only PIC/non-PIC objects [default=use | |
1421 both] | |
1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1423 --with-sysroot=DIR Search for dependent libraries within DIR | |
1424 (or the compiler's sysroot if not specified). | |
1425 | |
1426 Some influential environment variables: | |
1427 CC C compiler command | |
1428 CFLAGS C compiler flags | |
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1430 nonstandard directory <lib dir> | |
1431 LIBS libraries to pass to the linker, e.g. -l<library> | |
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1433 you have headers in a nonstandard directory <include dir> | |
1434 CXX C++ compiler command | |
1435 CXXFLAGS C++ compiler flags | |
1436 CPP C preprocessor | |
1437 CXXCPP C++ preprocessor | |
1438 PKG_CONFIG path to pkg-config utility | |
1439 PKG_CONFIG_PATH | |
1440 directories to add to pkg-config's search path | |
1441 PKG_CONFIG_LIBDIR | |
1442 path overriding pkg-config's built-in search path | |
1443 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config | |
1444 JACK_LIBS linker flags for JACK, overriding pkg-config | |
1445 | |
1446 Use these variables to override the choices made by `configure' or to help | |
1447 it to find libraries and programs with nonstandard names/locations. | |
1448 | |
1449 Report bugs to the package provider. | |
1450 _ACEOF | |
1451 ac_status=$? | |
1452 fi | |
1453 | |
1454 if test "$ac_init_help" = "recursive"; then | |
1455 # If there are subdirs, report their specific --help. | |
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1457 test -d "$ac_dir" || | |
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1459 continue | |
1460 ac_builddir=. | |
1461 | |
1462 case "$ac_dir" in | |
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1464 *) | |
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1466 # A ".." for each directory in $ac_dir_suffix. | |
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1468 case $ac_top_builddir_sub in | |
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1471 esac ;; | |
1472 esac | |
1473 ac_abs_top_builddir=$ac_pwd | |
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1475 # for backward compatibility: | |
1476 ac_top_builddir=$ac_top_build_prefix | |
1477 | |
1478 case $srcdir in | |
1479 .) # We are building in place. | |
1480 ac_srcdir=. | |
1481 ac_top_srcdir=$ac_top_builddir_sub | |
1482 ac_abs_top_srcdir=$ac_pwd ;; | |
1483 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1484 ac_srcdir=$srcdir$ac_dir_suffix; | |
1485 ac_top_srcdir=$srcdir | |
1486 ac_abs_top_srcdir=$srcdir ;; | |
1487 *) # Relative name. | |
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1491 esac | |
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1493 | |
1494 cd "$ac_dir" || { ac_status=$?; continue; } | |
1495 # Check for guested configure. | |
1496 if test -f "$ac_srcdir/configure.gnu"; then | |
1497 echo && | |
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1499 elif test -f "$ac_srcdir/configure"; then | |
1500 echo && | |
1501 $SHELL "$ac_srcdir/configure" --help=recursive | |
1502 else | |
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1504 fi || ac_status=$? | |
1505 cd "$ac_pwd" || { ac_status=$?; break; } | |
1506 done | |
1507 fi | |
1508 | |
1509 test -n "$ac_init_help" && exit $ac_status | |
1510 if $ac_init_version; then | |
1511 cat <<\_ACEOF | |
1512 configure | |
1513 generated by GNU Autoconf 2.69 | |
1514 | |
1515 Copyright (C) 2012 Free Software Foundation, Inc. | |
1516 This configure script is free software; the Free Software Foundation | |
1517 gives unlimited permission to copy, distribute and modify it. | |
1518 _ACEOF | |
1519 exit | |
1520 fi | |
1521 | |
1522 ## ------------------------ ## | |
1523 ## Autoconf initialization. ## | |
1524 ## ------------------------ ## | |
1525 | |
1526 # ac_fn_c_try_compile LINENO | |
1527 # -------------------------- | |
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1529 ac_fn_c_try_compile () | |
1530 { | |
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1532 rm -f conftest.$ac_objext | |
1533 if { { ac_try="$ac_compile" | |
1534 case "(($ac_try" in | |
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1536 *) ac_try_echo=$ac_try;; | |
1537 esac | |
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1539 $as_echo "$ac_try_echo"; } >&5 | |
1540 (eval "$ac_compile") 2>conftest.err | |
1541 ac_status=$? | |
1542 if test -s conftest.err; then | |
1543 grep -v '^ *+' conftest.err >conftest.er1 | |
1544 cat conftest.er1 >&5 | |
1545 mv -f conftest.er1 conftest.err | |
1546 fi | |
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1548 test $ac_status = 0; } && { | |
1549 test -z "$ac_c_werror_flag" || | |
1550 test ! -s conftest.err | |
1551 } && test -s conftest.$ac_objext; then : | |
1552 ac_retval=0 | |
1553 else | |
1554 $as_echo "$as_me: failed program was:" >&5 | |
1555 sed 's/^/| /' conftest.$ac_ext >&5 | |
1556 | |
1557 ac_retval=1 | |
1558 fi | |
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1560 as_fn_set_status $ac_retval | |
1561 | |
1562 } # ac_fn_c_try_compile | |
1563 | |
1564 # ac_fn_cxx_try_compile LINENO | |
1565 # ---------------------------- | |
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1567 ac_fn_cxx_try_compile () | |
1568 { | |
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1570 rm -f conftest.$ac_objext | |
1571 if { { ac_try="$ac_compile" | |
1572 case "(($ac_try" in | |
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1574 *) ac_try_echo=$ac_try;; | |
1575 esac | |
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1577 $as_echo "$ac_try_echo"; } >&5 | |
1578 (eval "$ac_compile") 2>conftest.err | |
1579 ac_status=$? | |
1580 if test -s conftest.err; then | |
1581 grep -v '^ *+' conftest.err >conftest.er1 | |
1582 cat conftest.er1 >&5 | |
1583 mv -f conftest.er1 conftest.err | |
1584 fi | |
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1586 test $ac_status = 0; } && { | |
1587 test -z "$ac_cxx_werror_flag" || | |
1588 test ! -s conftest.err | |
1589 } && test -s conftest.$ac_objext; then : | |
1590 ac_retval=0 | |
1591 else | |
1592 $as_echo "$as_me: failed program was:" >&5 | |
1593 sed 's/^/| /' conftest.$ac_ext >&5 | |
1594 | |
1595 ac_retval=1 | |
1596 fi | |
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1598 as_fn_set_status $ac_retval | |
1599 | |
1600 } # ac_fn_cxx_try_compile | |
1601 | |
1602 # ac_fn_c_try_link LINENO | |
1603 # ----------------------- | |
1604 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1605 ac_fn_c_try_link () | |
1606 { | |
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1608 rm -f conftest.$ac_objext conftest$ac_exeext | |
1609 if { { ac_try="$ac_link" | |
1610 case "(($ac_try" in | |
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1612 *) ac_try_echo=$ac_try;; | |
1613 esac | |
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1615 $as_echo "$ac_try_echo"; } >&5 | |
1616 (eval "$ac_link") 2>conftest.err | |
1617 ac_status=$? | |
1618 if test -s conftest.err; then | |
1619 grep -v '^ *+' conftest.err >conftest.er1 | |
1620 cat conftest.er1 >&5 | |
1621 mv -f conftest.er1 conftest.err | |
1622 fi | |
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1624 test $ac_status = 0; } && { | |
1625 test -z "$ac_c_werror_flag" || | |
1626 test ! -s conftest.err | |
1627 } && test -s conftest$ac_exeext && { | |
1628 test "$cross_compiling" = yes || | |
1629 test -x conftest$ac_exeext | |
1630 }; then : | |
1631 ac_retval=0 | |
1632 else | |
1633 $as_echo "$as_me: failed program was:" >&5 | |
1634 sed 's/^/| /' conftest.$ac_ext >&5 | |
1635 | |
1636 ac_retval=1 | |
1637 fi | |
1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1640 # interfere with the next link command; also delete a directory that is | |
1641 # left behind by Apple's compiler. We do this before executing the actions. | |
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1644 as_fn_set_status $ac_retval | |
1645 | |
1646 } # ac_fn_c_try_link | |
1647 | |
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1649 # ------------------------------------------------------- | |
1650 # Tests whether HEADER exists and can be compiled using the include files in | |
1651 # INCLUDES, setting the cache variable VAR accordingly. | |
1652 ac_fn_c_check_header_compile () | |
1653 { | |
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1656 $as_echo_n "checking for $2... " >&6; } | |
1657 if eval \${$3+:} false; then : | |
1658 $as_echo_n "(cached) " >&6 | |
1659 else | |
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1661 /* end confdefs.h. */ | |
1662 $4 | |
1663 #include <$2> | |
1664 _ACEOF | |
1665 if ac_fn_c_try_compile "$LINENO"; then : | |
1666 eval "$3=yes" | |
1667 else | |
1668 eval "$3=no" | |
1669 fi | |
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1671 fi | |
1672 eval ac_res=\$$3 | |
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1674 $as_echo "$ac_res" >&6; } | |
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1676 | |
1677 } # ac_fn_c_check_header_compile | |
1678 | |
1679 # ac_fn_c_try_cpp LINENO | |
1680 # ---------------------- | |
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1682 ac_fn_c_try_cpp () | |
1683 { | |
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1685 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1686 case "(($ac_try" in | |
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1688 *) ac_try_echo=$ac_try;; | |
1689 esac | |
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1691 $as_echo "$ac_try_echo"; } >&5 | |
1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1693 ac_status=$? | |
1694 if test -s conftest.err; then | |
1695 grep -v '^ *+' conftest.err >conftest.er1 | |
1696 cat conftest.er1 >&5 | |
1697 mv -f conftest.er1 conftest.err | |
1698 fi | |
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1700 test $ac_status = 0; } > conftest.i && { | |
1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1702 test ! -s conftest.err | |
1703 }; then : | |
1704 ac_retval=0 | |
1705 else | |
1706 $as_echo "$as_me: failed program was:" >&5 | |
1707 sed 's/^/| /' conftest.$ac_ext >&5 | |
1708 | |
1709 ac_retval=1 | |
1710 fi | |
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1712 as_fn_set_status $ac_retval | |
1713 | |
1714 } # ac_fn_c_try_cpp | |
1715 | |
1716 # ac_fn_c_try_run LINENO | |
1717 # ---------------------- | |
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1719 # that executables *can* be run. | |
1720 ac_fn_c_try_run () | |
1721 { | |
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1723 if { { ac_try="$ac_link" | |
1724 case "(($ac_try" in | |
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1726 *) ac_try_echo=$ac_try;; | |
1727 esac | |
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1729 $as_echo "$ac_try_echo"; } >&5 | |
1730 (eval "$ac_link") 2>&5 | |
1731 ac_status=$? | |
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1734 { { case "(($ac_try" in | |
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1736 *) ac_try_echo=$ac_try;; | |
1737 esac | |
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1739 $as_echo "$ac_try_echo"; } >&5 | |
1740 (eval "$ac_try") 2>&5 | |
1741 ac_status=$? | |
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1743 test $ac_status = 0; }; }; then : | |
1744 ac_retval=0 | |
1745 else | |
1746 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1747 $as_echo "$as_me: failed program was:" >&5 | |
1748 sed 's/^/| /' conftest.$ac_ext >&5 | |
1749 | |
1750 ac_retval=$ac_status | |
1751 fi | |
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1754 as_fn_set_status $ac_retval | |
1755 | |
1756 } # ac_fn_c_try_run | |
1757 | |
1758 # ac_fn_c_check_func LINENO FUNC VAR | |
1759 # ---------------------------------- | |
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1761 ac_fn_c_check_func () | |
1762 { | |
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1765 $as_echo_n "checking for $2... " >&6; } | |
1766 if eval \${$3+:} false; then : | |
1767 $as_echo_n "(cached) " >&6 | |
1768 else | |
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1770 /* end confdefs.h. */ | |
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1773 #define $2 innocuous_$2 | |
1774 | |
1775 /* System header to define __stub macros and hopefully few prototypes, | |
1776 which can conflict with char $2 (); below. | |
1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1778 <limits.h> exists even on freestanding compilers. */ | |
1779 | |
1780 #ifdef __STDC__ | |
1781 # include <limits.h> | |
1782 #else | |
1783 # include <assert.h> | |
1784 #endif | |
1785 | |
1786 #undef $2 | |
1787 | |
1788 /* Override any GCC internal prototype to avoid an error. | |
1789 Use char because int might match the return type of a GCC | |
1790 builtin and then its argument prototype would still apply. */ | |
1791 #ifdef __cplusplus | |
1792 extern "C" | |
1793 #endif | |
1794 char $2 (); | |
1795 /* The GNU C library defines this for functions which it implements | |
1796 to always fail with ENOSYS. Some functions are actually named | |
1797 something starting with __ and the normal name is an alias. */ | |
1798 #if defined __stub_$2 || defined __stub___$2 | |
1799 choke me | |
1800 #endif | |
1801 | |
1802 int | |
1803 main () | |
1804 { | |
1805 return $2 (); | |
1806 ; | |
1807 return 0; | |
1808 } | |
1809 _ACEOF | |
1810 if ac_fn_c_try_link "$LINENO"; then : | |
1811 eval "$3=yes" | |
1812 else | |
1813 eval "$3=no" | |
1814 fi | |
1815 rm -f core conftest.err conftest.$ac_objext \ | |
1816 conftest$ac_exeext conftest.$ac_ext | |
1817 fi | |
1818 eval ac_res=\$$3 | |
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1820 $as_echo "$ac_res" >&6; } | |
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1822 | |
1823 } # ac_fn_c_check_func | |
1824 | |
1825 # ac_fn_cxx_try_cpp LINENO | |
1826 # ------------------------ | |
1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1828 ac_fn_cxx_try_cpp () | |
1829 { | |
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1831 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1832 case "(($ac_try" in | |
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1834 *) ac_try_echo=$ac_try;; | |
1835 esac | |
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1837 $as_echo "$ac_try_echo"; } >&5 | |
1838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1839 ac_status=$? | |
1840 if test -s conftest.err; then | |
1841 grep -v '^ *+' conftest.err >conftest.er1 | |
1842 cat conftest.er1 >&5 | |
1843 mv -f conftest.er1 conftest.err | |
1844 fi | |
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1846 test $ac_status = 0; } > conftest.i && { | |
1847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1848 test ! -s conftest.err | |
1849 }; then : | |
1850 ac_retval=0 | |
1851 else | |
1852 $as_echo "$as_me: failed program was:" >&5 | |
1853 sed 's/^/| /' conftest.$ac_ext >&5 | |
1854 | |
1855 ac_retval=1 | |
1856 fi | |
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1858 as_fn_set_status $ac_retval | |
1859 | |
1860 } # ac_fn_cxx_try_cpp | |
1861 | |
1862 # ac_fn_cxx_try_link LINENO | |
1863 # ------------------------- | |
1864 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1865 ac_fn_cxx_try_link () | |
1866 { | |
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1868 rm -f conftest.$ac_objext conftest$ac_exeext | |
1869 if { { ac_try="$ac_link" | |
1870 case "(($ac_try" in | |
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1872 *) ac_try_echo=$ac_try;; | |
1873 esac | |
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1875 $as_echo "$ac_try_echo"; } >&5 | |
1876 (eval "$ac_link") 2>conftest.err | |
1877 ac_status=$? | |
1878 if test -s conftest.err; then | |
1879 grep -v '^ *+' conftest.err >conftest.er1 | |
1880 cat conftest.er1 >&5 | |
1881 mv -f conftest.er1 conftest.err | |
1882 fi | |
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1884 test $ac_status = 0; } && { | |
1885 test -z "$ac_cxx_werror_flag" || | |
1886 test ! -s conftest.err | |
1887 } && test -s conftest$ac_exeext && { | |
1888 test "$cross_compiling" = yes || | |
1889 test -x conftest$ac_exeext | |
1890 }; then : | |
1891 ac_retval=0 | |
1892 else | |
1893 $as_echo "$as_me: failed program was:" >&5 | |
1894 sed 's/^/| /' conftest.$ac_ext >&5 | |
1895 | |
1896 ac_retval=1 | |
1897 fi | |
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1900 # interfere with the next link command; also delete a directory that is | |
1901 # left behind by Apple's compiler. We do this before executing the actions. | |
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1904 as_fn_set_status $ac_retval | |
1905 | |
1906 } # ac_fn_cxx_try_link | |
1907 | |
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1909 # ------------------------------------------------------- | |
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1911 # the include files in INCLUDES and setting the cache variable VAR | |
1912 # accordingly. | |
1913 ac_fn_c_check_header_mongrel () | |
1914 { | |
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1916 if eval \${$3+:} false; then : | |
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1918 $as_echo_n "checking for $2... " >&6; } | |
1919 if eval \${$3+:} false; then : | |
1920 $as_echo_n "(cached) " >&6 | |
1921 fi | |
1922 eval ac_res=\$$3 | |
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1924 $as_echo "$ac_res" >&6; } | |
1925 else | |
1926 # Is the header compilable? | |
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1928 $as_echo_n "checking $2 usability... " >&6; } | |
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1930 /* end confdefs.h. */ | |
1931 $4 | |
1932 #include <$2> | |
1933 _ACEOF | |
1934 if ac_fn_c_try_compile "$LINENO"; then : | |
1935 ac_header_compiler=yes | |
1936 else | |
1937 ac_header_compiler=no | |
1938 fi | |
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1941 $as_echo "$ac_header_compiler" >&6; } | |
1942 | |
1943 # Is the header present? | |
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1945 $as_echo_n "checking $2 presence... " >&6; } | |
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1947 /* end confdefs.h. */ | |
1948 #include <$2> | |
1949 _ACEOF | |
1950 if ac_fn_c_try_cpp "$LINENO"; then : | |
1951 ac_header_preproc=yes | |
1952 else | |
1953 ac_header_preproc=no | |
1954 fi | |
1955 rm -f conftest.err conftest.i conftest.$ac_ext | |
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1957 $as_echo "$ac_header_preproc" >&6; } | |
1958 | |
1959 # So? What about this header? | |
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1961 yes:no: ) | |
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1966 ;; | |
1967 no:yes:* ) | |
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1978 ;; | |
1979 esac | |
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1981 $as_echo_n "checking for $2... " >&6; } | |
1982 if eval \${$3+:} false; then : | |
1983 $as_echo_n "(cached) " >&6 | |
1984 else | |
1985 eval "$3=\$ac_header_compiler" | |
1986 fi | |
1987 eval ac_res=\$$3 | |
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1989 $as_echo "$ac_res" >&6; } | |
1990 fi | |
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1992 | |
1993 } # ac_fn_c_check_header_mongrel | |
1994 | |
1995 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1996 # -------------------------------------------- | |
1997 # Tries to find the compile-time value of EXPR in a program that includes | |
1998 # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1999 # computed | |
2000 ac_fn_c_compute_int () | |
2001 { | |
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2003 if test "$cross_compiling" = yes; then | |
2004 # Depending upon the size, compute the lo and hi bounds. | |
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2006 /* end confdefs.h. */ | |
2007 $4 | |
2008 int | |
2009 main () | |
2010 { | |
2011 static int test_array [1 - 2 * !(($2) >= 0)]; | |
2012 test_array [0] = 0; | |
2013 return test_array [0]; | |
2014 | |
2015 ; | |
2016 return 0; | |
2017 } | |
2018 _ACEOF | |
2019 if ac_fn_c_try_compile "$LINENO"; then : | |
2020 ac_lo=0 ac_mid=0 | |
2021 while :; do | |
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2023 /* end confdefs.h. */ | |
2024 $4 | |
2025 int | |
2026 main () | |
2027 { | |
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2029 test_array [0] = 0; | |
2030 return test_array [0]; | |
2031 | |
2032 ; | |
2033 return 0; | |
2034 } | |
2035 _ACEOF | |
2036 if ac_fn_c_try_compile "$LINENO"; then : | |
2037 ac_hi=$ac_mid; break | |
2038 else | |
2039 as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2040 if test $ac_lo -le $ac_mid; then | |
2041 ac_lo= ac_hi= | |
2042 break | |
2043 fi | |
2044 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2045 fi | |
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2047 done | |
2048 else | |
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2050 /* end confdefs.h. */ | |
2051 $4 | |
2052 int | |
2053 main () | |
2054 { | |
2055 static int test_array [1 - 2 * !(($2) < 0)]; | |
2056 test_array [0] = 0; | |
2057 return test_array [0]; | |
2058 | |
2059 ; | |
2060 return 0; | |
2061 } | |
2062 _ACEOF | |
2063 if ac_fn_c_try_compile "$LINENO"; then : | |
2064 ac_hi=-1 ac_mid=-1 | |
2065 while :; do | |
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2067 /* end confdefs.h. */ | |
2068 $4 | |
2069 int | |
2070 main () | |
2071 { | |
2072 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2073 test_array [0] = 0; | |
2074 return test_array [0]; | |
2075 | |
2076 ; | |
2077 return 0; | |
2078 } | |
2079 _ACEOF | |
2080 if ac_fn_c_try_compile "$LINENO"; then : | |
2081 ac_lo=$ac_mid; break | |
2082 else | |
2083 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2084 if test $ac_mid -le $ac_hi; then | |
2085 ac_lo= ac_hi= | |
2086 break | |
2087 fi | |
2088 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2089 fi | |
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2091 done | |
2092 else | |
2093 ac_lo= ac_hi= | |
2094 fi | |
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2096 fi | |
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2098 # Binary search between lo and hi bounds. | |
2099 while test "x$ac_lo" != "x$ac_hi"; do | |
2100 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2102 /* end confdefs.h. */ | |
2103 $4 | |
2104 int | |
2105 main () | |
2106 { | |
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2108 test_array [0] = 0; | |
2109 return test_array [0]; | |
2110 | |
2111 ; | |
2112 return 0; | |
2113 } | |
2114 _ACEOF | |
2115 if ac_fn_c_try_compile "$LINENO"; then : | |
2116 ac_hi=$ac_mid | |
2117 else | |
2118 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2119 fi | |
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2121 done | |
2122 case $ac_lo in #(( | |
2123 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2124 '') ac_retval=1 ;; | |
2125 esac | |
2126 else | |
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2128 /* end confdefs.h. */ | |
2129 $4 | |
2130 static long int longval () { return $2; } | |
2131 static unsigned long int ulongval () { return $2; } | |
2132 #include <stdio.h> | |
2133 #include <stdlib.h> | |
2134 int | |
2135 main () | |
2136 { | |
2137 | |
2138 FILE *f = fopen ("conftest.val", "w"); | |
2139 if (! f) | |
2140 return 1; | |
2141 if (($2) < 0) | |
2142 { | |
2143 long int i = longval (); | |
2144 if (i != ($2)) | |
2145 return 1; | |
2146 fprintf (f, "%ld", i); | |
2147 } | |
2148 else | |
2149 { | |
2150 unsigned long int i = ulongval (); | |
2151 if (i != ($2)) | |
2152 return 1; | |
2153 fprintf (f, "%lu", i); | |
2154 } | |
2155 /* Do not output a trailing newline, as this causes \r\n confusion | |
2156 on some platforms. */ | |
2157 return ferror (f) || fclose (f) != 0; | |
2158 | |
2159 ; | |
2160 return 0; | |
2161 } | |
2162 _ACEOF | |
2163 if ac_fn_c_try_run "$LINENO"; then : | |
2164 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2165 else | |
2166 ac_retval=1 | |
2167 fi | |
2168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2169 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2170 rm -f conftest.val | |
2171 | |
2172 fi | |
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2174 as_fn_set_status $ac_retval | |
2175 | |
2176 } # ac_fn_c_compute_int | |
2177 cat >config.log <<_ACEOF | |
2178 This file contains any messages produced by compilers while | |
2179 running configure, to aid debugging if configure makes a mistake. | |
2180 | |
2181 It was created by $as_me, which was | |
2182 generated by GNU Autoconf 2.69. Invocation command line was | |
2183 | |
2184 $ $0 $@ | |
2185 | |
2186 _ACEOF | |
2187 exec 5>>config.log | |
2188 { | |
2189 cat <<_ASUNAME | |
2190 ## --------- ## | |
2191 ## Platform. ## | |
2192 ## --------- ## | |
2193 | |
2194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2195 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2196 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2197 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2198 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2199 | |
2200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2202 | |
2203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2206 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2210 | |
2211 _ASUNAME | |
2212 | |
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2214 for as_dir in $PATH | |
2215 do | |
2216 IFS=$as_save_IFS | |
2217 test -z "$as_dir" && as_dir=. | |
2218 $as_echo "PATH: $as_dir" | |
2219 done | |
2220 IFS=$as_save_IFS | |
2221 | |
2222 } >&5 | |
2223 | |
2224 cat >&5 <<_ACEOF | |
2225 | |
2226 | |
2227 ## ----------- ## | |
2228 ## Core tests. ## | |
2229 ## ----------- ## | |
2230 | |
2231 _ACEOF | |
2232 | |
2233 | |
2234 # Keep a trace of the command line. | |
2235 # Strip out --no-create and --no-recursion so they do not pile up. | |
2236 # Strip out --silent because we don't want to record it for future runs. | |
2237 # Also quote any args containing shell meta-characters. | |
2238 # Make two passes to allow for proper duplicate-argument suppression. | |
2239 ac_configure_args= | |
2240 ac_configure_args0= | |
2241 ac_configure_args1= | |
2242 ac_must_keep_next=false | |
2243 for ac_pass in 1 2 | |
2244 do | |
2245 for ac_arg | |
2246 do | |
2247 case $ac_arg in | |
2248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2250 | -silent | --silent | --silen | --sile | --sil) | |
2251 continue ;; | |
2252 *\'*) | |
2253 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2254 esac | |
2255 case $ac_pass in | |
2256 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2257 2) | |
2258 as_fn_append ac_configure_args1 " '$ac_arg'" | |
2259 if test $ac_must_keep_next = true; then | |
2260 ac_must_keep_next=false # Got value, back to normal. | |
2261 else | |
2262 case $ac_arg in | |
2263 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2266 | -with-* | --with-* | -without-* | --without-* | --x) | |
2267 case "$ac_configure_args0 " in | |
2268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2269 esac | |
2270 ;; | |
2271 -* ) ac_must_keep_next=true ;; | |
2272 esac | |
2273 fi | |
2274 as_fn_append ac_configure_args " '$ac_arg'" | |
2275 ;; | |
2276 esac | |
2277 done | |
2278 done | |
2279 { ac_configure_args0=; unset ac_configure_args0;} | |
2280 { ac_configure_args1=; unset ac_configure_args1;} | |
2281 | |
2282 # When interrupted or exit'd, cleanup temporary files, and complete | |
2283 # config.log. We remove comments because anyway the quotes in there | |
2284 # would cause problems or look ugly. | |
2285 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2286 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2287 trap 'exit_status=$? | |
2288 # Save into config.log some information that might help in debugging. | |
2289 { | |
2290 echo | |
2291 | |
2292 $as_echo "## ---------------- ## | |
2293 ## Cache variables. ## | |
2294 ## ---------------- ##" | |
2295 echo | |
2296 # The following way of writing the cache mishandles newlines in values, | |
2297 ( | |
2298 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2299 eval ac_val=\$$ac_var | |
2300 case $ac_val in #( | |
2301 *${as_nl}*) | |
2302 case $ac_var in #( | |
2303 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2304 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2305 esac | |
2306 case $ac_var in #( | |
2307 _ | IFS | as_nl) ;; #( | |
2308 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2309 *) { eval $ac_var=; unset $ac_var;} ;; | |
2310 esac ;; | |
2311 esac | |
2312 done | |
2313 (set) 2>&1 | | |
2314 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2315 *${as_nl}ac_space=\ *) | |
2316 sed -n \ | |
2317 "s/'\''/'\''\\\\'\'''\''/g; | |
2318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2319 ;; #( | |
2320 *) | |
2321 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2322 ;; | |
2323 esac | | |
2324 sort | |
2325 ) | |
2326 echo | |
2327 | |
2328 $as_echo "## ----------------- ## | |
2329 ## Output variables. ## | |
2330 ## ----------------- ##" | |
2331 echo | |
2332 for ac_var in $ac_subst_vars | |
2333 do | |
2334 eval ac_val=\$$ac_var | |
2335 case $ac_val in | |
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2337 esac | |
2338 $as_echo "$ac_var='\''$ac_val'\''" | |
2339 done | sort | |
2340 echo | |
2341 | |
2342 if test -n "$ac_subst_files"; then | |
2343 $as_echo "## ------------------- ## | |
2344 ## File substitutions. ## | |
2345 ## ------------------- ##" | |
2346 echo | |
2347 for ac_var in $ac_subst_files | |
2348 do | |
2349 eval ac_val=\$$ac_var | |
2350 case $ac_val in | |
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2352 esac | |
2353 $as_echo "$ac_var='\''$ac_val'\''" | |
2354 done | sort | |
2355 echo | |
2356 fi | |
2357 | |
2358 if test -s confdefs.h; then | |
2359 $as_echo "## ----------- ## | |
2360 ## confdefs.h. ## | |
2361 ## ----------- ##" | |
2362 echo | |
2363 cat confdefs.h | |
2364 echo | |
2365 fi | |
2366 test "$ac_signal" != 0 && | |
2367 $as_echo "$as_me: caught signal $ac_signal" | |
2368 $as_echo "$as_me: exit $exit_status" | |
2369 } >&5 | |
2370 rm -f core *.core core.conftest.* && | |
2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2372 exit $exit_status | |
2373 ' 0 | |
2374 for ac_signal in 1 2 13 15; do | |
2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2376 done | |
2377 ac_signal=0 | |
2378 | |
2379 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2380 rm -f -r conftest* confdefs.h | |
2381 | |
2382 $as_echo "/* confdefs.h */" > confdefs.h | |
2383 | |
2384 # Predefined preprocessor variables. | |
2385 | |
2386 cat >>confdefs.h <<_ACEOF | |
2387 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2388 _ACEOF | |
2389 | |
2390 cat >>confdefs.h <<_ACEOF | |
2391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2392 _ACEOF | |
2393 | |
2394 cat >>confdefs.h <<_ACEOF | |
2395 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2396 _ACEOF | |
2397 | |
2398 cat >>confdefs.h <<_ACEOF | |
2399 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2400 _ACEOF | |
2401 | |
2402 cat >>confdefs.h <<_ACEOF | |
2403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2404 _ACEOF | |
2405 | |
2406 cat >>confdefs.h <<_ACEOF | |
2407 #define PACKAGE_URL "$PACKAGE_URL" | |
2408 _ACEOF | |
2409 | |
2410 | |
2411 # Let the site file select an alternate cache file if it wants to. | |
2412 # Prefer an explicitly selected file to automatically selected ones. | |
2413 ac_site_file1=NONE | |
2414 ac_site_file2=NONE | |
2415 if test -n "$CONFIG_SITE"; then | |
2416 # We do not want a PATH search for config.site. | |
2417 case $CONFIG_SITE in #(( | |
2418 -*) ac_site_file1=./$CONFIG_SITE;; | |
2419 */*) ac_site_file1=$CONFIG_SITE;; | |
2420 *) ac_site_file1=./$CONFIG_SITE;; | |
2421 esac | |
2422 elif test "x$prefix" != xNONE; then | |
2423 ac_site_file1=$prefix/share/config.site | |
2424 ac_site_file2=$prefix/etc/config.site | |
2425 else | |
2426 ac_site_file1=$ac_default_prefix/share/config.site | |
2427 ac_site_file2=$ac_default_prefix/etc/config.site | |
2428 fi | |
2429 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2430 do | |
2431 test "x$ac_site_file" = xNONE && continue | |
2432 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2434 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2435 sed 's/^/| /' "$ac_site_file" >&5 | |
2436 . "$ac_site_file" \ | |
2437 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2439 as_fn_error $? "failed to load site script $ac_site_file | |
2440 See \`config.log' for more details" "$LINENO" 5; } | |
2441 fi | |
2442 done | |
2443 | |
2444 if test -r "$cache_file"; then | |
2445 # Some versions of bash will fail to source /dev/null (special files | |
2446 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2447 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2449 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2450 case $cache_file in | |
2451 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2452 *) . "./$cache_file";; | |
2453 esac | |
2454 fi | |
2455 else | |
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2457 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2458 >$cache_file | |
2459 fi | |
2460 | |
2461 # Check that the precious variables saved in the cache have kept the same | |
2462 # value. | |
2463 ac_cache_corrupted=false | |
2464 for ac_var in $ac_precious_vars; do | |
2465 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2466 eval ac_new_set=\$ac_env_${ac_var}_set | |
2467 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2468 eval ac_new_val=\$ac_env_${ac_var}_value | |
2469 case $ac_old_set,$ac_new_set in | |
2470 set,) | |
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2472 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2473 ac_cache_corrupted=: ;; | |
2474 ,set) | |
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2476 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2477 ac_cache_corrupted=: ;; | |
2478 ,);; | |
2479 *) | |
2480 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2481 # differences in whitespace do not lead to failure. | |
2482 ac_old_val_w=`echo x $ac_old_val` | |
2483 ac_new_val_w=`echo x $ac_new_val` | |
2484 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2486 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2487 ac_cache_corrupted=: | |
2488 else | |
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2490 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2491 eval $ac_var=\$ac_old_val | |
2492 fi | |
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2494 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2496 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2497 fi;; | |
2498 esac | |
2499 # Pass precious variables to config.status. | |
2500 if test "$ac_new_set" = set; then | |
2501 case $ac_new_val in | |
2502 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2503 *) ac_arg=$ac_var=$ac_new_val ;; | |
2504 esac | |
2505 case " $ac_configure_args " in | |
2506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2507 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2508 esac | |
2509 fi | |
2510 done | |
2511 if $ac_cache_corrupted; then | |
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2515 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2516 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2517 fi | |
2518 ## -------------------- ## | |
2519 ## Main body of script. ## | |
2520 ## -------------------- ## | |
2521 | |
2522 ac_ext=c | |
2523 ac_cpp='$CPP $CPPFLAGS' | |
2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2527 | |
2528 | |
2529 | |
2530 ac_aux_dir= | |
2531 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2532 if test -f "$ac_dir/install-sh"; then | |
2533 ac_aux_dir=$ac_dir | |
2534 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2535 break | |
2536 elif test -f "$ac_dir/install.sh"; then | |
2537 ac_aux_dir=$ac_dir | |
2538 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2539 break | |
2540 elif test -f "$ac_dir/shtool"; then | |
2541 ac_aux_dir=$ac_dir | |
2542 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2543 break | |
2544 fi | |
2545 done | |
2546 if test -z "$ac_aux_dir"; then | |
2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2548 fi | |
2549 | |
2550 # These three variables are undocumented and unsupported, | |
2551 # and are intended to be withdrawn in a future Autoconf release. | |
2552 # They can cause serious problems if a builder's source tree is in a directory | |
2553 # whose full name contains unusual characters. | |
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2557 | |
2558 | |
2559 # Make sure we can run config.sub. | |
2560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2561 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2562 | |
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2564 $as_echo_n "checking build system type... " >&6; } | |
2565 if ${ac_cv_build+:} false; then : | |
2566 $as_echo_n "(cached) " >&6 | |
2567 else | |
2568 ac_build_alias=$build_alias | |
2569 test "x$ac_build_alias" = x && | |
2570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2571 test "x$ac_build_alias" = x && | |
2572 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2575 | |
2576 fi | |
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2578 $as_echo "$ac_cv_build" >&6; } | |
2579 case $ac_cv_build in | |
2580 *-*-*) ;; | |
2581 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2582 esac | |
2583 build=$ac_cv_build | |
2584 ac_save_IFS=$IFS; IFS='-' | |
2585 set x $ac_cv_build | |
2586 shift | |
2587 build_cpu=$1 | |
2588 build_vendor=$2 | |
2589 shift; shift | |
2590 # Remember, the first character of IFS is used to create $*, | |
2591 # except with old shells: | |
2592 build_os=$* | |
2593 IFS=$ac_save_IFS | |
2594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2595 | |
2596 | |
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2598 $as_echo_n "checking host system type... " >&6; } | |
2599 if ${ac_cv_host+:} false; then : | |
2600 $as_echo_n "(cached) " >&6 | |
2601 else | |
2602 if test "x$host_alias" = x; then | |
2603 ac_cv_host=$ac_cv_build | |
2604 else | |
2605 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2607 fi | |
2608 | |
2609 fi | |
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2611 $as_echo "$ac_cv_host" >&6; } | |
2612 case $ac_cv_host in | |
2613 *-*-*) ;; | |
2614 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2615 esac | |
2616 host=$ac_cv_host | |
2617 ac_save_IFS=$IFS; IFS='-' | |
2618 set x $ac_cv_host | |
2619 shift | |
2620 host_cpu=$1 | |
2621 host_vendor=$2 | |
2622 shift; shift | |
2623 # Remember, the first character of IFS is used to create $*, | |
2624 # except with old shells: | |
2625 host_os=$* | |
2626 IFS=$ac_save_IFS | |
2627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2628 | |
2629 | |
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2631 $as_echo_n "checking target system type... " >&6; } | |
2632 if ${ac_cv_target+:} false; then : | |
2633 $as_echo_n "(cached) " >&6 | |
2634 else | |
2635 if test "x$target_alias" = x; then | |
2636 ac_cv_target=$ac_cv_host | |
2637 else | |
2638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2640 fi | |
2641 | |
2642 fi | |
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2644 $as_echo "$ac_cv_target" >&6; } | |
2645 case $ac_cv_target in | |
2646 *-*-*) ;; | |
2647 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2648 esac | |
2649 target=$ac_cv_target | |
2650 ac_save_IFS=$IFS; IFS='-' | |
2651 set x $ac_cv_target | |
2652 shift | |
2653 target_cpu=$1 | |
2654 target_vendor=$2 | |
2655 shift; shift | |
2656 # Remember, the first character of IFS is used to create $*, | |
2657 # except with old shells: | |
2658 target_os=$* | |
2659 IFS=$ac_save_IFS | |
2660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2661 | |
2662 | |
2663 # The aliases save the names the user supplied, while $host etc. | |
2664 # will get canonicalized. | |
2665 test -n "$target_alias" && | |
2666 test "$program_prefix$program_suffix$program_transform_name" = \ | |
2667 NONENONEs,x,x, && | |
2668 program_prefix=${target_alias}- | |
2669 | |
2670 | |
2671 | |
2672 # Check whether --with-alsa was given. | |
2673 if test "${with_alsa+set}" = set; then : | |
2674 withval=$with_alsa; with_alsa=$withval | |
2675 fi | |
2676 | |
2677 | |
2678 | |
2679 # Check whether --with-jack was given. | |
2680 if test "${with_jack+set}" = set; then : | |
2681 withval=$with_jack; with_jack=$withval | |
2682 fi | |
2683 | |
2684 | |
2685 | |
2686 # Check whether --with-oss was given. | |
2687 if test "${with_oss+set}" = set; then : | |
2688 withval=$with_oss; with_oss=$withval | |
2689 fi | |
2690 | |
2691 | |
2692 | |
2693 # Check whether --with-asihpi was given. | |
2694 if test "${with_asihpi+set}" = set; then : | |
2695 withval=$with_asihpi; with_asihpi=$withval | |
2696 fi | |
2697 | |
2698 | |
2699 | |
2700 # Check whether --with-winapi was given. | |
2701 if test "${with_winapi+set}" = set; then : | |
2702 withval=$with_winapi; with_winapi=$withval | |
2703 else | |
2704 with_winapi="wmme" | |
2705 fi | |
2706 | |
2707 case "$target_os" in *mingw* | *cygwin*) | |
2708 with_wmme=no | |
2709 with_directx=no | |
2710 with_asio=no | |
2711 with_wasapi=no | |
2712 with_wdmks=no | |
2713 for api in $(echo $with_winapi | sed 's/,/ /g'); do | |
2714 case "$api" in | |
2715 wmme|directx|asio|wasapi|wdmks) | |
2716 eval with_$api=yes | |
2717 ;; | |
2718 *) | |
2719 as_fn_error $? "unknown Windows API \"$api\" (do you need --help?)" "$LINENO" 5 | |
2720 ;; | |
2721 esac | |
2722 done | |
2723 ;; | |
2724 esac | |
2725 | |
2726 | |
2727 # Check whether --with-asiodir was given. | |
2728 if test "${with_asiodir+set}" = set; then : | |
2729 withval=$with_asiodir; with_asiodir=$withval | |
2730 else | |
2731 with_asiodir="/usr/local/asiosdk2" | |
2732 fi | |
2733 | |
2734 | |
2735 | |
2736 # Check whether --with-dxdir was given. | |
2737 if test "${with_dxdir+set}" = set; then : | |
2738 withval=$with_dxdir; with_dxdir=$withval | |
2739 else | |
2740 with_dxdir="/usr/local/dx7sdk" | |
2741 fi | |
2742 | |
2743 | |
2744 debug_output=no | |
2745 # Check whether --enable-debug-output was given. | |
2746 if test "${enable_debug_output+set}" = set; then : | |
2747 enableval=$enable_debug_output; if test "x$enableval" != "xno" ; then | |
2748 | |
2749 $as_echo "#define PA_ENABLE_DEBUG_OUTPUT /**/" >>confdefs.h | |
2750 | |
2751 debug_output=yes | |
2752 fi | |
2753 | |
2754 fi | |
2755 | |
2756 | |
2757 # Check whether --enable-cxx was given. | |
2758 if test "${enable_cxx+set}" = set; then : | |
2759 enableval=$enable_cxx; enable_cxx=$enableval | |
2760 else | |
2761 enable_cxx="no" | |
2762 fi | |
2763 | |
2764 | |
2765 # Check whether --enable-mac-debug was given. | |
2766 if test "${enable_mac_debug+set}" = set; then : | |
2767 enableval=$enable_mac_debug; enable_mac_debug=$enableval | |
2768 else | |
2769 enable_mac_debug="no" | |
2770 fi | |
2771 | |
2772 | |
2773 # Check whether --enable-mac-universal was given. | |
2774 if test "${enable_mac_universal+set}" = set; then : | |
2775 enableval=$enable_mac_universal; enable_mac_universal=$enableval | |
2776 else | |
2777 enable_mac_universal="yes" | |
2778 fi | |
2779 | |
2780 | |
2781 | |
2782 # Check whether --with-host_os was given. | |
2783 if test "${with_host_os+set}" = set; then : | |
2784 withval=$with_host_os; host_os=$withval | |
2785 fi | |
2786 | |
2787 | |
2788 | |
2789 ac_ext=c | |
2790 ac_cpp='$CPP $CPPFLAGS' | |
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2794 if test -n "$ac_tool_prefix"; then | |
2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2798 $as_echo_n "checking for $ac_word... " >&6; } | |
2799 if ${ac_cv_prog_CC+:} false; then : | |
2800 $as_echo_n "(cached) " >&6 | |
2801 else | |
2802 if test -n "$CC"; then | |
2803 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2804 else | |
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2806 for as_dir in $PATH | |
2807 do | |
2808 IFS=$as_save_IFS | |
2809 test -z "$as_dir" && as_dir=. | |
2810 for ac_exec_ext in '' $ac_executable_extensions; do | |
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2812 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2814 break 2 | |
2815 fi | |
2816 done | |
2817 done | |
2818 IFS=$as_save_IFS | |
2819 | |
2820 fi | |
2821 fi | |
2822 CC=$ac_cv_prog_CC | |
2823 if test -n "$CC"; then | |
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2825 $as_echo "$CC" >&6; } | |
2826 else | |
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2828 $as_echo "no" >&6; } | |
2829 fi | |
2830 | |
2831 | |
2832 fi | |
2833 if test -z "$ac_cv_prog_CC"; then | |
2834 ac_ct_CC=$CC | |
2835 # Extract the first word of "gcc", so it can be a program name with args. | |
2836 set dummy gcc; ac_word=$2 | |
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2838 $as_echo_n "checking for $ac_word... " >&6; } | |
2839 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2840 $as_echo_n "(cached) " >&6 | |
2841 else | |
2842 if test -n "$ac_ct_CC"; then | |
2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2844 else | |
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2846 for as_dir in $PATH | |
2847 do | |
2848 IFS=$as_save_IFS | |
2849 test -z "$as_dir" && as_dir=. | |
2850 for ac_exec_ext in '' $ac_executable_extensions; do | |
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2852 ac_cv_prog_ac_ct_CC="gcc" | |
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2854 break 2 | |
2855 fi | |
2856 done | |
2857 done | |
2858 IFS=$as_save_IFS | |
2859 | |
2860 fi | |
2861 fi | |
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2863 if test -n "$ac_ct_CC"; then | |
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2865 $as_echo "$ac_ct_CC" >&6; } | |
2866 else | |
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2868 $as_echo "no" >&6; } | |
2869 fi | |
2870 | |
2871 if test "x$ac_ct_CC" = x; then | |
2872 CC="" | |
2873 else | |
2874 case $cross_compiling:$ac_tool_warned in | |
2875 yes:) | |
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2878 ac_tool_warned=yes ;; | |
2879 esac | |
2880 CC=$ac_ct_CC | |
2881 fi | |
2882 else | |
2883 CC="$ac_cv_prog_CC" | |
2884 fi | |
2885 | |
2886 if test -z "$CC"; then | |
2887 if test -n "$ac_tool_prefix"; then | |
2888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2889 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2891 $as_echo_n "checking for $ac_word... " >&6; } | |
2892 if ${ac_cv_prog_CC+:} false; then : | |
2893 $as_echo_n "(cached) " >&6 | |
2894 else | |
2895 if test -n "$CC"; then | |
2896 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2897 else | |
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2899 for as_dir in $PATH | |
2900 do | |
2901 IFS=$as_save_IFS | |
2902 test -z "$as_dir" && as_dir=. | |
2903 for ac_exec_ext in '' $ac_executable_extensions; do | |
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2905 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2907 break 2 | |
2908 fi | |
2909 done | |
2910 done | |
2911 IFS=$as_save_IFS | |
2912 | |
2913 fi | |
2914 fi | |
2915 CC=$ac_cv_prog_CC | |
2916 if test -n "$CC"; then | |
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2918 $as_echo "$CC" >&6; } | |
2919 else | |
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2921 $as_echo "no" >&6; } | |
2922 fi | |
2923 | |
2924 | |
2925 fi | |
2926 fi | |
2927 if test -z "$CC"; then | |
2928 # Extract the first word of "cc", so it can be a program name with args. | |
2929 set dummy cc; ac_word=$2 | |
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2931 $as_echo_n "checking for $ac_word... " >&6; } | |
2932 if ${ac_cv_prog_CC+:} false; then : | |
2933 $as_echo_n "(cached) " >&6 | |
2934 else | |
2935 if test -n "$CC"; then | |
2936 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2937 else | |
2938 ac_prog_rejected=no | |
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2940 for as_dir in $PATH | |
2941 do | |
2942 IFS=$as_save_IFS | |
2943 test -z "$as_dir" && as_dir=. | |
2944 for ac_exec_ext in '' $ac_executable_extensions; do | |
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2947 ac_prog_rejected=yes | |
2948 continue | |
2949 fi | |
2950 ac_cv_prog_CC="cc" | |
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2952 break 2 | |
2953 fi | |
2954 done | |
2955 done | |
2956 IFS=$as_save_IFS | |
2957 | |
2958 if test $ac_prog_rejected = yes; then | |
2959 # We found a bogon in the path, so make sure we never use it. | |
2960 set dummy $ac_cv_prog_CC | |
2961 shift | |
2962 if test $# != 0; then | |
2963 # We chose a different compiler from the bogus one. | |
2964 # However, it has the same basename, so the bogon will be chosen | |
2965 # first if we set CC to just the basename; use the full file name. | |
2966 shift | |
2967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2968 fi | |
2969 fi | |
2970 fi | |
2971 fi | |
2972 CC=$ac_cv_prog_CC | |
2973 if test -n "$CC"; then | |
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2975 $as_echo "$CC" >&6; } | |
2976 else | |
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2978 $as_echo "no" >&6; } | |
2979 fi | |
2980 | |
2981 | |
2982 fi | |
2983 if test -z "$CC"; then | |
2984 if test -n "$ac_tool_prefix"; then | |
2985 for ac_prog in cl.exe | |
2986 do | |
2987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2990 $as_echo_n "checking for $ac_word... " >&6; } | |
2991 if ${ac_cv_prog_CC+:} false; then : | |
2992 $as_echo_n "(cached) " >&6 | |
2993 else | |
2994 if test -n "$CC"; then | |
2995 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2996 else | |
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2998 for as_dir in $PATH | |
2999 do | |
3000 IFS=$as_save_IFS | |
3001 test -z "$as_dir" && as_dir=. | |
3002 for ac_exec_ext in '' $ac_executable_extensions; do | |
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3006 break 2 | |
3007 fi | |
3008 done | |
3009 done | |
3010 IFS=$as_save_IFS | |
3011 | |
3012 fi | |
3013 fi | |
3014 CC=$ac_cv_prog_CC | |
3015 if test -n "$CC"; then | |
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3017 $as_echo "$CC" >&6; } | |
3018 else | |
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3020 $as_echo "no" >&6; } | |
3021 fi | |
3022 | |
3023 | |
3024 test -n "$CC" && break | |
3025 done | |
3026 fi | |
3027 if test -z "$CC"; then | |
3028 ac_ct_CC=$CC | |
3029 for ac_prog in cl.exe | |
3030 do | |
3031 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3032 set dummy $ac_prog; ac_word=$2 | |
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3034 $as_echo_n "checking for $ac_word... " >&6; } | |
3035 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3036 $as_echo_n "(cached) " >&6 | |
3037 else | |
3038 if test -n "$ac_ct_CC"; then | |
3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3040 else | |
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3042 for as_dir in $PATH | |
3043 do | |
3044 IFS=$as_save_IFS | |
3045 test -z "$as_dir" && as_dir=. | |
3046 for ac_exec_ext in '' $ac_executable_extensions; do | |
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3048 ac_cv_prog_ac_ct_CC="$ac_prog" | |
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3050 break 2 | |
3051 fi | |
3052 done | |
3053 done | |
3054 IFS=$as_save_IFS | |
3055 | |
3056 fi | |
3057 fi | |
3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3059 if test -n "$ac_ct_CC"; then | |
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3061 $as_echo "$ac_ct_CC" >&6; } | |
3062 else | |
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3064 $as_echo "no" >&6; } | |
3065 fi | |
3066 | |
3067 | |
3068 test -n "$ac_ct_CC" && break | |
3069 done | |
3070 | |
3071 if test "x$ac_ct_CC" = x; then | |
3072 CC="" | |
3073 else | |
3074 case $cross_compiling:$ac_tool_warned in | |
3075 yes:) | |
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3078 ac_tool_warned=yes ;; | |
3079 esac | |
3080 CC=$ac_ct_CC | |
3081 fi | |
3082 fi | |
3083 | |
3084 fi | |
3085 | |
3086 | |
3087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3089 as_fn_error $? "no acceptable C compiler found in \$PATH | |
3090 See \`config.log' for more details" "$LINENO" 5; } | |
3091 | |
3092 # Provide some information about the compiler. | |
3093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3094 set X $ac_compile | |
3095 ac_compiler=$2 | |
3096 for ac_option in --version -v -V -qversion; do | |
3097 { { ac_try="$ac_compiler $ac_option >&5" | |
3098 case "(($ac_try" in | |
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3100 *) ac_try_echo=$ac_try;; | |
3101 esac | |
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3103 $as_echo "$ac_try_echo"; } >&5 | |
3104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3105 ac_status=$? | |
3106 if test -s conftest.err; then | |
3107 sed '10a\ | |
3108 ... rest of stderr output deleted ... | |
3109 10q' conftest.err >conftest.er1 | |
3110 cat conftest.er1 >&5 | |
3111 fi | |
3112 rm -f conftest.er1 conftest.err | |
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3114 test $ac_status = 0; } | |
3115 done | |
3116 | |
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3118 /* end confdefs.h. */ | |
3119 | |
3120 int | |
3121 main () | |
3122 { | |
3123 | |
3124 ; | |
3125 return 0; | |
3126 } | |
3127 _ACEOF | |
3128 ac_clean_files_save=$ac_clean_files | |
3129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3130 # Try to create an executable without -o first, disregard a.out. | |
3131 # It will help us diagnose broken compilers, and finding out an intuition | |
3132 # of exeext. | |
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3134 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3135 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3136 | |
3137 # The possible output files: | |
3138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3139 | |
3140 ac_rmfiles= | |
3141 for ac_file in $ac_files | |
3142 do | |
3143 case $ac_file in | |
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3145 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3146 esac | |
3147 done | |
3148 rm -f $ac_rmfiles | |
3149 | |
3150 if { { ac_try="$ac_link_default" | |
3151 case "(($ac_try" in | |
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3153 *) ac_try_echo=$ac_try;; | |
3154 esac | |
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3156 $as_echo "$ac_try_echo"; } >&5 | |
3157 (eval "$ac_link_default") 2>&5 | |
3158 ac_status=$? | |
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3160 test $ac_status = 0; }; then : | |
3161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3163 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3164 # so that the user can short-circuit this test for compilers unknown to | |
3165 # Autoconf. | |
3166 for ac_file in $ac_files '' | |
3167 do | |
3168 test -f "$ac_file" || continue | |
3169 case $ac_file in | |
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3171 ;; | |
3172 [ab].out ) | |
3173 # We found the default executable, but exeext='' is most | |
3174 # certainly right. | |
3175 break;; | |
3176 *.* ) | |
3177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3178 then :; else | |
3179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3180 fi | |
3181 # We set ac_cv_exeext here because the later test for it is not | |
3182 # safe: cross compilers may not add the suffix if given an `-o' | |
3183 # argument, so we may need to know it at that point already. | |
3184 # Even if this section looks crufty: it has the advantage of | |
3185 # actually working. | |
3186 break;; | |
3187 * ) | |
3188 break;; | |
3189 esac | |
3190 done | |
3191 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3192 | |
3193 else | |
3194 ac_file='' | |
3195 fi | |
3196 if test -z "$ac_file"; then : | |
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3198 $as_echo "no" >&6; } | |
3199 $as_echo "$as_me: failed program was:" >&5 | |
3200 sed 's/^/| /' conftest.$ac_ext >&5 | |
3201 | |
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3204 as_fn_error 77 "C compiler cannot create executables | |
3205 See \`config.log' for more details" "$LINENO" 5; } | |
3206 else | |
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3208 $as_echo "yes" >&6; } | |
3209 fi | |
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3211 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3213 $as_echo "$ac_file" >&6; } | |
3214 ac_exeext=$ac_cv_exeext | |
3215 | |
3216 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3217 ac_clean_files=$ac_clean_files_save | |
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3219 $as_echo_n "checking for suffix of executables... " >&6; } | |
3220 if { { ac_try="$ac_link" | |
3221 case "(($ac_try" in | |
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3223 *) ac_try_echo=$ac_try;; | |
3224 esac | |
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3226 $as_echo "$ac_try_echo"; } >&5 | |
3227 (eval "$ac_link") 2>&5 | |
3228 ac_status=$? | |
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3230 test $ac_status = 0; }; then : | |
3231 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3232 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3233 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3234 # `rm'. | |
3235 for ac_file in conftest.exe conftest conftest.*; do | |
3236 test -f "$ac_file" || continue | |
3237 case $ac_file in | |
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3240 break;; | |
3241 * ) break;; | |
3242 esac | |
3243 done | |
3244 else | |
3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3247 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3248 See \`config.log' for more details" "$LINENO" 5; } | |
3249 fi | |
3250 rm -f conftest conftest$ac_cv_exeext | |
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3252 $as_echo "$ac_cv_exeext" >&6; } | |
3253 | |
3254 rm -f conftest.$ac_ext | |
3255 EXEEXT=$ac_cv_exeext | |
3256 ac_exeext=$EXEEXT | |
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3258 /* end confdefs.h. */ | |
3259 #include <stdio.h> | |
3260 int | |
3261 main () | |
3262 { | |
3263 FILE *f = fopen ("conftest.out", "w"); | |
3264 return ferror (f) || fclose (f) != 0; | |
3265 | |
3266 ; | |
3267 return 0; | |
3268 } | |
3269 _ACEOF | |
3270 ac_clean_files="$ac_clean_files conftest.out" | |
3271 # Check that the compiler produces executables we can run. If not, either | |
3272 # the compiler is broken, or we cross compile. | |
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3274 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3275 if test "$cross_compiling" != yes; then | |
3276 { { ac_try="$ac_link" | |
3277 case "(($ac_try" in | |
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3279 *) ac_try_echo=$ac_try;; | |
3280 esac | |
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3282 $as_echo "$ac_try_echo"; } >&5 | |
3283 (eval "$ac_link") 2>&5 | |
3284 ac_status=$? | |
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3286 test $ac_status = 0; } | |
3287 if { ac_try='./conftest$ac_cv_exeext' | |
3288 { { case "(($ac_try" in | |
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3290 *) ac_try_echo=$ac_try;; | |
3291 esac | |
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3293 $as_echo "$ac_try_echo"; } >&5 | |
3294 (eval "$ac_try") 2>&5 | |
3295 ac_status=$? | |
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3297 test $ac_status = 0; }; }; then | |
3298 cross_compiling=no | |
3299 else | |
3300 if test "$cross_compiling" = maybe; then | |
3301 cross_compiling=yes | |
3302 else | |
3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3305 as_fn_error $? "cannot run C compiled programs. | |
3306 If you meant to cross compile, use \`--host'. | |
3307 See \`config.log' for more details" "$LINENO" 5; } | |
3308 fi | |
3309 fi | |
3310 fi | |
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3312 $as_echo "$cross_compiling" >&6; } | |
3313 | |
3314 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3315 ac_clean_files=$ac_clean_files_save | |
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3317 $as_echo_n "checking for suffix of object files... " >&6; } | |
3318 if ${ac_cv_objext+:} false; then : | |
3319 $as_echo_n "(cached) " >&6 | |
3320 else | |
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3322 /* end confdefs.h. */ | |
3323 | |
3324 int | |
3325 main () | |
3326 { | |
3327 | |
3328 ; | |
3329 return 0; | |
3330 } | |
3331 _ACEOF | |
3332 rm -f conftest.o conftest.obj | |
3333 if { { ac_try="$ac_compile" | |
3334 case "(($ac_try" in | |
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3336 *) ac_try_echo=$ac_try;; | |
3337 esac | |
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3339 $as_echo "$ac_try_echo"; } >&5 | |
3340 (eval "$ac_compile") 2>&5 | |
3341 ac_status=$? | |
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3343 test $ac_status = 0; }; then : | |
3344 for ac_file in conftest.o conftest.obj conftest.*; do | |
3345 test -f "$ac_file" || continue; | |
3346 case $ac_file in | |
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3349 break;; | |
3350 esac | |
3351 done | |
3352 else | |
3353 $as_echo "$as_me: failed program was:" >&5 | |
3354 sed 's/^/| /' conftest.$ac_ext >&5 | |
3355 | |
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3358 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3359 See \`config.log' for more details" "$LINENO" 5; } | |
3360 fi | |
3361 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3362 fi | |
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3364 $as_echo "$ac_cv_objext" >&6; } | |
3365 OBJEXT=$ac_cv_objext | |
3366 ac_objext=$OBJEXT | |
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3368 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3369 if ${ac_cv_c_compiler_gnu+:} false; then : | |
3370 $as_echo_n "(cached) " >&6 | |
3371 else | |
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3373 /* end confdefs.h. */ | |
3374 | |
3375 int | |
3376 main () | |
3377 { | |
3378 #ifndef __GNUC__ | |
3379 choke me | |
3380 #endif | |
3381 | |
3382 ; | |
3383 return 0; | |
3384 } | |
3385 _ACEOF | |
3386 if ac_fn_c_try_compile "$LINENO"; then : | |
3387 ac_compiler_gnu=yes | |
3388 else | |
3389 ac_compiler_gnu=no | |
3390 fi | |
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3392 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3393 | |
3394 fi | |
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3396 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3397 if test $ac_compiler_gnu = yes; then | |
3398 GCC=yes | |
3399 else | |
3400 GCC= | |
3401 fi | |
3402 ac_test_CFLAGS=${CFLAGS+set} | |
3403 ac_save_CFLAGS=$CFLAGS | |
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3405 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3406 if ${ac_cv_prog_cc_g+:} false; then : | |
3407 $as_echo_n "(cached) " >&6 | |
3408 else | |
3409 ac_save_c_werror_flag=$ac_c_werror_flag | |
3410 ac_c_werror_flag=yes | |
3411 ac_cv_prog_cc_g=no | |
3412 CFLAGS="-g" | |
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3414 /* end confdefs.h. */ | |
3415 | |
3416 int | |
3417 main () | |
3418 { | |
3419 | |
3420 ; | |
3421 return 0; | |
3422 } | |
3423 _ACEOF | |
3424 if ac_fn_c_try_compile "$LINENO"; then : | |
3425 ac_cv_prog_cc_g=yes | |
3426 else | |
3427 CFLAGS="" | |
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3429 /* end confdefs.h. */ | |
3430 | |
3431 int | |
3432 main () | |
3433 { | |
3434 | |
3435 ; | |
3436 return 0; | |
3437 } | |
3438 _ACEOF | |
3439 if ac_fn_c_try_compile "$LINENO"; then : | |
3440 | |
3441 else | |
3442 ac_c_werror_flag=$ac_save_c_werror_flag | |
3443 CFLAGS="-g" | |
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3445 /* end confdefs.h. */ | |
3446 | |
3447 int | |
3448 main () | |
3449 { | |
3450 | |
3451 ; | |
3452 return 0; | |
3453 } | |
3454 _ACEOF | |
3455 if ac_fn_c_try_compile "$LINENO"; then : | |
3456 ac_cv_prog_cc_g=yes | |
3457 fi | |
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3459 fi | |
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3461 fi | |
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3463 ac_c_werror_flag=$ac_save_c_werror_flag | |
3464 fi | |
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3466 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3467 if test "$ac_test_CFLAGS" = set; then | |
3468 CFLAGS=$ac_save_CFLAGS | |
3469 elif test $ac_cv_prog_cc_g = yes; then | |
3470 if test "$GCC" = yes; then | |
3471 CFLAGS="-g -O2" | |
3472 else | |
3473 CFLAGS="-g" | |
3474 fi | |
3475 else | |
3476 if test "$GCC" = yes; then | |
3477 CFLAGS="-O2" | |
3478 else | |
3479 CFLAGS= | |
3480 fi | |
3481 fi | |
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3483 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3484 if ${ac_cv_prog_cc_c89+:} false; then : | |
3485 $as_echo_n "(cached) " >&6 | |
3486 else | |
3487 ac_cv_prog_cc_c89=no | |
3488 ac_save_CC=$CC | |
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3490 /* end confdefs.h. */ | |
3491 #include <stdarg.h> | |
3492 #include <stdio.h> | |
3493 struct stat; | |
3494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3495 struct buf { int x; }; | |
3496 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3497 static char *e (p, i) | |
3498 char **p; | |
3499 int i; | |
3500 { | |
3501 return p[i]; | |
3502 } | |
3503 static char *f (char * (*g) (char **, int), char **p, ...) | |
3504 { | |
3505 char *s; | |
3506 va_list v; | |
3507 va_start (v,p); | |
3508 s = g (p, va_arg (v,int)); | |
3509 va_end (v); | |
3510 return s; | |
3511 } | |
3512 | |
3513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3514 function prototypes and stuff, but not '\xHH' hex character constants. | |
3515 These don't provoke an error unfortunately, instead are silently treated | |
3516 as 'x'. The following induces an error, until -std is added to get | |
3517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3518 array size at least. It's necessary to write '\x00'==0 to get something | |
3519 that's true only with -std. */ | |
3520 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3521 | |
3522 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3523 inside strings and character constants. */ | |
3524 #define FOO(x) 'x' | |
3525 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3526 | |
3527 int test (int i, double x); | |
3528 struct s1 {int (*f) (int a);}; | |
3529 struct s2 {int (*f) (double a);}; | |
3530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3531 int argc; | |
3532 char **argv; | |
3533 int | |
3534 main () | |
3535 { | |
3536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3537 ; | |
3538 return 0; | |
3539 } | |
3540 _ACEOF | |
3541 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3543 do | |
3544 CC="$ac_save_CC $ac_arg" | |
3545 if ac_fn_c_try_compile "$LINENO"; then : | |
3546 ac_cv_prog_cc_c89=$ac_arg | |
3547 fi | |
3548 rm -f core conftest.err conftest.$ac_objext | |
3549 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3550 done | |
3551 rm -f conftest.$ac_ext | |
3552 CC=$ac_save_CC | |
3553 | |
3554 fi | |
3555 # AC_CACHE_VAL | |
3556 case "x$ac_cv_prog_cc_c89" in | |
3557 x) | |
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3559 $as_echo "none needed" >&6; } ;; | |
3560 xno) | |
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3562 $as_echo "unsupported" >&6; } ;; | |
3563 *) | |
3564 CC="$CC $ac_cv_prog_cc_c89" | |
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3566 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3567 esac | |
3568 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3569 | |
3570 fi | |
3571 | |
3572 ac_ext=c | |
3573 ac_cpp='$CPP $CPPFLAGS' | |
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3577 | |
3578 if [ "$with_asio" = "yes" ] || [ "$enable_cxx" = "yes" ] ; then | |
3579 ac_ext=cpp | |
3580 ac_cpp='$CXXCPP $CPPFLAGS' | |
3581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3584 if test -z "$CXX"; then | |
3585 if test -n "$CCC"; then | |
3586 CXX=$CCC | |
3587 else | |
3588 if test -n "$ac_tool_prefix"; then | |
3589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3590 do | |
3591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3594 $as_echo_n "checking for $ac_word... " >&6; } | |
3595 if ${ac_cv_prog_CXX+:} false; then : | |
3596 $as_echo_n "(cached) " >&6 | |
3597 else | |
3598 if test -n "$CXX"; then | |
3599 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3600 else | |
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3602 for as_dir in $PATH | |
3603 do | |
3604 IFS=$as_save_IFS | |
3605 test -z "$as_dir" && as_dir=. | |
3606 for ac_exec_ext in '' $ac_executable_extensions; do | |
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3608 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3610 break 2 | |
3611 fi | |
3612 done | |
3613 done | |
3614 IFS=$as_save_IFS | |
3615 | |
3616 fi | |
3617 fi | |
3618 CXX=$ac_cv_prog_CXX | |
3619 if test -n "$CXX"; then | |
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3621 $as_echo "$CXX" >&6; } | |
3622 else | |
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3624 $as_echo "no" >&6; } | |
3625 fi | |
3626 | |
3627 | |
3628 test -n "$CXX" && break | |
3629 done | |
3630 fi | |
3631 if test -z "$CXX"; then | |
3632 ac_ct_CXX=$CXX | |
3633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3634 do | |
3635 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3636 set dummy $ac_prog; ac_word=$2 | |
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3638 $as_echo_n "checking for $ac_word... " >&6; } | |
3639 if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
3640 $as_echo_n "(cached) " >&6 | |
3641 else | |
3642 if test -n "$ac_ct_CXX"; then | |
3643 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3644 else | |
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3646 for as_dir in $PATH | |
3647 do | |
3648 IFS=$as_save_IFS | |
3649 test -z "$as_dir" && as_dir=. | |
3650 for ac_exec_ext in '' $ac_executable_extensions; do | |
3651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3652 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3654 break 2 | |
3655 fi | |
3656 done | |
3657 done | |
3658 IFS=$as_save_IFS | |
3659 | |
3660 fi | |
3661 fi | |
3662 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3663 if test -n "$ac_ct_CXX"; then | |
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3665 $as_echo "$ac_ct_CXX" >&6; } | |
3666 else | |
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3668 $as_echo "no" >&6; } | |
3669 fi | |
3670 | |
3671 | |
3672 test -n "$ac_ct_CXX" && break | |
3673 done | |
3674 | |
3675 if test "x$ac_ct_CXX" = x; then | |
3676 CXX="g++" | |
3677 else | |
3678 case $cross_compiling:$ac_tool_warned in | |
3679 yes:) | |
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3682 ac_tool_warned=yes ;; | |
3683 esac | |
3684 CXX=$ac_ct_CXX | |
3685 fi | |
3686 fi | |
3687 | |
3688 fi | |
3689 fi | |
3690 # Provide some information about the compiler. | |
3691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3692 set X $ac_compile | |
3693 ac_compiler=$2 | |
3694 for ac_option in --version -v -V -qversion; do | |
3695 { { ac_try="$ac_compiler $ac_option >&5" | |
3696 case "(($ac_try" in | |
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3698 *) ac_try_echo=$ac_try;; | |
3699 esac | |
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3701 $as_echo "$ac_try_echo"; } >&5 | |
3702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3703 ac_status=$? | |
3704 if test -s conftest.err; then | |
3705 sed '10a\ | |
3706 ... rest of stderr output deleted ... | |
3707 10q' conftest.err >conftest.er1 | |
3708 cat conftest.er1 >&5 | |
3709 fi | |
3710 rm -f conftest.er1 conftest.err | |
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3712 test $ac_status = 0; } | |
3713 done | |
3714 | |
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3716 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3717 if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
3718 $as_echo_n "(cached) " >&6 | |
3719 else | |
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3721 /* end confdefs.h. */ | |
3722 | |
3723 int | |
3724 main () | |
3725 { | |
3726 #ifndef __GNUC__ | |
3727 choke me | |
3728 #endif | |
3729 | |
3730 ; | |
3731 return 0; | |
3732 } | |
3733 _ACEOF | |
3734 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3735 ac_compiler_gnu=yes | |
3736 else | |
3737 ac_compiler_gnu=no | |
3738 fi | |
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3740 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3741 | |
3742 fi | |
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3744 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3745 if test $ac_compiler_gnu = yes; then | |
3746 GXX=yes | |
3747 else | |
3748 GXX= | |
3749 fi | |
3750 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3751 ac_save_CXXFLAGS=$CXXFLAGS | |
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3753 $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3754 if ${ac_cv_prog_cxx_g+:} false; then : | |
3755 $as_echo_n "(cached) " >&6 | |
3756 else | |
3757 ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3758 ac_cxx_werror_flag=yes | |
3759 ac_cv_prog_cxx_g=no | |
3760 CXXFLAGS="-g" | |
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3762 /* end confdefs.h. */ | |
3763 | |
3764 int | |
3765 main () | |
3766 { | |
3767 | |
3768 ; | |
3769 return 0; | |
3770 } | |
3771 _ACEOF | |
3772 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3773 ac_cv_prog_cxx_g=yes | |
3774 else | |
3775 CXXFLAGS="" | |
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3777 /* end confdefs.h. */ | |
3778 | |
3779 int | |
3780 main () | |
3781 { | |
3782 | |
3783 ; | |
3784 return 0; | |
3785 } | |
3786 _ACEOF | |
3787 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3788 | |
3789 else | |
3790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3791 CXXFLAGS="-g" | |
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3793 /* end confdefs.h. */ | |
3794 | |
3795 int | |
3796 main () | |
3797 { | |
3798 | |
3799 ; | |
3800 return 0; | |
3801 } | |
3802 _ACEOF | |
3803 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3804 ac_cv_prog_cxx_g=yes | |
3805 fi | |
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3807 fi | |
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3809 fi | |
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3811 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3812 fi | |
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3814 $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3815 if test "$ac_test_CXXFLAGS" = set; then | |
3816 CXXFLAGS=$ac_save_CXXFLAGS | |
3817 elif test $ac_cv_prog_cxx_g = yes; then | |
3818 if test "$GXX" = yes; then | |
3819 CXXFLAGS="-g -O2" | |
3820 else | |
3821 CXXFLAGS="-g" | |
3822 fi | |
3823 else | |
3824 if test "$GXX" = yes; then | |
3825 CXXFLAGS="-O2" | |
3826 else | |
3827 CXXFLAGS= | |
3828 fi | |
3829 fi | |
3830 ac_ext=c | |
3831 ac_cpp='$CPP $CPPFLAGS' | |
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3835 | |
3836 fi | |
3837 enable_win32_dll=yes | |
3838 | |
3839 case $host in | |
3840 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
3841 if test -n "$ac_tool_prefix"; then | |
3842 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3843 set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3845 $as_echo_n "checking for $ac_word... " >&6; } | |
3846 if ${ac_cv_prog_AS+:} false; then : | |
3847 $as_echo_n "(cached) " >&6 | |
3848 else | |
3849 if test -n "$AS"; then | |
3850 ac_cv_prog_AS="$AS" # Let the user override the test. | |
3851 else | |
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3853 for as_dir in $PATH | |
3854 do | |
3855 IFS=$as_save_IFS | |
3856 test -z "$as_dir" && as_dir=. | |
3857 for ac_exec_ext in '' $ac_executable_extensions; do | |
3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3859 ac_cv_prog_AS="${ac_tool_prefix}as" | |
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3861 break 2 | |
3862 fi | |
3863 done | |
3864 done | |
3865 IFS=$as_save_IFS | |
3866 | |
3867 fi | |
3868 fi | |
3869 AS=$ac_cv_prog_AS | |
3870 if test -n "$AS"; then | |
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
3872 $as_echo "$AS" >&6; } | |
3873 else | |
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3875 $as_echo "no" >&6; } | |
3876 fi | |
3877 | |
3878 | |
3879 fi | |
3880 if test -z "$ac_cv_prog_AS"; then | |
3881 ac_ct_AS=$AS | |
3882 # Extract the first word of "as", so it can be a program name with args. | |
3883 set dummy as; ac_word=$2 | |
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3885 $as_echo_n "checking for $ac_word... " >&6; } | |
3886 if ${ac_cv_prog_ac_ct_AS+:} false; then : | |
3887 $as_echo_n "(cached) " >&6 | |
3888 else | |
3889 if test -n "$ac_ct_AS"; then | |
3890 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3891 else | |
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3893 for as_dir in $PATH | |
3894 do | |
3895 IFS=$as_save_IFS | |
3896 test -z "$as_dir" && as_dir=. | |
3897 for ac_exec_ext in '' $ac_executable_extensions; do | |
3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3899 ac_cv_prog_ac_ct_AS="as" | |
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3901 break 2 | |
3902 fi | |
3903 done | |
3904 done | |
3905 IFS=$as_save_IFS | |
3906 | |
3907 fi | |
3908 fi | |
3909 ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3910 if test -n "$ac_ct_AS"; then | |
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
3912 $as_echo "$ac_ct_AS" >&6; } | |
3913 else | |
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3915 $as_echo "no" >&6; } | |
3916 fi | |
3917 | |
3918 if test "x$ac_ct_AS" = x; then | |
3919 AS="false" | |
3920 else | |
3921 case $cross_compiling:$ac_tool_warned in | |
3922 yes:) | |
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3925 ac_tool_warned=yes ;; | |
3926 esac | |
3927 AS=$ac_ct_AS | |
3928 fi | |
3929 else | |
3930 AS="$ac_cv_prog_AS" | |
3931 fi | |
3932 | |
3933 if test -n "$ac_tool_prefix"; then | |
3934 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
3935 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3937 $as_echo_n "checking for $ac_word... " >&6; } | |
3938 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
3939 $as_echo_n "(cached) " >&6 | |
3940 else | |
3941 if test -n "$DLLTOOL"; then | |
3942 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
3943 else | |
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3945 for as_dir in $PATH | |
3946 do | |
3947 IFS=$as_save_IFS | |
3948 test -z "$as_dir" && as_dir=. | |
3949 for ac_exec_ext in '' $ac_executable_extensions; do | |
3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3951 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3953 break 2 | |
3954 fi | |
3955 done | |
3956 done | |
3957 IFS=$as_save_IFS | |
3958 | |
3959 fi | |
3960 fi | |
3961 DLLTOOL=$ac_cv_prog_DLLTOOL | |
3962 if test -n "$DLLTOOL"; then | |
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
3964 $as_echo "$DLLTOOL" >&6; } | |
3965 else | |
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3967 $as_echo "no" >&6; } | |
3968 fi | |
3969 | |
3970 | |
3971 fi | |
3972 if test -z "$ac_cv_prog_DLLTOOL"; then | |
3973 ac_ct_DLLTOOL=$DLLTOOL | |
3974 # Extract the first word of "dlltool", so it can be a program name with args. | |
3975 set dummy dlltool; ac_word=$2 | |
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3977 $as_echo_n "checking for $ac_word... " >&6; } | |
3978 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
3979 $as_echo_n "(cached) " >&6 | |
3980 else | |
3981 if test -n "$ac_ct_DLLTOOL"; then | |
3982 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
3983 else | |
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3985 for as_dir in $PATH | |
3986 do | |
3987 IFS=$as_save_IFS | |
3988 test -z "$as_dir" && as_dir=. | |
3989 for ac_exec_ext in '' $ac_executable_extensions; do | |
3990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3991 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3993 break 2 | |
3994 fi | |
3995 done | |
3996 done | |
3997 IFS=$as_save_IFS | |
3998 | |
3999 fi | |
4000 fi | |
4001 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
4002 if test -n "$ac_ct_DLLTOOL"; then | |
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
4004 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
4005 else | |
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4007 $as_echo "no" >&6; } | |
4008 fi | |
4009 | |
4010 if test "x$ac_ct_DLLTOOL" = x; then | |
4011 DLLTOOL="false" | |
4012 else | |
4013 case $cross_compiling:$ac_tool_warned in | |
4014 yes:) | |
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4017 ac_tool_warned=yes ;; | |
4018 esac | |
4019 DLLTOOL=$ac_ct_DLLTOOL | |
4020 fi | |
4021 else | |
4022 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
4023 fi | |
4024 | |
4025 if test -n "$ac_tool_prefix"; then | |
4026 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4027 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4029 $as_echo_n "checking for $ac_word... " >&6; } | |
4030 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
4031 $as_echo_n "(cached) " >&6 | |
4032 else | |
4033 if test -n "$OBJDUMP"; then | |
4034 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4035 else | |
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4037 for as_dir in $PATH | |
4038 do | |
4039 IFS=$as_save_IFS | |
4040 test -z "$as_dir" && as_dir=. | |
4041 for ac_exec_ext in '' $ac_executable_extensions; do | |
4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4043 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4045 break 2 | |
4046 fi | |
4047 done | |
4048 done | |
4049 IFS=$as_save_IFS | |
4050 | |
4051 fi | |
4052 fi | |
4053 OBJDUMP=$ac_cv_prog_OBJDUMP | |
4054 if test -n "$OBJDUMP"; then | |
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4056 $as_echo "$OBJDUMP" >&6; } | |
4057 else | |
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4059 $as_echo "no" >&6; } | |
4060 fi | |
4061 | |
4062 | |
4063 fi | |
4064 if test -z "$ac_cv_prog_OBJDUMP"; then | |
4065 ac_ct_OBJDUMP=$OBJDUMP | |
4066 # Extract the first word of "objdump", so it can be a program name with args. | |
4067 set dummy objdump; ac_word=$2 | |
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4069 $as_echo_n "checking for $ac_word... " >&6; } | |
4070 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
4071 $as_echo_n "(cached) " >&6 | |
4072 else | |
4073 if test -n "$ac_ct_OBJDUMP"; then | |
4074 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4075 else | |
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4077 for as_dir in $PATH | |
4078 do | |
4079 IFS=$as_save_IFS | |
4080 test -z "$as_dir" && as_dir=. | |
4081 for ac_exec_ext in '' $ac_executable_extensions; do | |
4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4083 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4085 break 2 | |
4086 fi | |
4087 done | |
4088 done | |
4089 IFS=$as_save_IFS | |
4090 | |
4091 fi | |
4092 fi | |
4093 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4094 if test -n "$ac_ct_OBJDUMP"; then | |
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4096 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
4097 else | |
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4099 $as_echo "no" >&6; } | |
4100 fi | |
4101 | |
4102 if test "x$ac_ct_OBJDUMP" = x; then | |
4103 OBJDUMP="false" | |
4104 else | |
4105 case $cross_compiling:$ac_tool_warned in | |
4106 yes:) | |
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4109 ac_tool_warned=yes ;; | |
4110 esac | |
4111 OBJDUMP=$ac_ct_OBJDUMP | |
4112 fi | |
4113 else | |
4114 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4115 fi | |
4116 | |
4117 ;; | |
4118 esac | |
4119 | |
4120 test -z "$AS" && AS=as | |
4121 | |
4122 | |
4123 | |
4124 | |
4125 | |
4126 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
4127 | |
4128 | |
4129 | |
4130 | |
4131 | |
4132 test -z "$OBJDUMP" && OBJDUMP=objdump | |
4133 | |
4134 | |
4135 | |
4136 | |
4137 | |
4138 | |
4139 | |
4140 case `pwd` in | |
4141 *\ * | *\ *) | |
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4143 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4144 esac | |
4145 | |
4146 | |
4147 | |
4148 macro_version='2.4' | |
4149 macro_revision='1.3293' | |
4150 | |
4151 | |
4152 | |
4153 | |
4154 | |
4155 | |
4156 | |
4157 | |
4158 | |
4159 | |
4160 | |
4161 | |
4162 | |
4163 ltmain="$ac_aux_dir/ltmain.sh" | |
4164 | |
4165 # Backslashify metacharacters that are still active within | |
4166 # double-quoted strings. | |
4167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4168 | |
4169 # Same as above, but do not quote variable references. | |
4170 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4171 | |
4172 # Sed substitution to delay expansion of an escaped shell variable in a | |
4173 # double_quote_subst'ed string. | |
4174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4175 | |
4176 # Sed substitution to delay expansion of an escaped single quote. | |
4177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4178 | |
4179 # Sed substitution to avoid accidental globbing in evaled expressions | |
4180 no_glob_subst='s/\*/\\\*/g' | |
4181 | |
4182 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4184 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4185 | |
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4187 $as_echo_n "checking how to print strings... " >&6; } | |
4188 # Test print first, because it will be a builtin if present. | |
4189 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4190 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4191 ECHO='print -r --' | |
4192 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4193 ECHO='printf %s\n' | |
4194 else | |
4195 # Use this function as a fallback that always works. | |
4196 func_fallback_echo () | |
4197 { | |
4198 eval 'cat <<_LTECHO_EOF | |
4199 $1 | |
4200 _LTECHO_EOF' | |
4201 } | |
4202 ECHO='func_fallback_echo' | |
4203 fi | |
4204 | |
4205 # func_echo_all arg... | |
4206 # Invoke $ECHO with all args, space-separated. | |
4207 func_echo_all () | |
4208 { | |
4209 $ECHO "" | |
4210 } | |
4211 | |
4212 case "$ECHO" in | |
4213 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4214 $as_echo "printf" >&6; } ;; | |
4215 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4216 $as_echo "print -r" >&6; } ;; | |
4217 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4218 $as_echo "cat" >&6; } ;; | |
4219 esac | |
4220 | |
4221 | |
4222 | |
4223 | |
4224 | |
4225 | |
4226 | |
4227 | |
4228 | |
4229 | |
4230 | |
4231 | |
4232 | |
4233 | |
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4235 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4236 if ${ac_cv_path_SED+:} false; then : | |
4237 $as_echo_n "(cached) " >&6 | |
4238 else | |
4239 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4240 for ac_i in 1 2 3 4 5 6 7; do | |
4241 ac_script="$ac_script$as_nl$ac_script" | |
4242 done | |
4243 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4244 { ac_script=; unset ac_script;} | |
4245 if test -z "$SED"; then | |
4246 ac_path_SED_found=false | |
4247 # Loop through the user's path and test for each of PROGNAME-LIST | |
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4249 for as_dir in $PATH | |
4250 do | |
4251 IFS=$as_save_IFS | |
4252 test -z "$as_dir" && as_dir=. | |
4253 for ac_prog in sed gsed; do | |
4254 for ac_exec_ext in '' $ac_executable_extensions; do | |
4255 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4256 as_fn_executable_p "$ac_path_SED" || continue | |
4257 # Check for GNU ac_path_SED and select it if it is found. | |
4258 # Check for GNU $ac_path_SED | |
4259 case `"$ac_path_SED" --version 2>&1` in | |
4260 *GNU*) | |
4261 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4262 *) | |
4263 ac_count=0 | |
4264 $as_echo_n 0123456789 >"conftest.in" | |
4265 while : | |
4266 do | |
4267 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4268 mv "conftest.tmp" "conftest.in" | |
4269 cp "conftest.in" "conftest.nl" | |
4270 $as_echo '' >> "conftest.nl" | |
4271 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4273 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4274 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4275 # Best one so far, save it but keep looking for a better one | |
4276 ac_cv_path_SED="$ac_path_SED" | |
4277 ac_path_SED_max=$ac_count | |
4278 fi | |
4279 # 10*(2^10) chars as input seems more than enough | |
4280 test $ac_count -gt 10 && break | |
4281 done | |
4282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4283 esac | |
4284 | |
4285 $ac_path_SED_found && break 3 | |
4286 done | |
4287 done | |
4288 done | |
4289 IFS=$as_save_IFS | |
4290 if test -z "$ac_cv_path_SED"; then | |
4291 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4292 fi | |
4293 else | |
4294 ac_cv_path_SED=$SED | |
4295 fi | |
4296 | |
4297 fi | |
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4299 $as_echo "$ac_cv_path_SED" >&6; } | |
4300 SED="$ac_cv_path_SED" | |
4301 rm -f conftest.sed | |
4302 | |
4303 test -z "$SED" && SED=sed | |
4304 Xsed="$SED -e 1s/^X//" | |
4305 | |
4306 | |
4307 | |
4308 | |
4309 | |
4310 | |
4311 | |
4312 | |
4313 | |
4314 | |
4315 | |
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4317 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4318 if ${ac_cv_path_GREP+:} false; then : | |
4319 $as_echo_n "(cached) " >&6 | |
4320 else | |
4321 if test -z "$GREP"; then | |
4322 ac_path_GREP_found=false | |
4323 # Loop through the user's path and test for each of PROGNAME-LIST | |
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4326 do | |
4327 IFS=$as_save_IFS | |
4328 test -z "$as_dir" && as_dir=. | |
4329 for ac_prog in grep ggrep; do | |
4330 for ac_exec_ext in '' $ac_executable_extensions; do | |
4331 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4332 as_fn_executable_p "$ac_path_GREP" || continue | |
4333 # Check for GNU ac_path_GREP and select it if it is found. | |
4334 # Check for GNU $ac_path_GREP | |
4335 case `"$ac_path_GREP" --version 2>&1` in | |
4336 *GNU*) | |
4337 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4338 *) | |
4339 ac_count=0 | |
4340 $as_echo_n 0123456789 >"conftest.in" | |
4341 while : | |
4342 do | |
4343 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4344 mv "conftest.tmp" "conftest.in" | |
4345 cp "conftest.in" "conftest.nl" | |
4346 $as_echo 'GREP' >> "conftest.nl" | |
4347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4349 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4350 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4351 # Best one so far, save it but keep looking for a better one | |
4352 ac_cv_path_GREP="$ac_path_GREP" | |
4353 ac_path_GREP_max=$ac_count | |
4354 fi | |
4355 # 10*(2^10) chars as input seems more than enough | |
4356 test $ac_count -gt 10 && break | |
4357 done | |
4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4359 esac | |
4360 | |
4361 $ac_path_GREP_found && break 3 | |
4362 done | |
4363 done | |
4364 done | |
4365 IFS=$as_save_IFS | |
4366 if test -z "$ac_cv_path_GREP"; then | |
4367 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4368 fi | |
4369 else | |
4370 ac_cv_path_GREP=$GREP | |
4371 fi | |
4372 | |
4373 fi | |
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4375 $as_echo "$ac_cv_path_GREP" >&6; } | |
4376 GREP="$ac_cv_path_GREP" | |
4377 | |
4378 | |
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4380 $as_echo_n "checking for egrep... " >&6; } | |
4381 if ${ac_cv_path_EGREP+:} false; then : | |
4382 $as_echo_n "(cached) " >&6 | |
4383 else | |
4384 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4385 then ac_cv_path_EGREP="$GREP -E" | |
4386 else | |
4387 if test -z "$EGREP"; then | |
4388 ac_path_EGREP_found=false | |
4389 # Loop through the user's path and test for each of PROGNAME-LIST | |
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4392 do | |
4393 IFS=$as_save_IFS | |
4394 test -z "$as_dir" && as_dir=. | |
4395 for ac_prog in egrep; do | |
4396 for ac_exec_ext in '' $ac_executable_extensions; do | |
4397 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4398 as_fn_executable_p "$ac_path_EGREP" || continue | |
4399 # Check for GNU ac_path_EGREP and select it if it is found. | |
4400 # Check for GNU $ac_path_EGREP | |
4401 case `"$ac_path_EGREP" --version 2>&1` in | |
4402 *GNU*) | |
4403 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4404 *) | |
4405 ac_count=0 | |
4406 $as_echo_n 0123456789 >"conftest.in" | |
4407 while : | |
4408 do | |
4409 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4410 mv "conftest.tmp" "conftest.in" | |
4411 cp "conftest.in" "conftest.nl" | |
4412 $as_echo 'EGREP' >> "conftest.nl" | |
4413 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4415 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4416 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4417 # Best one so far, save it but keep looking for a better one | |
4418 ac_cv_path_EGREP="$ac_path_EGREP" | |
4419 ac_path_EGREP_max=$ac_count | |
4420 fi | |
4421 # 10*(2^10) chars as input seems more than enough | |
4422 test $ac_count -gt 10 && break | |
4423 done | |
4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4425 esac | |
4426 | |
4427 $ac_path_EGREP_found && break 3 | |
4428 done | |
4429 done | |
4430 done | |
4431 IFS=$as_save_IFS | |
4432 if test -z "$ac_cv_path_EGREP"; then | |
4433 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4434 fi | |
4435 else | |
4436 ac_cv_path_EGREP=$EGREP | |
4437 fi | |
4438 | |
4439 fi | |
4440 fi | |
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4442 $as_echo "$ac_cv_path_EGREP" >&6; } | |
4443 EGREP="$ac_cv_path_EGREP" | |
4444 | |
4445 | |
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4447 $as_echo_n "checking for fgrep... " >&6; } | |
4448 if ${ac_cv_path_FGREP+:} false; then : | |
4449 $as_echo_n "(cached) " >&6 | |
4450 else | |
4451 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4452 then ac_cv_path_FGREP="$GREP -F" | |
4453 else | |
4454 if test -z "$FGREP"; then | |
4455 ac_path_FGREP_found=false | |
4456 # Loop through the user's path and test for each of PROGNAME-LIST | |
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4459 do | |
4460 IFS=$as_save_IFS | |
4461 test -z "$as_dir" && as_dir=. | |
4462 for ac_prog in fgrep; do | |
4463 for ac_exec_ext in '' $ac_executable_extensions; do | |
4464 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4465 as_fn_executable_p "$ac_path_FGREP" || continue | |
4466 # Check for GNU ac_path_FGREP and select it if it is found. | |
4467 # Check for GNU $ac_path_FGREP | |
4468 case `"$ac_path_FGREP" --version 2>&1` in | |
4469 *GNU*) | |
4470 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4471 *) | |
4472 ac_count=0 | |
4473 $as_echo_n 0123456789 >"conftest.in" | |
4474 while : | |
4475 do | |
4476 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4477 mv "conftest.tmp" "conftest.in" | |
4478 cp "conftest.in" "conftest.nl" | |
4479 $as_echo 'FGREP' >> "conftest.nl" | |
4480 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4483 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4484 # Best one so far, save it but keep looking for a better one | |
4485 ac_cv_path_FGREP="$ac_path_FGREP" | |
4486 ac_path_FGREP_max=$ac_count | |
4487 fi | |
4488 # 10*(2^10) chars as input seems more than enough | |
4489 test $ac_count -gt 10 && break | |
4490 done | |
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4492 esac | |
4493 | |
4494 $ac_path_FGREP_found && break 3 | |
4495 done | |
4496 done | |
4497 done | |
4498 IFS=$as_save_IFS | |
4499 if test -z "$ac_cv_path_FGREP"; then | |
4500 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4501 fi | |
4502 else | |
4503 ac_cv_path_FGREP=$FGREP | |
4504 fi | |
4505 | |
4506 fi | |
4507 fi | |
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4509 $as_echo "$ac_cv_path_FGREP" >&6; } | |
4510 FGREP="$ac_cv_path_FGREP" | |
4511 | |
4512 | |
4513 test -z "$GREP" && GREP=grep | |
4514 | |
4515 | |
4516 | |
4517 | |
4518 | |
4519 | |
4520 | |
4521 | |
4522 | |
4523 | |
4524 | |
4525 | |
4526 | |
4527 | |
4528 | |
4529 | |
4530 | |
4531 | |
4532 | |
4533 # Check whether --with-gnu-ld was given. | |
4534 if test "${with_gnu_ld+set}" = set; then : | |
4535 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4536 else | |
4537 with_gnu_ld=no | |
4538 fi | |
4539 | |
4540 ac_prog=ld | |
4541 if test "$GCC" = yes; then | |
4542 # Check if gcc -print-prog-name=ld gives a path. | |
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4544 $as_echo_n "checking for ld used by $CC... " >&6; } | |
4545 case $host in | |
4546 *-*-mingw*) | |
4547 # gcc leaves a trailing carriage return which upsets mingw | |
4548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4549 *) | |
4550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4551 esac | |
4552 case $ac_prog in | |
4553 # Accept absolute paths. | |
4554 [\\/]* | ?:[\\/]*) | |
4555 re_direlt='/[^/][^/]*/\.\./' | |
4556 # Canonicalize the pathname of ld | |
4557 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4558 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4559 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4560 done | |
4561 test -z "$LD" && LD="$ac_prog" | |
4562 ;; | |
4563 "") | |
4564 # If it fails, then pretend we aren't using GCC. | |
4565 ac_prog=ld | |
4566 ;; | |
4567 *) | |
4568 # If it is relative, then search for the first ld in PATH. | |
4569 with_gnu_ld=unknown | |
4570 ;; | |
4571 esac | |
4572 elif test "$with_gnu_ld" = yes; then | |
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4574 $as_echo_n "checking for GNU ld... " >&6; } | |
4575 else | |
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4577 $as_echo_n "checking for non-GNU ld... " >&6; } | |
4578 fi | |
4579 if ${lt_cv_path_LD+:} false; then : | |
4580 $as_echo_n "(cached) " >&6 | |
4581 else | |
4582 if test -z "$LD"; then | |
4583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4584 for ac_dir in $PATH; do | |
4585 IFS="$lt_save_ifs" | |
4586 test -z "$ac_dir" && ac_dir=. | |
4587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4588 lt_cv_path_LD="$ac_dir/$ac_prog" | |
4589 # Check to see if the program is GNU ld. I'd rather use --version, | |
4590 # but apparently some variants of GNU ld only accept -v. | |
4591 # Break only if it was the GNU/non-GNU ld that we prefer. | |
4592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4593 *GNU* | *'with BFD'*) | |
4594 test "$with_gnu_ld" != no && break | |
4595 ;; | |
4596 *) | |
4597 test "$with_gnu_ld" != yes && break | |
4598 ;; | |
4599 esac | |
4600 fi | |
4601 done | |
4602 IFS="$lt_save_ifs" | |
4603 else | |
4604 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4605 fi | |
4606 fi | |
4607 | |
4608 LD="$lt_cv_path_LD" | |
4609 if test -n "$LD"; then | |
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4611 $as_echo "$LD" >&6; } | |
4612 else | |
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4614 $as_echo "no" >&6; } | |
4615 fi | |
4616 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4619 if ${lt_cv_prog_gnu_ld+:} false; then : | |
4620 $as_echo_n "(cached) " >&6 | |
4621 else | |
4622 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4623 case `$LD -v 2>&1 </dev/null` in | |
4624 *GNU* | *'with BFD'*) | |
4625 lt_cv_prog_gnu_ld=yes | |
4626 ;; | |
4627 *) | |
4628 lt_cv_prog_gnu_ld=no | |
4629 ;; | |
4630 esac | |
4631 fi | |
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4633 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4634 with_gnu_ld=$lt_cv_prog_gnu_ld | |
4635 | |
4636 | |
4637 | |
4638 | |
4639 | |
4640 | |
4641 | |
4642 | |
4643 | |
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4645 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4646 if ${lt_cv_path_NM+:} false; then : | |
4647 $as_echo_n "(cached) " >&6 | |
4648 else | |
4649 if test -n "$NM"; then | |
4650 # Let the user override the test. | |
4651 lt_cv_path_NM="$NM" | |
4652 else | |
4653 lt_nm_to_check="${ac_tool_prefix}nm" | |
4654 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4655 lt_nm_to_check="$lt_nm_to_check nm" | |
4656 fi | |
4657 for lt_tmp_nm in $lt_nm_to_check; do | |
4658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4659 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4660 IFS="$lt_save_ifs" | |
4661 test -z "$ac_dir" && ac_dir=. | |
4662 tmp_nm="$ac_dir/$lt_tmp_nm" | |
4663 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4664 # Check to see if the nm accepts a BSD-compat flag. | |
4665 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4666 # nm: unknown option "B" ignored | |
4667 # Tru64's nm complains that /dev/null is an invalid object file | |
4668 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4669 */dev/null* | *'Invalid file or object type'*) | |
4670 lt_cv_path_NM="$tmp_nm -B" | |
4671 break | |
4672 ;; | |
4673 *) | |
4674 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4675 */dev/null*) | |
4676 lt_cv_path_NM="$tmp_nm -p" | |
4677 break | |
4678 ;; | |
4679 *) | |
4680 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4681 continue # so that we can try to find one that supports BSD flags | |
4682 ;; | |
4683 esac | |
4684 ;; | |
4685 esac | |
4686 fi | |
4687 done | |
4688 IFS="$lt_save_ifs" | |
4689 done | |
4690 : ${lt_cv_path_NM=no} | |
4691 fi | |
4692 fi | |
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4694 $as_echo "$lt_cv_path_NM" >&6; } | |
4695 if test "$lt_cv_path_NM" != "no"; then | |
4696 NM="$lt_cv_path_NM" | |
4697 else | |
4698 # Didn't find any BSD compatible name lister, look for dumpbin. | |
4699 if test -n "$DUMPBIN"; then : | |
4700 # Let the user override the test. | |
4701 else | |
4702 if test -n "$ac_tool_prefix"; then | |
4703 for ac_prog in dumpbin "link -dump" | |
4704 do | |
4705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4708 $as_echo_n "checking for $ac_word... " >&6; } | |
4709 if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4710 $as_echo_n "(cached) " >&6 | |
4711 else | |
4712 if test -n "$DUMPBIN"; then | |
4713 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4714 else | |
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4716 for as_dir in $PATH | |
4717 do | |
4718 IFS=$as_save_IFS | |
4719 test -z "$as_dir" && as_dir=. | |
4720 for ac_exec_ext in '' $ac_executable_extensions; do | |
4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4722 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4724 break 2 | |
4725 fi | |
4726 done | |
4727 done | |
4728 IFS=$as_save_IFS | |
4729 | |
4730 fi | |
4731 fi | |
4732 DUMPBIN=$ac_cv_prog_DUMPBIN | |
4733 if test -n "$DUMPBIN"; then | |
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4735 $as_echo "$DUMPBIN" >&6; } | |
4736 else | |
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4738 $as_echo "no" >&6; } | |
4739 fi | |
4740 | |
4741 | |
4742 test -n "$DUMPBIN" && break | |
4743 done | |
4744 fi | |
4745 if test -z "$DUMPBIN"; then | |
4746 ac_ct_DUMPBIN=$DUMPBIN | |
4747 for ac_prog in dumpbin "link -dump" | |
4748 do | |
4749 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4750 set dummy $ac_prog; ac_word=$2 | |
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4752 $as_echo_n "checking for $ac_word... " >&6; } | |
4753 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4754 $as_echo_n "(cached) " >&6 | |
4755 else | |
4756 if test -n "$ac_ct_DUMPBIN"; then | |
4757 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4758 else | |
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4760 for as_dir in $PATH | |
4761 do | |
4762 IFS=$as_save_IFS | |
4763 test -z "$as_dir" && as_dir=. | |
4764 for ac_exec_ext in '' $ac_executable_extensions; do | |
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4766 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4768 break 2 | |
4769 fi | |
4770 done | |
4771 done | |
4772 IFS=$as_save_IFS | |
4773 | |
4774 fi | |
4775 fi | |
4776 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4777 if test -n "$ac_ct_DUMPBIN"; then | |
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4779 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4780 else | |
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4782 $as_echo "no" >&6; } | |
4783 fi | |
4784 | |
4785 | |
4786 test -n "$ac_ct_DUMPBIN" && break | |
4787 done | |
4788 | |
4789 if test "x$ac_ct_DUMPBIN" = x; then | |
4790 DUMPBIN=":" | |
4791 else | |
4792 case $cross_compiling:$ac_tool_warned in | |
4793 yes:) | |
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4796 ac_tool_warned=yes ;; | |
4797 esac | |
4798 DUMPBIN=$ac_ct_DUMPBIN | |
4799 fi | |
4800 fi | |
4801 | |
4802 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
4803 *COFF*) | |
4804 DUMPBIN="$DUMPBIN -symbols" | |
4805 ;; | |
4806 *) | |
4807 DUMPBIN=: | |
4808 ;; | |
4809 esac | |
4810 fi | |
4811 | |
4812 if test "$DUMPBIN" != ":"; then | |
4813 NM="$DUMPBIN" | |
4814 fi | |
4815 fi | |
4816 test -z "$NM" && NM=nm | |
4817 | |
4818 | |
4819 | |
4820 | |
4821 | |
4822 | |
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4824 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4825 if ${lt_cv_nm_interface+:} false; then : | |
4826 $as_echo_n "(cached) " >&6 | |
4827 else | |
4828 lt_cv_nm_interface="BSD nm" | |
4829 echo "int some_variable = 0;" > conftest.$ac_ext | |
4830 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
4831 (eval "$ac_compile" 2>conftest.err) | |
4832 cat conftest.err >&5 | |
4833 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4834 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4835 cat conftest.err >&5 | |
4836 (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
4837 cat conftest.out >&5 | |
4838 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4839 lt_cv_nm_interface="MS dumpbin" | |
4840 fi | |
4841 rm -f conftest* | |
4842 fi | |
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
4844 $as_echo "$lt_cv_nm_interface" >&6; } | |
4845 | |
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4847 $as_echo_n "checking whether ln -s works... " >&6; } | |
4848 LN_S=$as_ln_s | |
4849 if test "$LN_S" = "ln -s"; then | |
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4851 $as_echo "yes" >&6; } | |
4852 else | |
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4854 $as_echo "no, using $LN_S" >&6; } | |
4855 fi | |
4856 | |
4857 # find the maximum length of command line arguments | |
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4859 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4860 if ${lt_cv_sys_max_cmd_len+:} false; then : | |
4861 $as_echo_n "(cached) " >&6 | |
4862 else | |
4863 i=0 | |
4864 teststring="ABCD" | |
4865 | |
4866 case $build_os in | |
4867 msdosdjgpp*) | |
4868 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4869 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4870 # during glob expansion). Even if it were fixed, the result of this | |
4871 # check would be larger than it should be. | |
4872 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4873 ;; | |
4874 | |
4875 gnu*) | |
4876 # Under GNU Hurd, this test is not required because there is | |
4877 # no limit to the length of command line arguments. | |
4878 # Libtool will interpret -1 as no limit whatsoever | |
4879 lt_cv_sys_max_cmd_len=-1; | |
4880 ;; | |
4881 | |
4882 cygwin* | mingw* | cegcc*) | |
4883 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4884 # about 5 minutes as the teststring grows exponentially. | |
4885 # Worse, since 9x/ME are not pre-emptively multitasking, | |
4886 # you end up with a "frozen" computer, even though with patience | |
4887 # the test eventually succeeds (with a max line length of 256k). | |
4888 # Instead, let's just punt: use the minimum linelength reported by | |
4889 # all of the supported platforms: 8192 (on NT/2K/XP). | |
4890 lt_cv_sys_max_cmd_len=8192; | |
4891 ;; | |
4892 | |
4893 mint*) | |
4894 # On MiNT this can take a long time and run out of memory. | |
4895 lt_cv_sys_max_cmd_len=8192; | |
4896 ;; | |
4897 | |
4898 amigaos*) | |
4899 # On AmigaOS with pdksh, this test takes hours, literally. | |
4900 # So we just punt and use a minimum line length of 8192. | |
4901 lt_cv_sys_max_cmd_len=8192; | |
4902 ;; | |
4903 | |
4904 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4905 # This has been around since 386BSD, at least. Likely further. | |
4906 if test -x /sbin/sysctl; then | |
4907 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4908 elif test -x /usr/sbin/sysctl; then | |
4909 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4910 else | |
4911 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4912 fi | |
4913 # And add a safety zone | |
4914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4916 ;; | |
4917 | |
4918 interix*) | |
4919 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4920 lt_cv_sys_max_cmd_len=196608 | |
4921 ;; | |
4922 | |
4923 osf*) | |
4924 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4925 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4926 # nice to cause kernel panics so lets avoid the loop below. | |
4927 # First set a reasonable default. | |
4928 lt_cv_sys_max_cmd_len=16384 | |
4929 # | |
4930 if test -x /sbin/sysconfig; then | |
4931 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4932 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4933 esac | |
4934 fi | |
4935 ;; | |
4936 sco3.2v5*) | |
4937 lt_cv_sys_max_cmd_len=102400 | |
4938 ;; | |
4939 sysv5* | sco5v6* | sysv4.2uw2*) | |
4940 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4941 if test -n "$kargmax"; then | |
4942 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4943 else | |
4944 lt_cv_sys_max_cmd_len=32768 | |
4945 fi | |
4946 ;; | |
4947 *) | |
4948 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4949 if test -n "$lt_cv_sys_max_cmd_len"; then | |
4950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4952 else | |
4953 # Make teststring a little bigger before we do anything with it. | |
4954 # a 1K string should be a reasonable start. | |
4955 for i in 1 2 3 4 5 6 7 8 ; do | |
4956 teststring=$teststring$teststring | |
4957 done | |
4958 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4959 # If test is not a shell built-in, we'll probably end up computing a | |
4960 # maximum length that is only half of the actual maximum length, but | |
4961 # we can't tell. | |
4962 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
4963 = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
4964 test $i != 17 # 1/2 MB should be enough | |
4965 do | |
4966 i=`expr $i + 1` | |
4967 teststring=$teststring$teststring | |
4968 done | |
4969 # Only check the string length outside the loop. | |
4970 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4971 teststring= | |
4972 # Add a significant safety factor because C++ compilers can tack on | |
4973 # massive amounts of additional arguments before passing them to the | |
4974 # linker. It appears as though 1/2 is a usable value. | |
4975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4976 fi | |
4977 ;; | |
4978 esac | |
4979 | |
4980 fi | |
4981 | |
4982 if test -n $lt_cv_sys_max_cmd_len ; then | |
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4984 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4985 else | |
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
4987 $as_echo "none" >&6; } | |
4988 fi | |
4989 max_cmd_len=$lt_cv_sys_max_cmd_len | |
4990 | |
4991 | |
4992 | |
4993 | |
4994 | |
4995 | |
4996 : ${CP="cp -f"} | |
4997 : ${MV="mv -f"} | |
4998 : ${RM="rm -f"} | |
4999 | |
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5001 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5002 # Try some XSI features | |
5003 xsi_shell=no | |
5004 ( _lt_dummy="a/b/c" | |
5005 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5006 = c,a/b,b/c, \ | |
5007 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5008 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5009 && xsi_shell=yes | |
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5011 $as_echo "$xsi_shell" >&6; } | |
5012 | |
5013 | |
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5015 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5016 lt_shell_append=no | |
5017 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5018 >/dev/null 2>&1 \ | |
5019 && lt_shell_append=yes | |
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5021 $as_echo "$lt_shell_append" >&6; } | |
5022 | |
5023 | |
5024 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5025 lt_unset=unset | |
5026 else | |
5027 lt_unset=false | |
5028 fi | |
5029 | |
5030 | |
5031 | |
5032 | |
5033 | |
5034 # test EBCDIC or ASCII | |
5035 case `echo X|tr X '\101'` in | |
5036 A) # ASCII based system | |
5037 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5038 lt_SP2NL='tr \040 \012' | |
5039 lt_NL2SP='tr \015\012 \040\040' | |
5040 ;; | |
5041 *) # EBCDIC based system | |
5042 lt_SP2NL='tr \100 \n' | |
5043 lt_NL2SP='tr \r\n \100\100' | |
5044 ;; | |
5045 esac | |
5046 | |
5047 | |
5048 | |
5049 | |
5050 | |
5051 | |
5052 | |
5053 | |
5054 | |
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5056 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5057 if ${lt_cv_to_host_file_cmd+:} false; then : | |
5058 $as_echo_n "(cached) " >&6 | |
5059 else | |
5060 case $host in | |
5061 *-*-mingw* ) | |
5062 case $build in | |
5063 *-*-mingw* ) # actually msys | |
5064 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5065 ;; | |
5066 *-*-cygwin* ) | |
5067 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5068 ;; | |
5069 * ) # otherwise, assume *nix | |
5070 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5071 ;; | |
5072 esac | |
5073 ;; | |
5074 *-*-cygwin* ) | |
5075 case $build in | |
5076 *-*-mingw* ) # actually msys | |
5077 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5078 ;; | |
5079 *-*-cygwin* ) | |
5080 lt_cv_to_host_file_cmd=func_convert_file_noop | |
5081 ;; | |
5082 * ) # otherwise, assume *nix | |
5083 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5084 ;; | |
5085 esac | |
5086 ;; | |
5087 * ) # unhandled hosts (and "normal" native builds) | |
5088 lt_cv_to_host_file_cmd=func_convert_file_noop | |
5089 ;; | |
5090 esac | |
5091 | |
5092 fi | |
5093 | |
5094 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5096 $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5097 | |
5098 | |
5099 | |
5100 | |
5101 | |
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5103 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5104 if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5105 $as_echo_n "(cached) " >&6 | |
5106 else | |
5107 #assume ordinary cross tools, or native build. | |
5108 lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5109 case $host in | |
5110 *-*-mingw* ) | |
5111 case $build in | |
5112 *-*-mingw* ) # actually msys | |
5113 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5114 ;; | |
5115 esac | |
5116 ;; | |
5117 esac | |
5118 | |
5119 fi | |
5120 | |
5121 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5123 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5124 | |
5125 | |
5126 | |
5127 | |
5128 | |
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5130 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5131 if ${lt_cv_ld_reload_flag+:} false; then : | |
5132 $as_echo_n "(cached) " >&6 | |
5133 else | |
5134 lt_cv_ld_reload_flag='-r' | |
5135 fi | |
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5137 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5138 reload_flag=$lt_cv_ld_reload_flag | |
5139 case $reload_flag in | |
5140 "" | " "*) ;; | |
5141 *) reload_flag=" $reload_flag" ;; | |
5142 esac | |
5143 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5144 case $host_os in | |
5145 cygwin* | mingw* | pw32* | cegcc*) | |
5146 if test "$GCC" != yes; then | |
5147 reload_cmds=false | |
5148 fi | |
5149 ;; | |
5150 darwin*) | |
5151 if test "$GCC" = yes; then | |
5152 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5153 else | |
5154 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5155 fi | |
5156 ;; | |
5157 esac | |
5158 | |
5159 | |
5160 | |
5161 | |
5162 | |
5163 | |
5164 | |
5165 | |
5166 | |
5167 if test -n "$ac_tool_prefix"; then | |
5168 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5169 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5171 $as_echo_n "checking for $ac_word... " >&6; } | |
5172 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5173 $as_echo_n "(cached) " >&6 | |
5174 else | |
5175 if test -n "$OBJDUMP"; then | |
5176 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5177 else | |
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5179 for as_dir in $PATH | |
5180 do | |
5181 IFS=$as_save_IFS | |
5182 test -z "$as_dir" && as_dir=. | |
5183 for ac_exec_ext in '' $ac_executable_extensions; do | |
5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5185 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5187 break 2 | |
5188 fi | |
5189 done | |
5190 done | |
5191 IFS=$as_save_IFS | |
5192 | |
5193 fi | |
5194 fi | |
5195 OBJDUMP=$ac_cv_prog_OBJDUMP | |
5196 if test -n "$OBJDUMP"; then | |
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5198 $as_echo "$OBJDUMP" >&6; } | |
5199 else | |
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5201 $as_echo "no" >&6; } | |
5202 fi | |
5203 | |
5204 | |
5205 fi | |
5206 if test -z "$ac_cv_prog_OBJDUMP"; then | |
5207 ac_ct_OBJDUMP=$OBJDUMP | |
5208 # Extract the first word of "objdump", so it can be a program name with args. | |
5209 set dummy objdump; ac_word=$2 | |
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5211 $as_echo_n "checking for $ac_word... " >&6; } | |
5212 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5213 $as_echo_n "(cached) " >&6 | |
5214 else | |
5215 if test -n "$ac_ct_OBJDUMP"; then | |
5216 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5217 else | |
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5219 for as_dir in $PATH | |
5220 do | |
5221 IFS=$as_save_IFS | |
5222 test -z "$as_dir" && as_dir=. | |
5223 for ac_exec_ext in '' $ac_executable_extensions; do | |
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5225 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5227 break 2 | |
5228 fi | |
5229 done | |
5230 done | |
5231 IFS=$as_save_IFS | |
5232 | |
5233 fi | |
5234 fi | |
5235 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5236 if test -n "$ac_ct_OBJDUMP"; then | |
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5238 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5239 else | |
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5241 $as_echo "no" >&6; } | |
5242 fi | |
5243 | |
5244 if test "x$ac_ct_OBJDUMP" = x; then | |
5245 OBJDUMP="false" | |
5246 else | |
5247 case $cross_compiling:$ac_tool_warned in | |
5248 yes:) | |
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5251 ac_tool_warned=yes ;; | |
5252 esac | |
5253 OBJDUMP=$ac_ct_OBJDUMP | |
5254 fi | |
5255 else | |
5256 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5257 fi | |
5258 | |
5259 test -z "$OBJDUMP" && OBJDUMP=objdump | |
5260 | |
5261 | |
5262 | |
5263 | |
5264 | |
5265 | |
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5267 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5268 if ${lt_cv_deplibs_check_method+:} false; then : | |
5269 $as_echo_n "(cached) " >&6 | |
5270 else | |
5271 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5272 lt_cv_file_magic_test_file= | |
5273 lt_cv_deplibs_check_method='unknown' | |
5274 # Need to set the preceding variable on all platforms that support | |
5275 # interlibrary dependencies. | |
5276 # 'none' -- dependencies not supported. | |
5277 # `unknown' -- same as none, but documents that we really don't know. | |
5278 # 'pass_all' -- all dependencies passed with no checks. | |
5279 # 'test_compile' -- check by making test program. | |
5280 # 'file_magic [[regex]]' -- check by looking for files in library path | |
5281 # which responds to the $file_magic_cmd with a given extended regex. | |
5282 # If you have `file' or equivalent on your system and you're not sure | |
5283 # whether `pass_all' will *always* work, you probably want this one. | |
5284 | |
5285 case $host_os in | |
5286 aix[4-9]*) | |
5287 lt_cv_deplibs_check_method=pass_all | |
5288 ;; | |
5289 | |
5290 beos*) | |
5291 lt_cv_deplibs_check_method=pass_all | |
5292 ;; | |
5293 | |
5294 bsdi[45]*) | |
5295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5296 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5297 lt_cv_file_magic_test_file=/shlib/libc.so | |
5298 ;; | |
5299 | |
5300 cygwin*) | |
5301 # func_win32_libid is a shell function defined in ltmain.sh | |
5302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5303 lt_cv_file_magic_cmd='func_win32_libid' | |
5304 ;; | |
5305 | |
5306 mingw* | pw32*) | |
5307 # Base MSYS/MinGW do not provide the 'file' command needed by | |
5308 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5309 # unless we find 'file', for example because we are cross-compiling. | |
5310 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5311 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5312 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5313 lt_cv_file_magic_cmd='func_win32_libid' | |
5314 else | |
5315 # Keep this pattern in sync with the one in func_win32_libid. | |
5316 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5317 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5318 fi | |
5319 ;; | |
5320 | |
5321 cegcc*) | |
5322 # use the weaker test based on 'objdump'. See mingw*. | |
5323 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5324 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5325 ;; | |
5326 | |
5327 darwin* | rhapsody*) | |
5328 lt_cv_deplibs_check_method=pass_all | |
5329 ;; | |
5330 | |
5331 freebsd* | dragonfly*) | |
5332 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5333 case $host_cpu in | |
5334 i*86 ) | |
5335 # Not sure whether the presence of OpenBSD here was a mistake. | |
5336 # Let's accept both of them until this is cleared up. | |
5337 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5338 lt_cv_file_magic_cmd=/usr/bin/file | |
5339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5340 ;; | |
5341 esac | |
5342 else | |
5343 lt_cv_deplibs_check_method=pass_all | |
5344 fi | |
5345 ;; | |
5346 | |
5347 gnu*) | |
5348 lt_cv_deplibs_check_method=pass_all | |
5349 ;; | |
5350 | |
5351 haiku*) | |
5352 lt_cv_deplibs_check_method=pass_all | |
5353 ;; | |
5354 | |
5355 hpux10.20* | hpux11*) | |
5356 lt_cv_file_magic_cmd=/usr/bin/file | |
5357 case $host_cpu in | |
5358 ia64*) | |
5359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5360 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5361 ;; | |
5362 hppa*64*) | |
5363 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]' | |
5364 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5365 ;; | |
5366 *) | |
5367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5368 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5369 ;; | |
5370 esac | |
5371 ;; | |
5372 | |
5373 interix[3-9]*) | |
5374 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5376 ;; | |
5377 | |
5378 irix5* | irix6* | nonstopux*) | |
5379 case $LD in | |
5380 *-32|*"-32 ") libmagic=32-bit;; | |
5381 *-n32|*"-n32 ") libmagic=N32;; | |
5382 *-64|*"-64 ") libmagic=64-bit;; | |
5383 *) libmagic=never-match;; | |
5384 esac | |
5385 lt_cv_deplibs_check_method=pass_all | |
5386 ;; | |
5387 | |
5388 # This must be Linux ELF. | |
5389 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
5390 lt_cv_deplibs_check_method=pass_all | |
5391 ;; | |
5392 | |
5393 netbsd* | netbsdelf*-gnu) | |
5394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5396 else | |
5397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5398 fi | |
5399 ;; | |
5400 | |
5401 newos6*) | |
5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5403 lt_cv_file_magic_cmd=/usr/bin/file | |
5404 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5405 ;; | |
5406 | |
5407 *nto* | *qnx*) | |
5408 lt_cv_deplibs_check_method=pass_all | |
5409 ;; | |
5410 | |
5411 openbsd*) | |
5412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5414 else | |
5415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5416 fi | |
5417 ;; | |
5418 | |
5419 osf3* | osf4* | osf5*) | |
5420 lt_cv_deplibs_check_method=pass_all | |
5421 ;; | |
5422 | |
5423 rdos*) | |
5424 lt_cv_deplibs_check_method=pass_all | |
5425 ;; | |
5426 | |
5427 solaris*) | |
5428 lt_cv_deplibs_check_method=pass_all | |
5429 ;; | |
5430 | |
5431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5432 lt_cv_deplibs_check_method=pass_all | |
5433 ;; | |
5434 | |
5435 sysv4 | sysv4.3*) | |
5436 case $host_vendor in | |
5437 motorola) | |
5438 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]' | |
5439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5440 ;; | |
5441 ncr) | |
5442 lt_cv_deplibs_check_method=pass_all | |
5443 ;; | |
5444 sequent) | |
5445 lt_cv_file_magic_cmd='/bin/file' | |
5446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5447 ;; | |
5448 sni) | |
5449 lt_cv_file_magic_cmd='/bin/file' | |
5450 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5451 lt_cv_file_magic_test_file=/lib/libc.so | |
5452 ;; | |
5453 siemens) | |
5454 lt_cv_deplibs_check_method=pass_all | |
5455 ;; | |
5456 pc) | |
5457 lt_cv_deplibs_check_method=pass_all | |
5458 ;; | |
5459 esac | |
5460 ;; | |
5461 | |
5462 tpf*) | |
5463 lt_cv_deplibs_check_method=pass_all | |
5464 ;; | |
5465 esac | |
5466 | |
5467 fi | |
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5469 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5470 | |
5471 file_magic_glob= | |
5472 want_nocaseglob=no | |
5473 if test "$build" = "$host"; then | |
5474 case $host_os in | |
5475 mingw* | pw32*) | |
5476 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5477 want_nocaseglob=yes | |
5478 else | |
5479 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5480 fi | |
5481 ;; | |
5482 esac | |
5483 fi | |
5484 | |
5485 file_magic_cmd=$lt_cv_file_magic_cmd | |
5486 deplibs_check_method=$lt_cv_deplibs_check_method | |
5487 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5488 | |
5489 | |
5490 | |
5491 | |
5492 | |
5493 | |
5494 | |
5495 | |
5496 | |
5497 | |
5498 | |
5499 | |
5500 | |
5501 | |
5502 | |
5503 | |
5504 | |
5505 | |
5506 | |
5507 | |
5508 | |
5509 | |
5510 if test -n "$ac_tool_prefix"; then | |
5511 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5512 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5514 $as_echo_n "checking for $ac_word... " >&6; } | |
5515 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5516 $as_echo_n "(cached) " >&6 | |
5517 else | |
5518 if test -n "$DLLTOOL"; then | |
5519 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5520 else | |
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5522 for as_dir in $PATH | |
5523 do | |
5524 IFS=$as_save_IFS | |
5525 test -z "$as_dir" && as_dir=. | |
5526 for ac_exec_ext in '' $ac_executable_extensions; do | |
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5528 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5530 break 2 | |
5531 fi | |
5532 done | |
5533 done | |
5534 IFS=$as_save_IFS | |
5535 | |
5536 fi | |
5537 fi | |
5538 DLLTOOL=$ac_cv_prog_DLLTOOL | |
5539 if test -n "$DLLTOOL"; then | |
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5541 $as_echo "$DLLTOOL" >&6; } | |
5542 else | |
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5544 $as_echo "no" >&6; } | |
5545 fi | |
5546 | |
5547 | |
5548 fi | |
5549 if test -z "$ac_cv_prog_DLLTOOL"; then | |
5550 ac_ct_DLLTOOL=$DLLTOOL | |
5551 # Extract the first word of "dlltool", so it can be a program name with args. | |
5552 set dummy dlltool; ac_word=$2 | |
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5554 $as_echo_n "checking for $ac_word... " >&6; } | |
5555 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5556 $as_echo_n "(cached) " >&6 | |
5557 else | |
5558 if test -n "$ac_ct_DLLTOOL"; then | |
5559 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5560 else | |
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5562 for as_dir in $PATH | |
5563 do | |
5564 IFS=$as_save_IFS | |
5565 test -z "$as_dir" && as_dir=. | |
5566 for ac_exec_ext in '' $ac_executable_extensions; do | |
5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5568 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5570 break 2 | |
5571 fi | |
5572 done | |
5573 done | |
5574 IFS=$as_save_IFS | |
5575 | |
5576 fi | |
5577 fi | |
5578 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5579 if test -n "$ac_ct_DLLTOOL"; then | |
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5581 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5582 else | |
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5584 $as_echo "no" >&6; } | |
5585 fi | |
5586 | |
5587 if test "x$ac_ct_DLLTOOL" = x; then | |
5588 DLLTOOL="false" | |
5589 else | |
5590 case $cross_compiling:$ac_tool_warned in | |
5591 yes:) | |
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5594 ac_tool_warned=yes ;; | |
5595 esac | |
5596 DLLTOOL=$ac_ct_DLLTOOL | |
5597 fi | |
5598 else | |
5599 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5600 fi | |
5601 | |
5602 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5603 | |
5604 | |
5605 | |
5606 | |
5607 | |
5608 | |
5609 | |
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5611 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5612 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5613 $as_echo_n "(cached) " >&6 | |
5614 else | |
5615 lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5616 | |
5617 case $host_os in | |
5618 cygwin* | mingw* | pw32* | cegcc*) | |
5619 # two different shell functions defined in ltmain.sh | |
5620 # decide which to use based on capabilities of $DLLTOOL | |
5621 case `$DLLTOOL --help 2>&1` in | |
5622 *--identify-strict*) | |
5623 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5624 ;; | |
5625 *) | |
5626 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5627 ;; | |
5628 esac | |
5629 ;; | |
5630 *) | |
5631 # fallback: assume linklib IS sharedlib | |
5632 lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
5633 ;; | |
5634 esac | |
5635 | |
5636 fi | |
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5638 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5639 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5640 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5641 | |
5642 | |
5643 | |
5644 | |
5645 | |
5646 | |
5647 | |
5648 | |
5649 if test -n "$ac_tool_prefix"; then | |
5650 for ac_prog in ar | |
5651 do | |
5652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5655 $as_echo_n "checking for $ac_word... " >&6; } | |
5656 if ${ac_cv_prog_AR+:} false; then : | |
5657 $as_echo_n "(cached) " >&6 | |
5658 else | |
5659 if test -n "$AR"; then | |
5660 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5661 else | |
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5663 for as_dir in $PATH | |
5664 do | |
5665 IFS=$as_save_IFS | |
5666 test -z "$as_dir" && as_dir=. | |
5667 for ac_exec_ext in '' $ac_executable_extensions; do | |
5668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5671 break 2 | |
5672 fi | |
5673 done | |
5674 done | |
5675 IFS=$as_save_IFS | |
5676 | |
5677 fi | |
5678 fi | |
5679 AR=$ac_cv_prog_AR | |
5680 if test -n "$AR"; then | |
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5682 $as_echo "$AR" >&6; } | |
5683 else | |
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5685 $as_echo "no" >&6; } | |
5686 fi | |
5687 | |
5688 | |
5689 test -n "$AR" && break | |
5690 done | |
5691 fi | |
5692 if test -z "$AR"; then | |
5693 ac_ct_AR=$AR | |
5694 for ac_prog in ar | |
5695 do | |
5696 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5697 set dummy $ac_prog; ac_word=$2 | |
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5699 $as_echo_n "checking for $ac_word... " >&6; } | |
5700 if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5701 $as_echo_n "(cached) " >&6 | |
5702 else | |
5703 if test -n "$ac_ct_AR"; then | |
5704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5705 else | |
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5707 for as_dir in $PATH | |
5708 do | |
5709 IFS=$as_save_IFS | |
5710 test -z "$as_dir" && as_dir=. | |
5711 for ac_exec_ext in '' $ac_executable_extensions; do | |
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5713 ac_cv_prog_ac_ct_AR="$ac_prog" | |
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5715 break 2 | |
5716 fi | |
5717 done | |
5718 done | |
5719 IFS=$as_save_IFS | |
5720 | |
5721 fi | |
5722 fi | |
5723 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5724 if test -n "$ac_ct_AR"; then | |
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5726 $as_echo "$ac_ct_AR" >&6; } | |
5727 else | |
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5729 $as_echo "no" >&6; } | |
5730 fi | |
5731 | |
5732 | |
5733 test -n "$ac_ct_AR" && break | |
5734 done | |
5735 | |
5736 if test "x$ac_ct_AR" = x; then | |
5737 AR="false" | |
5738 else | |
5739 case $cross_compiling:$ac_tool_warned in | |
5740 yes:) | |
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5743 ac_tool_warned=yes ;; | |
5744 esac | |
5745 AR=$ac_ct_AR | |
5746 fi | |
5747 fi | |
5748 | |
5749 : ${AR=ar} | |
5750 : ${AR_FLAGS=cru} | |
5751 | |
5752 | |
5753 | |
5754 | |
5755 | |
5756 | |
5757 | |
5758 | |
5759 | |
5760 | |
5761 | |
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5763 $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5764 if ${lt_cv_ar_at_file+:} false; then : | |
5765 $as_echo_n "(cached) " >&6 | |
5766 else | |
5767 lt_cv_ar_at_file=no | |
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5769 /* end confdefs.h. */ | |
5770 | |
5771 int | |
5772 main () | |
5773 { | |
5774 | |
5775 ; | |
5776 return 0; | |
5777 } | |
5778 _ACEOF | |
5779 if ac_fn_c_try_compile "$LINENO"; then : | |
5780 echo conftest.$ac_objext > conftest.lst | |
5781 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5783 (eval $lt_ar_try) 2>&5 | |
5784 ac_status=$? | |
5785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5786 test $ac_status = 0; } | |
5787 if test "$ac_status" -eq 0; then | |
5788 # Ensure the archiver fails upon bogus file names. | |
5789 rm -f conftest.$ac_objext libconftest.a | |
5790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5791 (eval $lt_ar_try) 2>&5 | |
5792 ac_status=$? | |
5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5794 test $ac_status = 0; } | |
5795 if test "$ac_status" -ne 0; then | |
5796 lt_cv_ar_at_file=@ | |
5797 fi | |
5798 fi | |
5799 rm -f conftest.* libconftest.a | |
5800 | |
5801 fi | |
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5803 | |
5804 fi | |
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5806 $as_echo "$lt_cv_ar_at_file" >&6; } | |
5807 | |
5808 if test "x$lt_cv_ar_at_file" = xno; then | |
5809 archiver_list_spec= | |
5810 else | |
5811 archiver_list_spec=$lt_cv_ar_at_file | |
5812 fi | |
5813 | |
5814 | |
5815 | |
5816 | |
5817 | |
5818 | |
5819 | |
5820 if test -n "$ac_tool_prefix"; then | |
5821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5822 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5824 $as_echo_n "checking for $ac_word... " >&6; } | |
5825 if ${ac_cv_prog_STRIP+:} false; then : | |
5826 $as_echo_n "(cached) " >&6 | |
5827 else | |
5828 if test -n "$STRIP"; then | |
5829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5830 else | |
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5832 for as_dir in $PATH | |
5833 do | |
5834 IFS=$as_save_IFS | |
5835 test -z "$as_dir" && as_dir=. | |
5836 for ac_exec_ext in '' $ac_executable_extensions; do | |
5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5838 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5840 break 2 | |
5841 fi | |
5842 done | |
5843 done | |
5844 IFS=$as_save_IFS | |
5845 | |
5846 fi | |
5847 fi | |
5848 STRIP=$ac_cv_prog_STRIP | |
5849 if test -n "$STRIP"; then | |
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5851 $as_echo "$STRIP" >&6; } | |
5852 else | |
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5854 $as_echo "no" >&6; } | |
5855 fi | |
5856 | |
5857 | |
5858 fi | |
5859 if test -z "$ac_cv_prog_STRIP"; then | |
5860 ac_ct_STRIP=$STRIP | |
5861 # Extract the first word of "strip", so it can be a program name with args. | |
5862 set dummy strip; ac_word=$2 | |
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5864 $as_echo_n "checking for $ac_word... " >&6; } | |
5865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5866 $as_echo_n "(cached) " >&6 | |
5867 else | |
5868 if test -n "$ac_ct_STRIP"; then | |
5869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5870 else | |
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5872 for as_dir in $PATH | |
5873 do | |
5874 IFS=$as_save_IFS | |
5875 test -z "$as_dir" && as_dir=. | |
5876 for ac_exec_ext in '' $ac_executable_extensions; do | |
5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5878 ac_cv_prog_ac_ct_STRIP="strip" | |
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5880 break 2 | |
5881 fi | |
5882 done | |
5883 done | |
5884 IFS=$as_save_IFS | |
5885 | |
5886 fi | |
5887 fi | |
5888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5889 if test -n "$ac_ct_STRIP"; then | |
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5891 $as_echo "$ac_ct_STRIP" >&6; } | |
5892 else | |
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5894 $as_echo "no" >&6; } | |
5895 fi | |
5896 | |
5897 if test "x$ac_ct_STRIP" = x; then | |
5898 STRIP=":" | |
5899 else | |
5900 case $cross_compiling:$ac_tool_warned in | |
5901 yes:) | |
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5904 ac_tool_warned=yes ;; | |
5905 esac | |
5906 STRIP=$ac_ct_STRIP | |
5907 fi | |
5908 else | |
5909 STRIP="$ac_cv_prog_STRIP" | |
5910 fi | |
5911 | |
5912 test -z "$STRIP" && STRIP=: | |
5913 | |
5914 | |
5915 | |
5916 | |
5917 | |
5918 | |
5919 if test -n "$ac_tool_prefix"; then | |
5920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5923 $as_echo_n "checking for $ac_word... " >&6; } | |
5924 if ${ac_cv_prog_RANLIB+:} false; then : | |
5925 $as_echo_n "(cached) " >&6 | |
5926 else | |
5927 if test -n "$RANLIB"; then | |
5928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5929 else | |
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5931 for as_dir in $PATH | |
5932 do | |
5933 IFS=$as_save_IFS | |
5934 test -z "$as_dir" && as_dir=. | |
5935 for ac_exec_ext in '' $ac_executable_extensions; do | |
5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5939 break 2 | |
5940 fi | |
5941 done | |
5942 done | |
5943 IFS=$as_save_IFS | |
5944 | |
5945 fi | |
5946 fi | |
5947 RANLIB=$ac_cv_prog_RANLIB | |
5948 if test -n "$RANLIB"; then | |
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5950 $as_echo "$RANLIB" >&6; } | |
5951 else | |
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5953 $as_echo "no" >&6; } | |
5954 fi | |
5955 | |
5956 | |
5957 fi | |
5958 if test -z "$ac_cv_prog_RANLIB"; then | |
5959 ac_ct_RANLIB=$RANLIB | |
5960 # Extract the first word of "ranlib", so it can be a program name with args. | |
5961 set dummy ranlib; ac_word=$2 | |
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5963 $as_echo_n "checking for $ac_word... " >&6; } | |
5964 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5965 $as_echo_n "(cached) " >&6 | |
5966 else | |
5967 if test -n "$ac_ct_RANLIB"; then | |
5968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5969 else | |
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5971 for as_dir in $PATH | |
5972 do | |
5973 IFS=$as_save_IFS | |
5974 test -z "$as_dir" && as_dir=. | |
5975 for ac_exec_ext in '' $ac_executable_extensions; do | |
5976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5977 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5979 break 2 | |
5980 fi | |
5981 done | |
5982 done | |
5983 IFS=$as_save_IFS | |
5984 | |
5985 fi | |
5986 fi | |
5987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5988 if test -n "$ac_ct_RANLIB"; then | |
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5990 $as_echo "$ac_ct_RANLIB" >&6; } | |
5991 else | |
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5993 $as_echo "no" >&6; } | |
5994 fi | |
5995 | |
5996 if test "x$ac_ct_RANLIB" = x; then | |
5997 RANLIB=":" | |
5998 else | |
5999 case $cross_compiling:$ac_tool_warned in | |
6000 yes:) | |
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6003 ac_tool_warned=yes ;; | |
6004 esac | |
6005 RANLIB=$ac_ct_RANLIB | |
6006 fi | |
6007 else | |
6008 RANLIB="$ac_cv_prog_RANLIB" | |
6009 fi | |
6010 | |
6011 test -z "$RANLIB" && RANLIB=: | |
6012 | |
6013 | |
6014 | |
6015 | |
6016 | |
6017 | |
6018 # Determine commands to create old-style static archives. | |
6019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6020 old_postinstall_cmds='chmod 644 $oldlib' | |
6021 old_postuninstall_cmds= | |
6022 | |
6023 if test -n "$RANLIB"; then | |
6024 case $host_os in | |
6025 openbsd*) | |
6026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6027 ;; | |
6028 *) | |
6029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6030 ;; | |
6031 esac | |
6032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6033 fi | |
6034 | |
6035 case $host_os in | |
6036 darwin*) | |
6037 lock_old_archive_extraction=yes ;; | |
6038 *) | |
6039 lock_old_archive_extraction=no ;; | |
6040 esac | |
6041 | |
6042 | |
6043 | |
6044 | |
6045 | |
6046 | |
6047 | |
6048 | |
6049 | |
6050 | |
6051 | |
6052 | |
6053 | |
6054 | |
6055 | |
6056 | |
6057 | |
6058 | |
6059 | |
6060 | |
6061 | |
6062 for ac_prog in gawk mawk nawk awk | |
6063 do | |
6064 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6065 set dummy $ac_prog; ac_word=$2 | |
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6067 $as_echo_n "checking for $ac_word... " >&6; } | |
6068 if ${ac_cv_prog_AWK+:} false; then : | |
6069 $as_echo_n "(cached) " >&6 | |
6070 else | |
6071 if test -n "$AWK"; then | |
6072 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
6073 else | |
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6075 for as_dir in $PATH | |
6076 do | |
6077 IFS=$as_save_IFS | |
6078 test -z "$as_dir" && as_dir=. | |
6079 for ac_exec_ext in '' $ac_executable_extensions; do | |
6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6081 ac_cv_prog_AWK="$ac_prog" | |
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6083 break 2 | |
6084 fi | |
6085 done | |
6086 done | |
6087 IFS=$as_save_IFS | |
6088 | |
6089 fi | |
6090 fi | |
6091 AWK=$ac_cv_prog_AWK | |
6092 if test -n "$AWK"; then | |
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
6094 $as_echo "$AWK" >&6; } | |
6095 else | |
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6097 $as_echo "no" >&6; } | |
6098 fi | |
6099 | |
6100 | |
6101 test -n "$AWK" && break | |
6102 done | |
6103 | |
6104 | |
6105 | |
6106 | |
6107 | |
6108 | |
6109 | |
6110 | |
6111 | |
6112 | |
6113 | |
6114 | |
6115 | |
6116 | |
6117 | |
6118 | |
6119 | |
6120 | |
6121 | |
6122 # If no C compiler was specified, use CC. | |
6123 LTCC=${LTCC-"$CC"} | |
6124 | |
6125 # If no C compiler flags were specified, use CFLAGS. | |
6126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6127 | |
6128 # Allow CC to be a program name with arguments. | |
6129 compiler=$CC | |
6130 | |
6131 | |
6132 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6134 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6135 if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6136 $as_echo_n "(cached) " >&6 | |
6137 else | |
6138 | |
6139 # These are sane defaults that work on at least a few old systems. | |
6140 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6141 | |
6142 # Character class describing NM global symbol codes. | |
6143 symcode='[BCDEGRST]' | |
6144 | |
6145 # Regexp to match symbols that can be accessed directly from C. | |
6146 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6147 | |
6148 # Define system-specific variables. | |
6149 case $host_os in | |
6150 aix*) | |
6151 symcode='[BCDT]' | |
6152 ;; | |
6153 cygwin* | mingw* | pw32* | cegcc*) | |
6154 symcode='[ABCDGISTW]' | |
6155 ;; | |
6156 hpux*) | |
6157 if test "$host_cpu" = ia64; then | |
6158 symcode='[ABCDEGRST]' | |
6159 fi | |
6160 ;; | |
6161 irix* | nonstopux*) | |
6162 symcode='[BCDEGRST]' | |
6163 ;; | |
6164 osf*) | |
6165 symcode='[BCDEGQRST]' | |
6166 ;; | |
6167 solaris*) | |
6168 symcode='[BDRT]' | |
6169 ;; | |
6170 sco3.2v5*) | |
6171 symcode='[DT]' | |
6172 ;; | |
6173 sysv4.2uw2*) | |
6174 symcode='[DT]' | |
6175 ;; | |
6176 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6177 symcode='[ABDT]' | |
6178 ;; | |
6179 sysv4) | |
6180 symcode='[DFNSTU]' | |
6181 ;; | |
6182 esac | |
6183 | |
6184 # If we're using GNU nm, then use its standard symbol codes. | |
6185 case `$NM -V 2>&1` in | |
6186 *GNU* | *'with BFD'*) | |
6187 symcode='[ABCDGIRSTW]' ;; | |
6188 esac | |
6189 | |
6190 # Transform an extracted symbol line into a proper C declaration. | |
6191 # Some systems (esp. on ia64) link data and code symbols differently, | |
6192 # so use this general approach. | |
6193 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6194 | |
6195 # Transform an extracted symbol line into symbol name and symbol address | |
6196 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6197 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
6198 | |
6199 # Handle CRLF in mingw tool chain | |
6200 opt_cr= | |
6201 case $build_os in | |
6202 mingw*) | |
6203 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6204 ;; | |
6205 esac | |
6206 | |
6207 # Try without a prefix underscore, then with it. | |
6208 for ac_symprfx in "" "_"; do | |
6209 | |
6210 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6211 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6212 | |
6213 # Write the raw and C identifiers. | |
6214 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6215 # Fake it for dumpbin and say T for any non-static function | |
6216 # and D for any global variable. | |
6217 # Also find C++ and __fastcall symbols from MSVC++, | |
6218 # which start with @ or ?. | |
6219 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6220 " {last_section=section; section=\$ 3};"\ | |
6221 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6222 " \$ 0!~/External *\|/{next};"\ | |
6223 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6224 " {if(hide[section]) next};"\ | |
6225 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6226 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6227 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6228 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6229 " ' prfx=^$ac_symprfx" | |
6230 else | |
6231 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6232 fi | |
6233 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6234 | |
6235 # Check to see that the pipe works correctly. | |
6236 pipe_works=no | |
6237 | |
6238 rm -f conftest* | |
6239 cat > conftest.$ac_ext <<_LT_EOF | |
6240 #ifdef __cplusplus | |
6241 extern "C" { | |
6242 #endif | |
6243 char nm_test_var; | |
6244 void nm_test_func(void); | |
6245 void nm_test_func(void){} | |
6246 #ifdef __cplusplus | |
6247 } | |
6248 #endif | |
6249 int main(){nm_test_var='a';nm_test_func();return(0);} | |
6250 _LT_EOF | |
6251 | |
6252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6253 (eval $ac_compile) 2>&5 | |
6254 ac_status=$? | |
6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6256 test $ac_status = 0; }; then | |
6257 # Now try to grab the symbols. | |
6258 nlist=conftest.nm | |
6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6260 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6261 ac_status=$? | |
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6263 test $ac_status = 0; } && test -s "$nlist"; then | |
6264 # Try sorting and uniquifying the output. | |
6265 if sort "$nlist" | uniq > "$nlist"T; then | |
6266 mv -f "$nlist"T "$nlist" | |
6267 else | |
6268 rm -f "$nlist"T | |
6269 fi | |
6270 | |
6271 # Make sure that we snagged all the symbols we need. | |
6272 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6273 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6274 cat <<_LT_EOF > conftest.$ac_ext | |
6275 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6276 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
6277 /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
6278 relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6279 # define LT_DLSYM_CONST | |
6280 #elif defined(__osf__) | |
6281 /* This system does not cope well with relocations in const data. */ | |
6282 # define LT_DLSYM_CONST | |
6283 #else | |
6284 # define LT_DLSYM_CONST const | |
6285 #endif | |
6286 | |
6287 #ifdef __cplusplus | |
6288 extern "C" { | |
6289 #endif | |
6290 | |
6291 _LT_EOF | |
6292 # Now generate the symbol file. | |
6293 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6294 | |
6295 cat <<_LT_EOF >> conftest.$ac_ext | |
6296 | |
6297 /* The mapping between symbol names and symbols. */ | |
6298 LT_DLSYM_CONST struct { | |
6299 const char *name; | |
6300 void *address; | |
6301 } | |
6302 lt__PROGRAM__LTX_preloaded_symbols[] = | |
6303 { | |
6304 { "@PROGRAM@", (void *) 0 }, | |
6305 _LT_EOF | |
6306 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6307 cat <<\_LT_EOF >> conftest.$ac_ext | |
6308 {0, (void *) 0} | |
6309 }; | |
6310 | |
6311 /* This works around a problem in FreeBSD linker */ | |
6312 #ifdef FREEBSD_WORKAROUND | |
6313 static const void *lt_preloaded_setup() { | |
6314 return lt__PROGRAM__LTX_preloaded_symbols; | |
6315 } | |
6316 #endif | |
6317 | |
6318 #ifdef __cplusplus | |
6319 } | |
6320 #endif | |
6321 _LT_EOF | |
6322 # Now try linking the two files. | |
6323 mv conftest.$ac_objext conftstm.$ac_objext | |
6324 lt_globsym_save_LIBS=$LIBS | |
6325 lt_globsym_save_CFLAGS=$CFLAGS | |
6326 LIBS="conftstm.$ac_objext" | |
6327 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6329 (eval $ac_link) 2>&5 | |
6330 ac_status=$? | |
6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6332 test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6333 pipe_works=yes | |
6334 fi | |
6335 LIBS=$lt_globsym_save_LIBS | |
6336 CFLAGS=$lt_globsym_save_CFLAGS | |
6337 else | |
6338 echo "cannot find nm_test_func in $nlist" >&5 | |
6339 fi | |
6340 else | |
6341 echo "cannot find nm_test_var in $nlist" >&5 | |
6342 fi | |
6343 else | |
6344 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6345 fi | |
6346 else | |
6347 echo "$progname: failed program was:" >&5 | |
6348 cat conftest.$ac_ext >&5 | |
6349 fi | |
6350 rm -rf conftest* conftst* | |
6351 | |
6352 # Do not use the global_symbol_pipe unless it works. | |
6353 if test "$pipe_works" = yes; then | |
6354 break | |
6355 else | |
6356 lt_cv_sys_global_symbol_pipe= | |
6357 fi | |
6358 done | |
6359 | |
6360 fi | |
6361 | |
6362 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6363 lt_cv_sys_global_symbol_to_cdecl= | |
6364 fi | |
6365 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6367 $as_echo "failed" >&6; } | |
6368 else | |
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6370 $as_echo "ok" >&6; } | |
6371 fi | |
6372 | |
6373 # Response file support. | |
6374 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6375 nm_file_list_spec='@' | |
6376 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6377 nm_file_list_spec='@' | |
6378 fi | |
6379 | |
6380 | |
6381 | |
6382 | |
6383 | |
6384 | |
6385 | |
6386 | |
6387 | |
6388 | |
6389 | |
6390 | |
6391 | |
6392 | |
6393 | |
6394 | |
6395 | |
6396 | |
6397 | |
6398 | |
6399 | |
6400 | |
6401 | |
6402 | |
6403 | |
6404 | |
6405 | |
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6407 $as_echo_n "checking for sysroot... " >&6; } | |
6408 | |
6409 # Check whether --with-sysroot was given. | |
6410 if test "${with_sysroot+set}" = set; then : | |
6411 withval=$with_sysroot; | |
6412 else | |
6413 with_sysroot=no | |
6414 fi | |
6415 | |
6416 | |
6417 lt_sysroot= | |
6418 case ${with_sysroot} in #( | |
6419 yes) | |
6420 if test "$GCC" = yes; then | |
6421 lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6422 fi | |
6423 ;; #( | |
6424 /*) | |
6425 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6426 ;; #( | |
6427 no|'') | |
6428 ;; #( | |
6429 *) | |
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6431 $as_echo "${with_sysroot}" >&6; } | |
6432 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6433 ;; | |
6434 esac | |
6435 | |
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6437 $as_echo "${lt_sysroot:-no}" >&6; } | |
6438 | |
6439 | |
6440 | |
6441 | |
6442 | |
6443 # Check whether --enable-libtool-lock was given. | |
6444 if test "${enable_libtool_lock+set}" = set; then : | |
6445 enableval=$enable_libtool_lock; | |
6446 fi | |
6447 | |
6448 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6449 | |
6450 # Some flags need to be propagated to the compiler or linker for good | |
6451 # libtool support. | |
6452 case $host in | |
6453 ia64-*-hpux*) | |
6454 # Find out which ABI we are using. | |
6455 echo 'int i;' > conftest.$ac_ext | |
6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6457 (eval $ac_compile) 2>&5 | |
6458 ac_status=$? | |
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6460 test $ac_status = 0; }; then | |
6461 case `/usr/bin/file conftest.$ac_objext` in | |
6462 *ELF-32*) | |
6463 HPUX_IA64_MODE="32" | |
6464 ;; | |
6465 *ELF-64*) | |
6466 HPUX_IA64_MODE="64" | |
6467 ;; | |
6468 esac | |
6469 fi | |
6470 rm -rf conftest* | |
6471 ;; | |
6472 *-*-irix6*) | |
6473 # Find out which ABI we are using. | |
6474 echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6476 (eval $ac_compile) 2>&5 | |
6477 ac_status=$? | |
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6479 test $ac_status = 0; }; then | |
6480 if test "$lt_cv_prog_gnu_ld" = yes; then | |
6481 case `/usr/bin/file conftest.$ac_objext` in | |
6482 *32-bit*) | |
6483 LD="${LD-ld} -melf32bsmip" | |
6484 ;; | |
6485 *N32*) | |
6486 LD="${LD-ld} -melf32bmipn32" | |
6487 ;; | |
6488 *64-bit*) | |
6489 LD="${LD-ld} -melf64bmip" | |
6490 ;; | |
6491 esac | |
6492 else | |
6493 case `/usr/bin/file conftest.$ac_objext` in | |
6494 *32-bit*) | |
6495 LD="${LD-ld} -32" | |
6496 ;; | |
6497 *N32*) | |
6498 LD="${LD-ld} -n32" | |
6499 ;; | |
6500 *64-bit*) | |
6501 LD="${LD-ld} -64" | |
6502 ;; | |
6503 esac | |
6504 fi | |
6505 fi | |
6506 rm -rf conftest* | |
6507 ;; | |
6508 | |
6509 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6510 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6511 # Find out which ABI we are using. | |
6512 echo 'int i;' > conftest.$ac_ext | |
6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6514 (eval $ac_compile) 2>&5 | |
6515 ac_status=$? | |
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6517 test $ac_status = 0; }; then | |
6518 case `/usr/bin/file conftest.o` in | |
6519 *32-bit*) | |
6520 case $host in | |
6521 x86_64-*kfreebsd*-gnu) | |
6522 LD="${LD-ld} -m elf_i386_fbsd" | |
6523 ;; | |
6524 x86_64-*linux*) | |
6525 LD="${LD-ld} -m elf_i386" | |
6526 ;; | |
6527 ppc64-*linux*|powerpc64-*linux*) | |
6528 LD="${LD-ld} -m elf32ppclinux" | |
6529 ;; | |
6530 s390x-*linux*) | |
6531 LD="${LD-ld} -m elf_s390" | |
6532 ;; | |
6533 sparc64-*linux*) | |
6534 LD="${LD-ld} -m elf32_sparc" | |
6535 ;; | |
6536 esac | |
6537 ;; | |
6538 *64-bit*) | |
6539 case $host in | |
6540 x86_64-*kfreebsd*-gnu) | |
6541 LD="${LD-ld} -m elf_x86_64_fbsd" | |
6542 ;; | |
6543 x86_64-*linux*) | |
6544 LD="${LD-ld} -m elf_x86_64" | |
6545 ;; | |
6546 ppc*-*linux*|powerpc*-*linux*) | |
6547 LD="${LD-ld} -m elf64ppc" | |
6548 ;; | |
6549 s390*-*linux*|s390*-*tpf*) | |
6550 LD="${LD-ld} -m elf64_s390" | |
6551 ;; | |
6552 sparc*-*linux*) | |
6553 LD="${LD-ld} -m elf64_sparc" | |
6554 ;; | |
6555 esac | |
6556 ;; | |
6557 esac | |
6558 fi | |
6559 rm -rf conftest* | |
6560 ;; | |
6561 | |
6562 *-*-sco3.2v5*) | |
6563 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6564 SAVE_CFLAGS="$CFLAGS" | |
6565 CFLAGS="$CFLAGS -belf" | |
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6567 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6568 if ${lt_cv_cc_needs_belf+:} false; then : | |
6569 $as_echo_n "(cached) " >&6 | |
6570 else | |
6571 ac_ext=c | |
6572 ac_cpp='$CPP $CPPFLAGS' | |
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6576 | |
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6578 /* end confdefs.h. */ | |
6579 | |
6580 int | |
6581 main () | |
6582 { | |
6583 | |
6584 ; | |
6585 return 0; | |
6586 } | |
6587 _ACEOF | |
6588 if ac_fn_c_try_link "$LINENO"; then : | |
6589 lt_cv_cc_needs_belf=yes | |
6590 else | |
6591 lt_cv_cc_needs_belf=no | |
6592 fi | |
6593 rm -f core conftest.err conftest.$ac_objext \ | |
6594 conftest$ac_exeext conftest.$ac_ext | |
6595 ac_ext=c | |
6596 ac_cpp='$CPP $CPPFLAGS' | |
6597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6599 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6600 | |
6601 fi | |
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6603 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6606 CFLAGS="$SAVE_CFLAGS" | |
6607 fi | |
6608 ;; | |
6609 sparc*-*solaris*) | |
6610 # Find out which ABI we are using. | |
6611 echo 'int i;' > conftest.$ac_ext | |
6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6613 (eval $ac_compile) 2>&5 | |
6614 ac_status=$? | |
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6616 test $ac_status = 0; }; then | |
6617 case `/usr/bin/file conftest.o` in | |
6618 *64-bit*) | |
6619 case $lt_cv_prog_gnu_ld in | |
6620 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6621 *) | |
6622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6623 LD="${LD-ld} -64" | |
6624 fi | |
6625 ;; | |
6626 esac | |
6627 ;; | |
6628 esac | |
6629 fi | |
6630 rm -rf conftest* | |
6631 ;; | |
6632 esac | |
6633 | |
6634 need_locks="$enable_libtool_lock" | |
6635 | |
6636 if test -n "$ac_tool_prefix"; then | |
6637 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6638 set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6640 $as_echo_n "checking for $ac_word... " >&6; } | |
6641 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6642 $as_echo_n "(cached) " >&6 | |
6643 else | |
6644 if test -n "$MANIFEST_TOOL"; then | |
6645 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6646 else | |
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6648 for as_dir in $PATH | |
6649 do | |
6650 IFS=$as_save_IFS | |
6651 test -z "$as_dir" && as_dir=. | |
6652 for ac_exec_ext in '' $ac_executable_extensions; do | |
6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6654 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6656 break 2 | |
6657 fi | |
6658 done | |
6659 done | |
6660 IFS=$as_save_IFS | |
6661 | |
6662 fi | |
6663 fi | |
6664 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6665 if test -n "$MANIFEST_TOOL"; then | |
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6667 $as_echo "$MANIFEST_TOOL" >&6; } | |
6668 else | |
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6670 $as_echo "no" >&6; } | |
6671 fi | |
6672 | |
6673 | |
6674 fi | |
6675 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6676 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6677 # Extract the first word of "mt", so it can be a program name with args. | |
6678 set dummy mt; ac_word=$2 | |
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6680 $as_echo_n "checking for $ac_word... " >&6; } | |
6681 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6682 $as_echo_n "(cached) " >&6 | |
6683 else | |
6684 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6685 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6686 else | |
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6688 for as_dir in $PATH | |
6689 do | |
6690 IFS=$as_save_IFS | |
6691 test -z "$as_dir" && as_dir=. | |
6692 for ac_exec_ext in '' $ac_executable_extensions; do | |
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6694 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6696 break 2 | |
6697 fi | |
6698 done | |
6699 done | |
6700 IFS=$as_save_IFS | |
6701 | |
6702 fi | |
6703 fi | |
6704 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6705 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6707 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6708 else | |
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6710 $as_echo "no" >&6; } | |
6711 fi | |
6712 | |
6713 if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6714 MANIFEST_TOOL=":" | |
6715 else | |
6716 case $cross_compiling:$ac_tool_warned in | |
6717 yes:) | |
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6720 ac_tool_warned=yes ;; | |
6721 esac | |
6722 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6723 fi | |
6724 else | |
6725 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6726 fi | |
6727 | |
6728 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6730 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6731 if ${lt_cv_path_mainfest_tool+:} false; then : | |
6732 $as_echo_n "(cached) " >&6 | |
6733 else | |
6734 lt_cv_path_mainfest_tool=no | |
6735 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6736 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6737 cat conftest.err >&5 | |
6738 if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6739 lt_cv_path_mainfest_tool=yes | |
6740 fi | |
6741 rm -f conftest* | |
6742 fi | |
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6744 $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6745 if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
6746 MANIFEST_TOOL=: | |
6747 fi | |
6748 | |
6749 | |
6750 | |
6751 | |
6752 | |
6753 | |
6754 case $host_os in | |
6755 rhapsody* | darwin*) | |
6756 if test -n "$ac_tool_prefix"; then | |
6757 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6758 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6760 $as_echo_n "checking for $ac_word... " >&6; } | |
6761 if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
6762 $as_echo_n "(cached) " >&6 | |
6763 else | |
6764 if test -n "$DSYMUTIL"; then | |
6765 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6766 else | |
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6768 for as_dir in $PATH | |
6769 do | |
6770 IFS=$as_save_IFS | |
6771 test -z "$as_dir" && as_dir=. | |
6772 for ac_exec_ext in '' $ac_executable_extensions; do | |
6773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6774 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6776 break 2 | |
6777 fi | |
6778 done | |
6779 done | |
6780 IFS=$as_save_IFS | |
6781 | |
6782 fi | |
6783 fi | |
6784 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6785 if test -n "$DSYMUTIL"; then | |
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
6787 $as_echo "$DSYMUTIL" >&6; } | |
6788 else | |
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6790 $as_echo "no" >&6; } | |
6791 fi | |
6792 | |
6793 | |
6794 fi | |
6795 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6796 ac_ct_DSYMUTIL=$DSYMUTIL | |
6797 # Extract the first word of "dsymutil", so it can be a program name with args. | |
6798 set dummy dsymutil; ac_word=$2 | |
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6800 $as_echo_n "checking for $ac_word... " >&6; } | |
6801 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
6802 $as_echo_n "(cached) " >&6 | |
6803 else | |
6804 if test -n "$ac_ct_DSYMUTIL"; then | |
6805 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6806 else | |
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6808 for as_dir in $PATH | |
6809 do | |
6810 IFS=$as_save_IFS | |
6811 test -z "$as_dir" && as_dir=. | |
6812 for ac_exec_ext in '' $ac_executable_extensions; do | |
6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6814 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6816 break 2 | |
6817 fi | |
6818 done | |
6819 done | |
6820 IFS=$as_save_IFS | |
6821 | |
6822 fi | |
6823 fi | |
6824 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6825 if test -n "$ac_ct_DSYMUTIL"; then | |
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
6827 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6828 else | |
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6830 $as_echo "no" >&6; } | |
6831 fi | |
6832 | |
6833 if test "x$ac_ct_DSYMUTIL" = x; then | |
6834 DSYMUTIL=":" | |
6835 else | |
6836 case $cross_compiling:$ac_tool_warned in | |
6837 yes:) | |
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6840 ac_tool_warned=yes ;; | |
6841 esac | |
6842 DSYMUTIL=$ac_ct_DSYMUTIL | |
6843 fi | |
6844 else | |
6845 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6846 fi | |
6847 | |
6848 if test -n "$ac_tool_prefix"; then | |
6849 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6850 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6852 $as_echo_n "checking for $ac_word... " >&6; } | |
6853 if ${ac_cv_prog_NMEDIT+:} false; then : | |
6854 $as_echo_n "(cached) " >&6 | |
6855 else | |
6856 if test -n "$NMEDIT"; then | |
6857 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6858 else | |
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6860 for as_dir in $PATH | |
6861 do | |
6862 IFS=$as_save_IFS | |
6863 test -z "$as_dir" && as_dir=. | |
6864 for ac_exec_ext in '' $ac_executable_extensions; do | |
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6866 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6868 break 2 | |
6869 fi | |
6870 done | |
6871 done | |
6872 IFS=$as_save_IFS | |
6873 | |
6874 fi | |
6875 fi | |
6876 NMEDIT=$ac_cv_prog_NMEDIT | |
6877 if test -n "$NMEDIT"; then | |
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
6879 $as_echo "$NMEDIT" >&6; } | |
6880 else | |
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6882 $as_echo "no" >&6; } | |
6883 fi | |
6884 | |
6885 | |
6886 fi | |
6887 if test -z "$ac_cv_prog_NMEDIT"; then | |
6888 ac_ct_NMEDIT=$NMEDIT | |
6889 # Extract the first word of "nmedit", so it can be a program name with args. | |
6890 set dummy nmedit; ac_word=$2 | |
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6892 $as_echo_n "checking for $ac_word... " >&6; } | |
6893 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
6894 $as_echo_n "(cached) " >&6 | |
6895 else | |
6896 if test -n "$ac_ct_NMEDIT"; then | |
6897 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6898 else | |
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6900 for as_dir in $PATH | |
6901 do | |
6902 IFS=$as_save_IFS | |
6903 test -z "$as_dir" && as_dir=. | |
6904 for ac_exec_ext in '' $ac_executable_extensions; do | |
6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6906 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6908 break 2 | |
6909 fi | |
6910 done | |
6911 done | |
6912 IFS=$as_save_IFS | |
6913 | |
6914 fi | |
6915 fi | |
6916 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6917 if test -n "$ac_ct_NMEDIT"; then | |
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
6919 $as_echo "$ac_ct_NMEDIT" >&6; } | |
6920 else | |
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6922 $as_echo "no" >&6; } | |
6923 fi | |
6924 | |
6925 if test "x$ac_ct_NMEDIT" = x; then | |
6926 NMEDIT=":" | |
6927 else | |
6928 case $cross_compiling:$ac_tool_warned in | |
6929 yes:) | |
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6932 ac_tool_warned=yes ;; | |
6933 esac | |
6934 NMEDIT=$ac_ct_NMEDIT | |
6935 fi | |
6936 else | |
6937 NMEDIT="$ac_cv_prog_NMEDIT" | |
6938 fi | |
6939 | |
6940 if test -n "$ac_tool_prefix"; then | |
6941 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6942 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6944 $as_echo_n "checking for $ac_word... " >&6; } | |
6945 if ${ac_cv_prog_LIPO+:} false; then : | |
6946 $as_echo_n "(cached) " >&6 | |
6947 else | |
6948 if test -n "$LIPO"; then | |
6949 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6950 else | |
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6952 for as_dir in $PATH | |
6953 do | |
6954 IFS=$as_save_IFS | |
6955 test -z "$as_dir" && as_dir=. | |
6956 for ac_exec_ext in '' $ac_executable_extensions; do | |
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6958 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6960 break 2 | |
6961 fi | |
6962 done | |
6963 done | |
6964 IFS=$as_save_IFS | |
6965 | |
6966 fi | |
6967 fi | |
6968 LIPO=$ac_cv_prog_LIPO | |
6969 if test -n "$LIPO"; then | |
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
6971 $as_echo "$LIPO" >&6; } | |
6972 else | |
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6974 $as_echo "no" >&6; } | |
6975 fi | |
6976 | |
6977 | |
6978 fi | |
6979 if test -z "$ac_cv_prog_LIPO"; then | |
6980 ac_ct_LIPO=$LIPO | |
6981 # Extract the first word of "lipo", so it can be a program name with args. | |
6982 set dummy lipo; ac_word=$2 | |
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6984 $as_echo_n "checking for $ac_word... " >&6; } | |
6985 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
6986 $as_echo_n "(cached) " >&6 | |
6987 else | |
6988 if test -n "$ac_ct_LIPO"; then | |
6989 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6990 else | |
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6992 for as_dir in $PATH | |
6993 do | |
6994 IFS=$as_save_IFS | |
6995 test -z "$as_dir" && as_dir=. | |
6996 for ac_exec_ext in '' $ac_executable_extensions; do | |
6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6998 ac_cv_prog_ac_ct_LIPO="lipo" | |
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7000 break 2 | |
7001 fi | |
7002 done | |
7003 done | |
7004 IFS=$as_save_IFS | |
7005 | |
7006 fi | |
7007 fi | |
7008 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7009 if test -n "$ac_ct_LIPO"; then | |
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7011 $as_echo "$ac_ct_LIPO" >&6; } | |
7012 else | |
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7014 $as_echo "no" >&6; } | |
7015 fi | |
7016 | |
7017 if test "x$ac_ct_LIPO" = x; then | |
7018 LIPO=":" | |
7019 else | |
7020 case $cross_compiling:$ac_tool_warned in | |
7021 yes:) | |
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7024 ac_tool_warned=yes ;; | |
7025 esac | |
7026 LIPO=$ac_ct_LIPO | |
7027 fi | |
7028 else | |
7029 LIPO="$ac_cv_prog_LIPO" | |
7030 fi | |
7031 | |
7032 if test -n "$ac_tool_prefix"; then | |
7033 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7034 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7036 $as_echo_n "checking for $ac_word... " >&6; } | |
7037 if ${ac_cv_prog_OTOOL+:} false; then : | |
7038 $as_echo_n "(cached) " >&6 | |
7039 else | |
7040 if test -n "$OTOOL"; then | |
7041 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7042 else | |
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7044 for as_dir in $PATH | |
7045 do | |
7046 IFS=$as_save_IFS | |
7047 test -z "$as_dir" && as_dir=. | |
7048 for ac_exec_ext in '' $ac_executable_extensions; do | |
7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7050 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7052 break 2 | |
7053 fi | |
7054 done | |
7055 done | |
7056 IFS=$as_save_IFS | |
7057 | |
7058 fi | |
7059 fi | |
7060 OTOOL=$ac_cv_prog_OTOOL | |
7061 if test -n "$OTOOL"; then | |
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7063 $as_echo "$OTOOL" >&6; } | |
7064 else | |
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7066 $as_echo "no" >&6; } | |
7067 fi | |
7068 | |
7069 | |
7070 fi | |
7071 if test -z "$ac_cv_prog_OTOOL"; then | |
7072 ac_ct_OTOOL=$OTOOL | |
7073 # Extract the first word of "otool", so it can be a program name with args. | |
7074 set dummy otool; ac_word=$2 | |
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7076 $as_echo_n "checking for $ac_word... " >&6; } | |
7077 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7078 $as_echo_n "(cached) " >&6 | |
7079 else | |
7080 if test -n "$ac_ct_OTOOL"; then | |
7081 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7082 else | |
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7084 for as_dir in $PATH | |
7085 do | |
7086 IFS=$as_save_IFS | |
7087 test -z "$as_dir" && as_dir=. | |
7088 for ac_exec_ext in '' $ac_executable_extensions; do | |
7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7090 ac_cv_prog_ac_ct_OTOOL="otool" | |
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7092 break 2 | |
7093 fi | |
7094 done | |
7095 done | |
7096 IFS=$as_save_IFS | |
7097 | |
7098 fi | |
7099 fi | |
7100 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7101 if test -n "$ac_ct_OTOOL"; then | |
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7103 $as_echo "$ac_ct_OTOOL" >&6; } | |
7104 else | |
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7106 $as_echo "no" >&6; } | |
7107 fi | |
7108 | |
7109 if test "x$ac_ct_OTOOL" = x; then | |
7110 OTOOL=":" | |
7111 else | |
7112 case $cross_compiling:$ac_tool_warned in | |
7113 yes:) | |
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7116 ac_tool_warned=yes ;; | |
7117 esac | |
7118 OTOOL=$ac_ct_OTOOL | |
7119 fi | |
7120 else | |
7121 OTOOL="$ac_cv_prog_OTOOL" | |
7122 fi | |
7123 | |
7124 if test -n "$ac_tool_prefix"; then | |
7125 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7126 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7128 $as_echo_n "checking for $ac_word... " >&6; } | |
7129 if ${ac_cv_prog_OTOOL64+:} false; then : | |
7130 $as_echo_n "(cached) " >&6 | |
7131 else | |
7132 if test -n "$OTOOL64"; then | |
7133 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7134 else | |
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7136 for as_dir in $PATH | |
7137 do | |
7138 IFS=$as_save_IFS | |
7139 test -z "$as_dir" && as_dir=. | |
7140 for ac_exec_ext in '' $ac_executable_extensions; do | |
7141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7142 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7144 break 2 | |
7145 fi | |
7146 done | |
7147 done | |
7148 IFS=$as_save_IFS | |
7149 | |
7150 fi | |
7151 fi | |
7152 OTOOL64=$ac_cv_prog_OTOOL64 | |
7153 if test -n "$OTOOL64"; then | |
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7155 $as_echo "$OTOOL64" >&6; } | |
7156 else | |
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7158 $as_echo "no" >&6; } | |
7159 fi | |
7160 | |
7161 | |
7162 fi | |
7163 if test -z "$ac_cv_prog_OTOOL64"; then | |
7164 ac_ct_OTOOL64=$OTOOL64 | |
7165 # Extract the first word of "otool64", so it can be a program name with args. | |
7166 set dummy otool64; ac_word=$2 | |
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7168 $as_echo_n "checking for $ac_word... " >&6; } | |
7169 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7170 $as_echo_n "(cached) " >&6 | |
7171 else | |
7172 if test -n "$ac_ct_OTOOL64"; then | |
7173 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7174 else | |
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7176 for as_dir in $PATH | |
7177 do | |
7178 IFS=$as_save_IFS | |
7179 test -z "$as_dir" && as_dir=. | |
7180 for ac_exec_ext in '' $ac_executable_extensions; do | |
7181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7182 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7184 break 2 | |
7185 fi | |
7186 done | |
7187 done | |
7188 IFS=$as_save_IFS | |
7189 | |
7190 fi | |
7191 fi | |
7192 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7193 if test -n "$ac_ct_OTOOL64"; then | |
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7195 $as_echo "$ac_ct_OTOOL64" >&6; } | |
7196 else | |
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7198 $as_echo "no" >&6; } | |
7199 fi | |
7200 | |
7201 if test "x$ac_ct_OTOOL64" = x; then | |
7202 OTOOL64=":" | |
7203 else | |
7204 case $cross_compiling:$ac_tool_warned in | |
7205 yes:) | |
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7208 ac_tool_warned=yes ;; | |
7209 esac | |
7210 OTOOL64=$ac_ct_OTOOL64 | |
7211 fi | |
7212 else | |
7213 OTOOL64="$ac_cv_prog_OTOOL64" | |
7214 fi | |
7215 | |
7216 | |
7217 | |
7218 | |
7219 | |
7220 | |
7221 | |
7222 | |
7223 | |
7224 | |
7225 | |
7226 | |
7227 | |
7228 | |
7229 | |
7230 | |
7231 | |
7232 | |
7233 | |
7234 | |
7235 | |
7236 | |
7237 | |
7238 | |
7239 | |
7240 | |
7241 | |
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7243 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7244 if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7245 $as_echo_n "(cached) " >&6 | |
7246 else | |
7247 lt_cv_apple_cc_single_mod=no | |
7248 if test -z "${LT_MULTI_MODULE}"; then | |
7249 # By default we will add the -single_module flag. You can override | |
7250 # by either setting the environment variable LT_MULTI_MODULE | |
7251 # non-empty at configure time, or by adding -multi_module to the | |
7252 # link flags. | |
7253 rm -rf libconftest.dylib* | |
7254 echo "int foo(void){return 1;}" > conftest.c | |
7255 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7256 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7257 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7258 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7259 _lt_result=$? | |
7260 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7261 lt_cv_apple_cc_single_mod=yes | |
7262 else | |
7263 cat conftest.err >&5 | |
7264 fi | |
7265 rm -rf libconftest.dylib* | |
7266 rm -f conftest.* | |
7267 fi | |
7268 fi | |
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7270 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7272 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7273 if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7274 $as_echo_n "(cached) " >&6 | |
7275 else | |
7276 lt_cv_ld_exported_symbols_list=no | |
7277 save_LDFLAGS=$LDFLAGS | |
7278 echo "_main" > conftest.sym | |
7279 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7281 /* end confdefs.h. */ | |
7282 | |
7283 int | |
7284 main () | |
7285 { | |
7286 | |
7287 ; | |
7288 return 0; | |
7289 } | |
7290 _ACEOF | |
7291 if ac_fn_c_try_link "$LINENO"; then : | |
7292 lt_cv_ld_exported_symbols_list=yes | |
7293 else | |
7294 lt_cv_ld_exported_symbols_list=no | |
7295 fi | |
7296 rm -f core conftest.err conftest.$ac_objext \ | |
7297 conftest$ac_exeext conftest.$ac_ext | |
7298 LDFLAGS="$save_LDFLAGS" | |
7299 | |
7300 fi | |
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7302 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7304 $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7305 if ${lt_cv_ld_force_load+:} false; then : | |
7306 $as_echo_n "(cached) " >&6 | |
7307 else | |
7308 lt_cv_ld_force_load=no | |
7309 cat > conftest.c << _LT_EOF | |
7310 int forced_loaded() { return 2;} | |
7311 _LT_EOF | |
7312 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7313 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7314 echo "$AR cru libconftest.a conftest.o" >&5 | |
7315 $AR cru libconftest.a conftest.o 2>&5 | |
7316 echo "$RANLIB libconftest.a" >&5 | |
7317 $RANLIB libconftest.a 2>&5 | |
7318 cat > conftest.c << _LT_EOF | |
7319 int main() { return 0;} | |
7320 _LT_EOF | |
7321 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7322 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7323 _lt_result=$? | |
7324 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7325 lt_cv_ld_force_load=yes | |
7326 else | |
7327 cat conftest.err >&5 | |
7328 fi | |
7329 rm -f conftest.err libconftest.a conftest conftest.c | |
7330 rm -rf conftest.dSYM | |
7331 | |
7332 fi | |
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7334 $as_echo "$lt_cv_ld_force_load" >&6; } | |
7335 case $host_os in | |
7336 rhapsody* | darwin1.[012]) | |
7337 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7338 darwin1.*) | |
7339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7340 darwin*) # darwin 5.x on | |
7341 # if running on 10.5 or later, the deployment target defaults | |
7342 # to the OS version, if on x86, and 10.4, the deployment | |
7343 # target defaults to 10.4. Don't you love it? | |
7344 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7345 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7346 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7347 10.[012]*) | |
7348 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7349 10.*) | |
7350 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7351 esac | |
7352 ;; | |
7353 esac | |
7354 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7355 _lt_dar_single_mod='$single_module' | |
7356 fi | |
7357 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7358 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7359 else | |
7360 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7361 fi | |
7362 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7363 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7364 else | |
7365 _lt_dsymutil= | |
7366 fi | |
7367 ;; | |
7368 esac | |
7369 | |
7370 ac_ext=c | |
7371 ac_cpp='$CPP $CPPFLAGS' | |
7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7376 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7377 # On Suns, sometimes $CPP names a directory. | |
7378 if test -n "$CPP" && test -d "$CPP"; then | |
7379 CPP= | |
7380 fi | |
7381 if test -z "$CPP"; then | |
7382 if ${ac_cv_prog_CPP+:} false; then : | |
7383 $as_echo_n "(cached) " >&6 | |
7384 else | |
7385 # Double quotes because CPP needs to be expanded | |
7386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7387 do | |
7388 ac_preproc_ok=false | |
7389 for ac_c_preproc_warn_flag in '' yes | |
7390 do | |
7391 # Use a header file that comes with gcc, so configuring glibc | |
7392 # with a fresh cross-compiler works. | |
7393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7394 # <limits.h> exists even on freestanding compilers. | |
7395 # On the NeXT, cc -E runs the code through the compiler's parser, | |
7396 # not just through cpp. "Syntax error" is here to catch this case. | |
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7398 /* end confdefs.h. */ | |
7399 #ifdef __STDC__ | |
7400 # include <limits.h> | |
7401 #else | |
7402 # include <assert.h> | |
7403 #endif | |
7404 Syntax error | |
7405 _ACEOF | |
7406 if ac_fn_c_try_cpp "$LINENO"; then : | |
7407 | |
7408 else | |
7409 # Broken: fails on valid input. | |
7410 continue | |
7411 fi | |
7412 rm -f conftest.err conftest.i conftest.$ac_ext | |
7413 | |
7414 # OK, works on sane cases. Now check whether nonexistent headers | |
7415 # can be detected and how. | |
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7417 /* end confdefs.h. */ | |
7418 #include <ac_nonexistent.h> | |
7419 _ACEOF | |
7420 if ac_fn_c_try_cpp "$LINENO"; then : | |
7421 # Broken: success on invalid input. | |
7422 continue | |
7423 else | |
7424 # Passes both tests. | |
7425 ac_preproc_ok=: | |
7426 break | |
7427 fi | |
7428 rm -f conftest.err conftest.i conftest.$ac_ext | |
7429 | |
7430 done | |
7431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7432 rm -f conftest.i conftest.err conftest.$ac_ext | |
7433 if $ac_preproc_ok; then : | |
7434 break | |
7435 fi | |
7436 | |
7437 done | |
7438 ac_cv_prog_CPP=$CPP | |
7439 | |
7440 fi | |
7441 CPP=$ac_cv_prog_CPP | |
7442 else | |
7443 ac_cv_prog_CPP=$CPP | |
7444 fi | |
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7446 $as_echo "$CPP" >&6; } | |
7447 ac_preproc_ok=false | |
7448 for ac_c_preproc_warn_flag in '' yes | |
7449 do | |
7450 # Use a header file that comes with gcc, so configuring glibc | |
7451 # with a fresh cross-compiler works. | |
7452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7453 # <limits.h> exists even on freestanding compilers. | |
7454 # On the NeXT, cc -E runs the code through the compiler's parser, | |
7455 # not just through cpp. "Syntax error" is here to catch this case. | |
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7457 /* end confdefs.h. */ | |
7458 #ifdef __STDC__ | |
7459 # include <limits.h> | |
7460 #else | |
7461 # include <assert.h> | |
7462 #endif | |
7463 Syntax error | |
7464 _ACEOF | |
7465 if ac_fn_c_try_cpp "$LINENO"; then : | |
7466 | |
7467 else | |
7468 # Broken: fails on valid input. | |
7469 continue | |
7470 fi | |
7471 rm -f conftest.err conftest.i conftest.$ac_ext | |
7472 | |
7473 # OK, works on sane cases. Now check whether nonexistent headers | |
7474 # can be detected and how. | |
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7476 /* end confdefs.h. */ | |
7477 #include <ac_nonexistent.h> | |
7478 _ACEOF | |
7479 if ac_fn_c_try_cpp "$LINENO"; then : | |
7480 # Broken: success on invalid input. | |
7481 continue | |
7482 else | |
7483 # Passes both tests. | |
7484 ac_preproc_ok=: | |
7485 break | |
7486 fi | |
7487 rm -f conftest.err conftest.i conftest.$ac_ext | |
7488 | |
7489 done | |
7490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7491 rm -f conftest.i conftest.err conftest.$ac_ext | |
7492 if $ac_preproc_ok; then : | |
7493 | |
7494 else | |
7495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7497 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7498 See \`config.log' for more details" "$LINENO" 5; } | |
7499 fi | |
7500 | |
7501 ac_ext=c | |
7502 ac_cpp='$CPP $CPPFLAGS' | |
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7506 | |
7507 | |
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7509 $as_echo_n "checking for ANSI C header files... " >&6; } | |
7510 if ${ac_cv_header_stdc+:} false; then : | |
7511 $as_echo_n "(cached) " >&6 | |
7512 else | |
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7514 /* end confdefs.h. */ | |
7515 #include <stdlib.h> | |
7516 #include <stdarg.h> | |
7517 #include <string.h> | |
7518 #include <float.h> | |
7519 | |
7520 int | |
7521 main () | |
7522 { | |
7523 | |
7524 ; | |
7525 return 0; | |
7526 } | |
7527 _ACEOF | |
7528 if ac_fn_c_try_compile "$LINENO"; then : | |
7529 ac_cv_header_stdc=yes | |
7530 else | |
7531 ac_cv_header_stdc=no | |
7532 fi | |
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7534 | |
7535 if test $ac_cv_header_stdc = yes; then | |
7536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7538 /* end confdefs.h. */ | |
7539 #include <string.h> | |
7540 | |
7541 _ACEOF | |
7542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7543 $EGREP "memchr" >/dev/null 2>&1; then : | |
7544 | |
7545 else | |
7546 ac_cv_header_stdc=no | |
7547 fi | |
7548 rm -f conftest* | |
7549 | |
7550 fi | |
7551 | |
7552 if test $ac_cv_header_stdc = yes; then | |
7553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7555 /* end confdefs.h. */ | |
7556 #include <stdlib.h> | |
7557 | |
7558 _ACEOF | |
7559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7560 $EGREP "free" >/dev/null 2>&1; then : | |
7561 | |
7562 else | |
7563 ac_cv_header_stdc=no | |
7564 fi | |
7565 rm -f conftest* | |
7566 | |
7567 fi | |
7568 | |
7569 if test $ac_cv_header_stdc = yes; then | |
7570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7571 if test "$cross_compiling" = yes; then : | |
7572 : | |
7573 else | |
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7575 /* end confdefs.h. */ | |
7576 #include <ctype.h> | |
7577 #include <stdlib.h> | |
7578 #if ((' ' & 0x0FF) == 0x020) | |
7579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7581 #else | |
7582 # define ISLOWER(c) \ | |
7583 (('a' <= (c) && (c) <= 'i') \ | |
7584 || ('j' <= (c) && (c) <= 'r') \ | |
7585 || ('s' <= (c) && (c) <= 'z')) | |
7586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7587 #endif | |
7588 | |
7589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7590 int | |
7591 main () | |
7592 { | |
7593 int i; | |
7594 for (i = 0; i < 256; i++) | |
7595 if (XOR (islower (i), ISLOWER (i)) | |
7596 || toupper (i) != TOUPPER (i)) | |
7597 return 2; | |
7598 return 0; | |
7599 } | |
7600 _ACEOF | |
7601 if ac_fn_c_try_run "$LINENO"; then : | |
7602 | |
7603 else | |
7604 ac_cv_header_stdc=no | |
7605 fi | |
7606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7607 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7608 fi | |
7609 | |
7610 fi | |
7611 fi | |
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7613 $as_echo "$ac_cv_header_stdc" >&6; } | |
7614 if test $ac_cv_header_stdc = yes; then | |
7615 | |
7616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7617 | |
7618 fi | |
7619 | |
7620 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7621 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7622 inttypes.h stdint.h unistd.h | |
7623 do : | |
7624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7625 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7626 " | |
7627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7628 cat >>confdefs.h <<_ACEOF | |
7629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7630 _ACEOF | |
7631 | |
7632 fi | |
7633 | |
7634 done | |
7635 | |
7636 | |
7637 for ac_header in dlfcn.h | |
7638 do : | |
7639 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7640 " | |
7641 if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
7642 cat >>confdefs.h <<_ACEOF | |
7643 #define HAVE_DLFCN_H 1 | |
7644 _ACEOF | |
7645 | |
7646 fi | |
7647 | |
7648 done | |
7649 | |
7650 | |
7651 | |
7652 | |
7653 func_stripname_cnf () | |
7654 { | |
7655 case ${2} in | |
7656 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
7657 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
7658 esac | |
7659 } # func_stripname_cnf | |
7660 | |
7661 | |
7662 | |
7663 | |
7664 | |
7665 # Set options | |
7666 | |
7667 | |
7668 | |
7669 enable_dlopen=no | |
7670 | |
7671 | |
7672 | |
7673 # Check whether --enable-shared was given. | |
7674 if test "${enable_shared+set}" = set; then : | |
7675 enableval=$enable_shared; p=${PACKAGE-default} | |
7676 case $enableval in | |
7677 yes) enable_shared=yes ;; | |
7678 no) enable_shared=no ;; | |
7679 *) | |
7680 enable_shared=no | |
7681 # Look at the argument we got. We use all the common list separators. | |
7682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7683 for pkg in $enableval; do | |
7684 IFS="$lt_save_ifs" | |
7685 if test "X$pkg" = "X$p"; then | |
7686 enable_shared=yes | |
7687 fi | |
7688 done | |
7689 IFS="$lt_save_ifs" | |
7690 ;; | |
7691 esac | |
7692 else | |
7693 enable_shared=yes | |
7694 fi | |
7695 | |
7696 | |
7697 | |
7698 | |
7699 | |
7700 | |
7701 | |
7702 | |
7703 | |
7704 # Check whether --enable-static was given. | |
7705 if test "${enable_static+set}" = set; then : | |
7706 enableval=$enable_static; p=${PACKAGE-default} | |
7707 case $enableval in | |
7708 yes) enable_static=yes ;; | |
7709 no) enable_static=no ;; | |
7710 *) | |
7711 enable_static=no | |
7712 # Look at the argument we got. We use all the common list separators. | |
7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7714 for pkg in $enableval; do | |
7715 IFS="$lt_save_ifs" | |
7716 if test "X$pkg" = "X$p"; then | |
7717 enable_static=yes | |
7718 fi | |
7719 done | |
7720 IFS="$lt_save_ifs" | |
7721 ;; | |
7722 esac | |
7723 else | |
7724 enable_static=yes | |
7725 fi | |
7726 | |
7727 | |
7728 | |
7729 | |
7730 | |
7731 | |
7732 | |
7733 | |
7734 | |
7735 | |
7736 # Check whether --with-pic was given. | |
7737 if test "${with_pic+set}" = set; then : | |
7738 withval=$with_pic; pic_mode="$withval" | |
7739 else | |
7740 pic_mode=default | |
7741 fi | |
7742 | |
7743 | |
7744 test -z "$pic_mode" && pic_mode=default | |
7745 | |
7746 | |
7747 | |
7748 | |
7749 | |
7750 | |
7751 | |
7752 # Check whether --enable-fast-install was given. | |
7753 if test "${enable_fast_install+set}" = set; then : | |
7754 enableval=$enable_fast_install; p=${PACKAGE-default} | |
7755 case $enableval in | |
7756 yes) enable_fast_install=yes ;; | |
7757 no) enable_fast_install=no ;; | |
7758 *) | |
7759 enable_fast_install=no | |
7760 # Look at the argument we got. We use all the common list separators. | |
7761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7762 for pkg in $enableval; do | |
7763 IFS="$lt_save_ifs" | |
7764 if test "X$pkg" = "X$p"; then | |
7765 enable_fast_install=yes | |
7766 fi | |
7767 done | |
7768 IFS="$lt_save_ifs" | |
7769 ;; | |
7770 esac | |
7771 else | |
7772 enable_fast_install=yes | |
7773 fi | |
7774 | |
7775 | |
7776 | |
7777 | |
7778 | |
7779 | |
7780 | |
7781 | |
7782 | |
7783 | |
7784 | |
7785 # This can be used to rebuild libtool when needed | |
7786 LIBTOOL_DEPS="$ltmain" | |
7787 | |
7788 # Always use our own libtool. | |
7789 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7790 | |
7791 | |
7792 | |
7793 | |
7794 | |
7795 | |
7796 | |
7797 | |
7798 | |
7799 | |
7800 | |
7801 | |
7802 | |
7803 | |
7804 | |
7805 | |
7806 | |
7807 | |
7808 | |
7809 | |
7810 | |
7811 | |
7812 | |
7813 | |
7814 | |
7815 | |
7816 test -z "$LN_S" && LN_S="ln -s" | |
7817 | |
7818 | |
7819 | |
7820 | |
7821 | |
7822 | |
7823 | |
7824 | |
7825 | |
7826 | |
7827 | |
7828 | |
7829 | |
7830 | |
7831 if test -n "${ZSH_VERSION+set}" ; then | |
7832 setopt NO_GLOB_SUBST | |
7833 fi | |
7834 | |
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7836 $as_echo_n "checking for objdir... " >&6; } | |
7837 if ${lt_cv_objdir+:} false; then : | |
7838 $as_echo_n "(cached) " >&6 | |
7839 else | |
7840 rm -f .libs 2>/dev/null | |
7841 mkdir .libs 2>/dev/null | |
7842 if test -d .libs; then | |
7843 lt_cv_objdir=.libs | |
7844 else | |
7845 # MS-DOS does not allow filenames that begin with a dot. | |
7846 lt_cv_objdir=_libs | |
7847 fi | |
7848 rmdir .libs 2>/dev/null | |
7849 fi | |
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7851 $as_echo "$lt_cv_objdir" >&6; } | |
7852 objdir=$lt_cv_objdir | |
7853 | |
7854 | |
7855 | |
7856 | |
7857 | |
7858 cat >>confdefs.h <<_ACEOF | |
7859 #define LT_OBJDIR "$lt_cv_objdir/" | |
7860 _ACEOF | |
7861 | |
7862 | |
7863 | |
7864 | |
7865 case $host_os in | |
7866 aix3*) | |
7867 # AIX sometimes has problems with the GCC collect2 program. For some | |
7868 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7869 # vanish in a puff of smoke. | |
7870 if test "X${COLLECT_NAMES+set}" != Xset; then | |
7871 COLLECT_NAMES= | |
7872 export COLLECT_NAMES | |
7873 fi | |
7874 ;; | |
7875 esac | |
7876 | |
7877 # Global variables: | |
7878 ofile=libtool | |
7879 can_build_shared=yes | |
7880 | |
7881 # All known linkers require a `.a' archive for static linking (except MSVC, | |
7882 # which needs '.lib'). | |
7883 libext=a | |
7884 | |
7885 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7886 | |
7887 old_CC="$CC" | |
7888 old_CFLAGS="$CFLAGS" | |
7889 | |
7890 # Set sane defaults for various variables | |
7891 test -z "$CC" && CC=cc | |
7892 test -z "$LTCC" && LTCC=$CC | |
7893 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7894 test -z "$LD" && LD=ld | |
7895 test -z "$ac_objext" && ac_objext=o | |
7896 | |
7897 for cc_temp in $compiler""; do | |
7898 case $cc_temp in | |
7899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7901 \-*) ;; | |
7902 *) break;; | |
7903 esac | |
7904 done | |
7905 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7906 | |
7907 | |
7908 # Only perform the check for file, if the check method requires it | |
7909 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7910 case $deplibs_check_method in | |
7911 file_magic*) | |
7912 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
7914 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7915 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
7916 $as_echo_n "(cached) " >&6 | |
7917 else | |
7918 case $MAGIC_CMD in | |
7919 [\\/*] | ?:[\\/]*) | |
7920 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7921 ;; | |
7922 *) | |
7923 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7926 for ac_dir in $ac_dummy; do | |
7927 IFS="$lt_save_ifs" | |
7928 test -z "$ac_dir" && ac_dir=. | |
7929 if test -f $ac_dir/${ac_tool_prefix}file; then | |
7930 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7931 if test -n "$file_magic_test_file"; then | |
7932 case $deplibs_check_method in | |
7933 "file_magic "*) | |
7934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7937 $EGREP "$file_magic_regex" > /dev/null; then | |
7938 : | |
7939 else | |
7940 cat <<_LT_EOF 1>&2 | |
7941 | |
7942 *** Warning: the command libtool uses to detect shared libraries, | |
7943 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7944 *** The result is that libtool may fail to recognize shared libraries | |
7945 *** as such. This will affect the creation of libtool libraries that | |
7946 *** depend on shared libraries, but programs linked with such libtool | |
7947 *** libraries will work regardless of this problem. Nevertheless, you | |
7948 *** may want to report the problem to your system manager and/or to | |
7949 *** bug-libtool@gnu.org | |
7950 | |
7951 _LT_EOF | |
7952 fi ;; | |
7953 esac | |
7954 fi | |
7955 break | |
7956 fi | |
7957 done | |
7958 IFS="$lt_save_ifs" | |
7959 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7960 ;; | |
7961 esac | |
7962 fi | |
7963 | |
7964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7965 if test -n "$MAGIC_CMD"; then | |
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7967 $as_echo "$MAGIC_CMD" >&6; } | |
7968 else | |
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7970 $as_echo "no" >&6; } | |
7971 fi | |
7972 | |
7973 | |
7974 | |
7975 | |
7976 | |
7977 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7978 if test -n "$ac_tool_prefix"; then | |
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
7980 $as_echo_n "checking for file... " >&6; } | |
7981 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
7982 $as_echo_n "(cached) " >&6 | |
7983 else | |
7984 case $MAGIC_CMD in | |
7985 [\\/*] | ?:[\\/]*) | |
7986 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7987 ;; | |
7988 *) | |
7989 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7990 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7991 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7992 for ac_dir in $ac_dummy; do | |
7993 IFS="$lt_save_ifs" | |
7994 test -z "$ac_dir" && ac_dir=. | |
7995 if test -f $ac_dir/file; then | |
7996 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7997 if test -n "$file_magic_test_file"; then | |
7998 case $deplibs_check_method in | |
7999 "file_magic "*) | |
8000 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8001 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8002 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8003 $EGREP "$file_magic_regex" > /dev/null; then | |
8004 : | |
8005 else | |
8006 cat <<_LT_EOF 1>&2 | |
8007 | |
8008 *** Warning: the command libtool uses to detect shared libraries, | |
8009 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8010 *** The result is that libtool may fail to recognize shared libraries | |
8011 *** as such. This will affect the creation of libtool libraries that | |
8012 *** depend on shared libraries, but programs linked with such libtool | |
8013 *** libraries will work regardless of this problem. Nevertheless, you | |
8014 *** may want to report the problem to your system manager and/or to | |
8015 *** bug-libtool@gnu.org | |
8016 | |
8017 _LT_EOF | |
8018 fi ;; | |
8019 esac | |
8020 fi | |
8021 break | |
8022 fi | |
8023 done | |
8024 IFS="$lt_save_ifs" | |
8025 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8026 ;; | |
8027 esac | |
8028 fi | |
8029 | |
8030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8031 if test -n "$MAGIC_CMD"; then | |
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8033 $as_echo "$MAGIC_CMD" >&6; } | |
8034 else | |
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8036 $as_echo "no" >&6; } | |
8037 fi | |
8038 | |
8039 | |
8040 else | |
8041 MAGIC_CMD=: | |
8042 fi | |
8043 fi | |
8044 | |
8045 fi | |
8046 ;; | |
8047 esac | |
8048 | |
8049 # Use C for the default configuration in the libtool script | |
8050 | |
8051 lt_save_CC="$CC" | |
8052 ac_ext=c | |
8053 ac_cpp='$CPP $CPPFLAGS' | |
8054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8056 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8057 | |
8058 | |
8059 # Source file extension for C test sources. | |
8060 ac_ext=c | |
8061 | |
8062 # Object file extension for compiled C test sources. | |
8063 objext=o | |
8064 objext=$objext | |
8065 | |
8066 # Code to be used in simple compile tests | |
8067 lt_simple_compile_test_code="int some_variable = 0;" | |
8068 | |
8069 # Code to be used in simple link tests | |
8070 lt_simple_link_test_code='int main(){return(0);}' | |
8071 | |
8072 | |
8073 | |
8074 | |
8075 | |
8076 | |
8077 | |
8078 # If no C compiler was specified, use CC. | |
8079 LTCC=${LTCC-"$CC"} | |
8080 | |
8081 # If no C compiler flags were specified, use CFLAGS. | |
8082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8083 | |
8084 # Allow CC to be a program name with arguments. | |
8085 compiler=$CC | |
8086 | |
8087 # Save the default compiler, since it gets overwritten when the other | |
8088 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8089 compiler_DEFAULT=$CC | |
8090 | |
8091 # save warnings/boilerplate of simple test code | |
8092 ac_outfile=conftest.$ac_objext | |
8093 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8095 _lt_compiler_boilerplate=`cat conftest.err` | |
8096 $RM conftest* | |
8097 | |
8098 ac_outfile=conftest.$ac_objext | |
8099 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8101 _lt_linker_boilerplate=`cat conftest.err` | |
8102 $RM -r conftest* | |
8103 | |
8104 | |
8105 if test -n "$compiler"; then | |
8106 | |
8107 lt_prog_compiler_no_builtin_flag= | |
8108 | |
8109 if test "$GCC" = yes; then | |
8110 case $cc_basename in | |
8111 nvcc*) | |
8112 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8113 *) | |
8114 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8115 esac | |
8116 | |
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8119 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8120 $as_echo_n "(cached) " >&6 | |
8121 else | |
8122 lt_cv_prog_compiler_rtti_exceptions=no | |
8123 ac_outfile=conftest.$ac_objext | |
8124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8125 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8126 # Insert the option either (1) after the last *FLAGS variable, or | |
8127 # (2) before a word containing "conftest.", or (3) at the end. | |
8128 # Note that $ac_compile itself does not contain backslashes and begins | |
8129 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8130 # The option is referenced via a variable to avoid confusing sed. | |
8131 lt_compile=`echo "$ac_compile" | $SED \ | |
8132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8134 -e 's:$: $lt_compiler_flag:'` | |
8135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8136 (eval "$lt_compile" 2>conftest.err) | |
8137 ac_status=$? | |
8138 cat conftest.err >&5 | |
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8140 if (exit $ac_status) && test -s "$ac_outfile"; then | |
8141 # The compiler can only warn and ignore the option if not recognized | |
8142 # So say no if there are warnings other than the usual output. | |
8143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8146 lt_cv_prog_compiler_rtti_exceptions=yes | |
8147 fi | |
8148 fi | |
8149 $RM conftest* | |
8150 | |
8151 fi | |
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8154 | |
8155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8157 else | |
8158 : | |
8159 fi | |
8160 | |
8161 fi | |
8162 | |
8163 | |
8164 | |
8165 | |
8166 | |
8167 | |
8168 lt_prog_compiler_wl= | |
8169 lt_prog_compiler_pic= | |
8170 lt_prog_compiler_static= | |
8171 | |
8172 | |
8173 if test "$GCC" = yes; then | |
8174 lt_prog_compiler_wl='-Wl,' | |
8175 lt_prog_compiler_static='-static' | |
8176 | |
8177 case $host_os in | |
8178 aix*) | |
8179 # All AIX code is PIC. | |
8180 if test "$host_cpu" = ia64; then | |
8181 # AIX 5 now supports IA64 processor | |
8182 lt_prog_compiler_static='-Bstatic' | |
8183 fi | |
8184 ;; | |
8185 | |
8186 amigaos*) | |
8187 case $host_cpu in | |
8188 powerpc) | |
8189 # see comment about AmigaOS4 .so support | |
8190 lt_prog_compiler_pic='-fPIC' | |
8191 ;; | |
8192 m68k) | |
8193 # FIXME: we need at least 68020 code to build shared libraries, but | |
8194 # adding the `-m68020' flag to GCC prevents building anything better, | |
8195 # like `-m68040'. | |
8196 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8197 ;; | |
8198 esac | |
8199 ;; | |
8200 | |
8201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8202 # PIC is the default for these OSes. | |
8203 ;; | |
8204 | |
8205 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8206 # This hack is so that the source file can tell whether it is being | |
8207 # built for inclusion in a dll (and should export symbols for example). | |
8208 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8209 # (--disable-auto-import) libraries | |
8210 lt_prog_compiler_pic='-DDLL_EXPORT' | |
8211 ;; | |
8212 | |
8213 darwin* | rhapsody*) | |
8214 # PIC is the default on this platform | |
8215 # Common symbols not allowed in MH_DYLIB files | |
8216 lt_prog_compiler_pic='-fno-common' | |
8217 ;; | |
8218 | |
8219 haiku*) | |
8220 # PIC is the default for Haiku. | |
8221 # The "-static" flag exists, but is broken. | |
8222 lt_prog_compiler_static= | |
8223 ;; | |
8224 | |
8225 hpux*) | |
8226 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8227 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8228 # sets the default TLS model and affects inlining. | |
8229 case $host_cpu in | |
8230 hppa*64*) | |
8231 # +Z the default | |
8232 ;; | |
8233 *) | |
8234 lt_prog_compiler_pic='-fPIC' | |
8235 ;; | |
8236 esac | |
8237 ;; | |
8238 | |
8239 interix[3-9]*) | |
8240 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8241 # Instead, we relocate shared libraries at runtime. | |
8242 ;; | |
8243 | |
8244 msdosdjgpp*) | |
8245 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8246 # on systems that don't support them. | |
8247 lt_prog_compiler_can_build_shared=no | |
8248 enable_shared=no | |
8249 ;; | |
8250 | |
8251 *nto* | *qnx*) | |
8252 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8253 # it will coredump. | |
8254 lt_prog_compiler_pic='-fPIC -shared' | |
8255 ;; | |
8256 | |
8257 sysv4*MP*) | |
8258 if test -d /usr/nec; then | |
8259 lt_prog_compiler_pic=-Kconform_pic | |
8260 fi | |
8261 ;; | |
8262 | |
8263 *) | |
8264 lt_prog_compiler_pic='-fPIC' | |
8265 ;; | |
8266 esac | |
8267 | |
8268 case $cc_basename in | |
8269 nvcc*) # Cuda Compiler Driver 2.2 | |
8270 lt_prog_compiler_wl='-Xlinker ' | |
8271 lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8272 ;; | |
8273 esac | |
8274 else | |
8275 # PORTME Check for flag to pass linker flags through the system compiler. | |
8276 case $host_os in | |
8277 aix*) | |
8278 lt_prog_compiler_wl='-Wl,' | |
8279 if test "$host_cpu" = ia64; then | |
8280 # AIX 5 now supports IA64 processor | |
8281 lt_prog_compiler_static='-Bstatic' | |
8282 else | |
8283 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8284 fi | |
8285 ;; | |
8286 | |
8287 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8288 # This hack is so that the source file can tell whether it is being | |
8289 # built for inclusion in a dll (and should export symbols for example). | |
8290 lt_prog_compiler_pic='-DDLL_EXPORT' | |
8291 ;; | |
8292 | |
8293 hpux9* | hpux10* | hpux11*) | |
8294 lt_prog_compiler_wl='-Wl,' | |
8295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8296 # not for PA HP-UX. | |
8297 case $host_cpu in | |
8298 hppa*64*|ia64*) | |
8299 # +Z the default | |
8300 ;; | |
8301 *) | |
8302 lt_prog_compiler_pic='+Z' | |
8303 ;; | |
8304 esac | |
8305 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8306 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8307 ;; | |
8308 | |
8309 irix5* | irix6* | nonstopux*) | |
8310 lt_prog_compiler_wl='-Wl,' | |
8311 # PIC (with -KPIC) is the default. | |
8312 lt_prog_compiler_static='-non_shared' | |
8313 ;; | |
8314 | |
8315 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8316 case $cc_basename in | |
8317 # old Intel for x86_64 which still supported -KPIC. | |
8318 ecc*) | |
8319 lt_prog_compiler_wl='-Wl,' | |
8320 lt_prog_compiler_pic='-KPIC' | |
8321 lt_prog_compiler_static='-static' | |
8322 ;; | |
8323 # icc used to be incompatible with GCC. | |
8324 # ICC 10 doesn't accept -KPIC any more. | |
8325 icc* | ifort*) | |
8326 lt_prog_compiler_wl='-Wl,' | |
8327 lt_prog_compiler_pic='-fPIC' | |
8328 lt_prog_compiler_static='-static' | |
8329 ;; | |
8330 # Lahey Fortran 8.1. | |
8331 lf95*) | |
8332 lt_prog_compiler_wl='-Wl,' | |
8333 lt_prog_compiler_pic='--shared' | |
8334 lt_prog_compiler_static='--static' | |
8335 ;; | |
8336 nagfor*) | |
8337 # NAG Fortran compiler | |
8338 lt_prog_compiler_wl='-Wl,-Wl,,' | |
8339 lt_prog_compiler_pic='-PIC' | |
8340 lt_prog_compiler_static='-Bstatic' | |
8341 ;; | |
8342 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8343 # Portland Group compilers (*not* the Pentium gcc compiler, | |
8344 # which looks to be a dead project) | |
8345 lt_prog_compiler_wl='-Wl,' | |
8346 lt_prog_compiler_pic='-fpic' | |
8347 lt_prog_compiler_static='-Bstatic' | |
8348 ;; | |
8349 ccc*) | |
8350 lt_prog_compiler_wl='-Wl,' | |
8351 # All Alpha code is PIC. | |
8352 lt_prog_compiler_static='-non_shared' | |
8353 ;; | |
8354 xl* | bgxl* | bgf* | mpixl*) | |
8355 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8356 lt_prog_compiler_wl='-Wl,' | |
8357 lt_prog_compiler_pic='-qpic' | |
8358 lt_prog_compiler_static='-qstaticlink' | |
8359 ;; | |
8360 *) | |
8361 case `$CC -V 2>&1 | sed 5q` in | |
8362 *Sun\ F* | *Sun*Fortran*) | |
8363 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8364 lt_prog_compiler_pic='-KPIC' | |
8365 lt_prog_compiler_static='-Bstatic' | |
8366 lt_prog_compiler_wl='' | |
8367 ;; | |
8368 *Sun\ C*) | |
8369 # Sun C 5.9 | |
8370 lt_prog_compiler_pic='-KPIC' | |
8371 lt_prog_compiler_static='-Bstatic' | |
8372 lt_prog_compiler_wl='-Wl,' | |
8373 ;; | |
8374 esac | |
8375 ;; | |
8376 esac | |
8377 ;; | |
8378 | |
8379 newsos6) | |
8380 lt_prog_compiler_pic='-KPIC' | |
8381 lt_prog_compiler_static='-Bstatic' | |
8382 ;; | |
8383 | |
8384 *nto* | *qnx*) | |
8385 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8386 # it will coredump. | |
8387 lt_prog_compiler_pic='-fPIC -shared' | |
8388 ;; | |
8389 | |
8390 osf3* | osf4* | osf5*) | |
8391 lt_prog_compiler_wl='-Wl,' | |
8392 # All OSF/1 code is PIC. | |
8393 lt_prog_compiler_static='-non_shared' | |
8394 ;; | |
8395 | |
8396 rdos*) | |
8397 lt_prog_compiler_static='-non_shared' | |
8398 ;; | |
8399 | |
8400 solaris*) | |
8401 lt_prog_compiler_pic='-KPIC' | |
8402 lt_prog_compiler_static='-Bstatic' | |
8403 case $cc_basename in | |
8404 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8405 lt_prog_compiler_wl='-Qoption ld ';; | |
8406 *) | |
8407 lt_prog_compiler_wl='-Wl,';; | |
8408 esac | |
8409 ;; | |
8410 | |
8411 sunos4*) | |
8412 lt_prog_compiler_wl='-Qoption ld ' | |
8413 lt_prog_compiler_pic='-PIC' | |
8414 lt_prog_compiler_static='-Bstatic' | |
8415 ;; | |
8416 | |
8417 sysv4 | sysv4.2uw2* | sysv4.3*) | |
8418 lt_prog_compiler_wl='-Wl,' | |
8419 lt_prog_compiler_pic='-KPIC' | |
8420 lt_prog_compiler_static='-Bstatic' | |
8421 ;; | |
8422 | |
8423 sysv4*MP*) | |
8424 if test -d /usr/nec ;then | |
8425 lt_prog_compiler_pic='-Kconform_pic' | |
8426 lt_prog_compiler_static='-Bstatic' | |
8427 fi | |
8428 ;; | |
8429 | |
8430 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8431 lt_prog_compiler_wl='-Wl,' | |
8432 lt_prog_compiler_pic='-KPIC' | |
8433 lt_prog_compiler_static='-Bstatic' | |
8434 ;; | |
8435 | |
8436 unicos*) | |
8437 lt_prog_compiler_wl='-Wl,' | |
8438 lt_prog_compiler_can_build_shared=no | |
8439 ;; | |
8440 | |
8441 uts4*) | |
8442 lt_prog_compiler_pic='-pic' | |
8443 lt_prog_compiler_static='-Bstatic' | |
8444 ;; | |
8445 | |
8446 *) | |
8447 lt_prog_compiler_can_build_shared=no | |
8448 ;; | |
8449 esac | |
8450 fi | |
8451 | |
8452 case $host_os in | |
8453 # For platforms which do not support PIC, -DPIC is meaningless: | |
8454 *djgpp*) | |
8455 lt_prog_compiler_pic= | |
8456 ;; | |
8457 *) | |
8458 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8459 ;; | |
8460 esac | |
8461 | |
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8463 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8464 if ${lt_cv_prog_compiler_pic+:} false; then : | |
8465 $as_echo_n "(cached) " >&6 | |
8466 else | |
8467 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8468 fi | |
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8470 $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8471 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8472 | |
8473 # | |
8474 # Check to make sure the PIC flag actually works. | |
8475 # | |
8476 if test -n "$lt_prog_compiler_pic"; then | |
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8478 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8479 if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8480 $as_echo_n "(cached) " >&6 | |
8481 else | |
8482 lt_cv_prog_compiler_pic_works=no | |
8483 ac_outfile=conftest.$ac_objext | |
8484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8485 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8486 # Insert the option either (1) after the last *FLAGS variable, or | |
8487 # (2) before a word containing "conftest.", or (3) at the end. | |
8488 # Note that $ac_compile itself does not contain backslashes and begins | |
8489 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8490 # The option is referenced via a variable to avoid confusing sed. | |
8491 lt_compile=`echo "$ac_compile" | $SED \ | |
8492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8494 -e 's:$: $lt_compiler_flag:'` | |
8495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8496 (eval "$lt_compile" 2>conftest.err) | |
8497 ac_status=$? | |
8498 cat conftest.err >&5 | |
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8500 if (exit $ac_status) && test -s "$ac_outfile"; then | |
8501 # The compiler can only warn and ignore the option if not recognized | |
8502 # So say no if there are warnings other than the usual output. | |
8503 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8505 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8506 lt_cv_prog_compiler_pic_works=yes | |
8507 fi | |
8508 fi | |
8509 $RM conftest* | |
8510 | |
8511 fi | |
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8513 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8514 | |
8515 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8516 case $lt_prog_compiler_pic in | |
8517 "" | " "*) ;; | |
8518 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8519 esac | |
8520 else | |
8521 lt_prog_compiler_pic= | |
8522 lt_prog_compiler_can_build_shared=no | |
8523 fi | |
8524 | |
8525 fi | |
8526 | |
8527 | |
8528 | |
8529 | |
8530 | |
8531 | |
8532 | |
8533 | |
8534 | |
8535 | |
8536 | |
8537 # | |
8538 # Check to make sure the static flag actually works. | |
8539 # | |
8540 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8542 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8543 if ${lt_cv_prog_compiler_static_works+:} false; then : | |
8544 $as_echo_n "(cached) " >&6 | |
8545 else | |
8546 lt_cv_prog_compiler_static_works=no | |
8547 save_LDFLAGS="$LDFLAGS" | |
8548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8549 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8551 # The linker can only warn and ignore the option if not recognized | |
8552 # So say no if there are warnings | |
8553 if test -s conftest.err; then | |
8554 # Append any errors to the config.log. | |
8555 cat conftest.err 1>&5 | |
8556 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8558 if diff conftest.exp conftest.er2 >/dev/null; then | |
8559 lt_cv_prog_compiler_static_works=yes | |
8560 fi | |
8561 else | |
8562 lt_cv_prog_compiler_static_works=yes | |
8563 fi | |
8564 fi | |
8565 $RM -r conftest* | |
8566 LDFLAGS="$save_LDFLAGS" | |
8567 | |
8568 fi | |
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8570 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8571 | |
8572 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8573 : | |
8574 else | |
8575 lt_prog_compiler_static= | |
8576 fi | |
8577 | |
8578 | |
8579 | |
8580 | |
8581 | |
8582 | |
8583 | |
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8585 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8586 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8587 $as_echo_n "(cached) " >&6 | |
8588 else | |
8589 lt_cv_prog_compiler_c_o=no | |
8590 $RM -r conftest 2>/dev/null | |
8591 mkdir conftest | |
8592 cd conftest | |
8593 mkdir out | |
8594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8595 | |
8596 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8597 # Insert the option either (1) after the last *FLAGS variable, or | |
8598 # (2) before a word containing "conftest.", or (3) at the end. | |
8599 # Note that $ac_compile itself does not contain backslashes and begins | |
8600 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8601 lt_compile=`echo "$ac_compile" | $SED \ | |
8602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8604 -e 's:$: $lt_compiler_flag:'` | |
8605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8606 (eval "$lt_compile" 2>out/conftest.err) | |
8607 ac_status=$? | |
8608 cat out/conftest.err >&5 | |
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8610 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8611 then | |
8612 # The compiler can only warn and ignore the option if not recognized | |
8613 # So say no if there are warnings | |
8614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8617 lt_cv_prog_compiler_c_o=yes | |
8618 fi | |
8619 fi | |
8620 chmod u+w . 2>&5 | |
8621 $RM conftest* | |
8622 # SGI C++ compiler will create directory out/ii_files/ for | |
8623 # template instantiation | |
8624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8625 $RM out/* && rmdir out | |
8626 cd .. | |
8627 $RM -r conftest | |
8628 $RM conftest* | |
8629 | |
8630 fi | |
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8632 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8633 | |
8634 | |
8635 | |
8636 | |
8637 | |
8638 | |
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8640 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8641 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8642 $as_echo_n "(cached) " >&6 | |
8643 else | |
8644 lt_cv_prog_compiler_c_o=no | |
8645 $RM -r conftest 2>/dev/null | |
8646 mkdir conftest | |
8647 cd conftest | |
8648 mkdir out | |
8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8650 | |
8651 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8652 # Insert the option either (1) after the last *FLAGS variable, or | |
8653 # (2) before a word containing "conftest.", or (3) at the end. | |
8654 # Note that $ac_compile itself does not contain backslashes and begins | |
8655 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8656 lt_compile=`echo "$ac_compile" | $SED \ | |
8657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8659 -e 's:$: $lt_compiler_flag:'` | |
8660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8661 (eval "$lt_compile" 2>out/conftest.err) | |
8662 ac_status=$? | |
8663 cat out/conftest.err >&5 | |
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8665 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8666 then | |
8667 # The compiler can only warn and ignore the option if not recognized | |
8668 # So say no if there are warnings | |
8669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8672 lt_cv_prog_compiler_c_o=yes | |
8673 fi | |
8674 fi | |
8675 chmod u+w . 2>&5 | |
8676 $RM conftest* | |
8677 # SGI C++ compiler will create directory out/ii_files/ for | |
8678 # template instantiation | |
8679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8680 $RM out/* && rmdir out | |
8681 cd .. | |
8682 $RM -r conftest | |
8683 $RM conftest* | |
8684 | |
8685 fi | |
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8687 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8688 | |
8689 | |
8690 | |
8691 | |
8692 hard_links="nottested" | |
8693 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8694 # do not overwrite the value of need_locks provided by the user | |
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8696 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8697 hard_links=yes | |
8698 $RM conftest* | |
8699 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8700 touch conftest.a | |
8701 ln conftest.a conftest.b 2>&5 || hard_links=no | |
8702 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8704 $as_echo "$hard_links" >&6; } | |
8705 if test "$hard_links" = no; then | |
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8707 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8708 need_locks=warn | |
8709 fi | |
8710 else | |
8711 need_locks=no | |
8712 fi | |
8713 | |
8714 | |
8715 | |
8716 | |
8717 | |
8718 | |
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8720 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8721 | |
8722 runpath_var= | |
8723 allow_undefined_flag= | |
8724 always_export_symbols=no | |
8725 archive_cmds= | |
8726 archive_expsym_cmds= | |
8727 compiler_needs_object=no | |
8728 enable_shared_with_static_runtimes=no | |
8729 export_dynamic_flag_spec= | |
8730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8731 hardcode_automatic=no | |
8732 hardcode_direct=no | |
8733 hardcode_direct_absolute=no | |
8734 hardcode_libdir_flag_spec= | |
8735 hardcode_libdir_flag_spec_ld= | |
8736 hardcode_libdir_separator= | |
8737 hardcode_minus_L=no | |
8738 hardcode_shlibpath_var=unsupported | |
8739 inherit_rpath=no | |
8740 link_all_deplibs=unknown | |
8741 module_cmds= | |
8742 module_expsym_cmds= | |
8743 old_archive_from_new_cmds= | |
8744 old_archive_from_expsyms_cmds= | |
8745 thread_safe_flag_spec= | |
8746 whole_archive_flag_spec= | |
8747 # include_expsyms should be a list of space-separated symbols to be *always* | |
8748 # included in the symbol list | |
8749 include_expsyms= | |
8750 # exclude_expsyms can be an extended regexp of symbols to exclude | |
8751 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8752 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8753 # as well as any symbol that contains `d'. | |
8754 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8755 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8756 # platforms (ab)use it in PIC code, but their linkers get confused if | |
8757 # the symbol is explicitly referenced. Since portable code cannot | |
8758 # rely on this symbol name, it's probably fine to never include it in | |
8759 # preloaded symbol tables. | |
8760 # Exclude shared library initialization/finalization symbols. | |
8761 extract_expsyms_cmds= | |
8762 | |
8763 case $host_os in | |
8764 cygwin* | mingw* | pw32* | cegcc*) | |
8765 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8766 # When not using gcc, we currently assume that we are using | |
8767 # Microsoft Visual C++. | |
8768 if test "$GCC" != yes; then | |
8769 with_gnu_ld=no | |
8770 fi | |
8771 ;; | |
8772 interix*) | |
8773 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8774 with_gnu_ld=yes | |
8775 ;; | |
8776 openbsd*) | |
8777 with_gnu_ld=no | |
8778 ;; | |
8779 linux* | k*bsd*-gnu | gnu*) | |
8780 link_all_deplibs=no | |
8781 ;; | |
8782 esac | |
8783 | |
8784 ld_shlibs=yes | |
8785 | |
8786 # On some targets, GNU ld is compatible enough with the native linker | |
8787 # that we're better off using the native interface for both. | |
8788 lt_use_gnu_ld_interface=no | |
8789 if test "$with_gnu_ld" = yes; then | |
8790 case $host_os in | |
8791 aix*) | |
8792 # The AIX port of GNU ld has always aspired to compatibility | |
8793 # with the native linker. However, as the warning in the GNU ld | |
8794 # block says, versions before 2.19.5* couldn't really create working | |
8795 # shared libraries, regardless of the interface used. | |
8796 case `$LD -v 2>&1` in | |
8797 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8798 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8799 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8800 *) | |
8801 lt_use_gnu_ld_interface=yes | |
8802 ;; | |
8803 esac | |
8804 ;; | |
8805 *) | |
8806 lt_use_gnu_ld_interface=yes | |
8807 ;; | |
8808 esac | |
8809 fi | |
8810 | |
8811 if test "$lt_use_gnu_ld_interface" = yes; then | |
8812 # If archive_cmds runs LD, not CC, wlarc should be empty | |
8813 wlarc='${wl}' | |
8814 | |
8815 # Set some defaults for GNU ld with shared library support. These | |
8816 # are reset later if shared libraries are not supported. Putting them | |
8817 # here allows them to be overridden if necessary. | |
8818 runpath_var=LD_RUN_PATH | |
8819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8820 export_dynamic_flag_spec='${wl}--export-dynamic' | |
8821 # ancient GNU ld didn't support --whole-archive et. al. | |
8822 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8823 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8824 else | |
8825 whole_archive_flag_spec= | |
8826 fi | |
8827 supports_anon_versioning=no | |
8828 case `$LD -v 2>&1` in | |
8829 *GNU\ gold*) supports_anon_versioning=yes ;; | |
8830 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8831 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8832 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8833 *\ 2.11.*) ;; # other 2.11 versions | |
8834 *) supports_anon_versioning=yes ;; | |
8835 esac | |
8836 | |
8837 # See if GNU ld supports shared libraries. | |
8838 case $host_os in | |
8839 aix[3-9]*) | |
8840 # On AIX/PPC, the GNU linker is very broken | |
8841 if test "$host_cpu" != ia64; then | |
8842 ld_shlibs=no | |
8843 cat <<_LT_EOF 1>&2 | |
8844 | |
8845 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
8846 *** to be unable to reliably create shared libraries on AIX. | |
8847 *** Therefore, libtool is disabling shared libraries support. If you | |
8848 *** really care for shared libraries, you may want to install binutils | |
8849 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8850 *** You will then need to restart the configuration process. | |
8851 | |
8852 _LT_EOF | |
8853 fi | |
8854 ;; | |
8855 | |
8856 amigaos*) | |
8857 case $host_cpu in | |
8858 powerpc) | |
8859 # see comment about AmigaOS4 .so support | |
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8861 archive_expsym_cmds='' | |
8862 ;; | |
8863 m68k) | |
8864 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)' | |
8865 hardcode_libdir_flag_spec='-L$libdir' | |
8866 hardcode_minus_L=yes | |
8867 ;; | |
8868 esac | |
8869 ;; | |
8870 | |
8871 beos*) | |
8872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8873 allow_undefined_flag=unsupported | |
8874 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8875 # support --undefined. This deserves some investigation. FIXME | |
8876 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8877 else | |
8878 ld_shlibs=no | |
8879 fi | |
8880 ;; | |
8881 | |
8882 cygwin* | mingw* | pw32* | cegcc*) | |
8883 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8884 # as there is no search path for DLLs. | |
8885 hardcode_libdir_flag_spec='-L$libdir' | |
8886 export_dynamic_flag_spec='${wl}--export-all-symbols' | |
8887 allow_undefined_flag=unsupported | |
8888 always_export_symbols=no | |
8889 enable_shared_with_static_runtimes=yes | |
8890 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' | |
8891 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
8892 | |
8893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8895 # If the export-symbols file already is a .def file (1st line | |
8896 # is EXPORTS), use it as is; otherwise, prepend... | |
8897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8898 cp $export_symbols $output_objdir/$soname.def; | |
8899 else | |
8900 echo EXPORTS > $output_objdir/$soname.def; | |
8901 cat $export_symbols >> $output_objdir/$soname.def; | |
8902 fi~ | |
8903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8904 else | |
8905 ld_shlibs=no | |
8906 fi | |
8907 ;; | |
8908 | |
8909 haiku*) | |
8910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8911 link_all_deplibs=yes | |
8912 ;; | |
8913 | |
8914 interix[3-9]*) | |
8915 hardcode_direct=no | |
8916 hardcode_shlibpath_var=no | |
8917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8918 export_dynamic_flag_spec='${wl}-E' | |
8919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8920 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8921 # default) and relocated if they conflict, which is a slow very memory | |
8922 # consuming and fragmenting process. To avoid this, we pick a random, | |
8923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8924 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8926 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' | |
8927 ;; | |
8928 | |
8929 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
8930 tmp_diet=no | |
8931 if test "$host_os" = linux-dietlibc; then | |
8932 case $cc_basename in | |
8933 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8934 esac | |
8935 fi | |
8936 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8937 && test "$tmp_diet" = no | |
8938 then | |
8939 tmp_addflag=' $pic_flag' | |
8940 tmp_sharedflag='-shared' | |
8941 case $cc_basename,$host_cpu in | |
8942 pgcc*) # Portland Group C compiler | |
8943 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' | |
8944 tmp_addflag=' $pic_flag' | |
8945 ;; | |
8946 pgf77* | pgf90* | pgf95* | pgfortran*) | |
8947 # Portland Group f77 and f90 compilers | |
8948 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' | |
8949 tmp_addflag=' $pic_flag -Mnomain' ;; | |
8950 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8951 tmp_addflag=' -i_dynamic' ;; | |
8952 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8953 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8954 ifc* | ifort*) # Intel Fortran compiler | |
8955 tmp_addflag=' -nofor_main' ;; | |
8956 lf95*) # Lahey Fortran 8.1 | |
8957 whole_archive_flag_spec= | |
8958 tmp_sharedflag='--shared' ;; | |
8959 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8960 tmp_sharedflag='-qmkshrobj' | |
8961 tmp_addflag= ;; | |
8962 nvcc*) # Cuda Compiler Driver 2.2 | |
8963 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' | |
8964 compiler_needs_object=yes | |
8965 ;; | |
8966 esac | |
8967 case `$CC -V 2>&1 | sed 5q` in | |
8968 *Sun\ C*) # Sun C 5.9 | |
8969 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' | |
8970 compiler_needs_object=yes | |
8971 tmp_sharedflag='-G' ;; | |
8972 *Sun\ F*) # Sun Fortran 8.3 | |
8973 tmp_sharedflag='-G' ;; | |
8974 esac | |
8975 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8976 | |
8977 if test "x$supports_anon_versioning" = xyes; then | |
8978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8980 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8981 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8982 fi | |
8983 | |
8984 case $cc_basename in | |
8985 xlf* | bgf* | bgxlf* | mpixlf*) | |
8986 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8987 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8988 hardcode_libdir_flag_spec= | |
8989 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8990 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
8991 if test "x$supports_anon_versioning" = xyes; then | |
8992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8994 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8995 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8996 fi | |
8997 ;; | |
8998 esac | |
8999 else | |
9000 ld_shlibs=no | |
9001 fi | |
9002 ;; | |
9003 | |
9004 netbsd* | netbsdelf*-gnu) | |
9005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9006 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9007 wlarc= | |
9008 else | |
9009 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9010 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9011 fi | |
9012 ;; | |
9013 | |
9014 solaris*) | |
9015 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9016 ld_shlibs=no | |
9017 cat <<_LT_EOF 1>&2 | |
9018 | |
9019 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9020 *** create shared libraries on Solaris systems. Therefore, libtool | |
9021 *** is disabling shared libraries support. We urge you to upgrade GNU | |
9022 *** binutils to release 2.9.1 or newer. Another option is to modify | |
9023 *** your PATH or compiler configuration so that the native linker is | |
9024 *** used, and then restart. | |
9025 | |
9026 _LT_EOF | |
9027 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9028 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9029 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9030 else | |
9031 ld_shlibs=no | |
9032 fi | |
9033 ;; | |
9034 | |
9035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9036 case `$LD -v 2>&1` in | |
9037 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9038 ld_shlibs=no | |
9039 cat <<_LT_EOF 1>&2 | |
9040 | |
9041 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9042 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9043 *** is disabling shared libraries support. We urge you to upgrade GNU | |
9044 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9045 *** your PATH or compiler configuration so that the native linker is | |
9046 *** used, and then restart. | |
9047 | |
9048 _LT_EOF | |
9049 ;; | |
9050 *) | |
9051 # For security reasons, it is highly recommended that you always | |
9052 # use absolute paths for naming shared libraries, and exclude the | |
9053 # DT_RUNPATH tag from executables and libraries. But doing so | |
9054 # requires that you compile everything twice, which is a pain. | |
9055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9059 else | |
9060 ld_shlibs=no | |
9061 fi | |
9062 ;; | |
9063 esac | |
9064 ;; | |
9065 | |
9066 sunos4*) | |
9067 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9068 wlarc= | |
9069 hardcode_direct=yes | |
9070 hardcode_shlibpath_var=no | |
9071 ;; | |
9072 | |
9073 *) | |
9074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9076 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9077 else | |
9078 ld_shlibs=no | |
9079 fi | |
9080 ;; | |
9081 esac | |
9082 | |
9083 if test "$ld_shlibs" = no; then | |
9084 runpath_var= | |
9085 hardcode_libdir_flag_spec= | |
9086 export_dynamic_flag_spec= | |
9087 whole_archive_flag_spec= | |
9088 fi | |
9089 else | |
9090 # PORTME fill in a description of your system's linker (not GNU ld) | |
9091 case $host_os in | |
9092 aix3*) | |
9093 allow_undefined_flag=unsupported | |
9094 always_export_symbols=yes | |
9095 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' | |
9096 # Note: this linker hardcodes the directories in LIBPATH if there | |
9097 # are no directories specified by -L. | |
9098 hardcode_minus_L=yes | |
9099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9100 # Neither direct hardcoding nor static linking is supported with a | |
9101 # broken collect2. | |
9102 hardcode_direct=unsupported | |
9103 fi | |
9104 ;; | |
9105 | |
9106 aix[4-9]*) | |
9107 if test "$host_cpu" = ia64; then | |
9108 # On IA64, the linker does run time linking by default, so we don't | |
9109 # have to do anything special. | |
9110 aix_use_runtimelinking=no | |
9111 exp_sym_flag='-Bexport' | |
9112 no_entry_flag="" | |
9113 else | |
9114 # If we're using GNU nm, then we don't want the "-C" option. | |
9115 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9116 # Also, AIX nm treats weak defined symbols like other global | |
9117 # defined symbols, whereas GNU nm marks them as "W". | |
9118 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9119 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9120 else | |
9121 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9122 fi | |
9123 aix_use_runtimelinking=no | |
9124 | |
9125 # Test if we are trying to use run time linking or normal | |
9126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9127 # need to do runtime linking. | |
9128 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9129 for ld_flag in $LDFLAGS; do | |
9130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9131 aix_use_runtimelinking=yes | |
9132 break | |
9133 fi | |
9134 done | |
9135 ;; | |
9136 esac | |
9137 | |
9138 exp_sym_flag='-bexport' | |
9139 no_entry_flag='-bnoentry' | |
9140 fi | |
9141 | |
9142 # When large executables or shared objects are built, AIX ld can | |
9143 # have problems creating the table of contents. If linking a library | |
9144 # or program results in "error TOC overflow" add -mminimal-toc to | |
9145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9147 | |
9148 archive_cmds='' | |
9149 hardcode_direct=yes | |
9150 hardcode_direct_absolute=yes | |
9151 hardcode_libdir_separator=':' | |
9152 link_all_deplibs=yes | |
9153 file_list_spec='${wl}-f,' | |
9154 | |
9155 if test "$GCC" = yes; then | |
9156 case $host_os in aix4.[012]|aix4.[012].*) | |
9157 # We only want to do this on AIX 4.2 and lower, the check | |
9158 # below for broken collect2 doesn't work under 4.3+ | |
9159 collect2name=`${CC} -print-prog-name=collect2` | |
9160 if test -f "$collect2name" && | |
9161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9162 then | |
9163 # We have reworked collect2 | |
9164 : | |
9165 else | |
9166 # We have old collect2 | |
9167 hardcode_direct=unsupported | |
9168 # It fails to find uninstalled libraries when the uninstalled | |
9169 # path is not listed in the libpath. Setting hardcode_minus_L | |
9170 # to unsupported forces relinking | |
9171 hardcode_minus_L=yes | |
9172 hardcode_libdir_flag_spec='-L$libdir' | |
9173 hardcode_libdir_separator= | |
9174 fi | |
9175 ;; | |
9176 esac | |
9177 shared_flag='-shared' | |
9178 if test "$aix_use_runtimelinking" = yes; then | |
9179 shared_flag="$shared_flag "'${wl}-G' | |
9180 fi | |
9181 link_all_deplibs=no | |
9182 else | |
9183 # not using gcc | |
9184 if test "$host_cpu" = ia64; then | |
9185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9186 # chokes on -Wl,-G. The following line is correct: | |
9187 shared_flag='-G' | |
9188 else | |
9189 if test "$aix_use_runtimelinking" = yes; then | |
9190 shared_flag='${wl}-G' | |
9191 else | |
9192 shared_flag='${wl}-bM:SRE' | |
9193 fi | |
9194 fi | |
9195 fi | |
9196 | |
9197 export_dynamic_flag_spec='${wl}-bexpall' | |
9198 # It seems that -bexpall does not export symbols beginning with | |
9199 # underscore (_), so it is better to generate a list of symbols to export. | |
9200 always_export_symbols=yes | |
9201 if test "$aix_use_runtimelinking" = yes; then | |
9202 # Warning - without using the other runtime loading flags (-brtl), | |
9203 # -berok will link without error, but may produce a broken library. | |
9204 allow_undefined_flag='-berok' | |
9205 # Determine the default libpath from the value encoded in an | |
9206 # empty executable. | |
9207 if test "${lt_cv_aix_libpath+set}" = set; then | |
9208 aix_libpath=$lt_cv_aix_libpath | |
9209 else | |
9210 if ${lt_cv_aix_libpath_+:} false; then : | |
9211 $as_echo_n "(cached) " >&6 | |
9212 else | |
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9214 /* end confdefs.h. */ | |
9215 | |
9216 int | |
9217 main () | |
9218 { | |
9219 | |
9220 ; | |
9221 return 0; | |
9222 } | |
9223 _ACEOF | |
9224 if ac_fn_c_try_link "$LINENO"; then : | |
9225 | |
9226 lt_aix_libpath_sed=' | |
9227 /Import File Strings/,/^$/ { | |
9228 /^0/ { | |
9229 s/^0 *\([^ ]*\) *$/\1/ | |
9230 p | |
9231 } | |
9232 }' | |
9233 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9234 # Check for a 64-bit object if we didn't find anything. | |
9235 if test -z "$lt_cv_aix_libpath_"; then | |
9236 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9237 fi | |
9238 fi | |
9239 rm -f core conftest.err conftest.$ac_objext \ | |
9240 conftest$ac_exeext conftest.$ac_ext | |
9241 if test -z "$lt_cv_aix_libpath_"; then | |
9242 lt_cv_aix_libpath_="/usr/lib:/lib" | |
9243 fi | |
9244 | |
9245 fi | |
9246 | |
9247 aix_libpath=$lt_cv_aix_libpath_ | |
9248 fi | |
9249 | |
9250 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9251 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9252 else | |
9253 if test "$host_cpu" = ia64; then | |
9254 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9255 allow_undefined_flag="-z nodefs" | |
9256 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" | |
9257 else | |
9258 # Determine the default libpath from the value encoded in an | |
9259 # empty executable. | |
9260 if test "${lt_cv_aix_libpath+set}" = set; then | |
9261 aix_libpath=$lt_cv_aix_libpath | |
9262 else | |
9263 if ${lt_cv_aix_libpath_+:} false; then : | |
9264 $as_echo_n "(cached) " >&6 | |
9265 else | |
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9267 /* end confdefs.h. */ | |
9268 | |
9269 int | |
9270 main () | |
9271 { | |
9272 | |
9273 ; | |
9274 return 0; | |
9275 } | |
9276 _ACEOF | |
9277 if ac_fn_c_try_link "$LINENO"; then : | |
9278 | |
9279 lt_aix_libpath_sed=' | |
9280 /Import File Strings/,/^$/ { | |
9281 /^0/ { | |
9282 s/^0 *\([^ ]*\) *$/\1/ | |
9283 p | |
9284 } | |
9285 }' | |
9286 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9287 # Check for a 64-bit object if we didn't find anything. | |
9288 if test -z "$lt_cv_aix_libpath_"; then | |
9289 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9290 fi | |
9291 fi | |
9292 rm -f core conftest.err conftest.$ac_objext \ | |
9293 conftest$ac_exeext conftest.$ac_ext | |
9294 if test -z "$lt_cv_aix_libpath_"; then | |
9295 lt_cv_aix_libpath_="/usr/lib:/lib" | |
9296 fi | |
9297 | |
9298 fi | |
9299 | |
9300 aix_libpath=$lt_cv_aix_libpath_ | |
9301 fi | |
9302 | |
9303 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9304 # Warning - without using the other run time loading flags, | |
9305 # -berok will link without error, but may produce a broken library. | |
9306 no_undefined_flag=' ${wl}-bernotok' | |
9307 allow_undefined_flag=' ${wl}-berok' | |
9308 if test "$with_gnu_ld" = yes; then | |
9309 # We only use this code for GNU lds that support --whole-archive. | |
9310 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9311 else | |
9312 # Exported symbols can be pulled into shared objects from archives | |
9313 whole_archive_flag_spec='$convenience' | |
9314 fi | |
9315 archive_cmds_need_lc=yes | |
9316 # This is similar to how AIX traditionally builds its shared libraries. | |
9317 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
9318 fi | |
9319 fi | |
9320 ;; | |
9321 | |
9322 amigaos*) | |
9323 case $host_cpu in | |
9324 powerpc) | |
9325 # see comment about AmigaOS4 .so support | |
9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9327 archive_expsym_cmds='' | |
9328 ;; | |
9329 m68k) | |
9330 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)' | |
9331 hardcode_libdir_flag_spec='-L$libdir' | |
9332 hardcode_minus_L=yes | |
9333 ;; | |
9334 esac | |
9335 ;; | |
9336 | |
9337 bsdi[45]*) | |
9338 export_dynamic_flag_spec=-rdynamic | |
9339 ;; | |
9340 | |
9341 cygwin* | mingw* | pw32* | cegcc*) | |
9342 # When not using gcc, we currently assume that we are using | |
9343 # Microsoft Visual C++. | |
9344 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9345 # no search path for DLLs. | |
9346 case $cc_basename in | |
9347 cl*) | |
9348 # Native MSVC | |
9349 hardcode_libdir_flag_spec=' ' | |
9350 allow_undefined_flag=unsupported | |
9351 always_export_symbols=yes | |
9352 file_list_spec='@' | |
9353 # Tell ltmain to make .lib files, not .a files. | |
9354 libext=lib | |
9355 # Tell ltmain to make .dll files, not .so files. | |
9356 shrext_cmds=".dll" | |
9357 # FIXME: Setting linknames here is a bad hack. | |
9358 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9359 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9360 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9361 else | |
9362 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9363 fi~ | |
9364 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9365 linknames=' | |
9366 # The linker will not automatically build a static lib if we build a DLL. | |
9367 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9368 enable_shared_with_static_runtimes=yes | |
9369 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9370 # Don't use ranlib | |
9371 old_postinstall_cmds='chmod 644 $oldlib' | |
9372 postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9373 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9374 case $lt_outputfile in | |
9375 *.exe|*.EXE) ;; | |
9376 *) | |
9377 lt_outputfile="$lt_outputfile.exe" | |
9378 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9379 ;; | |
9380 esac~ | |
9381 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9382 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9383 $RM "$lt_outputfile.manifest"; | |
9384 fi' | |
9385 ;; | |
9386 *) | |
9387 # Assume MSVC wrapper | |
9388 hardcode_libdir_flag_spec=' ' | |
9389 allow_undefined_flag=unsupported | |
9390 # Tell ltmain to make .lib files, not .a files. | |
9391 libext=lib | |
9392 # Tell ltmain to make .dll files, not .so files. | |
9393 shrext_cmds=".dll" | |
9394 # FIXME: Setting linknames here is a bad hack. | |
9395 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9396 # The linker will automatically build a .lib file if we build a DLL. | |
9397 old_archive_from_new_cmds='true' | |
9398 # FIXME: Should let the user specify the lib program. | |
9399 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9400 enable_shared_with_static_runtimes=yes | |
9401 ;; | |
9402 esac | |
9403 ;; | |
9404 | |
9405 darwin* | rhapsody*) | |
9406 | |
9407 | |
9408 archive_cmds_need_lc=no | |
9409 hardcode_direct=no | |
9410 hardcode_automatic=yes | |
9411 hardcode_shlibpath_var=unsupported | |
9412 if test "$lt_cv_ld_force_load" = "yes"; then | |
9413 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\"`' | |
9414 else | |
9415 whole_archive_flag_spec='' | |
9416 fi | |
9417 link_all_deplibs=yes | |
9418 allow_undefined_flag="$_lt_dar_allow_undefined" | |
9419 case $cc_basename in | |
9420 ifort*) _lt_dar_can_shared=yes ;; | |
9421 *) _lt_dar_can_shared=$GCC ;; | |
9422 esac | |
9423 if test "$_lt_dar_can_shared" = "yes"; then | |
9424 output_verbose_link_cmd=func_echo_all | |
9425 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9426 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9427 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}" | |
9428 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}" | |
9429 | |
9430 else | |
9431 ld_shlibs=no | |
9432 fi | |
9433 | |
9434 ;; | |
9435 | |
9436 dgux*) | |
9437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9438 hardcode_libdir_flag_spec='-L$libdir' | |
9439 hardcode_shlibpath_var=no | |
9440 ;; | |
9441 | |
9442 freebsd1*) | |
9443 ld_shlibs=no | |
9444 ;; | |
9445 | |
9446 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9447 # support. Future versions do this automatically, but an explicit c++rt0.o | |
9448 # does not break anything, and helps significantly (at the cost of a little | |
9449 # extra space). | |
9450 freebsd2.2*) | |
9451 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9452 hardcode_libdir_flag_spec='-R$libdir' | |
9453 hardcode_direct=yes | |
9454 hardcode_shlibpath_var=no | |
9455 ;; | |
9456 | |
9457 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9458 freebsd2*) | |
9459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9460 hardcode_direct=yes | |
9461 hardcode_minus_L=yes | |
9462 hardcode_shlibpath_var=no | |
9463 ;; | |
9464 | |
9465 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9466 freebsd* | dragonfly*) | |
9467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9468 hardcode_libdir_flag_spec='-R$libdir' | |
9469 hardcode_direct=yes | |
9470 hardcode_shlibpath_var=no | |
9471 ;; | |
9472 | |
9473 hpux9*) | |
9474 if test "$GCC" = yes; then | |
9475 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9476 else | |
9477 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9478 fi | |
9479 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9480 hardcode_libdir_separator=: | |
9481 hardcode_direct=yes | |
9482 | |
9483 # hardcode_minus_L: Not really in the search PATH, | |
9484 # but as the default location of the library. | |
9485 hardcode_minus_L=yes | |
9486 export_dynamic_flag_spec='${wl}-E' | |
9487 ;; | |
9488 | |
9489 hpux10*) | |
9490 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9491 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9492 else | |
9493 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9494 fi | |
9495 if test "$with_gnu_ld" = no; then | |
9496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9497 hardcode_libdir_flag_spec_ld='+b $libdir' | |
9498 hardcode_libdir_separator=: | |
9499 hardcode_direct=yes | |
9500 hardcode_direct_absolute=yes | |
9501 export_dynamic_flag_spec='${wl}-E' | |
9502 # hardcode_minus_L: Not really in the search PATH, | |
9503 # but as the default location of the library. | |
9504 hardcode_minus_L=yes | |
9505 fi | |
9506 ;; | |
9507 | |
9508 hpux11*) | |
9509 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9510 case $host_cpu in | |
9511 hppa*64*) | |
9512 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9513 ;; | |
9514 ia64*) | |
9515 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9516 ;; | |
9517 *) | |
9518 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9519 ;; | |
9520 esac | |
9521 else | |
9522 case $host_cpu in | |
9523 hppa*64*) | |
9524 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9525 ;; | |
9526 ia64*) | |
9527 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9528 ;; | |
9529 *) | |
9530 | |
9531 # Older versions of the 11.00 compiler do not understand -b yet | |
9532 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9534 $as_echo_n "checking if $CC understands -b... " >&6; } | |
9535 if ${lt_cv_prog_compiler__b+:} false; then : | |
9536 $as_echo_n "(cached) " >&6 | |
9537 else | |
9538 lt_cv_prog_compiler__b=no | |
9539 save_LDFLAGS="$LDFLAGS" | |
9540 LDFLAGS="$LDFLAGS -b" | |
9541 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9542 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9543 # The linker can only warn and ignore the option if not recognized | |
9544 # So say no if there are warnings | |
9545 if test -s conftest.err; then | |
9546 # Append any errors to the config.log. | |
9547 cat conftest.err 1>&5 | |
9548 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9550 if diff conftest.exp conftest.er2 >/dev/null; then | |
9551 lt_cv_prog_compiler__b=yes | |
9552 fi | |
9553 else | |
9554 lt_cv_prog_compiler__b=yes | |
9555 fi | |
9556 fi | |
9557 $RM -r conftest* | |
9558 LDFLAGS="$save_LDFLAGS" | |
9559 | |
9560 fi | |
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9562 $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9563 | |
9564 if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9565 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9566 else | |
9567 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9568 fi | |
9569 | |
9570 ;; | |
9571 esac | |
9572 fi | |
9573 if test "$with_gnu_ld" = no; then | |
9574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9575 hardcode_libdir_separator=: | |
9576 | |
9577 case $host_cpu in | |
9578 hppa*64*|ia64*) | |
9579 hardcode_direct=no | |
9580 hardcode_shlibpath_var=no | |
9581 ;; | |
9582 *) | |
9583 hardcode_direct=yes | |
9584 hardcode_direct_absolute=yes | |
9585 export_dynamic_flag_spec='${wl}-E' | |
9586 | |
9587 # hardcode_minus_L: Not really in the search PATH, | |
9588 # but as the default location of the library. | |
9589 hardcode_minus_L=yes | |
9590 ;; | |
9591 esac | |
9592 fi | |
9593 ;; | |
9594 | |
9595 irix5* | irix6* | nonstopux*) | |
9596 if test "$GCC" = yes; then | |
9597 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' | |
9598 # Try to use the -exported_symbol ld option, if it does not | |
9599 # work, assume that -exports_file does not work either and | |
9600 # implicitly export all symbols. | |
9601 # This should be the same for all languages, so no per-tag cache variable. | |
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9603 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9604 if ${lt_cv_irix_exported_symbol+:} false; then : | |
9605 $as_echo_n "(cached) " >&6 | |
9606 else | |
9607 save_LDFLAGS="$LDFLAGS" | |
9608 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9610 /* end confdefs.h. */ | |
9611 int foo (void) { return 0; } | |
9612 _ACEOF | |
9613 if ac_fn_c_try_link "$LINENO"; then : | |
9614 lt_cv_irix_exported_symbol=yes | |
9615 else | |
9616 lt_cv_irix_exported_symbol=no | |
9617 fi | |
9618 rm -f core conftest.err conftest.$ac_objext \ | |
9619 conftest$ac_exeext conftest.$ac_ext | |
9620 LDFLAGS="$save_LDFLAGS" | |
9621 fi | |
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9623 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9624 if test "$lt_cv_irix_exported_symbol" = yes; then | |
9625 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' | |
9626 fi | |
9627 else | |
9628 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' | |
9629 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' | |
9630 fi | |
9631 archive_cmds_need_lc='no' | |
9632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9633 hardcode_libdir_separator=: | |
9634 inherit_rpath=yes | |
9635 link_all_deplibs=yes | |
9636 ;; | |
9637 | |
9638 netbsd* | netbsdelf*-gnu) | |
9639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9641 else | |
9642 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9643 fi | |
9644 hardcode_libdir_flag_spec='-R$libdir' | |
9645 hardcode_direct=yes | |
9646 hardcode_shlibpath_var=no | |
9647 ;; | |
9648 | |
9649 newsos6) | |
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9651 hardcode_direct=yes | |
9652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9653 hardcode_libdir_separator=: | |
9654 hardcode_shlibpath_var=no | |
9655 ;; | |
9656 | |
9657 *nto* | *qnx*) | |
9658 ;; | |
9659 | |
9660 openbsd*) | |
9661 if test -f /usr/libexec/ld.so; then | |
9662 hardcode_direct=yes | |
9663 hardcode_shlibpath_var=no | |
9664 hardcode_direct_absolute=yes | |
9665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9667 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9669 export_dynamic_flag_spec='${wl}-E' | |
9670 else | |
9671 case $host_os in | |
9672 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9674 hardcode_libdir_flag_spec='-R$libdir' | |
9675 ;; | |
9676 *) | |
9677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9679 ;; | |
9680 esac | |
9681 fi | |
9682 else | |
9683 ld_shlibs=no | |
9684 fi | |
9685 ;; | |
9686 | |
9687 os2*) | |
9688 hardcode_libdir_flag_spec='-L$libdir' | |
9689 hardcode_minus_L=yes | |
9690 allow_undefined_flag=unsupported | |
9691 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
9692 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9693 ;; | |
9694 | |
9695 osf3*) | |
9696 if test "$GCC" = yes; then | |
9697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9698 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' | |
9699 else | |
9700 allow_undefined_flag=' -expect_unresolved \*' | |
9701 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' | |
9702 fi | |
9703 archive_cmds_need_lc='no' | |
9704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9705 hardcode_libdir_separator=: | |
9706 ;; | |
9707 | |
9708 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9709 if test "$GCC" = yes; then | |
9710 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9711 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' | |
9712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9713 else | |
9714 allow_undefined_flag=' -expect_unresolved \*' | |
9715 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' | |
9716 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~ | |
9717 $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' | |
9718 | |
9719 # Both c and cxx compiler support -rpath directly | |
9720 hardcode_libdir_flag_spec='-rpath $libdir' | |
9721 fi | |
9722 archive_cmds_need_lc='no' | |
9723 hardcode_libdir_separator=: | |
9724 ;; | |
9725 | |
9726 solaris*) | |
9727 no_undefined_flag=' -z defs' | |
9728 if test "$GCC" = yes; then | |
9729 wlarc='${wl}' | |
9730 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9732 $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' | |
9733 else | |
9734 case `$CC -V 2>&1` in | |
9735 *"Compilers 5.0"*) | |
9736 wlarc='' | |
9737 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9738 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9739 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9740 ;; | |
9741 *) | |
9742 wlarc='${wl}' | |
9743 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9744 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9745 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9746 ;; | |
9747 esac | |
9748 fi | |
9749 hardcode_libdir_flag_spec='-R$libdir' | |
9750 hardcode_shlibpath_var=no | |
9751 case $host_os in | |
9752 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9753 *) | |
9754 # The compiler driver will combine and reorder linker options, | |
9755 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9756 # but is careful enough not to reorder. | |
9757 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9758 if test "$GCC" = yes; then | |
9759 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9760 else | |
9761 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9762 fi | |
9763 ;; | |
9764 esac | |
9765 link_all_deplibs=yes | |
9766 ;; | |
9767 | |
9768 sunos4*) | |
9769 if test "x$host_vendor" = xsequent; then | |
9770 # Use $CC to link under sequent, because it throws in some extra .o | |
9771 # files that make .init and .fini sections work. | |
9772 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9773 else | |
9774 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9775 fi | |
9776 hardcode_libdir_flag_spec='-L$libdir' | |
9777 hardcode_direct=yes | |
9778 hardcode_minus_L=yes | |
9779 hardcode_shlibpath_var=no | |
9780 ;; | |
9781 | |
9782 sysv4) | |
9783 case $host_vendor in | |
9784 sni) | |
9785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9786 hardcode_direct=yes # is this really true??? | |
9787 ;; | |
9788 siemens) | |
9789 ## LD is ld it makes a PLAMLIB | |
9790 ## CC just makes a GrossModule. | |
9791 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9792 reload_cmds='$CC -r -o $output$reload_objs' | |
9793 hardcode_direct=no | |
9794 ;; | |
9795 motorola) | |
9796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9797 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9798 ;; | |
9799 esac | |
9800 runpath_var='LD_RUN_PATH' | |
9801 hardcode_shlibpath_var=no | |
9802 ;; | |
9803 | |
9804 sysv4.3*) | |
9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9806 hardcode_shlibpath_var=no | |
9807 export_dynamic_flag_spec='-Bexport' | |
9808 ;; | |
9809 | |
9810 sysv4*MP*) | |
9811 if test -d /usr/nec; then | |
9812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9813 hardcode_shlibpath_var=no | |
9814 runpath_var=LD_RUN_PATH | |
9815 hardcode_runpath_var=yes | |
9816 ld_shlibs=yes | |
9817 fi | |
9818 ;; | |
9819 | |
9820 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9821 no_undefined_flag='${wl}-z,text' | |
9822 archive_cmds_need_lc=no | |
9823 hardcode_shlibpath_var=no | |
9824 runpath_var='LD_RUN_PATH' | |
9825 | |
9826 if test "$GCC" = yes; then | |
9827 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9828 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9829 else | |
9830 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9831 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9832 fi | |
9833 ;; | |
9834 | |
9835 sysv5* | sco3.2v5* | sco5v6*) | |
9836 # Note: We can NOT use -z defs as we might desire, because we do not | |
9837 # link with -lc, and that would cause any symbols used from libc to | |
9838 # always be unresolved, which means just about no library would | |
9839 # ever link correctly. If we're not using GNU ld we use -z text | |
9840 # though, which does catch some bad symbols but isn't as heavy-handed | |
9841 # as -z defs. | |
9842 no_undefined_flag='${wl}-z,text' | |
9843 allow_undefined_flag='${wl}-z,nodefs' | |
9844 archive_cmds_need_lc=no | |
9845 hardcode_shlibpath_var=no | |
9846 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9847 hardcode_libdir_separator=':' | |
9848 link_all_deplibs=yes | |
9849 export_dynamic_flag_spec='${wl}-Bexport' | |
9850 runpath_var='LD_RUN_PATH' | |
9851 | |
9852 if test "$GCC" = yes; then | |
9853 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9854 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9855 else | |
9856 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9857 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9858 fi | |
9859 ;; | |
9860 | |
9861 uts4*) | |
9862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9863 hardcode_libdir_flag_spec='-L$libdir' | |
9864 hardcode_shlibpath_var=no | |
9865 ;; | |
9866 | |
9867 *) | |
9868 ld_shlibs=no | |
9869 ;; | |
9870 esac | |
9871 | |
9872 if test x$host_vendor = xsni; then | |
9873 case $host in | |
9874 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9875 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9876 ;; | |
9877 esac | |
9878 fi | |
9879 fi | |
9880 | |
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
9882 $as_echo "$ld_shlibs" >&6; } | |
9883 test "$ld_shlibs" = no && can_build_shared=no | |
9884 | |
9885 with_gnu_ld=$with_gnu_ld | |
9886 | |
9887 | |
9888 | |
9889 | |
9890 | |
9891 | |
9892 | |
9893 | |
9894 | |
9895 | |
9896 | |
9897 | |
9898 | |
9899 | |
9900 | |
9901 # | |
9902 # Do we need to explicitly link libc? | |
9903 # | |
9904 case "x$archive_cmds_need_lc" in | |
9905 x|xyes) | |
9906 # Assume -lc should be added | |
9907 archive_cmds_need_lc=yes | |
9908 | |
9909 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9910 case $archive_cmds in | |
9911 *'~'*) | |
9912 # FIXME: we may have to deal with multi-command sequences. | |
9913 ;; | |
9914 '$CC '*) | |
9915 # Test whether the compiler implicitly links with -lc since on some | |
9916 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9917 # to ld, don't add -lc before -lgcc. | |
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
9919 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9920 if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
9921 $as_echo_n "(cached) " >&6 | |
9922 else | |
9923 $RM conftest* | |
9924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9925 | |
9926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9927 (eval $ac_compile) 2>&5 | |
9928 ac_status=$? | |
9929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9930 test $ac_status = 0; } 2>conftest.err; then | |
9931 soname=conftest | |
9932 lib=conftest | |
9933 libobjs=conftest.$ac_objext | |
9934 deplibs= | |
9935 wl=$lt_prog_compiler_wl | |
9936 pic_flag=$lt_prog_compiler_pic | |
9937 compiler_flags=-v | |
9938 linker_flags=-v | |
9939 verstring= | |
9940 output_objdir=. | |
9941 libname=conftest | |
9942 lt_save_allow_undefined_flag=$allow_undefined_flag | |
9943 allow_undefined_flag= | |
9944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
9945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9946 ac_status=$? | |
9947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9948 test $ac_status = 0; } | |
9949 then | |
9950 lt_cv_archive_cmds_need_lc=no | |
9951 else | |
9952 lt_cv_archive_cmds_need_lc=yes | |
9953 fi | |
9954 allow_undefined_flag=$lt_save_allow_undefined_flag | |
9955 else | |
9956 cat conftest.err 1>&5 | |
9957 fi | |
9958 $RM conftest* | |
9959 | |
9960 fi | |
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9962 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9963 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
9964 ;; | |
9965 esac | |
9966 fi | |
9967 ;; | |
9968 esac | |
9969 | |
9970 | |
9971 | |
9972 | |
9973 | |
9974 | |
9975 | |
9976 | |
9977 | |
9978 | |
9979 | |
9980 | |
9981 | |
9982 | |
9983 | |
9984 | |
9985 | |
9986 | |
9987 | |
9988 | |
9989 | |
9990 | |
9991 | |
9992 | |
9993 | |
9994 | |
9995 | |
9996 | |
9997 | |
9998 | |
9999 | |
10000 | |
10001 | |
10002 | |
10003 | |
10004 | |
10005 | |
10006 | |
10007 | |
10008 | |
10009 | |
10010 | |
10011 | |
10012 | |
10013 | |
10014 | |
10015 | |
10016 | |
10017 | |
10018 | |
10019 | |
10020 | |
10021 | |
10022 | |
10023 | |
10024 | |
10025 | |
10026 | |
10027 | |
10028 | |
10029 | |
10030 | |
10031 | |
10032 | |
10033 | |
10034 | |
10035 | |
10036 | |
10037 | |
10038 | |
10039 | |
10040 | |
10041 | |
10042 | |
10043 | |
10044 | |
10045 | |
10046 | |
10047 | |
10048 | |
10049 | |
10050 | |
10051 | |
10052 | |
10053 | |
10054 | |
10055 | |
10056 | |
10057 | |
10058 | |
10059 | |
10060 | |
10061 | |
10062 | |
10063 | |
10064 | |
10065 | |
10066 | |
10067 | |
10068 | |
10069 | |
10070 | |
10071 | |
10072 | |
10073 | |
10074 | |
10075 | |
10076 | |
10077 | |
10078 | |
10079 | |
10080 | |
10081 | |
10082 | |
10083 | |
10084 | |
10085 | |
10086 | |
10087 | |
10088 | |
10089 | |
10090 | |
10091 | |
10092 | |
10093 | |
10094 | |
10095 | |
10096 | |
10097 | |
10098 | |
10099 | |
10100 | |
10101 | |
10102 | |
10103 | |
10104 | |
10105 | |
10106 | |
10107 | |
10108 | |
10109 | |
10110 | |
10111 | |
10112 | |
10113 | |
10114 | |
10115 | |
10116 | |
10117 | |
10118 | |
10119 | |
10120 | |
10121 | |
10122 | |
10123 | |
10124 | |
10125 | |
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10127 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10128 | |
10129 if test "$GCC" = yes; then | |
10130 case $host_os in | |
10131 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10132 *) lt_awk_arg="/^libraries:/" ;; | |
10133 esac | |
10134 case $host_os in | |
10135 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10136 *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10137 esac | |
10138 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10139 case $lt_search_path_spec in | |
10140 *\;*) | |
10141 # if the path contains ";" then we assume it to be the separator | |
10142 # otherwise default to the standard path separator (i.e. ":") - it is | |
10143 # assumed that no part of a normal pathname contains ";" but that should | |
10144 # okay in the real world where ";" in dirpaths is itself problematic. | |
10145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10146 ;; | |
10147 *) | |
10148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10149 ;; | |
10150 esac | |
10151 # Ok, now we have the path, separated by spaces, we can step through it | |
10152 # and add multilib dir if necessary. | |
10153 lt_tmp_lt_search_path_spec= | |
10154 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10155 for lt_sys_path in $lt_search_path_spec; do | |
10156 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10158 else | |
10159 test -d "$lt_sys_path" && \ | |
10160 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10161 fi | |
10162 done | |
10163 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10164 BEGIN {RS=" "; FS="/|\n";} { | |
10165 lt_foo=""; | |
10166 lt_count=0; | |
10167 for (lt_i = NF; lt_i > 0; lt_i--) { | |
10168 if ($lt_i != "" && $lt_i != ".") { | |
10169 if ($lt_i == "..") { | |
10170 lt_count++; | |
10171 } else { | |
10172 if (lt_count == 0) { | |
10173 lt_foo="/" $lt_i lt_foo; | |
10174 } else { | |
10175 lt_count--; | |
10176 } | |
10177 } | |
10178 } | |
10179 } | |
10180 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10181 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10182 }'` | |
10183 # AWK program above erroneously prepends '/' to C:/dos/paths | |
10184 # for these hosts. | |
10185 case $host_os in | |
10186 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10187 $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10188 esac | |
10189 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10190 else | |
10191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10192 fi | |
10193 library_names_spec= | |
10194 libname_spec='lib$name' | |
10195 soname_spec= | |
10196 shrext_cmds=".so" | |
10197 postinstall_cmds= | |
10198 postuninstall_cmds= | |
10199 finish_cmds= | |
10200 finish_eval= | |
10201 shlibpath_var= | |
10202 shlibpath_overrides_runpath=unknown | |
10203 version_type=none | |
10204 dynamic_linker="$host_os ld.so" | |
10205 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10206 need_lib_prefix=unknown | |
10207 hardcode_into_libs=no | |
10208 | |
10209 # when you set need_version to no, make sure it does not cause -set_version | |
10210 # flags to be left without arguments | |
10211 need_version=unknown | |
10212 | |
10213 case $host_os in | |
10214 aix3*) | |
10215 version_type=linux | |
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10217 shlibpath_var=LIBPATH | |
10218 | |
10219 # AIX 3 has no versioning support, so we append a major version to the name. | |
10220 soname_spec='${libname}${release}${shared_ext}$major' | |
10221 ;; | |
10222 | |
10223 aix[4-9]*) | |
10224 version_type=linux | |
10225 need_lib_prefix=no | |
10226 need_version=no | |
10227 hardcode_into_libs=yes | |
10228 if test "$host_cpu" = ia64; then | |
10229 # AIX 5 supports IA64 | |
10230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10231 shlibpath_var=LD_LIBRARY_PATH | |
10232 else | |
10233 # With GCC up to 2.95.x, collect2 would create an import file | |
10234 # for dependence libraries. The import file would start with | |
10235 # the line `#! .'. This would cause the generated library to | |
10236 # depend on `.', always an invalid library. This was fixed in | |
10237 # development snapshots of GCC prior to 3.0. | |
10238 case $host_os in | |
10239 aix4 | aix4.[01] | aix4.[01].*) | |
10240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10241 echo ' yes ' | |
10242 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10243 : | |
10244 else | |
10245 can_build_shared=no | |
10246 fi | |
10247 ;; | |
10248 esac | |
10249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10250 # soname into executable. Probably we can add versioning support to | |
10251 # collect2, so additional links can be useful in future. | |
10252 if test "$aix_use_runtimelinking" = yes; then | |
10253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10254 # instead of lib<name>.a to let people know that these are not | |
10255 # typical AIX shared libraries. | |
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10257 else | |
10258 # We preserve .a as extension for shared libraries through AIX4.2 | |
10259 # and later when we are not doing run time linking. | |
10260 library_names_spec='${libname}${release}.a $libname.a' | |
10261 soname_spec='${libname}${release}${shared_ext}$major' | |
10262 fi | |
10263 shlibpath_var=LIBPATH | |
10264 fi | |
10265 ;; | |
10266 | |
10267 amigaos*) | |
10268 case $host_cpu in | |
10269 powerpc) | |
10270 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10271 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10273 ;; | |
10274 m68k) | |
10275 library_names_spec='$libname.ixlibrary $libname.a' | |
10276 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10277 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
10278 ;; | |
10279 esac | |
10280 ;; | |
10281 | |
10282 beos*) | |
10283 library_names_spec='${libname}${shared_ext}' | |
10284 dynamic_linker="$host_os ld.so" | |
10285 shlibpath_var=LIBRARY_PATH | |
10286 ;; | |
10287 | |
10288 bsdi[45]*) | |
10289 version_type=linux | |
10290 need_version=no | |
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10292 soname_spec='${libname}${release}${shared_ext}$major' | |
10293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10294 shlibpath_var=LD_LIBRARY_PATH | |
10295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10297 # the default ld.so.conf also contains /usr/contrib/lib and | |
10298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10299 # libtool to hard-code these into programs | |
10300 ;; | |
10301 | |
10302 cygwin* | mingw* | pw32* | cegcc*) | |
10303 version_type=windows | |
10304 shrext_cmds=".dll" | |
10305 need_version=no | |
10306 need_lib_prefix=no | |
10307 | |
10308 case $GCC,$cc_basename in | |
10309 yes,*) | |
10310 # gcc | |
10311 library_names_spec='$libname.dll.a' | |
10312 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10313 postinstall_cmds='base_file=`basename \${file}`~ | |
10314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10315 dldir=$destdir/`dirname \$dlpath`~ | |
10316 test -d \$dldir || mkdir -p \$dldir~ | |
10317 $install_prog $dir/$dlname \$dldir/$dlname~ | |
10318 chmod a+x \$dldir/$dlname~ | |
10319 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10320 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10321 fi' | |
10322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10323 dlpath=$dir/\$dldll~ | |
10324 $RM \$dlpath' | |
10325 shlibpath_overrides_runpath=yes | |
10326 | |
10327 case $host_os in | |
10328 cygwin*) | |
10329 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10330 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10331 | |
10332 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10333 ;; | |
10334 mingw* | cegcc*) | |
10335 # MinGW DLLs use traditional 'lib' prefix | |
10336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10337 ;; | |
10338 pw32*) | |
10339 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10340 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10341 ;; | |
10342 esac | |
10343 dynamic_linker='Win32 ld.exe' | |
10344 ;; | |
10345 | |
10346 *,cl*) | |
10347 # Native MSVC | |
10348 libname_spec='$name' | |
10349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10350 library_names_spec='${libname}.dll.lib' | |
10351 | |
10352 case $build_os in | |
10353 mingw*) | |
10354 sys_lib_search_path_spec= | |
10355 lt_save_ifs=$IFS | |
10356 IFS=';' | |
10357 for lt_path in $LIB | |
10358 do | |
10359 IFS=$lt_save_ifs | |
10360 # Let DOS variable expansion print the short 8.3 style file name. | |
10361 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10362 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10363 done | |
10364 IFS=$lt_save_ifs | |
10365 # Convert to MSYS style. | |
10366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10367 ;; | |
10368 cygwin*) | |
10369 # Convert to unix form, then to dos form, then back to unix form | |
10370 # but this time dos style (no spaces!) so that the unix form looks | |
10371 # like /cygdrive/c/PROGRA~1:/cygdr... | |
10372 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10373 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10374 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10375 ;; | |
10376 *) | |
10377 sys_lib_search_path_spec="$LIB" | |
10378 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10379 # It is most probably a Windows format PATH. | |
10380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10381 else | |
10382 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10383 fi | |
10384 # FIXME: find the short name or the path components, as spaces are | |
10385 # common. (e.g. "Program Files" -> "PROGRA~1") | |
10386 ;; | |
10387 esac | |
10388 | |
10389 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10390 postinstall_cmds='base_file=`basename \${file}`~ | |
10391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10392 dldir=$destdir/`dirname \$dlpath`~ | |
10393 test -d \$dldir || mkdir -p \$dldir~ | |
10394 $install_prog $dir/$dlname \$dldir/$dlname' | |
10395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10396 dlpath=$dir/\$dldll~ | |
10397 $RM \$dlpath' | |
10398 shlibpath_overrides_runpath=yes | |
10399 dynamic_linker='Win32 link.exe' | |
10400 ;; | |
10401 | |
10402 *) | |
10403 # Assume MSVC wrapper | |
10404 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10405 dynamic_linker='Win32 ld.exe' | |
10406 ;; | |
10407 esac | |
10408 # FIXME: first we should search . and the directory the executable is in | |
10409 shlibpath_var=PATH | |
10410 ;; | |
10411 | |
10412 darwin* | rhapsody*) | |
10413 dynamic_linker="$host_os dyld" | |
10414 version_type=darwin | |
10415 need_lib_prefix=no | |
10416 need_version=no | |
10417 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10418 soname_spec='${libname}${release}${major}$shared_ext' | |
10419 shlibpath_overrides_runpath=yes | |
10420 shlibpath_var=DYLD_LIBRARY_PATH | |
10421 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10422 | |
10423 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10425 ;; | |
10426 | |
10427 dgux*) | |
10428 version_type=linux | |
10429 need_lib_prefix=no | |
10430 need_version=no | |
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10432 soname_spec='${libname}${release}${shared_ext}$major' | |
10433 shlibpath_var=LD_LIBRARY_PATH | |
10434 ;; | |
10435 | |
10436 freebsd1*) | |
10437 dynamic_linker=no | |
10438 ;; | |
10439 | |
10440 freebsd* | dragonfly*) | |
10441 # DragonFly does not have aout. When/if they implement a new | |
10442 # versioning mechanism, adjust this. | |
10443 if test -x /usr/bin/objformat; then | |
10444 objformat=`/usr/bin/objformat` | |
10445 else | |
10446 case $host_os in | |
10447 freebsd[123]*) objformat=aout ;; | |
10448 *) objformat=elf ;; | |
10449 esac | |
10450 fi | |
10451 version_type=freebsd-$objformat | |
10452 case $version_type in | |
10453 freebsd-elf*) | |
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10455 need_version=no | |
10456 need_lib_prefix=no | |
10457 ;; | |
10458 freebsd-*) | |
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10460 need_version=yes | |
10461 ;; | |
10462 esac | |
10463 shlibpath_var=LD_LIBRARY_PATH | |
10464 case $host_os in | |
10465 freebsd2*) | |
10466 shlibpath_overrides_runpath=yes | |
10467 ;; | |
10468 freebsd3.[01]* | freebsdelf3.[01]*) | |
10469 shlibpath_overrides_runpath=yes | |
10470 hardcode_into_libs=yes | |
10471 ;; | |
10472 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10473 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10474 shlibpath_overrides_runpath=no | |
10475 hardcode_into_libs=yes | |
10476 ;; | |
10477 *) # from 4.6 on, and DragonFly | |
10478 shlibpath_overrides_runpath=yes | |
10479 hardcode_into_libs=yes | |
10480 ;; | |
10481 esac | |
10482 ;; | |
10483 | |
10484 gnu*) | |
10485 version_type=linux | |
10486 need_lib_prefix=no | |
10487 need_version=no | |
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10489 soname_spec='${libname}${release}${shared_ext}$major' | |
10490 shlibpath_var=LD_LIBRARY_PATH | |
10491 shlibpath_overrides_runpath=no | |
10492 hardcode_into_libs=yes | |
10493 ;; | |
10494 | |
10495 haiku*) | |
10496 version_type=linux | |
10497 need_lib_prefix=no | |
10498 need_version=no | |
10499 dynamic_linker="$host_os runtime_loader" | |
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10501 soname_spec='${libname}${release}${shared_ext}$major' | |
10502 shlibpath_var=LIBRARY_PATH | |
10503 shlibpath_overrides_runpath=yes | |
10504 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
10505 hardcode_into_libs=yes | |
10506 ;; | |
10507 | |
10508 hpux9* | hpux10* | hpux11*) | |
10509 # Give a soname corresponding to the major version so that dld.sl refuses to | |
10510 # link against other versions. | |
10511 version_type=sunos | |
10512 need_lib_prefix=no | |
10513 need_version=no | |
10514 case $host_cpu in | |
10515 ia64*) | |
10516 shrext_cmds='.so' | |
10517 hardcode_into_libs=yes | |
10518 dynamic_linker="$host_os dld.so" | |
10519 shlibpath_var=LD_LIBRARY_PATH | |
10520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10522 soname_spec='${libname}${release}${shared_ext}$major' | |
10523 if test "X$HPUX_IA64_MODE" = X32; then | |
10524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10525 else | |
10526 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10527 fi | |
10528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10529 ;; | |
10530 hppa*64*) | |
10531 shrext_cmds='.sl' | |
10532 hardcode_into_libs=yes | |
10533 dynamic_linker="$host_os dld.sl" | |
10534 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10537 soname_spec='${libname}${release}${shared_ext}$major' | |
10538 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10540 ;; | |
10541 *) | |
10542 shrext_cmds='.sl' | |
10543 dynamic_linker="$host_os dld.sl" | |
10544 shlibpath_var=SHLIB_PATH | |
10545 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10547 soname_spec='${libname}${release}${shared_ext}$major' | |
10548 ;; | |
10549 esac | |
10550 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10551 postinstall_cmds='chmod 555 $lib' | |
10552 # or fails outright, so override atomically: | |
10553 install_override_mode=555 | |
10554 ;; | |
10555 | |
10556 interix[3-9]*) | |
10557 version_type=linux | |
10558 need_lib_prefix=no | |
10559 need_version=no | |
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10561 soname_spec='${libname}${release}${shared_ext}$major' | |
10562 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10563 shlibpath_var=LD_LIBRARY_PATH | |
10564 shlibpath_overrides_runpath=no | |
10565 hardcode_into_libs=yes | |
10566 ;; | |
10567 | |
10568 irix5* | irix6* | nonstopux*) | |
10569 case $host_os in | |
10570 nonstopux*) version_type=nonstopux ;; | |
10571 *) | |
10572 if test "$lt_cv_prog_gnu_ld" = yes; then | |
10573 version_type=linux | |
10574 else | |
10575 version_type=irix | |
10576 fi ;; | |
10577 esac | |
10578 need_lib_prefix=no | |
10579 need_version=no | |
10580 soname_spec='${libname}${release}${shared_ext}$major' | |
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10582 case $host_os in | |
10583 irix5* | nonstopux*) | |
10584 libsuff= shlibsuff= | |
10585 ;; | |
10586 *) | |
10587 case $LD in # libtool.m4 will add one of these switches to LD | |
10588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10589 libsuff= shlibsuff= libmagic=32-bit;; | |
10590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10591 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10593 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10594 *) libsuff= shlibsuff= libmagic=never-match;; | |
10595 esac | |
10596 ;; | |
10597 esac | |
10598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10599 shlibpath_overrides_runpath=no | |
10600 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10601 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10602 hardcode_into_libs=yes | |
10603 ;; | |
10604 | |
10605 # No shared lib support for Linux oldld, aout, or coff. | |
10606 linux*oldld* | linux*aout* | linux*coff*) | |
10607 dynamic_linker=no | |
10608 ;; | |
10609 | |
10610 # This must be Linux ELF. | |
10611 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10612 version_type=linux | |
10613 need_lib_prefix=no | |
10614 need_version=no | |
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10616 soname_spec='${libname}${release}${shared_ext}$major' | |
10617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10618 shlibpath_var=LD_LIBRARY_PATH | |
10619 shlibpath_overrides_runpath=no | |
10620 | |
10621 # Some binutils ld are patched to set DT_RUNPATH | |
10622 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
10623 $as_echo_n "(cached) " >&6 | |
10624 else | |
10625 lt_cv_shlibpath_overrides_runpath=no | |
10626 save_LDFLAGS=$LDFLAGS | |
10627 save_libdir=$libdir | |
10628 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10629 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10631 /* end confdefs.h. */ | |
10632 | |
10633 int | |
10634 main () | |
10635 { | |
10636 | |
10637 ; | |
10638 return 0; | |
10639 } | |
10640 _ACEOF | |
10641 if ac_fn_c_try_link "$LINENO"; then : | |
10642 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10643 lt_cv_shlibpath_overrides_runpath=yes | |
10644 fi | |
10645 fi | |
10646 rm -f core conftest.err conftest.$ac_objext \ | |
10647 conftest$ac_exeext conftest.$ac_ext | |
10648 LDFLAGS=$save_LDFLAGS | |
10649 libdir=$save_libdir | |
10650 | |
10651 fi | |
10652 | |
10653 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10654 | |
10655 # This implies no fast_install, which is unacceptable. | |
10656 # Some rework will be needed to allow for fast_install | |
10657 # before this can be enabled. | |
10658 hardcode_into_libs=yes | |
10659 | |
10660 # Append ld.so.conf contents to the search path | |
10661 if test -f /etc/ld.so.conf; then | |
10662 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' ' '` | |
10663 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10664 fi | |
10665 | |
10666 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10667 # powerpc, because MkLinux only supported shared libraries with the | |
10668 # GNU dynamic linker. Since this was broken with cross compilers, | |
10669 # most powerpc-linux boxes support dynamic linking these days and | |
10670 # people can always --disable-shared, the test was removed, and we | |
10671 # assume the GNU/Linux dynamic linker is in use. | |
10672 dynamic_linker='GNU/Linux ld.so' | |
10673 ;; | |
10674 | |
10675 netbsdelf*-gnu) | |
10676 version_type=linux | |
10677 need_lib_prefix=no | |
10678 need_version=no | |
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10680 soname_spec='${libname}${release}${shared_ext}$major' | |
10681 shlibpath_var=LD_LIBRARY_PATH | |
10682 shlibpath_overrides_runpath=no | |
10683 hardcode_into_libs=yes | |
10684 dynamic_linker='NetBSD ld.elf_so' | |
10685 ;; | |
10686 | |
10687 netbsd*) | |
10688 version_type=sunos | |
10689 need_lib_prefix=no | |
10690 need_version=no | |
10691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10694 dynamic_linker='NetBSD (a.out) ld.so' | |
10695 else | |
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10697 soname_spec='${libname}${release}${shared_ext}$major' | |
10698 dynamic_linker='NetBSD ld.elf_so' | |
10699 fi | |
10700 shlibpath_var=LD_LIBRARY_PATH | |
10701 shlibpath_overrides_runpath=yes | |
10702 hardcode_into_libs=yes | |
10703 ;; | |
10704 | |
10705 newsos6) | |
10706 version_type=linux | |
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10708 shlibpath_var=LD_LIBRARY_PATH | |
10709 shlibpath_overrides_runpath=yes | |
10710 ;; | |
10711 | |
10712 *nto* | *qnx*) | |
10713 version_type=qnx | |
10714 need_lib_prefix=no | |
10715 need_version=no | |
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10717 soname_spec='${libname}${release}${shared_ext}$major' | |
10718 shlibpath_var=LD_LIBRARY_PATH | |
10719 shlibpath_overrides_runpath=no | |
10720 hardcode_into_libs=yes | |
10721 dynamic_linker='ldqnx.so' | |
10722 ;; | |
10723 | |
10724 openbsd*) | |
10725 version_type=sunos | |
10726 sys_lib_dlsearch_path_spec="/usr/lib" | |
10727 need_lib_prefix=no | |
10728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10729 case $host_os in | |
10730 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10731 *) need_version=no ;; | |
10732 esac | |
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10735 shlibpath_var=LD_LIBRARY_PATH | |
10736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10737 case $host_os in | |
10738 openbsd2.[89] | openbsd2.[89].*) | |
10739 shlibpath_overrides_runpath=no | |
10740 ;; | |
10741 *) | |
10742 shlibpath_overrides_runpath=yes | |
10743 ;; | |
10744 esac | |
10745 else | |
10746 shlibpath_overrides_runpath=yes | |
10747 fi | |
10748 ;; | |
10749 | |
10750 os2*) | |
10751 libname_spec='$name' | |
10752 shrext_cmds=".dll" | |
10753 need_lib_prefix=no | |
10754 library_names_spec='$libname${shared_ext} $libname.a' | |
10755 dynamic_linker='OS/2 ld.exe' | |
10756 shlibpath_var=LIBPATH | |
10757 ;; | |
10758 | |
10759 osf3* | osf4* | osf5*) | |
10760 version_type=osf | |
10761 need_lib_prefix=no | |
10762 need_version=no | |
10763 soname_spec='${libname}${release}${shared_ext}$major' | |
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10765 shlibpath_var=LD_LIBRARY_PATH | |
10766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10768 ;; | |
10769 | |
10770 rdos*) | |
10771 dynamic_linker=no | |
10772 ;; | |
10773 | |
10774 solaris*) | |
10775 version_type=linux | |
10776 need_lib_prefix=no | |
10777 need_version=no | |
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10779 soname_spec='${libname}${release}${shared_ext}$major' | |
10780 shlibpath_var=LD_LIBRARY_PATH | |
10781 shlibpath_overrides_runpath=yes | |
10782 hardcode_into_libs=yes | |
10783 # ldd complains unless libraries are executable | |
10784 postinstall_cmds='chmod +x $lib' | |
10785 ;; | |
10786 | |
10787 sunos4*) | |
10788 version_type=sunos | |
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10791 shlibpath_var=LD_LIBRARY_PATH | |
10792 shlibpath_overrides_runpath=yes | |
10793 if test "$with_gnu_ld" = yes; then | |
10794 need_lib_prefix=no | |
10795 fi | |
10796 need_version=yes | |
10797 ;; | |
10798 | |
10799 sysv4 | sysv4.3*) | |
10800 version_type=linux | |
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10802 soname_spec='${libname}${release}${shared_ext}$major' | |
10803 shlibpath_var=LD_LIBRARY_PATH | |
10804 case $host_vendor in | |
10805 sni) | |
10806 shlibpath_overrides_runpath=no | |
10807 need_lib_prefix=no | |
10808 runpath_var=LD_RUN_PATH | |
10809 ;; | |
10810 siemens) | |
10811 need_lib_prefix=no | |
10812 ;; | |
10813 motorola) | |
10814 need_lib_prefix=no | |
10815 need_version=no | |
10816 shlibpath_overrides_runpath=no | |
10817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10818 ;; | |
10819 esac | |
10820 ;; | |
10821 | |
10822 sysv4*MP*) | |
10823 if test -d /usr/nec ;then | |
10824 version_type=linux | |
10825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10826 soname_spec='$libname${shared_ext}.$major' | |
10827 shlibpath_var=LD_LIBRARY_PATH | |
10828 fi | |
10829 ;; | |
10830 | |
10831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10832 version_type=freebsd-elf | |
10833 need_lib_prefix=no | |
10834 need_version=no | |
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10836 soname_spec='${libname}${release}${shared_ext}$major' | |
10837 shlibpath_var=LD_LIBRARY_PATH | |
10838 shlibpath_overrides_runpath=yes | |
10839 hardcode_into_libs=yes | |
10840 if test "$with_gnu_ld" = yes; then | |
10841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10842 else | |
10843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10844 case $host_os in | |
10845 sco3.2v5*) | |
10846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10847 ;; | |
10848 esac | |
10849 fi | |
10850 sys_lib_dlsearch_path_spec='/usr/lib' | |
10851 ;; | |
10852 | |
10853 tpf*) | |
10854 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10855 version_type=linux | |
10856 need_lib_prefix=no | |
10857 need_version=no | |
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10859 shlibpath_var=LD_LIBRARY_PATH | |
10860 shlibpath_overrides_runpath=no | |
10861 hardcode_into_libs=yes | |
10862 ;; | |
10863 | |
10864 uts4*) | |
10865 version_type=linux | |
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10867 soname_spec='${libname}${release}${shared_ext}$major' | |
10868 shlibpath_var=LD_LIBRARY_PATH | |
10869 ;; | |
10870 | |
10871 *) | |
10872 dynamic_linker=no | |
10873 ;; | |
10874 esac | |
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10876 $as_echo "$dynamic_linker" >&6; } | |
10877 test "$dynamic_linker" = no && can_build_shared=no | |
10878 | |
10879 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10880 if test "$GCC" = yes; then | |
10881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10882 fi | |
10883 | |
10884 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10885 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10886 fi | |
10887 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10888 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10889 fi | |
10890 | |
10891 | |
10892 | |
10893 | |
10894 | |
10895 | |
10896 | |
10897 | |
10898 | |
10899 | |
10900 | |
10901 | |
10902 | |
10903 | |
10904 | |
10905 | |
10906 | |
10907 | |
10908 | |
10909 | |
10910 | |
10911 | |
10912 | |
10913 | |
10914 | |
10915 | |
10916 | |
10917 | |
10918 | |
10919 | |
10920 | |
10921 | |
10922 | |
10923 | |
10924 | |
10925 | |
10926 | |
10927 | |
10928 | |
10929 | |
10930 | |
10931 | |
10932 | |
10933 | |
10934 | |
10935 | |
10936 | |
10937 | |
10938 | |
10939 | |
10940 | |
10941 | |
10942 | |
10943 | |
10944 | |
10945 | |
10946 | |
10947 | |
10948 | |
10949 | |
10950 | |
10951 | |
10952 | |
10953 | |
10954 | |
10955 | |
10956 | |
10957 | |
10958 | |
10959 | |
10960 | |
10961 | |
10962 | |
10963 | |
10964 | |
10965 | |
10966 | |
10967 | |
10968 | |
10969 | |
10970 | |
10971 | |
10972 | |
10973 | |
10974 | |
10975 | |
10976 | |
10977 | |
10978 | |
10979 | |
10980 | |
10981 | |
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
10983 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10984 hardcode_action= | |
10985 if test -n "$hardcode_libdir_flag_spec" || | |
10986 test -n "$runpath_var" || | |
10987 test "X$hardcode_automatic" = "Xyes" ; then | |
10988 | |
10989 # We can hardcode non-existent directories. | |
10990 if test "$hardcode_direct" != no && | |
10991 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10992 # have to relink, otherwise we might link with an installed library | |
10993 # when we should be linking with a yet-to-be-installed one | |
10994 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10995 test "$hardcode_minus_L" != no; then | |
10996 # Linking always hardcodes the temporary library directory. | |
10997 hardcode_action=relink | |
10998 else | |
10999 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11000 hardcode_action=immediate | |
11001 fi | |
11002 else | |
11003 # We cannot hardcode anything, or else we can only hardcode existing | |
11004 # directories. | |
11005 hardcode_action=unsupported | |
11006 fi | |
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11008 $as_echo "$hardcode_action" >&6; } | |
11009 | |
11010 if test "$hardcode_action" = relink || | |
11011 test "$inherit_rpath" = yes; then | |
11012 # Fast installation is not supported | |
11013 enable_fast_install=no | |
11014 elif test "$shlibpath_overrides_runpath" = yes || | |
11015 test "$enable_shared" = no; then | |
11016 # Fast installation is not necessary | |
11017 enable_fast_install=needless | |
11018 fi | |
11019 | |
11020 | |
11021 | |
11022 | |
11023 | |
11024 | |
11025 if test "x$enable_dlopen" != xyes; then | |
11026 enable_dlopen=unknown | |
11027 enable_dlopen_self=unknown | |
11028 enable_dlopen_self_static=unknown | |
11029 else | |
11030 lt_cv_dlopen=no | |
11031 lt_cv_dlopen_libs= | |
11032 | |
11033 case $host_os in | |
11034 beos*) | |
11035 lt_cv_dlopen="load_add_on" | |
11036 lt_cv_dlopen_libs= | |
11037 lt_cv_dlopen_self=yes | |
11038 ;; | |
11039 | |
11040 mingw* | pw32* | cegcc*) | |
11041 lt_cv_dlopen="LoadLibrary" | |
11042 lt_cv_dlopen_libs= | |
11043 ;; | |
11044 | |
11045 cygwin*) | |
11046 lt_cv_dlopen="dlopen" | |
11047 lt_cv_dlopen_libs= | |
11048 ;; | |
11049 | |
11050 darwin*) | |
11051 # if libdl is installed we need to link against it | |
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11053 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11054 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11055 $as_echo_n "(cached) " >&6 | |
11056 else | |
11057 ac_check_lib_save_LIBS=$LIBS | |
11058 LIBS="-ldl $LIBS" | |
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11060 /* end confdefs.h. */ | |
11061 | |
11062 /* Override any GCC internal prototype to avoid an error. | |
11063 Use char because int might match the return type of a GCC | |
11064 builtin and then its argument prototype would still apply. */ | |
11065 #ifdef __cplusplus | |
11066 extern "C" | |
11067 #endif | |
11068 char dlopen (); | |
11069 int | |
11070 main () | |
11071 { | |
11072 return dlopen (); | |
11073 ; | |
11074 return 0; | |
11075 } | |
11076 _ACEOF | |
11077 if ac_fn_c_try_link "$LINENO"; then : | |
11078 ac_cv_lib_dl_dlopen=yes | |
11079 else | |
11080 ac_cv_lib_dl_dlopen=no | |
11081 fi | |
11082 rm -f core conftest.err conftest.$ac_objext \ | |
11083 conftest$ac_exeext conftest.$ac_ext | |
11084 LIBS=$ac_check_lib_save_LIBS | |
11085 fi | |
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11087 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11088 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11090 else | |
11091 | |
11092 lt_cv_dlopen="dyld" | |
11093 lt_cv_dlopen_libs= | |
11094 lt_cv_dlopen_self=yes | |
11095 | |
11096 fi | |
11097 | |
11098 ;; | |
11099 | |
11100 *) | |
11101 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11102 if test "x$ac_cv_func_shl_load" = xyes; then : | |
11103 lt_cv_dlopen="shl_load" | |
11104 else | |
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11106 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11107 if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11108 $as_echo_n "(cached) " >&6 | |
11109 else | |
11110 ac_check_lib_save_LIBS=$LIBS | |
11111 LIBS="-ldld $LIBS" | |
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11113 /* end confdefs.h. */ | |
11114 | |
11115 /* Override any GCC internal prototype to avoid an error. | |
11116 Use char because int might match the return type of a GCC | |
11117 builtin and then its argument prototype would still apply. */ | |
11118 #ifdef __cplusplus | |
11119 extern "C" | |
11120 #endif | |
11121 char shl_load (); | |
11122 int | |
11123 main () | |
11124 { | |
11125 return shl_load (); | |
11126 ; | |
11127 return 0; | |
11128 } | |
11129 _ACEOF | |
11130 if ac_fn_c_try_link "$LINENO"; then : | |
11131 ac_cv_lib_dld_shl_load=yes | |
11132 else | |
11133 ac_cv_lib_dld_shl_load=no | |
11134 fi | |
11135 rm -f core conftest.err conftest.$ac_objext \ | |
11136 conftest$ac_exeext conftest.$ac_ext | |
11137 LIBS=$ac_check_lib_save_LIBS | |
11138 fi | |
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11140 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11141 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11142 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11143 else | |
11144 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11145 if test "x$ac_cv_func_dlopen" = xyes; then : | |
11146 lt_cv_dlopen="dlopen" | |
11147 else | |
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11149 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11150 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11151 $as_echo_n "(cached) " >&6 | |
11152 else | |
11153 ac_check_lib_save_LIBS=$LIBS | |
11154 LIBS="-ldl $LIBS" | |
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11156 /* end confdefs.h. */ | |
11157 | |
11158 /* Override any GCC internal prototype to avoid an error. | |
11159 Use char because int might match the return type of a GCC | |
11160 builtin and then its argument prototype would still apply. */ | |
11161 #ifdef __cplusplus | |
11162 extern "C" | |
11163 #endif | |
11164 char dlopen (); | |
11165 int | |
11166 main () | |
11167 { | |
11168 return dlopen (); | |
11169 ; | |
11170 return 0; | |
11171 } | |
11172 _ACEOF | |
11173 if ac_fn_c_try_link "$LINENO"; then : | |
11174 ac_cv_lib_dl_dlopen=yes | |
11175 else | |
11176 ac_cv_lib_dl_dlopen=no | |
11177 fi | |
11178 rm -f core conftest.err conftest.$ac_objext \ | |
11179 conftest$ac_exeext conftest.$ac_ext | |
11180 LIBS=$ac_check_lib_save_LIBS | |
11181 fi | |
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11184 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11186 else | |
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11188 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11189 if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11190 $as_echo_n "(cached) " >&6 | |
11191 else | |
11192 ac_check_lib_save_LIBS=$LIBS | |
11193 LIBS="-lsvld $LIBS" | |
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11195 /* end confdefs.h. */ | |
11196 | |
11197 /* Override any GCC internal prototype to avoid an error. | |
11198 Use char because int might match the return type of a GCC | |
11199 builtin and then its argument prototype would still apply. */ | |
11200 #ifdef __cplusplus | |
11201 extern "C" | |
11202 #endif | |
11203 char dlopen (); | |
11204 int | |
11205 main () | |
11206 { | |
11207 return dlopen (); | |
11208 ; | |
11209 return 0; | |
11210 } | |
11211 _ACEOF | |
11212 if ac_fn_c_try_link "$LINENO"; then : | |
11213 ac_cv_lib_svld_dlopen=yes | |
11214 else | |
11215 ac_cv_lib_svld_dlopen=no | |
11216 fi | |
11217 rm -f core conftest.err conftest.$ac_objext \ | |
11218 conftest$ac_exeext conftest.$ac_ext | |
11219 LIBS=$ac_check_lib_save_LIBS | |
11220 fi | |
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11222 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11223 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11225 else | |
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11227 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11228 if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11229 $as_echo_n "(cached) " >&6 | |
11230 else | |
11231 ac_check_lib_save_LIBS=$LIBS | |
11232 LIBS="-ldld $LIBS" | |
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11234 /* end confdefs.h. */ | |
11235 | |
11236 /* Override any GCC internal prototype to avoid an error. | |
11237 Use char because int might match the return type of a GCC | |
11238 builtin and then its argument prototype would still apply. */ | |
11239 #ifdef __cplusplus | |
11240 extern "C" | |
11241 #endif | |
11242 char dld_link (); | |
11243 int | |
11244 main () | |
11245 { | |
11246 return dld_link (); | |
11247 ; | |
11248 return 0; | |
11249 } | |
11250 _ACEOF | |
11251 if ac_fn_c_try_link "$LINENO"; then : | |
11252 ac_cv_lib_dld_dld_link=yes | |
11253 else | |
11254 ac_cv_lib_dld_dld_link=no | |
11255 fi | |
11256 rm -f core conftest.err conftest.$ac_objext \ | |
11257 conftest$ac_exeext conftest.$ac_ext | |
11258 LIBS=$ac_check_lib_save_LIBS | |
11259 fi | |
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11261 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11262 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11263 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11264 fi | |
11265 | |
11266 | |
11267 fi | |
11268 | |
11269 | |
11270 fi | |
11271 | |
11272 | |
11273 fi | |
11274 | |
11275 | |
11276 fi | |
11277 | |
11278 | |
11279 fi | |
11280 | |
11281 ;; | |
11282 esac | |
11283 | |
11284 if test "x$lt_cv_dlopen" != xno; then | |
11285 enable_dlopen=yes | |
11286 else | |
11287 enable_dlopen=no | |
11288 fi | |
11289 | |
11290 case $lt_cv_dlopen in | |
11291 dlopen) | |
11292 save_CPPFLAGS="$CPPFLAGS" | |
11293 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11294 | |
11295 save_LDFLAGS="$LDFLAGS" | |
11296 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11297 | |
11298 save_LIBS="$LIBS" | |
11299 LIBS="$lt_cv_dlopen_libs $LIBS" | |
11300 | |
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11302 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11303 if ${lt_cv_dlopen_self+:} false; then : | |
11304 $as_echo_n "(cached) " >&6 | |
11305 else | |
11306 if test "$cross_compiling" = yes; then : | |
11307 lt_cv_dlopen_self=cross | |
11308 else | |
11309 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11310 lt_status=$lt_dlunknown | |
11311 cat > conftest.$ac_ext <<_LT_EOF | |
11312 #line $LINENO "configure" | |
11313 #include "confdefs.h" | |
11314 | |
11315 #if HAVE_DLFCN_H | |
11316 #include <dlfcn.h> | |
11317 #endif | |
11318 | |
11319 #include <stdio.h> | |
11320 | |
11321 #ifdef RTLD_GLOBAL | |
11322 # define LT_DLGLOBAL RTLD_GLOBAL | |
11323 #else | |
11324 # ifdef DL_GLOBAL | |
11325 # define LT_DLGLOBAL DL_GLOBAL | |
11326 # else | |
11327 # define LT_DLGLOBAL 0 | |
11328 # endif | |
11329 #endif | |
11330 | |
11331 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11332 find out it does not work in some platform. */ | |
11333 #ifndef LT_DLLAZY_OR_NOW | |
11334 # ifdef RTLD_LAZY | |
11335 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11336 # else | |
11337 # ifdef DL_LAZY | |
11338 # define LT_DLLAZY_OR_NOW DL_LAZY | |
11339 # else | |
11340 # ifdef RTLD_NOW | |
11341 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11342 # else | |
11343 # ifdef DL_NOW | |
11344 # define LT_DLLAZY_OR_NOW DL_NOW | |
11345 # else | |
11346 # define LT_DLLAZY_OR_NOW 0 | |
11347 # endif | |
11348 # endif | |
11349 # endif | |
11350 # endif | |
11351 #endif | |
11352 | |
11353 /* When -fvisbility=hidden is used, assume the code has been annotated | |
11354 correspondingly for the symbols needed. */ | |
11355 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11356 int fnord () __attribute__((visibility("default"))); | |
11357 #endif | |
11358 | |
11359 int fnord () { return 42; } | |
11360 int main () | |
11361 { | |
11362 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11363 int status = $lt_dlunknown; | |
11364 | |
11365 if (self) | |
11366 { | |
11367 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11368 else | |
11369 { | |
11370 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11371 else puts (dlerror ()); | |
11372 } | |
11373 /* dlclose (self); */ | |
11374 } | |
11375 else | |
11376 puts (dlerror ()); | |
11377 | |
11378 return status; | |
11379 } | |
11380 _LT_EOF | |
11381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11382 (eval $ac_link) 2>&5 | |
11383 ac_status=$? | |
11384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11385 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11386 (./conftest; exit; ) >&5 2>/dev/null | |
11387 lt_status=$? | |
11388 case x$lt_status in | |
11389 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11390 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11391 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11392 esac | |
11393 else : | |
11394 # compilation failed | |
11395 lt_cv_dlopen_self=no | |
11396 fi | |
11397 fi | |
11398 rm -fr conftest* | |
11399 | |
11400 | |
11401 fi | |
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11403 $as_echo "$lt_cv_dlopen_self" >&6; } | |
11404 | |
11405 if test "x$lt_cv_dlopen_self" = xyes; then | |
11406 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11408 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11409 if ${lt_cv_dlopen_self_static+:} false; then : | |
11410 $as_echo_n "(cached) " >&6 | |
11411 else | |
11412 if test "$cross_compiling" = yes; then : | |
11413 lt_cv_dlopen_self_static=cross | |
11414 else | |
11415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11416 lt_status=$lt_dlunknown | |
11417 cat > conftest.$ac_ext <<_LT_EOF | |
11418 #line $LINENO "configure" | |
11419 #include "confdefs.h" | |
11420 | |
11421 #if HAVE_DLFCN_H | |
11422 #include <dlfcn.h> | |
11423 #endif | |
11424 | |
11425 #include <stdio.h> | |
11426 | |
11427 #ifdef RTLD_GLOBAL | |
11428 # define LT_DLGLOBAL RTLD_GLOBAL | |
11429 #else | |
11430 # ifdef DL_GLOBAL | |
11431 # define LT_DLGLOBAL DL_GLOBAL | |
11432 # else | |
11433 # define LT_DLGLOBAL 0 | |
11434 # endif | |
11435 #endif | |
11436 | |
11437 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11438 find out it does not work in some platform. */ | |
11439 #ifndef LT_DLLAZY_OR_NOW | |
11440 # ifdef RTLD_LAZY | |
11441 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11442 # else | |
11443 # ifdef DL_LAZY | |
11444 # define LT_DLLAZY_OR_NOW DL_LAZY | |
11445 # else | |
11446 # ifdef RTLD_NOW | |
11447 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11448 # else | |
11449 # ifdef DL_NOW | |
11450 # define LT_DLLAZY_OR_NOW DL_NOW | |
11451 # else | |
11452 # define LT_DLLAZY_OR_NOW 0 | |
11453 # endif | |
11454 # endif | |
11455 # endif | |
11456 # endif | |
11457 #endif | |
11458 | |
11459 /* When -fvisbility=hidden is used, assume the code has been annotated | |
11460 correspondingly for the symbols needed. */ | |
11461 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11462 int fnord () __attribute__((visibility("default"))); | |
11463 #endif | |
11464 | |
11465 int fnord () { return 42; } | |
11466 int main () | |
11467 { | |
11468 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11469 int status = $lt_dlunknown; | |
11470 | |
11471 if (self) | |
11472 { | |
11473 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11474 else | |
11475 { | |
11476 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11477 else puts (dlerror ()); | |
11478 } | |
11479 /* dlclose (self); */ | |
11480 } | |
11481 else | |
11482 puts (dlerror ()); | |
11483 | |
11484 return status; | |
11485 } | |
11486 _LT_EOF | |
11487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11488 (eval $ac_link) 2>&5 | |
11489 ac_status=$? | |
11490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11491 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11492 (./conftest; exit; ) >&5 2>/dev/null | |
11493 lt_status=$? | |
11494 case x$lt_status in | |
11495 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11496 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11497 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11498 esac | |
11499 else : | |
11500 # compilation failed | |
11501 lt_cv_dlopen_self_static=no | |
11502 fi | |
11503 fi | |
11504 rm -fr conftest* | |
11505 | |
11506 | |
11507 fi | |
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11509 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11510 fi | |
11511 | |
11512 CPPFLAGS="$save_CPPFLAGS" | |
11513 LDFLAGS="$save_LDFLAGS" | |
11514 LIBS="$save_LIBS" | |
11515 ;; | |
11516 esac | |
11517 | |
11518 case $lt_cv_dlopen_self in | |
11519 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11520 *) enable_dlopen_self=unknown ;; | |
11521 esac | |
11522 | |
11523 case $lt_cv_dlopen_self_static in | |
11524 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11525 *) enable_dlopen_self_static=unknown ;; | |
11526 esac | |
11527 fi | |
11528 | |
11529 | |
11530 | |
11531 | |
11532 | |
11533 | |
11534 | |
11535 | |
11536 | |
11537 | |
11538 | |
11539 | |
11540 | |
11541 | |
11542 | |
11543 | |
11544 | |
11545 striplib= | |
11546 old_striplib= | |
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11548 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11549 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11550 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11551 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11553 $as_echo "yes" >&6; } | |
11554 else | |
11555 # FIXME - insert some real tests, host_os isn't really good enough | |
11556 case $host_os in | |
11557 darwin*) | |
11558 if test -n "$STRIP" ; then | |
11559 striplib="$STRIP -x" | |
11560 old_striplib="$STRIP -S" | |
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11562 $as_echo "yes" >&6; } | |
11563 else | |
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11565 $as_echo "no" >&6; } | |
11566 fi | |
11567 ;; | |
11568 *) | |
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11570 $as_echo "no" >&6; } | |
11571 ;; | |
11572 esac | |
11573 fi | |
11574 | |
11575 | |
11576 | |
11577 | |
11578 | |
11579 | |
11580 | |
11581 | |
11582 | |
11583 | |
11584 | |
11585 | |
11586 # Report which library types will actually be built | |
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11588 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11590 $as_echo "$can_build_shared" >&6; } | |
11591 | |
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11593 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11594 test "$can_build_shared" = "no" && enable_shared=no | |
11595 | |
11596 # On AIX, shared libraries and static libraries use the same namespace, and | |
11597 # are all built from PIC. | |
11598 case $host_os in | |
11599 aix3*) | |
11600 test "$enable_shared" = yes && enable_static=no | |
11601 if test -n "$RANLIB"; then | |
11602 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11603 postinstall_cmds='$RANLIB $lib' | |
11604 fi | |
11605 ;; | |
11606 | |
11607 aix[4-9]*) | |
11608 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11609 test "$enable_shared" = yes && enable_static=no | |
11610 fi | |
11611 ;; | |
11612 esac | |
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11614 $as_echo "$enable_shared" >&6; } | |
11615 | |
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11617 $as_echo_n "checking whether to build static libraries... " >&6; } | |
11618 # Make sure either enable_shared or enable_static is yes. | |
11619 test "$enable_shared" = yes || enable_static=yes | |
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11621 $as_echo "$enable_static" >&6; } | |
11622 | |
11623 | |
11624 | |
11625 | |
11626 fi | |
11627 ac_ext=c | |
11628 ac_cpp='$CPP $CPPFLAGS' | |
11629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11631 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11632 | |
11633 CC="$lt_save_CC" | |
11634 | |
11635 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
11636 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
11637 (test "X$CXX" != "Xg++"))) ; then | |
11638 ac_ext=cpp | |
11639 ac_cpp='$CXXCPP $CPPFLAGS' | |
11640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
11644 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
11645 if test -z "$CXXCPP"; then | |
11646 if ${ac_cv_prog_CXXCPP+:} false; then : | |
11647 $as_echo_n "(cached) " >&6 | |
11648 else | |
11649 # Double quotes because CXXCPP needs to be expanded | |
11650 for CXXCPP in "$CXX -E" "/lib/cpp" | |
11651 do | |
11652 ac_preproc_ok=false | |
11653 for ac_cxx_preproc_warn_flag in '' yes | |
11654 do | |
11655 # Use a header file that comes with gcc, so configuring glibc | |
11656 # with a fresh cross-compiler works. | |
11657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11658 # <limits.h> exists even on freestanding compilers. | |
11659 # On the NeXT, cc -E runs the code through the compiler's parser, | |
11660 # not just through cpp. "Syntax error" is here to catch this case. | |
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11662 /* end confdefs.h. */ | |
11663 #ifdef __STDC__ | |
11664 # include <limits.h> | |
11665 #else | |
11666 # include <assert.h> | |
11667 #endif | |
11668 Syntax error | |
11669 _ACEOF | |
11670 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11671 | |
11672 else | |
11673 # Broken: fails on valid input. | |
11674 continue | |
11675 fi | |
11676 rm -f conftest.err conftest.i conftest.$ac_ext | |
11677 | |
11678 # OK, works on sane cases. Now check whether nonexistent headers | |
11679 # can be detected and how. | |
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11681 /* end confdefs.h. */ | |
11682 #include <ac_nonexistent.h> | |
11683 _ACEOF | |
11684 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11685 # Broken: success on invalid input. | |
11686 continue | |
11687 else | |
11688 # Passes both tests. | |
11689 ac_preproc_ok=: | |
11690 break | |
11691 fi | |
11692 rm -f conftest.err conftest.i conftest.$ac_ext | |
11693 | |
11694 done | |
11695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11696 rm -f conftest.i conftest.err conftest.$ac_ext | |
11697 if $ac_preproc_ok; then : | |
11698 break | |
11699 fi | |
11700 | |
11701 done | |
11702 ac_cv_prog_CXXCPP=$CXXCPP | |
11703 | |
11704 fi | |
11705 CXXCPP=$ac_cv_prog_CXXCPP | |
11706 else | |
11707 ac_cv_prog_CXXCPP=$CXXCPP | |
11708 fi | |
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
11710 $as_echo "$CXXCPP" >&6; } | |
11711 ac_preproc_ok=false | |
11712 for ac_cxx_preproc_warn_flag in '' yes | |
11713 do | |
11714 # Use a header file that comes with gcc, so configuring glibc | |
11715 # with a fresh cross-compiler works. | |
11716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11717 # <limits.h> exists even on freestanding compilers. | |
11718 # On the NeXT, cc -E runs the code through the compiler's parser, | |
11719 # not just through cpp. "Syntax error" is here to catch this case. | |
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11721 /* end confdefs.h. */ | |
11722 #ifdef __STDC__ | |
11723 # include <limits.h> | |
11724 #else | |
11725 # include <assert.h> | |
11726 #endif | |
11727 Syntax error | |
11728 _ACEOF | |
11729 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11730 | |
11731 else | |
11732 # Broken: fails on valid input. | |
11733 continue | |
11734 fi | |
11735 rm -f conftest.err conftest.i conftest.$ac_ext | |
11736 | |
11737 # OK, works on sane cases. Now check whether nonexistent headers | |
11738 # can be detected and how. | |
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11740 /* end confdefs.h. */ | |
11741 #include <ac_nonexistent.h> | |
11742 _ACEOF | |
11743 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11744 # Broken: success on invalid input. | |
11745 continue | |
11746 else | |
11747 # Passes both tests. | |
11748 ac_preproc_ok=: | |
11749 break | |
11750 fi | |
11751 rm -f conftest.err conftest.i conftest.$ac_ext | |
11752 | |
11753 done | |
11754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11755 rm -f conftest.i conftest.err conftest.$ac_ext | |
11756 if $ac_preproc_ok; then : | |
11757 | |
11758 else | |
11759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11761 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
11762 See \`config.log' for more details" "$LINENO" 5; } | |
11763 fi | |
11764 | |
11765 ac_ext=c | |
11766 ac_cpp='$CPP $CPPFLAGS' | |
11767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11769 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11770 | |
11771 else | |
11772 _lt_caught_CXX_error=yes | |
11773 fi | |
11774 | |
11775 ac_ext=cpp | |
11776 ac_cpp='$CXXCPP $CPPFLAGS' | |
11777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11780 | |
11781 archive_cmds_need_lc_CXX=no | |
11782 allow_undefined_flag_CXX= | |
11783 always_export_symbols_CXX=no | |
11784 archive_expsym_cmds_CXX= | |
11785 compiler_needs_object_CXX=no | |
11786 export_dynamic_flag_spec_CXX= | |
11787 hardcode_direct_CXX=no | |
11788 hardcode_direct_absolute_CXX=no | |
11789 hardcode_libdir_flag_spec_CXX= | |
11790 hardcode_libdir_flag_spec_ld_CXX= | |
11791 hardcode_libdir_separator_CXX= | |
11792 hardcode_minus_L_CXX=no | |
11793 hardcode_shlibpath_var_CXX=unsupported | |
11794 hardcode_automatic_CXX=no | |
11795 inherit_rpath_CXX=no | |
11796 module_cmds_CXX= | |
11797 module_expsym_cmds_CXX= | |
11798 link_all_deplibs_CXX=unknown | |
11799 old_archive_cmds_CXX=$old_archive_cmds | |
11800 reload_flag_CXX=$reload_flag | |
11801 reload_cmds_CXX=$reload_cmds | |
11802 no_undefined_flag_CXX= | |
11803 whole_archive_flag_spec_CXX= | |
11804 enable_shared_with_static_runtimes_CXX=no | |
11805 | |
11806 # Source file extension for C++ test sources. | |
11807 ac_ext=cpp | |
11808 | |
11809 # Object file extension for compiled C++ test sources. | |
11810 objext=o | |
11811 objext_CXX=$objext | |
11812 | |
11813 # No sense in running all these tests if we already determined that | |
11814 # the CXX compiler isn't working. Some variables (like enable_shared) | |
11815 # are currently assumed to apply to all compilers on this platform, | |
11816 # and will be corrupted by setting them based on a non-working compiler. | |
11817 if test "$_lt_caught_CXX_error" != yes; then | |
11818 # Code to be used in simple compile tests | |
11819 lt_simple_compile_test_code="int some_variable = 0;" | |
11820 | |
11821 # Code to be used in simple link tests | |
11822 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
11823 | |
11824 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11825 | |
11826 | |
11827 | |
11828 | |
11829 | |
11830 | |
11831 # If no C compiler was specified, use CC. | |
11832 LTCC=${LTCC-"$CC"} | |
11833 | |
11834 # If no C compiler flags were specified, use CFLAGS. | |
11835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
11836 | |
11837 # Allow CC to be a program name with arguments. | |
11838 compiler=$CC | |
11839 | |
11840 | |
11841 # save warnings/boilerplate of simple test code | |
11842 ac_outfile=conftest.$ac_objext | |
11843 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11844 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11845 _lt_compiler_boilerplate=`cat conftest.err` | |
11846 $RM conftest* | |
11847 | |
11848 ac_outfile=conftest.$ac_objext | |
11849 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11850 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11851 _lt_linker_boilerplate=`cat conftest.err` | |
11852 $RM -r conftest* | |
11853 | |
11854 | |
11855 # Allow CC to be a program name with arguments. | |
11856 lt_save_CC=$CC | |
11857 lt_save_CFLAGS=$CFLAGS | |
11858 lt_save_LD=$LD | |
11859 lt_save_GCC=$GCC | |
11860 GCC=$GXX | |
11861 lt_save_with_gnu_ld=$with_gnu_ld | |
11862 lt_save_path_LD=$lt_cv_path_LD | |
11863 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
11864 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
11865 else | |
11866 $as_unset lt_cv_prog_gnu_ld | |
11867 fi | |
11868 if test -n "${lt_cv_path_LDCXX+set}"; then | |
11869 lt_cv_path_LD=$lt_cv_path_LDCXX | |
11870 else | |
11871 $as_unset lt_cv_path_LD | |
11872 fi | |
11873 test -z "${LDCXX+set}" || LD=$LDCXX | |
11874 CC=${CXX-"c++"} | |
11875 CFLAGS=$CXXFLAGS | |
11876 compiler=$CC | |
11877 compiler_CXX=$CC | |
11878 for cc_temp in $compiler""; do | |
11879 case $cc_temp in | |
11880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11882 \-*) ;; | |
11883 *) break;; | |
11884 esac | |
11885 done | |
11886 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
11887 | |
11888 | |
11889 if test -n "$compiler"; then | |
11890 # We don't want -fno-exception when compiling C++ code, so set the | |
11891 # no_builtin_flag separately | |
11892 if test "$GXX" = yes; then | |
11893 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
11894 else | |
11895 lt_prog_compiler_no_builtin_flag_CXX= | |
11896 fi | |
11897 | |
11898 if test "$GXX" = yes; then | |
11899 # Set up default GNU C++ configuration | |
11900 | |
11901 | |
11902 | |
11903 # Check whether --with-gnu-ld was given. | |
11904 if test "${with_gnu_ld+set}" = set; then : | |
11905 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
11906 else | |
11907 with_gnu_ld=no | |
11908 fi | |
11909 | |
11910 ac_prog=ld | |
11911 if test "$GCC" = yes; then | |
11912 # Check if gcc -print-prog-name=ld gives a path. | |
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
11914 $as_echo_n "checking for ld used by $CC... " >&6; } | |
11915 case $host in | |
11916 *-*-mingw*) | |
11917 # gcc leaves a trailing carriage return which upsets mingw | |
11918 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
11919 *) | |
11920 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
11921 esac | |
11922 case $ac_prog in | |
11923 # Accept absolute paths. | |
11924 [\\/]* | ?:[\\/]*) | |
11925 re_direlt='/[^/][^/]*/\.\./' | |
11926 # Canonicalize the pathname of ld | |
11927 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
11928 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
11929 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
11930 done | |
11931 test -z "$LD" && LD="$ac_prog" | |
11932 ;; | |
11933 "") | |
11934 # If it fails, then pretend we aren't using GCC. | |
11935 ac_prog=ld | |
11936 ;; | |
11937 *) | |
11938 # If it is relative, then search for the first ld in PATH. | |
11939 with_gnu_ld=unknown | |
11940 ;; | |
11941 esac | |
11942 elif test "$with_gnu_ld" = yes; then | |
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
11944 $as_echo_n "checking for GNU ld... " >&6; } | |
11945 else | |
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
11947 $as_echo_n "checking for non-GNU ld... " >&6; } | |
11948 fi | |
11949 if ${lt_cv_path_LD+:} false; then : | |
11950 $as_echo_n "(cached) " >&6 | |
11951 else | |
11952 if test -z "$LD"; then | |
11953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
11954 for ac_dir in $PATH; do | |
11955 IFS="$lt_save_ifs" | |
11956 test -z "$ac_dir" && ac_dir=. | |
11957 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
11958 lt_cv_path_LD="$ac_dir/$ac_prog" | |
11959 # Check to see if the program is GNU ld. I'd rather use --version, | |
11960 # but apparently some variants of GNU ld only accept -v. | |
11961 # Break only if it was the GNU/non-GNU ld that we prefer. | |
11962 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
11963 *GNU* | *'with BFD'*) | |
11964 test "$with_gnu_ld" != no && break | |
11965 ;; | |
11966 *) | |
11967 test "$with_gnu_ld" != yes && break | |
11968 ;; | |
11969 esac | |
11970 fi | |
11971 done | |
11972 IFS="$lt_save_ifs" | |
11973 else | |
11974 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
11975 fi | |
11976 fi | |
11977 | |
11978 LD="$lt_cv_path_LD" | |
11979 if test -n "$LD"; then | |
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
11981 $as_echo "$LD" >&6; } | |
11982 else | |
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11984 $as_echo "no" >&6; } | |
11985 fi | |
11986 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
11988 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
11989 if ${lt_cv_prog_gnu_ld+:} false; then : | |
11990 $as_echo_n "(cached) " >&6 | |
11991 else | |
11992 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11993 case `$LD -v 2>&1 </dev/null` in | |
11994 *GNU* | *'with BFD'*) | |
11995 lt_cv_prog_gnu_ld=yes | |
11996 ;; | |
11997 *) | |
11998 lt_cv_prog_gnu_ld=no | |
11999 ;; | |
12000 esac | |
12001 fi | |
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12003 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12004 with_gnu_ld=$lt_cv_prog_gnu_ld | |
12005 | |
12006 | |
12007 | |
12008 | |
12009 | |
12010 | |
12011 | |
12012 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12013 # archiving commands below assume that GNU ld is being used. | |
12014 if test "$with_gnu_ld" = yes; then | |
12015 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12016 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' | |
12017 | |
12018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12020 | |
12021 # If archive_cmds runs LD, not CC, wlarc should be empty | |
12022 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12023 # investigate it a little bit more. (MM) | |
12024 wlarc='${wl}' | |
12025 | |
12026 # ancient GNU ld didn't support --whole-archive et. al. | |
12027 if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12028 $GREP 'no-whole-archive' > /dev/null; then | |
12029 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12030 else | |
12031 whole_archive_flag_spec_CXX= | |
12032 fi | |
12033 else | |
12034 with_gnu_ld=no | |
12035 wlarc= | |
12036 | |
12037 # A generic and very simple default shared library creation | |
12038 # command for GNU C++ for the case where it uses the native | |
12039 # linker, instead of GNU ld. If possible, this setting should | |
12040 # overridden to take advantage of the native linker features on | |
12041 # the platform it is being used on. | |
12042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12043 fi | |
12044 | |
12045 # Commands to make compiler produce verbose output that lists | |
12046 # what "hidden" libraries, object files and flags are used when | |
12047 # linking a shared library. | |
12048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12049 | |
12050 else | |
12051 GXX=no | |
12052 with_gnu_ld=no | |
12053 wlarc= | |
12054 fi | |
12055 | |
12056 # PORTME: fill in a description of your system's C++ link characteristics | |
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12058 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12059 ld_shlibs_CXX=yes | |
12060 case $host_os in | |
12061 aix3*) | |
12062 # FIXME: insert proper C++ library support | |
12063 ld_shlibs_CXX=no | |
12064 ;; | |
12065 aix[4-9]*) | |
12066 if test "$host_cpu" = ia64; then | |
12067 # On IA64, the linker does run time linking by default, so we don't | |
12068 # have to do anything special. | |
12069 aix_use_runtimelinking=no | |
12070 exp_sym_flag='-Bexport' | |
12071 no_entry_flag="" | |
12072 else | |
12073 aix_use_runtimelinking=no | |
12074 | |
12075 # Test if we are trying to use run time linking or normal | |
12076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12077 # need to do runtime linking. | |
12078 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12079 for ld_flag in $LDFLAGS; do | |
12080 case $ld_flag in | |
12081 *-brtl*) | |
12082 aix_use_runtimelinking=yes | |
12083 break | |
12084 ;; | |
12085 esac | |
12086 done | |
12087 ;; | |
12088 esac | |
12089 | |
12090 exp_sym_flag='-bexport' | |
12091 no_entry_flag='-bnoentry' | |
12092 fi | |
12093 | |
12094 # When large executables or shared objects are built, AIX ld can | |
12095 # have problems creating the table of contents. If linking a library | |
12096 # or program results in "error TOC overflow" add -mminimal-toc to | |
12097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12099 | |
12100 archive_cmds_CXX='' | |
12101 hardcode_direct_CXX=yes | |
12102 hardcode_direct_absolute_CXX=yes | |
12103 hardcode_libdir_separator_CXX=':' | |
12104 link_all_deplibs_CXX=yes | |
12105 file_list_spec_CXX='${wl}-f,' | |
12106 | |
12107 if test "$GXX" = yes; then | |
12108 case $host_os in aix4.[012]|aix4.[012].*) | |
12109 # We only want to do this on AIX 4.2 and lower, the check | |
12110 # below for broken collect2 doesn't work under 4.3+ | |
12111 collect2name=`${CC} -print-prog-name=collect2` | |
12112 if test -f "$collect2name" && | |
12113 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12114 then | |
12115 # We have reworked collect2 | |
12116 : | |
12117 else | |
12118 # We have old collect2 | |
12119 hardcode_direct_CXX=unsupported | |
12120 # It fails to find uninstalled libraries when the uninstalled | |
12121 # path is not listed in the libpath. Setting hardcode_minus_L | |
12122 # to unsupported forces relinking | |
12123 hardcode_minus_L_CXX=yes | |
12124 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12125 hardcode_libdir_separator_CXX= | |
12126 fi | |
12127 esac | |
12128 shared_flag='-shared' | |
12129 if test "$aix_use_runtimelinking" = yes; then | |
12130 shared_flag="$shared_flag "'${wl}-G' | |
12131 fi | |
12132 else | |
12133 # not using gcc | |
12134 if test "$host_cpu" = ia64; then | |
12135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12136 # chokes on -Wl,-G. The following line is correct: | |
12137 shared_flag='-G' | |
12138 else | |
12139 if test "$aix_use_runtimelinking" = yes; then | |
12140 shared_flag='${wl}-G' | |
12141 else | |
12142 shared_flag='${wl}-bM:SRE' | |
12143 fi | |
12144 fi | |
12145 fi | |
12146 | |
12147 export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
12148 # It seems that -bexpall does not export symbols beginning with | |
12149 # underscore (_), so it is better to generate a list of symbols to | |
12150 # export. | |
12151 always_export_symbols_CXX=yes | |
12152 if test "$aix_use_runtimelinking" = yes; then | |
12153 # Warning - without using the other runtime loading flags (-brtl), | |
12154 # -berok will link without error, but may produce a broken library. | |
12155 allow_undefined_flag_CXX='-berok' | |
12156 # Determine the default libpath from the value encoded in an empty | |
12157 # executable. | |
12158 if test "${lt_cv_aix_libpath+set}" = set; then | |
12159 aix_libpath=$lt_cv_aix_libpath | |
12160 else | |
12161 if ${lt_cv_aix_libpath__CXX+:} false; then : | |
12162 $as_echo_n "(cached) " >&6 | |
12163 else | |
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12165 /* end confdefs.h. */ | |
12166 | |
12167 int | |
12168 main () | |
12169 { | |
12170 | |
12171 ; | |
12172 return 0; | |
12173 } | |
12174 _ACEOF | |
12175 if ac_fn_cxx_try_link "$LINENO"; then : | |
12176 | |
12177 lt_aix_libpath_sed=' | |
12178 /Import File Strings/,/^$/ { | |
12179 /^0/ { | |
12180 s/^0 *\([^ ]*\) *$/\1/ | |
12181 p | |
12182 } | |
12183 }' | |
12184 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12185 # Check for a 64-bit object if we didn't find anything. | |
12186 if test -z "$lt_cv_aix_libpath__CXX"; then | |
12187 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12188 fi | |
12189 fi | |
12190 rm -f core conftest.err conftest.$ac_objext \ | |
12191 conftest$ac_exeext conftest.$ac_ext | |
12192 if test -z "$lt_cv_aix_libpath__CXX"; then | |
12193 lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
12194 fi | |
12195 | |
12196 fi | |
12197 | |
12198 aix_libpath=$lt_cv_aix_libpath__CXX | |
12199 fi | |
12200 | |
12201 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12202 | |
12203 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
12204 else | |
12205 if test "$host_cpu" = ia64; then | |
12206 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12207 allow_undefined_flag_CXX="-z nodefs" | |
12208 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" | |
12209 else | |
12210 # Determine the default libpath from the value encoded in an | |
12211 # empty executable. | |
12212 if test "${lt_cv_aix_libpath+set}" = set; then | |
12213 aix_libpath=$lt_cv_aix_libpath | |
12214 else | |
12215 if ${lt_cv_aix_libpath__CXX+:} false; then : | |
12216 $as_echo_n "(cached) " >&6 | |
12217 else | |
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12219 /* end confdefs.h. */ | |
12220 | |
12221 int | |
12222 main () | |
12223 { | |
12224 | |
12225 ; | |
12226 return 0; | |
12227 } | |
12228 _ACEOF | |
12229 if ac_fn_cxx_try_link "$LINENO"; then : | |
12230 | |
12231 lt_aix_libpath_sed=' | |
12232 /Import File Strings/,/^$/ { | |
12233 /^0/ { | |
12234 s/^0 *\([^ ]*\) *$/\1/ | |
12235 p | |
12236 } | |
12237 }' | |
12238 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12239 # Check for a 64-bit object if we didn't find anything. | |
12240 if test -z "$lt_cv_aix_libpath__CXX"; then | |
12241 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12242 fi | |
12243 fi | |
12244 rm -f core conftest.err conftest.$ac_objext \ | |
12245 conftest$ac_exeext conftest.$ac_ext | |
12246 if test -z "$lt_cv_aix_libpath__CXX"; then | |
12247 lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
12248 fi | |
12249 | |
12250 fi | |
12251 | |
12252 aix_libpath=$lt_cv_aix_libpath__CXX | |
12253 fi | |
12254 | |
12255 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12256 # Warning - without using the other run time loading flags, | |
12257 # -berok will link without error, but may produce a broken library. | |
12258 no_undefined_flag_CXX=' ${wl}-bernotok' | |
12259 allow_undefined_flag_CXX=' ${wl}-berok' | |
12260 if test "$with_gnu_ld" = yes; then | |
12261 # We only use this code for GNU lds that support --whole-archive. | |
12262 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12263 else | |
12264 # Exported symbols can be pulled into shared objects from archives | |
12265 whole_archive_flag_spec_CXX='$convenience' | |
12266 fi | |
12267 archive_cmds_need_lc_CXX=yes | |
12268 # This is similar to how AIX traditionally builds its shared | |
12269 # libraries. | |
12270 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
12271 fi | |
12272 fi | |
12273 ;; | |
12274 | |
12275 beos*) | |
12276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12277 allow_undefined_flag_CXX=unsupported | |
12278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12279 # support --undefined. This deserves some investigation. FIXME | |
12280 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12281 else | |
12282 ld_shlibs_CXX=no | |
12283 fi | |
12284 ;; | |
12285 | |
12286 chorus*) | |
12287 case $cc_basename in | |
12288 *) | |
12289 # FIXME: insert proper C++ library support | |
12290 ld_shlibs_CXX=no | |
12291 ;; | |
12292 esac | |
12293 ;; | |
12294 | |
12295 cygwin* | mingw* | pw32* | cegcc*) | |
12296 case $GXX,$cc_basename in | |
12297 ,cl* | no,cl*) | |
12298 # Native MSVC | |
12299 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
12300 # no search path for DLLs. | |
12301 hardcode_libdir_flag_spec_CXX=' ' | |
12302 allow_undefined_flag_CXX=unsupported | |
12303 always_export_symbols_CXX=yes | |
12304 file_list_spec_CXX='@' | |
12305 # Tell ltmain to make .lib files, not .a files. | |
12306 libext=lib | |
12307 # Tell ltmain to make .dll files, not .so files. | |
12308 shrext_cmds=".dll" | |
12309 # FIXME: Setting linknames here is a bad hack. | |
12310 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
12311 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12312 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
12313 else | |
12314 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
12315 fi~ | |
12316 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
12317 linknames=' | |
12318 # The linker will not automatically build a static lib if we build a DLL. | |
12319 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
12320 enable_shared_with_static_runtimes_CXX=yes | |
12321 # Don't use ranlib | |
12322 old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
12323 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
12324 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
12325 case $lt_outputfile in | |
12326 *.exe|*.EXE) ;; | |
12327 *) | |
12328 lt_outputfile="$lt_outputfile.exe" | |
12329 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
12330 ;; | |
12331 esac~ | |
12332 func_to_tool_file "$lt_outputfile"~ | |
12333 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
12334 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
12335 $RM "$lt_outputfile.manifest"; | |
12336 fi' | |
12337 ;; | |
12338 *) | |
12339 # g++ | |
12340 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12341 # as there is no search path for DLLs. | |
12342 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12343 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
12344 allow_undefined_flag_CXX=unsupported | |
12345 always_export_symbols_CXX=no | |
12346 enable_shared_with_static_runtimes_CXX=yes | |
12347 | |
12348 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12349 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' | |
12350 # If the export-symbols file already is a .def file (1st line | |
12351 # is EXPORTS), use it as is; otherwise, prepend... | |
12352 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12353 cp $export_symbols $output_objdir/$soname.def; | |
12354 else | |
12355 echo EXPORTS > $output_objdir/$soname.def; | |
12356 cat $export_symbols >> $output_objdir/$soname.def; | |
12357 fi~ | |
12358 $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' | |
12359 else | |
12360 ld_shlibs_CXX=no | |
12361 fi | |
12362 ;; | |
12363 esac | |
12364 ;; | |
12365 darwin* | rhapsody*) | |
12366 | |
12367 | |
12368 archive_cmds_need_lc_CXX=no | |
12369 hardcode_direct_CXX=no | |
12370 hardcode_automatic_CXX=yes | |
12371 hardcode_shlibpath_var_CXX=unsupported | |
12372 if test "$lt_cv_ld_force_load" = "yes"; then | |
12373 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\"`' | |
12374 else | |
12375 whole_archive_flag_spec_CXX='' | |
12376 fi | |
12377 link_all_deplibs_CXX=yes | |
12378 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
12379 case $cc_basename in | |
12380 ifort*) _lt_dar_can_shared=yes ;; | |
12381 *) _lt_dar_can_shared=$GCC ;; | |
12382 esac | |
12383 if test "$_lt_dar_can_shared" = "yes"; then | |
12384 output_verbose_link_cmd=func_echo_all | |
12385 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}" | |
12386 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
12387 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}" | |
12388 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}" | |
12389 if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
12390 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}" | |
12391 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}" | |
12392 fi | |
12393 | |
12394 else | |
12395 ld_shlibs_CXX=no | |
12396 fi | |
12397 | |
12398 ;; | |
12399 | |
12400 dgux*) | |
12401 case $cc_basename in | |
12402 ec++*) | |
12403 # FIXME: insert proper C++ library support | |
12404 ld_shlibs_CXX=no | |
12405 ;; | |
12406 ghcx*) | |
12407 # Green Hills C++ Compiler | |
12408 # FIXME: insert proper C++ library support | |
12409 ld_shlibs_CXX=no | |
12410 ;; | |
12411 *) | |
12412 # FIXME: insert proper C++ library support | |
12413 ld_shlibs_CXX=no | |
12414 ;; | |
12415 esac | |
12416 ;; | |
12417 | |
12418 freebsd[12]*) | |
12419 # C++ shared libraries reported to be fairly broken before | |
12420 # switch to ELF | |
12421 ld_shlibs_CXX=no | |
12422 ;; | |
12423 | |
12424 freebsd-elf*) | |
12425 archive_cmds_need_lc_CXX=no | |
12426 ;; | |
12427 | |
12428 freebsd* | dragonfly*) | |
12429 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
12430 # conventions | |
12431 ld_shlibs_CXX=yes | |
12432 ;; | |
12433 | |
12434 gnu*) | |
12435 ;; | |
12436 | |
12437 haiku*) | |
12438 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12439 link_all_deplibs_CXX=yes | |
12440 ;; | |
12441 | |
12442 hpux9*) | |
12443 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12444 hardcode_libdir_separator_CXX=: | |
12445 export_dynamic_flag_spec_CXX='${wl}-E' | |
12446 hardcode_direct_CXX=yes | |
12447 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12448 # but as the default | |
12449 # location of the library. | |
12450 | |
12451 case $cc_basename in | |
12452 CC*) | |
12453 # FIXME: insert proper C++ library support | |
12454 ld_shlibs_CXX=no | |
12455 ;; | |
12456 aCC*) | |
12457 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12458 # Commands to make compiler produce verbose output that lists | |
12459 # what "hidden" libraries, object files and flags are used when | |
12460 # linking a shared library. | |
12461 # | |
12462 # There doesn't appear to be a way to prevent this compiler from | |
12463 # explicitly linking system object files so we need to strip them | |
12464 # from the output so that they don't get included in the library | |
12465 # dependencies. | |
12466 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"' | |
12467 ;; | |
12468 *) | |
12469 if test "$GXX" = yes; then | |
12470 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12471 else | |
12472 # FIXME: insert proper C++ library support | |
12473 ld_shlibs_CXX=no | |
12474 fi | |
12475 ;; | |
12476 esac | |
12477 ;; | |
12478 | |
12479 hpux10*|hpux11*) | |
12480 if test $with_gnu_ld = no; then | |
12481 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12482 hardcode_libdir_separator_CXX=: | |
12483 | |
12484 case $host_cpu in | |
12485 hppa*64*|ia64*) | |
12486 ;; | |
12487 *) | |
12488 export_dynamic_flag_spec_CXX='${wl}-E' | |
12489 ;; | |
12490 esac | |
12491 fi | |
12492 case $host_cpu in | |
12493 hppa*64*|ia64*) | |
12494 hardcode_direct_CXX=no | |
12495 hardcode_shlibpath_var_CXX=no | |
12496 ;; | |
12497 *) | |
12498 hardcode_direct_CXX=yes | |
12499 hardcode_direct_absolute_CXX=yes | |
12500 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12501 # but as the default | |
12502 # location of the library. | |
12503 ;; | |
12504 esac | |
12505 | |
12506 case $cc_basename in | |
12507 CC*) | |
12508 # FIXME: insert proper C++ library support | |
12509 ld_shlibs_CXX=no | |
12510 ;; | |
12511 aCC*) | |
12512 case $host_cpu in | |
12513 hppa*64*) | |
12514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12515 ;; | |
12516 ia64*) | |
12517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12518 ;; | |
12519 *) | |
12520 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12521 ;; | |
12522 esac | |
12523 # Commands to make compiler produce verbose output that lists | |
12524 # what "hidden" libraries, object files and flags are used when | |
12525 # linking a shared library. | |
12526 # | |
12527 # There doesn't appear to be a way to prevent this compiler from | |
12528 # explicitly linking system object files so we need to strip them | |
12529 # from the output so that they don't get included in the library | |
12530 # dependencies. | |
12531 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"' | |
12532 ;; | |
12533 *) | |
12534 if test "$GXX" = yes; then | |
12535 if test $with_gnu_ld = no; then | |
12536 case $host_cpu in | |
12537 hppa*64*) | |
12538 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12539 ;; | |
12540 ia64*) | |
12541 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12542 ;; | |
12543 *) | |
12544 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' | |
12545 ;; | |
12546 esac | |
12547 fi | |
12548 else | |
12549 # FIXME: insert proper C++ library support | |
12550 ld_shlibs_CXX=no | |
12551 fi | |
12552 ;; | |
12553 esac | |
12554 ;; | |
12555 | |
12556 interix[3-9]*) | |
12557 hardcode_direct_CXX=no | |
12558 hardcode_shlibpath_var_CXX=no | |
12559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12560 export_dynamic_flag_spec_CXX='${wl}-E' | |
12561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12562 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12563 # default) and relocated if they conflict, which is a slow very memory | |
12564 # consuming and fragmenting process. To avoid this, we pick a random, | |
12565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12566 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12567 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' | |
12568 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' | |
12569 ;; | |
12570 irix5* | irix6*) | |
12571 case $cc_basename in | |
12572 CC*) | |
12573 # SGI C++ | |
12574 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' | |
12575 | |
12576 # Archives containing C++ object files must be created using | |
12577 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12578 # necessary to make sure instantiated templates are included | |
12579 # in the archive. | |
12580 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12581 ;; | |
12582 *) | |
12583 if test "$GXX" = yes; then | |
12584 if test "$with_gnu_ld" = no; then | |
12585 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' | |
12586 else | |
12587 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' | |
12588 fi | |
12589 fi | |
12590 link_all_deplibs_CXX=yes | |
12591 ;; | |
12592 esac | |
12593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12594 hardcode_libdir_separator_CXX=: | |
12595 inherit_rpath_CXX=yes | |
12596 ;; | |
12597 | |
12598 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12599 case $cc_basename in | |
12600 KCC*) | |
12601 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12602 | |
12603 # KCC will only create a shared library if the output file | |
12604 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12605 # to its proper name (with version) after linking. | |
12606 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' | |
12607 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' | |
12608 # Commands to make compiler produce verbose output that lists | |
12609 # what "hidden" libraries, object files and flags are used when | |
12610 # linking a shared library. | |
12611 # | |
12612 # There doesn't appear to be a way to prevent this compiler from | |
12613 # explicitly linking system object files so we need to strip them | |
12614 # from the output so that they don't get included in the library | |
12615 # dependencies. | |
12616 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"' | |
12617 | |
12618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12620 | |
12621 # Archives containing C++ object files must be created using | |
12622 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12623 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12624 ;; | |
12625 icpc* | ecpc* ) | |
12626 # Intel C++ | |
12627 with_gnu_ld=yes | |
12628 # version 8.0 and above of icpc choke on multiply defined symbols | |
12629 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12630 # earlier do not add the objects themselves. | |
12631 case `$CC -V 2>&1` in | |
12632 *"Version 7."*) | |
12633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12634 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' | |
12635 ;; | |
12636 *) # Version 8.0 or newer | |
12637 tmp_idyn= | |
12638 case $host_cpu in | |
12639 ia64*) tmp_idyn=' -i_dynamic';; | |
12640 esac | |
12641 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12642 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' | |
12643 ;; | |
12644 esac | |
12645 archive_cmds_need_lc_CXX=no | |
12646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12647 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12648 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12649 ;; | |
12650 pgCC* | pgcpp*) | |
12651 # Portland Group C++ compiler | |
12652 case `$CC -V` in | |
12653 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
12654 prelink_cmds_CXX='tpldir=Template.dir~ | |
12655 rm -rf $tpldir~ | |
12656 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12657 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
12658 old_archive_cmds_CXX='tpldir=Template.dir~ | |
12659 rm -rf $tpldir~ | |
12660 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12661 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
12662 $RANLIB $oldlib' | |
12663 archive_cmds_CXX='tpldir=Template.dir~ | |
12664 rm -rf $tpldir~ | |
12665 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12666 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12667 archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12668 rm -rf $tpldir~ | |
12669 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12670 $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' | |
12671 ;; | |
12672 *) # Version 6 and above use weak symbols | |
12673 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12674 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' | |
12675 ;; | |
12676 esac | |
12677 | |
12678 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
12679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12680 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' | |
12681 ;; | |
12682 cxx*) | |
12683 # Compaq C++ | |
12684 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12685 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' | |
12686 | |
12687 runpath_var=LD_RUN_PATH | |
12688 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12689 hardcode_libdir_separator_CXX=: | |
12690 | |
12691 # Commands to make compiler produce verbose output that lists | |
12692 # what "hidden" libraries, object files and flags are used when | |
12693 # linking a shared library. | |
12694 # | |
12695 # There doesn't appear to be a way to prevent this compiler from | |
12696 # explicitly linking system object files so we need to strip them | |
12697 # from the output so that they don't get included in the library | |
12698 # dependencies. | |
12699 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' | |
12700 ;; | |
12701 xl* | mpixl* | bgxl*) | |
12702 # IBM XL 8.0 on PPC, with GNU ld | |
12703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12705 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12706 if test "x$supports_anon_versioning" = xyes; then | |
12707 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
12708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12709 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12710 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12711 fi | |
12712 ;; | |
12713 *) | |
12714 case `$CC -V 2>&1 | sed 5q` in | |
12715 *Sun\ C*) | |
12716 # Sun C++ 5.9 | |
12717 no_undefined_flag_CXX=' -zdefs' | |
12718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12719 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' | |
12720 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12721 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' | |
12722 compiler_needs_object_CXX=yes | |
12723 | |
12724 # Not sure whether something based on | |
12725 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12726 # would be better. | |
12727 output_verbose_link_cmd='func_echo_all' | |
12728 | |
12729 # Archives containing C++ object files must be created using | |
12730 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12731 # necessary to make sure instantiated templates are included | |
12732 # in the archive. | |
12733 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12734 ;; | |
12735 esac | |
12736 ;; | |
12737 esac | |
12738 ;; | |
12739 | |
12740 lynxos*) | |
12741 # FIXME: insert proper C++ library support | |
12742 ld_shlibs_CXX=no | |
12743 ;; | |
12744 | |
12745 m88k*) | |
12746 # FIXME: insert proper C++ library support | |
12747 ld_shlibs_CXX=no | |
12748 ;; | |
12749 | |
12750 mvs*) | |
12751 case $cc_basename in | |
12752 cxx*) | |
12753 # FIXME: insert proper C++ library support | |
12754 ld_shlibs_CXX=no | |
12755 ;; | |
12756 *) | |
12757 # FIXME: insert proper C++ library support | |
12758 ld_shlibs_CXX=no | |
12759 ;; | |
12760 esac | |
12761 ;; | |
12762 | |
12763 netbsd*) | |
12764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12765 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
12766 wlarc= | |
12767 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12768 hardcode_direct_CXX=yes | |
12769 hardcode_shlibpath_var_CXX=no | |
12770 fi | |
12771 # Workaround some broken pre-1.5 toolchains | |
12772 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
12773 ;; | |
12774 | |
12775 *nto* | *qnx*) | |
12776 ld_shlibs_CXX=yes | |
12777 ;; | |
12778 | |
12779 openbsd2*) | |
12780 # C++ shared libraries are fairly broken | |
12781 ld_shlibs_CXX=no | |
12782 ;; | |
12783 | |
12784 openbsd*) | |
12785 if test -f /usr/libexec/ld.so; then | |
12786 hardcode_direct_CXX=yes | |
12787 hardcode_shlibpath_var_CXX=no | |
12788 hardcode_direct_absolute_CXX=yes | |
12789 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12792 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
12793 export_dynamic_flag_spec_CXX='${wl}-E' | |
12794 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12795 fi | |
12796 output_verbose_link_cmd=func_echo_all | |
12797 else | |
12798 ld_shlibs_CXX=no | |
12799 fi | |
12800 ;; | |
12801 | |
12802 osf3* | osf4* | osf5*) | |
12803 case $cc_basename in | |
12804 KCC*) | |
12805 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12806 | |
12807 # KCC will only create a shared library if the output file | |
12808 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12809 # to its proper name (with version) after linking. | |
12810 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' | |
12811 | |
12812 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12813 hardcode_libdir_separator_CXX=: | |
12814 | |
12815 # Archives containing C++ object files must be created using | |
12816 # the KAI C++ compiler. | |
12817 case $host in | |
12818 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
12819 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
12820 esac | |
12821 ;; | |
12822 RCC*) | |
12823 # Rational C++ 2.4.1 | |
12824 # FIXME: insert proper C++ library support | |
12825 ld_shlibs_CXX=no | |
12826 ;; | |
12827 cxx*) | |
12828 case $host in | |
12829 osf3*) | |
12830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12831 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' | |
12832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12833 ;; | |
12834 *) | |
12835 allow_undefined_flag_CXX=' -expect_unresolved \*' | |
12836 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' | |
12837 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
12838 echo "-hidden">> $lib.exp~ | |
12839 $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~ | |
12840 $RM $lib.exp' | |
12841 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12842 ;; | |
12843 esac | |
12844 | |
12845 hardcode_libdir_separator_CXX=: | |
12846 | |
12847 # Commands to make compiler produce verbose output that lists | |
12848 # what "hidden" libraries, object files and flags are used when | |
12849 # linking a shared library. | |
12850 # | |
12851 # There doesn't appear to be a way to prevent this compiler from | |
12852 # explicitly linking system object files so we need to strip them | |
12853 # from the output so that they don't get included in the library | |
12854 # dependencies. | |
12855 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"' | |
12856 ;; | |
12857 *) | |
12858 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12859 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12860 case $host in | |
12861 osf3*) | |
12862 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' | |
12863 ;; | |
12864 *) | |
12865 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' | |
12866 ;; | |
12867 esac | |
12868 | |
12869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12870 hardcode_libdir_separator_CXX=: | |
12871 | |
12872 # Commands to make compiler produce verbose output that lists | |
12873 # what "hidden" libraries, object files and flags are used when | |
12874 # linking a shared library. | |
12875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12876 | |
12877 else | |
12878 # FIXME: insert proper C++ library support | |
12879 ld_shlibs_CXX=no | |
12880 fi | |
12881 ;; | |
12882 esac | |
12883 ;; | |
12884 | |
12885 psos*) | |
12886 # FIXME: insert proper C++ library support | |
12887 ld_shlibs_CXX=no | |
12888 ;; | |
12889 | |
12890 sunos4*) | |
12891 case $cc_basename in | |
12892 CC*) | |
12893 # Sun C++ 4.x | |
12894 # FIXME: insert proper C++ library support | |
12895 ld_shlibs_CXX=no | |
12896 ;; | |
12897 lcc*) | |
12898 # Lucid | |
12899 # FIXME: insert proper C++ library support | |
12900 ld_shlibs_CXX=no | |
12901 ;; | |
12902 *) | |
12903 # FIXME: insert proper C++ library support | |
12904 ld_shlibs_CXX=no | |
12905 ;; | |
12906 esac | |
12907 ;; | |
12908 | |
12909 solaris*) | |
12910 case $cc_basename in | |
12911 CC* | sunCC*) | |
12912 # Sun C++ 4.2, 5.x and Centerline C++ | |
12913 archive_cmds_need_lc_CXX=yes | |
12914 no_undefined_flag_CXX=' -zdefs' | |
12915 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12916 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12917 $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' | |
12918 | |
12919 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12920 hardcode_shlibpath_var_CXX=no | |
12921 case $host_os in | |
12922 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12923 *) | |
12924 # The compiler driver will combine and reorder linker options, | |
12925 # but understands `-z linker_flag'. | |
12926 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12927 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
12928 ;; | |
12929 esac | |
12930 link_all_deplibs_CXX=yes | |
12931 | |
12932 output_verbose_link_cmd='func_echo_all' | |
12933 | |
12934 # Archives containing C++ object files must be created using | |
12935 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12936 # necessary to make sure instantiated templates are included | |
12937 # in the archive. | |
12938 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12939 ;; | |
12940 gcx*) | |
12941 # Green Hills C++ Compiler | |
12942 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12943 | |
12944 # The C++ compiler must be used to create the archive. | |
12945 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
12946 ;; | |
12947 *) | |
12948 # GNU C++ compiler with Solaris linker | |
12949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12950 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
12951 if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
12952 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12953 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12954 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
12955 | |
12956 # Commands to make compiler produce verbose output that lists | |
12957 # what "hidden" libraries, object files and flags are used when | |
12958 # linking a shared library. | |
12959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12960 else | |
12961 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
12962 # platform. | |
12963 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12964 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12965 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
12966 | |
12967 # Commands to make compiler produce verbose output that lists | |
12968 # what "hidden" libraries, object files and flags are used when | |
12969 # linking a shared library. | |
12970 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12971 fi | |
12972 | |
12973 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
12974 case $host_os in | |
12975 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12976 *) | |
12977 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12978 ;; | |
12979 esac | |
12980 fi | |
12981 ;; | |
12982 esac | |
12983 ;; | |
12984 | |
12985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
12986 no_undefined_flag_CXX='${wl}-z,text' | |
12987 archive_cmds_need_lc_CXX=no | |
12988 hardcode_shlibpath_var_CXX=no | |
12989 runpath_var='LD_RUN_PATH' | |
12990 | |
12991 case $cc_basename in | |
12992 CC*) | |
12993 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12994 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12995 ;; | |
12996 *) | |
12997 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12998 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12999 ;; | |
13000 esac | |
13001 ;; | |
13002 | |
13003 sysv5* | sco3.2v5* | sco5v6*) | |
13004 # Note: We can NOT use -z defs as we might desire, because we do not | |
13005 # link with -lc, and that would cause any symbols used from libc to | |
13006 # always be unresolved, which means just about no library would | |
13007 # ever link correctly. If we're not using GNU ld we use -z text | |
13008 # though, which does catch some bad symbols but isn't as heavy-handed | |
13009 # as -z defs. | |
13010 no_undefined_flag_CXX='${wl}-z,text' | |
13011 allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13012 archive_cmds_need_lc_CXX=no | |
13013 hardcode_shlibpath_var_CXX=no | |
13014 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13015 hardcode_libdir_separator_CXX=':' | |
13016 link_all_deplibs_CXX=yes | |
13017 export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13018 runpath_var='LD_RUN_PATH' | |
13019 | |
13020 case $cc_basename in | |
13021 CC*) | |
13022 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13023 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13024 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13025 '"$old_archive_cmds_CXX" | |
13026 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13027 '"$reload_cmds_CXX" | |
13028 ;; | |
13029 *) | |
13030 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13031 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13032 ;; | |
13033 esac | |
13034 ;; | |
13035 | |
13036 tandem*) | |
13037 case $cc_basename in | |
13038 NCC*) | |
13039 # NonStop-UX NCC 3.20 | |
13040 # FIXME: insert proper C++ library support | |
13041 ld_shlibs_CXX=no | |
13042 ;; | |
13043 *) | |
13044 # FIXME: insert proper C++ library support | |
13045 ld_shlibs_CXX=no | |
13046 ;; | |
13047 esac | |
13048 ;; | |
13049 | |
13050 vxworks*) | |
13051 # FIXME: insert proper C++ library support | |
13052 ld_shlibs_CXX=no | |
13053 ;; | |
13054 | |
13055 *) | |
13056 # FIXME: insert proper C++ library support | |
13057 ld_shlibs_CXX=no | |
13058 ;; | |
13059 esac | |
13060 | |
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13062 $as_echo "$ld_shlibs_CXX" >&6; } | |
13063 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13064 | |
13065 GCC_CXX="$GXX" | |
13066 LD_CXX="$LD" | |
13067 | |
13068 ## CAVEAT EMPTOR: | |
13069 ## There is no encapsulation within the following macros, do not change | |
13070 ## the running order or otherwise move them around unless you know exactly | |
13071 ## what you are doing... | |
13072 # Dependencies to place before and after the object being linked: | |
13073 predep_objects_CXX= | |
13074 postdep_objects_CXX= | |
13075 predeps_CXX= | |
13076 postdeps_CXX= | |
13077 compiler_lib_search_path_CXX= | |
13078 | |
13079 cat > conftest.$ac_ext <<_LT_EOF | |
13080 class Foo | |
13081 { | |
13082 public: | |
13083 Foo (void) { a = 0; } | |
13084 private: | |
13085 int a; | |
13086 }; | |
13087 _LT_EOF | |
13088 | |
13089 | |
13090 _lt_libdeps_save_CFLAGS=$CFLAGS | |
13091 case "$CC $CFLAGS " in #( | |
13092 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
13093 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
13094 esac | |
13095 | |
13096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13097 (eval $ac_compile) 2>&5 | |
13098 ac_status=$? | |
13099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13100 test $ac_status = 0; }; then | |
13101 # Parse the compiler output and extract the necessary | |
13102 # objects, libraries and library flags. | |
13103 | |
13104 # Sentinel used to keep track of whether or not we are before | |
13105 # the conftest object file. | |
13106 pre_test_object_deps_done=no | |
13107 | |
13108 for p in `eval "$output_verbose_link_cmd"`; do | |
13109 case ${prev}${p} in | |
13110 | |
13111 -L* | -R* | -l*) | |
13112 # Some compilers place space between "-{L,R}" and the path. | |
13113 # Remove the space. | |
13114 if test $p = "-L" || | |
13115 test $p = "-R"; then | |
13116 prev=$p | |
13117 continue | |
13118 fi | |
13119 | |
13120 # Expand the sysroot to ease extracting the directories later. | |
13121 if test -z "$prev"; then | |
13122 case $p in | |
13123 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
13124 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
13125 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
13126 esac | |
13127 fi | |
13128 case $p in | |
13129 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
13130 esac | |
13131 if test "$pre_test_object_deps_done" = no; then | |
13132 case ${prev} in | |
13133 -L | -R) | |
13134 # Internal compiler library paths should come after those | |
13135 # provided the user. The postdeps already come after the | |
13136 # user supplied libs so there is no need to process them. | |
13137 if test -z "$compiler_lib_search_path_CXX"; then | |
13138 compiler_lib_search_path_CXX="${prev}${p}" | |
13139 else | |
13140 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13141 fi | |
13142 ;; | |
13143 # The "-l" case would never come before the object being | |
13144 # linked, so don't bother handling this case. | |
13145 esac | |
13146 else | |
13147 if test -z "$postdeps_CXX"; then | |
13148 postdeps_CXX="${prev}${p}" | |
13149 else | |
13150 postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13151 fi | |
13152 fi | |
13153 prev= | |
13154 ;; | |
13155 | |
13156 *.lto.$objext) ;; # Ignore GCC LTO objects | |
13157 *.$objext) | |
13158 # This assumes that the test object file only shows up | |
13159 # once in the compiler output. | |
13160 if test "$p" = "conftest.$objext"; then | |
13161 pre_test_object_deps_done=yes | |
13162 continue | |
13163 fi | |
13164 | |
13165 if test "$pre_test_object_deps_done" = no; then | |
13166 if test -z "$predep_objects_CXX"; then | |
13167 predep_objects_CXX="$p" | |
13168 else | |
13169 predep_objects_CXX="$predep_objects_CXX $p" | |
13170 fi | |
13171 else | |
13172 if test -z "$postdep_objects_CXX"; then | |
13173 postdep_objects_CXX="$p" | |
13174 else | |
13175 postdep_objects_CXX="$postdep_objects_CXX $p" | |
13176 fi | |
13177 fi | |
13178 ;; | |
13179 | |
13180 *) ;; # Ignore the rest. | |
13181 | |
13182 esac | |
13183 done | |
13184 | |
13185 # Clean up. | |
13186 rm -f a.out a.exe | |
13187 else | |
13188 echo "libtool.m4: error: problem compiling CXX test program" | |
13189 fi | |
13190 | |
13191 $RM -f confest.$objext | |
13192 CFLAGS=$_lt_libdeps_save_CFLAGS | |
13193 | |
13194 # PORTME: override above test on systems where it is broken | |
13195 case $host_os in | |
13196 interix[3-9]*) | |
13197 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13198 # hack all around it, let's just trust "g++" to DTRT. | |
13199 predep_objects_CXX= | |
13200 postdep_objects_CXX= | |
13201 postdeps_CXX= | |
13202 ;; | |
13203 | |
13204 linux*) | |
13205 case `$CC -V 2>&1 | sed 5q` in | |
13206 *Sun\ C*) | |
13207 # Sun C++ 5.9 | |
13208 | |
13209 # The more standards-conforming stlport4 library is | |
13210 # incompatible with the Cstd library. Avoid specifying | |
13211 # it if it's in CXXFLAGS. Ignore libCrun as | |
13212 # -library=stlport4 depends on it. | |
13213 case " $CXX $CXXFLAGS " in | |
13214 *" -library=stlport4 "*) | |
13215 solaris_use_stlport4=yes | |
13216 ;; | |
13217 esac | |
13218 | |
13219 if test "$solaris_use_stlport4" != yes; then | |
13220 postdeps_CXX='-library=Cstd -library=Crun' | |
13221 fi | |
13222 ;; | |
13223 esac | |
13224 ;; | |
13225 | |
13226 solaris*) | |
13227 case $cc_basename in | |
13228 CC* | sunCC*) | |
13229 # The more standards-conforming stlport4 library is | |
13230 # incompatible with the Cstd library. Avoid specifying | |
13231 # it if it's in CXXFLAGS. Ignore libCrun as | |
13232 # -library=stlport4 depends on it. | |
13233 case " $CXX $CXXFLAGS " in | |
13234 *" -library=stlport4 "*) | |
13235 solaris_use_stlport4=yes | |
13236 ;; | |
13237 esac | |
13238 | |
13239 # Adding this requires a known-good setup of shared libraries for | |
13240 # Sun compiler versions before 5.6, else PIC objects from an old | |
13241 # archive will be linked into the output, leading to subtle bugs. | |
13242 if test "$solaris_use_stlport4" != yes; then | |
13243 postdeps_CXX='-library=Cstd -library=Crun' | |
13244 fi | |
13245 ;; | |
13246 esac | |
13247 ;; | |
13248 esac | |
13249 | |
13250 | |
13251 case " $postdeps_CXX " in | |
13252 *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13253 esac | |
13254 compiler_lib_search_dirs_CXX= | |
13255 if test -n "${compiler_lib_search_path_CXX}"; then | |
13256 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13257 fi | |
13258 | |
13259 | |
13260 | |
13261 | |
13262 | |
13263 | |
13264 | |
13265 | |
13266 | |
13267 | |
13268 | |
13269 | |
13270 | |
13271 | |
13272 | |
13273 | |
13274 | |
13275 | |
13276 | |
13277 | |
13278 | |
13279 | |
13280 | |
13281 | |
13282 | |
13283 | |
13284 | |
13285 | |
13286 | |
13287 | |
13288 | |
13289 lt_prog_compiler_wl_CXX= | |
13290 lt_prog_compiler_pic_CXX= | |
13291 lt_prog_compiler_static_CXX= | |
13292 | |
13293 | |
13294 # C++ specific cases for pic, static, wl, etc. | |
13295 if test "$GXX" = yes; then | |
13296 lt_prog_compiler_wl_CXX='-Wl,' | |
13297 lt_prog_compiler_static_CXX='-static' | |
13298 | |
13299 case $host_os in | |
13300 aix*) | |
13301 # All AIX code is PIC. | |
13302 if test "$host_cpu" = ia64; then | |
13303 # AIX 5 now supports IA64 processor | |
13304 lt_prog_compiler_static_CXX='-Bstatic' | |
13305 fi | |
13306 ;; | |
13307 | |
13308 amigaos*) | |
13309 case $host_cpu in | |
13310 powerpc) | |
13311 # see comment about AmigaOS4 .so support | |
13312 lt_prog_compiler_pic_CXX='-fPIC' | |
13313 ;; | |
13314 m68k) | |
13315 # FIXME: we need at least 68020 code to build shared libraries, but | |
13316 # adding the `-m68020' flag to GCC prevents building anything better, | |
13317 # like `-m68040'. | |
13318 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13319 ;; | |
13320 esac | |
13321 ;; | |
13322 | |
13323 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13324 # PIC is the default for these OSes. | |
13325 ;; | |
13326 mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13327 # This hack is so that the source file can tell whether it is being | |
13328 # built for inclusion in a dll (and should export symbols for example). | |
13329 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13330 # (--disable-auto-import) libraries | |
13331 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13332 ;; | |
13333 darwin* | rhapsody*) | |
13334 # PIC is the default on this platform | |
13335 # Common symbols not allowed in MH_DYLIB files | |
13336 lt_prog_compiler_pic_CXX='-fno-common' | |
13337 ;; | |
13338 *djgpp*) | |
13339 # DJGPP does not support shared libraries at all | |
13340 lt_prog_compiler_pic_CXX= | |
13341 ;; | |
13342 haiku*) | |
13343 # PIC is the default for Haiku. | |
13344 # The "-static" flag exists, but is broken. | |
13345 lt_prog_compiler_static_CXX= | |
13346 ;; | |
13347 interix[3-9]*) | |
13348 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13349 # Instead, we relocate shared libraries at runtime. | |
13350 ;; | |
13351 sysv4*MP*) | |
13352 if test -d /usr/nec; then | |
13353 lt_prog_compiler_pic_CXX=-Kconform_pic | |
13354 fi | |
13355 ;; | |
13356 hpux*) | |
13357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
13358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13359 # sets the default TLS model and affects inlining. | |
13360 case $host_cpu in | |
13361 hppa*64*) | |
13362 ;; | |
13363 *) | |
13364 lt_prog_compiler_pic_CXX='-fPIC' | |
13365 ;; | |
13366 esac | |
13367 ;; | |
13368 *qnx* | *nto*) | |
13369 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13370 # it will coredump. | |
13371 lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13372 ;; | |
13373 *) | |
13374 lt_prog_compiler_pic_CXX='-fPIC' | |
13375 ;; | |
13376 esac | |
13377 else | |
13378 case $host_os in | |
13379 aix[4-9]*) | |
13380 # All AIX code is PIC. | |
13381 if test "$host_cpu" = ia64; then | |
13382 # AIX 5 now supports IA64 processor | |
13383 lt_prog_compiler_static_CXX='-Bstatic' | |
13384 else | |
13385 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
13386 fi | |
13387 ;; | |
13388 chorus*) | |
13389 case $cc_basename in | |
13390 cxch68*) | |
13391 # Green Hills C++ Compiler | |
13392 # _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" | |
13393 ;; | |
13394 esac | |
13395 ;; | |
13396 mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13397 # This hack is so that the source file can tell whether it is being | |
13398 # built for inclusion in a dll (and should export symbols for example). | |
13399 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13400 ;; | |
13401 dgux*) | |
13402 case $cc_basename in | |
13403 ec++*) | |
13404 lt_prog_compiler_pic_CXX='-KPIC' | |
13405 ;; | |
13406 ghcx*) | |
13407 # Green Hills C++ Compiler | |
13408 lt_prog_compiler_pic_CXX='-pic' | |
13409 ;; | |
13410 *) | |
13411 ;; | |
13412 esac | |
13413 ;; | |
13414 freebsd* | dragonfly*) | |
13415 # FreeBSD uses GNU C++ | |
13416 ;; | |
13417 hpux9* | hpux10* | hpux11*) | |
13418 case $cc_basename in | |
13419 CC*) | |
13420 lt_prog_compiler_wl_CXX='-Wl,' | |
13421 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13422 if test "$host_cpu" != ia64; then | |
13423 lt_prog_compiler_pic_CXX='+Z' | |
13424 fi | |
13425 ;; | |
13426 aCC*) | |
13427 lt_prog_compiler_wl_CXX='-Wl,' | |
13428 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13429 case $host_cpu in | |
13430 hppa*64*|ia64*) | |
13431 # +Z the default | |
13432 ;; | |
13433 *) | |
13434 lt_prog_compiler_pic_CXX='+Z' | |
13435 ;; | |
13436 esac | |
13437 ;; | |
13438 *) | |
13439 ;; | |
13440 esac | |
13441 ;; | |
13442 interix*) | |
13443 # This is c89, which is MS Visual C++ (no shared libs) | |
13444 # Anyone wants to do a port? | |
13445 ;; | |
13446 irix5* | irix6* | nonstopux*) | |
13447 case $cc_basename in | |
13448 CC*) | |
13449 lt_prog_compiler_wl_CXX='-Wl,' | |
13450 lt_prog_compiler_static_CXX='-non_shared' | |
13451 # CC pic flag -KPIC is the default. | |
13452 ;; | |
13453 *) | |
13454 ;; | |
13455 esac | |
13456 ;; | |
13457 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13458 case $cc_basename in | |
13459 KCC*) | |
13460 # KAI C++ Compiler | |
13461 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13462 lt_prog_compiler_pic_CXX='-fPIC' | |
13463 ;; | |
13464 ecpc* ) | |
13465 # old Intel C++ for x86_64 which still supported -KPIC. | |
13466 lt_prog_compiler_wl_CXX='-Wl,' | |
13467 lt_prog_compiler_pic_CXX='-KPIC' | |
13468 lt_prog_compiler_static_CXX='-static' | |
13469 ;; | |
13470 icpc* ) | |
13471 # Intel C++, used to be incompatible with GCC. | |
13472 # ICC 10 doesn't accept -KPIC any more. | |
13473 lt_prog_compiler_wl_CXX='-Wl,' | |
13474 lt_prog_compiler_pic_CXX='-fPIC' | |
13475 lt_prog_compiler_static_CXX='-static' | |
13476 ;; | |
13477 pgCC* | pgcpp*) | |
13478 # Portland Group C++ compiler | |
13479 lt_prog_compiler_wl_CXX='-Wl,' | |
13480 lt_prog_compiler_pic_CXX='-fpic' | |
13481 lt_prog_compiler_static_CXX='-Bstatic' | |
13482 ;; | |
13483 cxx*) | |
13484 # Compaq C++ | |
13485 # Make sure the PIC flag is empty. It appears that all Alpha | |
13486 # Linux and Compaq Tru64 Unix objects are PIC. | |
13487 lt_prog_compiler_pic_CXX= | |
13488 lt_prog_compiler_static_CXX='-non_shared' | |
13489 ;; | |
13490 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
13491 # IBM XL 8.0, 9.0 on PPC and BlueGene | |
13492 lt_prog_compiler_wl_CXX='-Wl,' | |
13493 lt_prog_compiler_pic_CXX='-qpic' | |
13494 lt_prog_compiler_static_CXX='-qstaticlink' | |
13495 ;; | |
13496 *) | |
13497 case `$CC -V 2>&1 | sed 5q` in | |
13498 *Sun\ C*) | |
13499 # Sun C++ 5.9 | |
13500 lt_prog_compiler_pic_CXX='-KPIC' | |
13501 lt_prog_compiler_static_CXX='-Bstatic' | |
13502 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13503 ;; | |
13504 esac | |
13505 ;; | |
13506 esac | |
13507 ;; | |
13508 lynxos*) | |
13509 ;; | |
13510 m88k*) | |
13511 ;; | |
13512 mvs*) | |
13513 case $cc_basename in | |
13514 cxx*) | |
13515 lt_prog_compiler_pic_CXX='-W c,exportall' | |
13516 ;; | |
13517 *) | |
13518 ;; | |
13519 esac | |
13520 ;; | |
13521 netbsd* | netbsdelf*-gnu) | |
13522 ;; | |
13523 *qnx* | *nto*) | |
13524 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13525 # it will coredump. | |
13526 lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13527 ;; | |
13528 osf3* | osf4* | osf5*) | |
13529 case $cc_basename in | |
13530 KCC*) | |
13531 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13532 ;; | |
13533 RCC*) | |
13534 # Rational C++ 2.4.1 | |
13535 lt_prog_compiler_pic_CXX='-pic' | |
13536 ;; | |
13537 cxx*) | |
13538 # Digital/Compaq C++ | |
13539 lt_prog_compiler_wl_CXX='-Wl,' | |
13540 # Make sure the PIC flag is empty. It appears that all Alpha | |
13541 # Linux and Compaq Tru64 Unix objects are PIC. | |
13542 lt_prog_compiler_pic_CXX= | |
13543 lt_prog_compiler_static_CXX='-non_shared' | |
13544 ;; | |
13545 *) | |
13546 ;; | |
13547 esac | |
13548 ;; | |
13549 psos*) | |
13550 ;; | |
13551 solaris*) | |
13552 case $cc_basename in | |
13553 CC* | sunCC*) | |
13554 # Sun C++ 4.2, 5.x and Centerline C++ | |
13555 lt_prog_compiler_pic_CXX='-KPIC' | |
13556 lt_prog_compiler_static_CXX='-Bstatic' | |
13557 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13558 ;; | |
13559 gcx*) | |
13560 # Green Hills C++ Compiler | |
13561 lt_prog_compiler_pic_CXX='-PIC' | |
13562 ;; | |
13563 *) | |
13564 ;; | |
13565 esac | |
13566 ;; | |
13567 sunos4*) | |
13568 case $cc_basename in | |
13569 CC*) | |
13570 # Sun C++ 4.x | |
13571 lt_prog_compiler_pic_CXX='-pic' | |
13572 lt_prog_compiler_static_CXX='-Bstatic' | |
13573 ;; | |
13574 lcc*) | |
13575 # Lucid | |
13576 lt_prog_compiler_pic_CXX='-pic' | |
13577 ;; | |
13578 *) | |
13579 ;; | |
13580 esac | |
13581 ;; | |
13582 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13583 case $cc_basename in | |
13584 CC*) | |
13585 lt_prog_compiler_wl_CXX='-Wl,' | |
13586 lt_prog_compiler_pic_CXX='-KPIC' | |
13587 lt_prog_compiler_static_CXX='-Bstatic' | |
13588 ;; | |
13589 esac | |
13590 ;; | |
13591 tandem*) | |
13592 case $cc_basename in | |
13593 NCC*) | |
13594 # NonStop-UX NCC 3.20 | |
13595 lt_prog_compiler_pic_CXX='-KPIC' | |
13596 ;; | |
13597 *) | |
13598 ;; | |
13599 esac | |
13600 ;; | |
13601 vxworks*) | |
13602 ;; | |
13603 *) | |
13604 lt_prog_compiler_can_build_shared_CXX=no | |
13605 ;; | |
13606 esac | |
13607 fi | |
13608 | |
13609 case $host_os in | |
13610 # For platforms which do not support PIC, -DPIC is meaningless: | |
13611 *djgpp*) | |
13612 lt_prog_compiler_pic_CXX= | |
13613 ;; | |
13614 *) | |
13615 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13616 ;; | |
13617 esac | |
13618 | |
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
13620 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
13621 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
13622 $as_echo_n "(cached) " >&6 | |
13623 else | |
13624 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
13625 fi | |
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
13627 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
13628 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
13629 | |
13630 # | |
13631 # Check to make sure the PIC flag actually works. | |
13632 # | |
13633 if test -n "$lt_prog_compiler_pic_CXX"; then | |
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13635 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
13636 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : | |
13637 $as_echo_n "(cached) " >&6 | |
13638 else | |
13639 lt_cv_prog_compiler_pic_works_CXX=no | |
13640 ac_outfile=conftest.$ac_objext | |
13641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13642 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13643 # Insert the option either (1) after the last *FLAGS variable, or | |
13644 # (2) before a word containing "conftest.", or (3) at the end. | |
13645 # Note that $ac_compile itself does not contain backslashes and begins | |
13646 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13647 # The option is referenced via a variable to avoid confusing sed. | |
13648 lt_compile=`echo "$ac_compile" | $SED \ | |
13649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13651 -e 's:$: $lt_compiler_flag:'` | |
13652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
13653 (eval "$lt_compile" 2>conftest.err) | |
13654 ac_status=$? | |
13655 cat conftest.err >&5 | |
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13657 if (exit $ac_status) && test -s "$ac_outfile"; then | |
13658 # The compiler can only warn and ignore the option if not recognized | |
13659 # So say no if there are warnings other than the usual output. | |
13660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
13661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13663 lt_cv_prog_compiler_pic_works_CXX=yes | |
13664 fi | |
13665 fi | |
13666 $RM conftest* | |
13667 | |
13668 fi | |
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
13670 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
13671 | |
13672 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
13673 case $lt_prog_compiler_pic_CXX in | |
13674 "" | " "*) ;; | |
13675 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13676 esac | |
13677 else | |
13678 lt_prog_compiler_pic_CXX= | |
13679 lt_prog_compiler_can_build_shared_CXX=no | |
13680 fi | |
13681 | |
13682 fi | |
13683 | |
13684 | |
13685 | |
13686 | |
13687 | |
13688 # | |
13689 # Check to make sure the static flag actually works. | |
13690 # | |
13691 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13693 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13694 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : | |
13695 $as_echo_n "(cached) " >&6 | |
13696 else | |
13697 lt_cv_prog_compiler_static_works_CXX=no | |
13698 save_LDFLAGS="$LDFLAGS" | |
13699 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13700 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13702 # The linker can only warn and ignore the option if not recognized | |
13703 # So say no if there are warnings | |
13704 if test -s conftest.err; then | |
13705 # Append any errors to the config.log. | |
13706 cat conftest.err 1>&5 | |
13707 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
13708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13709 if diff conftest.exp conftest.er2 >/dev/null; then | |
13710 lt_cv_prog_compiler_static_works_CXX=yes | |
13711 fi | |
13712 else | |
13713 lt_cv_prog_compiler_static_works_CXX=yes | |
13714 fi | |
13715 fi | |
13716 $RM -r conftest* | |
13717 LDFLAGS="$save_LDFLAGS" | |
13718 | |
13719 fi | |
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
13721 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
13722 | |
13723 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
13724 : | |
13725 else | |
13726 lt_prog_compiler_static_CXX= | |
13727 fi | |
13728 | |
13729 | |
13730 | |
13731 | |
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13733 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13734 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
13735 $as_echo_n "(cached) " >&6 | |
13736 else | |
13737 lt_cv_prog_compiler_c_o_CXX=no | |
13738 $RM -r conftest 2>/dev/null | |
13739 mkdir conftest | |
13740 cd conftest | |
13741 mkdir out | |
13742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13743 | |
13744 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13745 # Insert the option either (1) after the last *FLAGS variable, or | |
13746 # (2) before a word containing "conftest.", or (3) at the end. | |
13747 # Note that $ac_compile itself does not contain backslashes and begins | |
13748 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13749 lt_compile=`echo "$ac_compile" | $SED \ | |
13750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13752 -e 's:$: $lt_compiler_flag:'` | |
13753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
13754 (eval "$lt_compile" 2>out/conftest.err) | |
13755 ac_status=$? | |
13756 cat out/conftest.err >&5 | |
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13758 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
13759 then | |
13760 # The compiler can only warn and ignore the option if not recognized | |
13761 # So say no if there are warnings | |
13762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
13763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13765 lt_cv_prog_compiler_c_o_CXX=yes | |
13766 fi | |
13767 fi | |
13768 chmod u+w . 2>&5 | |
13769 $RM conftest* | |
13770 # SGI C++ compiler will create directory out/ii_files/ for | |
13771 # template instantiation | |
13772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13773 $RM out/* && rmdir out | |
13774 cd .. | |
13775 $RM -r conftest | |
13776 $RM conftest* | |
13777 | |
13778 fi | |
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13780 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13781 | |
13782 | |
13783 | |
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13785 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13786 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
13787 $as_echo_n "(cached) " >&6 | |
13788 else | |
13789 lt_cv_prog_compiler_c_o_CXX=no | |
13790 $RM -r conftest 2>/dev/null | |
13791 mkdir conftest | |
13792 cd conftest | |
13793 mkdir out | |
13794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13795 | |
13796 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13797 # Insert the option either (1) after the last *FLAGS variable, or | |
13798 # (2) before a word containing "conftest.", or (3) at the end. | |
13799 # Note that $ac_compile itself does not contain backslashes and begins | |
13800 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13801 lt_compile=`echo "$ac_compile" | $SED \ | |
13802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13804 -e 's:$: $lt_compiler_flag:'` | |
13805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
13806 (eval "$lt_compile" 2>out/conftest.err) | |
13807 ac_status=$? | |
13808 cat out/conftest.err >&5 | |
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13810 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
13811 then | |
13812 # The compiler can only warn and ignore the option if not recognized | |
13813 # So say no if there are warnings | |
13814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
13815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13817 lt_cv_prog_compiler_c_o_CXX=yes | |
13818 fi | |
13819 fi | |
13820 chmod u+w . 2>&5 | |
13821 $RM conftest* | |
13822 # SGI C++ compiler will create directory out/ii_files/ for | |
13823 # template instantiation | |
13824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13825 $RM out/* && rmdir out | |
13826 cd .. | |
13827 $RM -r conftest | |
13828 $RM conftest* | |
13829 | |
13830 fi | |
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13832 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13833 | |
13834 | |
13835 | |
13836 | |
13837 hard_links="nottested" | |
13838 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
13839 # do not overwrite the value of need_locks provided by the user | |
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
13841 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
13842 hard_links=yes | |
13843 $RM conftest* | |
13844 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13845 touch conftest.a | |
13846 ln conftest.a conftest.b 2>&5 || hard_links=no | |
13847 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
13849 $as_echo "$hard_links" >&6; } | |
13850 if test "$hard_links" = no; then | |
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13852 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13853 need_locks=warn | |
13854 fi | |
13855 else | |
13856 need_locks=no | |
13857 fi | |
13858 | |
13859 | |
13860 | |
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13862 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13863 | |
13864 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13865 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
13866 case $host_os in | |
13867 aix[4-9]*) | |
13868 # If we're using GNU nm, then we don't want the "-C" option. | |
13869 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13870 # Also, AIX nm treats weak defined symbols like other global defined | |
13871 # symbols, whereas GNU nm marks them as "W". | |
13872 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13873 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13874 else | |
13875 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13876 fi | |
13877 ;; | |
13878 pw32*) | |
13879 export_symbols_cmds_CXX="$ltdll_cmds" | |
13880 ;; | |
13881 cygwin* | mingw* | cegcc*) | |
13882 case $cc_basename in | |
13883 cl*) ;; | |
13884 *) | |
13885 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' | |
13886 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
13887 ;; | |
13888 esac | |
13889 ;; | |
13890 linux* | k*bsd*-gnu | gnu*) | |
13891 link_all_deplibs_CXX=no | |
13892 ;; | |
13893 *) | |
13894 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13895 ;; | |
13896 esac | |
13897 | |
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13899 $as_echo "$ld_shlibs_CXX" >&6; } | |
13900 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13901 | |
13902 with_gnu_ld_CXX=$with_gnu_ld | |
13903 | |
13904 | |
13905 | |
13906 | |
13907 | |
13908 | |
13909 # | |
13910 # Do we need to explicitly link libc? | |
13911 # | |
13912 case "x$archive_cmds_need_lc_CXX" in | |
13913 x|xyes) | |
13914 # Assume -lc should be added | |
13915 archive_cmds_need_lc_CXX=yes | |
13916 | |
13917 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13918 case $archive_cmds_CXX in | |
13919 *'~'*) | |
13920 # FIXME: we may have to deal with multi-command sequences. | |
13921 ;; | |
13922 '$CC '*) | |
13923 # Test whether the compiler implicitly links with -lc since on some | |
13924 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13925 # to ld, don't add -lc before -lgcc. | |
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13927 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
13928 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : | |
13929 $as_echo_n "(cached) " >&6 | |
13930 else | |
13931 $RM conftest* | |
13932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13933 | |
13934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13935 (eval $ac_compile) 2>&5 | |
13936 ac_status=$? | |
13937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13938 test $ac_status = 0; } 2>conftest.err; then | |
13939 soname=conftest | |
13940 lib=conftest | |
13941 libobjs=conftest.$ac_objext | |
13942 deplibs= | |
13943 wl=$lt_prog_compiler_wl_CXX | |
13944 pic_flag=$lt_prog_compiler_pic_CXX | |
13945 compiler_flags=-v | |
13946 linker_flags=-v | |
13947 verstring= | |
13948 output_objdir=. | |
13949 libname=conftest | |
13950 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
13951 allow_undefined_flag_CXX= | |
13952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13953 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13954 ac_status=$? | |
13955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13956 test $ac_status = 0; } | |
13957 then | |
13958 lt_cv_archive_cmds_need_lc_CXX=no | |
13959 else | |
13960 lt_cv_archive_cmds_need_lc_CXX=yes | |
13961 fi | |
13962 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
13963 else | |
13964 cat conftest.err 1>&5 | |
13965 fi | |
13966 $RM conftest* | |
13967 | |
13968 fi | |
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
13970 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
13971 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
13972 ;; | |
13973 esac | |
13974 fi | |
13975 ;; | |
13976 esac | |
13977 | |
13978 | |
13979 | |
13980 | |
13981 | |
13982 | |
13983 | |
13984 | |
13985 | |
13986 | |
13987 | |
13988 | |
13989 | |
13990 | |
13991 | |
13992 | |
13993 | |
13994 | |
13995 | |
13996 | |
13997 | |
13998 | |
13999 | |
14000 | |
14001 | |
14002 | |
14003 | |
14004 | |
14005 | |
14006 | |
14007 | |
14008 | |
14009 | |
14010 | |
14011 | |
14012 | |
14013 | |
14014 | |
14015 | |
14016 | |
14017 | |
14018 | |
14019 | |
14020 | |
14021 | |
14022 | |
14023 | |
14024 | |
14025 | |
14026 | |
14027 | |
14028 | |
14029 | |
14030 | |
14031 | |
14032 | |
14033 | |
14034 | |
14035 | |
14036 | |
14037 | |
14038 | |
14039 | |
14040 | |
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14042 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14043 | |
14044 library_names_spec= | |
14045 libname_spec='lib$name' | |
14046 soname_spec= | |
14047 shrext_cmds=".so" | |
14048 postinstall_cmds= | |
14049 postuninstall_cmds= | |
14050 finish_cmds= | |
14051 finish_eval= | |
14052 shlibpath_var= | |
14053 shlibpath_overrides_runpath=unknown | |
14054 version_type=none | |
14055 dynamic_linker="$host_os ld.so" | |
14056 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14057 need_lib_prefix=unknown | |
14058 hardcode_into_libs=no | |
14059 | |
14060 # when you set need_version to no, make sure it does not cause -set_version | |
14061 # flags to be left without arguments | |
14062 need_version=unknown | |
14063 | |
14064 case $host_os in | |
14065 aix3*) | |
14066 version_type=linux | |
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14068 shlibpath_var=LIBPATH | |
14069 | |
14070 # AIX 3 has no versioning support, so we append a major version to the name. | |
14071 soname_spec='${libname}${release}${shared_ext}$major' | |
14072 ;; | |
14073 | |
14074 aix[4-9]*) | |
14075 version_type=linux | |
14076 need_lib_prefix=no | |
14077 need_version=no | |
14078 hardcode_into_libs=yes | |
14079 if test "$host_cpu" = ia64; then | |
14080 # AIX 5 supports IA64 | |
14081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14082 shlibpath_var=LD_LIBRARY_PATH | |
14083 else | |
14084 # With GCC up to 2.95.x, collect2 would create an import file | |
14085 # for dependence libraries. The import file would start with | |
14086 # the line `#! .'. This would cause the generated library to | |
14087 # depend on `.', always an invalid library. This was fixed in | |
14088 # development snapshots of GCC prior to 3.0. | |
14089 case $host_os in | |
14090 aix4 | aix4.[01] | aix4.[01].*) | |
14091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14092 echo ' yes ' | |
14093 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14094 : | |
14095 else | |
14096 can_build_shared=no | |
14097 fi | |
14098 ;; | |
14099 esac | |
14100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14101 # soname into executable. Probably we can add versioning support to | |
14102 # collect2, so additional links can be useful in future. | |
14103 if test "$aix_use_runtimelinking" = yes; then | |
14104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14105 # instead of lib<name>.a to let people know that these are not | |
14106 # typical AIX shared libraries. | |
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14108 else | |
14109 # We preserve .a as extension for shared libraries through AIX4.2 | |
14110 # and later when we are not doing run time linking. | |
14111 library_names_spec='${libname}${release}.a $libname.a' | |
14112 soname_spec='${libname}${release}${shared_ext}$major' | |
14113 fi | |
14114 shlibpath_var=LIBPATH | |
14115 fi | |
14116 ;; | |
14117 | |
14118 amigaos*) | |
14119 case $host_cpu in | |
14120 powerpc) | |
14121 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14122 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14124 ;; | |
14125 m68k) | |
14126 library_names_spec='$libname.ixlibrary $libname.a' | |
14127 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14128 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
14129 ;; | |
14130 esac | |
14131 ;; | |
14132 | |
14133 beos*) | |
14134 library_names_spec='${libname}${shared_ext}' | |
14135 dynamic_linker="$host_os ld.so" | |
14136 shlibpath_var=LIBRARY_PATH | |
14137 ;; | |
14138 | |
14139 bsdi[45]*) | |
14140 version_type=linux | |
14141 need_version=no | |
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14143 soname_spec='${libname}${release}${shared_ext}$major' | |
14144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14145 shlibpath_var=LD_LIBRARY_PATH | |
14146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14148 # the default ld.so.conf also contains /usr/contrib/lib and | |
14149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14150 # libtool to hard-code these into programs | |
14151 ;; | |
14152 | |
14153 cygwin* | mingw* | pw32* | cegcc*) | |
14154 version_type=windows | |
14155 shrext_cmds=".dll" | |
14156 need_version=no | |
14157 need_lib_prefix=no | |
14158 | |
14159 case $GCC,$cc_basename in | |
14160 yes,*) | |
14161 # gcc | |
14162 library_names_spec='$libname.dll.a' | |
14163 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14164 postinstall_cmds='base_file=`basename \${file}`~ | |
14165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14166 dldir=$destdir/`dirname \$dlpath`~ | |
14167 test -d \$dldir || mkdir -p \$dldir~ | |
14168 $install_prog $dir/$dlname \$dldir/$dlname~ | |
14169 chmod a+x \$dldir/$dlname~ | |
14170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14172 fi' | |
14173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14174 dlpath=$dir/\$dldll~ | |
14175 $RM \$dlpath' | |
14176 shlibpath_overrides_runpath=yes | |
14177 | |
14178 case $host_os in | |
14179 cygwin*) | |
14180 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14182 | |
14183 ;; | |
14184 mingw* | cegcc*) | |
14185 # MinGW DLLs use traditional 'lib' prefix | |
14186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14187 ;; | |
14188 pw32*) | |
14189 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14191 ;; | |
14192 esac | |
14193 dynamic_linker='Win32 ld.exe' | |
14194 ;; | |
14195 | |
14196 *,cl*) | |
14197 # Native MSVC | |
14198 libname_spec='$name' | |
14199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14200 library_names_spec='${libname}.dll.lib' | |
14201 | |
14202 case $build_os in | |
14203 mingw*) | |
14204 sys_lib_search_path_spec= | |
14205 lt_save_ifs=$IFS | |
14206 IFS=';' | |
14207 for lt_path in $LIB | |
14208 do | |
14209 IFS=$lt_save_ifs | |
14210 # Let DOS variable expansion print the short 8.3 style file name. | |
14211 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
14212 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
14213 done | |
14214 IFS=$lt_save_ifs | |
14215 # Convert to MSYS style. | |
14216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
14217 ;; | |
14218 cygwin*) | |
14219 # Convert to unix form, then to dos form, then back to unix form | |
14220 # but this time dos style (no spaces!) so that the unix form looks | |
14221 # like /cygdrive/c/PROGRA~1:/cygdr... | |
14222 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
14223 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
14224 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14225 ;; | |
14226 *) | |
14227 sys_lib_search_path_spec="$LIB" | |
14228 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
14229 # It is most probably a Windows format PATH. | |
14230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14231 else | |
14232 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14233 fi | |
14234 # FIXME: find the short name or the path components, as spaces are | |
14235 # common. (e.g. "Program Files" -> "PROGRA~1") | |
14236 ;; | |
14237 esac | |
14238 | |
14239 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14240 postinstall_cmds='base_file=`basename \${file}`~ | |
14241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14242 dldir=$destdir/`dirname \$dlpath`~ | |
14243 test -d \$dldir || mkdir -p \$dldir~ | |
14244 $install_prog $dir/$dlname \$dldir/$dlname' | |
14245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14246 dlpath=$dir/\$dldll~ | |
14247 $RM \$dlpath' | |
14248 shlibpath_overrides_runpath=yes | |
14249 dynamic_linker='Win32 link.exe' | |
14250 ;; | |
14251 | |
14252 *) | |
14253 # Assume MSVC wrapper | |
14254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14255 dynamic_linker='Win32 ld.exe' | |
14256 ;; | |
14257 esac | |
14258 # FIXME: first we should search . and the directory the executable is in | |
14259 shlibpath_var=PATH | |
14260 ;; | |
14261 | |
14262 darwin* | rhapsody*) | |
14263 dynamic_linker="$host_os dyld" | |
14264 version_type=darwin | |
14265 need_lib_prefix=no | |
14266 need_version=no | |
14267 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14268 soname_spec='${libname}${release}${major}$shared_ext' | |
14269 shlibpath_overrides_runpath=yes | |
14270 shlibpath_var=DYLD_LIBRARY_PATH | |
14271 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14272 | |
14273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14274 ;; | |
14275 | |
14276 dgux*) | |
14277 version_type=linux | |
14278 need_lib_prefix=no | |
14279 need_version=no | |
14280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14281 soname_spec='${libname}${release}${shared_ext}$major' | |
14282 shlibpath_var=LD_LIBRARY_PATH | |
14283 ;; | |
14284 | |
14285 freebsd1*) | |
14286 dynamic_linker=no | |
14287 ;; | |
14288 | |
14289 freebsd* | dragonfly*) | |
14290 # DragonFly does not have aout. When/if they implement a new | |
14291 # versioning mechanism, adjust this. | |
14292 if test -x /usr/bin/objformat; then | |
14293 objformat=`/usr/bin/objformat` | |
14294 else | |
14295 case $host_os in | |
14296 freebsd[123]*) objformat=aout ;; | |
14297 *) objformat=elf ;; | |
14298 esac | |
14299 fi | |
14300 version_type=freebsd-$objformat | |
14301 case $version_type in | |
14302 freebsd-elf*) | |
14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14304 need_version=no | |
14305 need_lib_prefix=no | |
14306 ;; | |
14307 freebsd-*) | |
14308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14309 need_version=yes | |
14310 ;; | |
14311 esac | |
14312 shlibpath_var=LD_LIBRARY_PATH | |
14313 case $host_os in | |
14314 freebsd2*) | |
14315 shlibpath_overrides_runpath=yes | |
14316 ;; | |
14317 freebsd3.[01]* | freebsdelf3.[01]*) | |
14318 shlibpath_overrides_runpath=yes | |
14319 hardcode_into_libs=yes | |
14320 ;; | |
14321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14323 shlibpath_overrides_runpath=no | |
14324 hardcode_into_libs=yes | |
14325 ;; | |
14326 *) # from 4.6 on, and DragonFly | |
14327 shlibpath_overrides_runpath=yes | |
14328 hardcode_into_libs=yes | |
14329 ;; | |
14330 esac | |
14331 ;; | |
14332 | |
14333 gnu*) | |
14334 version_type=linux | |
14335 need_lib_prefix=no | |
14336 need_version=no | |
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14338 soname_spec='${libname}${release}${shared_ext}$major' | |
14339 shlibpath_var=LD_LIBRARY_PATH | |
14340 shlibpath_overrides_runpath=no | |
14341 hardcode_into_libs=yes | |
14342 ;; | |
14343 | |
14344 haiku*) | |
14345 version_type=linux | |
14346 need_lib_prefix=no | |
14347 need_version=no | |
14348 dynamic_linker="$host_os runtime_loader" | |
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14350 soname_spec='${libname}${release}${shared_ext}$major' | |
14351 shlibpath_var=LIBRARY_PATH | |
14352 shlibpath_overrides_runpath=yes | |
14353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
14354 hardcode_into_libs=yes | |
14355 ;; | |
14356 | |
14357 hpux9* | hpux10* | hpux11*) | |
14358 # Give a soname corresponding to the major version so that dld.sl refuses to | |
14359 # link against other versions. | |
14360 version_type=sunos | |
14361 need_lib_prefix=no | |
14362 need_version=no | |
14363 case $host_cpu in | |
14364 ia64*) | |
14365 shrext_cmds='.so' | |
14366 hardcode_into_libs=yes | |
14367 dynamic_linker="$host_os dld.so" | |
14368 shlibpath_var=LD_LIBRARY_PATH | |
14369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14371 soname_spec='${libname}${release}${shared_ext}$major' | |
14372 if test "X$HPUX_IA64_MODE" = X32; then | |
14373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14374 else | |
14375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14376 fi | |
14377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14378 ;; | |
14379 hppa*64*) | |
14380 shrext_cmds='.sl' | |
14381 hardcode_into_libs=yes | |
14382 dynamic_linker="$host_os dld.sl" | |
14383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14386 soname_spec='${libname}${release}${shared_ext}$major' | |
14387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14389 ;; | |
14390 *) | |
14391 shrext_cmds='.sl' | |
14392 dynamic_linker="$host_os dld.sl" | |
14393 shlibpath_var=SHLIB_PATH | |
14394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14396 soname_spec='${libname}${release}${shared_ext}$major' | |
14397 ;; | |
14398 esac | |
14399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
14400 postinstall_cmds='chmod 555 $lib' | |
14401 # or fails outright, so override atomically: | |
14402 install_override_mode=555 | |
14403 ;; | |
14404 | |
14405 interix[3-9]*) | |
14406 version_type=linux | |
14407 need_lib_prefix=no | |
14408 need_version=no | |
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14410 soname_spec='${libname}${release}${shared_ext}$major' | |
14411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14412 shlibpath_var=LD_LIBRARY_PATH | |
14413 shlibpath_overrides_runpath=no | |
14414 hardcode_into_libs=yes | |
14415 ;; | |
14416 | |
14417 irix5* | irix6* | nonstopux*) | |
14418 case $host_os in | |
14419 nonstopux*) version_type=nonstopux ;; | |
14420 *) | |
14421 if test "$lt_cv_prog_gnu_ld" = yes; then | |
14422 version_type=linux | |
14423 else | |
14424 version_type=irix | |
14425 fi ;; | |
14426 esac | |
14427 need_lib_prefix=no | |
14428 need_version=no | |
14429 soname_spec='${libname}${release}${shared_ext}$major' | |
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14431 case $host_os in | |
14432 irix5* | nonstopux*) | |
14433 libsuff= shlibsuff= | |
14434 ;; | |
14435 *) | |
14436 case $LD in # libtool.m4 will add one of these switches to LD | |
14437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14438 libsuff= shlibsuff= libmagic=32-bit;; | |
14439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14440 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14442 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14443 *) libsuff= shlibsuff= libmagic=never-match;; | |
14444 esac | |
14445 ;; | |
14446 esac | |
14447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14448 shlibpath_overrides_runpath=no | |
14449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14451 hardcode_into_libs=yes | |
14452 ;; | |
14453 | |
14454 # No shared lib support for Linux oldld, aout, or coff. | |
14455 linux*oldld* | linux*aout* | linux*coff*) | |
14456 dynamic_linker=no | |
14457 ;; | |
14458 | |
14459 # This must be Linux ELF. | |
14460 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14461 version_type=linux | |
14462 need_lib_prefix=no | |
14463 need_version=no | |
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14465 soname_spec='${libname}${release}${shared_ext}$major' | |
14466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14467 shlibpath_var=LD_LIBRARY_PATH | |
14468 shlibpath_overrides_runpath=no | |
14469 | |
14470 # Some binutils ld are patched to set DT_RUNPATH | |
14471 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
14472 $as_echo_n "(cached) " >&6 | |
14473 else | |
14474 lt_cv_shlibpath_overrides_runpath=no | |
14475 save_LDFLAGS=$LDFLAGS | |
14476 save_libdir=$libdir | |
14477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
14478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14480 /* end confdefs.h. */ | |
14481 | |
14482 int | |
14483 main () | |
14484 { | |
14485 | |
14486 ; | |
14487 return 0; | |
14488 } | |
14489 _ACEOF | |
14490 if ac_fn_cxx_try_link "$LINENO"; then : | |
14491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
14492 lt_cv_shlibpath_overrides_runpath=yes | |
14493 fi | |
14494 fi | |
14495 rm -f core conftest.err conftest.$ac_objext \ | |
14496 conftest$ac_exeext conftest.$ac_ext | |
14497 LDFLAGS=$save_LDFLAGS | |
14498 libdir=$save_libdir | |
14499 | |
14500 fi | |
14501 | |
14502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
14503 | |
14504 # This implies no fast_install, which is unacceptable. | |
14505 # Some rework will be needed to allow for fast_install | |
14506 # before this can be enabled. | |
14507 hardcode_into_libs=yes | |
14508 | |
14509 # Append ld.so.conf contents to the search path | |
14510 if test -f /etc/ld.so.conf; then | |
14511 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' ' '` | |
14512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
14513 fi | |
14514 | |
14515 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14516 # powerpc, because MkLinux only supported shared libraries with the | |
14517 # GNU dynamic linker. Since this was broken with cross compilers, | |
14518 # most powerpc-linux boxes support dynamic linking these days and | |
14519 # people can always --disable-shared, the test was removed, and we | |
14520 # assume the GNU/Linux dynamic linker is in use. | |
14521 dynamic_linker='GNU/Linux ld.so' | |
14522 ;; | |
14523 | |
14524 netbsdelf*-gnu) | |
14525 version_type=linux | |
14526 need_lib_prefix=no | |
14527 need_version=no | |
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14529 soname_spec='${libname}${release}${shared_ext}$major' | |
14530 shlibpath_var=LD_LIBRARY_PATH | |
14531 shlibpath_overrides_runpath=no | |
14532 hardcode_into_libs=yes | |
14533 dynamic_linker='NetBSD ld.elf_so' | |
14534 ;; | |
14535 | |
14536 netbsd*) | |
14537 version_type=sunos | |
14538 need_lib_prefix=no | |
14539 need_version=no | |
14540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14543 dynamic_linker='NetBSD (a.out) ld.so' | |
14544 else | |
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14546 soname_spec='${libname}${release}${shared_ext}$major' | |
14547 dynamic_linker='NetBSD ld.elf_so' | |
14548 fi | |
14549 shlibpath_var=LD_LIBRARY_PATH | |
14550 shlibpath_overrides_runpath=yes | |
14551 hardcode_into_libs=yes | |
14552 ;; | |
14553 | |
14554 newsos6) | |
14555 version_type=linux | |
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14557 shlibpath_var=LD_LIBRARY_PATH | |
14558 shlibpath_overrides_runpath=yes | |
14559 ;; | |
14560 | |
14561 *nto* | *qnx*) | |
14562 version_type=qnx | |
14563 need_lib_prefix=no | |
14564 need_version=no | |
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14566 soname_spec='${libname}${release}${shared_ext}$major' | |
14567 shlibpath_var=LD_LIBRARY_PATH | |
14568 shlibpath_overrides_runpath=no | |
14569 hardcode_into_libs=yes | |
14570 dynamic_linker='ldqnx.so' | |
14571 ;; | |
14572 | |
14573 openbsd*) | |
14574 version_type=sunos | |
14575 sys_lib_dlsearch_path_spec="/usr/lib" | |
14576 need_lib_prefix=no | |
14577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14578 case $host_os in | |
14579 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14580 *) need_version=no ;; | |
14581 esac | |
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14584 shlibpath_var=LD_LIBRARY_PATH | |
14585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14586 case $host_os in | |
14587 openbsd2.[89] | openbsd2.[89].*) | |
14588 shlibpath_overrides_runpath=no | |
14589 ;; | |
14590 *) | |
14591 shlibpath_overrides_runpath=yes | |
14592 ;; | |
14593 esac | |
14594 else | |
14595 shlibpath_overrides_runpath=yes | |
14596 fi | |
14597 ;; | |
14598 | |
14599 os2*) | |
14600 libname_spec='$name' | |
14601 shrext_cmds=".dll" | |
14602 need_lib_prefix=no | |
14603 library_names_spec='$libname${shared_ext} $libname.a' | |
14604 dynamic_linker='OS/2 ld.exe' | |
14605 shlibpath_var=LIBPATH | |
14606 ;; | |
14607 | |
14608 osf3* | osf4* | osf5*) | |
14609 version_type=osf | |
14610 need_lib_prefix=no | |
14611 need_version=no | |
14612 soname_spec='${libname}${release}${shared_ext}$major' | |
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14614 shlibpath_var=LD_LIBRARY_PATH | |
14615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14617 ;; | |
14618 | |
14619 rdos*) | |
14620 dynamic_linker=no | |
14621 ;; | |
14622 | |
14623 solaris*) | |
14624 version_type=linux | |
14625 need_lib_prefix=no | |
14626 need_version=no | |
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14628 soname_spec='${libname}${release}${shared_ext}$major' | |
14629 shlibpath_var=LD_LIBRARY_PATH | |
14630 shlibpath_overrides_runpath=yes | |
14631 hardcode_into_libs=yes | |
14632 # ldd complains unless libraries are executable | |
14633 postinstall_cmds='chmod +x $lib' | |
14634 ;; | |
14635 | |
14636 sunos4*) | |
14637 version_type=sunos | |
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14640 shlibpath_var=LD_LIBRARY_PATH | |
14641 shlibpath_overrides_runpath=yes | |
14642 if test "$with_gnu_ld" = yes; then | |
14643 need_lib_prefix=no | |
14644 fi | |
14645 need_version=yes | |
14646 ;; | |
14647 | |
14648 sysv4 | sysv4.3*) | |
14649 version_type=linux | |
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14651 soname_spec='${libname}${release}${shared_ext}$major' | |
14652 shlibpath_var=LD_LIBRARY_PATH | |
14653 case $host_vendor in | |
14654 sni) | |
14655 shlibpath_overrides_runpath=no | |
14656 need_lib_prefix=no | |
14657 runpath_var=LD_RUN_PATH | |
14658 ;; | |
14659 siemens) | |
14660 need_lib_prefix=no | |
14661 ;; | |
14662 motorola) | |
14663 need_lib_prefix=no | |
14664 need_version=no | |
14665 shlibpath_overrides_runpath=no | |
14666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14667 ;; | |
14668 esac | |
14669 ;; | |
14670 | |
14671 sysv4*MP*) | |
14672 if test -d /usr/nec ;then | |
14673 version_type=linux | |
14674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14675 soname_spec='$libname${shared_ext}.$major' | |
14676 shlibpath_var=LD_LIBRARY_PATH | |
14677 fi | |
14678 ;; | |
14679 | |
14680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14681 version_type=freebsd-elf | |
14682 need_lib_prefix=no | |
14683 need_version=no | |
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14685 soname_spec='${libname}${release}${shared_ext}$major' | |
14686 shlibpath_var=LD_LIBRARY_PATH | |
14687 shlibpath_overrides_runpath=yes | |
14688 hardcode_into_libs=yes | |
14689 if test "$with_gnu_ld" = yes; then | |
14690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14691 else | |
14692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14693 case $host_os in | |
14694 sco3.2v5*) | |
14695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14696 ;; | |
14697 esac | |
14698 fi | |
14699 sys_lib_dlsearch_path_spec='/usr/lib' | |
14700 ;; | |
14701 | |
14702 tpf*) | |
14703 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14704 version_type=linux | |
14705 need_lib_prefix=no | |
14706 need_version=no | |
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14708 shlibpath_var=LD_LIBRARY_PATH | |
14709 shlibpath_overrides_runpath=no | |
14710 hardcode_into_libs=yes | |
14711 ;; | |
14712 | |
14713 uts4*) | |
14714 version_type=linux | |
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14716 soname_spec='${libname}${release}${shared_ext}$major' | |
14717 shlibpath_var=LD_LIBRARY_PATH | |
14718 ;; | |
14719 | |
14720 *) | |
14721 dynamic_linker=no | |
14722 ;; | |
14723 esac | |
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
14725 $as_echo "$dynamic_linker" >&6; } | |
14726 test "$dynamic_linker" = no && can_build_shared=no | |
14727 | |
14728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14729 if test "$GCC" = yes; then | |
14730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14731 fi | |
14732 | |
14733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
14734 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14735 fi | |
14736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14737 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
14738 fi | |
14739 | |
14740 | |
14741 | |
14742 | |
14743 | |
14744 | |
14745 | |
14746 | |
14747 | |
14748 | |
14749 | |
14750 | |
14751 | |
14752 | |
14753 | |
14754 | |
14755 | |
14756 | |
14757 | |
14758 | |
14759 | |
14760 | |
14761 | |
14762 | |
14763 | |
14764 | |
14765 | |
14766 | |
14767 | |
14768 | |
14769 | |
14770 | |
14771 | |
14772 | |
14773 | |
14774 | |
14775 | |
14776 | |
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
14778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14779 hardcode_action_CXX= | |
14780 if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14781 test -n "$runpath_var_CXX" || | |
14782 test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14783 | |
14784 # We can hardcode non-existent directories. | |
14785 if test "$hardcode_direct_CXX" != no && | |
14786 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14787 # have to relink, otherwise we might link with an installed library | |
14788 # when we should be linking with a yet-to-be-installed one | |
14789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14790 test "$hardcode_minus_L_CXX" != no; then | |
14791 # Linking always hardcodes the temporary library directory. | |
14792 hardcode_action_CXX=relink | |
14793 else | |
14794 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14795 hardcode_action_CXX=immediate | |
14796 fi | |
14797 else | |
14798 # We cannot hardcode anything, or else we can only hardcode existing | |
14799 # directories. | |
14800 hardcode_action_CXX=unsupported | |
14801 fi | |
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
14803 $as_echo "$hardcode_action_CXX" >&6; } | |
14804 | |
14805 if test "$hardcode_action_CXX" = relink || | |
14806 test "$inherit_rpath_CXX" = yes; then | |
14807 # Fast installation is not supported | |
14808 enable_fast_install=no | |
14809 elif test "$shlibpath_overrides_runpath" = yes || | |
14810 test "$enable_shared" = no; then | |
14811 # Fast installation is not necessary | |
14812 enable_fast_install=needless | |
14813 fi | |
14814 | |
14815 | |
14816 | |
14817 | |
14818 | |
14819 | |
14820 | |
14821 fi # test -n "$compiler" | |
14822 | |
14823 CC=$lt_save_CC | |
14824 CFLAGS=$lt_save_CFLAGS | |
14825 LDCXX=$LD | |
14826 LD=$lt_save_LD | |
14827 GCC=$lt_save_GCC | |
14828 with_gnu_ld=$lt_save_with_gnu_ld | |
14829 lt_cv_path_LDCXX=$lt_cv_path_LD | |
14830 lt_cv_path_LD=$lt_save_path_LD | |
14831 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
14832 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
14833 fi # test "$_lt_caught_CXX_error" != yes | |
14834 | |
14835 ac_ext=c | |
14836 ac_cpp='$CPP $CPPFLAGS' | |
14837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14839 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14840 | |
14841 | |
14842 | |
14843 | |
14844 | |
14845 | |
14846 | |
14847 | |
14848 | |
14849 | |
14850 | |
14851 | |
14852 | |
14853 ac_config_commands="$ac_config_commands libtool" | |
14854 | |
14855 | |
14856 | |
14857 | |
14858 # Only expand once: | |
14859 | |
14860 | |
14861 # Find a good install program. We prefer a C program (faster), | |
14862 # so one script is as good as another. But avoid the broken or | |
14863 # incompatible versions: | |
14864 # SysV /etc/install, /usr/sbin/install | |
14865 # SunOS /usr/etc/install | |
14866 # IRIX /sbin/install | |
14867 # AIX /bin/install | |
14868 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14869 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14870 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14871 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
14872 # OS/2's system install, which has a completely different semantic | |
14873 # ./install, which can be erroneously created by make from ./install.sh. | |
14874 # Reject install programs that cannot install multiple files. | |
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
14876 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
14877 if test -z "$INSTALL"; then | |
14878 if ${ac_cv_path_install+:} false; then : | |
14879 $as_echo_n "(cached) " >&6 | |
14880 else | |
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14882 for as_dir in $PATH | |
14883 do | |
14884 IFS=$as_save_IFS | |
14885 test -z "$as_dir" && as_dir=. | |
14886 # Account for people who put trailing slashes in PATH elements. | |
14887 case $as_dir/ in #(( | |
14888 ./ | .// | /[cC]/* | \ | |
14889 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
14890 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
14891 /usr/ucb/* ) ;; | |
14892 *) | |
14893 # OSF1 and SCO ODT 3.0 have their own names for install. | |
14894 # Don't use installbsd from OSF since it installs stuff as root | |
14895 # by default. | |
14896 for ac_prog in ginstall scoinst install; do | |
14897 for ac_exec_ext in '' $ac_executable_extensions; do | |
14898 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
14899 if test $ac_prog = install && | |
14900 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14901 # AIX install. It has an incompatible calling convention. | |
14902 : | |
14903 elif test $ac_prog = install && | |
14904 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14905 # program-specific install script used by HP pwplus--don't use. | |
14906 : | |
14907 else | |
14908 rm -rf conftest.one conftest.two conftest.dir | |
14909 echo one > conftest.one | |
14910 echo two > conftest.two | |
14911 mkdir conftest.dir | |
14912 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
14913 test -s conftest.one && test -s conftest.two && | |
14914 test -s conftest.dir/conftest.one && | |
14915 test -s conftest.dir/conftest.two | |
14916 then | |
14917 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14918 break 3 | |
14919 fi | |
14920 fi | |
14921 fi | |
14922 done | |
14923 done | |
14924 ;; | |
14925 esac | |
14926 | |
14927 done | |
14928 IFS=$as_save_IFS | |
14929 | |
14930 rm -rf conftest.one conftest.two conftest.dir | |
14931 | |
14932 fi | |
14933 if test "${ac_cv_path_install+set}" = set; then | |
14934 INSTALL=$ac_cv_path_install | |
14935 else | |
14936 # As a last resort, use the slow shell script. Don't cache a | |
14937 # value for INSTALL within a source directory, because that will | |
14938 # break other packages using the cache if that directory is | |
14939 # removed, or if the value is a relative name. | |
14940 INSTALL=$ac_install_sh | |
14941 fi | |
14942 fi | |
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
14944 $as_echo "$INSTALL" >&6; } | |
14945 | |
14946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14947 # It thinks the first close brace ends the variable substitution. | |
14948 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14949 | |
14950 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14951 | |
14952 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14953 | |
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
14955 $as_echo_n "checking whether ln -s works... " >&6; } | |
14956 LN_S=$as_ln_s | |
14957 if test "$LN_S" = "ln -s"; then | |
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14959 $as_echo "yes" >&6; } | |
14960 else | |
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
14962 $as_echo "no, using $LN_S" >&6; } | |
14963 fi | |
14964 | |
14965 # Extract the first word of "ar", so it can be a program name with args. | |
14966 set dummy ar; ac_word=$2 | |
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14968 $as_echo_n "checking for $ac_word... " >&6; } | |
14969 if ${ac_cv_path_AR+:} false; then : | |
14970 $as_echo_n "(cached) " >&6 | |
14971 else | |
14972 case $AR in | |
14973 [\\/]* | ?:[\\/]*) | |
14974 ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
14975 ;; | |
14976 *) | |
14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14978 for as_dir in $PATH | |
14979 do | |
14980 IFS=$as_save_IFS | |
14981 test -z "$as_dir" && as_dir=. | |
14982 for ac_exec_ext in '' $ac_executable_extensions; do | |
14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14984 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14986 break 2 | |
14987 fi | |
14988 done | |
14989 done | |
14990 IFS=$as_save_IFS | |
14991 | |
14992 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no" | |
14993 ;; | |
14994 esac | |
14995 fi | |
14996 AR=$ac_cv_path_AR | |
14997 if test -n "$AR"; then | |
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
14999 $as_echo "$AR" >&6; } | |
15000 else | |
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15002 $as_echo "no" >&6; } | |
15003 fi | |
15004 | |
15005 | |
15006 if [ $AR = "no" ] ; then | |
15007 as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5 | |
15008 fi | |
15009 | |
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
15011 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
15012 if ${ac_cv_c_bigendian+:} false; then : | |
15013 $as_echo_n "(cached) " >&6 | |
15014 else | |
15015 ac_cv_c_bigendian=unknown | |
15016 # See if we're dealing with a universal compiler. | |
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15018 /* end confdefs.h. */ | |
15019 #ifndef __APPLE_CC__ | |
15020 not a universal capable compiler | |
15021 #endif | |
15022 typedef int dummy; | |
15023 | |
15024 _ACEOF | |
15025 if ac_fn_c_try_compile "$LINENO"; then : | |
15026 | |
15027 # Check for potential -arch flags. It is not universal unless | |
15028 # there are at least two -arch flags with different values. | |
15029 ac_arch= | |
15030 ac_prev= | |
15031 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15032 if test -n "$ac_prev"; then | |
15033 case $ac_word in | |
15034 i?86 | x86_64 | ppc | ppc64) | |
15035 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15036 ac_arch=$ac_word | |
15037 else | |
15038 ac_cv_c_bigendian=universal | |
15039 break | |
15040 fi | |
15041 ;; | |
15042 esac | |
15043 ac_prev= | |
15044 elif test "x$ac_word" = "x-arch"; then | |
15045 ac_prev=arch | |
15046 fi | |
15047 done | |
15048 fi | |
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15050 if test $ac_cv_c_bigendian = unknown; then | |
15051 # See if sys/param.h defines the BYTE_ORDER macro. | |
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15053 /* end confdefs.h. */ | |
15054 #include <sys/types.h> | |
15055 #include <sys/param.h> | |
15056 | |
15057 int | |
15058 main () | |
15059 { | |
15060 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
15061 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15062 && LITTLE_ENDIAN) | |
15063 bogus endian macros | |
15064 #endif | |
15065 | |
15066 ; | |
15067 return 0; | |
15068 } | |
15069 _ACEOF | |
15070 if ac_fn_c_try_compile "$LINENO"; then : | |
15071 # It does; now see whether it defined to BIG_ENDIAN or not. | |
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15073 /* end confdefs.h. */ | |
15074 #include <sys/types.h> | |
15075 #include <sys/param.h> | |
15076 | |
15077 int | |
15078 main () | |
15079 { | |
15080 #if BYTE_ORDER != BIG_ENDIAN | |
15081 not big endian | |
15082 #endif | |
15083 | |
15084 ; | |
15085 return 0; | |
15086 } | |
15087 _ACEOF | |
15088 if ac_fn_c_try_compile "$LINENO"; then : | |
15089 ac_cv_c_bigendian=yes | |
15090 else | |
15091 ac_cv_c_bigendian=no | |
15092 fi | |
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15094 fi | |
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15096 fi | |
15097 if test $ac_cv_c_bigendian = unknown; then | |
15098 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15100 /* end confdefs.h. */ | |
15101 #include <limits.h> | |
15102 | |
15103 int | |
15104 main () | |
15105 { | |
15106 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15107 bogus endian macros | |
15108 #endif | |
15109 | |
15110 ; | |
15111 return 0; | |
15112 } | |
15113 _ACEOF | |
15114 if ac_fn_c_try_compile "$LINENO"; then : | |
15115 # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15117 /* end confdefs.h. */ | |
15118 #include <limits.h> | |
15119 | |
15120 int | |
15121 main () | |
15122 { | |
15123 #ifndef _BIG_ENDIAN | |
15124 not big endian | |
15125 #endif | |
15126 | |
15127 ; | |
15128 return 0; | |
15129 } | |
15130 _ACEOF | |
15131 if ac_fn_c_try_compile "$LINENO"; then : | |
15132 ac_cv_c_bigendian=yes | |
15133 else | |
15134 ac_cv_c_bigendian=no | |
15135 fi | |
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15137 fi | |
15138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15139 fi | |
15140 if test $ac_cv_c_bigendian = unknown; then | |
15141 # Compile a test program. | |
15142 if test "$cross_compiling" = yes; then : | |
15143 # Try to guess by grepping values from an object file. | |
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15145 /* end confdefs.h. */ | |
15146 short int ascii_mm[] = | |
15147 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15148 short int ascii_ii[] = | |
15149 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15150 int use_ascii (int i) { | |
15151 return ascii_mm[i] + ascii_ii[i]; | |
15152 } | |
15153 short int ebcdic_ii[] = | |
15154 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15155 short int ebcdic_mm[] = | |
15156 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15157 int use_ebcdic (int i) { | |
15158 return ebcdic_mm[i] + ebcdic_ii[i]; | |
15159 } | |
15160 extern int foo; | |
15161 | |
15162 int | |
15163 main () | |
15164 { | |
15165 return use_ascii (foo) == use_ebcdic (foo); | |
15166 ; | |
15167 return 0; | |
15168 } | |
15169 _ACEOF | |
15170 if ac_fn_c_try_compile "$LINENO"; then : | |
15171 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
15172 ac_cv_c_bigendian=yes | |
15173 fi | |
15174 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15175 if test "$ac_cv_c_bigendian" = unknown; then | |
15176 ac_cv_c_bigendian=no | |
15177 else | |
15178 # finding both strings is unlikely to happen, but who knows? | |
15179 ac_cv_c_bigendian=unknown | |
15180 fi | |
15181 fi | |
15182 fi | |
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15184 else | |
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15186 /* end confdefs.h. */ | |
15187 $ac_includes_default | |
15188 int | |
15189 main () | |
15190 { | |
15191 | |
15192 /* Are we little or big endian? From Harbison&Steele. */ | |
15193 union | |
15194 { | |
15195 long int l; | |
15196 char c[sizeof (long int)]; | |
15197 } u; | |
15198 u.l = 1; | |
15199 return u.c[sizeof (long int) - 1] == 1; | |
15200 | |
15201 ; | |
15202 return 0; | |
15203 } | |
15204 _ACEOF | |
15205 if ac_fn_c_try_run "$LINENO"; then : | |
15206 ac_cv_c_bigendian=no | |
15207 else | |
15208 ac_cv_c_bigendian=yes | |
15209 fi | |
15210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15211 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15212 fi | |
15213 | |
15214 fi | |
15215 fi | |
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
15217 $as_echo "$ac_cv_c_bigendian" >&6; } | |
15218 case $ac_cv_c_bigendian in #( | |
15219 yes) | |
15220 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
15221 ;; #( | |
15222 no) | |
15223 ;; #( | |
15224 universal) | |
15225 | |
15226 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
15227 | |
15228 ;; #( | |
15229 *) | |
15230 as_fn_error $? "unknown endianness | |
15231 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
15232 esac | |
15233 | |
15234 | |
15235 | |
15236 have_alsa=no | |
15237 if test "x$with_alsa" != "xno"; then | |
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5 | |
15239 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; } | |
15240 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then : | |
15241 $as_echo_n "(cached) " >&6 | |
15242 else | |
15243 ac_check_lib_save_LIBS=$LIBS | |
15244 LIBS="-lasound $LIBS" | |
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15246 /* end confdefs.h. */ | |
15247 | |
15248 /* Override any GCC internal prototype to avoid an error. | |
15249 Use char because int might match the return type of a GCC | |
15250 builtin and then its argument prototype would still apply. */ | |
15251 #ifdef __cplusplus | |
15252 extern "C" | |
15253 #endif | |
15254 char snd_pcm_open (); | |
15255 int | |
15256 main () | |
15257 { | |
15258 return snd_pcm_open (); | |
15259 ; | |
15260 return 0; | |
15261 } | |
15262 _ACEOF | |
15263 if ac_fn_c_try_link "$LINENO"; then : | |
15264 ac_cv_lib_asound_snd_pcm_open=yes | |
15265 else | |
15266 ac_cv_lib_asound_snd_pcm_open=no | |
15267 fi | |
15268 rm -f core conftest.err conftest.$ac_objext \ | |
15269 conftest$ac_exeext conftest.$ac_ext | |
15270 LIBS=$ac_check_lib_save_LIBS | |
15271 fi | |
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5 | |
15273 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; } | |
15274 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then : | |
15275 have_alsa=yes | |
15276 else | |
15277 have_alsa=no | |
15278 fi | |
15279 | |
15280 fi | |
15281 have_asihpi=no | |
15282 if test "x$with_asihpi" != "xno"; then | |
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPI_SubSysCreate in -lhpi" >&5 | |
15284 $as_echo_n "checking for HPI_SubSysCreate in -lhpi... " >&6; } | |
15285 if ${ac_cv_lib_hpi_HPI_SubSysCreate+:} false; then : | |
15286 $as_echo_n "(cached) " >&6 | |
15287 else | |
15288 ac_check_lib_save_LIBS=$LIBS | |
15289 LIBS="-lhpi -lm $LIBS" | |
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15291 /* end confdefs.h. */ | |
15292 | |
15293 /* Override any GCC internal prototype to avoid an error. | |
15294 Use char because int might match the return type of a GCC | |
15295 builtin and then its argument prototype would still apply. */ | |
15296 #ifdef __cplusplus | |
15297 extern "C" | |
15298 #endif | |
15299 char HPI_SubSysCreate (); | |
15300 int | |
15301 main () | |
15302 { | |
15303 return HPI_SubSysCreate (); | |
15304 ; | |
15305 return 0; | |
15306 } | |
15307 _ACEOF | |
15308 if ac_fn_c_try_link "$LINENO"; then : | |
15309 ac_cv_lib_hpi_HPI_SubSysCreate=yes | |
15310 else | |
15311 ac_cv_lib_hpi_HPI_SubSysCreate=no | |
15312 fi | |
15313 rm -f core conftest.err conftest.$ac_objext \ | |
15314 conftest$ac_exeext conftest.$ac_ext | |
15315 LIBS=$ac_check_lib_save_LIBS | |
15316 fi | |
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hpi_HPI_SubSysCreate" >&5 | |
15318 $as_echo "$ac_cv_lib_hpi_HPI_SubSysCreate" >&6; } | |
15319 if test "x$ac_cv_lib_hpi_HPI_SubSysCreate" = xyes; then : | |
15320 have_asihpi=yes | |
15321 else | |
15322 have_asihpi=no | |
15323 fi | |
15324 | |
15325 fi | |
15326 have_libossaudio=no | |
15327 have_oss=no | |
15328 if test "x$with_oss" != "xno"; then | |
15329 for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h | |
15330 do : | |
15331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15332 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
15334 cat >>confdefs.h <<_ACEOF | |
15335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15336 _ACEOF | |
15337 have_oss=yes | |
15338 fi | |
15339 | |
15340 done | |
15341 | |
15342 if test "x$have_oss" = "xyes"; then | |
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 | |
15344 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } | |
15345 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then : | |
15346 $as_echo_n "(cached) " >&6 | |
15347 else | |
15348 ac_check_lib_save_LIBS=$LIBS | |
15349 LIBS="-lossaudio $LIBS" | |
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15351 /* end confdefs.h. */ | |
15352 | |
15353 /* Override any GCC internal prototype to avoid an error. | |
15354 Use char because int might match the return type of a GCC | |
15355 builtin and then its argument prototype would still apply. */ | |
15356 #ifdef __cplusplus | |
15357 extern "C" | |
15358 #endif | |
15359 char _oss_ioctl (); | |
15360 int | |
15361 main () | |
15362 { | |
15363 return _oss_ioctl (); | |
15364 ; | |
15365 return 0; | |
15366 } | |
15367 _ACEOF | |
15368 if ac_fn_c_try_link "$LINENO"; then : | |
15369 ac_cv_lib_ossaudio__oss_ioctl=yes | |
15370 else | |
15371 ac_cv_lib_ossaudio__oss_ioctl=no | |
15372 fi | |
15373 rm -f core conftest.err conftest.$ac_objext \ | |
15374 conftest$ac_exeext conftest.$ac_ext | |
15375 LIBS=$ac_check_lib_save_LIBS | |
15376 fi | |
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 | |
15378 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | |
15379 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then : | |
15380 have_libossaudio=yes | |
15381 else | |
15382 have_libossaudio=no | |
15383 fi | |
15384 | |
15385 fi | |
15386 fi | |
15387 have_jack=no | |
15388 if test "x$with_jack" != "xno"; then | |
15389 | |
15390 | |
15391 | |
15392 | |
15393 | |
15394 | |
15395 | |
15396 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15397 if test -n "$ac_tool_prefix"; then | |
15398 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15399 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15401 $as_echo_n "checking for $ac_word... " >&6; } | |
15402 if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15403 $as_echo_n "(cached) " >&6 | |
15404 else | |
15405 case $PKG_CONFIG in | |
15406 [\\/]* | ?:[\\/]*) | |
15407 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15408 ;; | |
15409 *) | |
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15411 for as_dir in $PATH | |
15412 do | |
15413 IFS=$as_save_IFS | |
15414 test -z "$as_dir" && as_dir=. | |
15415 for ac_exec_ext in '' $ac_executable_extensions; do | |
15416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15417 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15419 break 2 | |
15420 fi | |
15421 done | |
15422 done | |
15423 IFS=$as_save_IFS | |
15424 | |
15425 ;; | |
15426 esac | |
15427 fi | |
15428 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15429 if test -n "$PKG_CONFIG"; then | |
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15431 $as_echo "$PKG_CONFIG" >&6; } | |
15432 else | |
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15434 $as_echo "no" >&6; } | |
15435 fi | |
15436 | |
15437 | |
15438 fi | |
15439 if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15440 ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15441 # Extract the first word of "pkg-config", so it can be a program name with args. | |
15442 set dummy pkg-config; ac_word=$2 | |
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15444 $as_echo_n "checking for $ac_word... " >&6; } | |
15445 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
15446 $as_echo_n "(cached) " >&6 | |
15447 else | |
15448 case $ac_pt_PKG_CONFIG in | |
15449 [\\/]* | ?:[\\/]*) | |
15450 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
15451 ;; | |
15452 *) | |
15453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15454 for as_dir in $PATH | |
15455 do | |
15456 IFS=$as_save_IFS | |
15457 test -z "$as_dir" && as_dir=. | |
15458 for ac_exec_ext in '' $ac_executable_extensions; do | |
15459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15460 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15462 break 2 | |
15463 fi | |
15464 done | |
15465 done | |
15466 IFS=$as_save_IFS | |
15467 | |
15468 ;; | |
15469 esac | |
15470 fi | |
15471 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
15472 if test -n "$ac_pt_PKG_CONFIG"; then | |
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
15474 $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
15475 else | |
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15477 $as_echo "no" >&6; } | |
15478 fi | |
15479 | |
15480 if test "x$ac_pt_PKG_CONFIG" = x; then | |
15481 PKG_CONFIG="" | |
15482 else | |
15483 case $cross_compiling:$ac_tool_warned in | |
15484 yes:) | |
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15487 ac_tool_warned=yes ;; | |
15488 esac | |
15489 PKG_CONFIG=$ac_pt_PKG_CONFIG | |
15490 fi | |
15491 else | |
15492 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
15493 fi | |
15494 | |
15495 fi | |
15496 if test -n "$PKG_CONFIG"; then | |
15497 _pkg_min_version=0.9.0 | |
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
15499 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
15500 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15502 $as_echo "yes" >&6; } | |
15503 else | |
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15505 $as_echo "no" >&6; } | |
15506 PKG_CONFIG="" | |
15507 fi | |
15508 fi | |
15509 | |
15510 pkg_failed=no | |
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5 | |
15512 $as_echo_n "checking for JACK... " >&6; } | |
15513 | |
15514 if test -n "$JACK_CFLAGS"; then | |
15515 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS" | |
15516 elif test -n "$PKG_CONFIG"; then | |
15517 if test -n "$PKG_CONFIG" && \ | |
15518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5 | |
15519 ($PKG_CONFIG --exists --print-errors "jack") 2>&5 | |
15520 ac_status=$? | |
15521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15522 test $ac_status = 0; }; then | |
15523 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null` | |
15524 test "x$?" != "x0" && pkg_failed=yes | |
15525 else | |
15526 pkg_failed=yes | |
15527 fi | |
15528 else | |
15529 pkg_failed=untried | |
15530 fi | |
15531 if test -n "$JACK_LIBS"; then | |
15532 pkg_cv_JACK_LIBS="$JACK_LIBS" | |
15533 elif test -n "$PKG_CONFIG"; then | |
15534 if test -n "$PKG_CONFIG" && \ | |
15535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5 | |
15536 ($PKG_CONFIG --exists --print-errors "jack") 2>&5 | |
15537 ac_status=$? | |
15538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15539 test $ac_status = 0; }; then | |
15540 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null` | |
15541 test "x$?" != "x0" && pkg_failed=yes | |
15542 else | |
15543 pkg_failed=yes | |
15544 fi | |
15545 else | |
15546 pkg_failed=untried | |
15547 fi | |
15548 | |
15549 | |
15550 | |
15551 if test $pkg_failed = yes; then | |
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15553 $as_echo "no" >&6; } | |
15554 | |
15555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15556 _pkg_short_errors_supported=yes | |
15557 else | |
15558 _pkg_short_errors_supported=no | |
15559 fi | |
15560 if test $_pkg_short_errors_supported = yes; then | |
15561 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack" 2>&1` | |
15562 else | |
15563 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack" 2>&1` | |
15564 fi | |
15565 # Put the nasty error message in config.log where it belongs | |
15566 echo "$JACK_PKG_ERRORS" >&5 | |
15567 | |
15568 have_jack=no | |
15569 elif test $pkg_failed = untried; then | |
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15571 $as_echo "no" >&6; } | |
15572 have_jack=no | |
15573 else | |
15574 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS | |
15575 JACK_LIBS=$pkg_cv_JACK_LIBS | |
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15577 $as_echo "yes" >&6; } | |
15578 have_jack=yes | |
15579 fi | |
15580 fi | |
15581 | |
15582 | |
15583 | |
15584 # The cast to long int works around a bug in the HP C Compiler | |
15585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15587 # This bug is HP SR number 8606223364. | |
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
15589 $as_echo_n "checking size of short... " >&6; } | |
15590 if ${ac_cv_sizeof_short+:} false; then : | |
15591 $as_echo_n "(cached) " >&6 | |
15592 else | |
15593 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
15594 | |
15595 else | |
15596 if test "$ac_cv_type_short" = yes; then | |
15597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15599 as_fn_error 77 "cannot compute sizeof (short) | |
15600 See \`config.log' for more details" "$LINENO" 5; } | |
15601 else | |
15602 ac_cv_sizeof_short=0 | |
15603 fi | |
15604 fi | |
15605 | |
15606 fi | |
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
15608 $as_echo "$ac_cv_sizeof_short" >&6; } | |
15609 | |
15610 | |
15611 | |
15612 cat >>confdefs.h <<_ACEOF | |
15613 #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15614 _ACEOF | |
15615 | |
15616 | |
15617 # The cast to long int works around a bug in the HP C Compiler | |
15618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15620 # This bug is HP SR number 8606223364. | |
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
15622 $as_echo_n "checking size of int... " >&6; } | |
15623 if ${ac_cv_sizeof_int+:} false; then : | |
15624 $as_echo_n "(cached) " >&6 | |
15625 else | |
15626 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
15627 | |
15628 else | |
15629 if test "$ac_cv_type_int" = yes; then | |
15630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15632 as_fn_error 77 "cannot compute sizeof (int) | |
15633 See \`config.log' for more details" "$LINENO" 5; } | |
15634 else | |
15635 ac_cv_sizeof_int=0 | |
15636 fi | |
15637 fi | |
15638 | |
15639 fi | |
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
15641 $as_echo "$ac_cv_sizeof_int" >&6; } | |
15642 | |
15643 | |
15644 | |
15645 cat >>confdefs.h <<_ACEOF | |
15646 #define SIZEOF_INT $ac_cv_sizeof_int | |
15647 _ACEOF | |
15648 | |
15649 | |
15650 # The cast to long int works around a bug in the HP C Compiler | |
15651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15653 # This bug is HP SR number 8606223364. | |
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
15655 $as_echo_n "checking size of long... " >&6; } | |
15656 if ${ac_cv_sizeof_long+:} false; then : | |
15657 $as_echo_n "(cached) " >&6 | |
15658 else | |
15659 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
15660 | |
15661 else | |
15662 if test "$ac_cv_type_long" = yes; then | |
15663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15665 as_fn_error 77 "cannot compute sizeof (long) | |
15666 See \`config.log' for more details" "$LINENO" 5; } | |
15667 else | |
15668 ac_cv_sizeof_long=0 | |
15669 fi | |
15670 fi | |
15671 | |
15672 fi | |
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
15674 $as_echo "$ac_cv_sizeof_long" >&6; } | |
15675 | |
15676 | |
15677 | |
15678 cat >>confdefs.h <<_ACEOF | |
15679 #define SIZEOF_LONG $ac_cv_sizeof_long | |
15680 _ACEOF | |
15681 | |
15682 | |
15683 | |
15684 save_LIBS="${LIBS}" | |
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
15686 $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
15687 if ${ac_cv_lib_rt_clock_gettime+:} false; then : | |
15688 $as_echo_n "(cached) " >&6 | |
15689 else | |
15690 ac_check_lib_save_LIBS=$LIBS | |
15691 LIBS="-lrt $LIBS" | |
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15693 /* end confdefs.h. */ | |
15694 | |
15695 /* Override any GCC internal prototype to avoid an error. | |
15696 Use char because int might match the return type of a GCC | |
15697 builtin and then its argument prototype would still apply. */ | |
15698 #ifdef __cplusplus | |
15699 extern "C" | |
15700 #endif | |
15701 char clock_gettime (); | |
15702 int | |
15703 main () | |
15704 { | |
15705 return clock_gettime (); | |
15706 ; | |
15707 return 0; | |
15708 } | |
15709 _ACEOF | |
15710 if ac_fn_c_try_link "$LINENO"; then : | |
15711 ac_cv_lib_rt_clock_gettime=yes | |
15712 else | |
15713 ac_cv_lib_rt_clock_gettime=no | |
15714 fi | |
15715 rm -f core conftest.err conftest.$ac_objext \ | |
15716 conftest$ac_exeext conftest.$ac_ext | |
15717 LIBS=$ac_check_lib_save_LIBS | |
15718 fi | |
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
15720 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15721 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | |
15722 rt_libs=" -lrt" | |
15723 fi | |
15724 | |
15725 LIBS="${LIBS}${rt_libs}" | |
15726 DLL_LIBS="${DLL_LIBS}${rt_libs}" | |
15727 for ac_func in clock_gettime nanosleep | |
15728 do : | |
15729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15730 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15731 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
15732 cat >>confdefs.h <<_ACEOF | |
15733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15734 _ACEOF | |
15735 | |
15736 fi | |
15737 done | |
15738 | |
15739 LIBS="${save_LIBS}" | |
15740 | |
15741 LT_CURRENT=2 | |
15742 LT_REVISION=0 | |
15743 LT_AGE=0 | |
15744 | |
15745 | |
15746 | |
15747 | |
15748 | |
15749 | |
15750 | |
15751 | |
15752 | |
15753 | |
15754 | |
15755 | |
15756 | |
15757 | |
15758 | |
15759 if ( echo "${host_os}" | grep ^darwin >> /dev/null ) && | |
15760 [ "$enable_mac_universal" = "yes" ] && | |
15761 [ "$enable_mac_debug" != "yes" ] ; then | |
15762 CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG" | |
15763 else | |
15764 CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"} | |
15765 fi | |
15766 | |
15767 if [ $ac_cv_c_bigendian = "yes" ] ; then | |
15768 CFLAGS="$CFLAGS -DPA_BIG_ENDIAN" | |
15769 else | |
15770 CFLAGS="$CFLAGS -DPA_LITTLE_ENDIAN" | |
15771 fi | |
15772 | |
15773 add_objects() | |
15774 { | |
15775 for o in $@; do | |
15776 test "${OTHER_OBJS#*${o}*}" = "${OTHER_OBJS}" && OTHER_OBJS="$OTHER_OBJS $o" | |
15777 done | |
15778 } | |
15779 | |
15780 INCLUDES=portaudio.h | |
15781 | |
15782 CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I\$(top_srcdir)/src/common" | |
15783 | |
15784 case "${host_os}" in | |
15785 darwin* ) | |
15786 | |
15787 $as_echo "#define PA_USE_COREAUDIO 1" >>confdefs.h | |
15788 | |
15789 | |
15790 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Werror" | |
15791 LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon" | |
15792 | |
15793 if test "x$enable_mac_universal" = "xyes" ; then | |
15794 case `xcodebuild -version | sed -n 's/Xcode \(.*\)/\1/p'` in | |
15795 | |
15796 12*|3.0|3.1) | |
15797 if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then | |
15798 mac_version_min="-mmacosx-version-min=10.3" | |
15799 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk" | |
15800 else | |
15801 mac_version_min="-mmacosx-version-min=10.3" | |
15802 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | |
15803 fi | |
15804 ;; | |
15805 | |
15806 *) | |
15807 if xcodebuild -version -sdk macosx10.5 Path >/dev/null 2>&1 ; then | |
15808 mac_version_min="-mmacosx-version-min=10.3" | |
15809 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.5 Path`" | |
15810 elif xcodebuild -version -sdk macosx10.6 Path >/dev/null 2>&1 ; then | |
15811 mac_version_min="-mmacosx-version-min=10.4" | |
15812 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.6 Path`" | |
15813 elif xcodebuild -version -sdk macosx10.7 Path >/dev/null 2>&1 ; then | |
15814 mac_version_min="-mmacosx-version-min=10.4" | |
15815 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.7 Path`" | |
15816 elif xcodebuild -version -sdk macosx10.8 Path >/dev/null 2>&1 ; then | |
15817 mac_version_min="-mmacosx-version-min=10.4" | |
15818 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.8 Path`" | |
15819 elif xcodebuild -version -sdk macosx10.9 Path >/dev/null 2>&1 ; then | |
15820 mac_version_min="-mmacosx-version-min=10.4" | |
15821 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.9 Path`" | |
15822 else | |
15823 as_fn_error $? "Couldn't find 10.5, 10.6, 10.7, 10.8 or 10.9 SDK" "$LINENO" 5 | |
15824 fi | |
15825 esac | |
15826 | |
15827 mac_arches="" | |
15828 for arch in i386 x86_64 ppc ppc64 | |
15829 do | |
15830 save_CFLAGS="$CFLAGS" | |
15831 CFLAGS="$CFLAGS -arch $arch" | |
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15833 /* end confdefs.h. */ | |
15834 | |
15835 int | |
15836 main () | |
15837 { | |
15838 return 0; | |
15839 ; | |
15840 return 0; | |
15841 } | |
15842 _ACEOF | |
15843 if ac_fn_c_try_compile "$LINENO"; then : | |
15844 | |
15845 if [ -z "$mac_arches" ] ; then | |
15846 mac_arches="-arch $arch" | |
15847 else | |
15848 mac_arches="$mac_arches -arch $arch" | |
15849 fi | |
15850 | |
15851 fi | |
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15853 CFLAGS="$save_CFLAGS" | |
15854 done | |
15855 else | |
15856 mac_arches="" | |
15857 mac_sysroot="" | |
15858 mac_version="" | |
15859 fi | |
15860 SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min" | |
15861 CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min" | |
15862 OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o" | |
15863 PADLL="libportaudio.dylib" | |
15864 ;; | |
15865 | |
15866 mingw* ) | |
15867 | |
15868 PADLL="portaudio.dll" | |
15869 THREAD_CFLAGS="-mthreads" | |
15870 SHARED_FLAGS="-shared" | |
15871 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_WMME=0 -DPA_USE_ASIO=0 -DPA_USE_WDMKS=0 -DPA_USE_DS=0 -DPA_USE_WASAPI=0" | |
15872 | |
15873 if [ "x$with_directx" = "xyes" ]; then | |
15874 DXDIR="$with_dxdir" | |
15875 add_objects src/hostapi/dsound/pa_win_ds.o src/hostapi/dsound/pa_win_ds_dynlink.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o | |
15876 LIBS="${LIBS} -lwinmm -lm -ldsound -lole32" | |
15877 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -ldsound -lole32" | |
15878 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\"" | |
15879 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO" | |
15880 CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_DS -DPA_USE_DS=1" | |
15881 fi | |
15882 | |
15883 if [ "x$with_asio" = "xyes" ]; then | |
15884 ASIODIR="$with_asiodir" | |
15885 add_objects src/hostapi/asio/pa_asio.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/common/asio.o $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o | |
15886 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid" | |
15887 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lole32 -luuid" | |
15888 CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -UPA_USE_ASIO -DPA_USE_ASIO=1 -DWINDOWS" | |
15889 | |
15890 CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501 -DWINVER=0x0501" | |
15891 | |
15892 CXXFLAGS="$CFLAGS" | |
15893 fi | |
15894 | |
15895 if [ "x$with_wdmks" = "xyes" ]; then | |
15896 DXDIR="$with_dxdir" | |
15897 add_objects src/hostapi/wdmks/pa_win_wdmks.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_wdmks_util.o src/os/win/pa_win_waveformat.o | |
15898 LIBS="${LIBS} -lwinmm -lm -luuid -lsetupapi -lole32" | |
15899 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -luuid -lsetupapi -lole32" | |
15900 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\"" | |
15901 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO" | |
15902 CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_WDMKS -DPA_USE_WDMKS=1" | |
15903 fi | |
15904 | |
15905 if [ "x$with_wmme" = "xyes" ]; then | |
15906 add_objects src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o | |
15907 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid" | |
15908 DLL_LIBS="${DLL_LIBS} -lwinmm" | |
15909 CFLAGS="$CFLAGS -UPA_USE_WMME -DPA_USE_WMME=1" | |
15910 fi | |
15911 | |
15912 if [ "x$with_wasapi" = "xyes" ]; then | |
15913 add_objects src/hostapi/wasapi/pa_win_wasapi.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o | |
15914 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid" | |
15915 DLL_LIBS="${DLL_LIBS} -lwinmm -lole32" | |
15916 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hostapi/wasapi/mingw-include -UPA_USE_WASAPI -DPA_USE_WASAPI=1" | |
15917 fi | |
15918 ;; | |
15919 | |
15920 cygwin* ) | |
15921 | |
15922 OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o" | |
15923 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_DS=0 -DPA_USE_WDMKS=0 -DPA_USE_ASIO=0 -DPA_USE_WASAPI=0 -DPA_USE_WMME=1" | |
15924 LIBS="-lwinmm -lm" | |
15925 PADLL="portaudio.dll" | |
15926 THREAD_CFLAGS="-mthreads" | |
15927 SHARED_FLAGS="-shared" | |
15928 DLL_LIBS="${DLL_LIBS} -lwinmm" | |
15929 ;; | |
15930 | |
15931 irix* ) | |
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | |
15933 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | |
15934 if ${ac_cv_lib_pthread_pthread_create+:} false; then : | |
15935 $as_echo_n "(cached) " >&6 | |
15936 else | |
15937 ac_check_lib_save_LIBS=$LIBS | |
15938 LIBS="-lpthread $LIBS" | |
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15940 /* end confdefs.h. */ | |
15941 | |
15942 /* Override any GCC internal prototype to avoid an error. | |
15943 Use char because int might match the return type of a GCC | |
15944 builtin and then its argument prototype would still apply. */ | |
15945 #ifdef __cplusplus | |
15946 extern "C" | |
15947 #endif | |
15948 char pthread_create (); | |
15949 int | |
15950 main () | |
15951 { | |
15952 return pthread_create (); | |
15953 ; | |
15954 return 0; | |
15955 } | |
15956 _ACEOF | |
15957 if ac_fn_c_try_link "$LINENO"; then : | |
15958 ac_cv_lib_pthread_pthread_create=yes | |
15959 else | |
15960 ac_cv_lib_pthread_pthread_create=no | |
15961 fi | |
15962 rm -f core conftest.err conftest.$ac_objext \ | |
15963 conftest$ac_exeext conftest.$ac_ext | |
15964 LIBS=$ac_check_lib_save_LIBS | |
15965 fi | |
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 | |
15967 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } | |
15968 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : | |
15969 cat >>confdefs.h <<_ACEOF | |
15970 #define HAVE_LIBPTHREAD 1 | |
15971 _ACEOF | |
15972 | |
15973 LIBS="-lpthread $LIBS" | |
15974 | |
15975 else | |
15976 as_fn_error $? "IRIX posix thread library not found!" "$LINENO" 5 | |
15977 fi | |
15978 | |
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alOpenPort in -laudio" >&5 | |
15980 $as_echo_n "checking for alOpenPort in -laudio... " >&6; } | |
15981 if ${ac_cv_lib_audio_alOpenPort+:} false; then : | |
15982 $as_echo_n "(cached) " >&6 | |
15983 else | |
15984 ac_check_lib_save_LIBS=$LIBS | |
15985 LIBS="-laudio $LIBS" | |
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15987 /* end confdefs.h. */ | |
15988 | |
15989 /* Override any GCC internal prototype to avoid an error. | |
15990 Use char because int might match the return type of a GCC | |
15991 builtin and then its argument prototype would still apply. */ | |
15992 #ifdef __cplusplus | |
15993 extern "C" | |
15994 #endif | |
15995 char alOpenPort (); | |
15996 int | |
15997 main () | |
15998 { | |
15999 return alOpenPort (); | |
16000 ; | |
16001 return 0; | |
16002 } | |
16003 _ACEOF | |
16004 if ac_fn_c_try_link "$LINENO"; then : | |
16005 ac_cv_lib_audio_alOpenPort=yes | |
16006 else | |
16007 ac_cv_lib_audio_alOpenPort=no | |
16008 fi | |
16009 rm -f core conftest.err conftest.$ac_objext \ | |
16010 conftest$ac_exeext conftest.$ac_ext | |
16011 LIBS=$ac_check_lib_save_LIBS | |
16012 fi | |
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_alOpenPort" >&5 | |
16014 $as_echo "$ac_cv_lib_audio_alOpenPort" >&6; } | |
16015 if test "x$ac_cv_lib_audio_alOpenPort" = xyes; then : | |
16016 cat >>confdefs.h <<_ACEOF | |
16017 #define HAVE_LIBAUDIO 1 | |
16018 _ACEOF | |
16019 | |
16020 LIBS="-laudio $LIBS" | |
16021 | |
16022 else | |
16023 as_fn_error $? "IRIX audio library not found!" "$LINENO" 5 | |
16024 fi | |
16025 | |
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmGetUST in -ldmedia" >&5 | |
16027 $as_echo_n "checking for dmGetUST in -ldmedia... " >&6; } | |
16028 if ${ac_cv_lib_dmedia_dmGetUST+:} false; then : | |
16029 $as_echo_n "(cached) " >&6 | |
16030 else | |
16031 ac_check_lib_save_LIBS=$LIBS | |
16032 LIBS="-ldmedia $LIBS" | |
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16034 /* end confdefs.h. */ | |
16035 | |
16036 /* Override any GCC internal prototype to avoid an error. | |
16037 Use char because int might match the return type of a GCC | |
16038 builtin and then its argument prototype would still apply. */ | |
16039 #ifdef __cplusplus | |
16040 extern "C" | |
16041 #endif | |
16042 char dmGetUST (); | |
16043 int | |
16044 main () | |
16045 { | |
16046 return dmGetUST (); | |
16047 ; | |
16048 return 0; | |
16049 } | |
16050 _ACEOF | |
16051 if ac_fn_c_try_link "$LINENO"; then : | |
16052 ac_cv_lib_dmedia_dmGetUST=yes | |
16053 else | |
16054 ac_cv_lib_dmedia_dmGetUST=no | |
16055 fi | |
16056 rm -f core conftest.err conftest.$ac_objext \ | |
16057 conftest$ac_exeext conftest.$ac_ext | |
16058 LIBS=$ac_check_lib_save_LIBS | |
16059 fi | |
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmedia_dmGetUST" >&5 | |
16061 $as_echo "$ac_cv_lib_dmedia_dmGetUST" >&6; } | |
16062 if test "x$ac_cv_lib_dmedia_dmGetUST" = xyes; then : | |
16063 cat >>confdefs.h <<_ACEOF | |
16064 #define HAVE_LIBDMEDIA 1 | |
16065 _ACEOF | |
16066 | |
16067 LIBS="-ldmedia $LIBS" | |
16068 | |
16069 else | |
16070 as_fn_error $? "IRIX digital media library not found!" "$LINENO" 5 | |
16071 fi | |
16072 | |
16073 | |
16074 $as_echo "#define PA_USE_SGI 1" >>confdefs.h | |
16075 | |
16076 | |
16077 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix" | |
16078 | |
16079 THREAD_CFLAGS="-D_REENTRANT" | |
16080 | |
16081 OTHER_OBJS="pa_sgi/pa_sgi.o src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o" | |
16082 | |
16083 LIBS="-lm -ldmedia -laudio -lpthread" | |
16084 PADLL="libportaudio.so" | |
16085 SHARED_FLAGS="" | |
16086 ;; | |
16087 | |
16088 *) | |
16089 | |
16090 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix" | |
16091 | |
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | |
16093 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | |
16094 if ${ac_cv_lib_pthread_pthread_create+:} false; then : | |
16095 $as_echo_n "(cached) " >&6 | |
16096 else | |
16097 ac_check_lib_save_LIBS=$LIBS | |
16098 LIBS="-lpthread $LIBS" | |
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16100 /* end confdefs.h. */ | |
16101 | |
16102 /* Override any GCC internal prototype to avoid an error. | |
16103 Use char because int might match the return type of a GCC | |
16104 builtin and then its argument prototype would still apply. */ | |
16105 #ifdef __cplusplus | |
16106 extern "C" | |
16107 #endif | |
16108 char pthread_create (); | |
16109 int | |
16110 main () | |
16111 { | |
16112 return pthread_create (); | |
16113 ; | |
16114 return 0; | |
16115 } | |
16116 _ACEOF | |
16117 if ac_fn_c_try_link "$LINENO"; then : | |
16118 ac_cv_lib_pthread_pthread_create=yes | |
16119 else | |
16120 ac_cv_lib_pthread_pthread_create=no | |
16121 fi | |
16122 rm -f core conftest.err conftest.$ac_objext \ | |
16123 conftest$ac_exeext conftest.$ac_ext | |
16124 LIBS=$ac_check_lib_save_LIBS | |
16125 fi | |
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 | |
16127 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } | |
16128 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : | |
16129 have_pthread="yes" | |
16130 else | |
16131 as_fn_error $? "libpthread not found!" "$LINENO" 5 | |
16132 fi | |
16133 | |
16134 | |
16135 if [ "$have_alsa" = "yes" ] && [ "$with_alsa" != "no" ] ; then | |
16136 DLL_LIBS="$DLL_LIBS -lasound" | |
16137 LIBS="$LIBS -lasound" | |
16138 OTHER_OBJS="$OTHER_OBJS src/hostapi/alsa/pa_linux_alsa.o" | |
16139 INCLUDES="$INCLUDES pa_linux_alsa.h" | |
16140 $as_echo "#define PA_USE_ALSA 1" >>confdefs.h | |
16141 | |
16142 fi | |
16143 | |
16144 if [ "$have_jack" = "yes" ] && [ "$with_jack" != "no" ] ; then | |
16145 DLL_LIBS="$DLL_LIBS $JACK_LIBS" | |
16146 CFLAGS="$CFLAGS $JACK_CFLAGS" | |
16147 OTHER_OBJS="$OTHER_OBJS src/hostapi/jack/pa_jack.o src/common/pa_ringbuffer.o" | |
16148 INCLUDES="$INCLUDES pa_jack.h" | |
16149 $as_echo "#define PA_USE_JACK 1" >>confdefs.h | |
16150 | |
16151 fi | |
16152 | |
16153 if [ "$with_oss" != "no" ] ; then | |
16154 OTHER_OBJS="$OTHER_OBJS src/hostapi/oss/pa_unix_oss.o" | |
16155 if [ "$have_libossaudio" = "yes" ] ; then | |
16156 DLL_LIBS="$DLL_LIBS -lossaudio" | |
16157 LIBS="$LIBS -lossaudio" | |
16158 fi | |
16159 $as_echo "#define PA_USE_OSS 1" >>confdefs.h | |
16160 | |
16161 fi | |
16162 | |
16163 if [ "$have_asihpi" = "yes" ] && [ "$with_asihpi" != "no" ] ; then | |
16164 LIBS="$LIBS -lhpi" | |
16165 DLL_LIBS="$DLL_LIBS -lhpi" | |
16166 OTHER_OBJS="$OTHER_OBJS src/hostapi/asihpi/pa_linux_asihpi.o" | |
16167 $as_echo "#define PA_USE_ASIHPI 1" >>confdefs.h | |
16168 | |
16169 fi | |
16170 | |
16171 DLL_LIBS="$DLL_LIBS -lm -lpthread" | |
16172 LIBS="$LIBS -lm -lpthread" | |
16173 PADLL="libportaudio.so" | |
16174 | |
16175 ## support sun cc compiler flags | |
16176 case "${host_os}" in | |
16177 solaris*) | |
16178 SHARED_FLAGS="-G" | |
16179 THREAD_CFLAGS="-mt" | |
16180 ;; | |
16181 *) | |
16182 SHARED_FLAGS="-fPIC" | |
16183 THREAD_CFLAGS="-pthread" | |
16184 ;; | |
16185 esac | |
16186 | |
16187 OTHER_OBJS="$OTHER_OBJS src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o" | |
16188 esac | |
16189 CFLAGS="$CFLAGS $THREAD_CFLAGS" | |
16190 | |
16191 test "$enable_shared" != "yes" && SHARED_FLAGS="" | |
16192 | |
16193 if test "$enable_cxx" = "yes"; then | |
16194 | |
16195 | |
16196 subdirs="$subdirs bindings/cpp" | |
16197 | |
16198 ENABLE_CXX_TRUE="" | |
16199 ENABLE_CXX_FALSE="#" | |
16200 else | |
16201 ENABLE_CXX_TRUE="#" | |
16202 ENABLE_CXX_FALSE="" | |
16203 fi | |
16204 | |
16205 | |
16206 | |
16207 if test "x$with_asio" = "xyes"; then | |
16208 WITH_ASIO_TRUE="" | |
16209 WITH_ASIO_FALSE="@ #" | |
16210 else | |
16211 WITH_ASIO_TRUE="@ #" | |
16212 WITH_ASIO_FALSE="" | |
16213 fi | |
16214 | |
16215 | |
16216 | |
16217 ac_config_files="$ac_config_files Makefile portaudio-2.0.pc" | |
16218 | |
16219 cat >confcache <<\_ACEOF | |
16220 # This file is a shell script that caches the results of configure | |
16221 # tests run on this system so they can be shared between configure | |
16222 # scripts and configure runs, see configure's option --config-cache. | |
16223 # It is not useful on other systems. If it contains results you don't | |
16224 # want to keep, you may remove or edit it. | |
16225 # | |
16226 # config.status only pays attention to the cache file if you give it | |
16227 # the --recheck option to rerun configure. | |
16228 # | |
16229 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16230 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16231 # following values. | |
16232 | |
16233 _ACEOF | |
16234 | |
16235 # The following way of writing the cache mishandles newlines in values, | |
16236 # but we know of no workaround that is simple, portable, and efficient. | |
16237 # So, we kill variables containing newlines. | |
16238 # Ultrix sh set writes to stderr and can't be redirected directly, | |
16239 # and sets the high bit in the cache file unless we assign to the vars. | |
16240 ( | |
16241 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16242 eval ac_val=\$$ac_var | |
16243 case $ac_val in #( | |
16244 *${as_nl}*) | |
16245 case $ac_var in #( | |
16246 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16248 esac | |
16249 case $ac_var in #( | |
16250 _ | IFS | as_nl) ;; #( | |
16251 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16252 *) { eval $ac_var=; unset $ac_var;} ;; | |
16253 esac ;; | |
16254 esac | |
16255 done | |
16256 | |
16257 (set) 2>&1 | | |
16258 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16259 *${as_nl}ac_space=\ *) | |
16260 # `set' does not quote correctly, so add quotes: double-quote | |
16261 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16262 sed -n \ | |
16263 "s/'/'\\\\''/g; | |
16264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16265 ;; #( | |
16266 *) | |
16267 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16269 ;; | |
16270 esac | | |
16271 sort | |
16272 ) | | |
16273 sed ' | |
16274 /^ac_cv_env_/b end | |
16275 t clear | |
16276 :clear | |
16277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16278 t end | |
16279 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16280 :end' >>confcache | |
16281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16282 if test -w "$cache_file"; then | |
16283 if test "x$cache_file" != "x/dev/null"; then | |
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
16285 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
16286 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
16287 cat confcache >"$cache_file" | |
16288 else | |
16289 case $cache_file in #( | |
16290 */* | ?:*) | |
16291 mv -f confcache "$cache_file"$$ && | |
16292 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16293 *) | |
16294 mv -f confcache "$cache_file" ;; | |
16295 esac | |
16296 fi | |
16297 fi | |
16298 else | |
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16300 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16301 fi | |
16302 fi | |
16303 rm -f confcache | |
16304 | |
16305 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16306 # Let make expand exec_prefix. | |
16307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16308 | |
16309 # Transform confdefs.h into DEFS. | |
16310 # Protect against shell expansion while executing Makefile rules. | |
16311 # Protect against Makefile macro expansion. | |
16312 # | |
16313 # If the first sed substitution is executed (which looks for macros that | |
16314 # take arguments), then branch to the quote section. Otherwise, | |
16315 # look for a macro that doesn't take arguments. | |
16316 ac_script=' | |
16317 :mline | |
16318 /\\$/{ | |
16319 N | |
16320 s,\\\n,, | |
16321 b mline | |
16322 } | |
16323 t clear | |
16324 :clear | |
16325 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
16326 t quote | |
16327 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
16328 t quote | |
16329 b any | |
16330 :quote | |
16331 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
16332 s/\[/\\&/g | |
16333 s/\]/\\&/g | |
16334 s/\$/$$/g | |
16335 H | |
16336 :any | |
16337 ${ | |
16338 g | |
16339 s/^\n// | |
16340 s/\n/ /g | |
16341 p | |
16342 } | |
16343 ' | |
16344 DEFS=`sed -n "$ac_script" confdefs.h` | |
16345 | |
16346 | |
16347 ac_libobjs= | |
16348 ac_ltlibobjs= | |
16349 U= | |
16350 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16351 # 1. Remove the extension, and $U if already installed. | |
16352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
16353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16355 # will be set to the directory where LIBOBJS objects are built. | |
16356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
16358 done | |
16359 LIBOBJS=$ac_libobjs | |
16360 | |
16361 LTLIBOBJS=$ac_ltlibobjs | |
16362 | |
16363 | |
16364 | |
16365 | |
16366 : "${CONFIG_STATUS=./config.status}" | |
16367 ac_write_fail=0 | |
16368 ac_clean_files_save=$ac_clean_files | |
16369 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
16371 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16372 as_write_fail=0 | |
16373 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
16374 #! $SHELL | |
16375 # Generated by $as_me. | |
16376 # Run this file to recreate the current configuration. | |
16377 # Compiler output produced by configure, useful for debugging | |
16378 # configure, is in config.log if it exists. | |
16379 | |
16380 debug=false | |
16381 ac_cs_recheck=false | |
16382 ac_cs_silent=false | |
16383 | |
16384 SHELL=\${CONFIG_SHELL-$SHELL} | |
16385 export SHELL | |
16386 _ASEOF | |
16387 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16388 ## -------------------- ## | |
16389 ## M4sh Initialization. ## | |
16390 ## -------------------- ## | |
16391 | |
16392 # Be more Bourne compatible | |
16393 DUALCASE=1; export DUALCASE # for MKS sh | |
16394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
16395 emulate sh | |
16396 NULLCMD=: | |
16397 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
16398 # is contrary to our usage. Disable this feature. | |
16399 alias -g '${1+"$@"}'='"$@"' | |
16400 setopt NO_GLOB_SUBST | |
16401 else | |
16402 case `(set -o) 2>/dev/null` in #( | |
16403 *posix*) : | |
16404 set -o posix ;; #( | |
16405 *) : | |
16406 ;; | |
16407 esac | |
16408 fi | |
16409 | |
16410 | |
16411 as_nl=' | |
16412 ' | |
16413 export as_nl | |
16414 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16415 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16417 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16418 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16419 # but without wasting forks for bash or zsh. | |
16420 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16421 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16422 as_echo='print -r --' | |
16423 as_echo_n='print -rn --' | |
16424 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16425 as_echo='printf %s\n' | |
16426 as_echo_n='printf %s' | |
16427 else | |
16428 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16429 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16430 as_echo_n='/usr/ucb/echo -n' | |
16431 else | |
16432 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16433 as_echo_n_body='eval | |
16434 arg=$1; | |
16435 case $arg in #( | |
16436 *"$as_nl"*) | |
16437 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16438 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16439 esac; | |
16440 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16441 ' | |
16442 export as_echo_n_body | |
16443 as_echo_n='sh -c $as_echo_n_body as_echo' | |
16444 fi | |
16445 export as_echo_body | |
16446 as_echo='sh -c $as_echo_body as_echo' | |
16447 fi | |
16448 | |
16449 # The user is always right. | |
16450 if test "${PATH_SEPARATOR+set}" != set; then | |
16451 PATH_SEPARATOR=: | |
16452 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16453 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16454 PATH_SEPARATOR=';' | |
16455 } | |
16456 fi | |
16457 | |
16458 | |
16459 # IFS | |
16460 # We need space, tab and new line, in precisely that order. Quoting is | |
16461 # there to prevent editors from complaining about space-tab. | |
16462 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16463 # splitting by setting IFS to empty value.) | |
16464 IFS=" "" $as_nl" | |
16465 | |
16466 # Find who we are. Look in the path if we contain no directory separator. | |
16467 as_myself= | |
16468 case $0 in #(( | |
16469 *[\\/]* ) as_myself=$0 ;; | |
16470 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16471 for as_dir in $PATH | |
16472 do | |
16473 IFS=$as_save_IFS | |
16474 test -z "$as_dir" && as_dir=. | |
16475 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16476 done | |
16477 IFS=$as_save_IFS | |
16478 | |
16479 ;; | |
16480 esac | |
16481 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16482 # in which case we are not to be found in the path. | |
16483 if test "x$as_myself" = x; then | |
16484 as_myself=$0 | |
16485 fi | |
16486 if test ! -f "$as_myself"; then | |
16487 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16488 exit 1 | |
16489 fi | |
16490 | |
16491 # Unset variables that we do not need and which cause bugs (e.g. in | |
16492 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16493 # suppresses any "Segmentation fault" message there. '((' could | |
16494 # trigger a bug in pdksh 5.2.14. | |
16495 for as_var in BASH_ENV ENV MAIL MAILPATH | |
16496 do eval test x\${$as_var+set} = xset \ | |
16497 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16498 done | |
16499 PS1='$ ' | |
16500 PS2='> ' | |
16501 PS4='+ ' | |
16502 | |
16503 # NLS nuisances. | |
16504 LC_ALL=C | |
16505 export LC_ALL | |
16506 LANGUAGE=C | |
16507 export LANGUAGE | |
16508 | |
16509 # CDPATH. | |
16510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16511 | |
16512 | |
16513 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
16514 # ---------------------------------------- | |
16515 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
16516 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
16517 # script with STATUS, using 1 if that was 0. | |
16518 as_fn_error () | |
16519 { | |
16520 as_status=$1; test $as_status -eq 0 && as_status=1 | |
16521 if test "$4"; then | |
16522 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16523 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
16524 fi | |
16525 $as_echo "$as_me: error: $2" >&2 | |
16526 as_fn_exit $as_status | |
16527 } # as_fn_error | |
16528 | |
16529 | |
16530 # as_fn_set_status STATUS | |
16531 # ----------------------- | |
16532 # Set $? to STATUS, without forking. | |
16533 as_fn_set_status () | |
16534 { | |
16535 return $1 | |
16536 } # as_fn_set_status | |
16537 | |
16538 # as_fn_exit STATUS | |
16539 # ----------------- | |
16540 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16541 as_fn_exit () | |
16542 { | |
16543 set +e | |
16544 as_fn_set_status $1 | |
16545 exit $1 | |
16546 } # as_fn_exit | |
16547 | |
16548 # as_fn_unset VAR | |
16549 # --------------- | |
16550 # Portably unset VAR. | |
16551 as_fn_unset () | |
16552 { | |
16553 { eval $1=; unset $1;} | |
16554 } | |
16555 as_unset=as_fn_unset | |
16556 # as_fn_append VAR VALUE | |
16557 # ---------------------- | |
16558 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16559 # advantage of any shell optimizations that allow amortized linear growth over | |
16560 # repeated appends, instead of the typical quadratic growth present in naive | |
16561 # implementations. | |
16562 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16563 eval 'as_fn_append () | |
16564 { | |
16565 eval $1+=\$2 | |
16566 }' | |
16567 else | |
16568 as_fn_append () | |
16569 { | |
16570 eval $1=\$$1\$2 | |
16571 } | |
16572 fi # as_fn_append | |
16573 | |
16574 # as_fn_arith ARG... | |
16575 # ------------------ | |
16576 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16577 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16578 # must be portable across $(()) and expr. | |
16579 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16580 eval 'as_fn_arith () | |
16581 { | |
16582 as_val=$(( $* )) | |
16583 }' | |
16584 else | |
16585 as_fn_arith () | |
16586 { | |
16587 as_val=`expr "$@" || test $? -eq 1` | |
16588 } | |
16589 fi # as_fn_arith | |
16590 | |
16591 | |
16592 if expr a : '\(a\)' >/dev/null 2>&1 && | |
16593 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16594 as_expr=expr | |
16595 else | |
16596 as_expr=false | |
16597 fi | |
16598 | |
16599 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16600 as_basename=basename | |
16601 else | |
16602 as_basename=false | |
16603 fi | |
16604 | |
16605 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16606 as_dirname=dirname | |
16607 else | |
16608 as_dirname=false | |
16609 fi | |
16610 | |
16611 as_me=`$as_basename -- "$0" || | |
16612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16613 X"$0" : 'X\(//\)$' \| \ | |
16614 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16615 $as_echo X/"$0" | | |
16616 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16617 s//\1/ | |
16618 q | |
16619 } | |
16620 /^X\/\(\/\/\)$/{ | |
16621 s//\1/ | |
16622 q | |
16623 } | |
16624 /^X\/\(\/\).*/{ | |
16625 s//\1/ | |
16626 q | |
16627 } | |
16628 s/.*/./; q'` | |
16629 | |
16630 # Avoid depending upon Character Ranges. | |
16631 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16634 as_cr_digits='0123456789' | |
16635 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16636 | |
16637 ECHO_C= ECHO_N= ECHO_T= | |
16638 case `echo -n x` in #((((( | |
16639 -n*) | |
16640 case `echo 'xy\c'` in | |
16641 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16642 xy) ECHO_C='\c';; | |
16643 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16644 ECHO_T=' ';; | |
16645 esac;; | |
16646 *) | |
16647 ECHO_N='-n';; | |
16648 esac | |
16649 | |
16650 rm -f conf$$ conf$$.exe conf$$.file | |
16651 if test -d conf$$.dir; then | |
16652 rm -f conf$$.dir/conf$$.file | |
16653 else | |
16654 rm -f conf$$.dir | |
16655 mkdir conf$$.dir 2>/dev/null | |
16656 fi | |
16657 if (echo >conf$$.file) 2>/dev/null; then | |
16658 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16659 as_ln_s='ln -s' | |
16660 # ... but there are two gotchas: | |
16661 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16662 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
16663 # In both cases, we have to default to `cp -pR'. | |
16664 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16665 as_ln_s='cp -pR' | |
16666 elif ln conf$$.file conf$$ 2>/dev/null; then | |
16667 as_ln_s=ln | |
16668 else | |
16669 as_ln_s='cp -pR' | |
16670 fi | |
16671 else | |
16672 as_ln_s='cp -pR' | |
16673 fi | |
16674 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16675 rmdir conf$$.dir 2>/dev/null | |
16676 | |
16677 | |
16678 # as_fn_mkdir_p | |
16679 # ------------- | |
16680 # Create "$as_dir" as a directory, including parents if necessary. | |
16681 as_fn_mkdir_p () | |
16682 { | |
16683 | |
16684 case $as_dir in #( | |
16685 -*) as_dir=./$as_dir;; | |
16686 esac | |
16687 test -d "$as_dir" || eval $as_mkdir_p || { | |
16688 as_dirs= | |
16689 while :; do | |
16690 case $as_dir in #( | |
16691 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16692 *) as_qdir=$as_dir;; | |
16693 esac | |
16694 as_dirs="'$as_qdir' $as_dirs" | |
16695 as_dir=`$as_dirname -- "$as_dir" || | |
16696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16697 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16698 X"$as_dir" : 'X\(//\)$' \| \ | |
16699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16700 $as_echo X"$as_dir" | | |
16701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16702 s//\1/ | |
16703 q | |
16704 } | |
16705 /^X\(\/\/\)[^/].*/{ | |
16706 s//\1/ | |
16707 q | |
16708 } | |
16709 /^X\(\/\/\)$/{ | |
16710 s//\1/ | |
16711 q | |
16712 } | |
16713 /^X\(\/\).*/{ | |
16714 s//\1/ | |
16715 q | |
16716 } | |
16717 s/.*/./; q'` | |
16718 test -d "$as_dir" && break | |
16719 done | |
16720 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
16721 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
16722 | |
16723 | |
16724 } # as_fn_mkdir_p | |
16725 if mkdir -p . 2>/dev/null; then | |
16726 as_mkdir_p='mkdir -p "$as_dir"' | |
16727 else | |
16728 test -d ./-p && rmdir ./-p | |
16729 as_mkdir_p=false | |
16730 fi | |
16731 | |
16732 | |
16733 # as_fn_executable_p FILE | |
16734 # ----------------------- | |
16735 # Test if FILE is an executable regular file. | |
16736 as_fn_executable_p () | |
16737 { | |
16738 test -f "$1" && test -x "$1" | |
16739 } # as_fn_executable_p | |
16740 as_test_x='test -x' | |
16741 as_executable_p=as_fn_executable_p | |
16742 | |
16743 # Sed expression to map a string onto a valid CPP name. | |
16744 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16745 | |
16746 # Sed expression to map a string onto a valid variable name. | |
16747 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16748 | |
16749 | |
16750 exec 6>&1 | |
16751 ## ----------------------------------- ## | |
16752 ## Main body of $CONFIG_STATUS script. ## | |
16753 ## ----------------------------------- ## | |
16754 _ASEOF | |
16755 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16756 | |
16757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16758 # Save the log message, to keep $0 and so on meaningful, and to | |
16759 # report actual input values of CONFIG_FILES etc. instead of their | |
16760 # values after options handling. | |
16761 ac_log=" | |
16762 This file was extended by $as_me, which was | |
16763 generated by GNU Autoconf 2.69. Invocation command line was | |
16764 | |
16765 CONFIG_FILES = $CONFIG_FILES | |
16766 CONFIG_HEADERS = $CONFIG_HEADERS | |
16767 CONFIG_LINKS = $CONFIG_LINKS | |
16768 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16769 $ $0 $@ | |
16770 | |
16771 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
16772 " | |
16773 | |
16774 _ACEOF | |
16775 | |
16776 case $ac_config_files in *" | |
16777 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16778 esac | |
16779 | |
16780 | |
16781 | |
16782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16783 # Files that config.status was made for. | |
16784 config_files="$ac_config_files" | |
16785 config_commands="$ac_config_commands" | |
16786 | |
16787 _ACEOF | |
16788 | |
16789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16790 ac_cs_usage="\ | |
16791 \`$as_me' instantiates files and other configuration actions | |
16792 from templates according to the current configuration. Unless the files | |
16793 and actions are specified as TAGs, all are instantiated by default. | |
16794 | |
16795 Usage: $0 [OPTION]... [TAG]... | |
16796 | |
16797 -h, --help print this help, then exit | |
16798 -V, --version print version number and configuration settings, then exit | |
16799 --config print configuration, then exit | |
16800 -q, --quiet, --silent | |
16801 do not print progress messages | |
16802 -d, --debug don't remove temporary files | |
16803 --recheck update $as_me by reconfiguring in the same conditions | |
16804 --file=FILE[:TEMPLATE] | |
16805 instantiate the configuration file FILE | |
16806 | |
16807 Configuration files: | |
16808 $config_files | |
16809 | |
16810 Configuration commands: | |
16811 $config_commands | |
16812 | |
16813 Report bugs to the package provider." | |
16814 | |
16815 _ACEOF | |
16816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16817 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
16818 ac_cs_version="\\ | |
16819 config.status | |
16820 configured by $0, generated by GNU Autoconf 2.69, | |
16821 with options \\"\$ac_cs_config\\" | |
16822 | |
16823 Copyright (C) 2012 Free Software Foundation, Inc. | |
16824 This config.status script is free software; the Free Software Foundation | |
16825 gives unlimited permission to copy, distribute and modify it." | |
16826 | |
16827 ac_pwd='$ac_pwd' | |
16828 srcdir='$srcdir' | |
16829 INSTALL='$INSTALL' | |
16830 AWK='$AWK' | |
16831 test -n "\$AWK" || AWK=awk | |
16832 _ACEOF | |
16833 | |
16834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16835 # The default lists apply if the user does not specify any file. | |
16836 ac_need_defaults=: | |
16837 while test $# != 0 | |
16838 do | |
16839 case $1 in | |
16840 --*=?*) | |
16841 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16843 ac_shift=: | |
16844 ;; | |
16845 --*=) | |
16846 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16847 ac_optarg= | |
16848 ac_shift=: | |
16849 ;; | |
16850 *) | |
16851 ac_option=$1 | |
16852 ac_optarg=$2 | |
16853 ac_shift=shift | |
16854 ;; | |
16855 esac | |
16856 | |
16857 case $ac_option in | |
16858 # Handling of the options. | |
16859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16860 ac_cs_recheck=: ;; | |
16861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16862 $as_echo "$ac_cs_version"; exit ;; | |
16863 --config | --confi | --conf | --con | --co | --c ) | |
16864 $as_echo "$ac_cs_config"; exit ;; | |
16865 --debug | --debu | --deb | --de | --d | -d ) | |
16866 debug=: ;; | |
16867 --file | --fil | --fi | --f ) | |
16868 $ac_shift | |
16869 case $ac_optarg in | |
16870 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16871 '') as_fn_error $? "missing file argument" ;; | |
16872 esac | |
16873 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
16874 ac_need_defaults=false;; | |
16875 --he | --h | --help | --hel | -h ) | |
16876 $as_echo "$ac_cs_usage"; exit ;; | |
16877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16878 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16879 ac_cs_silent=: ;; | |
16880 | |
16881 # This is an error. | |
16882 -*) as_fn_error $? "unrecognized option: \`$1' | |
16883 Try \`$0 --help' for more information." ;; | |
16884 | |
16885 *) as_fn_append ac_config_targets " $1" | |
16886 ac_need_defaults=false ;; | |
16887 | |
16888 esac | |
16889 shift | |
16890 done | |
16891 | |
16892 ac_configure_extra_args= | |
16893 | |
16894 if $ac_cs_silent; then | |
16895 exec 6>/dev/null | |
16896 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16897 fi | |
16898 | |
16899 _ACEOF | |
16900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16901 if \$ac_cs_recheck; then | |
16902 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
16903 shift | |
16904 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16905 CONFIG_SHELL='$SHELL' | |
16906 export CONFIG_SHELL | |
16907 exec "\$@" | |
16908 fi | |
16909 | |
16910 _ACEOF | |
16911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16912 exec 5>>config.log | |
16913 { | |
16914 echo | |
16915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16916 ## Running $as_me. ## | |
16917 _ASBOX | |
16918 $as_echo "$ac_log" | |
16919 } >&5 | |
16920 | |
16921 _ACEOF | |
16922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16923 # | |
16924 # INIT-COMMANDS | |
16925 # | |
16926 | |
16927 | |
16928 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
16929 # if CDPATH is set. | |
16930 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16931 | |
16932 sed_quote_subst='$sed_quote_subst' | |
16933 double_quote_subst='$double_quote_subst' | |
16934 delay_variable_subst='$delay_variable_subst' | |
16935 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' | |
16936 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
16937 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
16938 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
16939 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
16940 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
16941 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
16942 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
16943 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
16944 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
16945 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
16946 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
16947 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
16948 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
16949 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
16950 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
16951 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
16952 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
16953 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
16954 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
16955 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
16956 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
16957 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
16958 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
16959 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
16960 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
16961 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
16962 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
16963 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
16964 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
16965 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
16966 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16967 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16968 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
16969 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
16970 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
16971 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
16972 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
16973 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
16974 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
16975 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
16976 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
16977 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
16978 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
16979 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
16980 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16981 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16982 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16983 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
16984 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
16985 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
16986 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
16987 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
16988 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
16989 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
16990 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
16991 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"`' | |
16992 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16993 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
16994 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
16995 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
16996 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
16997 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
16998 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
16999 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
17000 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
17001 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
17002 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
17003 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
17004 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
17005 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
17006 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
17007 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
17008 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
17009 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
17010 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17011 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
17012 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
17013 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17014 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17015 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
17016 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
17017 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17018 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17019 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17020 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
17021 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17022 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
17023 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17024 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17025 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17026 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
17027 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
17028 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
17029 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
17030 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
17031 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17032 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
17033 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
17034 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
17035 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
17036 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
17037 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
17038 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
17039 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
17040 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
17041 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
17042 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
17043 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
17044 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
17045 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
17046 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
17047 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17048 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
17049 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
17050 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
17051 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
17052 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
17053 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17054 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17055 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
17056 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
17057 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
17058 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
17059 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
17060 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
17061 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
17062 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
17063 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
17064 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
17065 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
17066 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
17067 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
17068 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
17069 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
17070 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
17071 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
17072 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
17073 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17074 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17075 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17076 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
17077 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
17078 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17079 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
17080 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
17081 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
17082 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
17083 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
17084 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
17085 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17086 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17087 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
17088 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17089 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17090 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17091 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17092 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17093 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17094 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
17095 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17096 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17097 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17098 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
17099 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
17100 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
17101 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
17102 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
17103 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
17104 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
17105 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
17106 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
17107 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
17108 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17109 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
17110 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
17111 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17112 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17113 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17114 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
17115 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
17116 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
17117 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
17118 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
17119 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
17120 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
17121 | |
17122 LTCC='$LTCC' | |
17123 LTCFLAGS='$LTCFLAGS' | |
17124 compiler='$compiler_DEFAULT' | |
17125 | |
17126 # A function that is used when there is no print builtin or printf. | |
17127 func_fallback_echo () | |
17128 { | |
17129 eval 'cat <<_LTECHO_EOF | |
17130 \$1 | |
17131 _LTECHO_EOF' | |
17132 } | |
17133 | |
17134 # Quote evaled strings. | |
17135 for var in AS \ | |
17136 DLLTOOL \ | |
17137 OBJDUMP \ | |
17138 SHELL \ | |
17139 ECHO \ | |
17140 SED \ | |
17141 GREP \ | |
17142 EGREP \ | |
17143 FGREP \ | |
17144 LD \ | |
17145 NM \ | |
17146 LN_S \ | |
17147 lt_SP2NL \ | |
17148 lt_NL2SP \ | |
17149 reload_flag \ | |
17150 deplibs_check_method \ | |
17151 file_magic_cmd \ | |
17152 file_magic_glob \ | |
17153 want_nocaseglob \ | |
17154 sharedlib_from_linklib_cmd \ | |
17155 AR \ | |
17156 AR_FLAGS \ | |
17157 archiver_list_spec \ | |
17158 STRIP \ | |
17159 RANLIB \ | |
17160 CC \ | |
17161 CFLAGS \ | |
17162 compiler \ | |
17163 lt_cv_sys_global_symbol_pipe \ | |
17164 lt_cv_sys_global_symbol_to_cdecl \ | |
17165 lt_cv_sys_global_symbol_to_c_name_address \ | |
17166 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
17167 nm_file_list_spec \ | |
17168 lt_prog_compiler_no_builtin_flag \ | |
17169 lt_prog_compiler_pic \ | |
17170 lt_prog_compiler_wl \ | |
17171 lt_prog_compiler_static \ | |
17172 lt_cv_prog_compiler_c_o \ | |
17173 need_locks \ | |
17174 MANIFEST_TOOL \ | |
17175 DSYMUTIL \ | |
17176 NMEDIT \ | |
17177 LIPO \ | |
17178 OTOOL \ | |
17179 OTOOL64 \ | |
17180 shrext_cmds \ | |
17181 export_dynamic_flag_spec \ | |
17182 whole_archive_flag_spec \ | |
17183 compiler_needs_object \ | |
17184 with_gnu_ld \ | |
17185 allow_undefined_flag \ | |
17186 no_undefined_flag \ | |
17187 hardcode_libdir_flag_spec \ | |
17188 hardcode_libdir_flag_spec_ld \ | |
17189 hardcode_libdir_separator \ | |
17190 exclude_expsyms \ | |
17191 include_expsyms \ | |
17192 file_list_spec \ | |
17193 variables_saved_for_relink \ | |
17194 libname_spec \ | |
17195 library_names_spec \ | |
17196 soname_spec \ | |
17197 install_override_mode \ | |
17198 finish_eval \ | |
17199 old_striplib \ | |
17200 striplib \ | |
17201 compiler_lib_search_dirs \ | |
17202 predep_objects \ | |
17203 postdep_objects \ | |
17204 predeps \ | |
17205 postdeps \ | |
17206 compiler_lib_search_path \ | |
17207 LD_CXX \ | |
17208 reload_flag_CXX \ | |
17209 compiler_CXX \ | |
17210 lt_prog_compiler_no_builtin_flag_CXX \ | |
17211 lt_prog_compiler_pic_CXX \ | |
17212 lt_prog_compiler_wl_CXX \ | |
17213 lt_prog_compiler_static_CXX \ | |
17214 lt_cv_prog_compiler_c_o_CXX \ | |
17215 export_dynamic_flag_spec_CXX \ | |
17216 whole_archive_flag_spec_CXX \ | |
17217 compiler_needs_object_CXX \ | |
17218 with_gnu_ld_CXX \ | |
17219 allow_undefined_flag_CXX \ | |
17220 no_undefined_flag_CXX \ | |
17221 hardcode_libdir_flag_spec_CXX \ | |
17222 hardcode_libdir_flag_spec_ld_CXX \ | |
17223 hardcode_libdir_separator_CXX \ | |
17224 exclude_expsyms_CXX \ | |
17225 include_expsyms_CXX \ | |
17226 file_list_spec_CXX \ | |
17227 compiler_lib_search_dirs_CXX \ | |
17228 predep_objects_CXX \ | |
17229 postdep_objects_CXX \ | |
17230 predeps_CXX \ | |
17231 postdeps_CXX \ | |
17232 compiler_lib_search_path_CXX; do | |
17233 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
17234 *[\\\\\\\`\\"\\\$]*) | |
17235 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17236 ;; | |
17237 *) | |
17238 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17239 ;; | |
17240 esac | |
17241 done | |
17242 | |
17243 # Double-quote double-evaled strings. | |
17244 for var in reload_cmds \ | |
17245 old_postinstall_cmds \ | |
17246 old_postuninstall_cmds \ | |
17247 old_archive_cmds \ | |
17248 extract_expsyms_cmds \ | |
17249 old_archive_from_new_cmds \ | |
17250 old_archive_from_expsyms_cmds \ | |
17251 archive_cmds \ | |
17252 archive_expsym_cmds \ | |
17253 module_cmds \ | |
17254 module_expsym_cmds \ | |
17255 export_symbols_cmds \ | |
17256 prelink_cmds \ | |
17257 postlink_cmds \ | |
17258 postinstall_cmds \ | |
17259 postuninstall_cmds \ | |
17260 finish_cmds \ | |
17261 sys_lib_search_path_spec \ | |
17262 sys_lib_dlsearch_path_spec \ | |
17263 reload_cmds_CXX \ | |
17264 old_archive_cmds_CXX \ | |
17265 old_archive_from_new_cmds_CXX \ | |
17266 old_archive_from_expsyms_cmds_CXX \ | |
17267 archive_cmds_CXX \ | |
17268 archive_expsym_cmds_CXX \ | |
17269 module_cmds_CXX \ | |
17270 module_expsym_cmds_CXX \ | |
17271 export_symbols_cmds_CXX \ | |
17272 prelink_cmds_CXX \ | |
17273 postlink_cmds_CXX; do | |
17274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
17275 *[\\\\\\\`\\"\\\$]*) | |
17276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17277 ;; | |
17278 *) | |
17279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17280 ;; | |
17281 esac | |
17282 done | |
17283 | |
17284 ac_aux_dir='$ac_aux_dir' | |
17285 xsi_shell='$xsi_shell' | |
17286 lt_shell_append='$lt_shell_append' | |
17287 | |
17288 # See if we are running on zsh, and set the options which allow our | |
17289 # commands through without removal of \ escapes INIT. | |
17290 if test -n "\${ZSH_VERSION+set}" ; then | |
17291 setopt NO_GLOB_SUBST | |
17292 fi | |
17293 | |
17294 | |
17295 PACKAGE='$PACKAGE' | |
17296 VERSION='$VERSION' | |
17297 TIMESTAMP='$TIMESTAMP' | |
17298 RM='$RM' | |
17299 ofile='$ofile' | |
17300 | |
17301 | |
17302 | |
17303 | |
17304 | |
17305 | |
17306 _ACEOF | |
17307 | |
17308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17309 | |
17310 # Handling of arguments. | |
17311 for ac_config_target in $ac_config_targets | |
17312 do | |
17313 case $ac_config_target in | |
17314 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
17315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17316 "portaudio-2.0.pc") CONFIG_FILES="$CONFIG_FILES portaudio-2.0.pc" ;; | |
17317 | |
17318 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
17319 esac | |
17320 done | |
17321 | |
17322 | |
17323 # If the user did not use the arguments to specify the items to instantiate, | |
17324 # then the envvar interface is used. Set only those that are not. | |
17325 # We use the long form for the default assignment because of an extremely | |
17326 # bizarre bug on SunOS 4.1.3. | |
17327 if $ac_need_defaults; then | |
17328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17330 fi | |
17331 | |
17332 # Have a temporary directory for convenience. Make it in the build tree | |
17333 # simply because there is no reason against having it here, and in addition, | |
17334 # creating and moving files from /tmp can sometimes cause problems. | |
17335 # Hook for its removal unless debugging. | |
17336 # Note that there is a small window in which the directory will not be cleaned: | |
17337 # after its creation but before its name has been assigned to `$tmp'. | |
17338 $debug || | |
17339 { | |
17340 tmp= ac_tmp= | |
17341 trap 'exit_status=$? | |
17342 : "${ac_tmp:=$tmp}" | |
17343 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
17344 ' 0 | |
17345 trap 'as_fn_exit 1' 1 2 13 15 | |
17346 } | |
17347 # Create a (secure) tmp directory for tmp files. | |
17348 | |
17349 { | |
17350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
17351 test -d "$tmp" | |
17352 } || | |
17353 { | |
17354 tmp=./conf$$-$RANDOM | |
17355 (umask 077 && mkdir "$tmp") | |
17356 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
17357 ac_tmp=$tmp | |
17358 | |
17359 # Set up the scripts for CONFIG_FILES section. | |
17360 # No need to generate them if there are no CONFIG_FILES. | |
17361 # This happens for instance with `./config.status config.h'. | |
17362 if test -n "$CONFIG_FILES"; then | |
17363 | |
17364 | |
17365 ac_cr=`echo X | tr X '\015'` | |
17366 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17367 # But we know of no other shell where ac_cr would be empty at this | |
17368 # point, so we can use a bashism as a fallback. | |
17369 if test "x$ac_cr" = x; then | |
17370 eval ac_cr=\$\'\\r\' | |
17371 fi | |
17372 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17373 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17374 ac_cs_awk_cr='\\r' | |
17375 else | |
17376 ac_cs_awk_cr=$ac_cr | |
17377 fi | |
17378 | |
17379 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
17380 _ACEOF | |
17381 | |
17382 | |
17383 { | |
17384 echo "cat >conf$$subs.awk <<_ACEOF" && | |
17385 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17386 echo "_ACEOF" | |
17387 } >conf$$subs.sh || | |
17388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17389 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
17390 ac_delim='%!_!# ' | |
17391 for ac_last_try in false false false false false :; do | |
17392 . ./conf$$subs.sh || | |
17393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17394 | |
17395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17396 if test $ac_delim_n = $ac_delim_num; then | |
17397 break | |
17398 elif $ac_last_try; then | |
17399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17400 else | |
17401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17402 fi | |
17403 done | |
17404 rm -f conf$$subs.sh | |
17405 | |
17406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17407 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
17408 _ACEOF | |
17409 sed -n ' | |
17410 h | |
17411 s/^/S["/; s/!.*/"]=/ | |
17412 p | |
17413 g | |
17414 s/^[^!]*!// | |
17415 :repl | |
17416 t repl | |
17417 s/'"$ac_delim"'$// | |
17418 t delim | |
17419 :nl | |
17420 h | |
17421 s/\(.\{148\}\)..*/\1/ | |
17422 t more1 | |
17423 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17424 p | |
17425 n | |
17426 b repl | |
17427 :more1 | |
17428 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17429 p | |
17430 g | |
17431 s/.\{148\}// | |
17432 t nl | |
17433 :delim | |
17434 h | |
17435 s/\(.\{148\}\)..*/\1/ | |
17436 t more2 | |
17437 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17438 p | |
17439 b | |
17440 :more2 | |
17441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17442 p | |
17443 g | |
17444 s/.\{148\}// | |
17445 t delim | |
17446 ' <conf$$subs.awk | sed ' | |
17447 /^[^""]/{ | |
17448 N | |
17449 s/\n// | |
17450 } | |
17451 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17452 rm -f conf$$subs.awk | |
17453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17454 _ACAWK | |
17455 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
17456 for (key in S) S_is_set[key] = 1 | |
17457 FS = "" | |
17458 | |
17459 } | |
17460 { | |
17461 line = $ 0 | |
17462 nfields = split(line, field, "@") | |
17463 substed = 0 | |
17464 len = length(field[1]) | |
17465 for (i = 2; i < nfields; i++) { | |
17466 key = field[i] | |
17467 keylen = length(key) | |
17468 if (S_is_set[key]) { | |
17469 value = S[key] | |
17470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17471 len += length(value) + length(field[++i]) | |
17472 substed = 1 | |
17473 } else | |
17474 len += 1 + keylen | |
17475 } | |
17476 | |
17477 print line | |
17478 } | |
17479 | |
17480 _ACAWK | |
17481 _ACEOF | |
17482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17485 else | |
17486 cat | |
17487 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
17488 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
17489 _ACEOF | |
17490 | |
17491 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
17492 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
17493 # trailing colons and then remove the whole line if VPATH becomes empty | |
17494 # (actually we leave an empty line to preserve line numbers). | |
17495 if test "x$srcdir" = x.; then | |
17496 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
17497 h | |
17498 s/// | |
17499 s/^/:/ | |
17500 s/[ ]*$/:/ | |
17501 s/:\$(srcdir):/:/g | |
17502 s/:\${srcdir}:/:/g | |
17503 s/:@srcdir@:/:/g | |
17504 s/^:*// | |
17505 s/:*$// | |
17506 x | |
17507 s/\(=[ ]*\).*/\1/ | |
17508 G | |
17509 s/\n// | |
17510 s/^[^=]*=[ ]*$// | |
17511 }' | |
17512 fi | |
17513 | |
17514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17515 fi # test -n "$CONFIG_FILES" | |
17516 | |
17517 | |
17518 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
17519 shift | |
17520 for ac_tag | |
17521 do | |
17522 case $ac_tag in | |
17523 :[FHLC]) ac_mode=$ac_tag; continue;; | |
17524 esac | |
17525 case $ac_mode$ac_tag in | |
17526 :[FHL]*:*);; | |
17527 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
17528 :[FH]-) ac_tag=-:-;; | |
17529 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17530 esac | |
17531 ac_save_IFS=$IFS | |
17532 IFS=: | |
17533 set x $ac_tag | |
17534 IFS=$ac_save_IFS | |
17535 shift | |
17536 ac_file=$1 | |
17537 shift | |
17538 | |
17539 case $ac_mode in | |
17540 :L) ac_source=$1;; | |
17541 :[FH]) | |
17542 ac_file_inputs= | |
17543 for ac_f | |
17544 do | |
17545 case $ac_f in | |
17546 -) ac_f="$ac_tmp/stdin";; | |
17547 *) # Look for the file first in the build tree, then in the source tree | |
17548 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17549 # because $ac_f cannot contain `:'. | |
17550 test -f "$ac_f" || | |
17551 case $ac_f in | |
17552 [\\/$]*) false;; | |
17553 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17554 esac || | |
17555 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
17556 esac | |
17557 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17558 as_fn_append ac_file_inputs " '$ac_f'" | |
17559 done | |
17560 | |
17561 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17562 # use $as_me), people would be surprised to read: | |
17563 # /* config.h. Generated by config.status. */ | |
17564 configure_input='Generated from '` | |
17565 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17566 `' by configure.' | |
17567 if test x"$ac_file" != x-; then | |
17568 configure_input="$ac_file. $configure_input" | |
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17570 $as_echo "$as_me: creating $ac_file" >&6;} | |
17571 fi | |
17572 # Neutralize special characters interpreted by sed in replacement strings. | |
17573 case $configure_input in #( | |
17574 *\&* | *\|* | *\\* ) | |
17575 ac_sed_conf_input=`$as_echo "$configure_input" | | |
17576 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17577 *) ac_sed_conf_input=$configure_input;; | |
17578 esac | |
17579 | |
17580 case $ac_tag in | |
17581 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
17582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
17583 esac | |
17584 ;; | |
17585 esac | |
17586 | |
17587 ac_dir=`$as_dirname -- "$ac_file" || | |
17588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17589 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17590 X"$ac_file" : 'X\(//\)$' \| \ | |
17591 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17592 $as_echo X"$ac_file" | | |
17593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17594 s//\1/ | |
17595 q | |
17596 } | |
17597 /^X\(\/\/\)[^/].*/{ | |
17598 s//\1/ | |
17599 q | |
17600 } | |
17601 /^X\(\/\/\)$/{ | |
17602 s//\1/ | |
17603 q | |
17604 } | |
17605 /^X\(\/\).*/{ | |
17606 s//\1/ | |
17607 q | |
17608 } | |
17609 s/.*/./; q'` | |
17610 as_dir="$ac_dir"; as_fn_mkdir_p | |
17611 ac_builddir=. | |
17612 | |
17613 case "$ac_dir" in | |
17614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17615 *) | |
17616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17617 # A ".." for each directory in $ac_dir_suffix. | |
17618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17619 case $ac_top_builddir_sub in | |
17620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17622 esac ;; | |
17623 esac | |
17624 ac_abs_top_builddir=$ac_pwd | |
17625 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17626 # for backward compatibility: | |
17627 ac_top_builddir=$ac_top_build_prefix | |
17628 | |
17629 case $srcdir in | |
17630 .) # We are building in place. | |
17631 ac_srcdir=. | |
17632 ac_top_srcdir=$ac_top_builddir_sub | |
17633 ac_abs_top_srcdir=$ac_pwd ;; | |
17634 [\\/]* | ?:[\\/]* ) # Absolute name. | |
17635 ac_srcdir=$srcdir$ac_dir_suffix; | |
17636 ac_top_srcdir=$srcdir | |
17637 ac_abs_top_srcdir=$srcdir ;; | |
17638 *) # Relative name. | |
17639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17640 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17642 esac | |
17643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
17644 | |
17645 | |
17646 case $ac_mode in | |
17647 :F) | |
17648 # | |
17649 # CONFIG_FILE | |
17650 # | |
17651 | |
17652 case $INSTALL in | |
17653 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17654 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17655 esac | |
17656 _ACEOF | |
17657 | |
17658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17659 # If the template does not know about datarootdir, expand it. | |
17660 # FIXME: This hack should be removed a few years after 2.60. | |
17661 ac_datarootdir_hack=; ac_datarootdir_seen= | |
17662 ac_sed_dataroot=' | |
17663 /datarootdir/ { | |
17664 p | |
17665 q | |
17666 } | |
17667 /@datadir@/p | |
17668 /@docdir@/p | |
17669 /@infodir@/p | |
17670 /@localedir@/p | |
17671 /@mandir@/p' | |
17672 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17673 *datarootdir*) ac_datarootdir_seen=yes;; | |
17674 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17676 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17677 _ACEOF | |
17678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17679 ac_datarootdir_hack=' | |
17680 s&@datadir@&$datadir&g | |
17681 s&@docdir@&$docdir&g | |
17682 s&@infodir@&$infodir&g | |
17683 s&@localedir@&$localedir&g | |
17684 s&@mandir@&$mandir&g | |
17685 s&\\\${datarootdir}&$datarootdir&g' ;; | |
17686 esac | |
17687 _ACEOF | |
17688 | |
17689 # Neutralize VPATH when `$srcdir' = `.'. | |
17690 # Shell code in configure.ac might set extrasub. | |
17691 # FIXME: do we really want to maintain this feature? | |
17692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17693 ac_sed_extra="$ac_vpsub | |
17694 $extrasub | |
17695 _ACEOF | |
17696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17697 :t | |
17698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17699 s|@configure_input@|$ac_sed_conf_input|;t t | |
17700 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17701 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17702 s&@srcdir@&$ac_srcdir&;t t | |
17703 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17704 s&@top_srcdir@&$ac_top_srcdir&;t t | |
17705 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17706 s&@builddir@&$ac_builddir&;t t | |
17707 s&@abs_builddir@&$ac_abs_builddir&;t t | |
17708 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17709 s&@INSTALL@&$ac_INSTALL&;t t | |
17710 $ac_datarootdir_hack | |
17711 " | |
17712 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
17713 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17714 | |
17715 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
17716 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
17717 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17718 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17720 which seems to be undefined. Please make sure it is defined" >&5 | |
17721 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17722 which seems to be undefined. Please make sure it is defined" >&2;} | |
17723 | |
17724 rm -f "$ac_tmp/stdin" | |
17725 case $ac_file in | |
17726 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
17727 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
17728 esac \ | |
17729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17730 ;; | |
17731 | |
17732 | |
17733 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
17734 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17735 ;; | |
17736 esac | |
17737 | |
17738 | |
17739 case $ac_file$ac_mode in | |
17740 "libtool":C) | |
17741 | |
17742 # See if we are running on zsh, and set the options which allow our | |
17743 # commands through without removal of \ escapes. | |
17744 if test -n "${ZSH_VERSION+set}" ; then | |
17745 setopt NO_GLOB_SUBST | |
17746 fi | |
17747 | |
17748 cfgfile="${ofile}T" | |
17749 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
17750 $RM "$cfgfile" | |
17751 | |
17752 cat <<_LT_EOF >> "$cfgfile" | |
17753 #! $SHELL | |
17754 | |
17755 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
17756 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
17757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17758 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17759 # | |
17760 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
17761 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
17762 # Inc. | |
17763 # Written by Gordon Matzigkeit, 1996 | |
17764 # | |
17765 # This file is part of GNU Libtool. | |
17766 # | |
17767 # GNU Libtool is free software; you can redistribute it and/or | |
17768 # modify it under the terms of the GNU General Public License as | |
17769 # published by the Free Software Foundation; either version 2 of | |
17770 # the License, or (at your option) any later version. | |
17771 # | |
17772 # As a special exception to the GNU General Public License, | |
17773 # if you distribute this file as part of a program or library that | |
17774 # is built using GNU Libtool, you may include this file under the | |
17775 # same distribution terms that you use for the rest of that program. | |
17776 # | |
17777 # GNU Libtool is distributed in the hope that it will be useful, | |
17778 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17780 # GNU General Public License for more details. | |
17781 # | |
17782 # You should have received a copy of the GNU General Public License | |
17783 # along with GNU Libtool; see the file COPYING. If not, a copy | |
17784 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
17785 # obtained by writing to the Free Software Foundation, Inc., | |
17786 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17787 | |
17788 | |
17789 # The names of the tagged configurations supported by this script. | |
17790 available_tags="CXX " | |
17791 | |
17792 # ### BEGIN LIBTOOL CONFIG | |
17793 | |
17794 # Assembler program. | |
17795 AS=$lt_AS | |
17796 | |
17797 # DLL creation program. | |
17798 DLLTOOL=$lt_DLLTOOL | |
17799 | |
17800 # Object dumper program. | |
17801 OBJDUMP=$lt_OBJDUMP | |
17802 | |
17803 # Which release of libtool.m4 was used? | |
17804 macro_version=$macro_version | |
17805 macro_revision=$macro_revision | |
17806 | |
17807 # Whether or not to build shared libraries. | |
17808 build_libtool_libs=$enable_shared | |
17809 | |
17810 # Whether or not to build static libraries. | |
17811 build_old_libs=$enable_static | |
17812 | |
17813 # What type of objects to build. | |
17814 pic_mode=$pic_mode | |
17815 | |
17816 # Whether or not to optimize for fast installation. | |
17817 fast_install=$enable_fast_install | |
17818 | |
17819 # Shell to use when invoking shell scripts. | |
17820 SHELL=$lt_SHELL | |
17821 | |
17822 # An echo program that protects backslashes. | |
17823 ECHO=$lt_ECHO | |
17824 | |
17825 # The host system. | |
17826 host_alias=$host_alias | |
17827 host=$host | |
17828 host_os=$host_os | |
17829 | |
17830 # The build system. | |
17831 build_alias=$build_alias | |
17832 build=$build | |
17833 build_os=$build_os | |
17834 | |
17835 # A sed program that does not truncate output. | |
17836 SED=$lt_SED | |
17837 | |
17838 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
17839 Xsed="\$SED -e 1s/^X//" | |
17840 | |
17841 # A grep program that handles long lines. | |
17842 GREP=$lt_GREP | |
17843 | |
17844 # An ERE matcher. | |
17845 EGREP=$lt_EGREP | |
17846 | |
17847 # A literal string matcher. | |
17848 FGREP=$lt_FGREP | |
17849 | |
17850 # A BSD- or MS-compatible name lister. | |
17851 NM=$lt_NM | |
17852 | |
17853 # Whether we need soft or hard links. | |
17854 LN_S=$lt_LN_S | |
17855 | |
17856 # What is the maximum length of a command? | |
17857 max_cmd_len=$max_cmd_len | |
17858 | |
17859 # Object file suffix (normally "o"). | |
17860 objext=$ac_objext | |
17861 | |
17862 # Executable file suffix (normally ""). | |
17863 exeext=$exeext | |
17864 | |
17865 # whether the shell understands "unset". | |
17866 lt_unset=$lt_unset | |
17867 | |
17868 # turn spaces into newlines. | |
17869 SP2NL=$lt_lt_SP2NL | |
17870 | |
17871 # turn newlines into spaces. | |
17872 NL2SP=$lt_lt_NL2SP | |
17873 | |
17874 # convert \$build file names to \$host format. | |
17875 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
17876 | |
17877 # convert \$build files to toolchain format. | |
17878 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
17879 | |
17880 # Method to check whether dependent libraries are shared objects. | |
17881 deplibs_check_method=$lt_deplibs_check_method | |
17882 | |
17883 # Command to use when deplibs_check_method = "file_magic". | |
17884 file_magic_cmd=$lt_file_magic_cmd | |
17885 | |
17886 # How to find potential files when deplibs_check_method = "file_magic". | |
17887 file_magic_glob=$lt_file_magic_glob | |
17888 | |
17889 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
17890 want_nocaseglob=$lt_want_nocaseglob | |
17891 | |
17892 # Command to associate shared and link libraries. | |
17893 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
17894 | |
17895 # The archiver. | |
17896 AR=$lt_AR | |
17897 | |
17898 # Flags to create an archive. | |
17899 AR_FLAGS=$lt_AR_FLAGS | |
17900 | |
17901 # How to feed a file listing to the archiver. | |
17902 archiver_list_spec=$lt_archiver_list_spec | |
17903 | |
17904 # A symbol stripping program. | |
17905 STRIP=$lt_STRIP | |
17906 | |
17907 # Commands used to install an old-style archive. | |
17908 RANLIB=$lt_RANLIB | |
17909 old_postinstall_cmds=$lt_old_postinstall_cmds | |
17910 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17911 | |
17912 # Whether to use a lock for old archive extraction. | |
17913 lock_old_archive_extraction=$lock_old_archive_extraction | |
17914 | |
17915 # A C compiler. | |
17916 LTCC=$lt_CC | |
17917 | |
17918 # LTCC compiler flags. | |
17919 LTCFLAGS=$lt_CFLAGS | |
17920 | |
17921 # Take the output of nm and produce a listing of raw symbols and C names. | |
17922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17923 | |
17924 # Transform the output of nm in a proper C declaration. | |
17925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17926 | |
17927 # Transform the output of nm in a C name address pair. | |
17928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17929 | |
17930 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
17931 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17932 | |
17933 # Specify filename containing input files for \$NM. | |
17934 nm_file_list_spec=$lt_nm_file_list_spec | |
17935 | |
17936 # The root where to search for dependent libraries,and in which our libraries should be installed. | |
17937 lt_sysroot=$lt_sysroot | |
17938 | |
17939 # The name of the directory that contains temporary libtool files. | |
17940 objdir=$objdir | |
17941 | |
17942 # Used to examine libraries when file_magic_cmd begins with "file". | |
17943 MAGIC_CMD=$MAGIC_CMD | |
17944 | |
17945 # Must we lock files when doing compilation? | |
17946 need_locks=$lt_need_locks | |
17947 | |
17948 # Manifest tool. | |
17949 MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
17950 | |
17951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
17952 DSYMUTIL=$lt_DSYMUTIL | |
17953 | |
17954 # Tool to change global to local symbols on Mac OS X. | |
17955 NMEDIT=$lt_NMEDIT | |
17956 | |
17957 # Tool to manipulate fat objects and archives on Mac OS X. | |
17958 LIPO=$lt_LIPO | |
17959 | |
17960 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
17961 OTOOL=$lt_OTOOL | |
17962 | |
17963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
17964 OTOOL64=$lt_OTOOL64 | |
17965 | |
17966 # Old archive suffix (normally "a"). | |
17967 libext=$libext | |
17968 | |
17969 # Shared library suffix (normally ".so"). | |
17970 shrext_cmds=$lt_shrext_cmds | |
17971 | |
17972 # The commands to extract the exported symbol list from a shared archive. | |
17973 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
17974 | |
17975 # Variables whose values should be saved in libtool wrapper scripts and | |
17976 # restored at link time. | |
17977 variables_saved_for_relink=$lt_variables_saved_for_relink | |
17978 | |
17979 # Do we need the "lib" prefix for modules? | |
17980 need_lib_prefix=$need_lib_prefix | |
17981 | |
17982 # Do we need a version for libraries? | |
17983 need_version=$need_version | |
17984 | |
17985 # Library versioning type. | |
17986 version_type=$version_type | |
17987 | |
17988 # Shared library runtime path variable. | |
17989 runpath_var=$runpath_var | |
17990 | |
17991 # Shared library path variable. | |
17992 shlibpath_var=$shlibpath_var | |
17993 | |
17994 # Is shlibpath searched before the hard-coded library search path? | |
17995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17996 | |
17997 # Format of library name prefix. | |
17998 libname_spec=$lt_libname_spec | |
17999 | |
18000 # List of archive names. First name is the real one, the rest are links. | |
18001 # The last name is the one that the linker finds with -lNAME | |
18002 library_names_spec=$lt_library_names_spec | |
18003 | |
18004 # The coded name of the library, if different from the real name. | |
18005 soname_spec=$lt_soname_spec | |
18006 | |
18007 # Permission mode override for installation of shared libraries. | |
18008 install_override_mode=$lt_install_override_mode | |
18009 | |
18010 # Command to use after installation of a shared archive. | |
18011 postinstall_cmds=$lt_postinstall_cmds | |
18012 | |
18013 # Command to use after uninstallation of a shared archive. | |
18014 postuninstall_cmds=$lt_postuninstall_cmds | |
18015 | |
18016 # Commands used to finish a libtool library installation in a directory. | |
18017 finish_cmds=$lt_finish_cmds | |
18018 | |
18019 # As "finish_cmds", except a single script fragment to be evaled but | |
18020 # not shown. | |
18021 finish_eval=$lt_finish_eval | |
18022 | |
18023 # Whether we should hardcode library paths into libraries. | |
18024 hardcode_into_libs=$hardcode_into_libs | |
18025 | |
18026 # Compile-time system search path for libraries. | |
18027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18028 | |
18029 # Run-time system search path for libraries. | |
18030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18031 | |
18032 # Whether dlopen is supported. | |
18033 dlopen_support=$enable_dlopen | |
18034 | |
18035 # Whether dlopen of programs is supported. | |
18036 dlopen_self=$enable_dlopen_self | |
18037 | |
18038 # Whether dlopen of statically linked programs is supported. | |
18039 dlopen_self_static=$enable_dlopen_self_static | |
18040 | |
18041 # Commands to strip libraries. | |
18042 old_striplib=$lt_old_striplib | |
18043 striplib=$lt_striplib | |
18044 | |
18045 | |
18046 # The linker used to build libraries. | |
18047 LD=$lt_LD | |
18048 | |
18049 # How to create reloadable object files. | |
18050 reload_flag=$lt_reload_flag | |
18051 reload_cmds=$lt_reload_cmds | |
18052 | |
18053 # Commands used to build an old-style archive. | |
18054 old_archive_cmds=$lt_old_archive_cmds | |
18055 | |
18056 # A language specific compiler. | |
18057 CC=$lt_compiler | |
18058 | |
18059 # Is the compiler the GNU compiler? | |
18060 with_gcc=$GCC | |
18061 | |
18062 # Compiler flag to turn off builtin functions. | |
18063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18064 | |
18065 # Additional compiler flags for building library objects. | |
18066 pic_flag=$lt_lt_prog_compiler_pic | |
18067 | |
18068 # How to pass a linker flag through the compiler. | |
18069 wl=$lt_lt_prog_compiler_wl | |
18070 | |
18071 # Compiler flag to prevent dynamic linking. | |
18072 link_static_flag=$lt_lt_prog_compiler_static | |
18073 | |
18074 # Does compiler simultaneously support -c and -o options? | |
18075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18076 | |
18077 # Whether or not to add -lc for building shared libraries. | |
18078 build_libtool_need_lc=$archive_cmds_need_lc | |
18079 | |
18080 # Whether or not to disallow shared libs when runtime libs are static. | |
18081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
18082 | |
18083 # Compiler flag to allow reflexive dlopens. | |
18084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18085 | |
18086 # Compiler flag to generate shared objects directly from archives. | |
18087 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18088 | |
18089 # Whether the compiler copes with passing no objects directly. | |
18090 compiler_needs_object=$lt_compiler_needs_object | |
18091 | |
18092 # Create an old-style archive from a shared archive. | |
18093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18094 | |
18095 # Create a temporary old-style archive to link instead of a shared archive. | |
18096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18097 | |
18098 # Commands used to build a shared archive. | |
18099 archive_cmds=$lt_archive_cmds | |
18100 archive_expsym_cmds=$lt_archive_expsym_cmds | |
18101 | |
18102 # Commands used to build a loadable module if different from building | |
18103 # a shared archive. | |
18104 module_cmds=$lt_module_cmds | |
18105 module_expsym_cmds=$lt_module_expsym_cmds | |
18106 | |
18107 # Whether we are building with GNU ld or not. | |
18108 with_gnu_ld=$lt_with_gnu_ld | |
18109 | |
18110 # Flag that allows shared libraries with undefined symbols to be built. | |
18111 allow_undefined_flag=$lt_allow_undefined_flag | |
18112 | |
18113 # Flag that enforces no undefined symbols. | |
18114 no_undefined_flag=$lt_no_undefined_flag | |
18115 | |
18116 # Flag to hardcode \$libdir into a binary during linking. | |
18117 # This must work even if \$libdir does not exist | |
18118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
18119 | |
18120 # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18121 # during linking. This must work even if \$libdir does not exist. | |
18122 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
18123 | |
18124 # Whether we need a single "-rpath" flag with a separated argument. | |
18125 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
18126 | |
18127 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18128 # DIR into the resulting binary. | |
18129 hardcode_direct=$hardcode_direct | |
18130 | |
18131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18132 # DIR into the resulting binary and the resulting library dependency is | |
18133 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18134 # library is relocated. | |
18135 hardcode_direct_absolute=$hardcode_direct_absolute | |
18136 | |
18137 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18138 # into the resulting binary. | |
18139 hardcode_minus_L=$hardcode_minus_L | |
18140 | |
18141 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18142 # into the resulting binary. | |
18143 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
18144 | |
18145 # Set to "yes" if building a shared library automatically hardcodes DIR | |
18146 # into the library and all subsequent libraries and executables linked | |
18147 # against it. | |
18148 hardcode_automatic=$hardcode_automatic | |
18149 | |
18150 # Set to yes if linker adds runtime paths of dependent libraries | |
18151 # to runtime path list. | |
18152 inherit_rpath=$inherit_rpath | |
18153 | |
18154 # Whether libtool must link a program against all its dependency libraries. | |
18155 link_all_deplibs=$link_all_deplibs | |
18156 | |
18157 # Set to "yes" if exported symbols are required. | |
18158 always_export_symbols=$always_export_symbols | |
18159 | |
18160 # The commands to list exported symbols. | |
18161 export_symbols_cmds=$lt_export_symbols_cmds | |
18162 | |
18163 # Symbols that should not be listed in the preloaded symbols. | |
18164 exclude_expsyms=$lt_exclude_expsyms | |
18165 | |
18166 # Symbols that must always be exported. | |
18167 include_expsyms=$lt_include_expsyms | |
18168 | |
18169 # Commands necessary for linking programs (against libraries) with templates. | |
18170 prelink_cmds=$lt_prelink_cmds | |
18171 | |
18172 # Commands necessary for finishing linking programs. | |
18173 postlink_cmds=$lt_postlink_cmds | |
18174 | |
18175 # Specify filename containing input files. | |
18176 file_list_spec=$lt_file_list_spec | |
18177 | |
18178 # How to hardcode a shared library path into an executable. | |
18179 hardcode_action=$hardcode_action | |
18180 | |
18181 # The directories searched by this compiler when creating a shared library. | |
18182 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
18183 | |
18184 # Dependencies to place before and after the objects being linked to | |
18185 # create a shared library. | |
18186 predep_objects=$lt_predep_objects | |
18187 postdep_objects=$lt_postdep_objects | |
18188 predeps=$lt_predeps | |
18189 postdeps=$lt_postdeps | |
18190 | |
18191 # The library search path used internally by the compiler when linking | |
18192 # a shared library. | |
18193 compiler_lib_search_path=$lt_compiler_lib_search_path | |
18194 | |
18195 # ### END LIBTOOL CONFIG | |
18196 | |
18197 _LT_EOF | |
18198 | |
18199 case $host_os in | |
18200 aix3*) | |
18201 cat <<\_LT_EOF >> "$cfgfile" | |
18202 # AIX sometimes has problems with the GCC collect2 program. For some | |
18203 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18204 # vanish in a puff of smoke. | |
18205 if test "X${COLLECT_NAMES+set}" != Xset; then | |
18206 COLLECT_NAMES= | |
18207 export COLLECT_NAMES | |
18208 fi | |
18209 _LT_EOF | |
18210 ;; | |
18211 esac | |
18212 | |
18213 | |
18214 ltmain="$ac_aux_dir/ltmain.sh" | |
18215 | |
18216 | |
18217 # We use sed instead of cat because bash on DJGPP gets confused if | |
18218 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18219 # text mode, it properly converts lines to CR/LF. This bash problem | |
18220 # is reportedly fixed, but why not run on old versions too? | |
18221 sed '$q' "$ltmain" >> "$cfgfile" \ | |
18222 || (rm -f "$cfgfile"; exit 1) | |
18223 | |
18224 if test x"$xsi_shell" = xyes; then | |
18225 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
18226 func_dirname ()\ | |
18227 {\ | |
18228 \ case ${1} in\ | |
18229 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
18230 \ * ) func_dirname_result="${3}" ;;\ | |
18231 \ esac\ | |
18232 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
18233 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18235 test 0 -eq $? || _lt_function_replace_fail=: | |
18236 | |
18237 | |
18238 sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
18239 func_basename ()\ | |
18240 {\ | |
18241 \ func_basename_result="${1##*/}"\ | |
18242 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
18243 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18245 test 0 -eq $? || _lt_function_replace_fail=: | |
18246 | |
18247 | |
18248 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
18249 func_dirname_and_basename ()\ | |
18250 {\ | |
18251 \ case ${1} in\ | |
18252 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
18253 \ * ) func_dirname_result="${3}" ;;\ | |
18254 \ esac\ | |
18255 \ func_basename_result="${1##*/}"\ | |
18256 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
18257 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18259 test 0 -eq $? || _lt_function_replace_fail=: | |
18260 | |
18261 | |
18262 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
18263 func_stripname ()\ | |
18264 {\ | |
18265 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
18266 \ # positional parameters, so assign one to ordinary parameter first.\ | |
18267 \ func_stripname_result=${3}\ | |
18268 \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
18269 \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
18270 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
18271 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18273 test 0 -eq $? || _lt_function_replace_fail=: | |
18274 | |
18275 | |
18276 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
18277 func_split_long_opt ()\ | |
18278 {\ | |
18279 \ func_split_long_opt_name=${1%%=*}\ | |
18280 \ func_split_long_opt_arg=${1#*=}\ | |
18281 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
18282 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18284 test 0 -eq $? || _lt_function_replace_fail=: | |
18285 | |
18286 | |
18287 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
18288 func_split_short_opt ()\ | |
18289 {\ | |
18290 \ func_split_short_opt_arg=${1#??}\ | |
18291 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
18292 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
18293 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18295 test 0 -eq $? || _lt_function_replace_fail=: | |
18296 | |
18297 | |
18298 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
18299 func_lo2o ()\ | |
18300 {\ | |
18301 \ case ${1} in\ | |
18302 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
18303 \ *) func_lo2o_result=${1} ;;\ | |
18304 \ esac\ | |
18305 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
18306 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18308 test 0 -eq $? || _lt_function_replace_fail=: | |
18309 | |
18310 | |
18311 sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
18312 func_xform ()\ | |
18313 {\ | |
18314 func_xform_result=${1%.*}.lo\ | |
18315 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
18316 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18318 test 0 -eq $? || _lt_function_replace_fail=: | |
18319 | |
18320 | |
18321 sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
18322 func_arith ()\ | |
18323 {\ | |
18324 func_arith_result=$(( $* ))\ | |
18325 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
18326 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18328 test 0 -eq $? || _lt_function_replace_fail=: | |
18329 | |
18330 | |
18331 sed -e '/^func_len ()$/,/^} # func_len /c\ | |
18332 func_len ()\ | |
18333 {\ | |
18334 func_len_result=${#1}\ | |
18335 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
18336 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18338 test 0 -eq $? || _lt_function_replace_fail=: | |
18339 | |
18340 fi | |
18341 | |
18342 if test x"$lt_shell_append" = xyes; then | |
18343 sed -e '/^func_append ()$/,/^} # func_append /c\ | |
18344 func_append ()\ | |
18345 {\ | |
18346 eval "${1}+=\\${2}"\ | |
18347 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
18348 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18350 test 0 -eq $? || _lt_function_replace_fail=: | |
18351 | |
18352 | |
18353 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
18354 func_append_quoted ()\ | |
18355 {\ | |
18356 \ func_quote_for_eval "${2}"\ | |
18357 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
18358 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
18359 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18361 test 0 -eq $? || _lt_function_replace_fail=: | |
18362 | |
18363 | |
18364 # Save a `func_append' function call where possible by direct use of '+=' | |
18365 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
18366 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18368 test 0 -eq $? || _lt_function_replace_fail=: | |
18369 else | |
18370 # Save a `func_append' function call even when '+=' is not available | |
18371 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
18372 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
18373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
18374 test 0 -eq $? || _lt_function_replace_fail=: | |
18375 fi | |
18376 | |
18377 if test x"$_lt_function_replace_fail" = x":"; then | |
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
18379 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
18380 fi | |
18381 | |
18382 | |
18383 mv -f "$cfgfile" "$ofile" || | |
18384 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18385 chmod +x "$ofile" | |
18386 | |
18387 | |
18388 cat <<_LT_EOF >> "$ofile" | |
18389 | |
18390 # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
18391 | |
18392 # The linker used to build libraries. | |
18393 LD=$lt_LD_CXX | |
18394 | |
18395 # How to create reloadable object files. | |
18396 reload_flag=$lt_reload_flag_CXX | |
18397 reload_cmds=$lt_reload_cmds_CXX | |
18398 | |
18399 # Commands used to build an old-style archive. | |
18400 old_archive_cmds=$lt_old_archive_cmds_CXX | |
18401 | |
18402 # A language specific compiler. | |
18403 CC=$lt_compiler_CXX | |
18404 | |
18405 # Is the compiler the GNU compiler? | |
18406 with_gcc=$GCC_CXX | |
18407 | |
18408 # Compiler flag to turn off builtin functions. | |
18409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
18410 | |
18411 # Additional compiler flags for building library objects. | |
18412 pic_flag=$lt_lt_prog_compiler_pic_CXX | |
18413 | |
18414 # How to pass a linker flag through the compiler. | |
18415 wl=$lt_lt_prog_compiler_wl_CXX | |
18416 | |
18417 # Compiler flag to prevent dynamic linking. | |
18418 link_static_flag=$lt_lt_prog_compiler_static_CXX | |
18419 | |
18420 # Does compiler simultaneously support -c and -o options? | |
18421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
18422 | |
18423 # Whether or not to add -lc for building shared libraries. | |
18424 build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
18425 | |
18426 # Whether or not to disallow shared libs when runtime libs are static. | |
18427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
18428 | |
18429 # Compiler flag to allow reflexive dlopens. | |
18430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
18431 | |
18432 # Compiler flag to generate shared objects directly from archives. | |
18433 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
18434 | |
18435 # Whether the compiler copes with passing no objects directly. | |
18436 compiler_needs_object=$lt_compiler_needs_object_CXX | |
18437 | |
18438 # Create an old-style archive from a shared archive. | |
18439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
18440 | |
18441 # Create a temporary old-style archive to link instead of a shared archive. | |
18442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
18443 | |
18444 # Commands used to build a shared archive. | |
18445 archive_cmds=$lt_archive_cmds_CXX | |
18446 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
18447 | |
18448 # Commands used to build a loadable module if different from building | |
18449 # a shared archive. | |
18450 module_cmds=$lt_module_cmds_CXX | |
18451 module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
18452 | |
18453 # Whether we are building with GNU ld or not. | |
18454 with_gnu_ld=$lt_with_gnu_ld_CXX | |
18455 | |
18456 # Flag that allows shared libraries with undefined symbols to be built. | |
18457 allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
18458 | |
18459 # Flag that enforces no undefined symbols. | |
18460 no_undefined_flag=$lt_no_undefined_flag_CXX | |
18461 | |
18462 # Flag to hardcode \$libdir into a binary during linking. | |
18463 # This must work even if \$libdir does not exist | |
18464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
18465 | |
18466 # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18467 # during linking. This must work even if \$libdir does not exist. | |
18468 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
18469 | |
18470 # Whether we need a single "-rpath" flag with a separated argument. | |
18471 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
18472 | |
18473 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18474 # DIR into the resulting binary. | |
18475 hardcode_direct=$hardcode_direct_CXX | |
18476 | |
18477 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18478 # DIR into the resulting binary and the resulting library dependency is | |
18479 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18480 # library is relocated. | |
18481 hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
18482 | |
18483 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18484 # into the resulting binary. | |
18485 hardcode_minus_L=$hardcode_minus_L_CXX | |
18486 | |
18487 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18488 # into the resulting binary. | |
18489 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
18490 | |
18491 # Set to "yes" if building a shared library automatically hardcodes DIR | |
18492 # into the library and all subsequent libraries and executables linked | |
18493 # against it. | |
18494 hardcode_automatic=$hardcode_automatic_CXX | |
18495 | |
18496 # Set to yes if linker adds runtime paths of dependent libraries | |
18497 # to runtime path list. | |
18498 inherit_rpath=$inherit_rpath_CXX | |
18499 | |
18500 # Whether libtool must link a program against all its dependency libraries. | |
18501 link_all_deplibs=$link_all_deplibs_CXX | |
18502 | |
18503 # Set to "yes" if exported symbols are required. | |
18504 always_export_symbols=$always_export_symbols_CXX | |
18505 | |
18506 # The commands to list exported symbols. | |
18507 export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
18508 | |
18509 # Symbols that should not be listed in the preloaded symbols. | |
18510 exclude_expsyms=$lt_exclude_expsyms_CXX | |
18511 | |
18512 # Symbols that must always be exported. | |
18513 include_expsyms=$lt_include_expsyms_CXX | |
18514 | |
18515 # Commands necessary for linking programs (against libraries) with templates. | |
18516 prelink_cmds=$lt_prelink_cmds_CXX | |
18517 | |
18518 # Commands necessary for finishing linking programs. | |
18519 postlink_cmds=$lt_postlink_cmds_CXX | |
18520 | |
18521 # Specify filename containing input files. | |
18522 file_list_spec=$lt_file_list_spec_CXX | |
18523 | |
18524 # How to hardcode a shared library path into an executable. | |
18525 hardcode_action=$hardcode_action_CXX | |
18526 | |
18527 # The directories searched by this compiler when creating a shared library. | |
18528 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
18529 | |
18530 # Dependencies to place before and after the objects being linked to | |
18531 # create a shared library. | |
18532 predep_objects=$lt_predep_objects_CXX | |
18533 postdep_objects=$lt_postdep_objects_CXX | |
18534 predeps=$lt_predeps_CXX | |
18535 postdeps=$lt_postdeps_CXX | |
18536 | |
18537 # The library search path used internally by the compiler when linking | |
18538 # a shared library. | |
18539 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
18540 | |
18541 # ### END LIBTOOL TAG CONFIG: CXX | |
18542 _LT_EOF | |
18543 | |
18544 ;; | |
18545 | |
18546 esac | |
18547 done # for ac_tag | |
18548 | |
18549 | |
18550 as_fn_exit 0 | |
18551 _ACEOF | |
18552 ac_clean_files=$ac_clean_files_save | |
18553 | |
18554 test $ac_write_fail = 0 || | |
18555 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
18556 | |
18557 | |
18558 # configure is writing to config.log, and then calls config.status. | |
18559 # config.status does its own redirection, appending to config.log. | |
18560 # Unfortunately, on DOS this fails, as config.log is still kept open | |
18561 # by configure, so config.status won't be able to write to it; its | |
18562 # output is simply discarded. So we exec the FD to /dev/null, | |
18563 # effectively closing config.log, so it can be properly (re)opened and | |
18564 # appended to by config.status. When coming back to configure, we | |
18565 # need to make the FD available again. | |
18566 if test "$no_create" != yes; then | |
18567 ac_cs_success=: | |
18568 ac_config_status_args= | |
18569 test "$silent" = yes && | |
18570 ac_config_status_args="$ac_config_status_args --quiet" | |
18571 exec 5>/dev/null | |
18572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18573 exec 5>>config.log | |
18574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18575 # would make configure fail if this is the last instruction. | |
18576 $ac_cs_success || as_fn_exit 1 | |
18577 fi | |
18578 | |
18579 # | |
18580 # CONFIG_SUBDIRS section. | |
18581 # | |
18582 if test "$no_recursion" != yes; then | |
18583 | |
18584 # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
18585 # so they do not pile up. | |
18586 ac_sub_configure_args= | |
18587 ac_prev= | |
18588 eval "set x $ac_configure_args" | |
18589 shift | |
18590 for ac_arg | |
18591 do | |
18592 if test -n "$ac_prev"; then | |
18593 ac_prev= | |
18594 continue | |
18595 fi | |
18596 case $ac_arg in | |
18597 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
18598 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18599 ac_prev=cache_file ;; | |
18600 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
18601 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
18602 | --c=*) | |
18603 ;; | |
18604 --config-cache | -C) | |
18605 ;; | |
18606 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18607 ac_prev=srcdir ;; | |
18608 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18609 ;; | |
18610 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
18611 ac_prev=prefix ;; | |
18612 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
18613 ;; | |
18614 --disable-option-checking) | |
18615 ;; | |
18616 *) | |
18617 case $ac_arg in | |
18618 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18619 esac | |
18620 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
18621 esac | |
18622 done | |
18623 | |
18624 # Always prepend --prefix to ensure using the same prefix | |
18625 # in subdir configurations. | |
18626 ac_arg="--prefix=$prefix" | |
18627 case $ac_arg in | |
18628 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18629 esac | |
18630 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
18631 | |
18632 # Pass --silent | |
18633 if test "$silent" = yes; then | |
18634 ac_sub_configure_args="--silent $ac_sub_configure_args" | |
18635 fi | |
18636 | |
18637 # Always prepend --disable-option-checking to silence warnings, since | |
18638 # different subdirs can have different --enable and --with options. | |
18639 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
18640 | |
18641 ac_popdir=`pwd` | |
18642 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
18643 | |
18644 # Do not complain, so a configure script can configure whichever | |
18645 # parts of a large source tree are present. | |
18646 test -d "$srcdir/$ac_dir" || continue | |
18647 | |
18648 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
18649 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
18650 $as_echo "$ac_msg" >&6 | |
18651 as_dir="$ac_dir"; as_fn_mkdir_p | |
18652 ac_builddir=. | |
18653 | |
18654 case "$ac_dir" in | |
18655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18656 *) | |
18657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18658 # A ".." for each directory in $ac_dir_suffix. | |
18659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18660 case $ac_top_builddir_sub in | |
18661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18663 esac ;; | |
18664 esac | |
18665 ac_abs_top_builddir=$ac_pwd | |
18666 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18667 # for backward compatibility: | |
18668 ac_top_builddir=$ac_top_build_prefix | |
18669 | |
18670 case $srcdir in | |
18671 .) # We are building in place. | |
18672 ac_srcdir=. | |
18673 ac_top_srcdir=$ac_top_builddir_sub | |
18674 ac_abs_top_srcdir=$ac_pwd ;; | |
18675 [\\/]* | ?:[\\/]* ) # Absolute name. | |
18676 ac_srcdir=$srcdir$ac_dir_suffix; | |
18677 ac_top_srcdir=$srcdir | |
18678 ac_abs_top_srcdir=$srcdir ;; | |
18679 *) # Relative name. | |
18680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18681 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
18683 esac | |
18684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
18685 | |
18686 | |
18687 cd "$ac_dir" | |
18688 | |
18689 # Check for guested configure; otherwise get Cygnus style configure. | |
18690 if test -f "$ac_srcdir/configure.gnu"; then | |
18691 ac_sub_configure=$ac_srcdir/configure.gnu | |
18692 elif test -f "$ac_srcdir/configure"; then | |
18693 ac_sub_configure=$ac_srcdir/configure | |
18694 elif test -f "$ac_srcdir/configure.in"; then | |
18695 # This should be Cygnus configure. | |
18696 ac_sub_configure=$ac_aux_dir/configure | |
18697 else | |
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
18699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
18700 ac_sub_configure= | |
18701 fi | |
18702 | |
18703 # The recursion is here. | |
18704 if test -n "$ac_sub_configure"; then | |
18705 # Make the cache file name correct relative to the subdirectory. | |
18706 case $cache_file in | |
18707 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
18708 *) # Relative name. | |
18709 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
18710 esac | |
18711 | |
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
18713 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
18714 # The eval makes quoting arguments work. | |
18715 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
18716 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
18717 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
18718 fi | |
18719 | |
18720 cd "$ac_popdir" | |
18721 done | |
18722 fi | |
18723 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
18725 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
18726 fi | |
18727 | |
18728 | |
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
18730 Configuration summary: | |
18731 | |
18732 Target ...................... $target | |
18733 C++ bindings ................ $enable_cxx | |
18734 Debug output ................ $debug_output" >&5 | |
18735 $as_echo " | |
18736 Configuration summary: | |
18737 | |
18738 Target ...................... $target | |
18739 C++ bindings ................ $enable_cxx | |
18740 Debug output ................ $debug_output" >&6; } | |
18741 | |
18742 case "$target_os" in *linux*) | |
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
18744 ALSA ........................ $have_alsa | |
18745 ASIHPI ...................... $have_asihpi" >&5 | |
18746 $as_echo " | |
18747 ALSA ........................ $have_alsa | |
18748 ASIHPI ...................... $have_asihpi" >&6; } | |
18749 ;; | |
18750 esac | |
18751 case "$target_os" in | |
18752 *mingw* | *cygwin*) | |
18753 test "x$with_directx" = "xyes" && with_directx="$with_directx (${with_dxdir})" | |
18754 test "x$with_wdmks" = "xyes" && with_wdmks="$with_wdmks (${with_dxdir})" | |
18755 test "x$with_asio" = "xyes" && with_asio="$with_asio (${with_asiodir})" | |
18756 test "x$with_wasapi" = "xyes" | |
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
18758 WMME ........................ $with_wmme | |
18759 DSound ...................... $with_directx | |
18760 ASIO ........................ $with_asio | |
18761 WASAPI ...................... $with_wasapi | |
18762 WDMKS ....................... $with_wdmks | |
18763 " >&5 | |
18764 $as_echo " | |
18765 WMME ........................ $with_wmme | |
18766 DSound ...................... $with_directx | |
18767 ASIO ........................ $with_asio | |
18768 WASAPI ...................... $with_wasapi | |
18769 WDMKS ....................... $with_wdmks | |
18770 " >&6; } | |
18771 ;; | |
18772 *darwin*) | |
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
18774 Mac debug flags ............. $enable_mac_debug | |
18775 " >&5 | |
18776 $as_echo " | |
18777 Mac debug flags ............. $enable_mac_debug | |
18778 " >&6; } | |
18779 ;; | |
18780 *) | |
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
18782 OSS ......................... $have_oss | |
18783 JACK ........................ $have_jack | |
18784 " >&5 | |
18785 $as_echo " | |
18786 OSS ......................... $have_oss | |
18787 JACK ........................ $have_jack | |
18788 " >&6; } | |
18789 ;; | |
18790 esac |