Mercurial > hg > sv-dependency-builds
comparison src/libogg-1.3.0/configure @ 86:98c1576536ae
Bring in flac, ogg, vorbis
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 19 Mar 2013 17:37:49 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
85:545efbb81310 | 86:98c1576536ae |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.68. | |
4 # | |
5 # | |
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
8 # Foundation, Inc. | |
9 # | |
10 # | |
11 # This configure script is free software; the Free Software Foundation | |
12 # gives unlimited permission to copy, distribute and modify it. | |
13 ## -------------------- ## | |
14 ## M4sh Initialization. ## | |
15 ## -------------------- ## | |
16 | |
17 # Be more Bourne compatible | |
18 DUALCASE=1; export DUALCASE # for MKS sh | |
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 emulate sh | |
21 NULLCMD=: | |
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 # is contrary to our usage. Disable this feature. | |
24 alias -g '${1+"$@"}'='"$@"' | |
25 setopt NO_GLOB_SUBST | |
26 else | |
27 case `(set -o) 2>/dev/null` in #( | |
28 *posix*) : | |
29 set -o posix ;; #( | |
30 *) : | |
31 ;; | |
32 esac | |
33 fi | |
34 | |
35 | |
36 as_nl=' | |
37 ' | |
38 export as_nl | |
39 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 # but without wasting forks for bash or zsh. | |
45 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 as_echo='print -r --' | |
48 as_echo_n='print -rn --' | |
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 as_echo='printf %s\n' | |
51 as_echo_n='printf %s' | |
52 else | |
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 as_echo_n='/usr/ucb/echo -n' | |
56 else | |
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 as_echo_n_body='eval | |
59 arg=$1; | |
60 case $arg in #( | |
61 *"$as_nl"*) | |
62 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 esac; | |
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 ' | |
67 export as_echo_n_body | |
68 as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 fi | |
70 export as_echo_body | |
71 as_echo='sh -c $as_echo_body as_echo' | |
72 fi | |
73 | |
74 # The user is always right. | |
75 if test "${PATH_SEPARATOR+set}" != set; then | |
76 PATH_SEPARATOR=: | |
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 PATH_SEPARATOR=';' | |
80 } | |
81 fi | |
82 | |
83 | |
84 # IFS | |
85 # We need space, tab and new line, in precisely that order. Quoting is | |
86 # there to prevent editors from complaining about space-tab. | |
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 # splitting by setting IFS to empty value.) | |
89 IFS=" "" $as_nl" | |
90 | |
91 # Find who we are. Look in the path if we contain no directory separator. | |
92 as_myself= | |
93 case $0 in #(( | |
94 *[\\/]* ) as_myself=$0 ;; | |
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 for as_dir in $PATH | |
97 do | |
98 IFS=$as_save_IFS | |
99 test -z "$as_dir" && as_dir=. | |
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 done | |
102 IFS=$as_save_IFS | |
103 | |
104 ;; | |
105 esac | |
106 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 # in which case we are not to be found in the path. | |
108 if test "x$as_myself" = x; then | |
109 as_myself=$0 | |
110 fi | |
111 if test ! -f "$as_myself"; then | |
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 exit 1 | |
114 fi | |
115 | |
116 # Unset variables that we do not need and which cause bugs (e.g. in | |
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 # suppresses any "Segmentation fault" message there. '((' could | |
119 # trigger a bug in pdksh 5.2.14. | |
120 for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 do eval test x\${$as_var+set} = xset \ | |
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 done | |
124 PS1='$ ' | |
125 PS2='> ' | |
126 PS4='+ ' | |
127 | |
128 # NLS nuisances. | |
129 LC_ALL=C | |
130 export LC_ALL | |
131 LANGUAGE=C | |
132 export LANGUAGE | |
133 | |
134 # CDPATH. | |
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | |
137 if test "x$CONFIG_SHELL" = x; then | |
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
139 emulate sh | |
140 NULLCMD=: | |
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
142 # is contrary to our usage. Disable this feature. | |
143 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
144 setopt NO_GLOB_SUBST | |
145 else | |
146 case \`(set -o) 2>/dev/null\` in #( | |
147 *posix*) : | |
148 set -o posix ;; #( | |
149 *) : | |
150 ;; | |
151 esac | |
152 fi | |
153 " | |
154 as_required="as_fn_return () { (exit \$1); } | |
155 as_fn_success () { as_fn_return 0; } | |
156 as_fn_failure () { as_fn_return 1; } | |
157 as_fn_ret_success () { return 0; } | |
158 as_fn_ret_failure () { return 1; } | |
159 | |
160 exitcode=0 | |
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
166 | |
167 else | |
168 exitcode=1; echo positional parameters were not saved. | |
169 fi | |
170 test x\$exitcode = x0 || exit 1" | |
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
175 | |
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
180 PATH=/empty FPATH=/empty; export PATH FPATH | |
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
183 test \$(( 1 + 1 )) = 2 || exit 1" | |
184 if (eval "$as_required") 2>/dev/null; then : | |
185 as_have_required=yes | |
186 else | |
187 as_have_required=no | |
188 fi | |
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
190 | |
191 else | |
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
193 as_found=false | |
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
195 do | |
196 IFS=$as_save_IFS | |
197 test -z "$as_dir" && as_dir=. | |
198 as_found=: | |
199 case $as_dir in #( | |
200 /*) | |
201 for as_base in sh bash ksh sh5; do | |
202 # Try only shells that exist, to save several forks. | |
203 as_shell=$as_dir/$as_base | |
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
206 CONFIG_SHELL=$as_shell as_have_required=yes | |
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
208 break 2 | |
209 fi | |
210 fi | |
211 done;; | |
212 esac | |
213 as_found=false | |
214 done | |
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
217 CONFIG_SHELL=$SHELL as_have_required=yes | |
218 fi; } | |
219 IFS=$as_save_IFS | |
220 | |
221 | |
222 if test "x$CONFIG_SHELL" != x; then : | |
223 # We cannot yet assume a decent shell, so we have to provide a | |
224 # neutralization value for shells without unset; and this also | |
225 # works around shells that cannot unset nonexistent variables. | |
226 # Preserve -v and -x to the replacement shell. | |
227 BASH_ENV=/dev/null | |
228 ENV=/dev/null | |
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
230 export CONFIG_SHELL | |
231 case $- in # (((( | |
232 *v*x* | *x*v* ) as_opts=-vx ;; | |
233 *v* ) as_opts=-v ;; | |
234 *x* ) as_opts=-x ;; | |
235 * ) as_opts= ;; | |
236 esac | |
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
238 fi | |
239 | |
240 if test x$as_have_required = xno; then : | |
241 $as_echo "$0: This script requires a shell more modern than all" | |
242 $as_echo "$0: the shells that I found on your system." | |
243 if test x${ZSH_VERSION+set} = xset ; then | |
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
246 else | |
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
248 $0: including any error possibly output before this | |
249 $0: message. Then install a modern shell, or manually run | |
250 $0: the script under such a shell if you do have one." | |
251 fi | |
252 exit 1 | |
253 fi | |
254 fi | |
255 fi | |
256 SHELL=${CONFIG_SHELL-/bin/sh} | |
257 export SHELL | |
258 # Unset more variables known to interfere with behavior of common tools. | |
259 CLICOLOR_FORCE= GREP_OPTIONS= | |
260 unset CLICOLOR_FORCE GREP_OPTIONS | |
261 | |
262 ## --------------------- ## | |
263 ## M4sh Shell Functions. ## | |
264 ## --------------------- ## | |
265 # as_fn_unset VAR | |
266 # --------------- | |
267 # Portably unset VAR. | |
268 as_fn_unset () | |
269 { | |
270 { eval $1=; unset $1;} | |
271 } | |
272 as_unset=as_fn_unset | |
273 | |
274 # as_fn_set_status STATUS | |
275 # ----------------------- | |
276 # Set $? to STATUS, without forking. | |
277 as_fn_set_status () | |
278 { | |
279 return $1 | |
280 } # as_fn_set_status | |
281 | |
282 # as_fn_exit STATUS | |
283 # ----------------- | |
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
285 as_fn_exit () | |
286 { | |
287 set +e | |
288 as_fn_set_status $1 | |
289 exit $1 | |
290 } # as_fn_exit | |
291 | |
292 # as_fn_mkdir_p | |
293 # ------------- | |
294 # Create "$as_dir" as a directory, including parents if necessary. | |
295 as_fn_mkdir_p () | |
296 { | |
297 | |
298 case $as_dir in #( | |
299 -*) as_dir=./$as_dir;; | |
300 esac | |
301 test -d "$as_dir" || eval $as_mkdir_p || { | |
302 as_dirs= | |
303 while :; do | |
304 case $as_dir in #( | |
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
306 *) as_qdir=$as_dir;; | |
307 esac | |
308 as_dirs="'$as_qdir' $as_dirs" | |
309 as_dir=`$as_dirname -- "$as_dir" || | |
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
311 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
312 X"$as_dir" : 'X\(//\)$' \| \ | |
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
314 $as_echo X"$as_dir" | | |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
316 s//\1/ | |
317 q | |
318 } | |
319 /^X\(\/\/\)[^/].*/{ | |
320 s//\1/ | |
321 q | |
322 } | |
323 /^X\(\/\/\)$/{ | |
324 s//\1/ | |
325 q | |
326 } | |
327 /^X\(\/\).*/{ | |
328 s//\1/ | |
329 q | |
330 } | |
331 s/.*/./; q'` | |
332 test -d "$as_dir" && break | |
333 done | |
334 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
336 | |
337 | |
338 } # as_fn_mkdir_p | |
339 # as_fn_append VAR VALUE | |
340 # ---------------------- | |
341 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
342 # advantage of any shell optimizations that allow amortized linear growth over | |
343 # repeated appends, instead of the typical quadratic growth present in naive | |
344 # implementations. | |
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
346 eval 'as_fn_append () | |
347 { | |
348 eval $1+=\$2 | |
349 }' | |
350 else | |
351 as_fn_append () | |
352 { | |
353 eval $1=\$$1\$2 | |
354 } | |
355 fi # as_fn_append | |
356 | |
357 # as_fn_arith ARG... | |
358 # ------------------ | |
359 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
361 # must be portable across $(()) and expr. | |
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
363 eval 'as_fn_arith () | |
364 { | |
365 as_val=$(( $* )) | |
366 }' | |
367 else | |
368 as_fn_arith () | |
369 { | |
370 as_val=`expr "$@" || test $? -eq 1` | |
371 } | |
372 fi # as_fn_arith | |
373 | |
374 | |
375 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
376 # ---------------------------------------- | |
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
379 # script with STATUS, using 1 if that was 0. | |
380 as_fn_error () | |
381 { | |
382 as_status=$1; test $as_status -eq 0 && as_status=1 | |
383 if test "$4"; then | |
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
386 fi | |
387 $as_echo "$as_me: error: $2" >&2 | |
388 as_fn_exit $as_status | |
389 } # as_fn_error | |
390 | |
391 if expr a : '\(a\)' >/dev/null 2>&1 && | |
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
393 as_expr=expr | |
394 else | |
395 as_expr=false | |
396 fi | |
397 | |
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
399 as_basename=basename | |
400 else | |
401 as_basename=false | |
402 fi | |
403 | |
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
405 as_dirname=dirname | |
406 else | |
407 as_dirname=false | |
408 fi | |
409 | |
410 as_me=`$as_basename -- "$0" || | |
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
412 X"$0" : 'X\(//\)$' \| \ | |
413 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
414 $as_echo X/"$0" | | |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
416 s//\1/ | |
417 q | |
418 } | |
419 /^X\/\(\/\/\)$/{ | |
420 s//\1/ | |
421 q | |
422 } | |
423 /^X\/\(\/\).*/{ | |
424 s//\1/ | |
425 q | |
426 } | |
427 s/.*/./; q'` | |
428 | |
429 # Avoid depending upon Character Ranges. | |
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
433 as_cr_digits='0123456789' | |
434 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
435 | |
436 | |
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
442 sed -n ' | |
443 p | |
444 /[$]LINENO/= | |
445 ' <$as_myself | | |
446 sed ' | |
447 s/[$]LINENO.*/&-/ | |
448 t lineno | |
449 b | |
450 :lineno | |
451 N | |
452 :loop | |
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
454 t loop | |
455 s/-\n.*// | |
456 ' >$as_me.lineno && | |
457 chmod +x "$as_me.lineno" || | |
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
459 | |
460 # Don't try to exec as it changes $[0], causing all sort of problems | |
461 # (the dirname of $[0] is not the place where we might find the | |
462 # original and so on. Autoconf is especially sensitive to this). | |
463 . "./$as_me.lineno" | |
464 # Exit status is that of the last command. | |
465 exit | |
466 } | |
467 | |
468 ECHO_C= ECHO_N= ECHO_T= | |
469 case `echo -n x` in #((((( | |
470 -n*) | |
471 case `echo 'xy\c'` in | |
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
473 xy) ECHO_C='\c';; | |
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
475 ECHO_T=' ';; | |
476 esac;; | |
477 *) | |
478 ECHO_N='-n';; | |
479 esac | |
480 | |
481 rm -f conf$$ conf$$.exe conf$$.file | |
482 if test -d conf$$.dir; then | |
483 rm -f conf$$.dir/conf$$.file | |
484 else | |
485 rm -f conf$$.dir | |
486 mkdir conf$$.dir 2>/dev/null | |
487 fi | |
488 if (echo >conf$$.file) 2>/dev/null; then | |
489 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
490 as_ln_s='ln -s' | |
491 # ... but there are two gotchas: | |
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
494 # In both cases, we have to default to `cp -p'. | |
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
496 as_ln_s='cp -p' | |
497 elif ln conf$$.file conf$$ 2>/dev/null; then | |
498 as_ln_s=ln | |
499 else | |
500 as_ln_s='cp -p' | |
501 fi | |
502 else | |
503 as_ln_s='cp -p' | |
504 fi | |
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
506 rmdir conf$$.dir 2>/dev/null | |
507 | |
508 if mkdir -p . 2>/dev/null; then | |
509 as_mkdir_p='mkdir -p "$as_dir"' | |
510 else | |
511 test -d ./-p && rmdir ./-p | |
512 as_mkdir_p=false | |
513 fi | |
514 | |
515 if test -x / >/dev/null 2>&1; then | |
516 as_test_x='test -x' | |
517 else | |
518 if ls -dL / >/dev/null 2>&1; then | |
519 as_ls_L_option=L | |
520 else | |
521 as_ls_L_option= | |
522 fi | |
523 as_test_x=' | |
524 eval sh -c '\'' | |
525 if test -d "$1"; then | |
526 test -d "$1/."; | |
527 else | |
528 case $1 in #( | |
529 -*)set "./$1";; | |
530 esac; | |
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
532 ???[sx]*):;;*)false;;esac;fi | |
533 '\'' sh | |
534 ' | |
535 fi | |
536 as_executable_p=$as_test_x | |
537 | |
538 # Sed expression to map a string onto a valid CPP name. | |
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
540 | |
541 # Sed expression to map a string onto a valid variable name. | |
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
543 | |
544 SHELL=${CONFIG_SHELL-/bin/sh} | |
545 | |
546 | |
547 test -n "$DJDIR" || exec 7<&0 </dev/null | |
548 exec 6>&1 | |
549 | |
550 # Name of the host. | |
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
552 # so uname gets run too. | |
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
554 | |
555 # | |
556 # Initializations. | |
557 # | |
558 ac_default_prefix=/usr/local | |
559 ac_clean_files= | |
560 ac_config_libobj_dir=. | |
561 LIBOBJS= | |
562 cross_compiling=no | |
563 subdirs= | |
564 MFLAGS= | |
565 MAKEFLAGS= | |
566 | |
567 # Identity of this package. | |
568 PACKAGE_NAME= | |
569 PACKAGE_TARNAME= | |
570 PACKAGE_VERSION= | |
571 PACKAGE_STRING= | |
572 PACKAGE_BUGREPORT= | |
573 PACKAGE_URL= | |
574 | |
575 ac_unique_file="src/framing.c" | |
576 # Factoring default headers for most tests. | |
577 ac_includes_default="\ | |
578 #include <stdio.h> | |
579 #ifdef HAVE_SYS_TYPES_H | |
580 # include <sys/types.h> | |
581 #endif | |
582 #ifdef HAVE_SYS_STAT_H | |
583 # include <sys/stat.h> | |
584 #endif | |
585 #ifdef STDC_HEADERS | |
586 # include <stdlib.h> | |
587 # include <stddef.h> | |
588 #else | |
589 # ifdef HAVE_STDLIB_H | |
590 # include <stdlib.h> | |
591 # endif | |
592 #endif | |
593 #ifdef HAVE_STRING_H | |
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
595 # include <memory.h> | |
596 # endif | |
597 # include <string.h> | |
598 #endif | |
599 #ifdef HAVE_STRINGS_H | |
600 # include <strings.h> | |
601 #endif | |
602 #ifdef HAVE_INTTYPES_H | |
603 # include <inttypes.h> | |
604 #endif | |
605 #ifdef HAVE_STDINT_H | |
606 # include <stdint.h> | |
607 #endif | |
608 #ifdef HAVE_UNISTD_H | |
609 # include <unistd.h> | |
610 #endif" | |
611 | |
612 ac_subst_vars='am__EXEEXT_FALSE | |
613 am__EXEEXT_TRUE | |
614 LTLIBOBJS | |
615 PROFILE | |
616 DEBUG | |
617 OPT | |
618 SIZE64 | |
619 USIZE32 | |
620 SIZE32 | |
621 USIZE16 | |
622 SIZE16 | |
623 INCLUDE_SYS_TYPES_H | |
624 INCLUDE_STDINT_H | |
625 INCLUDE_INTTYPES_H | |
626 LIBTOOL_DEPS | |
627 LIBOBJS | |
628 CPP | |
629 OTOOL64 | |
630 OTOOL | |
631 LIPO | |
632 NMEDIT | |
633 DSYMUTIL | |
634 MANIFEST_TOOL | |
635 RANLIB | |
636 ac_ct_AR | |
637 AR | |
638 DLLTOOL | |
639 OBJDUMP | |
640 LN_S | |
641 NM | |
642 ac_ct_DUMPBIN | |
643 DUMPBIN | |
644 LD | |
645 FGREP | |
646 EGREP | |
647 GREP | |
648 SED | |
649 host_os | |
650 host_vendor | |
651 host_cpu | |
652 host | |
653 build_os | |
654 build_vendor | |
655 build_cpu | |
656 build | |
657 LIBTOOL | |
658 am__fastdepCC_FALSE | |
659 am__fastdepCC_TRUE | |
660 CCDEPMODE | |
661 AMDEPBACKSLASH | |
662 AMDEP_FALSE | |
663 AMDEP_TRUE | |
664 am__quote | |
665 am__include | |
666 DEPDIR | |
667 OBJEXT | |
668 EXEEXT | |
669 ac_ct_CC | |
670 CPPFLAGS | |
671 LDFLAGS | |
672 CFLAGS | |
673 CC | |
674 LIB_AGE | |
675 LIB_REVISION | |
676 LIB_CURRENT | |
677 MAINT | |
678 MAINTAINER_MODE_FALSE | |
679 MAINTAINER_MODE_TRUE | |
680 am__untar | |
681 am__tar | |
682 AMTAR | |
683 am__leading_dot | |
684 SET_MAKE | |
685 AWK | |
686 mkdir_p | |
687 MKDIR_P | |
688 INSTALL_STRIP_PROGRAM | |
689 STRIP | |
690 install_sh | |
691 MAKEINFO | |
692 AUTOHEADER | |
693 AUTOMAKE | |
694 AUTOCONF | |
695 ACLOCAL | |
696 VERSION | |
697 PACKAGE | |
698 CYGPATH_W | |
699 am__isrc | |
700 INSTALL_DATA | |
701 INSTALL_SCRIPT | |
702 INSTALL_PROGRAM | |
703 target_alias | |
704 host_alias | |
705 build_alias | |
706 LIBS | |
707 ECHO_T | |
708 ECHO_N | |
709 ECHO_C | |
710 DEFS | |
711 mandir | |
712 localedir | |
713 libdir | |
714 psdir | |
715 pdfdir | |
716 dvidir | |
717 htmldir | |
718 infodir | |
719 docdir | |
720 oldincludedir | |
721 includedir | |
722 localstatedir | |
723 sharedstatedir | |
724 sysconfdir | |
725 datadir | |
726 datarootdir | |
727 libexecdir | |
728 sbindir | |
729 bindir | |
730 program_transform_name | |
731 prefix | |
732 exec_prefix | |
733 PACKAGE_URL | |
734 PACKAGE_BUGREPORT | |
735 PACKAGE_STRING | |
736 PACKAGE_VERSION | |
737 PACKAGE_TARNAME | |
738 PACKAGE_NAME | |
739 PATH_SEPARATOR | |
740 SHELL' | |
741 ac_subst_files='' | |
742 ac_user_opts=' | |
743 enable_option_checking | |
744 enable_maintainer_mode | |
745 enable_dependency_tracking | |
746 enable_shared | |
747 enable_static | |
748 with_pic | |
749 enable_fast_install | |
750 with_gnu_ld | |
751 with_sysroot | |
752 enable_libtool_lock | |
753 ' | |
754 ac_precious_vars='build_alias | |
755 host_alias | |
756 target_alias | |
757 CC | |
758 CFLAGS | |
759 LDFLAGS | |
760 LIBS | |
761 CPPFLAGS | |
762 CPP' | |
763 | |
764 | |
765 # Initialize some variables set by options. | |
766 ac_init_help= | |
767 ac_init_version=false | |
768 ac_unrecognized_opts= | |
769 ac_unrecognized_sep= | |
770 # The variables have the same names as the options, with | |
771 # dashes changed to underlines. | |
772 cache_file=/dev/null | |
773 exec_prefix=NONE | |
774 no_create= | |
775 no_recursion= | |
776 prefix=NONE | |
777 program_prefix=NONE | |
778 program_suffix=NONE | |
779 program_transform_name=s,x,x, | |
780 silent= | |
781 site= | |
782 srcdir= | |
783 verbose= | |
784 x_includes=NONE | |
785 x_libraries=NONE | |
786 | |
787 # Installation directory options. | |
788 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
789 # and all the variables that are supposed to be based on exec_prefix | |
790 # by default will actually change. | |
791 # Use braces instead of parens because sh, perl, etc. also accept them. | |
792 # (The list follows the same order as the GNU Coding Standards.) | |
793 bindir='${exec_prefix}/bin' | |
794 sbindir='${exec_prefix}/sbin' | |
795 libexecdir='${exec_prefix}/libexec' | |
796 datarootdir='${prefix}/share' | |
797 datadir='${datarootdir}' | |
798 sysconfdir='${prefix}/etc' | |
799 sharedstatedir='${prefix}/com' | |
800 localstatedir='${prefix}/var' | |
801 includedir='${prefix}/include' | |
802 oldincludedir='/usr/include' | |
803 docdir='${datarootdir}/doc/${PACKAGE}' | |
804 infodir='${datarootdir}/info' | |
805 htmldir='${docdir}' | |
806 dvidir='${docdir}' | |
807 pdfdir='${docdir}' | |
808 psdir='${docdir}' | |
809 libdir='${exec_prefix}/lib' | |
810 localedir='${datarootdir}/locale' | |
811 mandir='${datarootdir}/man' | |
812 | |
813 ac_prev= | |
814 ac_dashdash= | |
815 for ac_option | |
816 do | |
817 # If the previous option needs an argument, assign it. | |
818 if test -n "$ac_prev"; then | |
819 eval $ac_prev=\$ac_option | |
820 ac_prev= | |
821 continue | |
822 fi | |
823 | |
824 case $ac_option in | |
825 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
826 *=) ac_optarg= ;; | |
827 *) ac_optarg=yes ;; | |
828 esac | |
829 | |
830 # Accept the important Cygnus configure options, so we can diagnose typos. | |
831 | |
832 case $ac_dashdash$ac_option in | |
833 --) | |
834 ac_dashdash=yes ;; | |
835 | |
836 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
837 ac_prev=bindir ;; | |
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
839 bindir=$ac_optarg ;; | |
840 | |
841 -build | --build | --buil | --bui | --bu) | |
842 ac_prev=build_alias ;; | |
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
844 build_alias=$ac_optarg ;; | |
845 | |
846 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
848 ac_prev=cache_file ;; | |
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
851 cache_file=$ac_optarg ;; | |
852 | |
853 --config-cache | -C) | |
854 cache_file=config.cache ;; | |
855 | |
856 -datadir | --datadir | --datadi | --datad) | |
857 ac_prev=datadir ;; | |
858 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
859 datadir=$ac_optarg ;; | |
860 | |
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
862 | --dataroo | --dataro | --datar) | |
863 ac_prev=datarootdir ;; | |
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
866 datarootdir=$ac_optarg ;; | |
867 | |
868 -disable-* | --disable-*) | |
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
870 # Reject names that are not valid shell variable names. | |
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
872 as_fn_error $? "invalid feature name: $ac_useropt" | |
873 ac_useropt_orig=$ac_useropt | |
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
875 case $ac_user_opts in | |
876 *" | |
877 "enable_$ac_useropt" | |
878 "*) ;; | |
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
880 ac_unrecognized_sep=', ';; | |
881 esac | |
882 eval enable_$ac_useropt=no ;; | |
883 | |
884 -docdir | --docdir | --docdi | --doc | --do) | |
885 ac_prev=docdir ;; | |
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
887 docdir=$ac_optarg ;; | |
888 | |
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
890 ac_prev=dvidir ;; | |
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
892 dvidir=$ac_optarg ;; | |
893 | |
894 -enable-* | --enable-*) | |
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
896 # Reject names that are not valid shell variable names. | |
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
898 as_fn_error $? "invalid feature name: $ac_useropt" | |
899 ac_useropt_orig=$ac_useropt | |
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
901 case $ac_user_opts in | |
902 *" | |
903 "enable_$ac_useropt" | |
904 "*) ;; | |
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
906 ac_unrecognized_sep=', ';; | |
907 esac | |
908 eval enable_$ac_useropt=\$ac_optarg ;; | |
909 | |
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
912 | --exec | --exe | --ex) | |
913 ac_prev=exec_prefix ;; | |
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
916 | --exec=* | --exe=* | --ex=*) | |
917 exec_prefix=$ac_optarg ;; | |
918 | |
919 -gas | --gas | --ga | --g) | |
920 # Obsolete; use --with-gas. | |
921 with_gas=yes ;; | |
922 | |
923 -help | --help | --hel | --he | -h) | |
924 ac_init_help=long ;; | |
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
926 ac_init_help=recursive ;; | |
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
928 ac_init_help=short ;; | |
929 | |
930 -host | --host | --hos | --ho) | |
931 ac_prev=host_alias ;; | |
932 -host=* | --host=* | --hos=* | --ho=*) | |
933 host_alias=$ac_optarg ;; | |
934 | |
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
936 ac_prev=htmldir ;; | |
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
938 | --ht=*) | |
939 htmldir=$ac_optarg ;; | |
940 | |
941 -includedir | --includedir | --includedi | --included | --include \ | |
942 | --includ | --inclu | --incl | --inc) | |
943 ac_prev=includedir ;; | |
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
945 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
946 includedir=$ac_optarg ;; | |
947 | |
948 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
949 ac_prev=infodir ;; | |
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
951 infodir=$ac_optarg ;; | |
952 | |
953 -libdir | --libdir | --libdi | --libd) | |
954 ac_prev=libdir ;; | |
955 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
956 libdir=$ac_optarg ;; | |
957 | |
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
959 | --libexe | --libex | --libe) | |
960 ac_prev=libexecdir ;; | |
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
962 | --libexe=* | --libex=* | --libe=*) | |
963 libexecdir=$ac_optarg ;; | |
964 | |
965 -localedir | --localedir | --localedi | --localed | --locale) | |
966 ac_prev=localedir ;; | |
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
968 localedir=$ac_optarg ;; | |
969 | |
970 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
971 | --localstate | --localstat | --localsta | --localst | --locals) | |
972 ac_prev=localstatedir ;; | |
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
975 localstatedir=$ac_optarg ;; | |
976 | |
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
978 ac_prev=mandir ;; | |
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
980 mandir=$ac_optarg ;; | |
981 | |
982 -nfp | --nfp | --nf) | |
983 # Obsolete; use --without-fp. | |
984 with_fp=no ;; | |
985 | |
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
987 | --no-cr | --no-c | -n) | |
988 no_create=yes ;; | |
989 | |
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
992 no_recursion=yes ;; | |
993 | |
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
996 | --oldin | --oldi | --old | --ol | --o) | |
997 ac_prev=oldincludedir ;; | |
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1001 oldincludedir=$ac_optarg ;; | |
1002 | |
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1004 ac_prev=prefix ;; | |
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1006 prefix=$ac_optarg ;; | |
1007 | |
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1009 | --program-pre | --program-pr | --program-p) | |
1010 ac_prev=program_prefix ;; | |
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1013 program_prefix=$ac_optarg ;; | |
1014 | |
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1016 | --program-suf | --program-su | --program-s) | |
1017 ac_prev=program_suffix ;; | |
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1020 program_suffix=$ac_optarg ;; | |
1021 | |
1022 -program-transform-name | --program-transform-name \ | |
1023 | --program-transform-nam | --program-transform-na \ | |
1024 | --program-transform-n | --program-transform- \ | |
1025 | --program-transform | --program-transfor \ | |
1026 | --program-transfo | --program-transf \ | |
1027 | --program-trans | --program-tran \ | |
1028 | --progr-tra | --program-tr | --program-t) | |
1029 ac_prev=program_transform_name ;; | |
1030 -program-transform-name=* | --program-transform-name=* \ | |
1031 | --program-transform-nam=* | --program-transform-na=* \ | |
1032 | --program-transform-n=* | --program-transform-=* \ | |
1033 | --program-transform=* | --program-transfor=* \ | |
1034 | --program-transfo=* | --program-transf=* \ | |
1035 | --program-trans=* | --program-tran=* \ | |
1036 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1037 program_transform_name=$ac_optarg ;; | |
1038 | |
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1040 ac_prev=pdfdir ;; | |
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1042 pdfdir=$ac_optarg ;; | |
1043 | |
1044 -psdir | --psdir | --psdi | --psd | --ps) | |
1045 ac_prev=psdir ;; | |
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1047 psdir=$ac_optarg ;; | |
1048 | |
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1050 | -silent | --silent | --silen | --sile | --sil) | |
1051 silent=yes ;; | |
1052 | |
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1054 ac_prev=sbindir ;; | |
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1056 | --sbi=* | --sb=*) | |
1057 sbindir=$ac_optarg ;; | |
1058 | |
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1061 | --sharedst | --shareds | --shared | --share | --shar \ | |
1062 | --sha | --sh) | |
1063 ac_prev=sharedstatedir ;; | |
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1067 | --sha=* | --sh=*) | |
1068 sharedstatedir=$ac_optarg ;; | |
1069 | |
1070 -site | --site | --sit) | |
1071 ac_prev=site ;; | |
1072 -site=* | --site=* | --sit=*) | |
1073 site=$ac_optarg ;; | |
1074 | |
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1076 ac_prev=srcdir ;; | |
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1078 srcdir=$ac_optarg ;; | |
1079 | |
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1081 | --syscon | --sysco | --sysc | --sys | --sy) | |
1082 ac_prev=sysconfdir ;; | |
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1085 sysconfdir=$ac_optarg ;; | |
1086 | |
1087 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1088 ac_prev=target_alias ;; | |
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1090 target_alias=$ac_optarg ;; | |
1091 | |
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1093 verbose=yes ;; | |
1094 | |
1095 -version | --version | --versio | --versi | --vers | -V) | |
1096 ac_init_version=: ;; | |
1097 | |
1098 -with-* | --with-*) | |
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1100 # Reject names that are not valid shell variable names. | |
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1102 as_fn_error $? "invalid package name: $ac_useropt" | |
1103 ac_useropt_orig=$ac_useropt | |
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1105 case $ac_user_opts in | |
1106 *" | |
1107 "with_$ac_useropt" | |
1108 "*) ;; | |
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1110 ac_unrecognized_sep=', ';; | |
1111 esac | |
1112 eval with_$ac_useropt=\$ac_optarg ;; | |
1113 | |
1114 -without-* | --without-*) | |
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1116 # Reject names that are not valid shell variable names. | |
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1118 as_fn_error $? "invalid package name: $ac_useropt" | |
1119 ac_useropt_orig=$ac_useropt | |
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1121 case $ac_user_opts in | |
1122 *" | |
1123 "with_$ac_useropt" | |
1124 "*) ;; | |
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1126 ac_unrecognized_sep=', ';; | |
1127 esac | |
1128 eval with_$ac_useropt=no ;; | |
1129 | |
1130 --x) | |
1131 # Obsolete; use --with-x. | |
1132 with_x=yes ;; | |
1133 | |
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1135 | --x-incl | --x-inc | --x-in | --x-i) | |
1136 ac_prev=x_includes ;; | |
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1139 x_includes=$ac_optarg ;; | |
1140 | |
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1143 ac_prev=x_libraries ;; | |
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1146 x_libraries=$ac_optarg ;; | |
1147 | |
1148 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1149 Try \`$0 --help' for more information" | |
1150 ;; | |
1151 | |
1152 *=*) | |
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1154 # Reject names that are not valid shell variable names. | |
1155 case $ac_envvar in #( | |
1156 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1157 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1158 esac | |
1159 eval $ac_envvar=\$ac_optarg | |
1160 export $ac_envvar ;; | |
1161 | |
1162 *) | |
1163 # FIXME: should be removed in autoconf 3.0. | |
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1167 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1168 ;; | |
1169 | |
1170 esac | |
1171 done | |
1172 | |
1173 if test -n "$ac_prev"; then | |
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1175 as_fn_error $? "missing argument to $ac_option" | |
1176 fi | |
1177 | |
1178 if test -n "$ac_unrecognized_opts"; then | |
1179 case $enable_option_checking in | |
1180 no) ;; | |
1181 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1183 esac | |
1184 fi | |
1185 | |
1186 # Check all directory arguments for consistency. | |
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1188 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1190 libdir localedir mandir | |
1191 do | |
1192 eval ac_val=\$$ac_var | |
1193 # Remove trailing slashes. | |
1194 case $ac_val in | |
1195 */ ) | |
1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1197 eval $ac_var=\$ac_val;; | |
1198 esac | |
1199 # Be sure to have absolute directory names. | |
1200 case $ac_val in | |
1201 [\\/$]* | ?:[\\/]* ) continue;; | |
1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1203 esac | |
1204 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1205 done | |
1206 | |
1207 # There might be people who depend on the old broken behavior: `$host' | |
1208 # used to hold the argument of --host etc. | |
1209 # FIXME: To remove some day. | |
1210 build=$build_alias | |
1211 host=$host_alias | |
1212 target=$target_alias | |
1213 | |
1214 # FIXME: To remove some day. | |
1215 if test "x$host_alias" != x; then | |
1216 if test "x$build_alias" = x; then | |
1217 cross_compiling=maybe | |
1218 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1219 If a cross compiler is detected then cross compile mode will be used" >&2 | |
1220 elif test "x$build_alias" != "x$host_alias"; then | |
1221 cross_compiling=yes | |
1222 fi | |
1223 fi | |
1224 | |
1225 ac_tool_prefix= | |
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1227 | |
1228 test "$silent" = yes && exec 6>/dev/null | |
1229 | |
1230 | |
1231 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1232 ac_ls_di=`ls -di .` && | |
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1234 as_fn_error $? "working directory cannot be determined" | |
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1236 as_fn_error $? "pwd does not report name of working directory" | |
1237 | |
1238 | |
1239 # Find the source files, if location was not specified. | |
1240 if test -z "$srcdir"; then | |
1241 ac_srcdir_defaulted=yes | |
1242 # Try the directory containing this script, then the parent directory. | |
1243 ac_confdir=`$as_dirname -- "$as_myself" || | |
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1245 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1246 X"$as_myself" : 'X\(//\)$' \| \ | |
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1248 $as_echo X"$as_myself" | | |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1250 s//\1/ | |
1251 q | |
1252 } | |
1253 /^X\(\/\/\)[^/].*/{ | |
1254 s//\1/ | |
1255 q | |
1256 } | |
1257 /^X\(\/\/\)$/{ | |
1258 s//\1/ | |
1259 q | |
1260 } | |
1261 /^X\(\/\).*/{ | |
1262 s//\1/ | |
1263 q | |
1264 } | |
1265 s/.*/./; q'` | |
1266 srcdir=$ac_confdir | |
1267 if test ! -r "$srcdir/$ac_unique_file"; then | |
1268 srcdir=.. | |
1269 fi | |
1270 else | |
1271 ac_srcdir_defaulted=no | |
1272 fi | |
1273 if test ! -r "$srcdir/$ac_unique_file"; then | |
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1275 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1276 fi | |
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1278 ac_abs_confdir=`( | |
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1280 pwd)` | |
1281 # When building in place, set srcdir=. | |
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1283 srcdir=. | |
1284 fi | |
1285 # Remove unnecessary trailing slashes from srcdir. | |
1286 # Double slashes in file names in object file debugging info | |
1287 # mess up M-x gdb in Emacs. | |
1288 case $srcdir in | |
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1290 esac | |
1291 for ac_var in $ac_precious_vars; do | |
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1293 eval ac_env_${ac_var}_value=\$${ac_var} | |
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1296 done | |
1297 | |
1298 # | |
1299 # Report the --help message. | |
1300 # | |
1301 if test "$ac_init_help" = "long"; then | |
1302 # Omit some internal or obsolete options to make the list less imposing. | |
1303 # This message is too long to be a string in the A/UX 3.1 sh. | |
1304 cat <<_ACEOF | |
1305 \`configure' configures this package to adapt to many kinds of systems. | |
1306 | |
1307 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1308 | |
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1310 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1311 | |
1312 Defaults for the options are specified in brackets. | |
1313 | |
1314 Configuration: | |
1315 -h, --help display this help and exit | |
1316 --help=short display options specific to this package | |
1317 --help=recursive display the short help of all the included packages | |
1318 -V, --version display version information and exit | |
1319 -q, --quiet, --silent do not print \`checking ...' messages | |
1320 --cache-file=FILE cache test results in FILE [disabled] | |
1321 -C, --config-cache alias for \`--cache-file=config.cache' | |
1322 -n, --no-create do not create output files | |
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1324 | |
1325 Installation directories: | |
1326 --prefix=PREFIX install architecture-independent files in PREFIX | |
1327 [$ac_default_prefix] | |
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1329 [PREFIX] | |
1330 | |
1331 By default, \`make install' will install all the files in | |
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1334 for instance \`--prefix=\$HOME'. | |
1335 | |
1336 For better control, use the options below. | |
1337 | |
1338 Fine tuning of the installation directories: | |
1339 --bindir=DIR user executables [EPREFIX/bin] | |
1340 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1341 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1345 --libdir=DIR object code libraries [EPREFIX/lib] | |
1346 --includedir=DIR C header files [PREFIX/include] | |
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1350 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1352 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1354 --htmldir=DIR html documentation [DOCDIR] | |
1355 --dvidir=DIR dvi documentation [DOCDIR] | |
1356 --pdfdir=DIR pdf documentation [DOCDIR] | |
1357 --psdir=DIR ps documentation [DOCDIR] | |
1358 _ACEOF | |
1359 | |
1360 cat <<\_ACEOF | |
1361 | |
1362 Program names: | |
1363 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1364 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1366 | |
1367 System types: | |
1368 --build=BUILD configure for building on BUILD [guessed] | |
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1370 _ACEOF | |
1371 fi | |
1372 | |
1373 if test -n "$ac_init_help"; then | |
1374 | |
1375 cat <<\_ACEOF | |
1376 | |
1377 Optional Features: | |
1378 --disable-option-checking ignore unrecognized --enable/--with options | |
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1381 --enable-maintainer-mode enable make rules and dependencies not useful | |
1382 (and sometimes confusing) to the casual installer | |
1383 --disable-dependency-tracking speeds up one-time build | |
1384 --enable-dependency-tracking do not reject slow dependency extractors | |
1385 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1386 --enable-static[=PKGS] build static libraries [default=yes] | |
1387 --enable-fast-install[=PKGS] | |
1388 optimize for fast installation [default=yes] | |
1389 --disable-libtool-lock avoid locking (might break parallel builds) | |
1390 | |
1391 Optional Packages: | |
1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1394 --with-pic try to use only PIC/non-PIC objects [default=use | |
1395 both] | |
1396 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1397 --with-sysroot=DIR Search for dependent libraries within DIR | |
1398 (or the compiler's sysroot if not specified). | |
1399 | |
1400 Some influential environment variables: | |
1401 CC C compiler command | |
1402 CFLAGS C compiler flags | |
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1404 nonstandard directory <lib dir> | |
1405 LIBS libraries to pass to the linker, e.g. -l<library> | |
1406 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1407 you have headers in a nonstandard directory <include dir> | |
1408 CPP C preprocessor | |
1409 | |
1410 Use these variables to override the choices made by `configure' or to help | |
1411 it to find libraries and programs with nonstandard names/locations. | |
1412 | |
1413 Report bugs to the package provider. | |
1414 _ACEOF | |
1415 ac_status=$? | |
1416 fi | |
1417 | |
1418 if test "$ac_init_help" = "recursive"; then | |
1419 # If there are subdirs, report their specific --help. | |
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1421 test -d "$ac_dir" || | |
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1423 continue | |
1424 ac_builddir=. | |
1425 | |
1426 case "$ac_dir" in | |
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1428 *) | |
1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1430 # A ".." for each directory in $ac_dir_suffix. | |
1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1432 case $ac_top_builddir_sub in | |
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1435 esac ;; | |
1436 esac | |
1437 ac_abs_top_builddir=$ac_pwd | |
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1439 # for backward compatibility: | |
1440 ac_top_builddir=$ac_top_build_prefix | |
1441 | |
1442 case $srcdir in | |
1443 .) # We are building in place. | |
1444 ac_srcdir=. | |
1445 ac_top_srcdir=$ac_top_builddir_sub | |
1446 ac_abs_top_srcdir=$ac_pwd ;; | |
1447 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1448 ac_srcdir=$srcdir$ac_dir_suffix; | |
1449 ac_top_srcdir=$srcdir | |
1450 ac_abs_top_srcdir=$srcdir ;; | |
1451 *) # Relative name. | |
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1455 esac | |
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1457 | |
1458 cd "$ac_dir" || { ac_status=$?; continue; } | |
1459 # Check for guested configure. | |
1460 if test -f "$ac_srcdir/configure.gnu"; then | |
1461 echo && | |
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1463 elif test -f "$ac_srcdir/configure"; then | |
1464 echo && | |
1465 $SHELL "$ac_srcdir/configure" --help=recursive | |
1466 else | |
1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1468 fi || ac_status=$? | |
1469 cd "$ac_pwd" || { ac_status=$?; break; } | |
1470 done | |
1471 fi | |
1472 | |
1473 test -n "$ac_init_help" && exit $ac_status | |
1474 if $ac_init_version; then | |
1475 cat <<\_ACEOF | |
1476 configure | |
1477 generated by GNU Autoconf 2.68 | |
1478 | |
1479 Copyright (C) 2010 Free Software Foundation, Inc. | |
1480 This configure script is free software; the Free Software Foundation | |
1481 gives unlimited permission to copy, distribute and modify it. | |
1482 _ACEOF | |
1483 exit | |
1484 fi | |
1485 | |
1486 ## ------------------------ ## | |
1487 ## Autoconf initialization. ## | |
1488 ## ------------------------ ## | |
1489 | |
1490 # ac_fn_c_try_compile LINENO | |
1491 # -------------------------- | |
1492 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1493 ac_fn_c_try_compile () | |
1494 { | |
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1496 rm -f conftest.$ac_objext | |
1497 if { { ac_try="$ac_compile" | |
1498 case "(($ac_try" in | |
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1500 *) ac_try_echo=$ac_try;; | |
1501 esac | |
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1503 $as_echo "$ac_try_echo"; } >&5 | |
1504 (eval "$ac_compile") 2>conftest.err | |
1505 ac_status=$? | |
1506 if test -s conftest.err; then | |
1507 grep -v '^ *+' conftest.err >conftest.er1 | |
1508 cat conftest.er1 >&5 | |
1509 mv -f conftest.er1 conftest.err | |
1510 fi | |
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1512 test $ac_status = 0; } && { | |
1513 test -z "$ac_c_werror_flag" || | |
1514 test ! -s conftest.err | |
1515 } && test -s conftest.$ac_objext; then : | |
1516 ac_retval=0 | |
1517 else | |
1518 $as_echo "$as_me: failed program was:" >&5 | |
1519 sed 's/^/| /' conftest.$ac_ext >&5 | |
1520 | |
1521 ac_retval=1 | |
1522 fi | |
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1524 as_fn_set_status $ac_retval | |
1525 | |
1526 } # ac_fn_c_try_compile | |
1527 | |
1528 # ac_fn_c_try_link LINENO | |
1529 # ----------------------- | |
1530 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1531 ac_fn_c_try_link () | |
1532 { | |
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1534 rm -f conftest.$ac_objext conftest$ac_exeext | |
1535 if { { ac_try="$ac_link" | |
1536 case "(($ac_try" in | |
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1538 *) ac_try_echo=$ac_try;; | |
1539 esac | |
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1541 $as_echo "$ac_try_echo"; } >&5 | |
1542 (eval "$ac_link") 2>conftest.err | |
1543 ac_status=$? | |
1544 if test -s conftest.err; then | |
1545 grep -v '^ *+' conftest.err >conftest.er1 | |
1546 cat conftest.er1 >&5 | |
1547 mv -f conftest.er1 conftest.err | |
1548 fi | |
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1550 test $ac_status = 0; } && { | |
1551 test -z "$ac_c_werror_flag" || | |
1552 test ! -s conftest.err | |
1553 } && test -s conftest$ac_exeext && { | |
1554 test "$cross_compiling" = yes || | |
1555 $as_test_x conftest$ac_exeext | |
1556 }; then : | |
1557 ac_retval=0 | |
1558 else | |
1559 $as_echo "$as_me: failed program was:" >&5 | |
1560 sed 's/^/| /' conftest.$ac_ext >&5 | |
1561 | |
1562 ac_retval=1 | |
1563 fi | |
1564 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1565 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1566 # interfere with the next link command; also delete a directory that is | |
1567 # left behind by Apple's compiler. We do this before executing the actions. | |
1568 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1570 as_fn_set_status $ac_retval | |
1571 | |
1572 } # ac_fn_c_try_link | |
1573 | |
1574 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1575 # ------------------------------------------------------- | |
1576 # Tests whether HEADER exists and can be compiled using the include files in | |
1577 # INCLUDES, setting the cache variable VAR accordingly. | |
1578 ac_fn_c_check_header_compile () | |
1579 { | |
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1582 $as_echo_n "checking for $2... " >&6; } | |
1583 if eval \${$3+:} false; then : | |
1584 $as_echo_n "(cached) " >&6 | |
1585 else | |
1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1587 /* end confdefs.h. */ | |
1588 $4 | |
1589 #include <$2> | |
1590 _ACEOF | |
1591 if ac_fn_c_try_compile "$LINENO"; then : | |
1592 eval "$3=yes" | |
1593 else | |
1594 eval "$3=no" | |
1595 fi | |
1596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1597 fi | |
1598 eval ac_res=\$$3 | |
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1600 $as_echo "$ac_res" >&6; } | |
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1602 | |
1603 } # ac_fn_c_check_header_compile | |
1604 | |
1605 # ac_fn_c_try_cpp LINENO | |
1606 # ---------------------- | |
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1608 ac_fn_c_try_cpp () | |
1609 { | |
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1611 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1612 case "(($ac_try" in | |
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1614 *) ac_try_echo=$ac_try;; | |
1615 esac | |
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1617 $as_echo "$ac_try_echo"; } >&5 | |
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1619 ac_status=$? | |
1620 if test -s conftest.err; then | |
1621 grep -v '^ *+' conftest.err >conftest.er1 | |
1622 cat conftest.er1 >&5 | |
1623 mv -f conftest.er1 conftest.err | |
1624 fi | |
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1626 test $ac_status = 0; } > conftest.i && { | |
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1628 test ! -s conftest.err | |
1629 }; then : | |
1630 ac_retval=0 | |
1631 else | |
1632 $as_echo "$as_me: failed program was:" >&5 | |
1633 sed 's/^/| /' conftest.$ac_ext >&5 | |
1634 | |
1635 ac_retval=1 | |
1636 fi | |
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1638 as_fn_set_status $ac_retval | |
1639 | |
1640 } # ac_fn_c_try_cpp | |
1641 | |
1642 # ac_fn_c_try_run LINENO | |
1643 # ---------------------- | |
1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1645 # that executables *can* be run. | |
1646 ac_fn_c_try_run () | |
1647 { | |
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1649 if { { ac_try="$ac_link" | |
1650 case "(($ac_try" in | |
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1652 *) ac_try_echo=$ac_try;; | |
1653 esac | |
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1655 $as_echo "$ac_try_echo"; } >&5 | |
1656 (eval "$ac_link") 2>&5 | |
1657 ac_status=$? | |
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1660 { { case "(($ac_try" in | |
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1662 *) ac_try_echo=$ac_try;; | |
1663 esac | |
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1665 $as_echo "$ac_try_echo"; } >&5 | |
1666 (eval "$ac_try") 2>&5 | |
1667 ac_status=$? | |
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1669 test $ac_status = 0; }; }; then : | |
1670 ac_retval=0 | |
1671 else | |
1672 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1673 $as_echo "$as_me: failed program was:" >&5 | |
1674 sed 's/^/| /' conftest.$ac_ext >&5 | |
1675 | |
1676 ac_retval=$ac_status | |
1677 fi | |
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1680 as_fn_set_status $ac_retval | |
1681 | |
1682 } # ac_fn_c_try_run | |
1683 | |
1684 # ac_fn_c_check_func LINENO FUNC VAR | |
1685 # ---------------------------------- | |
1686 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1687 ac_fn_c_check_func () | |
1688 { | |
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1691 $as_echo_n "checking for $2... " >&6; } | |
1692 if eval \${$3+:} false; then : | |
1693 $as_echo_n "(cached) " >&6 | |
1694 else | |
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1696 /* end confdefs.h. */ | |
1697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1698 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1699 #define $2 innocuous_$2 | |
1700 | |
1701 /* System header to define __stub macros and hopefully few prototypes, | |
1702 which can conflict with char $2 (); below. | |
1703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1704 <limits.h> exists even on freestanding compilers. */ | |
1705 | |
1706 #ifdef __STDC__ | |
1707 # include <limits.h> | |
1708 #else | |
1709 # include <assert.h> | |
1710 #endif | |
1711 | |
1712 #undef $2 | |
1713 | |
1714 /* Override any GCC internal prototype to avoid an error. | |
1715 Use char because int might match the return type of a GCC | |
1716 builtin and then its argument prototype would still apply. */ | |
1717 #ifdef __cplusplus | |
1718 extern "C" | |
1719 #endif | |
1720 char $2 (); | |
1721 /* The GNU C library defines this for functions which it implements | |
1722 to always fail with ENOSYS. Some functions are actually named | |
1723 something starting with __ and the normal name is an alias. */ | |
1724 #if defined __stub_$2 || defined __stub___$2 | |
1725 choke me | |
1726 #endif | |
1727 | |
1728 int | |
1729 main () | |
1730 { | |
1731 return $2 (); | |
1732 ; | |
1733 return 0; | |
1734 } | |
1735 _ACEOF | |
1736 if ac_fn_c_try_link "$LINENO"; then : | |
1737 eval "$3=yes" | |
1738 else | |
1739 eval "$3=no" | |
1740 fi | |
1741 rm -f core conftest.err conftest.$ac_objext \ | |
1742 conftest$ac_exeext conftest.$ac_ext | |
1743 fi | |
1744 eval ac_res=\$$3 | |
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1746 $as_echo "$ac_res" >&6; } | |
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1748 | |
1749 } # ac_fn_c_check_func | |
1750 | |
1751 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1752 # ------------------------------------------------------- | |
1753 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1754 # the include files in INCLUDES and setting the cache variable VAR | |
1755 # accordingly. | |
1756 ac_fn_c_check_header_mongrel () | |
1757 { | |
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1759 if eval \${$3+:} false; then : | |
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1761 $as_echo_n "checking for $2... " >&6; } | |
1762 if eval \${$3+:} false; then : | |
1763 $as_echo_n "(cached) " >&6 | |
1764 fi | |
1765 eval ac_res=\$$3 | |
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1767 $as_echo "$ac_res" >&6; } | |
1768 else | |
1769 # Is the header compilable? | |
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1771 $as_echo_n "checking $2 usability... " >&6; } | |
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1773 /* end confdefs.h. */ | |
1774 $4 | |
1775 #include <$2> | |
1776 _ACEOF | |
1777 if ac_fn_c_try_compile "$LINENO"; then : | |
1778 ac_header_compiler=yes | |
1779 else | |
1780 ac_header_compiler=no | |
1781 fi | |
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1784 $as_echo "$ac_header_compiler" >&6; } | |
1785 | |
1786 # Is the header present? | |
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1788 $as_echo_n "checking $2 presence... " >&6; } | |
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1790 /* end confdefs.h. */ | |
1791 #include <$2> | |
1792 _ACEOF | |
1793 if ac_fn_c_try_cpp "$LINENO"; then : | |
1794 ac_header_preproc=yes | |
1795 else | |
1796 ac_header_preproc=no | |
1797 fi | |
1798 rm -f conftest.err conftest.i conftest.$ac_ext | |
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1800 $as_echo "$ac_header_preproc" >&6; } | |
1801 | |
1802 # So? What about this header? | |
1803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1804 yes:no: ) | |
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1806 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1809 ;; | |
1810 no:yes:* ) | |
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1812 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1814 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1816 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1818 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1821 ;; | |
1822 esac | |
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1824 $as_echo_n "checking for $2... " >&6; } | |
1825 if eval \${$3+:} false; then : | |
1826 $as_echo_n "(cached) " >&6 | |
1827 else | |
1828 eval "$3=\$ac_header_compiler" | |
1829 fi | |
1830 eval ac_res=\$$3 | |
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1832 $as_echo "$ac_res" >&6; } | |
1833 fi | |
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1835 | |
1836 } # ac_fn_c_check_header_mongrel | |
1837 | |
1838 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1839 # -------------------------------------------- | |
1840 # Tries to find the compile-time value of EXPR in a program that includes | |
1841 # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1842 # computed | |
1843 ac_fn_c_compute_int () | |
1844 { | |
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1846 if test "$cross_compiling" = yes; then | |
1847 # Depending upon the size, compute the lo and hi bounds. | |
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1849 /* end confdefs.h. */ | |
1850 $4 | |
1851 int | |
1852 main () | |
1853 { | |
1854 static int test_array [1 - 2 * !(($2) >= 0)]; | |
1855 test_array [0] = 0 | |
1856 | |
1857 ; | |
1858 return 0; | |
1859 } | |
1860 _ACEOF | |
1861 if ac_fn_c_try_compile "$LINENO"; then : | |
1862 ac_lo=0 ac_mid=0 | |
1863 while :; do | |
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1865 /* end confdefs.h. */ | |
1866 $4 | |
1867 int | |
1868 main () | |
1869 { | |
1870 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1871 test_array [0] = 0 | |
1872 | |
1873 ; | |
1874 return 0; | |
1875 } | |
1876 _ACEOF | |
1877 if ac_fn_c_try_compile "$LINENO"; then : | |
1878 ac_hi=$ac_mid; break | |
1879 else | |
1880 as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1881 if test $ac_lo -le $ac_mid; then | |
1882 ac_lo= ac_hi= | |
1883 break | |
1884 fi | |
1885 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1886 fi | |
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1888 done | |
1889 else | |
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1891 /* end confdefs.h. */ | |
1892 $4 | |
1893 int | |
1894 main () | |
1895 { | |
1896 static int test_array [1 - 2 * !(($2) < 0)]; | |
1897 test_array [0] = 0 | |
1898 | |
1899 ; | |
1900 return 0; | |
1901 } | |
1902 _ACEOF | |
1903 if ac_fn_c_try_compile "$LINENO"; then : | |
1904 ac_hi=-1 ac_mid=-1 | |
1905 while :; do | |
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1907 /* end confdefs.h. */ | |
1908 $4 | |
1909 int | |
1910 main () | |
1911 { | |
1912 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1913 test_array [0] = 0 | |
1914 | |
1915 ; | |
1916 return 0; | |
1917 } | |
1918 _ACEOF | |
1919 if ac_fn_c_try_compile "$LINENO"; then : | |
1920 ac_lo=$ac_mid; break | |
1921 else | |
1922 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1923 if test $ac_mid -le $ac_hi; then | |
1924 ac_lo= ac_hi= | |
1925 break | |
1926 fi | |
1927 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1928 fi | |
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1930 done | |
1931 else | |
1932 ac_lo= ac_hi= | |
1933 fi | |
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1935 fi | |
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1937 # Binary search between lo and hi bounds. | |
1938 while test "x$ac_lo" != "x$ac_hi"; do | |
1939 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1941 /* end confdefs.h. */ | |
1942 $4 | |
1943 int | |
1944 main () | |
1945 { | |
1946 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1947 test_array [0] = 0 | |
1948 | |
1949 ; | |
1950 return 0; | |
1951 } | |
1952 _ACEOF | |
1953 if ac_fn_c_try_compile "$LINENO"; then : | |
1954 ac_hi=$ac_mid | |
1955 else | |
1956 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
1957 fi | |
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1959 done | |
1960 case $ac_lo in #(( | |
1961 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1962 '') ac_retval=1 ;; | |
1963 esac | |
1964 else | |
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1966 /* end confdefs.h. */ | |
1967 $4 | |
1968 static long int longval () { return $2; } | |
1969 static unsigned long int ulongval () { return $2; } | |
1970 #include <stdio.h> | |
1971 #include <stdlib.h> | |
1972 int | |
1973 main () | |
1974 { | |
1975 | |
1976 FILE *f = fopen ("conftest.val", "w"); | |
1977 if (! f) | |
1978 return 1; | |
1979 if (($2) < 0) | |
1980 { | |
1981 long int i = longval (); | |
1982 if (i != ($2)) | |
1983 return 1; | |
1984 fprintf (f, "%ld", i); | |
1985 } | |
1986 else | |
1987 { | |
1988 unsigned long int i = ulongval (); | |
1989 if (i != ($2)) | |
1990 return 1; | |
1991 fprintf (f, "%lu", i); | |
1992 } | |
1993 /* Do not output a trailing newline, as this causes \r\n confusion | |
1994 on some platforms. */ | |
1995 return ferror (f) || fclose (f) != 0; | |
1996 | |
1997 ; | |
1998 return 0; | |
1999 } | |
2000 _ACEOF | |
2001 if ac_fn_c_try_run "$LINENO"; then : | |
2002 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2003 else | |
2004 ac_retval=1 | |
2005 fi | |
2006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2007 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2008 rm -f conftest.val | |
2009 | |
2010 fi | |
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2012 as_fn_set_status $ac_retval | |
2013 | |
2014 } # ac_fn_c_compute_int | |
2015 cat >config.log <<_ACEOF | |
2016 This file contains any messages produced by compilers while | |
2017 running configure, to aid debugging if configure makes a mistake. | |
2018 | |
2019 It was created by $as_me, which was | |
2020 generated by GNU Autoconf 2.68. Invocation command line was | |
2021 | |
2022 $ $0 $@ | |
2023 | |
2024 _ACEOF | |
2025 exec 5>>config.log | |
2026 { | |
2027 cat <<_ASUNAME | |
2028 ## --------- ## | |
2029 ## Platform. ## | |
2030 ## --------- ## | |
2031 | |
2032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2033 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2034 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2035 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2036 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2037 | |
2038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2039 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2040 | |
2041 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2042 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2044 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2045 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2046 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2047 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2048 | |
2049 _ASUNAME | |
2050 | |
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2052 for as_dir in $PATH | |
2053 do | |
2054 IFS=$as_save_IFS | |
2055 test -z "$as_dir" && as_dir=. | |
2056 $as_echo "PATH: $as_dir" | |
2057 done | |
2058 IFS=$as_save_IFS | |
2059 | |
2060 } >&5 | |
2061 | |
2062 cat >&5 <<_ACEOF | |
2063 | |
2064 | |
2065 ## ----------- ## | |
2066 ## Core tests. ## | |
2067 ## ----------- ## | |
2068 | |
2069 _ACEOF | |
2070 | |
2071 | |
2072 # Keep a trace of the command line. | |
2073 # Strip out --no-create and --no-recursion so they do not pile up. | |
2074 # Strip out --silent because we don't want to record it for future runs. | |
2075 # Also quote any args containing shell meta-characters. | |
2076 # Make two passes to allow for proper duplicate-argument suppression. | |
2077 ac_configure_args= | |
2078 ac_configure_args0= | |
2079 ac_configure_args1= | |
2080 ac_must_keep_next=false | |
2081 for ac_pass in 1 2 | |
2082 do | |
2083 for ac_arg | |
2084 do | |
2085 case $ac_arg in | |
2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2088 | -silent | --silent | --silen | --sile | --sil) | |
2089 continue ;; | |
2090 *\'*) | |
2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2092 esac | |
2093 case $ac_pass in | |
2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2095 2) | |
2096 as_fn_append ac_configure_args1 " '$ac_arg'" | |
2097 if test $ac_must_keep_next = true; then | |
2098 ac_must_keep_next=false # Got value, back to normal. | |
2099 else | |
2100 case $ac_arg in | |
2101 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2104 | -with-* | --with-* | -without-* | --without-* | --x) | |
2105 case "$ac_configure_args0 " in | |
2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2107 esac | |
2108 ;; | |
2109 -* ) ac_must_keep_next=true ;; | |
2110 esac | |
2111 fi | |
2112 as_fn_append ac_configure_args " '$ac_arg'" | |
2113 ;; | |
2114 esac | |
2115 done | |
2116 done | |
2117 { ac_configure_args0=; unset ac_configure_args0;} | |
2118 { ac_configure_args1=; unset ac_configure_args1;} | |
2119 | |
2120 # When interrupted or exit'd, cleanup temporary files, and complete | |
2121 # config.log. We remove comments because anyway the quotes in there | |
2122 # would cause problems or look ugly. | |
2123 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2124 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2125 trap 'exit_status=$? | |
2126 # Save into config.log some information that might help in debugging. | |
2127 { | |
2128 echo | |
2129 | |
2130 $as_echo "## ---------------- ## | |
2131 ## Cache variables. ## | |
2132 ## ---------------- ##" | |
2133 echo | |
2134 # The following way of writing the cache mishandles newlines in values, | |
2135 ( | |
2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2137 eval ac_val=\$$ac_var | |
2138 case $ac_val in #( | |
2139 *${as_nl}*) | |
2140 case $ac_var in #( | |
2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2143 esac | |
2144 case $ac_var in #( | |
2145 _ | IFS | as_nl) ;; #( | |
2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2147 *) { eval $ac_var=; unset $ac_var;} ;; | |
2148 esac ;; | |
2149 esac | |
2150 done | |
2151 (set) 2>&1 | | |
2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2153 *${as_nl}ac_space=\ *) | |
2154 sed -n \ | |
2155 "s/'\''/'\''\\\\'\'''\''/g; | |
2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2157 ;; #( | |
2158 *) | |
2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2160 ;; | |
2161 esac | | |
2162 sort | |
2163 ) | |
2164 echo | |
2165 | |
2166 $as_echo "## ----------------- ## | |
2167 ## Output variables. ## | |
2168 ## ----------------- ##" | |
2169 echo | |
2170 for ac_var in $ac_subst_vars | |
2171 do | |
2172 eval ac_val=\$$ac_var | |
2173 case $ac_val in | |
2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2175 esac | |
2176 $as_echo "$ac_var='\''$ac_val'\''" | |
2177 done | sort | |
2178 echo | |
2179 | |
2180 if test -n "$ac_subst_files"; then | |
2181 $as_echo "## ------------------- ## | |
2182 ## File substitutions. ## | |
2183 ## ------------------- ##" | |
2184 echo | |
2185 for ac_var in $ac_subst_files | |
2186 do | |
2187 eval ac_val=\$$ac_var | |
2188 case $ac_val in | |
2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2190 esac | |
2191 $as_echo "$ac_var='\''$ac_val'\''" | |
2192 done | sort | |
2193 echo | |
2194 fi | |
2195 | |
2196 if test -s confdefs.h; then | |
2197 $as_echo "## ----------- ## | |
2198 ## confdefs.h. ## | |
2199 ## ----------- ##" | |
2200 echo | |
2201 cat confdefs.h | |
2202 echo | |
2203 fi | |
2204 test "$ac_signal" != 0 && | |
2205 $as_echo "$as_me: caught signal $ac_signal" | |
2206 $as_echo "$as_me: exit $exit_status" | |
2207 } >&5 | |
2208 rm -f core *.core core.conftest.* && | |
2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2210 exit $exit_status | |
2211 ' 0 | |
2212 for ac_signal in 1 2 13 15; do | |
2213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2214 done | |
2215 ac_signal=0 | |
2216 | |
2217 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2218 rm -f -r conftest* confdefs.h | |
2219 | |
2220 $as_echo "/* confdefs.h */" > confdefs.h | |
2221 | |
2222 # Predefined preprocessor variables. | |
2223 | |
2224 cat >>confdefs.h <<_ACEOF | |
2225 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2226 _ACEOF | |
2227 | |
2228 cat >>confdefs.h <<_ACEOF | |
2229 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2230 _ACEOF | |
2231 | |
2232 cat >>confdefs.h <<_ACEOF | |
2233 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2234 _ACEOF | |
2235 | |
2236 cat >>confdefs.h <<_ACEOF | |
2237 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2238 _ACEOF | |
2239 | |
2240 cat >>confdefs.h <<_ACEOF | |
2241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2242 _ACEOF | |
2243 | |
2244 cat >>confdefs.h <<_ACEOF | |
2245 #define PACKAGE_URL "$PACKAGE_URL" | |
2246 _ACEOF | |
2247 | |
2248 | |
2249 # Let the site file select an alternate cache file if it wants to. | |
2250 # Prefer an explicitly selected file to automatically selected ones. | |
2251 ac_site_file1=NONE | |
2252 ac_site_file2=NONE | |
2253 if test -n "$CONFIG_SITE"; then | |
2254 # We do not want a PATH search for config.site. | |
2255 case $CONFIG_SITE in #(( | |
2256 -*) ac_site_file1=./$CONFIG_SITE;; | |
2257 */*) ac_site_file1=$CONFIG_SITE;; | |
2258 *) ac_site_file1=./$CONFIG_SITE;; | |
2259 esac | |
2260 elif test "x$prefix" != xNONE; then | |
2261 ac_site_file1=$prefix/share/config.site | |
2262 ac_site_file2=$prefix/etc/config.site | |
2263 else | |
2264 ac_site_file1=$ac_default_prefix/share/config.site | |
2265 ac_site_file2=$ac_default_prefix/etc/config.site | |
2266 fi | |
2267 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2268 do | |
2269 test "x$ac_site_file" = xNONE && continue | |
2270 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2272 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2273 sed 's/^/| /' "$ac_site_file" >&5 | |
2274 . "$ac_site_file" \ | |
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_fn_error $? "failed to load site script $ac_site_file | |
2278 See \`config.log' for more details" "$LINENO" 5; } | |
2279 fi | |
2280 done | |
2281 | |
2282 if test -r "$cache_file"; then | |
2283 # Some versions of bash will fail to source /dev/null (special files | |
2284 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2287 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2288 case $cache_file in | |
2289 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2290 *) . "./$cache_file";; | |
2291 esac | |
2292 fi | |
2293 else | |
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2295 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2296 >$cache_file | |
2297 fi | |
2298 | |
2299 # Check that the precious variables saved in the cache have kept the same | |
2300 # value. | |
2301 ac_cache_corrupted=false | |
2302 for ac_var in $ac_precious_vars; do | |
2303 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2304 eval ac_new_set=\$ac_env_${ac_var}_set | |
2305 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2306 eval ac_new_val=\$ac_env_${ac_var}_value | |
2307 case $ac_old_set,$ac_new_set in | |
2308 set,) | |
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2310 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2311 ac_cache_corrupted=: ;; | |
2312 ,set) | |
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2314 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2315 ac_cache_corrupted=: ;; | |
2316 ,);; | |
2317 *) | |
2318 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2319 # differences in whitespace do not lead to failure. | |
2320 ac_old_val_w=`echo x $ac_old_val` | |
2321 ac_new_val_w=`echo x $ac_new_val` | |
2322 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2324 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2325 ac_cache_corrupted=: | |
2326 else | |
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2328 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2329 eval $ac_var=\$ac_old_val | |
2330 fi | |
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2332 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2334 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2335 fi;; | |
2336 esac | |
2337 # Pass precious variables to config.status. | |
2338 if test "$ac_new_set" = set; then | |
2339 case $ac_new_val in | |
2340 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2341 *) ac_arg=$ac_var=$ac_new_val ;; | |
2342 esac | |
2343 case " $ac_configure_args " in | |
2344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2345 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2346 esac | |
2347 fi | |
2348 done | |
2349 if $ac_cache_corrupted; then | |
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2353 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2354 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2355 fi | |
2356 ## -------------------- ## | |
2357 ## Main body of script. ## | |
2358 ## -------------------- ## | |
2359 | |
2360 ac_ext=c | |
2361 ac_cpp='$CPP $CPPFLAGS' | |
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2365 | |
2366 | |
2367 | |
2368 am__api_version='1.11' | |
2369 | |
2370 ac_aux_dir= | |
2371 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2372 if test -f "$ac_dir/install-sh"; then | |
2373 ac_aux_dir=$ac_dir | |
2374 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2375 break | |
2376 elif test -f "$ac_dir/install.sh"; then | |
2377 ac_aux_dir=$ac_dir | |
2378 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2379 break | |
2380 elif test -f "$ac_dir/shtool"; then | |
2381 ac_aux_dir=$ac_dir | |
2382 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2383 break | |
2384 fi | |
2385 done | |
2386 if test -z "$ac_aux_dir"; then | |
2387 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2388 fi | |
2389 | |
2390 # These three variables are undocumented and unsupported, | |
2391 # and are intended to be withdrawn in a future Autoconf release. | |
2392 # They can cause serious problems if a builder's source tree is in a directory | |
2393 # whose full name contains unusual characters. | |
2394 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2395 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2396 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2397 | |
2398 | |
2399 # Find a good install program. We prefer a C program (faster), | |
2400 # so one script is as good as another. But avoid the broken or | |
2401 # incompatible versions: | |
2402 # SysV /etc/install, /usr/sbin/install | |
2403 # SunOS /usr/etc/install | |
2404 # IRIX /sbin/install | |
2405 # AIX /bin/install | |
2406 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2410 # OS/2's system install, which has a completely different semantic | |
2411 # ./install, which can be erroneously created by make from ./install.sh. | |
2412 # Reject install programs that cannot install multiple files. | |
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2414 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2415 if test -z "$INSTALL"; then | |
2416 if ${ac_cv_path_install+:} false; then : | |
2417 $as_echo_n "(cached) " >&6 | |
2418 else | |
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2420 for as_dir in $PATH | |
2421 do | |
2422 IFS=$as_save_IFS | |
2423 test -z "$as_dir" && as_dir=. | |
2424 # Account for people who put trailing slashes in PATH elements. | |
2425 case $as_dir/ in #(( | |
2426 ./ | .// | /[cC]/* | \ | |
2427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2428 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2429 /usr/ucb/* ) ;; | |
2430 *) | |
2431 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2432 # Don't use installbsd from OSF since it installs stuff as root | |
2433 # by default. | |
2434 for ac_prog in ginstall scoinst install; do | |
2435 for ac_exec_ext in '' $ac_executable_extensions; do | |
2436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2437 if test $ac_prog = install && | |
2438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2439 # AIX install. It has an incompatible calling convention. | |
2440 : | |
2441 elif test $ac_prog = install && | |
2442 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2443 # program-specific install script used by HP pwplus--don't use. | |
2444 : | |
2445 else | |
2446 rm -rf conftest.one conftest.two conftest.dir | |
2447 echo one > conftest.one | |
2448 echo two > conftest.two | |
2449 mkdir conftest.dir | |
2450 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2451 test -s conftest.one && test -s conftest.two && | |
2452 test -s conftest.dir/conftest.one && | |
2453 test -s conftest.dir/conftest.two | |
2454 then | |
2455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2456 break 3 | |
2457 fi | |
2458 fi | |
2459 fi | |
2460 done | |
2461 done | |
2462 ;; | |
2463 esac | |
2464 | |
2465 done | |
2466 IFS=$as_save_IFS | |
2467 | |
2468 rm -rf conftest.one conftest.two conftest.dir | |
2469 | |
2470 fi | |
2471 if test "${ac_cv_path_install+set}" = set; then | |
2472 INSTALL=$ac_cv_path_install | |
2473 else | |
2474 # As a last resort, use the slow shell script. Don't cache a | |
2475 # value for INSTALL within a source directory, because that will | |
2476 # break other packages using the cache if that directory is | |
2477 # removed, or if the value is a relative name. | |
2478 INSTALL=$ac_install_sh | |
2479 fi | |
2480 fi | |
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2482 $as_echo "$INSTALL" >&6; } | |
2483 | |
2484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2485 # It thinks the first close brace ends the variable substitution. | |
2486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2487 | |
2488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2489 | |
2490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2491 | |
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2493 $as_echo_n "checking whether build environment is sane... " >&6; } | |
2494 # Just in case | |
2495 sleep 1 | |
2496 echo timestamp > conftest.file | |
2497 # Reject unsafe characters in $srcdir or the absolute working directory | |
2498 # name. Accept space and tab only in the latter. | |
2499 am_lf=' | |
2500 ' | |
2501 case `pwd` in | |
2502 *[\\\"\#\$\&\'\`$am_lf]*) | |
2503 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2504 esac | |
2505 case $srcdir in | |
2506 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2507 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2508 esac | |
2509 | |
2510 # Do `set' in a subshell so we don't clobber the current shell's | |
2511 # arguments. Must try -L first in case configure is actually a | |
2512 # symlink; some systems play weird games with the mod time of symlinks | |
2513 # (eg FreeBSD returns the mod time of the symlink's containing | |
2514 # directory). | |
2515 if ( | |
2516 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2517 if test "$*" = "X"; then | |
2518 # -L didn't work. | |
2519 set X `ls -t "$srcdir/configure" conftest.file` | |
2520 fi | |
2521 rm -f conftest.file | |
2522 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2523 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2524 | |
2525 # If neither matched, then we have a broken ls. This can happen | |
2526 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2527 # broken ls alias from the environment. This has actually | |
2528 # happened. Such a system could not be considered "sane". | |
2529 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2530 alias in your environment" "$LINENO" 5 | |
2531 fi | |
2532 | |
2533 test "$2" = conftest.file | |
2534 ) | |
2535 then | |
2536 # Ok. | |
2537 : | |
2538 else | |
2539 as_fn_error $? "newly created file is older than distributed files! | |
2540 Check your system clock" "$LINENO" 5 | |
2541 fi | |
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2543 $as_echo "yes" >&6; } | |
2544 test "$program_prefix" != NONE && | |
2545 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2546 # Use a double $ so make ignores it. | |
2547 test "$program_suffix" != NONE && | |
2548 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2549 # Double any \ or $. | |
2550 # By default was `s,x,x', remove it if useless. | |
2551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2553 | |
2554 # expand $ac_aux_dir to an absolute path | |
2555 am_aux_dir=`cd $ac_aux_dir && pwd` | |
2556 | |
2557 if test x"${MISSING+set}" != xset; then | |
2558 case $am_aux_dir in | |
2559 *\ * | *\ *) | |
2560 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2561 *) | |
2562 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2563 esac | |
2564 fi | |
2565 # Use eval to expand $SHELL | |
2566 if eval "$MISSING --run true"; then | |
2567 am_missing_run="$MISSING --run " | |
2568 else | |
2569 am_missing_run= | |
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2571 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2572 fi | |
2573 | |
2574 if test x"${install_sh}" != xset; then | |
2575 case $am_aux_dir in | |
2576 *\ * | *\ *) | |
2577 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2578 *) | |
2579 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2580 esac | |
2581 fi | |
2582 | |
2583 # Installed binaries are usually stripped using `strip' when the user | |
2584 # run `make install-strip'. However `strip' might not be the right | |
2585 # tool to use in cross-compilation environments, therefore Automake | |
2586 # will honor the `STRIP' environment variable to overrule this program. | |
2587 if test "$cross_compiling" != no; then | |
2588 if test -n "$ac_tool_prefix"; then | |
2589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2590 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2592 $as_echo_n "checking for $ac_word... " >&6; } | |
2593 if ${ac_cv_prog_STRIP+:} false; then : | |
2594 $as_echo_n "(cached) " >&6 | |
2595 else | |
2596 if test -n "$STRIP"; then | |
2597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2598 else | |
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2600 for as_dir in $PATH | |
2601 do | |
2602 IFS=$as_save_IFS | |
2603 test -z "$as_dir" && as_dir=. | |
2604 for ac_exec_ext in '' $ac_executable_extensions; do | |
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2606 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2608 break 2 | |
2609 fi | |
2610 done | |
2611 done | |
2612 IFS=$as_save_IFS | |
2613 | |
2614 fi | |
2615 fi | |
2616 STRIP=$ac_cv_prog_STRIP | |
2617 if test -n "$STRIP"; then | |
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2619 $as_echo "$STRIP" >&6; } | |
2620 else | |
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2622 $as_echo "no" >&6; } | |
2623 fi | |
2624 | |
2625 | |
2626 fi | |
2627 if test -z "$ac_cv_prog_STRIP"; then | |
2628 ac_ct_STRIP=$STRIP | |
2629 # Extract the first word of "strip", so it can be a program name with args. | |
2630 set dummy strip; ac_word=$2 | |
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2632 $as_echo_n "checking for $ac_word... " >&6; } | |
2633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2634 $as_echo_n "(cached) " >&6 | |
2635 else | |
2636 if test -n "$ac_ct_STRIP"; then | |
2637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2638 else | |
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2640 for as_dir in $PATH | |
2641 do | |
2642 IFS=$as_save_IFS | |
2643 test -z "$as_dir" && as_dir=. | |
2644 for ac_exec_ext in '' $ac_executable_extensions; do | |
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2646 ac_cv_prog_ac_ct_STRIP="strip" | |
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2648 break 2 | |
2649 fi | |
2650 done | |
2651 done | |
2652 IFS=$as_save_IFS | |
2653 | |
2654 fi | |
2655 fi | |
2656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2657 if test -n "$ac_ct_STRIP"; then | |
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2659 $as_echo "$ac_ct_STRIP" >&6; } | |
2660 else | |
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2662 $as_echo "no" >&6; } | |
2663 fi | |
2664 | |
2665 if test "x$ac_ct_STRIP" = x; then | |
2666 STRIP=":" | |
2667 else | |
2668 case $cross_compiling:$ac_tool_warned in | |
2669 yes:) | |
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2672 ac_tool_warned=yes ;; | |
2673 esac | |
2674 STRIP=$ac_ct_STRIP | |
2675 fi | |
2676 else | |
2677 STRIP="$ac_cv_prog_STRIP" | |
2678 fi | |
2679 | |
2680 fi | |
2681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2682 | |
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2685 if test -z "$MKDIR_P"; then | |
2686 if ${ac_cv_path_mkdir+:} false; then : | |
2687 $as_echo_n "(cached) " >&6 | |
2688 else | |
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2691 do | |
2692 IFS=$as_save_IFS | |
2693 test -z "$as_dir" && as_dir=. | |
2694 for ac_prog in mkdir gmkdir; do | |
2695 for ac_exec_ext in '' $ac_executable_extensions; do | |
2696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2698 'mkdir (GNU coreutils) '* | \ | |
2699 'mkdir (coreutils) '* | \ | |
2700 'mkdir (fileutils) '4.1*) | |
2701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2702 break 3;; | |
2703 esac | |
2704 done | |
2705 done | |
2706 done | |
2707 IFS=$as_save_IFS | |
2708 | |
2709 fi | |
2710 | |
2711 test -d ./--version && rmdir ./--version | |
2712 if test "${ac_cv_path_mkdir+set}" = set; then | |
2713 MKDIR_P="$ac_cv_path_mkdir -p" | |
2714 else | |
2715 # As a last resort, use the slow shell script. Don't cache a | |
2716 # value for MKDIR_P within a source directory, because that will | |
2717 # break other packages using the cache if that directory is | |
2718 # removed, or if the value is a relative name. | |
2719 MKDIR_P="$ac_install_sh -d" | |
2720 fi | |
2721 fi | |
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2723 $as_echo "$MKDIR_P" >&6; } | |
2724 | |
2725 mkdir_p="$MKDIR_P" | |
2726 case $mkdir_p in | |
2727 [\\/$]* | ?:[\\/]*) ;; | |
2728 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2729 esac | |
2730 | |
2731 for ac_prog in gawk mawk nawk awk | |
2732 do | |
2733 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2734 set dummy $ac_prog; ac_word=$2 | |
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2736 $as_echo_n "checking for $ac_word... " >&6; } | |
2737 if ${ac_cv_prog_AWK+:} false; then : | |
2738 $as_echo_n "(cached) " >&6 | |
2739 else | |
2740 if test -n "$AWK"; then | |
2741 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2742 else | |
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2744 for as_dir in $PATH | |
2745 do | |
2746 IFS=$as_save_IFS | |
2747 test -z "$as_dir" && as_dir=. | |
2748 for ac_exec_ext in '' $ac_executable_extensions; do | |
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2750 ac_cv_prog_AWK="$ac_prog" | |
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2752 break 2 | |
2753 fi | |
2754 done | |
2755 done | |
2756 IFS=$as_save_IFS | |
2757 | |
2758 fi | |
2759 fi | |
2760 AWK=$ac_cv_prog_AWK | |
2761 if test -n "$AWK"; then | |
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2763 $as_echo "$AWK" >&6; } | |
2764 else | |
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2766 $as_echo "no" >&6; } | |
2767 fi | |
2768 | |
2769 | |
2770 test -n "$AWK" && break | |
2771 done | |
2772 | |
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2774 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2775 set x ${MAKE-make} | |
2776 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2777 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2778 $as_echo_n "(cached) " >&6 | |
2779 else | |
2780 cat >conftest.make <<\_ACEOF | |
2781 SHELL = /bin/sh | |
2782 all: | |
2783 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2784 _ACEOF | |
2785 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2786 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2787 *@@@%%%=?*=@@@%%%*) | |
2788 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2789 *) | |
2790 eval ac_cv_prog_make_${ac_make}_set=no;; | |
2791 esac | |
2792 rm -f conftest.make | |
2793 fi | |
2794 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2796 $as_echo "yes" >&6; } | |
2797 SET_MAKE= | |
2798 else | |
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2800 $as_echo "no" >&6; } | |
2801 SET_MAKE="MAKE=${MAKE-make}" | |
2802 fi | |
2803 | |
2804 rm -rf .tst 2>/dev/null | |
2805 mkdir .tst 2>/dev/null | |
2806 if test -d .tst; then | |
2807 am__leading_dot=. | |
2808 else | |
2809 am__leading_dot=_ | |
2810 fi | |
2811 rmdir .tst 2>/dev/null | |
2812 | |
2813 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2814 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2815 # is not polluted with repeated "-I." | |
2816 am__isrc=' -I$(srcdir)' | |
2817 # test to see if srcdir already configured | |
2818 if test -f $srcdir/config.status; then | |
2819 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2820 fi | |
2821 fi | |
2822 | |
2823 # test whether we have cygpath | |
2824 if test -z "$CYGPATH_W"; then | |
2825 if (cygpath --version) >/dev/null 2>/dev/null; then | |
2826 CYGPATH_W='cygpath -w' | |
2827 else | |
2828 CYGPATH_W=echo | |
2829 fi | |
2830 fi | |
2831 | |
2832 | |
2833 # Define the identity of the package. | |
2834 PACKAGE=libogg | |
2835 VERSION=1.3.0 | |
2836 | |
2837 | |
2838 cat >>confdefs.h <<_ACEOF | |
2839 #define PACKAGE "$PACKAGE" | |
2840 _ACEOF | |
2841 | |
2842 | |
2843 cat >>confdefs.h <<_ACEOF | |
2844 #define VERSION "$VERSION" | |
2845 _ACEOF | |
2846 | |
2847 # Some tools Automake needs. | |
2848 | |
2849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2850 | |
2851 | |
2852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2853 | |
2854 | |
2855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2856 | |
2857 | |
2858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2859 | |
2860 | |
2861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2862 | |
2863 # We need awk for the "check" target. The system "awk" is bad on | |
2864 # some platforms. | |
2865 # Always define AMTAR for backward compatibility. | |
2866 | |
2867 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2868 | |
2869 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2870 | |
2871 | |
2872 | |
2873 | |
2874 | |
2875 | |
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2877 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2878 # Check whether --enable-maintainer-mode was given. | |
2879 if test "${enable_maintainer_mode+set}" = set; then : | |
2880 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2881 else | |
2882 USE_MAINTAINER_MODE=no | |
2883 fi | |
2884 | |
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2886 $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2887 if test $USE_MAINTAINER_MODE = yes; then | |
2888 MAINTAINER_MODE_TRUE= | |
2889 MAINTAINER_MODE_FALSE='#' | |
2890 else | |
2891 MAINTAINER_MODE_TRUE='#' | |
2892 MAINTAINER_MODE_FALSE= | |
2893 fi | |
2894 | |
2895 MAINT=$MAINTAINER_MODE_TRUE | |
2896 | |
2897 | |
2898 | |
2899 | |
2900 LIB_CURRENT=8 | |
2901 LIB_REVISION=0 | |
2902 LIB_AGE=8 | |
2903 | |
2904 | |
2905 | |
2906 | |
2907 ac_ext=c | |
2908 ac_cpp='$CPP $CPPFLAGS' | |
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2912 if test -n "$ac_tool_prefix"; then | |
2913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2914 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2916 $as_echo_n "checking for $ac_word... " >&6; } | |
2917 if ${ac_cv_prog_CC+:} false; then : | |
2918 $as_echo_n "(cached) " >&6 | |
2919 else | |
2920 if test -n "$CC"; then | |
2921 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2922 else | |
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2924 for as_dir in $PATH | |
2925 do | |
2926 IFS=$as_save_IFS | |
2927 test -z "$as_dir" && as_dir=. | |
2928 for ac_exec_ext in '' $ac_executable_extensions; do | |
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2930 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2932 break 2 | |
2933 fi | |
2934 done | |
2935 done | |
2936 IFS=$as_save_IFS | |
2937 | |
2938 fi | |
2939 fi | |
2940 CC=$ac_cv_prog_CC | |
2941 if test -n "$CC"; then | |
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2943 $as_echo "$CC" >&6; } | |
2944 else | |
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2946 $as_echo "no" >&6; } | |
2947 fi | |
2948 | |
2949 | |
2950 fi | |
2951 if test -z "$ac_cv_prog_CC"; then | |
2952 ac_ct_CC=$CC | |
2953 # Extract the first word of "gcc", so it can be a program name with args. | |
2954 set dummy gcc; ac_word=$2 | |
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2956 $as_echo_n "checking for $ac_word... " >&6; } | |
2957 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2958 $as_echo_n "(cached) " >&6 | |
2959 else | |
2960 if test -n "$ac_ct_CC"; then | |
2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2962 else | |
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2964 for as_dir in $PATH | |
2965 do | |
2966 IFS=$as_save_IFS | |
2967 test -z "$as_dir" && as_dir=. | |
2968 for ac_exec_ext in '' $ac_executable_extensions; do | |
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2970 ac_cv_prog_ac_ct_CC="gcc" | |
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2972 break 2 | |
2973 fi | |
2974 done | |
2975 done | |
2976 IFS=$as_save_IFS | |
2977 | |
2978 fi | |
2979 fi | |
2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2981 if test -n "$ac_ct_CC"; then | |
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2983 $as_echo "$ac_ct_CC" >&6; } | |
2984 else | |
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2986 $as_echo "no" >&6; } | |
2987 fi | |
2988 | |
2989 if test "x$ac_ct_CC" = x; then | |
2990 CC="" | |
2991 else | |
2992 case $cross_compiling:$ac_tool_warned in | |
2993 yes:) | |
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2996 ac_tool_warned=yes ;; | |
2997 esac | |
2998 CC=$ac_ct_CC | |
2999 fi | |
3000 else | |
3001 CC="$ac_cv_prog_CC" | |
3002 fi | |
3003 | |
3004 if test -z "$CC"; then | |
3005 if test -n "$ac_tool_prefix"; then | |
3006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3007 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3009 $as_echo_n "checking for $ac_word... " >&6; } | |
3010 if ${ac_cv_prog_CC+:} false; then : | |
3011 $as_echo_n "(cached) " >&6 | |
3012 else | |
3013 if test -n "$CC"; then | |
3014 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3015 else | |
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3017 for as_dir in $PATH | |
3018 do | |
3019 IFS=$as_save_IFS | |
3020 test -z "$as_dir" && as_dir=. | |
3021 for ac_exec_ext in '' $ac_executable_extensions; do | |
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3023 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3025 break 2 | |
3026 fi | |
3027 done | |
3028 done | |
3029 IFS=$as_save_IFS | |
3030 | |
3031 fi | |
3032 fi | |
3033 CC=$ac_cv_prog_CC | |
3034 if test -n "$CC"; then | |
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3036 $as_echo "$CC" >&6; } | |
3037 else | |
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3039 $as_echo "no" >&6; } | |
3040 fi | |
3041 | |
3042 | |
3043 fi | |
3044 fi | |
3045 if test -z "$CC"; then | |
3046 # Extract the first word of "cc", so it can be a program name with args. | |
3047 set dummy cc; ac_word=$2 | |
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3049 $as_echo_n "checking for $ac_word... " >&6; } | |
3050 if ${ac_cv_prog_CC+:} false; then : | |
3051 $as_echo_n "(cached) " >&6 | |
3052 else | |
3053 if test -n "$CC"; then | |
3054 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3055 else | |
3056 ac_prog_rejected=no | |
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3058 for as_dir in $PATH | |
3059 do | |
3060 IFS=$as_save_IFS | |
3061 test -z "$as_dir" && as_dir=. | |
3062 for ac_exec_ext in '' $ac_executable_extensions; do | |
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3065 ac_prog_rejected=yes | |
3066 continue | |
3067 fi | |
3068 ac_cv_prog_CC="cc" | |
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3070 break 2 | |
3071 fi | |
3072 done | |
3073 done | |
3074 IFS=$as_save_IFS | |
3075 | |
3076 if test $ac_prog_rejected = yes; then | |
3077 # We found a bogon in the path, so make sure we never use it. | |
3078 set dummy $ac_cv_prog_CC | |
3079 shift | |
3080 if test $# != 0; then | |
3081 # We chose a different compiler from the bogus one. | |
3082 # However, it has the same basename, so the bogon will be chosen | |
3083 # first if we set CC to just the basename; use the full file name. | |
3084 shift | |
3085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3086 fi | |
3087 fi | |
3088 fi | |
3089 fi | |
3090 CC=$ac_cv_prog_CC | |
3091 if test -n "$CC"; then | |
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3093 $as_echo "$CC" >&6; } | |
3094 else | |
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3096 $as_echo "no" >&6; } | |
3097 fi | |
3098 | |
3099 | |
3100 fi | |
3101 if test -z "$CC"; then | |
3102 if test -n "$ac_tool_prefix"; then | |
3103 for ac_prog in cl.exe | |
3104 do | |
3105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3108 $as_echo_n "checking for $ac_word... " >&6; } | |
3109 if ${ac_cv_prog_CC+:} false; then : | |
3110 $as_echo_n "(cached) " >&6 | |
3111 else | |
3112 if test -n "$CC"; then | |
3113 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3114 else | |
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3116 for as_dir in $PATH | |
3117 do | |
3118 IFS=$as_save_IFS | |
3119 test -z "$as_dir" && as_dir=. | |
3120 for ac_exec_ext in '' $ac_executable_extensions; do | |
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3124 break 2 | |
3125 fi | |
3126 done | |
3127 done | |
3128 IFS=$as_save_IFS | |
3129 | |
3130 fi | |
3131 fi | |
3132 CC=$ac_cv_prog_CC | |
3133 if test -n "$CC"; then | |
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3135 $as_echo "$CC" >&6; } | |
3136 else | |
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3138 $as_echo "no" >&6; } | |
3139 fi | |
3140 | |
3141 | |
3142 test -n "$CC" && break | |
3143 done | |
3144 fi | |
3145 if test -z "$CC"; then | |
3146 ac_ct_CC=$CC | |
3147 for ac_prog in cl.exe | |
3148 do | |
3149 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3150 set dummy $ac_prog; ac_word=$2 | |
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3152 $as_echo_n "checking for $ac_word... " >&6; } | |
3153 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3154 $as_echo_n "(cached) " >&6 | |
3155 else | |
3156 if test -n "$ac_ct_CC"; then | |
3157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3158 else | |
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3160 for as_dir in $PATH | |
3161 do | |
3162 IFS=$as_save_IFS | |
3163 test -z "$as_dir" && as_dir=. | |
3164 for ac_exec_ext in '' $ac_executable_extensions; do | |
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3166 ac_cv_prog_ac_ct_CC="$ac_prog" | |
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3168 break 2 | |
3169 fi | |
3170 done | |
3171 done | |
3172 IFS=$as_save_IFS | |
3173 | |
3174 fi | |
3175 fi | |
3176 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3177 if test -n "$ac_ct_CC"; then | |
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3179 $as_echo "$ac_ct_CC" >&6; } | |
3180 else | |
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3182 $as_echo "no" >&6; } | |
3183 fi | |
3184 | |
3185 | |
3186 test -n "$ac_ct_CC" && break | |
3187 done | |
3188 | |
3189 if test "x$ac_ct_CC" = x; then | |
3190 CC="" | |
3191 else | |
3192 case $cross_compiling:$ac_tool_warned in | |
3193 yes:) | |
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3196 ac_tool_warned=yes ;; | |
3197 esac | |
3198 CC=$ac_ct_CC | |
3199 fi | |
3200 fi | |
3201 | |
3202 fi | |
3203 | |
3204 | |
3205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3207 as_fn_error $? "no acceptable C compiler found in \$PATH | |
3208 See \`config.log' for more details" "$LINENO" 5; } | |
3209 | |
3210 # Provide some information about the compiler. | |
3211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3212 set X $ac_compile | |
3213 ac_compiler=$2 | |
3214 for ac_option in --version -v -V -qversion; do | |
3215 { { ac_try="$ac_compiler $ac_option >&5" | |
3216 case "(($ac_try" in | |
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3218 *) ac_try_echo=$ac_try;; | |
3219 esac | |
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3221 $as_echo "$ac_try_echo"; } >&5 | |
3222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3223 ac_status=$? | |
3224 if test -s conftest.err; then | |
3225 sed '10a\ | |
3226 ... rest of stderr output deleted ... | |
3227 10q' conftest.err >conftest.er1 | |
3228 cat conftest.er1 >&5 | |
3229 fi | |
3230 rm -f conftest.er1 conftest.err | |
3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3232 test $ac_status = 0; } | |
3233 done | |
3234 | |
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3236 /* end confdefs.h. */ | |
3237 | |
3238 int | |
3239 main () | |
3240 { | |
3241 | |
3242 ; | |
3243 return 0; | |
3244 } | |
3245 _ACEOF | |
3246 ac_clean_files_save=$ac_clean_files | |
3247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3248 # Try to create an executable without -o first, disregard a.out. | |
3249 # It will help us diagnose broken compilers, and finding out an intuition | |
3250 # of exeext. | |
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3252 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3253 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3254 | |
3255 # The possible output files: | |
3256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3257 | |
3258 ac_rmfiles= | |
3259 for ac_file in $ac_files | |
3260 do | |
3261 case $ac_file in | |
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3263 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3264 esac | |
3265 done | |
3266 rm -f $ac_rmfiles | |
3267 | |
3268 if { { ac_try="$ac_link_default" | |
3269 case "(($ac_try" in | |
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3271 *) ac_try_echo=$ac_try;; | |
3272 esac | |
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3274 $as_echo "$ac_try_echo"; } >&5 | |
3275 (eval "$ac_link_default") 2>&5 | |
3276 ac_status=$? | |
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3278 test $ac_status = 0; }; then : | |
3279 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3280 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3281 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3282 # so that the user can short-circuit this test for compilers unknown to | |
3283 # Autoconf. | |
3284 for ac_file in $ac_files '' | |
3285 do | |
3286 test -f "$ac_file" || continue | |
3287 case $ac_file in | |
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3289 ;; | |
3290 [ab].out ) | |
3291 # We found the default executable, but exeext='' is most | |
3292 # certainly right. | |
3293 break;; | |
3294 *.* ) | |
3295 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3296 then :; else | |
3297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3298 fi | |
3299 # We set ac_cv_exeext here because the later test for it is not | |
3300 # safe: cross compilers may not add the suffix if given an `-o' | |
3301 # argument, so we may need to know it at that point already. | |
3302 # Even if this section looks crufty: it has the advantage of | |
3303 # actually working. | |
3304 break;; | |
3305 * ) | |
3306 break;; | |
3307 esac | |
3308 done | |
3309 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3310 | |
3311 else | |
3312 ac_file='' | |
3313 fi | |
3314 if test -z "$ac_file"; then : | |
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3316 $as_echo "no" >&6; } | |
3317 $as_echo "$as_me: failed program was:" >&5 | |
3318 sed 's/^/| /' conftest.$ac_ext >&5 | |
3319 | |
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3322 as_fn_error 77 "C compiler cannot create executables | |
3323 See \`config.log' for more details" "$LINENO" 5; } | |
3324 else | |
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3326 $as_echo "yes" >&6; } | |
3327 fi | |
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3329 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3331 $as_echo "$ac_file" >&6; } | |
3332 ac_exeext=$ac_cv_exeext | |
3333 | |
3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3335 ac_clean_files=$ac_clean_files_save | |
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3337 $as_echo_n "checking for suffix of executables... " >&6; } | |
3338 if { { ac_try="$ac_link" | |
3339 case "(($ac_try" in | |
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3341 *) ac_try_echo=$ac_try;; | |
3342 esac | |
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3344 $as_echo "$ac_try_echo"; } >&5 | |
3345 (eval "$ac_link") 2>&5 | |
3346 ac_status=$? | |
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3348 test $ac_status = 0; }; then : | |
3349 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3350 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3351 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3352 # `rm'. | |
3353 for ac_file in conftest.exe conftest conftest.*; do | |
3354 test -f "$ac_file" || continue | |
3355 case $ac_file in | |
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3358 break;; | |
3359 * ) break;; | |
3360 esac | |
3361 done | |
3362 else | |
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3365 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3366 See \`config.log' for more details" "$LINENO" 5; } | |
3367 fi | |
3368 rm -f conftest conftest$ac_cv_exeext | |
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3370 $as_echo "$ac_cv_exeext" >&6; } | |
3371 | |
3372 rm -f conftest.$ac_ext | |
3373 EXEEXT=$ac_cv_exeext | |
3374 ac_exeext=$EXEEXT | |
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3376 /* end confdefs.h. */ | |
3377 #include <stdio.h> | |
3378 int | |
3379 main () | |
3380 { | |
3381 FILE *f = fopen ("conftest.out", "w"); | |
3382 return ferror (f) || fclose (f) != 0; | |
3383 | |
3384 ; | |
3385 return 0; | |
3386 } | |
3387 _ACEOF | |
3388 ac_clean_files="$ac_clean_files conftest.out" | |
3389 # Check that the compiler produces executables we can run. If not, either | |
3390 # the compiler is broken, or we cross compile. | |
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3392 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3393 if test "$cross_compiling" != yes; then | |
3394 { { ac_try="$ac_link" | |
3395 case "(($ac_try" in | |
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3397 *) ac_try_echo=$ac_try;; | |
3398 esac | |
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3400 $as_echo "$ac_try_echo"; } >&5 | |
3401 (eval "$ac_link") 2>&5 | |
3402 ac_status=$? | |
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3404 test $ac_status = 0; } | |
3405 if { ac_try='./conftest$ac_cv_exeext' | |
3406 { { case "(($ac_try" in | |
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3408 *) ac_try_echo=$ac_try;; | |
3409 esac | |
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3411 $as_echo "$ac_try_echo"; } >&5 | |
3412 (eval "$ac_try") 2>&5 | |
3413 ac_status=$? | |
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3415 test $ac_status = 0; }; }; then | |
3416 cross_compiling=no | |
3417 else | |
3418 if test "$cross_compiling" = maybe; then | |
3419 cross_compiling=yes | |
3420 else | |
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3423 as_fn_error $? "cannot run C compiled programs. | |
3424 If you meant to cross compile, use \`--host'. | |
3425 See \`config.log' for more details" "$LINENO" 5; } | |
3426 fi | |
3427 fi | |
3428 fi | |
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3430 $as_echo "$cross_compiling" >&6; } | |
3431 | |
3432 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3433 ac_clean_files=$ac_clean_files_save | |
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3435 $as_echo_n "checking for suffix of object files... " >&6; } | |
3436 if ${ac_cv_objext+:} false; then : | |
3437 $as_echo_n "(cached) " >&6 | |
3438 else | |
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3440 /* end confdefs.h. */ | |
3441 | |
3442 int | |
3443 main () | |
3444 { | |
3445 | |
3446 ; | |
3447 return 0; | |
3448 } | |
3449 _ACEOF | |
3450 rm -f conftest.o conftest.obj | |
3451 if { { ac_try="$ac_compile" | |
3452 case "(($ac_try" in | |
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3454 *) ac_try_echo=$ac_try;; | |
3455 esac | |
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3457 $as_echo "$ac_try_echo"; } >&5 | |
3458 (eval "$ac_compile") 2>&5 | |
3459 ac_status=$? | |
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3461 test $ac_status = 0; }; then : | |
3462 for ac_file in conftest.o conftest.obj conftest.*; do | |
3463 test -f "$ac_file" || continue; | |
3464 case $ac_file in | |
3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3467 break;; | |
3468 esac | |
3469 done | |
3470 else | |
3471 $as_echo "$as_me: failed program was:" >&5 | |
3472 sed 's/^/| /' conftest.$ac_ext >&5 | |
3473 | |
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3476 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3477 See \`config.log' for more details" "$LINENO" 5; } | |
3478 fi | |
3479 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3480 fi | |
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3482 $as_echo "$ac_cv_objext" >&6; } | |
3483 OBJEXT=$ac_cv_objext | |
3484 ac_objext=$OBJEXT | |
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3486 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3487 if ${ac_cv_c_compiler_gnu+:} false; then : | |
3488 $as_echo_n "(cached) " >&6 | |
3489 else | |
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3491 /* end confdefs.h. */ | |
3492 | |
3493 int | |
3494 main () | |
3495 { | |
3496 #ifndef __GNUC__ | |
3497 choke me | |
3498 #endif | |
3499 | |
3500 ; | |
3501 return 0; | |
3502 } | |
3503 _ACEOF | |
3504 if ac_fn_c_try_compile "$LINENO"; then : | |
3505 ac_compiler_gnu=yes | |
3506 else | |
3507 ac_compiler_gnu=no | |
3508 fi | |
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3510 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3511 | |
3512 fi | |
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3514 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3515 if test $ac_compiler_gnu = yes; then | |
3516 GCC=yes | |
3517 else | |
3518 GCC= | |
3519 fi | |
3520 ac_test_CFLAGS=${CFLAGS+set} | |
3521 ac_save_CFLAGS=$CFLAGS | |
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3523 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3524 if ${ac_cv_prog_cc_g+:} false; then : | |
3525 $as_echo_n "(cached) " >&6 | |
3526 else | |
3527 ac_save_c_werror_flag=$ac_c_werror_flag | |
3528 ac_c_werror_flag=yes | |
3529 ac_cv_prog_cc_g=no | |
3530 CFLAGS="-g" | |
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3532 /* end confdefs.h. */ | |
3533 | |
3534 int | |
3535 main () | |
3536 { | |
3537 | |
3538 ; | |
3539 return 0; | |
3540 } | |
3541 _ACEOF | |
3542 if ac_fn_c_try_compile "$LINENO"; then : | |
3543 ac_cv_prog_cc_g=yes | |
3544 else | |
3545 CFLAGS="" | |
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3547 /* end confdefs.h. */ | |
3548 | |
3549 int | |
3550 main () | |
3551 { | |
3552 | |
3553 ; | |
3554 return 0; | |
3555 } | |
3556 _ACEOF | |
3557 if ac_fn_c_try_compile "$LINENO"; then : | |
3558 | |
3559 else | |
3560 ac_c_werror_flag=$ac_save_c_werror_flag | |
3561 CFLAGS="-g" | |
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3563 /* end confdefs.h. */ | |
3564 | |
3565 int | |
3566 main () | |
3567 { | |
3568 | |
3569 ; | |
3570 return 0; | |
3571 } | |
3572 _ACEOF | |
3573 if ac_fn_c_try_compile "$LINENO"; then : | |
3574 ac_cv_prog_cc_g=yes | |
3575 fi | |
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3577 fi | |
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3579 fi | |
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3581 ac_c_werror_flag=$ac_save_c_werror_flag | |
3582 fi | |
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3584 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3585 if test "$ac_test_CFLAGS" = set; then | |
3586 CFLAGS=$ac_save_CFLAGS | |
3587 elif test $ac_cv_prog_cc_g = yes; then | |
3588 if test "$GCC" = yes; then | |
3589 CFLAGS="-g -O2" | |
3590 else | |
3591 CFLAGS="-g" | |
3592 fi | |
3593 else | |
3594 if test "$GCC" = yes; then | |
3595 CFLAGS="-O2" | |
3596 else | |
3597 CFLAGS= | |
3598 fi | |
3599 fi | |
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3602 if ${ac_cv_prog_cc_c89+:} false; then : | |
3603 $as_echo_n "(cached) " >&6 | |
3604 else | |
3605 ac_cv_prog_cc_c89=no | |
3606 ac_save_CC=$CC | |
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3608 /* end confdefs.h. */ | |
3609 #include <stdarg.h> | |
3610 #include <stdio.h> | |
3611 #include <sys/types.h> | |
3612 #include <sys/stat.h> | |
3613 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3614 struct buf { int x; }; | |
3615 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3616 static char *e (p, i) | |
3617 char **p; | |
3618 int i; | |
3619 { | |
3620 return p[i]; | |
3621 } | |
3622 static char *f (char * (*g) (char **, int), char **p, ...) | |
3623 { | |
3624 char *s; | |
3625 va_list v; | |
3626 va_start (v,p); | |
3627 s = g (p, va_arg (v,int)); | |
3628 va_end (v); | |
3629 return s; | |
3630 } | |
3631 | |
3632 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3633 function prototypes and stuff, but not '\xHH' hex character constants. | |
3634 These don't provoke an error unfortunately, instead are silently treated | |
3635 as 'x'. The following induces an error, until -std is added to get | |
3636 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3637 array size at least. It's necessary to write '\x00'==0 to get something | |
3638 that's true only with -std. */ | |
3639 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3640 | |
3641 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3642 inside strings and character constants. */ | |
3643 #define FOO(x) 'x' | |
3644 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3645 | |
3646 int test (int i, double x); | |
3647 struct s1 {int (*f) (int a);}; | |
3648 struct s2 {int (*f) (double a);}; | |
3649 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3650 int argc; | |
3651 char **argv; | |
3652 int | |
3653 main () | |
3654 { | |
3655 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3656 ; | |
3657 return 0; | |
3658 } | |
3659 _ACEOF | |
3660 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3662 do | |
3663 CC="$ac_save_CC $ac_arg" | |
3664 if ac_fn_c_try_compile "$LINENO"; then : | |
3665 ac_cv_prog_cc_c89=$ac_arg | |
3666 fi | |
3667 rm -f core conftest.err conftest.$ac_objext | |
3668 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3669 done | |
3670 rm -f conftest.$ac_ext | |
3671 CC=$ac_save_CC | |
3672 | |
3673 fi | |
3674 # AC_CACHE_VAL | |
3675 case "x$ac_cv_prog_cc_c89" in | |
3676 x) | |
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3678 $as_echo "none needed" >&6; } ;; | |
3679 xno) | |
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3681 $as_echo "unsupported" >&6; } ;; | |
3682 *) | |
3683 CC="$CC $ac_cv_prog_cc_c89" | |
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3685 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3686 esac | |
3687 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3688 | |
3689 fi | |
3690 | |
3691 ac_ext=c | |
3692 ac_cpp='$CPP $CPPFLAGS' | |
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3696 DEPDIR="${am__leading_dot}deps" | |
3697 | |
3698 ac_config_commands="$ac_config_commands depfiles" | |
3699 | |
3700 | |
3701 am_make=${MAKE-make} | |
3702 cat > confinc << 'END' | |
3703 am__doit: | |
3704 @echo this is the am__doit target | |
3705 .PHONY: am__doit | |
3706 END | |
3707 # If we don't find an include directive, just comment out the code. | |
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3709 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3710 am__include="#" | |
3711 am__quote= | |
3712 _am_result=none | |
3713 # First try GNU make style include. | |
3714 echo "include confinc" > confmf | |
3715 # Ignore all kinds of additional output from `make'. | |
3716 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3717 *the\ am__doit\ target*) | |
3718 am__include=include | |
3719 am__quote= | |
3720 _am_result=GNU | |
3721 ;; | |
3722 esac | |
3723 # Now try BSD make style include. | |
3724 if test "$am__include" = "#"; then | |
3725 echo '.include "confinc"' > confmf | |
3726 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3727 *the\ am__doit\ target*) | |
3728 am__include=.include | |
3729 am__quote="\"" | |
3730 _am_result=BSD | |
3731 ;; | |
3732 esac | |
3733 fi | |
3734 | |
3735 | |
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3737 $as_echo "$_am_result" >&6; } | |
3738 rm -f confinc confmf | |
3739 | |
3740 # Check whether --enable-dependency-tracking was given. | |
3741 if test "${enable_dependency_tracking+set}" = set; then : | |
3742 enableval=$enable_dependency_tracking; | |
3743 fi | |
3744 | |
3745 if test "x$enable_dependency_tracking" != xno; then | |
3746 am_depcomp="$ac_aux_dir/depcomp" | |
3747 AMDEPBACKSLASH='\' | |
3748 fi | |
3749 if test "x$enable_dependency_tracking" != xno; then | |
3750 AMDEP_TRUE= | |
3751 AMDEP_FALSE='#' | |
3752 else | |
3753 AMDEP_TRUE='#' | |
3754 AMDEP_FALSE= | |
3755 fi | |
3756 | |
3757 | |
3758 | |
3759 depcc="$CC" am_compiler_list= | |
3760 | |
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3762 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3763 if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3764 $as_echo_n "(cached) " >&6 | |
3765 else | |
3766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3767 # We make a subdir and do the tests there. Otherwise we can end up | |
3768 # making bogus files that we don't know about and never remove. For | |
3769 # instance it was reported that on HP-UX the gcc test will end up | |
3770 # making a dummy file named `D' -- because `-MD' means `put the output | |
3771 # in D'. | |
3772 mkdir conftest.dir | |
3773 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3774 # using a relative directory. | |
3775 cp "$am_depcomp" conftest.dir | |
3776 cd conftest.dir | |
3777 # We will build objects and dependencies in a subdirectory because | |
3778 # it helps to detect inapplicable dependency modes. For instance | |
3779 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3780 # side effect of compilation, but ICC will put the dependencies in | |
3781 # the current directory while Tru64 will put them in the object | |
3782 # directory. | |
3783 mkdir sub | |
3784 | |
3785 am_cv_CC_dependencies_compiler_type=none | |
3786 if test "$am_compiler_list" = ""; then | |
3787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3788 fi | |
3789 am__universal=false | |
3790 case " $depcc " in #( | |
3791 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3792 esac | |
3793 | |
3794 for depmode in $am_compiler_list; do | |
3795 # Setup a source with many dependencies, because some compilers | |
3796 # like to wrap large dependency lists on column 80 (with \), and | |
3797 # we should not choose a depcomp mode which is confused by this. | |
3798 # | |
3799 # We need to recreate these files for each test, as the compiler may | |
3800 # overwrite some of them when testing with obscure command lines. | |
3801 # This happens at least with the AIX C compiler. | |
3802 : > sub/conftest.c | |
3803 for i in 1 2 3 4 5 6; do | |
3804 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3806 # Solaris 8's {/usr,}/bin/sh. | |
3807 touch sub/conftst$i.h | |
3808 done | |
3809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3810 | |
3811 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3812 # mode. It turns out that the SunPro C++ compiler does not properly | |
3813 # handle `-M -o', and we need to detect this. Also, some Intel | |
3814 # versions had trouble with output in subdirs | |
3815 am__obj=sub/conftest.${OBJEXT-o} | |
3816 am__minus_obj="-o $am__obj" | |
3817 case $depmode in | |
3818 gcc) | |
3819 # This depmode causes a compiler race in universal mode. | |
3820 test "$am__universal" = false || continue | |
3821 ;; | |
3822 nosideeffect) | |
3823 # after this tag, mechanisms are not by side-effect, so they'll | |
3824 # only be used when explicitly requested | |
3825 if test "x$enable_dependency_tracking" = xyes; then | |
3826 continue | |
3827 else | |
3828 break | |
3829 fi | |
3830 ;; | |
3831 msvisualcpp | msvcmsys) | |
3832 # This compiler won't grok `-c -o', but also, the minuso test has | |
3833 # not run yet. These depmodes are late enough in the game, and | |
3834 # so weak that their functioning should not be impacted. | |
3835 am__obj=conftest.${OBJEXT-o} | |
3836 am__minus_obj= | |
3837 ;; | |
3838 none) break ;; | |
3839 esac | |
3840 if depmode=$depmode \ | |
3841 source=sub/conftest.c object=$am__obj \ | |
3842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3844 >/dev/null 2>conftest.err && | |
3845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3849 # icc doesn't choke on unknown options, it will just issue warnings | |
3850 # or remarks (even with -Werror). So we grep stderr for any message | |
3851 # that says an option was ignored or not supported. | |
3852 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3853 # icc: Command line warning: ignoring option '-M'; no argument required | |
3854 # The diagnosis changed in icc 8.0: | |
3855 # icc: Command line remark: option '-MP' not supported | |
3856 if (grep 'ignoring option' conftest.err || | |
3857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3858 am_cv_CC_dependencies_compiler_type=$depmode | |
3859 break | |
3860 fi | |
3861 fi | |
3862 done | |
3863 | |
3864 cd .. | |
3865 rm -rf conftest.dir | |
3866 else | |
3867 am_cv_CC_dependencies_compiler_type=none | |
3868 fi | |
3869 | |
3870 fi | |
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3872 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3873 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3874 | |
3875 if | |
3876 test "x$enable_dependency_tracking" != xno \ | |
3877 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3878 am__fastdepCC_TRUE= | |
3879 am__fastdepCC_FALSE='#' | |
3880 else | |
3881 am__fastdepCC_TRUE='#' | |
3882 am__fastdepCC_FALSE= | |
3883 fi | |
3884 | |
3885 | |
3886 case `pwd` in | |
3887 *\ * | *\ *) | |
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3889 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3890 esac | |
3891 | |
3892 | |
3893 | |
3894 macro_version='2.4' | |
3895 macro_revision='1.3293' | |
3896 | |
3897 | |
3898 | |
3899 | |
3900 | |
3901 | |
3902 | |
3903 | |
3904 | |
3905 | |
3906 | |
3907 | |
3908 | |
3909 ltmain="$ac_aux_dir/ltmain.sh" | |
3910 | |
3911 # Make sure we can run config.sub. | |
3912 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3913 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3914 | |
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3916 $as_echo_n "checking build system type... " >&6; } | |
3917 if ${ac_cv_build+:} false; then : | |
3918 $as_echo_n "(cached) " >&6 | |
3919 else | |
3920 ac_build_alias=$build_alias | |
3921 test "x$ac_build_alias" = x && | |
3922 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3923 test "x$ac_build_alias" = x && | |
3924 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3925 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3927 | |
3928 fi | |
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3930 $as_echo "$ac_cv_build" >&6; } | |
3931 case $ac_cv_build in | |
3932 *-*-*) ;; | |
3933 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3934 esac | |
3935 build=$ac_cv_build | |
3936 ac_save_IFS=$IFS; IFS='-' | |
3937 set x $ac_cv_build | |
3938 shift | |
3939 build_cpu=$1 | |
3940 build_vendor=$2 | |
3941 shift; shift | |
3942 # Remember, the first character of IFS is used to create $*, | |
3943 # except with old shells: | |
3944 build_os=$* | |
3945 IFS=$ac_save_IFS | |
3946 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3947 | |
3948 | |
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3950 $as_echo_n "checking host system type... " >&6; } | |
3951 if ${ac_cv_host+:} false; then : | |
3952 $as_echo_n "(cached) " >&6 | |
3953 else | |
3954 if test "x$host_alias" = x; then | |
3955 ac_cv_host=$ac_cv_build | |
3956 else | |
3957 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3958 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3959 fi | |
3960 | |
3961 fi | |
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3963 $as_echo "$ac_cv_host" >&6; } | |
3964 case $ac_cv_host in | |
3965 *-*-*) ;; | |
3966 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3967 esac | |
3968 host=$ac_cv_host | |
3969 ac_save_IFS=$IFS; IFS='-' | |
3970 set x $ac_cv_host | |
3971 shift | |
3972 host_cpu=$1 | |
3973 host_vendor=$2 | |
3974 shift; shift | |
3975 # Remember, the first character of IFS is used to create $*, | |
3976 # except with old shells: | |
3977 host_os=$* | |
3978 IFS=$ac_save_IFS | |
3979 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3980 | |
3981 | |
3982 # Backslashify metacharacters that are still active within | |
3983 # double-quoted strings. | |
3984 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
3985 | |
3986 # Same as above, but do not quote variable references. | |
3987 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
3988 | |
3989 # Sed substitution to delay expansion of an escaped shell variable in a | |
3990 # double_quote_subst'ed string. | |
3991 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
3992 | |
3993 # Sed substitution to delay expansion of an escaped single quote. | |
3994 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
3995 | |
3996 # Sed substitution to avoid accidental globbing in evaled expressions | |
3997 no_glob_subst='s/\*/\\\*/g' | |
3998 | |
3999 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4000 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4001 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4002 | |
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4004 $as_echo_n "checking how to print strings... " >&6; } | |
4005 # Test print first, because it will be a builtin if present. | |
4006 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4007 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4008 ECHO='print -r --' | |
4009 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4010 ECHO='printf %s\n' | |
4011 else | |
4012 # Use this function as a fallback that always works. | |
4013 func_fallback_echo () | |
4014 { | |
4015 eval 'cat <<_LTECHO_EOF | |
4016 $1 | |
4017 _LTECHO_EOF' | |
4018 } | |
4019 ECHO='func_fallback_echo' | |
4020 fi | |
4021 | |
4022 # func_echo_all arg... | |
4023 # Invoke $ECHO with all args, space-separated. | |
4024 func_echo_all () | |
4025 { | |
4026 $ECHO "" | |
4027 } | |
4028 | |
4029 case "$ECHO" in | |
4030 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4031 $as_echo "printf" >&6; } ;; | |
4032 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4033 $as_echo "print -r" >&6; } ;; | |
4034 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4035 $as_echo "cat" >&6; } ;; | |
4036 esac | |
4037 | |
4038 | |
4039 | |
4040 | |
4041 | |
4042 | |
4043 | |
4044 | |
4045 | |
4046 | |
4047 | |
4048 | |
4049 | |
4050 | |
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4052 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4053 if ${ac_cv_path_SED+:} false; then : | |
4054 $as_echo_n "(cached) " >&6 | |
4055 else | |
4056 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4057 for ac_i in 1 2 3 4 5 6 7; do | |
4058 ac_script="$ac_script$as_nl$ac_script" | |
4059 done | |
4060 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4061 { ac_script=; unset ac_script;} | |
4062 if test -z "$SED"; then | |
4063 ac_path_SED_found=false | |
4064 # Loop through the user's path and test for each of PROGNAME-LIST | |
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4066 for as_dir in $PATH | |
4067 do | |
4068 IFS=$as_save_IFS | |
4069 test -z "$as_dir" && as_dir=. | |
4070 for ac_prog in sed gsed; do | |
4071 for ac_exec_ext in '' $ac_executable_extensions; do | |
4072 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4073 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4074 # Check for GNU ac_path_SED and select it if it is found. | |
4075 # Check for GNU $ac_path_SED | |
4076 case `"$ac_path_SED" --version 2>&1` in | |
4077 *GNU*) | |
4078 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4079 *) | |
4080 ac_count=0 | |
4081 $as_echo_n 0123456789 >"conftest.in" | |
4082 while : | |
4083 do | |
4084 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4085 mv "conftest.tmp" "conftest.in" | |
4086 cp "conftest.in" "conftest.nl" | |
4087 $as_echo '' >> "conftest.nl" | |
4088 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4090 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4091 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4092 # Best one so far, save it but keep looking for a better one | |
4093 ac_cv_path_SED="$ac_path_SED" | |
4094 ac_path_SED_max=$ac_count | |
4095 fi | |
4096 # 10*(2^10) chars as input seems more than enough | |
4097 test $ac_count -gt 10 && break | |
4098 done | |
4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4100 esac | |
4101 | |
4102 $ac_path_SED_found && break 3 | |
4103 done | |
4104 done | |
4105 done | |
4106 IFS=$as_save_IFS | |
4107 if test -z "$ac_cv_path_SED"; then | |
4108 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4109 fi | |
4110 else | |
4111 ac_cv_path_SED=$SED | |
4112 fi | |
4113 | |
4114 fi | |
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4116 $as_echo "$ac_cv_path_SED" >&6; } | |
4117 SED="$ac_cv_path_SED" | |
4118 rm -f conftest.sed | |
4119 | |
4120 test -z "$SED" && SED=sed | |
4121 Xsed="$SED -e 1s/^X//" | |
4122 | |
4123 | |
4124 | |
4125 | |
4126 | |
4127 | |
4128 | |
4129 | |
4130 | |
4131 | |
4132 | |
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4134 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4135 if ${ac_cv_path_GREP+:} false; then : | |
4136 $as_echo_n "(cached) " >&6 | |
4137 else | |
4138 if test -z "$GREP"; then | |
4139 ac_path_GREP_found=false | |
4140 # Loop through the user's path and test for each of PROGNAME-LIST | |
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4143 do | |
4144 IFS=$as_save_IFS | |
4145 test -z "$as_dir" && as_dir=. | |
4146 for ac_prog in grep ggrep; do | |
4147 for ac_exec_ext in '' $ac_executable_extensions; do | |
4148 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4149 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4150 # Check for GNU ac_path_GREP and select it if it is found. | |
4151 # Check for GNU $ac_path_GREP | |
4152 case `"$ac_path_GREP" --version 2>&1` in | |
4153 *GNU*) | |
4154 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4155 *) | |
4156 ac_count=0 | |
4157 $as_echo_n 0123456789 >"conftest.in" | |
4158 while : | |
4159 do | |
4160 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4161 mv "conftest.tmp" "conftest.in" | |
4162 cp "conftest.in" "conftest.nl" | |
4163 $as_echo 'GREP' >> "conftest.nl" | |
4164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4166 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4167 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4168 # Best one so far, save it but keep looking for a better one | |
4169 ac_cv_path_GREP="$ac_path_GREP" | |
4170 ac_path_GREP_max=$ac_count | |
4171 fi | |
4172 # 10*(2^10) chars as input seems more than enough | |
4173 test $ac_count -gt 10 && break | |
4174 done | |
4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4176 esac | |
4177 | |
4178 $ac_path_GREP_found && break 3 | |
4179 done | |
4180 done | |
4181 done | |
4182 IFS=$as_save_IFS | |
4183 if test -z "$ac_cv_path_GREP"; then | |
4184 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4185 fi | |
4186 else | |
4187 ac_cv_path_GREP=$GREP | |
4188 fi | |
4189 | |
4190 fi | |
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4192 $as_echo "$ac_cv_path_GREP" >&6; } | |
4193 GREP="$ac_cv_path_GREP" | |
4194 | |
4195 | |
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4197 $as_echo_n "checking for egrep... " >&6; } | |
4198 if ${ac_cv_path_EGREP+:} false; then : | |
4199 $as_echo_n "(cached) " >&6 | |
4200 else | |
4201 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4202 then ac_cv_path_EGREP="$GREP -E" | |
4203 else | |
4204 if test -z "$EGREP"; then | |
4205 ac_path_EGREP_found=false | |
4206 # Loop through the user's path and test for each of PROGNAME-LIST | |
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4209 do | |
4210 IFS=$as_save_IFS | |
4211 test -z "$as_dir" && as_dir=. | |
4212 for ac_prog in egrep; do | |
4213 for ac_exec_ext in '' $ac_executable_extensions; do | |
4214 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4215 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4216 # Check for GNU ac_path_EGREP and select it if it is found. | |
4217 # Check for GNU $ac_path_EGREP | |
4218 case `"$ac_path_EGREP" --version 2>&1` in | |
4219 *GNU*) | |
4220 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4221 *) | |
4222 ac_count=0 | |
4223 $as_echo_n 0123456789 >"conftest.in" | |
4224 while : | |
4225 do | |
4226 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4227 mv "conftest.tmp" "conftest.in" | |
4228 cp "conftest.in" "conftest.nl" | |
4229 $as_echo 'EGREP' >> "conftest.nl" | |
4230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4234 # Best one so far, save it but keep looking for a better one | |
4235 ac_cv_path_EGREP="$ac_path_EGREP" | |
4236 ac_path_EGREP_max=$ac_count | |
4237 fi | |
4238 # 10*(2^10) chars as input seems more than enough | |
4239 test $ac_count -gt 10 && break | |
4240 done | |
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4242 esac | |
4243 | |
4244 $ac_path_EGREP_found && break 3 | |
4245 done | |
4246 done | |
4247 done | |
4248 IFS=$as_save_IFS | |
4249 if test -z "$ac_cv_path_EGREP"; then | |
4250 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4251 fi | |
4252 else | |
4253 ac_cv_path_EGREP=$EGREP | |
4254 fi | |
4255 | |
4256 fi | |
4257 fi | |
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4259 $as_echo "$ac_cv_path_EGREP" >&6; } | |
4260 EGREP="$ac_cv_path_EGREP" | |
4261 | |
4262 | |
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4264 $as_echo_n "checking for fgrep... " >&6; } | |
4265 if ${ac_cv_path_FGREP+:} false; then : | |
4266 $as_echo_n "(cached) " >&6 | |
4267 else | |
4268 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4269 then ac_cv_path_FGREP="$GREP -F" | |
4270 else | |
4271 if test -z "$FGREP"; then | |
4272 ac_path_FGREP_found=false | |
4273 # Loop through the user's path and test for each of PROGNAME-LIST | |
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4276 do | |
4277 IFS=$as_save_IFS | |
4278 test -z "$as_dir" && as_dir=. | |
4279 for ac_prog in fgrep; do | |
4280 for ac_exec_ext in '' $ac_executable_extensions; do | |
4281 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4282 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4283 # Check for GNU ac_path_FGREP and select it if it is found. | |
4284 # Check for GNU $ac_path_FGREP | |
4285 case `"$ac_path_FGREP" --version 2>&1` in | |
4286 *GNU*) | |
4287 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4288 *) | |
4289 ac_count=0 | |
4290 $as_echo_n 0123456789 >"conftest.in" | |
4291 while : | |
4292 do | |
4293 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4294 mv "conftest.tmp" "conftest.in" | |
4295 cp "conftest.in" "conftest.nl" | |
4296 $as_echo 'FGREP' >> "conftest.nl" | |
4297 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4299 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4300 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4301 # Best one so far, save it but keep looking for a better one | |
4302 ac_cv_path_FGREP="$ac_path_FGREP" | |
4303 ac_path_FGREP_max=$ac_count | |
4304 fi | |
4305 # 10*(2^10) chars as input seems more than enough | |
4306 test $ac_count -gt 10 && break | |
4307 done | |
4308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4309 esac | |
4310 | |
4311 $ac_path_FGREP_found && break 3 | |
4312 done | |
4313 done | |
4314 done | |
4315 IFS=$as_save_IFS | |
4316 if test -z "$ac_cv_path_FGREP"; then | |
4317 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4318 fi | |
4319 else | |
4320 ac_cv_path_FGREP=$FGREP | |
4321 fi | |
4322 | |
4323 fi | |
4324 fi | |
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4326 $as_echo "$ac_cv_path_FGREP" >&6; } | |
4327 FGREP="$ac_cv_path_FGREP" | |
4328 | |
4329 | |
4330 test -z "$GREP" && GREP=grep | |
4331 | |
4332 | |
4333 | |
4334 | |
4335 | |
4336 | |
4337 | |
4338 | |
4339 | |
4340 | |
4341 | |
4342 | |
4343 | |
4344 | |
4345 | |
4346 | |
4347 | |
4348 | |
4349 | |
4350 # Check whether --with-gnu-ld was given. | |
4351 if test "${with_gnu_ld+set}" = set; then : | |
4352 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4353 else | |
4354 with_gnu_ld=no | |
4355 fi | |
4356 | |
4357 ac_prog=ld | |
4358 if test "$GCC" = yes; then | |
4359 # Check if gcc -print-prog-name=ld gives a path. | |
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4361 $as_echo_n "checking for ld used by $CC... " >&6; } | |
4362 case $host in | |
4363 *-*-mingw*) | |
4364 # gcc leaves a trailing carriage return which upsets mingw | |
4365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4366 *) | |
4367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4368 esac | |
4369 case $ac_prog in | |
4370 # Accept absolute paths. | |
4371 [\\/]* | ?:[\\/]*) | |
4372 re_direlt='/[^/][^/]*/\.\./' | |
4373 # Canonicalize the pathname of ld | |
4374 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4375 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4376 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4377 done | |
4378 test -z "$LD" && LD="$ac_prog" | |
4379 ;; | |
4380 "") | |
4381 # If it fails, then pretend we aren't using GCC. | |
4382 ac_prog=ld | |
4383 ;; | |
4384 *) | |
4385 # If it is relative, then search for the first ld in PATH. | |
4386 with_gnu_ld=unknown | |
4387 ;; | |
4388 esac | |
4389 elif test "$with_gnu_ld" = yes; then | |
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4391 $as_echo_n "checking for GNU ld... " >&6; } | |
4392 else | |
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4394 $as_echo_n "checking for non-GNU ld... " >&6; } | |
4395 fi | |
4396 if ${lt_cv_path_LD+:} false; then : | |
4397 $as_echo_n "(cached) " >&6 | |
4398 else | |
4399 if test -z "$LD"; then | |
4400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4401 for ac_dir in $PATH; do | |
4402 IFS="$lt_save_ifs" | |
4403 test -z "$ac_dir" && ac_dir=. | |
4404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4405 lt_cv_path_LD="$ac_dir/$ac_prog" | |
4406 # Check to see if the program is GNU ld. I'd rather use --version, | |
4407 # but apparently some variants of GNU ld only accept -v. | |
4408 # Break only if it was the GNU/non-GNU ld that we prefer. | |
4409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4410 *GNU* | *'with BFD'*) | |
4411 test "$with_gnu_ld" != no && break | |
4412 ;; | |
4413 *) | |
4414 test "$with_gnu_ld" != yes && break | |
4415 ;; | |
4416 esac | |
4417 fi | |
4418 done | |
4419 IFS="$lt_save_ifs" | |
4420 else | |
4421 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4422 fi | |
4423 fi | |
4424 | |
4425 LD="$lt_cv_path_LD" | |
4426 if test -n "$LD"; then | |
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4428 $as_echo "$LD" >&6; } | |
4429 else | |
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4431 $as_echo "no" >&6; } | |
4432 fi | |
4433 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4435 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4436 if ${lt_cv_prog_gnu_ld+:} false; then : | |
4437 $as_echo_n "(cached) " >&6 | |
4438 else | |
4439 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4440 case `$LD -v 2>&1 </dev/null` in | |
4441 *GNU* | *'with BFD'*) | |
4442 lt_cv_prog_gnu_ld=yes | |
4443 ;; | |
4444 *) | |
4445 lt_cv_prog_gnu_ld=no | |
4446 ;; | |
4447 esac | |
4448 fi | |
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4450 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4451 with_gnu_ld=$lt_cv_prog_gnu_ld | |
4452 | |
4453 | |
4454 | |
4455 | |
4456 | |
4457 | |
4458 | |
4459 | |
4460 | |
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4462 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4463 if ${lt_cv_path_NM+:} false; then : | |
4464 $as_echo_n "(cached) " >&6 | |
4465 else | |
4466 if test -n "$NM"; then | |
4467 # Let the user override the test. | |
4468 lt_cv_path_NM="$NM" | |
4469 else | |
4470 lt_nm_to_check="${ac_tool_prefix}nm" | |
4471 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4472 lt_nm_to_check="$lt_nm_to_check nm" | |
4473 fi | |
4474 for lt_tmp_nm in $lt_nm_to_check; do | |
4475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4476 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4477 IFS="$lt_save_ifs" | |
4478 test -z "$ac_dir" && ac_dir=. | |
4479 tmp_nm="$ac_dir/$lt_tmp_nm" | |
4480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4481 # Check to see if the nm accepts a BSD-compat flag. | |
4482 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4483 # nm: unknown option "B" ignored | |
4484 # Tru64's nm complains that /dev/null is an invalid object file | |
4485 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4486 */dev/null* | *'Invalid file or object type'*) | |
4487 lt_cv_path_NM="$tmp_nm -B" | |
4488 break | |
4489 ;; | |
4490 *) | |
4491 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4492 */dev/null*) | |
4493 lt_cv_path_NM="$tmp_nm -p" | |
4494 break | |
4495 ;; | |
4496 *) | |
4497 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4498 continue # so that we can try to find one that supports BSD flags | |
4499 ;; | |
4500 esac | |
4501 ;; | |
4502 esac | |
4503 fi | |
4504 done | |
4505 IFS="$lt_save_ifs" | |
4506 done | |
4507 : ${lt_cv_path_NM=no} | |
4508 fi | |
4509 fi | |
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4511 $as_echo "$lt_cv_path_NM" >&6; } | |
4512 if test "$lt_cv_path_NM" != "no"; then | |
4513 NM="$lt_cv_path_NM" | |
4514 else | |
4515 # Didn't find any BSD compatible name lister, look for dumpbin. | |
4516 if test -n "$DUMPBIN"; then : | |
4517 # Let the user override the test. | |
4518 else | |
4519 if test -n "$ac_tool_prefix"; then | |
4520 for ac_prog in dumpbin "link -dump" | |
4521 do | |
4522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4525 $as_echo_n "checking for $ac_word... " >&6; } | |
4526 if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4527 $as_echo_n "(cached) " >&6 | |
4528 else | |
4529 if test -n "$DUMPBIN"; then | |
4530 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4531 else | |
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4533 for as_dir in $PATH | |
4534 do | |
4535 IFS=$as_save_IFS | |
4536 test -z "$as_dir" && as_dir=. | |
4537 for ac_exec_ext in '' $ac_executable_extensions; do | |
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4539 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4541 break 2 | |
4542 fi | |
4543 done | |
4544 done | |
4545 IFS=$as_save_IFS | |
4546 | |
4547 fi | |
4548 fi | |
4549 DUMPBIN=$ac_cv_prog_DUMPBIN | |
4550 if test -n "$DUMPBIN"; then | |
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4552 $as_echo "$DUMPBIN" >&6; } | |
4553 else | |
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4555 $as_echo "no" >&6; } | |
4556 fi | |
4557 | |
4558 | |
4559 test -n "$DUMPBIN" && break | |
4560 done | |
4561 fi | |
4562 if test -z "$DUMPBIN"; then | |
4563 ac_ct_DUMPBIN=$DUMPBIN | |
4564 for ac_prog in dumpbin "link -dump" | |
4565 do | |
4566 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4567 set dummy $ac_prog; ac_word=$2 | |
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4569 $as_echo_n "checking for $ac_word... " >&6; } | |
4570 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4571 $as_echo_n "(cached) " >&6 | |
4572 else | |
4573 if test -n "$ac_ct_DUMPBIN"; then | |
4574 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4575 else | |
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4577 for as_dir in $PATH | |
4578 do | |
4579 IFS=$as_save_IFS | |
4580 test -z "$as_dir" && as_dir=. | |
4581 for ac_exec_ext in '' $ac_executable_extensions; do | |
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4583 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4585 break 2 | |
4586 fi | |
4587 done | |
4588 done | |
4589 IFS=$as_save_IFS | |
4590 | |
4591 fi | |
4592 fi | |
4593 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4594 if test -n "$ac_ct_DUMPBIN"; then | |
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4596 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4597 else | |
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4599 $as_echo "no" >&6; } | |
4600 fi | |
4601 | |
4602 | |
4603 test -n "$ac_ct_DUMPBIN" && break | |
4604 done | |
4605 | |
4606 if test "x$ac_ct_DUMPBIN" = x; then | |
4607 DUMPBIN=":" | |
4608 else | |
4609 case $cross_compiling:$ac_tool_warned in | |
4610 yes:) | |
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4613 ac_tool_warned=yes ;; | |
4614 esac | |
4615 DUMPBIN=$ac_ct_DUMPBIN | |
4616 fi | |
4617 fi | |
4618 | |
4619 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
4620 *COFF*) | |
4621 DUMPBIN="$DUMPBIN -symbols" | |
4622 ;; | |
4623 *) | |
4624 DUMPBIN=: | |
4625 ;; | |
4626 esac | |
4627 fi | |
4628 | |
4629 if test "$DUMPBIN" != ":"; then | |
4630 NM="$DUMPBIN" | |
4631 fi | |
4632 fi | |
4633 test -z "$NM" && NM=nm | |
4634 | |
4635 | |
4636 | |
4637 | |
4638 | |
4639 | |
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4641 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4642 if ${lt_cv_nm_interface+:} false; then : | |
4643 $as_echo_n "(cached) " >&6 | |
4644 else | |
4645 lt_cv_nm_interface="BSD nm" | |
4646 echo "int some_variable = 0;" > conftest.$ac_ext | |
4647 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
4648 (eval "$ac_compile" 2>conftest.err) | |
4649 cat conftest.err >&5 | |
4650 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4651 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4652 cat conftest.err >&5 | |
4653 (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
4654 cat conftest.out >&5 | |
4655 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4656 lt_cv_nm_interface="MS dumpbin" | |
4657 fi | |
4658 rm -f conftest* | |
4659 fi | |
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
4661 $as_echo "$lt_cv_nm_interface" >&6; } | |
4662 | |
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4664 $as_echo_n "checking whether ln -s works... " >&6; } | |
4665 LN_S=$as_ln_s | |
4666 if test "$LN_S" = "ln -s"; then | |
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4668 $as_echo "yes" >&6; } | |
4669 else | |
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4671 $as_echo "no, using $LN_S" >&6; } | |
4672 fi | |
4673 | |
4674 # find the maximum length of command line arguments | |
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4676 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4677 if ${lt_cv_sys_max_cmd_len+:} false; then : | |
4678 $as_echo_n "(cached) " >&6 | |
4679 else | |
4680 i=0 | |
4681 teststring="ABCD" | |
4682 | |
4683 case $build_os in | |
4684 msdosdjgpp*) | |
4685 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4686 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4687 # during glob expansion). Even if it were fixed, the result of this | |
4688 # check would be larger than it should be. | |
4689 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4690 ;; | |
4691 | |
4692 gnu*) | |
4693 # Under GNU Hurd, this test is not required because there is | |
4694 # no limit to the length of command line arguments. | |
4695 # Libtool will interpret -1 as no limit whatsoever | |
4696 lt_cv_sys_max_cmd_len=-1; | |
4697 ;; | |
4698 | |
4699 cygwin* | mingw* | cegcc*) | |
4700 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4701 # about 5 minutes as the teststring grows exponentially. | |
4702 # Worse, since 9x/ME are not pre-emptively multitasking, | |
4703 # you end up with a "frozen" computer, even though with patience | |
4704 # the test eventually succeeds (with a max line length of 256k). | |
4705 # Instead, let's just punt: use the minimum linelength reported by | |
4706 # all of the supported platforms: 8192 (on NT/2K/XP). | |
4707 lt_cv_sys_max_cmd_len=8192; | |
4708 ;; | |
4709 | |
4710 mint*) | |
4711 # On MiNT this can take a long time and run out of memory. | |
4712 lt_cv_sys_max_cmd_len=8192; | |
4713 ;; | |
4714 | |
4715 amigaos*) | |
4716 # On AmigaOS with pdksh, this test takes hours, literally. | |
4717 # So we just punt and use a minimum line length of 8192. | |
4718 lt_cv_sys_max_cmd_len=8192; | |
4719 ;; | |
4720 | |
4721 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4722 # This has been around since 386BSD, at least. Likely further. | |
4723 if test -x /sbin/sysctl; then | |
4724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4725 elif test -x /usr/sbin/sysctl; then | |
4726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4727 else | |
4728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4729 fi | |
4730 # And add a safety zone | |
4731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4733 ;; | |
4734 | |
4735 interix*) | |
4736 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4737 lt_cv_sys_max_cmd_len=196608 | |
4738 ;; | |
4739 | |
4740 osf*) | |
4741 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4742 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4743 # nice to cause kernel panics so lets avoid the loop below. | |
4744 # First set a reasonable default. | |
4745 lt_cv_sys_max_cmd_len=16384 | |
4746 # | |
4747 if test -x /sbin/sysconfig; then | |
4748 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4749 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4750 esac | |
4751 fi | |
4752 ;; | |
4753 sco3.2v5*) | |
4754 lt_cv_sys_max_cmd_len=102400 | |
4755 ;; | |
4756 sysv5* | sco5v6* | sysv4.2uw2*) | |
4757 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4758 if test -n "$kargmax"; then | |
4759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4760 else | |
4761 lt_cv_sys_max_cmd_len=32768 | |
4762 fi | |
4763 ;; | |
4764 *) | |
4765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4766 if test -n "$lt_cv_sys_max_cmd_len"; then | |
4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4769 else | |
4770 # Make teststring a little bigger before we do anything with it. | |
4771 # a 1K string should be a reasonable start. | |
4772 for i in 1 2 3 4 5 6 7 8 ; do | |
4773 teststring=$teststring$teststring | |
4774 done | |
4775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4776 # If test is not a shell built-in, we'll probably end up computing a | |
4777 # maximum length that is only half of the actual maximum length, but | |
4778 # we can't tell. | |
4779 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
4780 = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
4781 test $i != 17 # 1/2 MB should be enough | |
4782 do | |
4783 i=`expr $i + 1` | |
4784 teststring=$teststring$teststring | |
4785 done | |
4786 # Only check the string length outside the loop. | |
4787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4788 teststring= | |
4789 # Add a significant safety factor because C++ compilers can tack on | |
4790 # massive amounts of additional arguments before passing them to the | |
4791 # linker. It appears as though 1/2 is a usable value. | |
4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4793 fi | |
4794 ;; | |
4795 esac | |
4796 | |
4797 fi | |
4798 | |
4799 if test -n $lt_cv_sys_max_cmd_len ; then | |
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4801 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4802 else | |
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
4804 $as_echo "none" >&6; } | |
4805 fi | |
4806 max_cmd_len=$lt_cv_sys_max_cmd_len | |
4807 | |
4808 | |
4809 | |
4810 | |
4811 | |
4812 | |
4813 : ${CP="cp -f"} | |
4814 : ${MV="mv -f"} | |
4815 : ${RM="rm -f"} | |
4816 | |
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4818 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4819 # Try some XSI features | |
4820 xsi_shell=no | |
4821 ( _lt_dummy="a/b/c" | |
4822 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
4823 = c,a/b,b/c, \ | |
4824 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4825 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4826 && xsi_shell=yes | |
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4828 $as_echo "$xsi_shell" >&6; } | |
4829 | |
4830 | |
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4832 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4833 lt_shell_append=no | |
4834 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4835 >/dev/null 2>&1 \ | |
4836 && lt_shell_append=yes | |
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4838 $as_echo "$lt_shell_append" >&6; } | |
4839 | |
4840 | |
4841 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4842 lt_unset=unset | |
4843 else | |
4844 lt_unset=false | |
4845 fi | |
4846 | |
4847 | |
4848 | |
4849 | |
4850 | |
4851 # test EBCDIC or ASCII | |
4852 case `echo X|tr X '\101'` in | |
4853 A) # ASCII based system | |
4854 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4855 lt_SP2NL='tr \040 \012' | |
4856 lt_NL2SP='tr \015\012 \040\040' | |
4857 ;; | |
4858 *) # EBCDIC based system | |
4859 lt_SP2NL='tr \100 \n' | |
4860 lt_NL2SP='tr \r\n \100\100' | |
4861 ;; | |
4862 esac | |
4863 | |
4864 | |
4865 | |
4866 | |
4867 | |
4868 | |
4869 | |
4870 | |
4871 | |
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
4873 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
4874 if ${lt_cv_to_host_file_cmd+:} false; then : | |
4875 $as_echo_n "(cached) " >&6 | |
4876 else | |
4877 case $host in | |
4878 *-*-mingw* ) | |
4879 case $build in | |
4880 *-*-mingw* ) # actually msys | |
4881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
4882 ;; | |
4883 *-*-cygwin* ) | |
4884 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
4885 ;; | |
4886 * ) # otherwise, assume *nix | |
4887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
4888 ;; | |
4889 esac | |
4890 ;; | |
4891 *-*-cygwin* ) | |
4892 case $build in | |
4893 *-*-mingw* ) # actually msys | |
4894 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
4895 ;; | |
4896 *-*-cygwin* ) | |
4897 lt_cv_to_host_file_cmd=func_convert_file_noop | |
4898 ;; | |
4899 * ) # otherwise, assume *nix | |
4900 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
4901 ;; | |
4902 esac | |
4903 ;; | |
4904 * ) # unhandled hosts (and "normal" native builds) | |
4905 lt_cv_to_host_file_cmd=func_convert_file_noop | |
4906 ;; | |
4907 esac | |
4908 | |
4909 fi | |
4910 | |
4911 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
4913 $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
4914 | |
4915 | |
4916 | |
4917 | |
4918 | |
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
4920 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
4921 if ${lt_cv_to_tool_file_cmd+:} false; then : | |
4922 $as_echo_n "(cached) " >&6 | |
4923 else | |
4924 #assume ordinary cross tools, or native build. | |
4925 lt_cv_to_tool_file_cmd=func_convert_file_noop | |
4926 case $host in | |
4927 *-*-mingw* ) | |
4928 case $build in | |
4929 *-*-mingw* ) # actually msys | |
4930 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
4931 ;; | |
4932 esac | |
4933 ;; | |
4934 esac | |
4935 | |
4936 fi | |
4937 | |
4938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
4940 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
4941 | |
4942 | |
4943 | |
4944 | |
4945 | |
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4947 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4948 if ${lt_cv_ld_reload_flag+:} false; then : | |
4949 $as_echo_n "(cached) " >&6 | |
4950 else | |
4951 lt_cv_ld_reload_flag='-r' | |
4952 fi | |
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
4954 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4955 reload_flag=$lt_cv_ld_reload_flag | |
4956 case $reload_flag in | |
4957 "" | " "*) ;; | |
4958 *) reload_flag=" $reload_flag" ;; | |
4959 esac | |
4960 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4961 case $host_os in | |
4962 cygwin* | mingw* | pw32* | cegcc*) | |
4963 if test "$GCC" != yes; then | |
4964 reload_cmds=false | |
4965 fi | |
4966 ;; | |
4967 darwin*) | |
4968 if test "$GCC" = yes; then | |
4969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4970 else | |
4971 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4972 fi | |
4973 ;; | |
4974 esac | |
4975 | |
4976 | |
4977 | |
4978 | |
4979 | |
4980 | |
4981 | |
4982 | |
4983 | |
4984 if test -n "$ac_tool_prefix"; then | |
4985 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4986 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4988 $as_echo_n "checking for $ac_word... " >&6; } | |
4989 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
4990 $as_echo_n "(cached) " >&6 | |
4991 else | |
4992 if test -n "$OBJDUMP"; then | |
4993 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4994 else | |
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4996 for as_dir in $PATH | |
4997 do | |
4998 IFS=$as_save_IFS | |
4999 test -z "$as_dir" && as_dir=. | |
5000 for ac_exec_ext in '' $ac_executable_extensions; do | |
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5002 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5004 break 2 | |
5005 fi | |
5006 done | |
5007 done | |
5008 IFS=$as_save_IFS | |
5009 | |
5010 fi | |
5011 fi | |
5012 OBJDUMP=$ac_cv_prog_OBJDUMP | |
5013 if test -n "$OBJDUMP"; then | |
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5015 $as_echo "$OBJDUMP" >&6; } | |
5016 else | |
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5018 $as_echo "no" >&6; } | |
5019 fi | |
5020 | |
5021 | |
5022 fi | |
5023 if test -z "$ac_cv_prog_OBJDUMP"; then | |
5024 ac_ct_OBJDUMP=$OBJDUMP | |
5025 # Extract the first word of "objdump", so it can be a program name with args. | |
5026 set dummy objdump; ac_word=$2 | |
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5028 $as_echo_n "checking for $ac_word... " >&6; } | |
5029 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5030 $as_echo_n "(cached) " >&6 | |
5031 else | |
5032 if test -n "$ac_ct_OBJDUMP"; then | |
5033 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5034 else | |
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5036 for as_dir in $PATH | |
5037 do | |
5038 IFS=$as_save_IFS | |
5039 test -z "$as_dir" && as_dir=. | |
5040 for ac_exec_ext in '' $ac_executable_extensions; do | |
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5042 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5044 break 2 | |
5045 fi | |
5046 done | |
5047 done | |
5048 IFS=$as_save_IFS | |
5049 | |
5050 fi | |
5051 fi | |
5052 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5053 if test -n "$ac_ct_OBJDUMP"; then | |
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5055 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5056 else | |
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5058 $as_echo "no" >&6; } | |
5059 fi | |
5060 | |
5061 if test "x$ac_ct_OBJDUMP" = x; then | |
5062 OBJDUMP="false" | |
5063 else | |
5064 case $cross_compiling:$ac_tool_warned in | |
5065 yes:) | |
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5068 ac_tool_warned=yes ;; | |
5069 esac | |
5070 OBJDUMP=$ac_ct_OBJDUMP | |
5071 fi | |
5072 else | |
5073 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5074 fi | |
5075 | |
5076 test -z "$OBJDUMP" && OBJDUMP=objdump | |
5077 | |
5078 | |
5079 | |
5080 | |
5081 | |
5082 | |
5083 | |
5084 | |
5085 | |
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5087 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5088 if ${lt_cv_deplibs_check_method+:} false; then : | |
5089 $as_echo_n "(cached) " >&6 | |
5090 else | |
5091 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5092 lt_cv_file_magic_test_file= | |
5093 lt_cv_deplibs_check_method='unknown' | |
5094 # Need to set the preceding variable on all platforms that support | |
5095 # interlibrary dependencies. | |
5096 # 'none' -- dependencies not supported. | |
5097 # `unknown' -- same as none, but documents that we really don't know. | |
5098 # 'pass_all' -- all dependencies passed with no checks. | |
5099 # 'test_compile' -- check by making test program. | |
5100 # 'file_magic [[regex]]' -- check by looking for files in library path | |
5101 # which responds to the $file_magic_cmd with a given extended regex. | |
5102 # If you have `file' or equivalent on your system and you're not sure | |
5103 # whether `pass_all' will *always* work, you probably want this one. | |
5104 | |
5105 case $host_os in | |
5106 aix[4-9]*) | |
5107 lt_cv_deplibs_check_method=pass_all | |
5108 ;; | |
5109 | |
5110 beos*) | |
5111 lt_cv_deplibs_check_method=pass_all | |
5112 ;; | |
5113 | |
5114 bsdi[45]*) | |
5115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5116 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5117 lt_cv_file_magic_test_file=/shlib/libc.so | |
5118 ;; | |
5119 | |
5120 cygwin*) | |
5121 # func_win32_libid is a shell function defined in ltmain.sh | |
5122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5123 lt_cv_file_magic_cmd='func_win32_libid' | |
5124 ;; | |
5125 | |
5126 mingw* | pw32*) | |
5127 # Base MSYS/MinGW do not provide the 'file' command needed by | |
5128 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5129 # unless we find 'file', for example because we are cross-compiling. | |
5130 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5131 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5133 lt_cv_file_magic_cmd='func_win32_libid' | |
5134 else | |
5135 # Keep this pattern in sync with the one in func_win32_libid. | |
5136 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5137 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5138 fi | |
5139 ;; | |
5140 | |
5141 cegcc*) | |
5142 # use the weaker test based on 'objdump'. See mingw*. | |
5143 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5144 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5145 ;; | |
5146 | |
5147 darwin* | rhapsody*) | |
5148 lt_cv_deplibs_check_method=pass_all | |
5149 ;; | |
5150 | |
5151 freebsd* | dragonfly*) | |
5152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5153 case $host_cpu in | |
5154 i*86 ) | |
5155 # Not sure whether the presence of OpenBSD here was a mistake. | |
5156 # Let's accept both of them until this is cleared up. | |
5157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5158 lt_cv_file_magic_cmd=/usr/bin/file | |
5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5160 ;; | |
5161 esac | |
5162 else | |
5163 lt_cv_deplibs_check_method=pass_all | |
5164 fi | |
5165 ;; | |
5166 | |
5167 gnu*) | |
5168 lt_cv_deplibs_check_method=pass_all | |
5169 ;; | |
5170 | |
5171 haiku*) | |
5172 lt_cv_deplibs_check_method=pass_all | |
5173 ;; | |
5174 | |
5175 hpux10.20* | hpux11*) | |
5176 lt_cv_file_magic_cmd=/usr/bin/file | |
5177 case $host_cpu in | |
5178 ia64*) | |
5179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5181 ;; | |
5182 hppa*64*) | |
5183 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]' | |
5184 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5185 ;; | |
5186 *) | |
5187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5188 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5189 ;; | |
5190 esac | |
5191 ;; | |
5192 | |
5193 interix[3-9]*) | |
5194 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5196 ;; | |
5197 | |
5198 irix5* | irix6* | nonstopux*) | |
5199 case $LD in | |
5200 *-32|*"-32 ") libmagic=32-bit;; | |
5201 *-n32|*"-n32 ") libmagic=N32;; | |
5202 *-64|*"-64 ") libmagic=64-bit;; | |
5203 *) libmagic=never-match;; | |
5204 esac | |
5205 lt_cv_deplibs_check_method=pass_all | |
5206 ;; | |
5207 | |
5208 # This must be Linux ELF. | |
5209 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
5210 lt_cv_deplibs_check_method=pass_all | |
5211 ;; | |
5212 | |
5213 netbsd*) | |
5214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5216 else | |
5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5218 fi | |
5219 ;; | |
5220 | |
5221 newos6*) | |
5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5223 lt_cv_file_magic_cmd=/usr/bin/file | |
5224 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5225 ;; | |
5226 | |
5227 *nto* | *qnx*) | |
5228 lt_cv_deplibs_check_method=pass_all | |
5229 ;; | |
5230 | |
5231 openbsd*) | |
5232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5234 else | |
5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5236 fi | |
5237 ;; | |
5238 | |
5239 osf3* | osf4* | osf5*) | |
5240 lt_cv_deplibs_check_method=pass_all | |
5241 ;; | |
5242 | |
5243 rdos*) | |
5244 lt_cv_deplibs_check_method=pass_all | |
5245 ;; | |
5246 | |
5247 solaris*) | |
5248 lt_cv_deplibs_check_method=pass_all | |
5249 ;; | |
5250 | |
5251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5252 lt_cv_deplibs_check_method=pass_all | |
5253 ;; | |
5254 | |
5255 sysv4 | sysv4.3*) | |
5256 case $host_vendor in | |
5257 motorola) | |
5258 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]' | |
5259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5260 ;; | |
5261 ncr) | |
5262 lt_cv_deplibs_check_method=pass_all | |
5263 ;; | |
5264 sequent) | |
5265 lt_cv_file_magic_cmd='/bin/file' | |
5266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5267 ;; | |
5268 sni) | |
5269 lt_cv_file_magic_cmd='/bin/file' | |
5270 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5271 lt_cv_file_magic_test_file=/lib/libc.so | |
5272 ;; | |
5273 siemens) | |
5274 lt_cv_deplibs_check_method=pass_all | |
5275 ;; | |
5276 pc) | |
5277 lt_cv_deplibs_check_method=pass_all | |
5278 ;; | |
5279 esac | |
5280 ;; | |
5281 | |
5282 tpf*) | |
5283 lt_cv_deplibs_check_method=pass_all | |
5284 ;; | |
5285 esac | |
5286 | |
5287 fi | |
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5289 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5290 | |
5291 file_magic_glob= | |
5292 want_nocaseglob=no | |
5293 if test "$build" = "$host"; then | |
5294 case $host_os in | |
5295 mingw* | pw32*) | |
5296 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5297 want_nocaseglob=yes | |
5298 else | |
5299 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5300 fi | |
5301 ;; | |
5302 esac | |
5303 fi | |
5304 | |
5305 file_magic_cmd=$lt_cv_file_magic_cmd | |
5306 deplibs_check_method=$lt_cv_deplibs_check_method | |
5307 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5308 | |
5309 | |
5310 | |
5311 | |
5312 | |
5313 | |
5314 | |
5315 | |
5316 | |
5317 | |
5318 | |
5319 | |
5320 | |
5321 | |
5322 | |
5323 | |
5324 | |
5325 | |
5326 | |
5327 | |
5328 | |
5329 | |
5330 if test -n "$ac_tool_prefix"; then | |
5331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5334 $as_echo_n "checking for $ac_word... " >&6; } | |
5335 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5336 $as_echo_n "(cached) " >&6 | |
5337 else | |
5338 if test -n "$DLLTOOL"; then | |
5339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5340 else | |
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5342 for as_dir in $PATH | |
5343 do | |
5344 IFS=$as_save_IFS | |
5345 test -z "$as_dir" && as_dir=. | |
5346 for ac_exec_ext in '' $ac_executable_extensions; do | |
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5350 break 2 | |
5351 fi | |
5352 done | |
5353 done | |
5354 IFS=$as_save_IFS | |
5355 | |
5356 fi | |
5357 fi | |
5358 DLLTOOL=$ac_cv_prog_DLLTOOL | |
5359 if test -n "$DLLTOOL"; then | |
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5361 $as_echo "$DLLTOOL" >&6; } | |
5362 else | |
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5364 $as_echo "no" >&6; } | |
5365 fi | |
5366 | |
5367 | |
5368 fi | |
5369 if test -z "$ac_cv_prog_DLLTOOL"; then | |
5370 ac_ct_DLLTOOL=$DLLTOOL | |
5371 # Extract the first word of "dlltool", so it can be a program name with args. | |
5372 set dummy dlltool; ac_word=$2 | |
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5374 $as_echo_n "checking for $ac_word... " >&6; } | |
5375 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5376 $as_echo_n "(cached) " >&6 | |
5377 else | |
5378 if test -n "$ac_ct_DLLTOOL"; then | |
5379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5380 else | |
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5382 for as_dir in $PATH | |
5383 do | |
5384 IFS=$as_save_IFS | |
5385 test -z "$as_dir" && as_dir=. | |
5386 for ac_exec_ext in '' $ac_executable_extensions; do | |
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5388 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5390 break 2 | |
5391 fi | |
5392 done | |
5393 done | |
5394 IFS=$as_save_IFS | |
5395 | |
5396 fi | |
5397 fi | |
5398 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5399 if test -n "$ac_ct_DLLTOOL"; then | |
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5401 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5402 else | |
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5404 $as_echo "no" >&6; } | |
5405 fi | |
5406 | |
5407 if test "x$ac_ct_DLLTOOL" = x; then | |
5408 DLLTOOL="false" | |
5409 else | |
5410 case $cross_compiling:$ac_tool_warned in | |
5411 yes:) | |
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5414 ac_tool_warned=yes ;; | |
5415 esac | |
5416 DLLTOOL=$ac_ct_DLLTOOL | |
5417 fi | |
5418 else | |
5419 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5420 fi | |
5421 | |
5422 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5423 | |
5424 | |
5425 | |
5426 | |
5427 | |
5428 | |
5429 | |
5430 | |
5431 | |
5432 | |
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5434 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5435 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5436 $as_echo_n "(cached) " >&6 | |
5437 else | |
5438 lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5439 | |
5440 case $host_os in | |
5441 cygwin* | mingw* | pw32* | cegcc*) | |
5442 # two different shell functions defined in ltmain.sh | |
5443 # decide which to use based on capabilities of $DLLTOOL | |
5444 case `$DLLTOOL --help 2>&1` in | |
5445 *--identify-strict*) | |
5446 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5447 ;; | |
5448 *) | |
5449 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5450 ;; | |
5451 esac | |
5452 ;; | |
5453 *) | |
5454 # fallback: assume linklib IS sharedlib | |
5455 lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
5456 ;; | |
5457 esac | |
5458 | |
5459 fi | |
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5461 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5462 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5463 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5464 | |
5465 | |
5466 | |
5467 | |
5468 | |
5469 | |
5470 | |
5471 | |
5472 if test -n "$ac_tool_prefix"; then | |
5473 for ac_prog in ar | |
5474 do | |
5475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5478 $as_echo_n "checking for $ac_word... " >&6; } | |
5479 if ${ac_cv_prog_AR+:} false; then : | |
5480 $as_echo_n "(cached) " >&6 | |
5481 else | |
5482 if test -n "$AR"; then | |
5483 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5484 else | |
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5486 for as_dir in $PATH | |
5487 do | |
5488 IFS=$as_save_IFS | |
5489 test -z "$as_dir" && as_dir=. | |
5490 for ac_exec_ext in '' $ac_executable_extensions; do | |
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5492 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5494 break 2 | |
5495 fi | |
5496 done | |
5497 done | |
5498 IFS=$as_save_IFS | |
5499 | |
5500 fi | |
5501 fi | |
5502 AR=$ac_cv_prog_AR | |
5503 if test -n "$AR"; then | |
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5505 $as_echo "$AR" >&6; } | |
5506 else | |
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5508 $as_echo "no" >&6; } | |
5509 fi | |
5510 | |
5511 | |
5512 test -n "$AR" && break | |
5513 done | |
5514 fi | |
5515 if test -z "$AR"; then | |
5516 ac_ct_AR=$AR | |
5517 for ac_prog in ar | |
5518 do | |
5519 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5520 set dummy $ac_prog; ac_word=$2 | |
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5522 $as_echo_n "checking for $ac_word... " >&6; } | |
5523 if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5524 $as_echo_n "(cached) " >&6 | |
5525 else | |
5526 if test -n "$ac_ct_AR"; then | |
5527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5528 else | |
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5530 for as_dir in $PATH | |
5531 do | |
5532 IFS=$as_save_IFS | |
5533 test -z "$as_dir" && as_dir=. | |
5534 for ac_exec_ext in '' $ac_executable_extensions; do | |
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5536 ac_cv_prog_ac_ct_AR="$ac_prog" | |
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5538 break 2 | |
5539 fi | |
5540 done | |
5541 done | |
5542 IFS=$as_save_IFS | |
5543 | |
5544 fi | |
5545 fi | |
5546 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5547 if test -n "$ac_ct_AR"; then | |
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5549 $as_echo "$ac_ct_AR" >&6; } | |
5550 else | |
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5552 $as_echo "no" >&6; } | |
5553 fi | |
5554 | |
5555 | |
5556 test -n "$ac_ct_AR" && break | |
5557 done | |
5558 | |
5559 if test "x$ac_ct_AR" = x; then | |
5560 AR="false" | |
5561 else | |
5562 case $cross_compiling:$ac_tool_warned in | |
5563 yes:) | |
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5566 ac_tool_warned=yes ;; | |
5567 esac | |
5568 AR=$ac_ct_AR | |
5569 fi | |
5570 fi | |
5571 | |
5572 : ${AR=ar} | |
5573 : ${AR_FLAGS=cru} | |
5574 | |
5575 | |
5576 | |
5577 | |
5578 | |
5579 | |
5580 | |
5581 | |
5582 | |
5583 | |
5584 | |
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5586 $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5587 if ${lt_cv_ar_at_file+:} false; then : | |
5588 $as_echo_n "(cached) " >&6 | |
5589 else | |
5590 lt_cv_ar_at_file=no | |
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5592 /* end confdefs.h. */ | |
5593 | |
5594 int | |
5595 main () | |
5596 { | |
5597 | |
5598 ; | |
5599 return 0; | |
5600 } | |
5601 _ACEOF | |
5602 if ac_fn_c_try_compile "$LINENO"; then : | |
5603 echo conftest.$ac_objext > conftest.lst | |
5604 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5606 (eval $lt_ar_try) 2>&5 | |
5607 ac_status=$? | |
5608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5609 test $ac_status = 0; } | |
5610 if test "$ac_status" -eq 0; then | |
5611 # Ensure the archiver fails upon bogus file names. | |
5612 rm -f conftest.$ac_objext libconftest.a | |
5613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5614 (eval $lt_ar_try) 2>&5 | |
5615 ac_status=$? | |
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5617 test $ac_status = 0; } | |
5618 if test "$ac_status" -ne 0; then | |
5619 lt_cv_ar_at_file=@ | |
5620 fi | |
5621 fi | |
5622 rm -f conftest.* libconftest.a | |
5623 | |
5624 fi | |
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5626 | |
5627 fi | |
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5629 $as_echo "$lt_cv_ar_at_file" >&6; } | |
5630 | |
5631 if test "x$lt_cv_ar_at_file" = xno; then | |
5632 archiver_list_spec= | |
5633 else | |
5634 archiver_list_spec=$lt_cv_ar_at_file | |
5635 fi | |
5636 | |
5637 | |
5638 | |
5639 | |
5640 | |
5641 | |
5642 | |
5643 if test -n "$ac_tool_prefix"; then | |
5644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5645 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5647 $as_echo_n "checking for $ac_word... " >&6; } | |
5648 if ${ac_cv_prog_STRIP+:} false; then : | |
5649 $as_echo_n "(cached) " >&6 | |
5650 else | |
5651 if test -n "$STRIP"; then | |
5652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5653 else | |
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5655 for as_dir in $PATH | |
5656 do | |
5657 IFS=$as_save_IFS | |
5658 test -z "$as_dir" && as_dir=. | |
5659 for ac_exec_ext in '' $ac_executable_extensions; do | |
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5661 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5663 break 2 | |
5664 fi | |
5665 done | |
5666 done | |
5667 IFS=$as_save_IFS | |
5668 | |
5669 fi | |
5670 fi | |
5671 STRIP=$ac_cv_prog_STRIP | |
5672 if test -n "$STRIP"; then | |
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5674 $as_echo "$STRIP" >&6; } | |
5675 else | |
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5677 $as_echo "no" >&6; } | |
5678 fi | |
5679 | |
5680 | |
5681 fi | |
5682 if test -z "$ac_cv_prog_STRIP"; then | |
5683 ac_ct_STRIP=$STRIP | |
5684 # Extract the first word of "strip", so it can be a program name with args. | |
5685 set dummy strip; ac_word=$2 | |
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5687 $as_echo_n "checking for $ac_word... " >&6; } | |
5688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5689 $as_echo_n "(cached) " >&6 | |
5690 else | |
5691 if test -n "$ac_ct_STRIP"; then | |
5692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5693 else | |
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5695 for as_dir in $PATH | |
5696 do | |
5697 IFS=$as_save_IFS | |
5698 test -z "$as_dir" && as_dir=. | |
5699 for ac_exec_ext in '' $ac_executable_extensions; do | |
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5701 ac_cv_prog_ac_ct_STRIP="strip" | |
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5703 break 2 | |
5704 fi | |
5705 done | |
5706 done | |
5707 IFS=$as_save_IFS | |
5708 | |
5709 fi | |
5710 fi | |
5711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5712 if test -n "$ac_ct_STRIP"; then | |
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5714 $as_echo "$ac_ct_STRIP" >&6; } | |
5715 else | |
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5717 $as_echo "no" >&6; } | |
5718 fi | |
5719 | |
5720 if test "x$ac_ct_STRIP" = x; then | |
5721 STRIP=":" | |
5722 else | |
5723 case $cross_compiling:$ac_tool_warned in | |
5724 yes:) | |
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5727 ac_tool_warned=yes ;; | |
5728 esac | |
5729 STRIP=$ac_ct_STRIP | |
5730 fi | |
5731 else | |
5732 STRIP="$ac_cv_prog_STRIP" | |
5733 fi | |
5734 | |
5735 test -z "$STRIP" && STRIP=: | |
5736 | |
5737 | |
5738 | |
5739 | |
5740 | |
5741 | |
5742 if test -n "$ac_tool_prefix"; then | |
5743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5746 $as_echo_n "checking for $ac_word... " >&6; } | |
5747 if ${ac_cv_prog_RANLIB+:} false; then : | |
5748 $as_echo_n "(cached) " >&6 | |
5749 else | |
5750 if test -n "$RANLIB"; then | |
5751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5752 else | |
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5754 for as_dir in $PATH | |
5755 do | |
5756 IFS=$as_save_IFS | |
5757 test -z "$as_dir" && as_dir=. | |
5758 for ac_exec_ext in '' $ac_executable_extensions; do | |
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5762 break 2 | |
5763 fi | |
5764 done | |
5765 done | |
5766 IFS=$as_save_IFS | |
5767 | |
5768 fi | |
5769 fi | |
5770 RANLIB=$ac_cv_prog_RANLIB | |
5771 if test -n "$RANLIB"; then | |
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5773 $as_echo "$RANLIB" >&6; } | |
5774 else | |
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5776 $as_echo "no" >&6; } | |
5777 fi | |
5778 | |
5779 | |
5780 fi | |
5781 if test -z "$ac_cv_prog_RANLIB"; then | |
5782 ac_ct_RANLIB=$RANLIB | |
5783 # Extract the first word of "ranlib", so it can be a program name with args. | |
5784 set dummy ranlib; ac_word=$2 | |
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5786 $as_echo_n "checking for $ac_word... " >&6; } | |
5787 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5788 $as_echo_n "(cached) " >&6 | |
5789 else | |
5790 if test -n "$ac_ct_RANLIB"; then | |
5791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5792 else | |
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5794 for as_dir in $PATH | |
5795 do | |
5796 IFS=$as_save_IFS | |
5797 test -z "$as_dir" && as_dir=. | |
5798 for ac_exec_ext in '' $ac_executable_extensions; do | |
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5800 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5802 break 2 | |
5803 fi | |
5804 done | |
5805 done | |
5806 IFS=$as_save_IFS | |
5807 | |
5808 fi | |
5809 fi | |
5810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5811 if test -n "$ac_ct_RANLIB"; then | |
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5813 $as_echo "$ac_ct_RANLIB" >&6; } | |
5814 else | |
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5816 $as_echo "no" >&6; } | |
5817 fi | |
5818 | |
5819 if test "x$ac_ct_RANLIB" = x; then | |
5820 RANLIB=":" | |
5821 else | |
5822 case $cross_compiling:$ac_tool_warned in | |
5823 yes:) | |
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5826 ac_tool_warned=yes ;; | |
5827 esac | |
5828 RANLIB=$ac_ct_RANLIB | |
5829 fi | |
5830 else | |
5831 RANLIB="$ac_cv_prog_RANLIB" | |
5832 fi | |
5833 | |
5834 test -z "$RANLIB" && RANLIB=: | |
5835 | |
5836 | |
5837 | |
5838 | |
5839 | |
5840 | |
5841 # Determine commands to create old-style static archives. | |
5842 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5843 old_postinstall_cmds='chmod 644 $oldlib' | |
5844 old_postuninstall_cmds= | |
5845 | |
5846 if test -n "$RANLIB"; then | |
5847 case $host_os in | |
5848 openbsd*) | |
5849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5850 ;; | |
5851 *) | |
5852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5853 ;; | |
5854 esac | |
5855 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5856 fi | |
5857 | |
5858 case $host_os in | |
5859 darwin*) | |
5860 lock_old_archive_extraction=yes ;; | |
5861 *) | |
5862 lock_old_archive_extraction=no ;; | |
5863 esac | |
5864 | |
5865 | |
5866 | |
5867 | |
5868 | |
5869 | |
5870 | |
5871 | |
5872 | |
5873 | |
5874 | |
5875 | |
5876 | |
5877 | |
5878 | |
5879 | |
5880 | |
5881 | |
5882 | |
5883 | |
5884 | |
5885 | |
5886 | |
5887 | |
5888 | |
5889 | |
5890 | |
5891 | |
5892 | |
5893 | |
5894 | |
5895 | |
5896 | |
5897 | |
5898 | |
5899 | |
5900 | |
5901 | |
5902 | |
5903 # If no C compiler was specified, use CC. | |
5904 LTCC=${LTCC-"$CC"} | |
5905 | |
5906 # If no C compiler flags were specified, use CFLAGS. | |
5907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5908 | |
5909 # Allow CC to be a program name with arguments. | |
5910 compiler=$CC | |
5911 | |
5912 | |
5913 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
5915 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
5916 if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
5917 $as_echo_n "(cached) " >&6 | |
5918 else | |
5919 | |
5920 # These are sane defaults that work on at least a few old systems. | |
5921 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5922 | |
5923 # Character class describing NM global symbol codes. | |
5924 symcode='[BCDEGRST]' | |
5925 | |
5926 # Regexp to match symbols that can be accessed directly from C. | |
5927 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5928 | |
5929 # Define system-specific variables. | |
5930 case $host_os in | |
5931 aix*) | |
5932 symcode='[BCDT]' | |
5933 ;; | |
5934 cygwin* | mingw* | pw32* | cegcc*) | |
5935 symcode='[ABCDGISTW]' | |
5936 ;; | |
5937 hpux*) | |
5938 if test "$host_cpu" = ia64; then | |
5939 symcode='[ABCDEGRST]' | |
5940 fi | |
5941 ;; | |
5942 irix* | nonstopux*) | |
5943 symcode='[BCDEGRST]' | |
5944 ;; | |
5945 osf*) | |
5946 symcode='[BCDEGQRST]' | |
5947 ;; | |
5948 solaris*) | |
5949 symcode='[BDRT]' | |
5950 ;; | |
5951 sco3.2v5*) | |
5952 symcode='[DT]' | |
5953 ;; | |
5954 sysv4.2uw2*) | |
5955 symcode='[DT]' | |
5956 ;; | |
5957 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5958 symcode='[ABDT]' | |
5959 ;; | |
5960 sysv4) | |
5961 symcode='[DFNSTU]' | |
5962 ;; | |
5963 esac | |
5964 | |
5965 # If we're using GNU nm, then use its standard symbol codes. | |
5966 case `$NM -V 2>&1` in | |
5967 *GNU* | *'with BFD'*) | |
5968 symcode='[ABCDGIRSTW]' ;; | |
5969 esac | |
5970 | |
5971 # Transform an extracted symbol line into a proper C declaration. | |
5972 # Some systems (esp. on ia64) link data and code symbols differently, | |
5973 # so use this general approach. | |
5974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5975 | |
5976 # Transform an extracted symbol line into symbol name and symbol address | |
5977 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5978 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'" | |
5979 | |
5980 # Handle CRLF in mingw tool chain | |
5981 opt_cr= | |
5982 case $build_os in | |
5983 mingw*) | |
5984 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5985 ;; | |
5986 esac | |
5987 | |
5988 # Try without a prefix underscore, then with it. | |
5989 for ac_symprfx in "" "_"; do | |
5990 | |
5991 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5992 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5993 | |
5994 # Write the raw and C identifiers. | |
5995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5996 # Fake it for dumpbin and say T for any non-static function | |
5997 # and D for any global variable. | |
5998 # Also find C++ and __fastcall symbols from MSVC++, | |
5999 # which start with @ or ?. | |
6000 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6001 " {last_section=section; section=\$ 3};"\ | |
6002 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6003 " \$ 0!~/External *\|/{next};"\ | |
6004 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6005 " {if(hide[section]) next};"\ | |
6006 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6007 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6008 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6009 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6010 " ' prfx=^$ac_symprfx" | |
6011 else | |
6012 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6013 fi | |
6014 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6015 | |
6016 # Check to see that the pipe works correctly. | |
6017 pipe_works=no | |
6018 | |
6019 rm -f conftest* | |
6020 cat > conftest.$ac_ext <<_LT_EOF | |
6021 #ifdef __cplusplus | |
6022 extern "C" { | |
6023 #endif | |
6024 char nm_test_var; | |
6025 void nm_test_func(void); | |
6026 void nm_test_func(void){} | |
6027 #ifdef __cplusplus | |
6028 } | |
6029 #endif | |
6030 int main(){nm_test_var='a';nm_test_func();return(0);} | |
6031 _LT_EOF | |
6032 | |
6033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6034 (eval $ac_compile) 2>&5 | |
6035 ac_status=$? | |
6036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6037 test $ac_status = 0; }; then | |
6038 # Now try to grab the symbols. | |
6039 nlist=conftest.nm | |
6040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6041 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6042 ac_status=$? | |
6043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6044 test $ac_status = 0; } && test -s "$nlist"; then | |
6045 # Try sorting and uniquifying the output. | |
6046 if sort "$nlist" | uniq > "$nlist"T; then | |
6047 mv -f "$nlist"T "$nlist" | |
6048 else | |
6049 rm -f "$nlist"T | |
6050 fi | |
6051 | |
6052 # Make sure that we snagged all the symbols we need. | |
6053 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6054 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6055 cat <<_LT_EOF > conftest.$ac_ext | |
6056 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6057 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
6058 /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
6059 relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6060 # define LT_DLSYM_CONST | |
6061 #elif defined(__osf__) | |
6062 /* This system does not cope well with relocations in const data. */ | |
6063 # define LT_DLSYM_CONST | |
6064 #else | |
6065 # define LT_DLSYM_CONST const | |
6066 #endif | |
6067 | |
6068 #ifdef __cplusplus | |
6069 extern "C" { | |
6070 #endif | |
6071 | |
6072 _LT_EOF | |
6073 # Now generate the symbol file. | |
6074 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6075 | |
6076 cat <<_LT_EOF >> conftest.$ac_ext | |
6077 | |
6078 /* The mapping between symbol names and symbols. */ | |
6079 LT_DLSYM_CONST struct { | |
6080 const char *name; | |
6081 void *address; | |
6082 } | |
6083 lt__PROGRAM__LTX_preloaded_symbols[] = | |
6084 { | |
6085 { "@PROGRAM@", (void *) 0 }, | |
6086 _LT_EOF | |
6087 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6088 cat <<\_LT_EOF >> conftest.$ac_ext | |
6089 {0, (void *) 0} | |
6090 }; | |
6091 | |
6092 /* This works around a problem in FreeBSD linker */ | |
6093 #ifdef FREEBSD_WORKAROUND | |
6094 static const void *lt_preloaded_setup() { | |
6095 return lt__PROGRAM__LTX_preloaded_symbols; | |
6096 } | |
6097 #endif | |
6098 | |
6099 #ifdef __cplusplus | |
6100 } | |
6101 #endif | |
6102 _LT_EOF | |
6103 # Now try linking the two files. | |
6104 mv conftest.$ac_objext conftstm.$ac_objext | |
6105 lt_globsym_save_LIBS=$LIBS | |
6106 lt_globsym_save_CFLAGS=$CFLAGS | |
6107 LIBS="conftstm.$ac_objext" | |
6108 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6110 (eval $ac_link) 2>&5 | |
6111 ac_status=$? | |
6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6113 test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6114 pipe_works=yes | |
6115 fi | |
6116 LIBS=$lt_globsym_save_LIBS | |
6117 CFLAGS=$lt_globsym_save_CFLAGS | |
6118 else | |
6119 echo "cannot find nm_test_func in $nlist" >&5 | |
6120 fi | |
6121 else | |
6122 echo "cannot find nm_test_var in $nlist" >&5 | |
6123 fi | |
6124 else | |
6125 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6126 fi | |
6127 else | |
6128 echo "$progname: failed program was:" >&5 | |
6129 cat conftest.$ac_ext >&5 | |
6130 fi | |
6131 rm -rf conftest* conftst* | |
6132 | |
6133 # Do not use the global_symbol_pipe unless it works. | |
6134 if test "$pipe_works" = yes; then | |
6135 break | |
6136 else | |
6137 lt_cv_sys_global_symbol_pipe= | |
6138 fi | |
6139 done | |
6140 | |
6141 fi | |
6142 | |
6143 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6144 lt_cv_sys_global_symbol_to_cdecl= | |
6145 fi | |
6146 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6148 $as_echo "failed" >&6; } | |
6149 else | |
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6151 $as_echo "ok" >&6; } | |
6152 fi | |
6153 | |
6154 # Response file support. | |
6155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6156 nm_file_list_spec='@' | |
6157 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6158 nm_file_list_spec='@' | |
6159 fi | |
6160 | |
6161 | |
6162 | |
6163 | |
6164 | |
6165 | |
6166 | |
6167 | |
6168 | |
6169 | |
6170 | |
6171 | |
6172 | |
6173 | |
6174 | |
6175 | |
6176 | |
6177 | |
6178 | |
6179 | |
6180 | |
6181 | |
6182 | |
6183 | |
6184 | |
6185 | |
6186 | |
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6188 $as_echo_n "checking for sysroot... " >&6; } | |
6189 | |
6190 # Check whether --with-sysroot was given. | |
6191 if test "${with_sysroot+set}" = set; then : | |
6192 withval=$with_sysroot; | |
6193 else | |
6194 with_sysroot=no | |
6195 fi | |
6196 | |
6197 | |
6198 lt_sysroot= | |
6199 case ${with_sysroot} in #( | |
6200 yes) | |
6201 if test "$GCC" = yes; then | |
6202 lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6203 fi | |
6204 ;; #( | |
6205 /*) | |
6206 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6207 ;; #( | |
6208 no|'') | |
6209 ;; #( | |
6210 *) | |
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6212 $as_echo "${with_sysroot}" >&6; } | |
6213 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6214 ;; | |
6215 esac | |
6216 | |
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6218 $as_echo "${lt_sysroot:-no}" >&6; } | |
6219 | |
6220 | |
6221 | |
6222 | |
6223 | |
6224 # Check whether --enable-libtool-lock was given. | |
6225 if test "${enable_libtool_lock+set}" = set; then : | |
6226 enableval=$enable_libtool_lock; | |
6227 fi | |
6228 | |
6229 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6230 | |
6231 # Some flags need to be propagated to the compiler or linker for good | |
6232 # libtool support. | |
6233 case $host in | |
6234 ia64-*-hpux*) | |
6235 # Find out which ABI we are using. | |
6236 echo 'int i;' > conftest.$ac_ext | |
6237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6238 (eval $ac_compile) 2>&5 | |
6239 ac_status=$? | |
6240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6241 test $ac_status = 0; }; then | |
6242 case `/usr/bin/file conftest.$ac_objext` in | |
6243 *ELF-32*) | |
6244 HPUX_IA64_MODE="32" | |
6245 ;; | |
6246 *ELF-64*) | |
6247 HPUX_IA64_MODE="64" | |
6248 ;; | |
6249 esac | |
6250 fi | |
6251 rm -rf conftest* | |
6252 ;; | |
6253 *-*-irix6*) | |
6254 # Find out which ABI we are using. | |
6255 echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6257 (eval $ac_compile) 2>&5 | |
6258 ac_status=$? | |
6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6260 test $ac_status = 0; }; then | |
6261 if test "$lt_cv_prog_gnu_ld" = yes; then | |
6262 case `/usr/bin/file conftest.$ac_objext` in | |
6263 *32-bit*) | |
6264 LD="${LD-ld} -melf32bsmip" | |
6265 ;; | |
6266 *N32*) | |
6267 LD="${LD-ld} -melf32bmipn32" | |
6268 ;; | |
6269 *64-bit*) | |
6270 LD="${LD-ld} -melf64bmip" | |
6271 ;; | |
6272 esac | |
6273 else | |
6274 case `/usr/bin/file conftest.$ac_objext` in | |
6275 *32-bit*) | |
6276 LD="${LD-ld} -32" | |
6277 ;; | |
6278 *N32*) | |
6279 LD="${LD-ld} -n32" | |
6280 ;; | |
6281 *64-bit*) | |
6282 LD="${LD-ld} -64" | |
6283 ;; | |
6284 esac | |
6285 fi | |
6286 fi | |
6287 rm -rf conftest* | |
6288 ;; | |
6289 | |
6290 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6291 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6292 # Find out which ABI we are using. | |
6293 echo 'int i;' > conftest.$ac_ext | |
6294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6295 (eval $ac_compile) 2>&5 | |
6296 ac_status=$? | |
6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6298 test $ac_status = 0; }; then | |
6299 case `/usr/bin/file conftest.o` in | |
6300 *32-bit*) | |
6301 case $host in | |
6302 x86_64-*kfreebsd*-gnu) | |
6303 LD="${LD-ld} -m elf_i386_fbsd" | |
6304 ;; | |
6305 x86_64-*linux*) | |
6306 LD="${LD-ld} -m elf_i386" | |
6307 ;; | |
6308 ppc64-*linux*|powerpc64-*linux*) | |
6309 LD="${LD-ld} -m elf32ppclinux" | |
6310 ;; | |
6311 s390x-*linux*) | |
6312 LD="${LD-ld} -m elf_s390" | |
6313 ;; | |
6314 sparc64-*linux*) | |
6315 LD="${LD-ld} -m elf32_sparc" | |
6316 ;; | |
6317 esac | |
6318 ;; | |
6319 *64-bit*) | |
6320 case $host in | |
6321 x86_64-*kfreebsd*-gnu) | |
6322 LD="${LD-ld} -m elf_x86_64_fbsd" | |
6323 ;; | |
6324 x86_64-*linux*) | |
6325 LD="${LD-ld} -m elf_x86_64" | |
6326 ;; | |
6327 ppc*-*linux*|powerpc*-*linux*) | |
6328 LD="${LD-ld} -m elf64ppc" | |
6329 ;; | |
6330 s390*-*linux*|s390*-*tpf*) | |
6331 LD="${LD-ld} -m elf64_s390" | |
6332 ;; | |
6333 sparc*-*linux*) | |
6334 LD="${LD-ld} -m elf64_sparc" | |
6335 ;; | |
6336 esac | |
6337 ;; | |
6338 esac | |
6339 fi | |
6340 rm -rf conftest* | |
6341 ;; | |
6342 | |
6343 *-*-sco3.2v5*) | |
6344 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6345 SAVE_CFLAGS="$CFLAGS" | |
6346 CFLAGS="$CFLAGS -belf" | |
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6348 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6349 if ${lt_cv_cc_needs_belf+:} false; then : | |
6350 $as_echo_n "(cached) " >&6 | |
6351 else | |
6352 ac_ext=c | |
6353 ac_cpp='$CPP $CPPFLAGS' | |
6354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6356 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6357 | |
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6359 /* end confdefs.h. */ | |
6360 | |
6361 int | |
6362 main () | |
6363 { | |
6364 | |
6365 ; | |
6366 return 0; | |
6367 } | |
6368 _ACEOF | |
6369 if ac_fn_c_try_link "$LINENO"; then : | |
6370 lt_cv_cc_needs_belf=yes | |
6371 else | |
6372 lt_cv_cc_needs_belf=no | |
6373 fi | |
6374 rm -f core conftest.err conftest.$ac_objext \ | |
6375 conftest$ac_exeext conftest.$ac_ext | |
6376 ac_ext=c | |
6377 ac_cpp='$CPP $CPPFLAGS' | |
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6381 | |
6382 fi | |
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6384 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6385 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6386 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6387 CFLAGS="$SAVE_CFLAGS" | |
6388 fi | |
6389 ;; | |
6390 sparc*-*solaris*) | |
6391 # Find out which ABI we are using. | |
6392 echo 'int i;' > conftest.$ac_ext | |
6393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6394 (eval $ac_compile) 2>&5 | |
6395 ac_status=$? | |
6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6397 test $ac_status = 0; }; then | |
6398 case `/usr/bin/file conftest.o` in | |
6399 *64-bit*) | |
6400 case $lt_cv_prog_gnu_ld in | |
6401 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6402 *) | |
6403 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6404 LD="${LD-ld} -64" | |
6405 fi | |
6406 ;; | |
6407 esac | |
6408 ;; | |
6409 esac | |
6410 fi | |
6411 rm -rf conftest* | |
6412 ;; | |
6413 esac | |
6414 | |
6415 need_locks="$enable_libtool_lock" | |
6416 | |
6417 if test -n "$ac_tool_prefix"; then | |
6418 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6419 set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6421 $as_echo_n "checking for $ac_word... " >&6; } | |
6422 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6423 $as_echo_n "(cached) " >&6 | |
6424 else | |
6425 if test -n "$MANIFEST_TOOL"; then | |
6426 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6427 else | |
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6429 for as_dir in $PATH | |
6430 do | |
6431 IFS=$as_save_IFS | |
6432 test -z "$as_dir" && as_dir=. | |
6433 for ac_exec_ext in '' $ac_executable_extensions; do | |
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6435 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6437 break 2 | |
6438 fi | |
6439 done | |
6440 done | |
6441 IFS=$as_save_IFS | |
6442 | |
6443 fi | |
6444 fi | |
6445 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6446 if test -n "$MANIFEST_TOOL"; then | |
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6448 $as_echo "$MANIFEST_TOOL" >&6; } | |
6449 else | |
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6451 $as_echo "no" >&6; } | |
6452 fi | |
6453 | |
6454 | |
6455 fi | |
6456 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6457 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6458 # Extract the first word of "mt", so it can be a program name with args. | |
6459 set dummy mt; ac_word=$2 | |
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6461 $as_echo_n "checking for $ac_word... " >&6; } | |
6462 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6463 $as_echo_n "(cached) " >&6 | |
6464 else | |
6465 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6466 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6467 else | |
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6469 for as_dir in $PATH | |
6470 do | |
6471 IFS=$as_save_IFS | |
6472 test -z "$as_dir" && as_dir=. | |
6473 for ac_exec_ext in '' $ac_executable_extensions; do | |
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6475 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6477 break 2 | |
6478 fi | |
6479 done | |
6480 done | |
6481 IFS=$as_save_IFS | |
6482 | |
6483 fi | |
6484 fi | |
6485 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6486 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6488 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6489 else | |
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6491 $as_echo "no" >&6; } | |
6492 fi | |
6493 | |
6494 if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6495 MANIFEST_TOOL=":" | |
6496 else | |
6497 case $cross_compiling:$ac_tool_warned in | |
6498 yes:) | |
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6501 ac_tool_warned=yes ;; | |
6502 esac | |
6503 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6504 fi | |
6505 else | |
6506 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6507 fi | |
6508 | |
6509 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6511 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6512 if ${lt_cv_path_mainfest_tool+:} false; then : | |
6513 $as_echo_n "(cached) " >&6 | |
6514 else | |
6515 lt_cv_path_mainfest_tool=no | |
6516 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6517 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6518 cat conftest.err >&5 | |
6519 if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6520 lt_cv_path_mainfest_tool=yes | |
6521 fi | |
6522 rm -f conftest* | |
6523 fi | |
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6525 $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6526 if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
6527 MANIFEST_TOOL=: | |
6528 fi | |
6529 | |
6530 | |
6531 | |
6532 | |
6533 | |
6534 | |
6535 case $host_os in | |
6536 rhapsody* | darwin*) | |
6537 if test -n "$ac_tool_prefix"; then | |
6538 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6539 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6541 $as_echo_n "checking for $ac_word... " >&6; } | |
6542 if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
6543 $as_echo_n "(cached) " >&6 | |
6544 else | |
6545 if test -n "$DSYMUTIL"; then | |
6546 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6547 else | |
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6549 for as_dir in $PATH | |
6550 do | |
6551 IFS=$as_save_IFS | |
6552 test -z "$as_dir" && as_dir=. | |
6553 for ac_exec_ext in '' $ac_executable_extensions; do | |
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6555 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6557 break 2 | |
6558 fi | |
6559 done | |
6560 done | |
6561 IFS=$as_save_IFS | |
6562 | |
6563 fi | |
6564 fi | |
6565 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6566 if test -n "$DSYMUTIL"; then | |
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
6568 $as_echo "$DSYMUTIL" >&6; } | |
6569 else | |
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6571 $as_echo "no" >&6; } | |
6572 fi | |
6573 | |
6574 | |
6575 fi | |
6576 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6577 ac_ct_DSYMUTIL=$DSYMUTIL | |
6578 # Extract the first word of "dsymutil", so it can be a program name with args. | |
6579 set dummy dsymutil; ac_word=$2 | |
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6581 $as_echo_n "checking for $ac_word... " >&6; } | |
6582 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
6583 $as_echo_n "(cached) " >&6 | |
6584 else | |
6585 if test -n "$ac_ct_DSYMUTIL"; then | |
6586 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6587 else | |
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6589 for as_dir in $PATH | |
6590 do | |
6591 IFS=$as_save_IFS | |
6592 test -z "$as_dir" && as_dir=. | |
6593 for ac_exec_ext in '' $ac_executable_extensions; do | |
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6595 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6597 break 2 | |
6598 fi | |
6599 done | |
6600 done | |
6601 IFS=$as_save_IFS | |
6602 | |
6603 fi | |
6604 fi | |
6605 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6606 if test -n "$ac_ct_DSYMUTIL"; then | |
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
6608 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6609 else | |
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6611 $as_echo "no" >&6; } | |
6612 fi | |
6613 | |
6614 if test "x$ac_ct_DSYMUTIL" = x; then | |
6615 DSYMUTIL=":" | |
6616 else | |
6617 case $cross_compiling:$ac_tool_warned in | |
6618 yes:) | |
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6621 ac_tool_warned=yes ;; | |
6622 esac | |
6623 DSYMUTIL=$ac_ct_DSYMUTIL | |
6624 fi | |
6625 else | |
6626 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6627 fi | |
6628 | |
6629 if test -n "$ac_tool_prefix"; then | |
6630 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6631 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6633 $as_echo_n "checking for $ac_word... " >&6; } | |
6634 if ${ac_cv_prog_NMEDIT+:} false; then : | |
6635 $as_echo_n "(cached) " >&6 | |
6636 else | |
6637 if test -n "$NMEDIT"; then | |
6638 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6639 else | |
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6641 for as_dir in $PATH | |
6642 do | |
6643 IFS=$as_save_IFS | |
6644 test -z "$as_dir" && as_dir=. | |
6645 for ac_exec_ext in '' $ac_executable_extensions; do | |
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6647 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6649 break 2 | |
6650 fi | |
6651 done | |
6652 done | |
6653 IFS=$as_save_IFS | |
6654 | |
6655 fi | |
6656 fi | |
6657 NMEDIT=$ac_cv_prog_NMEDIT | |
6658 if test -n "$NMEDIT"; then | |
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
6660 $as_echo "$NMEDIT" >&6; } | |
6661 else | |
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6663 $as_echo "no" >&6; } | |
6664 fi | |
6665 | |
6666 | |
6667 fi | |
6668 if test -z "$ac_cv_prog_NMEDIT"; then | |
6669 ac_ct_NMEDIT=$NMEDIT | |
6670 # Extract the first word of "nmedit", so it can be a program name with args. | |
6671 set dummy nmedit; ac_word=$2 | |
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6673 $as_echo_n "checking for $ac_word... " >&6; } | |
6674 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
6675 $as_echo_n "(cached) " >&6 | |
6676 else | |
6677 if test -n "$ac_ct_NMEDIT"; then | |
6678 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6679 else | |
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6681 for as_dir in $PATH | |
6682 do | |
6683 IFS=$as_save_IFS | |
6684 test -z "$as_dir" && as_dir=. | |
6685 for ac_exec_ext in '' $ac_executable_extensions; do | |
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6687 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6689 break 2 | |
6690 fi | |
6691 done | |
6692 done | |
6693 IFS=$as_save_IFS | |
6694 | |
6695 fi | |
6696 fi | |
6697 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6698 if test -n "$ac_ct_NMEDIT"; then | |
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
6700 $as_echo "$ac_ct_NMEDIT" >&6; } | |
6701 else | |
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6703 $as_echo "no" >&6; } | |
6704 fi | |
6705 | |
6706 if test "x$ac_ct_NMEDIT" = x; then | |
6707 NMEDIT=":" | |
6708 else | |
6709 case $cross_compiling:$ac_tool_warned in | |
6710 yes:) | |
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6713 ac_tool_warned=yes ;; | |
6714 esac | |
6715 NMEDIT=$ac_ct_NMEDIT | |
6716 fi | |
6717 else | |
6718 NMEDIT="$ac_cv_prog_NMEDIT" | |
6719 fi | |
6720 | |
6721 if test -n "$ac_tool_prefix"; then | |
6722 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6723 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6725 $as_echo_n "checking for $ac_word... " >&6; } | |
6726 if ${ac_cv_prog_LIPO+:} false; then : | |
6727 $as_echo_n "(cached) " >&6 | |
6728 else | |
6729 if test -n "$LIPO"; then | |
6730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6731 else | |
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6733 for as_dir in $PATH | |
6734 do | |
6735 IFS=$as_save_IFS | |
6736 test -z "$as_dir" && as_dir=. | |
6737 for ac_exec_ext in '' $ac_executable_extensions; do | |
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6739 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6741 break 2 | |
6742 fi | |
6743 done | |
6744 done | |
6745 IFS=$as_save_IFS | |
6746 | |
6747 fi | |
6748 fi | |
6749 LIPO=$ac_cv_prog_LIPO | |
6750 if test -n "$LIPO"; then | |
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
6752 $as_echo "$LIPO" >&6; } | |
6753 else | |
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6755 $as_echo "no" >&6; } | |
6756 fi | |
6757 | |
6758 | |
6759 fi | |
6760 if test -z "$ac_cv_prog_LIPO"; then | |
6761 ac_ct_LIPO=$LIPO | |
6762 # Extract the first word of "lipo", so it can be a program name with args. | |
6763 set dummy lipo; ac_word=$2 | |
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6765 $as_echo_n "checking for $ac_word... " >&6; } | |
6766 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
6767 $as_echo_n "(cached) " >&6 | |
6768 else | |
6769 if test -n "$ac_ct_LIPO"; then | |
6770 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6771 else | |
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6773 for as_dir in $PATH | |
6774 do | |
6775 IFS=$as_save_IFS | |
6776 test -z "$as_dir" && as_dir=. | |
6777 for ac_exec_ext in '' $ac_executable_extensions; do | |
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6779 ac_cv_prog_ac_ct_LIPO="lipo" | |
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6781 break 2 | |
6782 fi | |
6783 done | |
6784 done | |
6785 IFS=$as_save_IFS | |
6786 | |
6787 fi | |
6788 fi | |
6789 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6790 if test -n "$ac_ct_LIPO"; then | |
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
6792 $as_echo "$ac_ct_LIPO" >&6; } | |
6793 else | |
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6795 $as_echo "no" >&6; } | |
6796 fi | |
6797 | |
6798 if test "x$ac_ct_LIPO" = x; then | |
6799 LIPO=":" | |
6800 else | |
6801 case $cross_compiling:$ac_tool_warned in | |
6802 yes:) | |
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6805 ac_tool_warned=yes ;; | |
6806 esac | |
6807 LIPO=$ac_ct_LIPO | |
6808 fi | |
6809 else | |
6810 LIPO="$ac_cv_prog_LIPO" | |
6811 fi | |
6812 | |
6813 if test -n "$ac_tool_prefix"; then | |
6814 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6815 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6817 $as_echo_n "checking for $ac_word... " >&6; } | |
6818 if ${ac_cv_prog_OTOOL+:} false; then : | |
6819 $as_echo_n "(cached) " >&6 | |
6820 else | |
6821 if test -n "$OTOOL"; then | |
6822 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6823 else | |
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6825 for as_dir in $PATH | |
6826 do | |
6827 IFS=$as_save_IFS | |
6828 test -z "$as_dir" && as_dir=. | |
6829 for ac_exec_ext in '' $ac_executable_extensions; do | |
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6831 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6833 break 2 | |
6834 fi | |
6835 done | |
6836 done | |
6837 IFS=$as_save_IFS | |
6838 | |
6839 fi | |
6840 fi | |
6841 OTOOL=$ac_cv_prog_OTOOL | |
6842 if test -n "$OTOOL"; then | |
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
6844 $as_echo "$OTOOL" >&6; } | |
6845 else | |
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6847 $as_echo "no" >&6; } | |
6848 fi | |
6849 | |
6850 | |
6851 fi | |
6852 if test -z "$ac_cv_prog_OTOOL"; then | |
6853 ac_ct_OTOOL=$OTOOL | |
6854 # Extract the first word of "otool", so it can be a program name with args. | |
6855 set dummy otool; ac_word=$2 | |
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6857 $as_echo_n "checking for $ac_word... " >&6; } | |
6858 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
6859 $as_echo_n "(cached) " >&6 | |
6860 else | |
6861 if test -n "$ac_ct_OTOOL"; then | |
6862 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6863 else | |
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6865 for as_dir in $PATH | |
6866 do | |
6867 IFS=$as_save_IFS | |
6868 test -z "$as_dir" && as_dir=. | |
6869 for ac_exec_ext in '' $ac_executable_extensions; do | |
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6871 ac_cv_prog_ac_ct_OTOOL="otool" | |
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6873 break 2 | |
6874 fi | |
6875 done | |
6876 done | |
6877 IFS=$as_save_IFS | |
6878 | |
6879 fi | |
6880 fi | |
6881 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6882 if test -n "$ac_ct_OTOOL"; then | |
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
6884 $as_echo "$ac_ct_OTOOL" >&6; } | |
6885 else | |
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6887 $as_echo "no" >&6; } | |
6888 fi | |
6889 | |
6890 if test "x$ac_ct_OTOOL" = x; then | |
6891 OTOOL=":" | |
6892 else | |
6893 case $cross_compiling:$ac_tool_warned in | |
6894 yes:) | |
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6897 ac_tool_warned=yes ;; | |
6898 esac | |
6899 OTOOL=$ac_ct_OTOOL | |
6900 fi | |
6901 else | |
6902 OTOOL="$ac_cv_prog_OTOOL" | |
6903 fi | |
6904 | |
6905 if test -n "$ac_tool_prefix"; then | |
6906 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6907 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6909 $as_echo_n "checking for $ac_word... " >&6; } | |
6910 if ${ac_cv_prog_OTOOL64+:} false; then : | |
6911 $as_echo_n "(cached) " >&6 | |
6912 else | |
6913 if test -n "$OTOOL64"; then | |
6914 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6915 else | |
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6917 for as_dir in $PATH | |
6918 do | |
6919 IFS=$as_save_IFS | |
6920 test -z "$as_dir" && as_dir=. | |
6921 for ac_exec_ext in '' $ac_executable_extensions; do | |
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6923 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6925 break 2 | |
6926 fi | |
6927 done | |
6928 done | |
6929 IFS=$as_save_IFS | |
6930 | |
6931 fi | |
6932 fi | |
6933 OTOOL64=$ac_cv_prog_OTOOL64 | |
6934 if test -n "$OTOOL64"; then | |
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
6936 $as_echo "$OTOOL64" >&6; } | |
6937 else | |
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6939 $as_echo "no" >&6; } | |
6940 fi | |
6941 | |
6942 | |
6943 fi | |
6944 if test -z "$ac_cv_prog_OTOOL64"; then | |
6945 ac_ct_OTOOL64=$OTOOL64 | |
6946 # Extract the first word of "otool64", so it can be a program name with args. | |
6947 set dummy otool64; ac_word=$2 | |
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6949 $as_echo_n "checking for $ac_word... " >&6; } | |
6950 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
6951 $as_echo_n "(cached) " >&6 | |
6952 else | |
6953 if test -n "$ac_ct_OTOOL64"; then | |
6954 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6955 else | |
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6957 for as_dir in $PATH | |
6958 do | |
6959 IFS=$as_save_IFS | |
6960 test -z "$as_dir" && as_dir=. | |
6961 for ac_exec_ext in '' $ac_executable_extensions; do | |
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6963 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6965 break 2 | |
6966 fi | |
6967 done | |
6968 done | |
6969 IFS=$as_save_IFS | |
6970 | |
6971 fi | |
6972 fi | |
6973 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6974 if test -n "$ac_ct_OTOOL64"; then | |
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
6976 $as_echo "$ac_ct_OTOOL64" >&6; } | |
6977 else | |
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6979 $as_echo "no" >&6; } | |
6980 fi | |
6981 | |
6982 if test "x$ac_ct_OTOOL64" = x; then | |
6983 OTOOL64=":" | |
6984 else | |
6985 case $cross_compiling:$ac_tool_warned in | |
6986 yes:) | |
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6989 ac_tool_warned=yes ;; | |
6990 esac | |
6991 OTOOL64=$ac_ct_OTOOL64 | |
6992 fi | |
6993 else | |
6994 OTOOL64="$ac_cv_prog_OTOOL64" | |
6995 fi | |
6996 | |
6997 | |
6998 | |
6999 | |
7000 | |
7001 | |
7002 | |
7003 | |
7004 | |
7005 | |
7006 | |
7007 | |
7008 | |
7009 | |
7010 | |
7011 | |
7012 | |
7013 | |
7014 | |
7015 | |
7016 | |
7017 | |
7018 | |
7019 | |
7020 | |
7021 | |
7022 | |
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7024 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7025 if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7026 $as_echo_n "(cached) " >&6 | |
7027 else | |
7028 lt_cv_apple_cc_single_mod=no | |
7029 if test -z "${LT_MULTI_MODULE}"; then | |
7030 # By default we will add the -single_module flag. You can override | |
7031 # by either setting the environment variable LT_MULTI_MODULE | |
7032 # non-empty at configure time, or by adding -multi_module to the | |
7033 # link flags. | |
7034 rm -rf libconftest.dylib* | |
7035 echo "int foo(void){return 1;}" > conftest.c | |
7036 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7037 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7038 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7039 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7040 _lt_result=$? | |
7041 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7042 lt_cv_apple_cc_single_mod=yes | |
7043 else | |
7044 cat conftest.err >&5 | |
7045 fi | |
7046 rm -rf libconftest.dylib* | |
7047 rm -f conftest.* | |
7048 fi | |
7049 fi | |
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7051 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7053 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7054 if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7055 $as_echo_n "(cached) " >&6 | |
7056 else | |
7057 lt_cv_ld_exported_symbols_list=no | |
7058 save_LDFLAGS=$LDFLAGS | |
7059 echo "_main" > conftest.sym | |
7060 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7062 /* end confdefs.h. */ | |
7063 | |
7064 int | |
7065 main () | |
7066 { | |
7067 | |
7068 ; | |
7069 return 0; | |
7070 } | |
7071 _ACEOF | |
7072 if ac_fn_c_try_link "$LINENO"; then : | |
7073 lt_cv_ld_exported_symbols_list=yes | |
7074 else | |
7075 lt_cv_ld_exported_symbols_list=no | |
7076 fi | |
7077 rm -f core conftest.err conftest.$ac_objext \ | |
7078 conftest$ac_exeext conftest.$ac_ext | |
7079 LDFLAGS="$save_LDFLAGS" | |
7080 | |
7081 fi | |
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7083 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7085 $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7086 if ${lt_cv_ld_force_load+:} false; then : | |
7087 $as_echo_n "(cached) " >&6 | |
7088 else | |
7089 lt_cv_ld_force_load=no | |
7090 cat > conftest.c << _LT_EOF | |
7091 int forced_loaded() { return 2;} | |
7092 _LT_EOF | |
7093 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7094 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7095 echo "$AR cru libconftest.a conftest.o" >&5 | |
7096 $AR cru libconftest.a conftest.o 2>&5 | |
7097 echo "$RANLIB libconftest.a" >&5 | |
7098 $RANLIB libconftest.a 2>&5 | |
7099 cat > conftest.c << _LT_EOF | |
7100 int main() { return 0;} | |
7101 _LT_EOF | |
7102 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7103 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7104 _lt_result=$? | |
7105 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7106 lt_cv_ld_force_load=yes | |
7107 else | |
7108 cat conftest.err >&5 | |
7109 fi | |
7110 rm -f conftest.err libconftest.a conftest conftest.c | |
7111 rm -rf conftest.dSYM | |
7112 | |
7113 fi | |
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7115 $as_echo "$lt_cv_ld_force_load" >&6; } | |
7116 case $host_os in | |
7117 rhapsody* | darwin1.[012]) | |
7118 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7119 darwin1.*) | |
7120 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7121 darwin*) # darwin 5.x on | |
7122 # if running on 10.5 or later, the deployment target defaults | |
7123 # to the OS version, if on x86, and 10.4, the deployment | |
7124 # target defaults to 10.4. Don't you love it? | |
7125 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7126 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7127 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7128 10.[012]*) | |
7129 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7130 10.*) | |
7131 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7132 esac | |
7133 ;; | |
7134 esac | |
7135 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7136 _lt_dar_single_mod='$single_module' | |
7137 fi | |
7138 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7139 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7140 else | |
7141 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7142 fi | |
7143 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7144 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7145 else | |
7146 _lt_dsymutil= | |
7147 fi | |
7148 ;; | |
7149 esac | |
7150 | |
7151 ac_ext=c | |
7152 ac_cpp='$CPP $CPPFLAGS' | |
7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7157 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7158 # On Suns, sometimes $CPP names a directory. | |
7159 if test -n "$CPP" && test -d "$CPP"; then | |
7160 CPP= | |
7161 fi | |
7162 if test -z "$CPP"; then | |
7163 if ${ac_cv_prog_CPP+:} false; then : | |
7164 $as_echo_n "(cached) " >&6 | |
7165 else | |
7166 # Double quotes because CPP needs to be expanded | |
7167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7168 do | |
7169 ac_preproc_ok=false | |
7170 for ac_c_preproc_warn_flag in '' yes | |
7171 do | |
7172 # Use a header file that comes with gcc, so configuring glibc | |
7173 # with a fresh cross-compiler works. | |
7174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7175 # <limits.h> exists even on freestanding compilers. | |
7176 # On the NeXT, cc -E runs the code through the compiler's parser, | |
7177 # not just through cpp. "Syntax error" is here to catch this case. | |
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7179 /* end confdefs.h. */ | |
7180 #ifdef __STDC__ | |
7181 # include <limits.h> | |
7182 #else | |
7183 # include <assert.h> | |
7184 #endif | |
7185 Syntax error | |
7186 _ACEOF | |
7187 if ac_fn_c_try_cpp "$LINENO"; then : | |
7188 | |
7189 else | |
7190 # Broken: fails on valid input. | |
7191 continue | |
7192 fi | |
7193 rm -f conftest.err conftest.i conftest.$ac_ext | |
7194 | |
7195 # OK, works on sane cases. Now check whether nonexistent headers | |
7196 # can be detected and how. | |
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7198 /* end confdefs.h. */ | |
7199 #include <ac_nonexistent.h> | |
7200 _ACEOF | |
7201 if ac_fn_c_try_cpp "$LINENO"; then : | |
7202 # Broken: success on invalid input. | |
7203 continue | |
7204 else | |
7205 # Passes both tests. | |
7206 ac_preproc_ok=: | |
7207 break | |
7208 fi | |
7209 rm -f conftest.err conftest.i conftest.$ac_ext | |
7210 | |
7211 done | |
7212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7213 rm -f conftest.i conftest.err conftest.$ac_ext | |
7214 if $ac_preproc_ok; then : | |
7215 break | |
7216 fi | |
7217 | |
7218 done | |
7219 ac_cv_prog_CPP=$CPP | |
7220 | |
7221 fi | |
7222 CPP=$ac_cv_prog_CPP | |
7223 else | |
7224 ac_cv_prog_CPP=$CPP | |
7225 fi | |
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7227 $as_echo "$CPP" >&6; } | |
7228 ac_preproc_ok=false | |
7229 for ac_c_preproc_warn_flag in '' yes | |
7230 do | |
7231 # Use a header file that comes with gcc, so configuring glibc | |
7232 # with a fresh cross-compiler works. | |
7233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7234 # <limits.h> exists even on freestanding compilers. | |
7235 # On the NeXT, cc -E runs the code through the compiler's parser, | |
7236 # not just through cpp. "Syntax error" is here to catch this case. | |
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7238 /* end confdefs.h. */ | |
7239 #ifdef __STDC__ | |
7240 # include <limits.h> | |
7241 #else | |
7242 # include <assert.h> | |
7243 #endif | |
7244 Syntax error | |
7245 _ACEOF | |
7246 if ac_fn_c_try_cpp "$LINENO"; then : | |
7247 | |
7248 else | |
7249 # Broken: fails on valid input. | |
7250 continue | |
7251 fi | |
7252 rm -f conftest.err conftest.i conftest.$ac_ext | |
7253 | |
7254 # OK, works on sane cases. Now check whether nonexistent headers | |
7255 # can be detected and how. | |
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7257 /* end confdefs.h. */ | |
7258 #include <ac_nonexistent.h> | |
7259 _ACEOF | |
7260 if ac_fn_c_try_cpp "$LINENO"; then : | |
7261 # Broken: success on invalid input. | |
7262 continue | |
7263 else | |
7264 # Passes both tests. | |
7265 ac_preproc_ok=: | |
7266 break | |
7267 fi | |
7268 rm -f conftest.err conftest.i conftest.$ac_ext | |
7269 | |
7270 done | |
7271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7272 rm -f conftest.i conftest.err conftest.$ac_ext | |
7273 if $ac_preproc_ok; then : | |
7274 | |
7275 else | |
7276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7278 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7279 See \`config.log' for more details" "$LINENO" 5; } | |
7280 fi | |
7281 | |
7282 ac_ext=c | |
7283 ac_cpp='$CPP $CPPFLAGS' | |
7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7287 | |
7288 | |
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7290 $as_echo_n "checking for ANSI C header files... " >&6; } | |
7291 if ${ac_cv_header_stdc+:} false; then : | |
7292 $as_echo_n "(cached) " >&6 | |
7293 else | |
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7295 /* end confdefs.h. */ | |
7296 #include <stdlib.h> | |
7297 #include <stdarg.h> | |
7298 #include <string.h> | |
7299 #include <float.h> | |
7300 | |
7301 int | |
7302 main () | |
7303 { | |
7304 | |
7305 ; | |
7306 return 0; | |
7307 } | |
7308 _ACEOF | |
7309 if ac_fn_c_try_compile "$LINENO"; then : | |
7310 ac_cv_header_stdc=yes | |
7311 else | |
7312 ac_cv_header_stdc=no | |
7313 fi | |
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7315 | |
7316 if test $ac_cv_header_stdc = yes; then | |
7317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7319 /* end confdefs.h. */ | |
7320 #include <string.h> | |
7321 | |
7322 _ACEOF | |
7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7324 $EGREP "memchr" >/dev/null 2>&1; then : | |
7325 | |
7326 else | |
7327 ac_cv_header_stdc=no | |
7328 fi | |
7329 rm -f conftest* | |
7330 | |
7331 fi | |
7332 | |
7333 if test $ac_cv_header_stdc = yes; then | |
7334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7336 /* end confdefs.h. */ | |
7337 #include <stdlib.h> | |
7338 | |
7339 _ACEOF | |
7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7341 $EGREP "free" >/dev/null 2>&1; then : | |
7342 | |
7343 else | |
7344 ac_cv_header_stdc=no | |
7345 fi | |
7346 rm -f conftest* | |
7347 | |
7348 fi | |
7349 | |
7350 if test $ac_cv_header_stdc = yes; then | |
7351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7352 if test "$cross_compiling" = yes; then : | |
7353 : | |
7354 else | |
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7356 /* end confdefs.h. */ | |
7357 #include <ctype.h> | |
7358 #include <stdlib.h> | |
7359 #if ((' ' & 0x0FF) == 0x020) | |
7360 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7361 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7362 #else | |
7363 # define ISLOWER(c) \ | |
7364 (('a' <= (c) && (c) <= 'i') \ | |
7365 || ('j' <= (c) && (c) <= 'r') \ | |
7366 || ('s' <= (c) && (c) <= 'z')) | |
7367 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7368 #endif | |
7369 | |
7370 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7371 int | |
7372 main () | |
7373 { | |
7374 int i; | |
7375 for (i = 0; i < 256; i++) | |
7376 if (XOR (islower (i), ISLOWER (i)) | |
7377 || toupper (i) != TOUPPER (i)) | |
7378 return 2; | |
7379 return 0; | |
7380 } | |
7381 _ACEOF | |
7382 if ac_fn_c_try_run "$LINENO"; then : | |
7383 | |
7384 else | |
7385 ac_cv_header_stdc=no | |
7386 fi | |
7387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7388 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7389 fi | |
7390 | |
7391 fi | |
7392 fi | |
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7394 $as_echo "$ac_cv_header_stdc" >&6; } | |
7395 if test $ac_cv_header_stdc = yes; then | |
7396 | |
7397 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7398 | |
7399 fi | |
7400 | |
7401 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7403 inttypes.h stdint.h unistd.h | |
7404 do : | |
7405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7406 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7407 " | |
7408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7409 cat >>confdefs.h <<_ACEOF | |
7410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7411 _ACEOF | |
7412 | |
7413 fi | |
7414 | |
7415 done | |
7416 | |
7417 | |
7418 for ac_header in dlfcn.h | |
7419 do : | |
7420 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7421 " | |
7422 if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
7423 cat >>confdefs.h <<_ACEOF | |
7424 #define HAVE_DLFCN_H 1 | |
7425 _ACEOF | |
7426 | |
7427 fi | |
7428 | |
7429 done | |
7430 | |
7431 | |
7432 | |
7433 | |
7434 | |
7435 # Set options | |
7436 | |
7437 | |
7438 | |
7439 enable_dlopen=no | |
7440 | |
7441 | |
7442 enable_win32_dll=no | |
7443 | |
7444 | |
7445 # Check whether --enable-shared was given. | |
7446 if test "${enable_shared+set}" = set; then : | |
7447 enableval=$enable_shared; p=${PACKAGE-default} | |
7448 case $enableval in | |
7449 yes) enable_shared=yes ;; | |
7450 no) enable_shared=no ;; | |
7451 *) | |
7452 enable_shared=no | |
7453 # Look at the argument we got. We use all the common list separators. | |
7454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7455 for pkg in $enableval; do | |
7456 IFS="$lt_save_ifs" | |
7457 if test "X$pkg" = "X$p"; then | |
7458 enable_shared=yes | |
7459 fi | |
7460 done | |
7461 IFS="$lt_save_ifs" | |
7462 ;; | |
7463 esac | |
7464 else | |
7465 enable_shared=yes | |
7466 fi | |
7467 | |
7468 | |
7469 | |
7470 | |
7471 | |
7472 | |
7473 | |
7474 | |
7475 | |
7476 # Check whether --enable-static was given. | |
7477 if test "${enable_static+set}" = set; then : | |
7478 enableval=$enable_static; p=${PACKAGE-default} | |
7479 case $enableval in | |
7480 yes) enable_static=yes ;; | |
7481 no) enable_static=no ;; | |
7482 *) | |
7483 enable_static=no | |
7484 # Look at the argument we got. We use all the common list separators. | |
7485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7486 for pkg in $enableval; do | |
7487 IFS="$lt_save_ifs" | |
7488 if test "X$pkg" = "X$p"; then | |
7489 enable_static=yes | |
7490 fi | |
7491 done | |
7492 IFS="$lt_save_ifs" | |
7493 ;; | |
7494 esac | |
7495 else | |
7496 enable_static=yes | |
7497 fi | |
7498 | |
7499 | |
7500 | |
7501 | |
7502 | |
7503 | |
7504 | |
7505 | |
7506 | |
7507 | |
7508 # Check whether --with-pic was given. | |
7509 if test "${with_pic+set}" = set; then : | |
7510 withval=$with_pic; pic_mode="$withval" | |
7511 else | |
7512 pic_mode=default | |
7513 fi | |
7514 | |
7515 | |
7516 test -z "$pic_mode" && pic_mode=default | |
7517 | |
7518 | |
7519 | |
7520 | |
7521 | |
7522 | |
7523 | |
7524 # Check whether --enable-fast-install was given. | |
7525 if test "${enable_fast_install+set}" = set; then : | |
7526 enableval=$enable_fast_install; p=${PACKAGE-default} | |
7527 case $enableval in | |
7528 yes) enable_fast_install=yes ;; | |
7529 no) enable_fast_install=no ;; | |
7530 *) | |
7531 enable_fast_install=no | |
7532 # Look at the argument we got. We use all the common list separators. | |
7533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7534 for pkg in $enableval; do | |
7535 IFS="$lt_save_ifs" | |
7536 if test "X$pkg" = "X$p"; then | |
7537 enable_fast_install=yes | |
7538 fi | |
7539 done | |
7540 IFS="$lt_save_ifs" | |
7541 ;; | |
7542 esac | |
7543 else | |
7544 enable_fast_install=yes | |
7545 fi | |
7546 | |
7547 | |
7548 | |
7549 | |
7550 | |
7551 | |
7552 | |
7553 | |
7554 | |
7555 | |
7556 | |
7557 # This can be used to rebuild libtool when needed | |
7558 LIBTOOL_DEPS="$ltmain" | |
7559 | |
7560 # Always use our own libtool. | |
7561 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7562 | |
7563 | |
7564 | |
7565 | |
7566 | |
7567 | |
7568 | |
7569 | |
7570 | |
7571 | |
7572 | |
7573 | |
7574 | |
7575 | |
7576 | |
7577 | |
7578 | |
7579 | |
7580 | |
7581 | |
7582 | |
7583 | |
7584 | |
7585 | |
7586 | |
7587 | |
7588 test -z "$LN_S" && LN_S="ln -s" | |
7589 | |
7590 | |
7591 | |
7592 | |
7593 | |
7594 | |
7595 | |
7596 | |
7597 | |
7598 | |
7599 | |
7600 | |
7601 | |
7602 | |
7603 if test -n "${ZSH_VERSION+set}" ; then | |
7604 setopt NO_GLOB_SUBST | |
7605 fi | |
7606 | |
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7608 $as_echo_n "checking for objdir... " >&6; } | |
7609 if ${lt_cv_objdir+:} false; then : | |
7610 $as_echo_n "(cached) " >&6 | |
7611 else | |
7612 rm -f .libs 2>/dev/null | |
7613 mkdir .libs 2>/dev/null | |
7614 if test -d .libs; then | |
7615 lt_cv_objdir=.libs | |
7616 else | |
7617 # MS-DOS does not allow filenames that begin with a dot. | |
7618 lt_cv_objdir=_libs | |
7619 fi | |
7620 rmdir .libs 2>/dev/null | |
7621 fi | |
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7623 $as_echo "$lt_cv_objdir" >&6; } | |
7624 objdir=$lt_cv_objdir | |
7625 | |
7626 | |
7627 | |
7628 | |
7629 | |
7630 cat >>confdefs.h <<_ACEOF | |
7631 #define LT_OBJDIR "$lt_cv_objdir/" | |
7632 _ACEOF | |
7633 | |
7634 | |
7635 | |
7636 | |
7637 case $host_os in | |
7638 aix3*) | |
7639 # AIX sometimes has problems with the GCC collect2 program. For some | |
7640 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7641 # vanish in a puff of smoke. | |
7642 if test "X${COLLECT_NAMES+set}" != Xset; then | |
7643 COLLECT_NAMES= | |
7644 export COLLECT_NAMES | |
7645 fi | |
7646 ;; | |
7647 esac | |
7648 | |
7649 # Global variables: | |
7650 ofile=libtool | |
7651 can_build_shared=yes | |
7652 | |
7653 # All known linkers require a `.a' archive for static linking (except MSVC, | |
7654 # which needs '.lib'). | |
7655 libext=a | |
7656 | |
7657 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7658 | |
7659 old_CC="$CC" | |
7660 old_CFLAGS="$CFLAGS" | |
7661 | |
7662 # Set sane defaults for various variables | |
7663 test -z "$CC" && CC=cc | |
7664 test -z "$LTCC" && LTCC=$CC | |
7665 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7666 test -z "$LD" && LD=ld | |
7667 test -z "$ac_objext" && ac_objext=o | |
7668 | |
7669 for cc_temp in $compiler""; do | |
7670 case $cc_temp in | |
7671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7673 \-*) ;; | |
7674 *) break;; | |
7675 esac | |
7676 done | |
7677 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7678 | |
7679 | |
7680 # Only perform the check for file, if the check method requires it | |
7681 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7682 case $deplibs_check_method in | |
7683 file_magic*) | |
7684 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
7686 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7687 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
7688 $as_echo_n "(cached) " >&6 | |
7689 else | |
7690 case $MAGIC_CMD in | |
7691 [\\/*] | ?:[\\/]*) | |
7692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7693 ;; | |
7694 *) | |
7695 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7698 for ac_dir in $ac_dummy; do | |
7699 IFS="$lt_save_ifs" | |
7700 test -z "$ac_dir" && ac_dir=. | |
7701 if test -f $ac_dir/${ac_tool_prefix}file; then | |
7702 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7703 if test -n "$file_magic_test_file"; then | |
7704 case $deplibs_check_method in | |
7705 "file_magic "*) | |
7706 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7709 $EGREP "$file_magic_regex" > /dev/null; then | |
7710 : | |
7711 else | |
7712 cat <<_LT_EOF 1>&2 | |
7713 | |
7714 *** Warning: the command libtool uses to detect shared libraries, | |
7715 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7716 *** The result is that libtool may fail to recognize shared libraries | |
7717 *** as such. This will affect the creation of libtool libraries that | |
7718 *** depend on shared libraries, but programs linked with such libtool | |
7719 *** libraries will work regardless of this problem. Nevertheless, you | |
7720 *** may want to report the problem to your system manager and/or to | |
7721 *** bug-libtool@gnu.org | |
7722 | |
7723 _LT_EOF | |
7724 fi ;; | |
7725 esac | |
7726 fi | |
7727 break | |
7728 fi | |
7729 done | |
7730 IFS="$lt_save_ifs" | |
7731 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7732 ;; | |
7733 esac | |
7734 fi | |
7735 | |
7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7737 if test -n "$MAGIC_CMD"; then | |
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7739 $as_echo "$MAGIC_CMD" >&6; } | |
7740 else | |
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7742 $as_echo "no" >&6; } | |
7743 fi | |
7744 | |
7745 | |
7746 | |
7747 | |
7748 | |
7749 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7750 if test -n "$ac_tool_prefix"; then | |
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
7752 $as_echo_n "checking for file... " >&6; } | |
7753 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
7754 $as_echo_n "(cached) " >&6 | |
7755 else | |
7756 case $MAGIC_CMD in | |
7757 [\\/*] | ?:[\\/]*) | |
7758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7759 ;; | |
7760 *) | |
7761 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7764 for ac_dir in $ac_dummy; do | |
7765 IFS="$lt_save_ifs" | |
7766 test -z "$ac_dir" && ac_dir=. | |
7767 if test -f $ac_dir/file; then | |
7768 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7769 if test -n "$file_magic_test_file"; then | |
7770 case $deplibs_check_method in | |
7771 "file_magic "*) | |
7772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7775 $EGREP "$file_magic_regex" > /dev/null; then | |
7776 : | |
7777 else | |
7778 cat <<_LT_EOF 1>&2 | |
7779 | |
7780 *** Warning: the command libtool uses to detect shared libraries, | |
7781 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7782 *** The result is that libtool may fail to recognize shared libraries | |
7783 *** as such. This will affect the creation of libtool libraries that | |
7784 *** depend on shared libraries, but programs linked with such libtool | |
7785 *** libraries will work regardless of this problem. Nevertheless, you | |
7786 *** may want to report the problem to your system manager and/or to | |
7787 *** bug-libtool@gnu.org | |
7788 | |
7789 _LT_EOF | |
7790 fi ;; | |
7791 esac | |
7792 fi | |
7793 break | |
7794 fi | |
7795 done | |
7796 IFS="$lt_save_ifs" | |
7797 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7798 ;; | |
7799 esac | |
7800 fi | |
7801 | |
7802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7803 if test -n "$MAGIC_CMD"; then | |
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7805 $as_echo "$MAGIC_CMD" >&6; } | |
7806 else | |
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7808 $as_echo "no" >&6; } | |
7809 fi | |
7810 | |
7811 | |
7812 else | |
7813 MAGIC_CMD=: | |
7814 fi | |
7815 fi | |
7816 | |
7817 fi | |
7818 ;; | |
7819 esac | |
7820 | |
7821 # Use C for the default configuration in the libtool script | |
7822 | |
7823 lt_save_CC="$CC" | |
7824 ac_ext=c | |
7825 ac_cpp='$CPP $CPPFLAGS' | |
7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7829 | |
7830 | |
7831 # Source file extension for C test sources. | |
7832 ac_ext=c | |
7833 | |
7834 # Object file extension for compiled C test sources. | |
7835 objext=o | |
7836 objext=$objext | |
7837 | |
7838 # Code to be used in simple compile tests | |
7839 lt_simple_compile_test_code="int some_variable = 0;" | |
7840 | |
7841 # Code to be used in simple link tests | |
7842 lt_simple_link_test_code='int main(){return(0);}' | |
7843 | |
7844 | |
7845 | |
7846 | |
7847 | |
7848 | |
7849 | |
7850 # If no C compiler was specified, use CC. | |
7851 LTCC=${LTCC-"$CC"} | |
7852 | |
7853 # If no C compiler flags were specified, use CFLAGS. | |
7854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7855 | |
7856 # Allow CC to be a program name with arguments. | |
7857 compiler=$CC | |
7858 | |
7859 # Save the default compiler, since it gets overwritten when the other | |
7860 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7861 compiler_DEFAULT=$CC | |
7862 | |
7863 # save warnings/boilerplate of simple test code | |
7864 ac_outfile=conftest.$ac_objext | |
7865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7867 _lt_compiler_boilerplate=`cat conftest.err` | |
7868 $RM conftest* | |
7869 | |
7870 ac_outfile=conftest.$ac_objext | |
7871 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7873 _lt_linker_boilerplate=`cat conftest.err` | |
7874 $RM -r conftest* | |
7875 | |
7876 | |
7877 if test -n "$compiler"; then | |
7878 | |
7879 lt_prog_compiler_no_builtin_flag= | |
7880 | |
7881 if test "$GCC" = yes; then | |
7882 case $cc_basename in | |
7883 nvcc*) | |
7884 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7885 *) | |
7886 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7887 esac | |
7888 | |
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7891 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
7892 $as_echo_n "(cached) " >&6 | |
7893 else | |
7894 lt_cv_prog_compiler_rtti_exceptions=no | |
7895 ac_outfile=conftest.$ac_objext | |
7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7897 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7898 # Insert the option either (1) after the last *FLAGS variable, or | |
7899 # (2) before a word containing "conftest.", or (3) at the end. | |
7900 # Note that $ac_compile itself does not contain backslashes and begins | |
7901 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7902 # The option is referenced via a variable to avoid confusing sed. | |
7903 lt_compile=`echo "$ac_compile" | $SED \ | |
7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7906 -e 's:$: $lt_compiler_flag:'` | |
7907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
7908 (eval "$lt_compile" 2>conftest.err) | |
7909 ac_status=$? | |
7910 cat conftest.err >&5 | |
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7912 if (exit $ac_status) && test -s "$ac_outfile"; then | |
7913 # The compiler can only warn and ignore the option if not recognized | |
7914 # So say no if there are warnings other than the usual output. | |
7915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
7916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7918 lt_cv_prog_compiler_rtti_exceptions=yes | |
7919 fi | |
7920 fi | |
7921 $RM conftest* | |
7922 | |
7923 fi | |
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
7926 | |
7927 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7928 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7929 else | |
7930 : | |
7931 fi | |
7932 | |
7933 fi | |
7934 | |
7935 | |
7936 | |
7937 | |
7938 | |
7939 | |
7940 lt_prog_compiler_wl= | |
7941 lt_prog_compiler_pic= | |
7942 lt_prog_compiler_static= | |
7943 | |
7944 | |
7945 if test "$GCC" = yes; then | |
7946 lt_prog_compiler_wl='-Wl,' | |
7947 lt_prog_compiler_static='-static' | |
7948 | |
7949 case $host_os in | |
7950 aix*) | |
7951 # All AIX code is PIC. | |
7952 if test "$host_cpu" = ia64; then | |
7953 # AIX 5 now supports IA64 processor | |
7954 lt_prog_compiler_static='-Bstatic' | |
7955 fi | |
7956 ;; | |
7957 | |
7958 amigaos*) | |
7959 case $host_cpu in | |
7960 powerpc) | |
7961 # see comment about AmigaOS4 .so support | |
7962 lt_prog_compiler_pic='-fPIC' | |
7963 ;; | |
7964 m68k) | |
7965 # FIXME: we need at least 68020 code to build shared libraries, but | |
7966 # adding the `-m68020' flag to GCC prevents building anything better, | |
7967 # like `-m68040'. | |
7968 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7969 ;; | |
7970 esac | |
7971 ;; | |
7972 | |
7973 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7974 # PIC is the default for these OSes. | |
7975 ;; | |
7976 | |
7977 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7978 # This hack is so that the source file can tell whether it is being | |
7979 # built for inclusion in a dll (and should export symbols for example). | |
7980 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7981 # (--disable-auto-import) libraries | |
7982 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7983 ;; | |
7984 | |
7985 darwin* | rhapsody*) | |
7986 # PIC is the default on this platform | |
7987 # Common symbols not allowed in MH_DYLIB files | |
7988 lt_prog_compiler_pic='-fno-common' | |
7989 ;; | |
7990 | |
7991 haiku*) | |
7992 # PIC is the default for Haiku. | |
7993 # The "-static" flag exists, but is broken. | |
7994 lt_prog_compiler_static= | |
7995 ;; | |
7996 | |
7997 hpux*) | |
7998 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7999 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8000 # sets the default TLS model and affects inlining. | |
8001 case $host_cpu in | |
8002 hppa*64*) | |
8003 # +Z the default | |
8004 ;; | |
8005 *) | |
8006 lt_prog_compiler_pic='-fPIC' | |
8007 ;; | |
8008 esac | |
8009 ;; | |
8010 | |
8011 interix[3-9]*) | |
8012 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8013 # Instead, we relocate shared libraries at runtime. | |
8014 ;; | |
8015 | |
8016 msdosdjgpp*) | |
8017 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8018 # on systems that don't support them. | |
8019 lt_prog_compiler_can_build_shared=no | |
8020 enable_shared=no | |
8021 ;; | |
8022 | |
8023 *nto* | *qnx*) | |
8024 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8025 # it will coredump. | |
8026 lt_prog_compiler_pic='-fPIC -shared' | |
8027 ;; | |
8028 | |
8029 sysv4*MP*) | |
8030 if test -d /usr/nec; then | |
8031 lt_prog_compiler_pic=-Kconform_pic | |
8032 fi | |
8033 ;; | |
8034 | |
8035 *) | |
8036 lt_prog_compiler_pic='-fPIC' | |
8037 ;; | |
8038 esac | |
8039 | |
8040 case $cc_basename in | |
8041 nvcc*) # Cuda Compiler Driver 2.2 | |
8042 lt_prog_compiler_wl='-Xlinker ' | |
8043 lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8044 ;; | |
8045 esac | |
8046 else | |
8047 # PORTME Check for flag to pass linker flags through the system compiler. | |
8048 case $host_os in | |
8049 aix*) | |
8050 lt_prog_compiler_wl='-Wl,' | |
8051 if test "$host_cpu" = ia64; then | |
8052 # AIX 5 now supports IA64 processor | |
8053 lt_prog_compiler_static='-Bstatic' | |
8054 else | |
8055 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8056 fi | |
8057 ;; | |
8058 | |
8059 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8060 # This hack is so that the source file can tell whether it is being | |
8061 # built for inclusion in a dll (and should export symbols for example). | |
8062 lt_prog_compiler_pic='-DDLL_EXPORT' | |
8063 ;; | |
8064 | |
8065 hpux9* | hpux10* | hpux11*) | |
8066 lt_prog_compiler_wl='-Wl,' | |
8067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8068 # not for PA HP-UX. | |
8069 case $host_cpu in | |
8070 hppa*64*|ia64*) | |
8071 # +Z the default | |
8072 ;; | |
8073 *) | |
8074 lt_prog_compiler_pic='+Z' | |
8075 ;; | |
8076 esac | |
8077 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8078 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8079 ;; | |
8080 | |
8081 irix5* | irix6* | nonstopux*) | |
8082 lt_prog_compiler_wl='-Wl,' | |
8083 # PIC (with -KPIC) is the default. | |
8084 lt_prog_compiler_static='-non_shared' | |
8085 ;; | |
8086 | |
8087 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8088 case $cc_basename in | |
8089 # old Intel for x86_64 which still supported -KPIC. | |
8090 ecc*) | |
8091 lt_prog_compiler_wl='-Wl,' | |
8092 lt_prog_compiler_pic='-KPIC' | |
8093 lt_prog_compiler_static='-static' | |
8094 ;; | |
8095 # icc used to be incompatible with GCC. | |
8096 # ICC 10 doesn't accept -KPIC any more. | |
8097 icc* | ifort*) | |
8098 lt_prog_compiler_wl='-Wl,' | |
8099 lt_prog_compiler_pic='-fPIC' | |
8100 lt_prog_compiler_static='-static' | |
8101 ;; | |
8102 # Lahey Fortran 8.1. | |
8103 lf95*) | |
8104 lt_prog_compiler_wl='-Wl,' | |
8105 lt_prog_compiler_pic='--shared' | |
8106 lt_prog_compiler_static='--static' | |
8107 ;; | |
8108 nagfor*) | |
8109 # NAG Fortran compiler | |
8110 lt_prog_compiler_wl='-Wl,-Wl,,' | |
8111 lt_prog_compiler_pic='-PIC' | |
8112 lt_prog_compiler_static='-Bstatic' | |
8113 ;; | |
8114 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8115 # Portland Group compilers (*not* the Pentium gcc compiler, | |
8116 # which looks to be a dead project) | |
8117 lt_prog_compiler_wl='-Wl,' | |
8118 lt_prog_compiler_pic='-fpic' | |
8119 lt_prog_compiler_static='-Bstatic' | |
8120 ;; | |
8121 ccc*) | |
8122 lt_prog_compiler_wl='-Wl,' | |
8123 # All Alpha code is PIC. | |
8124 lt_prog_compiler_static='-non_shared' | |
8125 ;; | |
8126 xl* | bgxl* | bgf* | mpixl*) | |
8127 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8128 lt_prog_compiler_wl='-Wl,' | |
8129 lt_prog_compiler_pic='-qpic' | |
8130 lt_prog_compiler_static='-qstaticlink' | |
8131 ;; | |
8132 *) | |
8133 case `$CC -V 2>&1 | sed 5q` in | |
8134 *Sun\ F* | *Sun*Fortran*) | |
8135 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8136 lt_prog_compiler_pic='-KPIC' | |
8137 lt_prog_compiler_static='-Bstatic' | |
8138 lt_prog_compiler_wl='' | |
8139 ;; | |
8140 *Sun\ C*) | |
8141 # Sun C 5.9 | |
8142 lt_prog_compiler_pic='-KPIC' | |
8143 lt_prog_compiler_static='-Bstatic' | |
8144 lt_prog_compiler_wl='-Wl,' | |
8145 ;; | |
8146 esac | |
8147 ;; | |
8148 esac | |
8149 ;; | |
8150 | |
8151 newsos6) | |
8152 lt_prog_compiler_pic='-KPIC' | |
8153 lt_prog_compiler_static='-Bstatic' | |
8154 ;; | |
8155 | |
8156 *nto* | *qnx*) | |
8157 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8158 # it will coredump. | |
8159 lt_prog_compiler_pic='-fPIC -shared' | |
8160 ;; | |
8161 | |
8162 osf3* | osf4* | osf5*) | |
8163 lt_prog_compiler_wl='-Wl,' | |
8164 # All OSF/1 code is PIC. | |
8165 lt_prog_compiler_static='-non_shared' | |
8166 ;; | |
8167 | |
8168 rdos*) | |
8169 lt_prog_compiler_static='-non_shared' | |
8170 ;; | |
8171 | |
8172 solaris*) | |
8173 lt_prog_compiler_pic='-KPIC' | |
8174 lt_prog_compiler_static='-Bstatic' | |
8175 case $cc_basename in | |
8176 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8177 lt_prog_compiler_wl='-Qoption ld ';; | |
8178 *) | |
8179 lt_prog_compiler_wl='-Wl,';; | |
8180 esac | |
8181 ;; | |
8182 | |
8183 sunos4*) | |
8184 lt_prog_compiler_wl='-Qoption ld ' | |
8185 lt_prog_compiler_pic='-PIC' | |
8186 lt_prog_compiler_static='-Bstatic' | |
8187 ;; | |
8188 | |
8189 sysv4 | sysv4.2uw2* | sysv4.3*) | |
8190 lt_prog_compiler_wl='-Wl,' | |
8191 lt_prog_compiler_pic='-KPIC' | |
8192 lt_prog_compiler_static='-Bstatic' | |
8193 ;; | |
8194 | |
8195 sysv4*MP*) | |
8196 if test -d /usr/nec ;then | |
8197 lt_prog_compiler_pic='-Kconform_pic' | |
8198 lt_prog_compiler_static='-Bstatic' | |
8199 fi | |
8200 ;; | |
8201 | |
8202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8203 lt_prog_compiler_wl='-Wl,' | |
8204 lt_prog_compiler_pic='-KPIC' | |
8205 lt_prog_compiler_static='-Bstatic' | |
8206 ;; | |
8207 | |
8208 unicos*) | |
8209 lt_prog_compiler_wl='-Wl,' | |
8210 lt_prog_compiler_can_build_shared=no | |
8211 ;; | |
8212 | |
8213 uts4*) | |
8214 lt_prog_compiler_pic='-pic' | |
8215 lt_prog_compiler_static='-Bstatic' | |
8216 ;; | |
8217 | |
8218 *) | |
8219 lt_prog_compiler_can_build_shared=no | |
8220 ;; | |
8221 esac | |
8222 fi | |
8223 | |
8224 case $host_os in | |
8225 # For platforms which do not support PIC, -DPIC is meaningless: | |
8226 *djgpp*) | |
8227 lt_prog_compiler_pic= | |
8228 ;; | |
8229 *) | |
8230 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8231 ;; | |
8232 esac | |
8233 | |
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8236 if ${lt_cv_prog_compiler_pic+:} false; then : | |
8237 $as_echo_n "(cached) " >&6 | |
8238 else | |
8239 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8240 fi | |
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8242 $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8243 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8244 | |
8245 # | |
8246 # Check to make sure the PIC flag actually works. | |
8247 # | |
8248 if test -n "$lt_prog_compiler_pic"; then | |
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8250 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8251 if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8252 $as_echo_n "(cached) " >&6 | |
8253 else | |
8254 lt_cv_prog_compiler_pic_works=no | |
8255 ac_outfile=conftest.$ac_objext | |
8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8257 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8258 # Insert the option either (1) after the last *FLAGS variable, or | |
8259 # (2) before a word containing "conftest.", or (3) at the end. | |
8260 # Note that $ac_compile itself does not contain backslashes and begins | |
8261 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8262 # The option is referenced via a variable to avoid confusing sed. | |
8263 lt_compile=`echo "$ac_compile" | $SED \ | |
8264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8266 -e 's:$: $lt_compiler_flag:'` | |
8267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8268 (eval "$lt_compile" 2>conftest.err) | |
8269 ac_status=$? | |
8270 cat conftest.err >&5 | |
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8272 if (exit $ac_status) && test -s "$ac_outfile"; then | |
8273 # The compiler can only warn and ignore the option if not recognized | |
8274 # So say no if there are warnings other than the usual output. | |
8275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8278 lt_cv_prog_compiler_pic_works=yes | |
8279 fi | |
8280 fi | |
8281 $RM conftest* | |
8282 | |
8283 fi | |
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8285 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8286 | |
8287 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8288 case $lt_prog_compiler_pic in | |
8289 "" | " "*) ;; | |
8290 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8291 esac | |
8292 else | |
8293 lt_prog_compiler_pic= | |
8294 lt_prog_compiler_can_build_shared=no | |
8295 fi | |
8296 | |
8297 fi | |
8298 | |
8299 | |
8300 | |
8301 | |
8302 | |
8303 | |
8304 | |
8305 | |
8306 | |
8307 | |
8308 | |
8309 # | |
8310 # Check to make sure the static flag actually works. | |
8311 # | |
8312 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8314 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8315 if ${lt_cv_prog_compiler_static_works+:} false; then : | |
8316 $as_echo_n "(cached) " >&6 | |
8317 else | |
8318 lt_cv_prog_compiler_static_works=no | |
8319 save_LDFLAGS="$LDFLAGS" | |
8320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8321 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8323 # The linker can only warn and ignore the option if not recognized | |
8324 # So say no if there are warnings | |
8325 if test -s conftest.err; then | |
8326 # Append any errors to the config.log. | |
8327 cat conftest.err 1>&5 | |
8328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8330 if diff conftest.exp conftest.er2 >/dev/null; then | |
8331 lt_cv_prog_compiler_static_works=yes | |
8332 fi | |
8333 else | |
8334 lt_cv_prog_compiler_static_works=yes | |
8335 fi | |
8336 fi | |
8337 $RM -r conftest* | |
8338 LDFLAGS="$save_LDFLAGS" | |
8339 | |
8340 fi | |
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8342 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8343 | |
8344 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8345 : | |
8346 else | |
8347 lt_prog_compiler_static= | |
8348 fi | |
8349 | |
8350 | |
8351 | |
8352 | |
8353 | |
8354 | |
8355 | |
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8357 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8358 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8359 $as_echo_n "(cached) " >&6 | |
8360 else | |
8361 lt_cv_prog_compiler_c_o=no | |
8362 $RM -r conftest 2>/dev/null | |
8363 mkdir conftest | |
8364 cd conftest | |
8365 mkdir out | |
8366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8367 | |
8368 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8369 # Insert the option either (1) after the last *FLAGS variable, or | |
8370 # (2) before a word containing "conftest.", or (3) at the end. | |
8371 # Note that $ac_compile itself does not contain backslashes and begins | |
8372 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8373 lt_compile=`echo "$ac_compile" | $SED \ | |
8374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8376 -e 's:$: $lt_compiler_flag:'` | |
8377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8378 (eval "$lt_compile" 2>out/conftest.err) | |
8379 ac_status=$? | |
8380 cat out/conftest.err >&5 | |
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8382 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8383 then | |
8384 # The compiler can only warn and ignore the option if not recognized | |
8385 # So say no if there are warnings | |
8386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8389 lt_cv_prog_compiler_c_o=yes | |
8390 fi | |
8391 fi | |
8392 chmod u+w . 2>&5 | |
8393 $RM conftest* | |
8394 # SGI C++ compiler will create directory out/ii_files/ for | |
8395 # template instantiation | |
8396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8397 $RM out/* && rmdir out | |
8398 cd .. | |
8399 $RM -r conftest | |
8400 $RM conftest* | |
8401 | |
8402 fi | |
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8404 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8405 | |
8406 | |
8407 | |
8408 | |
8409 | |
8410 | |
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8413 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8414 $as_echo_n "(cached) " >&6 | |
8415 else | |
8416 lt_cv_prog_compiler_c_o=no | |
8417 $RM -r conftest 2>/dev/null | |
8418 mkdir conftest | |
8419 cd conftest | |
8420 mkdir out | |
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8422 | |
8423 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8424 # Insert the option either (1) after the last *FLAGS variable, or | |
8425 # (2) before a word containing "conftest.", or (3) at the end. | |
8426 # Note that $ac_compile itself does not contain backslashes and begins | |
8427 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8428 lt_compile=`echo "$ac_compile" | $SED \ | |
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8431 -e 's:$: $lt_compiler_flag:'` | |
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8433 (eval "$lt_compile" 2>out/conftest.err) | |
8434 ac_status=$? | |
8435 cat out/conftest.err >&5 | |
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8437 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8438 then | |
8439 # The compiler can only warn and ignore the option if not recognized | |
8440 # So say no if there are warnings | |
8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8444 lt_cv_prog_compiler_c_o=yes | |
8445 fi | |
8446 fi | |
8447 chmod u+w . 2>&5 | |
8448 $RM conftest* | |
8449 # SGI C++ compiler will create directory out/ii_files/ for | |
8450 # template instantiation | |
8451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8452 $RM out/* && rmdir out | |
8453 cd .. | |
8454 $RM -r conftest | |
8455 $RM conftest* | |
8456 | |
8457 fi | |
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8460 | |
8461 | |
8462 | |
8463 | |
8464 hard_links="nottested" | |
8465 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8466 # do not overwrite the value of need_locks provided by the user | |
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8468 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8469 hard_links=yes | |
8470 $RM conftest* | |
8471 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8472 touch conftest.a | |
8473 ln conftest.a conftest.b 2>&5 || hard_links=no | |
8474 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8476 $as_echo "$hard_links" >&6; } | |
8477 if test "$hard_links" = no; then | |
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8479 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8480 need_locks=warn | |
8481 fi | |
8482 else | |
8483 need_locks=no | |
8484 fi | |
8485 | |
8486 | |
8487 | |
8488 | |
8489 | |
8490 | |
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8493 | |
8494 runpath_var= | |
8495 allow_undefined_flag= | |
8496 always_export_symbols=no | |
8497 archive_cmds= | |
8498 archive_expsym_cmds= | |
8499 compiler_needs_object=no | |
8500 enable_shared_with_static_runtimes=no | |
8501 export_dynamic_flag_spec= | |
8502 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8503 hardcode_automatic=no | |
8504 hardcode_direct=no | |
8505 hardcode_direct_absolute=no | |
8506 hardcode_libdir_flag_spec= | |
8507 hardcode_libdir_flag_spec_ld= | |
8508 hardcode_libdir_separator= | |
8509 hardcode_minus_L=no | |
8510 hardcode_shlibpath_var=unsupported | |
8511 inherit_rpath=no | |
8512 link_all_deplibs=unknown | |
8513 module_cmds= | |
8514 module_expsym_cmds= | |
8515 old_archive_from_new_cmds= | |
8516 old_archive_from_expsyms_cmds= | |
8517 thread_safe_flag_spec= | |
8518 whole_archive_flag_spec= | |
8519 # include_expsyms should be a list of space-separated symbols to be *always* | |
8520 # included in the symbol list | |
8521 include_expsyms= | |
8522 # exclude_expsyms can be an extended regexp of symbols to exclude | |
8523 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8525 # as well as any symbol that contains `d'. | |
8526 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8528 # platforms (ab)use it in PIC code, but their linkers get confused if | |
8529 # the symbol is explicitly referenced. Since portable code cannot | |
8530 # rely on this symbol name, it's probably fine to never include it in | |
8531 # preloaded symbol tables. | |
8532 # Exclude shared library initialization/finalization symbols. | |
8533 extract_expsyms_cmds= | |
8534 | |
8535 case $host_os in | |
8536 cygwin* | mingw* | pw32* | cegcc*) | |
8537 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8538 # When not using gcc, we currently assume that we are using | |
8539 # Microsoft Visual C++. | |
8540 if test "$GCC" != yes; then | |
8541 with_gnu_ld=no | |
8542 fi | |
8543 ;; | |
8544 interix*) | |
8545 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8546 with_gnu_ld=yes | |
8547 ;; | |
8548 openbsd*) | |
8549 with_gnu_ld=no | |
8550 ;; | |
8551 esac | |
8552 | |
8553 ld_shlibs=yes | |
8554 | |
8555 # On some targets, GNU ld is compatible enough with the native linker | |
8556 # that we're better off using the native interface for both. | |
8557 lt_use_gnu_ld_interface=no | |
8558 if test "$with_gnu_ld" = yes; then | |
8559 case $host_os in | |
8560 aix*) | |
8561 # The AIX port of GNU ld has always aspired to compatibility | |
8562 # with the native linker. However, as the warning in the GNU ld | |
8563 # block says, versions before 2.19.5* couldn't really create working | |
8564 # shared libraries, regardless of the interface used. | |
8565 case `$LD -v 2>&1` in | |
8566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8568 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8569 *) | |
8570 lt_use_gnu_ld_interface=yes | |
8571 ;; | |
8572 esac | |
8573 ;; | |
8574 *) | |
8575 lt_use_gnu_ld_interface=yes | |
8576 ;; | |
8577 esac | |
8578 fi | |
8579 | |
8580 if test "$lt_use_gnu_ld_interface" = yes; then | |
8581 # If archive_cmds runs LD, not CC, wlarc should be empty | |
8582 wlarc='${wl}' | |
8583 | |
8584 # Set some defaults for GNU ld with shared library support. These | |
8585 # are reset later if shared libraries are not supported. Putting them | |
8586 # here allows them to be overridden if necessary. | |
8587 runpath_var=LD_RUN_PATH | |
8588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8589 export_dynamic_flag_spec='${wl}--export-dynamic' | |
8590 # ancient GNU ld didn't support --whole-archive et. al. | |
8591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8592 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8593 else | |
8594 whole_archive_flag_spec= | |
8595 fi | |
8596 supports_anon_versioning=no | |
8597 case `$LD -v 2>&1` in | |
8598 *GNU\ gold*) supports_anon_versioning=yes ;; | |
8599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8602 *\ 2.11.*) ;; # other 2.11 versions | |
8603 *) supports_anon_versioning=yes ;; | |
8604 esac | |
8605 | |
8606 # See if GNU ld supports shared libraries. | |
8607 case $host_os in | |
8608 aix[3-9]*) | |
8609 # On AIX/PPC, the GNU linker is very broken | |
8610 if test "$host_cpu" != ia64; then | |
8611 ld_shlibs=no | |
8612 cat <<_LT_EOF 1>&2 | |
8613 | |
8614 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
8615 *** to be unable to reliably create shared libraries on AIX. | |
8616 *** Therefore, libtool is disabling shared libraries support. If you | |
8617 *** really care for shared libraries, you may want to install binutils | |
8618 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8619 *** You will then need to restart the configuration process. | |
8620 | |
8621 _LT_EOF | |
8622 fi | |
8623 ;; | |
8624 | |
8625 amigaos*) | |
8626 case $host_cpu in | |
8627 powerpc) | |
8628 # see comment about AmigaOS4 .so support | |
8629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8630 archive_expsym_cmds='' | |
8631 ;; | |
8632 m68k) | |
8633 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)' | |
8634 hardcode_libdir_flag_spec='-L$libdir' | |
8635 hardcode_minus_L=yes | |
8636 ;; | |
8637 esac | |
8638 ;; | |
8639 | |
8640 beos*) | |
8641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8642 allow_undefined_flag=unsupported | |
8643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8644 # support --undefined. This deserves some investigation. FIXME | |
8645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8646 else | |
8647 ld_shlibs=no | |
8648 fi | |
8649 ;; | |
8650 | |
8651 cygwin* | mingw* | pw32* | cegcc*) | |
8652 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8653 # as there is no search path for DLLs. | |
8654 hardcode_libdir_flag_spec='-L$libdir' | |
8655 export_dynamic_flag_spec='${wl}--export-all-symbols' | |
8656 allow_undefined_flag=unsupported | |
8657 always_export_symbols=no | |
8658 enable_shared_with_static_runtimes=yes | |
8659 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' | |
8660 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
8661 | |
8662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8664 # If the export-symbols file already is a .def file (1st line | |
8665 # is EXPORTS), use it as is; otherwise, prepend... | |
8666 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8667 cp $export_symbols $output_objdir/$soname.def; | |
8668 else | |
8669 echo EXPORTS > $output_objdir/$soname.def; | |
8670 cat $export_symbols >> $output_objdir/$soname.def; | |
8671 fi~ | |
8672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8673 else | |
8674 ld_shlibs=no | |
8675 fi | |
8676 ;; | |
8677 | |
8678 haiku*) | |
8679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8680 link_all_deplibs=yes | |
8681 ;; | |
8682 | |
8683 interix[3-9]*) | |
8684 hardcode_direct=no | |
8685 hardcode_shlibpath_var=no | |
8686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8687 export_dynamic_flag_spec='${wl}-E' | |
8688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8689 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8690 # default) and relocated if they conflict, which is a slow very memory | |
8691 # consuming and fragmenting process. To avoid this, we pick a random, | |
8692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8693 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8694 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8695 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' | |
8696 ;; | |
8697 | |
8698 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
8699 tmp_diet=no | |
8700 if test "$host_os" = linux-dietlibc; then | |
8701 case $cc_basename in | |
8702 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8703 esac | |
8704 fi | |
8705 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8706 && test "$tmp_diet" = no | |
8707 then | |
8708 tmp_addflag=' $pic_flag' | |
8709 tmp_sharedflag='-shared' | |
8710 case $cc_basename,$host_cpu in | |
8711 pgcc*) # Portland Group C compiler | |
8712 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' | |
8713 tmp_addflag=' $pic_flag' | |
8714 ;; | |
8715 pgf77* | pgf90* | pgf95* | pgfortran*) | |
8716 # Portland Group f77 and f90 compilers | |
8717 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' | |
8718 tmp_addflag=' $pic_flag -Mnomain' ;; | |
8719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8720 tmp_addflag=' -i_dynamic' ;; | |
8721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8722 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8723 ifc* | ifort*) # Intel Fortran compiler | |
8724 tmp_addflag=' -nofor_main' ;; | |
8725 lf95*) # Lahey Fortran 8.1 | |
8726 whole_archive_flag_spec= | |
8727 tmp_sharedflag='--shared' ;; | |
8728 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8729 tmp_sharedflag='-qmkshrobj' | |
8730 tmp_addflag= ;; | |
8731 nvcc*) # Cuda Compiler Driver 2.2 | |
8732 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' | |
8733 compiler_needs_object=yes | |
8734 ;; | |
8735 esac | |
8736 case `$CC -V 2>&1 | sed 5q` in | |
8737 *Sun\ C*) # Sun C 5.9 | |
8738 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' | |
8739 compiler_needs_object=yes | |
8740 tmp_sharedflag='-G' ;; | |
8741 *Sun\ F*) # Sun Fortran 8.3 | |
8742 tmp_sharedflag='-G' ;; | |
8743 esac | |
8744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8745 | |
8746 if test "x$supports_anon_versioning" = xyes; then | |
8747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8749 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8751 fi | |
8752 | |
8753 case $cc_basename in | |
8754 xlf* | bgf* | bgxlf* | mpixlf*) | |
8755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8756 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8757 hardcode_libdir_flag_spec= | |
8758 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8759 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
8760 if test "x$supports_anon_versioning" = xyes; then | |
8761 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8763 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8764 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8765 fi | |
8766 ;; | |
8767 esac | |
8768 else | |
8769 ld_shlibs=no | |
8770 fi | |
8771 ;; | |
8772 | |
8773 netbsd*) | |
8774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8775 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8776 wlarc= | |
8777 else | |
8778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8779 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8780 fi | |
8781 ;; | |
8782 | |
8783 solaris*) | |
8784 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8785 ld_shlibs=no | |
8786 cat <<_LT_EOF 1>&2 | |
8787 | |
8788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8789 *** create shared libraries on Solaris systems. Therefore, libtool | |
8790 *** is disabling shared libraries support. We urge you to upgrade GNU | |
8791 *** binutils to release 2.9.1 or newer. Another option is to modify | |
8792 *** your PATH or compiler configuration so that the native linker is | |
8793 *** used, and then restart. | |
8794 | |
8795 _LT_EOF | |
8796 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8798 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8799 else | |
8800 ld_shlibs=no | |
8801 fi | |
8802 ;; | |
8803 | |
8804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8805 case `$LD -v 2>&1` in | |
8806 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8807 ld_shlibs=no | |
8808 cat <<_LT_EOF 1>&2 | |
8809 | |
8810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8811 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8812 *** is disabling shared libraries support. We urge you to upgrade GNU | |
8813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8814 *** your PATH or compiler configuration so that the native linker is | |
8815 *** used, and then restart. | |
8816 | |
8817 _LT_EOF | |
8818 ;; | |
8819 *) | |
8820 # For security reasons, it is highly recommended that you always | |
8821 # use absolute paths for naming shared libraries, and exclude the | |
8822 # DT_RUNPATH tag from executables and libraries. But doing so | |
8823 # requires that you compile everything twice, which is a pain. | |
8824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8828 else | |
8829 ld_shlibs=no | |
8830 fi | |
8831 ;; | |
8832 esac | |
8833 ;; | |
8834 | |
8835 sunos4*) | |
8836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8837 wlarc= | |
8838 hardcode_direct=yes | |
8839 hardcode_shlibpath_var=no | |
8840 ;; | |
8841 | |
8842 *) | |
8843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8846 else | |
8847 ld_shlibs=no | |
8848 fi | |
8849 ;; | |
8850 esac | |
8851 | |
8852 if test "$ld_shlibs" = no; then | |
8853 runpath_var= | |
8854 hardcode_libdir_flag_spec= | |
8855 export_dynamic_flag_spec= | |
8856 whole_archive_flag_spec= | |
8857 fi | |
8858 else | |
8859 # PORTME fill in a description of your system's linker (not GNU ld) | |
8860 case $host_os in | |
8861 aix3*) | |
8862 allow_undefined_flag=unsupported | |
8863 always_export_symbols=yes | |
8864 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' | |
8865 # Note: this linker hardcodes the directories in LIBPATH if there | |
8866 # are no directories specified by -L. | |
8867 hardcode_minus_L=yes | |
8868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8869 # Neither direct hardcoding nor static linking is supported with a | |
8870 # broken collect2. | |
8871 hardcode_direct=unsupported | |
8872 fi | |
8873 ;; | |
8874 | |
8875 aix[4-9]*) | |
8876 if test "$host_cpu" = ia64; then | |
8877 # On IA64, the linker does run time linking by default, so we don't | |
8878 # have to do anything special. | |
8879 aix_use_runtimelinking=no | |
8880 exp_sym_flag='-Bexport' | |
8881 no_entry_flag="" | |
8882 else | |
8883 # If we're using GNU nm, then we don't want the "-C" option. | |
8884 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8885 # Also, AIX nm treats weak defined symbols like other global | |
8886 # defined symbols, whereas GNU nm marks them as "W". | |
8887 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8888 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' | |
8889 else | |
8890 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' | |
8891 fi | |
8892 aix_use_runtimelinking=no | |
8893 | |
8894 # Test if we are trying to use run time linking or normal | |
8895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8896 # need to do runtime linking. | |
8897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8898 for ld_flag in $LDFLAGS; do | |
8899 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8900 aix_use_runtimelinking=yes | |
8901 break | |
8902 fi | |
8903 done | |
8904 ;; | |
8905 esac | |
8906 | |
8907 exp_sym_flag='-bexport' | |
8908 no_entry_flag='-bnoentry' | |
8909 fi | |
8910 | |
8911 # When large executables or shared objects are built, AIX ld can | |
8912 # have problems creating the table of contents. If linking a library | |
8913 # or program results in "error TOC overflow" add -mminimal-toc to | |
8914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8916 | |
8917 archive_cmds='' | |
8918 hardcode_direct=yes | |
8919 hardcode_direct_absolute=yes | |
8920 hardcode_libdir_separator=':' | |
8921 link_all_deplibs=yes | |
8922 file_list_spec='${wl}-f,' | |
8923 | |
8924 if test "$GCC" = yes; then | |
8925 case $host_os in aix4.[012]|aix4.[012].*) | |
8926 # We only want to do this on AIX 4.2 and lower, the check | |
8927 # below for broken collect2 doesn't work under 4.3+ | |
8928 collect2name=`${CC} -print-prog-name=collect2` | |
8929 if test -f "$collect2name" && | |
8930 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8931 then | |
8932 # We have reworked collect2 | |
8933 : | |
8934 else | |
8935 # We have old collect2 | |
8936 hardcode_direct=unsupported | |
8937 # It fails to find uninstalled libraries when the uninstalled | |
8938 # path is not listed in the libpath. Setting hardcode_minus_L | |
8939 # to unsupported forces relinking | |
8940 hardcode_minus_L=yes | |
8941 hardcode_libdir_flag_spec='-L$libdir' | |
8942 hardcode_libdir_separator= | |
8943 fi | |
8944 ;; | |
8945 esac | |
8946 shared_flag='-shared' | |
8947 if test "$aix_use_runtimelinking" = yes; then | |
8948 shared_flag="$shared_flag "'${wl}-G' | |
8949 fi | |
8950 else | |
8951 # not using gcc | |
8952 if test "$host_cpu" = ia64; then | |
8953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8954 # chokes on -Wl,-G. The following line is correct: | |
8955 shared_flag='-G' | |
8956 else | |
8957 if test "$aix_use_runtimelinking" = yes; then | |
8958 shared_flag='${wl}-G' | |
8959 else | |
8960 shared_flag='${wl}-bM:SRE' | |
8961 fi | |
8962 fi | |
8963 fi | |
8964 | |
8965 export_dynamic_flag_spec='${wl}-bexpall' | |
8966 # It seems that -bexpall does not export symbols beginning with | |
8967 # underscore (_), so it is better to generate a list of symbols to export. | |
8968 always_export_symbols=yes | |
8969 if test "$aix_use_runtimelinking" = yes; then | |
8970 # Warning - without using the other runtime loading flags (-brtl), | |
8971 # -berok will link without error, but may produce a broken library. | |
8972 allow_undefined_flag='-berok' | |
8973 # Determine the default libpath from the value encoded in an | |
8974 # empty executable. | |
8975 if test "${lt_cv_aix_libpath+set}" = set; then | |
8976 aix_libpath=$lt_cv_aix_libpath | |
8977 else | |
8978 if ${lt_cv_aix_libpath_+:} false; then : | |
8979 $as_echo_n "(cached) " >&6 | |
8980 else | |
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8982 /* end confdefs.h. */ | |
8983 | |
8984 int | |
8985 main () | |
8986 { | |
8987 | |
8988 ; | |
8989 return 0; | |
8990 } | |
8991 _ACEOF | |
8992 if ac_fn_c_try_link "$LINENO"; then : | |
8993 | |
8994 lt_aix_libpath_sed=' | |
8995 /Import File Strings/,/^$/ { | |
8996 /^0/ { | |
8997 s/^0 *\([^ ]*\) *$/\1/ | |
8998 p | |
8999 } | |
9000 }' | |
9001 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9002 # Check for a 64-bit object if we didn't find anything. | |
9003 if test -z "$lt_cv_aix_libpath_"; then | |
9004 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9005 fi | |
9006 fi | |
9007 rm -f core conftest.err conftest.$ac_objext \ | |
9008 conftest$ac_exeext conftest.$ac_ext | |
9009 if test -z "$lt_cv_aix_libpath_"; then | |
9010 lt_cv_aix_libpath_="/usr/lib:/lib" | |
9011 fi | |
9012 | |
9013 fi | |
9014 | |
9015 aix_libpath=$lt_cv_aix_libpath_ | |
9016 fi | |
9017 | |
9018 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9019 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" | |
9020 else | |
9021 if test "$host_cpu" = ia64; then | |
9022 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9023 allow_undefined_flag="-z nodefs" | |
9024 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" | |
9025 else | |
9026 # Determine the default libpath from the value encoded in an | |
9027 # empty executable. | |
9028 if test "${lt_cv_aix_libpath+set}" = set; then | |
9029 aix_libpath=$lt_cv_aix_libpath | |
9030 else | |
9031 if ${lt_cv_aix_libpath_+:} false; then : | |
9032 $as_echo_n "(cached) " >&6 | |
9033 else | |
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9035 /* end confdefs.h. */ | |
9036 | |
9037 int | |
9038 main () | |
9039 { | |
9040 | |
9041 ; | |
9042 return 0; | |
9043 } | |
9044 _ACEOF | |
9045 if ac_fn_c_try_link "$LINENO"; then : | |
9046 | |
9047 lt_aix_libpath_sed=' | |
9048 /Import File Strings/,/^$/ { | |
9049 /^0/ { | |
9050 s/^0 *\([^ ]*\) *$/\1/ | |
9051 p | |
9052 } | |
9053 }' | |
9054 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9055 # Check for a 64-bit object if we didn't find anything. | |
9056 if test -z "$lt_cv_aix_libpath_"; then | |
9057 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9058 fi | |
9059 fi | |
9060 rm -f core conftest.err conftest.$ac_objext \ | |
9061 conftest$ac_exeext conftest.$ac_ext | |
9062 if test -z "$lt_cv_aix_libpath_"; then | |
9063 lt_cv_aix_libpath_="/usr/lib:/lib" | |
9064 fi | |
9065 | |
9066 fi | |
9067 | |
9068 aix_libpath=$lt_cv_aix_libpath_ | |
9069 fi | |
9070 | |
9071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9072 # Warning - without using the other run time loading flags, | |
9073 # -berok will link without error, but may produce a broken library. | |
9074 no_undefined_flag=' ${wl}-bernotok' | |
9075 allow_undefined_flag=' ${wl}-berok' | |
9076 if test "$with_gnu_ld" = yes; then | |
9077 # We only use this code for GNU lds that support --whole-archive. | |
9078 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9079 else | |
9080 # Exported symbols can be pulled into shared objects from archives | |
9081 whole_archive_flag_spec='$convenience' | |
9082 fi | |
9083 archive_cmds_need_lc=yes | |
9084 # This is similar to how AIX traditionally builds its shared libraries. | |
9085 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' | |
9086 fi | |
9087 fi | |
9088 ;; | |
9089 | |
9090 amigaos*) | |
9091 case $host_cpu in | |
9092 powerpc) | |
9093 # see comment about AmigaOS4 .so support | |
9094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9095 archive_expsym_cmds='' | |
9096 ;; | |
9097 m68k) | |
9098 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)' | |
9099 hardcode_libdir_flag_spec='-L$libdir' | |
9100 hardcode_minus_L=yes | |
9101 ;; | |
9102 esac | |
9103 ;; | |
9104 | |
9105 bsdi[45]*) | |
9106 export_dynamic_flag_spec=-rdynamic | |
9107 ;; | |
9108 | |
9109 cygwin* | mingw* | pw32* | cegcc*) | |
9110 # When not using gcc, we currently assume that we are using | |
9111 # Microsoft Visual C++. | |
9112 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9113 # no search path for DLLs. | |
9114 case $cc_basename in | |
9115 cl*) | |
9116 # Native MSVC | |
9117 hardcode_libdir_flag_spec=' ' | |
9118 allow_undefined_flag=unsupported | |
9119 always_export_symbols=yes | |
9120 file_list_spec='@' | |
9121 # Tell ltmain to make .lib files, not .a files. | |
9122 libext=lib | |
9123 # Tell ltmain to make .dll files, not .so files. | |
9124 shrext_cmds=".dll" | |
9125 # FIXME: Setting linknames here is a bad hack. | |
9126 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9128 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9129 else | |
9130 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9131 fi~ | |
9132 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9133 linknames=' | |
9134 # The linker will not automatically build a static lib if we build a DLL. | |
9135 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9136 enable_shared_with_static_runtimes=yes | |
9137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9138 # Don't use ranlib | |
9139 old_postinstall_cmds='chmod 644 $oldlib' | |
9140 postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9141 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9142 case $lt_outputfile in | |
9143 *.exe|*.EXE) ;; | |
9144 *) | |
9145 lt_outputfile="$lt_outputfile.exe" | |
9146 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9147 ;; | |
9148 esac~ | |
9149 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9150 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9151 $RM "$lt_outputfile.manifest"; | |
9152 fi' | |
9153 ;; | |
9154 *) | |
9155 # Assume MSVC wrapper | |
9156 hardcode_libdir_flag_spec=' ' | |
9157 allow_undefined_flag=unsupported | |
9158 # Tell ltmain to make .lib files, not .a files. | |
9159 libext=lib | |
9160 # Tell ltmain to make .dll files, not .so files. | |
9161 shrext_cmds=".dll" | |
9162 # FIXME: Setting linknames here is a bad hack. | |
9163 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9164 # The linker will automatically build a .lib file if we build a DLL. | |
9165 old_archive_from_new_cmds='true' | |
9166 # FIXME: Should let the user specify the lib program. | |
9167 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9168 enable_shared_with_static_runtimes=yes | |
9169 ;; | |
9170 esac | |
9171 ;; | |
9172 | |
9173 darwin* | rhapsody*) | |
9174 | |
9175 | |
9176 archive_cmds_need_lc=no | |
9177 hardcode_direct=no | |
9178 hardcode_automatic=yes | |
9179 hardcode_shlibpath_var=unsupported | |
9180 if test "$lt_cv_ld_force_load" = "yes"; then | |
9181 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\"`' | |
9182 else | |
9183 whole_archive_flag_spec='' | |
9184 fi | |
9185 link_all_deplibs=yes | |
9186 allow_undefined_flag="$_lt_dar_allow_undefined" | |
9187 case $cc_basename in | |
9188 ifort*) _lt_dar_can_shared=yes ;; | |
9189 *) _lt_dar_can_shared=$GCC ;; | |
9190 esac | |
9191 if test "$_lt_dar_can_shared" = "yes"; then | |
9192 output_verbose_link_cmd=func_echo_all | |
9193 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9194 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9195 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}" | |
9196 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}" | |
9197 | |
9198 else | |
9199 ld_shlibs=no | |
9200 fi | |
9201 | |
9202 ;; | |
9203 | |
9204 dgux*) | |
9205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9206 hardcode_libdir_flag_spec='-L$libdir' | |
9207 hardcode_shlibpath_var=no | |
9208 ;; | |
9209 | |
9210 freebsd1*) | |
9211 ld_shlibs=no | |
9212 ;; | |
9213 | |
9214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9215 # support. Future versions do this automatically, but an explicit c++rt0.o | |
9216 # does not break anything, and helps significantly (at the cost of a little | |
9217 # extra space). | |
9218 freebsd2.2*) | |
9219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9220 hardcode_libdir_flag_spec='-R$libdir' | |
9221 hardcode_direct=yes | |
9222 hardcode_shlibpath_var=no | |
9223 ;; | |
9224 | |
9225 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9226 freebsd2*) | |
9227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9228 hardcode_direct=yes | |
9229 hardcode_minus_L=yes | |
9230 hardcode_shlibpath_var=no | |
9231 ;; | |
9232 | |
9233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9234 freebsd* | dragonfly*) | |
9235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9236 hardcode_libdir_flag_spec='-R$libdir' | |
9237 hardcode_direct=yes | |
9238 hardcode_shlibpath_var=no | |
9239 ;; | |
9240 | |
9241 hpux9*) | |
9242 if test "$GCC" = yes; then | |
9243 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' | |
9244 else | |
9245 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' | |
9246 fi | |
9247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9248 hardcode_libdir_separator=: | |
9249 hardcode_direct=yes | |
9250 | |
9251 # hardcode_minus_L: Not really in the search PATH, | |
9252 # but as the default location of the library. | |
9253 hardcode_minus_L=yes | |
9254 export_dynamic_flag_spec='${wl}-E' | |
9255 ;; | |
9256 | |
9257 hpux10*) | |
9258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9259 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9260 else | |
9261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9262 fi | |
9263 if test "$with_gnu_ld" = no; then | |
9264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9265 hardcode_libdir_flag_spec_ld='+b $libdir' | |
9266 hardcode_libdir_separator=: | |
9267 hardcode_direct=yes | |
9268 hardcode_direct_absolute=yes | |
9269 export_dynamic_flag_spec='${wl}-E' | |
9270 # hardcode_minus_L: Not really in the search PATH, | |
9271 # but as the default location of the library. | |
9272 hardcode_minus_L=yes | |
9273 fi | |
9274 ;; | |
9275 | |
9276 hpux11*) | |
9277 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9278 case $host_cpu in | |
9279 hppa*64*) | |
9280 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9281 ;; | |
9282 ia64*) | |
9283 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9284 ;; | |
9285 *) | |
9286 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9287 ;; | |
9288 esac | |
9289 else | |
9290 case $host_cpu in | |
9291 hppa*64*) | |
9292 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9293 ;; | |
9294 ia64*) | |
9295 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9296 ;; | |
9297 *) | |
9298 | |
9299 # Older versions of the 11.00 compiler do not understand -b yet | |
9300 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9302 $as_echo_n "checking if $CC understands -b... " >&6; } | |
9303 if ${lt_cv_prog_compiler__b+:} false; then : | |
9304 $as_echo_n "(cached) " >&6 | |
9305 else | |
9306 lt_cv_prog_compiler__b=no | |
9307 save_LDFLAGS="$LDFLAGS" | |
9308 LDFLAGS="$LDFLAGS -b" | |
9309 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9311 # The linker can only warn and ignore the option if not recognized | |
9312 # So say no if there are warnings | |
9313 if test -s conftest.err; then | |
9314 # Append any errors to the config.log. | |
9315 cat conftest.err 1>&5 | |
9316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9318 if diff conftest.exp conftest.er2 >/dev/null; then | |
9319 lt_cv_prog_compiler__b=yes | |
9320 fi | |
9321 else | |
9322 lt_cv_prog_compiler__b=yes | |
9323 fi | |
9324 fi | |
9325 $RM -r conftest* | |
9326 LDFLAGS="$save_LDFLAGS" | |
9327 | |
9328 fi | |
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9330 $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9331 | |
9332 if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9333 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9334 else | |
9335 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9336 fi | |
9337 | |
9338 ;; | |
9339 esac | |
9340 fi | |
9341 if test "$with_gnu_ld" = no; then | |
9342 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9343 hardcode_libdir_separator=: | |
9344 | |
9345 case $host_cpu in | |
9346 hppa*64*|ia64*) | |
9347 hardcode_direct=no | |
9348 hardcode_shlibpath_var=no | |
9349 ;; | |
9350 *) | |
9351 hardcode_direct=yes | |
9352 hardcode_direct_absolute=yes | |
9353 export_dynamic_flag_spec='${wl}-E' | |
9354 | |
9355 # hardcode_minus_L: Not really in the search PATH, | |
9356 # but as the default location of the library. | |
9357 hardcode_minus_L=yes | |
9358 ;; | |
9359 esac | |
9360 fi | |
9361 ;; | |
9362 | |
9363 irix5* | irix6* | nonstopux*) | |
9364 if test "$GCC" = yes; then | |
9365 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' | |
9366 # Try to use the -exported_symbol ld option, if it does not | |
9367 # work, assume that -exports_file does not work either and | |
9368 # implicitly export all symbols. | |
9369 # This should be the same for all languages, so no per-tag cache variable. | |
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9371 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9372 if ${lt_cv_irix_exported_symbol+:} false; then : | |
9373 $as_echo_n "(cached) " >&6 | |
9374 else | |
9375 save_LDFLAGS="$LDFLAGS" | |
9376 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9378 /* end confdefs.h. */ | |
9379 int foo (void) { return 0; } | |
9380 _ACEOF | |
9381 if ac_fn_c_try_link "$LINENO"; then : | |
9382 lt_cv_irix_exported_symbol=yes | |
9383 else | |
9384 lt_cv_irix_exported_symbol=no | |
9385 fi | |
9386 rm -f core conftest.err conftest.$ac_objext \ | |
9387 conftest$ac_exeext conftest.$ac_ext | |
9388 LDFLAGS="$save_LDFLAGS" | |
9389 fi | |
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9391 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9392 if test "$lt_cv_irix_exported_symbol" = yes; then | |
9393 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' | |
9394 fi | |
9395 else | |
9396 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' | |
9397 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' | |
9398 fi | |
9399 archive_cmds_need_lc='no' | |
9400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9401 hardcode_libdir_separator=: | |
9402 inherit_rpath=yes | |
9403 link_all_deplibs=yes | |
9404 ;; | |
9405 | |
9406 netbsd*) | |
9407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9409 else | |
9410 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9411 fi | |
9412 hardcode_libdir_flag_spec='-R$libdir' | |
9413 hardcode_direct=yes | |
9414 hardcode_shlibpath_var=no | |
9415 ;; | |
9416 | |
9417 newsos6) | |
9418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9419 hardcode_direct=yes | |
9420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9421 hardcode_libdir_separator=: | |
9422 hardcode_shlibpath_var=no | |
9423 ;; | |
9424 | |
9425 *nto* | *qnx*) | |
9426 ;; | |
9427 | |
9428 openbsd*) | |
9429 if test -f /usr/libexec/ld.so; then | |
9430 hardcode_direct=yes | |
9431 hardcode_shlibpath_var=no | |
9432 hardcode_direct_absolute=yes | |
9433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9435 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9437 export_dynamic_flag_spec='${wl}-E' | |
9438 else | |
9439 case $host_os in | |
9440 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9442 hardcode_libdir_flag_spec='-R$libdir' | |
9443 ;; | |
9444 *) | |
9445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9446 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9447 ;; | |
9448 esac | |
9449 fi | |
9450 else | |
9451 ld_shlibs=no | |
9452 fi | |
9453 ;; | |
9454 | |
9455 os2*) | |
9456 hardcode_libdir_flag_spec='-L$libdir' | |
9457 hardcode_minus_L=yes | |
9458 allow_undefined_flag=unsupported | |
9459 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' | |
9460 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9461 ;; | |
9462 | |
9463 osf3*) | |
9464 if test "$GCC" = yes; then | |
9465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9466 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' | |
9467 else | |
9468 allow_undefined_flag=' -expect_unresolved \*' | |
9469 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' | |
9470 fi | |
9471 archive_cmds_need_lc='no' | |
9472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9473 hardcode_libdir_separator=: | |
9474 ;; | |
9475 | |
9476 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9477 if test "$GCC" = yes; then | |
9478 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9479 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' | |
9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9481 else | |
9482 allow_undefined_flag=' -expect_unresolved \*' | |
9483 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' | |
9484 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~ | |
9485 $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' | |
9486 | |
9487 # Both c and cxx compiler support -rpath directly | |
9488 hardcode_libdir_flag_spec='-rpath $libdir' | |
9489 fi | |
9490 archive_cmds_need_lc='no' | |
9491 hardcode_libdir_separator=: | |
9492 ;; | |
9493 | |
9494 solaris*) | |
9495 no_undefined_flag=' -z defs' | |
9496 if test "$GCC" = yes; then | |
9497 wlarc='${wl}' | |
9498 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9500 $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' | |
9501 else | |
9502 case `$CC -V 2>&1` in | |
9503 *"Compilers 5.0"*) | |
9504 wlarc='' | |
9505 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9506 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9507 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9508 ;; | |
9509 *) | |
9510 wlarc='${wl}' | |
9511 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9512 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9513 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9514 ;; | |
9515 esac | |
9516 fi | |
9517 hardcode_libdir_flag_spec='-R$libdir' | |
9518 hardcode_shlibpath_var=no | |
9519 case $host_os in | |
9520 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9521 *) | |
9522 # The compiler driver will combine and reorder linker options, | |
9523 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9524 # but is careful enough not to reorder. | |
9525 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9526 if test "$GCC" = yes; then | |
9527 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9528 else | |
9529 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9530 fi | |
9531 ;; | |
9532 esac | |
9533 link_all_deplibs=yes | |
9534 ;; | |
9535 | |
9536 sunos4*) | |
9537 if test "x$host_vendor" = xsequent; then | |
9538 # Use $CC to link under sequent, because it throws in some extra .o | |
9539 # files that make .init and .fini sections work. | |
9540 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9541 else | |
9542 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9543 fi | |
9544 hardcode_libdir_flag_spec='-L$libdir' | |
9545 hardcode_direct=yes | |
9546 hardcode_minus_L=yes | |
9547 hardcode_shlibpath_var=no | |
9548 ;; | |
9549 | |
9550 sysv4) | |
9551 case $host_vendor in | |
9552 sni) | |
9553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9554 hardcode_direct=yes # is this really true??? | |
9555 ;; | |
9556 siemens) | |
9557 ## LD is ld it makes a PLAMLIB | |
9558 ## CC just makes a GrossModule. | |
9559 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9560 reload_cmds='$CC -r -o $output$reload_objs' | |
9561 hardcode_direct=no | |
9562 ;; | |
9563 motorola) | |
9564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9566 ;; | |
9567 esac | |
9568 runpath_var='LD_RUN_PATH' | |
9569 hardcode_shlibpath_var=no | |
9570 ;; | |
9571 | |
9572 sysv4.3*) | |
9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9574 hardcode_shlibpath_var=no | |
9575 export_dynamic_flag_spec='-Bexport' | |
9576 ;; | |
9577 | |
9578 sysv4*MP*) | |
9579 if test -d /usr/nec; then | |
9580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9581 hardcode_shlibpath_var=no | |
9582 runpath_var=LD_RUN_PATH | |
9583 hardcode_runpath_var=yes | |
9584 ld_shlibs=yes | |
9585 fi | |
9586 ;; | |
9587 | |
9588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9589 no_undefined_flag='${wl}-z,text' | |
9590 archive_cmds_need_lc=no | |
9591 hardcode_shlibpath_var=no | |
9592 runpath_var='LD_RUN_PATH' | |
9593 | |
9594 if test "$GCC" = yes; then | |
9595 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9596 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9597 else | |
9598 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9599 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9600 fi | |
9601 ;; | |
9602 | |
9603 sysv5* | sco3.2v5* | sco5v6*) | |
9604 # Note: We can NOT use -z defs as we might desire, because we do not | |
9605 # link with -lc, and that would cause any symbols used from libc to | |
9606 # always be unresolved, which means just about no library would | |
9607 # ever link correctly. If we're not using GNU ld we use -z text | |
9608 # though, which does catch some bad symbols but isn't as heavy-handed | |
9609 # as -z defs. | |
9610 no_undefined_flag='${wl}-z,text' | |
9611 allow_undefined_flag='${wl}-z,nodefs' | |
9612 archive_cmds_need_lc=no | |
9613 hardcode_shlibpath_var=no | |
9614 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9615 hardcode_libdir_separator=':' | |
9616 link_all_deplibs=yes | |
9617 export_dynamic_flag_spec='${wl}-Bexport' | |
9618 runpath_var='LD_RUN_PATH' | |
9619 | |
9620 if test "$GCC" = yes; then | |
9621 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9622 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9623 else | |
9624 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9625 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9626 fi | |
9627 ;; | |
9628 | |
9629 uts4*) | |
9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9631 hardcode_libdir_flag_spec='-L$libdir' | |
9632 hardcode_shlibpath_var=no | |
9633 ;; | |
9634 | |
9635 *) | |
9636 ld_shlibs=no | |
9637 ;; | |
9638 esac | |
9639 | |
9640 if test x$host_vendor = xsni; then | |
9641 case $host in | |
9642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9643 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9644 ;; | |
9645 esac | |
9646 fi | |
9647 fi | |
9648 | |
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
9650 $as_echo "$ld_shlibs" >&6; } | |
9651 test "$ld_shlibs" = no && can_build_shared=no | |
9652 | |
9653 with_gnu_ld=$with_gnu_ld | |
9654 | |
9655 | |
9656 | |
9657 | |
9658 | |
9659 | |
9660 | |
9661 | |
9662 | |
9663 | |
9664 | |
9665 | |
9666 | |
9667 | |
9668 | |
9669 # | |
9670 # Do we need to explicitly link libc? | |
9671 # | |
9672 case "x$archive_cmds_need_lc" in | |
9673 x|xyes) | |
9674 # Assume -lc should be added | |
9675 archive_cmds_need_lc=yes | |
9676 | |
9677 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9678 case $archive_cmds in | |
9679 *'~'*) | |
9680 # FIXME: we may have to deal with multi-command sequences. | |
9681 ;; | |
9682 '$CC '*) | |
9683 # Test whether the compiler implicitly links with -lc since on some | |
9684 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9685 # to ld, don't add -lc before -lgcc. | |
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
9687 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9688 if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
9689 $as_echo_n "(cached) " >&6 | |
9690 else | |
9691 $RM conftest* | |
9692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9693 | |
9694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9695 (eval $ac_compile) 2>&5 | |
9696 ac_status=$? | |
9697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9698 test $ac_status = 0; } 2>conftest.err; then | |
9699 soname=conftest | |
9700 lib=conftest | |
9701 libobjs=conftest.$ac_objext | |
9702 deplibs= | |
9703 wl=$lt_prog_compiler_wl | |
9704 pic_flag=$lt_prog_compiler_pic | |
9705 compiler_flags=-v | |
9706 linker_flags=-v | |
9707 verstring= | |
9708 output_objdir=. | |
9709 libname=conftest | |
9710 lt_save_allow_undefined_flag=$allow_undefined_flag | |
9711 allow_undefined_flag= | |
9712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
9713 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9714 ac_status=$? | |
9715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9716 test $ac_status = 0; } | |
9717 then | |
9718 lt_cv_archive_cmds_need_lc=no | |
9719 else | |
9720 lt_cv_archive_cmds_need_lc=yes | |
9721 fi | |
9722 allow_undefined_flag=$lt_save_allow_undefined_flag | |
9723 else | |
9724 cat conftest.err 1>&5 | |
9725 fi | |
9726 $RM conftest* | |
9727 | |
9728 fi | |
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9730 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9731 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
9732 ;; | |
9733 esac | |
9734 fi | |
9735 ;; | |
9736 esac | |
9737 | |
9738 | |
9739 | |
9740 | |
9741 | |
9742 | |
9743 | |
9744 | |
9745 | |
9746 | |
9747 | |
9748 | |
9749 | |
9750 | |
9751 | |
9752 | |
9753 | |
9754 | |
9755 | |
9756 | |
9757 | |
9758 | |
9759 | |
9760 | |
9761 | |
9762 | |
9763 | |
9764 | |
9765 | |
9766 | |
9767 | |
9768 | |
9769 | |
9770 | |
9771 | |
9772 | |
9773 | |
9774 | |
9775 | |
9776 | |
9777 | |
9778 | |
9779 | |
9780 | |
9781 | |
9782 | |
9783 | |
9784 | |
9785 | |
9786 | |
9787 | |
9788 | |
9789 | |
9790 | |
9791 | |
9792 | |
9793 | |
9794 | |
9795 | |
9796 | |
9797 | |
9798 | |
9799 | |
9800 | |
9801 | |
9802 | |
9803 | |
9804 | |
9805 | |
9806 | |
9807 | |
9808 | |
9809 | |
9810 | |
9811 | |
9812 | |
9813 | |
9814 | |
9815 | |
9816 | |
9817 | |
9818 | |
9819 | |
9820 | |
9821 | |
9822 | |
9823 | |
9824 | |
9825 | |
9826 | |
9827 | |
9828 | |
9829 | |
9830 | |
9831 | |
9832 | |
9833 | |
9834 | |
9835 | |
9836 | |
9837 | |
9838 | |
9839 | |
9840 | |
9841 | |
9842 | |
9843 | |
9844 | |
9845 | |
9846 | |
9847 | |
9848 | |
9849 | |
9850 | |
9851 | |
9852 | |
9853 | |
9854 | |
9855 | |
9856 | |
9857 | |
9858 | |
9859 | |
9860 | |
9861 | |
9862 | |
9863 | |
9864 | |
9865 | |
9866 | |
9867 | |
9868 | |
9869 | |
9870 | |
9871 | |
9872 | |
9873 | |
9874 | |
9875 | |
9876 | |
9877 | |
9878 | |
9879 | |
9880 | |
9881 | |
9882 | |
9883 | |
9884 | |
9885 | |
9886 | |
9887 | |
9888 | |
9889 | |
9890 | |
9891 | |
9892 | |
9893 | |
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
9895 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9896 | |
9897 if test "$GCC" = yes; then | |
9898 case $host_os in | |
9899 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9900 *) lt_awk_arg="/^libraries:/" ;; | |
9901 esac | |
9902 case $host_os in | |
9903 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9904 *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9905 esac | |
9906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9907 case $lt_search_path_spec in | |
9908 *\;*) | |
9909 # if the path contains ";" then we assume it to be the separator | |
9910 # otherwise default to the standard path separator (i.e. ":") - it is | |
9911 # assumed that no part of a normal pathname contains ";" but that should | |
9912 # okay in the real world where ";" in dirpaths is itself problematic. | |
9913 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
9914 ;; | |
9915 *) | |
9916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9917 ;; | |
9918 esac | |
9919 # Ok, now we have the path, separated by spaces, we can step through it | |
9920 # and add multilib dir if necessary. | |
9921 lt_tmp_lt_search_path_spec= | |
9922 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9923 for lt_sys_path in $lt_search_path_spec; do | |
9924 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9926 else | |
9927 test -d "$lt_sys_path" && \ | |
9928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9929 fi | |
9930 done | |
9931 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
9932 BEGIN {RS=" "; FS="/|\n";} { | |
9933 lt_foo=""; | |
9934 lt_count=0; | |
9935 for (lt_i = NF; lt_i > 0; lt_i--) { | |
9936 if ($lt_i != "" && $lt_i != ".") { | |
9937 if ($lt_i == "..") { | |
9938 lt_count++; | |
9939 } else { | |
9940 if (lt_count == 0) { | |
9941 lt_foo="/" $lt_i lt_foo; | |
9942 } else { | |
9943 lt_count--; | |
9944 } | |
9945 } | |
9946 } | |
9947 } | |
9948 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9949 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9950 }'` | |
9951 # AWK program above erroneously prepends '/' to C:/dos/paths | |
9952 # for these hosts. | |
9953 case $host_os in | |
9954 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9955 $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9956 esac | |
9957 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
9958 else | |
9959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9960 fi | |
9961 library_names_spec= | |
9962 libname_spec='lib$name' | |
9963 soname_spec= | |
9964 shrext_cmds=".so" | |
9965 postinstall_cmds= | |
9966 postuninstall_cmds= | |
9967 finish_cmds= | |
9968 finish_eval= | |
9969 shlibpath_var= | |
9970 shlibpath_overrides_runpath=unknown | |
9971 version_type=none | |
9972 dynamic_linker="$host_os ld.so" | |
9973 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9974 need_lib_prefix=unknown | |
9975 hardcode_into_libs=no | |
9976 | |
9977 # when you set need_version to no, make sure it does not cause -set_version | |
9978 # flags to be left without arguments | |
9979 need_version=unknown | |
9980 | |
9981 case $host_os in | |
9982 aix3*) | |
9983 version_type=linux | |
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9985 shlibpath_var=LIBPATH | |
9986 | |
9987 # AIX 3 has no versioning support, so we append a major version to the name. | |
9988 soname_spec='${libname}${release}${shared_ext}$major' | |
9989 ;; | |
9990 | |
9991 aix[4-9]*) | |
9992 version_type=linux | |
9993 need_lib_prefix=no | |
9994 need_version=no | |
9995 hardcode_into_libs=yes | |
9996 if test "$host_cpu" = ia64; then | |
9997 # AIX 5 supports IA64 | |
9998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9999 shlibpath_var=LD_LIBRARY_PATH | |
10000 else | |
10001 # With GCC up to 2.95.x, collect2 would create an import file | |
10002 # for dependence libraries. The import file would start with | |
10003 # the line `#! .'. This would cause the generated library to | |
10004 # depend on `.', always an invalid library. This was fixed in | |
10005 # development snapshots of GCC prior to 3.0. | |
10006 case $host_os in | |
10007 aix4 | aix4.[01] | aix4.[01].*) | |
10008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10009 echo ' yes ' | |
10010 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10011 : | |
10012 else | |
10013 can_build_shared=no | |
10014 fi | |
10015 ;; | |
10016 esac | |
10017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10018 # soname into executable. Probably we can add versioning support to | |
10019 # collect2, so additional links can be useful in future. | |
10020 if test "$aix_use_runtimelinking" = yes; then | |
10021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10022 # instead of lib<name>.a to let people know that these are not | |
10023 # typical AIX shared libraries. | |
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10025 else | |
10026 # We preserve .a as extension for shared libraries through AIX4.2 | |
10027 # and later when we are not doing run time linking. | |
10028 library_names_spec='${libname}${release}.a $libname.a' | |
10029 soname_spec='${libname}${release}${shared_ext}$major' | |
10030 fi | |
10031 shlibpath_var=LIBPATH | |
10032 fi | |
10033 ;; | |
10034 | |
10035 amigaos*) | |
10036 case $host_cpu in | |
10037 powerpc) | |
10038 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10039 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10041 ;; | |
10042 m68k) | |
10043 library_names_spec='$libname.ixlibrary $libname.a' | |
10044 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10045 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' | |
10046 ;; | |
10047 esac | |
10048 ;; | |
10049 | |
10050 beos*) | |
10051 library_names_spec='${libname}${shared_ext}' | |
10052 dynamic_linker="$host_os ld.so" | |
10053 shlibpath_var=LIBRARY_PATH | |
10054 ;; | |
10055 | |
10056 bsdi[45]*) | |
10057 version_type=linux | |
10058 need_version=no | |
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10060 soname_spec='${libname}${release}${shared_ext}$major' | |
10061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10062 shlibpath_var=LD_LIBRARY_PATH | |
10063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10065 # the default ld.so.conf also contains /usr/contrib/lib and | |
10066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10067 # libtool to hard-code these into programs | |
10068 ;; | |
10069 | |
10070 cygwin* | mingw* | pw32* | cegcc*) | |
10071 version_type=windows | |
10072 shrext_cmds=".dll" | |
10073 need_version=no | |
10074 need_lib_prefix=no | |
10075 | |
10076 case $GCC,$cc_basename in | |
10077 yes,*) | |
10078 # gcc | |
10079 library_names_spec='$libname.dll.a' | |
10080 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10081 postinstall_cmds='base_file=`basename \${file}`~ | |
10082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10083 dldir=$destdir/`dirname \$dlpath`~ | |
10084 test -d \$dldir || mkdir -p \$dldir~ | |
10085 $install_prog $dir/$dlname \$dldir/$dlname~ | |
10086 chmod a+x \$dldir/$dlname~ | |
10087 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10088 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10089 fi' | |
10090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10091 dlpath=$dir/\$dldll~ | |
10092 $RM \$dlpath' | |
10093 shlibpath_overrides_runpath=yes | |
10094 | |
10095 case $host_os in | |
10096 cygwin*) | |
10097 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10098 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10099 | |
10100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10101 ;; | |
10102 mingw* | cegcc*) | |
10103 # MinGW DLLs use traditional 'lib' prefix | |
10104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10105 ;; | |
10106 pw32*) | |
10107 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10109 ;; | |
10110 esac | |
10111 dynamic_linker='Win32 ld.exe' | |
10112 ;; | |
10113 | |
10114 *,cl*) | |
10115 # Native MSVC | |
10116 libname_spec='$name' | |
10117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10118 library_names_spec='${libname}.dll.lib' | |
10119 | |
10120 case $build_os in | |
10121 mingw*) | |
10122 sys_lib_search_path_spec= | |
10123 lt_save_ifs=$IFS | |
10124 IFS=';' | |
10125 for lt_path in $LIB | |
10126 do | |
10127 IFS=$lt_save_ifs | |
10128 # Let DOS variable expansion print the short 8.3 style file name. | |
10129 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10130 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10131 done | |
10132 IFS=$lt_save_ifs | |
10133 # Convert to MSYS style. | |
10134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10135 ;; | |
10136 cygwin*) | |
10137 # Convert to unix form, then to dos form, then back to unix form | |
10138 # but this time dos style (no spaces!) so that the unix form looks | |
10139 # like /cygdrive/c/PROGRA~1:/cygdr... | |
10140 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10141 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10142 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10143 ;; | |
10144 *) | |
10145 sys_lib_search_path_spec="$LIB" | |
10146 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10147 # It is most probably a Windows format PATH. | |
10148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10149 else | |
10150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10151 fi | |
10152 # FIXME: find the short name or the path components, as spaces are | |
10153 # common. (e.g. "Program Files" -> "PROGRA~1") | |
10154 ;; | |
10155 esac | |
10156 | |
10157 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10158 postinstall_cmds='base_file=`basename \${file}`~ | |
10159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10160 dldir=$destdir/`dirname \$dlpath`~ | |
10161 test -d \$dldir || mkdir -p \$dldir~ | |
10162 $install_prog $dir/$dlname \$dldir/$dlname' | |
10163 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10164 dlpath=$dir/\$dldll~ | |
10165 $RM \$dlpath' | |
10166 shlibpath_overrides_runpath=yes | |
10167 dynamic_linker='Win32 link.exe' | |
10168 ;; | |
10169 | |
10170 *) | |
10171 # Assume MSVC wrapper | |
10172 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10173 dynamic_linker='Win32 ld.exe' | |
10174 ;; | |
10175 esac | |
10176 # FIXME: first we should search . and the directory the executable is in | |
10177 shlibpath_var=PATH | |
10178 ;; | |
10179 | |
10180 darwin* | rhapsody*) | |
10181 dynamic_linker="$host_os dyld" | |
10182 version_type=darwin | |
10183 need_lib_prefix=no | |
10184 need_version=no | |
10185 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10186 soname_spec='${libname}${release}${major}$shared_ext' | |
10187 shlibpath_overrides_runpath=yes | |
10188 shlibpath_var=DYLD_LIBRARY_PATH | |
10189 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10190 | |
10191 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10193 ;; | |
10194 | |
10195 dgux*) | |
10196 version_type=linux | |
10197 need_lib_prefix=no | |
10198 need_version=no | |
10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10200 soname_spec='${libname}${release}${shared_ext}$major' | |
10201 shlibpath_var=LD_LIBRARY_PATH | |
10202 ;; | |
10203 | |
10204 freebsd1*) | |
10205 dynamic_linker=no | |
10206 ;; | |
10207 | |
10208 freebsd* | dragonfly*) | |
10209 # DragonFly does not have aout. When/if they implement a new | |
10210 # versioning mechanism, adjust this. | |
10211 if test -x /usr/bin/objformat; then | |
10212 objformat=`/usr/bin/objformat` | |
10213 else | |
10214 case $host_os in | |
10215 freebsd[123]*) objformat=aout ;; | |
10216 *) objformat=elf ;; | |
10217 esac | |
10218 fi | |
10219 version_type=freebsd-$objformat | |
10220 case $version_type in | |
10221 freebsd-elf*) | |
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10223 need_version=no | |
10224 need_lib_prefix=no | |
10225 ;; | |
10226 freebsd-*) | |
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10228 need_version=yes | |
10229 ;; | |
10230 esac | |
10231 shlibpath_var=LD_LIBRARY_PATH | |
10232 case $host_os in | |
10233 freebsd2*) | |
10234 shlibpath_overrides_runpath=yes | |
10235 ;; | |
10236 freebsd3.[01]* | freebsdelf3.[01]*) | |
10237 shlibpath_overrides_runpath=yes | |
10238 hardcode_into_libs=yes | |
10239 ;; | |
10240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10242 shlibpath_overrides_runpath=no | |
10243 hardcode_into_libs=yes | |
10244 ;; | |
10245 *) # from 4.6 on, and DragonFly | |
10246 shlibpath_overrides_runpath=yes | |
10247 hardcode_into_libs=yes | |
10248 ;; | |
10249 esac | |
10250 ;; | |
10251 | |
10252 gnu*) | |
10253 version_type=linux | |
10254 need_lib_prefix=no | |
10255 need_version=no | |
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10257 soname_spec='${libname}${release}${shared_ext}$major' | |
10258 shlibpath_var=LD_LIBRARY_PATH | |
10259 hardcode_into_libs=yes | |
10260 ;; | |
10261 | |
10262 haiku*) | |
10263 version_type=linux | |
10264 need_lib_prefix=no | |
10265 need_version=no | |
10266 dynamic_linker="$host_os runtime_loader" | |
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10268 soname_spec='${libname}${release}${shared_ext}$major' | |
10269 shlibpath_var=LIBRARY_PATH | |
10270 shlibpath_overrides_runpath=yes | |
10271 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
10272 hardcode_into_libs=yes | |
10273 ;; | |
10274 | |
10275 hpux9* | hpux10* | hpux11*) | |
10276 # Give a soname corresponding to the major version so that dld.sl refuses to | |
10277 # link against other versions. | |
10278 version_type=sunos | |
10279 need_lib_prefix=no | |
10280 need_version=no | |
10281 case $host_cpu in | |
10282 ia64*) | |
10283 shrext_cmds='.so' | |
10284 hardcode_into_libs=yes | |
10285 dynamic_linker="$host_os dld.so" | |
10286 shlibpath_var=LD_LIBRARY_PATH | |
10287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10289 soname_spec='${libname}${release}${shared_ext}$major' | |
10290 if test "X$HPUX_IA64_MODE" = X32; then | |
10291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10292 else | |
10293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10294 fi | |
10295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10296 ;; | |
10297 hppa*64*) | |
10298 shrext_cmds='.sl' | |
10299 hardcode_into_libs=yes | |
10300 dynamic_linker="$host_os dld.sl" | |
10301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10304 soname_spec='${libname}${release}${shared_ext}$major' | |
10305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10307 ;; | |
10308 *) | |
10309 shrext_cmds='.sl' | |
10310 dynamic_linker="$host_os dld.sl" | |
10311 shlibpath_var=SHLIB_PATH | |
10312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10314 soname_spec='${libname}${release}${shared_ext}$major' | |
10315 ;; | |
10316 esac | |
10317 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10318 postinstall_cmds='chmod 555 $lib' | |
10319 # or fails outright, so override atomically: | |
10320 install_override_mode=555 | |
10321 ;; | |
10322 | |
10323 interix[3-9]*) | |
10324 version_type=linux | |
10325 need_lib_prefix=no | |
10326 need_version=no | |
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10328 soname_spec='${libname}${release}${shared_ext}$major' | |
10329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10330 shlibpath_var=LD_LIBRARY_PATH | |
10331 shlibpath_overrides_runpath=no | |
10332 hardcode_into_libs=yes | |
10333 ;; | |
10334 | |
10335 irix5* | irix6* | nonstopux*) | |
10336 case $host_os in | |
10337 nonstopux*) version_type=nonstopux ;; | |
10338 *) | |
10339 if test "$lt_cv_prog_gnu_ld" = yes; then | |
10340 version_type=linux | |
10341 else | |
10342 version_type=irix | |
10343 fi ;; | |
10344 esac | |
10345 need_lib_prefix=no | |
10346 need_version=no | |
10347 soname_spec='${libname}${release}${shared_ext}$major' | |
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10349 case $host_os in | |
10350 irix5* | nonstopux*) | |
10351 libsuff= shlibsuff= | |
10352 ;; | |
10353 *) | |
10354 case $LD in # libtool.m4 will add one of these switches to LD | |
10355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10356 libsuff= shlibsuff= libmagic=32-bit;; | |
10357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10358 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10360 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10361 *) libsuff= shlibsuff= libmagic=never-match;; | |
10362 esac | |
10363 ;; | |
10364 esac | |
10365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10366 shlibpath_overrides_runpath=no | |
10367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10369 hardcode_into_libs=yes | |
10370 ;; | |
10371 | |
10372 # No shared lib support for Linux oldld, aout, or coff. | |
10373 linux*oldld* | linux*aout* | linux*coff*) | |
10374 dynamic_linker=no | |
10375 ;; | |
10376 | |
10377 # This must be Linux ELF. | |
10378 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10379 version_type=linux | |
10380 need_lib_prefix=no | |
10381 need_version=no | |
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10383 soname_spec='${libname}${release}${shared_ext}$major' | |
10384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10385 shlibpath_var=LD_LIBRARY_PATH | |
10386 shlibpath_overrides_runpath=no | |
10387 | |
10388 # Some binutils ld are patched to set DT_RUNPATH | |
10389 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
10390 $as_echo_n "(cached) " >&6 | |
10391 else | |
10392 lt_cv_shlibpath_overrides_runpath=no | |
10393 save_LDFLAGS=$LDFLAGS | |
10394 save_libdir=$libdir | |
10395 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10396 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10398 /* end confdefs.h. */ | |
10399 | |
10400 int | |
10401 main () | |
10402 { | |
10403 | |
10404 ; | |
10405 return 0; | |
10406 } | |
10407 _ACEOF | |
10408 if ac_fn_c_try_link "$LINENO"; then : | |
10409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10410 lt_cv_shlibpath_overrides_runpath=yes | |
10411 fi | |
10412 fi | |
10413 rm -f core conftest.err conftest.$ac_objext \ | |
10414 conftest$ac_exeext conftest.$ac_ext | |
10415 LDFLAGS=$save_LDFLAGS | |
10416 libdir=$save_libdir | |
10417 | |
10418 fi | |
10419 | |
10420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10421 | |
10422 # This implies no fast_install, which is unacceptable. | |
10423 # Some rework will be needed to allow for fast_install | |
10424 # before this can be enabled. | |
10425 hardcode_into_libs=yes | |
10426 | |
10427 # Add ABI-specific directories to the system library path. | |
10428 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
10429 | |
10430 # Append ld.so.conf contents to the search path | |
10431 if test -f /etc/ld.so.conf; then | |
10432 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' ' '` | |
10433 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | |
10434 | |
10435 fi | |
10436 | |
10437 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10438 # powerpc, because MkLinux only supported shared libraries with the | |
10439 # GNU dynamic linker. Since this was broken with cross compilers, | |
10440 # most powerpc-linux boxes support dynamic linking these days and | |
10441 # people can always --disable-shared, the test was removed, and we | |
10442 # assume the GNU/Linux dynamic linker is in use. | |
10443 dynamic_linker='GNU/Linux ld.so' | |
10444 ;; | |
10445 | |
10446 netbsd*) | |
10447 version_type=sunos | |
10448 need_lib_prefix=no | |
10449 need_version=no | |
10450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10453 dynamic_linker='NetBSD (a.out) ld.so' | |
10454 else | |
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10456 soname_spec='${libname}${release}${shared_ext}$major' | |
10457 dynamic_linker='NetBSD ld.elf_so' | |
10458 fi | |
10459 shlibpath_var=LD_LIBRARY_PATH | |
10460 shlibpath_overrides_runpath=yes | |
10461 hardcode_into_libs=yes | |
10462 ;; | |
10463 | |
10464 newsos6) | |
10465 version_type=linux | |
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10467 shlibpath_var=LD_LIBRARY_PATH | |
10468 shlibpath_overrides_runpath=yes | |
10469 ;; | |
10470 | |
10471 *nto* | *qnx*) | |
10472 version_type=qnx | |
10473 need_lib_prefix=no | |
10474 need_version=no | |
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10476 soname_spec='${libname}${release}${shared_ext}$major' | |
10477 shlibpath_var=LD_LIBRARY_PATH | |
10478 shlibpath_overrides_runpath=no | |
10479 hardcode_into_libs=yes | |
10480 dynamic_linker='ldqnx.so' | |
10481 ;; | |
10482 | |
10483 openbsd*) | |
10484 version_type=sunos | |
10485 sys_lib_dlsearch_path_spec="/usr/lib" | |
10486 need_lib_prefix=no | |
10487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10488 case $host_os in | |
10489 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10490 *) need_version=no ;; | |
10491 esac | |
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10494 shlibpath_var=LD_LIBRARY_PATH | |
10495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10496 case $host_os in | |
10497 openbsd2.[89] | openbsd2.[89].*) | |
10498 shlibpath_overrides_runpath=no | |
10499 ;; | |
10500 *) | |
10501 shlibpath_overrides_runpath=yes | |
10502 ;; | |
10503 esac | |
10504 else | |
10505 shlibpath_overrides_runpath=yes | |
10506 fi | |
10507 ;; | |
10508 | |
10509 os2*) | |
10510 libname_spec='$name' | |
10511 shrext_cmds=".dll" | |
10512 need_lib_prefix=no | |
10513 library_names_spec='$libname${shared_ext} $libname.a' | |
10514 dynamic_linker='OS/2 ld.exe' | |
10515 shlibpath_var=LIBPATH | |
10516 ;; | |
10517 | |
10518 osf3* | osf4* | osf5*) | |
10519 version_type=osf | |
10520 need_lib_prefix=no | |
10521 need_version=no | |
10522 soname_spec='${libname}${release}${shared_ext}$major' | |
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10524 shlibpath_var=LD_LIBRARY_PATH | |
10525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10527 ;; | |
10528 | |
10529 rdos*) | |
10530 dynamic_linker=no | |
10531 ;; | |
10532 | |
10533 solaris*) | |
10534 version_type=linux | |
10535 need_lib_prefix=no | |
10536 need_version=no | |
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10538 soname_spec='${libname}${release}${shared_ext}$major' | |
10539 shlibpath_var=LD_LIBRARY_PATH | |
10540 shlibpath_overrides_runpath=yes | |
10541 hardcode_into_libs=yes | |
10542 # ldd complains unless libraries are executable | |
10543 postinstall_cmds='chmod +x $lib' | |
10544 ;; | |
10545 | |
10546 sunos4*) | |
10547 version_type=sunos | |
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10550 shlibpath_var=LD_LIBRARY_PATH | |
10551 shlibpath_overrides_runpath=yes | |
10552 if test "$with_gnu_ld" = yes; then | |
10553 need_lib_prefix=no | |
10554 fi | |
10555 need_version=yes | |
10556 ;; | |
10557 | |
10558 sysv4 | sysv4.3*) | |
10559 version_type=linux | |
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10561 soname_spec='${libname}${release}${shared_ext}$major' | |
10562 shlibpath_var=LD_LIBRARY_PATH | |
10563 case $host_vendor in | |
10564 sni) | |
10565 shlibpath_overrides_runpath=no | |
10566 need_lib_prefix=no | |
10567 runpath_var=LD_RUN_PATH | |
10568 ;; | |
10569 siemens) | |
10570 need_lib_prefix=no | |
10571 ;; | |
10572 motorola) | |
10573 need_lib_prefix=no | |
10574 need_version=no | |
10575 shlibpath_overrides_runpath=no | |
10576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10577 ;; | |
10578 esac | |
10579 ;; | |
10580 | |
10581 sysv4*MP*) | |
10582 if test -d /usr/nec ;then | |
10583 version_type=linux | |
10584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10585 soname_spec='$libname${shared_ext}.$major' | |
10586 shlibpath_var=LD_LIBRARY_PATH | |
10587 fi | |
10588 ;; | |
10589 | |
10590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10591 version_type=freebsd-elf | |
10592 need_lib_prefix=no | |
10593 need_version=no | |
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10595 soname_spec='${libname}${release}${shared_ext}$major' | |
10596 shlibpath_var=LD_LIBRARY_PATH | |
10597 shlibpath_overrides_runpath=yes | |
10598 hardcode_into_libs=yes | |
10599 if test "$with_gnu_ld" = yes; then | |
10600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10601 else | |
10602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10603 case $host_os in | |
10604 sco3.2v5*) | |
10605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10606 ;; | |
10607 esac | |
10608 fi | |
10609 sys_lib_dlsearch_path_spec='/usr/lib' | |
10610 ;; | |
10611 | |
10612 tpf*) | |
10613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10614 version_type=linux | |
10615 need_lib_prefix=no | |
10616 need_version=no | |
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10618 shlibpath_var=LD_LIBRARY_PATH | |
10619 shlibpath_overrides_runpath=no | |
10620 hardcode_into_libs=yes | |
10621 ;; | |
10622 | |
10623 uts4*) | |
10624 version_type=linux | |
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10626 soname_spec='${libname}${release}${shared_ext}$major' | |
10627 shlibpath_var=LD_LIBRARY_PATH | |
10628 ;; | |
10629 | |
10630 *) | |
10631 dynamic_linker=no | |
10632 ;; | |
10633 esac | |
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10635 $as_echo "$dynamic_linker" >&6; } | |
10636 test "$dynamic_linker" = no && can_build_shared=no | |
10637 | |
10638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10639 if test "$GCC" = yes; then | |
10640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10641 fi | |
10642 | |
10643 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10644 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10645 fi | |
10646 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10647 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10648 fi | |
10649 | |
10650 | |
10651 | |
10652 | |
10653 | |
10654 | |
10655 | |
10656 | |
10657 | |
10658 | |
10659 | |
10660 | |
10661 | |
10662 | |
10663 | |
10664 | |
10665 | |
10666 | |
10667 | |
10668 | |
10669 | |
10670 | |
10671 | |
10672 | |
10673 | |
10674 | |
10675 | |
10676 | |
10677 | |
10678 | |
10679 | |
10680 | |
10681 | |
10682 | |
10683 | |
10684 | |
10685 | |
10686 | |
10687 | |
10688 | |
10689 | |
10690 | |
10691 | |
10692 | |
10693 | |
10694 | |
10695 | |
10696 | |
10697 | |
10698 | |
10699 | |
10700 | |
10701 | |
10702 | |
10703 | |
10704 | |
10705 | |
10706 | |
10707 | |
10708 | |
10709 | |
10710 | |
10711 | |
10712 | |
10713 | |
10714 | |
10715 | |
10716 | |
10717 | |
10718 | |
10719 | |
10720 | |
10721 | |
10722 | |
10723 | |
10724 | |
10725 | |
10726 | |
10727 | |
10728 | |
10729 | |
10730 | |
10731 | |
10732 | |
10733 | |
10734 | |
10735 | |
10736 | |
10737 | |
10738 | |
10739 | |
10740 | |
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
10742 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10743 hardcode_action= | |
10744 if test -n "$hardcode_libdir_flag_spec" || | |
10745 test -n "$runpath_var" || | |
10746 test "X$hardcode_automatic" = "Xyes" ; then | |
10747 | |
10748 # We can hardcode non-existent directories. | |
10749 if test "$hardcode_direct" != no && | |
10750 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10751 # have to relink, otherwise we might link with an installed library | |
10752 # when we should be linking with a yet-to-be-installed one | |
10753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10754 test "$hardcode_minus_L" != no; then | |
10755 # Linking always hardcodes the temporary library directory. | |
10756 hardcode_action=relink | |
10757 else | |
10758 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10759 hardcode_action=immediate | |
10760 fi | |
10761 else | |
10762 # We cannot hardcode anything, or else we can only hardcode existing | |
10763 # directories. | |
10764 hardcode_action=unsupported | |
10765 fi | |
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
10767 $as_echo "$hardcode_action" >&6; } | |
10768 | |
10769 if test "$hardcode_action" = relink || | |
10770 test "$inherit_rpath" = yes; then | |
10771 # Fast installation is not supported | |
10772 enable_fast_install=no | |
10773 elif test "$shlibpath_overrides_runpath" = yes || | |
10774 test "$enable_shared" = no; then | |
10775 # Fast installation is not necessary | |
10776 enable_fast_install=needless | |
10777 fi | |
10778 | |
10779 | |
10780 | |
10781 | |
10782 | |
10783 | |
10784 if test "x$enable_dlopen" != xyes; then | |
10785 enable_dlopen=unknown | |
10786 enable_dlopen_self=unknown | |
10787 enable_dlopen_self_static=unknown | |
10788 else | |
10789 lt_cv_dlopen=no | |
10790 lt_cv_dlopen_libs= | |
10791 | |
10792 case $host_os in | |
10793 beos*) | |
10794 lt_cv_dlopen="load_add_on" | |
10795 lt_cv_dlopen_libs= | |
10796 lt_cv_dlopen_self=yes | |
10797 ;; | |
10798 | |
10799 mingw* | pw32* | cegcc*) | |
10800 lt_cv_dlopen="LoadLibrary" | |
10801 lt_cv_dlopen_libs= | |
10802 ;; | |
10803 | |
10804 cygwin*) | |
10805 lt_cv_dlopen="dlopen" | |
10806 lt_cv_dlopen_libs= | |
10807 ;; | |
10808 | |
10809 darwin*) | |
10810 # if libdl is installed we need to link against it | |
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10812 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10813 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
10814 $as_echo_n "(cached) " >&6 | |
10815 else | |
10816 ac_check_lib_save_LIBS=$LIBS | |
10817 LIBS="-ldl $LIBS" | |
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10819 /* end confdefs.h. */ | |
10820 | |
10821 /* Override any GCC internal prototype to avoid an error. | |
10822 Use char because int might match the return type of a GCC | |
10823 builtin and then its argument prototype would still apply. */ | |
10824 #ifdef __cplusplus | |
10825 extern "C" | |
10826 #endif | |
10827 char dlopen (); | |
10828 int | |
10829 main () | |
10830 { | |
10831 return dlopen (); | |
10832 ; | |
10833 return 0; | |
10834 } | |
10835 _ACEOF | |
10836 if ac_fn_c_try_link "$LINENO"; then : | |
10837 ac_cv_lib_dl_dlopen=yes | |
10838 else | |
10839 ac_cv_lib_dl_dlopen=no | |
10840 fi | |
10841 rm -f core conftest.err conftest.$ac_objext \ | |
10842 conftest$ac_exeext conftest.$ac_ext | |
10843 LIBS=$ac_check_lib_save_LIBS | |
10844 fi | |
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10847 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
10848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10849 else | |
10850 | |
10851 lt_cv_dlopen="dyld" | |
10852 lt_cv_dlopen_libs= | |
10853 lt_cv_dlopen_self=yes | |
10854 | |
10855 fi | |
10856 | |
10857 ;; | |
10858 | |
10859 *) | |
10860 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10861 if test "x$ac_cv_func_shl_load" = xyes; then : | |
10862 lt_cv_dlopen="shl_load" | |
10863 else | |
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10865 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10866 if ${ac_cv_lib_dld_shl_load+:} false; then : | |
10867 $as_echo_n "(cached) " >&6 | |
10868 else | |
10869 ac_check_lib_save_LIBS=$LIBS | |
10870 LIBS="-ldld $LIBS" | |
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10872 /* end confdefs.h. */ | |
10873 | |
10874 /* Override any GCC internal prototype to avoid an error. | |
10875 Use char because int might match the return type of a GCC | |
10876 builtin and then its argument prototype would still apply. */ | |
10877 #ifdef __cplusplus | |
10878 extern "C" | |
10879 #endif | |
10880 char shl_load (); | |
10881 int | |
10882 main () | |
10883 { | |
10884 return shl_load (); | |
10885 ; | |
10886 return 0; | |
10887 } | |
10888 _ACEOF | |
10889 if ac_fn_c_try_link "$LINENO"; then : | |
10890 ac_cv_lib_dld_shl_load=yes | |
10891 else | |
10892 ac_cv_lib_dld_shl_load=no | |
10893 fi | |
10894 rm -f core conftest.err conftest.$ac_objext \ | |
10895 conftest$ac_exeext conftest.$ac_ext | |
10896 LIBS=$ac_check_lib_save_LIBS | |
10897 fi | |
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
10899 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10900 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
10901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10902 else | |
10903 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10904 if test "x$ac_cv_func_dlopen" = xyes; then : | |
10905 lt_cv_dlopen="dlopen" | |
10906 else | |
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10908 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10909 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
10910 $as_echo_n "(cached) " >&6 | |
10911 else | |
10912 ac_check_lib_save_LIBS=$LIBS | |
10913 LIBS="-ldl $LIBS" | |
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10915 /* end confdefs.h. */ | |
10916 | |
10917 /* Override any GCC internal prototype to avoid an error. | |
10918 Use char because int might match the return type of a GCC | |
10919 builtin and then its argument prototype would still apply. */ | |
10920 #ifdef __cplusplus | |
10921 extern "C" | |
10922 #endif | |
10923 char dlopen (); | |
10924 int | |
10925 main () | |
10926 { | |
10927 return dlopen (); | |
10928 ; | |
10929 return 0; | |
10930 } | |
10931 _ACEOF | |
10932 if ac_fn_c_try_link "$LINENO"; then : | |
10933 ac_cv_lib_dl_dlopen=yes | |
10934 else | |
10935 ac_cv_lib_dl_dlopen=no | |
10936 fi | |
10937 rm -f core conftest.err conftest.$ac_objext \ | |
10938 conftest$ac_exeext conftest.$ac_ext | |
10939 LIBS=$ac_check_lib_save_LIBS | |
10940 fi | |
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10942 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10943 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
10944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10945 else | |
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
10947 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10948 if ${ac_cv_lib_svld_dlopen+:} false; then : | |
10949 $as_echo_n "(cached) " >&6 | |
10950 else | |
10951 ac_check_lib_save_LIBS=$LIBS | |
10952 LIBS="-lsvld $LIBS" | |
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10954 /* end confdefs.h. */ | |
10955 | |
10956 /* Override any GCC internal prototype to avoid an error. | |
10957 Use char because int might match the return type of a GCC | |
10958 builtin and then its argument prototype would still apply. */ | |
10959 #ifdef __cplusplus | |
10960 extern "C" | |
10961 #endif | |
10962 char dlopen (); | |
10963 int | |
10964 main () | |
10965 { | |
10966 return dlopen (); | |
10967 ; | |
10968 return 0; | |
10969 } | |
10970 _ACEOF | |
10971 if ac_fn_c_try_link "$LINENO"; then : | |
10972 ac_cv_lib_svld_dlopen=yes | |
10973 else | |
10974 ac_cv_lib_svld_dlopen=no | |
10975 fi | |
10976 rm -f core conftest.err conftest.$ac_objext \ | |
10977 conftest$ac_exeext conftest.$ac_ext | |
10978 LIBS=$ac_check_lib_save_LIBS | |
10979 fi | |
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
10981 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10982 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
10983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10984 else | |
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
10986 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10987 if ${ac_cv_lib_dld_dld_link+:} false; then : | |
10988 $as_echo_n "(cached) " >&6 | |
10989 else | |
10990 ac_check_lib_save_LIBS=$LIBS | |
10991 LIBS="-ldld $LIBS" | |
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10993 /* end confdefs.h. */ | |
10994 | |
10995 /* Override any GCC internal prototype to avoid an error. | |
10996 Use char because int might match the return type of a GCC | |
10997 builtin and then its argument prototype would still apply. */ | |
10998 #ifdef __cplusplus | |
10999 extern "C" | |
11000 #endif | |
11001 char dld_link (); | |
11002 int | |
11003 main () | |
11004 { | |
11005 return dld_link (); | |
11006 ; | |
11007 return 0; | |
11008 } | |
11009 _ACEOF | |
11010 if ac_fn_c_try_link "$LINENO"; then : | |
11011 ac_cv_lib_dld_dld_link=yes | |
11012 else | |
11013 ac_cv_lib_dld_dld_link=no | |
11014 fi | |
11015 rm -f core conftest.err conftest.$ac_objext \ | |
11016 conftest$ac_exeext conftest.$ac_ext | |
11017 LIBS=$ac_check_lib_save_LIBS | |
11018 fi | |
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11020 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11021 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11022 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11023 fi | |
11024 | |
11025 | |
11026 fi | |
11027 | |
11028 | |
11029 fi | |
11030 | |
11031 | |
11032 fi | |
11033 | |
11034 | |
11035 fi | |
11036 | |
11037 | |
11038 fi | |
11039 | |
11040 ;; | |
11041 esac | |
11042 | |
11043 if test "x$lt_cv_dlopen" != xno; then | |
11044 enable_dlopen=yes | |
11045 else | |
11046 enable_dlopen=no | |
11047 fi | |
11048 | |
11049 case $lt_cv_dlopen in | |
11050 dlopen) | |
11051 save_CPPFLAGS="$CPPFLAGS" | |
11052 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11053 | |
11054 save_LDFLAGS="$LDFLAGS" | |
11055 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11056 | |
11057 save_LIBS="$LIBS" | |
11058 LIBS="$lt_cv_dlopen_libs $LIBS" | |
11059 | |
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11061 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11062 if ${lt_cv_dlopen_self+:} false; then : | |
11063 $as_echo_n "(cached) " >&6 | |
11064 else | |
11065 if test "$cross_compiling" = yes; then : | |
11066 lt_cv_dlopen_self=cross | |
11067 else | |
11068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11069 lt_status=$lt_dlunknown | |
11070 cat > conftest.$ac_ext <<_LT_EOF | |
11071 #line $LINENO "configure" | |
11072 #include "confdefs.h" | |
11073 | |
11074 #if HAVE_DLFCN_H | |
11075 #include <dlfcn.h> | |
11076 #endif | |
11077 | |
11078 #include <stdio.h> | |
11079 | |
11080 #ifdef RTLD_GLOBAL | |
11081 # define LT_DLGLOBAL RTLD_GLOBAL | |
11082 #else | |
11083 # ifdef DL_GLOBAL | |
11084 # define LT_DLGLOBAL DL_GLOBAL | |
11085 # else | |
11086 # define LT_DLGLOBAL 0 | |
11087 # endif | |
11088 #endif | |
11089 | |
11090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11091 find out it does not work in some platform. */ | |
11092 #ifndef LT_DLLAZY_OR_NOW | |
11093 # ifdef RTLD_LAZY | |
11094 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11095 # else | |
11096 # ifdef DL_LAZY | |
11097 # define LT_DLLAZY_OR_NOW DL_LAZY | |
11098 # else | |
11099 # ifdef RTLD_NOW | |
11100 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11101 # else | |
11102 # ifdef DL_NOW | |
11103 # define LT_DLLAZY_OR_NOW DL_NOW | |
11104 # else | |
11105 # define LT_DLLAZY_OR_NOW 0 | |
11106 # endif | |
11107 # endif | |
11108 # endif | |
11109 # endif | |
11110 #endif | |
11111 | |
11112 /* When -fvisbility=hidden is used, assume the code has been annotated | |
11113 correspondingly for the symbols needed. */ | |
11114 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11115 int fnord () __attribute__((visibility("default"))); | |
11116 #endif | |
11117 | |
11118 int fnord () { return 42; } | |
11119 int main () | |
11120 { | |
11121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11122 int status = $lt_dlunknown; | |
11123 | |
11124 if (self) | |
11125 { | |
11126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11127 else | |
11128 { | |
11129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11130 else puts (dlerror ()); | |
11131 } | |
11132 /* dlclose (self); */ | |
11133 } | |
11134 else | |
11135 puts (dlerror ()); | |
11136 | |
11137 return status; | |
11138 } | |
11139 _LT_EOF | |
11140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11141 (eval $ac_link) 2>&5 | |
11142 ac_status=$? | |
11143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11144 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11145 (./conftest; exit; ) >&5 2>/dev/null | |
11146 lt_status=$? | |
11147 case x$lt_status in | |
11148 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11149 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11150 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11151 esac | |
11152 else : | |
11153 # compilation failed | |
11154 lt_cv_dlopen_self=no | |
11155 fi | |
11156 fi | |
11157 rm -fr conftest* | |
11158 | |
11159 | |
11160 fi | |
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11162 $as_echo "$lt_cv_dlopen_self" >&6; } | |
11163 | |
11164 if test "x$lt_cv_dlopen_self" = xyes; then | |
11165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11167 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11168 if ${lt_cv_dlopen_self_static+:} false; then : | |
11169 $as_echo_n "(cached) " >&6 | |
11170 else | |
11171 if test "$cross_compiling" = yes; then : | |
11172 lt_cv_dlopen_self_static=cross | |
11173 else | |
11174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11175 lt_status=$lt_dlunknown | |
11176 cat > conftest.$ac_ext <<_LT_EOF | |
11177 #line $LINENO "configure" | |
11178 #include "confdefs.h" | |
11179 | |
11180 #if HAVE_DLFCN_H | |
11181 #include <dlfcn.h> | |
11182 #endif | |
11183 | |
11184 #include <stdio.h> | |
11185 | |
11186 #ifdef RTLD_GLOBAL | |
11187 # define LT_DLGLOBAL RTLD_GLOBAL | |
11188 #else | |
11189 # ifdef DL_GLOBAL | |
11190 # define LT_DLGLOBAL DL_GLOBAL | |
11191 # else | |
11192 # define LT_DLGLOBAL 0 | |
11193 # endif | |
11194 #endif | |
11195 | |
11196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11197 find out it does not work in some platform. */ | |
11198 #ifndef LT_DLLAZY_OR_NOW | |
11199 # ifdef RTLD_LAZY | |
11200 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11201 # else | |
11202 # ifdef DL_LAZY | |
11203 # define LT_DLLAZY_OR_NOW DL_LAZY | |
11204 # else | |
11205 # ifdef RTLD_NOW | |
11206 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11207 # else | |
11208 # ifdef DL_NOW | |
11209 # define LT_DLLAZY_OR_NOW DL_NOW | |
11210 # else | |
11211 # define LT_DLLAZY_OR_NOW 0 | |
11212 # endif | |
11213 # endif | |
11214 # endif | |
11215 # endif | |
11216 #endif | |
11217 | |
11218 /* When -fvisbility=hidden is used, assume the code has been annotated | |
11219 correspondingly for the symbols needed. */ | |
11220 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11221 int fnord () __attribute__((visibility("default"))); | |
11222 #endif | |
11223 | |
11224 int fnord () { return 42; } | |
11225 int main () | |
11226 { | |
11227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11228 int status = $lt_dlunknown; | |
11229 | |
11230 if (self) | |
11231 { | |
11232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11233 else | |
11234 { | |
11235 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11236 else puts (dlerror ()); | |
11237 } | |
11238 /* dlclose (self); */ | |
11239 } | |
11240 else | |
11241 puts (dlerror ()); | |
11242 | |
11243 return status; | |
11244 } | |
11245 _LT_EOF | |
11246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11247 (eval $ac_link) 2>&5 | |
11248 ac_status=$? | |
11249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11250 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11251 (./conftest; exit; ) >&5 2>/dev/null | |
11252 lt_status=$? | |
11253 case x$lt_status in | |
11254 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11255 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11256 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11257 esac | |
11258 else : | |
11259 # compilation failed | |
11260 lt_cv_dlopen_self_static=no | |
11261 fi | |
11262 fi | |
11263 rm -fr conftest* | |
11264 | |
11265 | |
11266 fi | |
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11268 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11269 fi | |
11270 | |
11271 CPPFLAGS="$save_CPPFLAGS" | |
11272 LDFLAGS="$save_LDFLAGS" | |
11273 LIBS="$save_LIBS" | |
11274 ;; | |
11275 esac | |
11276 | |
11277 case $lt_cv_dlopen_self in | |
11278 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11279 *) enable_dlopen_self=unknown ;; | |
11280 esac | |
11281 | |
11282 case $lt_cv_dlopen_self_static in | |
11283 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11284 *) enable_dlopen_self_static=unknown ;; | |
11285 esac | |
11286 fi | |
11287 | |
11288 | |
11289 | |
11290 | |
11291 | |
11292 | |
11293 | |
11294 | |
11295 | |
11296 | |
11297 | |
11298 | |
11299 | |
11300 | |
11301 | |
11302 | |
11303 | |
11304 striplib= | |
11305 old_striplib= | |
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11307 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11308 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11309 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11310 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11312 $as_echo "yes" >&6; } | |
11313 else | |
11314 # FIXME - insert some real tests, host_os isn't really good enough | |
11315 case $host_os in | |
11316 darwin*) | |
11317 if test -n "$STRIP" ; then | |
11318 striplib="$STRIP -x" | |
11319 old_striplib="$STRIP -S" | |
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11321 $as_echo "yes" >&6; } | |
11322 else | |
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11324 $as_echo "no" >&6; } | |
11325 fi | |
11326 ;; | |
11327 *) | |
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11329 $as_echo "no" >&6; } | |
11330 ;; | |
11331 esac | |
11332 fi | |
11333 | |
11334 | |
11335 | |
11336 | |
11337 | |
11338 | |
11339 | |
11340 | |
11341 | |
11342 | |
11343 | |
11344 | |
11345 # Report which library types will actually be built | |
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11347 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11349 $as_echo "$can_build_shared" >&6; } | |
11350 | |
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11352 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11353 test "$can_build_shared" = "no" && enable_shared=no | |
11354 | |
11355 # On AIX, shared libraries and static libraries use the same namespace, and | |
11356 # are all built from PIC. | |
11357 case $host_os in | |
11358 aix3*) | |
11359 test "$enable_shared" = yes && enable_static=no | |
11360 if test -n "$RANLIB"; then | |
11361 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11362 postinstall_cmds='$RANLIB $lib' | |
11363 fi | |
11364 ;; | |
11365 | |
11366 aix[4-9]*) | |
11367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11368 test "$enable_shared" = yes && enable_static=no | |
11369 fi | |
11370 ;; | |
11371 esac | |
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11373 $as_echo "$enable_shared" >&6; } | |
11374 | |
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11376 $as_echo_n "checking whether to build static libraries... " >&6; } | |
11377 # Make sure either enable_shared or enable_static is yes. | |
11378 test "$enable_shared" = yes || enable_static=yes | |
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11380 $as_echo "$enable_static" >&6; } | |
11381 | |
11382 | |
11383 | |
11384 | |
11385 fi | |
11386 ac_ext=c | |
11387 ac_cpp='$CPP $CPPFLAGS' | |
11388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11390 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11391 | |
11392 CC="$lt_save_CC" | |
11393 | |
11394 | |
11395 | |
11396 | |
11397 | |
11398 | |
11399 | |
11400 | |
11401 | |
11402 | |
11403 | |
11404 | |
11405 | |
11406 ac_config_commands="$ac_config_commands libtool" | |
11407 | |
11408 | |
11409 | |
11410 | |
11411 # Only expand once: | |
11412 | |
11413 | |
11414 if test "x$CC" != xcc; then | |
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
11416 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
11417 else | |
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
11419 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
11420 fi | |
11421 set dummy $CC; ac_cc=`$as_echo "$2" | | |
11422 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
11423 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : | |
11424 $as_echo_n "(cached) " >&6 | |
11425 else | |
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11427 /* end confdefs.h. */ | |
11428 | |
11429 int | |
11430 main () | |
11431 { | |
11432 | |
11433 ; | |
11434 return 0; | |
11435 } | |
11436 _ACEOF | |
11437 # Make sure it works both with $CC and with simple cc. | |
11438 # We do the test twice because some compilers refuse to overwrite an | |
11439 # existing .o file with -o, though they will create one. | |
11440 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
11441 rm -f conftest2.* | |
11442 if { { case "(($ac_try" in | |
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11444 *) ac_try_echo=$ac_try;; | |
11445 esac | |
11446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11447 $as_echo "$ac_try_echo"; } >&5 | |
11448 (eval "$ac_try") 2>&5 | |
11449 ac_status=$? | |
11450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11451 test $ac_status = 0; } && | |
11452 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11454 *) ac_try_echo=$ac_try;; | |
11455 esac | |
11456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11457 $as_echo "$ac_try_echo"; } >&5 | |
11458 (eval "$ac_try") 2>&5 | |
11459 ac_status=$? | |
11460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11461 test $ac_status = 0; }; | |
11462 then | |
11463 eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
11464 if test "x$CC" != xcc; then | |
11465 # Test first that cc exists at all. | |
11466 if { ac_try='cc -c conftest.$ac_ext >&5' | |
11467 { { case "(($ac_try" in | |
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11469 *) ac_try_echo=$ac_try;; | |
11470 esac | |
11471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11472 $as_echo "$ac_try_echo"; } >&5 | |
11473 (eval "$ac_try") 2>&5 | |
11474 ac_status=$? | |
11475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11476 test $ac_status = 0; }; }; then | |
11477 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
11478 rm -f conftest2.* | |
11479 if { { case "(($ac_try" in | |
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11481 *) ac_try_echo=$ac_try;; | |
11482 esac | |
11483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11484 $as_echo "$ac_try_echo"; } >&5 | |
11485 (eval "$ac_try") 2>&5 | |
11486 ac_status=$? | |
11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11488 test $ac_status = 0; } && | |
11489 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11491 *) ac_try_echo=$ac_try;; | |
11492 esac | |
11493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11494 $as_echo "$ac_try_echo"; } >&5 | |
11495 (eval "$ac_try") 2>&5 | |
11496 ac_status=$? | |
11497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11498 test $ac_status = 0; }; | |
11499 then | |
11500 # cc works too. | |
11501 : | |
11502 else | |
11503 # cc exists but doesn't like -o. | |
11504 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
11505 fi | |
11506 fi | |
11507 fi | |
11508 else | |
11509 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
11510 fi | |
11511 rm -f core conftest* | |
11512 | |
11513 fi | |
11514 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11516 $as_echo "yes" >&6; } | |
11517 else | |
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11519 $as_echo "no" >&6; } | |
11520 | |
11521 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
11522 | |
11523 fi | |
11524 | |
11525 # FIXME: we rely on the cache variable name because | |
11526 # there is no other way. | |
11527 set dummy $CC | |
11528 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
11529 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
11530 if test "$am_t" != yes; then | |
11531 # Losing compiler, so override with the script. | |
11532 # FIXME: It is wrong to rewrite CC. | |
11533 # But if we don't then we get into trouble of one sort or another. | |
11534 # A longer-term fix would be to have automake use am__CC in this case, | |
11535 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
11536 CC="$am_aux_dir/compile $CC" | |
11537 fi | |
11538 | |
11539 | |
11540 | |
11541 ac_config_headers="$ac_config_headers config.h" | |
11542 | |
11543 | |
11544 | |
11545 cflags_save="$CFLAGS" | |
11546 if test -z "$GCC"; then | |
11547 case $host in | |
11548 *-*-irix*) | |
11549 DEBUG="-g -signed" | |
11550 CFLAGS="-O2 -w -signed" | |
11551 PROFILE="-p -g3 -O2 -signed" | |
11552 ;; | |
11553 sparc-sun-solaris*) | |
11554 DEBUG="-v -g" | |
11555 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92" | |
11556 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" | |
11557 ;; | |
11558 *) | |
11559 DEBUG="-g" | |
11560 CFLAGS="-O" | |
11561 PROFILE="-g -p" | |
11562 ;; | |
11563 esac | |
11564 else | |
11565 case $host in | |
11566 *-*-linux*) | |
11567 DEBUG="-g -Wall -fsigned-char" | |
11568 CFLAGS="-O20 -Wall -ffast-math -fsigned-char" | |
11569 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char" | |
11570 ;; | |
11571 sparc-sun-*) | |
11572 DEBUG="-g -Wall -fsigned-char" | |
11573 CFLAGS="-O20 -ffast-math -fsigned-char" | |
11574 PROFILE="-pg -g -O20 -fsigned-char" | |
11575 ;; | |
11576 *-*-darwin*) | |
11577 DEBUG="-fno-common -g -Wall -fsigned-char" | |
11578 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math" | |
11579 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math" | |
11580 ;; | |
11581 *) | |
11582 DEBUG="-g -Wall -fsigned-char" | |
11583 CFLAGS="-O20 -fsigned-char" | |
11584 PROFILE="-O20 -g -pg -fsigned-char" | |
11585 ;; | |
11586 esac | |
11587 fi | |
11588 CFLAGS="$CFLAGS $cflags_save" | |
11589 DEBUG="$DEBUG $cflags_save" | |
11590 PROFILE="$PROFILE $cflags_save" | |
11591 | |
11592 | |
11593 | |
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
11595 $as_echo_n "checking for ANSI C header files... " >&6; } | |
11596 if ${ac_cv_header_stdc+:} false; then : | |
11597 $as_echo_n "(cached) " >&6 | |
11598 else | |
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11600 /* end confdefs.h. */ | |
11601 #include <stdlib.h> | |
11602 #include <stdarg.h> | |
11603 #include <string.h> | |
11604 #include <float.h> | |
11605 | |
11606 int | |
11607 main () | |
11608 { | |
11609 | |
11610 ; | |
11611 return 0; | |
11612 } | |
11613 _ACEOF | |
11614 if ac_fn_c_try_compile "$LINENO"; then : | |
11615 ac_cv_header_stdc=yes | |
11616 else | |
11617 ac_cv_header_stdc=no | |
11618 fi | |
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11620 | |
11621 if test $ac_cv_header_stdc = yes; then | |
11622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11624 /* end confdefs.h. */ | |
11625 #include <string.h> | |
11626 | |
11627 _ACEOF | |
11628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11629 $EGREP "memchr" >/dev/null 2>&1; then : | |
11630 | |
11631 else | |
11632 ac_cv_header_stdc=no | |
11633 fi | |
11634 rm -f conftest* | |
11635 | |
11636 fi | |
11637 | |
11638 if test $ac_cv_header_stdc = yes; then | |
11639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11641 /* end confdefs.h. */ | |
11642 #include <stdlib.h> | |
11643 | |
11644 _ACEOF | |
11645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11646 $EGREP "free" >/dev/null 2>&1; then : | |
11647 | |
11648 else | |
11649 ac_cv_header_stdc=no | |
11650 fi | |
11651 rm -f conftest* | |
11652 | |
11653 fi | |
11654 | |
11655 if test $ac_cv_header_stdc = yes; then | |
11656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11657 if test "$cross_compiling" = yes; then : | |
11658 : | |
11659 else | |
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11661 /* end confdefs.h. */ | |
11662 #include <ctype.h> | |
11663 #include <stdlib.h> | |
11664 #if ((' ' & 0x0FF) == 0x020) | |
11665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11667 #else | |
11668 # define ISLOWER(c) \ | |
11669 (('a' <= (c) && (c) <= 'i') \ | |
11670 || ('j' <= (c) && (c) <= 'r') \ | |
11671 || ('s' <= (c) && (c) <= 'z')) | |
11672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11673 #endif | |
11674 | |
11675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11676 int | |
11677 main () | |
11678 { | |
11679 int i; | |
11680 for (i = 0; i < 256; i++) | |
11681 if (XOR (islower (i), ISLOWER (i)) | |
11682 || toupper (i) != TOUPPER (i)) | |
11683 return 2; | |
11684 return 0; | |
11685 } | |
11686 _ACEOF | |
11687 if ac_fn_c_try_run "$LINENO"; then : | |
11688 | |
11689 else | |
11690 ac_cv_header_stdc=no | |
11691 fi | |
11692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
11693 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
11694 fi | |
11695 | |
11696 fi | |
11697 fi | |
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
11699 $as_echo "$ac_cv_header_stdc" >&6; } | |
11700 if test $ac_cv_header_stdc = yes; then | |
11701 | |
11702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
11703 | |
11704 fi | |
11705 | |
11706 INCLUDE_INTTYPES_H=0 | |
11707 INCLUDE_STDINT_H=0 | |
11708 INCLUDE_SYS_TYPES_H=0 | |
11709 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
11710 if test "x$ac_cv_header_inttypes_h" = xyes; then : | |
11711 INCLUDE_INTTYPES_H=1 | |
11712 fi | |
11713 | |
11714 | |
11715 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
11716 if test "x$ac_cv_header_stdint_h" = xyes; then : | |
11717 INCLUDE_STDINT_H=1 | |
11718 fi | |
11719 | |
11720 | |
11721 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" | |
11722 if test "x$ac_cv_header_sys_types_h" = xyes; then : | |
11723 INCLUDE_SYS_TYPES_H=1 | |
11724 fi | |
11725 | |
11726 | |
11727 | |
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
11729 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
11730 if ${ac_cv_c_const+:} false; then : | |
11731 $as_echo_n "(cached) " >&6 | |
11732 else | |
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11734 /* end confdefs.h. */ | |
11735 | |
11736 int | |
11737 main () | |
11738 { | |
11739 /* FIXME: Include the comments suggested by Paul. */ | |
11740 #ifndef __cplusplus | |
11741 /* Ultrix mips cc rejects this. */ | |
11742 typedef int charset[2]; | |
11743 const charset cs; | |
11744 /* SunOS 4.1.1 cc rejects this. */ | |
11745 char const *const *pcpcc; | |
11746 char **ppc; | |
11747 /* NEC SVR4.0.2 mips cc rejects this. */ | |
11748 struct point {int x, y;}; | |
11749 static struct point const zero = {0,0}; | |
11750 /* AIX XL C 1.02.0.0 rejects this. | |
11751 It does not let you subtract one const X* pointer from another in | |
11752 an arm of an if-expression whose if-part is not a constant | |
11753 expression */ | |
11754 const char *g = "string"; | |
11755 pcpcc = &g + (g ? g-g : 0); | |
11756 /* HPUX 7.0 cc rejects these. */ | |
11757 ++pcpcc; | |
11758 ppc = (char**) pcpcc; | |
11759 pcpcc = (char const *const *) ppc; | |
11760 { /* SCO 3.2v4 cc rejects this. */ | |
11761 char *t; | |
11762 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11763 | |
11764 *t++ = 0; | |
11765 if (s) return 0; | |
11766 } | |
11767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11768 int x[] = {25, 17}; | |
11769 const int *foo = &x[0]; | |
11770 ++foo; | |
11771 } | |
11772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11773 typedef const int *iptr; | |
11774 iptr p = 0; | |
11775 ++p; | |
11776 } | |
11777 { /* AIX XL C 1.02.0.0 rejects this saying | |
11778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11779 struct s { int j; const int *ap[3]; }; | |
11780 struct s *b; b->j = 5; | |
11781 } | |
11782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11783 const int foo = 10; | |
11784 if (!foo) return 0; | |
11785 } | |
11786 return !cs[0] && !zero.x; | |
11787 #endif | |
11788 | |
11789 ; | |
11790 return 0; | |
11791 } | |
11792 _ACEOF | |
11793 if ac_fn_c_try_compile "$LINENO"; then : | |
11794 ac_cv_c_const=yes | |
11795 else | |
11796 ac_cv_c_const=no | |
11797 fi | |
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11799 fi | |
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
11801 $as_echo "$ac_cv_c_const" >&6; } | |
11802 if test $ac_cv_c_const = no; then | |
11803 | |
11804 $as_echo "#define const /**/" >>confdefs.h | |
11805 | |
11806 fi | |
11807 | |
11808 | |
11809 | |
11810 # The cast to long int works around a bug in the HP C Compiler | |
11811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11813 # This bug is HP SR number 8606223364. | |
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5 | |
11815 $as_echo_n "checking size of int16_t... " >&6; } | |
11816 if ${ac_cv_sizeof_int16_t+:} false; then : | |
11817 $as_echo_n "(cached) " >&6 | |
11818 else | |
11819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then : | |
11820 | |
11821 else | |
11822 if test "$ac_cv_type_int16_t" = yes; then | |
11823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11825 as_fn_error 77 "cannot compute sizeof (int16_t) | |
11826 See \`config.log' for more details" "$LINENO" 5; } | |
11827 else | |
11828 ac_cv_sizeof_int16_t=0 | |
11829 fi | |
11830 fi | |
11831 | |
11832 fi | |
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5 | |
11834 $as_echo "$ac_cv_sizeof_int16_t" >&6; } | |
11835 | |
11836 | |
11837 | |
11838 cat >>confdefs.h <<_ACEOF | |
11839 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t | |
11840 _ACEOF | |
11841 | |
11842 | |
11843 # The cast to long int works around a bug in the HP C Compiler | |
11844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11846 # This bug is HP SR number 8606223364. | |
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5 | |
11848 $as_echo_n "checking size of uint16_t... " >&6; } | |
11849 if ${ac_cv_sizeof_uint16_t+:} false; then : | |
11850 $as_echo_n "(cached) " >&6 | |
11851 else | |
11852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then : | |
11853 | |
11854 else | |
11855 if test "$ac_cv_type_uint16_t" = yes; then | |
11856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11858 as_fn_error 77 "cannot compute sizeof (uint16_t) | |
11859 See \`config.log' for more details" "$LINENO" 5; } | |
11860 else | |
11861 ac_cv_sizeof_uint16_t=0 | |
11862 fi | |
11863 fi | |
11864 | |
11865 fi | |
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5 | |
11867 $as_echo "$ac_cv_sizeof_uint16_t" >&6; } | |
11868 | |
11869 | |
11870 | |
11871 cat >>confdefs.h <<_ACEOF | |
11872 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t | |
11873 _ACEOF | |
11874 | |
11875 | |
11876 # The cast to long int works around a bug in the HP C Compiler | |
11877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11879 # This bug is HP SR number 8606223364. | |
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5 | |
11881 $as_echo_n "checking size of u_int16_t... " >&6; } | |
11882 if ${ac_cv_sizeof_u_int16_t+:} false; then : | |
11883 $as_echo_n "(cached) " >&6 | |
11884 else | |
11885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then : | |
11886 | |
11887 else | |
11888 if test "$ac_cv_type_u_int16_t" = yes; then | |
11889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11891 as_fn_error 77 "cannot compute sizeof (u_int16_t) | |
11892 See \`config.log' for more details" "$LINENO" 5; } | |
11893 else | |
11894 ac_cv_sizeof_u_int16_t=0 | |
11895 fi | |
11896 fi | |
11897 | |
11898 fi | |
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5 | |
11900 $as_echo "$ac_cv_sizeof_u_int16_t" >&6; } | |
11901 | |
11902 | |
11903 | |
11904 cat >>confdefs.h <<_ACEOF | |
11905 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t | |
11906 _ACEOF | |
11907 | |
11908 | |
11909 # The cast to long int works around a bug in the HP C Compiler | |
11910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11912 # This bug is HP SR number 8606223364. | |
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5 | |
11914 $as_echo_n "checking size of int32_t... " >&6; } | |
11915 if ${ac_cv_sizeof_int32_t+:} false; then : | |
11916 $as_echo_n "(cached) " >&6 | |
11917 else | |
11918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then : | |
11919 | |
11920 else | |
11921 if test "$ac_cv_type_int32_t" = yes; then | |
11922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11924 as_fn_error 77 "cannot compute sizeof (int32_t) | |
11925 See \`config.log' for more details" "$LINENO" 5; } | |
11926 else | |
11927 ac_cv_sizeof_int32_t=0 | |
11928 fi | |
11929 fi | |
11930 | |
11931 fi | |
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5 | |
11933 $as_echo "$ac_cv_sizeof_int32_t" >&6; } | |
11934 | |
11935 | |
11936 | |
11937 cat >>confdefs.h <<_ACEOF | |
11938 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t | |
11939 _ACEOF | |
11940 | |
11941 | |
11942 # The cast to long int works around a bug in the HP C Compiler | |
11943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11945 # This bug is HP SR number 8606223364. | |
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5 | |
11947 $as_echo_n "checking size of uint32_t... " >&6; } | |
11948 if ${ac_cv_sizeof_uint32_t+:} false; then : | |
11949 $as_echo_n "(cached) " >&6 | |
11950 else | |
11951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then : | |
11952 | |
11953 else | |
11954 if test "$ac_cv_type_uint32_t" = yes; then | |
11955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11957 as_fn_error 77 "cannot compute sizeof (uint32_t) | |
11958 See \`config.log' for more details" "$LINENO" 5; } | |
11959 else | |
11960 ac_cv_sizeof_uint32_t=0 | |
11961 fi | |
11962 fi | |
11963 | |
11964 fi | |
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5 | |
11966 $as_echo "$ac_cv_sizeof_uint32_t" >&6; } | |
11967 | |
11968 | |
11969 | |
11970 cat >>confdefs.h <<_ACEOF | |
11971 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t | |
11972 _ACEOF | |
11973 | |
11974 | |
11975 # The cast to long int works around a bug in the HP C Compiler | |
11976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11978 # This bug is HP SR number 8606223364. | |
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5 | |
11980 $as_echo_n "checking size of u_int32_t... " >&6; } | |
11981 if ${ac_cv_sizeof_u_int32_t+:} false; then : | |
11982 $as_echo_n "(cached) " >&6 | |
11983 else | |
11984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then : | |
11985 | |
11986 else | |
11987 if test "$ac_cv_type_u_int32_t" = yes; then | |
11988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11990 as_fn_error 77 "cannot compute sizeof (u_int32_t) | |
11991 See \`config.log' for more details" "$LINENO" 5; } | |
11992 else | |
11993 ac_cv_sizeof_u_int32_t=0 | |
11994 fi | |
11995 fi | |
11996 | |
11997 fi | |
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5 | |
11999 $as_echo "$ac_cv_sizeof_u_int32_t" >&6; } | |
12000 | |
12001 | |
12002 | |
12003 cat >>confdefs.h <<_ACEOF | |
12004 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t | |
12005 _ACEOF | |
12006 | |
12007 | |
12008 # The cast to long int works around a bug in the HP C Compiler | |
12009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12011 # This bug is HP SR number 8606223364. | |
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5 | |
12013 $as_echo_n "checking size of int64_t... " >&6; } | |
12014 if ${ac_cv_sizeof_int64_t+:} false; then : | |
12015 $as_echo_n "(cached) " >&6 | |
12016 else | |
12017 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then : | |
12018 | |
12019 else | |
12020 if test "$ac_cv_type_int64_t" = yes; then | |
12021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12023 as_fn_error 77 "cannot compute sizeof (int64_t) | |
12024 See \`config.log' for more details" "$LINENO" 5; } | |
12025 else | |
12026 ac_cv_sizeof_int64_t=0 | |
12027 fi | |
12028 fi | |
12029 | |
12030 fi | |
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5 | |
12032 $as_echo "$ac_cv_sizeof_int64_t" >&6; } | |
12033 | |
12034 | |
12035 | |
12036 cat >>confdefs.h <<_ACEOF | |
12037 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t | |
12038 _ACEOF | |
12039 | |
12040 | |
12041 # The cast to long int works around a bug in the HP C Compiler | |
12042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12044 # This bug is HP SR number 8606223364. | |
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
12046 $as_echo_n "checking size of short... " >&6; } | |
12047 if ${ac_cv_sizeof_short+:} false; then : | |
12048 $as_echo_n "(cached) " >&6 | |
12049 else | |
12050 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
12051 | |
12052 else | |
12053 if test "$ac_cv_type_short" = yes; then | |
12054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12056 as_fn_error 77 "cannot compute sizeof (short) | |
12057 See \`config.log' for more details" "$LINENO" 5; } | |
12058 else | |
12059 ac_cv_sizeof_short=0 | |
12060 fi | |
12061 fi | |
12062 | |
12063 fi | |
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
12065 $as_echo "$ac_cv_sizeof_short" >&6; } | |
12066 | |
12067 | |
12068 | |
12069 cat >>confdefs.h <<_ACEOF | |
12070 #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12071 _ACEOF | |
12072 | |
12073 | |
12074 # The cast to long int works around a bug in the HP C Compiler | |
12075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12077 # This bug is HP SR number 8606223364. | |
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
12079 $as_echo_n "checking size of int... " >&6; } | |
12080 if ${ac_cv_sizeof_int+:} false; then : | |
12081 $as_echo_n "(cached) " >&6 | |
12082 else | |
12083 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
12084 | |
12085 else | |
12086 if test "$ac_cv_type_int" = yes; then | |
12087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12089 as_fn_error 77 "cannot compute sizeof (int) | |
12090 See \`config.log' for more details" "$LINENO" 5; } | |
12091 else | |
12092 ac_cv_sizeof_int=0 | |
12093 fi | |
12094 fi | |
12095 | |
12096 fi | |
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
12098 $as_echo "$ac_cv_sizeof_int" >&6; } | |
12099 | |
12100 | |
12101 | |
12102 cat >>confdefs.h <<_ACEOF | |
12103 #define SIZEOF_INT $ac_cv_sizeof_int | |
12104 _ACEOF | |
12105 | |
12106 | |
12107 # The cast to long int works around a bug in the HP C Compiler | |
12108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12110 # This bug is HP SR number 8606223364. | |
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12112 $as_echo_n "checking size of long... " >&6; } | |
12113 if ${ac_cv_sizeof_long+:} false; then : | |
12114 $as_echo_n "(cached) " >&6 | |
12115 else | |
12116 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12117 | |
12118 else | |
12119 if test "$ac_cv_type_long" = yes; then | |
12120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12122 as_fn_error 77 "cannot compute sizeof (long) | |
12123 See \`config.log' for more details" "$LINENO" 5; } | |
12124 else | |
12125 ac_cv_sizeof_long=0 | |
12126 fi | |
12127 fi | |
12128 | |
12129 fi | |
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
12131 $as_echo "$ac_cv_sizeof_long" >&6; } | |
12132 | |
12133 | |
12134 | |
12135 cat >>confdefs.h <<_ACEOF | |
12136 #define SIZEOF_LONG $ac_cv_sizeof_long | |
12137 _ACEOF | |
12138 | |
12139 | |
12140 # The cast to long int works around a bug in the HP C Compiler | |
12141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12143 # This bug is HP SR number 8606223364. | |
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
12145 $as_echo_n "checking size of long long... " >&6; } | |
12146 if ${ac_cv_sizeof_long_long+:} false; then : | |
12147 $as_echo_n "(cached) " >&6 | |
12148 else | |
12149 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
12150 | |
12151 else | |
12152 if test "$ac_cv_type_long_long" = yes; then | |
12153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12155 as_fn_error 77 "cannot compute sizeof (long long) | |
12156 See \`config.log' for more details" "$LINENO" 5; } | |
12157 else | |
12158 ac_cv_sizeof_long_long=0 | |
12159 fi | |
12160 fi | |
12161 | |
12162 fi | |
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
12164 $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
12165 | |
12166 | |
12167 | |
12168 cat >>confdefs.h <<_ACEOF | |
12169 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
12170 _ACEOF | |
12171 | |
12172 | |
12173 | |
12174 case 2 in | |
12175 $ac_cv_sizeof_short) SIZE16="short";; | |
12176 $ac_cv_sizeof_int) SIZE16="int";; | |
12177 $ac_cv_sizeof_int16_t) SIZE16="int16_t";; | |
12178 esac | |
12179 | |
12180 case 2 in | |
12181 $ac_cv_sizeof_short) USIZE16="unsigned short";; | |
12182 $ac_cv_sizeof_int) USIZE16="unsigned int";; | |
12183 $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";; | |
12184 $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";; | |
12185 esac | |
12186 | |
12187 case 4 in | |
12188 $ac_cv_sizeof_short) SIZE32="short";; | |
12189 $ac_cv_sizeof_int) SIZE32="int";; | |
12190 $ac_cv_sizeof_long) SIZE32="long";; | |
12191 $ac_cv_sizeof_int32_t) SIZE32="int32_t";; | |
12192 esac | |
12193 | |
12194 case 4 in | |
12195 $ac_cv_sizeof_short) USIZE32="unsigned short";; | |
12196 $ac_cv_sizeof_int) USIZE32="unsigned int";; | |
12197 $ac_cv_sizeof_long) USIZE32="unsigned long";; | |
12198 $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";; | |
12199 $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";; | |
12200 esac | |
12201 | |
12202 case 8 in | |
12203 $ac_cv_sizeof_int) SIZE64="int";; | |
12204 $ac_cv_sizeof_long) SIZE64="long";; | |
12205 $ac_cv_sizeof_long_long) SIZE64="long long";; | |
12206 $ac_cv_sizeof_int64_t) SIZE64="int64_t";; | |
12207 esac | |
12208 | |
12209 if test -z "$SIZE16"; then | |
12210 as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5 | |
12211 fi | |
12212 if test -z "$USIZE16"; then | |
12213 as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5 | |
12214 fi | |
12215 if test -z "$SIZE32"; then | |
12216 as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5 | |
12217 fi | |
12218 if test -z "$USIZE32"; then | |
12219 as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5 | |
12220 fi | |
12221 if test -z "$SIZE64"; then | |
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5 | |
12223 $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;} | |
12224 fi | |
12225 | |
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 | |
12227 $as_echo_n "checking for working memcmp... " >&6; } | |
12228 if ${ac_cv_func_memcmp_working+:} false; then : | |
12229 $as_echo_n "(cached) " >&6 | |
12230 else | |
12231 if test "$cross_compiling" = yes; then : | |
12232 ac_cv_func_memcmp_working=no | |
12233 else | |
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12235 /* end confdefs.h. */ | |
12236 $ac_includes_default | |
12237 int | |
12238 main () | |
12239 { | |
12240 | |
12241 /* Some versions of memcmp are not 8-bit clean. */ | |
12242 char c0 = '\100', c1 = '\200', c2 = '\201'; | |
12243 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
12244 return 1; | |
12245 | |
12246 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
12247 or more and with at least one buffer not starting on a 4-byte boundary. | |
12248 William Lewis provided this test program. */ | |
12249 { | |
12250 char foo[21]; | |
12251 char bar[21]; | |
12252 int i; | |
12253 for (i = 0; i < 4; i++) | |
12254 { | |
12255 char *a = foo + i; | |
12256 char *b = bar + i; | |
12257 strcpy (a, "--------01111111"); | |
12258 strcpy (b, "--------10000000"); | |
12259 if (memcmp (a, b, 16) >= 0) | |
12260 return 1; | |
12261 } | |
12262 return 0; | |
12263 } | |
12264 | |
12265 ; | |
12266 return 0; | |
12267 } | |
12268 _ACEOF | |
12269 if ac_fn_c_try_run "$LINENO"; then : | |
12270 ac_cv_func_memcmp_working=yes | |
12271 else | |
12272 ac_cv_func_memcmp_working=no | |
12273 fi | |
12274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12275 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12276 fi | |
12277 | |
12278 fi | |
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 | |
12280 $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
12281 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
12282 *" memcmp.$ac_objext "* ) ;; | |
12283 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
12284 ;; | |
12285 esac | |
12286 | |
12287 | |
12288 | |
12289 | |
12290 | |
12291 | |
12292 | |
12293 | |
12294 | |
12295 | |
12296 | |
12297 | |
12298 | |
12299 | |
12300 | |
12301 | |
12302 | |
12303 | |
12304 | |
12305 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc" | |
12306 | |
12307 cat >confcache <<\_ACEOF | |
12308 # This file is a shell script that caches the results of configure | |
12309 # tests run on this system so they can be shared between configure | |
12310 # scripts and configure runs, see configure's option --config-cache. | |
12311 # It is not useful on other systems. If it contains results you don't | |
12312 # want to keep, you may remove or edit it. | |
12313 # | |
12314 # config.status only pays attention to the cache file if you give it | |
12315 # the --recheck option to rerun configure. | |
12316 # | |
12317 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12318 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12319 # following values. | |
12320 | |
12321 _ACEOF | |
12322 | |
12323 # The following way of writing the cache mishandles newlines in values, | |
12324 # but we know of no workaround that is simple, portable, and efficient. | |
12325 # So, we kill variables containing newlines. | |
12326 # Ultrix sh set writes to stderr and can't be redirected directly, | |
12327 # and sets the high bit in the cache file unless we assign to the vars. | |
12328 ( | |
12329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12330 eval ac_val=\$$ac_var | |
12331 case $ac_val in #( | |
12332 *${as_nl}*) | |
12333 case $ac_var in #( | |
12334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
12335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
12336 esac | |
12337 case $ac_var in #( | |
12338 _ | IFS | as_nl) ;; #( | |
12339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
12340 *) { eval $ac_var=; unset $ac_var;} ;; | |
12341 esac ;; | |
12342 esac | |
12343 done | |
12344 | |
12345 (set) 2>&1 | | |
12346 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12347 *${as_nl}ac_space=\ *) | |
12348 # `set' does not quote correctly, so add quotes: double-quote | |
12349 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
12350 sed -n \ | |
12351 "s/'/'\\\\''/g; | |
12352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12353 ;; #( | |
12354 *) | |
12355 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12357 ;; | |
12358 esac | | |
12359 sort | |
12360 ) | | |
12361 sed ' | |
12362 /^ac_cv_env_/b end | |
12363 t clear | |
12364 :clear | |
12365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12366 t end | |
12367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12368 :end' >>confcache | |
12369 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12370 if test -w "$cache_file"; then | |
12371 if test "x$cache_file" != "x/dev/null"; then | |
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
12373 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
12374 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
12375 cat confcache >"$cache_file" | |
12376 else | |
12377 case $cache_file in #( | |
12378 */* | ?:*) | |
12379 mv -f confcache "$cache_file"$$ && | |
12380 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12381 *) | |
12382 mv -f confcache "$cache_file" ;; | |
12383 esac | |
12384 fi | |
12385 fi | |
12386 else | |
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
12388 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
12389 fi | |
12390 fi | |
12391 rm -f confcache | |
12392 | |
12393 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12394 # Let make expand exec_prefix. | |
12395 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12396 | |
12397 DEFS=-DHAVE_CONFIG_H | |
12398 | |
12399 ac_libobjs= | |
12400 ac_ltlibobjs= | |
12401 U= | |
12402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12403 # 1. Remove the extension, and $U if already installed. | |
12404 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12405 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12407 # will be set to the directory where LIBOBJS objects are built. | |
12408 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12409 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
12410 done | |
12411 LIBOBJS=$ac_libobjs | |
12412 | |
12413 LTLIBOBJS=$ac_ltlibobjs | |
12414 | |
12415 | |
12416 if test -n "$EXEEXT"; then | |
12417 am__EXEEXT_TRUE= | |
12418 am__EXEEXT_FALSE='#' | |
12419 else | |
12420 am__EXEEXT_TRUE='#' | |
12421 am__EXEEXT_FALSE= | |
12422 fi | |
12423 | |
12424 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
12425 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
12426 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12427 fi | |
12428 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
12429 as_fn_error $? "conditional \"AMDEP\" was never defined. | |
12430 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12431 fi | |
12432 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
12433 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
12434 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12435 fi | |
12436 | |
12437 : "${CONFIG_STATUS=./config.status}" | |
12438 ac_write_fail=0 | |
12439 ac_clean_files_save=$ac_clean_files | |
12440 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
12442 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12443 as_write_fail=0 | |
12444 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
12445 #! $SHELL | |
12446 # Generated by $as_me. | |
12447 # Run this file to recreate the current configuration. | |
12448 # Compiler output produced by configure, useful for debugging | |
12449 # configure, is in config.log if it exists. | |
12450 | |
12451 debug=false | |
12452 ac_cs_recheck=false | |
12453 ac_cs_silent=false | |
12454 | |
12455 SHELL=\${CONFIG_SHELL-$SHELL} | |
12456 export SHELL | |
12457 _ASEOF | |
12458 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12459 ## -------------------- ## | |
12460 ## M4sh Initialization. ## | |
12461 ## -------------------- ## | |
12462 | |
12463 # Be more Bourne compatible | |
12464 DUALCASE=1; export DUALCASE # for MKS sh | |
12465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
12466 emulate sh | |
12467 NULLCMD=: | |
12468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
12469 # is contrary to our usage. Disable this feature. | |
12470 alias -g '${1+"$@"}'='"$@"' | |
12471 setopt NO_GLOB_SUBST | |
12472 else | |
12473 case `(set -o) 2>/dev/null` in #( | |
12474 *posix*) : | |
12475 set -o posix ;; #( | |
12476 *) : | |
12477 ;; | |
12478 esac | |
12479 fi | |
12480 | |
12481 | |
12482 as_nl=' | |
12483 ' | |
12484 export as_nl | |
12485 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12486 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12489 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
12490 # but without wasting forks for bash or zsh. | |
12491 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12492 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12493 as_echo='print -r --' | |
12494 as_echo_n='print -rn --' | |
12495 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12496 as_echo='printf %s\n' | |
12497 as_echo_n='printf %s' | |
12498 else | |
12499 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12500 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12501 as_echo_n='/usr/ucb/echo -n' | |
12502 else | |
12503 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12504 as_echo_n_body='eval | |
12505 arg=$1; | |
12506 case $arg in #( | |
12507 *"$as_nl"*) | |
12508 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12509 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12510 esac; | |
12511 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12512 ' | |
12513 export as_echo_n_body | |
12514 as_echo_n='sh -c $as_echo_n_body as_echo' | |
12515 fi | |
12516 export as_echo_body | |
12517 as_echo='sh -c $as_echo_body as_echo' | |
12518 fi | |
12519 | |
12520 # The user is always right. | |
12521 if test "${PATH_SEPARATOR+set}" != set; then | |
12522 PATH_SEPARATOR=: | |
12523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12524 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12525 PATH_SEPARATOR=';' | |
12526 } | |
12527 fi | |
12528 | |
12529 | |
12530 # IFS | |
12531 # We need space, tab and new line, in precisely that order. Quoting is | |
12532 # there to prevent editors from complaining about space-tab. | |
12533 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12534 # splitting by setting IFS to empty value.) | |
12535 IFS=" "" $as_nl" | |
12536 | |
12537 # Find who we are. Look in the path if we contain no directory separator. | |
12538 as_myself= | |
12539 case $0 in #(( | |
12540 *[\\/]* ) as_myself=$0 ;; | |
12541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12542 for as_dir in $PATH | |
12543 do | |
12544 IFS=$as_save_IFS | |
12545 test -z "$as_dir" && as_dir=. | |
12546 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12547 done | |
12548 IFS=$as_save_IFS | |
12549 | |
12550 ;; | |
12551 esac | |
12552 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12553 # in which case we are not to be found in the path. | |
12554 if test "x$as_myself" = x; then | |
12555 as_myself=$0 | |
12556 fi | |
12557 if test ! -f "$as_myself"; then | |
12558 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12559 exit 1 | |
12560 fi | |
12561 | |
12562 # Unset variables that we do not need and which cause bugs (e.g. in | |
12563 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12564 # suppresses any "Segmentation fault" message there. '((' could | |
12565 # trigger a bug in pdksh 5.2.14. | |
12566 for as_var in BASH_ENV ENV MAIL MAILPATH | |
12567 do eval test x\${$as_var+set} = xset \ | |
12568 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
12569 done | |
12570 PS1='$ ' | |
12571 PS2='> ' | |
12572 PS4='+ ' | |
12573 | |
12574 # NLS nuisances. | |
12575 LC_ALL=C | |
12576 export LC_ALL | |
12577 LANGUAGE=C | |
12578 export LANGUAGE | |
12579 | |
12580 # CDPATH. | |
12581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12582 | |
12583 | |
12584 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
12585 # ---------------------------------------- | |
12586 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12587 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12588 # script with STATUS, using 1 if that was 0. | |
12589 as_fn_error () | |
12590 { | |
12591 as_status=$1; test $as_status -eq 0 && as_status=1 | |
12592 if test "$4"; then | |
12593 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12594 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
12595 fi | |
12596 $as_echo "$as_me: error: $2" >&2 | |
12597 as_fn_exit $as_status | |
12598 } # as_fn_error | |
12599 | |
12600 | |
12601 # as_fn_set_status STATUS | |
12602 # ----------------------- | |
12603 # Set $? to STATUS, without forking. | |
12604 as_fn_set_status () | |
12605 { | |
12606 return $1 | |
12607 } # as_fn_set_status | |
12608 | |
12609 # as_fn_exit STATUS | |
12610 # ----------------- | |
12611 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12612 as_fn_exit () | |
12613 { | |
12614 set +e | |
12615 as_fn_set_status $1 | |
12616 exit $1 | |
12617 } # as_fn_exit | |
12618 | |
12619 # as_fn_unset VAR | |
12620 # --------------- | |
12621 # Portably unset VAR. | |
12622 as_fn_unset () | |
12623 { | |
12624 { eval $1=; unset $1;} | |
12625 } | |
12626 as_unset=as_fn_unset | |
12627 # as_fn_append VAR VALUE | |
12628 # ---------------------- | |
12629 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12630 # advantage of any shell optimizations that allow amortized linear growth over | |
12631 # repeated appends, instead of the typical quadratic growth present in naive | |
12632 # implementations. | |
12633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12634 eval 'as_fn_append () | |
12635 { | |
12636 eval $1+=\$2 | |
12637 }' | |
12638 else | |
12639 as_fn_append () | |
12640 { | |
12641 eval $1=\$$1\$2 | |
12642 } | |
12643 fi # as_fn_append | |
12644 | |
12645 # as_fn_arith ARG... | |
12646 # ------------------ | |
12647 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12648 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12649 # must be portable across $(()) and expr. | |
12650 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12651 eval 'as_fn_arith () | |
12652 { | |
12653 as_val=$(( $* )) | |
12654 }' | |
12655 else | |
12656 as_fn_arith () | |
12657 { | |
12658 as_val=`expr "$@" || test $? -eq 1` | |
12659 } | |
12660 fi # as_fn_arith | |
12661 | |
12662 | |
12663 if expr a : '\(a\)' >/dev/null 2>&1 && | |
12664 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12665 as_expr=expr | |
12666 else | |
12667 as_expr=false | |
12668 fi | |
12669 | |
12670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
12671 as_basename=basename | |
12672 else | |
12673 as_basename=false | |
12674 fi | |
12675 | |
12676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
12677 as_dirname=dirname | |
12678 else | |
12679 as_dirname=false | |
12680 fi | |
12681 | |
12682 as_me=`$as_basename -- "$0" || | |
12683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12684 X"$0" : 'X\(//\)$' \| \ | |
12685 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12686 $as_echo X/"$0" | | |
12687 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12688 s//\1/ | |
12689 q | |
12690 } | |
12691 /^X\/\(\/\/\)$/{ | |
12692 s//\1/ | |
12693 q | |
12694 } | |
12695 /^X\/\(\/\).*/{ | |
12696 s//\1/ | |
12697 q | |
12698 } | |
12699 s/.*/./; q'` | |
12700 | |
12701 # Avoid depending upon Character Ranges. | |
12702 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12705 as_cr_digits='0123456789' | |
12706 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12707 | |
12708 ECHO_C= ECHO_N= ECHO_T= | |
12709 case `echo -n x` in #((((( | |
12710 -n*) | |
12711 case `echo 'xy\c'` in | |
12712 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12713 xy) ECHO_C='\c';; | |
12714 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12715 ECHO_T=' ';; | |
12716 esac;; | |
12717 *) | |
12718 ECHO_N='-n';; | |
12719 esac | |
12720 | |
12721 rm -f conf$$ conf$$.exe conf$$.file | |
12722 if test -d conf$$.dir; then | |
12723 rm -f conf$$.dir/conf$$.file | |
12724 else | |
12725 rm -f conf$$.dir | |
12726 mkdir conf$$.dir 2>/dev/null | |
12727 fi | |
12728 if (echo >conf$$.file) 2>/dev/null; then | |
12729 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12730 as_ln_s='ln -s' | |
12731 # ... but there are two gotchas: | |
12732 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12733 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12734 # In both cases, we have to default to `cp -p'. | |
12735 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12736 as_ln_s='cp -p' | |
12737 elif ln conf$$.file conf$$ 2>/dev/null; then | |
12738 as_ln_s=ln | |
12739 else | |
12740 as_ln_s='cp -p' | |
12741 fi | |
12742 else | |
12743 as_ln_s='cp -p' | |
12744 fi | |
12745 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12746 rmdir conf$$.dir 2>/dev/null | |
12747 | |
12748 | |
12749 # as_fn_mkdir_p | |
12750 # ------------- | |
12751 # Create "$as_dir" as a directory, including parents if necessary. | |
12752 as_fn_mkdir_p () | |
12753 { | |
12754 | |
12755 case $as_dir in #( | |
12756 -*) as_dir=./$as_dir;; | |
12757 esac | |
12758 test -d "$as_dir" || eval $as_mkdir_p || { | |
12759 as_dirs= | |
12760 while :; do | |
12761 case $as_dir in #( | |
12762 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12763 *) as_qdir=$as_dir;; | |
12764 esac | |
12765 as_dirs="'$as_qdir' $as_dirs" | |
12766 as_dir=`$as_dirname -- "$as_dir" || | |
12767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12768 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12769 X"$as_dir" : 'X\(//\)$' \| \ | |
12770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12771 $as_echo X"$as_dir" | | |
12772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12773 s//\1/ | |
12774 q | |
12775 } | |
12776 /^X\(\/\/\)[^/].*/{ | |
12777 s//\1/ | |
12778 q | |
12779 } | |
12780 /^X\(\/\/\)$/{ | |
12781 s//\1/ | |
12782 q | |
12783 } | |
12784 /^X\(\/\).*/{ | |
12785 s//\1/ | |
12786 q | |
12787 } | |
12788 s/.*/./; q'` | |
12789 test -d "$as_dir" && break | |
12790 done | |
12791 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12792 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
12793 | |
12794 | |
12795 } # as_fn_mkdir_p | |
12796 if mkdir -p . 2>/dev/null; then | |
12797 as_mkdir_p='mkdir -p "$as_dir"' | |
12798 else | |
12799 test -d ./-p && rmdir ./-p | |
12800 as_mkdir_p=false | |
12801 fi | |
12802 | |
12803 if test -x / >/dev/null 2>&1; then | |
12804 as_test_x='test -x' | |
12805 else | |
12806 if ls -dL / >/dev/null 2>&1; then | |
12807 as_ls_L_option=L | |
12808 else | |
12809 as_ls_L_option= | |
12810 fi | |
12811 as_test_x=' | |
12812 eval sh -c '\'' | |
12813 if test -d "$1"; then | |
12814 test -d "$1/."; | |
12815 else | |
12816 case $1 in #( | |
12817 -*)set "./$1";; | |
12818 esac; | |
12819 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
12820 ???[sx]*):;;*)false;;esac;fi | |
12821 '\'' sh | |
12822 ' | |
12823 fi | |
12824 as_executable_p=$as_test_x | |
12825 | |
12826 # Sed expression to map a string onto a valid CPP name. | |
12827 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12828 | |
12829 # Sed expression to map a string onto a valid variable name. | |
12830 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12831 | |
12832 | |
12833 exec 6>&1 | |
12834 ## ----------------------------------- ## | |
12835 ## Main body of $CONFIG_STATUS script. ## | |
12836 ## ----------------------------------- ## | |
12837 _ASEOF | |
12838 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
12839 | |
12840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12841 # Save the log message, to keep $0 and so on meaningful, and to | |
12842 # report actual input values of CONFIG_FILES etc. instead of their | |
12843 # values after options handling. | |
12844 ac_log=" | |
12845 This file was extended by $as_me, which was | |
12846 generated by GNU Autoconf 2.68. Invocation command line was | |
12847 | |
12848 CONFIG_FILES = $CONFIG_FILES | |
12849 CONFIG_HEADERS = $CONFIG_HEADERS | |
12850 CONFIG_LINKS = $CONFIG_LINKS | |
12851 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12852 $ $0 $@ | |
12853 | |
12854 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12855 " | |
12856 | |
12857 _ACEOF | |
12858 | |
12859 case $ac_config_files in *" | |
12860 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12861 esac | |
12862 | |
12863 case $ac_config_headers in *" | |
12864 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12865 esac | |
12866 | |
12867 | |
12868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12869 # Files that config.status was made for. | |
12870 config_files="$ac_config_files" | |
12871 config_headers="$ac_config_headers" | |
12872 config_commands="$ac_config_commands" | |
12873 | |
12874 _ACEOF | |
12875 | |
12876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12877 ac_cs_usage="\ | |
12878 \`$as_me' instantiates files and other configuration actions | |
12879 from templates according to the current configuration. Unless the files | |
12880 and actions are specified as TAGs, all are instantiated by default. | |
12881 | |
12882 Usage: $0 [OPTION]... [TAG]... | |
12883 | |
12884 -h, --help print this help, then exit | |
12885 -V, --version print version number and configuration settings, then exit | |
12886 --config print configuration, then exit | |
12887 -q, --quiet, --silent | |
12888 do not print progress messages | |
12889 -d, --debug don't remove temporary files | |
12890 --recheck update $as_me by reconfiguring in the same conditions | |
12891 --file=FILE[:TEMPLATE] | |
12892 instantiate the configuration file FILE | |
12893 --header=FILE[:TEMPLATE] | |
12894 instantiate the configuration header FILE | |
12895 | |
12896 Configuration files: | |
12897 $config_files | |
12898 | |
12899 Configuration headers: | |
12900 $config_headers | |
12901 | |
12902 Configuration commands: | |
12903 $config_commands | |
12904 | |
12905 Report bugs to the package provider." | |
12906 | |
12907 _ACEOF | |
12908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12909 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
12910 ac_cs_version="\\ | |
12911 config.status | |
12912 configured by $0, generated by GNU Autoconf 2.68, | |
12913 with options \\"\$ac_cs_config\\" | |
12914 | |
12915 Copyright (C) 2010 Free Software Foundation, Inc. | |
12916 This config.status script is free software; the Free Software Foundation | |
12917 gives unlimited permission to copy, distribute and modify it." | |
12918 | |
12919 ac_pwd='$ac_pwd' | |
12920 srcdir='$srcdir' | |
12921 INSTALL='$INSTALL' | |
12922 MKDIR_P='$MKDIR_P' | |
12923 AWK='$AWK' | |
12924 test -n "\$AWK" || AWK=awk | |
12925 _ACEOF | |
12926 | |
12927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12928 # The default lists apply if the user does not specify any file. | |
12929 ac_need_defaults=: | |
12930 while test $# != 0 | |
12931 do | |
12932 case $1 in | |
12933 --*=?*) | |
12934 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12935 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12936 ac_shift=: | |
12937 ;; | |
12938 --*=) | |
12939 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12940 ac_optarg= | |
12941 ac_shift=: | |
12942 ;; | |
12943 *) | |
12944 ac_option=$1 | |
12945 ac_optarg=$2 | |
12946 ac_shift=shift | |
12947 ;; | |
12948 esac | |
12949 | |
12950 case $ac_option in | |
12951 # Handling of the options. | |
12952 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12953 ac_cs_recheck=: ;; | |
12954 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12955 $as_echo "$ac_cs_version"; exit ;; | |
12956 --config | --confi | --conf | --con | --co | --c ) | |
12957 $as_echo "$ac_cs_config"; exit ;; | |
12958 --debug | --debu | --deb | --de | --d | -d ) | |
12959 debug=: ;; | |
12960 --file | --fil | --fi | --f ) | |
12961 $ac_shift | |
12962 case $ac_optarg in | |
12963 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12964 '') as_fn_error $? "missing file argument" ;; | |
12965 esac | |
12966 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
12967 ac_need_defaults=false;; | |
12968 --header | --heade | --head | --hea ) | |
12969 $ac_shift | |
12970 case $ac_optarg in | |
12971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12972 esac | |
12973 as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
12974 ac_need_defaults=false;; | |
12975 --he | --h) | |
12976 # Conflict between --help and --header | |
12977 as_fn_error $? "ambiguous option: \`$1' | |
12978 Try \`$0 --help' for more information.";; | |
12979 --help | --hel | -h ) | |
12980 $as_echo "$ac_cs_usage"; exit ;; | |
12981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12982 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12983 ac_cs_silent=: ;; | |
12984 | |
12985 # This is an error. | |
12986 -*) as_fn_error $? "unrecognized option: \`$1' | |
12987 Try \`$0 --help' for more information." ;; | |
12988 | |
12989 *) as_fn_append ac_config_targets " $1" | |
12990 ac_need_defaults=false ;; | |
12991 | |
12992 esac | |
12993 shift | |
12994 done | |
12995 | |
12996 ac_configure_extra_args= | |
12997 | |
12998 if $ac_cs_silent; then | |
12999 exec 6>/dev/null | |
13000 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13001 fi | |
13002 | |
13003 _ACEOF | |
13004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13005 if \$ac_cs_recheck; then | |
13006 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
13007 shift | |
13008 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13009 CONFIG_SHELL='$SHELL' | |
13010 export CONFIG_SHELL | |
13011 exec "\$@" | |
13012 fi | |
13013 | |
13014 _ACEOF | |
13015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13016 exec 5>>config.log | |
13017 { | |
13018 echo | |
13019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13020 ## Running $as_me. ## | |
13021 _ASBOX | |
13022 $as_echo "$ac_log" | |
13023 } >&5 | |
13024 | |
13025 _ACEOF | |
13026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13027 # | |
13028 # INIT-COMMANDS | |
13029 # | |
13030 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
13031 | |
13032 | |
13033 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13034 # if CDPATH is set. | |
13035 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13036 | |
13037 sed_quote_subst='$sed_quote_subst' | |
13038 double_quote_subst='$double_quote_subst' | |
13039 delay_variable_subst='$delay_variable_subst' | |
13040 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
13041 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13042 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13043 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13044 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13045 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
13046 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
13047 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13048 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13049 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13050 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13051 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13052 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13053 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13054 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13055 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13056 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13057 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13058 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13059 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13060 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13061 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13062 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13063 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13064 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13065 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13066 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13067 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13068 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13069 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13070 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13071 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13072 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13073 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13074 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13075 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
13076 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
13077 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
13078 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
13079 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13080 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13081 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
13082 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13083 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13084 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13085 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13086 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13087 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13088 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13089 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13090 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13091 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13092 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13093 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
13094 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
13095 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"`' | |
13096 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13097 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
13098 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
13099 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13100 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13101 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13102 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13103 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13104 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13105 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13106 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
13107 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13108 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13109 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13110 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13111 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13112 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13113 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13114 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13115 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13116 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13117 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13118 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13119 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13120 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13121 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13122 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13123 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13124 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13125 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13126 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13127 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13128 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13129 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13130 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
13131 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13132 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13133 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13134 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13135 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13136 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13137 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13138 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13139 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13140 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13141 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13142 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13143 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13144 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13145 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13146 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13147 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13148 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13149 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13150 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13151 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13152 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13153 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13154 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13155 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13156 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13157 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13158 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13159 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13160 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13161 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13162 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
13163 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
13164 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
13165 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13166 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13167 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13168 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13169 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
13170 | |
13171 LTCC='$LTCC' | |
13172 LTCFLAGS='$LTCFLAGS' | |
13173 compiler='$compiler_DEFAULT' | |
13174 | |
13175 # A function that is used when there is no print builtin or printf. | |
13176 func_fallback_echo () | |
13177 { | |
13178 eval 'cat <<_LTECHO_EOF | |
13179 \$1 | |
13180 _LTECHO_EOF' | |
13181 } | |
13182 | |
13183 # Quote evaled strings. | |
13184 for var in SHELL \ | |
13185 ECHO \ | |
13186 SED \ | |
13187 GREP \ | |
13188 EGREP \ | |
13189 FGREP \ | |
13190 LD \ | |
13191 NM \ | |
13192 LN_S \ | |
13193 lt_SP2NL \ | |
13194 lt_NL2SP \ | |
13195 reload_flag \ | |
13196 OBJDUMP \ | |
13197 deplibs_check_method \ | |
13198 file_magic_cmd \ | |
13199 file_magic_glob \ | |
13200 want_nocaseglob \ | |
13201 DLLTOOL \ | |
13202 sharedlib_from_linklib_cmd \ | |
13203 AR \ | |
13204 AR_FLAGS \ | |
13205 archiver_list_spec \ | |
13206 STRIP \ | |
13207 RANLIB \ | |
13208 CC \ | |
13209 CFLAGS \ | |
13210 compiler \ | |
13211 lt_cv_sys_global_symbol_pipe \ | |
13212 lt_cv_sys_global_symbol_to_cdecl \ | |
13213 lt_cv_sys_global_symbol_to_c_name_address \ | |
13214 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
13215 nm_file_list_spec \ | |
13216 lt_prog_compiler_no_builtin_flag \ | |
13217 lt_prog_compiler_pic \ | |
13218 lt_prog_compiler_wl \ | |
13219 lt_prog_compiler_static \ | |
13220 lt_cv_prog_compiler_c_o \ | |
13221 need_locks \ | |
13222 MANIFEST_TOOL \ | |
13223 DSYMUTIL \ | |
13224 NMEDIT \ | |
13225 LIPO \ | |
13226 OTOOL \ | |
13227 OTOOL64 \ | |
13228 shrext_cmds \ | |
13229 export_dynamic_flag_spec \ | |
13230 whole_archive_flag_spec \ | |
13231 compiler_needs_object \ | |
13232 with_gnu_ld \ | |
13233 allow_undefined_flag \ | |
13234 no_undefined_flag \ | |
13235 hardcode_libdir_flag_spec \ | |
13236 hardcode_libdir_flag_spec_ld \ | |
13237 hardcode_libdir_separator \ | |
13238 exclude_expsyms \ | |
13239 include_expsyms \ | |
13240 file_list_spec \ | |
13241 variables_saved_for_relink \ | |
13242 libname_spec \ | |
13243 library_names_spec \ | |
13244 soname_spec \ | |
13245 install_override_mode \ | |
13246 finish_eval \ | |
13247 old_striplib \ | |
13248 striplib; do | |
13249 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13250 *[\\\\\\\`\\"\\\$]*) | |
13251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13252 ;; | |
13253 *) | |
13254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13255 ;; | |
13256 esac | |
13257 done | |
13258 | |
13259 # Double-quote double-evaled strings. | |
13260 for var in reload_cmds \ | |
13261 old_postinstall_cmds \ | |
13262 old_postuninstall_cmds \ | |
13263 old_archive_cmds \ | |
13264 extract_expsyms_cmds \ | |
13265 old_archive_from_new_cmds \ | |
13266 old_archive_from_expsyms_cmds \ | |
13267 archive_cmds \ | |
13268 archive_expsym_cmds \ | |
13269 module_cmds \ | |
13270 module_expsym_cmds \ | |
13271 export_symbols_cmds \ | |
13272 prelink_cmds \ | |
13273 postlink_cmds \ | |
13274 postinstall_cmds \ | |
13275 postuninstall_cmds \ | |
13276 finish_cmds \ | |
13277 sys_lib_search_path_spec \ | |
13278 sys_lib_dlsearch_path_spec; do | |
13279 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13280 *[\\\\\\\`\\"\\\$]*) | |
13281 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13282 ;; | |
13283 *) | |
13284 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13285 ;; | |
13286 esac | |
13287 done | |
13288 | |
13289 ac_aux_dir='$ac_aux_dir' | |
13290 xsi_shell='$xsi_shell' | |
13291 lt_shell_append='$lt_shell_append' | |
13292 | |
13293 # See if we are running on zsh, and set the options which allow our | |
13294 # commands through without removal of \ escapes INIT. | |
13295 if test -n "\${ZSH_VERSION+set}" ; then | |
13296 setopt NO_GLOB_SUBST | |
13297 fi | |
13298 | |
13299 | |
13300 PACKAGE='$PACKAGE' | |
13301 VERSION='$VERSION' | |
13302 TIMESTAMP='$TIMESTAMP' | |
13303 RM='$RM' | |
13304 ofile='$ofile' | |
13305 | |
13306 | |
13307 | |
13308 | |
13309 _ACEOF | |
13310 | |
13311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13312 | |
13313 # Handling of arguments. | |
13314 for ac_config_target in $ac_config_targets | |
13315 do | |
13316 case $ac_config_target in | |
13317 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13318 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13319 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
13320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13321 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
13322 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
13323 "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;; | |
13324 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
13325 "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;; | |
13326 "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;; | |
13327 "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;; | |
13328 "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;; | |
13329 "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;; | |
13330 | |
13331 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
13332 esac | |
13333 done | |
13334 | |
13335 | |
13336 # If the user did not use the arguments to specify the items to instantiate, | |
13337 # then the envvar interface is used. Set only those that are not. | |
13338 # We use the long form for the default assignment because of an extremely | |
13339 # bizarre bug on SunOS 4.1.3. | |
13340 if $ac_need_defaults; then | |
13341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13342 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13343 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13344 fi | |
13345 | |
13346 # Have a temporary directory for convenience. Make it in the build tree | |
13347 # simply because there is no reason against having it here, and in addition, | |
13348 # creating and moving files from /tmp can sometimes cause problems. | |
13349 # Hook for its removal unless debugging. | |
13350 # Note that there is a small window in which the directory will not be cleaned: | |
13351 # after its creation but before its name has been assigned to `$tmp'. | |
13352 $debug || | |
13353 { | |
13354 tmp= ac_tmp= | |
13355 trap 'exit_status=$? | |
13356 : "${ac_tmp:=$tmp}" | |
13357 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
13358 ' 0 | |
13359 trap 'as_fn_exit 1' 1 2 13 15 | |
13360 } | |
13361 # Create a (secure) tmp directory for tmp files. | |
13362 | |
13363 { | |
13364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
13365 test -d "$tmp" | |
13366 } || | |
13367 { | |
13368 tmp=./conf$$-$RANDOM | |
13369 (umask 077 && mkdir "$tmp") | |
13370 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
13371 ac_tmp=$tmp | |
13372 | |
13373 # Set up the scripts for CONFIG_FILES section. | |
13374 # No need to generate them if there are no CONFIG_FILES. | |
13375 # This happens for instance with `./config.status config.h'. | |
13376 if test -n "$CONFIG_FILES"; then | |
13377 | |
13378 | |
13379 ac_cr=`echo X | tr X '\015'` | |
13380 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13381 # But we know of no other shell where ac_cr would be empty at this | |
13382 # point, so we can use a bashism as a fallback. | |
13383 if test "x$ac_cr" = x; then | |
13384 eval ac_cr=\$\'\\r\' | |
13385 fi | |
13386 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13387 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13388 ac_cs_awk_cr='\\r' | |
13389 else | |
13390 ac_cs_awk_cr=$ac_cr | |
13391 fi | |
13392 | |
13393 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
13394 _ACEOF | |
13395 | |
13396 | |
13397 { | |
13398 echo "cat >conf$$subs.awk <<_ACEOF" && | |
13399 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13400 echo "_ACEOF" | |
13401 } >conf$$subs.sh || | |
13402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13403 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
13404 ac_delim='%!_!# ' | |
13405 for ac_last_try in false false false false false :; do | |
13406 . ./conf$$subs.sh || | |
13407 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13408 | |
13409 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13410 if test $ac_delim_n = $ac_delim_num; then | |
13411 break | |
13412 elif $ac_last_try; then | |
13413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13414 else | |
13415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13416 fi | |
13417 done | |
13418 rm -f conf$$subs.sh | |
13419 | |
13420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13421 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
13422 _ACEOF | |
13423 sed -n ' | |
13424 h | |
13425 s/^/S["/; s/!.*/"]=/ | |
13426 p | |
13427 g | |
13428 s/^[^!]*!// | |
13429 :repl | |
13430 t repl | |
13431 s/'"$ac_delim"'$// | |
13432 t delim | |
13433 :nl | |
13434 h | |
13435 s/\(.\{148\}\)..*/\1/ | |
13436 t more1 | |
13437 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13438 p | |
13439 n | |
13440 b repl | |
13441 :more1 | |
13442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13443 p | |
13444 g | |
13445 s/.\{148\}// | |
13446 t nl | |
13447 :delim | |
13448 h | |
13449 s/\(.\{148\}\)..*/\1/ | |
13450 t more2 | |
13451 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13452 p | |
13453 b | |
13454 :more2 | |
13455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13456 p | |
13457 g | |
13458 s/.\{148\}// | |
13459 t delim | |
13460 ' <conf$$subs.awk | sed ' | |
13461 /^[^""]/{ | |
13462 N | |
13463 s/\n// | |
13464 } | |
13465 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13466 rm -f conf$$subs.awk | |
13467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13468 _ACAWK | |
13469 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
13470 for (key in S) S_is_set[key] = 1 | |
13471 FS = "" | |
13472 | |
13473 } | |
13474 { | |
13475 line = $ 0 | |
13476 nfields = split(line, field, "@") | |
13477 substed = 0 | |
13478 len = length(field[1]) | |
13479 for (i = 2; i < nfields; i++) { | |
13480 key = field[i] | |
13481 keylen = length(key) | |
13482 if (S_is_set[key]) { | |
13483 value = S[key] | |
13484 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13485 len += length(value) + length(field[++i]) | |
13486 substed = 1 | |
13487 } else | |
13488 len += 1 + keylen | |
13489 } | |
13490 | |
13491 print line | |
13492 } | |
13493 | |
13494 _ACAWK | |
13495 _ACEOF | |
13496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13497 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13498 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13499 else | |
13500 cat | |
13501 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
13502 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
13503 _ACEOF | |
13504 | |
13505 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
13506 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
13507 # trailing colons and then remove the whole line if VPATH becomes empty | |
13508 # (actually we leave an empty line to preserve line numbers). | |
13509 if test "x$srcdir" = x.; then | |
13510 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
13511 h | |
13512 s/// | |
13513 s/^/:/ | |
13514 s/[ ]*$/:/ | |
13515 s/:\$(srcdir):/:/g | |
13516 s/:\${srcdir}:/:/g | |
13517 s/:@srcdir@:/:/g | |
13518 s/^:*// | |
13519 s/:*$// | |
13520 x | |
13521 s/\(=[ ]*\).*/\1/ | |
13522 G | |
13523 s/\n// | |
13524 s/^[^=]*=[ ]*$// | |
13525 }' | |
13526 fi | |
13527 | |
13528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13529 fi # test -n "$CONFIG_FILES" | |
13530 | |
13531 # Set up the scripts for CONFIG_HEADERS section. | |
13532 # No need to generate them if there are no CONFIG_HEADERS. | |
13533 # This happens for instance with `./config.status Makefile'. | |
13534 if test -n "$CONFIG_HEADERS"; then | |
13535 cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
13536 BEGIN { | |
13537 _ACEOF | |
13538 | |
13539 # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13540 # here-document in config.status, that substitutes the proper values into | |
13541 # config.h.in to produce config.h. | |
13542 | |
13543 # Create a delimiter string that does not exist in confdefs.h, to ease | |
13544 # handling of long lines. | |
13545 ac_delim='%!_!# ' | |
13546 for ac_last_try in false false :; do | |
13547 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
13548 if test -z "$ac_tt"; then | |
13549 break | |
13550 elif $ac_last_try; then | |
13551 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
13552 else | |
13553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13554 fi | |
13555 done | |
13556 | |
13557 # For the awk script, D is an array of macro values keyed by name, | |
13558 # likewise P contains macro parameters if any. Preserve backslash | |
13559 # newline sequences. | |
13560 | |
13561 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13562 sed -n ' | |
13563 s/.\{148\}/&'"$ac_delim"'/g | |
13564 t rset | |
13565 :rset | |
13566 s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13567 t def | |
13568 d | |
13569 :def | |
13570 s/\\$// | |
13571 t bsnl | |
13572 s/["\\]/\\&/g | |
13573 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13574 D["\1"]=" \3"/p | |
13575 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13576 d | |
13577 :bsnl | |
13578 s/["\\]/\\&/g | |
13579 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13580 D["\1"]=" \3\\\\\\n"\\/p | |
13581 t cont | |
13582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13583 t cont | |
13584 d | |
13585 :cont | |
13586 n | |
13587 s/.\{148\}/&'"$ac_delim"'/g | |
13588 t clear | |
13589 :clear | |
13590 s/\\$// | |
13591 t bsnlc | |
13592 s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13593 d | |
13594 :bsnlc | |
13595 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13596 b cont | |
13597 ' <confdefs.h | sed ' | |
13598 s/'"$ac_delim"'/"\\\ | |
13599 "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13600 | |
13601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13602 for (key in D) D_is_set[key] = 1 | |
13603 FS = "" | |
13604 } | |
13605 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13606 line = \$ 0 | |
13607 split(line, arg, " ") | |
13608 if (arg[1] == "#") { | |
13609 defundef = arg[2] | |
13610 mac1 = arg[3] | |
13611 } else { | |
13612 defundef = substr(arg[1], 2) | |
13613 mac1 = arg[2] | |
13614 } | |
13615 split(mac1, mac2, "(") #) | |
13616 macro = mac2[1] | |
13617 prefix = substr(line, 1, index(line, defundef) - 1) | |
13618 if (D_is_set[macro]) { | |
13619 # Preserve the white space surrounding the "#". | |
13620 print prefix "define", macro P[macro] D[macro] | |
13621 next | |
13622 } else { | |
13623 # Replace #undef with comments. This is necessary, for example, | |
13624 # in the case of _POSIX_SOURCE, which is predefined and required | |
13625 # on some systems where configure will not decide to define it. | |
13626 if (defundef == "undef") { | |
13627 print "/*", prefix defundef, macro, "*/" | |
13628 next | |
13629 } | |
13630 } | |
13631 } | |
13632 { print } | |
13633 _ACAWK | |
13634 _ACEOF | |
13635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13636 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
13637 fi # test -n "$CONFIG_HEADERS" | |
13638 | |
13639 | |
13640 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
13641 shift | |
13642 for ac_tag | |
13643 do | |
13644 case $ac_tag in | |
13645 :[FHLC]) ac_mode=$ac_tag; continue;; | |
13646 esac | |
13647 case $ac_mode$ac_tag in | |
13648 :[FHL]*:*);; | |
13649 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
13650 :[FH]-) ac_tag=-:-;; | |
13651 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13652 esac | |
13653 ac_save_IFS=$IFS | |
13654 IFS=: | |
13655 set x $ac_tag | |
13656 IFS=$ac_save_IFS | |
13657 shift | |
13658 ac_file=$1 | |
13659 shift | |
13660 | |
13661 case $ac_mode in | |
13662 :L) ac_source=$1;; | |
13663 :[FH]) | |
13664 ac_file_inputs= | |
13665 for ac_f | |
13666 do | |
13667 case $ac_f in | |
13668 -) ac_f="$ac_tmp/stdin";; | |
13669 *) # Look for the file first in the build tree, then in the source tree | |
13670 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13671 # because $ac_f cannot contain `:'. | |
13672 test -f "$ac_f" || | |
13673 case $ac_f in | |
13674 [\\/$]*) false;; | |
13675 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13676 esac || | |
13677 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
13678 esac | |
13679 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13680 as_fn_append ac_file_inputs " '$ac_f'" | |
13681 done | |
13682 | |
13683 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13684 # use $as_me), people would be surprised to read: | |
13685 # /* config.h. Generated by config.status. */ | |
13686 configure_input='Generated from '` | |
13687 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13688 `' by configure.' | |
13689 if test x"$ac_file" != x-; then | |
13690 configure_input="$ac_file. $configure_input" | |
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
13692 $as_echo "$as_me: creating $ac_file" >&6;} | |
13693 fi | |
13694 # Neutralize special characters interpreted by sed in replacement strings. | |
13695 case $configure_input in #( | |
13696 *\&* | *\|* | *\\* ) | |
13697 ac_sed_conf_input=`$as_echo "$configure_input" | | |
13698 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13699 *) ac_sed_conf_input=$configure_input;; | |
13700 esac | |
13701 | |
13702 case $ac_tag in | |
13703 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
13704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
13705 esac | |
13706 ;; | |
13707 esac | |
13708 | |
13709 ac_dir=`$as_dirname -- "$ac_file" || | |
13710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13711 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13712 X"$ac_file" : 'X\(//\)$' \| \ | |
13713 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13714 $as_echo X"$ac_file" | | |
13715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13716 s//\1/ | |
13717 q | |
13718 } | |
13719 /^X\(\/\/\)[^/].*/{ | |
13720 s//\1/ | |
13721 q | |
13722 } | |
13723 /^X\(\/\/\)$/{ | |
13724 s//\1/ | |
13725 q | |
13726 } | |
13727 /^X\(\/\).*/{ | |
13728 s//\1/ | |
13729 q | |
13730 } | |
13731 s/.*/./; q'` | |
13732 as_dir="$ac_dir"; as_fn_mkdir_p | |
13733 ac_builddir=. | |
13734 | |
13735 case "$ac_dir" in | |
13736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13737 *) | |
13738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13739 # A ".." for each directory in $ac_dir_suffix. | |
13740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13741 case $ac_top_builddir_sub in | |
13742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13744 esac ;; | |
13745 esac | |
13746 ac_abs_top_builddir=$ac_pwd | |
13747 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13748 # for backward compatibility: | |
13749 ac_top_builddir=$ac_top_build_prefix | |
13750 | |
13751 case $srcdir in | |
13752 .) # We are building in place. | |
13753 ac_srcdir=. | |
13754 ac_top_srcdir=$ac_top_builddir_sub | |
13755 ac_abs_top_srcdir=$ac_pwd ;; | |
13756 [\\/]* | ?:[\\/]* ) # Absolute name. | |
13757 ac_srcdir=$srcdir$ac_dir_suffix; | |
13758 ac_top_srcdir=$srcdir | |
13759 ac_abs_top_srcdir=$srcdir ;; | |
13760 *) # Relative name. | |
13761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13762 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13764 esac | |
13765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
13766 | |
13767 | |
13768 case $ac_mode in | |
13769 :F) | |
13770 # | |
13771 # CONFIG_FILE | |
13772 # | |
13773 | |
13774 case $INSTALL in | |
13775 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13776 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13777 esac | |
13778 ac_MKDIR_P=$MKDIR_P | |
13779 case $MKDIR_P in | |
13780 [\\/$]* | ?:[\\/]* ) ;; | |
13781 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13782 esac | |
13783 _ACEOF | |
13784 | |
13785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13786 # If the template does not know about datarootdir, expand it. | |
13787 # FIXME: This hack should be removed a few years after 2.60. | |
13788 ac_datarootdir_hack=; ac_datarootdir_seen= | |
13789 ac_sed_dataroot=' | |
13790 /datarootdir/ { | |
13791 p | |
13792 q | |
13793 } | |
13794 /@datadir@/p | |
13795 /@docdir@/p | |
13796 /@infodir@/p | |
13797 /@localedir@/p | |
13798 /@mandir@/p' | |
13799 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13800 *datarootdir*) ac_datarootdir_seen=yes;; | |
13801 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13803 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13804 _ACEOF | |
13805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13806 ac_datarootdir_hack=' | |
13807 s&@datadir@&$datadir&g | |
13808 s&@docdir@&$docdir&g | |
13809 s&@infodir@&$infodir&g | |
13810 s&@localedir@&$localedir&g | |
13811 s&@mandir@&$mandir&g | |
13812 s&\\\${datarootdir}&$datarootdir&g' ;; | |
13813 esac | |
13814 _ACEOF | |
13815 | |
13816 # Neutralize VPATH when `$srcdir' = `.'. | |
13817 # Shell code in configure.ac might set extrasub. | |
13818 # FIXME: do we really want to maintain this feature? | |
13819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13820 ac_sed_extra="$ac_vpsub | |
13821 $extrasub | |
13822 _ACEOF | |
13823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13824 :t | |
13825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13826 s|@configure_input@|$ac_sed_conf_input|;t t | |
13827 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13828 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13829 s&@srcdir@&$ac_srcdir&;t t | |
13830 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13831 s&@top_srcdir@&$ac_top_srcdir&;t t | |
13832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13833 s&@builddir@&$ac_builddir&;t t | |
13834 s&@abs_builddir@&$ac_abs_builddir&;t t | |
13835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13836 s&@INSTALL@&$ac_INSTALL&;t t | |
13837 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13838 $ac_datarootdir_hack | |
13839 " | |
13840 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
13841 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13842 | |
13843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13844 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
13845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13846 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13848 which seems to be undefined. Please make sure it is defined" >&5 | |
13849 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13850 which seems to be undefined. Please make sure it is defined" >&2;} | |
13851 | |
13852 rm -f "$ac_tmp/stdin" | |
13853 case $ac_file in | |
13854 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
13855 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
13856 esac \ | |
13857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13858 ;; | |
13859 :H) | |
13860 # | |
13861 # CONFIG_HEADER | |
13862 # | |
13863 if test x"$ac_file" != x-; then | |
13864 { | |
13865 $as_echo "/* $configure_input */" \ | |
13866 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
13867 } >"$ac_tmp/config.h" \ | |
13868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13869 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
13871 $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13872 else | |
13873 rm -f "$ac_file" | |
13874 mv "$ac_tmp/config.h" "$ac_file" \ | |
13875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13876 fi | |
13877 else | |
13878 $as_echo "/* $configure_input */" \ | |
13879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
13880 || as_fn_error $? "could not create -" "$LINENO" 5 | |
13881 fi | |
13882 # Compute "$ac_file"'s index in $config_headers. | |
13883 _am_arg="$ac_file" | |
13884 _am_stamp_count=1 | |
13885 for _am_header in $config_headers :; do | |
13886 case $_am_header in | |
13887 $_am_arg | $_am_arg:* ) | |
13888 break ;; | |
13889 * ) | |
13890 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13891 esac | |
13892 done | |
13893 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13894 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13895 X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13896 X"$_am_arg" : 'X\(//\)$' \| \ | |
13897 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13898 $as_echo X"$_am_arg" | | |
13899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13900 s//\1/ | |
13901 q | |
13902 } | |
13903 /^X\(\/\/\)[^/].*/{ | |
13904 s//\1/ | |
13905 q | |
13906 } | |
13907 /^X\(\/\/\)$/{ | |
13908 s//\1/ | |
13909 q | |
13910 } | |
13911 /^X\(\/\).*/{ | |
13912 s//\1/ | |
13913 q | |
13914 } | |
13915 s/.*/./; q'`/stamp-h$_am_stamp_count | |
13916 ;; | |
13917 | |
13918 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
13919 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13920 ;; | |
13921 esac | |
13922 | |
13923 | |
13924 case $ac_file$ac_mode in | |
13925 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
13926 # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
13927 # are listed without --file. Let's play safe and only enable the eval | |
13928 # if we detect the quoting. | |
13929 case $CONFIG_FILES in | |
13930 *\'*) eval set x "$CONFIG_FILES" ;; | |
13931 *) set x $CONFIG_FILES ;; | |
13932 esac | |
13933 shift | |
13934 for mf | |
13935 do | |
13936 # Strip MF so we end up with the name of the file. | |
13937 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13938 # Check whether this is an Automake generated Makefile or not. | |
13939 # We used to match only the files named `Makefile.in', but | |
13940 # some people rename them; so instead we look at the file content. | |
13941 # Grep'ing the first line is not enough: some people post-process | |
13942 # each Makefile.in and add a new line on top of each file to say so. | |
13943 # Grep'ing the whole file is not good either: AIX grep has a line | |
13944 # limit of 2048, but all sed's we know have understand at least 4000. | |
13945 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13946 dirpart=`$as_dirname -- "$mf" || | |
13947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13948 X"$mf" : 'X\(//\)[^/]' \| \ | |
13949 X"$mf" : 'X\(//\)$' \| \ | |
13950 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13951 $as_echo X"$mf" | | |
13952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13953 s//\1/ | |
13954 q | |
13955 } | |
13956 /^X\(\/\/\)[^/].*/{ | |
13957 s//\1/ | |
13958 q | |
13959 } | |
13960 /^X\(\/\/\)$/{ | |
13961 s//\1/ | |
13962 q | |
13963 } | |
13964 /^X\(\/\).*/{ | |
13965 s//\1/ | |
13966 q | |
13967 } | |
13968 s/.*/./; q'` | |
13969 else | |
13970 continue | |
13971 fi | |
13972 # Extract the definition of DEPDIR, am__include, and am__quote | |
13973 # from the Makefile without running `make'. | |
13974 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13975 test -z "$DEPDIR" && continue | |
13976 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13977 test -z "am__include" && continue | |
13978 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13979 # When using ansi2knr, U may be empty or an underscore; expand it | |
13980 U=`sed -n 's/^U = //p' < "$mf"` | |
13981 # Find all dependency output files, they are included files with | |
13982 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13983 # simplest approach to changing $(DEPDIR) to its actual value in the | |
13984 # expansion. | |
13985 for file in `sed -n " | |
13986 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13987 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13988 # Make sure the directory exists. | |
13989 test -f "$dirpart/$file" && continue | |
13990 fdir=`$as_dirname -- "$file" || | |
13991 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13992 X"$file" : 'X\(//\)[^/]' \| \ | |
13993 X"$file" : 'X\(//\)$' \| \ | |
13994 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13995 $as_echo X"$file" | | |
13996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13997 s//\1/ | |
13998 q | |
13999 } | |
14000 /^X\(\/\/\)[^/].*/{ | |
14001 s//\1/ | |
14002 q | |
14003 } | |
14004 /^X\(\/\/\)$/{ | |
14005 s//\1/ | |
14006 q | |
14007 } | |
14008 /^X\(\/\).*/{ | |
14009 s//\1/ | |
14010 q | |
14011 } | |
14012 s/.*/./; q'` | |
14013 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
14014 # echo "creating $dirpart/$file" | |
14015 echo '# dummy' > "$dirpart/$file" | |
14016 done | |
14017 done | |
14018 } | |
14019 ;; | |
14020 "libtool":C) | |
14021 | |
14022 # See if we are running on zsh, and set the options which allow our | |
14023 # commands through without removal of \ escapes. | |
14024 if test -n "${ZSH_VERSION+set}" ; then | |
14025 setopt NO_GLOB_SUBST | |
14026 fi | |
14027 | |
14028 cfgfile="${ofile}T" | |
14029 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14030 $RM "$cfgfile" | |
14031 | |
14032 cat <<_LT_EOF >> "$cfgfile" | |
14033 #! $SHELL | |
14034 | |
14035 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
14036 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
14037 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14038 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14039 # | |
14040 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
14041 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
14042 # Inc. | |
14043 # Written by Gordon Matzigkeit, 1996 | |
14044 # | |
14045 # This file is part of GNU Libtool. | |
14046 # | |
14047 # GNU Libtool is free software; you can redistribute it and/or | |
14048 # modify it under the terms of the GNU General Public License as | |
14049 # published by the Free Software Foundation; either version 2 of | |
14050 # the License, or (at your option) any later version. | |
14051 # | |
14052 # As a special exception to the GNU General Public License, | |
14053 # if you distribute this file as part of a program or library that | |
14054 # is built using GNU Libtool, you may include this file under the | |
14055 # same distribution terms that you use for the rest of that program. | |
14056 # | |
14057 # GNU Libtool is distributed in the hope that it will be useful, | |
14058 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14059 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14060 # GNU General Public License for more details. | |
14061 # | |
14062 # You should have received a copy of the GNU General Public License | |
14063 # along with GNU Libtool; see the file COPYING. If not, a copy | |
14064 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14065 # obtained by writing to the Free Software Foundation, Inc., | |
14066 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
14067 | |
14068 | |
14069 # The names of the tagged configurations supported by this script. | |
14070 available_tags="" | |
14071 | |
14072 # ### BEGIN LIBTOOL CONFIG | |
14073 | |
14074 # Which release of libtool.m4 was used? | |
14075 macro_version=$macro_version | |
14076 macro_revision=$macro_revision | |
14077 | |
14078 # Whether or not to build shared libraries. | |
14079 build_libtool_libs=$enable_shared | |
14080 | |
14081 # Whether or not to build static libraries. | |
14082 build_old_libs=$enable_static | |
14083 | |
14084 # What type of objects to build. | |
14085 pic_mode=$pic_mode | |
14086 | |
14087 # Whether or not to optimize for fast installation. | |
14088 fast_install=$enable_fast_install | |
14089 | |
14090 # Shell to use when invoking shell scripts. | |
14091 SHELL=$lt_SHELL | |
14092 | |
14093 # An echo program that protects backslashes. | |
14094 ECHO=$lt_ECHO | |
14095 | |
14096 # The host system. | |
14097 host_alias=$host_alias | |
14098 host=$host | |
14099 host_os=$host_os | |
14100 | |
14101 # The build system. | |
14102 build_alias=$build_alias | |
14103 build=$build | |
14104 build_os=$build_os | |
14105 | |
14106 # A sed program that does not truncate output. | |
14107 SED=$lt_SED | |
14108 | |
14109 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14110 Xsed="\$SED -e 1s/^X//" | |
14111 | |
14112 # A grep program that handles long lines. | |
14113 GREP=$lt_GREP | |
14114 | |
14115 # An ERE matcher. | |
14116 EGREP=$lt_EGREP | |
14117 | |
14118 # A literal string matcher. | |
14119 FGREP=$lt_FGREP | |
14120 | |
14121 # A BSD- or MS-compatible name lister. | |
14122 NM=$lt_NM | |
14123 | |
14124 # Whether we need soft or hard links. | |
14125 LN_S=$lt_LN_S | |
14126 | |
14127 # What is the maximum length of a command? | |
14128 max_cmd_len=$max_cmd_len | |
14129 | |
14130 # Object file suffix (normally "o"). | |
14131 objext=$ac_objext | |
14132 | |
14133 # Executable file suffix (normally ""). | |
14134 exeext=$exeext | |
14135 | |
14136 # whether the shell understands "unset". | |
14137 lt_unset=$lt_unset | |
14138 | |
14139 # turn spaces into newlines. | |
14140 SP2NL=$lt_lt_SP2NL | |
14141 | |
14142 # turn newlines into spaces. | |
14143 NL2SP=$lt_lt_NL2SP | |
14144 | |
14145 # convert \$build file names to \$host format. | |
14146 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14147 | |
14148 # convert \$build files to toolchain format. | |
14149 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
14150 | |
14151 # An object symbol dumper. | |
14152 OBJDUMP=$lt_OBJDUMP | |
14153 | |
14154 # Method to check whether dependent libraries are shared objects. | |
14155 deplibs_check_method=$lt_deplibs_check_method | |
14156 | |
14157 # Command to use when deplibs_check_method = "file_magic". | |
14158 file_magic_cmd=$lt_file_magic_cmd | |
14159 | |
14160 # How to find potential files when deplibs_check_method = "file_magic". | |
14161 file_magic_glob=$lt_file_magic_glob | |
14162 | |
14163 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14164 want_nocaseglob=$lt_want_nocaseglob | |
14165 | |
14166 # DLL creation program. | |
14167 DLLTOOL=$lt_DLLTOOL | |
14168 | |
14169 # Command to associate shared and link libraries. | |
14170 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14171 | |
14172 # The archiver. | |
14173 AR=$lt_AR | |
14174 | |
14175 # Flags to create an archive. | |
14176 AR_FLAGS=$lt_AR_FLAGS | |
14177 | |
14178 # How to feed a file listing to the archiver. | |
14179 archiver_list_spec=$lt_archiver_list_spec | |
14180 | |
14181 # A symbol stripping program. | |
14182 STRIP=$lt_STRIP | |
14183 | |
14184 # Commands used to install an old-style archive. | |
14185 RANLIB=$lt_RANLIB | |
14186 old_postinstall_cmds=$lt_old_postinstall_cmds | |
14187 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14188 | |
14189 # Whether to use a lock for old archive extraction. | |
14190 lock_old_archive_extraction=$lock_old_archive_extraction | |
14191 | |
14192 # A C compiler. | |
14193 LTCC=$lt_CC | |
14194 | |
14195 # LTCC compiler flags. | |
14196 LTCFLAGS=$lt_CFLAGS | |
14197 | |
14198 # Take the output of nm and produce a listing of raw symbols and C names. | |
14199 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14200 | |
14201 # Transform the output of nm in a proper C declaration. | |
14202 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14203 | |
14204 # Transform the output of nm in a C name address pair. | |
14205 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14206 | |
14207 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
14208 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14209 | |
14210 # Specify filename containing input files for \$NM. | |
14211 nm_file_list_spec=$lt_nm_file_list_spec | |
14212 | |
14213 # The root where to search for dependent libraries,and in which our libraries should be installed. | |
14214 lt_sysroot=$lt_sysroot | |
14215 | |
14216 # The name of the directory that contains temporary libtool files. | |
14217 objdir=$objdir | |
14218 | |
14219 # Used to examine libraries when file_magic_cmd begins with "file". | |
14220 MAGIC_CMD=$MAGIC_CMD | |
14221 | |
14222 # Must we lock files when doing compilation? | |
14223 need_locks=$lt_need_locks | |
14224 | |
14225 # Manifest tool. | |
14226 MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14227 | |
14228 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
14229 DSYMUTIL=$lt_DSYMUTIL | |
14230 | |
14231 # Tool to change global to local symbols on Mac OS X. | |
14232 NMEDIT=$lt_NMEDIT | |
14233 | |
14234 # Tool to manipulate fat objects and archives on Mac OS X. | |
14235 LIPO=$lt_LIPO | |
14236 | |
14237 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14238 OTOOL=$lt_OTOOL | |
14239 | |
14240 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14241 OTOOL64=$lt_OTOOL64 | |
14242 | |
14243 # Old archive suffix (normally "a"). | |
14244 libext=$libext | |
14245 | |
14246 # Shared library suffix (normally ".so"). | |
14247 shrext_cmds=$lt_shrext_cmds | |
14248 | |
14249 # The commands to extract the exported symbol list from a shared archive. | |
14250 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14251 | |
14252 # Variables whose values should be saved in libtool wrapper scripts and | |
14253 # restored at link time. | |
14254 variables_saved_for_relink=$lt_variables_saved_for_relink | |
14255 | |
14256 # Do we need the "lib" prefix for modules? | |
14257 need_lib_prefix=$need_lib_prefix | |
14258 | |
14259 # Do we need a version for libraries? | |
14260 need_version=$need_version | |
14261 | |
14262 # Library versioning type. | |
14263 version_type=$version_type | |
14264 | |
14265 # Shared library runtime path variable. | |
14266 runpath_var=$runpath_var | |
14267 | |
14268 # Shared library path variable. | |
14269 shlibpath_var=$shlibpath_var | |
14270 | |
14271 # Is shlibpath searched before the hard-coded library search path? | |
14272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14273 | |
14274 # Format of library name prefix. | |
14275 libname_spec=$lt_libname_spec | |
14276 | |
14277 # List of archive names. First name is the real one, the rest are links. | |
14278 # The last name is the one that the linker finds with -lNAME | |
14279 library_names_spec=$lt_library_names_spec | |
14280 | |
14281 # The coded name of the library, if different from the real name. | |
14282 soname_spec=$lt_soname_spec | |
14283 | |
14284 # Permission mode override for installation of shared libraries. | |
14285 install_override_mode=$lt_install_override_mode | |
14286 | |
14287 # Command to use after installation of a shared archive. | |
14288 postinstall_cmds=$lt_postinstall_cmds | |
14289 | |
14290 # Command to use after uninstallation of a shared archive. | |
14291 postuninstall_cmds=$lt_postuninstall_cmds | |
14292 | |
14293 # Commands used to finish a libtool library installation in a directory. | |
14294 finish_cmds=$lt_finish_cmds | |
14295 | |
14296 # As "finish_cmds", except a single script fragment to be evaled but | |
14297 # not shown. | |
14298 finish_eval=$lt_finish_eval | |
14299 | |
14300 # Whether we should hardcode library paths into libraries. | |
14301 hardcode_into_libs=$hardcode_into_libs | |
14302 | |
14303 # Compile-time system search path for libraries. | |
14304 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14305 | |
14306 # Run-time system search path for libraries. | |
14307 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14308 | |
14309 # Whether dlopen is supported. | |
14310 dlopen_support=$enable_dlopen | |
14311 | |
14312 # Whether dlopen of programs is supported. | |
14313 dlopen_self=$enable_dlopen_self | |
14314 | |
14315 # Whether dlopen of statically linked programs is supported. | |
14316 dlopen_self_static=$enable_dlopen_self_static | |
14317 | |
14318 # Commands to strip libraries. | |
14319 old_striplib=$lt_old_striplib | |
14320 striplib=$lt_striplib | |
14321 | |
14322 | |
14323 # The linker used to build libraries. | |
14324 LD=$lt_LD | |
14325 | |
14326 # How to create reloadable object files. | |
14327 reload_flag=$lt_reload_flag | |
14328 reload_cmds=$lt_reload_cmds | |
14329 | |
14330 # Commands used to build an old-style archive. | |
14331 old_archive_cmds=$lt_old_archive_cmds | |
14332 | |
14333 # A language specific compiler. | |
14334 CC=$lt_compiler | |
14335 | |
14336 # Is the compiler the GNU compiler? | |
14337 with_gcc=$GCC | |
14338 | |
14339 # Compiler flag to turn off builtin functions. | |
14340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14341 | |
14342 # Additional compiler flags for building library objects. | |
14343 pic_flag=$lt_lt_prog_compiler_pic | |
14344 | |
14345 # How to pass a linker flag through the compiler. | |
14346 wl=$lt_lt_prog_compiler_wl | |
14347 | |
14348 # Compiler flag to prevent dynamic linking. | |
14349 link_static_flag=$lt_lt_prog_compiler_static | |
14350 | |
14351 # Does compiler simultaneously support -c and -o options? | |
14352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14353 | |
14354 # Whether or not to add -lc for building shared libraries. | |
14355 build_libtool_need_lc=$archive_cmds_need_lc | |
14356 | |
14357 # Whether or not to disallow shared libs when runtime libs are static. | |
14358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14359 | |
14360 # Compiler flag to allow reflexive dlopens. | |
14361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
14362 | |
14363 # Compiler flag to generate shared objects directly from archives. | |
14364 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
14365 | |
14366 # Whether the compiler copes with passing no objects directly. | |
14367 compiler_needs_object=$lt_compiler_needs_object | |
14368 | |
14369 # Create an old-style archive from a shared archive. | |
14370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
14371 | |
14372 # Create a temporary old-style archive to link instead of a shared archive. | |
14373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
14374 | |
14375 # Commands used to build a shared archive. | |
14376 archive_cmds=$lt_archive_cmds | |
14377 archive_expsym_cmds=$lt_archive_expsym_cmds | |
14378 | |
14379 # Commands used to build a loadable module if different from building | |
14380 # a shared archive. | |
14381 module_cmds=$lt_module_cmds | |
14382 module_expsym_cmds=$lt_module_expsym_cmds | |
14383 | |
14384 # Whether we are building with GNU ld or not. | |
14385 with_gnu_ld=$lt_with_gnu_ld | |
14386 | |
14387 # Flag that allows shared libraries with undefined symbols to be built. | |
14388 allow_undefined_flag=$lt_allow_undefined_flag | |
14389 | |
14390 # Flag that enforces no undefined symbols. | |
14391 no_undefined_flag=$lt_no_undefined_flag | |
14392 | |
14393 # Flag to hardcode \$libdir into a binary during linking. | |
14394 # This must work even if \$libdir does not exist | |
14395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
14396 | |
14397 # If ld is used when linking, flag to hardcode \$libdir into a binary | |
14398 # during linking. This must work even if \$libdir does not exist. | |
14399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
14400 | |
14401 # Whether we need a single "-rpath" flag with a separated argument. | |
14402 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
14403 | |
14404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14405 # DIR into the resulting binary. | |
14406 hardcode_direct=$hardcode_direct | |
14407 | |
14408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14409 # DIR into the resulting binary and the resulting library dependency is | |
14410 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14411 # library is relocated. | |
14412 hardcode_direct_absolute=$hardcode_direct_absolute | |
14413 | |
14414 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
14415 # into the resulting binary. | |
14416 hardcode_minus_L=$hardcode_minus_L | |
14417 | |
14418 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
14419 # into the resulting binary. | |
14420 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
14421 | |
14422 # Set to "yes" if building a shared library automatically hardcodes DIR | |
14423 # into the library and all subsequent libraries and executables linked | |
14424 # against it. | |
14425 hardcode_automatic=$hardcode_automatic | |
14426 | |
14427 # Set to yes if linker adds runtime paths of dependent libraries | |
14428 # to runtime path list. | |
14429 inherit_rpath=$inherit_rpath | |
14430 | |
14431 # Whether libtool must link a program against all its dependency libraries. | |
14432 link_all_deplibs=$link_all_deplibs | |
14433 | |
14434 # Set to "yes" if exported symbols are required. | |
14435 always_export_symbols=$always_export_symbols | |
14436 | |
14437 # The commands to list exported symbols. | |
14438 export_symbols_cmds=$lt_export_symbols_cmds | |
14439 | |
14440 # Symbols that should not be listed in the preloaded symbols. | |
14441 exclude_expsyms=$lt_exclude_expsyms | |
14442 | |
14443 # Symbols that must always be exported. | |
14444 include_expsyms=$lt_include_expsyms | |
14445 | |
14446 # Commands necessary for linking programs (against libraries) with templates. | |
14447 prelink_cmds=$lt_prelink_cmds | |
14448 | |
14449 # Commands necessary for finishing linking programs. | |
14450 postlink_cmds=$lt_postlink_cmds | |
14451 | |
14452 # Specify filename containing input files. | |
14453 file_list_spec=$lt_file_list_spec | |
14454 | |
14455 # How to hardcode a shared library path into an executable. | |
14456 hardcode_action=$hardcode_action | |
14457 | |
14458 # ### END LIBTOOL CONFIG | |
14459 | |
14460 _LT_EOF | |
14461 | |
14462 case $host_os in | |
14463 aix3*) | |
14464 cat <<\_LT_EOF >> "$cfgfile" | |
14465 # AIX sometimes has problems with the GCC collect2 program. For some | |
14466 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14467 # vanish in a puff of smoke. | |
14468 if test "X${COLLECT_NAMES+set}" != Xset; then | |
14469 COLLECT_NAMES= | |
14470 export COLLECT_NAMES | |
14471 fi | |
14472 _LT_EOF | |
14473 ;; | |
14474 esac | |
14475 | |
14476 | |
14477 ltmain="$ac_aux_dir/ltmain.sh" | |
14478 | |
14479 | |
14480 # We use sed instead of cat because bash on DJGPP gets confused if | |
14481 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14482 # text mode, it properly converts lines to CR/LF. This bash problem | |
14483 # is reportedly fixed, but why not run on old versions too? | |
14484 sed '$q' "$ltmain" >> "$cfgfile" \ | |
14485 || (rm -f "$cfgfile"; exit 1) | |
14486 | |
14487 if test x"$xsi_shell" = xyes; then | |
14488 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
14489 func_dirname ()\ | |
14490 {\ | |
14491 \ case ${1} in\ | |
14492 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
14493 \ * ) func_dirname_result="${3}" ;;\ | |
14494 \ esac\ | |
14495 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
14496 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14498 test 0 -eq $? || _lt_function_replace_fail=: | |
14499 | |
14500 | |
14501 sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
14502 func_basename ()\ | |
14503 {\ | |
14504 \ func_basename_result="${1##*/}"\ | |
14505 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
14506 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14507 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14508 test 0 -eq $? || _lt_function_replace_fail=: | |
14509 | |
14510 | |
14511 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
14512 func_dirname_and_basename ()\ | |
14513 {\ | |
14514 \ case ${1} in\ | |
14515 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
14516 \ * ) func_dirname_result="${3}" ;;\ | |
14517 \ esac\ | |
14518 \ func_basename_result="${1##*/}"\ | |
14519 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
14520 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14522 test 0 -eq $? || _lt_function_replace_fail=: | |
14523 | |
14524 | |
14525 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
14526 func_stripname ()\ | |
14527 {\ | |
14528 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
14529 \ # positional parameters, so assign one to ordinary parameter first.\ | |
14530 \ func_stripname_result=${3}\ | |
14531 \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
14532 \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
14533 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
14534 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14536 test 0 -eq $? || _lt_function_replace_fail=: | |
14537 | |
14538 | |
14539 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
14540 func_split_long_opt ()\ | |
14541 {\ | |
14542 \ func_split_long_opt_name=${1%%=*}\ | |
14543 \ func_split_long_opt_arg=${1#*=}\ | |
14544 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
14545 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14547 test 0 -eq $? || _lt_function_replace_fail=: | |
14548 | |
14549 | |
14550 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
14551 func_split_short_opt ()\ | |
14552 {\ | |
14553 \ func_split_short_opt_arg=${1#??}\ | |
14554 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
14555 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
14556 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14558 test 0 -eq $? || _lt_function_replace_fail=: | |
14559 | |
14560 | |
14561 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
14562 func_lo2o ()\ | |
14563 {\ | |
14564 \ case ${1} in\ | |
14565 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
14566 \ *) func_lo2o_result=${1} ;;\ | |
14567 \ esac\ | |
14568 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
14569 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14571 test 0 -eq $? || _lt_function_replace_fail=: | |
14572 | |
14573 | |
14574 sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
14575 func_xform ()\ | |
14576 {\ | |
14577 func_xform_result=${1%.*}.lo\ | |
14578 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
14579 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14581 test 0 -eq $? || _lt_function_replace_fail=: | |
14582 | |
14583 | |
14584 sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
14585 func_arith ()\ | |
14586 {\ | |
14587 func_arith_result=$(( $* ))\ | |
14588 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
14589 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14591 test 0 -eq $? || _lt_function_replace_fail=: | |
14592 | |
14593 | |
14594 sed -e '/^func_len ()$/,/^} # func_len /c\ | |
14595 func_len ()\ | |
14596 {\ | |
14597 func_len_result=${#1}\ | |
14598 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
14599 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14601 test 0 -eq $? || _lt_function_replace_fail=: | |
14602 | |
14603 fi | |
14604 | |
14605 if test x"$lt_shell_append" = xyes; then | |
14606 sed -e '/^func_append ()$/,/^} # func_append /c\ | |
14607 func_append ()\ | |
14608 {\ | |
14609 eval "${1}+=\\${2}"\ | |
14610 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
14611 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14613 test 0 -eq $? || _lt_function_replace_fail=: | |
14614 | |
14615 | |
14616 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
14617 func_append_quoted ()\ | |
14618 {\ | |
14619 \ func_quote_for_eval "${2}"\ | |
14620 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
14621 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
14622 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14624 test 0 -eq $? || _lt_function_replace_fail=: | |
14625 | |
14626 | |
14627 # Save a `func_append' function call where possible by direct use of '+=' | |
14628 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
14629 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14631 test 0 -eq $? || _lt_function_replace_fail=: | |
14632 else | |
14633 # Save a `func_append' function call even when '+=' is not available | |
14634 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
14635 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14637 test 0 -eq $? || _lt_function_replace_fail=: | |
14638 fi | |
14639 | |
14640 if test x"$_lt_function_replace_fail" = x":"; then | |
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
14642 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
14643 fi | |
14644 | |
14645 | |
14646 mv -f "$cfgfile" "$ofile" || | |
14647 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14648 chmod +x "$ofile" | |
14649 | |
14650 ;; | |
14651 | |
14652 esac | |
14653 done # for ac_tag | |
14654 | |
14655 | |
14656 as_fn_exit 0 | |
14657 _ACEOF | |
14658 ac_clean_files=$ac_clean_files_save | |
14659 | |
14660 test $ac_write_fail = 0 || | |
14661 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
14662 | |
14663 | |
14664 # configure is writing to config.log, and then calls config.status. | |
14665 # config.status does its own redirection, appending to config.log. | |
14666 # Unfortunately, on DOS this fails, as config.log is still kept open | |
14667 # by configure, so config.status won't be able to write to it; its | |
14668 # output is simply discarded. So we exec the FD to /dev/null, | |
14669 # effectively closing config.log, so it can be properly (re)opened and | |
14670 # appended to by config.status. When coming back to configure, we | |
14671 # need to make the FD available again. | |
14672 if test "$no_create" != yes; then | |
14673 ac_cs_success=: | |
14674 ac_config_status_args= | |
14675 test "$silent" = yes && | |
14676 ac_config_status_args="$ac_config_status_args --quiet" | |
14677 exec 5>/dev/null | |
14678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14679 exec 5>>config.log | |
14680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14681 # would make configure fail if this is the last instruction. | |
14682 $ac_cs_success || as_fn_exit 1 | |
14683 fi | |
14684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14686 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
14687 fi | |
14688 |