Mercurial > hg > sv-dependency-builds
comparison src/libvorbis-1.3.3/configure @ 1:05aa0afa9217
Bring in flac, ogg, vorbis
author | Chris Cannam |
---|---|
date | Tue, 19 Mar 2013 17:37:49 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:c7265573341e | 1:05aa0afa9217 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.68 for libvorbis 1.3.3. | |
4 # | |
5 # Report bugs to <vorbis-dev@xiph.org>. | |
6 # | |
7 # | |
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
10 # Foundation, Inc. | |
11 # | |
12 # | |
13 # This configure script is free software; the Free Software Foundation | |
14 # gives unlimited permission to copy, distribute and modify it. | |
15 ## -------------------- ## | |
16 ## M4sh Initialization. ## | |
17 ## -------------------- ## | |
18 | |
19 # Be more Bourne compatible | |
20 DUALCASE=1; export DUALCASE # for MKS sh | |
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 emulate sh | |
23 NULLCMD=: | |
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 # is contrary to our usage. Disable this feature. | |
26 alias -g '${1+"$@"}'='"$@"' | |
27 setopt NO_GLOB_SUBST | |
28 else | |
29 case `(set -o) 2>/dev/null` in #( | |
30 *posix*) : | |
31 set -o posix ;; #( | |
32 *) : | |
33 ;; | |
34 esac | |
35 fi | |
36 | |
37 | |
38 as_nl=' | |
39 ' | |
40 export as_nl | |
41 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 # but without wasting forks for bash or zsh. | |
47 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 as_echo='print -r --' | |
50 as_echo_n='print -rn --' | |
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 as_echo='printf %s\n' | |
53 as_echo_n='printf %s' | |
54 else | |
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 as_echo_n='/usr/ucb/echo -n' | |
58 else | |
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 as_echo_n_body='eval | |
61 arg=$1; | |
62 case $arg in #( | |
63 *"$as_nl"*) | |
64 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 esac; | |
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 ' | |
69 export as_echo_n_body | |
70 as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 fi | |
72 export as_echo_body | |
73 as_echo='sh -c $as_echo_body as_echo' | |
74 fi | |
75 | |
76 # The user is always right. | |
77 if test "${PATH_SEPARATOR+set}" != set; then | |
78 PATH_SEPARATOR=: | |
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 PATH_SEPARATOR=';' | |
82 } | |
83 fi | |
84 | |
85 | |
86 # IFS | |
87 # We need space, tab and new line, in precisely that order. Quoting is | |
88 # there to prevent editors from complaining about space-tab. | |
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 # splitting by setting IFS to empty value.) | |
91 IFS=" "" $as_nl" | |
92 | |
93 # Find who we are. Look in the path if we contain no directory separator. | |
94 as_myself= | |
95 case $0 in #(( | |
96 *[\\/]* ) as_myself=$0 ;; | |
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 for as_dir in $PATH | |
99 do | |
100 IFS=$as_save_IFS | |
101 test -z "$as_dir" && as_dir=. | |
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
103 done | |
104 IFS=$as_save_IFS | |
105 | |
106 ;; | |
107 esac | |
108 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 # in which case we are not to be found in the path. | |
110 if test "x$as_myself" = x; then | |
111 as_myself=$0 | |
112 fi | |
113 if test ! -f "$as_myself"; then | |
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 exit 1 | |
116 fi | |
117 | |
118 # Unset variables that we do not need and which cause bugs (e.g. in | |
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 # suppresses any "Segmentation fault" message there. '((' could | |
121 # trigger a bug in pdksh 5.2.14. | |
122 for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 do eval test x\${$as_var+set} = xset \ | |
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 done | |
126 PS1='$ ' | |
127 PS2='> ' | |
128 PS4='+ ' | |
129 | |
130 # NLS nuisances. | |
131 LC_ALL=C | |
132 export LC_ALL | |
133 LANGUAGE=C | |
134 export LANGUAGE | |
135 | |
136 # CDPATH. | |
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | |
139 if test "x$CONFIG_SHELL" = x; then | |
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 emulate sh | |
142 NULLCMD=: | |
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 # is contrary to our usage. Disable this feature. | |
145 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 setopt NO_GLOB_SUBST | |
147 else | |
148 case \`(set -o) 2>/dev/null\` in #( | |
149 *posix*) : | |
150 set -o posix ;; #( | |
151 *) : | |
152 ;; | |
153 esac | |
154 fi | |
155 " | |
156 as_required="as_fn_return () { (exit \$1); } | |
157 as_fn_success () { as_fn_return 0; } | |
158 as_fn_failure () { as_fn_return 1; } | |
159 as_fn_ret_success () { return 0; } | |
160 as_fn_ret_failure () { return 1; } | |
161 | |
162 exitcode=0 | |
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | |
169 else | |
170 exitcode=1; echo positional parameters were not saved. | |
171 fi | |
172 test x\$exitcode = x0 || exit 1" | |
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | |
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
182 PATH=/empty FPATH=/empty; export PATH FPATH | |
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
185 test \$(( 1 + 1 )) = 2 || exit 1" | |
186 if (eval "$as_required") 2>/dev/null; then : | |
187 as_have_required=yes | |
188 else | |
189 as_have_required=no | |
190 fi | |
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
192 | |
193 else | |
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
195 as_found=false | |
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
197 do | |
198 IFS=$as_save_IFS | |
199 test -z "$as_dir" && as_dir=. | |
200 as_found=: | |
201 case $as_dir in #( | |
202 /*) | |
203 for as_base in sh bash ksh sh5; do | |
204 # Try only shells that exist, to save several forks. | |
205 as_shell=$as_dir/$as_base | |
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
208 CONFIG_SHELL=$as_shell as_have_required=yes | |
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
210 break 2 | |
211 fi | |
212 fi | |
213 done;; | |
214 esac | |
215 as_found=false | |
216 done | |
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
219 CONFIG_SHELL=$SHELL as_have_required=yes | |
220 fi; } | |
221 IFS=$as_save_IFS | |
222 | |
223 | |
224 if test "x$CONFIG_SHELL" != x; then : | |
225 # We cannot yet assume a decent shell, so we have to provide a | |
226 # neutralization value for shells without unset; and this also | |
227 # works around shells that cannot unset nonexistent variables. | |
228 # Preserve -v and -x to the replacement shell. | |
229 BASH_ENV=/dev/null | |
230 ENV=/dev/null | |
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
232 export CONFIG_SHELL | |
233 case $- in # (((( | |
234 *v*x* | *x*v* ) as_opts=-vx ;; | |
235 *v* ) as_opts=-v ;; | |
236 *x* ) as_opts=-x ;; | |
237 * ) as_opts= ;; | |
238 esac | |
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
240 fi | |
241 | |
242 if test x$as_have_required = xno; then : | |
243 $as_echo "$0: This script requires a shell more modern than all" | |
244 $as_echo "$0: the shells that I found on your system." | |
245 if test x${ZSH_VERSION+set} = xset ; then | |
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
248 else | |
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
250 $0: vorbis-dev@xiph.org about your system, including any | |
251 $0: error possibly output before this message. Then install | |
252 $0: a modern shell, or manually run the script under such a | |
253 $0: shell if you do have one." | |
254 fi | |
255 exit 1 | |
256 fi | |
257 fi | |
258 fi | |
259 SHELL=${CONFIG_SHELL-/bin/sh} | |
260 export SHELL | |
261 # Unset more variables known to interfere with behavior of common tools. | |
262 CLICOLOR_FORCE= GREP_OPTIONS= | |
263 unset CLICOLOR_FORCE GREP_OPTIONS | |
264 | |
265 ## --------------------- ## | |
266 ## M4sh Shell Functions. ## | |
267 ## --------------------- ## | |
268 # as_fn_unset VAR | |
269 # --------------- | |
270 # Portably unset VAR. | |
271 as_fn_unset () | |
272 { | |
273 { eval $1=; unset $1;} | |
274 } | |
275 as_unset=as_fn_unset | |
276 | |
277 # as_fn_set_status STATUS | |
278 # ----------------------- | |
279 # Set $? to STATUS, without forking. | |
280 as_fn_set_status () | |
281 { | |
282 return $1 | |
283 } # as_fn_set_status | |
284 | |
285 # as_fn_exit STATUS | |
286 # ----------------- | |
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
288 as_fn_exit () | |
289 { | |
290 set +e | |
291 as_fn_set_status $1 | |
292 exit $1 | |
293 } # as_fn_exit | |
294 | |
295 # as_fn_mkdir_p | |
296 # ------------- | |
297 # Create "$as_dir" as a directory, including parents if necessary. | |
298 as_fn_mkdir_p () | |
299 { | |
300 | |
301 case $as_dir in #( | |
302 -*) as_dir=./$as_dir;; | |
303 esac | |
304 test -d "$as_dir" || eval $as_mkdir_p || { | |
305 as_dirs= | |
306 while :; do | |
307 case $as_dir in #( | |
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
309 *) as_qdir=$as_dir;; | |
310 esac | |
311 as_dirs="'$as_qdir' $as_dirs" | |
312 as_dir=`$as_dirname -- "$as_dir" || | |
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
314 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
315 X"$as_dir" : 'X\(//\)$' \| \ | |
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
317 $as_echo X"$as_dir" | | |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
319 s//\1/ | |
320 q | |
321 } | |
322 /^X\(\/\/\)[^/].*/{ | |
323 s//\1/ | |
324 q | |
325 } | |
326 /^X\(\/\/\)$/{ | |
327 s//\1/ | |
328 q | |
329 } | |
330 /^X\(\/\).*/{ | |
331 s//\1/ | |
332 q | |
333 } | |
334 s/.*/./; q'` | |
335 test -d "$as_dir" && break | |
336 done | |
337 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
339 | |
340 | |
341 } # as_fn_mkdir_p | |
342 # as_fn_append VAR VALUE | |
343 # ---------------------- | |
344 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
345 # advantage of any shell optimizations that allow amortized linear growth over | |
346 # repeated appends, instead of the typical quadratic growth present in naive | |
347 # implementations. | |
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
349 eval 'as_fn_append () | |
350 { | |
351 eval $1+=\$2 | |
352 }' | |
353 else | |
354 as_fn_append () | |
355 { | |
356 eval $1=\$$1\$2 | |
357 } | |
358 fi # as_fn_append | |
359 | |
360 # as_fn_arith ARG... | |
361 # ------------------ | |
362 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
364 # must be portable across $(()) and expr. | |
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
366 eval 'as_fn_arith () | |
367 { | |
368 as_val=$(( $* )) | |
369 }' | |
370 else | |
371 as_fn_arith () | |
372 { | |
373 as_val=`expr "$@" || test $? -eq 1` | |
374 } | |
375 fi # as_fn_arith | |
376 | |
377 | |
378 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
379 # ---------------------------------------- | |
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
382 # script with STATUS, using 1 if that was 0. | |
383 as_fn_error () | |
384 { | |
385 as_status=$1; test $as_status -eq 0 && as_status=1 | |
386 if test "$4"; then | |
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
389 fi | |
390 $as_echo "$as_me: error: $2" >&2 | |
391 as_fn_exit $as_status | |
392 } # as_fn_error | |
393 | |
394 if expr a : '\(a\)' >/dev/null 2>&1 && | |
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
396 as_expr=expr | |
397 else | |
398 as_expr=false | |
399 fi | |
400 | |
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
402 as_basename=basename | |
403 else | |
404 as_basename=false | |
405 fi | |
406 | |
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
408 as_dirname=dirname | |
409 else | |
410 as_dirname=false | |
411 fi | |
412 | |
413 as_me=`$as_basename -- "$0" || | |
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
415 X"$0" : 'X\(//\)$' \| \ | |
416 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
417 $as_echo X/"$0" | | |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
419 s//\1/ | |
420 q | |
421 } | |
422 /^X\/\(\/\/\)$/{ | |
423 s//\1/ | |
424 q | |
425 } | |
426 /^X\/\(\/\).*/{ | |
427 s//\1/ | |
428 q | |
429 } | |
430 s/.*/./; q'` | |
431 | |
432 # Avoid depending upon Character Ranges. | |
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
436 as_cr_digits='0123456789' | |
437 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
438 | |
439 | |
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
445 sed -n ' | |
446 p | |
447 /[$]LINENO/= | |
448 ' <$as_myself | | |
449 sed ' | |
450 s/[$]LINENO.*/&-/ | |
451 t lineno | |
452 b | |
453 :lineno | |
454 N | |
455 :loop | |
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
457 t loop | |
458 s/-\n.*// | |
459 ' >$as_me.lineno && | |
460 chmod +x "$as_me.lineno" || | |
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
462 | |
463 # Don't try to exec as it changes $[0], causing all sort of problems | |
464 # (the dirname of $[0] is not the place where we might find the | |
465 # original and so on. Autoconf is especially sensitive to this). | |
466 . "./$as_me.lineno" | |
467 # Exit status is that of the last command. | |
468 exit | |
469 } | |
470 | |
471 ECHO_C= ECHO_N= ECHO_T= | |
472 case `echo -n x` in #((((( | |
473 -n*) | |
474 case `echo 'xy\c'` in | |
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
476 xy) ECHO_C='\c';; | |
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
478 ECHO_T=' ';; | |
479 esac;; | |
480 *) | |
481 ECHO_N='-n';; | |
482 esac | |
483 | |
484 rm -f conf$$ conf$$.exe conf$$.file | |
485 if test -d conf$$.dir; then | |
486 rm -f conf$$.dir/conf$$.file | |
487 else | |
488 rm -f conf$$.dir | |
489 mkdir conf$$.dir 2>/dev/null | |
490 fi | |
491 if (echo >conf$$.file) 2>/dev/null; then | |
492 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
493 as_ln_s='ln -s' | |
494 # ... but there are two gotchas: | |
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
497 # In both cases, we have to default to `cp -p'. | |
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
499 as_ln_s='cp -p' | |
500 elif ln conf$$.file conf$$ 2>/dev/null; then | |
501 as_ln_s=ln | |
502 else | |
503 as_ln_s='cp -p' | |
504 fi | |
505 else | |
506 as_ln_s='cp -p' | |
507 fi | |
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
509 rmdir conf$$.dir 2>/dev/null | |
510 | |
511 if mkdir -p . 2>/dev/null; then | |
512 as_mkdir_p='mkdir -p "$as_dir"' | |
513 else | |
514 test -d ./-p && rmdir ./-p | |
515 as_mkdir_p=false | |
516 fi | |
517 | |
518 if test -x / >/dev/null 2>&1; then | |
519 as_test_x='test -x' | |
520 else | |
521 if ls -dL / >/dev/null 2>&1; then | |
522 as_ls_L_option=L | |
523 else | |
524 as_ls_L_option= | |
525 fi | |
526 as_test_x=' | |
527 eval sh -c '\'' | |
528 if test -d "$1"; then | |
529 test -d "$1/."; | |
530 else | |
531 case $1 in #( | |
532 -*)set "./$1";; | |
533 esac; | |
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
535 ???[sx]*):;;*)false;;esac;fi | |
536 '\'' sh | |
537 ' | |
538 fi | |
539 as_executable_p=$as_test_x | |
540 | |
541 # Sed expression to map a string onto a valid CPP name. | |
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
543 | |
544 # Sed expression to map a string onto a valid variable name. | |
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
546 | |
547 SHELL=${CONFIG_SHELL-/bin/sh} | |
548 | |
549 | |
550 test -n "$DJDIR" || exec 7<&0 </dev/null | |
551 exec 6>&1 | |
552 | |
553 # Name of the host. | |
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
555 # so uname gets run too. | |
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
557 | |
558 # | |
559 # Initializations. | |
560 # | |
561 ac_default_prefix=/usr/local | |
562 ac_clean_files= | |
563 ac_config_libobj_dir=. | |
564 LIBOBJS= | |
565 cross_compiling=no | |
566 subdirs= | |
567 MFLAGS= | |
568 MAKEFLAGS= | |
569 | |
570 # Identity of this package. | |
571 PACKAGE_NAME='libvorbis' | |
572 PACKAGE_TARNAME='libvorbis' | |
573 PACKAGE_VERSION='1.3.3' | |
574 PACKAGE_STRING='libvorbis 1.3.3' | |
575 PACKAGE_BUGREPORT='vorbis-dev@xiph.org' | |
576 PACKAGE_URL='' | |
577 | |
578 ac_unique_file="lib/mdct.c" | |
579 # Factoring default headers for most tests. | |
580 ac_includes_default="\ | |
581 #include <stdio.h> | |
582 #ifdef HAVE_SYS_TYPES_H | |
583 # include <sys/types.h> | |
584 #endif | |
585 #ifdef HAVE_SYS_STAT_H | |
586 # include <sys/stat.h> | |
587 #endif | |
588 #ifdef STDC_HEADERS | |
589 # include <stdlib.h> | |
590 # include <stddef.h> | |
591 #else | |
592 # ifdef HAVE_STDLIB_H | |
593 # include <stdlib.h> | |
594 # endif | |
595 #endif | |
596 #ifdef HAVE_STRING_H | |
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
598 # include <memory.h> | |
599 # endif | |
600 # include <string.h> | |
601 #endif | |
602 #ifdef HAVE_STRINGS_H | |
603 # include <strings.h> | |
604 #endif | |
605 #ifdef HAVE_INTTYPES_H | |
606 # include <inttypes.h> | |
607 #endif | |
608 #ifdef HAVE_STDINT_H | |
609 # include <stdint.h> | |
610 #endif | |
611 #ifdef HAVE_UNISTD_H | |
612 # include <unistd.h> | |
613 #endif" | |
614 | |
615 ac_subst_vars='am__EXEEXT_FALSE | |
616 am__EXEEXT_TRUE | |
617 LTLIBOBJS | |
618 LIBTOOL_DEPS | |
619 pthread_lib | |
620 PROFILE | |
621 DEBUG | |
622 VORBIS_LIBS | |
623 LIBOBJS | |
624 ALLOCA | |
625 OGG_LIBS | |
626 OGG_CFLAGS | |
627 PKG_CONFIG | |
628 BUILD_EXAMPLES_FALSE | |
629 BUILD_EXAMPLES_TRUE | |
630 BUILD_DOCS_FALSE | |
631 BUILD_DOCS_TRUE | |
632 HTLATEX | |
633 PDFLATEX | |
634 HAVE_DOXYGEN_FALSE | |
635 HAVE_DOXYGEN_TRUE | |
636 HAVE_DOXYGEN | |
637 OTOOL64 | |
638 OTOOL | |
639 LIPO | |
640 NMEDIT | |
641 DSYMUTIL | |
642 MANIFEST_TOOL | |
643 RANLIB | |
644 ac_ct_AR | |
645 AR | |
646 LN_S | |
647 NM | |
648 ac_ct_DUMPBIN | |
649 DUMPBIN | |
650 LD | |
651 FGREP | |
652 EGREP | |
653 GREP | |
654 SED | |
655 LIBTOOL | |
656 OBJDUMP | |
657 DLLTOOL | |
658 AS | |
659 CPP | |
660 am__fastdepCC_FALSE | |
661 am__fastdepCC_TRUE | |
662 CCDEPMODE | |
663 AMDEPBACKSLASH | |
664 AMDEP_FALSE | |
665 AMDEP_TRUE | |
666 am__quote | |
667 am__include | |
668 DEPDIR | |
669 OBJEXT | |
670 EXEEXT | |
671 ac_ct_CC | |
672 CPPFLAGS | |
673 LDFLAGS | |
674 CFLAGS | |
675 CC | |
676 VE_LIB_AGE | |
677 VE_LIB_REVISION | |
678 VE_LIB_CURRENT | |
679 VF_LIB_AGE | |
680 VF_LIB_REVISION | |
681 VF_LIB_CURRENT | |
682 V_LIB_AGE | |
683 V_LIB_REVISION | |
684 V_LIB_CURRENT | |
685 ACLOCAL_AMFLAGS | |
686 MAINT | |
687 MAINTAINER_MODE_FALSE | |
688 MAINTAINER_MODE_TRUE | |
689 am__untar | |
690 am__tar | |
691 AMTAR | |
692 am__leading_dot | |
693 SET_MAKE | |
694 AWK | |
695 mkdir_p | |
696 MKDIR_P | |
697 INSTALL_STRIP_PROGRAM | |
698 STRIP | |
699 install_sh | |
700 MAKEINFO | |
701 AUTOHEADER | |
702 AUTOMAKE | |
703 AUTOCONF | |
704 ACLOCAL | |
705 VERSION | |
706 PACKAGE | |
707 CYGPATH_W | |
708 am__isrc | |
709 INSTALL_DATA | |
710 INSTALL_SCRIPT | |
711 INSTALL_PROGRAM | |
712 target_os | |
713 target_vendor | |
714 target_cpu | |
715 target | |
716 host_os | |
717 host_vendor | |
718 host_cpu | |
719 host | |
720 build_os | |
721 build_vendor | |
722 build_cpu | |
723 build | |
724 target_alias | |
725 host_alias | |
726 build_alias | |
727 LIBS | |
728 ECHO_T | |
729 ECHO_N | |
730 ECHO_C | |
731 DEFS | |
732 mandir | |
733 localedir | |
734 libdir | |
735 psdir | |
736 pdfdir | |
737 dvidir | |
738 htmldir | |
739 infodir | |
740 docdir | |
741 oldincludedir | |
742 includedir | |
743 localstatedir | |
744 sharedstatedir | |
745 sysconfdir | |
746 datadir | |
747 datarootdir | |
748 libexecdir | |
749 sbindir | |
750 bindir | |
751 program_transform_name | |
752 prefix | |
753 exec_prefix | |
754 PACKAGE_URL | |
755 PACKAGE_BUGREPORT | |
756 PACKAGE_STRING | |
757 PACKAGE_VERSION | |
758 PACKAGE_TARNAME | |
759 PACKAGE_NAME | |
760 PATH_SEPARATOR | |
761 SHELL' | |
762 ac_subst_files='' | |
763 ac_user_opts=' | |
764 enable_option_checking | |
765 enable_maintainer_mode | |
766 enable_dependency_tracking | |
767 enable_shared | |
768 enable_static | |
769 with_pic | |
770 enable_fast_install | |
771 with_gnu_ld | |
772 with_sysroot | |
773 enable_libtool_lock | |
774 enable_docs | |
775 enable_examples | |
776 with_ogg | |
777 with_ogg_libraries | |
778 with_ogg_includes | |
779 enable_oggtest | |
780 ' | |
781 ac_precious_vars='build_alias | |
782 host_alias | |
783 target_alias | |
784 CC | |
785 CFLAGS | |
786 LDFLAGS | |
787 LIBS | |
788 CPPFLAGS | |
789 CPP | |
790 PKG_CONFIG | |
791 OGG_CFLAGS | |
792 OGG_LIBS' | |
793 | |
794 | |
795 # Initialize some variables set by options. | |
796 ac_init_help= | |
797 ac_init_version=false | |
798 ac_unrecognized_opts= | |
799 ac_unrecognized_sep= | |
800 # The variables have the same names as the options, with | |
801 # dashes changed to underlines. | |
802 cache_file=/dev/null | |
803 exec_prefix=NONE | |
804 no_create= | |
805 no_recursion= | |
806 prefix=NONE | |
807 program_prefix=NONE | |
808 program_suffix=NONE | |
809 program_transform_name=s,x,x, | |
810 silent= | |
811 site= | |
812 srcdir= | |
813 verbose= | |
814 x_includes=NONE | |
815 x_libraries=NONE | |
816 | |
817 # Installation directory options. | |
818 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
819 # and all the variables that are supposed to be based on exec_prefix | |
820 # by default will actually change. | |
821 # Use braces instead of parens because sh, perl, etc. also accept them. | |
822 # (The list follows the same order as the GNU Coding Standards.) | |
823 bindir='${exec_prefix}/bin' | |
824 sbindir='${exec_prefix}/sbin' | |
825 libexecdir='${exec_prefix}/libexec' | |
826 datarootdir='${prefix}/share' | |
827 datadir='${datarootdir}' | |
828 sysconfdir='${prefix}/etc' | |
829 sharedstatedir='${prefix}/com' | |
830 localstatedir='${prefix}/var' | |
831 includedir='${prefix}/include' | |
832 oldincludedir='/usr/include' | |
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
834 infodir='${datarootdir}/info' | |
835 htmldir='${docdir}' | |
836 dvidir='${docdir}' | |
837 pdfdir='${docdir}' | |
838 psdir='${docdir}' | |
839 libdir='${exec_prefix}/lib' | |
840 localedir='${datarootdir}/locale' | |
841 mandir='${datarootdir}/man' | |
842 | |
843 ac_prev= | |
844 ac_dashdash= | |
845 for ac_option | |
846 do | |
847 # If the previous option needs an argument, assign it. | |
848 if test -n "$ac_prev"; then | |
849 eval $ac_prev=\$ac_option | |
850 ac_prev= | |
851 continue | |
852 fi | |
853 | |
854 case $ac_option in | |
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
856 *=) ac_optarg= ;; | |
857 *) ac_optarg=yes ;; | |
858 esac | |
859 | |
860 # Accept the important Cygnus configure options, so we can diagnose typos. | |
861 | |
862 case $ac_dashdash$ac_option in | |
863 --) | |
864 ac_dashdash=yes ;; | |
865 | |
866 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
867 ac_prev=bindir ;; | |
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
869 bindir=$ac_optarg ;; | |
870 | |
871 -build | --build | --buil | --bui | --bu) | |
872 ac_prev=build_alias ;; | |
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
874 build_alias=$ac_optarg ;; | |
875 | |
876 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
878 ac_prev=cache_file ;; | |
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
881 cache_file=$ac_optarg ;; | |
882 | |
883 --config-cache | -C) | |
884 cache_file=config.cache ;; | |
885 | |
886 -datadir | --datadir | --datadi | --datad) | |
887 ac_prev=datadir ;; | |
888 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
889 datadir=$ac_optarg ;; | |
890 | |
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
892 | --dataroo | --dataro | --datar) | |
893 ac_prev=datarootdir ;; | |
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
896 datarootdir=$ac_optarg ;; | |
897 | |
898 -disable-* | --disable-*) | |
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
900 # Reject names that are not valid shell variable names. | |
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
902 as_fn_error $? "invalid feature name: $ac_useropt" | |
903 ac_useropt_orig=$ac_useropt | |
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
905 case $ac_user_opts in | |
906 *" | |
907 "enable_$ac_useropt" | |
908 "*) ;; | |
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
910 ac_unrecognized_sep=', ';; | |
911 esac | |
912 eval enable_$ac_useropt=no ;; | |
913 | |
914 -docdir | --docdir | --docdi | --doc | --do) | |
915 ac_prev=docdir ;; | |
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
917 docdir=$ac_optarg ;; | |
918 | |
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
920 ac_prev=dvidir ;; | |
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
922 dvidir=$ac_optarg ;; | |
923 | |
924 -enable-* | --enable-*) | |
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
926 # Reject names that are not valid shell variable names. | |
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
928 as_fn_error $? "invalid feature name: $ac_useropt" | |
929 ac_useropt_orig=$ac_useropt | |
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
931 case $ac_user_opts in | |
932 *" | |
933 "enable_$ac_useropt" | |
934 "*) ;; | |
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
936 ac_unrecognized_sep=', ';; | |
937 esac | |
938 eval enable_$ac_useropt=\$ac_optarg ;; | |
939 | |
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
942 | --exec | --exe | --ex) | |
943 ac_prev=exec_prefix ;; | |
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
946 | --exec=* | --exe=* | --ex=*) | |
947 exec_prefix=$ac_optarg ;; | |
948 | |
949 -gas | --gas | --ga | --g) | |
950 # Obsolete; use --with-gas. | |
951 with_gas=yes ;; | |
952 | |
953 -help | --help | --hel | --he | -h) | |
954 ac_init_help=long ;; | |
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
956 ac_init_help=recursive ;; | |
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
958 ac_init_help=short ;; | |
959 | |
960 -host | --host | --hos | --ho) | |
961 ac_prev=host_alias ;; | |
962 -host=* | --host=* | --hos=* | --ho=*) | |
963 host_alias=$ac_optarg ;; | |
964 | |
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
966 ac_prev=htmldir ;; | |
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
968 | --ht=*) | |
969 htmldir=$ac_optarg ;; | |
970 | |
971 -includedir | --includedir | --includedi | --included | --include \ | |
972 | --includ | --inclu | --incl | --inc) | |
973 ac_prev=includedir ;; | |
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
975 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
976 includedir=$ac_optarg ;; | |
977 | |
978 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
979 ac_prev=infodir ;; | |
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
981 infodir=$ac_optarg ;; | |
982 | |
983 -libdir | --libdir | --libdi | --libd) | |
984 ac_prev=libdir ;; | |
985 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
986 libdir=$ac_optarg ;; | |
987 | |
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
989 | --libexe | --libex | --libe) | |
990 ac_prev=libexecdir ;; | |
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
992 | --libexe=* | --libex=* | --libe=*) | |
993 libexecdir=$ac_optarg ;; | |
994 | |
995 -localedir | --localedir | --localedi | --localed | --locale) | |
996 ac_prev=localedir ;; | |
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
998 localedir=$ac_optarg ;; | |
999 | |
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1001 | --localstate | --localstat | --localsta | --localst | --locals) | |
1002 ac_prev=localstatedir ;; | |
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1005 localstatedir=$ac_optarg ;; | |
1006 | |
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1008 ac_prev=mandir ;; | |
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1010 mandir=$ac_optarg ;; | |
1011 | |
1012 -nfp | --nfp | --nf) | |
1013 # Obsolete; use --without-fp. | |
1014 with_fp=no ;; | |
1015 | |
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1017 | --no-cr | --no-c | -n) | |
1018 no_create=yes ;; | |
1019 | |
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1022 no_recursion=yes ;; | |
1023 | |
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1026 | --oldin | --oldi | --old | --ol | --o) | |
1027 ac_prev=oldincludedir ;; | |
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1031 oldincludedir=$ac_optarg ;; | |
1032 | |
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1034 ac_prev=prefix ;; | |
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1036 prefix=$ac_optarg ;; | |
1037 | |
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1039 | --program-pre | --program-pr | --program-p) | |
1040 ac_prev=program_prefix ;; | |
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1043 program_prefix=$ac_optarg ;; | |
1044 | |
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1046 | --program-suf | --program-su | --program-s) | |
1047 ac_prev=program_suffix ;; | |
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1050 program_suffix=$ac_optarg ;; | |
1051 | |
1052 -program-transform-name | --program-transform-name \ | |
1053 | --program-transform-nam | --program-transform-na \ | |
1054 | --program-transform-n | --program-transform- \ | |
1055 | --program-transform | --program-transfor \ | |
1056 | --program-transfo | --program-transf \ | |
1057 | --program-trans | --program-tran \ | |
1058 | --progr-tra | --program-tr | --program-t) | |
1059 ac_prev=program_transform_name ;; | |
1060 -program-transform-name=* | --program-transform-name=* \ | |
1061 | --program-transform-nam=* | --program-transform-na=* \ | |
1062 | --program-transform-n=* | --program-transform-=* \ | |
1063 | --program-transform=* | --program-transfor=* \ | |
1064 | --program-transfo=* | --program-transf=* \ | |
1065 | --program-trans=* | --program-tran=* \ | |
1066 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1067 program_transform_name=$ac_optarg ;; | |
1068 | |
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1070 ac_prev=pdfdir ;; | |
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1072 pdfdir=$ac_optarg ;; | |
1073 | |
1074 -psdir | --psdir | --psdi | --psd | --ps) | |
1075 ac_prev=psdir ;; | |
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1077 psdir=$ac_optarg ;; | |
1078 | |
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1080 | -silent | --silent | --silen | --sile | --sil) | |
1081 silent=yes ;; | |
1082 | |
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1084 ac_prev=sbindir ;; | |
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1086 | --sbi=* | --sb=*) | |
1087 sbindir=$ac_optarg ;; | |
1088 | |
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1091 | --sharedst | --shareds | --shared | --share | --shar \ | |
1092 | --sha | --sh) | |
1093 ac_prev=sharedstatedir ;; | |
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1097 | --sha=* | --sh=*) | |
1098 sharedstatedir=$ac_optarg ;; | |
1099 | |
1100 -site | --site | --sit) | |
1101 ac_prev=site ;; | |
1102 -site=* | --site=* | --sit=*) | |
1103 site=$ac_optarg ;; | |
1104 | |
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1106 ac_prev=srcdir ;; | |
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1108 srcdir=$ac_optarg ;; | |
1109 | |
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1111 | --syscon | --sysco | --sysc | --sys | --sy) | |
1112 ac_prev=sysconfdir ;; | |
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1115 sysconfdir=$ac_optarg ;; | |
1116 | |
1117 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1118 ac_prev=target_alias ;; | |
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1120 target_alias=$ac_optarg ;; | |
1121 | |
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1123 verbose=yes ;; | |
1124 | |
1125 -version | --version | --versio | --versi | --vers | -V) | |
1126 ac_init_version=: ;; | |
1127 | |
1128 -with-* | --with-*) | |
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1130 # Reject names that are not valid shell variable names. | |
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1132 as_fn_error $? "invalid package name: $ac_useropt" | |
1133 ac_useropt_orig=$ac_useropt | |
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1135 case $ac_user_opts in | |
1136 *" | |
1137 "with_$ac_useropt" | |
1138 "*) ;; | |
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1140 ac_unrecognized_sep=', ';; | |
1141 esac | |
1142 eval with_$ac_useropt=\$ac_optarg ;; | |
1143 | |
1144 -without-* | --without-*) | |
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1146 # Reject names that are not valid shell variable names. | |
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1148 as_fn_error $? "invalid package name: $ac_useropt" | |
1149 ac_useropt_orig=$ac_useropt | |
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1151 case $ac_user_opts in | |
1152 *" | |
1153 "with_$ac_useropt" | |
1154 "*) ;; | |
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1156 ac_unrecognized_sep=', ';; | |
1157 esac | |
1158 eval with_$ac_useropt=no ;; | |
1159 | |
1160 --x) | |
1161 # Obsolete; use --with-x. | |
1162 with_x=yes ;; | |
1163 | |
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1165 | --x-incl | --x-inc | --x-in | --x-i) | |
1166 ac_prev=x_includes ;; | |
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1169 x_includes=$ac_optarg ;; | |
1170 | |
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1173 ac_prev=x_libraries ;; | |
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1176 x_libraries=$ac_optarg ;; | |
1177 | |
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1179 Try \`$0 --help' for more information" | |
1180 ;; | |
1181 | |
1182 *=*) | |
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1184 # Reject names that are not valid shell variable names. | |
1185 case $ac_envvar in #( | |
1186 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1188 esac | |
1189 eval $ac_envvar=\$ac_optarg | |
1190 export $ac_envvar ;; | |
1191 | |
1192 *) | |
1193 # FIXME: should be removed in autoconf 3.0. | |
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1198 ;; | |
1199 | |
1200 esac | |
1201 done | |
1202 | |
1203 if test -n "$ac_prev"; then | |
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1205 as_fn_error $? "missing argument to $ac_option" | |
1206 fi | |
1207 | |
1208 if test -n "$ac_unrecognized_opts"; then | |
1209 case $enable_option_checking in | |
1210 no) ;; | |
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1213 esac | |
1214 fi | |
1215 | |
1216 # Check all directory arguments for consistency. | |
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1218 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1220 libdir localedir mandir | |
1221 do | |
1222 eval ac_val=\$$ac_var | |
1223 # Remove trailing slashes. | |
1224 case $ac_val in | |
1225 */ ) | |
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1227 eval $ac_var=\$ac_val;; | |
1228 esac | |
1229 # Be sure to have absolute directory names. | |
1230 case $ac_val in | |
1231 [\\/$]* | ?:[\\/]* ) continue;; | |
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1233 esac | |
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1235 done | |
1236 | |
1237 # There might be people who depend on the old broken behavior: `$host' | |
1238 # used to hold the argument of --host etc. | |
1239 # FIXME: To remove some day. | |
1240 build=$build_alias | |
1241 host=$host_alias | |
1242 target=$target_alias | |
1243 | |
1244 # FIXME: To remove some day. | |
1245 if test "x$host_alias" != x; then | |
1246 if test "x$build_alias" = x; then | |
1247 cross_compiling=maybe | |
1248 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1249 If a cross compiler is detected then cross compile mode will be used" >&2 | |
1250 elif test "x$build_alias" != "x$host_alias"; then | |
1251 cross_compiling=yes | |
1252 fi | |
1253 fi | |
1254 | |
1255 ac_tool_prefix= | |
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1257 | |
1258 test "$silent" = yes && exec 6>/dev/null | |
1259 | |
1260 | |
1261 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1262 ac_ls_di=`ls -di .` && | |
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1264 as_fn_error $? "working directory cannot be determined" | |
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1266 as_fn_error $? "pwd does not report name of working directory" | |
1267 | |
1268 | |
1269 # Find the source files, if location was not specified. | |
1270 if test -z "$srcdir"; then | |
1271 ac_srcdir_defaulted=yes | |
1272 # Try the directory containing this script, then the parent directory. | |
1273 ac_confdir=`$as_dirname -- "$as_myself" || | |
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1275 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1276 X"$as_myself" : 'X\(//\)$' \| \ | |
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1278 $as_echo X"$as_myself" | | |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1280 s//\1/ | |
1281 q | |
1282 } | |
1283 /^X\(\/\/\)[^/].*/{ | |
1284 s//\1/ | |
1285 q | |
1286 } | |
1287 /^X\(\/\/\)$/{ | |
1288 s//\1/ | |
1289 q | |
1290 } | |
1291 /^X\(\/\).*/{ | |
1292 s//\1/ | |
1293 q | |
1294 } | |
1295 s/.*/./; q'` | |
1296 srcdir=$ac_confdir | |
1297 if test ! -r "$srcdir/$ac_unique_file"; then | |
1298 srcdir=.. | |
1299 fi | |
1300 else | |
1301 ac_srcdir_defaulted=no | |
1302 fi | |
1303 if test ! -r "$srcdir/$ac_unique_file"; then | |
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1306 fi | |
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1308 ac_abs_confdir=`( | |
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1310 pwd)` | |
1311 # When building in place, set srcdir=. | |
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1313 srcdir=. | |
1314 fi | |
1315 # Remove unnecessary trailing slashes from srcdir. | |
1316 # Double slashes in file names in object file debugging info | |
1317 # mess up M-x gdb in Emacs. | |
1318 case $srcdir in | |
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1320 esac | |
1321 for ac_var in $ac_precious_vars; do | |
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1323 eval ac_env_${ac_var}_value=\$${ac_var} | |
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1326 done | |
1327 | |
1328 # | |
1329 # Report the --help message. | |
1330 # | |
1331 if test "$ac_init_help" = "long"; then | |
1332 # Omit some internal or obsolete options to make the list less imposing. | |
1333 # This message is too long to be a string in the A/UX 3.1 sh. | |
1334 cat <<_ACEOF | |
1335 \`configure' configures libvorbis 1.3.3 to adapt to many kinds of systems. | |
1336 | |
1337 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1338 | |
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1340 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1341 | |
1342 Defaults for the options are specified in brackets. | |
1343 | |
1344 Configuration: | |
1345 -h, --help display this help and exit | |
1346 --help=short display options specific to this package | |
1347 --help=recursive display the short help of all the included packages | |
1348 -V, --version display version information and exit | |
1349 -q, --quiet, --silent do not print \`checking ...' messages | |
1350 --cache-file=FILE cache test results in FILE [disabled] | |
1351 -C, --config-cache alias for \`--cache-file=config.cache' | |
1352 -n, --no-create do not create output files | |
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1354 | |
1355 Installation directories: | |
1356 --prefix=PREFIX install architecture-independent files in PREFIX | |
1357 [$ac_default_prefix] | |
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1359 [PREFIX] | |
1360 | |
1361 By default, \`make install' will install all the files in | |
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1364 for instance \`--prefix=\$HOME'. | |
1365 | |
1366 For better control, use the options below. | |
1367 | |
1368 Fine tuning of the installation directories: | |
1369 --bindir=DIR user executables [EPREFIX/bin] | |
1370 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1371 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1375 --libdir=DIR object code libraries [EPREFIX/lib] | |
1376 --includedir=DIR C header files [PREFIX/include] | |
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1380 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1382 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis] | |
1384 --htmldir=DIR html documentation [DOCDIR] | |
1385 --dvidir=DIR dvi documentation [DOCDIR] | |
1386 --pdfdir=DIR pdf documentation [DOCDIR] | |
1387 --psdir=DIR ps documentation [DOCDIR] | |
1388 _ACEOF | |
1389 | |
1390 cat <<\_ACEOF | |
1391 | |
1392 Program names: | |
1393 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1394 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1396 | |
1397 System types: | |
1398 --build=BUILD configure for building on BUILD [guessed] | |
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1400 --target=TARGET configure for building compilers for TARGET [HOST] | |
1401 _ACEOF | |
1402 fi | |
1403 | |
1404 if test -n "$ac_init_help"; then | |
1405 case $ac_init_help in | |
1406 short | recursive ) echo "Configuration of libvorbis 1.3.3:";; | |
1407 esac | |
1408 cat <<\_ACEOF | |
1409 | |
1410 Optional Features: | |
1411 --disable-option-checking ignore unrecognized --enable/--with options | |
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1414 --enable-maintainer-mode enable make rules and dependencies not useful | |
1415 (and sometimes confusing) to the casual installer | |
1416 --disable-dependency-tracking speeds up one-time build | |
1417 --enable-dependency-tracking do not reject slow dependency extractors | |
1418 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1419 --enable-static[=PKGS] build static libraries [default=yes] | |
1420 --enable-fast-install[=PKGS] | |
1421 optimize for fast installation [default=yes] | |
1422 --disable-libtool-lock avoid locking (might break parallel builds) | |
1423 --enable-docs build the documentation | |
1424 --enable-examples build the examples | |
1425 --disable-oggtest Do not try to compile and run a test Ogg program | |
1426 | |
1427 Optional Packages: | |
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1430 --with-pic try to use only PIC/non-PIC objects [default=use | |
1431 both] | |
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1433 --with-sysroot=DIR Search for dependent libraries within DIR | |
1434 (or the compiler's sysroot if not specified). | |
1435 --with-ogg=PFX Prefix where libogg is installed (optional) | |
1436 --with-ogg-libraries=DIR | |
1437 Directory where libogg library is installed | |
1438 (optional) | |
1439 --with-ogg-includes=DIR Directory where libogg header files are installed | |
1440 (optional) | |
1441 | |
1442 Some influential environment variables: | |
1443 CC C compiler command | |
1444 CFLAGS C compiler flags | |
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1446 nonstandard directory <lib dir> | |
1447 LIBS libraries to pass to the linker, e.g. -l<library> | |
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1449 you have headers in a nonstandard directory <include dir> | |
1450 CPP C preprocessor | |
1451 PKG_CONFIG path to pkg-config utility | |
1452 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config | |
1453 OGG_LIBS linker flags for OGG, overriding pkg-config | |
1454 | |
1455 Use these variables to override the choices made by `configure' or to help | |
1456 it to find libraries and programs with nonstandard names/locations. | |
1457 | |
1458 Report bugs to <vorbis-dev@xiph.org>. | |
1459 _ACEOF | |
1460 ac_status=$? | |
1461 fi | |
1462 | |
1463 if test "$ac_init_help" = "recursive"; then | |
1464 # If there are subdirs, report their specific --help. | |
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1466 test -d "$ac_dir" || | |
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1468 continue | |
1469 ac_builddir=. | |
1470 | |
1471 case "$ac_dir" in | |
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1473 *) | |
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1475 # A ".." for each directory in $ac_dir_suffix. | |
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1477 case $ac_top_builddir_sub in | |
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1480 esac ;; | |
1481 esac | |
1482 ac_abs_top_builddir=$ac_pwd | |
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1484 # for backward compatibility: | |
1485 ac_top_builddir=$ac_top_build_prefix | |
1486 | |
1487 case $srcdir in | |
1488 .) # We are building in place. | |
1489 ac_srcdir=. | |
1490 ac_top_srcdir=$ac_top_builddir_sub | |
1491 ac_abs_top_srcdir=$ac_pwd ;; | |
1492 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1493 ac_srcdir=$srcdir$ac_dir_suffix; | |
1494 ac_top_srcdir=$srcdir | |
1495 ac_abs_top_srcdir=$srcdir ;; | |
1496 *) # Relative name. | |
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1500 esac | |
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1502 | |
1503 cd "$ac_dir" || { ac_status=$?; continue; } | |
1504 # Check for guested configure. | |
1505 if test -f "$ac_srcdir/configure.gnu"; then | |
1506 echo && | |
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1508 elif test -f "$ac_srcdir/configure"; then | |
1509 echo && | |
1510 $SHELL "$ac_srcdir/configure" --help=recursive | |
1511 else | |
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1513 fi || ac_status=$? | |
1514 cd "$ac_pwd" || { ac_status=$?; break; } | |
1515 done | |
1516 fi | |
1517 | |
1518 test -n "$ac_init_help" && exit $ac_status | |
1519 if $ac_init_version; then | |
1520 cat <<\_ACEOF | |
1521 libvorbis configure 1.3.3 | |
1522 generated by GNU Autoconf 2.68 | |
1523 | |
1524 Copyright (C) 2010 Free Software Foundation, Inc. | |
1525 This configure script is free software; the Free Software Foundation | |
1526 gives unlimited permission to copy, distribute and modify it. | |
1527 _ACEOF | |
1528 exit | |
1529 fi | |
1530 | |
1531 ## ------------------------ ## | |
1532 ## Autoconf initialization. ## | |
1533 ## ------------------------ ## | |
1534 | |
1535 # ac_fn_c_try_compile LINENO | |
1536 # -------------------------- | |
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1538 ac_fn_c_try_compile () | |
1539 { | |
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1541 rm -f conftest.$ac_objext | |
1542 if { { ac_try="$ac_compile" | |
1543 case "(($ac_try" in | |
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1545 *) ac_try_echo=$ac_try;; | |
1546 esac | |
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1548 $as_echo "$ac_try_echo"; } >&5 | |
1549 (eval "$ac_compile") 2>conftest.err | |
1550 ac_status=$? | |
1551 if test -s conftest.err; then | |
1552 grep -v '^ *+' conftest.err >conftest.er1 | |
1553 cat conftest.er1 >&5 | |
1554 mv -f conftest.er1 conftest.err | |
1555 fi | |
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1557 test $ac_status = 0; } && { | |
1558 test -z "$ac_c_werror_flag" || | |
1559 test ! -s conftest.err | |
1560 } && test -s conftest.$ac_objext; then : | |
1561 ac_retval=0 | |
1562 else | |
1563 $as_echo "$as_me: failed program was:" >&5 | |
1564 sed 's/^/| /' conftest.$ac_ext >&5 | |
1565 | |
1566 ac_retval=1 | |
1567 fi | |
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1569 as_fn_set_status $ac_retval | |
1570 | |
1571 } # ac_fn_c_try_compile | |
1572 | |
1573 # ac_fn_c_try_cpp LINENO | |
1574 # ---------------------- | |
1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1576 ac_fn_c_try_cpp () | |
1577 { | |
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1579 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1580 case "(($ac_try" in | |
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1582 *) ac_try_echo=$ac_try;; | |
1583 esac | |
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1585 $as_echo "$ac_try_echo"; } >&5 | |
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1587 ac_status=$? | |
1588 if test -s conftest.err; then | |
1589 grep -v '^ *+' conftest.err >conftest.er1 | |
1590 cat conftest.er1 >&5 | |
1591 mv -f conftest.er1 conftest.err | |
1592 fi | |
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1594 test $ac_status = 0; } > conftest.i && { | |
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1596 test ! -s conftest.err | |
1597 }; then : | |
1598 ac_retval=0 | |
1599 else | |
1600 $as_echo "$as_me: failed program was:" >&5 | |
1601 sed 's/^/| /' conftest.$ac_ext >&5 | |
1602 | |
1603 ac_retval=1 | |
1604 fi | |
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1606 as_fn_set_status $ac_retval | |
1607 | |
1608 } # ac_fn_c_try_cpp | |
1609 | |
1610 # ac_fn_c_try_link LINENO | |
1611 # ----------------------- | |
1612 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1613 ac_fn_c_try_link () | |
1614 { | |
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1616 rm -f conftest.$ac_objext conftest$ac_exeext | |
1617 if { { ac_try="$ac_link" | |
1618 case "(($ac_try" in | |
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1620 *) ac_try_echo=$ac_try;; | |
1621 esac | |
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1623 $as_echo "$ac_try_echo"; } >&5 | |
1624 (eval "$ac_link") 2>conftest.err | |
1625 ac_status=$? | |
1626 if test -s conftest.err; then | |
1627 grep -v '^ *+' conftest.err >conftest.er1 | |
1628 cat conftest.er1 >&5 | |
1629 mv -f conftest.er1 conftest.err | |
1630 fi | |
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1632 test $ac_status = 0; } && { | |
1633 test -z "$ac_c_werror_flag" || | |
1634 test ! -s conftest.err | |
1635 } && test -s conftest$ac_exeext && { | |
1636 test "$cross_compiling" = yes || | |
1637 $as_test_x conftest$ac_exeext | |
1638 }; then : | |
1639 ac_retval=0 | |
1640 else | |
1641 $as_echo "$as_me: failed program was:" >&5 | |
1642 sed 's/^/| /' conftest.$ac_ext >&5 | |
1643 | |
1644 ac_retval=1 | |
1645 fi | |
1646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1648 # interfere with the next link command; also delete a directory that is | |
1649 # left behind by Apple's compiler. We do this before executing the actions. | |
1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1652 as_fn_set_status $ac_retval | |
1653 | |
1654 } # ac_fn_c_try_link | |
1655 | |
1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1657 # ------------------------------------------------------- | |
1658 # Tests whether HEADER exists and can be compiled using the include files in | |
1659 # INCLUDES, setting the cache variable VAR accordingly. | |
1660 ac_fn_c_check_header_compile () | |
1661 { | |
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1664 $as_echo_n "checking for $2... " >&6; } | |
1665 if eval \${$3+:} false; then : | |
1666 $as_echo_n "(cached) " >&6 | |
1667 else | |
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1669 /* end confdefs.h. */ | |
1670 $4 | |
1671 #include <$2> | |
1672 _ACEOF | |
1673 if ac_fn_c_try_compile "$LINENO"; then : | |
1674 eval "$3=yes" | |
1675 else | |
1676 eval "$3=no" | |
1677 fi | |
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1679 fi | |
1680 eval ac_res=\$$3 | |
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1682 $as_echo "$ac_res" >&6; } | |
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1684 | |
1685 } # ac_fn_c_check_header_compile | |
1686 | |
1687 # ac_fn_c_try_run LINENO | |
1688 # ---------------------- | |
1689 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1690 # that executables *can* be run. | |
1691 ac_fn_c_try_run () | |
1692 { | |
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1694 if { { ac_try="$ac_link" | |
1695 case "(($ac_try" in | |
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1697 *) ac_try_echo=$ac_try;; | |
1698 esac | |
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1700 $as_echo "$ac_try_echo"; } >&5 | |
1701 (eval "$ac_link") 2>&5 | |
1702 ac_status=$? | |
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1705 { { case "(($ac_try" in | |
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1707 *) ac_try_echo=$ac_try;; | |
1708 esac | |
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1710 $as_echo "$ac_try_echo"; } >&5 | |
1711 (eval "$ac_try") 2>&5 | |
1712 ac_status=$? | |
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1714 test $ac_status = 0; }; }; then : | |
1715 ac_retval=0 | |
1716 else | |
1717 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1718 $as_echo "$as_me: failed program was:" >&5 | |
1719 sed 's/^/| /' conftest.$ac_ext >&5 | |
1720 | |
1721 ac_retval=$ac_status | |
1722 fi | |
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1725 as_fn_set_status $ac_retval | |
1726 | |
1727 } # ac_fn_c_try_run | |
1728 | |
1729 # ac_fn_c_check_func LINENO FUNC VAR | |
1730 # ---------------------------------- | |
1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1732 ac_fn_c_check_func () | |
1733 { | |
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1736 $as_echo_n "checking for $2... " >&6; } | |
1737 if eval \${$3+:} false; then : | |
1738 $as_echo_n "(cached) " >&6 | |
1739 else | |
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1741 /* end confdefs.h. */ | |
1742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1744 #define $2 innocuous_$2 | |
1745 | |
1746 /* System header to define __stub macros and hopefully few prototypes, | |
1747 which can conflict with char $2 (); below. | |
1748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1749 <limits.h> exists even on freestanding compilers. */ | |
1750 | |
1751 #ifdef __STDC__ | |
1752 # include <limits.h> | |
1753 #else | |
1754 # include <assert.h> | |
1755 #endif | |
1756 | |
1757 #undef $2 | |
1758 | |
1759 /* Override any GCC internal prototype to avoid an error. | |
1760 Use char because int might match the return type of a GCC | |
1761 builtin and then its argument prototype would still apply. */ | |
1762 #ifdef __cplusplus | |
1763 extern "C" | |
1764 #endif | |
1765 char $2 (); | |
1766 /* The GNU C library defines this for functions which it implements | |
1767 to always fail with ENOSYS. Some functions are actually named | |
1768 something starting with __ and the normal name is an alias. */ | |
1769 #if defined __stub_$2 || defined __stub___$2 | |
1770 choke me | |
1771 #endif | |
1772 | |
1773 int | |
1774 main () | |
1775 { | |
1776 return $2 (); | |
1777 ; | |
1778 return 0; | |
1779 } | |
1780 _ACEOF | |
1781 if ac_fn_c_try_link "$LINENO"; then : | |
1782 eval "$3=yes" | |
1783 else | |
1784 eval "$3=no" | |
1785 fi | |
1786 rm -f core conftest.err conftest.$ac_objext \ | |
1787 conftest$ac_exeext conftest.$ac_ext | |
1788 fi | |
1789 eval ac_res=\$$3 | |
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1791 $as_echo "$ac_res" >&6; } | |
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1793 | |
1794 } # ac_fn_c_check_func | |
1795 | |
1796 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1797 # ------------------------------------------------------- | |
1798 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1799 # the include files in INCLUDES and setting the cache variable VAR | |
1800 # accordingly. | |
1801 ac_fn_c_check_header_mongrel () | |
1802 { | |
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1804 if eval \${$3+:} false; then : | |
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1806 $as_echo_n "checking for $2... " >&6; } | |
1807 if eval \${$3+:} false; then : | |
1808 $as_echo_n "(cached) " >&6 | |
1809 fi | |
1810 eval ac_res=\$$3 | |
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1812 $as_echo "$ac_res" >&6; } | |
1813 else | |
1814 # Is the header compilable? | |
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1816 $as_echo_n "checking $2 usability... " >&6; } | |
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1818 /* end confdefs.h. */ | |
1819 $4 | |
1820 #include <$2> | |
1821 _ACEOF | |
1822 if ac_fn_c_try_compile "$LINENO"; then : | |
1823 ac_header_compiler=yes | |
1824 else | |
1825 ac_header_compiler=no | |
1826 fi | |
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1829 $as_echo "$ac_header_compiler" >&6; } | |
1830 | |
1831 # Is the header present? | |
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1833 $as_echo_n "checking $2 presence... " >&6; } | |
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1835 /* end confdefs.h. */ | |
1836 #include <$2> | |
1837 _ACEOF | |
1838 if ac_fn_c_try_cpp "$LINENO"; then : | |
1839 ac_header_preproc=yes | |
1840 else | |
1841 ac_header_preproc=no | |
1842 fi | |
1843 rm -f conftest.err conftest.i conftest.$ac_ext | |
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1845 $as_echo "$ac_header_preproc" >&6; } | |
1846 | |
1847 # So? What about this header? | |
1848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1849 yes:no: ) | |
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1851 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1854 ;; | |
1855 no:yes:* ) | |
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1857 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1859 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1861 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1863 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1866 ( $as_echo "## ---------------------------------- ## | |
1867 ## Report this to vorbis-dev@xiph.org ## | |
1868 ## ---------------------------------- ##" | |
1869 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1870 ;; | |
1871 esac | |
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1873 $as_echo_n "checking for $2... " >&6; } | |
1874 if eval \${$3+:} false; then : | |
1875 $as_echo_n "(cached) " >&6 | |
1876 else | |
1877 eval "$3=\$ac_header_compiler" | |
1878 fi | |
1879 eval ac_res=\$$3 | |
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1881 $as_echo "$ac_res" >&6; } | |
1882 fi | |
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1884 | |
1885 } # ac_fn_c_check_header_mongrel | |
1886 | |
1887 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1888 # ------------------------------------------- | |
1889 # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1890 # variable VAR accordingly. | |
1891 ac_fn_c_check_type () | |
1892 { | |
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1895 $as_echo_n "checking for $2... " >&6; } | |
1896 if eval \${$3+:} false; then : | |
1897 $as_echo_n "(cached) " >&6 | |
1898 else | |
1899 eval "$3=no" | |
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1901 /* end confdefs.h. */ | |
1902 $4 | |
1903 int | |
1904 main () | |
1905 { | |
1906 if (sizeof ($2)) | |
1907 return 0; | |
1908 ; | |
1909 return 0; | |
1910 } | |
1911 _ACEOF | |
1912 if ac_fn_c_try_compile "$LINENO"; then : | |
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1914 /* end confdefs.h. */ | |
1915 $4 | |
1916 int | |
1917 main () | |
1918 { | |
1919 if (sizeof (($2))) | |
1920 return 0; | |
1921 ; | |
1922 return 0; | |
1923 } | |
1924 _ACEOF | |
1925 if ac_fn_c_try_compile "$LINENO"; then : | |
1926 | |
1927 else | |
1928 eval "$3=yes" | |
1929 fi | |
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1931 fi | |
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1933 fi | |
1934 eval ac_res=\$$3 | |
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1936 $as_echo "$ac_res" >&6; } | |
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1938 | |
1939 } # ac_fn_c_check_type | |
1940 cat >config.log <<_ACEOF | |
1941 This file contains any messages produced by compilers while | |
1942 running configure, to aid debugging if configure makes a mistake. | |
1943 | |
1944 It was created by libvorbis $as_me 1.3.3, which was | |
1945 generated by GNU Autoconf 2.68. Invocation command line was | |
1946 | |
1947 $ $0 $@ | |
1948 | |
1949 _ACEOF | |
1950 exec 5>>config.log | |
1951 { | |
1952 cat <<_ASUNAME | |
1953 ## --------- ## | |
1954 ## Platform. ## | |
1955 ## --------- ## | |
1956 | |
1957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1958 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1959 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1960 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1961 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1962 | |
1963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1965 | |
1966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1969 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1973 | |
1974 _ASUNAME | |
1975 | |
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1977 for as_dir in $PATH | |
1978 do | |
1979 IFS=$as_save_IFS | |
1980 test -z "$as_dir" && as_dir=. | |
1981 $as_echo "PATH: $as_dir" | |
1982 done | |
1983 IFS=$as_save_IFS | |
1984 | |
1985 } >&5 | |
1986 | |
1987 cat >&5 <<_ACEOF | |
1988 | |
1989 | |
1990 ## ----------- ## | |
1991 ## Core tests. ## | |
1992 ## ----------- ## | |
1993 | |
1994 _ACEOF | |
1995 | |
1996 | |
1997 # Keep a trace of the command line. | |
1998 # Strip out --no-create and --no-recursion so they do not pile up. | |
1999 # Strip out --silent because we don't want to record it for future runs. | |
2000 # Also quote any args containing shell meta-characters. | |
2001 # Make two passes to allow for proper duplicate-argument suppression. | |
2002 ac_configure_args= | |
2003 ac_configure_args0= | |
2004 ac_configure_args1= | |
2005 ac_must_keep_next=false | |
2006 for ac_pass in 1 2 | |
2007 do | |
2008 for ac_arg | |
2009 do | |
2010 case $ac_arg in | |
2011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2013 | -silent | --silent | --silen | --sile | --sil) | |
2014 continue ;; | |
2015 *\'*) | |
2016 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2017 esac | |
2018 case $ac_pass in | |
2019 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2020 2) | |
2021 as_fn_append ac_configure_args1 " '$ac_arg'" | |
2022 if test $ac_must_keep_next = true; then | |
2023 ac_must_keep_next=false # Got value, back to normal. | |
2024 else | |
2025 case $ac_arg in | |
2026 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2029 | -with-* | --with-* | -without-* | --without-* | --x) | |
2030 case "$ac_configure_args0 " in | |
2031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2032 esac | |
2033 ;; | |
2034 -* ) ac_must_keep_next=true ;; | |
2035 esac | |
2036 fi | |
2037 as_fn_append ac_configure_args " '$ac_arg'" | |
2038 ;; | |
2039 esac | |
2040 done | |
2041 done | |
2042 { ac_configure_args0=; unset ac_configure_args0;} | |
2043 { ac_configure_args1=; unset ac_configure_args1;} | |
2044 | |
2045 # When interrupted or exit'd, cleanup temporary files, and complete | |
2046 # config.log. We remove comments because anyway the quotes in there | |
2047 # would cause problems or look ugly. | |
2048 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2049 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2050 trap 'exit_status=$? | |
2051 # Save into config.log some information that might help in debugging. | |
2052 { | |
2053 echo | |
2054 | |
2055 $as_echo "## ---------------- ## | |
2056 ## Cache variables. ## | |
2057 ## ---------------- ##" | |
2058 echo | |
2059 # The following way of writing the cache mishandles newlines in values, | |
2060 ( | |
2061 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2062 eval ac_val=\$$ac_var | |
2063 case $ac_val in #( | |
2064 *${as_nl}*) | |
2065 case $ac_var in #( | |
2066 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2067 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2068 esac | |
2069 case $ac_var in #( | |
2070 _ | IFS | as_nl) ;; #( | |
2071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2072 *) { eval $ac_var=; unset $ac_var;} ;; | |
2073 esac ;; | |
2074 esac | |
2075 done | |
2076 (set) 2>&1 | | |
2077 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2078 *${as_nl}ac_space=\ *) | |
2079 sed -n \ | |
2080 "s/'\''/'\''\\\\'\'''\''/g; | |
2081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2082 ;; #( | |
2083 *) | |
2084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2085 ;; | |
2086 esac | | |
2087 sort | |
2088 ) | |
2089 echo | |
2090 | |
2091 $as_echo "## ----------------- ## | |
2092 ## Output variables. ## | |
2093 ## ----------------- ##" | |
2094 echo | |
2095 for ac_var in $ac_subst_vars | |
2096 do | |
2097 eval ac_val=\$$ac_var | |
2098 case $ac_val in | |
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2100 esac | |
2101 $as_echo "$ac_var='\''$ac_val'\''" | |
2102 done | sort | |
2103 echo | |
2104 | |
2105 if test -n "$ac_subst_files"; then | |
2106 $as_echo "## ------------------- ## | |
2107 ## File substitutions. ## | |
2108 ## ------------------- ##" | |
2109 echo | |
2110 for ac_var in $ac_subst_files | |
2111 do | |
2112 eval ac_val=\$$ac_var | |
2113 case $ac_val in | |
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2115 esac | |
2116 $as_echo "$ac_var='\''$ac_val'\''" | |
2117 done | sort | |
2118 echo | |
2119 fi | |
2120 | |
2121 if test -s confdefs.h; then | |
2122 $as_echo "## ----------- ## | |
2123 ## confdefs.h. ## | |
2124 ## ----------- ##" | |
2125 echo | |
2126 cat confdefs.h | |
2127 echo | |
2128 fi | |
2129 test "$ac_signal" != 0 && | |
2130 $as_echo "$as_me: caught signal $ac_signal" | |
2131 $as_echo "$as_me: exit $exit_status" | |
2132 } >&5 | |
2133 rm -f core *.core core.conftest.* && | |
2134 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2135 exit $exit_status | |
2136 ' 0 | |
2137 for ac_signal in 1 2 13 15; do | |
2138 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2139 done | |
2140 ac_signal=0 | |
2141 | |
2142 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2143 rm -f -r conftest* confdefs.h | |
2144 | |
2145 $as_echo "/* confdefs.h */" > confdefs.h | |
2146 | |
2147 # Predefined preprocessor variables. | |
2148 | |
2149 cat >>confdefs.h <<_ACEOF | |
2150 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2151 _ACEOF | |
2152 | |
2153 cat >>confdefs.h <<_ACEOF | |
2154 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2155 _ACEOF | |
2156 | |
2157 cat >>confdefs.h <<_ACEOF | |
2158 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2159 _ACEOF | |
2160 | |
2161 cat >>confdefs.h <<_ACEOF | |
2162 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2163 _ACEOF | |
2164 | |
2165 cat >>confdefs.h <<_ACEOF | |
2166 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2167 _ACEOF | |
2168 | |
2169 cat >>confdefs.h <<_ACEOF | |
2170 #define PACKAGE_URL "$PACKAGE_URL" | |
2171 _ACEOF | |
2172 | |
2173 | |
2174 # Let the site file select an alternate cache file if it wants to. | |
2175 # Prefer an explicitly selected file to automatically selected ones. | |
2176 ac_site_file1=NONE | |
2177 ac_site_file2=NONE | |
2178 if test -n "$CONFIG_SITE"; then | |
2179 # We do not want a PATH search for config.site. | |
2180 case $CONFIG_SITE in #(( | |
2181 -*) ac_site_file1=./$CONFIG_SITE;; | |
2182 */*) ac_site_file1=$CONFIG_SITE;; | |
2183 *) ac_site_file1=./$CONFIG_SITE;; | |
2184 esac | |
2185 elif test "x$prefix" != xNONE; then | |
2186 ac_site_file1=$prefix/share/config.site | |
2187 ac_site_file2=$prefix/etc/config.site | |
2188 else | |
2189 ac_site_file1=$ac_default_prefix/share/config.site | |
2190 ac_site_file2=$ac_default_prefix/etc/config.site | |
2191 fi | |
2192 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2193 do | |
2194 test "x$ac_site_file" = xNONE && continue | |
2195 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2197 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2198 sed 's/^/| /' "$ac_site_file" >&5 | |
2199 . "$ac_site_file" \ | |
2200 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2202 as_fn_error $? "failed to load site script $ac_site_file | |
2203 See \`config.log' for more details" "$LINENO" 5; } | |
2204 fi | |
2205 done | |
2206 | |
2207 if test -r "$cache_file"; then | |
2208 # Some versions of bash will fail to source /dev/null (special files | |
2209 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2210 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2212 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2213 case $cache_file in | |
2214 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2215 *) . "./$cache_file";; | |
2216 esac | |
2217 fi | |
2218 else | |
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2220 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2221 >$cache_file | |
2222 fi | |
2223 | |
2224 # Check that the precious variables saved in the cache have kept the same | |
2225 # value. | |
2226 ac_cache_corrupted=false | |
2227 for ac_var in $ac_precious_vars; do | |
2228 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2229 eval ac_new_set=\$ac_env_${ac_var}_set | |
2230 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2231 eval ac_new_val=\$ac_env_${ac_var}_value | |
2232 case $ac_old_set,$ac_new_set in | |
2233 set,) | |
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2235 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2236 ac_cache_corrupted=: ;; | |
2237 ,set) | |
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2239 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2240 ac_cache_corrupted=: ;; | |
2241 ,);; | |
2242 *) | |
2243 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2244 # differences in whitespace do not lead to failure. | |
2245 ac_old_val_w=`echo x $ac_old_val` | |
2246 ac_new_val_w=`echo x $ac_new_val` | |
2247 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2249 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2250 ac_cache_corrupted=: | |
2251 else | |
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2253 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2254 eval $ac_var=\$ac_old_val | |
2255 fi | |
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2257 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2259 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2260 fi;; | |
2261 esac | |
2262 # Pass precious variables to config.status. | |
2263 if test "$ac_new_set" = set; then | |
2264 case $ac_new_val in | |
2265 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2266 *) ac_arg=$ac_var=$ac_new_val ;; | |
2267 esac | |
2268 case " $ac_configure_args " in | |
2269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2270 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2271 esac | |
2272 fi | |
2273 done | |
2274 if $ac_cache_corrupted; then | |
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2278 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2279 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2280 fi | |
2281 ## -------------------- ## | |
2282 ## Main body of script. ## | |
2283 ## -------------------- ## | |
2284 | |
2285 ac_ext=c | |
2286 ac_cpp='$CPP $CPPFLAGS' | |
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2290 | |
2291 | |
2292 | |
2293 | |
2294 | |
2295 ac_aux_dir= | |
2296 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2297 if test -f "$ac_dir/install-sh"; then | |
2298 ac_aux_dir=$ac_dir | |
2299 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2300 break | |
2301 elif test -f "$ac_dir/install.sh"; then | |
2302 ac_aux_dir=$ac_dir | |
2303 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2304 break | |
2305 elif test -f "$ac_dir/shtool"; then | |
2306 ac_aux_dir=$ac_dir | |
2307 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2308 break | |
2309 fi | |
2310 done | |
2311 if test -z "$ac_aux_dir"; then | |
2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2313 fi | |
2314 | |
2315 # These three variables are undocumented and unsupported, | |
2316 # and are intended to be withdrawn in a future Autoconf release. | |
2317 # They can cause serious problems if a builder's source tree is in a directory | |
2318 # whose full name contains unusual characters. | |
2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2322 | |
2323 | |
2324 # Make sure we can run config.sub. | |
2325 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2326 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2327 | |
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2329 $as_echo_n "checking build system type... " >&6; } | |
2330 if ${ac_cv_build+:} false; then : | |
2331 $as_echo_n "(cached) " >&6 | |
2332 else | |
2333 ac_build_alias=$build_alias | |
2334 test "x$ac_build_alias" = x && | |
2335 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2336 test "x$ac_build_alias" = x && | |
2337 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2338 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2340 | |
2341 fi | |
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2343 $as_echo "$ac_cv_build" >&6; } | |
2344 case $ac_cv_build in | |
2345 *-*-*) ;; | |
2346 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2347 esac | |
2348 build=$ac_cv_build | |
2349 ac_save_IFS=$IFS; IFS='-' | |
2350 set x $ac_cv_build | |
2351 shift | |
2352 build_cpu=$1 | |
2353 build_vendor=$2 | |
2354 shift; shift | |
2355 # Remember, the first character of IFS is used to create $*, | |
2356 # except with old shells: | |
2357 build_os=$* | |
2358 IFS=$ac_save_IFS | |
2359 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2360 | |
2361 | |
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2363 $as_echo_n "checking host system type... " >&6; } | |
2364 if ${ac_cv_host+:} false; then : | |
2365 $as_echo_n "(cached) " >&6 | |
2366 else | |
2367 if test "x$host_alias" = x; then | |
2368 ac_cv_host=$ac_cv_build | |
2369 else | |
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2372 fi | |
2373 | |
2374 fi | |
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2376 $as_echo "$ac_cv_host" >&6; } | |
2377 case $ac_cv_host in | |
2378 *-*-*) ;; | |
2379 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2380 esac | |
2381 host=$ac_cv_host | |
2382 ac_save_IFS=$IFS; IFS='-' | |
2383 set x $ac_cv_host | |
2384 shift | |
2385 host_cpu=$1 | |
2386 host_vendor=$2 | |
2387 shift; shift | |
2388 # Remember, the first character of IFS is used to create $*, | |
2389 # except with old shells: | |
2390 host_os=$* | |
2391 IFS=$ac_save_IFS | |
2392 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2393 | |
2394 | |
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2396 $as_echo_n "checking target system type... " >&6; } | |
2397 if ${ac_cv_target+:} false; then : | |
2398 $as_echo_n "(cached) " >&6 | |
2399 else | |
2400 if test "x$target_alias" = x; then | |
2401 ac_cv_target=$ac_cv_host | |
2402 else | |
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2405 fi | |
2406 | |
2407 fi | |
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2409 $as_echo "$ac_cv_target" >&6; } | |
2410 case $ac_cv_target in | |
2411 *-*-*) ;; | |
2412 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2413 esac | |
2414 target=$ac_cv_target | |
2415 ac_save_IFS=$IFS; IFS='-' | |
2416 set x $ac_cv_target | |
2417 shift | |
2418 target_cpu=$1 | |
2419 target_vendor=$2 | |
2420 shift; shift | |
2421 # Remember, the first character of IFS is used to create $*, | |
2422 # except with old shells: | |
2423 target_os=$* | |
2424 IFS=$ac_save_IFS | |
2425 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2426 | |
2427 | |
2428 # The aliases save the names the user supplied, while $host etc. | |
2429 # will get canonicalized. | |
2430 test -n "$target_alias" && | |
2431 test "$program_prefix$program_suffix$program_transform_name" = \ | |
2432 NONENONEs,x,x, && | |
2433 program_prefix=${target_alias}- | |
2434 | |
2435 am__api_version='1.11' | |
2436 | |
2437 # Find a good install program. We prefer a C program (faster), | |
2438 # so one script is as good as another. But avoid the broken or | |
2439 # incompatible versions: | |
2440 # SysV /etc/install, /usr/sbin/install | |
2441 # SunOS /usr/etc/install | |
2442 # IRIX /sbin/install | |
2443 # AIX /bin/install | |
2444 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2445 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2446 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2447 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2448 # OS/2's system install, which has a completely different semantic | |
2449 # ./install, which can be erroneously created by make from ./install.sh. | |
2450 # Reject install programs that cannot install multiple files. | |
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2452 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2453 if test -z "$INSTALL"; then | |
2454 if ${ac_cv_path_install+:} false; then : | |
2455 $as_echo_n "(cached) " >&6 | |
2456 else | |
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2458 for as_dir in $PATH | |
2459 do | |
2460 IFS=$as_save_IFS | |
2461 test -z "$as_dir" && as_dir=. | |
2462 # Account for people who put trailing slashes in PATH elements. | |
2463 case $as_dir/ in #(( | |
2464 ./ | .// | /[cC]/* | \ | |
2465 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2466 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2467 /usr/ucb/* ) ;; | |
2468 *) | |
2469 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2470 # Don't use installbsd from OSF since it installs stuff as root | |
2471 # by default. | |
2472 for ac_prog in ginstall scoinst install; do | |
2473 for ac_exec_ext in '' $ac_executable_extensions; do | |
2474 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2475 if test $ac_prog = install && | |
2476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2477 # AIX install. It has an incompatible calling convention. | |
2478 : | |
2479 elif test $ac_prog = install && | |
2480 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2481 # program-specific install script used by HP pwplus--don't use. | |
2482 : | |
2483 else | |
2484 rm -rf conftest.one conftest.two conftest.dir | |
2485 echo one > conftest.one | |
2486 echo two > conftest.two | |
2487 mkdir conftest.dir | |
2488 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2489 test -s conftest.one && test -s conftest.two && | |
2490 test -s conftest.dir/conftest.one && | |
2491 test -s conftest.dir/conftest.two | |
2492 then | |
2493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2494 break 3 | |
2495 fi | |
2496 fi | |
2497 fi | |
2498 done | |
2499 done | |
2500 ;; | |
2501 esac | |
2502 | |
2503 done | |
2504 IFS=$as_save_IFS | |
2505 | |
2506 rm -rf conftest.one conftest.two conftest.dir | |
2507 | |
2508 fi | |
2509 if test "${ac_cv_path_install+set}" = set; then | |
2510 INSTALL=$ac_cv_path_install | |
2511 else | |
2512 # As a last resort, use the slow shell script. Don't cache a | |
2513 # value for INSTALL within a source directory, because that will | |
2514 # break other packages using the cache if that directory is | |
2515 # removed, or if the value is a relative name. | |
2516 INSTALL=$ac_install_sh | |
2517 fi | |
2518 fi | |
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2520 $as_echo "$INSTALL" >&6; } | |
2521 | |
2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2523 # It thinks the first close brace ends the variable substitution. | |
2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2525 | |
2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2527 | |
2528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2529 | |
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2531 $as_echo_n "checking whether build environment is sane... " >&6; } | |
2532 # Just in case | |
2533 sleep 1 | |
2534 echo timestamp > conftest.file | |
2535 # Reject unsafe characters in $srcdir or the absolute working directory | |
2536 # name. Accept space and tab only in the latter. | |
2537 am_lf=' | |
2538 ' | |
2539 case `pwd` in | |
2540 *[\\\"\#\$\&\'\`$am_lf]*) | |
2541 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2542 esac | |
2543 case $srcdir in | |
2544 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2545 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2546 esac | |
2547 | |
2548 # Do `set' in a subshell so we don't clobber the current shell's | |
2549 # arguments. Must try -L first in case configure is actually a | |
2550 # symlink; some systems play weird games with the mod time of symlinks | |
2551 # (eg FreeBSD returns the mod time of the symlink's containing | |
2552 # directory). | |
2553 if ( | |
2554 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2555 if test "$*" = "X"; then | |
2556 # -L didn't work. | |
2557 set X `ls -t "$srcdir/configure" conftest.file` | |
2558 fi | |
2559 rm -f conftest.file | |
2560 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2561 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2562 | |
2563 # If neither matched, then we have a broken ls. This can happen | |
2564 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2565 # broken ls alias from the environment. This has actually | |
2566 # happened. Such a system could not be considered "sane". | |
2567 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2568 alias in your environment" "$LINENO" 5 | |
2569 fi | |
2570 | |
2571 test "$2" = conftest.file | |
2572 ) | |
2573 then | |
2574 # Ok. | |
2575 : | |
2576 else | |
2577 as_fn_error $? "newly created file is older than distributed files! | |
2578 Check your system clock" "$LINENO" 5 | |
2579 fi | |
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2581 $as_echo "yes" >&6; } | |
2582 test "$program_prefix" != NONE && | |
2583 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2584 # Use a double $ so make ignores it. | |
2585 test "$program_suffix" != NONE && | |
2586 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2587 # Double any \ or $. | |
2588 # By default was `s,x,x', remove it if useless. | |
2589 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2590 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2591 | |
2592 # expand $ac_aux_dir to an absolute path | |
2593 am_aux_dir=`cd $ac_aux_dir && pwd` | |
2594 | |
2595 if test x"${MISSING+set}" != xset; then | |
2596 case $am_aux_dir in | |
2597 *\ * | *\ *) | |
2598 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2599 *) | |
2600 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2601 esac | |
2602 fi | |
2603 # Use eval to expand $SHELL | |
2604 if eval "$MISSING --run true"; then | |
2605 am_missing_run="$MISSING --run " | |
2606 else | |
2607 am_missing_run= | |
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2609 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2610 fi | |
2611 | |
2612 if test x"${install_sh}" != xset; then | |
2613 case $am_aux_dir in | |
2614 *\ * | *\ *) | |
2615 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2616 *) | |
2617 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2618 esac | |
2619 fi | |
2620 | |
2621 # Installed binaries are usually stripped using `strip' when the user | |
2622 # run `make install-strip'. However `strip' might not be the right | |
2623 # tool to use in cross-compilation environments, therefore Automake | |
2624 # will honor the `STRIP' environment variable to overrule this program. | |
2625 if test "$cross_compiling" != no; then | |
2626 if test -n "$ac_tool_prefix"; then | |
2627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2628 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2630 $as_echo_n "checking for $ac_word... " >&6; } | |
2631 if ${ac_cv_prog_STRIP+:} false; then : | |
2632 $as_echo_n "(cached) " >&6 | |
2633 else | |
2634 if test -n "$STRIP"; then | |
2635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2636 else | |
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2638 for as_dir in $PATH | |
2639 do | |
2640 IFS=$as_save_IFS | |
2641 test -z "$as_dir" && as_dir=. | |
2642 for ac_exec_ext in '' $ac_executable_extensions; do | |
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2644 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2646 break 2 | |
2647 fi | |
2648 done | |
2649 done | |
2650 IFS=$as_save_IFS | |
2651 | |
2652 fi | |
2653 fi | |
2654 STRIP=$ac_cv_prog_STRIP | |
2655 if test -n "$STRIP"; then | |
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2657 $as_echo "$STRIP" >&6; } | |
2658 else | |
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2660 $as_echo "no" >&6; } | |
2661 fi | |
2662 | |
2663 | |
2664 fi | |
2665 if test -z "$ac_cv_prog_STRIP"; then | |
2666 ac_ct_STRIP=$STRIP | |
2667 # Extract the first word of "strip", so it can be a program name with args. | |
2668 set dummy strip; ac_word=$2 | |
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2670 $as_echo_n "checking for $ac_word... " >&6; } | |
2671 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2672 $as_echo_n "(cached) " >&6 | |
2673 else | |
2674 if test -n "$ac_ct_STRIP"; then | |
2675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2676 else | |
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2678 for as_dir in $PATH | |
2679 do | |
2680 IFS=$as_save_IFS | |
2681 test -z "$as_dir" && as_dir=. | |
2682 for ac_exec_ext in '' $ac_executable_extensions; do | |
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2684 ac_cv_prog_ac_ct_STRIP="strip" | |
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2686 break 2 | |
2687 fi | |
2688 done | |
2689 done | |
2690 IFS=$as_save_IFS | |
2691 | |
2692 fi | |
2693 fi | |
2694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2695 if test -n "$ac_ct_STRIP"; then | |
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2697 $as_echo "$ac_ct_STRIP" >&6; } | |
2698 else | |
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2700 $as_echo "no" >&6; } | |
2701 fi | |
2702 | |
2703 if test "x$ac_ct_STRIP" = x; then | |
2704 STRIP=":" | |
2705 else | |
2706 case $cross_compiling:$ac_tool_warned in | |
2707 yes:) | |
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2710 ac_tool_warned=yes ;; | |
2711 esac | |
2712 STRIP=$ac_ct_STRIP | |
2713 fi | |
2714 else | |
2715 STRIP="$ac_cv_prog_STRIP" | |
2716 fi | |
2717 | |
2718 fi | |
2719 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2720 | |
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2722 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2723 if test -z "$MKDIR_P"; then | |
2724 if ${ac_cv_path_mkdir+:} false; then : | |
2725 $as_echo_n "(cached) " >&6 | |
2726 else | |
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2728 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2729 do | |
2730 IFS=$as_save_IFS | |
2731 test -z "$as_dir" && as_dir=. | |
2732 for ac_prog in mkdir gmkdir; do | |
2733 for ac_exec_ext in '' $ac_executable_extensions; do | |
2734 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2735 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2736 'mkdir (GNU coreutils) '* | \ | |
2737 'mkdir (coreutils) '* | \ | |
2738 'mkdir (fileutils) '4.1*) | |
2739 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2740 break 3;; | |
2741 esac | |
2742 done | |
2743 done | |
2744 done | |
2745 IFS=$as_save_IFS | |
2746 | |
2747 fi | |
2748 | |
2749 test -d ./--version && rmdir ./--version | |
2750 if test "${ac_cv_path_mkdir+set}" = set; then | |
2751 MKDIR_P="$ac_cv_path_mkdir -p" | |
2752 else | |
2753 # As a last resort, use the slow shell script. Don't cache a | |
2754 # value for MKDIR_P within a source directory, because that will | |
2755 # break other packages using the cache if that directory is | |
2756 # removed, or if the value is a relative name. | |
2757 MKDIR_P="$ac_install_sh -d" | |
2758 fi | |
2759 fi | |
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2761 $as_echo "$MKDIR_P" >&6; } | |
2762 | |
2763 mkdir_p="$MKDIR_P" | |
2764 case $mkdir_p in | |
2765 [\\/$]* | ?:[\\/]*) ;; | |
2766 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2767 esac | |
2768 | |
2769 for ac_prog in gawk mawk nawk awk | |
2770 do | |
2771 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2772 set dummy $ac_prog; ac_word=$2 | |
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2774 $as_echo_n "checking for $ac_word... " >&6; } | |
2775 if ${ac_cv_prog_AWK+:} false; then : | |
2776 $as_echo_n "(cached) " >&6 | |
2777 else | |
2778 if test -n "$AWK"; then | |
2779 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2780 else | |
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2782 for as_dir in $PATH | |
2783 do | |
2784 IFS=$as_save_IFS | |
2785 test -z "$as_dir" && as_dir=. | |
2786 for ac_exec_ext in '' $ac_executable_extensions; do | |
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2788 ac_cv_prog_AWK="$ac_prog" | |
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2790 break 2 | |
2791 fi | |
2792 done | |
2793 done | |
2794 IFS=$as_save_IFS | |
2795 | |
2796 fi | |
2797 fi | |
2798 AWK=$ac_cv_prog_AWK | |
2799 if test -n "$AWK"; then | |
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2801 $as_echo "$AWK" >&6; } | |
2802 else | |
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2804 $as_echo "no" >&6; } | |
2805 fi | |
2806 | |
2807 | |
2808 test -n "$AWK" && break | |
2809 done | |
2810 | |
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2812 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2813 set x ${MAKE-make} | |
2814 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2815 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2816 $as_echo_n "(cached) " >&6 | |
2817 else | |
2818 cat >conftest.make <<\_ACEOF | |
2819 SHELL = /bin/sh | |
2820 all: | |
2821 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2822 _ACEOF | |
2823 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2824 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2825 *@@@%%%=?*=@@@%%%*) | |
2826 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2827 *) | |
2828 eval ac_cv_prog_make_${ac_make}_set=no;; | |
2829 esac | |
2830 rm -f conftest.make | |
2831 fi | |
2832 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2834 $as_echo "yes" >&6; } | |
2835 SET_MAKE= | |
2836 else | |
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2838 $as_echo "no" >&6; } | |
2839 SET_MAKE="MAKE=${MAKE-make}" | |
2840 fi | |
2841 | |
2842 rm -rf .tst 2>/dev/null | |
2843 mkdir .tst 2>/dev/null | |
2844 if test -d .tst; then | |
2845 am__leading_dot=. | |
2846 else | |
2847 am__leading_dot=_ | |
2848 fi | |
2849 rmdir .tst 2>/dev/null | |
2850 | |
2851 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2852 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2853 # is not polluted with repeated "-I." | |
2854 am__isrc=' -I$(srcdir)' | |
2855 # test to see if srcdir already configured | |
2856 if test -f $srcdir/config.status; then | |
2857 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2858 fi | |
2859 fi | |
2860 | |
2861 # test whether we have cygpath | |
2862 if test -z "$CYGPATH_W"; then | |
2863 if (cygpath --version) >/dev/null 2>/dev/null; then | |
2864 CYGPATH_W='cygpath -w' | |
2865 else | |
2866 CYGPATH_W=echo | |
2867 fi | |
2868 fi | |
2869 | |
2870 | |
2871 # Define the identity of the package. | |
2872 PACKAGE=$PACKAGE_NAME | |
2873 VERSION=$PACKAGE_VERSION | |
2874 | |
2875 | |
2876 cat >>confdefs.h <<_ACEOF | |
2877 #define PACKAGE "$PACKAGE" | |
2878 _ACEOF | |
2879 | |
2880 | |
2881 cat >>confdefs.h <<_ACEOF | |
2882 #define VERSION "$VERSION" | |
2883 _ACEOF | |
2884 | |
2885 # Some tools Automake needs. | |
2886 | |
2887 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2888 | |
2889 | |
2890 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2891 | |
2892 | |
2893 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2894 | |
2895 | |
2896 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2897 | |
2898 | |
2899 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2900 | |
2901 # We need awk for the "check" target. The system "awk" is bad on | |
2902 # some platforms. | |
2903 # Always define AMTAR for backward compatibility. | |
2904 | |
2905 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2906 | |
2907 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2908 | |
2909 | |
2910 | |
2911 | |
2912 | |
2913 | |
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2915 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2916 # Check whether --enable-maintainer-mode was given. | |
2917 if test "${enable_maintainer_mode+set}" = set; then : | |
2918 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2919 else | |
2920 USE_MAINTAINER_MODE=no | |
2921 fi | |
2922 | |
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2924 $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2925 if test $USE_MAINTAINER_MODE = yes; then | |
2926 MAINTAINER_MODE_TRUE= | |
2927 MAINTAINER_MODE_FALSE='#' | |
2928 else | |
2929 MAINTAINER_MODE_TRUE='#' | |
2930 MAINTAINER_MODE_FALSE= | |
2931 fi | |
2932 | |
2933 MAINT=$MAINTAINER_MODE_TRUE | |
2934 | |
2935 | |
2936 ac_config_headers="$ac_config_headers config.h" | |
2937 | |
2938 | |
2939 ACLOCAL_AMFLAGS="-I m4" | |
2940 | |
2941 | |
2942 | |
2943 V_LIB_CURRENT=4 | |
2944 V_LIB_REVISION=6 | |
2945 V_LIB_AGE=4 | |
2946 | |
2947 VF_LIB_CURRENT=6 | |
2948 VF_LIB_REVISION=5 | |
2949 VF_LIB_AGE=3 | |
2950 | |
2951 VE_LIB_CURRENT=2 | |
2952 VE_LIB_REVISION=9 | |
2953 VE_LIB_AGE=0 | |
2954 | |
2955 | |
2956 | |
2957 | |
2958 | |
2959 | |
2960 | |
2961 | |
2962 | |
2963 | |
2964 | |
2965 | |
2966 cflags_save="$CFLAGS" | |
2967 ac_ext=c | |
2968 ac_cpp='$CPP $CPPFLAGS' | |
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2972 if test -n "$ac_tool_prefix"; then | |
2973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2974 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2976 $as_echo_n "checking for $ac_word... " >&6; } | |
2977 if ${ac_cv_prog_CC+:} false; then : | |
2978 $as_echo_n "(cached) " >&6 | |
2979 else | |
2980 if test -n "$CC"; then | |
2981 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2982 else | |
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2984 for as_dir in $PATH | |
2985 do | |
2986 IFS=$as_save_IFS | |
2987 test -z "$as_dir" && as_dir=. | |
2988 for ac_exec_ext in '' $ac_executable_extensions; do | |
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2990 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2992 break 2 | |
2993 fi | |
2994 done | |
2995 done | |
2996 IFS=$as_save_IFS | |
2997 | |
2998 fi | |
2999 fi | |
3000 CC=$ac_cv_prog_CC | |
3001 if test -n "$CC"; then | |
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3003 $as_echo "$CC" >&6; } | |
3004 else | |
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3006 $as_echo "no" >&6; } | |
3007 fi | |
3008 | |
3009 | |
3010 fi | |
3011 if test -z "$ac_cv_prog_CC"; then | |
3012 ac_ct_CC=$CC | |
3013 # Extract the first word of "gcc", so it can be a program name with args. | |
3014 set dummy gcc; ac_word=$2 | |
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3016 $as_echo_n "checking for $ac_word... " >&6; } | |
3017 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3018 $as_echo_n "(cached) " >&6 | |
3019 else | |
3020 if test -n "$ac_ct_CC"; then | |
3021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3022 else | |
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3024 for as_dir in $PATH | |
3025 do | |
3026 IFS=$as_save_IFS | |
3027 test -z "$as_dir" && as_dir=. | |
3028 for ac_exec_ext in '' $ac_executable_extensions; do | |
3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3030 ac_cv_prog_ac_ct_CC="gcc" | |
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3032 break 2 | |
3033 fi | |
3034 done | |
3035 done | |
3036 IFS=$as_save_IFS | |
3037 | |
3038 fi | |
3039 fi | |
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3041 if test -n "$ac_ct_CC"; then | |
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3043 $as_echo "$ac_ct_CC" >&6; } | |
3044 else | |
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3046 $as_echo "no" >&6; } | |
3047 fi | |
3048 | |
3049 if test "x$ac_ct_CC" = x; then | |
3050 CC="" | |
3051 else | |
3052 case $cross_compiling:$ac_tool_warned in | |
3053 yes:) | |
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3056 ac_tool_warned=yes ;; | |
3057 esac | |
3058 CC=$ac_ct_CC | |
3059 fi | |
3060 else | |
3061 CC="$ac_cv_prog_CC" | |
3062 fi | |
3063 | |
3064 if test -z "$CC"; then | |
3065 if test -n "$ac_tool_prefix"; then | |
3066 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3067 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3069 $as_echo_n "checking for $ac_word... " >&6; } | |
3070 if ${ac_cv_prog_CC+:} false; then : | |
3071 $as_echo_n "(cached) " >&6 | |
3072 else | |
3073 if test -n "$CC"; then | |
3074 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3075 else | |
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3077 for as_dir in $PATH | |
3078 do | |
3079 IFS=$as_save_IFS | |
3080 test -z "$as_dir" && as_dir=. | |
3081 for ac_exec_ext in '' $ac_executable_extensions; do | |
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3083 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3085 break 2 | |
3086 fi | |
3087 done | |
3088 done | |
3089 IFS=$as_save_IFS | |
3090 | |
3091 fi | |
3092 fi | |
3093 CC=$ac_cv_prog_CC | |
3094 if test -n "$CC"; then | |
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3096 $as_echo "$CC" >&6; } | |
3097 else | |
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3099 $as_echo "no" >&6; } | |
3100 fi | |
3101 | |
3102 | |
3103 fi | |
3104 fi | |
3105 if test -z "$CC"; then | |
3106 # Extract the first word of "cc", so it can be a program name with args. | |
3107 set dummy cc; ac_word=$2 | |
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3109 $as_echo_n "checking for $ac_word... " >&6; } | |
3110 if ${ac_cv_prog_CC+:} false; then : | |
3111 $as_echo_n "(cached) " >&6 | |
3112 else | |
3113 if test -n "$CC"; then | |
3114 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3115 else | |
3116 ac_prog_rejected=no | |
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3118 for as_dir in $PATH | |
3119 do | |
3120 IFS=$as_save_IFS | |
3121 test -z "$as_dir" && as_dir=. | |
3122 for ac_exec_ext in '' $ac_executable_extensions; do | |
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3125 ac_prog_rejected=yes | |
3126 continue | |
3127 fi | |
3128 ac_cv_prog_CC="cc" | |
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3130 break 2 | |
3131 fi | |
3132 done | |
3133 done | |
3134 IFS=$as_save_IFS | |
3135 | |
3136 if test $ac_prog_rejected = yes; then | |
3137 # We found a bogon in the path, so make sure we never use it. | |
3138 set dummy $ac_cv_prog_CC | |
3139 shift | |
3140 if test $# != 0; then | |
3141 # We chose a different compiler from the bogus one. | |
3142 # However, it has the same basename, so the bogon will be chosen | |
3143 # first if we set CC to just the basename; use the full file name. | |
3144 shift | |
3145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3146 fi | |
3147 fi | |
3148 fi | |
3149 fi | |
3150 CC=$ac_cv_prog_CC | |
3151 if test -n "$CC"; then | |
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3153 $as_echo "$CC" >&6; } | |
3154 else | |
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3156 $as_echo "no" >&6; } | |
3157 fi | |
3158 | |
3159 | |
3160 fi | |
3161 if test -z "$CC"; then | |
3162 if test -n "$ac_tool_prefix"; then | |
3163 for ac_prog in cl.exe | |
3164 do | |
3165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3168 $as_echo_n "checking for $ac_word... " >&6; } | |
3169 if ${ac_cv_prog_CC+:} false; then : | |
3170 $as_echo_n "(cached) " >&6 | |
3171 else | |
3172 if test -n "$CC"; then | |
3173 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3174 else | |
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3176 for as_dir in $PATH | |
3177 do | |
3178 IFS=$as_save_IFS | |
3179 test -z "$as_dir" && as_dir=. | |
3180 for ac_exec_ext in '' $ac_executable_extensions; do | |
3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3184 break 2 | |
3185 fi | |
3186 done | |
3187 done | |
3188 IFS=$as_save_IFS | |
3189 | |
3190 fi | |
3191 fi | |
3192 CC=$ac_cv_prog_CC | |
3193 if test -n "$CC"; then | |
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3195 $as_echo "$CC" >&6; } | |
3196 else | |
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3198 $as_echo "no" >&6; } | |
3199 fi | |
3200 | |
3201 | |
3202 test -n "$CC" && break | |
3203 done | |
3204 fi | |
3205 if test -z "$CC"; then | |
3206 ac_ct_CC=$CC | |
3207 for ac_prog in cl.exe | |
3208 do | |
3209 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3210 set dummy $ac_prog; ac_word=$2 | |
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3212 $as_echo_n "checking for $ac_word... " >&6; } | |
3213 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3214 $as_echo_n "(cached) " >&6 | |
3215 else | |
3216 if test -n "$ac_ct_CC"; then | |
3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3218 else | |
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3220 for as_dir in $PATH | |
3221 do | |
3222 IFS=$as_save_IFS | |
3223 test -z "$as_dir" && as_dir=. | |
3224 for ac_exec_ext in '' $ac_executable_extensions; do | |
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3226 ac_cv_prog_ac_ct_CC="$ac_prog" | |
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3228 break 2 | |
3229 fi | |
3230 done | |
3231 done | |
3232 IFS=$as_save_IFS | |
3233 | |
3234 fi | |
3235 fi | |
3236 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3237 if test -n "$ac_ct_CC"; then | |
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3239 $as_echo "$ac_ct_CC" >&6; } | |
3240 else | |
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3242 $as_echo "no" >&6; } | |
3243 fi | |
3244 | |
3245 | |
3246 test -n "$ac_ct_CC" && break | |
3247 done | |
3248 | |
3249 if test "x$ac_ct_CC" = x; then | |
3250 CC="" | |
3251 else | |
3252 case $cross_compiling:$ac_tool_warned in | |
3253 yes:) | |
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3256 ac_tool_warned=yes ;; | |
3257 esac | |
3258 CC=$ac_ct_CC | |
3259 fi | |
3260 fi | |
3261 | |
3262 fi | |
3263 | |
3264 | |
3265 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3267 as_fn_error $? "no acceptable C compiler found in \$PATH | |
3268 See \`config.log' for more details" "$LINENO" 5; } | |
3269 | |
3270 # Provide some information about the compiler. | |
3271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3272 set X $ac_compile | |
3273 ac_compiler=$2 | |
3274 for ac_option in --version -v -V -qversion; do | |
3275 { { ac_try="$ac_compiler $ac_option >&5" | |
3276 case "(($ac_try" in | |
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3278 *) ac_try_echo=$ac_try;; | |
3279 esac | |
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3281 $as_echo "$ac_try_echo"; } >&5 | |
3282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3283 ac_status=$? | |
3284 if test -s conftest.err; then | |
3285 sed '10a\ | |
3286 ... rest of stderr output deleted ... | |
3287 10q' conftest.err >conftest.er1 | |
3288 cat conftest.er1 >&5 | |
3289 fi | |
3290 rm -f conftest.er1 conftest.err | |
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3292 test $ac_status = 0; } | |
3293 done | |
3294 | |
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3296 /* end confdefs.h. */ | |
3297 | |
3298 int | |
3299 main () | |
3300 { | |
3301 | |
3302 ; | |
3303 return 0; | |
3304 } | |
3305 _ACEOF | |
3306 ac_clean_files_save=$ac_clean_files | |
3307 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3308 # Try to create an executable without -o first, disregard a.out. | |
3309 # It will help us diagnose broken compilers, and finding out an intuition | |
3310 # of exeext. | |
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3312 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3313 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3314 | |
3315 # The possible output files: | |
3316 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3317 | |
3318 ac_rmfiles= | |
3319 for ac_file in $ac_files | |
3320 do | |
3321 case $ac_file in | |
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3323 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3324 esac | |
3325 done | |
3326 rm -f $ac_rmfiles | |
3327 | |
3328 if { { ac_try="$ac_link_default" | |
3329 case "(($ac_try" in | |
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3331 *) ac_try_echo=$ac_try;; | |
3332 esac | |
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3334 $as_echo "$ac_try_echo"; } >&5 | |
3335 (eval "$ac_link_default") 2>&5 | |
3336 ac_status=$? | |
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3338 test $ac_status = 0; }; then : | |
3339 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3340 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3341 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3342 # so that the user can short-circuit this test for compilers unknown to | |
3343 # Autoconf. | |
3344 for ac_file in $ac_files '' | |
3345 do | |
3346 test -f "$ac_file" || continue | |
3347 case $ac_file in | |
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3349 ;; | |
3350 [ab].out ) | |
3351 # We found the default executable, but exeext='' is most | |
3352 # certainly right. | |
3353 break;; | |
3354 *.* ) | |
3355 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3356 then :; else | |
3357 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3358 fi | |
3359 # We set ac_cv_exeext here because the later test for it is not | |
3360 # safe: cross compilers may not add the suffix if given an `-o' | |
3361 # argument, so we may need to know it at that point already. | |
3362 # Even if this section looks crufty: it has the advantage of | |
3363 # actually working. | |
3364 break;; | |
3365 * ) | |
3366 break;; | |
3367 esac | |
3368 done | |
3369 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3370 | |
3371 else | |
3372 ac_file='' | |
3373 fi | |
3374 if test -z "$ac_file"; then : | |
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3376 $as_echo "no" >&6; } | |
3377 $as_echo "$as_me: failed program was:" >&5 | |
3378 sed 's/^/| /' conftest.$ac_ext >&5 | |
3379 | |
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3382 as_fn_error 77 "C compiler cannot create executables | |
3383 See \`config.log' for more details" "$LINENO" 5; } | |
3384 else | |
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3386 $as_echo "yes" >&6; } | |
3387 fi | |
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3389 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3391 $as_echo "$ac_file" >&6; } | |
3392 ac_exeext=$ac_cv_exeext | |
3393 | |
3394 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3395 ac_clean_files=$ac_clean_files_save | |
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3397 $as_echo_n "checking for suffix of executables... " >&6; } | |
3398 if { { ac_try="$ac_link" | |
3399 case "(($ac_try" in | |
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3401 *) ac_try_echo=$ac_try;; | |
3402 esac | |
3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3404 $as_echo "$ac_try_echo"; } >&5 | |
3405 (eval "$ac_link") 2>&5 | |
3406 ac_status=$? | |
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3408 test $ac_status = 0; }; then : | |
3409 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3410 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3411 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3412 # `rm'. | |
3413 for ac_file in conftest.exe conftest conftest.*; do | |
3414 test -f "$ac_file" || continue | |
3415 case $ac_file in | |
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3418 break;; | |
3419 * ) break;; | |
3420 esac | |
3421 done | |
3422 else | |
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3425 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3426 See \`config.log' for more details" "$LINENO" 5; } | |
3427 fi | |
3428 rm -f conftest conftest$ac_cv_exeext | |
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3430 $as_echo "$ac_cv_exeext" >&6; } | |
3431 | |
3432 rm -f conftest.$ac_ext | |
3433 EXEEXT=$ac_cv_exeext | |
3434 ac_exeext=$EXEEXT | |
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3436 /* end confdefs.h. */ | |
3437 #include <stdio.h> | |
3438 int | |
3439 main () | |
3440 { | |
3441 FILE *f = fopen ("conftest.out", "w"); | |
3442 return ferror (f) || fclose (f) != 0; | |
3443 | |
3444 ; | |
3445 return 0; | |
3446 } | |
3447 _ACEOF | |
3448 ac_clean_files="$ac_clean_files conftest.out" | |
3449 # Check that the compiler produces executables we can run. If not, either | |
3450 # the compiler is broken, or we cross compile. | |
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3452 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3453 if test "$cross_compiling" != yes; then | |
3454 { { ac_try="$ac_link" | |
3455 case "(($ac_try" in | |
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3457 *) ac_try_echo=$ac_try;; | |
3458 esac | |
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3460 $as_echo "$ac_try_echo"; } >&5 | |
3461 (eval "$ac_link") 2>&5 | |
3462 ac_status=$? | |
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3464 test $ac_status = 0; } | |
3465 if { ac_try='./conftest$ac_cv_exeext' | |
3466 { { case "(($ac_try" in | |
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3468 *) ac_try_echo=$ac_try;; | |
3469 esac | |
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3471 $as_echo "$ac_try_echo"; } >&5 | |
3472 (eval "$ac_try") 2>&5 | |
3473 ac_status=$? | |
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3475 test $ac_status = 0; }; }; then | |
3476 cross_compiling=no | |
3477 else | |
3478 if test "$cross_compiling" = maybe; then | |
3479 cross_compiling=yes | |
3480 else | |
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3483 as_fn_error $? "cannot run C compiled programs. | |
3484 If you meant to cross compile, use \`--host'. | |
3485 See \`config.log' for more details" "$LINENO" 5; } | |
3486 fi | |
3487 fi | |
3488 fi | |
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3490 $as_echo "$cross_compiling" >&6; } | |
3491 | |
3492 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3493 ac_clean_files=$ac_clean_files_save | |
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3495 $as_echo_n "checking for suffix of object files... " >&6; } | |
3496 if ${ac_cv_objext+:} false; then : | |
3497 $as_echo_n "(cached) " >&6 | |
3498 else | |
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3500 /* end confdefs.h. */ | |
3501 | |
3502 int | |
3503 main () | |
3504 { | |
3505 | |
3506 ; | |
3507 return 0; | |
3508 } | |
3509 _ACEOF | |
3510 rm -f conftest.o conftest.obj | |
3511 if { { ac_try="$ac_compile" | |
3512 case "(($ac_try" in | |
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3514 *) ac_try_echo=$ac_try;; | |
3515 esac | |
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3517 $as_echo "$ac_try_echo"; } >&5 | |
3518 (eval "$ac_compile") 2>&5 | |
3519 ac_status=$? | |
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3521 test $ac_status = 0; }; then : | |
3522 for ac_file in conftest.o conftest.obj conftest.*; do | |
3523 test -f "$ac_file" || continue; | |
3524 case $ac_file in | |
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3527 break;; | |
3528 esac | |
3529 done | |
3530 else | |
3531 $as_echo "$as_me: failed program was:" >&5 | |
3532 sed 's/^/| /' conftest.$ac_ext >&5 | |
3533 | |
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3536 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3537 See \`config.log' for more details" "$LINENO" 5; } | |
3538 fi | |
3539 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3540 fi | |
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3542 $as_echo "$ac_cv_objext" >&6; } | |
3543 OBJEXT=$ac_cv_objext | |
3544 ac_objext=$OBJEXT | |
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3547 if ${ac_cv_c_compiler_gnu+:} false; then : | |
3548 $as_echo_n "(cached) " >&6 | |
3549 else | |
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3551 /* end confdefs.h. */ | |
3552 | |
3553 int | |
3554 main () | |
3555 { | |
3556 #ifndef __GNUC__ | |
3557 choke me | |
3558 #endif | |
3559 | |
3560 ; | |
3561 return 0; | |
3562 } | |
3563 _ACEOF | |
3564 if ac_fn_c_try_compile "$LINENO"; then : | |
3565 ac_compiler_gnu=yes | |
3566 else | |
3567 ac_compiler_gnu=no | |
3568 fi | |
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3570 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3571 | |
3572 fi | |
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3574 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3575 if test $ac_compiler_gnu = yes; then | |
3576 GCC=yes | |
3577 else | |
3578 GCC= | |
3579 fi | |
3580 ac_test_CFLAGS=${CFLAGS+set} | |
3581 ac_save_CFLAGS=$CFLAGS | |
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3583 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3584 if ${ac_cv_prog_cc_g+:} false; then : | |
3585 $as_echo_n "(cached) " >&6 | |
3586 else | |
3587 ac_save_c_werror_flag=$ac_c_werror_flag | |
3588 ac_c_werror_flag=yes | |
3589 ac_cv_prog_cc_g=no | |
3590 CFLAGS="-g" | |
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3592 /* end confdefs.h. */ | |
3593 | |
3594 int | |
3595 main () | |
3596 { | |
3597 | |
3598 ; | |
3599 return 0; | |
3600 } | |
3601 _ACEOF | |
3602 if ac_fn_c_try_compile "$LINENO"; then : | |
3603 ac_cv_prog_cc_g=yes | |
3604 else | |
3605 CFLAGS="" | |
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3607 /* end confdefs.h. */ | |
3608 | |
3609 int | |
3610 main () | |
3611 { | |
3612 | |
3613 ; | |
3614 return 0; | |
3615 } | |
3616 _ACEOF | |
3617 if ac_fn_c_try_compile "$LINENO"; then : | |
3618 | |
3619 else | |
3620 ac_c_werror_flag=$ac_save_c_werror_flag | |
3621 CFLAGS="-g" | |
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3623 /* end confdefs.h. */ | |
3624 | |
3625 int | |
3626 main () | |
3627 { | |
3628 | |
3629 ; | |
3630 return 0; | |
3631 } | |
3632 _ACEOF | |
3633 if ac_fn_c_try_compile "$LINENO"; then : | |
3634 ac_cv_prog_cc_g=yes | |
3635 fi | |
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3637 fi | |
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3639 fi | |
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3641 ac_c_werror_flag=$ac_save_c_werror_flag | |
3642 fi | |
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3644 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3645 if test "$ac_test_CFLAGS" = set; then | |
3646 CFLAGS=$ac_save_CFLAGS | |
3647 elif test $ac_cv_prog_cc_g = yes; then | |
3648 if test "$GCC" = yes; then | |
3649 CFLAGS="-g -O2" | |
3650 else | |
3651 CFLAGS="-g" | |
3652 fi | |
3653 else | |
3654 if test "$GCC" = yes; then | |
3655 CFLAGS="-O2" | |
3656 else | |
3657 CFLAGS= | |
3658 fi | |
3659 fi | |
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3662 if ${ac_cv_prog_cc_c89+:} false; then : | |
3663 $as_echo_n "(cached) " >&6 | |
3664 else | |
3665 ac_cv_prog_cc_c89=no | |
3666 ac_save_CC=$CC | |
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3668 /* end confdefs.h. */ | |
3669 #include <stdarg.h> | |
3670 #include <stdio.h> | |
3671 #include <sys/types.h> | |
3672 #include <sys/stat.h> | |
3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3674 struct buf { int x; }; | |
3675 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3676 static char *e (p, i) | |
3677 char **p; | |
3678 int i; | |
3679 { | |
3680 return p[i]; | |
3681 } | |
3682 static char *f (char * (*g) (char **, int), char **p, ...) | |
3683 { | |
3684 char *s; | |
3685 va_list v; | |
3686 va_start (v,p); | |
3687 s = g (p, va_arg (v,int)); | |
3688 va_end (v); | |
3689 return s; | |
3690 } | |
3691 | |
3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3693 function prototypes and stuff, but not '\xHH' hex character constants. | |
3694 These don't provoke an error unfortunately, instead are silently treated | |
3695 as 'x'. The following induces an error, until -std is added to get | |
3696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3697 array size at least. It's necessary to write '\x00'==0 to get something | |
3698 that's true only with -std. */ | |
3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3700 | |
3701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3702 inside strings and character constants. */ | |
3703 #define FOO(x) 'x' | |
3704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3705 | |
3706 int test (int i, double x); | |
3707 struct s1 {int (*f) (int a);}; | |
3708 struct s2 {int (*f) (double a);}; | |
3709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3710 int argc; | |
3711 char **argv; | |
3712 int | |
3713 main () | |
3714 { | |
3715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3716 ; | |
3717 return 0; | |
3718 } | |
3719 _ACEOF | |
3720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3722 do | |
3723 CC="$ac_save_CC $ac_arg" | |
3724 if ac_fn_c_try_compile "$LINENO"; then : | |
3725 ac_cv_prog_cc_c89=$ac_arg | |
3726 fi | |
3727 rm -f core conftest.err conftest.$ac_objext | |
3728 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3729 done | |
3730 rm -f conftest.$ac_ext | |
3731 CC=$ac_save_CC | |
3732 | |
3733 fi | |
3734 # AC_CACHE_VAL | |
3735 case "x$ac_cv_prog_cc_c89" in | |
3736 x) | |
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3738 $as_echo "none needed" >&6; } ;; | |
3739 xno) | |
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3741 $as_echo "unsupported" >&6; } ;; | |
3742 *) | |
3743 CC="$CC $ac_cv_prog_cc_c89" | |
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3746 esac | |
3747 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3748 | |
3749 fi | |
3750 | |
3751 ac_ext=c | |
3752 ac_cpp='$CPP $CPPFLAGS' | |
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3756 DEPDIR="${am__leading_dot}deps" | |
3757 | |
3758 ac_config_commands="$ac_config_commands depfiles" | |
3759 | |
3760 | |
3761 am_make=${MAKE-make} | |
3762 cat > confinc << 'END' | |
3763 am__doit: | |
3764 @echo this is the am__doit target | |
3765 .PHONY: am__doit | |
3766 END | |
3767 # If we don't find an include directive, just comment out the code. | |
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3769 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3770 am__include="#" | |
3771 am__quote= | |
3772 _am_result=none | |
3773 # First try GNU make style include. | |
3774 echo "include confinc" > confmf | |
3775 # Ignore all kinds of additional output from `make'. | |
3776 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3777 *the\ am__doit\ target*) | |
3778 am__include=include | |
3779 am__quote= | |
3780 _am_result=GNU | |
3781 ;; | |
3782 esac | |
3783 # Now try BSD make style include. | |
3784 if test "$am__include" = "#"; then | |
3785 echo '.include "confinc"' > confmf | |
3786 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3787 *the\ am__doit\ target*) | |
3788 am__include=.include | |
3789 am__quote="\"" | |
3790 _am_result=BSD | |
3791 ;; | |
3792 esac | |
3793 fi | |
3794 | |
3795 | |
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3797 $as_echo "$_am_result" >&6; } | |
3798 rm -f confinc confmf | |
3799 | |
3800 # Check whether --enable-dependency-tracking was given. | |
3801 if test "${enable_dependency_tracking+set}" = set; then : | |
3802 enableval=$enable_dependency_tracking; | |
3803 fi | |
3804 | |
3805 if test "x$enable_dependency_tracking" != xno; then | |
3806 am_depcomp="$ac_aux_dir/depcomp" | |
3807 AMDEPBACKSLASH='\' | |
3808 fi | |
3809 if test "x$enable_dependency_tracking" != xno; then | |
3810 AMDEP_TRUE= | |
3811 AMDEP_FALSE='#' | |
3812 else | |
3813 AMDEP_TRUE='#' | |
3814 AMDEP_FALSE= | |
3815 fi | |
3816 | |
3817 | |
3818 | |
3819 depcc="$CC" am_compiler_list= | |
3820 | |
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3822 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3823 if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3824 $as_echo_n "(cached) " >&6 | |
3825 else | |
3826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3827 # We make a subdir and do the tests there. Otherwise we can end up | |
3828 # making bogus files that we don't know about and never remove. For | |
3829 # instance it was reported that on HP-UX the gcc test will end up | |
3830 # making a dummy file named `D' -- because `-MD' means `put the output | |
3831 # in D'. | |
3832 mkdir conftest.dir | |
3833 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3834 # using a relative directory. | |
3835 cp "$am_depcomp" conftest.dir | |
3836 cd conftest.dir | |
3837 # We will build objects and dependencies in a subdirectory because | |
3838 # it helps to detect inapplicable dependency modes. For instance | |
3839 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3840 # side effect of compilation, but ICC will put the dependencies in | |
3841 # the current directory while Tru64 will put them in the object | |
3842 # directory. | |
3843 mkdir sub | |
3844 | |
3845 am_cv_CC_dependencies_compiler_type=none | |
3846 if test "$am_compiler_list" = ""; then | |
3847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3848 fi | |
3849 am__universal=false | |
3850 case " $depcc " in #( | |
3851 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3852 esac | |
3853 | |
3854 for depmode in $am_compiler_list; do | |
3855 # Setup a source with many dependencies, because some compilers | |
3856 # like to wrap large dependency lists on column 80 (with \), and | |
3857 # we should not choose a depcomp mode which is confused by this. | |
3858 # | |
3859 # We need to recreate these files for each test, as the compiler may | |
3860 # overwrite some of them when testing with obscure command lines. | |
3861 # This happens at least with the AIX C compiler. | |
3862 : > sub/conftest.c | |
3863 for i in 1 2 3 4 5 6; do | |
3864 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3866 # Solaris 8's {/usr,}/bin/sh. | |
3867 touch sub/conftst$i.h | |
3868 done | |
3869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3870 | |
3871 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3872 # mode. It turns out that the SunPro C++ compiler does not properly | |
3873 # handle `-M -o', and we need to detect this. Also, some Intel | |
3874 # versions had trouble with output in subdirs | |
3875 am__obj=sub/conftest.${OBJEXT-o} | |
3876 am__minus_obj="-o $am__obj" | |
3877 case $depmode in | |
3878 gcc) | |
3879 # This depmode causes a compiler race in universal mode. | |
3880 test "$am__universal" = false || continue | |
3881 ;; | |
3882 nosideeffect) | |
3883 # after this tag, mechanisms are not by side-effect, so they'll | |
3884 # only be used when explicitly requested | |
3885 if test "x$enable_dependency_tracking" = xyes; then | |
3886 continue | |
3887 else | |
3888 break | |
3889 fi | |
3890 ;; | |
3891 msvisualcpp | msvcmsys) | |
3892 # This compiler won't grok `-c -o', but also, the minuso test has | |
3893 # not run yet. These depmodes are late enough in the game, and | |
3894 # so weak that their functioning should not be impacted. | |
3895 am__obj=conftest.${OBJEXT-o} | |
3896 am__minus_obj= | |
3897 ;; | |
3898 none) break ;; | |
3899 esac | |
3900 if depmode=$depmode \ | |
3901 source=sub/conftest.c object=$am__obj \ | |
3902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3904 >/dev/null 2>conftest.err && | |
3905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3909 # icc doesn't choke on unknown options, it will just issue warnings | |
3910 # or remarks (even with -Werror). So we grep stderr for any message | |
3911 # that says an option was ignored or not supported. | |
3912 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3913 # icc: Command line warning: ignoring option '-M'; no argument required | |
3914 # The diagnosis changed in icc 8.0: | |
3915 # icc: Command line remark: option '-MP' not supported | |
3916 if (grep 'ignoring option' conftest.err || | |
3917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3918 am_cv_CC_dependencies_compiler_type=$depmode | |
3919 break | |
3920 fi | |
3921 fi | |
3922 done | |
3923 | |
3924 cd .. | |
3925 rm -rf conftest.dir | |
3926 else | |
3927 am_cv_CC_dependencies_compiler_type=none | |
3928 fi | |
3929 | |
3930 fi | |
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3932 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3933 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3934 | |
3935 if | |
3936 test "x$enable_dependency_tracking" != xno \ | |
3937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3938 am__fastdepCC_TRUE= | |
3939 am__fastdepCC_FALSE='#' | |
3940 else | |
3941 am__fastdepCC_TRUE='#' | |
3942 am__fastdepCC_FALSE= | |
3943 fi | |
3944 | |
3945 | |
3946 ac_ext=c | |
3947 ac_cpp='$CPP $CPPFLAGS' | |
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3952 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3953 # On Suns, sometimes $CPP names a directory. | |
3954 if test -n "$CPP" && test -d "$CPP"; then | |
3955 CPP= | |
3956 fi | |
3957 if test -z "$CPP"; then | |
3958 if ${ac_cv_prog_CPP+:} false; then : | |
3959 $as_echo_n "(cached) " >&6 | |
3960 else | |
3961 # Double quotes because CPP needs to be expanded | |
3962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3963 do | |
3964 ac_preproc_ok=false | |
3965 for ac_c_preproc_warn_flag in '' yes | |
3966 do | |
3967 # Use a header file that comes with gcc, so configuring glibc | |
3968 # with a fresh cross-compiler works. | |
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3970 # <limits.h> exists even on freestanding compilers. | |
3971 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3972 # not just through cpp. "Syntax error" is here to catch this case. | |
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3974 /* end confdefs.h. */ | |
3975 #ifdef __STDC__ | |
3976 # include <limits.h> | |
3977 #else | |
3978 # include <assert.h> | |
3979 #endif | |
3980 Syntax error | |
3981 _ACEOF | |
3982 if ac_fn_c_try_cpp "$LINENO"; then : | |
3983 | |
3984 else | |
3985 # Broken: fails on valid input. | |
3986 continue | |
3987 fi | |
3988 rm -f conftest.err conftest.i conftest.$ac_ext | |
3989 | |
3990 # OK, works on sane cases. Now check whether nonexistent headers | |
3991 # can be detected and how. | |
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3993 /* end confdefs.h. */ | |
3994 #include <ac_nonexistent.h> | |
3995 _ACEOF | |
3996 if ac_fn_c_try_cpp "$LINENO"; then : | |
3997 # Broken: success on invalid input. | |
3998 continue | |
3999 else | |
4000 # Passes both tests. | |
4001 ac_preproc_ok=: | |
4002 break | |
4003 fi | |
4004 rm -f conftest.err conftest.i conftest.$ac_ext | |
4005 | |
4006 done | |
4007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4008 rm -f conftest.i conftest.err conftest.$ac_ext | |
4009 if $ac_preproc_ok; then : | |
4010 break | |
4011 fi | |
4012 | |
4013 done | |
4014 ac_cv_prog_CPP=$CPP | |
4015 | |
4016 fi | |
4017 CPP=$ac_cv_prog_CPP | |
4018 else | |
4019 ac_cv_prog_CPP=$CPP | |
4020 fi | |
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4022 $as_echo "$CPP" >&6; } | |
4023 ac_preproc_ok=false | |
4024 for ac_c_preproc_warn_flag in '' yes | |
4025 do | |
4026 # Use a header file that comes with gcc, so configuring glibc | |
4027 # with a fresh cross-compiler works. | |
4028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4029 # <limits.h> exists even on freestanding compilers. | |
4030 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4031 # not just through cpp. "Syntax error" is here to catch this case. | |
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4033 /* end confdefs.h. */ | |
4034 #ifdef __STDC__ | |
4035 # include <limits.h> | |
4036 #else | |
4037 # include <assert.h> | |
4038 #endif | |
4039 Syntax error | |
4040 _ACEOF | |
4041 if ac_fn_c_try_cpp "$LINENO"; then : | |
4042 | |
4043 else | |
4044 # Broken: fails on valid input. | |
4045 continue | |
4046 fi | |
4047 rm -f conftest.err conftest.i conftest.$ac_ext | |
4048 | |
4049 # OK, works on sane cases. Now check whether nonexistent headers | |
4050 # can be detected and how. | |
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4052 /* end confdefs.h. */ | |
4053 #include <ac_nonexistent.h> | |
4054 _ACEOF | |
4055 if ac_fn_c_try_cpp "$LINENO"; then : | |
4056 # Broken: success on invalid input. | |
4057 continue | |
4058 else | |
4059 # Passes both tests. | |
4060 ac_preproc_ok=: | |
4061 break | |
4062 fi | |
4063 rm -f conftest.err conftest.i conftest.$ac_ext | |
4064 | |
4065 done | |
4066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4067 rm -f conftest.i conftest.err conftest.$ac_ext | |
4068 if $ac_preproc_ok; then : | |
4069 | |
4070 else | |
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4073 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4074 See \`config.log' for more details" "$LINENO" 5; } | |
4075 fi | |
4076 | |
4077 ac_ext=c | |
4078 ac_cpp='$CPP $CPPFLAGS' | |
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4082 | |
4083 CFLAGS="$cflags_save" | |
4084 | |
4085 | |
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
4087 $as_echo_n "checking for inline... " >&6; } | |
4088 if ${ac_cv_c_inline+:} false; then : | |
4089 $as_echo_n "(cached) " >&6 | |
4090 else | |
4091 ac_cv_c_inline=no | |
4092 for ac_kw in inline __inline__ __inline; do | |
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4094 /* end confdefs.h. */ | |
4095 #ifndef __cplusplus | |
4096 typedef int foo_t; | |
4097 static $ac_kw foo_t static_foo () {return 0; } | |
4098 $ac_kw foo_t foo () {return 0; } | |
4099 #endif | |
4100 | |
4101 _ACEOF | |
4102 if ac_fn_c_try_compile "$LINENO"; then : | |
4103 ac_cv_c_inline=$ac_kw | |
4104 fi | |
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4106 test "$ac_cv_c_inline" != no && break | |
4107 done | |
4108 | |
4109 fi | |
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
4111 $as_echo "$ac_cv_c_inline" >&6; } | |
4112 | |
4113 case $ac_cv_c_inline in | |
4114 inline | yes) ;; | |
4115 *) | |
4116 case $ac_cv_c_inline in | |
4117 no) ac_val=;; | |
4118 *) ac_val=$ac_cv_c_inline;; | |
4119 esac | |
4120 cat >>confdefs.h <<_ACEOF | |
4121 #ifndef __cplusplus | |
4122 #define inline $ac_val | |
4123 #endif | |
4124 _ACEOF | |
4125 ;; | |
4126 esac | |
4127 | |
4128 | |
4129 enable_win32_dll=yes | |
4130 | |
4131 case $host in | |
4132 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
4133 if test -n "$ac_tool_prefix"; then | |
4134 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
4135 set dummy ${ac_tool_prefix}as; ac_word=$2 | |
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4137 $as_echo_n "checking for $ac_word... " >&6; } | |
4138 if ${ac_cv_prog_AS+:} false; then : | |
4139 $as_echo_n "(cached) " >&6 | |
4140 else | |
4141 if test -n "$AS"; then | |
4142 ac_cv_prog_AS="$AS" # Let the user override the test. | |
4143 else | |
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4145 for as_dir in $PATH | |
4146 do | |
4147 IFS=$as_save_IFS | |
4148 test -z "$as_dir" && as_dir=. | |
4149 for ac_exec_ext in '' $ac_executable_extensions; do | |
4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4151 ac_cv_prog_AS="${ac_tool_prefix}as" | |
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4153 break 2 | |
4154 fi | |
4155 done | |
4156 done | |
4157 IFS=$as_save_IFS | |
4158 | |
4159 fi | |
4160 fi | |
4161 AS=$ac_cv_prog_AS | |
4162 if test -n "$AS"; then | |
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
4164 $as_echo "$AS" >&6; } | |
4165 else | |
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4167 $as_echo "no" >&6; } | |
4168 fi | |
4169 | |
4170 | |
4171 fi | |
4172 if test -z "$ac_cv_prog_AS"; then | |
4173 ac_ct_AS=$AS | |
4174 # Extract the first word of "as", so it can be a program name with args. | |
4175 set dummy as; ac_word=$2 | |
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4177 $as_echo_n "checking for $ac_word... " >&6; } | |
4178 if ${ac_cv_prog_ac_ct_AS+:} false; then : | |
4179 $as_echo_n "(cached) " >&6 | |
4180 else | |
4181 if test -n "$ac_ct_AS"; then | |
4182 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
4183 else | |
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4185 for as_dir in $PATH | |
4186 do | |
4187 IFS=$as_save_IFS | |
4188 test -z "$as_dir" && as_dir=. | |
4189 for ac_exec_ext in '' $ac_executable_extensions; do | |
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4191 ac_cv_prog_ac_ct_AS="as" | |
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4193 break 2 | |
4194 fi | |
4195 done | |
4196 done | |
4197 IFS=$as_save_IFS | |
4198 | |
4199 fi | |
4200 fi | |
4201 ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
4202 if test -n "$ac_ct_AS"; then | |
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
4204 $as_echo "$ac_ct_AS" >&6; } | |
4205 else | |
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4207 $as_echo "no" >&6; } | |
4208 fi | |
4209 | |
4210 if test "x$ac_ct_AS" = x; then | |
4211 AS="false" | |
4212 else | |
4213 case $cross_compiling:$ac_tool_warned in | |
4214 yes:) | |
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4217 ac_tool_warned=yes ;; | |
4218 esac | |
4219 AS=$ac_ct_AS | |
4220 fi | |
4221 else | |
4222 AS="$ac_cv_prog_AS" | |
4223 fi | |
4224 | |
4225 if test -n "$ac_tool_prefix"; then | |
4226 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
4227 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4229 $as_echo_n "checking for $ac_word... " >&6; } | |
4230 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
4231 $as_echo_n "(cached) " >&6 | |
4232 else | |
4233 if test -n "$DLLTOOL"; then | |
4234 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
4235 else | |
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4237 for as_dir in $PATH | |
4238 do | |
4239 IFS=$as_save_IFS | |
4240 test -z "$as_dir" && as_dir=. | |
4241 for ac_exec_ext in '' $ac_executable_extensions; do | |
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4243 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4245 break 2 | |
4246 fi | |
4247 done | |
4248 done | |
4249 IFS=$as_save_IFS | |
4250 | |
4251 fi | |
4252 fi | |
4253 DLLTOOL=$ac_cv_prog_DLLTOOL | |
4254 if test -n "$DLLTOOL"; then | |
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
4256 $as_echo "$DLLTOOL" >&6; } | |
4257 else | |
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4259 $as_echo "no" >&6; } | |
4260 fi | |
4261 | |
4262 | |
4263 fi | |
4264 if test -z "$ac_cv_prog_DLLTOOL"; then | |
4265 ac_ct_DLLTOOL=$DLLTOOL | |
4266 # Extract the first word of "dlltool", so it can be a program name with args. | |
4267 set dummy dlltool; ac_word=$2 | |
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4269 $as_echo_n "checking for $ac_word... " >&6; } | |
4270 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
4271 $as_echo_n "(cached) " >&6 | |
4272 else | |
4273 if test -n "$ac_ct_DLLTOOL"; then | |
4274 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
4275 else | |
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4277 for as_dir in $PATH | |
4278 do | |
4279 IFS=$as_save_IFS | |
4280 test -z "$as_dir" && as_dir=. | |
4281 for ac_exec_ext in '' $ac_executable_extensions; do | |
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4283 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4285 break 2 | |
4286 fi | |
4287 done | |
4288 done | |
4289 IFS=$as_save_IFS | |
4290 | |
4291 fi | |
4292 fi | |
4293 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
4294 if test -n "$ac_ct_DLLTOOL"; then | |
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
4296 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
4297 else | |
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4299 $as_echo "no" >&6; } | |
4300 fi | |
4301 | |
4302 if test "x$ac_ct_DLLTOOL" = x; then | |
4303 DLLTOOL="false" | |
4304 else | |
4305 case $cross_compiling:$ac_tool_warned in | |
4306 yes:) | |
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4309 ac_tool_warned=yes ;; | |
4310 esac | |
4311 DLLTOOL=$ac_ct_DLLTOOL | |
4312 fi | |
4313 else | |
4314 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
4315 fi | |
4316 | |
4317 if test -n "$ac_tool_prefix"; then | |
4318 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4319 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4321 $as_echo_n "checking for $ac_word... " >&6; } | |
4322 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
4323 $as_echo_n "(cached) " >&6 | |
4324 else | |
4325 if test -n "$OBJDUMP"; then | |
4326 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4327 else | |
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4329 for as_dir in $PATH | |
4330 do | |
4331 IFS=$as_save_IFS | |
4332 test -z "$as_dir" && as_dir=. | |
4333 for ac_exec_ext in '' $ac_executable_extensions; do | |
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4335 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4337 break 2 | |
4338 fi | |
4339 done | |
4340 done | |
4341 IFS=$as_save_IFS | |
4342 | |
4343 fi | |
4344 fi | |
4345 OBJDUMP=$ac_cv_prog_OBJDUMP | |
4346 if test -n "$OBJDUMP"; then | |
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4348 $as_echo "$OBJDUMP" >&6; } | |
4349 else | |
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4351 $as_echo "no" >&6; } | |
4352 fi | |
4353 | |
4354 | |
4355 fi | |
4356 if test -z "$ac_cv_prog_OBJDUMP"; then | |
4357 ac_ct_OBJDUMP=$OBJDUMP | |
4358 # Extract the first word of "objdump", so it can be a program name with args. | |
4359 set dummy objdump; ac_word=$2 | |
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4361 $as_echo_n "checking for $ac_word... " >&6; } | |
4362 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
4363 $as_echo_n "(cached) " >&6 | |
4364 else | |
4365 if test -n "$ac_ct_OBJDUMP"; then | |
4366 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4367 else | |
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4369 for as_dir in $PATH | |
4370 do | |
4371 IFS=$as_save_IFS | |
4372 test -z "$as_dir" && as_dir=. | |
4373 for ac_exec_ext in '' $ac_executable_extensions; do | |
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4375 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4377 break 2 | |
4378 fi | |
4379 done | |
4380 done | |
4381 IFS=$as_save_IFS | |
4382 | |
4383 fi | |
4384 fi | |
4385 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4386 if test -n "$ac_ct_OBJDUMP"; then | |
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4388 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
4389 else | |
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4391 $as_echo "no" >&6; } | |
4392 fi | |
4393 | |
4394 if test "x$ac_ct_OBJDUMP" = x; then | |
4395 OBJDUMP="false" | |
4396 else | |
4397 case $cross_compiling:$ac_tool_warned in | |
4398 yes:) | |
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4401 ac_tool_warned=yes ;; | |
4402 esac | |
4403 OBJDUMP=$ac_ct_OBJDUMP | |
4404 fi | |
4405 else | |
4406 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4407 fi | |
4408 | |
4409 ;; | |
4410 esac | |
4411 | |
4412 test -z "$AS" && AS=as | |
4413 | |
4414 | |
4415 | |
4416 | |
4417 | |
4418 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
4419 | |
4420 | |
4421 | |
4422 | |
4423 | |
4424 test -z "$OBJDUMP" && OBJDUMP=objdump | |
4425 | |
4426 | |
4427 | |
4428 | |
4429 | |
4430 | |
4431 | |
4432 case `pwd` in | |
4433 *\ * | *\ *) | |
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4435 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4436 esac | |
4437 | |
4438 | |
4439 | |
4440 macro_version='2.4' | |
4441 macro_revision='1.3293' | |
4442 | |
4443 | |
4444 | |
4445 | |
4446 | |
4447 | |
4448 | |
4449 | |
4450 | |
4451 | |
4452 | |
4453 | |
4454 | |
4455 ltmain="$ac_aux_dir/ltmain.sh" | |
4456 | |
4457 # Backslashify metacharacters that are still active within | |
4458 # double-quoted strings. | |
4459 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4460 | |
4461 # Same as above, but do not quote variable references. | |
4462 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4463 | |
4464 # Sed substitution to delay expansion of an escaped shell variable in a | |
4465 # double_quote_subst'ed string. | |
4466 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4467 | |
4468 # Sed substitution to delay expansion of an escaped single quote. | |
4469 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4470 | |
4471 # Sed substitution to avoid accidental globbing in evaled expressions | |
4472 no_glob_subst='s/\*/\\\*/g' | |
4473 | |
4474 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4475 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4476 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4477 | |
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4479 $as_echo_n "checking how to print strings... " >&6; } | |
4480 # Test print first, because it will be a builtin if present. | |
4481 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4482 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4483 ECHO='print -r --' | |
4484 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4485 ECHO='printf %s\n' | |
4486 else | |
4487 # Use this function as a fallback that always works. | |
4488 func_fallback_echo () | |
4489 { | |
4490 eval 'cat <<_LTECHO_EOF | |
4491 $1 | |
4492 _LTECHO_EOF' | |
4493 } | |
4494 ECHO='func_fallback_echo' | |
4495 fi | |
4496 | |
4497 # func_echo_all arg... | |
4498 # Invoke $ECHO with all args, space-separated. | |
4499 func_echo_all () | |
4500 { | |
4501 $ECHO "" | |
4502 } | |
4503 | |
4504 case "$ECHO" in | |
4505 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4506 $as_echo "printf" >&6; } ;; | |
4507 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4508 $as_echo "print -r" >&6; } ;; | |
4509 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4510 $as_echo "cat" >&6; } ;; | |
4511 esac | |
4512 | |
4513 | |
4514 | |
4515 | |
4516 | |
4517 | |
4518 | |
4519 | |
4520 | |
4521 | |
4522 | |
4523 | |
4524 | |
4525 | |
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4527 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4528 if ${ac_cv_path_SED+:} false; then : | |
4529 $as_echo_n "(cached) " >&6 | |
4530 else | |
4531 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4532 for ac_i in 1 2 3 4 5 6 7; do | |
4533 ac_script="$ac_script$as_nl$ac_script" | |
4534 done | |
4535 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4536 { ac_script=; unset ac_script;} | |
4537 if test -z "$SED"; then | |
4538 ac_path_SED_found=false | |
4539 # Loop through the user's path and test for each of PROGNAME-LIST | |
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4541 for as_dir in $PATH | |
4542 do | |
4543 IFS=$as_save_IFS | |
4544 test -z "$as_dir" && as_dir=. | |
4545 for ac_prog in sed gsed; do | |
4546 for ac_exec_ext in '' $ac_executable_extensions; do | |
4547 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4548 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4549 # Check for GNU ac_path_SED and select it if it is found. | |
4550 # Check for GNU $ac_path_SED | |
4551 case `"$ac_path_SED" --version 2>&1` in | |
4552 *GNU*) | |
4553 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4554 *) | |
4555 ac_count=0 | |
4556 $as_echo_n 0123456789 >"conftest.in" | |
4557 while : | |
4558 do | |
4559 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4560 mv "conftest.tmp" "conftest.in" | |
4561 cp "conftest.in" "conftest.nl" | |
4562 $as_echo '' >> "conftest.nl" | |
4563 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4565 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4566 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4567 # Best one so far, save it but keep looking for a better one | |
4568 ac_cv_path_SED="$ac_path_SED" | |
4569 ac_path_SED_max=$ac_count | |
4570 fi | |
4571 # 10*(2^10) chars as input seems more than enough | |
4572 test $ac_count -gt 10 && break | |
4573 done | |
4574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4575 esac | |
4576 | |
4577 $ac_path_SED_found && break 3 | |
4578 done | |
4579 done | |
4580 done | |
4581 IFS=$as_save_IFS | |
4582 if test -z "$ac_cv_path_SED"; then | |
4583 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4584 fi | |
4585 else | |
4586 ac_cv_path_SED=$SED | |
4587 fi | |
4588 | |
4589 fi | |
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4591 $as_echo "$ac_cv_path_SED" >&6; } | |
4592 SED="$ac_cv_path_SED" | |
4593 rm -f conftest.sed | |
4594 | |
4595 test -z "$SED" && SED=sed | |
4596 Xsed="$SED -e 1s/^X//" | |
4597 | |
4598 | |
4599 | |
4600 | |
4601 | |
4602 | |
4603 | |
4604 | |
4605 | |
4606 | |
4607 | |
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4610 if ${ac_cv_path_GREP+:} false; then : | |
4611 $as_echo_n "(cached) " >&6 | |
4612 else | |
4613 if test -z "$GREP"; then | |
4614 ac_path_GREP_found=false | |
4615 # Loop through the user's path and test for each of PROGNAME-LIST | |
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4618 do | |
4619 IFS=$as_save_IFS | |
4620 test -z "$as_dir" && as_dir=. | |
4621 for ac_prog in grep ggrep; do | |
4622 for ac_exec_ext in '' $ac_executable_extensions; do | |
4623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4624 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4625 # Check for GNU ac_path_GREP and select it if it is found. | |
4626 # Check for GNU $ac_path_GREP | |
4627 case `"$ac_path_GREP" --version 2>&1` in | |
4628 *GNU*) | |
4629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4630 *) | |
4631 ac_count=0 | |
4632 $as_echo_n 0123456789 >"conftest.in" | |
4633 while : | |
4634 do | |
4635 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4636 mv "conftest.tmp" "conftest.in" | |
4637 cp "conftest.in" "conftest.nl" | |
4638 $as_echo 'GREP' >> "conftest.nl" | |
4639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4641 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4642 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4643 # Best one so far, save it but keep looking for a better one | |
4644 ac_cv_path_GREP="$ac_path_GREP" | |
4645 ac_path_GREP_max=$ac_count | |
4646 fi | |
4647 # 10*(2^10) chars as input seems more than enough | |
4648 test $ac_count -gt 10 && break | |
4649 done | |
4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4651 esac | |
4652 | |
4653 $ac_path_GREP_found && break 3 | |
4654 done | |
4655 done | |
4656 done | |
4657 IFS=$as_save_IFS | |
4658 if test -z "$ac_cv_path_GREP"; then | |
4659 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4660 fi | |
4661 else | |
4662 ac_cv_path_GREP=$GREP | |
4663 fi | |
4664 | |
4665 fi | |
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4667 $as_echo "$ac_cv_path_GREP" >&6; } | |
4668 GREP="$ac_cv_path_GREP" | |
4669 | |
4670 | |
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4672 $as_echo_n "checking for egrep... " >&6; } | |
4673 if ${ac_cv_path_EGREP+:} false; then : | |
4674 $as_echo_n "(cached) " >&6 | |
4675 else | |
4676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4677 then ac_cv_path_EGREP="$GREP -E" | |
4678 else | |
4679 if test -z "$EGREP"; then | |
4680 ac_path_EGREP_found=false | |
4681 # Loop through the user's path and test for each of PROGNAME-LIST | |
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4684 do | |
4685 IFS=$as_save_IFS | |
4686 test -z "$as_dir" && as_dir=. | |
4687 for ac_prog in egrep; do | |
4688 for ac_exec_ext in '' $ac_executable_extensions; do | |
4689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4690 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4691 # Check for GNU ac_path_EGREP and select it if it is found. | |
4692 # Check for GNU $ac_path_EGREP | |
4693 case `"$ac_path_EGREP" --version 2>&1` in | |
4694 *GNU*) | |
4695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4696 *) | |
4697 ac_count=0 | |
4698 $as_echo_n 0123456789 >"conftest.in" | |
4699 while : | |
4700 do | |
4701 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4702 mv "conftest.tmp" "conftest.in" | |
4703 cp "conftest.in" "conftest.nl" | |
4704 $as_echo 'EGREP' >> "conftest.nl" | |
4705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4707 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4709 # Best one so far, save it but keep looking for a better one | |
4710 ac_cv_path_EGREP="$ac_path_EGREP" | |
4711 ac_path_EGREP_max=$ac_count | |
4712 fi | |
4713 # 10*(2^10) chars as input seems more than enough | |
4714 test $ac_count -gt 10 && break | |
4715 done | |
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4717 esac | |
4718 | |
4719 $ac_path_EGREP_found && break 3 | |
4720 done | |
4721 done | |
4722 done | |
4723 IFS=$as_save_IFS | |
4724 if test -z "$ac_cv_path_EGREP"; then | |
4725 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4726 fi | |
4727 else | |
4728 ac_cv_path_EGREP=$EGREP | |
4729 fi | |
4730 | |
4731 fi | |
4732 fi | |
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4734 $as_echo "$ac_cv_path_EGREP" >&6; } | |
4735 EGREP="$ac_cv_path_EGREP" | |
4736 | |
4737 | |
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4739 $as_echo_n "checking for fgrep... " >&6; } | |
4740 if ${ac_cv_path_FGREP+:} false; then : | |
4741 $as_echo_n "(cached) " >&6 | |
4742 else | |
4743 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4744 then ac_cv_path_FGREP="$GREP -F" | |
4745 else | |
4746 if test -z "$FGREP"; then | |
4747 ac_path_FGREP_found=false | |
4748 # Loop through the user's path and test for each of PROGNAME-LIST | |
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4751 do | |
4752 IFS=$as_save_IFS | |
4753 test -z "$as_dir" && as_dir=. | |
4754 for ac_prog in fgrep; do | |
4755 for ac_exec_ext in '' $ac_executable_extensions; do | |
4756 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4757 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4758 # Check for GNU ac_path_FGREP and select it if it is found. | |
4759 # Check for GNU $ac_path_FGREP | |
4760 case `"$ac_path_FGREP" --version 2>&1` in | |
4761 *GNU*) | |
4762 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4763 *) | |
4764 ac_count=0 | |
4765 $as_echo_n 0123456789 >"conftest.in" | |
4766 while : | |
4767 do | |
4768 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4769 mv "conftest.tmp" "conftest.in" | |
4770 cp "conftest.in" "conftest.nl" | |
4771 $as_echo 'FGREP' >> "conftest.nl" | |
4772 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4774 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4775 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4776 # Best one so far, save it but keep looking for a better one | |
4777 ac_cv_path_FGREP="$ac_path_FGREP" | |
4778 ac_path_FGREP_max=$ac_count | |
4779 fi | |
4780 # 10*(2^10) chars as input seems more than enough | |
4781 test $ac_count -gt 10 && break | |
4782 done | |
4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4784 esac | |
4785 | |
4786 $ac_path_FGREP_found && break 3 | |
4787 done | |
4788 done | |
4789 done | |
4790 IFS=$as_save_IFS | |
4791 if test -z "$ac_cv_path_FGREP"; then | |
4792 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4793 fi | |
4794 else | |
4795 ac_cv_path_FGREP=$FGREP | |
4796 fi | |
4797 | |
4798 fi | |
4799 fi | |
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4801 $as_echo "$ac_cv_path_FGREP" >&6; } | |
4802 FGREP="$ac_cv_path_FGREP" | |
4803 | |
4804 | |
4805 test -z "$GREP" && GREP=grep | |
4806 | |
4807 | |
4808 | |
4809 | |
4810 | |
4811 | |
4812 | |
4813 | |
4814 | |
4815 | |
4816 | |
4817 | |
4818 | |
4819 | |
4820 | |
4821 | |
4822 | |
4823 | |
4824 | |
4825 # Check whether --with-gnu-ld was given. | |
4826 if test "${with_gnu_ld+set}" = set; then : | |
4827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4828 else | |
4829 with_gnu_ld=no | |
4830 fi | |
4831 | |
4832 ac_prog=ld | |
4833 if test "$GCC" = yes; then | |
4834 # Check if gcc -print-prog-name=ld gives a path. | |
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4836 $as_echo_n "checking for ld used by $CC... " >&6; } | |
4837 case $host in | |
4838 *-*-mingw*) | |
4839 # gcc leaves a trailing carriage return which upsets mingw | |
4840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4841 *) | |
4842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4843 esac | |
4844 case $ac_prog in | |
4845 # Accept absolute paths. | |
4846 [\\/]* | ?:[\\/]*) | |
4847 re_direlt='/[^/][^/]*/\.\./' | |
4848 # Canonicalize the pathname of ld | |
4849 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4851 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4852 done | |
4853 test -z "$LD" && LD="$ac_prog" | |
4854 ;; | |
4855 "") | |
4856 # If it fails, then pretend we aren't using GCC. | |
4857 ac_prog=ld | |
4858 ;; | |
4859 *) | |
4860 # If it is relative, then search for the first ld in PATH. | |
4861 with_gnu_ld=unknown | |
4862 ;; | |
4863 esac | |
4864 elif test "$with_gnu_ld" = yes; then | |
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4866 $as_echo_n "checking for GNU ld... " >&6; } | |
4867 else | |
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4869 $as_echo_n "checking for non-GNU ld... " >&6; } | |
4870 fi | |
4871 if ${lt_cv_path_LD+:} false; then : | |
4872 $as_echo_n "(cached) " >&6 | |
4873 else | |
4874 if test -z "$LD"; then | |
4875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4876 for ac_dir in $PATH; do | |
4877 IFS="$lt_save_ifs" | |
4878 test -z "$ac_dir" && ac_dir=. | |
4879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4880 lt_cv_path_LD="$ac_dir/$ac_prog" | |
4881 # Check to see if the program is GNU ld. I'd rather use --version, | |
4882 # but apparently some variants of GNU ld only accept -v. | |
4883 # Break only if it was the GNU/non-GNU ld that we prefer. | |
4884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4885 *GNU* | *'with BFD'*) | |
4886 test "$with_gnu_ld" != no && break | |
4887 ;; | |
4888 *) | |
4889 test "$with_gnu_ld" != yes && break | |
4890 ;; | |
4891 esac | |
4892 fi | |
4893 done | |
4894 IFS="$lt_save_ifs" | |
4895 else | |
4896 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4897 fi | |
4898 fi | |
4899 | |
4900 LD="$lt_cv_path_LD" | |
4901 if test -n "$LD"; then | |
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4903 $as_echo "$LD" >&6; } | |
4904 else | |
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4906 $as_echo "no" >&6; } | |
4907 fi | |
4908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4911 if ${lt_cv_prog_gnu_ld+:} false; then : | |
4912 $as_echo_n "(cached) " >&6 | |
4913 else | |
4914 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4915 case `$LD -v 2>&1 </dev/null` in | |
4916 *GNU* | *'with BFD'*) | |
4917 lt_cv_prog_gnu_ld=yes | |
4918 ;; | |
4919 *) | |
4920 lt_cv_prog_gnu_ld=no | |
4921 ;; | |
4922 esac | |
4923 fi | |
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4925 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4926 with_gnu_ld=$lt_cv_prog_gnu_ld | |
4927 | |
4928 | |
4929 | |
4930 | |
4931 | |
4932 | |
4933 | |
4934 | |
4935 | |
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4937 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4938 if ${lt_cv_path_NM+:} false; then : | |
4939 $as_echo_n "(cached) " >&6 | |
4940 else | |
4941 if test -n "$NM"; then | |
4942 # Let the user override the test. | |
4943 lt_cv_path_NM="$NM" | |
4944 else | |
4945 lt_nm_to_check="${ac_tool_prefix}nm" | |
4946 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4947 lt_nm_to_check="$lt_nm_to_check nm" | |
4948 fi | |
4949 for lt_tmp_nm in $lt_nm_to_check; do | |
4950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4951 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4952 IFS="$lt_save_ifs" | |
4953 test -z "$ac_dir" && ac_dir=. | |
4954 tmp_nm="$ac_dir/$lt_tmp_nm" | |
4955 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4956 # Check to see if the nm accepts a BSD-compat flag. | |
4957 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4958 # nm: unknown option "B" ignored | |
4959 # Tru64's nm complains that /dev/null is an invalid object file | |
4960 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4961 */dev/null* | *'Invalid file or object type'*) | |
4962 lt_cv_path_NM="$tmp_nm -B" | |
4963 break | |
4964 ;; | |
4965 *) | |
4966 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4967 */dev/null*) | |
4968 lt_cv_path_NM="$tmp_nm -p" | |
4969 break | |
4970 ;; | |
4971 *) | |
4972 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4973 continue # so that we can try to find one that supports BSD flags | |
4974 ;; | |
4975 esac | |
4976 ;; | |
4977 esac | |
4978 fi | |
4979 done | |
4980 IFS="$lt_save_ifs" | |
4981 done | |
4982 : ${lt_cv_path_NM=no} | |
4983 fi | |
4984 fi | |
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4986 $as_echo "$lt_cv_path_NM" >&6; } | |
4987 if test "$lt_cv_path_NM" != "no"; then | |
4988 NM="$lt_cv_path_NM" | |
4989 else | |
4990 # Didn't find any BSD compatible name lister, look for dumpbin. | |
4991 if test -n "$DUMPBIN"; then : | |
4992 # Let the user override the test. | |
4993 else | |
4994 if test -n "$ac_tool_prefix"; then | |
4995 for ac_prog in dumpbin "link -dump" | |
4996 do | |
4997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5000 $as_echo_n "checking for $ac_word... " >&6; } | |
5001 if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5002 $as_echo_n "(cached) " >&6 | |
5003 else | |
5004 if test -n "$DUMPBIN"; then | |
5005 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5006 else | |
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5008 for as_dir in $PATH | |
5009 do | |
5010 IFS=$as_save_IFS | |
5011 test -z "$as_dir" && as_dir=. | |
5012 for ac_exec_ext in '' $ac_executable_extensions; do | |
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5014 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5016 break 2 | |
5017 fi | |
5018 done | |
5019 done | |
5020 IFS=$as_save_IFS | |
5021 | |
5022 fi | |
5023 fi | |
5024 DUMPBIN=$ac_cv_prog_DUMPBIN | |
5025 if test -n "$DUMPBIN"; then | |
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5027 $as_echo "$DUMPBIN" >&6; } | |
5028 else | |
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5030 $as_echo "no" >&6; } | |
5031 fi | |
5032 | |
5033 | |
5034 test -n "$DUMPBIN" && break | |
5035 done | |
5036 fi | |
5037 if test -z "$DUMPBIN"; then | |
5038 ac_ct_DUMPBIN=$DUMPBIN | |
5039 for ac_prog in dumpbin "link -dump" | |
5040 do | |
5041 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5042 set dummy $ac_prog; ac_word=$2 | |
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5044 $as_echo_n "checking for $ac_word... " >&6; } | |
5045 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
5046 $as_echo_n "(cached) " >&6 | |
5047 else | |
5048 if test -n "$ac_ct_DUMPBIN"; then | |
5049 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5050 else | |
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5052 for as_dir in $PATH | |
5053 do | |
5054 IFS=$as_save_IFS | |
5055 test -z "$as_dir" && as_dir=. | |
5056 for ac_exec_ext in '' $ac_executable_extensions; do | |
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5058 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5060 break 2 | |
5061 fi | |
5062 done | |
5063 done | |
5064 IFS=$as_save_IFS | |
5065 | |
5066 fi | |
5067 fi | |
5068 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5069 if test -n "$ac_ct_DUMPBIN"; then | |
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5071 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5072 else | |
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5074 $as_echo "no" >&6; } | |
5075 fi | |
5076 | |
5077 | |
5078 test -n "$ac_ct_DUMPBIN" && break | |
5079 done | |
5080 | |
5081 if test "x$ac_ct_DUMPBIN" = x; then | |
5082 DUMPBIN=":" | |
5083 else | |
5084 case $cross_compiling:$ac_tool_warned in | |
5085 yes:) | |
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5088 ac_tool_warned=yes ;; | |
5089 esac | |
5090 DUMPBIN=$ac_ct_DUMPBIN | |
5091 fi | |
5092 fi | |
5093 | |
5094 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5095 *COFF*) | |
5096 DUMPBIN="$DUMPBIN -symbols" | |
5097 ;; | |
5098 *) | |
5099 DUMPBIN=: | |
5100 ;; | |
5101 esac | |
5102 fi | |
5103 | |
5104 if test "$DUMPBIN" != ":"; then | |
5105 NM="$DUMPBIN" | |
5106 fi | |
5107 fi | |
5108 test -z "$NM" && NM=nm | |
5109 | |
5110 | |
5111 | |
5112 | |
5113 | |
5114 | |
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5116 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5117 if ${lt_cv_nm_interface+:} false; then : | |
5118 $as_echo_n "(cached) " >&6 | |
5119 else | |
5120 lt_cv_nm_interface="BSD nm" | |
5121 echo "int some_variable = 0;" > conftest.$ac_ext | |
5122 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5123 (eval "$ac_compile" 2>conftest.err) | |
5124 cat conftest.err >&5 | |
5125 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5126 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5127 cat conftest.err >&5 | |
5128 (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5129 cat conftest.out >&5 | |
5130 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5131 lt_cv_nm_interface="MS dumpbin" | |
5132 fi | |
5133 rm -f conftest* | |
5134 fi | |
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5136 $as_echo "$lt_cv_nm_interface" >&6; } | |
5137 | |
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5139 $as_echo_n "checking whether ln -s works... " >&6; } | |
5140 LN_S=$as_ln_s | |
5141 if test "$LN_S" = "ln -s"; then | |
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5143 $as_echo "yes" >&6; } | |
5144 else | |
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5146 $as_echo "no, using $LN_S" >&6; } | |
5147 fi | |
5148 | |
5149 # find the maximum length of command line arguments | |
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5151 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5152 if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5153 $as_echo_n "(cached) " >&6 | |
5154 else | |
5155 i=0 | |
5156 teststring="ABCD" | |
5157 | |
5158 case $build_os in | |
5159 msdosdjgpp*) | |
5160 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5161 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5162 # during glob expansion). Even if it were fixed, the result of this | |
5163 # check would be larger than it should be. | |
5164 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5165 ;; | |
5166 | |
5167 gnu*) | |
5168 # Under GNU Hurd, this test is not required because there is | |
5169 # no limit to the length of command line arguments. | |
5170 # Libtool will interpret -1 as no limit whatsoever | |
5171 lt_cv_sys_max_cmd_len=-1; | |
5172 ;; | |
5173 | |
5174 cygwin* | mingw* | cegcc*) | |
5175 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5176 # about 5 minutes as the teststring grows exponentially. | |
5177 # Worse, since 9x/ME are not pre-emptively multitasking, | |
5178 # you end up with a "frozen" computer, even though with patience | |
5179 # the test eventually succeeds (with a max line length of 256k). | |
5180 # Instead, let's just punt: use the minimum linelength reported by | |
5181 # all of the supported platforms: 8192 (on NT/2K/XP). | |
5182 lt_cv_sys_max_cmd_len=8192; | |
5183 ;; | |
5184 | |
5185 mint*) | |
5186 # On MiNT this can take a long time and run out of memory. | |
5187 lt_cv_sys_max_cmd_len=8192; | |
5188 ;; | |
5189 | |
5190 amigaos*) | |
5191 # On AmigaOS with pdksh, this test takes hours, literally. | |
5192 # So we just punt and use a minimum line length of 8192. | |
5193 lt_cv_sys_max_cmd_len=8192; | |
5194 ;; | |
5195 | |
5196 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5197 # This has been around since 386BSD, at least. Likely further. | |
5198 if test -x /sbin/sysctl; then | |
5199 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5200 elif test -x /usr/sbin/sysctl; then | |
5201 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5202 else | |
5203 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5204 fi | |
5205 # And add a safety zone | |
5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5208 ;; | |
5209 | |
5210 interix*) | |
5211 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5212 lt_cv_sys_max_cmd_len=196608 | |
5213 ;; | |
5214 | |
5215 osf*) | |
5216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5218 # nice to cause kernel panics so lets avoid the loop below. | |
5219 # First set a reasonable default. | |
5220 lt_cv_sys_max_cmd_len=16384 | |
5221 # | |
5222 if test -x /sbin/sysconfig; then | |
5223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5224 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5225 esac | |
5226 fi | |
5227 ;; | |
5228 sco3.2v5*) | |
5229 lt_cv_sys_max_cmd_len=102400 | |
5230 ;; | |
5231 sysv5* | sco5v6* | sysv4.2uw2*) | |
5232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5233 if test -n "$kargmax"; then | |
5234 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5235 else | |
5236 lt_cv_sys_max_cmd_len=32768 | |
5237 fi | |
5238 ;; | |
5239 *) | |
5240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5241 if test -n "$lt_cv_sys_max_cmd_len"; then | |
5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5244 else | |
5245 # Make teststring a little bigger before we do anything with it. | |
5246 # a 1K string should be a reasonable start. | |
5247 for i in 1 2 3 4 5 6 7 8 ; do | |
5248 teststring=$teststring$teststring | |
5249 done | |
5250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5251 # If test is not a shell built-in, we'll probably end up computing a | |
5252 # maximum length that is only half of the actual maximum length, but | |
5253 # we can't tell. | |
5254 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
5255 = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5256 test $i != 17 # 1/2 MB should be enough | |
5257 do | |
5258 i=`expr $i + 1` | |
5259 teststring=$teststring$teststring | |
5260 done | |
5261 # Only check the string length outside the loop. | |
5262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5263 teststring= | |
5264 # Add a significant safety factor because C++ compilers can tack on | |
5265 # massive amounts of additional arguments before passing them to the | |
5266 # linker. It appears as though 1/2 is a usable value. | |
5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5268 fi | |
5269 ;; | |
5270 esac | |
5271 | |
5272 fi | |
5273 | |
5274 if test -n $lt_cv_sys_max_cmd_len ; then | |
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5276 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5277 else | |
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5279 $as_echo "none" >&6; } | |
5280 fi | |
5281 max_cmd_len=$lt_cv_sys_max_cmd_len | |
5282 | |
5283 | |
5284 | |
5285 | |
5286 | |
5287 | |
5288 : ${CP="cp -f"} | |
5289 : ${MV="mv -f"} | |
5290 : ${RM="rm -f"} | |
5291 | |
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5293 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5294 # Try some XSI features | |
5295 xsi_shell=no | |
5296 ( _lt_dummy="a/b/c" | |
5297 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5298 = c,a/b,b/c, \ | |
5299 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5300 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5301 && xsi_shell=yes | |
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5303 $as_echo "$xsi_shell" >&6; } | |
5304 | |
5305 | |
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5307 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5308 lt_shell_append=no | |
5309 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5310 >/dev/null 2>&1 \ | |
5311 && lt_shell_append=yes | |
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5313 $as_echo "$lt_shell_append" >&6; } | |
5314 | |
5315 | |
5316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5317 lt_unset=unset | |
5318 else | |
5319 lt_unset=false | |
5320 fi | |
5321 | |
5322 | |
5323 | |
5324 | |
5325 | |
5326 # test EBCDIC or ASCII | |
5327 case `echo X|tr X '\101'` in | |
5328 A) # ASCII based system | |
5329 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5330 lt_SP2NL='tr \040 \012' | |
5331 lt_NL2SP='tr \015\012 \040\040' | |
5332 ;; | |
5333 *) # EBCDIC based system | |
5334 lt_SP2NL='tr \100 \n' | |
5335 lt_NL2SP='tr \r\n \100\100' | |
5336 ;; | |
5337 esac | |
5338 | |
5339 | |
5340 | |
5341 | |
5342 | |
5343 | |
5344 | |
5345 | |
5346 | |
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5348 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5349 if ${lt_cv_to_host_file_cmd+:} false; then : | |
5350 $as_echo_n "(cached) " >&6 | |
5351 else | |
5352 case $host in | |
5353 *-*-mingw* ) | |
5354 case $build in | |
5355 *-*-mingw* ) # actually msys | |
5356 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5357 ;; | |
5358 *-*-cygwin* ) | |
5359 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5360 ;; | |
5361 * ) # otherwise, assume *nix | |
5362 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5363 ;; | |
5364 esac | |
5365 ;; | |
5366 *-*-cygwin* ) | |
5367 case $build in | |
5368 *-*-mingw* ) # actually msys | |
5369 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5370 ;; | |
5371 *-*-cygwin* ) | |
5372 lt_cv_to_host_file_cmd=func_convert_file_noop | |
5373 ;; | |
5374 * ) # otherwise, assume *nix | |
5375 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5376 ;; | |
5377 esac | |
5378 ;; | |
5379 * ) # unhandled hosts (and "normal" native builds) | |
5380 lt_cv_to_host_file_cmd=func_convert_file_noop | |
5381 ;; | |
5382 esac | |
5383 | |
5384 fi | |
5385 | |
5386 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5388 $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5389 | |
5390 | |
5391 | |
5392 | |
5393 | |
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5395 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5396 if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5397 $as_echo_n "(cached) " >&6 | |
5398 else | |
5399 #assume ordinary cross tools, or native build. | |
5400 lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5401 case $host in | |
5402 *-*-mingw* ) | |
5403 case $build in | |
5404 *-*-mingw* ) # actually msys | |
5405 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5406 ;; | |
5407 esac | |
5408 ;; | |
5409 esac | |
5410 | |
5411 fi | |
5412 | |
5413 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5415 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5416 | |
5417 | |
5418 | |
5419 | |
5420 | |
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5422 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5423 if ${lt_cv_ld_reload_flag+:} false; then : | |
5424 $as_echo_n "(cached) " >&6 | |
5425 else | |
5426 lt_cv_ld_reload_flag='-r' | |
5427 fi | |
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5429 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5430 reload_flag=$lt_cv_ld_reload_flag | |
5431 case $reload_flag in | |
5432 "" | " "*) ;; | |
5433 *) reload_flag=" $reload_flag" ;; | |
5434 esac | |
5435 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5436 case $host_os in | |
5437 cygwin* | mingw* | pw32* | cegcc*) | |
5438 if test "$GCC" != yes; then | |
5439 reload_cmds=false | |
5440 fi | |
5441 ;; | |
5442 darwin*) | |
5443 if test "$GCC" = yes; then | |
5444 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5445 else | |
5446 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5447 fi | |
5448 ;; | |
5449 esac | |
5450 | |
5451 | |
5452 | |
5453 | |
5454 | |
5455 | |
5456 | |
5457 | |
5458 | |
5459 if test -n "$ac_tool_prefix"; then | |
5460 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5461 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5463 $as_echo_n "checking for $ac_word... " >&6; } | |
5464 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5465 $as_echo_n "(cached) " >&6 | |
5466 else | |
5467 if test -n "$OBJDUMP"; then | |
5468 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5469 else | |
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5471 for as_dir in $PATH | |
5472 do | |
5473 IFS=$as_save_IFS | |
5474 test -z "$as_dir" && as_dir=. | |
5475 for ac_exec_ext in '' $ac_executable_extensions; do | |
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5477 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5479 break 2 | |
5480 fi | |
5481 done | |
5482 done | |
5483 IFS=$as_save_IFS | |
5484 | |
5485 fi | |
5486 fi | |
5487 OBJDUMP=$ac_cv_prog_OBJDUMP | |
5488 if test -n "$OBJDUMP"; then | |
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5490 $as_echo "$OBJDUMP" >&6; } | |
5491 else | |
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5493 $as_echo "no" >&6; } | |
5494 fi | |
5495 | |
5496 | |
5497 fi | |
5498 if test -z "$ac_cv_prog_OBJDUMP"; then | |
5499 ac_ct_OBJDUMP=$OBJDUMP | |
5500 # Extract the first word of "objdump", so it can be a program name with args. | |
5501 set dummy objdump; ac_word=$2 | |
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5503 $as_echo_n "checking for $ac_word... " >&6; } | |
5504 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5505 $as_echo_n "(cached) " >&6 | |
5506 else | |
5507 if test -n "$ac_ct_OBJDUMP"; then | |
5508 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5509 else | |
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5511 for as_dir in $PATH | |
5512 do | |
5513 IFS=$as_save_IFS | |
5514 test -z "$as_dir" && as_dir=. | |
5515 for ac_exec_ext in '' $ac_executable_extensions; do | |
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5517 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5519 break 2 | |
5520 fi | |
5521 done | |
5522 done | |
5523 IFS=$as_save_IFS | |
5524 | |
5525 fi | |
5526 fi | |
5527 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5528 if test -n "$ac_ct_OBJDUMP"; then | |
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5530 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5531 else | |
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5533 $as_echo "no" >&6; } | |
5534 fi | |
5535 | |
5536 if test "x$ac_ct_OBJDUMP" = x; then | |
5537 OBJDUMP="false" | |
5538 else | |
5539 case $cross_compiling:$ac_tool_warned in | |
5540 yes:) | |
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5543 ac_tool_warned=yes ;; | |
5544 esac | |
5545 OBJDUMP=$ac_ct_OBJDUMP | |
5546 fi | |
5547 else | |
5548 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5549 fi | |
5550 | |
5551 test -z "$OBJDUMP" && OBJDUMP=objdump | |
5552 | |
5553 | |
5554 | |
5555 | |
5556 | |
5557 | |
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5559 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5560 if ${lt_cv_deplibs_check_method+:} false; then : | |
5561 $as_echo_n "(cached) " >&6 | |
5562 else | |
5563 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5564 lt_cv_file_magic_test_file= | |
5565 lt_cv_deplibs_check_method='unknown' | |
5566 # Need to set the preceding variable on all platforms that support | |
5567 # interlibrary dependencies. | |
5568 # 'none' -- dependencies not supported. | |
5569 # `unknown' -- same as none, but documents that we really don't know. | |
5570 # 'pass_all' -- all dependencies passed with no checks. | |
5571 # 'test_compile' -- check by making test program. | |
5572 # 'file_magic [[regex]]' -- check by looking for files in library path | |
5573 # which responds to the $file_magic_cmd with a given extended regex. | |
5574 # If you have `file' or equivalent on your system and you're not sure | |
5575 # whether `pass_all' will *always* work, you probably want this one. | |
5576 | |
5577 case $host_os in | |
5578 aix[4-9]*) | |
5579 lt_cv_deplibs_check_method=pass_all | |
5580 ;; | |
5581 | |
5582 beos*) | |
5583 lt_cv_deplibs_check_method=pass_all | |
5584 ;; | |
5585 | |
5586 bsdi[45]*) | |
5587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5588 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5589 lt_cv_file_magic_test_file=/shlib/libc.so | |
5590 ;; | |
5591 | |
5592 cygwin*) | |
5593 # func_win32_libid is a shell function defined in ltmain.sh | |
5594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5595 lt_cv_file_magic_cmd='func_win32_libid' | |
5596 ;; | |
5597 | |
5598 mingw* | pw32*) | |
5599 # Base MSYS/MinGW do not provide the 'file' command needed by | |
5600 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5601 # unless we find 'file', for example because we are cross-compiling. | |
5602 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5603 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5605 lt_cv_file_magic_cmd='func_win32_libid' | |
5606 else | |
5607 # Keep this pattern in sync with the one in func_win32_libid. | |
5608 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5609 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5610 fi | |
5611 ;; | |
5612 | |
5613 cegcc*) | |
5614 # use the weaker test based on 'objdump'. See mingw*. | |
5615 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5616 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5617 ;; | |
5618 | |
5619 darwin* | rhapsody*) | |
5620 lt_cv_deplibs_check_method=pass_all | |
5621 ;; | |
5622 | |
5623 freebsd* | dragonfly*) | |
5624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5625 case $host_cpu in | |
5626 i*86 ) | |
5627 # Not sure whether the presence of OpenBSD here was a mistake. | |
5628 # Let's accept both of them until this is cleared up. | |
5629 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5630 lt_cv_file_magic_cmd=/usr/bin/file | |
5631 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5632 ;; | |
5633 esac | |
5634 else | |
5635 lt_cv_deplibs_check_method=pass_all | |
5636 fi | |
5637 ;; | |
5638 | |
5639 gnu*) | |
5640 lt_cv_deplibs_check_method=pass_all | |
5641 ;; | |
5642 | |
5643 haiku*) | |
5644 lt_cv_deplibs_check_method=pass_all | |
5645 ;; | |
5646 | |
5647 hpux10.20* | hpux11*) | |
5648 lt_cv_file_magic_cmd=/usr/bin/file | |
5649 case $host_cpu in | |
5650 ia64*) | |
5651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5652 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5653 ;; | |
5654 hppa*64*) | |
5655 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]' | |
5656 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5657 ;; | |
5658 *) | |
5659 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5660 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5661 ;; | |
5662 esac | |
5663 ;; | |
5664 | |
5665 interix[3-9]*) | |
5666 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5668 ;; | |
5669 | |
5670 irix5* | irix6* | nonstopux*) | |
5671 case $LD in | |
5672 *-32|*"-32 ") libmagic=32-bit;; | |
5673 *-n32|*"-n32 ") libmagic=N32;; | |
5674 *-64|*"-64 ") libmagic=64-bit;; | |
5675 *) libmagic=never-match;; | |
5676 esac | |
5677 lt_cv_deplibs_check_method=pass_all | |
5678 ;; | |
5679 | |
5680 # This must be Linux ELF. | |
5681 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
5682 lt_cv_deplibs_check_method=pass_all | |
5683 ;; | |
5684 | |
5685 netbsd* | netbsdelf*-gnu) | |
5686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5688 else | |
5689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5690 fi | |
5691 ;; | |
5692 | |
5693 newos6*) | |
5694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5695 lt_cv_file_magic_cmd=/usr/bin/file | |
5696 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5697 ;; | |
5698 | |
5699 *nto* | *qnx*) | |
5700 lt_cv_deplibs_check_method=pass_all | |
5701 ;; | |
5702 | |
5703 openbsd*) | |
5704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5706 else | |
5707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5708 fi | |
5709 ;; | |
5710 | |
5711 osf3* | osf4* | osf5*) | |
5712 lt_cv_deplibs_check_method=pass_all | |
5713 ;; | |
5714 | |
5715 rdos*) | |
5716 lt_cv_deplibs_check_method=pass_all | |
5717 ;; | |
5718 | |
5719 solaris*) | |
5720 lt_cv_deplibs_check_method=pass_all | |
5721 ;; | |
5722 | |
5723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5724 lt_cv_deplibs_check_method=pass_all | |
5725 ;; | |
5726 | |
5727 sysv4 | sysv4.3*) | |
5728 case $host_vendor in | |
5729 motorola) | |
5730 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]' | |
5731 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5732 ;; | |
5733 ncr) | |
5734 lt_cv_deplibs_check_method=pass_all | |
5735 ;; | |
5736 sequent) | |
5737 lt_cv_file_magic_cmd='/bin/file' | |
5738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5739 ;; | |
5740 sni) | |
5741 lt_cv_file_magic_cmd='/bin/file' | |
5742 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5743 lt_cv_file_magic_test_file=/lib/libc.so | |
5744 ;; | |
5745 siemens) | |
5746 lt_cv_deplibs_check_method=pass_all | |
5747 ;; | |
5748 pc) | |
5749 lt_cv_deplibs_check_method=pass_all | |
5750 ;; | |
5751 esac | |
5752 ;; | |
5753 | |
5754 tpf*) | |
5755 lt_cv_deplibs_check_method=pass_all | |
5756 ;; | |
5757 esac | |
5758 | |
5759 fi | |
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5761 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5762 | |
5763 file_magic_glob= | |
5764 want_nocaseglob=no | |
5765 if test "$build" = "$host"; then | |
5766 case $host_os in | |
5767 mingw* | pw32*) | |
5768 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5769 want_nocaseglob=yes | |
5770 else | |
5771 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5772 fi | |
5773 ;; | |
5774 esac | |
5775 fi | |
5776 | |
5777 file_magic_cmd=$lt_cv_file_magic_cmd | |
5778 deplibs_check_method=$lt_cv_deplibs_check_method | |
5779 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5780 | |
5781 | |
5782 | |
5783 | |
5784 | |
5785 | |
5786 | |
5787 | |
5788 | |
5789 | |
5790 | |
5791 | |
5792 | |
5793 | |
5794 | |
5795 | |
5796 | |
5797 | |
5798 | |
5799 | |
5800 | |
5801 | |
5802 if test -n "$ac_tool_prefix"; then | |
5803 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5804 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5806 $as_echo_n "checking for $ac_word... " >&6; } | |
5807 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5808 $as_echo_n "(cached) " >&6 | |
5809 else | |
5810 if test -n "$DLLTOOL"; then | |
5811 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5812 else | |
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5814 for as_dir in $PATH | |
5815 do | |
5816 IFS=$as_save_IFS | |
5817 test -z "$as_dir" && as_dir=. | |
5818 for ac_exec_ext in '' $ac_executable_extensions; do | |
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5820 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5822 break 2 | |
5823 fi | |
5824 done | |
5825 done | |
5826 IFS=$as_save_IFS | |
5827 | |
5828 fi | |
5829 fi | |
5830 DLLTOOL=$ac_cv_prog_DLLTOOL | |
5831 if test -n "$DLLTOOL"; then | |
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5833 $as_echo "$DLLTOOL" >&6; } | |
5834 else | |
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5836 $as_echo "no" >&6; } | |
5837 fi | |
5838 | |
5839 | |
5840 fi | |
5841 if test -z "$ac_cv_prog_DLLTOOL"; then | |
5842 ac_ct_DLLTOOL=$DLLTOOL | |
5843 # Extract the first word of "dlltool", so it can be a program name with args. | |
5844 set dummy dlltool; ac_word=$2 | |
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5846 $as_echo_n "checking for $ac_word... " >&6; } | |
5847 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5848 $as_echo_n "(cached) " >&6 | |
5849 else | |
5850 if test -n "$ac_ct_DLLTOOL"; then | |
5851 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5852 else | |
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5854 for as_dir in $PATH | |
5855 do | |
5856 IFS=$as_save_IFS | |
5857 test -z "$as_dir" && as_dir=. | |
5858 for ac_exec_ext in '' $ac_executable_extensions; do | |
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5860 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5862 break 2 | |
5863 fi | |
5864 done | |
5865 done | |
5866 IFS=$as_save_IFS | |
5867 | |
5868 fi | |
5869 fi | |
5870 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5871 if test -n "$ac_ct_DLLTOOL"; then | |
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5873 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5874 else | |
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5876 $as_echo "no" >&6; } | |
5877 fi | |
5878 | |
5879 if test "x$ac_ct_DLLTOOL" = x; then | |
5880 DLLTOOL="false" | |
5881 else | |
5882 case $cross_compiling:$ac_tool_warned in | |
5883 yes:) | |
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5886 ac_tool_warned=yes ;; | |
5887 esac | |
5888 DLLTOOL=$ac_ct_DLLTOOL | |
5889 fi | |
5890 else | |
5891 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5892 fi | |
5893 | |
5894 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5895 | |
5896 | |
5897 | |
5898 | |
5899 | |
5900 | |
5901 | |
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5903 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5904 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5905 $as_echo_n "(cached) " >&6 | |
5906 else | |
5907 lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5908 | |
5909 case $host_os in | |
5910 cygwin* | mingw* | pw32* | cegcc*) | |
5911 # two different shell functions defined in ltmain.sh | |
5912 # decide which to use based on capabilities of $DLLTOOL | |
5913 case `$DLLTOOL --help 2>&1` in | |
5914 *--identify-strict*) | |
5915 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5916 ;; | |
5917 *) | |
5918 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5919 ;; | |
5920 esac | |
5921 ;; | |
5922 *) | |
5923 # fallback: assume linklib IS sharedlib | |
5924 lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
5925 ;; | |
5926 esac | |
5927 | |
5928 fi | |
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5930 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5931 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5932 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5933 | |
5934 | |
5935 | |
5936 | |
5937 | |
5938 | |
5939 | |
5940 if test -n "$ac_tool_prefix"; then | |
5941 for ac_prog in ar | |
5942 do | |
5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5946 $as_echo_n "checking for $ac_word... " >&6; } | |
5947 if ${ac_cv_prog_AR+:} false; then : | |
5948 $as_echo_n "(cached) " >&6 | |
5949 else | |
5950 if test -n "$AR"; then | |
5951 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5952 else | |
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5954 for as_dir in $PATH | |
5955 do | |
5956 IFS=$as_save_IFS | |
5957 test -z "$as_dir" && as_dir=. | |
5958 for ac_exec_ext in '' $ac_executable_extensions; do | |
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5960 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5962 break 2 | |
5963 fi | |
5964 done | |
5965 done | |
5966 IFS=$as_save_IFS | |
5967 | |
5968 fi | |
5969 fi | |
5970 AR=$ac_cv_prog_AR | |
5971 if test -n "$AR"; then | |
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5973 $as_echo "$AR" >&6; } | |
5974 else | |
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5976 $as_echo "no" >&6; } | |
5977 fi | |
5978 | |
5979 | |
5980 test -n "$AR" && break | |
5981 done | |
5982 fi | |
5983 if test -z "$AR"; then | |
5984 ac_ct_AR=$AR | |
5985 for ac_prog in ar | |
5986 do | |
5987 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5988 set dummy $ac_prog; ac_word=$2 | |
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5990 $as_echo_n "checking for $ac_word... " >&6; } | |
5991 if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5992 $as_echo_n "(cached) " >&6 | |
5993 else | |
5994 if test -n "$ac_ct_AR"; then | |
5995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5996 else | |
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5998 for as_dir in $PATH | |
5999 do | |
6000 IFS=$as_save_IFS | |
6001 test -z "$as_dir" && as_dir=. | |
6002 for ac_exec_ext in '' $ac_executable_extensions; do | |
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6004 ac_cv_prog_ac_ct_AR="$ac_prog" | |
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6006 break 2 | |
6007 fi | |
6008 done | |
6009 done | |
6010 IFS=$as_save_IFS | |
6011 | |
6012 fi | |
6013 fi | |
6014 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6015 if test -n "$ac_ct_AR"; then | |
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6017 $as_echo "$ac_ct_AR" >&6; } | |
6018 else | |
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6020 $as_echo "no" >&6; } | |
6021 fi | |
6022 | |
6023 | |
6024 test -n "$ac_ct_AR" && break | |
6025 done | |
6026 | |
6027 if test "x$ac_ct_AR" = x; then | |
6028 AR="false" | |
6029 else | |
6030 case $cross_compiling:$ac_tool_warned in | |
6031 yes:) | |
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6034 ac_tool_warned=yes ;; | |
6035 esac | |
6036 AR=$ac_ct_AR | |
6037 fi | |
6038 fi | |
6039 | |
6040 : ${AR=ar} | |
6041 : ${AR_FLAGS=cru} | |
6042 | |
6043 | |
6044 | |
6045 | |
6046 | |
6047 | |
6048 | |
6049 | |
6050 | |
6051 | |
6052 | |
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6054 $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6055 if ${lt_cv_ar_at_file+:} false; then : | |
6056 $as_echo_n "(cached) " >&6 | |
6057 else | |
6058 lt_cv_ar_at_file=no | |
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6060 /* end confdefs.h. */ | |
6061 | |
6062 int | |
6063 main () | |
6064 { | |
6065 | |
6066 ; | |
6067 return 0; | |
6068 } | |
6069 _ACEOF | |
6070 if ac_fn_c_try_compile "$LINENO"; then : | |
6071 echo conftest.$ac_objext > conftest.lst | |
6072 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6074 (eval $lt_ar_try) 2>&5 | |
6075 ac_status=$? | |
6076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6077 test $ac_status = 0; } | |
6078 if test "$ac_status" -eq 0; then | |
6079 # Ensure the archiver fails upon bogus file names. | |
6080 rm -f conftest.$ac_objext libconftest.a | |
6081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6082 (eval $lt_ar_try) 2>&5 | |
6083 ac_status=$? | |
6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6085 test $ac_status = 0; } | |
6086 if test "$ac_status" -ne 0; then | |
6087 lt_cv_ar_at_file=@ | |
6088 fi | |
6089 fi | |
6090 rm -f conftest.* libconftest.a | |
6091 | |
6092 fi | |
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6094 | |
6095 fi | |
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6097 $as_echo "$lt_cv_ar_at_file" >&6; } | |
6098 | |
6099 if test "x$lt_cv_ar_at_file" = xno; then | |
6100 archiver_list_spec= | |
6101 else | |
6102 archiver_list_spec=$lt_cv_ar_at_file | |
6103 fi | |
6104 | |
6105 | |
6106 | |
6107 | |
6108 | |
6109 | |
6110 | |
6111 if test -n "$ac_tool_prefix"; then | |
6112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6113 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6115 $as_echo_n "checking for $ac_word... " >&6; } | |
6116 if ${ac_cv_prog_STRIP+:} false; then : | |
6117 $as_echo_n "(cached) " >&6 | |
6118 else | |
6119 if test -n "$STRIP"; then | |
6120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6121 else | |
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6123 for as_dir in $PATH | |
6124 do | |
6125 IFS=$as_save_IFS | |
6126 test -z "$as_dir" && as_dir=. | |
6127 for ac_exec_ext in '' $ac_executable_extensions; do | |
6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6129 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6131 break 2 | |
6132 fi | |
6133 done | |
6134 done | |
6135 IFS=$as_save_IFS | |
6136 | |
6137 fi | |
6138 fi | |
6139 STRIP=$ac_cv_prog_STRIP | |
6140 if test -n "$STRIP"; then | |
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6142 $as_echo "$STRIP" >&6; } | |
6143 else | |
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6145 $as_echo "no" >&6; } | |
6146 fi | |
6147 | |
6148 | |
6149 fi | |
6150 if test -z "$ac_cv_prog_STRIP"; then | |
6151 ac_ct_STRIP=$STRIP | |
6152 # Extract the first word of "strip", so it can be a program name with args. | |
6153 set dummy strip; ac_word=$2 | |
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6155 $as_echo_n "checking for $ac_word... " >&6; } | |
6156 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6157 $as_echo_n "(cached) " >&6 | |
6158 else | |
6159 if test -n "$ac_ct_STRIP"; then | |
6160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6161 else | |
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6163 for as_dir in $PATH | |
6164 do | |
6165 IFS=$as_save_IFS | |
6166 test -z "$as_dir" && as_dir=. | |
6167 for ac_exec_ext in '' $ac_executable_extensions; do | |
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6169 ac_cv_prog_ac_ct_STRIP="strip" | |
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6171 break 2 | |
6172 fi | |
6173 done | |
6174 done | |
6175 IFS=$as_save_IFS | |
6176 | |
6177 fi | |
6178 fi | |
6179 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6180 if test -n "$ac_ct_STRIP"; then | |
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6182 $as_echo "$ac_ct_STRIP" >&6; } | |
6183 else | |
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6185 $as_echo "no" >&6; } | |
6186 fi | |
6187 | |
6188 if test "x$ac_ct_STRIP" = x; then | |
6189 STRIP=":" | |
6190 else | |
6191 case $cross_compiling:$ac_tool_warned in | |
6192 yes:) | |
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6195 ac_tool_warned=yes ;; | |
6196 esac | |
6197 STRIP=$ac_ct_STRIP | |
6198 fi | |
6199 else | |
6200 STRIP="$ac_cv_prog_STRIP" | |
6201 fi | |
6202 | |
6203 test -z "$STRIP" && STRIP=: | |
6204 | |
6205 | |
6206 | |
6207 | |
6208 | |
6209 | |
6210 if test -n "$ac_tool_prefix"; then | |
6211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6212 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6214 $as_echo_n "checking for $ac_word... " >&6; } | |
6215 if ${ac_cv_prog_RANLIB+:} false; then : | |
6216 $as_echo_n "(cached) " >&6 | |
6217 else | |
6218 if test -n "$RANLIB"; then | |
6219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6220 else | |
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6222 for as_dir in $PATH | |
6223 do | |
6224 IFS=$as_save_IFS | |
6225 test -z "$as_dir" && as_dir=. | |
6226 for ac_exec_ext in '' $ac_executable_extensions; do | |
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6230 break 2 | |
6231 fi | |
6232 done | |
6233 done | |
6234 IFS=$as_save_IFS | |
6235 | |
6236 fi | |
6237 fi | |
6238 RANLIB=$ac_cv_prog_RANLIB | |
6239 if test -n "$RANLIB"; then | |
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6241 $as_echo "$RANLIB" >&6; } | |
6242 else | |
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6244 $as_echo "no" >&6; } | |
6245 fi | |
6246 | |
6247 | |
6248 fi | |
6249 if test -z "$ac_cv_prog_RANLIB"; then | |
6250 ac_ct_RANLIB=$RANLIB | |
6251 # Extract the first word of "ranlib", so it can be a program name with args. | |
6252 set dummy ranlib; ac_word=$2 | |
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6254 $as_echo_n "checking for $ac_word... " >&6; } | |
6255 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6256 $as_echo_n "(cached) " >&6 | |
6257 else | |
6258 if test -n "$ac_ct_RANLIB"; then | |
6259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6260 else | |
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6262 for as_dir in $PATH | |
6263 do | |
6264 IFS=$as_save_IFS | |
6265 test -z "$as_dir" && as_dir=. | |
6266 for ac_exec_ext in '' $ac_executable_extensions; do | |
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6268 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6270 break 2 | |
6271 fi | |
6272 done | |
6273 done | |
6274 IFS=$as_save_IFS | |
6275 | |
6276 fi | |
6277 fi | |
6278 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6279 if test -n "$ac_ct_RANLIB"; then | |
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6281 $as_echo "$ac_ct_RANLIB" >&6; } | |
6282 else | |
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6284 $as_echo "no" >&6; } | |
6285 fi | |
6286 | |
6287 if test "x$ac_ct_RANLIB" = x; then | |
6288 RANLIB=":" | |
6289 else | |
6290 case $cross_compiling:$ac_tool_warned in | |
6291 yes:) | |
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6294 ac_tool_warned=yes ;; | |
6295 esac | |
6296 RANLIB=$ac_ct_RANLIB | |
6297 fi | |
6298 else | |
6299 RANLIB="$ac_cv_prog_RANLIB" | |
6300 fi | |
6301 | |
6302 test -z "$RANLIB" && RANLIB=: | |
6303 | |
6304 | |
6305 | |
6306 | |
6307 | |
6308 | |
6309 # Determine commands to create old-style static archives. | |
6310 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6311 old_postinstall_cmds='chmod 644 $oldlib' | |
6312 old_postuninstall_cmds= | |
6313 | |
6314 if test -n "$RANLIB"; then | |
6315 case $host_os in | |
6316 openbsd*) | |
6317 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6318 ;; | |
6319 *) | |
6320 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6321 ;; | |
6322 esac | |
6323 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6324 fi | |
6325 | |
6326 case $host_os in | |
6327 darwin*) | |
6328 lock_old_archive_extraction=yes ;; | |
6329 *) | |
6330 lock_old_archive_extraction=no ;; | |
6331 esac | |
6332 | |
6333 | |
6334 | |
6335 | |
6336 | |
6337 | |
6338 | |
6339 | |
6340 | |
6341 | |
6342 | |
6343 | |
6344 | |
6345 | |
6346 | |
6347 | |
6348 | |
6349 | |
6350 | |
6351 | |
6352 | |
6353 | |
6354 | |
6355 | |
6356 | |
6357 | |
6358 | |
6359 | |
6360 | |
6361 | |
6362 | |
6363 | |
6364 | |
6365 | |
6366 | |
6367 | |
6368 | |
6369 | |
6370 | |
6371 # If no C compiler was specified, use CC. | |
6372 LTCC=${LTCC-"$CC"} | |
6373 | |
6374 # If no C compiler flags were specified, use CFLAGS. | |
6375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6376 | |
6377 # Allow CC to be a program name with arguments. | |
6378 compiler=$CC | |
6379 | |
6380 | |
6381 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6383 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6384 if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6385 $as_echo_n "(cached) " >&6 | |
6386 else | |
6387 | |
6388 # These are sane defaults that work on at least a few old systems. | |
6389 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6390 | |
6391 # Character class describing NM global symbol codes. | |
6392 symcode='[BCDEGRST]' | |
6393 | |
6394 # Regexp to match symbols that can be accessed directly from C. | |
6395 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6396 | |
6397 # Define system-specific variables. | |
6398 case $host_os in | |
6399 aix*) | |
6400 symcode='[BCDT]' | |
6401 ;; | |
6402 cygwin* | mingw* | pw32* | cegcc*) | |
6403 symcode='[ABCDGISTW]' | |
6404 ;; | |
6405 hpux*) | |
6406 if test "$host_cpu" = ia64; then | |
6407 symcode='[ABCDEGRST]' | |
6408 fi | |
6409 ;; | |
6410 irix* | nonstopux*) | |
6411 symcode='[BCDEGRST]' | |
6412 ;; | |
6413 osf*) | |
6414 symcode='[BCDEGQRST]' | |
6415 ;; | |
6416 solaris*) | |
6417 symcode='[BDRT]' | |
6418 ;; | |
6419 sco3.2v5*) | |
6420 symcode='[DT]' | |
6421 ;; | |
6422 sysv4.2uw2*) | |
6423 symcode='[DT]' | |
6424 ;; | |
6425 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6426 symcode='[ABDT]' | |
6427 ;; | |
6428 sysv4) | |
6429 symcode='[DFNSTU]' | |
6430 ;; | |
6431 esac | |
6432 | |
6433 # If we're using GNU nm, then use its standard symbol codes. | |
6434 case `$NM -V 2>&1` in | |
6435 *GNU* | *'with BFD'*) | |
6436 symcode='[ABCDGIRSTW]' ;; | |
6437 esac | |
6438 | |
6439 # Transform an extracted symbol line into a proper C declaration. | |
6440 # Some systems (esp. on ia64) link data and code symbols differently, | |
6441 # so use this general approach. | |
6442 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6443 | |
6444 # Transform an extracted symbol line into symbol name and symbol address | |
6445 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6446 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'" | |
6447 | |
6448 # Handle CRLF in mingw tool chain | |
6449 opt_cr= | |
6450 case $build_os in | |
6451 mingw*) | |
6452 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6453 ;; | |
6454 esac | |
6455 | |
6456 # Try without a prefix underscore, then with it. | |
6457 for ac_symprfx in "" "_"; do | |
6458 | |
6459 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6460 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6461 | |
6462 # Write the raw and C identifiers. | |
6463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6464 # Fake it for dumpbin and say T for any non-static function | |
6465 # and D for any global variable. | |
6466 # Also find C++ and __fastcall symbols from MSVC++, | |
6467 # which start with @ or ?. | |
6468 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6469 " {last_section=section; section=\$ 3};"\ | |
6470 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6471 " \$ 0!~/External *\|/{next};"\ | |
6472 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6473 " {if(hide[section]) next};"\ | |
6474 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6475 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6476 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6477 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6478 " ' prfx=^$ac_symprfx" | |
6479 else | |
6480 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6481 fi | |
6482 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6483 | |
6484 # Check to see that the pipe works correctly. | |
6485 pipe_works=no | |
6486 | |
6487 rm -f conftest* | |
6488 cat > conftest.$ac_ext <<_LT_EOF | |
6489 #ifdef __cplusplus | |
6490 extern "C" { | |
6491 #endif | |
6492 char nm_test_var; | |
6493 void nm_test_func(void); | |
6494 void nm_test_func(void){} | |
6495 #ifdef __cplusplus | |
6496 } | |
6497 #endif | |
6498 int main(){nm_test_var='a';nm_test_func();return(0);} | |
6499 _LT_EOF | |
6500 | |
6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6502 (eval $ac_compile) 2>&5 | |
6503 ac_status=$? | |
6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6505 test $ac_status = 0; }; then | |
6506 # Now try to grab the symbols. | |
6507 nlist=conftest.nm | |
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6509 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6510 ac_status=$? | |
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6512 test $ac_status = 0; } && test -s "$nlist"; then | |
6513 # Try sorting and uniquifying the output. | |
6514 if sort "$nlist" | uniq > "$nlist"T; then | |
6515 mv -f "$nlist"T "$nlist" | |
6516 else | |
6517 rm -f "$nlist"T | |
6518 fi | |
6519 | |
6520 # Make sure that we snagged all the symbols we need. | |
6521 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6522 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6523 cat <<_LT_EOF > conftest.$ac_ext | |
6524 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6525 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
6526 /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
6527 relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6528 # define LT_DLSYM_CONST | |
6529 #elif defined(__osf__) | |
6530 /* This system does not cope well with relocations in const data. */ | |
6531 # define LT_DLSYM_CONST | |
6532 #else | |
6533 # define LT_DLSYM_CONST const | |
6534 #endif | |
6535 | |
6536 #ifdef __cplusplus | |
6537 extern "C" { | |
6538 #endif | |
6539 | |
6540 _LT_EOF | |
6541 # Now generate the symbol file. | |
6542 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6543 | |
6544 cat <<_LT_EOF >> conftest.$ac_ext | |
6545 | |
6546 /* The mapping between symbol names and symbols. */ | |
6547 LT_DLSYM_CONST struct { | |
6548 const char *name; | |
6549 void *address; | |
6550 } | |
6551 lt__PROGRAM__LTX_preloaded_symbols[] = | |
6552 { | |
6553 { "@PROGRAM@", (void *) 0 }, | |
6554 _LT_EOF | |
6555 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6556 cat <<\_LT_EOF >> conftest.$ac_ext | |
6557 {0, (void *) 0} | |
6558 }; | |
6559 | |
6560 /* This works around a problem in FreeBSD linker */ | |
6561 #ifdef FREEBSD_WORKAROUND | |
6562 static const void *lt_preloaded_setup() { | |
6563 return lt__PROGRAM__LTX_preloaded_symbols; | |
6564 } | |
6565 #endif | |
6566 | |
6567 #ifdef __cplusplus | |
6568 } | |
6569 #endif | |
6570 _LT_EOF | |
6571 # Now try linking the two files. | |
6572 mv conftest.$ac_objext conftstm.$ac_objext | |
6573 lt_globsym_save_LIBS=$LIBS | |
6574 lt_globsym_save_CFLAGS=$CFLAGS | |
6575 LIBS="conftstm.$ac_objext" | |
6576 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6578 (eval $ac_link) 2>&5 | |
6579 ac_status=$? | |
6580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6581 test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6582 pipe_works=yes | |
6583 fi | |
6584 LIBS=$lt_globsym_save_LIBS | |
6585 CFLAGS=$lt_globsym_save_CFLAGS | |
6586 else | |
6587 echo "cannot find nm_test_func in $nlist" >&5 | |
6588 fi | |
6589 else | |
6590 echo "cannot find nm_test_var in $nlist" >&5 | |
6591 fi | |
6592 else | |
6593 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6594 fi | |
6595 else | |
6596 echo "$progname: failed program was:" >&5 | |
6597 cat conftest.$ac_ext >&5 | |
6598 fi | |
6599 rm -rf conftest* conftst* | |
6600 | |
6601 # Do not use the global_symbol_pipe unless it works. | |
6602 if test "$pipe_works" = yes; then | |
6603 break | |
6604 else | |
6605 lt_cv_sys_global_symbol_pipe= | |
6606 fi | |
6607 done | |
6608 | |
6609 fi | |
6610 | |
6611 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6612 lt_cv_sys_global_symbol_to_cdecl= | |
6613 fi | |
6614 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6616 $as_echo "failed" >&6; } | |
6617 else | |
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6619 $as_echo "ok" >&6; } | |
6620 fi | |
6621 | |
6622 # Response file support. | |
6623 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6624 nm_file_list_spec='@' | |
6625 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6626 nm_file_list_spec='@' | |
6627 fi | |
6628 | |
6629 | |
6630 | |
6631 | |
6632 | |
6633 | |
6634 | |
6635 | |
6636 | |
6637 | |
6638 | |
6639 | |
6640 | |
6641 | |
6642 | |
6643 | |
6644 | |
6645 | |
6646 | |
6647 | |
6648 | |
6649 | |
6650 | |
6651 | |
6652 | |
6653 | |
6654 | |
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6656 $as_echo_n "checking for sysroot... " >&6; } | |
6657 | |
6658 # Check whether --with-sysroot was given. | |
6659 if test "${with_sysroot+set}" = set; then : | |
6660 withval=$with_sysroot; | |
6661 else | |
6662 with_sysroot=no | |
6663 fi | |
6664 | |
6665 | |
6666 lt_sysroot= | |
6667 case ${with_sysroot} in #( | |
6668 yes) | |
6669 if test "$GCC" = yes; then | |
6670 lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6671 fi | |
6672 ;; #( | |
6673 /*) | |
6674 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6675 ;; #( | |
6676 no|'') | |
6677 ;; #( | |
6678 *) | |
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6680 $as_echo "${with_sysroot}" >&6; } | |
6681 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6682 ;; | |
6683 esac | |
6684 | |
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6686 $as_echo "${lt_sysroot:-no}" >&6; } | |
6687 | |
6688 | |
6689 | |
6690 | |
6691 | |
6692 # Check whether --enable-libtool-lock was given. | |
6693 if test "${enable_libtool_lock+set}" = set; then : | |
6694 enableval=$enable_libtool_lock; | |
6695 fi | |
6696 | |
6697 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6698 | |
6699 # Some flags need to be propagated to the compiler or linker for good | |
6700 # libtool support. | |
6701 case $host in | |
6702 ia64-*-hpux*) | |
6703 # Find out which ABI we are using. | |
6704 echo 'int i;' > conftest.$ac_ext | |
6705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6706 (eval $ac_compile) 2>&5 | |
6707 ac_status=$? | |
6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6709 test $ac_status = 0; }; then | |
6710 case `/usr/bin/file conftest.$ac_objext` in | |
6711 *ELF-32*) | |
6712 HPUX_IA64_MODE="32" | |
6713 ;; | |
6714 *ELF-64*) | |
6715 HPUX_IA64_MODE="64" | |
6716 ;; | |
6717 esac | |
6718 fi | |
6719 rm -rf conftest* | |
6720 ;; | |
6721 *-*-irix6*) | |
6722 # Find out which ABI we are using. | |
6723 echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6725 (eval $ac_compile) 2>&5 | |
6726 ac_status=$? | |
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6728 test $ac_status = 0; }; then | |
6729 if test "$lt_cv_prog_gnu_ld" = yes; then | |
6730 case `/usr/bin/file conftest.$ac_objext` in | |
6731 *32-bit*) | |
6732 LD="${LD-ld} -melf32bsmip" | |
6733 ;; | |
6734 *N32*) | |
6735 LD="${LD-ld} -melf32bmipn32" | |
6736 ;; | |
6737 *64-bit*) | |
6738 LD="${LD-ld} -melf64bmip" | |
6739 ;; | |
6740 esac | |
6741 else | |
6742 case `/usr/bin/file conftest.$ac_objext` in | |
6743 *32-bit*) | |
6744 LD="${LD-ld} -32" | |
6745 ;; | |
6746 *N32*) | |
6747 LD="${LD-ld} -n32" | |
6748 ;; | |
6749 *64-bit*) | |
6750 LD="${LD-ld} -64" | |
6751 ;; | |
6752 esac | |
6753 fi | |
6754 fi | |
6755 rm -rf conftest* | |
6756 ;; | |
6757 | |
6758 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6759 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6760 # Find out which ABI we are using. | |
6761 echo 'int i;' > conftest.$ac_ext | |
6762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6763 (eval $ac_compile) 2>&5 | |
6764 ac_status=$? | |
6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6766 test $ac_status = 0; }; then | |
6767 case `/usr/bin/file conftest.o` in | |
6768 *32-bit*) | |
6769 case $host in | |
6770 x86_64-*kfreebsd*-gnu) | |
6771 LD="${LD-ld} -m elf_i386_fbsd" | |
6772 ;; | |
6773 x86_64-*linux*) | |
6774 LD="${LD-ld} -m elf_i386" | |
6775 ;; | |
6776 ppc64-*linux*|powerpc64-*linux*) | |
6777 LD="${LD-ld} -m elf32ppclinux" | |
6778 ;; | |
6779 s390x-*linux*) | |
6780 LD="${LD-ld} -m elf_s390" | |
6781 ;; | |
6782 sparc64-*linux*) | |
6783 LD="${LD-ld} -m elf32_sparc" | |
6784 ;; | |
6785 esac | |
6786 ;; | |
6787 *64-bit*) | |
6788 case $host in | |
6789 x86_64-*kfreebsd*-gnu) | |
6790 LD="${LD-ld} -m elf_x86_64_fbsd" | |
6791 ;; | |
6792 x86_64-*linux*) | |
6793 LD="${LD-ld} -m elf_x86_64" | |
6794 ;; | |
6795 ppc*-*linux*|powerpc*-*linux*) | |
6796 LD="${LD-ld} -m elf64ppc" | |
6797 ;; | |
6798 s390*-*linux*|s390*-*tpf*) | |
6799 LD="${LD-ld} -m elf64_s390" | |
6800 ;; | |
6801 sparc*-*linux*) | |
6802 LD="${LD-ld} -m elf64_sparc" | |
6803 ;; | |
6804 esac | |
6805 ;; | |
6806 esac | |
6807 fi | |
6808 rm -rf conftest* | |
6809 ;; | |
6810 | |
6811 *-*-sco3.2v5*) | |
6812 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6813 SAVE_CFLAGS="$CFLAGS" | |
6814 CFLAGS="$CFLAGS -belf" | |
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6816 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6817 if ${lt_cv_cc_needs_belf+:} false; then : | |
6818 $as_echo_n "(cached) " >&6 | |
6819 else | |
6820 ac_ext=c | |
6821 ac_cpp='$CPP $CPPFLAGS' | |
6822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6824 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6825 | |
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6827 /* end confdefs.h. */ | |
6828 | |
6829 int | |
6830 main () | |
6831 { | |
6832 | |
6833 ; | |
6834 return 0; | |
6835 } | |
6836 _ACEOF | |
6837 if ac_fn_c_try_link "$LINENO"; then : | |
6838 lt_cv_cc_needs_belf=yes | |
6839 else | |
6840 lt_cv_cc_needs_belf=no | |
6841 fi | |
6842 rm -f core conftest.err conftest.$ac_objext \ | |
6843 conftest$ac_exeext conftest.$ac_ext | |
6844 ac_ext=c | |
6845 ac_cpp='$CPP $CPPFLAGS' | |
6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6849 | |
6850 fi | |
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6852 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6853 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6854 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6855 CFLAGS="$SAVE_CFLAGS" | |
6856 fi | |
6857 ;; | |
6858 sparc*-*solaris*) | |
6859 # Find out which ABI we are using. | |
6860 echo 'int i;' > conftest.$ac_ext | |
6861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6862 (eval $ac_compile) 2>&5 | |
6863 ac_status=$? | |
6864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6865 test $ac_status = 0; }; then | |
6866 case `/usr/bin/file conftest.o` in | |
6867 *64-bit*) | |
6868 case $lt_cv_prog_gnu_ld in | |
6869 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6870 *) | |
6871 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6872 LD="${LD-ld} -64" | |
6873 fi | |
6874 ;; | |
6875 esac | |
6876 ;; | |
6877 esac | |
6878 fi | |
6879 rm -rf conftest* | |
6880 ;; | |
6881 esac | |
6882 | |
6883 need_locks="$enable_libtool_lock" | |
6884 | |
6885 if test -n "$ac_tool_prefix"; then | |
6886 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6887 set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6889 $as_echo_n "checking for $ac_word... " >&6; } | |
6890 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6891 $as_echo_n "(cached) " >&6 | |
6892 else | |
6893 if test -n "$MANIFEST_TOOL"; then | |
6894 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6895 else | |
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6897 for as_dir in $PATH | |
6898 do | |
6899 IFS=$as_save_IFS | |
6900 test -z "$as_dir" && as_dir=. | |
6901 for ac_exec_ext in '' $ac_executable_extensions; do | |
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6903 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6905 break 2 | |
6906 fi | |
6907 done | |
6908 done | |
6909 IFS=$as_save_IFS | |
6910 | |
6911 fi | |
6912 fi | |
6913 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6914 if test -n "$MANIFEST_TOOL"; then | |
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6916 $as_echo "$MANIFEST_TOOL" >&6; } | |
6917 else | |
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6919 $as_echo "no" >&6; } | |
6920 fi | |
6921 | |
6922 | |
6923 fi | |
6924 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6925 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6926 # Extract the first word of "mt", so it can be a program name with args. | |
6927 set dummy mt; ac_word=$2 | |
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6929 $as_echo_n "checking for $ac_word... " >&6; } | |
6930 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6931 $as_echo_n "(cached) " >&6 | |
6932 else | |
6933 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6934 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6935 else | |
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6937 for as_dir in $PATH | |
6938 do | |
6939 IFS=$as_save_IFS | |
6940 test -z "$as_dir" && as_dir=. | |
6941 for ac_exec_ext in '' $ac_executable_extensions; do | |
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6943 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6945 break 2 | |
6946 fi | |
6947 done | |
6948 done | |
6949 IFS=$as_save_IFS | |
6950 | |
6951 fi | |
6952 fi | |
6953 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6954 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6956 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6957 else | |
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6959 $as_echo "no" >&6; } | |
6960 fi | |
6961 | |
6962 if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6963 MANIFEST_TOOL=":" | |
6964 else | |
6965 case $cross_compiling:$ac_tool_warned in | |
6966 yes:) | |
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6969 ac_tool_warned=yes ;; | |
6970 esac | |
6971 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6972 fi | |
6973 else | |
6974 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6975 fi | |
6976 | |
6977 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6979 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6980 if ${lt_cv_path_mainfest_tool+:} false; then : | |
6981 $as_echo_n "(cached) " >&6 | |
6982 else | |
6983 lt_cv_path_mainfest_tool=no | |
6984 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6985 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6986 cat conftest.err >&5 | |
6987 if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6988 lt_cv_path_mainfest_tool=yes | |
6989 fi | |
6990 rm -f conftest* | |
6991 fi | |
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6993 $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6994 if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
6995 MANIFEST_TOOL=: | |
6996 fi | |
6997 | |
6998 | |
6999 | |
7000 | |
7001 | |
7002 | |
7003 case $host_os in | |
7004 rhapsody* | darwin*) | |
7005 if test -n "$ac_tool_prefix"; then | |
7006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7007 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7009 $as_echo_n "checking for $ac_word... " >&6; } | |
7010 if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7011 $as_echo_n "(cached) " >&6 | |
7012 else | |
7013 if test -n "$DSYMUTIL"; then | |
7014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7015 else | |
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7017 for as_dir in $PATH | |
7018 do | |
7019 IFS=$as_save_IFS | |
7020 test -z "$as_dir" && as_dir=. | |
7021 for ac_exec_ext in '' $ac_executable_extensions; do | |
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7025 break 2 | |
7026 fi | |
7027 done | |
7028 done | |
7029 IFS=$as_save_IFS | |
7030 | |
7031 fi | |
7032 fi | |
7033 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7034 if test -n "$DSYMUTIL"; then | |
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7036 $as_echo "$DSYMUTIL" >&6; } | |
7037 else | |
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7039 $as_echo "no" >&6; } | |
7040 fi | |
7041 | |
7042 | |
7043 fi | |
7044 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7045 ac_ct_DSYMUTIL=$DSYMUTIL | |
7046 # Extract the first word of "dsymutil", so it can be a program name with args. | |
7047 set dummy dsymutil; ac_word=$2 | |
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7049 $as_echo_n "checking for $ac_word... " >&6; } | |
7050 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7051 $as_echo_n "(cached) " >&6 | |
7052 else | |
7053 if test -n "$ac_ct_DSYMUTIL"; then | |
7054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7055 else | |
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7057 for as_dir in $PATH | |
7058 do | |
7059 IFS=$as_save_IFS | |
7060 test -z "$as_dir" && as_dir=. | |
7061 for ac_exec_ext in '' $ac_executable_extensions; do | |
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7065 break 2 | |
7066 fi | |
7067 done | |
7068 done | |
7069 IFS=$as_save_IFS | |
7070 | |
7071 fi | |
7072 fi | |
7073 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7074 if test -n "$ac_ct_DSYMUTIL"; then | |
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7076 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7077 else | |
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7079 $as_echo "no" >&6; } | |
7080 fi | |
7081 | |
7082 if test "x$ac_ct_DSYMUTIL" = x; then | |
7083 DSYMUTIL=":" | |
7084 else | |
7085 case $cross_compiling:$ac_tool_warned in | |
7086 yes:) | |
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7089 ac_tool_warned=yes ;; | |
7090 esac | |
7091 DSYMUTIL=$ac_ct_DSYMUTIL | |
7092 fi | |
7093 else | |
7094 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7095 fi | |
7096 | |
7097 if test -n "$ac_tool_prefix"; then | |
7098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7099 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7101 $as_echo_n "checking for $ac_word... " >&6; } | |
7102 if ${ac_cv_prog_NMEDIT+:} false; then : | |
7103 $as_echo_n "(cached) " >&6 | |
7104 else | |
7105 if test -n "$NMEDIT"; then | |
7106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7107 else | |
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7109 for as_dir in $PATH | |
7110 do | |
7111 IFS=$as_save_IFS | |
7112 test -z "$as_dir" && as_dir=. | |
7113 for ac_exec_ext in '' $ac_executable_extensions; do | |
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7117 break 2 | |
7118 fi | |
7119 done | |
7120 done | |
7121 IFS=$as_save_IFS | |
7122 | |
7123 fi | |
7124 fi | |
7125 NMEDIT=$ac_cv_prog_NMEDIT | |
7126 if test -n "$NMEDIT"; then | |
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7128 $as_echo "$NMEDIT" >&6; } | |
7129 else | |
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7131 $as_echo "no" >&6; } | |
7132 fi | |
7133 | |
7134 | |
7135 fi | |
7136 if test -z "$ac_cv_prog_NMEDIT"; then | |
7137 ac_ct_NMEDIT=$NMEDIT | |
7138 # Extract the first word of "nmedit", so it can be a program name with args. | |
7139 set dummy nmedit; ac_word=$2 | |
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7141 $as_echo_n "checking for $ac_word... " >&6; } | |
7142 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7143 $as_echo_n "(cached) " >&6 | |
7144 else | |
7145 if test -n "$ac_ct_NMEDIT"; then | |
7146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7147 else | |
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7149 for as_dir in $PATH | |
7150 do | |
7151 IFS=$as_save_IFS | |
7152 test -z "$as_dir" && as_dir=. | |
7153 for ac_exec_ext in '' $ac_executable_extensions; do | |
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7155 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7157 break 2 | |
7158 fi | |
7159 done | |
7160 done | |
7161 IFS=$as_save_IFS | |
7162 | |
7163 fi | |
7164 fi | |
7165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7166 if test -n "$ac_ct_NMEDIT"; then | |
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7168 $as_echo "$ac_ct_NMEDIT" >&6; } | |
7169 else | |
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7171 $as_echo "no" >&6; } | |
7172 fi | |
7173 | |
7174 if test "x$ac_ct_NMEDIT" = x; then | |
7175 NMEDIT=":" | |
7176 else | |
7177 case $cross_compiling:$ac_tool_warned in | |
7178 yes:) | |
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7181 ac_tool_warned=yes ;; | |
7182 esac | |
7183 NMEDIT=$ac_ct_NMEDIT | |
7184 fi | |
7185 else | |
7186 NMEDIT="$ac_cv_prog_NMEDIT" | |
7187 fi | |
7188 | |
7189 if test -n "$ac_tool_prefix"; then | |
7190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7191 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7193 $as_echo_n "checking for $ac_word... " >&6; } | |
7194 if ${ac_cv_prog_LIPO+:} false; then : | |
7195 $as_echo_n "(cached) " >&6 | |
7196 else | |
7197 if test -n "$LIPO"; then | |
7198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7199 else | |
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7201 for as_dir in $PATH | |
7202 do | |
7203 IFS=$as_save_IFS | |
7204 test -z "$as_dir" && as_dir=. | |
7205 for ac_exec_ext in '' $ac_executable_extensions; do | |
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7209 break 2 | |
7210 fi | |
7211 done | |
7212 done | |
7213 IFS=$as_save_IFS | |
7214 | |
7215 fi | |
7216 fi | |
7217 LIPO=$ac_cv_prog_LIPO | |
7218 if test -n "$LIPO"; then | |
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7220 $as_echo "$LIPO" >&6; } | |
7221 else | |
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7223 $as_echo "no" >&6; } | |
7224 fi | |
7225 | |
7226 | |
7227 fi | |
7228 if test -z "$ac_cv_prog_LIPO"; then | |
7229 ac_ct_LIPO=$LIPO | |
7230 # Extract the first word of "lipo", so it can be a program name with args. | |
7231 set dummy lipo; ac_word=$2 | |
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7233 $as_echo_n "checking for $ac_word... " >&6; } | |
7234 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7235 $as_echo_n "(cached) " >&6 | |
7236 else | |
7237 if test -n "$ac_ct_LIPO"; then | |
7238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7239 else | |
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7241 for as_dir in $PATH | |
7242 do | |
7243 IFS=$as_save_IFS | |
7244 test -z "$as_dir" && as_dir=. | |
7245 for ac_exec_ext in '' $ac_executable_extensions; do | |
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7247 ac_cv_prog_ac_ct_LIPO="lipo" | |
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7249 break 2 | |
7250 fi | |
7251 done | |
7252 done | |
7253 IFS=$as_save_IFS | |
7254 | |
7255 fi | |
7256 fi | |
7257 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7258 if test -n "$ac_ct_LIPO"; then | |
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7260 $as_echo "$ac_ct_LIPO" >&6; } | |
7261 else | |
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7263 $as_echo "no" >&6; } | |
7264 fi | |
7265 | |
7266 if test "x$ac_ct_LIPO" = x; then | |
7267 LIPO=":" | |
7268 else | |
7269 case $cross_compiling:$ac_tool_warned in | |
7270 yes:) | |
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7273 ac_tool_warned=yes ;; | |
7274 esac | |
7275 LIPO=$ac_ct_LIPO | |
7276 fi | |
7277 else | |
7278 LIPO="$ac_cv_prog_LIPO" | |
7279 fi | |
7280 | |
7281 if test -n "$ac_tool_prefix"; then | |
7282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7283 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7285 $as_echo_n "checking for $ac_word... " >&6; } | |
7286 if ${ac_cv_prog_OTOOL+:} false; then : | |
7287 $as_echo_n "(cached) " >&6 | |
7288 else | |
7289 if test -n "$OTOOL"; then | |
7290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7291 else | |
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7293 for as_dir in $PATH | |
7294 do | |
7295 IFS=$as_save_IFS | |
7296 test -z "$as_dir" && as_dir=. | |
7297 for ac_exec_ext in '' $ac_executable_extensions; do | |
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7301 break 2 | |
7302 fi | |
7303 done | |
7304 done | |
7305 IFS=$as_save_IFS | |
7306 | |
7307 fi | |
7308 fi | |
7309 OTOOL=$ac_cv_prog_OTOOL | |
7310 if test -n "$OTOOL"; then | |
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7312 $as_echo "$OTOOL" >&6; } | |
7313 else | |
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7315 $as_echo "no" >&6; } | |
7316 fi | |
7317 | |
7318 | |
7319 fi | |
7320 if test -z "$ac_cv_prog_OTOOL"; then | |
7321 ac_ct_OTOOL=$OTOOL | |
7322 # Extract the first word of "otool", so it can be a program name with args. | |
7323 set dummy otool; ac_word=$2 | |
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7325 $as_echo_n "checking for $ac_word... " >&6; } | |
7326 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7327 $as_echo_n "(cached) " >&6 | |
7328 else | |
7329 if test -n "$ac_ct_OTOOL"; then | |
7330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7331 else | |
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7333 for as_dir in $PATH | |
7334 do | |
7335 IFS=$as_save_IFS | |
7336 test -z "$as_dir" && as_dir=. | |
7337 for ac_exec_ext in '' $ac_executable_extensions; do | |
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7339 ac_cv_prog_ac_ct_OTOOL="otool" | |
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7341 break 2 | |
7342 fi | |
7343 done | |
7344 done | |
7345 IFS=$as_save_IFS | |
7346 | |
7347 fi | |
7348 fi | |
7349 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7350 if test -n "$ac_ct_OTOOL"; then | |
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7352 $as_echo "$ac_ct_OTOOL" >&6; } | |
7353 else | |
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7355 $as_echo "no" >&6; } | |
7356 fi | |
7357 | |
7358 if test "x$ac_ct_OTOOL" = x; then | |
7359 OTOOL=":" | |
7360 else | |
7361 case $cross_compiling:$ac_tool_warned in | |
7362 yes:) | |
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7365 ac_tool_warned=yes ;; | |
7366 esac | |
7367 OTOOL=$ac_ct_OTOOL | |
7368 fi | |
7369 else | |
7370 OTOOL="$ac_cv_prog_OTOOL" | |
7371 fi | |
7372 | |
7373 if test -n "$ac_tool_prefix"; then | |
7374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7375 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7377 $as_echo_n "checking for $ac_word... " >&6; } | |
7378 if ${ac_cv_prog_OTOOL64+:} false; then : | |
7379 $as_echo_n "(cached) " >&6 | |
7380 else | |
7381 if test -n "$OTOOL64"; then | |
7382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7383 else | |
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7385 for as_dir in $PATH | |
7386 do | |
7387 IFS=$as_save_IFS | |
7388 test -z "$as_dir" && as_dir=. | |
7389 for ac_exec_ext in '' $ac_executable_extensions; do | |
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7393 break 2 | |
7394 fi | |
7395 done | |
7396 done | |
7397 IFS=$as_save_IFS | |
7398 | |
7399 fi | |
7400 fi | |
7401 OTOOL64=$ac_cv_prog_OTOOL64 | |
7402 if test -n "$OTOOL64"; then | |
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7404 $as_echo "$OTOOL64" >&6; } | |
7405 else | |
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7407 $as_echo "no" >&6; } | |
7408 fi | |
7409 | |
7410 | |
7411 fi | |
7412 if test -z "$ac_cv_prog_OTOOL64"; then | |
7413 ac_ct_OTOOL64=$OTOOL64 | |
7414 # Extract the first word of "otool64", so it can be a program name with args. | |
7415 set dummy otool64; ac_word=$2 | |
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7417 $as_echo_n "checking for $ac_word... " >&6; } | |
7418 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7419 $as_echo_n "(cached) " >&6 | |
7420 else | |
7421 if test -n "$ac_ct_OTOOL64"; then | |
7422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7423 else | |
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7425 for as_dir in $PATH | |
7426 do | |
7427 IFS=$as_save_IFS | |
7428 test -z "$as_dir" && as_dir=. | |
7429 for ac_exec_ext in '' $ac_executable_extensions; do | |
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7431 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7433 break 2 | |
7434 fi | |
7435 done | |
7436 done | |
7437 IFS=$as_save_IFS | |
7438 | |
7439 fi | |
7440 fi | |
7441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7442 if test -n "$ac_ct_OTOOL64"; then | |
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7444 $as_echo "$ac_ct_OTOOL64" >&6; } | |
7445 else | |
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7447 $as_echo "no" >&6; } | |
7448 fi | |
7449 | |
7450 if test "x$ac_ct_OTOOL64" = x; then | |
7451 OTOOL64=":" | |
7452 else | |
7453 case $cross_compiling:$ac_tool_warned in | |
7454 yes:) | |
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7457 ac_tool_warned=yes ;; | |
7458 esac | |
7459 OTOOL64=$ac_ct_OTOOL64 | |
7460 fi | |
7461 else | |
7462 OTOOL64="$ac_cv_prog_OTOOL64" | |
7463 fi | |
7464 | |
7465 | |
7466 | |
7467 | |
7468 | |
7469 | |
7470 | |
7471 | |
7472 | |
7473 | |
7474 | |
7475 | |
7476 | |
7477 | |
7478 | |
7479 | |
7480 | |
7481 | |
7482 | |
7483 | |
7484 | |
7485 | |
7486 | |
7487 | |
7488 | |
7489 | |
7490 | |
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7492 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7493 if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7494 $as_echo_n "(cached) " >&6 | |
7495 else | |
7496 lt_cv_apple_cc_single_mod=no | |
7497 if test -z "${LT_MULTI_MODULE}"; then | |
7498 # By default we will add the -single_module flag. You can override | |
7499 # by either setting the environment variable LT_MULTI_MODULE | |
7500 # non-empty at configure time, or by adding -multi_module to the | |
7501 # link flags. | |
7502 rm -rf libconftest.dylib* | |
7503 echo "int foo(void){return 1;}" > conftest.c | |
7504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7505 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7508 _lt_result=$? | |
7509 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7510 lt_cv_apple_cc_single_mod=yes | |
7511 else | |
7512 cat conftest.err >&5 | |
7513 fi | |
7514 rm -rf libconftest.dylib* | |
7515 rm -f conftest.* | |
7516 fi | |
7517 fi | |
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7519 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7521 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7522 if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7523 $as_echo_n "(cached) " >&6 | |
7524 else | |
7525 lt_cv_ld_exported_symbols_list=no | |
7526 save_LDFLAGS=$LDFLAGS | |
7527 echo "_main" > conftest.sym | |
7528 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7530 /* end confdefs.h. */ | |
7531 | |
7532 int | |
7533 main () | |
7534 { | |
7535 | |
7536 ; | |
7537 return 0; | |
7538 } | |
7539 _ACEOF | |
7540 if ac_fn_c_try_link "$LINENO"; then : | |
7541 lt_cv_ld_exported_symbols_list=yes | |
7542 else | |
7543 lt_cv_ld_exported_symbols_list=no | |
7544 fi | |
7545 rm -f core conftest.err conftest.$ac_objext \ | |
7546 conftest$ac_exeext conftest.$ac_ext | |
7547 LDFLAGS="$save_LDFLAGS" | |
7548 | |
7549 fi | |
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7551 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7553 $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7554 if ${lt_cv_ld_force_load+:} false; then : | |
7555 $as_echo_n "(cached) " >&6 | |
7556 else | |
7557 lt_cv_ld_force_load=no | |
7558 cat > conftest.c << _LT_EOF | |
7559 int forced_loaded() { return 2;} | |
7560 _LT_EOF | |
7561 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7562 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7563 echo "$AR cru libconftest.a conftest.o" >&5 | |
7564 $AR cru libconftest.a conftest.o 2>&5 | |
7565 echo "$RANLIB libconftest.a" >&5 | |
7566 $RANLIB libconftest.a 2>&5 | |
7567 cat > conftest.c << _LT_EOF | |
7568 int main() { return 0;} | |
7569 _LT_EOF | |
7570 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7571 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7572 _lt_result=$? | |
7573 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7574 lt_cv_ld_force_load=yes | |
7575 else | |
7576 cat conftest.err >&5 | |
7577 fi | |
7578 rm -f conftest.err libconftest.a conftest conftest.c | |
7579 rm -rf conftest.dSYM | |
7580 | |
7581 fi | |
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7583 $as_echo "$lt_cv_ld_force_load" >&6; } | |
7584 case $host_os in | |
7585 rhapsody* | darwin1.[012]) | |
7586 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7587 darwin1.*) | |
7588 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7589 darwin*) # darwin 5.x on | |
7590 # if running on 10.5 or later, the deployment target defaults | |
7591 # to the OS version, if on x86, and 10.4, the deployment | |
7592 # target defaults to 10.4. Don't you love it? | |
7593 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7594 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7596 10.[012]*) | |
7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7598 10.*) | |
7599 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7600 esac | |
7601 ;; | |
7602 esac | |
7603 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7604 _lt_dar_single_mod='$single_module' | |
7605 fi | |
7606 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7607 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7608 else | |
7609 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7610 fi | |
7611 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7612 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7613 else | |
7614 _lt_dsymutil= | |
7615 fi | |
7616 ;; | |
7617 esac | |
7618 | |
7619 | |
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7621 $as_echo_n "checking for ANSI C header files... " >&6; } | |
7622 if ${ac_cv_header_stdc+:} false; then : | |
7623 $as_echo_n "(cached) " >&6 | |
7624 else | |
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7626 /* end confdefs.h. */ | |
7627 #include <stdlib.h> | |
7628 #include <stdarg.h> | |
7629 #include <string.h> | |
7630 #include <float.h> | |
7631 | |
7632 int | |
7633 main () | |
7634 { | |
7635 | |
7636 ; | |
7637 return 0; | |
7638 } | |
7639 _ACEOF | |
7640 if ac_fn_c_try_compile "$LINENO"; then : | |
7641 ac_cv_header_stdc=yes | |
7642 else | |
7643 ac_cv_header_stdc=no | |
7644 fi | |
7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7646 | |
7647 if test $ac_cv_header_stdc = yes; then | |
7648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7650 /* end confdefs.h. */ | |
7651 #include <string.h> | |
7652 | |
7653 _ACEOF | |
7654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7655 $EGREP "memchr" >/dev/null 2>&1; then : | |
7656 | |
7657 else | |
7658 ac_cv_header_stdc=no | |
7659 fi | |
7660 rm -f conftest* | |
7661 | |
7662 fi | |
7663 | |
7664 if test $ac_cv_header_stdc = yes; then | |
7665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7667 /* end confdefs.h. */ | |
7668 #include <stdlib.h> | |
7669 | |
7670 _ACEOF | |
7671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7672 $EGREP "free" >/dev/null 2>&1; then : | |
7673 | |
7674 else | |
7675 ac_cv_header_stdc=no | |
7676 fi | |
7677 rm -f conftest* | |
7678 | |
7679 fi | |
7680 | |
7681 if test $ac_cv_header_stdc = yes; then | |
7682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7683 if test "$cross_compiling" = yes; then : | |
7684 : | |
7685 else | |
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7687 /* end confdefs.h. */ | |
7688 #include <ctype.h> | |
7689 #include <stdlib.h> | |
7690 #if ((' ' & 0x0FF) == 0x020) | |
7691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7693 #else | |
7694 # define ISLOWER(c) \ | |
7695 (('a' <= (c) && (c) <= 'i') \ | |
7696 || ('j' <= (c) && (c) <= 'r') \ | |
7697 || ('s' <= (c) && (c) <= 'z')) | |
7698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7699 #endif | |
7700 | |
7701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7702 int | |
7703 main () | |
7704 { | |
7705 int i; | |
7706 for (i = 0; i < 256; i++) | |
7707 if (XOR (islower (i), ISLOWER (i)) | |
7708 || toupper (i) != TOUPPER (i)) | |
7709 return 2; | |
7710 return 0; | |
7711 } | |
7712 _ACEOF | |
7713 if ac_fn_c_try_run "$LINENO"; then : | |
7714 | |
7715 else | |
7716 ac_cv_header_stdc=no | |
7717 fi | |
7718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7719 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7720 fi | |
7721 | |
7722 fi | |
7723 fi | |
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7725 $as_echo "$ac_cv_header_stdc" >&6; } | |
7726 if test $ac_cv_header_stdc = yes; then | |
7727 | |
7728 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7729 | |
7730 fi | |
7731 | |
7732 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7734 inttypes.h stdint.h unistd.h | |
7735 do : | |
7736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7737 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7738 " | |
7739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7740 cat >>confdefs.h <<_ACEOF | |
7741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7742 _ACEOF | |
7743 | |
7744 fi | |
7745 | |
7746 done | |
7747 | |
7748 | |
7749 for ac_header in dlfcn.h | |
7750 do : | |
7751 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7752 " | |
7753 if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
7754 cat >>confdefs.h <<_ACEOF | |
7755 #define HAVE_DLFCN_H 1 | |
7756 _ACEOF | |
7757 | |
7758 fi | |
7759 | |
7760 done | |
7761 | |
7762 | |
7763 | |
7764 | |
7765 | |
7766 # Set options | |
7767 | |
7768 | |
7769 | |
7770 enable_dlopen=no | |
7771 | |
7772 | |
7773 | |
7774 # Check whether --enable-shared was given. | |
7775 if test "${enable_shared+set}" = set; then : | |
7776 enableval=$enable_shared; p=${PACKAGE-default} | |
7777 case $enableval in | |
7778 yes) enable_shared=yes ;; | |
7779 no) enable_shared=no ;; | |
7780 *) | |
7781 enable_shared=no | |
7782 # Look at the argument we got. We use all the common list separators. | |
7783 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7784 for pkg in $enableval; do | |
7785 IFS="$lt_save_ifs" | |
7786 if test "X$pkg" = "X$p"; then | |
7787 enable_shared=yes | |
7788 fi | |
7789 done | |
7790 IFS="$lt_save_ifs" | |
7791 ;; | |
7792 esac | |
7793 else | |
7794 enable_shared=yes | |
7795 fi | |
7796 | |
7797 | |
7798 | |
7799 | |
7800 | |
7801 | |
7802 | |
7803 | |
7804 | |
7805 # Check whether --enable-static was given. | |
7806 if test "${enable_static+set}" = set; then : | |
7807 enableval=$enable_static; p=${PACKAGE-default} | |
7808 case $enableval in | |
7809 yes) enable_static=yes ;; | |
7810 no) enable_static=no ;; | |
7811 *) | |
7812 enable_static=no | |
7813 # Look at the argument we got. We use all the common list separators. | |
7814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7815 for pkg in $enableval; do | |
7816 IFS="$lt_save_ifs" | |
7817 if test "X$pkg" = "X$p"; then | |
7818 enable_static=yes | |
7819 fi | |
7820 done | |
7821 IFS="$lt_save_ifs" | |
7822 ;; | |
7823 esac | |
7824 else | |
7825 enable_static=yes | |
7826 fi | |
7827 | |
7828 | |
7829 | |
7830 | |
7831 | |
7832 | |
7833 | |
7834 | |
7835 | |
7836 | |
7837 # Check whether --with-pic was given. | |
7838 if test "${with_pic+set}" = set; then : | |
7839 withval=$with_pic; pic_mode="$withval" | |
7840 else | |
7841 pic_mode=default | |
7842 fi | |
7843 | |
7844 | |
7845 test -z "$pic_mode" && pic_mode=default | |
7846 | |
7847 | |
7848 | |
7849 | |
7850 | |
7851 | |
7852 | |
7853 # Check whether --enable-fast-install was given. | |
7854 if test "${enable_fast_install+set}" = set; then : | |
7855 enableval=$enable_fast_install; p=${PACKAGE-default} | |
7856 case $enableval in | |
7857 yes) enable_fast_install=yes ;; | |
7858 no) enable_fast_install=no ;; | |
7859 *) | |
7860 enable_fast_install=no | |
7861 # Look at the argument we got. We use all the common list separators. | |
7862 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7863 for pkg in $enableval; do | |
7864 IFS="$lt_save_ifs" | |
7865 if test "X$pkg" = "X$p"; then | |
7866 enable_fast_install=yes | |
7867 fi | |
7868 done | |
7869 IFS="$lt_save_ifs" | |
7870 ;; | |
7871 esac | |
7872 else | |
7873 enable_fast_install=yes | |
7874 fi | |
7875 | |
7876 | |
7877 | |
7878 | |
7879 | |
7880 | |
7881 | |
7882 | |
7883 | |
7884 | |
7885 | |
7886 # This can be used to rebuild libtool when needed | |
7887 LIBTOOL_DEPS="$ltmain" | |
7888 | |
7889 # Always use our own libtool. | |
7890 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7891 | |
7892 | |
7893 | |
7894 | |
7895 | |
7896 | |
7897 | |
7898 | |
7899 | |
7900 | |
7901 | |
7902 | |
7903 | |
7904 | |
7905 | |
7906 | |
7907 | |
7908 | |
7909 | |
7910 | |
7911 | |
7912 | |
7913 | |
7914 | |
7915 | |
7916 | |
7917 test -z "$LN_S" && LN_S="ln -s" | |
7918 | |
7919 | |
7920 | |
7921 | |
7922 | |
7923 | |
7924 | |
7925 | |
7926 | |
7927 | |
7928 | |
7929 | |
7930 | |
7931 | |
7932 if test -n "${ZSH_VERSION+set}" ; then | |
7933 setopt NO_GLOB_SUBST | |
7934 fi | |
7935 | |
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7937 $as_echo_n "checking for objdir... " >&6; } | |
7938 if ${lt_cv_objdir+:} false; then : | |
7939 $as_echo_n "(cached) " >&6 | |
7940 else | |
7941 rm -f .libs 2>/dev/null | |
7942 mkdir .libs 2>/dev/null | |
7943 if test -d .libs; then | |
7944 lt_cv_objdir=.libs | |
7945 else | |
7946 # MS-DOS does not allow filenames that begin with a dot. | |
7947 lt_cv_objdir=_libs | |
7948 fi | |
7949 rmdir .libs 2>/dev/null | |
7950 fi | |
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7952 $as_echo "$lt_cv_objdir" >&6; } | |
7953 objdir=$lt_cv_objdir | |
7954 | |
7955 | |
7956 | |
7957 | |
7958 | |
7959 cat >>confdefs.h <<_ACEOF | |
7960 #define LT_OBJDIR "$lt_cv_objdir/" | |
7961 _ACEOF | |
7962 | |
7963 | |
7964 | |
7965 | |
7966 case $host_os in | |
7967 aix3*) | |
7968 # AIX sometimes has problems with the GCC collect2 program. For some | |
7969 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7970 # vanish in a puff of smoke. | |
7971 if test "X${COLLECT_NAMES+set}" != Xset; then | |
7972 COLLECT_NAMES= | |
7973 export COLLECT_NAMES | |
7974 fi | |
7975 ;; | |
7976 esac | |
7977 | |
7978 # Global variables: | |
7979 ofile=libtool | |
7980 can_build_shared=yes | |
7981 | |
7982 # All known linkers require a `.a' archive for static linking (except MSVC, | |
7983 # which needs '.lib'). | |
7984 libext=a | |
7985 | |
7986 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7987 | |
7988 old_CC="$CC" | |
7989 old_CFLAGS="$CFLAGS" | |
7990 | |
7991 # Set sane defaults for various variables | |
7992 test -z "$CC" && CC=cc | |
7993 test -z "$LTCC" && LTCC=$CC | |
7994 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7995 test -z "$LD" && LD=ld | |
7996 test -z "$ac_objext" && ac_objext=o | |
7997 | |
7998 for cc_temp in $compiler""; do | |
7999 case $cc_temp in | |
8000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8002 \-*) ;; | |
8003 *) break;; | |
8004 esac | |
8005 done | |
8006 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8007 | |
8008 | |
8009 # Only perform the check for file, if the check method requires it | |
8010 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8011 case $deplibs_check_method in | |
8012 file_magic*) | |
8013 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8015 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8016 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8017 $as_echo_n "(cached) " >&6 | |
8018 else | |
8019 case $MAGIC_CMD in | |
8020 [\\/*] | ?:[\\/]*) | |
8021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8022 ;; | |
8023 *) | |
8024 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8027 for ac_dir in $ac_dummy; do | |
8028 IFS="$lt_save_ifs" | |
8029 test -z "$ac_dir" && ac_dir=. | |
8030 if test -f $ac_dir/${ac_tool_prefix}file; then | |
8031 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8032 if test -n "$file_magic_test_file"; then | |
8033 case $deplibs_check_method in | |
8034 "file_magic "*) | |
8035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8038 $EGREP "$file_magic_regex" > /dev/null; then | |
8039 : | |
8040 else | |
8041 cat <<_LT_EOF 1>&2 | |
8042 | |
8043 *** Warning: the command libtool uses to detect shared libraries, | |
8044 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8045 *** The result is that libtool may fail to recognize shared libraries | |
8046 *** as such. This will affect the creation of libtool libraries that | |
8047 *** depend on shared libraries, but programs linked with such libtool | |
8048 *** libraries will work regardless of this problem. Nevertheless, you | |
8049 *** may want to report the problem to your system manager and/or to | |
8050 *** bug-libtool@gnu.org | |
8051 | |
8052 _LT_EOF | |
8053 fi ;; | |
8054 esac | |
8055 fi | |
8056 break | |
8057 fi | |
8058 done | |
8059 IFS="$lt_save_ifs" | |
8060 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8061 ;; | |
8062 esac | |
8063 fi | |
8064 | |
8065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8066 if test -n "$MAGIC_CMD"; then | |
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8068 $as_echo "$MAGIC_CMD" >&6; } | |
8069 else | |
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8071 $as_echo "no" >&6; } | |
8072 fi | |
8073 | |
8074 | |
8075 | |
8076 | |
8077 | |
8078 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8079 if test -n "$ac_tool_prefix"; then | |
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8081 $as_echo_n "checking for file... " >&6; } | |
8082 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8083 $as_echo_n "(cached) " >&6 | |
8084 else | |
8085 case $MAGIC_CMD in | |
8086 [\\/*] | ?:[\\/]*) | |
8087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8088 ;; | |
8089 *) | |
8090 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8093 for ac_dir in $ac_dummy; do | |
8094 IFS="$lt_save_ifs" | |
8095 test -z "$ac_dir" && ac_dir=. | |
8096 if test -f $ac_dir/file; then | |
8097 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8098 if test -n "$file_magic_test_file"; then | |
8099 case $deplibs_check_method in | |
8100 "file_magic "*) | |
8101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8104 $EGREP "$file_magic_regex" > /dev/null; then | |
8105 : | |
8106 else | |
8107 cat <<_LT_EOF 1>&2 | |
8108 | |
8109 *** Warning: the command libtool uses to detect shared libraries, | |
8110 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8111 *** The result is that libtool may fail to recognize shared libraries | |
8112 *** as such. This will affect the creation of libtool libraries that | |
8113 *** depend on shared libraries, but programs linked with such libtool | |
8114 *** libraries will work regardless of this problem. Nevertheless, you | |
8115 *** may want to report the problem to your system manager and/or to | |
8116 *** bug-libtool@gnu.org | |
8117 | |
8118 _LT_EOF | |
8119 fi ;; | |
8120 esac | |
8121 fi | |
8122 break | |
8123 fi | |
8124 done | |
8125 IFS="$lt_save_ifs" | |
8126 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8127 ;; | |
8128 esac | |
8129 fi | |
8130 | |
8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8132 if test -n "$MAGIC_CMD"; then | |
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8134 $as_echo "$MAGIC_CMD" >&6; } | |
8135 else | |
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8137 $as_echo "no" >&6; } | |
8138 fi | |
8139 | |
8140 | |
8141 else | |
8142 MAGIC_CMD=: | |
8143 fi | |
8144 fi | |
8145 | |
8146 fi | |
8147 ;; | |
8148 esac | |
8149 | |
8150 # Use C for the default configuration in the libtool script | |
8151 | |
8152 lt_save_CC="$CC" | |
8153 ac_ext=c | |
8154 ac_cpp='$CPP $CPPFLAGS' | |
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8158 | |
8159 | |
8160 # Source file extension for C test sources. | |
8161 ac_ext=c | |
8162 | |
8163 # Object file extension for compiled C test sources. | |
8164 objext=o | |
8165 objext=$objext | |
8166 | |
8167 # Code to be used in simple compile tests | |
8168 lt_simple_compile_test_code="int some_variable = 0;" | |
8169 | |
8170 # Code to be used in simple link tests | |
8171 lt_simple_link_test_code='int main(){return(0);}' | |
8172 | |
8173 | |
8174 | |
8175 | |
8176 | |
8177 | |
8178 | |
8179 # If no C compiler was specified, use CC. | |
8180 LTCC=${LTCC-"$CC"} | |
8181 | |
8182 # If no C compiler flags were specified, use CFLAGS. | |
8183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8184 | |
8185 # Allow CC to be a program name with arguments. | |
8186 compiler=$CC | |
8187 | |
8188 # Save the default compiler, since it gets overwritten when the other | |
8189 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8190 compiler_DEFAULT=$CC | |
8191 | |
8192 # save warnings/boilerplate of simple test code | |
8193 ac_outfile=conftest.$ac_objext | |
8194 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8196 _lt_compiler_boilerplate=`cat conftest.err` | |
8197 $RM conftest* | |
8198 | |
8199 ac_outfile=conftest.$ac_objext | |
8200 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8202 _lt_linker_boilerplate=`cat conftest.err` | |
8203 $RM -r conftest* | |
8204 | |
8205 | |
8206 if test -n "$compiler"; then | |
8207 | |
8208 lt_prog_compiler_no_builtin_flag= | |
8209 | |
8210 if test "$GCC" = yes; then | |
8211 case $cc_basename in | |
8212 nvcc*) | |
8213 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8214 *) | |
8215 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8216 esac | |
8217 | |
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8219 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8220 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8221 $as_echo_n "(cached) " >&6 | |
8222 else | |
8223 lt_cv_prog_compiler_rtti_exceptions=no | |
8224 ac_outfile=conftest.$ac_objext | |
8225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8226 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8227 # Insert the option either (1) after the last *FLAGS variable, or | |
8228 # (2) before a word containing "conftest.", or (3) at the end. | |
8229 # Note that $ac_compile itself does not contain backslashes and begins | |
8230 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8231 # The option is referenced via a variable to avoid confusing sed. | |
8232 lt_compile=`echo "$ac_compile" | $SED \ | |
8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8235 -e 's:$: $lt_compiler_flag:'` | |
8236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8237 (eval "$lt_compile" 2>conftest.err) | |
8238 ac_status=$? | |
8239 cat conftest.err >&5 | |
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8241 if (exit $ac_status) && test -s "$ac_outfile"; then | |
8242 # The compiler can only warn and ignore the option if not recognized | |
8243 # So say no if there are warnings other than the usual output. | |
8244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8247 lt_cv_prog_compiler_rtti_exceptions=yes | |
8248 fi | |
8249 fi | |
8250 $RM conftest* | |
8251 | |
8252 fi | |
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8254 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8255 | |
8256 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8257 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8258 else | |
8259 : | |
8260 fi | |
8261 | |
8262 fi | |
8263 | |
8264 | |
8265 | |
8266 | |
8267 | |
8268 | |
8269 lt_prog_compiler_wl= | |
8270 lt_prog_compiler_pic= | |
8271 lt_prog_compiler_static= | |
8272 | |
8273 | |
8274 if test "$GCC" = yes; then | |
8275 lt_prog_compiler_wl='-Wl,' | |
8276 lt_prog_compiler_static='-static' | |
8277 | |
8278 case $host_os in | |
8279 aix*) | |
8280 # All AIX code is PIC. | |
8281 if test "$host_cpu" = ia64; then | |
8282 # AIX 5 now supports IA64 processor | |
8283 lt_prog_compiler_static='-Bstatic' | |
8284 fi | |
8285 ;; | |
8286 | |
8287 amigaos*) | |
8288 case $host_cpu in | |
8289 powerpc) | |
8290 # see comment about AmigaOS4 .so support | |
8291 lt_prog_compiler_pic='-fPIC' | |
8292 ;; | |
8293 m68k) | |
8294 # FIXME: we need at least 68020 code to build shared libraries, but | |
8295 # adding the `-m68020' flag to GCC prevents building anything better, | |
8296 # like `-m68040'. | |
8297 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8298 ;; | |
8299 esac | |
8300 ;; | |
8301 | |
8302 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8303 # PIC is the default for these OSes. | |
8304 ;; | |
8305 | |
8306 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8307 # This hack is so that the source file can tell whether it is being | |
8308 # built for inclusion in a dll (and should export symbols for example). | |
8309 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8310 # (--disable-auto-import) libraries | |
8311 lt_prog_compiler_pic='-DDLL_EXPORT' | |
8312 ;; | |
8313 | |
8314 darwin* | rhapsody*) | |
8315 # PIC is the default on this platform | |
8316 # Common symbols not allowed in MH_DYLIB files | |
8317 lt_prog_compiler_pic='-fno-common' | |
8318 ;; | |
8319 | |
8320 haiku*) | |
8321 # PIC is the default for Haiku. | |
8322 # The "-static" flag exists, but is broken. | |
8323 lt_prog_compiler_static= | |
8324 ;; | |
8325 | |
8326 hpux*) | |
8327 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8328 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8329 # sets the default TLS model and affects inlining. | |
8330 case $host_cpu in | |
8331 hppa*64*) | |
8332 # +Z the default | |
8333 ;; | |
8334 *) | |
8335 lt_prog_compiler_pic='-fPIC' | |
8336 ;; | |
8337 esac | |
8338 ;; | |
8339 | |
8340 interix[3-9]*) | |
8341 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8342 # Instead, we relocate shared libraries at runtime. | |
8343 ;; | |
8344 | |
8345 msdosdjgpp*) | |
8346 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8347 # on systems that don't support them. | |
8348 lt_prog_compiler_can_build_shared=no | |
8349 enable_shared=no | |
8350 ;; | |
8351 | |
8352 *nto* | *qnx*) | |
8353 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8354 # it will coredump. | |
8355 lt_prog_compiler_pic='-fPIC -shared' | |
8356 ;; | |
8357 | |
8358 sysv4*MP*) | |
8359 if test -d /usr/nec; then | |
8360 lt_prog_compiler_pic=-Kconform_pic | |
8361 fi | |
8362 ;; | |
8363 | |
8364 *) | |
8365 lt_prog_compiler_pic='-fPIC' | |
8366 ;; | |
8367 esac | |
8368 | |
8369 case $cc_basename in | |
8370 nvcc*) # Cuda Compiler Driver 2.2 | |
8371 lt_prog_compiler_wl='-Xlinker ' | |
8372 lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8373 ;; | |
8374 esac | |
8375 else | |
8376 # PORTME Check for flag to pass linker flags through the system compiler. | |
8377 case $host_os in | |
8378 aix*) | |
8379 lt_prog_compiler_wl='-Wl,' | |
8380 if test "$host_cpu" = ia64; then | |
8381 # AIX 5 now supports IA64 processor | |
8382 lt_prog_compiler_static='-Bstatic' | |
8383 else | |
8384 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8385 fi | |
8386 ;; | |
8387 | |
8388 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8389 # This hack is so that the source file can tell whether it is being | |
8390 # built for inclusion in a dll (and should export symbols for example). | |
8391 lt_prog_compiler_pic='-DDLL_EXPORT' | |
8392 ;; | |
8393 | |
8394 hpux9* | hpux10* | hpux11*) | |
8395 lt_prog_compiler_wl='-Wl,' | |
8396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8397 # not for PA HP-UX. | |
8398 case $host_cpu in | |
8399 hppa*64*|ia64*) | |
8400 # +Z the default | |
8401 ;; | |
8402 *) | |
8403 lt_prog_compiler_pic='+Z' | |
8404 ;; | |
8405 esac | |
8406 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8407 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8408 ;; | |
8409 | |
8410 irix5* | irix6* | nonstopux*) | |
8411 lt_prog_compiler_wl='-Wl,' | |
8412 # PIC (with -KPIC) is the default. | |
8413 lt_prog_compiler_static='-non_shared' | |
8414 ;; | |
8415 | |
8416 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8417 case $cc_basename in | |
8418 # old Intel for x86_64 which still supported -KPIC. | |
8419 ecc*) | |
8420 lt_prog_compiler_wl='-Wl,' | |
8421 lt_prog_compiler_pic='-KPIC' | |
8422 lt_prog_compiler_static='-static' | |
8423 ;; | |
8424 # icc used to be incompatible with GCC. | |
8425 # ICC 10 doesn't accept -KPIC any more. | |
8426 icc* | ifort*) | |
8427 lt_prog_compiler_wl='-Wl,' | |
8428 lt_prog_compiler_pic='-fPIC' | |
8429 lt_prog_compiler_static='-static' | |
8430 ;; | |
8431 # Lahey Fortran 8.1. | |
8432 lf95*) | |
8433 lt_prog_compiler_wl='-Wl,' | |
8434 lt_prog_compiler_pic='--shared' | |
8435 lt_prog_compiler_static='--static' | |
8436 ;; | |
8437 nagfor*) | |
8438 # NAG Fortran compiler | |
8439 lt_prog_compiler_wl='-Wl,-Wl,,' | |
8440 lt_prog_compiler_pic='-PIC' | |
8441 lt_prog_compiler_static='-Bstatic' | |
8442 ;; | |
8443 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8444 # Portland Group compilers (*not* the Pentium gcc compiler, | |
8445 # which looks to be a dead project) | |
8446 lt_prog_compiler_wl='-Wl,' | |
8447 lt_prog_compiler_pic='-fpic' | |
8448 lt_prog_compiler_static='-Bstatic' | |
8449 ;; | |
8450 ccc*) | |
8451 lt_prog_compiler_wl='-Wl,' | |
8452 # All Alpha code is PIC. | |
8453 lt_prog_compiler_static='-non_shared' | |
8454 ;; | |
8455 xl* | bgxl* | bgf* | mpixl*) | |
8456 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8457 lt_prog_compiler_wl='-Wl,' | |
8458 lt_prog_compiler_pic='-qpic' | |
8459 lt_prog_compiler_static='-qstaticlink' | |
8460 ;; | |
8461 *) | |
8462 case `$CC -V 2>&1 | sed 5q` in | |
8463 *Sun\ F* | *Sun*Fortran*) | |
8464 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8465 lt_prog_compiler_pic='-KPIC' | |
8466 lt_prog_compiler_static='-Bstatic' | |
8467 lt_prog_compiler_wl='' | |
8468 ;; | |
8469 *Sun\ C*) | |
8470 # Sun C 5.9 | |
8471 lt_prog_compiler_pic='-KPIC' | |
8472 lt_prog_compiler_static='-Bstatic' | |
8473 lt_prog_compiler_wl='-Wl,' | |
8474 ;; | |
8475 esac | |
8476 ;; | |
8477 esac | |
8478 ;; | |
8479 | |
8480 newsos6) | |
8481 lt_prog_compiler_pic='-KPIC' | |
8482 lt_prog_compiler_static='-Bstatic' | |
8483 ;; | |
8484 | |
8485 *nto* | *qnx*) | |
8486 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8487 # it will coredump. | |
8488 lt_prog_compiler_pic='-fPIC -shared' | |
8489 ;; | |
8490 | |
8491 osf3* | osf4* | osf5*) | |
8492 lt_prog_compiler_wl='-Wl,' | |
8493 # All OSF/1 code is PIC. | |
8494 lt_prog_compiler_static='-non_shared' | |
8495 ;; | |
8496 | |
8497 rdos*) | |
8498 lt_prog_compiler_static='-non_shared' | |
8499 ;; | |
8500 | |
8501 solaris*) | |
8502 lt_prog_compiler_pic='-KPIC' | |
8503 lt_prog_compiler_static='-Bstatic' | |
8504 case $cc_basename in | |
8505 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8506 lt_prog_compiler_wl='-Qoption ld ';; | |
8507 *) | |
8508 lt_prog_compiler_wl='-Wl,';; | |
8509 esac | |
8510 ;; | |
8511 | |
8512 sunos4*) | |
8513 lt_prog_compiler_wl='-Qoption ld ' | |
8514 lt_prog_compiler_pic='-PIC' | |
8515 lt_prog_compiler_static='-Bstatic' | |
8516 ;; | |
8517 | |
8518 sysv4 | sysv4.2uw2* | sysv4.3*) | |
8519 lt_prog_compiler_wl='-Wl,' | |
8520 lt_prog_compiler_pic='-KPIC' | |
8521 lt_prog_compiler_static='-Bstatic' | |
8522 ;; | |
8523 | |
8524 sysv4*MP*) | |
8525 if test -d /usr/nec ;then | |
8526 lt_prog_compiler_pic='-Kconform_pic' | |
8527 lt_prog_compiler_static='-Bstatic' | |
8528 fi | |
8529 ;; | |
8530 | |
8531 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8532 lt_prog_compiler_wl='-Wl,' | |
8533 lt_prog_compiler_pic='-KPIC' | |
8534 lt_prog_compiler_static='-Bstatic' | |
8535 ;; | |
8536 | |
8537 unicos*) | |
8538 lt_prog_compiler_wl='-Wl,' | |
8539 lt_prog_compiler_can_build_shared=no | |
8540 ;; | |
8541 | |
8542 uts4*) | |
8543 lt_prog_compiler_pic='-pic' | |
8544 lt_prog_compiler_static='-Bstatic' | |
8545 ;; | |
8546 | |
8547 *) | |
8548 lt_prog_compiler_can_build_shared=no | |
8549 ;; | |
8550 esac | |
8551 fi | |
8552 | |
8553 case $host_os in | |
8554 # For platforms which do not support PIC, -DPIC is meaningless: | |
8555 *djgpp*) | |
8556 lt_prog_compiler_pic= | |
8557 ;; | |
8558 *) | |
8559 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8560 ;; | |
8561 esac | |
8562 | |
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8564 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8565 if ${lt_cv_prog_compiler_pic+:} false; then : | |
8566 $as_echo_n "(cached) " >&6 | |
8567 else | |
8568 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8569 fi | |
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8571 $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8572 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8573 | |
8574 # | |
8575 # Check to make sure the PIC flag actually works. | |
8576 # | |
8577 if test -n "$lt_prog_compiler_pic"; then | |
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8579 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8580 if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8581 $as_echo_n "(cached) " >&6 | |
8582 else | |
8583 lt_cv_prog_compiler_pic_works=no | |
8584 ac_outfile=conftest.$ac_objext | |
8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8586 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8587 # Insert the option either (1) after the last *FLAGS variable, or | |
8588 # (2) before a word containing "conftest.", or (3) at the end. | |
8589 # Note that $ac_compile itself does not contain backslashes and begins | |
8590 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8591 # The option is referenced via a variable to avoid confusing sed. | |
8592 lt_compile=`echo "$ac_compile" | $SED \ | |
8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8595 -e 's:$: $lt_compiler_flag:'` | |
8596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8597 (eval "$lt_compile" 2>conftest.err) | |
8598 ac_status=$? | |
8599 cat conftest.err >&5 | |
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8601 if (exit $ac_status) && test -s "$ac_outfile"; then | |
8602 # The compiler can only warn and ignore the option if not recognized | |
8603 # So say no if there are warnings other than the usual output. | |
8604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8607 lt_cv_prog_compiler_pic_works=yes | |
8608 fi | |
8609 fi | |
8610 $RM conftest* | |
8611 | |
8612 fi | |
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8614 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8615 | |
8616 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8617 case $lt_prog_compiler_pic in | |
8618 "" | " "*) ;; | |
8619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8620 esac | |
8621 else | |
8622 lt_prog_compiler_pic= | |
8623 lt_prog_compiler_can_build_shared=no | |
8624 fi | |
8625 | |
8626 fi | |
8627 | |
8628 | |
8629 | |
8630 | |
8631 | |
8632 | |
8633 | |
8634 | |
8635 | |
8636 | |
8637 | |
8638 # | |
8639 # Check to make sure the static flag actually works. | |
8640 # | |
8641 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8643 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8644 if ${lt_cv_prog_compiler_static_works+:} false; then : | |
8645 $as_echo_n "(cached) " >&6 | |
8646 else | |
8647 lt_cv_prog_compiler_static_works=no | |
8648 save_LDFLAGS="$LDFLAGS" | |
8649 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8650 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8652 # The linker can only warn and ignore the option if not recognized | |
8653 # So say no if there are warnings | |
8654 if test -s conftest.err; then | |
8655 # Append any errors to the config.log. | |
8656 cat conftest.err 1>&5 | |
8657 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8659 if diff conftest.exp conftest.er2 >/dev/null; then | |
8660 lt_cv_prog_compiler_static_works=yes | |
8661 fi | |
8662 else | |
8663 lt_cv_prog_compiler_static_works=yes | |
8664 fi | |
8665 fi | |
8666 $RM -r conftest* | |
8667 LDFLAGS="$save_LDFLAGS" | |
8668 | |
8669 fi | |
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8671 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8672 | |
8673 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8674 : | |
8675 else | |
8676 lt_prog_compiler_static= | |
8677 fi | |
8678 | |
8679 | |
8680 | |
8681 | |
8682 | |
8683 | |
8684 | |
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8687 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8688 $as_echo_n "(cached) " >&6 | |
8689 else | |
8690 lt_cv_prog_compiler_c_o=no | |
8691 $RM -r conftest 2>/dev/null | |
8692 mkdir conftest | |
8693 cd conftest | |
8694 mkdir out | |
8695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8696 | |
8697 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8698 # Insert the option either (1) after the last *FLAGS variable, or | |
8699 # (2) before a word containing "conftest.", or (3) at the end. | |
8700 # Note that $ac_compile itself does not contain backslashes and begins | |
8701 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8702 lt_compile=`echo "$ac_compile" | $SED \ | |
8703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8705 -e 's:$: $lt_compiler_flag:'` | |
8706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8707 (eval "$lt_compile" 2>out/conftest.err) | |
8708 ac_status=$? | |
8709 cat out/conftest.err >&5 | |
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8711 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8712 then | |
8713 # The compiler can only warn and ignore the option if not recognized | |
8714 # So say no if there are warnings | |
8715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8718 lt_cv_prog_compiler_c_o=yes | |
8719 fi | |
8720 fi | |
8721 chmod u+w . 2>&5 | |
8722 $RM conftest* | |
8723 # SGI C++ compiler will create directory out/ii_files/ for | |
8724 # template instantiation | |
8725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8726 $RM out/* && rmdir out | |
8727 cd .. | |
8728 $RM -r conftest | |
8729 $RM conftest* | |
8730 | |
8731 fi | |
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8733 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8734 | |
8735 | |
8736 | |
8737 | |
8738 | |
8739 | |
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8741 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8742 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8743 $as_echo_n "(cached) " >&6 | |
8744 else | |
8745 lt_cv_prog_compiler_c_o=no | |
8746 $RM -r conftest 2>/dev/null | |
8747 mkdir conftest | |
8748 cd conftest | |
8749 mkdir out | |
8750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8751 | |
8752 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8753 # Insert the option either (1) after the last *FLAGS variable, or | |
8754 # (2) before a word containing "conftest.", or (3) at the end. | |
8755 # Note that $ac_compile itself does not contain backslashes and begins | |
8756 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8757 lt_compile=`echo "$ac_compile" | $SED \ | |
8758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8760 -e 's:$: $lt_compiler_flag:'` | |
8761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8762 (eval "$lt_compile" 2>out/conftest.err) | |
8763 ac_status=$? | |
8764 cat out/conftest.err >&5 | |
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8766 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8767 then | |
8768 # The compiler can only warn and ignore the option if not recognized | |
8769 # So say no if there are warnings | |
8770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8773 lt_cv_prog_compiler_c_o=yes | |
8774 fi | |
8775 fi | |
8776 chmod u+w . 2>&5 | |
8777 $RM conftest* | |
8778 # SGI C++ compiler will create directory out/ii_files/ for | |
8779 # template instantiation | |
8780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8781 $RM out/* && rmdir out | |
8782 cd .. | |
8783 $RM -r conftest | |
8784 $RM conftest* | |
8785 | |
8786 fi | |
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8788 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8789 | |
8790 | |
8791 | |
8792 | |
8793 hard_links="nottested" | |
8794 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8795 # do not overwrite the value of need_locks provided by the user | |
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8797 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8798 hard_links=yes | |
8799 $RM conftest* | |
8800 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8801 touch conftest.a | |
8802 ln conftest.a conftest.b 2>&5 || hard_links=no | |
8803 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8805 $as_echo "$hard_links" >&6; } | |
8806 if test "$hard_links" = no; then | |
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8808 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8809 need_locks=warn | |
8810 fi | |
8811 else | |
8812 need_locks=no | |
8813 fi | |
8814 | |
8815 | |
8816 | |
8817 | |
8818 | |
8819 | |
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8821 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8822 | |
8823 runpath_var= | |
8824 allow_undefined_flag= | |
8825 always_export_symbols=no | |
8826 archive_cmds= | |
8827 archive_expsym_cmds= | |
8828 compiler_needs_object=no | |
8829 enable_shared_with_static_runtimes=no | |
8830 export_dynamic_flag_spec= | |
8831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8832 hardcode_automatic=no | |
8833 hardcode_direct=no | |
8834 hardcode_direct_absolute=no | |
8835 hardcode_libdir_flag_spec= | |
8836 hardcode_libdir_flag_spec_ld= | |
8837 hardcode_libdir_separator= | |
8838 hardcode_minus_L=no | |
8839 hardcode_shlibpath_var=unsupported | |
8840 inherit_rpath=no | |
8841 link_all_deplibs=unknown | |
8842 module_cmds= | |
8843 module_expsym_cmds= | |
8844 old_archive_from_new_cmds= | |
8845 old_archive_from_expsyms_cmds= | |
8846 thread_safe_flag_spec= | |
8847 whole_archive_flag_spec= | |
8848 # include_expsyms should be a list of space-separated symbols to be *always* | |
8849 # included in the symbol list | |
8850 include_expsyms= | |
8851 # exclude_expsyms can be an extended regexp of symbols to exclude | |
8852 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8853 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8854 # as well as any symbol that contains `d'. | |
8855 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8857 # platforms (ab)use it in PIC code, but their linkers get confused if | |
8858 # the symbol is explicitly referenced. Since portable code cannot | |
8859 # rely on this symbol name, it's probably fine to never include it in | |
8860 # preloaded symbol tables. | |
8861 # Exclude shared library initialization/finalization symbols. | |
8862 extract_expsyms_cmds= | |
8863 | |
8864 case $host_os in | |
8865 cygwin* | mingw* | pw32* | cegcc*) | |
8866 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8867 # When not using gcc, we currently assume that we are using | |
8868 # Microsoft Visual C++. | |
8869 if test "$GCC" != yes; then | |
8870 with_gnu_ld=no | |
8871 fi | |
8872 ;; | |
8873 interix*) | |
8874 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8875 with_gnu_ld=yes | |
8876 ;; | |
8877 openbsd*) | |
8878 with_gnu_ld=no | |
8879 ;; | |
8880 linux* | k*bsd*-gnu | gnu*) | |
8881 link_all_deplibs=no | |
8882 ;; | |
8883 esac | |
8884 | |
8885 ld_shlibs=yes | |
8886 | |
8887 # On some targets, GNU ld is compatible enough with the native linker | |
8888 # that we're better off using the native interface for both. | |
8889 lt_use_gnu_ld_interface=no | |
8890 if test "$with_gnu_ld" = yes; then | |
8891 case $host_os in | |
8892 aix*) | |
8893 # The AIX port of GNU ld has always aspired to compatibility | |
8894 # with the native linker. However, as the warning in the GNU ld | |
8895 # block says, versions before 2.19.5* couldn't really create working | |
8896 # shared libraries, regardless of the interface used. | |
8897 case `$LD -v 2>&1` in | |
8898 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8899 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8900 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8901 *) | |
8902 lt_use_gnu_ld_interface=yes | |
8903 ;; | |
8904 esac | |
8905 ;; | |
8906 *) | |
8907 lt_use_gnu_ld_interface=yes | |
8908 ;; | |
8909 esac | |
8910 fi | |
8911 | |
8912 if test "$lt_use_gnu_ld_interface" = yes; then | |
8913 # If archive_cmds runs LD, not CC, wlarc should be empty | |
8914 wlarc='${wl}' | |
8915 | |
8916 # Set some defaults for GNU ld with shared library support. These | |
8917 # are reset later if shared libraries are not supported. Putting them | |
8918 # here allows them to be overridden if necessary. | |
8919 runpath_var=LD_RUN_PATH | |
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8921 export_dynamic_flag_spec='${wl}--export-dynamic' | |
8922 # ancient GNU ld didn't support --whole-archive et. al. | |
8923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8925 else | |
8926 whole_archive_flag_spec= | |
8927 fi | |
8928 supports_anon_versioning=no | |
8929 case `$LD -v 2>&1` in | |
8930 *GNU\ gold*) supports_anon_versioning=yes ;; | |
8931 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8932 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8933 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8934 *\ 2.11.*) ;; # other 2.11 versions | |
8935 *) supports_anon_versioning=yes ;; | |
8936 esac | |
8937 | |
8938 # See if GNU ld supports shared libraries. | |
8939 case $host_os in | |
8940 aix[3-9]*) | |
8941 # On AIX/PPC, the GNU linker is very broken | |
8942 if test "$host_cpu" != ia64; then | |
8943 ld_shlibs=no | |
8944 cat <<_LT_EOF 1>&2 | |
8945 | |
8946 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
8947 *** to be unable to reliably create shared libraries on AIX. | |
8948 *** Therefore, libtool is disabling shared libraries support. If you | |
8949 *** really care for shared libraries, you may want to install binutils | |
8950 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8951 *** You will then need to restart the configuration process. | |
8952 | |
8953 _LT_EOF | |
8954 fi | |
8955 ;; | |
8956 | |
8957 amigaos*) | |
8958 case $host_cpu in | |
8959 powerpc) | |
8960 # see comment about AmigaOS4 .so support | |
8961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8962 archive_expsym_cmds='' | |
8963 ;; | |
8964 m68k) | |
8965 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)' | |
8966 hardcode_libdir_flag_spec='-L$libdir' | |
8967 hardcode_minus_L=yes | |
8968 ;; | |
8969 esac | |
8970 ;; | |
8971 | |
8972 beos*) | |
8973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8974 allow_undefined_flag=unsupported | |
8975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8976 # support --undefined. This deserves some investigation. FIXME | |
8977 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8978 else | |
8979 ld_shlibs=no | |
8980 fi | |
8981 ;; | |
8982 | |
8983 cygwin* | mingw* | pw32* | cegcc*) | |
8984 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8985 # as there is no search path for DLLs. | |
8986 hardcode_libdir_flag_spec='-L$libdir' | |
8987 export_dynamic_flag_spec='${wl}--export-all-symbols' | |
8988 allow_undefined_flag=unsupported | |
8989 always_export_symbols=no | |
8990 enable_shared_with_static_runtimes=yes | |
8991 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' | |
8992 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
8993 | |
8994 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8996 # If the export-symbols file already is a .def file (1st line | |
8997 # is EXPORTS), use it as is; otherwise, prepend... | |
8998 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8999 cp $export_symbols $output_objdir/$soname.def; | |
9000 else | |
9001 echo EXPORTS > $output_objdir/$soname.def; | |
9002 cat $export_symbols >> $output_objdir/$soname.def; | |
9003 fi~ | |
9004 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9005 else | |
9006 ld_shlibs=no | |
9007 fi | |
9008 ;; | |
9009 | |
9010 haiku*) | |
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9012 link_all_deplibs=yes | |
9013 ;; | |
9014 | |
9015 interix[3-9]*) | |
9016 hardcode_direct=no | |
9017 hardcode_shlibpath_var=no | |
9018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9019 export_dynamic_flag_spec='${wl}-E' | |
9020 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9021 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9022 # default) and relocated if they conflict, which is a slow very memory | |
9023 # consuming and fragmenting process. To avoid this, we pick a random, | |
9024 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9025 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9026 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9027 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' | |
9028 ;; | |
9029 | |
9030 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9031 tmp_diet=no | |
9032 if test "$host_os" = linux-dietlibc; then | |
9033 case $cc_basename in | |
9034 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9035 esac | |
9036 fi | |
9037 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9038 && test "$tmp_diet" = no | |
9039 then | |
9040 tmp_addflag=' $pic_flag' | |
9041 tmp_sharedflag='-shared' | |
9042 case $cc_basename,$host_cpu in | |
9043 pgcc*) # Portland Group C compiler | |
9044 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' | |
9045 tmp_addflag=' $pic_flag' | |
9046 ;; | |
9047 pgf77* | pgf90* | pgf95* | pgfortran*) | |
9048 # Portland Group f77 and f90 compilers | |
9049 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' | |
9050 tmp_addflag=' $pic_flag -Mnomain' ;; | |
9051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9052 tmp_addflag=' -i_dynamic' ;; | |
9053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9054 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9055 ifc* | ifort*) # Intel Fortran compiler | |
9056 tmp_addflag=' -nofor_main' ;; | |
9057 lf95*) # Lahey Fortran 8.1 | |
9058 whole_archive_flag_spec= | |
9059 tmp_sharedflag='--shared' ;; | |
9060 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9061 tmp_sharedflag='-qmkshrobj' | |
9062 tmp_addflag= ;; | |
9063 nvcc*) # Cuda Compiler Driver 2.2 | |
9064 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' | |
9065 compiler_needs_object=yes | |
9066 ;; | |
9067 esac | |
9068 case `$CC -V 2>&1 | sed 5q` in | |
9069 *Sun\ C*) # Sun C 5.9 | |
9070 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' | |
9071 compiler_needs_object=yes | |
9072 tmp_sharedflag='-G' ;; | |
9073 *Sun\ F*) # Sun Fortran 8.3 | |
9074 tmp_sharedflag='-G' ;; | |
9075 esac | |
9076 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9077 | |
9078 if test "x$supports_anon_versioning" = xyes; then | |
9079 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9081 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9082 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9083 fi | |
9084 | |
9085 case $cc_basename in | |
9086 xlf* | bgf* | bgxlf* | mpixlf*) | |
9087 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9088 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9089 hardcode_libdir_flag_spec= | |
9090 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9091 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9092 if test "x$supports_anon_versioning" = xyes; then | |
9093 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9095 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9096 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9097 fi | |
9098 ;; | |
9099 esac | |
9100 else | |
9101 ld_shlibs=no | |
9102 fi | |
9103 ;; | |
9104 | |
9105 netbsd* | netbsdelf*-gnu) | |
9106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9107 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9108 wlarc= | |
9109 else | |
9110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9111 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9112 fi | |
9113 ;; | |
9114 | |
9115 solaris*) | |
9116 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9117 ld_shlibs=no | |
9118 cat <<_LT_EOF 1>&2 | |
9119 | |
9120 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9121 *** create shared libraries on Solaris systems. Therefore, libtool | |
9122 *** is disabling shared libraries support. We urge you to upgrade GNU | |
9123 *** binutils to release 2.9.1 or newer. Another option is to modify | |
9124 *** your PATH or compiler configuration so that the native linker is | |
9125 *** used, and then restart. | |
9126 | |
9127 _LT_EOF | |
9128 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9130 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9131 else | |
9132 ld_shlibs=no | |
9133 fi | |
9134 ;; | |
9135 | |
9136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9137 case `$LD -v 2>&1` in | |
9138 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9139 ld_shlibs=no | |
9140 cat <<_LT_EOF 1>&2 | |
9141 | |
9142 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9143 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9144 *** is disabling shared libraries support. We urge you to upgrade GNU | |
9145 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9146 *** your PATH or compiler configuration so that the native linker is | |
9147 *** used, and then restart. | |
9148 | |
9149 _LT_EOF | |
9150 ;; | |
9151 *) | |
9152 # For security reasons, it is highly recommended that you always | |
9153 # use absolute paths for naming shared libraries, and exclude the | |
9154 # DT_RUNPATH tag from executables and libraries. But doing so | |
9155 # requires that you compile everything twice, which is a pain. | |
9156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9160 else | |
9161 ld_shlibs=no | |
9162 fi | |
9163 ;; | |
9164 esac | |
9165 ;; | |
9166 | |
9167 sunos4*) | |
9168 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9169 wlarc= | |
9170 hardcode_direct=yes | |
9171 hardcode_shlibpath_var=no | |
9172 ;; | |
9173 | |
9174 *) | |
9175 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9177 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9178 else | |
9179 ld_shlibs=no | |
9180 fi | |
9181 ;; | |
9182 esac | |
9183 | |
9184 if test "$ld_shlibs" = no; then | |
9185 runpath_var= | |
9186 hardcode_libdir_flag_spec= | |
9187 export_dynamic_flag_spec= | |
9188 whole_archive_flag_spec= | |
9189 fi | |
9190 else | |
9191 # PORTME fill in a description of your system's linker (not GNU ld) | |
9192 case $host_os in | |
9193 aix3*) | |
9194 allow_undefined_flag=unsupported | |
9195 always_export_symbols=yes | |
9196 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' | |
9197 # Note: this linker hardcodes the directories in LIBPATH if there | |
9198 # are no directories specified by -L. | |
9199 hardcode_minus_L=yes | |
9200 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9201 # Neither direct hardcoding nor static linking is supported with a | |
9202 # broken collect2. | |
9203 hardcode_direct=unsupported | |
9204 fi | |
9205 ;; | |
9206 | |
9207 aix[4-9]*) | |
9208 if test "$host_cpu" = ia64; then | |
9209 # On IA64, the linker does run time linking by default, so we don't | |
9210 # have to do anything special. | |
9211 aix_use_runtimelinking=no | |
9212 exp_sym_flag='-Bexport' | |
9213 no_entry_flag="" | |
9214 else | |
9215 # If we're using GNU nm, then we don't want the "-C" option. | |
9216 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9217 # Also, AIX nm treats weak defined symbols like other global | |
9218 # defined symbols, whereas GNU nm marks them as "W". | |
9219 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9220 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' | |
9221 else | |
9222 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' | |
9223 fi | |
9224 aix_use_runtimelinking=no | |
9225 | |
9226 # Test if we are trying to use run time linking or normal | |
9227 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9228 # need to do runtime linking. | |
9229 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9230 for ld_flag in $LDFLAGS; do | |
9231 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9232 aix_use_runtimelinking=yes | |
9233 break | |
9234 fi | |
9235 done | |
9236 ;; | |
9237 esac | |
9238 | |
9239 exp_sym_flag='-bexport' | |
9240 no_entry_flag='-bnoentry' | |
9241 fi | |
9242 | |
9243 # When large executables or shared objects are built, AIX ld can | |
9244 # have problems creating the table of contents. If linking a library | |
9245 # or program results in "error TOC overflow" add -mminimal-toc to | |
9246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9248 | |
9249 archive_cmds='' | |
9250 hardcode_direct=yes | |
9251 hardcode_direct_absolute=yes | |
9252 hardcode_libdir_separator=':' | |
9253 link_all_deplibs=yes | |
9254 file_list_spec='${wl}-f,' | |
9255 | |
9256 if test "$GCC" = yes; then | |
9257 case $host_os in aix4.[012]|aix4.[012].*) | |
9258 # We only want to do this on AIX 4.2 and lower, the check | |
9259 # below for broken collect2 doesn't work under 4.3+ | |
9260 collect2name=`${CC} -print-prog-name=collect2` | |
9261 if test -f "$collect2name" && | |
9262 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9263 then | |
9264 # We have reworked collect2 | |
9265 : | |
9266 else | |
9267 # We have old collect2 | |
9268 hardcode_direct=unsupported | |
9269 # It fails to find uninstalled libraries when the uninstalled | |
9270 # path is not listed in the libpath. Setting hardcode_minus_L | |
9271 # to unsupported forces relinking | |
9272 hardcode_minus_L=yes | |
9273 hardcode_libdir_flag_spec='-L$libdir' | |
9274 hardcode_libdir_separator= | |
9275 fi | |
9276 ;; | |
9277 esac | |
9278 shared_flag='-shared' | |
9279 if test "$aix_use_runtimelinking" = yes; then | |
9280 shared_flag="$shared_flag "'${wl}-G' | |
9281 fi | |
9282 link_all_deplibs=no | |
9283 else | |
9284 # not using gcc | |
9285 if test "$host_cpu" = ia64; then | |
9286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9287 # chokes on -Wl,-G. The following line is correct: | |
9288 shared_flag='-G' | |
9289 else | |
9290 if test "$aix_use_runtimelinking" = yes; then | |
9291 shared_flag='${wl}-G' | |
9292 else | |
9293 shared_flag='${wl}-bM:SRE' | |
9294 fi | |
9295 fi | |
9296 fi | |
9297 | |
9298 export_dynamic_flag_spec='${wl}-bexpall' | |
9299 # It seems that -bexpall does not export symbols beginning with | |
9300 # underscore (_), so it is better to generate a list of symbols to export. | |
9301 always_export_symbols=yes | |
9302 if test "$aix_use_runtimelinking" = yes; then | |
9303 # Warning - without using the other runtime loading flags (-brtl), | |
9304 # -berok will link without error, but may produce a broken library. | |
9305 allow_undefined_flag='-berok' | |
9306 # Determine the default libpath from the value encoded in an | |
9307 # empty executable. | |
9308 if test "${lt_cv_aix_libpath+set}" = set; then | |
9309 aix_libpath=$lt_cv_aix_libpath | |
9310 else | |
9311 if ${lt_cv_aix_libpath_+:} false; then : | |
9312 $as_echo_n "(cached) " >&6 | |
9313 else | |
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9315 /* end confdefs.h. */ | |
9316 | |
9317 int | |
9318 main () | |
9319 { | |
9320 | |
9321 ; | |
9322 return 0; | |
9323 } | |
9324 _ACEOF | |
9325 if ac_fn_c_try_link "$LINENO"; then : | |
9326 | |
9327 lt_aix_libpath_sed=' | |
9328 /Import File Strings/,/^$/ { | |
9329 /^0/ { | |
9330 s/^0 *\([^ ]*\) *$/\1/ | |
9331 p | |
9332 } | |
9333 }' | |
9334 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9335 # Check for a 64-bit object if we didn't find anything. | |
9336 if test -z "$lt_cv_aix_libpath_"; then | |
9337 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9338 fi | |
9339 fi | |
9340 rm -f core conftest.err conftest.$ac_objext \ | |
9341 conftest$ac_exeext conftest.$ac_ext | |
9342 if test -z "$lt_cv_aix_libpath_"; then | |
9343 lt_cv_aix_libpath_="/usr/lib:/lib" | |
9344 fi | |
9345 | |
9346 fi | |
9347 | |
9348 aix_libpath=$lt_cv_aix_libpath_ | |
9349 fi | |
9350 | |
9351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9352 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" | |
9353 else | |
9354 if test "$host_cpu" = ia64; then | |
9355 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9356 allow_undefined_flag="-z nodefs" | |
9357 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" | |
9358 else | |
9359 # Determine the default libpath from the value encoded in an | |
9360 # empty executable. | |
9361 if test "${lt_cv_aix_libpath+set}" = set; then | |
9362 aix_libpath=$lt_cv_aix_libpath | |
9363 else | |
9364 if ${lt_cv_aix_libpath_+:} false; then : | |
9365 $as_echo_n "(cached) " >&6 | |
9366 else | |
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9368 /* end confdefs.h. */ | |
9369 | |
9370 int | |
9371 main () | |
9372 { | |
9373 | |
9374 ; | |
9375 return 0; | |
9376 } | |
9377 _ACEOF | |
9378 if ac_fn_c_try_link "$LINENO"; then : | |
9379 | |
9380 lt_aix_libpath_sed=' | |
9381 /Import File Strings/,/^$/ { | |
9382 /^0/ { | |
9383 s/^0 *\([^ ]*\) *$/\1/ | |
9384 p | |
9385 } | |
9386 }' | |
9387 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9388 # Check for a 64-bit object if we didn't find anything. | |
9389 if test -z "$lt_cv_aix_libpath_"; then | |
9390 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9391 fi | |
9392 fi | |
9393 rm -f core conftest.err conftest.$ac_objext \ | |
9394 conftest$ac_exeext conftest.$ac_ext | |
9395 if test -z "$lt_cv_aix_libpath_"; then | |
9396 lt_cv_aix_libpath_="/usr/lib:/lib" | |
9397 fi | |
9398 | |
9399 fi | |
9400 | |
9401 aix_libpath=$lt_cv_aix_libpath_ | |
9402 fi | |
9403 | |
9404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9405 # Warning - without using the other run time loading flags, | |
9406 # -berok will link without error, but may produce a broken library. | |
9407 no_undefined_flag=' ${wl}-bernotok' | |
9408 allow_undefined_flag=' ${wl}-berok' | |
9409 if test "$with_gnu_ld" = yes; then | |
9410 # We only use this code for GNU lds that support --whole-archive. | |
9411 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9412 else | |
9413 # Exported symbols can be pulled into shared objects from archives | |
9414 whole_archive_flag_spec='$convenience' | |
9415 fi | |
9416 archive_cmds_need_lc=yes | |
9417 # This is similar to how AIX traditionally builds its shared libraries. | |
9418 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' | |
9419 fi | |
9420 fi | |
9421 ;; | |
9422 | |
9423 amigaos*) | |
9424 case $host_cpu in | |
9425 powerpc) | |
9426 # see comment about AmigaOS4 .so support | |
9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9428 archive_expsym_cmds='' | |
9429 ;; | |
9430 m68k) | |
9431 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)' | |
9432 hardcode_libdir_flag_spec='-L$libdir' | |
9433 hardcode_minus_L=yes | |
9434 ;; | |
9435 esac | |
9436 ;; | |
9437 | |
9438 bsdi[45]*) | |
9439 export_dynamic_flag_spec=-rdynamic | |
9440 ;; | |
9441 | |
9442 cygwin* | mingw* | pw32* | cegcc*) | |
9443 # When not using gcc, we currently assume that we are using | |
9444 # Microsoft Visual C++. | |
9445 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9446 # no search path for DLLs. | |
9447 case $cc_basename in | |
9448 cl*) | |
9449 # Native MSVC | |
9450 hardcode_libdir_flag_spec=' ' | |
9451 allow_undefined_flag=unsupported | |
9452 always_export_symbols=yes | |
9453 file_list_spec='@' | |
9454 # Tell ltmain to make .lib files, not .a files. | |
9455 libext=lib | |
9456 # Tell ltmain to make .dll files, not .so files. | |
9457 shrext_cmds=".dll" | |
9458 # FIXME: Setting linknames here is a bad hack. | |
9459 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9460 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9461 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9462 else | |
9463 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9464 fi~ | |
9465 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9466 linknames=' | |
9467 # The linker will not automatically build a static lib if we build a DLL. | |
9468 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9469 enable_shared_with_static_runtimes=yes | |
9470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9471 # Don't use ranlib | |
9472 old_postinstall_cmds='chmod 644 $oldlib' | |
9473 postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9474 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9475 case $lt_outputfile in | |
9476 *.exe|*.EXE) ;; | |
9477 *) | |
9478 lt_outputfile="$lt_outputfile.exe" | |
9479 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9480 ;; | |
9481 esac~ | |
9482 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9483 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9484 $RM "$lt_outputfile.manifest"; | |
9485 fi' | |
9486 ;; | |
9487 *) | |
9488 # Assume MSVC wrapper | |
9489 hardcode_libdir_flag_spec=' ' | |
9490 allow_undefined_flag=unsupported | |
9491 # Tell ltmain to make .lib files, not .a files. | |
9492 libext=lib | |
9493 # Tell ltmain to make .dll files, not .so files. | |
9494 shrext_cmds=".dll" | |
9495 # FIXME: Setting linknames here is a bad hack. | |
9496 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9497 # The linker will automatically build a .lib file if we build a DLL. | |
9498 old_archive_from_new_cmds='true' | |
9499 # FIXME: Should let the user specify the lib program. | |
9500 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9501 enable_shared_with_static_runtimes=yes | |
9502 ;; | |
9503 esac | |
9504 ;; | |
9505 | |
9506 darwin* | rhapsody*) | |
9507 | |
9508 | |
9509 archive_cmds_need_lc=no | |
9510 hardcode_direct=no | |
9511 hardcode_automatic=yes | |
9512 hardcode_shlibpath_var=unsupported | |
9513 if test "$lt_cv_ld_force_load" = "yes"; then | |
9514 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\"`' | |
9515 else | |
9516 whole_archive_flag_spec='' | |
9517 fi | |
9518 link_all_deplibs=yes | |
9519 allow_undefined_flag="$_lt_dar_allow_undefined" | |
9520 case $cc_basename in | |
9521 ifort*) _lt_dar_can_shared=yes ;; | |
9522 *) _lt_dar_can_shared=$GCC ;; | |
9523 esac | |
9524 if test "$_lt_dar_can_shared" = "yes"; then | |
9525 output_verbose_link_cmd=func_echo_all | |
9526 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9527 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9528 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}" | |
9529 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}" | |
9530 | |
9531 else | |
9532 ld_shlibs=no | |
9533 fi | |
9534 | |
9535 ;; | |
9536 | |
9537 dgux*) | |
9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9539 hardcode_libdir_flag_spec='-L$libdir' | |
9540 hardcode_shlibpath_var=no | |
9541 ;; | |
9542 | |
9543 freebsd1*) | |
9544 ld_shlibs=no | |
9545 ;; | |
9546 | |
9547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9548 # support. Future versions do this automatically, but an explicit c++rt0.o | |
9549 # does not break anything, and helps significantly (at the cost of a little | |
9550 # extra space). | |
9551 freebsd2.2*) | |
9552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9553 hardcode_libdir_flag_spec='-R$libdir' | |
9554 hardcode_direct=yes | |
9555 hardcode_shlibpath_var=no | |
9556 ;; | |
9557 | |
9558 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9559 freebsd2*) | |
9560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9561 hardcode_direct=yes | |
9562 hardcode_minus_L=yes | |
9563 hardcode_shlibpath_var=no | |
9564 ;; | |
9565 | |
9566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9567 freebsd* | dragonfly*) | |
9568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9569 hardcode_libdir_flag_spec='-R$libdir' | |
9570 hardcode_direct=yes | |
9571 hardcode_shlibpath_var=no | |
9572 ;; | |
9573 | |
9574 hpux9*) | |
9575 if test "$GCC" = yes; then | |
9576 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' | |
9577 else | |
9578 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' | |
9579 fi | |
9580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9581 hardcode_libdir_separator=: | |
9582 hardcode_direct=yes | |
9583 | |
9584 # hardcode_minus_L: Not really in the search PATH, | |
9585 # but as the default location of the library. | |
9586 hardcode_minus_L=yes | |
9587 export_dynamic_flag_spec='${wl}-E' | |
9588 ;; | |
9589 | |
9590 hpux10*) | |
9591 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9592 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9593 else | |
9594 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9595 fi | |
9596 if test "$with_gnu_ld" = no; then | |
9597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9598 hardcode_libdir_flag_spec_ld='+b $libdir' | |
9599 hardcode_libdir_separator=: | |
9600 hardcode_direct=yes | |
9601 hardcode_direct_absolute=yes | |
9602 export_dynamic_flag_spec='${wl}-E' | |
9603 # hardcode_minus_L: Not really in the search PATH, | |
9604 # but as the default location of the library. | |
9605 hardcode_minus_L=yes | |
9606 fi | |
9607 ;; | |
9608 | |
9609 hpux11*) | |
9610 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9611 case $host_cpu in | |
9612 hppa*64*) | |
9613 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9614 ;; | |
9615 ia64*) | |
9616 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9617 ;; | |
9618 *) | |
9619 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9620 ;; | |
9621 esac | |
9622 else | |
9623 case $host_cpu in | |
9624 hppa*64*) | |
9625 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9626 ;; | |
9627 ia64*) | |
9628 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9629 ;; | |
9630 *) | |
9631 | |
9632 # Older versions of the 11.00 compiler do not understand -b yet | |
9633 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9635 $as_echo_n "checking if $CC understands -b... " >&6; } | |
9636 if ${lt_cv_prog_compiler__b+:} false; then : | |
9637 $as_echo_n "(cached) " >&6 | |
9638 else | |
9639 lt_cv_prog_compiler__b=no | |
9640 save_LDFLAGS="$LDFLAGS" | |
9641 LDFLAGS="$LDFLAGS -b" | |
9642 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9644 # The linker can only warn and ignore the option if not recognized | |
9645 # So say no if there are warnings | |
9646 if test -s conftest.err; then | |
9647 # Append any errors to the config.log. | |
9648 cat conftest.err 1>&5 | |
9649 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9651 if diff conftest.exp conftest.er2 >/dev/null; then | |
9652 lt_cv_prog_compiler__b=yes | |
9653 fi | |
9654 else | |
9655 lt_cv_prog_compiler__b=yes | |
9656 fi | |
9657 fi | |
9658 $RM -r conftest* | |
9659 LDFLAGS="$save_LDFLAGS" | |
9660 | |
9661 fi | |
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9663 $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9664 | |
9665 if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9666 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9667 else | |
9668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9669 fi | |
9670 | |
9671 ;; | |
9672 esac | |
9673 fi | |
9674 if test "$with_gnu_ld" = no; then | |
9675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9676 hardcode_libdir_separator=: | |
9677 | |
9678 case $host_cpu in | |
9679 hppa*64*|ia64*) | |
9680 hardcode_direct=no | |
9681 hardcode_shlibpath_var=no | |
9682 ;; | |
9683 *) | |
9684 hardcode_direct=yes | |
9685 hardcode_direct_absolute=yes | |
9686 export_dynamic_flag_spec='${wl}-E' | |
9687 | |
9688 # hardcode_minus_L: Not really in the search PATH, | |
9689 # but as the default location of the library. | |
9690 hardcode_minus_L=yes | |
9691 ;; | |
9692 esac | |
9693 fi | |
9694 ;; | |
9695 | |
9696 irix5* | irix6* | nonstopux*) | |
9697 if test "$GCC" = yes; then | |
9698 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' | |
9699 # Try to use the -exported_symbol ld option, if it does not | |
9700 # work, assume that -exports_file does not work either and | |
9701 # implicitly export all symbols. | |
9702 # This should be the same for all languages, so no per-tag cache variable. | |
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9704 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9705 if ${lt_cv_irix_exported_symbol+:} false; then : | |
9706 $as_echo_n "(cached) " >&6 | |
9707 else | |
9708 save_LDFLAGS="$LDFLAGS" | |
9709 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9711 /* end confdefs.h. */ | |
9712 int foo (void) { return 0; } | |
9713 _ACEOF | |
9714 if ac_fn_c_try_link "$LINENO"; then : | |
9715 lt_cv_irix_exported_symbol=yes | |
9716 else | |
9717 lt_cv_irix_exported_symbol=no | |
9718 fi | |
9719 rm -f core conftest.err conftest.$ac_objext \ | |
9720 conftest$ac_exeext conftest.$ac_ext | |
9721 LDFLAGS="$save_LDFLAGS" | |
9722 fi | |
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9724 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9725 if test "$lt_cv_irix_exported_symbol" = yes; then | |
9726 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' | |
9727 fi | |
9728 else | |
9729 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' | |
9730 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' | |
9731 fi | |
9732 archive_cmds_need_lc='no' | |
9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9734 hardcode_libdir_separator=: | |
9735 inherit_rpath=yes | |
9736 link_all_deplibs=yes | |
9737 ;; | |
9738 | |
9739 netbsd* | netbsdelf*-gnu) | |
9740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9742 else | |
9743 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9744 fi | |
9745 hardcode_libdir_flag_spec='-R$libdir' | |
9746 hardcode_direct=yes | |
9747 hardcode_shlibpath_var=no | |
9748 ;; | |
9749 | |
9750 newsos6) | |
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9752 hardcode_direct=yes | |
9753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9754 hardcode_libdir_separator=: | |
9755 hardcode_shlibpath_var=no | |
9756 ;; | |
9757 | |
9758 *nto* | *qnx*) | |
9759 ;; | |
9760 | |
9761 openbsd*) | |
9762 if test -f /usr/libexec/ld.so; then | |
9763 hardcode_direct=yes | |
9764 hardcode_shlibpath_var=no | |
9765 hardcode_direct_absolute=yes | |
9766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9768 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9770 export_dynamic_flag_spec='${wl}-E' | |
9771 else | |
9772 case $host_os in | |
9773 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9775 hardcode_libdir_flag_spec='-R$libdir' | |
9776 ;; | |
9777 *) | |
9778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9780 ;; | |
9781 esac | |
9782 fi | |
9783 else | |
9784 ld_shlibs=no | |
9785 fi | |
9786 ;; | |
9787 | |
9788 os2*) | |
9789 hardcode_libdir_flag_spec='-L$libdir' | |
9790 hardcode_minus_L=yes | |
9791 allow_undefined_flag=unsupported | |
9792 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' | |
9793 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9794 ;; | |
9795 | |
9796 osf3*) | |
9797 if test "$GCC" = yes; then | |
9798 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9799 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' | |
9800 else | |
9801 allow_undefined_flag=' -expect_unresolved \*' | |
9802 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' | |
9803 fi | |
9804 archive_cmds_need_lc='no' | |
9805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9806 hardcode_libdir_separator=: | |
9807 ;; | |
9808 | |
9809 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9810 if test "$GCC" = yes; then | |
9811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9812 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' | |
9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9814 else | |
9815 allow_undefined_flag=' -expect_unresolved \*' | |
9816 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' | |
9817 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~ | |
9818 $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' | |
9819 | |
9820 # Both c and cxx compiler support -rpath directly | |
9821 hardcode_libdir_flag_spec='-rpath $libdir' | |
9822 fi | |
9823 archive_cmds_need_lc='no' | |
9824 hardcode_libdir_separator=: | |
9825 ;; | |
9826 | |
9827 solaris*) | |
9828 no_undefined_flag=' -z defs' | |
9829 if test "$GCC" = yes; then | |
9830 wlarc='${wl}' | |
9831 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9833 $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' | |
9834 else | |
9835 case `$CC -V 2>&1` in | |
9836 *"Compilers 5.0"*) | |
9837 wlarc='' | |
9838 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9840 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9841 ;; | |
9842 *) | |
9843 wlarc='${wl}' | |
9844 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9846 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9847 ;; | |
9848 esac | |
9849 fi | |
9850 hardcode_libdir_flag_spec='-R$libdir' | |
9851 hardcode_shlibpath_var=no | |
9852 case $host_os in | |
9853 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9854 *) | |
9855 # The compiler driver will combine and reorder linker options, | |
9856 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9857 # but is careful enough not to reorder. | |
9858 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9859 if test "$GCC" = yes; then | |
9860 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9861 else | |
9862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9863 fi | |
9864 ;; | |
9865 esac | |
9866 link_all_deplibs=yes | |
9867 ;; | |
9868 | |
9869 sunos4*) | |
9870 if test "x$host_vendor" = xsequent; then | |
9871 # Use $CC to link under sequent, because it throws in some extra .o | |
9872 # files that make .init and .fini sections work. | |
9873 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9874 else | |
9875 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9876 fi | |
9877 hardcode_libdir_flag_spec='-L$libdir' | |
9878 hardcode_direct=yes | |
9879 hardcode_minus_L=yes | |
9880 hardcode_shlibpath_var=no | |
9881 ;; | |
9882 | |
9883 sysv4) | |
9884 case $host_vendor in | |
9885 sni) | |
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9887 hardcode_direct=yes # is this really true??? | |
9888 ;; | |
9889 siemens) | |
9890 ## LD is ld it makes a PLAMLIB | |
9891 ## CC just makes a GrossModule. | |
9892 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9893 reload_cmds='$CC -r -o $output$reload_objs' | |
9894 hardcode_direct=no | |
9895 ;; | |
9896 motorola) | |
9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9898 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9899 ;; | |
9900 esac | |
9901 runpath_var='LD_RUN_PATH' | |
9902 hardcode_shlibpath_var=no | |
9903 ;; | |
9904 | |
9905 sysv4.3*) | |
9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9907 hardcode_shlibpath_var=no | |
9908 export_dynamic_flag_spec='-Bexport' | |
9909 ;; | |
9910 | |
9911 sysv4*MP*) | |
9912 if test -d /usr/nec; then | |
9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9914 hardcode_shlibpath_var=no | |
9915 runpath_var=LD_RUN_PATH | |
9916 hardcode_runpath_var=yes | |
9917 ld_shlibs=yes | |
9918 fi | |
9919 ;; | |
9920 | |
9921 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9922 no_undefined_flag='${wl}-z,text' | |
9923 archive_cmds_need_lc=no | |
9924 hardcode_shlibpath_var=no | |
9925 runpath_var='LD_RUN_PATH' | |
9926 | |
9927 if test "$GCC" = yes; then | |
9928 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9929 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9930 else | |
9931 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9932 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9933 fi | |
9934 ;; | |
9935 | |
9936 sysv5* | sco3.2v5* | sco5v6*) | |
9937 # Note: We can NOT use -z defs as we might desire, because we do not | |
9938 # link with -lc, and that would cause any symbols used from libc to | |
9939 # always be unresolved, which means just about no library would | |
9940 # ever link correctly. If we're not using GNU ld we use -z text | |
9941 # though, which does catch some bad symbols but isn't as heavy-handed | |
9942 # as -z defs. | |
9943 no_undefined_flag='${wl}-z,text' | |
9944 allow_undefined_flag='${wl}-z,nodefs' | |
9945 archive_cmds_need_lc=no | |
9946 hardcode_shlibpath_var=no | |
9947 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9948 hardcode_libdir_separator=':' | |
9949 link_all_deplibs=yes | |
9950 export_dynamic_flag_spec='${wl}-Bexport' | |
9951 runpath_var='LD_RUN_PATH' | |
9952 | |
9953 if test "$GCC" = yes; then | |
9954 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9955 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9956 else | |
9957 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9958 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9959 fi | |
9960 ;; | |
9961 | |
9962 uts4*) | |
9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9964 hardcode_libdir_flag_spec='-L$libdir' | |
9965 hardcode_shlibpath_var=no | |
9966 ;; | |
9967 | |
9968 *) | |
9969 ld_shlibs=no | |
9970 ;; | |
9971 esac | |
9972 | |
9973 if test x$host_vendor = xsni; then | |
9974 case $host in | |
9975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9976 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9977 ;; | |
9978 esac | |
9979 fi | |
9980 fi | |
9981 | |
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
9983 $as_echo "$ld_shlibs" >&6; } | |
9984 test "$ld_shlibs" = no && can_build_shared=no | |
9985 | |
9986 with_gnu_ld=$with_gnu_ld | |
9987 | |
9988 | |
9989 | |
9990 | |
9991 | |
9992 | |
9993 | |
9994 | |
9995 | |
9996 | |
9997 | |
9998 | |
9999 | |
10000 | |
10001 | |
10002 # | |
10003 # Do we need to explicitly link libc? | |
10004 # | |
10005 case "x$archive_cmds_need_lc" in | |
10006 x|xyes) | |
10007 # Assume -lc should be added | |
10008 archive_cmds_need_lc=yes | |
10009 | |
10010 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10011 case $archive_cmds in | |
10012 *'~'*) | |
10013 # FIXME: we may have to deal with multi-command sequences. | |
10014 ;; | |
10015 '$CC '*) | |
10016 # Test whether the compiler implicitly links with -lc since on some | |
10017 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10018 # to ld, don't add -lc before -lgcc. | |
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10020 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10021 if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10022 $as_echo_n "(cached) " >&6 | |
10023 else | |
10024 $RM conftest* | |
10025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10026 | |
10027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10028 (eval $ac_compile) 2>&5 | |
10029 ac_status=$? | |
10030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10031 test $ac_status = 0; } 2>conftest.err; then | |
10032 soname=conftest | |
10033 lib=conftest | |
10034 libobjs=conftest.$ac_objext | |
10035 deplibs= | |
10036 wl=$lt_prog_compiler_wl | |
10037 pic_flag=$lt_prog_compiler_pic | |
10038 compiler_flags=-v | |
10039 linker_flags=-v | |
10040 verstring= | |
10041 output_objdir=. | |
10042 libname=conftest | |
10043 lt_save_allow_undefined_flag=$allow_undefined_flag | |
10044 allow_undefined_flag= | |
10045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10046 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10047 ac_status=$? | |
10048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10049 test $ac_status = 0; } | |
10050 then | |
10051 lt_cv_archive_cmds_need_lc=no | |
10052 else | |
10053 lt_cv_archive_cmds_need_lc=yes | |
10054 fi | |
10055 allow_undefined_flag=$lt_save_allow_undefined_flag | |
10056 else | |
10057 cat conftest.err 1>&5 | |
10058 fi | |
10059 $RM conftest* | |
10060 | |
10061 fi | |
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10063 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10064 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10065 ;; | |
10066 esac | |
10067 fi | |
10068 ;; | |
10069 esac | |
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 | |
10127 | |
10128 | |
10129 | |
10130 | |
10131 | |
10132 | |
10133 | |
10134 | |
10135 | |
10136 | |
10137 | |
10138 | |
10139 | |
10140 | |
10141 | |
10142 | |
10143 | |
10144 | |
10145 | |
10146 | |
10147 | |
10148 | |
10149 | |
10150 | |
10151 | |
10152 | |
10153 | |
10154 | |
10155 | |
10156 | |
10157 | |
10158 | |
10159 | |
10160 | |
10161 | |
10162 | |
10163 | |
10164 | |
10165 | |
10166 | |
10167 | |
10168 | |
10169 | |
10170 | |
10171 | |
10172 | |
10173 | |
10174 | |
10175 | |
10176 | |
10177 | |
10178 | |
10179 | |
10180 | |
10181 | |
10182 | |
10183 | |
10184 | |
10185 | |
10186 | |
10187 | |
10188 | |
10189 | |
10190 | |
10191 | |
10192 | |
10193 | |
10194 | |
10195 | |
10196 | |
10197 | |
10198 | |
10199 | |
10200 | |
10201 | |
10202 | |
10203 | |
10204 | |
10205 | |
10206 | |
10207 | |
10208 | |
10209 | |
10210 | |
10211 | |
10212 | |
10213 | |
10214 | |
10215 | |
10216 | |
10217 | |
10218 | |
10219 | |
10220 | |
10221 | |
10222 | |
10223 | |
10224 | |
10225 | |
10226 | |
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10228 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10229 | |
10230 if test "$GCC" = yes; then | |
10231 case $host_os in | |
10232 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10233 *) lt_awk_arg="/^libraries:/" ;; | |
10234 esac | |
10235 case $host_os in | |
10236 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10237 *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10238 esac | |
10239 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10240 case $lt_search_path_spec in | |
10241 *\;*) | |
10242 # if the path contains ";" then we assume it to be the separator | |
10243 # otherwise default to the standard path separator (i.e. ":") - it is | |
10244 # assumed that no part of a normal pathname contains ";" but that should | |
10245 # okay in the real world where ";" in dirpaths is itself problematic. | |
10246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10247 ;; | |
10248 *) | |
10249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10250 ;; | |
10251 esac | |
10252 # Ok, now we have the path, separated by spaces, we can step through it | |
10253 # and add multilib dir if necessary. | |
10254 lt_tmp_lt_search_path_spec= | |
10255 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10256 for lt_sys_path in $lt_search_path_spec; do | |
10257 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10259 else | |
10260 test -d "$lt_sys_path" && \ | |
10261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10262 fi | |
10263 done | |
10264 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10265 BEGIN {RS=" "; FS="/|\n";} { | |
10266 lt_foo=""; | |
10267 lt_count=0; | |
10268 for (lt_i = NF; lt_i > 0; lt_i--) { | |
10269 if ($lt_i != "" && $lt_i != ".") { | |
10270 if ($lt_i == "..") { | |
10271 lt_count++; | |
10272 } else { | |
10273 if (lt_count == 0) { | |
10274 lt_foo="/" $lt_i lt_foo; | |
10275 } else { | |
10276 lt_count--; | |
10277 } | |
10278 } | |
10279 } | |
10280 } | |
10281 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10282 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10283 }'` | |
10284 # AWK program above erroneously prepends '/' to C:/dos/paths | |
10285 # for these hosts. | |
10286 case $host_os in | |
10287 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10288 $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10289 esac | |
10290 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10291 else | |
10292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10293 fi | |
10294 library_names_spec= | |
10295 libname_spec='lib$name' | |
10296 soname_spec= | |
10297 shrext_cmds=".so" | |
10298 postinstall_cmds= | |
10299 postuninstall_cmds= | |
10300 finish_cmds= | |
10301 finish_eval= | |
10302 shlibpath_var= | |
10303 shlibpath_overrides_runpath=unknown | |
10304 version_type=none | |
10305 dynamic_linker="$host_os ld.so" | |
10306 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10307 need_lib_prefix=unknown | |
10308 hardcode_into_libs=no | |
10309 | |
10310 # when you set need_version to no, make sure it does not cause -set_version | |
10311 # flags to be left without arguments | |
10312 need_version=unknown | |
10313 | |
10314 case $host_os in | |
10315 aix3*) | |
10316 version_type=linux | |
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10318 shlibpath_var=LIBPATH | |
10319 | |
10320 # AIX 3 has no versioning support, so we append a major version to the name. | |
10321 soname_spec='${libname}${release}${shared_ext}$major' | |
10322 ;; | |
10323 | |
10324 aix[4-9]*) | |
10325 version_type=linux | |
10326 need_lib_prefix=no | |
10327 need_version=no | |
10328 hardcode_into_libs=yes | |
10329 if test "$host_cpu" = ia64; then | |
10330 # AIX 5 supports IA64 | |
10331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10332 shlibpath_var=LD_LIBRARY_PATH | |
10333 else | |
10334 # With GCC up to 2.95.x, collect2 would create an import file | |
10335 # for dependence libraries. The import file would start with | |
10336 # the line `#! .'. This would cause the generated library to | |
10337 # depend on `.', always an invalid library. This was fixed in | |
10338 # development snapshots of GCC prior to 3.0. | |
10339 case $host_os in | |
10340 aix4 | aix4.[01] | aix4.[01].*) | |
10341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10342 echo ' yes ' | |
10343 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10344 : | |
10345 else | |
10346 can_build_shared=no | |
10347 fi | |
10348 ;; | |
10349 esac | |
10350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10351 # soname into executable. Probably we can add versioning support to | |
10352 # collect2, so additional links can be useful in future. | |
10353 if test "$aix_use_runtimelinking" = yes; then | |
10354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10355 # instead of lib<name>.a to let people know that these are not | |
10356 # typical AIX shared libraries. | |
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10358 else | |
10359 # We preserve .a as extension for shared libraries through AIX4.2 | |
10360 # and later when we are not doing run time linking. | |
10361 library_names_spec='${libname}${release}.a $libname.a' | |
10362 soname_spec='${libname}${release}${shared_ext}$major' | |
10363 fi | |
10364 shlibpath_var=LIBPATH | |
10365 fi | |
10366 ;; | |
10367 | |
10368 amigaos*) | |
10369 case $host_cpu in | |
10370 powerpc) | |
10371 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10372 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10374 ;; | |
10375 m68k) | |
10376 library_names_spec='$libname.ixlibrary $libname.a' | |
10377 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10378 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' | |
10379 ;; | |
10380 esac | |
10381 ;; | |
10382 | |
10383 beos*) | |
10384 library_names_spec='${libname}${shared_ext}' | |
10385 dynamic_linker="$host_os ld.so" | |
10386 shlibpath_var=LIBRARY_PATH | |
10387 ;; | |
10388 | |
10389 bsdi[45]*) | |
10390 version_type=linux | |
10391 need_version=no | |
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10393 soname_spec='${libname}${release}${shared_ext}$major' | |
10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10395 shlibpath_var=LD_LIBRARY_PATH | |
10396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10398 # the default ld.so.conf also contains /usr/contrib/lib and | |
10399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10400 # libtool to hard-code these into programs | |
10401 ;; | |
10402 | |
10403 cygwin* | mingw* | pw32* | cegcc*) | |
10404 version_type=windows | |
10405 shrext_cmds=".dll" | |
10406 need_version=no | |
10407 need_lib_prefix=no | |
10408 | |
10409 case $GCC,$cc_basename in | |
10410 yes,*) | |
10411 # gcc | |
10412 library_names_spec='$libname.dll.a' | |
10413 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10414 postinstall_cmds='base_file=`basename \${file}`~ | |
10415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10416 dldir=$destdir/`dirname \$dlpath`~ | |
10417 test -d \$dldir || mkdir -p \$dldir~ | |
10418 $install_prog $dir/$dlname \$dldir/$dlname~ | |
10419 chmod a+x \$dldir/$dlname~ | |
10420 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10421 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10422 fi' | |
10423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10424 dlpath=$dir/\$dldll~ | |
10425 $RM \$dlpath' | |
10426 shlibpath_overrides_runpath=yes | |
10427 | |
10428 case $host_os in | |
10429 cygwin*) | |
10430 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10431 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10432 | |
10433 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10434 ;; | |
10435 mingw* | cegcc*) | |
10436 # MinGW DLLs use traditional 'lib' prefix | |
10437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10438 ;; | |
10439 pw32*) | |
10440 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10441 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10442 ;; | |
10443 esac | |
10444 dynamic_linker='Win32 ld.exe' | |
10445 ;; | |
10446 | |
10447 *,cl*) | |
10448 # Native MSVC | |
10449 libname_spec='$name' | |
10450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10451 library_names_spec='${libname}.dll.lib' | |
10452 | |
10453 case $build_os in | |
10454 mingw*) | |
10455 sys_lib_search_path_spec= | |
10456 lt_save_ifs=$IFS | |
10457 IFS=';' | |
10458 for lt_path in $LIB | |
10459 do | |
10460 IFS=$lt_save_ifs | |
10461 # Let DOS variable expansion print the short 8.3 style file name. | |
10462 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10463 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10464 done | |
10465 IFS=$lt_save_ifs | |
10466 # Convert to MSYS style. | |
10467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10468 ;; | |
10469 cygwin*) | |
10470 # Convert to unix form, then to dos form, then back to unix form | |
10471 # but this time dos style (no spaces!) so that the unix form looks | |
10472 # like /cygdrive/c/PROGRA~1:/cygdr... | |
10473 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10474 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10475 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10476 ;; | |
10477 *) | |
10478 sys_lib_search_path_spec="$LIB" | |
10479 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10480 # It is most probably a Windows format PATH. | |
10481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10482 else | |
10483 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10484 fi | |
10485 # FIXME: find the short name or the path components, as spaces are | |
10486 # common. (e.g. "Program Files" -> "PROGRA~1") | |
10487 ;; | |
10488 esac | |
10489 | |
10490 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10491 postinstall_cmds='base_file=`basename \${file}`~ | |
10492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10493 dldir=$destdir/`dirname \$dlpath`~ | |
10494 test -d \$dldir || mkdir -p \$dldir~ | |
10495 $install_prog $dir/$dlname \$dldir/$dlname' | |
10496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10497 dlpath=$dir/\$dldll~ | |
10498 $RM \$dlpath' | |
10499 shlibpath_overrides_runpath=yes | |
10500 dynamic_linker='Win32 link.exe' | |
10501 ;; | |
10502 | |
10503 *) | |
10504 # Assume MSVC wrapper | |
10505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10506 dynamic_linker='Win32 ld.exe' | |
10507 ;; | |
10508 esac | |
10509 # FIXME: first we should search . and the directory the executable is in | |
10510 shlibpath_var=PATH | |
10511 ;; | |
10512 | |
10513 darwin* | rhapsody*) | |
10514 dynamic_linker="$host_os dyld" | |
10515 version_type=darwin | |
10516 need_lib_prefix=no | |
10517 need_version=no | |
10518 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10519 soname_spec='${libname}${release}${major}$shared_ext' | |
10520 shlibpath_overrides_runpath=yes | |
10521 shlibpath_var=DYLD_LIBRARY_PATH | |
10522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10523 | |
10524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10526 ;; | |
10527 | |
10528 dgux*) | |
10529 version_type=linux | |
10530 need_lib_prefix=no | |
10531 need_version=no | |
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10533 soname_spec='${libname}${release}${shared_ext}$major' | |
10534 shlibpath_var=LD_LIBRARY_PATH | |
10535 ;; | |
10536 | |
10537 freebsd1*) | |
10538 dynamic_linker=no | |
10539 ;; | |
10540 | |
10541 freebsd* | dragonfly*) | |
10542 # DragonFly does not have aout. When/if they implement a new | |
10543 # versioning mechanism, adjust this. | |
10544 if test -x /usr/bin/objformat; then | |
10545 objformat=`/usr/bin/objformat` | |
10546 else | |
10547 case $host_os in | |
10548 freebsd[123]*) objformat=aout ;; | |
10549 *) objformat=elf ;; | |
10550 esac | |
10551 fi | |
10552 version_type=freebsd-$objformat | |
10553 case $version_type in | |
10554 freebsd-elf*) | |
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10556 need_version=no | |
10557 need_lib_prefix=no | |
10558 ;; | |
10559 freebsd-*) | |
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10561 need_version=yes | |
10562 ;; | |
10563 esac | |
10564 shlibpath_var=LD_LIBRARY_PATH | |
10565 case $host_os in | |
10566 freebsd2*) | |
10567 shlibpath_overrides_runpath=yes | |
10568 ;; | |
10569 freebsd3.[01]* | freebsdelf3.[01]*) | |
10570 shlibpath_overrides_runpath=yes | |
10571 hardcode_into_libs=yes | |
10572 ;; | |
10573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10575 shlibpath_overrides_runpath=no | |
10576 hardcode_into_libs=yes | |
10577 ;; | |
10578 *) # from 4.6 on, and DragonFly | |
10579 shlibpath_overrides_runpath=yes | |
10580 hardcode_into_libs=yes | |
10581 ;; | |
10582 esac | |
10583 ;; | |
10584 | |
10585 gnu*) | |
10586 version_type=linux | |
10587 need_lib_prefix=no | |
10588 need_version=no | |
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10590 soname_spec='${libname}${release}${shared_ext}$major' | |
10591 shlibpath_var=LD_LIBRARY_PATH | |
10592 shlibpath_overrides_runpath=no | |
10593 hardcode_into_libs=yes | |
10594 ;; | |
10595 | |
10596 haiku*) | |
10597 version_type=linux | |
10598 need_lib_prefix=no | |
10599 need_version=no | |
10600 dynamic_linker="$host_os runtime_loader" | |
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10602 soname_spec='${libname}${release}${shared_ext}$major' | |
10603 shlibpath_var=LIBRARY_PATH | |
10604 shlibpath_overrides_runpath=yes | |
10605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
10606 hardcode_into_libs=yes | |
10607 ;; | |
10608 | |
10609 hpux9* | hpux10* | hpux11*) | |
10610 # Give a soname corresponding to the major version so that dld.sl refuses to | |
10611 # link against other versions. | |
10612 version_type=sunos | |
10613 need_lib_prefix=no | |
10614 need_version=no | |
10615 case $host_cpu in | |
10616 ia64*) | |
10617 shrext_cmds='.so' | |
10618 hardcode_into_libs=yes | |
10619 dynamic_linker="$host_os dld.so" | |
10620 shlibpath_var=LD_LIBRARY_PATH | |
10621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10623 soname_spec='${libname}${release}${shared_ext}$major' | |
10624 if test "X$HPUX_IA64_MODE" = X32; then | |
10625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10626 else | |
10627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10628 fi | |
10629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10630 ;; | |
10631 hppa*64*) | |
10632 shrext_cmds='.sl' | |
10633 hardcode_into_libs=yes | |
10634 dynamic_linker="$host_os dld.sl" | |
10635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10638 soname_spec='${libname}${release}${shared_ext}$major' | |
10639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10641 ;; | |
10642 *) | |
10643 shrext_cmds='.sl' | |
10644 dynamic_linker="$host_os dld.sl" | |
10645 shlibpath_var=SHLIB_PATH | |
10646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10648 soname_spec='${libname}${release}${shared_ext}$major' | |
10649 ;; | |
10650 esac | |
10651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10652 postinstall_cmds='chmod 555 $lib' | |
10653 # or fails outright, so override atomically: | |
10654 install_override_mode=555 | |
10655 ;; | |
10656 | |
10657 interix[3-9]*) | |
10658 version_type=linux | |
10659 need_lib_prefix=no | |
10660 need_version=no | |
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10662 soname_spec='${libname}${release}${shared_ext}$major' | |
10663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10664 shlibpath_var=LD_LIBRARY_PATH | |
10665 shlibpath_overrides_runpath=no | |
10666 hardcode_into_libs=yes | |
10667 ;; | |
10668 | |
10669 irix5* | irix6* | nonstopux*) | |
10670 case $host_os in | |
10671 nonstopux*) version_type=nonstopux ;; | |
10672 *) | |
10673 if test "$lt_cv_prog_gnu_ld" = yes; then | |
10674 version_type=linux | |
10675 else | |
10676 version_type=irix | |
10677 fi ;; | |
10678 esac | |
10679 need_lib_prefix=no | |
10680 need_version=no | |
10681 soname_spec='${libname}${release}${shared_ext}$major' | |
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10683 case $host_os in | |
10684 irix5* | nonstopux*) | |
10685 libsuff= shlibsuff= | |
10686 ;; | |
10687 *) | |
10688 case $LD in # libtool.m4 will add one of these switches to LD | |
10689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10690 libsuff= shlibsuff= libmagic=32-bit;; | |
10691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10692 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10694 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10695 *) libsuff= shlibsuff= libmagic=never-match;; | |
10696 esac | |
10697 ;; | |
10698 esac | |
10699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10700 shlibpath_overrides_runpath=no | |
10701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10703 hardcode_into_libs=yes | |
10704 ;; | |
10705 | |
10706 # No shared lib support for Linux oldld, aout, or coff. | |
10707 linux*oldld* | linux*aout* | linux*coff*) | |
10708 dynamic_linker=no | |
10709 ;; | |
10710 | |
10711 # This must be Linux ELF. | |
10712 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10713 version_type=linux | |
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10719 shlibpath_var=LD_LIBRARY_PATH | |
10720 shlibpath_overrides_runpath=no | |
10721 | |
10722 # Some binutils ld are patched to set DT_RUNPATH | |
10723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
10724 $as_echo_n "(cached) " >&6 | |
10725 else | |
10726 lt_cv_shlibpath_overrides_runpath=no | |
10727 save_LDFLAGS=$LDFLAGS | |
10728 save_libdir=$libdir | |
10729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10732 /* end confdefs.h. */ | |
10733 | |
10734 int | |
10735 main () | |
10736 { | |
10737 | |
10738 ; | |
10739 return 0; | |
10740 } | |
10741 _ACEOF | |
10742 if ac_fn_c_try_link "$LINENO"; then : | |
10743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10744 lt_cv_shlibpath_overrides_runpath=yes | |
10745 fi | |
10746 fi | |
10747 rm -f core conftest.err conftest.$ac_objext \ | |
10748 conftest$ac_exeext conftest.$ac_ext | |
10749 LDFLAGS=$save_LDFLAGS | |
10750 libdir=$save_libdir | |
10751 | |
10752 fi | |
10753 | |
10754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10755 | |
10756 # This implies no fast_install, which is unacceptable. | |
10757 # Some rework will be needed to allow for fast_install | |
10758 # before this can be enabled. | |
10759 hardcode_into_libs=yes | |
10760 | |
10761 # Append ld.so.conf contents to the search path | |
10762 if test -f /etc/ld.so.conf; then | |
10763 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' ' '` | |
10764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10765 fi | |
10766 | |
10767 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10768 # powerpc, because MkLinux only supported shared libraries with the | |
10769 # GNU dynamic linker. Since this was broken with cross compilers, | |
10770 # most powerpc-linux boxes support dynamic linking these days and | |
10771 # people can always --disable-shared, the test was removed, and we | |
10772 # assume the GNU/Linux dynamic linker is in use. | |
10773 dynamic_linker='GNU/Linux ld.so' | |
10774 ;; | |
10775 | |
10776 netbsdelf*-gnu) | |
10777 version_type=linux | |
10778 need_lib_prefix=no | |
10779 need_version=no | |
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10781 soname_spec='${libname}${release}${shared_ext}$major' | |
10782 shlibpath_var=LD_LIBRARY_PATH | |
10783 shlibpath_overrides_runpath=no | |
10784 hardcode_into_libs=yes | |
10785 dynamic_linker='NetBSD ld.elf_so' | |
10786 ;; | |
10787 | |
10788 netbsd*) | |
10789 version_type=sunos | |
10790 need_lib_prefix=no | |
10791 need_version=no | |
10792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10795 dynamic_linker='NetBSD (a.out) ld.so' | |
10796 else | |
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10798 soname_spec='${libname}${release}${shared_ext}$major' | |
10799 dynamic_linker='NetBSD ld.elf_so' | |
10800 fi | |
10801 shlibpath_var=LD_LIBRARY_PATH | |
10802 shlibpath_overrides_runpath=yes | |
10803 hardcode_into_libs=yes | |
10804 ;; | |
10805 | |
10806 newsos6) | |
10807 version_type=linux | |
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10809 shlibpath_var=LD_LIBRARY_PATH | |
10810 shlibpath_overrides_runpath=yes | |
10811 ;; | |
10812 | |
10813 *nto* | *qnx*) | |
10814 version_type=qnx | |
10815 need_lib_prefix=no | |
10816 need_version=no | |
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10818 soname_spec='${libname}${release}${shared_ext}$major' | |
10819 shlibpath_var=LD_LIBRARY_PATH | |
10820 shlibpath_overrides_runpath=no | |
10821 hardcode_into_libs=yes | |
10822 dynamic_linker='ldqnx.so' | |
10823 ;; | |
10824 | |
10825 openbsd*) | |
10826 version_type=sunos | |
10827 sys_lib_dlsearch_path_spec="/usr/lib" | |
10828 need_lib_prefix=no | |
10829 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10830 case $host_os in | |
10831 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10832 *) need_version=no ;; | |
10833 esac | |
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10836 shlibpath_var=LD_LIBRARY_PATH | |
10837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10838 case $host_os in | |
10839 openbsd2.[89] | openbsd2.[89].*) | |
10840 shlibpath_overrides_runpath=no | |
10841 ;; | |
10842 *) | |
10843 shlibpath_overrides_runpath=yes | |
10844 ;; | |
10845 esac | |
10846 else | |
10847 shlibpath_overrides_runpath=yes | |
10848 fi | |
10849 ;; | |
10850 | |
10851 os2*) | |
10852 libname_spec='$name' | |
10853 shrext_cmds=".dll" | |
10854 need_lib_prefix=no | |
10855 library_names_spec='$libname${shared_ext} $libname.a' | |
10856 dynamic_linker='OS/2 ld.exe' | |
10857 shlibpath_var=LIBPATH | |
10858 ;; | |
10859 | |
10860 osf3* | osf4* | osf5*) | |
10861 version_type=osf | |
10862 need_lib_prefix=no | |
10863 need_version=no | |
10864 soname_spec='${libname}${release}${shared_ext}$major' | |
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10866 shlibpath_var=LD_LIBRARY_PATH | |
10867 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10868 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10869 ;; | |
10870 | |
10871 rdos*) | |
10872 dynamic_linker=no | |
10873 ;; | |
10874 | |
10875 solaris*) | |
10876 version_type=linux | |
10877 need_lib_prefix=no | |
10878 need_version=no | |
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10880 soname_spec='${libname}${release}${shared_ext}$major' | |
10881 shlibpath_var=LD_LIBRARY_PATH | |
10882 shlibpath_overrides_runpath=yes | |
10883 hardcode_into_libs=yes | |
10884 # ldd complains unless libraries are executable | |
10885 postinstall_cmds='chmod +x $lib' | |
10886 ;; | |
10887 | |
10888 sunos4*) | |
10889 version_type=sunos | |
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10892 shlibpath_var=LD_LIBRARY_PATH | |
10893 shlibpath_overrides_runpath=yes | |
10894 if test "$with_gnu_ld" = yes; then | |
10895 need_lib_prefix=no | |
10896 fi | |
10897 need_version=yes | |
10898 ;; | |
10899 | |
10900 sysv4 | sysv4.3*) | |
10901 version_type=linux | |
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10903 soname_spec='${libname}${release}${shared_ext}$major' | |
10904 shlibpath_var=LD_LIBRARY_PATH | |
10905 case $host_vendor in | |
10906 sni) | |
10907 shlibpath_overrides_runpath=no | |
10908 need_lib_prefix=no | |
10909 runpath_var=LD_RUN_PATH | |
10910 ;; | |
10911 siemens) | |
10912 need_lib_prefix=no | |
10913 ;; | |
10914 motorola) | |
10915 need_lib_prefix=no | |
10916 need_version=no | |
10917 shlibpath_overrides_runpath=no | |
10918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10919 ;; | |
10920 esac | |
10921 ;; | |
10922 | |
10923 sysv4*MP*) | |
10924 if test -d /usr/nec ;then | |
10925 version_type=linux | |
10926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10927 soname_spec='$libname${shared_ext}.$major' | |
10928 shlibpath_var=LD_LIBRARY_PATH | |
10929 fi | |
10930 ;; | |
10931 | |
10932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10933 version_type=freebsd-elf | |
10934 need_lib_prefix=no | |
10935 need_version=no | |
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10937 soname_spec='${libname}${release}${shared_ext}$major' | |
10938 shlibpath_var=LD_LIBRARY_PATH | |
10939 shlibpath_overrides_runpath=yes | |
10940 hardcode_into_libs=yes | |
10941 if test "$with_gnu_ld" = yes; then | |
10942 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10943 else | |
10944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10945 case $host_os in | |
10946 sco3.2v5*) | |
10947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10948 ;; | |
10949 esac | |
10950 fi | |
10951 sys_lib_dlsearch_path_spec='/usr/lib' | |
10952 ;; | |
10953 | |
10954 tpf*) | |
10955 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10956 version_type=linux | |
10957 need_lib_prefix=no | |
10958 need_version=no | |
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10960 shlibpath_var=LD_LIBRARY_PATH | |
10961 shlibpath_overrides_runpath=no | |
10962 hardcode_into_libs=yes | |
10963 ;; | |
10964 | |
10965 uts4*) | |
10966 version_type=linux | |
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10968 soname_spec='${libname}${release}${shared_ext}$major' | |
10969 shlibpath_var=LD_LIBRARY_PATH | |
10970 ;; | |
10971 | |
10972 *) | |
10973 dynamic_linker=no | |
10974 ;; | |
10975 esac | |
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10977 $as_echo "$dynamic_linker" >&6; } | |
10978 test "$dynamic_linker" = no && can_build_shared=no | |
10979 | |
10980 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10981 if test "$GCC" = yes; then | |
10982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10983 fi | |
10984 | |
10985 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10986 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10987 fi | |
10988 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10989 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10990 fi | |
10991 | |
10992 | |
10993 | |
10994 | |
10995 | |
10996 | |
10997 | |
10998 | |
10999 | |
11000 | |
11001 | |
11002 | |
11003 | |
11004 | |
11005 | |
11006 | |
11007 | |
11008 | |
11009 | |
11010 | |
11011 | |
11012 | |
11013 | |
11014 | |
11015 | |
11016 | |
11017 | |
11018 | |
11019 | |
11020 | |
11021 | |
11022 | |
11023 | |
11024 | |
11025 | |
11026 | |
11027 | |
11028 | |
11029 | |
11030 | |
11031 | |
11032 | |
11033 | |
11034 | |
11035 | |
11036 | |
11037 | |
11038 | |
11039 | |
11040 | |
11041 | |
11042 | |
11043 | |
11044 | |
11045 | |
11046 | |
11047 | |
11048 | |
11049 | |
11050 | |
11051 | |
11052 | |
11053 | |
11054 | |
11055 | |
11056 | |
11057 | |
11058 | |
11059 | |
11060 | |
11061 | |
11062 | |
11063 | |
11064 | |
11065 | |
11066 | |
11067 | |
11068 | |
11069 | |
11070 | |
11071 | |
11072 | |
11073 | |
11074 | |
11075 | |
11076 | |
11077 | |
11078 | |
11079 | |
11080 | |
11081 | |
11082 | |
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11084 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11085 hardcode_action= | |
11086 if test -n "$hardcode_libdir_flag_spec" || | |
11087 test -n "$runpath_var" || | |
11088 test "X$hardcode_automatic" = "Xyes" ; then | |
11089 | |
11090 # We can hardcode non-existent directories. | |
11091 if test "$hardcode_direct" != no && | |
11092 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11093 # have to relink, otherwise we might link with an installed library | |
11094 # when we should be linking with a yet-to-be-installed one | |
11095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11096 test "$hardcode_minus_L" != no; then | |
11097 # Linking always hardcodes the temporary library directory. | |
11098 hardcode_action=relink | |
11099 else | |
11100 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11101 hardcode_action=immediate | |
11102 fi | |
11103 else | |
11104 # We cannot hardcode anything, or else we can only hardcode existing | |
11105 # directories. | |
11106 hardcode_action=unsupported | |
11107 fi | |
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11109 $as_echo "$hardcode_action" >&6; } | |
11110 | |
11111 if test "$hardcode_action" = relink || | |
11112 test "$inherit_rpath" = yes; then | |
11113 # Fast installation is not supported | |
11114 enable_fast_install=no | |
11115 elif test "$shlibpath_overrides_runpath" = yes || | |
11116 test "$enable_shared" = no; then | |
11117 # Fast installation is not necessary | |
11118 enable_fast_install=needless | |
11119 fi | |
11120 | |
11121 | |
11122 | |
11123 | |
11124 | |
11125 | |
11126 if test "x$enable_dlopen" != xyes; then | |
11127 enable_dlopen=unknown | |
11128 enable_dlopen_self=unknown | |
11129 enable_dlopen_self_static=unknown | |
11130 else | |
11131 lt_cv_dlopen=no | |
11132 lt_cv_dlopen_libs= | |
11133 | |
11134 case $host_os in | |
11135 beos*) | |
11136 lt_cv_dlopen="load_add_on" | |
11137 lt_cv_dlopen_libs= | |
11138 lt_cv_dlopen_self=yes | |
11139 ;; | |
11140 | |
11141 mingw* | pw32* | cegcc*) | |
11142 lt_cv_dlopen="LoadLibrary" | |
11143 lt_cv_dlopen_libs= | |
11144 ;; | |
11145 | |
11146 cygwin*) | |
11147 lt_cv_dlopen="dlopen" | |
11148 lt_cv_dlopen_libs= | |
11149 ;; | |
11150 | |
11151 darwin*) | |
11152 # if libdl is installed we need to link against it | |
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11154 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11155 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11156 $as_echo_n "(cached) " >&6 | |
11157 else | |
11158 ac_check_lib_save_LIBS=$LIBS | |
11159 LIBS="-ldl $LIBS" | |
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11161 /* end confdefs.h. */ | |
11162 | |
11163 /* Override any GCC internal prototype to avoid an error. | |
11164 Use char because int might match the return type of a GCC | |
11165 builtin and then its argument prototype would still apply. */ | |
11166 #ifdef __cplusplus | |
11167 extern "C" | |
11168 #endif | |
11169 char dlopen (); | |
11170 int | |
11171 main () | |
11172 { | |
11173 return dlopen (); | |
11174 ; | |
11175 return 0; | |
11176 } | |
11177 _ACEOF | |
11178 if ac_fn_c_try_link "$LINENO"; then : | |
11179 ac_cv_lib_dl_dlopen=yes | |
11180 else | |
11181 ac_cv_lib_dl_dlopen=no | |
11182 fi | |
11183 rm -f core conftest.err conftest.$ac_objext \ | |
11184 conftest$ac_exeext conftest.$ac_ext | |
11185 LIBS=$ac_check_lib_save_LIBS | |
11186 fi | |
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11188 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11189 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11191 else | |
11192 | |
11193 lt_cv_dlopen="dyld" | |
11194 lt_cv_dlopen_libs= | |
11195 lt_cv_dlopen_self=yes | |
11196 | |
11197 fi | |
11198 | |
11199 ;; | |
11200 | |
11201 *) | |
11202 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11203 if test "x$ac_cv_func_shl_load" = xyes; then : | |
11204 lt_cv_dlopen="shl_load" | |
11205 else | |
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11207 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11208 if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11209 $as_echo_n "(cached) " >&6 | |
11210 else | |
11211 ac_check_lib_save_LIBS=$LIBS | |
11212 LIBS="-ldld $LIBS" | |
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11214 /* end confdefs.h. */ | |
11215 | |
11216 /* Override any GCC internal prototype to avoid an error. | |
11217 Use char because int might match the return type of a GCC | |
11218 builtin and then its argument prototype would still apply. */ | |
11219 #ifdef __cplusplus | |
11220 extern "C" | |
11221 #endif | |
11222 char shl_load (); | |
11223 int | |
11224 main () | |
11225 { | |
11226 return shl_load (); | |
11227 ; | |
11228 return 0; | |
11229 } | |
11230 _ACEOF | |
11231 if ac_fn_c_try_link "$LINENO"; then : | |
11232 ac_cv_lib_dld_shl_load=yes | |
11233 else | |
11234 ac_cv_lib_dld_shl_load=no | |
11235 fi | |
11236 rm -f core conftest.err conftest.$ac_objext \ | |
11237 conftest$ac_exeext conftest.$ac_ext | |
11238 LIBS=$ac_check_lib_save_LIBS | |
11239 fi | |
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11241 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11242 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11244 else | |
11245 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11246 if test "x$ac_cv_func_dlopen" = xyes; then : | |
11247 lt_cv_dlopen="dlopen" | |
11248 else | |
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11250 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11251 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11252 $as_echo_n "(cached) " >&6 | |
11253 else | |
11254 ac_check_lib_save_LIBS=$LIBS | |
11255 LIBS="-ldl $LIBS" | |
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11257 /* end confdefs.h. */ | |
11258 | |
11259 /* Override any GCC internal prototype to avoid an error. | |
11260 Use char because int might match the return type of a GCC | |
11261 builtin and then its argument prototype would still apply. */ | |
11262 #ifdef __cplusplus | |
11263 extern "C" | |
11264 #endif | |
11265 char dlopen (); | |
11266 int | |
11267 main () | |
11268 { | |
11269 return dlopen (); | |
11270 ; | |
11271 return 0; | |
11272 } | |
11273 _ACEOF | |
11274 if ac_fn_c_try_link "$LINENO"; then : | |
11275 ac_cv_lib_dl_dlopen=yes | |
11276 else | |
11277 ac_cv_lib_dl_dlopen=no | |
11278 fi | |
11279 rm -f core conftest.err conftest.$ac_objext \ | |
11280 conftest$ac_exeext conftest.$ac_ext | |
11281 LIBS=$ac_check_lib_save_LIBS | |
11282 fi | |
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11285 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11287 else | |
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11289 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11290 if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11291 $as_echo_n "(cached) " >&6 | |
11292 else | |
11293 ac_check_lib_save_LIBS=$LIBS | |
11294 LIBS="-lsvld $LIBS" | |
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11296 /* end confdefs.h. */ | |
11297 | |
11298 /* Override any GCC internal prototype to avoid an error. | |
11299 Use char because int might match the return type of a GCC | |
11300 builtin and then its argument prototype would still apply. */ | |
11301 #ifdef __cplusplus | |
11302 extern "C" | |
11303 #endif | |
11304 char dlopen (); | |
11305 int | |
11306 main () | |
11307 { | |
11308 return dlopen (); | |
11309 ; | |
11310 return 0; | |
11311 } | |
11312 _ACEOF | |
11313 if ac_fn_c_try_link "$LINENO"; then : | |
11314 ac_cv_lib_svld_dlopen=yes | |
11315 else | |
11316 ac_cv_lib_svld_dlopen=no | |
11317 fi | |
11318 rm -f core conftest.err conftest.$ac_objext \ | |
11319 conftest$ac_exeext conftest.$ac_ext | |
11320 LIBS=$ac_check_lib_save_LIBS | |
11321 fi | |
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11323 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11324 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11326 else | |
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11328 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11329 if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11330 $as_echo_n "(cached) " >&6 | |
11331 else | |
11332 ac_check_lib_save_LIBS=$LIBS | |
11333 LIBS="-ldld $LIBS" | |
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11335 /* end confdefs.h. */ | |
11336 | |
11337 /* Override any GCC internal prototype to avoid an error. | |
11338 Use char because int might match the return type of a GCC | |
11339 builtin and then its argument prototype would still apply. */ | |
11340 #ifdef __cplusplus | |
11341 extern "C" | |
11342 #endif | |
11343 char dld_link (); | |
11344 int | |
11345 main () | |
11346 { | |
11347 return dld_link (); | |
11348 ; | |
11349 return 0; | |
11350 } | |
11351 _ACEOF | |
11352 if ac_fn_c_try_link "$LINENO"; then : | |
11353 ac_cv_lib_dld_dld_link=yes | |
11354 else | |
11355 ac_cv_lib_dld_dld_link=no | |
11356 fi | |
11357 rm -f core conftest.err conftest.$ac_objext \ | |
11358 conftest$ac_exeext conftest.$ac_ext | |
11359 LIBS=$ac_check_lib_save_LIBS | |
11360 fi | |
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11363 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11365 fi | |
11366 | |
11367 | |
11368 fi | |
11369 | |
11370 | |
11371 fi | |
11372 | |
11373 | |
11374 fi | |
11375 | |
11376 | |
11377 fi | |
11378 | |
11379 | |
11380 fi | |
11381 | |
11382 ;; | |
11383 esac | |
11384 | |
11385 if test "x$lt_cv_dlopen" != xno; then | |
11386 enable_dlopen=yes | |
11387 else | |
11388 enable_dlopen=no | |
11389 fi | |
11390 | |
11391 case $lt_cv_dlopen in | |
11392 dlopen) | |
11393 save_CPPFLAGS="$CPPFLAGS" | |
11394 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11395 | |
11396 save_LDFLAGS="$LDFLAGS" | |
11397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11398 | |
11399 save_LIBS="$LIBS" | |
11400 LIBS="$lt_cv_dlopen_libs $LIBS" | |
11401 | |
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11403 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11404 if ${lt_cv_dlopen_self+:} false; then : | |
11405 $as_echo_n "(cached) " >&6 | |
11406 else | |
11407 if test "$cross_compiling" = yes; then : | |
11408 lt_cv_dlopen_self=cross | |
11409 else | |
11410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11411 lt_status=$lt_dlunknown | |
11412 cat > conftest.$ac_ext <<_LT_EOF | |
11413 #line $LINENO "configure" | |
11414 #include "confdefs.h" | |
11415 | |
11416 #if HAVE_DLFCN_H | |
11417 #include <dlfcn.h> | |
11418 #endif | |
11419 | |
11420 #include <stdio.h> | |
11421 | |
11422 #ifdef RTLD_GLOBAL | |
11423 # define LT_DLGLOBAL RTLD_GLOBAL | |
11424 #else | |
11425 # ifdef DL_GLOBAL | |
11426 # define LT_DLGLOBAL DL_GLOBAL | |
11427 # else | |
11428 # define LT_DLGLOBAL 0 | |
11429 # endif | |
11430 #endif | |
11431 | |
11432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11433 find out it does not work in some platform. */ | |
11434 #ifndef LT_DLLAZY_OR_NOW | |
11435 # ifdef RTLD_LAZY | |
11436 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11437 # else | |
11438 # ifdef DL_LAZY | |
11439 # define LT_DLLAZY_OR_NOW DL_LAZY | |
11440 # else | |
11441 # ifdef RTLD_NOW | |
11442 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11443 # else | |
11444 # ifdef DL_NOW | |
11445 # define LT_DLLAZY_OR_NOW DL_NOW | |
11446 # else | |
11447 # define LT_DLLAZY_OR_NOW 0 | |
11448 # endif | |
11449 # endif | |
11450 # endif | |
11451 # endif | |
11452 #endif | |
11453 | |
11454 /* When -fvisbility=hidden is used, assume the code has been annotated | |
11455 correspondingly for the symbols needed. */ | |
11456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11457 int fnord () __attribute__((visibility("default"))); | |
11458 #endif | |
11459 | |
11460 int fnord () { return 42; } | |
11461 int main () | |
11462 { | |
11463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11464 int status = $lt_dlunknown; | |
11465 | |
11466 if (self) | |
11467 { | |
11468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11469 else | |
11470 { | |
11471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11472 else puts (dlerror ()); | |
11473 } | |
11474 /* dlclose (self); */ | |
11475 } | |
11476 else | |
11477 puts (dlerror ()); | |
11478 | |
11479 return status; | |
11480 } | |
11481 _LT_EOF | |
11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11483 (eval $ac_link) 2>&5 | |
11484 ac_status=$? | |
11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11487 (./conftest; exit; ) >&5 2>/dev/null | |
11488 lt_status=$? | |
11489 case x$lt_status in | |
11490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11493 esac | |
11494 else : | |
11495 # compilation failed | |
11496 lt_cv_dlopen_self=no | |
11497 fi | |
11498 fi | |
11499 rm -fr conftest* | |
11500 | |
11501 | |
11502 fi | |
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11504 $as_echo "$lt_cv_dlopen_self" >&6; } | |
11505 | |
11506 if test "x$lt_cv_dlopen_self" = xyes; then | |
11507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11509 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11510 if ${lt_cv_dlopen_self_static+:} false; then : | |
11511 $as_echo_n "(cached) " >&6 | |
11512 else | |
11513 if test "$cross_compiling" = yes; then : | |
11514 lt_cv_dlopen_self_static=cross | |
11515 else | |
11516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11517 lt_status=$lt_dlunknown | |
11518 cat > conftest.$ac_ext <<_LT_EOF | |
11519 #line $LINENO "configure" | |
11520 #include "confdefs.h" | |
11521 | |
11522 #if HAVE_DLFCN_H | |
11523 #include <dlfcn.h> | |
11524 #endif | |
11525 | |
11526 #include <stdio.h> | |
11527 | |
11528 #ifdef RTLD_GLOBAL | |
11529 # define LT_DLGLOBAL RTLD_GLOBAL | |
11530 #else | |
11531 # ifdef DL_GLOBAL | |
11532 # define LT_DLGLOBAL DL_GLOBAL | |
11533 # else | |
11534 # define LT_DLGLOBAL 0 | |
11535 # endif | |
11536 #endif | |
11537 | |
11538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11539 find out it does not work in some platform. */ | |
11540 #ifndef LT_DLLAZY_OR_NOW | |
11541 # ifdef RTLD_LAZY | |
11542 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11543 # else | |
11544 # ifdef DL_LAZY | |
11545 # define LT_DLLAZY_OR_NOW DL_LAZY | |
11546 # else | |
11547 # ifdef RTLD_NOW | |
11548 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11549 # else | |
11550 # ifdef DL_NOW | |
11551 # define LT_DLLAZY_OR_NOW DL_NOW | |
11552 # else | |
11553 # define LT_DLLAZY_OR_NOW 0 | |
11554 # endif | |
11555 # endif | |
11556 # endif | |
11557 # endif | |
11558 #endif | |
11559 | |
11560 /* When -fvisbility=hidden is used, assume the code has been annotated | |
11561 correspondingly for the symbols needed. */ | |
11562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11563 int fnord () __attribute__((visibility("default"))); | |
11564 #endif | |
11565 | |
11566 int fnord () { return 42; } | |
11567 int main () | |
11568 { | |
11569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11570 int status = $lt_dlunknown; | |
11571 | |
11572 if (self) | |
11573 { | |
11574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11575 else | |
11576 { | |
11577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11578 else puts (dlerror ()); | |
11579 } | |
11580 /* dlclose (self); */ | |
11581 } | |
11582 else | |
11583 puts (dlerror ()); | |
11584 | |
11585 return status; | |
11586 } | |
11587 _LT_EOF | |
11588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11589 (eval $ac_link) 2>&5 | |
11590 ac_status=$? | |
11591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11593 (./conftest; exit; ) >&5 2>/dev/null | |
11594 lt_status=$? | |
11595 case x$lt_status in | |
11596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11598 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11599 esac | |
11600 else : | |
11601 # compilation failed | |
11602 lt_cv_dlopen_self_static=no | |
11603 fi | |
11604 fi | |
11605 rm -fr conftest* | |
11606 | |
11607 | |
11608 fi | |
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11610 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11611 fi | |
11612 | |
11613 CPPFLAGS="$save_CPPFLAGS" | |
11614 LDFLAGS="$save_LDFLAGS" | |
11615 LIBS="$save_LIBS" | |
11616 ;; | |
11617 esac | |
11618 | |
11619 case $lt_cv_dlopen_self in | |
11620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11621 *) enable_dlopen_self=unknown ;; | |
11622 esac | |
11623 | |
11624 case $lt_cv_dlopen_self_static in | |
11625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11626 *) enable_dlopen_self_static=unknown ;; | |
11627 esac | |
11628 fi | |
11629 | |
11630 | |
11631 | |
11632 | |
11633 | |
11634 | |
11635 | |
11636 | |
11637 | |
11638 | |
11639 | |
11640 | |
11641 | |
11642 | |
11643 | |
11644 | |
11645 | |
11646 striplib= | |
11647 old_striplib= | |
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11649 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11650 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11651 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11652 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11654 $as_echo "yes" >&6; } | |
11655 else | |
11656 # FIXME - insert some real tests, host_os isn't really good enough | |
11657 case $host_os in | |
11658 darwin*) | |
11659 if test -n "$STRIP" ; then | |
11660 striplib="$STRIP -x" | |
11661 old_striplib="$STRIP -S" | |
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11663 $as_echo "yes" >&6; } | |
11664 else | |
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11666 $as_echo "no" >&6; } | |
11667 fi | |
11668 ;; | |
11669 *) | |
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11671 $as_echo "no" >&6; } | |
11672 ;; | |
11673 esac | |
11674 fi | |
11675 | |
11676 | |
11677 | |
11678 | |
11679 | |
11680 | |
11681 | |
11682 | |
11683 | |
11684 | |
11685 | |
11686 | |
11687 # Report which library types will actually be built | |
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11689 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11691 $as_echo "$can_build_shared" >&6; } | |
11692 | |
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11694 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11695 test "$can_build_shared" = "no" && enable_shared=no | |
11696 | |
11697 # On AIX, shared libraries and static libraries use the same namespace, and | |
11698 # are all built from PIC. | |
11699 case $host_os in | |
11700 aix3*) | |
11701 test "$enable_shared" = yes && enable_static=no | |
11702 if test -n "$RANLIB"; then | |
11703 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11704 postinstall_cmds='$RANLIB $lib' | |
11705 fi | |
11706 ;; | |
11707 | |
11708 aix[4-9]*) | |
11709 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11710 test "$enable_shared" = yes && enable_static=no | |
11711 fi | |
11712 ;; | |
11713 esac | |
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11715 $as_echo "$enable_shared" >&6; } | |
11716 | |
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11718 $as_echo_n "checking whether to build static libraries... " >&6; } | |
11719 # Make sure either enable_shared or enable_static is yes. | |
11720 test "$enable_shared" = yes || enable_static=yes | |
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11722 $as_echo "$enable_static" >&6; } | |
11723 | |
11724 | |
11725 | |
11726 | |
11727 fi | |
11728 ac_ext=c | |
11729 ac_cpp='$CPP $CPPFLAGS' | |
11730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11732 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11733 | |
11734 CC="$lt_save_CC" | |
11735 | |
11736 | |
11737 | |
11738 | |
11739 | |
11740 | |
11741 | |
11742 | |
11743 | |
11744 | |
11745 | |
11746 | |
11747 | |
11748 ac_config_commands="$ac_config_commands libtool" | |
11749 | |
11750 | |
11751 | |
11752 | |
11753 # Only expand once: | |
11754 | |
11755 | |
11756 if test "x$CC" != xcc; then | |
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
11758 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
11759 else | |
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
11761 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
11762 fi | |
11763 set dummy $CC; ac_cc=`$as_echo "$2" | | |
11764 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
11765 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : | |
11766 $as_echo_n "(cached) " >&6 | |
11767 else | |
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11769 /* end confdefs.h. */ | |
11770 | |
11771 int | |
11772 main () | |
11773 { | |
11774 | |
11775 ; | |
11776 return 0; | |
11777 } | |
11778 _ACEOF | |
11779 # Make sure it works both with $CC and with simple cc. | |
11780 # We do the test twice because some compilers refuse to overwrite an | |
11781 # existing .o file with -o, though they will create one. | |
11782 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
11783 rm -f conftest2.* | |
11784 if { { case "(($ac_try" in | |
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11786 *) ac_try_echo=$ac_try;; | |
11787 esac | |
11788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11789 $as_echo "$ac_try_echo"; } >&5 | |
11790 (eval "$ac_try") 2>&5 | |
11791 ac_status=$? | |
11792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11793 test $ac_status = 0; } && | |
11794 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11796 *) ac_try_echo=$ac_try;; | |
11797 esac | |
11798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11799 $as_echo "$ac_try_echo"; } >&5 | |
11800 (eval "$ac_try") 2>&5 | |
11801 ac_status=$? | |
11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11803 test $ac_status = 0; }; | |
11804 then | |
11805 eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
11806 if test "x$CC" != xcc; then | |
11807 # Test first that cc exists at all. | |
11808 if { ac_try='cc -c conftest.$ac_ext >&5' | |
11809 { { case "(($ac_try" in | |
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11811 *) ac_try_echo=$ac_try;; | |
11812 esac | |
11813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11814 $as_echo "$ac_try_echo"; } >&5 | |
11815 (eval "$ac_try") 2>&5 | |
11816 ac_status=$? | |
11817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11818 test $ac_status = 0; }; }; then | |
11819 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
11820 rm -f conftest2.* | |
11821 if { { case "(($ac_try" in | |
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11823 *) ac_try_echo=$ac_try;; | |
11824 esac | |
11825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11826 $as_echo "$ac_try_echo"; } >&5 | |
11827 (eval "$ac_try") 2>&5 | |
11828 ac_status=$? | |
11829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11830 test $ac_status = 0; } && | |
11831 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11833 *) ac_try_echo=$ac_try;; | |
11834 esac | |
11835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11836 $as_echo "$ac_try_echo"; } >&5 | |
11837 (eval "$ac_try") 2>&5 | |
11838 ac_status=$? | |
11839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11840 test $ac_status = 0; }; | |
11841 then | |
11842 # cc works too. | |
11843 : | |
11844 else | |
11845 # cc exists but doesn't like -o. | |
11846 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
11847 fi | |
11848 fi | |
11849 fi | |
11850 else | |
11851 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
11852 fi | |
11853 rm -f core conftest* | |
11854 | |
11855 fi | |
11856 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11858 $as_echo "yes" >&6; } | |
11859 else | |
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11861 $as_echo "no" >&6; } | |
11862 | |
11863 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
11864 | |
11865 fi | |
11866 | |
11867 # FIXME: we rely on the cache variable name because | |
11868 # there is no other way. | |
11869 set dummy $CC | |
11870 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
11871 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
11872 if test "$am_t" != yes; then | |
11873 # Losing compiler, so override with the script. | |
11874 # FIXME: It is wrong to rewrite CC. | |
11875 # But if we don't then we get into trouble of one sort or another. | |
11876 # A longer-term fix would be to have automake use am__CC in this case, | |
11877 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
11878 CC="$am_aux_dir/compile $CC" | |
11879 fi | |
11880 | |
11881 | |
11882 | |
11883 if test "x$enable_docs" = xyes; then | |
11884 # Extract the first word of "doxygen", so it can be a program name with args. | |
11885 set dummy doxygen; ac_word=$2 | |
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11887 $as_echo_n "checking for $ac_word... " >&6; } | |
11888 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then : | |
11889 $as_echo_n "(cached) " >&6 | |
11890 else | |
11891 if test -n "$HAVE_DOXYGEN"; then | |
11892 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. | |
11893 else | |
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11895 for as_dir in $PATH | |
11896 do | |
11897 IFS=$as_save_IFS | |
11898 test -z "$as_dir" && as_dir=. | |
11899 for ac_exec_ext in '' $ac_executable_extensions; do | |
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11901 ac_cv_prog_HAVE_DOXYGEN="true" | |
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11903 break 2 | |
11904 fi | |
11905 done | |
11906 done | |
11907 IFS=$as_save_IFS | |
11908 | |
11909 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false" | |
11910 fi | |
11911 fi | |
11912 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN | |
11913 if test -n "$HAVE_DOXYGEN"; then | |
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5 | |
11915 $as_echo "$HAVE_DOXYGEN" >&6; } | |
11916 else | |
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11918 $as_echo "no" >&6; } | |
11919 fi | |
11920 | |
11921 | |
11922 if test $HAVE_DOXYGEN = "false"; then | |
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** doxygen not found, API documentation will not be built" >&5 | |
11924 $as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;} | |
11925 fi | |
11926 else | |
11927 HAVE_DOXYGEN=false | |
11928 fi | |
11929 if $HAVE_DOXYGEN; then | |
11930 HAVE_DOXYGEN_TRUE= | |
11931 HAVE_DOXYGEN_FALSE='#' | |
11932 else | |
11933 HAVE_DOXYGEN_TRUE='#' | |
11934 HAVE_DOXYGEN_FALSE= | |
11935 fi | |
11936 | |
11937 | |
11938 # Check whether --enable-docs was given. | |
11939 if test "${enable_docs+set}" = set; then : | |
11940 enableval=$enable_docs; | |
11941 fi | |
11942 | |
11943 | |
11944 if test "x$enable_docs" = xyes; then | |
11945 for ac_prog in pdflatex | |
11946 do | |
11947 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11948 set dummy $ac_prog; ac_word=$2 | |
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11950 $as_echo_n "checking for $ac_word... " >&6; } | |
11951 if ${ac_cv_prog_PDFLATEX+:} false; then : | |
11952 $as_echo_n "(cached) " >&6 | |
11953 else | |
11954 if test -n "$PDFLATEX"; then | |
11955 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test. | |
11956 else | |
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11958 for as_dir in $PATH | |
11959 do | |
11960 IFS=$as_save_IFS | |
11961 test -z "$as_dir" && as_dir=. | |
11962 for ac_exec_ext in '' $ac_executable_extensions; do | |
11963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11964 ac_cv_prog_PDFLATEX="$ac_prog" | |
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11966 break 2 | |
11967 fi | |
11968 done | |
11969 done | |
11970 IFS=$as_save_IFS | |
11971 | |
11972 fi | |
11973 fi | |
11974 PDFLATEX=$ac_cv_prog_PDFLATEX | |
11975 if test -n "$PDFLATEX"; then | |
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 | |
11977 $as_echo "$PDFLATEX" >&6; } | |
11978 else | |
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11980 $as_echo "no" >&6; } | |
11981 fi | |
11982 | |
11983 | |
11984 test -n "$PDFLATEX" && break | |
11985 done | |
11986 test -n "$PDFLATEX" || PDFLATEX="/bin/false" | |
11987 | |
11988 for ac_prog in htlatex | |
11989 do | |
11990 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11991 set dummy $ac_prog; ac_word=$2 | |
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11993 $as_echo_n "checking for $ac_word... " >&6; } | |
11994 if ${ac_cv_prog_HTLATEX+:} false; then : | |
11995 $as_echo_n "(cached) " >&6 | |
11996 else | |
11997 if test -n "$HTLATEX"; then | |
11998 ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test. | |
11999 else | |
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12001 for as_dir in $PATH | |
12002 do | |
12003 IFS=$as_save_IFS | |
12004 test -z "$as_dir" && as_dir=. | |
12005 for ac_exec_ext in '' $ac_executable_extensions; do | |
12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12007 ac_cv_prog_HTLATEX="$ac_prog" | |
12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12009 break 2 | |
12010 fi | |
12011 done | |
12012 done | |
12013 IFS=$as_save_IFS | |
12014 | |
12015 fi | |
12016 fi | |
12017 HTLATEX=$ac_cv_prog_HTLATEX | |
12018 if test -n "$HTLATEX"; then | |
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTLATEX" >&5 | |
12020 $as_echo "$HTLATEX" >&6; } | |
12021 else | |
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12023 $as_echo "no" >&6; } | |
12024 fi | |
12025 | |
12026 | |
12027 test -n "$HTLATEX" && break | |
12028 done | |
12029 test -n "$HTLATEX" || HTLATEX="/bin/false" | |
12030 | |
12031 if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then | |
12032 enable_docs=no | |
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built!" >&5 | |
12034 $as_echo "$as_me: WARNING: Documentation will not be built!" >&2;} | |
12035 fi | |
12036 fi | |
12037 | |
12038 if test "x$enable_docs" = xyes; then | |
12039 BUILD_DOCS_TRUE= | |
12040 BUILD_DOCS_FALSE='#' | |
12041 else | |
12042 BUILD_DOCS_TRUE='#' | |
12043 BUILD_DOCS_FALSE= | |
12044 fi | |
12045 | |
12046 | |
12047 # Check whether --enable-examples was given. | |
12048 if test "${enable_examples+set}" = set; then : | |
12049 enableval=$enable_examples; | |
12050 fi | |
12051 | |
12052 | |
12053 if test "x$enable_examples" = xyes; then | |
12054 BUILD_EXAMPLES_TRUE= | |
12055 BUILD_EXAMPLES_FALSE='#' | |
12056 else | |
12057 BUILD_EXAMPLES_TRUE='#' | |
12058 BUILD_EXAMPLES_FALSE= | |
12059 fi | |
12060 | |
12061 | |
12062 | |
12063 | |
12064 cflags_save="$CFLAGS" | |
12065 if test -z "$GCC"; then | |
12066 case $host in | |
12067 *-*-irix*) | |
12068 if test -z "$CC"; then | |
12069 CC=cc | |
12070 fi | |
12071 DEBUG="-g -signed" | |
12072 CFLAGS="-O2 -w -signed" | |
12073 PROFILE="-p -g3 -O2 -signed" ;; | |
12074 sparc-sun-solaris*) | |
12075 DEBUG="-v -g" | |
12076 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92" | |
12077 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;; | |
12078 *) | |
12079 DEBUG="-g" | |
12080 CFLAGS="-O" | |
12081 PROFILE="-g -p" ;; | |
12082 esac | |
12083 else | |
12084 | |
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5 | |
12086 $as_echo_n "checking GCC version... " >&6; } | |
12087 GCC_VERSION=`$CC -dumpversion` | |
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5 | |
12089 $as_echo "$GCC_VERSION" >&6; } | |
12090 case $host in | |
12091 *86-*-linux*) | |
12092 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" | |
12093 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char" | |
12094 # PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static" | |
12095 PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline" | |
12096 | |
12097 # glibc < 2.1.3 has a serious FP bug in the math inline header | |
12098 # that will cripple Vorbis. Look to see if the magic FP stack | |
12099 # clobber is missing in the mathinline header, thus indicating | |
12100 # the buggy version | |
12101 | |
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12103 /* end confdefs.h. */ | |
12104 | |
12105 #define __LIBC_INTERNAL_MATH_INLINES 1 | |
12106 #define __OPTIMIZE__ | |
12107 #include <math.h> | |
12108 | |
12109 _ACEOF | |
12110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12111 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then : | |
12112 bad=maybe | |
12113 else | |
12114 bad=no | |
12115 fi | |
12116 rm -f conftest* | |
12117 | |
12118 if test ${bad} = "maybe" ;then | |
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12120 /* end confdefs.h. */ | |
12121 | |
12122 #define __LIBC_INTERNAL_MATH_INLINES 1 | |
12123 #define __OPTIMIZE__ | |
12124 #include <math.h> | |
12125 | |
12126 _ACEOF | |
12127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12128 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then : | |
12129 bad=no | |
12130 else | |
12131 bad=yes | |
12132 fi | |
12133 rm -f conftest* | |
12134 | |
12135 fi | |
12136 if test ${bad} = "yes" ;then | |
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 | |
12138 $as_echo "$as_me: WARNING: " >&2;} | |
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5 | |
12140 $as_echo "$as_me: WARNING: ********************************************************" >&2;} | |
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5 | |
12142 $as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;} | |
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5 | |
12144 $as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;} | |
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not just Ogg, built on this *" >&5 | |
12146 $as_echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;} | |
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5 | |
12148 $as_echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;} | |
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * to correct the problem. Note that upgrading glibc *" >&5 | |
12150 $as_echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;} | |
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will not fix any previously built programs; this is *" >&5 | |
12152 $as_echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;} | |
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * a compile-time time bug. *" >&5 | |
12154 $as_echo "$as_me: WARNING: * a compile-time time bug. *" >&2;} | |
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of Ogg, *" >&5 | |
12156 $as_echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;} | |
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5 | |
12158 $as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;} | |
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5 | |
12160 $as_echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;} | |
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5 | |
12162 $as_echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;} | |
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5 | |
12164 $as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;} | |
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5 | |
12166 $as_echo "$as_me: WARNING: ********************************************************" >&2;} | |
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 | |
12168 $as_echo "$as_me: WARNING: " >&2;} | |
12169 | |
12170 CFLAGS=${OPT}" -D__NO_MATH_INLINES" | |
12171 PROFILE=${PROFILE}" -D__NO_MATH_INLINES" | |
12172 fi;; | |
12173 powerpc-*-linux*spe) | |
12174 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES" | |
12175 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT" | |
12176 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";; | |
12177 powerpc-*-linux*) | |
12178 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES" | |
12179 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT" | |
12180 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";; | |
12181 *-*-linux*) | |
12182 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" | |
12183 CFLAGS="-O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char" | |
12184 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";; | |
12185 sparc-sun-*) | |
12186 sparc_cpu="" | |
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -mv8" >&5 | |
12188 $as_echo_n "checking if gcc supports -mv8... " >&6; } | |
12189 old_cflags="$CFLAGS" | |
12190 CFLAGS="$CFLAGS -mv8" | |
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12192 /* end confdefs.h. */ | |
12193 | |
12194 int | |
12195 main () | |
12196 { | |
12197 return 0; | |
12198 ; | |
12199 return 0; | |
12200 } | |
12201 _ACEOF | |
12202 if ac_fn_c_try_compile "$LINENO"; then : | |
12203 | |
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12205 $as_echo "yes" >&6; } | |
12206 sparc_cpu="-mv8" | |
12207 | |
12208 fi | |
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12210 CFLAGS="$old_cflags" | |
12211 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" | |
12212 CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" | |
12213 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;; | |
12214 *-*-darwin*) | |
12215 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char" | |
12216 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char" | |
12217 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";; | |
12218 *-*-os2*) | |
12219 # Use -W instead of -Wextra because gcc on OS/2 is an old version. | |
12220 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" | |
12221 CFLAGS="-O20 -Wall -W -ffast-math -D_REENTRANT -fsigned-char" | |
12222 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";; | |
12223 *) | |
12224 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char" | |
12225 CFLAGS="-O20 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char" | |
12226 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;; | |
12227 esac | |
12228 | |
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5 | |
12230 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; } | |
12231 ac_add_cflags__old_cflags="$CFLAGS" | |
12232 CFLAGS="$CFLAGS -Wdeclaration-after-statement" | |
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12234 /* end confdefs.h. */ | |
12235 #include <stdio.h> | |
12236 int | |
12237 main () | |
12238 { | |
12239 puts("Hello, World!"); return 0; | |
12240 ; | |
12241 return 0; | |
12242 } | |
12243 _ACEOF | |
12244 if ac_fn_c_try_link "$LINENO"; then : | |
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12246 $as_echo "yes" >&6; } | |
12247 else | |
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12249 $as_echo "no" >&6; } | |
12250 CFLAGS="$ac_add_cflags__old_cflags" | |
12251 fi | |
12252 rm -f core conftest.err conftest.$ac_objext \ | |
12253 conftest$ac_exeext conftest.$ac_ext | |
12254 | |
12255 fi | |
12256 CFLAGS="$CFLAGS $cflags_save" | |
12257 | |
12258 | |
12259 ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" | |
12260 if test "x$ac_cv_header_memory_h" = xyes; then : | |
12261 CFLAGS="$CFLAGS -DUSE_MEMORY_H" | |
12262 else | |
12263 : | |
12264 fi | |
12265 | |
12266 | |
12267 | |
12268 | |
12269 | |
12270 | |
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
12272 $as_echo_n "checking for cos in -lm... " >&6; } | |
12273 if ${ac_cv_lib_m_cos+:} false; then : | |
12274 $as_echo_n "(cached) " >&6 | |
12275 else | |
12276 ac_check_lib_save_LIBS=$LIBS | |
12277 LIBS="-lm $LIBS" | |
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12279 /* end confdefs.h. */ | |
12280 | |
12281 /* Override any GCC internal prototype to avoid an error. | |
12282 Use char because int might match the return type of a GCC | |
12283 builtin and then its argument prototype would still apply. */ | |
12284 #ifdef __cplusplus | |
12285 extern "C" | |
12286 #endif | |
12287 char cos (); | |
12288 int | |
12289 main () | |
12290 { | |
12291 return cos (); | |
12292 ; | |
12293 return 0; | |
12294 } | |
12295 _ACEOF | |
12296 if ac_fn_c_try_link "$LINENO"; then : | |
12297 ac_cv_lib_m_cos=yes | |
12298 else | |
12299 ac_cv_lib_m_cos=no | |
12300 fi | |
12301 rm -f core conftest.err conftest.$ac_objext \ | |
12302 conftest$ac_exeext conftest.$ac_ext | |
12303 LIBS=$ac_check_lib_save_LIBS | |
12304 fi | |
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
12306 $as_echo "$ac_cv_lib_m_cos" >&6; } | |
12307 if test "x$ac_cv_lib_m_cos" = xyes; then : | |
12308 VORBIS_LIBS="-lm" | |
12309 else | |
12310 VORBIS_LIBS="" | |
12311 fi | |
12312 | |
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | |
12314 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | |
12315 if ${ac_cv_lib_pthread_pthread_create+:} false; then : | |
12316 $as_echo_n "(cached) " >&6 | |
12317 else | |
12318 ac_check_lib_save_LIBS=$LIBS | |
12319 LIBS="-lpthread $LIBS" | |
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12321 /* end confdefs.h. */ | |
12322 | |
12323 /* Override any GCC internal prototype to avoid an error. | |
12324 Use char because int might match the return type of a GCC | |
12325 builtin and then its argument prototype would still apply. */ | |
12326 #ifdef __cplusplus | |
12327 extern "C" | |
12328 #endif | |
12329 char pthread_create (); | |
12330 int | |
12331 main () | |
12332 { | |
12333 return pthread_create (); | |
12334 ; | |
12335 return 0; | |
12336 } | |
12337 _ACEOF | |
12338 if ac_fn_c_try_link "$LINENO"; then : | |
12339 ac_cv_lib_pthread_pthread_create=yes | |
12340 else | |
12341 ac_cv_lib_pthread_pthread_create=no | |
12342 fi | |
12343 rm -f core conftest.err conftest.$ac_objext \ | |
12344 conftest$ac_exeext conftest.$ac_ext | |
12345 LIBS=$ac_check_lib_save_LIBS | |
12346 fi | |
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 | |
12348 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } | |
12349 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : | |
12350 pthread_lib="-lpthread" | |
12351 else | |
12352 : | |
12353 fi | |
12354 | |
12355 | |
12356 | |
12357 | |
12358 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
12359 if test -n "$ac_tool_prefix"; then | |
12360 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
12361 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12363 $as_echo_n "checking for $ac_word... " >&6; } | |
12364 if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
12365 $as_echo_n "(cached) " >&6 | |
12366 else | |
12367 case $PKG_CONFIG in | |
12368 [\\/]* | ?:[\\/]*) | |
12369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
12370 ;; | |
12371 *) | |
12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12373 for as_dir in $PATH | |
12374 do | |
12375 IFS=$as_save_IFS | |
12376 test -z "$as_dir" && as_dir=. | |
12377 for ac_exec_ext in '' $ac_executable_extensions; do | |
12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12381 break 2 | |
12382 fi | |
12383 done | |
12384 done | |
12385 IFS=$as_save_IFS | |
12386 | |
12387 ;; | |
12388 esac | |
12389 fi | |
12390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12391 if test -n "$PKG_CONFIG"; then | |
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
12393 $as_echo "$PKG_CONFIG" >&6; } | |
12394 else | |
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12396 $as_echo "no" >&6; } | |
12397 fi | |
12398 | |
12399 | |
12400 fi | |
12401 if test -z "$ac_cv_path_PKG_CONFIG"; then | |
12402 ac_pt_PKG_CONFIG=$PKG_CONFIG | |
12403 # Extract the first word of "pkg-config", so it can be a program name with args. | |
12404 set dummy pkg-config; ac_word=$2 | |
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12406 $as_echo_n "checking for $ac_word... " >&6; } | |
12407 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
12408 $as_echo_n "(cached) " >&6 | |
12409 else | |
12410 case $ac_pt_PKG_CONFIG in | |
12411 [\\/]* | ?:[\\/]*) | |
12412 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
12413 ;; | |
12414 *) | |
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12416 for as_dir in $PATH | |
12417 do | |
12418 IFS=$as_save_IFS | |
12419 test -z "$as_dir" && as_dir=. | |
12420 for ac_exec_ext in '' $ac_executable_extensions; do | |
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12422 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12424 break 2 | |
12425 fi | |
12426 done | |
12427 done | |
12428 IFS=$as_save_IFS | |
12429 | |
12430 ;; | |
12431 esac | |
12432 fi | |
12433 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
12434 if test -n "$ac_pt_PKG_CONFIG"; then | |
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
12436 $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
12437 else | |
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12439 $as_echo "no" >&6; } | |
12440 fi | |
12441 | |
12442 if test "x$ac_pt_PKG_CONFIG" = x; then | |
12443 PKG_CONFIG="" | |
12444 else | |
12445 case $cross_compiling:$ac_tool_warned in | |
12446 yes:) | |
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12449 ac_tool_warned=yes ;; | |
12450 esac | |
12451 PKG_CONFIG=$ac_pt_PKG_CONFIG | |
12452 fi | |
12453 else | |
12454 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
12455 fi | |
12456 | |
12457 fi | |
12458 if test -n "$PKG_CONFIG"; then | |
12459 _pkg_min_version=0.9.0 | |
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
12461 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
12462 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12464 $as_echo "yes" >&6; } | |
12465 else | |
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12467 $as_echo "no" >&6; } | |
12468 PKG_CONFIG="" | |
12469 fi | |
12470 | |
12471 fi | |
12472 | |
12473 HAVE_OGG=no | |
12474 if test "x$PKG_CONFIG" != "x" | |
12475 then | |
12476 | |
12477 pkg_failed=no | |
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5 | |
12479 $as_echo_n "checking for OGG... " >&6; } | |
12480 | |
12481 if test -n "$PKG_CONFIG"; then | |
12482 if test -n "$OGG_CFLAGS"; then | |
12483 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS" | |
12484 else | |
12485 if test -n "$PKG_CONFIG" && \ | |
12486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5 | |
12487 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5 | |
12488 ac_status=$? | |
12489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12490 test $ac_status = 0; }; then | |
12491 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null` | |
12492 else | |
12493 pkg_failed=yes | |
12494 fi | |
12495 fi | |
12496 else | |
12497 pkg_failed=untried | |
12498 fi | |
12499 if test -n "$PKG_CONFIG"; then | |
12500 if test -n "$OGG_LIBS"; then | |
12501 pkg_cv_OGG_LIBS="$OGG_LIBS" | |
12502 else | |
12503 if test -n "$PKG_CONFIG" && \ | |
12504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5 | |
12505 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5 | |
12506 ac_status=$? | |
12507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12508 test $ac_status = 0; }; then | |
12509 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null` | |
12510 else | |
12511 pkg_failed=yes | |
12512 fi | |
12513 fi | |
12514 else | |
12515 pkg_failed=untried | |
12516 fi | |
12517 | |
12518 | |
12519 | |
12520 if test $pkg_failed = yes; then | |
12521 | |
12522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12523 _pkg_short_errors_supported=yes | |
12524 else | |
12525 _pkg_short_errors_supported=no | |
12526 fi | |
12527 if test $_pkg_short_errors_supported = yes; then | |
12528 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"` | |
12529 else | |
12530 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"` | |
12531 fi | |
12532 # Put the nasty error message in config.log where it belongs | |
12533 echo "$OGG_PKG_ERRORS" >&5 | |
12534 | |
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12536 $as_echo "no" >&6; } | |
12537 HAVE_OGG=no | |
12538 elif test $pkg_failed = untried; then | |
12539 HAVE_OGG=no | |
12540 else | |
12541 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS | |
12542 OGG_LIBS=$pkg_cv_OGG_LIBS | |
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12544 $as_echo "yes" >&6; } | |
12545 HAVE_OGG=yes | |
12546 fi | |
12547 fi | |
12548 if test "x$HAVE_OGG" = "xno" | |
12549 then | |
12550 | |
12551 # Check whether --with-ogg was given. | |
12552 if test "${with_ogg+set}" = set; then : | |
12553 withval=$with_ogg; ogg_prefix="$withval" | |
12554 else | |
12555 ogg_prefix="" | |
12556 fi | |
12557 | |
12558 | |
12559 # Check whether --with-ogg-libraries was given. | |
12560 if test "${with_ogg_libraries+set}" = set; then : | |
12561 withval=$with_ogg_libraries; ogg_libraries="$withval" | |
12562 else | |
12563 ogg_libraries="" | |
12564 fi | |
12565 | |
12566 | |
12567 # Check whether --with-ogg-includes was given. | |
12568 if test "${with_ogg_includes+set}" = set; then : | |
12569 withval=$with_ogg_includes; ogg_includes="$withval" | |
12570 else | |
12571 ogg_includes="" | |
12572 fi | |
12573 | |
12574 # Check whether --enable-oggtest was given. | |
12575 if test "${enable_oggtest+set}" = set; then : | |
12576 enableval=$enable_oggtest; | |
12577 else | |
12578 enable_oggtest=yes | |
12579 fi | |
12580 | |
12581 | |
12582 if test "x$ogg_libraries" != "x" ; then | |
12583 OGG_LIBS="-L$ogg_libraries" | |
12584 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then | |
12585 OGG_LIBS="" | |
12586 elif test "x$ogg_prefix" != "x" ; then | |
12587 OGG_LIBS="-L$ogg_prefix/lib" | |
12588 elif test "x$prefix" != "xNONE" ; then | |
12589 OGG_LIBS="-L$prefix/lib" | |
12590 fi | |
12591 | |
12592 if test "x$ogg_prefix" != "xno" ; then | |
12593 OGG_LIBS="$OGG_LIBS -logg" | |
12594 fi | |
12595 | |
12596 if test "x$ogg_includes" != "x" ; then | |
12597 OGG_CFLAGS="-I$ogg_includes" | |
12598 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then | |
12599 OGG_CFLAGS="" | |
12600 elif test "x$ogg_prefix" != "x" ; then | |
12601 OGG_CFLAGS="-I$ogg_prefix/include" | |
12602 elif test "x$prefix" != "xNONE"; then | |
12603 OGG_CFLAGS="-I$prefix/include" | |
12604 fi | |
12605 | |
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5 | |
12607 $as_echo_n "checking for Ogg... " >&6; } | |
12608 if test "x$ogg_prefix" = "xno" ; then | |
12609 no_ogg="disabled" | |
12610 enable_oggtest="no" | |
12611 else | |
12612 no_ogg="" | |
12613 fi | |
12614 | |
12615 | |
12616 if test "x$enable_oggtest" = "xyes" ; then | |
12617 ac_save_CFLAGS="$CFLAGS" | |
12618 ac_save_LIBS="$LIBS" | |
12619 CFLAGS="$CFLAGS $OGG_CFLAGS" | |
12620 LIBS="$LIBS $OGG_LIBS" | |
12621 rm -f conf.oggtest | |
12622 if test "$cross_compiling" = yes; then : | |
12623 echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12624 else | |
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12626 /* end confdefs.h. */ | |
12627 | |
12628 #include <stdio.h> | |
12629 #include <stdlib.h> | |
12630 #include <string.h> | |
12631 #include <ogg/ogg.h> | |
12632 | |
12633 int main () | |
12634 { | |
12635 system("touch conf.oggtest"); | |
12636 return 0; | |
12637 } | |
12638 | |
12639 | |
12640 _ACEOF | |
12641 if ac_fn_c_try_run "$LINENO"; then : | |
12642 | |
12643 else | |
12644 no_ogg=yes | |
12645 fi | |
12646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12647 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12648 fi | |
12649 | |
12650 CFLAGS="$ac_save_CFLAGS" | |
12651 LIBS="$ac_save_LIBS" | |
12652 fi | |
12653 | |
12654 if test "x$no_ogg" = "xdisabled" ; then | |
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12656 $as_echo "no" >&6; } | |
12657 as_fn_error $? "must have Ogg installed!" "$LINENO" 5 | |
12658 elif test "x$no_ogg" = "x" ; then | |
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12660 $as_echo "yes" >&6; } | |
12661 : | |
12662 else | |
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12664 $as_echo "no" >&6; } | |
12665 if test -f conf.oggtest ; then | |
12666 : | |
12667 else | |
12668 echo "*** Could not run Ogg test program, checking why..." | |
12669 CFLAGS="$CFLAGS $OGG_CFLAGS" | |
12670 LIBS="$LIBS $OGG_LIBS" | |
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12672 /* end confdefs.h. */ | |
12673 | |
12674 #include <stdio.h> | |
12675 #include <ogg/ogg.h> | |
12676 | |
12677 int | |
12678 main () | |
12679 { | |
12680 return 0; | |
12681 ; | |
12682 return 0; | |
12683 } | |
12684 _ACEOF | |
12685 if ac_fn_c_try_link "$LINENO"; then : | |
12686 echo "*** The test program compiled, but did not run. This usually means" | |
12687 echo "*** that the run-time linker is not finding Ogg or finding the wrong" | |
12688 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" | |
12689 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12690 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12691 echo "*** is required on your system" | |
12692 echo "***" | |
12693 echo "*** If you have an old version installed, it is best to remove it, although" | |
12694 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12695 else | |
12696 echo "*** The test program failed to compile or link. See the file config.log for the" | |
12697 echo "*** exact error that occured. This usually means Ogg was incorrectly installed" | |
12698 echo "*** or that you have moved Ogg since it was installed." | |
12699 fi | |
12700 rm -f core conftest.err conftest.$ac_objext \ | |
12701 conftest$ac_exeext conftest.$ac_ext | |
12702 CFLAGS="$ac_save_CFLAGS" | |
12703 LIBS="$ac_save_LIBS" | |
12704 fi | |
12705 OGG_CFLAGS="" | |
12706 OGG_LIBS="" | |
12707 as_fn_error $? "must have Ogg installed!" "$LINENO" 5 | |
12708 fi | |
12709 | |
12710 | |
12711 rm -f conf.oggtest | |
12712 | |
12713 libs_save=$LIBS | |
12714 LIBS="$OGG_LIBS $VORBIS_LIBS" | |
12715 ac_fn_c_check_func "$LINENO" "oggpack_writealign" "ac_cv_func_oggpack_writealign" | |
12716 if test "x$ac_cv_func_oggpack_writealign" = xyes; then : | |
12717 | |
12718 else | |
12719 as_fn_error $? "Ogg >= 1.0 required !" "$LINENO" 5 | |
12720 fi | |
12721 | |
12722 LIBS=$libs_save | |
12723 fi | |
12724 | |
12725 | |
12726 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
12727 if test "x$ac_cv_type_size_t" = xyes; then : | |
12728 | |
12729 else | |
12730 | |
12731 cat >>confdefs.h <<_ACEOF | |
12732 #define size_t unsigned int | |
12733 _ACEOF | |
12734 | |
12735 fi | |
12736 | |
12737 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
12738 # for constant arguments. Useless! | |
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
12740 $as_echo_n "checking for working alloca.h... " >&6; } | |
12741 if ${ac_cv_working_alloca_h+:} false; then : | |
12742 $as_echo_n "(cached) " >&6 | |
12743 else | |
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12745 /* end confdefs.h. */ | |
12746 #include <alloca.h> | |
12747 int | |
12748 main () | |
12749 { | |
12750 char *p = (char *) alloca (2 * sizeof (int)); | |
12751 if (p) return 0; | |
12752 ; | |
12753 return 0; | |
12754 } | |
12755 _ACEOF | |
12756 if ac_fn_c_try_link "$LINENO"; then : | |
12757 ac_cv_working_alloca_h=yes | |
12758 else | |
12759 ac_cv_working_alloca_h=no | |
12760 fi | |
12761 rm -f core conftest.err conftest.$ac_objext \ | |
12762 conftest$ac_exeext conftest.$ac_ext | |
12763 fi | |
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
12765 $as_echo "$ac_cv_working_alloca_h" >&6; } | |
12766 if test $ac_cv_working_alloca_h = yes; then | |
12767 | |
12768 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
12769 | |
12770 fi | |
12771 | |
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
12773 $as_echo_n "checking for alloca... " >&6; } | |
12774 if ${ac_cv_func_alloca_works+:} false; then : | |
12775 $as_echo_n "(cached) " >&6 | |
12776 else | |
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12778 /* end confdefs.h. */ | |
12779 #ifdef __GNUC__ | |
12780 # define alloca __builtin_alloca | |
12781 #else | |
12782 # ifdef _MSC_VER | |
12783 # include <malloc.h> | |
12784 # define alloca _alloca | |
12785 # else | |
12786 # ifdef HAVE_ALLOCA_H | |
12787 # include <alloca.h> | |
12788 # else | |
12789 # ifdef _AIX | |
12790 #pragma alloca | |
12791 # else | |
12792 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12793 void *alloca (size_t); | |
12794 # endif | |
12795 # endif | |
12796 # endif | |
12797 # endif | |
12798 #endif | |
12799 | |
12800 int | |
12801 main () | |
12802 { | |
12803 char *p = (char *) alloca (1); | |
12804 if (p) return 0; | |
12805 ; | |
12806 return 0; | |
12807 } | |
12808 _ACEOF | |
12809 if ac_fn_c_try_link "$LINENO"; then : | |
12810 ac_cv_func_alloca_works=yes | |
12811 else | |
12812 ac_cv_func_alloca_works=no | |
12813 fi | |
12814 rm -f core conftest.err conftest.$ac_objext \ | |
12815 conftest$ac_exeext conftest.$ac_ext | |
12816 fi | |
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
12818 $as_echo "$ac_cv_func_alloca_works" >&6; } | |
12819 | |
12820 if test $ac_cv_func_alloca_works = yes; then | |
12821 | |
12822 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | |
12823 | |
12824 else | |
12825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
12826 # that cause trouble. Some versions do not even contain alloca or | |
12827 # contain a buggy version. If you still want to use their alloca, | |
12828 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
12829 | |
12830 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
12831 | |
12832 $as_echo "#define C_ALLOCA 1" >>confdefs.h | |
12833 | |
12834 | |
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
12836 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
12837 if ${ac_cv_os_cray+:} false; then : | |
12838 $as_echo_n "(cached) " >&6 | |
12839 else | |
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12841 /* end confdefs.h. */ | |
12842 #if defined CRAY && ! defined CRAY2 | |
12843 webecray | |
12844 #else | |
12845 wenotbecray | |
12846 #endif | |
12847 | |
12848 _ACEOF | |
12849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12850 $EGREP "webecray" >/dev/null 2>&1; then : | |
12851 ac_cv_os_cray=yes | |
12852 else | |
12853 ac_cv_os_cray=no | |
12854 fi | |
12855 rm -f conftest* | |
12856 | |
12857 fi | |
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
12859 $as_echo "$ac_cv_os_cray" >&6; } | |
12860 if test $ac_cv_os_cray = yes; then | |
12861 for ac_func in _getb67 GETB67 getb67; do | |
12862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
12865 | |
12866 cat >>confdefs.h <<_ACEOF | |
12867 #define CRAY_STACKSEG_END $ac_func | |
12868 _ACEOF | |
12869 | |
12870 break | |
12871 fi | |
12872 | |
12873 done | |
12874 fi | |
12875 | |
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
12877 $as_echo_n "checking stack direction for C alloca... " >&6; } | |
12878 if ${ac_cv_c_stack_direction+:} false; then : | |
12879 $as_echo_n "(cached) " >&6 | |
12880 else | |
12881 if test "$cross_compiling" = yes; then : | |
12882 ac_cv_c_stack_direction=0 | |
12883 else | |
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12885 /* end confdefs.h. */ | |
12886 $ac_includes_default | |
12887 int | |
12888 find_stack_direction () | |
12889 { | |
12890 static char *addr = 0; | |
12891 auto char dummy; | |
12892 if (addr == 0) | |
12893 { | |
12894 addr = &dummy; | |
12895 return find_stack_direction (); | |
12896 } | |
12897 else | |
12898 return (&dummy > addr) ? 1 : -1; | |
12899 } | |
12900 | |
12901 int | |
12902 main () | |
12903 { | |
12904 return find_stack_direction () < 0; | |
12905 } | |
12906 _ACEOF | |
12907 if ac_fn_c_try_run "$LINENO"; then : | |
12908 ac_cv_c_stack_direction=1 | |
12909 else | |
12910 ac_cv_c_stack_direction=-1 | |
12911 fi | |
12912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12913 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12914 fi | |
12915 | |
12916 fi | |
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
12918 $as_echo "$ac_cv_c_stack_direction" >&6; } | |
12919 cat >>confdefs.h <<_ACEOF | |
12920 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
12921 _ACEOF | |
12922 | |
12923 | |
12924 fi | |
12925 | |
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 | |
12927 $as_echo_n "checking for working memcmp... " >&6; } | |
12928 if ${ac_cv_func_memcmp_working+:} false; then : | |
12929 $as_echo_n "(cached) " >&6 | |
12930 else | |
12931 if test "$cross_compiling" = yes; then : | |
12932 ac_cv_func_memcmp_working=no | |
12933 else | |
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12935 /* end confdefs.h. */ | |
12936 $ac_includes_default | |
12937 int | |
12938 main () | |
12939 { | |
12940 | |
12941 /* Some versions of memcmp are not 8-bit clean. */ | |
12942 char c0 = '\100', c1 = '\200', c2 = '\201'; | |
12943 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
12944 return 1; | |
12945 | |
12946 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
12947 or more and with at least one buffer not starting on a 4-byte boundary. | |
12948 William Lewis provided this test program. */ | |
12949 { | |
12950 char foo[21]; | |
12951 char bar[21]; | |
12952 int i; | |
12953 for (i = 0; i < 4; i++) | |
12954 { | |
12955 char *a = foo + i; | |
12956 char *b = bar + i; | |
12957 strcpy (a, "--------01111111"); | |
12958 strcpy (b, "--------10000000"); | |
12959 if (memcmp (a, b, 16) >= 0) | |
12960 return 1; | |
12961 } | |
12962 return 0; | |
12963 } | |
12964 | |
12965 ; | |
12966 return 0; | |
12967 } | |
12968 _ACEOF | |
12969 if ac_fn_c_try_run "$LINENO"; then : | |
12970 ac_cv_func_memcmp_working=yes | |
12971 else | |
12972 ac_cv_func_memcmp_working=no | |
12973 fi | |
12974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12975 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12976 fi | |
12977 | |
12978 fi | |
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 | |
12980 $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
12981 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
12982 *" memcmp.$ac_objext "* ) ;; | |
12983 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
12984 ;; | |
12985 esac | |
12986 | |
12987 | |
12988 | |
12989 | |
12990 | |
12991 | |
12992 | |
12993 | |
12994 | |
12995 | |
12996 | |
12997 ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile doc/libvorbis/Makefile doc/Doxyfile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc" | |
12998 | |
12999 cat >confcache <<\_ACEOF | |
13000 # This file is a shell script that caches the results of configure | |
13001 # tests run on this system so they can be shared between configure | |
13002 # scripts and configure runs, see configure's option --config-cache. | |
13003 # It is not useful on other systems. If it contains results you don't | |
13004 # want to keep, you may remove or edit it. | |
13005 # | |
13006 # config.status only pays attention to the cache file if you give it | |
13007 # the --recheck option to rerun configure. | |
13008 # | |
13009 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13010 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13011 # following values. | |
13012 | |
13013 _ACEOF | |
13014 | |
13015 # The following way of writing the cache mishandles newlines in values, | |
13016 # but we know of no workaround that is simple, portable, and efficient. | |
13017 # So, we kill variables containing newlines. | |
13018 # Ultrix sh set writes to stderr and can't be redirected directly, | |
13019 # and sets the high bit in the cache file unless we assign to the vars. | |
13020 ( | |
13021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13022 eval ac_val=\$$ac_var | |
13023 case $ac_val in #( | |
13024 *${as_nl}*) | |
13025 case $ac_var in #( | |
13026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
13027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
13028 esac | |
13029 case $ac_var in #( | |
13030 _ | IFS | as_nl) ;; #( | |
13031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
13032 *) { eval $ac_var=; unset $ac_var;} ;; | |
13033 esac ;; | |
13034 esac | |
13035 done | |
13036 | |
13037 (set) 2>&1 | | |
13038 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
13039 *${as_nl}ac_space=\ *) | |
13040 # `set' does not quote correctly, so add quotes: double-quote | |
13041 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
13042 sed -n \ | |
13043 "s/'/'\\\\''/g; | |
13044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13045 ;; #( | |
13046 *) | |
13047 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
13049 ;; | |
13050 esac | | |
13051 sort | |
13052 ) | | |
13053 sed ' | |
13054 /^ac_cv_env_/b end | |
13055 t clear | |
13056 :clear | |
13057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13058 t end | |
13059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13060 :end' >>confcache | |
13061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13062 if test -w "$cache_file"; then | |
13063 if test "x$cache_file" != "x/dev/null"; then | |
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
13065 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
13066 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
13067 cat confcache >"$cache_file" | |
13068 else | |
13069 case $cache_file in #( | |
13070 */* | ?:*) | |
13071 mv -f confcache "$cache_file"$$ && | |
13072 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
13073 *) | |
13074 mv -f confcache "$cache_file" ;; | |
13075 esac | |
13076 fi | |
13077 fi | |
13078 else | |
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
13080 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
13081 fi | |
13082 fi | |
13083 rm -f confcache | |
13084 | |
13085 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13086 # Let make expand exec_prefix. | |
13087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13088 | |
13089 DEFS=-DHAVE_CONFIG_H | |
13090 | |
13091 ac_libobjs= | |
13092 ac_ltlibobjs= | |
13093 U= | |
13094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
13095 # 1. Remove the extension, and $U if already installed. | |
13096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
13097 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13099 # will be set to the directory where LIBOBJS objects are built. | |
13100 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
13101 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
13102 done | |
13103 LIBOBJS=$ac_libobjs | |
13104 | |
13105 LTLIBOBJS=$ac_ltlibobjs | |
13106 | |
13107 | |
13108 if test -n "$EXEEXT"; then | |
13109 am__EXEEXT_TRUE= | |
13110 am__EXEEXT_FALSE='#' | |
13111 else | |
13112 am__EXEEXT_TRUE='#' | |
13113 am__EXEEXT_FALSE= | |
13114 fi | |
13115 | |
13116 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
13117 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
13118 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13119 fi | |
13120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
13121 as_fn_error $? "conditional \"AMDEP\" was never defined. | |
13122 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13123 fi | |
13124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
13125 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
13126 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13127 fi | |
13128 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then | |
13129 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. | |
13130 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13131 fi | |
13132 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then | |
13133 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. | |
13134 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13135 fi | |
13136 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then | |
13137 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. | |
13138 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13139 fi | |
13140 | |
13141 : "${CONFIG_STATUS=./config.status}" | |
13142 ac_write_fail=0 | |
13143 ac_clean_files_save=$ac_clean_files | |
13144 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
13146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13147 as_write_fail=0 | |
13148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
13149 #! $SHELL | |
13150 # Generated by $as_me. | |
13151 # Run this file to recreate the current configuration. | |
13152 # Compiler output produced by configure, useful for debugging | |
13153 # configure, is in config.log if it exists. | |
13154 | |
13155 debug=false | |
13156 ac_cs_recheck=false | |
13157 ac_cs_silent=false | |
13158 | |
13159 SHELL=\${CONFIG_SHELL-$SHELL} | |
13160 export SHELL | |
13161 _ASEOF | |
13162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13163 ## -------------------- ## | |
13164 ## M4sh Initialization. ## | |
13165 ## -------------------- ## | |
13166 | |
13167 # Be more Bourne compatible | |
13168 DUALCASE=1; export DUALCASE # for MKS sh | |
13169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13170 emulate sh | |
13171 NULLCMD=: | |
13172 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13173 # is contrary to our usage. Disable this feature. | |
13174 alias -g '${1+"$@"}'='"$@"' | |
13175 setopt NO_GLOB_SUBST | |
13176 else | |
13177 case `(set -o) 2>/dev/null` in #( | |
13178 *posix*) : | |
13179 set -o posix ;; #( | |
13180 *) : | |
13181 ;; | |
13182 esac | |
13183 fi | |
13184 | |
13185 | |
13186 as_nl=' | |
13187 ' | |
13188 export as_nl | |
13189 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13190 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13193 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
13194 # but without wasting forks for bash or zsh. | |
13195 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13196 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13197 as_echo='print -r --' | |
13198 as_echo_n='print -rn --' | |
13199 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13200 as_echo='printf %s\n' | |
13201 as_echo_n='printf %s' | |
13202 else | |
13203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13204 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13205 as_echo_n='/usr/ucb/echo -n' | |
13206 else | |
13207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13208 as_echo_n_body='eval | |
13209 arg=$1; | |
13210 case $arg in #( | |
13211 *"$as_nl"*) | |
13212 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13213 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13214 esac; | |
13215 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13216 ' | |
13217 export as_echo_n_body | |
13218 as_echo_n='sh -c $as_echo_n_body as_echo' | |
13219 fi | |
13220 export as_echo_body | |
13221 as_echo='sh -c $as_echo_body as_echo' | |
13222 fi | |
13223 | |
13224 # The user is always right. | |
13225 if test "${PATH_SEPARATOR+set}" != set; then | |
13226 PATH_SEPARATOR=: | |
13227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13229 PATH_SEPARATOR=';' | |
13230 } | |
13231 fi | |
13232 | |
13233 | |
13234 # IFS | |
13235 # We need space, tab and new line, in precisely that order. Quoting is | |
13236 # there to prevent editors from complaining about space-tab. | |
13237 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13238 # splitting by setting IFS to empty value.) | |
13239 IFS=" "" $as_nl" | |
13240 | |
13241 # Find who we are. Look in the path if we contain no directory separator. | |
13242 as_myself= | |
13243 case $0 in #(( | |
13244 *[\\/]* ) as_myself=$0 ;; | |
13245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13246 for as_dir in $PATH | |
13247 do | |
13248 IFS=$as_save_IFS | |
13249 test -z "$as_dir" && as_dir=. | |
13250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13251 done | |
13252 IFS=$as_save_IFS | |
13253 | |
13254 ;; | |
13255 esac | |
13256 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13257 # in which case we are not to be found in the path. | |
13258 if test "x$as_myself" = x; then | |
13259 as_myself=$0 | |
13260 fi | |
13261 if test ! -f "$as_myself"; then | |
13262 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
13263 exit 1 | |
13264 fi | |
13265 | |
13266 # Unset variables that we do not need and which cause bugs (e.g. in | |
13267 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13268 # suppresses any "Segmentation fault" message there. '((' could | |
13269 # trigger a bug in pdksh 5.2.14. | |
13270 for as_var in BASH_ENV ENV MAIL MAILPATH | |
13271 do eval test x\${$as_var+set} = xset \ | |
13272 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
13273 done | |
13274 PS1='$ ' | |
13275 PS2='> ' | |
13276 PS4='+ ' | |
13277 | |
13278 # NLS nuisances. | |
13279 LC_ALL=C | |
13280 export LC_ALL | |
13281 LANGUAGE=C | |
13282 export LANGUAGE | |
13283 | |
13284 # CDPATH. | |
13285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13286 | |
13287 | |
13288 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
13289 # ---------------------------------------- | |
13290 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
13291 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
13292 # script with STATUS, using 1 if that was 0. | |
13293 as_fn_error () | |
13294 { | |
13295 as_status=$1; test $as_status -eq 0 && as_status=1 | |
13296 if test "$4"; then | |
13297 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13298 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
13299 fi | |
13300 $as_echo "$as_me: error: $2" >&2 | |
13301 as_fn_exit $as_status | |
13302 } # as_fn_error | |
13303 | |
13304 | |
13305 # as_fn_set_status STATUS | |
13306 # ----------------------- | |
13307 # Set $? to STATUS, without forking. | |
13308 as_fn_set_status () | |
13309 { | |
13310 return $1 | |
13311 } # as_fn_set_status | |
13312 | |
13313 # as_fn_exit STATUS | |
13314 # ----------------- | |
13315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13316 as_fn_exit () | |
13317 { | |
13318 set +e | |
13319 as_fn_set_status $1 | |
13320 exit $1 | |
13321 } # as_fn_exit | |
13322 | |
13323 # as_fn_unset VAR | |
13324 # --------------- | |
13325 # Portably unset VAR. | |
13326 as_fn_unset () | |
13327 { | |
13328 { eval $1=; unset $1;} | |
13329 } | |
13330 as_unset=as_fn_unset | |
13331 # as_fn_append VAR VALUE | |
13332 # ---------------------- | |
13333 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13334 # advantage of any shell optimizations that allow amortized linear growth over | |
13335 # repeated appends, instead of the typical quadratic growth present in naive | |
13336 # implementations. | |
13337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13338 eval 'as_fn_append () | |
13339 { | |
13340 eval $1+=\$2 | |
13341 }' | |
13342 else | |
13343 as_fn_append () | |
13344 { | |
13345 eval $1=\$$1\$2 | |
13346 } | |
13347 fi # as_fn_append | |
13348 | |
13349 # as_fn_arith ARG... | |
13350 # ------------------ | |
13351 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13352 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13353 # must be portable across $(()) and expr. | |
13354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13355 eval 'as_fn_arith () | |
13356 { | |
13357 as_val=$(( $* )) | |
13358 }' | |
13359 else | |
13360 as_fn_arith () | |
13361 { | |
13362 as_val=`expr "$@" || test $? -eq 1` | |
13363 } | |
13364 fi # as_fn_arith | |
13365 | |
13366 | |
13367 if expr a : '\(a\)' >/dev/null 2>&1 && | |
13368 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13369 as_expr=expr | |
13370 else | |
13371 as_expr=false | |
13372 fi | |
13373 | |
13374 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
13375 as_basename=basename | |
13376 else | |
13377 as_basename=false | |
13378 fi | |
13379 | |
13380 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
13381 as_dirname=dirname | |
13382 else | |
13383 as_dirname=false | |
13384 fi | |
13385 | |
13386 as_me=`$as_basename -- "$0" || | |
13387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13388 X"$0" : 'X\(//\)$' \| \ | |
13389 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
13390 $as_echo X/"$0" | | |
13391 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13392 s//\1/ | |
13393 q | |
13394 } | |
13395 /^X\/\(\/\/\)$/{ | |
13396 s//\1/ | |
13397 q | |
13398 } | |
13399 /^X\/\(\/\).*/{ | |
13400 s//\1/ | |
13401 q | |
13402 } | |
13403 s/.*/./; q'` | |
13404 | |
13405 # Avoid depending upon Character Ranges. | |
13406 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13407 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13408 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13409 as_cr_digits='0123456789' | |
13410 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13411 | |
13412 ECHO_C= ECHO_N= ECHO_T= | |
13413 case `echo -n x` in #((((( | |
13414 -n*) | |
13415 case `echo 'xy\c'` in | |
13416 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13417 xy) ECHO_C='\c';; | |
13418 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
13419 ECHO_T=' ';; | |
13420 esac;; | |
13421 *) | |
13422 ECHO_N='-n';; | |
13423 esac | |
13424 | |
13425 rm -f conf$$ conf$$.exe conf$$.file | |
13426 if test -d conf$$.dir; then | |
13427 rm -f conf$$.dir/conf$$.file | |
13428 else | |
13429 rm -f conf$$.dir | |
13430 mkdir conf$$.dir 2>/dev/null | |
13431 fi | |
13432 if (echo >conf$$.file) 2>/dev/null; then | |
13433 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13434 as_ln_s='ln -s' | |
13435 # ... but there are two gotchas: | |
13436 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13437 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13438 # In both cases, we have to default to `cp -p'. | |
13439 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13440 as_ln_s='cp -p' | |
13441 elif ln conf$$.file conf$$ 2>/dev/null; then | |
13442 as_ln_s=ln | |
13443 else | |
13444 as_ln_s='cp -p' | |
13445 fi | |
13446 else | |
13447 as_ln_s='cp -p' | |
13448 fi | |
13449 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
13450 rmdir conf$$.dir 2>/dev/null | |
13451 | |
13452 | |
13453 # as_fn_mkdir_p | |
13454 # ------------- | |
13455 # Create "$as_dir" as a directory, including parents if necessary. | |
13456 as_fn_mkdir_p () | |
13457 { | |
13458 | |
13459 case $as_dir in #( | |
13460 -*) as_dir=./$as_dir;; | |
13461 esac | |
13462 test -d "$as_dir" || eval $as_mkdir_p || { | |
13463 as_dirs= | |
13464 while :; do | |
13465 case $as_dir in #( | |
13466 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13467 *) as_qdir=$as_dir;; | |
13468 esac | |
13469 as_dirs="'$as_qdir' $as_dirs" | |
13470 as_dir=`$as_dirname -- "$as_dir" || | |
13471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13472 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13473 X"$as_dir" : 'X\(//\)$' \| \ | |
13474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13475 $as_echo X"$as_dir" | | |
13476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13477 s//\1/ | |
13478 q | |
13479 } | |
13480 /^X\(\/\/\)[^/].*/{ | |
13481 s//\1/ | |
13482 q | |
13483 } | |
13484 /^X\(\/\/\)$/{ | |
13485 s//\1/ | |
13486 q | |
13487 } | |
13488 /^X\(\/\).*/{ | |
13489 s//\1/ | |
13490 q | |
13491 } | |
13492 s/.*/./; q'` | |
13493 test -d "$as_dir" && break | |
13494 done | |
13495 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13496 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
13497 | |
13498 | |
13499 } # as_fn_mkdir_p | |
13500 if mkdir -p . 2>/dev/null; then | |
13501 as_mkdir_p='mkdir -p "$as_dir"' | |
13502 else | |
13503 test -d ./-p && rmdir ./-p | |
13504 as_mkdir_p=false | |
13505 fi | |
13506 | |
13507 if test -x / >/dev/null 2>&1; then | |
13508 as_test_x='test -x' | |
13509 else | |
13510 if ls -dL / >/dev/null 2>&1; then | |
13511 as_ls_L_option=L | |
13512 else | |
13513 as_ls_L_option= | |
13514 fi | |
13515 as_test_x=' | |
13516 eval sh -c '\'' | |
13517 if test -d "$1"; then | |
13518 test -d "$1/."; | |
13519 else | |
13520 case $1 in #( | |
13521 -*)set "./$1";; | |
13522 esac; | |
13523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
13524 ???[sx]*):;;*)false;;esac;fi | |
13525 '\'' sh | |
13526 ' | |
13527 fi | |
13528 as_executable_p=$as_test_x | |
13529 | |
13530 # Sed expression to map a string onto a valid CPP name. | |
13531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
13532 | |
13533 # Sed expression to map a string onto a valid variable name. | |
13534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
13535 | |
13536 | |
13537 exec 6>&1 | |
13538 ## ----------------------------------- ## | |
13539 ## Main body of $CONFIG_STATUS script. ## | |
13540 ## ----------------------------------- ## | |
13541 _ASEOF | |
13542 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
13543 | |
13544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13545 # Save the log message, to keep $0 and so on meaningful, and to | |
13546 # report actual input values of CONFIG_FILES etc. instead of their | |
13547 # values after options handling. | |
13548 ac_log=" | |
13549 This file was extended by libvorbis $as_me 1.3.3, which was | |
13550 generated by GNU Autoconf 2.68. Invocation command line was | |
13551 | |
13552 CONFIG_FILES = $CONFIG_FILES | |
13553 CONFIG_HEADERS = $CONFIG_HEADERS | |
13554 CONFIG_LINKS = $CONFIG_LINKS | |
13555 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13556 $ $0 $@ | |
13557 | |
13558 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
13559 " | |
13560 | |
13561 _ACEOF | |
13562 | |
13563 case $ac_config_files in *" | |
13564 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13565 esac | |
13566 | |
13567 case $ac_config_headers in *" | |
13568 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13569 esac | |
13570 | |
13571 | |
13572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13573 # Files that config.status was made for. | |
13574 config_files="$ac_config_files" | |
13575 config_headers="$ac_config_headers" | |
13576 config_commands="$ac_config_commands" | |
13577 | |
13578 _ACEOF | |
13579 | |
13580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13581 ac_cs_usage="\ | |
13582 \`$as_me' instantiates files and other configuration actions | |
13583 from templates according to the current configuration. Unless the files | |
13584 and actions are specified as TAGs, all are instantiated by default. | |
13585 | |
13586 Usage: $0 [OPTION]... [TAG]... | |
13587 | |
13588 -h, --help print this help, then exit | |
13589 -V, --version print version number and configuration settings, then exit | |
13590 --config print configuration, then exit | |
13591 -q, --quiet, --silent | |
13592 do not print progress messages | |
13593 -d, --debug don't remove temporary files | |
13594 --recheck update $as_me by reconfiguring in the same conditions | |
13595 --file=FILE[:TEMPLATE] | |
13596 instantiate the configuration file FILE | |
13597 --header=FILE[:TEMPLATE] | |
13598 instantiate the configuration header FILE | |
13599 | |
13600 Configuration files: | |
13601 $config_files | |
13602 | |
13603 Configuration headers: | |
13604 $config_headers | |
13605 | |
13606 Configuration commands: | |
13607 $config_commands | |
13608 | |
13609 Report bugs to <vorbis-dev@xiph.org>." | |
13610 | |
13611 _ACEOF | |
13612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13613 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
13614 ac_cs_version="\\ | |
13615 libvorbis config.status 1.3.3 | |
13616 configured by $0, generated by GNU Autoconf 2.68, | |
13617 with options \\"\$ac_cs_config\\" | |
13618 | |
13619 Copyright (C) 2010 Free Software Foundation, Inc. | |
13620 This config.status script is free software; the Free Software Foundation | |
13621 gives unlimited permission to copy, distribute and modify it." | |
13622 | |
13623 ac_pwd='$ac_pwd' | |
13624 srcdir='$srcdir' | |
13625 INSTALL='$INSTALL' | |
13626 MKDIR_P='$MKDIR_P' | |
13627 AWK='$AWK' | |
13628 test -n "\$AWK" || AWK=awk | |
13629 _ACEOF | |
13630 | |
13631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13632 # The default lists apply if the user does not specify any file. | |
13633 ac_need_defaults=: | |
13634 while test $# != 0 | |
13635 do | |
13636 case $1 in | |
13637 --*=?*) | |
13638 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13639 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13640 ac_shift=: | |
13641 ;; | |
13642 --*=) | |
13643 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13644 ac_optarg= | |
13645 ac_shift=: | |
13646 ;; | |
13647 *) | |
13648 ac_option=$1 | |
13649 ac_optarg=$2 | |
13650 ac_shift=shift | |
13651 ;; | |
13652 esac | |
13653 | |
13654 case $ac_option in | |
13655 # Handling of the options. | |
13656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13657 ac_cs_recheck=: ;; | |
13658 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13659 $as_echo "$ac_cs_version"; exit ;; | |
13660 --config | --confi | --conf | --con | --co | --c ) | |
13661 $as_echo "$ac_cs_config"; exit ;; | |
13662 --debug | --debu | --deb | --de | --d | -d ) | |
13663 debug=: ;; | |
13664 --file | --fil | --fi | --f ) | |
13665 $ac_shift | |
13666 case $ac_optarg in | |
13667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13668 '') as_fn_error $? "missing file argument" ;; | |
13669 esac | |
13670 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
13671 ac_need_defaults=false;; | |
13672 --header | --heade | --head | --hea ) | |
13673 $ac_shift | |
13674 case $ac_optarg in | |
13675 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13676 esac | |
13677 as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
13678 ac_need_defaults=false;; | |
13679 --he | --h) | |
13680 # Conflict between --help and --header | |
13681 as_fn_error $? "ambiguous option: \`$1' | |
13682 Try \`$0 --help' for more information.";; | |
13683 --help | --hel | -h ) | |
13684 $as_echo "$ac_cs_usage"; exit ;; | |
13685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13686 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13687 ac_cs_silent=: ;; | |
13688 | |
13689 # This is an error. | |
13690 -*) as_fn_error $? "unrecognized option: \`$1' | |
13691 Try \`$0 --help' for more information." ;; | |
13692 | |
13693 *) as_fn_append ac_config_targets " $1" | |
13694 ac_need_defaults=false ;; | |
13695 | |
13696 esac | |
13697 shift | |
13698 done | |
13699 | |
13700 ac_configure_extra_args= | |
13701 | |
13702 if $ac_cs_silent; then | |
13703 exec 6>/dev/null | |
13704 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13705 fi | |
13706 | |
13707 _ACEOF | |
13708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13709 if \$ac_cs_recheck; then | |
13710 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
13711 shift | |
13712 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13713 CONFIG_SHELL='$SHELL' | |
13714 export CONFIG_SHELL | |
13715 exec "\$@" | |
13716 fi | |
13717 | |
13718 _ACEOF | |
13719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13720 exec 5>>config.log | |
13721 { | |
13722 echo | |
13723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13724 ## Running $as_me. ## | |
13725 _ASBOX | |
13726 $as_echo "$ac_log" | |
13727 } >&5 | |
13728 | |
13729 _ACEOF | |
13730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13731 # | |
13732 # INIT-COMMANDS | |
13733 # | |
13734 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
13735 | |
13736 | |
13737 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13738 # if CDPATH is set. | |
13739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13740 | |
13741 sed_quote_subst='$sed_quote_subst' | |
13742 double_quote_subst='$double_quote_subst' | |
13743 delay_variable_subst='$delay_variable_subst' | |
13744 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' | |
13745 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
13746 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13747 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
13748 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13749 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13750 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13751 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13752 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
13753 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
13754 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13755 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13756 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13757 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13758 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13759 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13760 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13761 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13762 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13763 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13764 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13765 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13766 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13767 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13768 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13769 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13770 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13771 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13772 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13773 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13774 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13775 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13776 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13777 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13778 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13779 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13780 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13781 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
13782 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
13783 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
13784 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13785 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13786 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
13787 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13788 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13789 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13790 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13791 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13792 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13793 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13794 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13795 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13796 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13797 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13798 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
13799 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
13800 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"`' | |
13801 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13802 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
13803 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
13804 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13805 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13806 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13807 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13808 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13809 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13810 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13811 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
13812 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13813 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13814 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13815 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13816 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13817 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13818 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13819 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13820 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13821 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13822 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13823 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13824 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13825 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13826 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13827 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13828 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13829 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13830 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13831 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13832 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13833 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13834 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13835 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
13836 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13837 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13838 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13839 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13840 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13841 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13842 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13843 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13844 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13845 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13846 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13847 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13848 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13849 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13850 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13851 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13852 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13853 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13854 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13855 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13856 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13857 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13858 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13859 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13860 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13861 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13862 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13863 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13864 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13865 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13866 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13867 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
13868 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
13869 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
13870 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13871 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13872 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13873 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13874 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
13875 | |
13876 LTCC='$LTCC' | |
13877 LTCFLAGS='$LTCFLAGS' | |
13878 compiler='$compiler_DEFAULT' | |
13879 | |
13880 # A function that is used when there is no print builtin or printf. | |
13881 func_fallback_echo () | |
13882 { | |
13883 eval 'cat <<_LTECHO_EOF | |
13884 \$1 | |
13885 _LTECHO_EOF' | |
13886 } | |
13887 | |
13888 # Quote evaled strings. | |
13889 for var in AS \ | |
13890 DLLTOOL \ | |
13891 OBJDUMP \ | |
13892 SHELL \ | |
13893 ECHO \ | |
13894 SED \ | |
13895 GREP \ | |
13896 EGREP \ | |
13897 FGREP \ | |
13898 LD \ | |
13899 NM \ | |
13900 LN_S \ | |
13901 lt_SP2NL \ | |
13902 lt_NL2SP \ | |
13903 reload_flag \ | |
13904 deplibs_check_method \ | |
13905 file_magic_cmd \ | |
13906 file_magic_glob \ | |
13907 want_nocaseglob \ | |
13908 sharedlib_from_linklib_cmd \ | |
13909 AR \ | |
13910 AR_FLAGS \ | |
13911 archiver_list_spec \ | |
13912 STRIP \ | |
13913 RANLIB \ | |
13914 CC \ | |
13915 CFLAGS \ | |
13916 compiler \ | |
13917 lt_cv_sys_global_symbol_pipe \ | |
13918 lt_cv_sys_global_symbol_to_cdecl \ | |
13919 lt_cv_sys_global_symbol_to_c_name_address \ | |
13920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
13921 nm_file_list_spec \ | |
13922 lt_prog_compiler_no_builtin_flag \ | |
13923 lt_prog_compiler_pic \ | |
13924 lt_prog_compiler_wl \ | |
13925 lt_prog_compiler_static \ | |
13926 lt_cv_prog_compiler_c_o \ | |
13927 need_locks \ | |
13928 MANIFEST_TOOL \ | |
13929 DSYMUTIL \ | |
13930 NMEDIT \ | |
13931 LIPO \ | |
13932 OTOOL \ | |
13933 OTOOL64 \ | |
13934 shrext_cmds \ | |
13935 export_dynamic_flag_spec \ | |
13936 whole_archive_flag_spec \ | |
13937 compiler_needs_object \ | |
13938 with_gnu_ld \ | |
13939 allow_undefined_flag \ | |
13940 no_undefined_flag \ | |
13941 hardcode_libdir_flag_spec \ | |
13942 hardcode_libdir_flag_spec_ld \ | |
13943 hardcode_libdir_separator \ | |
13944 exclude_expsyms \ | |
13945 include_expsyms \ | |
13946 file_list_spec \ | |
13947 variables_saved_for_relink \ | |
13948 libname_spec \ | |
13949 library_names_spec \ | |
13950 soname_spec \ | |
13951 install_override_mode \ | |
13952 finish_eval \ | |
13953 old_striplib \ | |
13954 striplib; do | |
13955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13956 *[\\\\\\\`\\"\\\$]*) | |
13957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13958 ;; | |
13959 *) | |
13960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13961 ;; | |
13962 esac | |
13963 done | |
13964 | |
13965 # Double-quote double-evaled strings. | |
13966 for var in reload_cmds \ | |
13967 old_postinstall_cmds \ | |
13968 old_postuninstall_cmds \ | |
13969 old_archive_cmds \ | |
13970 extract_expsyms_cmds \ | |
13971 old_archive_from_new_cmds \ | |
13972 old_archive_from_expsyms_cmds \ | |
13973 archive_cmds \ | |
13974 archive_expsym_cmds \ | |
13975 module_cmds \ | |
13976 module_expsym_cmds \ | |
13977 export_symbols_cmds \ | |
13978 prelink_cmds \ | |
13979 postlink_cmds \ | |
13980 postinstall_cmds \ | |
13981 postuninstall_cmds \ | |
13982 finish_cmds \ | |
13983 sys_lib_search_path_spec \ | |
13984 sys_lib_dlsearch_path_spec; do | |
13985 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13986 *[\\\\\\\`\\"\\\$]*) | |
13987 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13988 ;; | |
13989 *) | |
13990 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13991 ;; | |
13992 esac | |
13993 done | |
13994 | |
13995 ac_aux_dir='$ac_aux_dir' | |
13996 xsi_shell='$xsi_shell' | |
13997 lt_shell_append='$lt_shell_append' | |
13998 | |
13999 # See if we are running on zsh, and set the options which allow our | |
14000 # commands through without removal of \ escapes INIT. | |
14001 if test -n "\${ZSH_VERSION+set}" ; then | |
14002 setopt NO_GLOB_SUBST | |
14003 fi | |
14004 | |
14005 | |
14006 PACKAGE='$PACKAGE' | |
14007 VERSION='$VERSION' | |
14008 TIMESTAMP='$TIMESTAMP' | |
14009 RM='$RM' | |
14010 ofile='$ofile' | |
14011 | |
14012 | |
14013 | |
14014 | |
14015 _ACEOF | |
14016 | |
14017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14018 | |
14019 # Handling of arguments. | |
14020 for ac_config_target in $ac_config_targets | |
14021 do | |
14022 case $ac_config_target in | |
14023 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
14024 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
14025 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
14026 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14027 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | |
14028 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
14029 "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;; | |
14030 "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;; | |
14031 "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;; | |
14032 "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;; | |
14033 "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;; | |
14034 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14035 "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;; | |
14036 "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;; | |
14037 "doc/libvorbis/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libvorbis/Makefile" ;; | |
14038 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | |
14039 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
14040 "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;; | |
14041 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
14042 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
14043 "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;; | |
14044 "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;; | |
14045 "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;; | |
14046 "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;; | |
14047 "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;; | |
14048 "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;; | |
14049 "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;; | |
14050 "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;; | |
14051 | |
14052 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
14053 esac | |
14054 done | |
14055 | |
14056 | |
14057 # If the user did not use the arguments to specify the items to instantiate, | |
14058 # then the envvar interface is used. Set only those that are not. | |
14059 # We use the long form for the default assignment because of an extremely | |
14060 # bizarre bug on SunOS 4.1.3. | |
14061 if $ac_need_defaults; then | |
14062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14065 fi | |
14066 | |
14067 # Have a temporary directory for convenience. Make it in the build tree | |
14068 # simply because there is no reason against having it here, and in addition, | |
14069 # creating and moving files from /tmp can sometimes cause problems. | |
14070 # Hook for its removal unless debugging. | |
14071 # Note that there is a small window in which the directory will not be cleaned: | |
14072 # after its creation but before its name has been assigned to `$tmp'. | |
14073 $debug || | |
14074 { | |
14075 tmp= ac_tmp= | |
14076 trap 'exit_status=$? | |
14077 : "${ac_tmp:=$tmp}" | |
14078 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
14079 ' 0 | |
14080 trap 'as_fn_exit 1' 1 2 13 15 | |
14081 } | |
14082 # Create a (secure) tmp directory for tmp files. | |
14083 | |
14084 { | |
14085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
14086 test -d "$tmp" | |
14087 } || | |
14088 { | |
14089 tmp=./conf$$-$RANDOM | |
14090 (umask 077 && mkdir "$tmp") | |
14091 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
14092 ac_tmp=$tmp | |
14093 | |
14094 # Set up the scripts for CONFIG_FILES section. | |
14095 # No need to generate them if there are no CONFIG_FILES. | |
14096 # This happens for instance with `./config.status config.h'. | |
14097 if test -n "$CONFIG_FILES"; then | |
14098 | |
14099 | |
14100 ac_cr=`echo X | tr X '\015'` | |
14101 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14102 # But we know of no other shell where ac_cr would be empty at this | |
14103 # point, so we can use a bashism as a fallback. | |
14104 if test "x$ac_cr" = x; then | |
14105 eval ac_cr=\$\'\\r\' | |
14106 fi | |
14107 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14108 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14109 ac_cs_awk_cr='\\r' | |
14110 else | |
14111 ac_cs_awk_cr=$ac_cr | |
14112 fi | |
14113 | |
14114 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
14115 _ACEOF | |
14116 | |
14117 | |
14118 { | |
14119 echo "cat >conf$$subs.awk <<_ACEOF" && | |
14120 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14121 echo "_ACEOF" | |
14122 } >conf$$subs.sh || | |
14123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14124 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
14125 ac_delim='%!_!# ' | |
14126 for ac_last_try in false false false false false :; do | |
14127 . ./conf$$subs.sh || | |
14128 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14129 | |
14130 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14131 if test $ac_delim_n = $ac_delim_num; then | |
14132 break | |
14133 elif $ac_last_try; then | |
14134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14135 else | |
14136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14137 fi | |
14138 done | |
14139 rm -f conf$$subs.sh | |
14140 | |
14141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14142 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
14143 _ACEOF | |
14144 sed -n ' | |
14145 h | |
14146 s/^/S["/; s/!.*/"]=/ | |
14147 p | |
14148 g | |
14149 s/^[^!]*!// | |
14150 :repl | |
14151 t repl | |
14152 s/'"$ac_delim"'$// | |
14153 t delim | |
14154 :nl | |
14155 h | |
14156 s/\(.\{148\}\)..*/\1/ | |
14157 t more1 | |
14158 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14159 p | |
14160 n | |
14161 b repl | |
14162 :more1 | |
14163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14164 p | |
14165 g | |
14166 s/.\{148\}// | |
14167 t nl | |
14168 :delim | |
14169 h | |
14170 s/\(.\{148\}\)..*/\1/ | |
14171 t more2 | |
14172 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14173 p | |
14174 b | |
14175 :more2 | |
14176 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14177 p | |
14178 g | |
14179 s/.\{148\}// | |
14180 t delim | |
14181 ' <conf$$subs.awk | sed ' | |
14182 /^[^""]/{ | |
14183 N | |
14184 s/\n// | |
14185 } | |
14186 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14187 rm -f conf$$subs.awk | |
14188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14189 _ACAWK | |
14190 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
14191 for (key in S) S_is_set[key] = 1 | |
14192 FS = "" | |
14193 | |
14194 } | |
14195 { | |
14196 line = $ 0 | |
14197 nfields = split(line, field, "@") | |
14198 substed = 0 | |
14199 len = length(field[1]) | |
14200 for (i = 2; i < nfields; i++) { | |
14201 key = field[i] | |
14202 keylen = length(key) | |
14203 if (S_is_set[key]) { | |
14204 value = S[key] | |
14205 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14206 len += length(value) + length(field[++i]) | |
14207 substed = 1 | |
14208 } else | |
14209 len += 1 + keylen | |
14210 } | |
14211 | |
14212 print line | |
14213 } | |
14214 | |
14215 _ACAWK | |
14216 _ACEOF | |
14217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14218 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14219 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14220 else | |
14221 cat | |
14222 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
14223 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
14224 _ACEOF | |
14225 | |
14226 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
14227 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
14228 # trailing colons and then remove the whole line if VPATH becomes empty | |
14229 # (actually we leave an empty line to preserve line numbers). | |
14230 if test "x$srcdir" = x.; then | |
14231 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
14232 h | |
14233 s/// | |
14234 s/^/:/ | |
14235 s/[ ]*$/:/ | |
14236 s/:\$(srcdir):/:/g | |
14237 s/:\${srcdir}:/:/g | |
14238 s/:@srcdir@:/:/g | |
14239 s/^:*// | |
14240 s/:*$// | |
14241 x | |
14242 s/\(=[ ]*\).*/\1/ | |
14243 G | |
14244 s/\n// | |
14245 s/^[^=]*=[ ]*$// | |
14246 }' | |
14247 fi | |
14248 | |
14249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14250 fi # test -n "$CONFIG_FILES" | |
14251 | |
14252 # Set up the scripts for CONFIG_HEADERS section. | |
14253 # No need to generate them if there are no CONFIG_HEADERS. | |
14254 # This happens for instance with `./config.status Makefile'. | |
14255 if test -n "$CONFIG_HEADERS"; then | |
14256 cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
14257 BEGIN { | |
14258 _ACEOF | |
14259 | |
14260 # Transform confdefs.h into an awk script `defines.awk', embedded as | |
14261 # here-document in config.status, that substitutes the proper values into | |
14262 # config.h.in to produce config.h. | |
14263 | |
14264 # Create a delimiter string that does not exist in confdefs.h, to ease | |
14265 # handling of long lines. | |
14266 ac_delim='%!_!# ' | |
14267 for ac_last_try in false false :; do | |
14268 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
14269 if test -z "$ac_tt"; then | |
14270 break | |
14271 elif $ac_last_try; then | |
14272 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
14273 else | |
14274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14275 fi | |
14276 done | |
14277 | |
14278 # For the awk script, D is an array of macro values keyed by name, | |
14279 # likewise P contains macro parameters if any. Preserve backslash | |
14280 # newline sequences. | |
14281 | |
14282 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14283 sed -n ' | |
14284 s/.\{148\}/&'"$ac_delim"'/g | |
14285 t rset | |
14286 :rset | |
14287 s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14288 t def | |
14289 d | |
14290 :def | |
14291 s/\\$// | |
14292 t bsnl | |
14293 s/["\\]/\\&/g | |
14294 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14295 D["\1"]=" \3"/p | |
14296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14297 d | |
14298 :bsnl | |
14299 s/["\\]/\\&/g | |
14300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14301 D["\1"]=" \3\\\\\\n"\\/p | |
14302 t cont | |
14303 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14304 t cont | |
14305 d | |
14306 :cont | |
14307 n | |
14308 s/.\{148\}/&'"$ac_delim"'/g | |
14309 t clear | |
14310 :clear | |
14311 s/\\$// | |
14312 t bsnlc | |
14313 s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14314 d | |
14315 :bsnlc | |
14316 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14317 b cont | |
14318 ' <confdefs.h | sed ' | |
14319 s/'"$ac_delim"'/"\\\ | |
14320 "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14321 | |
14322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14323 for (key in D) D_is_set[key] = 1 | |
14324 FS = "" | |
14325 } | |
14326 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14327 line = \$ 0 | |
14328 split(line, arg, " ") | |
14329 if (arg[1] == "#") { | |
14330 defundef = arg[2] | |
14331 mac1 = arg[3] | |
14332 } else { | |
14333 defundef = substr(arg[1], 2) | |
14334 mac1 = arg[2] | |
14335 } | |
14336 split(mac1, mac2, "(") #) | |
14337 macro = mac2[1] | |
14338 prefix = substr(line, 1, index(line, defundef) - 1) | |
14339 if (D_is_set[macro]) { | |
14340 # Preserve the white space surrounding the "#". | |
14341 print prefix "define", macro P[macro] D[macro] | |
14342 next | |
14343 } else { | |
14344 # Replace #undef with comments. This is necessary, for example, | |
14345 # in the case of _POSIX_SOURCE, which is predefined and required | |
14346 # on some systems where configure will not decide to define it. | |
14347 if (defundef == "undef") { | |
14348 print "/*", prefix defundef, macro, "*/" | |
14349 next | |
14350 } | |
14351 } | |
14352 } | |
14353 { print } | |
14354 _ACAWK | |
14355 _ACEOF | |
14356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14357 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
14358 fi # test -n "$CONFIG_HEADERS" | |
14359 | |
14360 | |
14361 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
14362 shift | |
14363 for ac_tag | |
14364 do | |
14365 case $ac_tag in | |
14366 :[FHLC]) ac_mode=$ac_tag; continue;; | |
14367 esac | |
14368 case $ac_mode$ac_tag in | |
14369 :[FHL]*:*);; | |
14370 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
14371 :[FH]-) ac_tag=-:-;; | |
14372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14373 esac | |
14374 ac_save_IFS=$IFS | |
14375 IFS=: | |
14376 set x $ac_tag | |
14377 IFS=$ac_save_IFS | |
14378 shift | |
14379 ac_file=$1 | |
14380 shift | |
14381 | |
14382 case $ac_mode in | |
14383 :L) ac_source=$1;; | |
14384 :[FH]) | |
14385 ac_file_inputs= | |
14386 for ac_f | |
14387 do | |
14388 case $ac_f in | |
14389 -) ac_f="$ac_tmp/stdin";; | |
14390 *) # Look for the file first in the build tree, then in the source tree | |
14391 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14392 # because $ac_f cannot contain `:'. | |
14393 test -f "$ac_f" || | |
14394 case $ac_f in | |
14395 [\\/$]*) false;; | |
14396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14397 esac || | |
14398 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
14399 esac | |
14400 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
14401 as_fn_append ac_file_inputs " '$ac_f'" | |
14402 done | |
14403 | |
14404 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14405 # use $as_me), people would be surprised to read: | |
14406 # /* config.h. Generated by config.status. */ | |
14407 configure_input='Generated from '` | |
14408 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14409 `' by configure.' | |
14410 if test x"$ac_file" != x-; then | |
14411 configure_input="$ac_file. $configure_input" | |
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
14413 $as_echo "$as_me: creating $ac_file" >&6;} | |
14414 fi | |
14415 # Neutralize special characters interpreted by sed in replacement strings. | |
14416 case $configure_input in #( | |
14417 *\&* | *\|* | *\\* ) | |
14418 ac_sed_conf_input=`$as_echo "$configure_input" | | |
14419 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14420 *) ac_sed_conf_input=$configure_input;; | |
14421 esac | |
14422 | |
14423 case $ac_tag in | |
14424 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
14425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
14426 esac | |
14427 ;; | |
14428 esac | |
14429 | |
14430 ac_dir=`$as_dirname -- "$ac_file" || | |
14431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14432 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14433 X"$ac_file" : 'X\(//\)$' \| \ | |
14434 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
14435 $as_echo X"$ac_file" | | |
14436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14437 s//\1/ | |
14438 q | |
14439 } | |
14440 /^X\(\/\/\)[^/].*/{ | |
14441 s//\1/ | |
14442 q | |
14443 } | |
14444 /^X\(\/\/\)$/{ | |
14445 s//\1/ | |
14446 q | |
14447 } | |
14448 /^X\(\/\).*/{ | |
14449 s//\1/ | |
14450 q | |
14451 } | |
14452 s/.*/./; q'` | |
14453 as_dir="$ac_dir"; as_fn_mkdir_p | |
14454 ac_builddir=. | |
14455 | |
14456 case "$ac_dir" in | |
14457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14458 *) | |
14459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
14460 # A ".." for each directory in $ac_dir_suffix. | |
14461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14462 case $ac_top_builddir_sub in | |
14463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14465 esac ;; | |
14466 esac | |
14467 ac_abs_top_builddir=$ac_pwd | |
14468 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14469 # for backward compatibility: | |
14470 ac_top_builddir=$ac_top_build_prefix | |
14471 | |
14472 case $srcdir in | |
14473 .) # We are building in place. | |
14474 ac_srcdir=. | |
14475 ac_top_srcdir=$ac_top_builddir_sub | |
14476 ac_abs_top_srcdir=$ac_pwd ;; | |
14477 [\\/]* | ?:[\\/]* ) # Absolute name. | |
14478 ac_srcdir=$srcdir$ac_dir_suffix; | |
14479 ac_top_srcdir=$srcdir | |
14480 ac_abs_top_srcdir=$srcdir ;; | |
14481 *) # Relative name. | |
14482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14483 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
14485 esac | |
14486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
14487 | |
14488 | |
14489 case $ac_mode in | |
14490 :F) | |
14491 # | |
14492 # CONFIG_FILE | |
14493 # | |
14494 | |
14495 case $INSTALL in | |
14496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14497 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
14498 esac | |
14499 ac_MKDIR_P=$MKDIR_P | |
14500 case $MKDIR_P in | |
14501 [\\/$]* | ?:[\\/]* ) ;; | |
14502 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
14503 esac | |
14504 _ACEOF | |
14505 | |
14506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14507 # If the template does not know about datarootdir, expand it. | |
14508 # FIXME: This hack should be removed a few years after 2.60. | |
14509 ac_datarootdir_hack=; ac_datarootdir_seen= | |
14510 ac_sed_dataroot=' | |
14511 /datarootdir/ { | |
14512 p | |
14513 q | |
14514 } | |
14515 /@datadir@/p | |
14516 /@docdir@/p | |
14517 /@infodir@/p | |
14518 /@localedir@/p | |
14519 /@mandir@/p' | |
14520 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
14521 *datarootdir*) ac_datarootdir_seen=yes;; | |
14522 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
14524 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
14525 _ACEOF | |
14526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14527 ac_datarootdir_hack=' | |
14528 s&@datadir@&$datadir&g | |
14529 s&@docdir@&$docdir&g | |
14530 s&@infodir@&$infodir&g | |
14531 s&@localedir@&$localedir&g | |
14532 s&@mandir@&$mandir&g | |
14533 s&\\\${datarootdir}&$datarootdir&g' ;; | |
14534 esac | |
14535 _ACEOF | |
14536 | |
14537 # Neutralize VPATH when `$srcdir' = `.'. | |
14538 # Shell code in configure.ac might set extrasub. | |
14539 # FIXME: do we really want to maintain this feature? | |
14540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14541 ac_sed_extra="$ac_vpsub | |
14542 $extrasub | |
14543 _ACEOF | |
14544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14545 :t | |
14546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14547 s|@configure_input@|$ac_sed_conf_input|;t t | |
14548 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14549 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14550 s&@srcdir@&$ac_srcdir&;t t | |
14551 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14552 s&@top_srcdir@&$ac_top_srcdir&;t t | |
14553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14554 s&@builddir@&$ac_builddir&;t t | |
14555 s&@abs_builddir@&$ac_abs_builddir&;t t | |
14556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14557 s&@INSTALL@&$ac_INSTALL&;t t | |
14558 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14559 $ac_datarootdir_hack | |
14560 " | |
14561 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
14562 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14563 | |
14564 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
14565 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
14566 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
14567 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14569 which seems to be undefined. Please make sure it is defined" >&5 | |
14570 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14571 which seems to be undefined. Please make sure it is defined" >&2;} | |
14572 | |
14573 rm -f "$ac_tmp/stdin" | |
14574 case $ac_file in | |
14575 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
14576 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
14577 esac \ | |
14578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14579 ;; | |
14580 :H) | |
14581 # | |
14582 # CONFIG_HEADER | |
14583 # | |
14584 if test x"$ac_file" != x-; then | |
14585 { | |
14586 $as_echo "/* $configure_input */" \ | |
14587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
14588 } >"$ac_tmp/config.h" \ | |
14589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14590 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
14592 $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
14593 else | |
14594 rm -f "$ac_file" | |
14595 mv "$ac_tmp/config.h" "$ac_file" \ | |
14596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14597 fi | |
14598 else | |
14599 $as_echo "/* $configure_input */" \ | |
14600 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
14601 || as_fn_error $? "could not create -" "$LINENO" 5 | |
14602 fi | |
14603 # Compute "$ac_file"'s index in $config_headers. | |
14604 _am_arg="$ac_file" | |
14605 _am_stamp_count=1 | |
14606 for _am_header in $config_headers :; do | |
14607 case $_am_header in | |
14608 $_am_arg | $_am_arg:* ) | |
14609 break ;; | |
14610 * ) | |
14611 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14612 esac | |
14613 done | |
14614 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
14615 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14616 X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14617 X"$_am_arg" : 'X\(//\)$' \| \ | |
14618 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14619 $as_echo X"$_am_arg" | | |
14620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14621 s//\1/ | |
14622 q | |
14623 } | |
14624 /^X\(\/\/\)[^/].*/{ | |
14625 s//\1/ | |
14626 q | |
14627 } | |
14628 /^X\(\/\/\)$/{ | |
14629 s//\1/ | |
14630 q | |
14631 } | |
14632 /^X\(\/\).*/{ | |
14633 s//\1/ | |
14634 q | |
14635 } | |
14636 s/.*/./; q'`/stamp-h$_am_stamp_count | |
14637 ;; | |
14638 | |
14639 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
14640 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
14641 ;; | |
14642 esac | |
14643 | |
14644 | |
14645 case $ac_file$ac_mode in | |
14646 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
14647 # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
14648 # are listed without --file. Let's play safe and only enable the eval | |
14649 # if we detect the quoting. | |
14650 case $CONFIG_FILES in | |
14651 *\'*) eval set x "$CONFIG_FILES" ;; | |
14652 *) set x $CONFIG_FILES ;; | |
14653 esac | |
14654 shift | |
14655 for mf | |
14656 do | |
14657 # Strip MF so we end up with the name of the file. | |
14658 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14659 # Check whether this is an Automake generated Makefile or not. | |
14660 # We used to match only the files named `Makefile.in', but | |
14661 # some people rename them; so instead we look at the file content. | |
14662 # Grep'ing the first line is not enough: some people post-process | |
14663 # each Makefile.in and add a new line on top of each file to say so. | |
14664 # Grep'ing the whole file is not good either: AIX grep has a line | |
14665 # limit of 2048, but all sed's we know have understand at least 4000. | |
14666 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14667 dirpart=`$as_dirname -- "$mf" || | |
14668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14669 X"$mf" : 'X\(//\)[^/]' \| \ | |
14670 X"$mf" : 'X\(//\)$' \| \ | |
14671 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
14672 $as_echo X"$mf" | | |
14673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14674 s//\1/ | |
14675 q | |
14676 } | |
14677 /^X\(\/\/\)[^/].*/{ | |
14678 s//\1/ | |
14679 q | |
14680 } | |
14681 /^X\(\/\/\)$/{ | |
14682 s//\1/ | |
14683 q | |
14684 } | |
14685 /^X\(\/\).*/{ | |
14686 s//\1/ | |
14687 q | |
14688 } | |
14689 s/.*/./; q'` | |
14690 else | |
14691 continue | |
14692 fi | |
14693 # Extract the definition of DEPDIR, am__include, and am__quote | |
14694 # from the Makefile without running `make'. | |
14695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14696 test -z "$DEPDIR" && continue | |
14697 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14698 test -z "am__include" && continue | |
14699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14700 # When using ansi2knr, U may be empty or an underscore; expand it | |
14701 U=`sed -n 's/^U = //p' < "$mf"` | |
14702 # Find all dependency output files, they are included files with | |
14703 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14704 # simplest approach to changing $(DEPDIR) to its actual value in the | |
14705 # expansion. | |
14706 for file in `sed -n " | |
14707 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14709 # Make sure the directory exists. | |
14710 test -f "$dirpart/$file" && continue | |
14711 fdir=`$as_dirname -- "$file" || | |
14712 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14713 X"$file" : 'X\(//\)[^/]' \| \ | |
14714 X"$file" : 'X\(//\)$' \| \ | |
14715 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
14716 $as_echo X"$file" | | |
14717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14718 s//\1/ | |
14719 q | |
14720 } | |
14721 /^X\(\/\/\)[^/].*/{ | |
14722 s//\1/ | |
14723 q | |
14724 } | |
14725 /^X\(\/\/\)$/{ | |
14726 s//\1/ | |
14727 q | |
14728 } | |
14729 /^X\(\/\).*/{ | |
14730 s//\1/ | |
14731 q | |
14732 } | |
14733 s/.*/./; q'` | |
14734 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
14735 # echo "creating $dirpart/$file" | |
14736 echo '# dummy' > "$dirpart/$file" | |
14737 done | |
14738 done | |
14739 } | |
14740 ;; | |
14741 "libtool":C) | |
14742 | |
14743 # See if we are running on zsh, and set the options which allow our | |
14744 # commands through without removal of \ escapes. | |
14745 if test -n "${ZSH_VERSION+set}" ; then | |
14746 setopt NO_GLOB_SUBST | |
14747 fi | |
14748 | |
14749 cfgfile="${ofile}T" | |
14750 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14751 $RM "$cfgfile" | |
14752 | |
14753 cat <<_LT_EOF >> "$cfgfile" | |
14754 #! $SHELL | |
14755 | |
14756 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
14757 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
14758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14759 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14760 # | |
14761 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
14762 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
14763 # Inc. | |
14764 # Written by Gordon Matzigkeit, 1996 | |
14765 # | |
14766 # This file is part of GNU Libtool. | |
14767 # | |
14768 # GNU Libtool is free software; you can redistribute it and/or | |
14769 # modify it under the terms of the GNU General Public License as | |
14770 # published by the Free Software Foundation; either version 2 of | |
14771 # the License, or (at your option) any later version. | |
14772 # | |
14773 # As a special exception to the GNU General Public License, | |
14774 # if you distribute this file as part of a program or library that | |
14775 # is built using GNU Libtool, you may include this file under the | |
14776 # same distribution terms that you use for the rest of that program. | |
14777 # | |
14778 # GNU Libtool is distributed in the hope that it will be useful, | |
14779 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14780 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14781 # GNU General Public License for more details. | |
14782 # | |
14783 # You should have received a copy of the GNU General Public License | |
14784 # along with GNU Libtool; see the file COPYING. If not, a copy | |
14785 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14786 # obtained by writing to the Free Software Foundation, Inc., | |
14787 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
14788 | |
14789 | |
14790 # The names of the tagged configurations supported by this script. | |
14791 available_tags="" | |
14792 | |
14793 # ### BEGIN LIBTOOL CONFIG | |
14794 | |
14795 # Assembler program. | |
14796 AS=$lt_AS | |
14797 | |
14798 # DLL creation program. | |
14799 DLLTOOL=$lt_DLLTOOL | |
14800 | |
14801 # Object dumper program. | |
14802 OBJDUMP=$lt_OBJDUMP | |
14803 | |
14804 # Which release of libtool.m4 was used? | |
14805 macro_version=$macro_version | |
14806 macro_revision=$macro_revision | |
14807 | |
14808 # Whether or not to build shared libraries. | |
14809 build_libtool_libs=$enable_shared | |
14810 | |
14811 # Whether or not to build static libraries. | |
14812 build_old_libs=$enable_static | |
14813 | |
14814 # What type of objects to build. | |
14815 pic_mode=$pic_mode | |
14816 | |
14817 # Whether or not to optimize for fast installation. | |
14818 fast_install=$enable_fast_install | |
14819 | |
14820 # Shell to use when invoking shell scripts. | |
14821 SHELL=$lt_SHELL | |
14822 | |
14823 # An echo program that protects backslashes. | |
14824 ECHO=$lt_ECHO | |
14825 | |
14826 # The host system. | |
14827 host_alias=$host_alias | |
14828 host=$host | |
14829 host_os=$host_os | |
14830 | |
14831 # The build system. | |
14832 build_alias=$build_alias | |
14833 build=$build | |
14834 build_os=$build_os | |
14835 | |
14836 # A sed program that does not truncate output. | |
14837 SED=$lt_SED | |
14838 | |
14839 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14840 Xsed="\$SED -e 1s/^X//" | |
14841 | |
14842 # A grep program that handles long lines. | |
14843 GREP=$lt_GREP | |
14844 | |
14845 # An ERE matcher. | |
14846 EGREP=$lt_EGREP | |
14847 | |
14848 # A literal string matcher. | |
14849 FGREP=$lt_FGREP | |
14850 | |
14851 # A BSD- or MS-compatible name lister. | |
14852 NM=$lt_NM | |
14853 | |
14854 # Whether we need soft or hard links. | |
14855 LN_S=$lt_LN_S | |
14856 | |
14857 # What is the maximum length of a command? | |
14858 max_cmd_len=$max_cmd_len | |
14859 | |
14860 # Object file suffix (normally "o"). | |
14861 objext=$ac_objext | |
14862 | |
14863 # Executable file suffix (normally ""). | |
14864 exeext=$exeext | |
14865 | |
14866 # whether the shell understands "unset". | |
14867 lt_unset=$lt_unset | |
14868 | |
14869 # turn spaces into newlines. | |
14870 SP2NL=$lt_lt_SP2NL | |
14871 | |
14872 # turn newlines into spaces. | |
14873 NL2SP=$lt_lt_NL2SP | |
14874 | |
14875 # convert \$build file names to \$host format. | |
14876 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14877 | |
14878 # convert \$build files to toolchain format. | |
14879 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
14880 | |
14881 # Method to check whether dependent libraries are shared objects. | |
14882 deplibs_check_method=$lt_deplibs_check_method | |
14883 | |
14884 # Command to use when deplibs_check_method = "file_magic". | |
14885 file_magic_cmd=$lt_file_magic_cmd | |
14886 | |
14887 # How to find potential files when deplibs_check_method = "file_magic". | |
14888 file_magic_glob=$lt_file_magic_glob | |
14889 | |
14890 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14891 want_nocaseglob=$lt_want_nocaseglob | |
14892 | |
14893 # Command to associate shared and link libraries. | |
14894 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14895 | |
14896 # The archiver. | |
14897 AR=$lt_AR | |
14898 | |
14899 # Flags to create an archive. | |
14900 AR_FLAGS=$lt_AR_FLAGS | |
14901 | |
14902 # How to feed a file listing to the archiver. | |
14903 archiver_list_spec=$lt_archiver_list_spec | |
14904 | |
14905 # A symbol stripping program. | |
14906 STRIP=$lt_STRIP | |
14907 | |
14908 # Commands used to install an old-style archive. | |
14909 RANLIB=$lt_RANLIB | |
14910 old_postinstall_cmds=$lt_old_postinstall_cmds | |
14911 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14912 | |
14913 # Whether to use a lock for old archive extraction. | |
14914 lock_old_archive_extraction=$lock_old_archive_extraction | |
14915 | |
14916 # A C compiler. | |
14917 LTCC=$lt_CC | |
14918 | |
14919 # LTCC compiler flags. | |
14920 LTCFLAGS=$lt_CFLAGS | |
14921 | |
14922 # Take the output of nm and produce a listing of raw symbols and C names. | |
14923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14924 | |
14925 # Transform the output of nm in a proper C declaration. | |
14926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14927 | |
14928 # Transform the output of nm in a C name address pair. | |
14929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14930 | |
14931 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
14932 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14933 | |
14934 # Specify filename containing input files for \$NM. | |
14935 nm_file_list_spec=$lt_nm_file_list_spec | |
14936 | |
14937 # The root where to search for dependent libraries,and in which our libraries should be installed. | |
14938 lt_sysroot=$lt_sysroot | |
14939 | |
14940 # The name of the directory that contains temporary libtool files. | |
14941 objdir=$objdir | |
14942 | |
14943 # Used to examine libraries when file_magic_cmd begins with "file". | |
14944 MAGIC_CMD=$MAGIC_CMD | |
14945 | |
14946 # Must we lock files when doing compilation? | |
14947 need_locks=$lt_need_locks | |
14948 | |
14949 # Manifest tool. | |
14950 MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14951 | |
14952 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
14953 DSYMUTIL=$lt_DSYMUTIL | |
14954 | |
14955 # Tool to change global to local symbols on Mac OS X. | |
14956 NMEDIT=$lt_NMEDIT | |
14957 | |
14958 # Tool to manipulate fat objects and archives on Mac OS X. | |
14959 LIPO=$lt_LIPO | |
14960 | |
14961 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14962 OTOOL=$lt_OTOOL | |
14963 | |
14964 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14965 OTOOL64=$lt_OTOOL64 | |
14966 | |
14967 # Old archive suffix (normally "a"). | |
14968 libext=$libext | |
14969 | |
14970 # Shared library suffix (normally ".so"). | |
14971 shrext_cmds=$lt_shrext_cmds | |
14972 | |
14973 # The commands to extract the exported symbol list from a shared archive. | |
14974 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14975 | |
14976 # Variables whose values should be saved in libtool wrapper scripts and | |
14977 # restored at link time. | |
14978 variables_saved_for_relink=$lt_variables_saved_for_relink | |
14979 | |
14980 # Do we need the "lib" prefix for modules? | |
14981 need_lib_prefix=$need_lib_prefix | |
14982 | |
14983 # Do we need a version for libraries? | |
14984 need_version=$need_version | |
14985 | |
14986 # Library versioning type. | |
14987 version_type=$version_type | |
14988 | |
14989 # Shared library runtime path variable. | |
14990 runpath_var=$runpath_var | |
14991 | |
14992 # Shared library path variable. | |
14993 shlibpath_var=$shlibpath_var | |
14994 | |
14995 # Is shlibpath searched before the hard-coded library search path? | |
14996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14997 | |
14998 # Format of library name prefix. | |
14999 libname_spec=$lt_libname_spec | |
15000 | |
15001 # List of archive names. First name is the real one, the rest are links. | |
15002 # The last name is the one that the linker finds with -lNAME | |
15003 library_names_spec=$lt_library_names_spec | |
15004 | |
15005 # The coded name of the library, if different from the real name. | |
15006 soname_spec=$lt_soname_spec | |
15007 | |
15008 # Permission mode override for installation of shared libraries. | |
15009 install_override_mode=$lt_install_override_mode | |
15010 | |
15011 # Command to use after installation of a shared archive. | |
15012 postinstall_cmds=$lt_postinstall_cmds | |
15013 | |
15014 # Command to use after uninstallation of a shared archive. | |
15015 postuninstall_cmds=$lt_postuninstall_cmds | |
15016 | |
15017 # Commands used to finish a libtool library installation in a directory. | |
15018 finish_cmds=$lt_finish_cmds | |
15019 | |
15020 # As "finish_cmds", except a single script fragment to be evaled but | |
15021 # not shown. | |
15022 finish_eval=$lt_finish_eval | |
15023 | |
15024 # Whether we should hardcode library paths into libraries. | |
15025 hardcode_into_libs=$hardcode_into_libs | |
15026 | |
15027 # Compile-time system search path for libraries. | |
15028 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15029 | |
15030 # Run-time system search path for libraries. | |
15031 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15032 | |
15033 # Whether dlopen is supported. | |
15034 dlopen_support=$enable_dlopen | |
15035 | |
15036 # Whether dlopen of programs is supported. | |
15037 dlopen_self=$enable_dlopen_self | |
15038 | |
15039 # Whether dlopen of statically linked programs is supported. | |
15040 dlopen_self_static=$enable_dlopen_self_static | |
15041 | |
15042 # Commands to strip libraries. | |
15043 old_striplib=$lt_old_striplib | |
15044 striplib=$lt_striplib | |
15045 | |
15046 | |
15047 # The linker used to build libraries. | |
15048 LD=$lt_LD | |
15049 | |
15050 # How to create reloadable object files. | |
15051 reload_flag=$lt_reload_flag | |
15052 reload_cmds=$lt_reload_cmds | |
15053 | |
15054 # Commands used to build an old-style archive. | |
15055 old_archive_cmds=$lt_old_archive_cmds | |
15056 | |
15057 # A language specific compiler. | |
15058 CC=$lt_compiler | |
15059 | |
15060 # Is the compiler the GNU compiler? | |
15061 with_gcc=$GCC | |
15062 | |
15063 # Compiler flag to turn off builtin functions. | |
15064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
15065 | |
15066 # Additional compiler flags for building library objects. | |
15067 pic_flag=$lt_lt_prog_compiler_pic | |
15068 | |
15069 # How to pass a linker flag through the compiler. | |
15070 wl=$lt_lt_prog_compiler_wl | |
15071 | |
15072 # Compiler flag to prevent dynamic linking. | |
15073 link_static_flag=$lt_lt_prog_compiler_static | |
15074 | |
15075 # Does compiler simultaneously support -c and -o options? | |
15076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
15077 | |
15078 # Whether or not to add -lc for building shared libraries. | |
15079 build_libtool_need_lc=$archive_cmds_need_lc | |
15080 | |
15081 # Whether or not to disallow shared libs when runtime libs are static. | |
15082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
15083 | |
15084 # Compiler flag to allow reflexive dlopens. | |
15085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
15086 | |
15087 # Compiler flag to generate shared objects directly from archives. | |
15088 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
15089 | |
15090 # Whether the compiler copes with passing no objects directly. | |
15091 compiler_needs_object=$lt_compiler_needs_object | |
15092 | |
15093 # Create an old-style archive from a shared archive. | |
15094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
15095 | |
15096 # Create a temporary old-style archive to link instead of a shared archive. | |
15097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
15098 | |
15099 # Commands used to build a shared archive. | |
15100 archive_cmds=$lt_archive_cmds | |
15101 archive_expsym_cmds=$lt_archive_expsym_cmds | |
15102 | |
15103 # Commands used to build a loadable module if different from building | |
15104 # a shared archive. | |
15105 module_cmds=$lt_module_cmds | |
15106 module_expsym_cmds=$lt_module_expsym_cmds | |
15107 | |
15108 # Whether we are building with GNU ld or not. | |
15109 with_gnu_ld=$lt_with_gnu_ld | |
15110 | |
15111 # Flag that allows shared libraries with undefined symbols to be built. | |
15112 allow_undefined_flag=$lt_allow_undefined_flag | |
15113 | |
15114 # Flag that enforces no undefined symbols. | |
15115 no_undefined_flag=$lt_no_undefined_flag | |
15116 | |
15117 # Flag to hardcode \$libdir into a binary during linking. | |
15118 # This must work even if \$libdir does not exist | |
15119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
15120 | |
15121 # If ld is used when linking, flag to hardcode \$libdir into a binary | |
15122 # during linking. This must work even if \$libdir does not exist. | |
15123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
15124 | |
15125 # Whether we need a single "-rpath" flag with a separated argument. | |
15126 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
15127 | |
15128 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15129 # DIR into the resulting binary. | |
15130 hardcode_direct=$hardcode_direct | |
15131 | |
15132 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15133 # DIR into the resulting binary and the resulting library dependency is | |
15134 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
15135 # library is relocated. | |
15136 hardcode_direct_absolute=$hardcode_direct_absolute | |
15137 | |
15138 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
15139 # into the resulting binary. | |
15140 hardcode_minus_L=$hardcode_minus_L | |
15141 | |
15142 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
15143 # into the resulting binary. | |
15144 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
15145 | |
15146 # Set to "yes" if building a shared library automatically hardcodes DIR | |
15147 # into the library and all subsequent libraries and executables linked | |
15148 # against it. | |
15149 hardcode_automatic=$hardcode_automatic | |
15150 | |
15151 # Set to yes if linker adds runtime paths of dependent libraries | |
15152 # to runtime path list. | |
15153 inherit_rpath=$inherit_rpath | |
15154 | |
15155 # Whether libtool must link a program against all its dependency libraries. | |
15156 link_all_deplibs=$link_all_deplibs | |
15157 | |
15158 # Set to "yes" if exported symbols are required. | |
15159 always_export_symbols=$always_export_symbols | |
15160 | |
15161 # The commands to list exported symbols. | |
15162 export_symbols_cmds=$lt_export_symbols_cmds | |
15163 | |
15164 # Symbols that should not be listed in the preloaded symbols. | |
15165 exclude_expsyms=$lt_exclude_expsyms | |
15166 | |
15167 # Symbols that must always be exported. | |
15168 include_expsyms=$lt_include_expsyms | |
15169 | |
15170 # Commands necessary for linking programs (against libraries) with templates. | |
15171 prelink_cmds=$lt_prelink_cmds | |
15172 | |
15173 # Commands necessary for finishing linking programs. | |
15174 postlink_cmds=$lt_postlink_cmds | |
15175 | |
15176 # Specify filename containing input files. | |
15177 file_list_spec=$lt_file_list_spec | |
15178 | |
15179 # How to hardcode a shared library path into an executable. | |
15180 hardcode_action=$hardcode_action | |
15181 | |
15182 # ### END LIBTOOL CONFIG | |
15183 | |
15184 _LT_EOF | |
15185 | |
15186 case $host_os in | |
15187 aix3*) | |
15188 cat <<\_LT_EOF >> "$cfgfile" | |
15189 # AIX sometimes has problems with the GCC collect2 program. For some | |
15190 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15191 # vanish in a puff of smoke. | |
15192 if test "X${COLLECT_NAMES+set}" != Xset; then | |
15193 COLLECT_NAMES= | |
15194 export COLLECT_NAMES | |
15195 fi | |
15196 _LT_EOF | |
15197 ;; | |
15198 esac | |
15199 | |
15200 | |
15201 ltmain="$ac_aux_dir/ltmain.sh" | |
15202 | |
15203 | |
15204 # We use sed instead of cat because bash on DJGPP gets confused if | |
15205 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15206 # text mode, it properly converts lines to CR/LF. This bash problem | |
15207 # is reportedly fixed, but why not run on old versions too? | |
15208 sed '$q' "$ltmain" >> "$cfgfile" \ | |
15209 || (rm -f "$cfgfile"; exit 1) | |
15210 | |
15211 if test x"$xsi_shell" = xyes; then | |
15212 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
15213 func_dirname ()\ | |
15214 {\ | |
15215 \ case ${1} in\ | |
15216 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
15217 \ * ) func_dirname_result="${3}" ;;\ | |
15218 \ esac\ | |
15219 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
15220 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15222 test 0 -eq $? || _lt_function_replace_fail=: | |
15223 | |
15224 | |
15225 sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
15226 func_basename ()\ | |
15227 {\ | |
15228 \ func_basename_result="${1##*/}"\ | |
15229 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
15230 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15232 test 0 -eq $? || _lt_function_replace_fail=: | |
15233 | |
15234 | |
15235 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
15236 func_dirname_and_basename ()\ | |
15237 {\ | |
15238 \ case ${1} in\ | |
15239 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
15240 \ * ) func_dirname_result="${3}" ;;\ | |
15241 \ esac\ | |
15242 \ func_basename_result="${1##*/}"\ | |
15243 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
15244 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15246 test 0 -eq $? || _lt_function_replace_fail=: | |
15247 | |
15248 | |
15249 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
15250 func_stripname ()\ | |
15251 {\ | |
15252 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
15253 \ # positional parameters, so assign one to ordinary parameter first.\ | |
15254 \ func_stripname_result=${3}\ | |
15255 \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
15256 \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
15257 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
15258 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15260 test 0 -eq $? || _lt_function_replace_fail=: | |
15261 | |
15262 | |
15263 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
15264 func_split_long_opt ()\ | |
15265 {\ | |
15266 \ func_split_long_opt_name=${1%%=*}\ | |
15267 \ func_split_long_opt_arg=${1#*=}\ | |
15268 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
15269 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15271 test 0 -eq $? || _lt_function_replace_fail=: | |
15272 | |
15273 | |
15274 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
15275 func_split_short_opt ()\ | |
15276 {\ | |
15277 \ func_split_short_opt_arg=${1#??}\ | |
15278 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
15279 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
15280 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15282 test 0 -eq $? || _lt_function_replace_fail=: | |
15283 | |
15284 | |
15285 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
15286 func_lo2o ()\ | |
15287 {\ | |
15288 \ case ${1} in\ | |
15289 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
15290 \ *) func_lo2o_result=${1} ;;\ | |
15291 \ esac\ | |
15292 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
15293 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15295 test 0 -eq $? || _lt_function_replace_fail=: | |
15296 | |
15297 | |
15298 sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
15299 func_xform ()\ | |
15300 {\ | |
15301 func_xform_result=${1%.*}.lo\ | |
15302 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
15303 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15305 test 0 -eq $? || _lt_function_replace_fail=: | |
15306 | |
15307 | |
15308 sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
15309 func_arith ()\ | |
15310 {\ | |
15311 func_arith_result=$(( $* ))\ | |
15312 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
15313 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15315 test 0 -eq $? || _lt_function_replace_fail=: | |
15316 | |
15317 | |
15318 sed -e '/^func_len ()$/,/^} # func_len /c\ | |
15319 func_len ()\ | |
15320 {\ | |
15321 func_len_result=${#1}\ | |
15322 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
15323 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15325 test 0 -eq $? || _lt_function_replace_fail=: | |
15326 | |
15327 fi | |
15328 | |
15329 if test x"$lt_shell_append" = xyes; then | |
15330 sed -e '/^func_append ()$/,/^} # func_append /c\ | |
15331 func_append ()\ | |
15332 {\ | |
15333 eval "${1}+=\\${2}"\ | |
15334 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
15335 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15337 test 0 -eq $? || _lt_function_replace_fail=: | |
15338 | |
15339 | |
15340 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
15341 func_append_quoted ()\ | |
15342 {\ | |
15343 \ func_quote_for_eval "${2}"\ | |
15344 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
15345 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
15346 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15348 test 0 -eq $? || _lt_function_replace_fail=: | |
15349 | |
15350 | |
15351 # Save a `func_append' function call where possible by direct use of '+=' | |
15352 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
15353 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15354 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15355 test 0 -eq $? || _lt_function_replace_fail=: | |
15356 else | |
15357 # Save a `func_append' function call even when '+=' is not available | |
15358 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
15359 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15361 test 0 -eq $? || _lt_function_replace_fail=: | |
15362 fi | |
15363 | |
15364 if test x"$_lt_function_replace_fail" = x":"; then | |
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
15366 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
15367 fi | |
15368 | |
15369 | |
15370 mv -f "$cfgfile" "$ofile" || | |
15371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
15372 chmod +x "$ofile" | |
15373 | |
15374 ;; | |
15375 | |
15376 esac | |
15377 done # for ac_tag | |
15378 | |
15379 | |
15380 as_fn_exit 0 | |
15381 _ACEOF | |
15382 ac_clean_files=$ac_clean_files_save | |
15383 | |
15384 test $ac_write_fail = 0 || | |
15385 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15386 | |
15387 | |
15388 # configure is writing to config.log, and then calls config.status. | |
15389 # config.status does its own redirection, appending to config.log. | |
15390 # Unfortunately, on DOS this fails, as config.log is still kept open | |
15391 # by configure, so config.status won't be able to write to it; its | |
15392 # output is simply discarded. So we exec the FD to /dev/null, | |
15393 # effectively closing config.log, so it can be properly (re)opened and | |
15394 # appended to by config.status. When coming back to configure, we | |
15395 # need to make the FD available again. | |
15396 if test "$no_create" != yes; then | |
15397 ac_cs_success=: | |
15398 ac_config_status_args= | |
15399 test "$silent" = yes && | |
15400 ac_config_status_args="$ac_config_status_args --quiet" | |
15401 exec 5>/dev/null | |
15402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15403 exec 5>>config.log | |
15404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15405 # would make configure fail if this is the last instruction. | |
15406 $ac_cs_success || as_fn_exit 1 | |
15407 fi | |
15408 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15410 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
15411 fi | |
15412 |