]>
Commit | Line | Data |
---|---|---|
77008252 JJ |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
5213506e RW |
3 | # Generated by GNU Autoconf 2.64 for libssp 1.0. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
77008252 | 8 | # |
77008252 JJ |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
77008252 | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
77008252 JJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
77008252 JJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
77008252 | 31 | fi |
77008252 | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
77008252 JJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
77008252 JJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
5213506e RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
43e02a8a RW |
172 | test \$(( 1 + 1 )) = 2 || exit 1 |
173 | ||
174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 | PATH=/empty FPATH=/empty; export PATH FPATH | |
179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
5213506e RW |
181 | if (eval "$as_required") 2>/dev/null; then : |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
77008252 | 192 | do |
5213506e RW |
193 | IFS=$as_save_IFS |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
77008252 | 236 | else |
5213506e RW |
237 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
77008252 | 241 | fi |
5213506e RW |
242 | exit 1 |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
77008252 | 363 | |
5213506e RW |
364 | |
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
380 | ||
381 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
77008252 JJ |
383 | as_expr=expr |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
5213506e | 388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
77008252 JJ |
389 | as_basename=basename |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
5213506e RW |
394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
77008252 | 399 | |
5213506e | 400 | as_me=`$as_basename -- "$0" || |
77008252 JJ |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
402 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
77008252 | 418 | |
77008252 JJ |
419 | # Avoid depending upon Character Ranges. |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
425 | ||
77008252 | 426 | |
5213506e RW |
427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
77008252 | 436 | sed ' |
5213506e RW |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
77008252 | 441 | N |
5213506e RW |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
77008252 | 444 | t loop |
5213506e | 445 | s/-\n.*// |
77008252 | 446 | ' >$as_me.lineno && |
5213506e RW |
447 | chmod +x "$as_me.lineno" || |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
77008252 JJ |
449 | |
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
452 | # original and so on. Autoconf is especially sensitive to this). |
453 | . "./$as_me.lineno" | |
77008252 JJ |
454 | # Exit status is that of the last command. |
455 | exit | |
456 | } | |
457 | ||
5213506e RW |
458 | ECHO_C= ECHO_N= ECHO_T= |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
77008252 JJ |
469 | esac |
470 | ||
5213506e RW |
471 | rm -f conf$$ conf$$.exe conf$$.file |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
77008252 | 474 | else |
5213506e RW |
475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null | |
77008252 | 477 | fi |
5213506e RW |
478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
77008252 | 480 | as_ln_s='ln -s' |
5213506e RW |
481 | # ... but there are two gotchas: |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
77008252 | 491 | fi |
77008252 JJ |
492 | else |
493 | as_ln_s='cp -p' | |
494 | fi | |
5213506e RW |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
496 | rmdir conf$$.dir 2>/dev/null | |
77008252 JJ |
497 | |
498 | if mkdir -p . 2>/dev/null; then | |
5213506e | 499 | as_mkdir_p='mkdir -p "$as_dir"' |
77008252 JJ |
500 | else |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
5213506e RW |
505 | if test -x / >/dev/null 2>&1; then |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
77008252 JJ |
527 | |
528 | # Sed expression to map a string onto a valid CPP name. | |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | # Sed expression to map a string onto a valid variable name. | |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | ||
1cf3d07d SE |
534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | ||
1cf3d07d | 536 | |
5213506e RW |
537 | exec 7<&0 </dev/null 6>&1 |
538 | ||
77008252 JJ |
539 | # Name of the host. |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | ||
77008252 JJ |
544 | # |
545 | # Initializations. | |
546 | # | |
547 | ac_default_prefix=/usr/local | |
5213506e | 548 | ac_clean_files= |
77008252 | 549 | ac_config_libobj_dir=. |
5213506e | 550 | LIBOBJS= |
77008252 JJ |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
77008252 JJ |
555 | |
556 | # Identity of this package. | |
557 | PACKAGE_NAME='libssp' | |
558 | PACKAGE_TARNAME='libssp' | |
559 | PACKAGE_VERSION='1.0' | |
560 | PACKAGE_STRING='libssp 1.0' | |
561 | PACKAGE_BUGREPORT='' | |
5213506e | 562 | PACKAGE_URL='' |
77008252 JJ |
563 | |
564 | ac_unique_file="ssp.c" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
5213506e | 568 | #ifdef HAVE_SYS_TYPES_H |
77008252 JJ |
569 | # include <sys/types.h> |
570 | #endif | |
5213506e | 571 | #ifdef HAVE_SYS_STAT_H |
77008252 JJ |
572 | # include <sys/stat.h> |
573 | #endif | |
5213506e | 574 | #ifdef STDC_HEADERS |
77008252 JJ |
575 | # include <stdlib.h> |
576 | # include <stddef.h> | |
577 | #else | |
5213506e | 578 | # ifdef HAVE_STDLIB_H |
77008252 JJ |
579 | # include <stdlib.h> |
580 | # endif | |
581 | #endif | |
5213506e RW |
582 | #ifdef HAVE_STRING_H |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
77008252 JJ |
584 | # include <memory.h> |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
5213506e | 588 | #ifdef HAVE_STRINGS_H |
77008252 JJ |
589 | # include <strings.h> |
590 | #endif | |
5213506e | 591 | #ifdef HAVE_INTTYPES_H |
77008252 | 592 | # include <inttypes.h> |
77008252 | 593 | #endif |
5213506e RW |
594 | #ifdef HAVE_STDINT_H |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
77008252 JJ |
598 | # include <unistd.h> |
599 | #endif" | |
600 | ||
5213506e RW |
601 | ac_subst_vars='am__EXEEXT_FALSE |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
605 | toolexeclibdir | |
606 | toolexecdir | |
607 | enable_static | |
608 | enable_shared | |
7de6ba7a | 609 | lt_host_flags |
5213506e RW |
610 | OTOOL64 |
611 | OTOOL | |
612 | LIPO | |
613 | NMEDIT | |
614 | DSYMUTIL | |
5213506e RW |
615 | RANLIB |
616 | AR | |
617 | OBJDUMP | |
618 | LN_S | |
619 | NM | |
620 | ac_ct_DUMPBIN | |
621 | DUMPBIN | |
622 | LD | |
623 | FGREP | |
624 | SED | |
625 | LIBTOOL | |
626 | ssp_have_usable_vsnprintf | |
627 | EGREP | |
628 | GREP | |
ca6d1176 RO |
629 | LIBSSP_USE_SYMVER_SUN_FALSE |
630 | LIBSSP_USE_SYMVER_SUN_TRUE | |
631 | LIBSSP_USE_SYMVER_GNU_FALSE | |
632 | LIBSSP_USE_SYMVER_GNU_TRUE | |
5213506e RW |
633 | LIBSSP_USE_SYMVER_FALSE |
634 | LIBSSP_USE_SYMVER_TRUE | |
635 | CPP | |
636 | am__fastdepCC_FALSE | |
637 | am__fastdepCC_TRUE | |
638 | CCDEPMODE | |
639 | AMDEPBACKSLASH | |
640 | AMDEP_FALSE | |
641 | AMDEP_TRUE | |
642 | am__quote | |
643 | am__include | |
644 | DEPDIR | |
645 | OBJEXT | |
646 | EXEEXT | |
647 | ac_ct_CC | |
648 | CPPFLAGS | |
649 | LDFLAGS | |
650 | CFLAGS | |
651 | CC | |
652 | multi_basedir | |
653 | MAINT | |
654 | MAINTAINER_MODE_FALSE | |
655 | MAINTAINER_MODE_TRUE | |
656 | am__untar | |
657 | am__tar | |
658 | AMTAR | |
659 | am__leading_dot | |
660 | SET_MAKE | |
661 | AWK | |
662 | mkdir_p | |
663 | MKDIR_P | |
664 | INSTALL_STRIP_PROGRAM | |
665 | STRIP | |
666 | install_sh | |
667 | MAKEINFO | |
668 | AUTOHEADER | |
669 | AUTOMAKE | |
670 | AUTOCONF | |
671 | ACLOCAL | |
672 | VERSION | |
673 | PACKAGE | |
674 | CYGPATH_W | |
675 | am__isrc | |
676 | INSTALL_DATA | |
677 | INSTALL_SCRIPT | |
678 | INSTALL_PROGRAM | |
679 | target_noncanonical | |
680 | target_os | |
681 | target_vendor | |
682 | target_cpu | |
683 | target | |
684 | host_os | |
685 | host_vendor | |
686 | host_cpu | |
687 | host | |
688 | build_os | |
689 | build_vendor | |
690 | build_cpu | |
691 | build | |
692 | target_alias | |
693 | host_alias | |
694 | build_alias | |
695 | LIBS | |
696 | ECHO_T | |
697 | ECHO_N | |
698 | ECHO_C | |
699 | DEFS | |
700 | mandir | |
701 | localedir | |
702 | libdir | |
703 | psdir | |
704 | pdfdir | |
705 | dvidir | |
706 | htmldir | |
707 | infodir | |
708 | docdir | |
709 | oldincludedir | |
710 | includedir | |
711 | localstatedir | |
712 | sharedstatedir | |
713 | sysconfdir | |
714 | datadir | |
715 | datarootdir | |
716 | libexecdir | |
717 | sbindir | |
718 | bindir | |
719 | program_transform_name | |
720 | prefix | |
721 | exec_prefix | |
722 | PACKAGE_URL | |
723 | PACKAGE_BUGREPORT | |
724 | PACKAGE_STRING | |
725 | PACKAGE_VERSION | |
726 | PACKAGE_TARNAME | |
727 | PACKAGE_NAME | |
728 | PATH_SEPARATOR | |
729 | SHELL' | |
77008252 | 730 | ac_subst_files='' |
5213506e RW |
731 | ac_user_opts=' |
732 | enable_option_checking | |
733 | enable_version_specific_runtime_libs | |
734 | enable_maintainer_mode | |
735 | enable_multilib | |
736 | enable_dependency_tracking | |
737 | enable_shared | |
738 | enable_static | |
739 | with_pic | |
740 | enable_fast_install | |
741 | with_gnu_ld | |
742 | enable_libtool_lock | |
743 | ' | |
744 | ac_precious_vars='build_alias | |
745 | host_alias | |
746 | target_alias | |
747 | CPP | |
748 | CPPFLAGS' | |
749 | ||
77008252 JJ |
750 | |
751 | # Initialize some variables set by options. | |
752 | ac_init_help= | |
753 | ac_init_version=false | |
5213506e RW |
754 | ac_unrecognized_opts= |
755 | ac_unrecognized_sep= | |
77008252 JJ |
756 | # The variables have the same names as the options, with |
757 | # dashes changed to underlines. | |
758 | cache_file=/dev/null | |
759 | exec_prefix=NONE | |
760 | no_create= | |
761 | no_recursion= | |
762 | prefix=NONE | |
763 | program_prefix=NONE | |
764 | program_suffix=NONE | |
765 | program_transform_name=s,x,x, | |
766 | silent= | |
767 | site= | |
768 | srcdir= | |
769 | verbose= | |
770 | x_includes=NONE | |
771 | x_libraries=NONE | |
772 | ||
773 | # Installation directory options. | |
774 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
775 | # and all the variables that are supposed to be based on exec_prefix | |
776 | # by default will actually change. | |
777 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 778 | # (The list follows the same order as the GNU Coding Standards.) |
77008252 JJ |
779 | bindir='${exec_prefix}/bin' |
780 | sbindir='${exec_prefix}/sbin' | |
781 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
782 | datarootdir='${prefix}/share' |
783 | datadir='${datarootdir}' | |
77008252 JJ |
784 | sysconfdir='${prefix}/etc' |
785 | sharedstatedir='${prefix}/com' | |
786 | localstatedir='${prefix}/var' | |
77008252 JJ |
787 | includedir='${prefix}/include' |
788 | oldincludedir='/usr/include' | |
5213506e RW |
789 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
790 | infodir='${datarootdir}/info' | |
791 | htmldir='${docdir}' | |
792 | dvidir='${docdir}' | |
793 | pdfdir='${docdir}' | |
794 | psdir='${docdir}' | |
795 | libdir='${exec_prefix}/lib' | |
796 | localedir='${datarootdir}/locale' | |
797 | mandir='${datarootdir}/man' | |
77008252 JJ |
798 | |
799 | ac_prev= | |
5213506e | 800 | ac_dashdash= |
77008252 JJ |
801 | for ac_option |
802 | do | |
803 | # If the previous option needs an argument, assign it. | |
804 | if test -n "$ac_prev"; then | |
5213506e | 805 | eval $ac_prev=\$ac_option |
77008252 JJ |
806 | ac_prev= |
807 | continue | |
808 | fi | |
809 | ||
5213506e RW |
810 | case $ac_option in |
811 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
812 | *) ac_optarg=yes ;; | |
813 | esac | |
77008252 JJ |
814 | |
815 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
816 | ||
5213506e RW |
817 | case $ac_dashdash$ac_option in |
818 | --) | |
819 | ac_dashdash=yes ;; | |
77008252 JJ |
820 | |
821 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
822 | ac_prev=bindir ;; | |
823 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
824 | bindir=$ac_optarg ;; | |
825 | ||
826 | -build | --build | --buil | --bui | --bu) | |
827 | ac_prev=build_alias ;; | |
828 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
829 | build_alias=$ac_optarg ;; | |
830 | ||
831 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
832 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
833 | ac_prev=cache_file ;; | |
834 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
835 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
836 | cache_file=$ac_optarg ;; | |
837 | ||
838 | --config-cache | -C) | |
839 | cache_file=config.cache ;; | |
840 | ||
5213506e | 841 | -datadir | --datadir | --datadi | --datad) |
77008252 | 842 | ac_prev=datadir ;; |
5213506e | 843 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
77008252 JJ |
844 | datadir=$ac_optarg ;; |
845 | ||
5213506e RW |
846 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
847 | | --dataroo | --dataro | --datar) | |
848 | ac_prev=datarootdir ;; | |
849 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
850 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
851 | datarootdir=$ac_optarg ;; | |
852 | ||
77008252 | 853 | -disable-* | --disable-*) |
5213506e | 854 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
77008252 | 855 | # Reject names that are not valid shell variable names. |
5213506e RW |
856 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
857 | as_fn_error "invalid feature name: $ac_useropt" | |
858 | ac_useropt_orig=$ac_useropt | |
859 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
860 | case $ac_user_opts in | |
861 | *" | |
862 | "enable_$ac_useropt" | |
863 | "*) ;; | |
864 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
865 | ac_unrecognized_sep=', ';; | |
866 | esac | |
867 | eval enable_$ac_useropt=no ;; | |
868 | ||
869 | -docdir | --docdir | --docdi | --doc | --do) | |
870 | ac_prev=docdir ;; | |
871 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
872 | docdir=$ac_optarg ;; | |
873 | ||
874 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
875 | ac_prev=dvidir ;; | |
876 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
877 | dvidir=$ac_optarg ;; | |
77008252 JJ |
878 | |
879 | -enable-* | --enable-*) | |
5213506e | 880 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
77008252 | 881 | # Reject names that are not valid shell variable names. |
5213506e RW |
882 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
883 | as_fn_error "invalid feature name: $ac_useropt" | |
884 | ac_useropt_orig=$ac_useropt | |
885 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
886 | case $ac_user_opts in | |
887 | *" | |
888 | "enable_$ac_useropt" | |
889 | "*) ;; | |
890 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
891 | ac_unrecognized_sep=', ';; | |
77008252 | 892 | esac |
5213506e | 893 | eval enable_$ac_useropt=\$ac_optarg ;; |
77008252 JJ |
894 | |
895 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
896 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
897 | | --exec | --exe | --ex) | |
898 | ac_prev=exec_prefix ;; | |
899 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
900 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
901 | | --exec=* | --exe=* | --ex=*) | |
902 | exec_prefix=$ac_optarg ;; | |
903 | ||
904 | -gas | --gas | --ga | --g) | |
905 | # Obsolete; use --with-gas. | |
906 | with_gas=yes ;; | |
907 | ||
908 | -help | --help | --hel | --he | -h) | |
909 | ac_init_help=long ;; | |
910 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
911 | ac_init_help=recursive ;; | |
912 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
913 | ac_init_help=short ;; | |
914 | ||
915 | -host | --host | --hos | --ho) | |
916 | ac_prev=host_alias ;; | |
917 | -host=* | --host=* | --hos=* | --ho=*) | |
918 | host_alias=$ac_optarg ;; | |
919 | ||
5213506e RW |
920 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
921 | ac_prev=htmldir ;; | |
922 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
923 | | --ht=*) | |
924 | htmldir=$ac_optarg ;; | |
925 | ||
77008252 JJ |
926 | -includedir | --includedir | --includedi | --included | --include \ |
927 | | --includ | --inclu | --incl | --inc) | |
928 | ac_prev=includedir ;; | |
929 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
930 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
931 | includedir=$ac_optarg ;; | |
932 | ||
933 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
934 | ac_prev=infodir ;; | |
935 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
936 | infodir=$ac_optarg ;; | |
937 | ||
938 | -libdir | --libdir | --libdi | --libd) | |
939 | ac_prev=libdir ;; | |
940 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
941 | libdir=$ac_optarg ;; | |
942 | ||
943 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
944 | | --libexe | --libex | --libe) | |
945 | ac_prev=libexecdir ;; | |
946 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
947 | | --libexe=* | --libex=* | --libe=*) | |
948 | libexecdir=$ac_optarg ;; | |
949 | ||
5213506e RW |
950 | -localedir | --localedir | --localedi | --localed | --locale) |
951 | ac_prev=localedir ;; | |
952 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
953 | localedir=$ac_optarg ;; | |
954 | ||
77008252 | 955 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 956 | | --localstate | --localstat | --localsta | --localst | --locals) |
77008252 JJ |
957 | ac_prev=localstatedir ;; |
958 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 959 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
77008252 JJ |
960 | localstatedir=$ac_optarg ;; |
961 | ||
962 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
963 | ac_prev=mandir ;; | |
964 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
965 | mandir=$ac_optarg ;; | |
966 | ||
967 | -nfp | --nfp | --nf) | |
968 | # Obsolete; use --without-fp. | |
969 | with_fp=no ;; | |
970 | ||
971 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
972 | | --no-cr | --no-c | -n) | |
973 | no_create=yes ;; | |
974 | ||
975 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
976 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
977 | no_recursion=yes ;; | |
978 | ||
979 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
980 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
981 | | --oldin | --oldi | --old | --ol | --o) | |
982 | ac_prev=oldincludedir ;; | |
983 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
984 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
985 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
986 | oldincludedir=$ac_optarg ;; | |
987 | ||
988 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
989 | ac_prev=prefix ;; | |
990 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
991 | prefix=$ac_optarg ;; | |
992 | ||
993 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
994 | | --program-pre | --program-pr | --program-p) | |
995 | ac_prev=program_prefix ;; | |
996 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
997 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
998 | program_prefix=$ac_optarg ;; | |
999 | ||
1000 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1001 | | --program-suf | --program-su | --program-s) | |
1002 | ac_prev=program_suffix ;; | |
1003 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1004 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1005 | program_suffix=$ac_optarg ;; | |
1006 | ||
1007 | -program-transform-name | --program-transform-name \ | |
1008 | | --program-transform-nam | --program-transform-na \ | |
1009 | | --program-transform-n | --program-transform- \ | |
1010 | | --program-transform | --program-transfor \ | |
1011 | | --program-transfo | --program-transf \ | |
1012 | | --program-trans | --program-tran \ | |
1013 | | --progr-tra | --program-tr | --program-t) | |
1014 | ac_prev=program_transform_name ;; | |
1015 | -program-transform-name=* | --program-transform-name=* \ | |
1016 | | --program-transform-nam=* | --program-transform-na=* \ | |
1017 | | --program-transform-n=* | --program-transform-=* \ | |
1018 | | --program-transform=* | --program-transfor=* \ | |
1019 | | --program-transfo=* | --program-transf=* \ | |
1020 | | --program-trans=* | --program-tran=* \ | |
1021 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1022 | program_transform_name=$ac_optarg ;; | |
1023 | ||
5213506e RW |
1024 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1025 | ac_prev=pdfdir ;; | |
1026 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1027 | pdfdir=$ac_optarg ;; | |
1028 | ||
1029 | -psdir | --psdir | --psdi | --psd | --ps) | |
1030 | ac_prev=psdir ;; | |
1031 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1032 | psdir=$ac_optarg ;; | |
1033 | ||
77008252 JJ |
1034 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1035 | | -silent | --silent | --silen | --sile | --sil) | |
1036 | silent=yes ;; | |
1037 | ||
1038 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1039 | ac_prev=sbindir ;; | |
1040 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1041 | | --sbi=* | --sb=*) | |
1042 | sbindir=$ac_optarg ;; | |
1043 | ||
1044 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1045 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1046 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1047 | | --sha | --sh) | |
1048 | ac_prev=sharedstatedir ;; | |
1049 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1050 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1051 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1052 | | --sha=* | --sh=*) | |
1053 | sharedstatedir=$ac_optarg ;; | |
1054 | ||
1055 | -site | --site | --sit) | |
1056 | ac_prev=site ;; | |
1057 | -site=* | --site=* | --sit=*) | |
1058 | site=$ac_optarg ;; | |
1059 | ||
1060 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1061 | ac_prev=srcdir ;; | |
1062 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1063 | srcdir=$ac_optarg ;; | |
1064 | ||
1065 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1066 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1067 | ac_prev=sysconfdir ;; | |
1068 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1069 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1070 | sysconfdir=$ac_optarg ;; | |
1071 | ||
1072 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1073 | ac_prev=target_alias ;; | |
1074 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1075 | target_alias=$ac_optarg ;; | |
1076 | ||
1077 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1078 | verbose=yes ;; | |
1079 | ||
1080 | -version | --version | --versio | --versi | --vers | -V) | |
1081 | ac_init_version=: ;; | |
1082 | ||
1083 | -with-* | --with-*) | |
5213506e | 1084 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
77008252 | 1085 | # Reject names that are not valid shell variable names. |
5213506e RW |
1086 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1087 | as_fn_error "invalid package name: $ac_useropt" | |
1088 | ac_useropt_orig=$ac_useropt | |
1089 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1090 | case $ac_user_opts in | |
1091 | *" | |
1092 | "with_$ac_useropt" | |
1093 | "*) ;; | |
1094 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1095 | ac_unrecognized_sep=', ';; | |
77008252 | 1096 | esac |
5213506e | 1097 | eval with_$ac_useropt=\$ac_optarg ;; |
77008252 JJ |
1098 | |
1099 | -without-* | --without-*) | |
5213506e | 1100 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
77008252 | 1101 | # Reject names that are not valid shell variable names. |
5213506e RW |
1102 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1103 | as_fn_error "invalid package name: $ac_useropt" | |
1104 | ac_useropt_orig=$ac_useropt | |
1105 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1106 | case $ac_user_opts in | |
1107 | *" | |
1108 | "with_$ac_useropt" | |
1109 | "*) ;; | |
1110 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1111 | ac_unrecognized_sep=', ';; | |
1112 | esac | |
1113 | eval with_$ac_useropt=no ;; | |
77008252 JJ |
1114 | |
1115 | --x) | |
1116 | # Obsolete; use --with-x. | |
1117 | with_x=yes ;; | |
1118 | ||
1119 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1120 | | --x-incl | --x-inc | --x-in | --x-i) | |
1121 | ac_prev=x_includes ;; | |
1122 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1123 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1124 | x_includes=$ac_optarg ;; | |
1125 | ||
1126 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1127 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1128 | ac_prev=x_libraries ;; | |
1129 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1130 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1131 | x_libraries=$ac_optarg ;; | |
1132 | ||
5213506e RW |
1133 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1134 | Try \`$0 --help' for more information." | |
77008252 JJ |
1135 | ;; |
1136 | ||
1137 | *=*) | |
1138 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1139 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1140 | case $ac_envvar in #( |
1141 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1142 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1143 | esac | |
1144 | eval $ac_envvar=\$ac_optarg | |
77008252 JJ |
1145 | export $ac_envvar ;; |
1146 | ||
1147 | *) | |
1148 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1149 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
77008252 | 1150 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1151 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
77008252 JJ |
1152 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1153 | ;; | |
1154 | ||
1155 | esac | |
1156 | done | |
1157 | ||
1158 | if test -n "$ac_prev"; then | |
1159 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
5213506e | 1160 | as_fn_error "missing argument to $ac_option" |
77008252 JJ |
1161 | fi |
1162 | ||
5213506e RW |
1163 | if test -n "$ac_unrecognized_opts"; then |
1164 | case $enable_option_checking in | |
1165 | no) ;; | |
1166 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1167 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
77008252 | 1168 | esac |
5213506e | 1169 | fi |
77008252 | 1170 | |
5213506e RW |
1171 | # Check all directory arguments for consistency. |
1172 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1173 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1174 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1175 | libdir localedir mandir | |
77008252 | 1176 | do |
5213506e RW |
1177 | eval ac_val=\$$ac_var |
1178 | # Remove trailing slashes. | |
1179 | case $ac_val in | |
1180 | */ ) | |
1181 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1182 | eval $ac_var=\$ac_val;; | |
1183 | esac | |
1184 | # Be sure to have absolute directory names. | |
77008252 | 1185 | case $ac_val in |
5213506e RW |
1186 | [\\/$]* | ?:[\\/]* ) continue;; |
1187 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
77008252 | 1188 | esac |
5213506e | 1189 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
77008252 JJ |
1190 | done |
1191 | ||
1192 | # There might be people who depend on the old broken behavior: `$host' | |
1193 | # used to hold the argument of --host etc. | |
1194 | # FIXME: To remove some day. | |
1195 | build=$build_alias | |
1196 | host=$host_alias | |
1197 | target=$target_alias | |
1198 | ||
1199 | # FIXME: To remove some day. | |
1200 | if test "x$host_alias" != x; then | |
1201 | if test "x$build_alias" = x; then | |
1202 | cross_compiling=maybe | |
5213506e | 1203 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
77008252 JJ |
1204 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1205 | elif test "x$build_alias" != "x$host_alias"; then | |
1206 | cross_compiling=yes | |
1207 | fi | |
1208 | fi | |
1209 | ||
1210 | ac_tool_prefix= | |
1211 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1212 | ||
1213 | test "$silent" = yes && exec 6>/dev/null | |
1214 | ||
1215 | ||
5213506e RW |
1216 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1217 | ac_ls_di=`ls -di .` && | |
1218 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1219 | as_fn_error "working directory cannot be determined" | |
1220 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1221 | as_fn_error "pwd does not report name of working directory" | |
1222 | ||
1223 | ||
77008252 JJ |
1224 | # Find the source files, if location was not specified. |
1225 | if test -z "$srcdir"; then | |
1226 | ac_srcdir_defaulted=yes | |
5213506e RW |
1227 | # Try the directory containing this script, then the parent directory. |
1228 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1229 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1230 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1231 | X"$as_myself" : 'X\(//\)$' \| \ | |
1232 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1233 | $as_echo X"$as_myself" | | |
1234 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1235 | s//\1/ | |
1236 | q | |
1237 | } | |
1238 | /^X\(\/\/\)[^/].*/{ | |
1239 | s//\1/ | |
1240 | q | |
1241 | } | |
1242 | /^X\(\/\/\)$/{ | |
1243 | s//\1/ | |
1244 | q | |
1245 | } | |
1246 | /^X\(\/\).*/{ | |
1247 | s//\1/ | |
1248 | q | |
1249 | } | |
1250 | s/.*/./; q'` | |
77008252 | 1251 | srcdir=$ac_confdir |
5213506e | 1252 | if test ! -r "$srcdir/$ac_unique_file"; then |
77008252 JJ |
1253 | srcdir=.. |
1254 | fi | |
1255 | else | |
1256 | ac_srcdir_defaulted=no | |
1257 | fi | |
5213506e RW |
1258 | if test ! -r "$srcdir/$ac_unique_file"; then |
1259 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1260 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1261 | fi | |
1262 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1263 | ac_abs_confdir=`( | |
1264 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1265 | pwd)` | |
1266 | # When building in place, set srcdir=. | |
1267 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1268 | srcdir=. | |
1269 | fi | |
1270 | # Remove unnecessary trailing slashes from srcdir. | |
1271 | # Double slashes in file names in object file debugging info | |
1272 | # mess up M-x gdb in Emacs. | |
1273 | case $srcdir in | |
1274 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1275 | esac | |
1276 | for ac_var in $ac_precious_vars; do | |
1277 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1278 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1279 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1280 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1281 | done | |
77008252 JJ |
1282 | |
1283 | # | |
1284 | # Report the --help message. | |
1285 | # | |
1286 | if test "$ac_init_help" = "long"; then | |
1287 | # Omit some internal or obsolete options to make the list less imposing. | |
1288 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1289 | cat <<_ACEOF | |
1290 | \`configure' configures libssp 1.0 to adapt to many kinds of systems. | |
1291 | ||
1292 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1293 | ||
1294 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1295 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1296 | ||
1297 | Defaults for the options are specified in brackets. | |
1298 | ||
1299 | Configuration: | |
1300 | -h, --help display this help and exit | |
1301 | --help=short display options specific to this package | |
1302 | --help=recursive display the short help of all the included packages | |
1303 | -V, --version display version information and exit | |
1304 | -q, --quiet, --silent do not print \`checking...' messages | |
1305 | --cache-file=FILE cache test results in FILE [disabled] | |
1306 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1307 | -n, --no-create do not create output files | |
1308 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1309 | ||
77008252 JJ |
1310 | Installation directories: |
1311 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1312 | [$ac_default_prefix] |
77008252 | 1313 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1314 | [PREFIX] |
77008252 JJ |
1315 | |
1316 | By default, \`make install' will install all the files in | |
1317 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1318 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1319 | for instance \`--prefix=\$HOME'. | |
1320 | ||
1321 | For better control, use the options below. | |
1322 | ||
1323 | Fine tuning of the installation directories: | |
5213506e RW |
1324 | --bindir=DIR user executables [EPREFIX/bin] |
1325 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1326 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1327 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1328 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1329 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1330 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1331 | --includedir=DIR C header files [PREFIX/include] | |
1332 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1333 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1334 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1335 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1336 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1337 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1338 | --docdir=DIR documentation root [DATAROOTDIR/doc/libssp] | |
1339 | --htmldir=DIR html documentation [DOCDIR] | |
1340 | --dvidir=DIR dvi documentation [DOCDIR] | |
1341 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1342 | --psdir=DIR ps documentation [DOCDIR] | |
77008252 JJ |
1343 | _ACEOF |
1344 | ||
1345 | cat <<\_ACEOF | |
1346 | ||
1347 | Program names: | |
1348 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1349 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1350 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1351 | ||
1352 | System types: | |
1353 | --build=BUILD configure for building on BUILD [guessed] | |
1354 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1355 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1356 | _ACEOF | |
1357 | fi | |
1358 | ||
1359 | if test -n "$ac_init_help"; then | |
1360 | case $ac_init_help in | |
1361 | short | recursive ) echo "Configuration of libssp 1.0:";; | |
1362 | esac | |
1363 | cat <<\_ACEOF | |
1364 | ||
1365 | Optional Features: | |
5213506e | 1366 | --disable-option-checking ignore unrecognized --enable/--with options |
77008252 JJ |
1367 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1368 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1369 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory | |
1370 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1371 | (and sometimes confusing) to the casual installer | |
1372 | --enable-multilib build many library versions (default) | |
1373 | --disable-dependency-tracking speeds up one-time build | |
1374 | --enable-dependency-tracking do not reject slow dependency extractors | |
5213506e RW |
1375 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1376 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1377 | --enable-fast-install[=PKGS] |
1378 | optimize for fast installation [default=yes] | |
77008252 JJ |
1379 | --disable-libtool-lock avoid locking (might break parallel builds) |
1380 | ||
1381 | Optional Packages: | |
1382 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1383 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1cf3d07d SE |
1384 | --with-pic try to use only PIC/non-PIC objects [default=use |
1385 | both] | |
1386 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
77008252 JJ |
1387 | |
1388 | Some influential environment variables: | |
1389 | CC C compiler command | |
1390 | CFLAGS C compiler flags | |
1391 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1392 | nonstandard directory <lib dir> | |
5213506e RW |
1393 | LIBS libraries to pass to the linker, e.g. -l<library> |
1394 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1395 | you have headers in a nonstandard directory <include dir> | |
77008252 JJ |
1396 | CPP C preprocessor |
1397 | ||
1398 | Use these variables to override the choices made by `configure' or to help | |
1399 | it to find libraries and programs with nonstandard names/locations. | |
1400 | ||
5213506e | 1401 | Report bugs to the package provider. |
77008252 | 1402 | _ACEOF |
5213506e | 1403 | ac_status=$? |
77008252 JJ |
1404 | fi |
1405 | ||
1406 | if test "$ac_init_help" = "recursive"; then | |
1407 | # If there are subdirs, report their specific --help. | |
77008252 | 1408 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1409 | test -d "$ac_dir" || |
1410 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1411 | continue | |
77008252 JJ |
1412 | ac_builddir=. |
1413 | ||
5213506e RW |
1414 | case "$ac_dir" in |
1415 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1416 | *) | |
1417 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1418 | # A ".." for each directory in $ac_dir_suffix. | |
1419 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1420 | case $ac_top_builddir_sub in | |
1421 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1422 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1423 | esac ;; | |
1424 | esac | |
1425 | ac_abs_top_builddir=$ac_pwd | |
1426 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1427 | # for backward compatibility: | |
1428 | ac_top_builddir=$ac_top_build_prefix | |
77008252 JJ |
1429 | |
1430 | case $srcdir in | |
5213506e | 1431 | .) # We are building in place. |
77008252 | 1432 | ac_srcdir=. |
5213506e RW |
1433 | ac_top_srcdir=$ac_top_builddir_sub |
1434 | ac_abs_top_srcdir=$ac_pwd ;; | |
1435 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
77008252 | 1436 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1437 | ac_top_srcdir=$srcdir |
1438 | ac_abs_top_srcdir=$srcdir ;; | |
1439 | *) # Relative name. | |
1440 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1441 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1442 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
77008252 | 1443 | esac |
5213506e RW |
1444 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1445 | ||
1446 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1447 | # Check for guested configure. | |
1448 | if test -f "$ac_srcdir/configure.gnu"; then | |
1449 | echo && | |
1450 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1451 | elif test -f "$ac_srcdir/configure"; then | |
1452 | echo && | |
1453 | $SHELL "$ac_srcdir/configure" --help=recursive | |
77008252 | 1454 | else |
5213506e RW |
1455 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1456 | fi || ac_status=$? | |
1457 | cd "$ac_pwd" || { ac_status=$?; break; } | |
77008252 JJ |
1458 | done |
1459 | fi | |
1460 | ||
5213506e | 1461 | test -n "$ac_init_help" && exit $ac_status |
77008252 JJ |
1462 | if $ac_init_version; then |
1463 | cat <<\_ACEOF | |
1464 | libssp configure 1.0 | |
5213506e | 1465 | generated by GNU Autoconf 2.64 |
77008252 | 1466 | |
5213506e | 1467 | Copyright (C) 2009 Free Software Foundation, Inc. |
77008252 JJ |
1468 | This configure script is free software; the Free Software Foundation |
1469 | gives unlimited permission to copy, distribute and modify it. | |
1470 | _ACEOF | |
5213506e | 1471 | exit |
77008252 | 1472 | fi |
77008252 | 1473 | |
5213506e RW |
1474 | ## ------------------------ ## |
1475 | ## Autoconf initialization. ## | |
1476 | ## ------------------------ ## | |
77008252 | 1477 | |
5213506e RW |
1478 | # ac_fn_c_try_compile LINENO |
1479 | # -------------------------- | |
1480 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1481 | ac_fn_c_try_compile () | |
77008252 | 1482 | { |
5213506e RW |
1483 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1484 | rm -f conftest.$ac_objext | |
1485 | if { { ac_try="$ac_compile" | |
1486 | case "(($ac_try" in | |
1487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1488 | *) ac_try_echo=$ac_try;; | |
1489 | esac | |
1490 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1491 | $as_echo "$ac_try_echo"; } >&5 | |
1492 | (eval "$ac_compile") 2>conftest.err | |
1493 | ac_status=$? | |
1494 | if test -s conftest.err; then | |
1495 | grep -v '^ *+' conftest.err >conftest.er1 | |
1496 | cat conftest.er1 >&5 | |
1497 | mv -f conftest.er1 conftest.err | |
1498 | fi | |
1499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1500 | test $ac_status = 0; } && { | |
1501 | test -z "$ac_c_werror_flag" || | |
1502 | test ! -s conftest.err | |
1503 | } && test -s conftest.$ac_objext; then : | |
1504 | ac_retval=0 | |
1505 | else | |
1506 | $as_echo "$as_me: failed program was:" >&5 | |
1507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
77008252 | 1508 | |
5213506e RW |
1509 | ac_retval=1 |
1510 | fi | |
1511 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1512 | return $ac_retval | |
77008252 | 1513 | |
5213506e | 1514 | } # ac_fn_c_try_compile |
77008252 | 1515 | |
5213506e RW |
1516 | # ac_fn_c_try_cpp LINENO |
1517 | # ---------------------- | |
1518 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1519 | ac_fn_c_try_cpp () | |
1520 | { | |
1521 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1522 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1523 | case "(($ac_try" in | |
1524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1525 | *) ac_try_echo=$ac_try;; | |
1526 | esac | |
1527 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1528 | $as_echo "$ac_try_echo"; } >&5 | |
1529 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1530 | ac_status=$? | |
1531 | if test -s conftest.err; then | |
1532 | grep -v '^ *+' conftest.err >conftest.er1 | |
1533 | cat conftest.er1 >&5 | |
1534 | mv -f conftest.er1 conftest.err | |
1535 | fi | |
1536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1537 | test $ac_status = 0; } >/dev/null && { | |
1538 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1539 | test ! -s conftest.err | |
1540 | }; then : | |
1541 | ac_retval=0 | |
1542 | else | |
1543 | $as_echo "$as_me: failed program was:" >&5 | |
1544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
77008252 | 1545 | |
5213506e RW |
1546 | ac_retval=1 |
1547 | fi | |
1548 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1549 | return $ac_retval | |
77008252 | 1550 | |
5213506e RW |
1551 | } # ac_fn_c_try_cpp |
1552 | ||
1553 | # ac_fn_c_try_link LINENO | |
1554 | # ----------------------- | |
1555 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1556 | ac_fn_c_try_link () | |
1557 | { | |
1558 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1560 | if { { ac_try="$ac_link" | |
1561 | case "(($ac_try" in | |
1562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1563 | *) ac_try_echo=$ac_try;; | |
1564 | esac | |
1565 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1566 | $as_echo "$ac_try_echo"; } >&5 | |
1567 | (eval "$ac_link") 2>conftest.err | |
1568 | ac_status=$? | |
1569 | if test -s conftest.err; then | |
1570 | grep -v '^ *+' conftest.err >conftest.er1 | |
1571 | cat conftest.er1 >&5 | |
1572 | mv -f conftest.er1 conftest.err | |
1573 | fi | |
1574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1575 | test $ac_status = 0; } && { | |
1576 | test -z "$ac_c_werror_flag" || | |
1577 | test ! -s conftest.err | |
1578 | } && test -s conftest$ac_exeext && { | |
1579 | test "$cross_compiling" = yes || | |
1580 | $as_test_x conftest$ac_exeext | |
1581 | }; then : | |
1582 | ac_retval=0 | |
1583 | else | |
1584 | $as_echo "$as_me: failed program was:" >&5 | |
1585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1586 | ||
1587 | ac_retval=1 | |
1588 | fi | |
1589 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1590 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1591 | # interfere with the next link command; also delete a directory that is | |
1592 | # left behind by Apple's compiler. We do this before executing the actions. | |
1593 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1594 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1595 | return $ac_retval | |
1596 | ||
1597 | } # ac_fn_c_try_link | |
1598 | ||
1599 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1600 | # ------------------------------------------------------- | |
1601 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1602 | # the include files in INCLUDES and setting the cache variable VAR | |
1603 | # accordingly. | |
1604 | ac_fn_c_check_header_mongrel () | |
1605 | { | |
1606 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1607 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1609 | $as_echo_n "checking for $2... " >&6; } | |
1610 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1611 | $as_echo_n "(cached) " >&6 | |
1612 | fi | |
1613 | eval ac_res=\$$3 | |
1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1615 | $as_echo "$ac_res" >&6; } | |
1616 | else | |
1617 | # Is the header compilable? | |
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1619 | $as_echo_n "checking $2 usability... " >&6; } | |
1620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1621 | /* end confdefs.h. */ | |
1622 | $4 | |
1623 | #include <$2> | |
1624 | _ACEOF | |
1625 | if ac_fn_c_try_compile "$LINENO"; then : | |
1626 | ac_header_compiler=yes | |
1627 | else | |
1628 | ac_header_compiler=no | |
1629 | fi | |
1630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1632 | $as_echo "$ac_header_compiler" >&6; } | |
1633 | ||
1634 | # Is the header present? | |
1635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1636 | $as_echo_n "checking $2 presence... " >&6; } | |
1637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1638 | /* end confdefs.h. */ | |
1639 | #include <$2> | |
1640 | _ACEOF | |
1641 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1642 | ac_header_preproc=yes | |
1643 | else | |
1644 | ac_header_preproc=no | |
1645 | fi | |
1646 | rm -f conftest.err conftest.$ac_ext | |
1647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1648 | $as_echo "$ac_header_preproc" >&6; } | |
1649 | ||
1650 | # So? What about this header? | |
1651 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1652 | yes:no: ) | |
1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1654 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1656 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1657 | ;; | |
1658 | no:yes:* ) | |
1659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1660 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1662 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1664 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1666 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1668 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1669 | ;; | |
1670 | esac | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1672 | $as_echo_n "checking for $2... " >&6; } | |
1673 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1674 | $as_echo_n "(cached) " >&6 | |
1675 | else | |
1676 | eval "$3=\$ac_header_compiler" | |
1677 | fi | |
1678 | eval ac_res=\$$3 | |
1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1680 | $as_echo "$ac_res" >&6; } | |
1681 | fi | |
1682 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1683 | ||
1684 | } # ac_fn_c_check_header_mongrel | |
1685 | ||
1686 | # ac_fn_c_try_run LINENO | |
1687 | # ---------------------- | |
1688 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1689 | # that executables *can* be run. | |
1690 | ac_fn_c_try_run () | |
1691 | { | |
1692 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1693 | if { { ac_try="$ac_link" | |
1694 | case "(($ac_try" in | |
1695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1696 | *) ac_try_echo=$ac_try;; | |
1697 | esac | |
1698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1699 | $as_echo "$ac_try_echo"; } >&5 | |
1700 | (eval "$ac_link") 2>&5 | |
1701 | ac_status=$? | |
1702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1703 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1704 | { { case "(($ac_try" in | |
1705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1706 | *) ac_try_echo=$ac_try;; | |
1707 | esac | |
1708 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1709 | $as_echo "$ac_try_echo"; } >&5 | |
1710 | (eval "$ac_try") 2>&5 | |
1711 | ac_status=$? | |
1712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1713 | test $ac_status = 0; }; }; then : | |
1714 | ac_retval=0 | |
1715 | else | |
1716 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1717 | $as_echo "$as_me: failed program was:" >&5 | |
1718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1719 | ||
1720 | ac_retval=$ac_status | |
1721 | fi | |
1722 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1723 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1724 | return $ac_retval | |
1725 | ||
1726 | } # ac_fn_c_try_run | |
1727 | ||
1728 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1729 | # ------------------------------------------------------- | |
1730 | # Tests whether HEADER exists and can be compiled using the include files in | |
1731 | # INCLUDES, setting the cache variable VAR accordingly. | |
1732 | ac_fn_c_check_header_compile () | |
1733 | { | |
1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1736 | $as_echo_n "checking for $2... " >&6; } | |
1737 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1738 | $as_echo_n "(cached) " >&6 | |
1739 | else | |
1740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1741 | /* end confdefs.h. */ | |
1742 | $4 | |
1743 | #include <$2> | |
1744 | _ACEOF | |
1745 | if ac_fn_c_try_compile "$LINENO"; then : | |
1746 | eval "$3=yes" | |
1747 | else | |
1748 | eval "$3=no" | |
1749 | fi | |
1750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1751 | fi | |
1752 | eval ac_res=\$$3 | |
1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1754 | $as_echo "$ac_res" >&6; } | |
1755 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1756 | ||
1757 | } # ac_fn_c_check_header_compile | |
1758 | ||
1759 | # ac_fn_c_check_func LINENO FUNC VAR | |
1760 | # ---------------------------------- | |
1761 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1762 | ac_fn_c_check_func () | |
1763 | { | |
1764 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1766 | $as_echo_n "checking for $2... " >&6; } | |
1767 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1768 | $as_echo_n "(cached) " >&6 | |
1769 | else | |
1770 | if test x$gcc_no_link = xyes; then | |
1771 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
1772 | fi | |
1773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1774 | /* end confdefs.h. */ | |
1775 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1776 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1777 | #define $2 innocuous_$2 | |
1778 | ||
1779 | /* System header to define __stub macros and hopefully few prototypes, | |
1780 | which can conflict with char $2 (); below. | |
1781 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1782 | <limits.h> exists even on freestanding compilers. */ | |
1783 | ||
1784 | #ifdef __STDC__ | |
1785 | # include <limits.h> | |
1786 | #else | |
1787 | # include <assert.h> | |
1788 | #endif | |
1789 | ||
1790 | #undef $2 | |
1791 | ||
1792 | /* Override any GCC internal prototype to avoid an error. | |
1793 | Use char because int might match the return type of a GCC | |
1794 | builtin and then its argument prototype would still apply. */ | |
1795 | #ifdef __cplusplus | |
1796 | extern "C" | |
1797 | #endif | |
1798 | char $2 (); | |
1799 | /* The GNU C library defines this for functions which it implements | |
1800 | to always fail with ENOSYS. Some functions are actually named | |
1801 | something starting with __ and the normal name is an alias. */ | |
1802 | #if defined __stub_$2 || defined __stub___$2 | |
1803 | choke me | |
1804 | #endif | |
1805 | ||
1806 | int | |
1807 | main () | |
1808 | { | |
1809 | return $2 (); | |
1810 | ; | |
1811 | return 0; | |
1812 | } | |
1813 | _ACEOF | |
1814 | if ac_fn_c_try_link "$LINENO"; then : | |
1815 | eval "$3=yes" | |
1816 | else | |
1817 | eval "$3=no" | |
1818 | fi | |
1819 | rm -f core conftest.err conftest.$ac_objext \ | |
1820 | conftest$ac_exeext conftest.$ac_ext | |
1821 | fi | |
1822 | eval ac_res=\$$3 | |
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1824 | $as_echo "$ac_res" >&6; } | |
1825 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1826 | ||
1827 | } # ac_fn_c_check_func | |
1828 | cat >config.log <<_ACEOF | |
1829 | This file contains any messages produced by compilers while | |
1830 | running configure, to aid debugging if configure makes a mistake. | |
1831 | ||
1832 | It was created by libssp $as_me 1.0, which was | |
1833 | generated by GNU Autoconf 2.64. Invocation command line was | |
1834 | ||
1835 | $ $0 $@ | |
1836 | ||
1837 | _ACEOF | |
1838 | exec 5>>config.log | |
1839 | { | |
1840 | cat <<_ASUNAME | |
1841 | ## --------- ## | |
1842 | ## Platform. ## | |
1843 | ## --------- ## | |
1844 | ||
1845 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1846 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1847 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1848 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1849 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1850 | ||
1851 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1852 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1853 | ||
1854 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1855 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1856 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1857 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1858 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1859 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1860 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1861 | ||
1862 | _ASUNAME | |
1863 | ||
1864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1865 | for as_dir in $PATH | |
1866 | do | |
1867 | IFS=$as_save_IFS | |
77008252 | 1868 | test -z "$as_dir" && as_dir=. |
5213506e RW |
1869 | $as_echo "PATH: $as_dir" |
1870 | done | |
1871 | IFS=$as_save_IFS | |
77008252 JJ |
1872 | |
1873 | } >&5 | |
1874 | ||
1875 | cat >&5 <<_ACEOF | |
1876 | ||
1877 | ||
1878 | ## ----------- ## | |
1879 | ## Core tests. ## | |
1880 | ## ----------- ## | |
1881 | ||
1882 | _ACEOF | |
1883 | ||
1884 | ||
1885 | # Keep a trace of the command line. | |
1886 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1887 | # Strip out --silent because we don't want to record it for future runs. | |
1888 | # Also quote any args containing shell meta-characters. | |
1889 | # Make two passes to allow for proper duplicate-argument suppression. | |
1890 | ac_configure_args= | |
1891 | ac_configure_args0= | |
1892 | ac_configure_args1= | |
77008252 JJ |
1893 | ac_must_keep_next=false |
1894 | for ac_pass in 1 2 | |
1895 | do | |
1896 | for ac_arg | |
1897 | do | |
1898 | case $ac_arg in | |
1899 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1900 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1901 | | -silent | --silent | --silen | --sile | --sil) | |
1902 | continue ;; | |
5213506e RW |
1903 | *\'*) |
1904 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
77008252 JJ |
1905 | esac |
1906 | case $ac_pass in | |
5213506e | 1907 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
77008252 | 1908 | 2) |
5213506e | 1909 | as_fn_append ac_configure_args1 " '$ac_arg'" |
77008252 JJ |
1910 | if test $ac_must_keep_next = true; then |
1911 | ac_must_keep_next=false # Got value, back to normal. | |
1912 | else | |
1913 | case $ac_arg in | |
1914 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1915 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1916 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1917 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1918 | case "$ac_configure_args0 " in | |
1919 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1920 | esac | |
1921 | ;; | |
1922 | -* ) ac_must_keep_next=true ;; | |
1923 | esac | |
1924 | fi | |
5213506e | 1925 | as_fn_append ac_configure_args " '$ac_arg'" |
77008252 JJ |
1926 | ;; |
1927 | esac | |
1928 | done | |
1929 | done | |
5213506e RW |
1930 | { ac_configure_args0=; unset ac_configure_args0;} |
1931 | { ac_configure_args1=; unset ac_configure_args1;} | |
77008252 JJ |
1932 | |
1933 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1934 | # config.log. We remove comments because anyway the quotes in there | |
1935 | # would cause problems or look ugly. | |
5213506e RW |
1936 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1937 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
77008252 JJ |
1938 | trap 'exit_status=$? |
1939 | # Save into config.log some information that might help in debugging. | |
1940 | { | |
1941 | echo | |
1942 | ||
1943 | cat <<\_ASBOX | |
1944 | ## ---------------- ## | |
1945 | ## Cache variables. ## | |
1946 | ## ---------------- ## | |
1947 | _ASBOX | |
1948 | echo | |
1949 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
1950 | ( |
1951 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1952 | eval ac_val=\$$ac_var | |
1953 | case $ac_val in #( | |
1954 | *${as_nl}*) | |
1955 | case $ac_var in #( | |
1956 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1957 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1958 | esac | |
1959 | case $ac_var in #( | |
1960 | _ | IFS | as_nl) ;; #( | |
1961 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1962 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1963 | esac ;; | |
1964 | esac | |
1965 | done | |
77008252 | 1966 | (set) 2>&1 | |
5213506e RW |
1967 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1968 | *${as_nl}ac_space=\ *) | |
77008252 | 1969 | sed -n \ |
5213506e RW |
1970 | "s/'\''/'\''\\\\'\'''\''/g; |
1971 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1972 | ;; #( | |
77008252 | 1973 | *) |
5213506e | 1974 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
77008252 | 1975 | ;; |
5213506e RW |
1976 | esac | |
1977 | sort | |
1978 | ) | |
77008252 JJ |
1979 | echo |
1980 | ||
1981 | cat <<\_ASBOX | |
1982 | ## ----------------- ## | |
1983 | ## Output variables. ## | |
1984 | ## ----------------- ## | |
1985 | _ASBOX | |
1986 | echo | |
1987 | for ac_var in $ac_subst_vars | |
1988 | do | |
5213506e RW |
1989 | eval ac_val=\$$ac_var |
1990 | case $ac_val in | |
1991 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1992 | esac | |
1993 | $as_echo "$ac_var='\''$ac_val'\''" | |
77008252 JJ |
1994 | done | sort |
1995 | echo | |
1996 | ||
1997 | if test -n "$ac_subst_files"; then | |
1998 | cat <<\_ASBOX | |
5213506e RW |
1999 | ## ------------------- ## |
2000 | ## File substitutions. ## | |
2001 | ## ------------------- ## | |
77008252 JJ |
2002 | _ASBOX |
2003 | echo | |
2004 | for ac_var in $ac_subst_files | |
2005 | do | |
5213506e RW |
2006 | eval ac_val=\$$ac_var |
2007 | case $ac_val in | |
2008 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2009 | esac | |
2010 | $as_echo "$ac_var='\''$ac_val'\''" | |
77008252 JJ |
2011 | done | sort |
2012 | echo | |
2013 | fi | |
2014 | ||
2015 | if test -s confdefs.h; then | |
2016 | cat <<\_ASBOX | |
2017 | ## ----------- ## | |
2018 | ## confdefs.h. ## | |
2019 | ## ----------- ## | |
2020 | _ASBOX | |
2021 | echo | |
5213506e | 2022 | cat confdefs.h |
77008252 JJ |
2023 | echo |
2024 | fi | |
2025 | test "$ac_signal" != 0 && | |
5213506e RW |
2026 | $as_echo "$as_me: caught signal $ac_signal" |
2027 | $as_echo "$as_me: exit $exit_status" | |
77008252 | 2028 | } >&5 |
5213506e RW |
2029 | rm -f core *.core core.conftest.* && |
2030 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
77008252 | 2031 | exit $exit_status |
5213506e | 2032 | ' 0 |
77008252 | 2033 | for ac_signal in 1 2 13 15; do |
5213506e | 2034 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
77008252 JJ |
2035 | done |
2036 | ac_signal=0 | |
2037 | ||
2038 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2039 | rm -f -r conftest* confdefs.h |
2040 | ||
2041 | $as_echo "/* confdefs.h */" > confdefs.h | |
77008252 JJ |
2042 | |
2043 | # Predefined preprocessor variables. | |
2044 | ||
2045 | cat >>confdefs.h <<_ACEOF | |
2046 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2047 | _ACEOF | |
2048 | ||
77008252 JJ |
2049 | cat >>confdefs.h <<_ACEOF |
2050 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2051 | _ACEOF | |
2052 | ||
77008252 JJ |
2053 | cat >>confdefs.h <<_ACEOF |
2054 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2055 | _ACEOF | |
2056 | ||
77008252 JJ |
2057 | cat >>confdefs.h <<_ACEOF |
2058 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2059 | _ACEOF | |
2060 | ||
77008252 JJ |
2061 | cat >>confdefs.h <<_ACEOF |
2062 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2063 | _ACEOF | |
2064 | ||
5213506e RW |
2065 | cat >>confdefs.h <<_ACEOF |
2066 | #define PACKAGE_URL "$PACKAGE_URL" | |
2067 | _ACEOF | |
2068 | ||
77008252 JJ |
2069 | |
2070 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2071 | # Prefer an explicitly selected file to automatically selected ones. |
2072 | ac_site_file1=NONE | |
2073 | ac_site_file2=NONE | |
2074 | if test -n "$CONFIG_SITE"; then | |
2075 | ac_site_file1=$CONFIG_SITE | |
2076 | elif test "x$prefix" != xNONE; then | |
2077 | ac_site_file1=$prefix/share/config.site | |
2078 | ac_site_file2=$prefix/etc/config.site | |
2079 | else | |
2080 | ac_site_file1=$ac_default_prefix/share/config.site | |
2081 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2082 | fi | |
2083 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2084 | do | |
2085 | test "x$ac_site_file" = xNONE && continue | |
77008252 | 2086 | if test -r "$ac_site_file"; then |
5213506e RW |
2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2088 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
77008252 JJ |
2089 | sed 's/^/| /' "$ac_site_file" >&5 |
2090 | . "$ac_site_file" | |
2091 | fi | |
2092 | done | |
2093 | ||
2094 | if test -r "$cache_file"; then | |
2095 | # Some versions of bash will fail to source /dev/null (special | |
2096 | # files actually), so we avoid doing that. | |
2097 | if test -f "$cache_file"; then | |
5213506e RW |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2099 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
77008252 | 2100 | case $cache_file in |
5213506e RW |
2101 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2102 | *) . "./$cache_file";; | |
77008252 JJ |
2103 | esac |
2104 | fi | |
2105 | else | |
5213506e RW |
2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2107 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
77008252 JJ |
2108 | >$cache_file |
2109 | fi | |
2110 | ||
2111 | # Check that the precious variables saved in the cache have kept the same | |
2112 | # value. | |
2113 | ac_cache_corrupted=false | |
5213506e | 2114 | for ac_var in $ac_precious_vars; do |
77008252 JJ |
2115 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2116 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2117 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2118 | eval ac_new_val=\$ac_env_${ac_var}_value | |
77008252 JJ |
2119 | case $ac_old_set,$ac_new_set in |
2120 | set,) | |
5213506e RW |
2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2122 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
77008252 JJ |
2123 | ac_cache_corrupted=: ;; |
2124 | ,set) | |
5213506e RW |
2125 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2126 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
77008252 JJ |
2127 | ac_cache_corrupted=: ;; |
2128 | ,);; | |
2129 | *) | |
2130 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2131 | # differences in whitespace do not lead to failure. |
2132 | ac_old_val_w=`echo x $ac_old_val` | |
2133 | ac_new_val_w=`echo x $ac_new_val` | |
2134 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2136 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2137 | ac_cache_corrupted=: | |
2138 | else | |
2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2140 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2141 | eval $ac_var=\$ac_old_val | |
2142 | fi | |
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2144 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2146 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
77008252 JJ |
2147 | fi;; |
2148 | esac | |
2149 | # Pass precious variables to config.status. | |
2150 | if test "$ac_new_set" = set; then | |
2151 | case $ac_new_val in | |
5213506e | 2152 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
77008252 JJ |
2153 | *) ac_arg=$ac_var=$ac_new_val ;; |
2154 | esac | |
2155 | case " $ac_configure_args " in | |
2156 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2157 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
77008252 JJ |
2158 | esac |
2159 | fi | |
2160 | done | |
2161 | if $ac_cache_corrupted; then | |
5213506e RW |
2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2163 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2165 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2166 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
77008252 | 2167 | fi |
5213506e RW |
2168 | ## -------------------- ## |
2169 | ## Main body of script. ## | |
2170 | ## -------------------- ## | |
77008252 JJ |
2171 | |
2172 | ac_ext=c | |
2173 | ac_cpp='$CPP $CPPFLAGS' | |
2174 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2175 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2176 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2177 | ||
2178 | ||
2179 | ||
2180 | ||
2181 | ||
2182 | ||
77008252 | 2183 | ac_aux_dir= |
5213506e RW |
2184 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2185 | for ac_t in install-sh install.sh shtool; do | |
2186 | if test -f "$ac_dir/$ac_t"; then | |
2187 | ac_aux_dir=$ac_dir | |
2188 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2189 | break 2 | |
2190 | fi | |
2191 | done | |
77008252 JJ |
2192 | done |
2193 | if test -z "$ac_aux_dir"; then | |
5213506e | 2194 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
77008252 | 2195 | fi |
5213506e RW |
2196 | |
2197 | # These three variables are undocumented and unsupported, | |
2198 | # and are intended to be withdrawn in a future Autoconf release. | |
2199 | # They can cause serious problems if a builder's source tree is in a directory | |
2200 | # whose full name contains unusual characters. | |
2201 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2202 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2203 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2204 | ||
77008252 JJ |
2205 | |
2206 | # Make sure we can run config.sub. | |
5213506e RW |
2207 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2208 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2209 | ||
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2211 | $as_echo_n "checking build system type... " >&6; } | |
2212 | if test "${ac_cv_build+set}" = set; then : | |
2213 | $as_echo_n "(cached) " >&6 | |
2214 | else | |
2215 | ac_build_alias=$build_alias | |
2216 | test "x$ac_build_alias" = x && | |
2217 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2218 | test "x$ac_build_alias" = x && | |
2219 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2220 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2221 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2222 | ||
2223 | fi | |
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2225 | $as_echo "$ac_cv_build" >&6; } | |
2226 | case $ac_cv_build in | |
2227 | *-*-*) ;; | |
2228 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2229 | esac | |
77008252 | 2230 | build=$ac_cv_build |
5213506e RW |
2231 | ac_save_IFS=$IFS; IFS='-' |
2232 | set x $ac_cv_build | |
2233 | shift | |
2234 | build_cpu=$1 | |
2235 | build_vendor=$2 | |
2236 | shift; shift | |
2237 | # Remember, the first character of IFS is used to create $*, | |
2238 | # except with old shells: | |
2239 | build_os=$* | |
2240 | IFS=$ac_save_IFS | |
2241 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
77008252 JJ |
2242 | |
2243 | ||
5213506e RW |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2245 | $as_echo_n "checking host system type... " >&6; } | |
2246 | if test "${ac_cv_host+set}" = set; then : | |
2247 | $as_echo_n "(cached) " >&6 | |
77008252 | 2248 | else |
5213506e RW |
2249 | if test "x$host_alias" = x; then |
2250 | ac_cv_host=$ac_cv_build | |
2251 | else | |
2252 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2253 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2254 | fi | |
77008252 JJ |
2255 | |
2256 | fi | |
5213506e RW |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2258 | $as_echo "$ac_cv_host" >&6; } | |
2259 | case $ac_cv_host in | |
2260 | *-*-*) ;; | |
2261 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2262 | esac | |
77008252 | 2263 | host=$ac_cv_host |
5213506e RW |
2264 | ac_save_IFS=$IFS; IFS='-' |
2265 | set x $ac_cv_host | |
2266 | shift | |
2267 | host_cpu=$1 | |
2268 | host_vendor=$2 | |
2269 | shift; shift | |
2270 | # Remember, the first character of IFS is used to create $*, | |
2271 | # except with old shells: | |
2272 | host_os=$* | |
2273 | IFS=$ac_save_IFS | |
2274 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
77008252 JJ |
2275 | |
2276 | ||
5213506e RW |
2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2278 | $as_echo_n "checking target system type... " >&6; } | |
2279 | if test "${ac_cv_target+set}" = set; then : | |
2280 | $as_echo_n "(cached) " >&6 | |
2281 | else | |
2282 | if test "x$target_alias" = x; then | |
2283 | ac_cv_target=$ac_cv_host | |
77008252 | 2284 | else |
5213506e RW |
2285 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2286 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2287 | fi | |
77008252 JJ |
2288 | |
2289 | fi | |
5213506e RW |
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2291 | $as_echo "$ac_cv_target" >&6; } | |
2292 | case $ac_cv_target in | |
2293 | *-*-*) ;; | |
2294 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2295 | esac | |
77008252 | 2296 | target=$ac_cv_target |
5213506e RW |
2297 | ac_save_IFS=$IFS; IFS='-' |
2298 | set x $ac_cv_target | |
2299 | shift | |
2300 | target_cpu=$1 | |
2301 | target_vendor=$2 | |
2302 | shift; shift | |
2303 | # Remember, the first character of IFS is used to create $*, | |
2304 | # except with old shells: | |
2305 | target_os=$* | |
2306 | IFS=$ac_save_IFS | |
2307 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
77008252 JJ |
2308 | |
2309 | ||
2310 | # The aliases save the names the user supplied, while $host etc. | |
2311 | # will get canonicalized. | |
2312 | test -n "$target_alias" && | |
2313 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2314 | NONENONEs,x,x, && | |
2315 | program_prefix=${target_alias}- | |
5213506e | 2316 | |
f2b5129c MM |
2317 | case ${build_alias} in |
2318 | "") build_noncanonical=${build} ;; | |
2319 | *) build_noncanonical=${build_alias} ;; | |
2320 | esac | |
2321 | ||
2322 | case ${host_alias} in | |
2323 | "") host_noncanonical=${build_noncanonical} ;; | |
2324 | *) host_noncanonical=${host_alias} ;; | |
2325 | esac | |
2326 | ||
2327 | case ${target_alias} in | |
2328 | "") target_noncanonical=${host_noncanonical} ;; | |
2329 | *) target_noncanonical=${target_alias} ;; | |
2330 | esac | |
2331 | ||
2332 | ||
2333 | ||
77008252 | 2334 | |
5213506e RW |
2335 | am__api_version='1.11' |
2336 | ||
77008252 JJ |
2337 | # Find a good install program. We prefer a C program (faster), |
2338 | # so one script is as good as another. But avoid the broken or | |
2339 | # incompatible versions: | |
2340 | # SysV /etc/install, /usr/sbin/install | |
2341 | # SunOS /usr/etc/install | |
2342 | # IRIX /sbin/install | |
2343 | # AIX /bin/install | |
2344 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2345 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2346 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2347 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2348 | # OS/2's system install, which has a completely different semantic | |
2349 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 2350 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2352 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
77008252 | 2353 | if test -z "$INSTALL"; then |
5213506e RW |
2354 | if test "${ac_cv_path_install+set}" = set; then : |
2355 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
2356 | else |
2357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2358 | for as_dir in $PATH | |
2359 | do | |
2360 | IFS=$as_save_IFS | |
2361 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2362 | # Account for people who put trailing slashes in PATH elements. |
2363 | case $as_dir/ in #(( | |
2364 | ./ | .// | /[cC]/* | \ | |
77008252 | 2365 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2366 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
77008252 JJ |
2367 | /usr/ucb/* ) ;; |
2368 | *) | |
2369 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2370 | # Don't use installbsd from OSF since it installs stuff as root | |
2371 | # by default. | |
2372 | for ac_prog in ginstall scoinst install; do | |
2373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 2374 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
77008252 JJ |
2375 | if test $ac_prog = install && |
2376 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2377 | # AIX install. It has an incompatible calling convention. | |
2378 | : | |
2379 | elif test $ac_prog = install && | |
2380 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2381 | # program-specific install script used by HP pwplus--don't use. | |
2382 | : | |
2383 | else | |
38d24731 RW |
2384 | rm -rf conftest.one conftest.two conftest.dir |
2385 | echo one > conftest.one | |
2386 | echo two > conftest.two | |
2387 | mkdir conftest.dir | |
2388 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2389 | test -s conftest.one && test -s conftest.two && | |
2390 | test -s conftest.dir/conftest.one && | |
2391 | test -s conftest.dir/conftest.two | |
2392 | then | |
2393 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2394 | break 3 | |
2395 | fi | |
77008252 JJ |
2396 | fi |
2397 | fi | |
2398 | done | |
2399 | done | |
2400 | ;; | |
2401 | esac | |
5213506e RW |
2402 | |
2403 | done | |
2404 | IFS=$as_save_IFS | |
77008252 | 2405 | |
38d24731 | 2406 | rm -rf conftest.one conftest.two conftest.dir |
77008252 JJ |
2407 | |
2408 | fi | |
2409 | if test "${ac_cv_path_install+set}" = set; then | |
2410 | INSTALL=$ac_cv_path_install | |
2411 | else | |
38d24731 RW |
2412 | # As a last resort, use the slow shell script. Don't cache a |
2413 | # value for INSTALL within a source directory, because that will | |
77008252 | 2414 | # break other packages using the cache if that directory is |
38d24731 | 2415 | # removed, or if the value is a relative name. |
77008252 JJ |
2416 | INSTALL=$ac_install_sh |
2417 | fi | |
2418 | fi | |
5213506e RW |
2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2420 | $as_echo "$INSTALL" >&6; } | |
77008252 JJ |
2421 | |
2422 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2423 | # It thinks the first close brace ends the variable substitution. | |
2424 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2425 | ||
2426 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2427 | ||
2428 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2429 | ||
5213506e RW |
2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2431 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
77008252 JJ |
2432 | # Just in case |
2433 | sleep 1 | |
2434 | echo timestamp > conftest.file | |
5213506e RW |
2435 | # Reject unsafe characters in $srcdir or the absolute working directory |
2436 | # name. Accept space and tab only in the latter. | |
2437 | am_lf=' | |
2438 | ' | |
2439 | case `pwd` in | |
2440 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2441 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2442 | esac | |
2443 | case $srcdir in | |
2444 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2445 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2446 | esac | |
2447 | ||
77008252 JJ |
2448 | # Do `set' in a subshell so we don't clobber the current shell's |
2449 | # arguments. Must try -L first in case configure is actually a | |
2450 | # symlink; some systems play weird games with the mod time of symlinks | |
2451 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2452 | # directory). | |
2453 | if ( | |
5213506e | 2454 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
77008252 JJ |
2455 | if test "$*" = "X"; then |
2456 | # -L didn't work. | |
5213506e | 2457 | set X `ls -t "$srcdir/configure" conftest.file` |
77008252 JJ |
2458 | fi |
2459 | rm -f conftest.file | |
2460 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2461 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2462 | ||
2463 | # If neither matched, then we have a broken ls. This can happen | |
2464 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2465 | # broken ls alias from the environment. This has actually | |
2466 | # happened. Such a system could not be considered "sane". | |
5213506e RW |
2467 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2468 | alias in your environment" "$LINENO" 5 | |
77008252 JJ |
2469 | fi |
2470 | ||
2471 | test "$2" = conftest.file | |
2472 | ) | |
2473 | then | |
2474 | # Ok. | |
2475 | : | |
2476 | else | |
5213506e RW |
2477 | as_fn_error "newly created file is older than distributed files! |
2478 | Check your system clock" "$LINENO" 5 | |
77008252 | 2479 | fi |
5213506e RW |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2481 | $as_echo "yes" >&6; } | |
77008252 | 2482 | test "$program_prefix" != NONE && |
5213506e | 2483 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
77008252 JJ |
2484 | # Use a double $ so make ignores it. |
2485 | test "$program_suffix" != NONE && | |
5213506e RW |
2486 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2487 | # Double any \ or $. | |
77008252 | 2488 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2489 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2490 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
77008252 JJ |
2491 | |
2492 | # expand $ac_aux_dir to an absolute path | |
2493 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2494 | ||
5213506e RW |
2495 | if test x"${MISSING+set}" != xset; then |
2496 | case $am_aux_dir in | |
2497 | *\ * | *\ *) | |
2498 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2499 | *) | |
2500 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2501 | esac | |
2502 | fi | |
77008252 JJ |
2503 | # Use eval to expand $SHELL |
2504 | if eval "$MISSING --run true"; then | |
2505 | am_missing_run="$MISSING --run " | |
2506 | else | |
2507 | am_missing_run= | |
5213506e RW |
2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2509 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2510 | fi | |
2511 | ||
2512 | if test x"${install_sh}" != xset; then | |
2513 | case $am_aux_dir in | |
2514 | *\ * | *\ *) | |
2515 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2516 | *) | |
2517 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2518 | esac | |
2519 | fi | |
2520 | ||
2521 | # Installed binaries are usually stripped using `strip' when the user | |
2522 | # run `make install-strip'. However `strip' might not be the right | |
2523 | # tool to use in cross-compilation environments, therefore Automake | |
2524 | # will honor the `STRIP' environment variable to overrule this program. | |
2525 | if test "$cross_compiling" != no; then | |
2526 | if test -n "$ac_tool_prefix"; then | |
2527 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2528 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2530 | $as_echo_n "checking for $ac_word... " >&6; } | |
2531 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2532 | $as_echo_n "(cached) " >&6 | |
2533 | else | |
2534 | if test -n "$STRIP"; then | |
2535 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2536 | else | |
2537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2538 | for as_dir in $PATH | |
2539 | do | |
2540 | IFS=$as_save_IFS | |
2541 | test -z "$as_dir" && as_dir=. | |
2542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2544 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2546 | break 2 | |
2547 | fi | |
2548 | done | |
2549 | done | |
2550 | IFS=$as_save_IFS | |
2551 | ||
2552 | fi | |
2553 | fi | |
2554 | STRIP=$ac_cv_prog_STRIP | |
2555 | if test -n "$STRIP"; then | |
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2557 | $as_echo "$STRIP" >&6; } | |
2558 | else | |
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2560 | $as_echo "no" >&6; } | |
2561 | fi | |
2562 | ||
2563 | ||
2564 | fi | |
2565 | if test -z "$ac_cv_prog_STRIP"; then | |
2566 | ac_ct_STRIP=$STRIP | |
2567 | # Extract the first word of "strip", so it can be a program name with args. | |
2568 | set dummy strip; ac_word=$2 | |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2570 | $as_echo_n "checking for $ac_word... " >&6; } | |
2571 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2572 | $as_echo_n "(cached) " >&6 | |
2573 | else | |
2574 | if test -n "$ac_ct_STRIP"; then | |
2575 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2576 | else | |
2577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2578 | for as_dir in $PATH | |
2579 | do | |
2580 | IFS=$as_save_IFS | |
2581 | test -z "$as_dir" && as_dir=. | |
2582 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2584 | ac_cv_prog_ac_ct_STRIP="strip" | |
2585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2586 | break 2 | |
2587 | fi | |
2588 | done | |
77008252 | 2589 | done |
5213506e RW |
2590 | IFS=$as_save_IFS |
2591 | ||
2592 | fi | |
2593 | fi | |
2594 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2595 | if test -n "$ac_ct_STRIP"; then | |
2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2597 | $as_echo "$ac_ct_STRIP" >&6; } | |
2598 | else | |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2600 | $as_echo "no" >&6; } | |
2601 | fi | |
2602 | ||
2603 | if test "x$ac_ct_STRIP" = x; then | |
2604 | STRIP=":" | |
77008252 | 2605 | else |
5213506e RW |
2606 | case $cross_compiling:$ac_tool_warned in |
2607 | yes:) | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2609 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2610 | ac_tool_warned=yes ;; | |
2611 | esac | |
2612 | STRIP=$ac_ct_STRIP | |
77008252 | 2613 | fi |
5213506e RW |
2614 | else |
2615 | STRIP="$ac_cv_prog_STRIP" | |
2616 | fi | |
2617 | ||
77008252 | 2618 | fi |
5213506e RW |
2619 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2620 | ||
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2622 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2623 | if test -z "$MKDIR_P"; then | |
2624 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
2625 | $as_echo_n "(cached) " >&6 | |
2626 | else | |
2627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2628 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2629 | do | |
2630 | IFS=$as_save_IFS | |
2631 | test -z "$as_dir" && as_dir=. | |
2632 | for ac_prog in mkdir gmkdir; do | |
2633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2634 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2635 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2636 | 'mkdir (GNU coreutils) '* | \ | |
2637 | 'mkdir (coreutils) '* | \ | |
2638 | 'mkdir (fileutils) '4.1*) | |
2639 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2640 | break 3;; | |
2641 | esac | |
2642 | done | |
2643 | done | |
2644 | done | |
2645 | IFS=$as_save_IFS | |
2646 | ||
2647 | fi | |
2648 | ||
2649 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2650 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2651 | else | |
2652 | # As a last resort, use the slow shell script. Don't cache a | |
2653 | # value for MKDIR_P within a source directory, because that will | |
2654 | # break other packages using the cache if that directory is | |
2655 | # removed, or if the value is a relative name. | |
2656 | test -d ./--version && rmdir ./--version | |
2657 | MKDIR_P="$ac_install_sh -d" | |
2658 | fi | |
2659 | fi | |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2661 | $as_echo "$MKDIR_P" >&6; } | |
2662 | ||
2663 | mkdir_p="$MKDIR_P" | |
2664 | case $mkdir_p in | |
2665 | [\\/$]* | ?:[\\/]*) ;; | |
2666 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2667 | esac | |
77008252 JJ |
2668 | |
2669 | for ac_prog in gawk mawk nawk awk | |
2670 | do | |
2671 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2672 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2674 | $as_echo_n "checking for $ac_word... " >&6; } | |
2675 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2676 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
2677 | else |
2678 | if test -n "$AWK"; then | |
2679 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2680 | else | |
2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2682 | for as_dir in $PATH | |
2683 | do | |
2684 | IFS=$as_save_IFS | |
2685 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2686 | for ac_exec_ext in '' $ac_executable_extensions; do |
2687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77008252 | 2688 | ac_cv_prog_AWK="$ac_prog" |
5213506e | 2689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
2690 | break 2 |
2691 | fi | |
2692 | done | |
5213506e RW |
2693 | done |
2694 | IFS=$as_save_IFS | |
77008252 JJ |
2695 | |
2696 | fi | |
2697 | fi | |
2698 | AWK=$ac_cv_prog_AWK | |
2699 | if test -n "$AWK"; then | |
5213506e RW |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2701 | $as_echo "$AWK" >&6; } | |
77008252 | 2702 | else |
5213506e RW |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2704 | $as_echo "no" >&6; } | |
77008252 JJ |
2705 | fi |
2706 | ||
5213506e | 2707 | |
77008252 JJ |
2708 | test -n "$AWK" && break |
2709 | done | |
2710 | ||
5213506e RW |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2712 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2713 | set x ${MAKE-make} | |
2714 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2715 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2716 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
2717 | else |
2718 | cat >conftest.make <<\_ACEOF | |
5213506e | 2719 | SHELL = /bin/sh |
77008252 | 2720 | all: |
5213506e | 2721 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
77008252 JJ |
2722 | _ACEOF |
2723 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5213506e RW |
2724 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2725 | *@@@%%%=?*=@@@%%%*) | |
2726 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2727 | *) | |
2728 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2729 | esac | |
77008252 JJ |
2730 | rm -f conftest.make |
2731 | fi | |
5213506e RW |
2732 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2734 | $as_echo "yes" >&6; } | |
77008252 JJ |
2735 | SET_MAKE= |
2736 | else | |
5213506e RW |
2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2738 | $as_echo "no" >&6; } | |
77008252 JJ |
2739 | SET_MAKE="MAKE=${MAKE-make}" |
2740 | fi | |
2741 | ||
2742 | rm -rf .tst 2>/dev/null | |
2743 | mkdir .tst 2>/dev/null | |
2744 | if test -d .tst; then | |
2745 | am__leading_dot=. | |
2746 | else | |
2747 | am__leading_dot=_ | |
2748 | fi | |
2749 | rmdir .tst 2>/dev/null | |
2750 | ||
5213506e RW |
2751 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2752 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2753 | # is not polluted with repeated "-I." | |
2754 | am__isrc=' -I$(srcdir)' | |
2755 | # test to see if srcdir already configured | |
2756 | if test -f $srcdir/config.status; then | |
2757 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2758 | fi | |
77008252 JJ |
2759 | fi |
2760 | ||
2761 | # test whether we have cygpath | |
2762 | if test -z "$CYGPATH_W"; then | |
2763 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2764 | CYGPATH_W='cygpath -w' | |
2765 | else | |
2766 | CYGPATH_W=echo | |
2767 | fi | |
2768 | fi | |
2769 | ||
2770 | ||
2771 | # Define the identity of the package. | |
2772 | PACKAGE='libssp' | |
2773 | VERSION='1.0' | |
2774 | ||
2775 | ||
2776 | cat >>confdefs.h <<_ACEOF | |
2777 | #define PACKAGE "$PACKAGE" | |
2778 | _ACEOF | |
2779 | ||
2780 | ||
2781 | cat >>confdefs.h <<_ACEOF | |
2782 | #define VERSION "$VERSION" | |
2783 | _ACEOF | |
2784 | ||
2785 | # Some tools Automake needs. | |
2786 | ||
2787 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2788 | ||
2789 | ||
2790 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2791 | ||
2792 | ||
2793 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2794 | ||
2795 | ||
2796 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2797 | ||
2798 | ||
2799 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2800 | ||
77008252 JJ |
2801 | # We need awk for the "check" target. The system "awk" is bad on |
2802 | # some platforms. | |
2803 | # Always define AMTAR for backward compatibility. | |
2804 | ||
2805 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2806 | ||
2807 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2808 | ||
2809 | ||
2810 | ||
2811 | ||
2812 | ||
2813 | ||
5213506e RW |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2815 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2816 | # Check whether --enable-version-specific-runtime-libs was given. | |
2817 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2818 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
77008252 JJ |
2819 | yes) version_specific_libs=yes ;; |
2820 | no) version_specific_libs=no ;; | |
5213506e | 2821 | *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
77008252 JJ |
2822 | esac |
2823 | else | |
2824 | version_specific_libs=no | |
5213506e RW |
2825 | fi |
2826 | ||
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2828 | $as_echo "$version_specific_libs" >&6; } | |
77008252 | 2829 | |
5213506e RW |
2830 | |
2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2832 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2833 | # Check whether --enable-maintainer-mode was given. | |
2834 | if test "${enable_maintainer_mode+set}" = set; then : | |
2835 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
77008252 JJ |
2836 | else |
2837 | USE_MAINTAINER_MODE=no | |
5213506e | 2838 | fi |
77008252 | 2839 | |
5213506e RW |
2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
2841 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2842 | if test $USE_MAINTAINER_MODE = yes; then | |
77008252 JJ |
2843 | MAINTAINER_MODE_TRUE= |
2844 | MAINTAINER_MODE_FALSE='#' | |
2845 | else | |
2846 | MAINTAINER_MODE_TRUE='#' | |
2847 | MAINTAINER_MODE_FALSE= | |
2848 | fi | |
2849 | ||
2850 | MAINT=$MAINTAINER_MODE_TRUE | |
2851 | ||
2852 | ||
2853 | ||
2854 | ||
be14fe72 | 2855 | |
77008252 | 2856 | # Default to --enable-multilib |
5213506e RW |
2857 | # Check whether --enable-multilib was given. |
2858 | if test "${enable_multilib+set}" = set; then : | |
2859 | enableval=$enable_multilib; case "$enableval" in | |
77008252 JJ |
2860 | yes) multilib=yes ;; |
2861 | no) multilib=no ;; | |
5213506e | 2862 | *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; |
77008252 JJ |
2863 | esac |
2864 | else | |
2865 | multilib=yes | |
5213506e RW |
2866 | fi |
2867 | ||
77008252 JJ |
2868 | |
2869 | # We may get other options which we leave undocumented: | |
2870 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2871 | # See config-ml.in if you want the gory details. | |
2872 | ||
2873 | if test "$srcdir" = "."; then | |
2874 | if test "$with_target_subdir" != "."; then | |
2875 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2876 | else | |
2877 | multi_basedir="$srcdir/$with_multisrctop.." | |
2878 | fi | |
2879 | else | |
2880 | multi_basedir="$srcdir/.." | |
2881 | fi | |
2882 | ||
2883 | ||
5b043f08 GK |
2884 | # Even if the default multilib is not a cross compilation, |
2885 | # it may be that some of the other multilibs are. | |
2886 | if test $cross_compiling = no && test $multilib = yes \ | |
2887 | && test "x${with_multisubdir}" != x ; then | |
2888 | cross_compiling=maybe | |
2889 | fi | |
2890 | ||
5213506e | 2891 | ac_config_commands="$ac_config_commands default-1" |
77008252 JJ |
2892 | |
2893 | ||
2894 | target_alias=${target_alias-$host_alias} | |
2895 | ||
2896 | ||
5213506e | 2897 | ac_config_headers="$ac_config_headers config.h" |
77008252 JJ |
2898 | |
2899 | ||
2900 | ac_ext=c | |
2901 | ac_cpp='$CPP $CPPFLAGS' | |
2902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2905 | ||
2906 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
2907 | # We must force CC to /not/ be precious variables; otherwise | |
2908 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
2909 | # As a side effect, we have to subst CFLAGS ourselves. | |
2910 | ||
2911 | ||
2912 | ||
2913 | ac_ext=c | |
2914 | ac_cpp='$CPP $CPPFLAGS' | |
2915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2918 | if test -n "$ac_tool_prefix"; then | |
2919 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2920 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2922 | $as_echo_n "checking for $ac_word... " >&6; } | |
2923 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2924 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
2925 | else |
2926 | if test -n "$CC"; then | |
2927 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2928 | else | |
2929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2930 | for as_dir in $PATH | |
2931 | do | |
2932 | IFS=$as_save_IFS | |
2933 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2934 | for ac_exec_ext in '' $ac_executable_extensions; do |
2935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77008252 | 2936 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 2937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
2938 | break 2 |
2939 | fi | |
2940 | done | |
5213506e RW |
2941 | done |
2942 | IFS=$as_save_IFS | |
77008252 JJ |
2943 | |
2944 | fi | |
2945 | fi | |
2946 | CC=$ac_cv_prog_CC | |
2947 | if test -n "$CC"; then | |
5213506e RW |
2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2949 | $as_echo "$CC" >&6; } | |
77008252 | 2950 | else |
5213506e RW |
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2952 | $as_echo "no" >&6; } | |
77008252 JJ |
2953 | fi |
2954 | ||
5213506e | 2955 | |
77008252 JJ |
2956 | fi |
2957 | if test -z "$ac_cv_prog_CC"; then | |
2958 | ac_ct_CC=$CC | |
2959 | # Extract the first word of "gcc", so it can be a program name with args. | |
2960 | set dummy gcc; ac_word=$2 | |
5213506e RW |
2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2962 | $as_echo_n "checking for $ac_word... " >&6; } | |
2963 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2964 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
2965 | else |
2966 | if test -n "$ac_ct_CC"; then | |
2967 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2968 | else | |
2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2970 | for as_dir in $PATH | |
2971 | do | |
2972 | IFS=$as_save_IFS | |
2973 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2974 | for ac_exec_ext in '' $ac_executable_extensions; do |
2975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77008252 | 2976 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 2977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
2978 | break 2 |
2979 | fi | |
2980 | done | |
5213506e RW |
2981 | done |
2982 | IFS=$as_save_IFS | |
77008252 JJ |
2983 | |
2984 | fi | |
2985 | fi | |
2986 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2987 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2989 | $as_echo "$ac_ct_CC" >&6; } | |
77008252 | 2990 | else |
5213506e RW |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2992 | $as_echo "no" >&6; } | |
77008252 JJ |
2993 | fi |
2994 | ||
5213506e RW |
2995 | if test "x$ac_ct_CC" = x; then |
2996 | CC="" | |
2997 | else | |
2998 | case $cross_compiling:$ac_tool_warned in | |
2999 | yes:) | |
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3001 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3002 | ac_tool_warned=yes ;; | |
3003 | esac | |
3004 | CC=$ac_ct_CC | |
3005 | fi | |
77008252 JJ |
3006 | else |
3007 | CC="$ac_cv_prog_CC" | |
3008 | fi | |
3009 | ||
3010 | if test -z "$CC"; then | |
5213506e RW |
3011 | if test -n "$ac_tool_prefix"; then |
3012 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
77008252 | 3013 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3015 | $as_echo_n "checking for $ac_word... " >&6; } | |
3016 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3017 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
3018 | else |
3019 | if test -n "$CC"; then | |
3020 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3021 | else | |
3022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3023 | for as_dir in $PATH | |
3024 | do | |
3025 | IFS=$as_save_IFS | |
3026 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3027 | for ac_exec_ext in '' $ac_executable_extensions; do |
3028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77008252 | 3029 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
3031 | break 2 |
3032 | fi | |
3033 | done | |
5213506e RW |
3034 | done |
3035 | IFS=$as_save_IFS | |
77008252 JJ |
3036 | |
3037 | fi | |
3038 | fi | |
3039 | CC=$ac_cv_prog_CC | |
3040 | if test -n "$CC"; then | |
5213506e RW |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3042 | $as_echo "$CC" >&6; } | |
77008252 | 3043 | else |
5213506e RW |
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3045 | $as_echo "no" >&6; } | |
77008252 JJ |
3046 | fi |
3047 | ||
77008252 | 3048 | |
5213506e | 3049 | fi |
77008252 JJ |
3050 | fi |
3051 | if test -z "$CC"; then | |
3052 | # Extract the first word of "cc", so it can be a program name with args. | |
3053 | set dummy cc; ac_word=$2 | |
5213506e RW |
3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3055 | $as_echo_n "checking for $ac_word... " >&6; } | |
3056 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3057 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
3058 | else |
3059 | if test -n "$CC"; then | |
3060 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3061 | else | |
3062 | ac_prog_rejected=no | |
3063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3064 | for as_dir in $PATH | |
3065 | do | |
3066 | IFS=$as_save_IFS | |
3067 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3068 | for ac_exec_ext in '' $ac_executable_extensions; do |
3069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77008252 JJ |
3070 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3071 | ac_prog_rejected=yes | |
3072 | continue | |
3073 | fi | |
3074 | ac_cv_prog_CC="cc" | |
5213506e | 3075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
3076 | break 2 |
3077 | fi | |
3078 | done | |
5213506e RW |
3079 | done |
3080 | IFS=$as_save_IFS | |
77008252 JJ |
3081 | |
3082 | if test $ac_prog_rejected = yes; then | |
3083 | # We found a bogon in the path, so make sure we never use it. | |
3084 | set dummy $ac_cv_prog_CC | |
3085 | shift | |
3086 | if test $# != 0; then | |
3087 | # We chose a different compiler from the bogus one. | |
3088 | # However, it has the same basename, so the bogon will be chosen | |
3089 | # first if we set CC to just the basename; use the full file name. | |
3090 | shift | |
3091 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3092 | fi | |
3093 | fi | |
3094 | fi | |
3095 | fi | |
3096 | CC=$ac_cv_prog_CC | |
3097 | if test -n "$CC"; then | |
5213506e RW |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3099 | $as_echo "$CC" >&6; } | |
77008252 | 3100 | else |
5213506e RW |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3102 | $as_echo "no" >&6; } | |
77008252 JJ |
3103 | fi |
3104 | ||
5213506e | 3105 | |
77008252 JJ |
3106 | fi |
3107 | if test -z "$CC"; then | |
3108 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3109 | for ac_prog in cl.exe |
77008252 JJ |
3110 | do |
3111 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3112 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3114 | $as_echo_n "checking for $ac_word... " >&6; } | |
3115 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3116 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
3117 | else |
3118 | if test -n "$CC"; then | |
3119 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3120 | else | |
3121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3122 | for as_dir in $PATH | |
3123 | do | |
3124 | IFS=$as_save_IFS | |
3125 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3126 | for ac_exec_ext in '' $ac_executable_extensions; do |
3127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77008252 | 3128 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
3130 | break 2 |
3131 | fi | |
3132 | done | |
5213506e RW |
3133 | done |
3134 | IFS=$as_save_IFS | |
77008252 JJ |
3135 | |
3136 | fi | |
3137 | fi | |
3138 | CC=$ac_cv_prog_CC | |
3139 | if test -n "$CC"; then | |
5213506e RW |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3141 | $as_echo "$CC" >&6; } | |
77008252 | 3142 | else |
5213506e RW |
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3144 | $as_echo "no" >&6; } | |
77008252 JJ |
3145 | fi |
3146 | ||
5213506e | 3147 | |
77008252 JJ |
3148 | test -n "$CC" && break |
3149 | done | |
3150 | fi | |
3151 | if test -z "$CC"; then | |
3152 | ac_ct_CC=$CC | |
5213506e | 3153 | for ac_prog in cl.exe |
77008252 JJ |
3154 | do |
3155 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3156 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3158 | $as_echo_n "checking for $ac_word... " >&6; } | |
3159 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3160 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
3161 | else |
3162 | if test -n "$ac_ct_CC"; then | |
3163 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3164 | else | |
3165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3166 | for as_dir in $PATH | |
3167 | do | |
3168 | IFS=$as_save_IFS | |
3169 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3170 | for ac_exec_ext in '' $ac_executable_extensions; do |
3171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77008252 | 3172 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
3174 | break 2 |
3175 | fi | |
3176 | done | |
5213506e RW |
3177 | done |
3178 | IFS=$as_save_IFS | |
77008252 JJ |
3179 | |
3180 | fi | |
3181 | fi | |
3182 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3183 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3185 | $as_echo "$ac_ct_CC" >&6; } | |
77008252 | 3186 | else |
5213506e RW |
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3188 | $as_echo "no" >&6; } | |
77008252 JJ |
3189 | fi |
3190 | ||
5213506e | 3191 | |
77008252 JJ |
3192 | test -n "$ac_ct_CC" && break |
3193 | done | |
3194 | ||
5213506e RW |
3195 | if test "x$ac_ct_CC" = x; then |
3196 | CC="" | |
3197 | else | |
3198 | case $cross_compiling:$ac_tool_warned in | |
3199 | yes:) | |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3201 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3202 | ac_tool_warned=yes ;; | |
3203 | esac | |
3204 | CC=$ac_ct_CC | |
3205 | fi | |
77008252 JJ |
3206 | fi |
3207 | ||
3208 | fi | |
3209 | ||
3210 | ||
5213506e RW |
3211 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3212 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3213 | as_fn_error "no acceptable C compiler found in \$PATH | |
3214 | See \`config.log' for more details." "$LINENO" 5; } | |
77008252 JJ |
3215 | |
3216 | # Provide some information about the compiler. | |
5213506e RW |
3217 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3218 | set X $ac_compile | |
3219 | ac_compiler=$2 | |
3220 | for ac_option in --version -v -V -qversion; do | |
3221 | { { ac_try="$ac_compiler $ac_option >&5" | |
3222 | case "(($ac_try" in | |
3223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3224 | *) ac_try_echo=$ac_try;; | |
3225 | esac | |
3226 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3227 | $as_echo "$ac_try_echo"; } >&5 | |
3228 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
77008252 | 3229 | ac_status=$? |
5213506e RW |
3230 | if test -s conftest.err; then |
3231 | sed '10a\ | |
3232 | ... rest of stderr output deleted ... | |
3233 | 10q' conftest.err >conftest.er1 | |
3234 | cat conftest.er1 >&5 | |
3235 | rm -f conftest.er1 conftest.err | |
3236 | fi | |
3237 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3238 | test $ac_status = 0; } | |
3239 | done | |
77008252 | 3240 | |
5213506e | 3241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
3242 | /* end confdefs.h. */ |
3243 | ||
be14fe72 JM |
3244 | int |
3245 | main () | |
3246 | { | |
3247 | ||
3248 | ; | |
3249 | return 0; | |
3250 | } | |
3251 | _ACEOF | |
3252 | # FIXME: Cleanup? | |
5213506e | 3253 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
be14fe72 JM |
3254 | (eval $ac_link) 2>&5 |
3255 | ac_status=$? | |
5213506e RW |
3256 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3257 | test $ac_status = 0; }; then : | |
be14fe72 JM |
3258 | gcc_no_link=no |
3259 | else | |
3260 | gcc_no_link=yes | |
3261 | fi | |
be14fe72 JM |
3262 | if test x$gcc_no_link = xyes; then |
3263 | # Setting cross_compile will disable run tests; it will | |
3264 | # also disable AC_CHECK_FILE but that's generally | |
3265 | # correct if we can't link. | |
3266 | cross_compiling=yes | |
3267 | EXEEXT= | |
3268 | else | |
5213506e | 3269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
be14fe72 JM |
3270 | /* end confdefs.h. */ |
3271 | ||
77008252 JJ |
3272 | int |
3273 | main () | |
3274 | { | |
3275 | ||
3276 | ; | |
3277 | return 0; | |
3278 | } | |
3279 | _ACEOF | |
3280 | ac_clean_files_save=$ac_clean_files | |
5213506e | 3281 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
77008252 JJ |
3282 | # Try to create an executable without -o first, disregard a.out. |
3283 | # It will help us diagnose broken compilers, and finding out an intuition | |
3284 | # of exeext. | |
5213506e RW |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3286 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3287 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3288 | ||
3289 | # The possible output files: | |
3290 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3291 | ||
3292 | ac_rmfiles= | |
3293 | for ac_file in $ac_files | |
3294 | do | |
3295 | case $ac_file in | |
3296 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3297 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3298 | esac | |
3299 | done | |
3300 | rm -f $ac_rmfiles | |
3301 | ||
3302 | if { { ac_try="$ac_link_default" | |
3303 | case "(($ac_try" in | |
3304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3305 | *) ac_try_echo=$ac_try;; | |
3306 | esac | |
3307 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3308 | $as_echo "$ac_try_echo"; } >&5 | |
3309 | (eval "$ac_link_default") 2>&5 | |
77008252 | 3310 | ac_status=$? |
5213506e RW |
3311 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3312 | test $ac_status = 0; }; then : | |
3313 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3314 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3315 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3316 | # so that the user can short-circuit this test for compilers unknown to | |
3317 | # Autoconf. | |
3318 | for ac_file in $ac_files '' | |
77008252 JJ |
3319 | do |
3320 | test -f "$ac_file" || continue | |
3321 | case $ac_file in | |
5213506e | 3322 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
77008252 JJ |
3323 | ;; |
3324 | [ab].out ) | |
3325 | # We found the default executable, but exeext='' is most | |
3326 | # certainly right. | |
3327 | break;; | |
3328 | *.* ) | |
5213506e RW |
3329 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3330 | then :; else | |
3331 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3332 | fi | |
3333 | # We set ac_cv_exeext here because the later test for it is not | |
3334 | # safe: cross compilers may not add the suffix if given an `-o' | |
3335 | # argument, so we may need to know it at that point already. | |
3336 | # Even if this section looks crufty: it has the advantage of | |
3337 | # actually working. | |
77008252 JJ |
3338 | break;; |
3339 | * ) | |
3340 | break;; | |
3341 | esac | |
3342 | done | |
5213506e RW |
3343 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3344 | ||
77008252 | 3345 | else |
5213506e RW |
3346 | ac_file='' |
3347 | fi | |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3349 | $as_echo "$ac_file" >&6; } | |
3350 | if test -z "$ac_file"; then : | |
3351 | $as_echo "$as_me: failed program was:" >&5 | |
77008252 JJ |
3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
3353 | ||
5213506e RW |
3354 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3356 | { as_fn_set_status 77 | |
3357 | as_fn_error "C compiler cannot create executables | |
3358 | See \`config.log' for more details." "$LINENO" 5; }; } | |
77008252 | 3359 | fi |
77008252 | 3360 | ac_exeext=$ac_cv_exeext |
77008252 | 3361 | |
5213506e | 3362 | # Check that the compiler produces executables we can run. If not, either |
77008252 | 3363 | # the compiler is broken, or we cross compile. |
5213506e RW |
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3365 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
77008252 JJ |
3366 | # If not cross compiling, check that we can run a simple program. |
3367 | if test "$cross_compiling" != yes; then | |
3368 | if { ac_try='./$ac_file' | |
5213506e RW |
3369 | { { case "(($ac_try" in |
3370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3371 | *) ac_try_echo=$ac_try;; | |
3372 | esac | |
3373 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3374 | $as_echo "$ac_try_echo"; } >&5 | |
3375 | (eval "$ac_try") 2>&5 | |
77008252 | 3376 | ac_status=$? |
5213506e RW |
3377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3378 | test $ac_status = 0; }; }; then | |
77008252 JJ |
3379 | cross_compiling=no |
3380 | else | |
3381 | if test "$cross_compiling" = maybe; then | |
3382 | cross_compiling=yes | |
3383 | else | |
5213506e RW |
3384 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3385 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3386 | as_fn_error "cannot run C compiled programs. | |
77008252 | 3387 | If you meant to cross compile, use \`--host'. |
5213506e | 3388 | See \`config.log' for more details." "$LINENO" 5; } |
77008252 JJ |
3389 | fi |
3390 | fi | |
3391 | fi | |
5213506e RW |
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3393 | $as_echo "yes" >&6; } | |
77008252 | 3394 | |
5213506e | 3395 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
77008252 | 3396 | ac_clean_files=$ac_clean_files_save |
5213506e | 3397 | # Check that the compiler produces executables we can run. If not, either |
77008252 | 3398 | # the compiler is broken, or we cross compile. |
5213506e RW |
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3400 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3402 | $as_echo "$cross_compiling" >&6; } | |
3403 | ||
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3405 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3406 | if { { ac_try="$ac_link" | |
3407 | case "(($ac_try" in | |
3408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3409 | *) ac_try_echo=$ac_try;; | |
3410 | esac | |
3411 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3412 | $as_echo "$ac_try_echo"; } >&5 | |
3413 | (eval "$ac_link") 2>&5 | |
77008252 | 3414 | ac_status=$? |
5213506e RW |
3415 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3416 | test $ac_status = 0; }; then : | |
77008252 JJ |
3417 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3418 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3419 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3420 | # `rm'. | |
3421 | for ac_file in conftest.exe conftest conftest.*; do | |
3422 | test -f "$ac_file" || continue | |
3423 | case $ac_file in | |
5213506e | 3424 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
77008252 | 3425 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
77008252 JJ |
3426 | break;; |
3427 | * ) break;; | |
3428 | esac | |
3429 | done | |
3430 | else | |
5213506e RW |
3431 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3432 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3433 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3434 | See \`config.log' for more details." "$LINENO" 5; } | |
77008252 | 3435 | fi |
77008252 | 3436 | rm -f conftest$ac_cv_exeext |
5213506e RW |
3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3438 | $as_echo "$ac_cv_exeext" >&6; } | |
77008252 JJ |
3439 | |
3440 | rm -f conftest.$ac_ext | |
3441 | EXEEXT=$ac_cv_exeext | |
3442 | ac_exeext=$EXEEXT | |
be14fe72 | 3443 | fi |
5213506e RW |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3445 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3446 | if test "${ac_cv_objext+set}" = set; then : | |
3447 | $as_echo_n "(cached) " >&6 | |
77008252 | 3448 | else |
5213506e | 3449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
3450 | /* end confdefs.h. */ |
3451 | ||
3452 | int | |
3453 | main () | |
3454 | { | |
3455 | ||
3456 | ; | |
3457 | return 0; | |
3458 | } | |
3459 | _ACEOF | |
3460 | rm -f conftest.o conftest.obj | |
5213506e RW |
3461 | if { { ac_try="$ac_compile" |
3462 | case "(($ac_try" in | |
3463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3464 | *) ac_try_echo=$ac_try;; | |
3465 | esac | |
3466 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3467 | $as_echo "$ac_try_echo"; } >&5 | |
3468 | (eval "$ac_compile") 2>&5 | |
77008252 | 3469 | ac_status=$? |
5213506e RW |
3470 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3471 | test $ac_status = 0; }; then : | |
3472 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3473 | test -f "$ac_file" || continue; | |
77008252 | 3474 | case $ac_file in |
5213506e | 3475 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
77008252 JJ |
3476 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3477 | break;; | |
3478 | esac | |
3479 | done | |
3480 | else | |
5213506e | 3481 | $as_echo "$as_me: failed program was:" >&5 |
77008252 JJ |
3482 | sed 's/^/| /' conftest.$ac_ext >&5 |
3483 | ||
5213506e RW |
3484 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3485 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3486 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3487 | See \`config.log' for more details." "$LINENO" 5; } | |
77008252 | 3488 | fi |
77008252 JJ |
3489 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3490 | fi | |
5213506e RW |
3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3492 | $as_echo "$ac_cv_objext" >&6; } | |
77008252 JJ |
3493 | OBJEXT=$ac_cv_objext |
3494 | ac_objext=$OBJEXT | |
5213506e RW |
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3496 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3497 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3498 | $as_echo_n "(cached) " >&6 | |
77008252 | 3499 | else |
5213506e | 3500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
3501 | /* end confdefs.h. */ |
3502 | ||
3503 | int | |
3504 | main () | |
3505 | { | |
3506 | #ifndef __GNUC__ | |
3507 | choke me | |
3508 | #endif | |
3509 | ||
3510 | ; | |
3511 | return 0; | |
3512 | } | |
3513 | _ACEOF | |
5213506e | 3514 | if ac_fn_c_try_compile "$LINENO"; then : |
77008252 JJ |
3515 | ac_compiler_gnu=yes |
3516 | else | |
5213506e | 3517 | ac_compiler_gnu=no |
77008252 | 3518 | fi |
5213506e | 3519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
77008252 JJ |
3520 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3521 | ||
3522 | fi | |
5213506e RW |
3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3524 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3525 | if test $ac_compiler_gnu = yes; then | |
3526 | GCC=yes | |
3527 | else | |
3528 | GCC= | |
3529 | fi | |
77008252 JJ |
3530 | ac_test_CFLAGS=${CFLAGS+set} |
3531 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3533 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3534 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3535 | $as_echo_n "(cached) " >&6 | |
3536 | else | |
3537 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3538 | ac_c_werror_flag=yes | |
3539 | ac_cv_prog_cc_g=no | |
3540 | CFLAGS="-g" | |
3541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
77008252 JJ |
3542 | /* end confdefs.h. */ |
3543 | ||
3544 | int | |
3545 | main () | |
3546 | { | |
3547 | ||
3548 | ; | |
3549 | return 0; | |
3550 | } | |
3551 | _ACEOF | |
5213506e | 3552 | if ac_fn_c_try_compile "$LINENO"; then : |
77008252 JJ |
3553 | ac_cv_prog_cc_g=yes |
3554 | else | |
5213506e RW |
3555 | CFLAGS="" |
3556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3557 | /* end confdefs.h. */ | |
77008252 | 3558 | |
5213506e RW |
3559 | int |
3560 | main () | |
3561 | { | |
3562 | ||
3563 | ; | |
3564 | return 0; | |
3565 | } | |
3566 | _ACEOF | |
3567 | if ac_fn_c_try_compile "$LINENO"; then : | |
3568 | ||
3569 | else | |
3570 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3571 | CFLAGS="-g" | |
3572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3573 | /* end confdefs.h. */ | |
3574 | ||
3575 | int | |
3576 | main () | |
3577 | { | |
3578 | ||
3579 | ; | |
3580 | return 0; | |
3581 | } | |
3582 | _ACEOF | |
3583 | if ac_fn_c_try_compile "$LINENO"; then : | |
3584 | ac_cv_prog_cc_g=yes | |
3585 | fi | |
3586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
77008252 | 3587 | fi |
5213506e | 3588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
77008252 | 3589 | fi |
5213506e RW |
3590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3591 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3592 | fi | |
3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3594 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
77008252 JJ |
3595 | if test "$ac_test_CFLAGS" = set; then |
3596 | CFLAGS=$ac_save_CFLAGS | |
3597 | elif test $ac_cv_prog_cc_g = yes; then | |
3598 | if test "$GCC" = yes; then | |
3599 | CFLAGS="-g -O2" | |
3600 | else | |
3601 | CFLAGS="-g" | |
3602 | fi | |
3603 | else | |
3604 | if test "$GCC" = yes; then | |
3605 | CFLAGS="-O2" | |
3606 | else | |
3607 | CFLAGS= | |
3608 | fi | |
3609 | fi | |
5213506e RW |
3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3611 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3612 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3613 | $as_echo_n "(cached) " >&6 | |
77008252 | 3614 | else |
5213506e | 3615 | ac_cv_prog_cc_c89=no |
77008252 | 3616 | ac_save_CC=$CC |
5213506e | 3617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
3618 | /* end confdefs.h. */ |
3619 | #include <stdarg.h> | |
3620 | #include <stdio.h> | |
3621 | #include <sys/types.h> | |
3622 | #include <sys/stat.h> | |
3623 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3624 | struct buf { int x; }; | |
3625 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3626 | static char *e (p, i) | |
3627 | char **p; | |
3628 | int i; | |
3629 | { | |
3630 | return p[i]; | |
3631 | } | |
3632 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3633 | { | |
3634 | char *s; | |
3635 | va_list v; | |
3636 | va_start (v,p); | |
3637 | s = g (p, va_arg (v,int)); | |
3638 | va_end (v); | |
3639 | return s; | |
3640 | } | |
3641 | ||
3642 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3643 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3644 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 3645 | as 'x'. The following induces an error, until -std is added to get |
77008252 JJ |
3646 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3647 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 3648 | that's true only with -std. */ |
77008252 JJ |
3649 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3650 | ||
5213506e RW |
3651 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3652 | inside strings and character constants. */ | |
3653 | #define FOO(x) 'x' | |
3654 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3655 | ||
77008252 JJ |
3656 | int test (int i, double x); |
3657 | struct s1 {int (*f) (int a);}; | |
3658 | struct s2 {int (*f) (double a);}; | |
3659 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3660 | int argc; | |
3661 | char **argv; | |
3662 | int | |
3663 | main () | |
3664 | { | |
3665 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3666 | ; | |
3667 | return 0; | |
3668 | } | |
3669 | _ACEOF | |
5213506e RW |
3670 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3671 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
77008252 JJ |
3672 | do |
3673 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
3674 | if ac_fn_c_try_compile "$LINENO"; then : |
3675 | ac_cv_prog_cc_c89=$ac_arg | |
77008252 | 3676 | fi |
5213506e RW |
3677 | rm -f core conftest.err conftest.$ac_objext |
3678 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
77008252 | 3679 | done |
5213506e | 3680 | rm -f conftest.$ac_ext |
77008252 JJ |
3681 | CC=$ac_save_CC |
3682 | ||
3683 | fi | |
5213506e RW |
3684 | # AC_CACHE_VAL |
3685 | case "x$ac_cv_prog_cc_c89" in | |
3686 | x) | |
3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3688 | $as_echo "none needed" >&6; } ;; | |
3689 | xno) | |
3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3691 | $as_echo "unsupported" >&6; } ;; | |
77008252 | 3692 | *) |
5213506e RW |
3693 | CC="$CC $ac_cv_prog_cc_c89" |
3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3695 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
77008252 | 3696 | esac |
5213506e | 3697 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
77008252 JJ |
3698 | |
3699 | fi | |
77008252 | 3700 | |
77008252 JJ |
3701 | ac_ext=c |
3702 | ac_cpp='$CPP $CPPFLAGS' | |
3703 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3704 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3705 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3706 | DEPDIR="${am__leading_dot}deps" | |
3707 | ||
5213506e | 3708 | ac_config_commands="$ac_config_commands depfiles" |
77008252 JJ |
3709 | |
3710 | ||
3711 | am_make=${MAKE-make} | |
3712 | cat > confinc << 'END' | |
3713 | am__doit: | |
5213506e | 3714 | @echo this is the am__doit target |
77008252 JJ |
3715 | .PHONY: am__doit |
3716 | END | |
3717 | # If we don't find an include directive, just comment out the code. | |
5213506e RW |
3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3719 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
77008252 JJ |
3720 | am__include="#" |
3721 | am__quote= | |
3722 | _am_result=none | |
3723 | # First try GNU make style include. | |
3724 | echo "include confinc" > confmf | |
5213506e RW |
3725 | # Ignore all kinds of additional output from `make'. |
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=GNU | |
3731 | ;; | |
3732 | esac | |
77008252 JJ |
3733 | # Now try BSD make style include. |
3734 | if test "$am__include" = "#"; then | |
3735 | echo '.include "confinc"' > confmf | |
5213506e RW |
3736 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3737 | *the\ am__doit\ target*) | |
3738 | am__include=.include | |
3739 | am__quote="\"" | |
3740 | _am_result=BSD | |
3741 | ;; | |
3742 | esac | |
77008252 JJ |
3743 | fi |
3744 | ||
3745 | ||
5213506e RW |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3747 | $as_echo "$_am_result" >&6; } | |
77008252 JJ |
3748 | rm -f confinc confmf |
3749 | ||
5213506e RW |
3750 | # Check whether --enable-dependency-tracking was given. |
3751 | if test "${enable_dependency_tracking+set}" = set; then : | |
3752 | enableval=$enable_dependency_tracking; | |
3753 | fi | |
77008252 | 3754 | |
77008252 JJ |
3755 | if test "x$enable_dependency_tracking" != xno; then |
3756 | am_depcomp="$ac_aux_dir/depcomp" | |
3757 | AMDEPBACKSLASH='\' | |
3758 | fi | |
5213506e | 3759 | if test "x$enable_dependency_tracking" != xno; then |
77008252 JJ |
3760 | AMDEP_TRUE= |
3761 | AMDEP_FALSE='#' | |
3762 | else | |
3763 | AMDEP_TRUE='#' | |
3764 | AMDEP_FALSE= | |
3765 | fi | |
3766 | ||
3767 | ||
3768 | ||
77008252 JJ |
3769 | depcc="$CC" am_compiler_list= |
3770 | ||
5213506e RW |
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3772 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3773 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3774 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
3775 | else |
3776 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3777 | # We make a subdir and do the tests there. Otherwise we can end up | |
3778 | # making bogus files that we don't know about and never remove. For | |
3779 | # instance it was reported that on HP-UX the gcc test will end up | |
3780 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3781 | # in D'. | |
3782 | mkdir conftest.dir | |
3783 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3784 | # using a relative directory. | |
3785 | cp "$am_depcomp" conftest.dir | |
3786 | cd conftest.dir | |
3787 | # We will build objects and dependencies in a subdirectory because | |
3788 | # it helps to detect inapplicable dependency modes. For instance | |
3789 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3790 | # side effect of compilation, but ICC will put the dependencies in | |
3791 | # the current directory while Tru64 will put them in the object | |
3792 | # directory. | |
3793 | mkdir sub | |
3794 | ||
3795 | am_cv_CC_dependencies_compiler_type=none | |
3796 | if test "$am_compiler_list" = ""; then | |
3797 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3798 | fi | |
5213506e RW |
3799 | am__universal=false |
3800 | case " $depcc " in #( | |
3801 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3802 | esac | |
3803 | ||
77008252 JJ |
3804 | for depmode in $am_compiler_list; do |
3805 | # Setup a source with many dependencies, because some compilers | |
3806 | # like to wrap large dependency lists on column 80 (with \), and | |
3807 | # we should not choose a depcomp mode which is confused by this. | |
3808 | # | |
3809 | # We need to recreate these files for each test, as the compiler may | |
3810 | # overwrite some of them when testing with obscure command lines. | |
3811 | # This happens at least with the AIX C compiler. | |
3812 | : > sub/conftest.c | |
3813 | for i in 1 2 3 4 5 6; do | |
3814 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3815 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3816 | # Solaris 8's {/usr,}/bin/sh. | |
3817 | touch sub/conftst$i.h | |
3818 | done | |
3819 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3820 | ||
5213506e RW |
3821 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3822 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3823 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3824 | # versions had trouble with output in subdirs | |
3825 | am__obj=sub/conftest.${OBJEXT-o} | |
3826 | am__minus_obj="-o $am__obj" | |
77008252 | 3827 | case $depmode in |
5213506e RW |
3828 | gcc) |
3829 | # This depmode causes a compiler race in universal mode. | |
3830 | test "$am__universal" = false || continue | |
3831 | ;; | |
77008252 JJ |
3832 | nosideeffect) |
3833 | # after this tag, mechanisms are not by side-effect, so they'll | |
3834 | # only be used when explicitly requested | |
3835 | if test "x$enable_dependency_tracking" = xyes; then | |
3836 | continue | |
3837 | else | |
3838 | break | |
3839 | fi | |
3840 | ;; | |
5213506e RW |
3841 | msvisualcpp | msvcmsys) |
3842 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3843 | # not run yet. These depmodes are late enough in the game, and | |
3844 | # so weak that their functioning should not be impacted. | |
3845 | am__obj=conftest.${OBJEXT-o} | |
3846 | am__minus_obj= | |
3847 | ;; | |
77008252 JJ |
3848 | none) break ;; |
3849 | esac | |
77008252 | 3850 | if depmode=$depmode \ |
5213506e | 3851 | source=sub/conftest.c object=$am__obj \ |
77008252 | 3852 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 3853 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
77008252 | 3854 | >/dev/null 2>conftest.err && |
5213506e | 3855 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
77008252 | 3856 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 3857 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
77008252 JJ |
3858 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3859 | # icc doesn't choke on unknown options, it will just issue warnings | |
3860 | # or remarks (even with -Werror). So we grep stderr for any message | |
3861 | # that says an option was ignored or not supported. | |
3862 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3863 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3864 | # The diagnosis changed in icc 8.0: | |
3865 | # icc: Command line remark: option '-MP' not supported | |
3866 | if (grep 'ignoring option' conftest.err || | |
3867 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3868 | am_cv_CC_dependencies_compiler_type=$depmode | |
3869 | break | |
3870 | fi | |
3871 | fi | |
3872 | done | |
3873 | ||
3874 | cd .. | |
3875 | rm -rf conftest.dir | |
3876 | else | |
3877 | am_cv_CC_dependencies_compiler_type=none | |
3878 | fi | |
3879 | ||
3880 | fi | |
5213506e RW |
3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3882 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
77008252 JJ |
3883 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3884 | ||
5213506e | 3885 | if |
77008252 JJ |
3886 | test "x$enable_dependency_tracking" != xno \ |
3887 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3888 | am__fastdepCC_TRUE= | |
3889 | am__fastdepCC_FALSE='#' | |
3890 | else | |
3891 | am__fastdepCC_TRUE='#' | |
3892 | am__fastdepCC_FALSE= | |
3893 | fi | |
3894 | ||
3895 | ||
3896 | ||
3897 | ||
3898 | ||
3899 | ||
3900 | if test "x$GCC" != "xyes"; then | |
5213506e | 3901 | as_fn_error "libssp must be built with GCC" "$LINENO" 5 |
77008252 JJ |
3902 | fi |
3903 | ac_ext=c | |
3904 | ac_cpp='$CPP $CPPFLAGS' | |
3905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3909 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
77008252 JJ |
3910 | # On Suns, sometimes $CPP names a directory. |
3911 | if test -n "$CPP" && test -d "$CPP"; then | |
3912 | CPP= | |
3913 | fi | |
3914 | if test -z "$CPP"; then | |
5213506e RW |
3915 | if test "${ac_cv_prog_CPP+set}" = set; then : |
3916 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
3917 | else |
3918 | # Double quotes because CPP needs to be expanded | |
3919 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3920 | do | |
3921 | ac_preproc_ok=false | |
3922 | for ac_c_preproc_warn_flag in '' yes | |
3923 | do | |
3924 | # Use a header file that comes with gcc, so configuring glibc | |
3925 | # with a fresh cross-compiler works. | |
3926 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3927 | # <limits.h> exists even on freestanding compilers. | |
3928 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3929 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
3931 | /* end confdefs.h. */ |
3932 | #ifdef __STDC__ | |
3933 | # include <limits.h> | |
3934 | #else | |
3935 | # include <assert.h> | |
3936 | #endif | |
3937 | Syntax error | |
3938 | _ACEOF | |
5213506e | 3939 | if ac_fn_c_try_cpp "$LINENO"; then : |
77008252 | 3940 | |
5213506e | 3941 | else |
77008252 JJ |
3942 | # Broken: fails on valid input. |
3943 | continue | |
3944 | fi | |
3945 | rm -f conftest.err conftest.$ac_ext | |
3946 | ||
5213506e | 3947 | # OK, works on sane cases. Now check whether nonexistent headers |
77008252 | 3948 | # can be detected and how. |
5213506e | 3949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
3950 | /* end confdefs.h. */ |
3951 | #include <ac_nonexistent.h> | |
3952 | _ACEOF | |
5213506e | 3953 | if ac_fn_c_try_cpp "$LINENO"; then : |
77008252 JJ |
3954 | # Broken: success on invalid input. |
3955 | continue | |
3956 | else | |
77008252 JJ |
3957 | # Passes both tests. |
3958 | ac_preproc_ok=: | |
3959 | break | |
3960 | fi | |
3961 | rm -f conftest.err conftest.$ac_ext | |
3962 | ||
3963 | done | |
3964 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3965 | rm -f conftest.err conftest.$ac_ext | |
5213506e | 3966 | if $ac_preproc_ok; then : |
77008252 JJ |
3967 | break |
3968 | fi | |
3969 | ||
3970 | done | |
3971 | ac_cv_prog_CPP=$CPP | |
3972 | ||
3973 | fi | |
3974 | CPP=$ac_cv_prog_CPP | |
3975 | else | |
3976 | ac_cv_prog_CPP=$CPP | |
3977 | fi | |
5213506e RW |
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3979 | $as_echo "$CPP" >&6; } | |
77008252 JJ |
3980 | ac_preproc_ok=false |
3981 | for ac_c_preproc_warn_flag in '' yes | |
3982 | do | |
3983 | # Use a header file that comes with gcc, so configuring glibc | |
3984 | # with a fresh cross-compiler works. | |
3985 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3986 | # <limits.h> exists even on freestanding compilers. | |
3987 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3988 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
3990 | /* end confdefs.h. */ |
3991 | #ifdef __STDC__ | |
3992 | # include <limits.h> | |
3993 | #else | |
3994 | # include <assert.h> | |
3995 | #endif | |
3996 | Syntax error | |
3997 | _ACEOF | |
5213506e | 3998 | if ac_fn_c_try_cpp "$LINENO"; then : |
77008252 | 3999 | |
5213506e | 4000 | else |
77008252 JJ |
4001 | # Broken: fails on valid input. |
4002 | continue | |
4003 | fi | |
4004 | rm -f conftest.err conftest.$ac_ext | |
4005 | ||
5213506e | 4006 | # OK, works on sane cases. Now check whether nonexistent headers |
77008252 | 4007 | # can be detected and how. |
5213506e | 4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
4009 | /* end confdefs.h. */ |
4010 | #include <ac_nonexistent.h> | |
4011 | _ACEOF | |
5213506e | 4012 | if ac_fn_c_try_cpp "$LINENO"; then : |
77008252 JJ |
4013 | # Broken: success on invalid input. |
4014 | continue | |
4015 | else | |
77008252 JJ |
4016 | # Passes both tests. |
4017 | ac_preproc_ok=: | |
4018 | break | |
4019 | fi | |
4020 | rm -f conftest.err conftest.$ac_ext | |
4021 | ||
4022 | done | |
4023 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4024 | rm -f conftest.err conftest.$ac_ext | |
5213506e RW |
4025 | if $ac_preproc_ok; then : |
4026 | ||
77008252 | 4027 | else |
5213506e RW |
4028 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4029 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4030 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4031 | See \`config.log' for more details." "$LINENO" 5; } | |
77008252 JJ |
4032 | fi |
4033 | ||
4034 | ac_ext=c | |
4035 | ac_cpp='$CPP $CPPFLAGS' | |
4036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4039 | ||
4040 | ||
5213506e RW |
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5 |
4042 | $as_echo_n "checking whether -fstack-protector works... " >&6; } | |
77008252 JJ |
4043 | save_CFLAGS="$CFLAGS" |
4044 | CFLAGS="$CFLAGS -fstack-protector -Werror" | |
4045 | ||
5213506e | 4046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
4047 | /* end confdefs.h. */ |
4048 | ||
4049 | void __attribute__((noinline)) bar (char *x) | |
4050 | { | |
4051 | __builtin_memset (x, 0, 64); | |
4052 | } | |
4053 | int | |
4054 | main () | |
4055 | { | |
4056 | char buf[64]; bar (buf); | |
4057 | ; | |
4058 | return 0; | |
4059 | } | |
4060 | _ACEOF | |
5213506e RW |
4061 | if ac_fn_c_try_compile "$LINENO"; then : |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4063 | $as_echo "yes" >&6; } | |
77008252 | 4064 | else |
5213506e RW |
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4066 | $as_echo "no" >&6; } | |
77008252 | 4067 | fi |
5213506e | 4068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
77008252 JJ |
4069 | CFLAGS="$save_CFLAGS" |
4070 | ||
5213506e RW |
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5 |
4072 | $as_echo_n "checking whether hidden visibility is supported... " >&6; } | |
4073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
77008252 JJ |
4074 | /* end confdefs.h. */ |
4075 | ||
4076 | void __attribute__((visibility ("hidden"))) bar (void) {} | |
4077 | int | |
4078 | main () | |
4079 | { | |
4080 | ||
4081 | ; | |
4082 | return 0; | |
4083 | } | |
4084 | _ACEOF | |
5213506e | 4085 | if ac_fn_c_try_compile "$LINENO"; then : |
77008252 JJ |
4086 | ssp_hidden=yes |
4087 | else | |
5213506e | 4088 | ssp_hidden=no |
77008252 | 4089 | fi |
5213506e RW |
4090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5 | |
4092 | $as_echo "$ssp_hidden" >&6; } | |
77008252 JJ |
4093 | if test x$ssp_hidden = xyes; then |
4094 | ||
5213506e | 4095 | $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h |
77008252 JJ |
4096 | |
4097 | fi | |
4098 | ||
5213506e RW |
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 |
4100 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
be14fe72 JM |
4101 | if test x$gcc_no_link = xyes; then |
4102 | # If we cannot link, we cannot build shared libraries, so do not use | |
4103 | # symbol versioning. | |
4104 | ssp_use_symver=no | |
4105 | else | |
ca6d1176 RO |
4106 | save_LDFLAGS="$LDFLAGS" |
4107 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
4108 | cat > conftest.map <<EOF | |
4109 | FOO_1.0 { | |
4110 | global: *foo*; bar; local: *; | |
4111 | }; | |
4112 | EOF | |
be14fe72 | 4113 | if test x$gcc_no_link = xyes; then |
5213506e | 4114 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
be14fe72 | 4115 | fi |
5213506e | 4116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
4117 | /* end confdefs.h. */ |
4118 | int foo; | |
4119 | int | |
4120 | main () | |
4121 | { | |
4122 | ||
4123 | ; | |
4124 | return 0; | |
4125 | } | |
4126 | _ACEOF | |
5213506e | 4127 | if ac_fn_c_try_link "$LINENO"; then : |
ca6d1176 | 4128 | ssp_use_symver=gnu |
77008252 | 4129 | else |
5213506e | 4130 | ssp_use_symver=no |
77008252 | 4131 | fi |
5213506e RW |
4132 | rm -f core conftest.err conftest.$ac_objext \ |
4133 | conftest$ac_exeext conftest.$ac_ext | |
ca6d1176 | 4134 | if test x$ssp_use_symver = xno; then |
faeb4ee3 RO |
4135 | case "$target_os" in |
4136 | solaris2*) | |
4137 | LDFLAGS="$save_LDFLAGS" | |
4138 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
4139 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
4140 | cat > conftest.map <<EOF | |
ca6d1176 RO |
4141 | FOO_1.0 { |
4142 | global: foo; local: *; | |
4143 | }; | |
4144 | EOF | |
faeb4ee3 | 4145 | if test x$gcc_no_link = xyes; then |
ca6d1176 RO |
4146 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
4147 | fi | |
4148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4149 | /* end confdefs.h. */ | |
4150 | int foo; | |
4151 | int | |
4152 | main () | |
4153 | { | |
4154 | ||
4155 | ; | |
4156 | return 0; | |
4157 | } | |
4158 | _ACEOF | |
4159 | if ac_fn_c_try_link "$LINENO"; then : | |
4160 | ssp_use_symver=sun | |
4161 | else | |
4162 | ssp_use_symver=no | |
4163 | fi | |
4164 | rm -f core conftest.err conftest.$ac_objext \ | |
4165 | conftest$ac_exeext conftest.$ac_ext | |
faeb4ee3 RO |
4166 | ;; |
4167 | esac | |
ca6d1176 RO |
4168 | fi |
4169 | LDFLAGS="$save_LDFLAGS" | |
be14fe72 | 4170 | fi |
5213506e RW |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5 |
4172 | $as_echo "$ssp_use_symver" >&6; } | |
ca6d1176 | 4173 | if test "x$ssp_use_symver" != xno; then |
77008252 JJ |
4174 | LIBSSP_USE_SYMVER_TRUE= |
4175 | LIBSSP_USE_SYMVER_FALSE='#' | |
4176 | else | |
5213506e RW |
4177 | LIBSSP_USE_SYMVER_TRUE='#' |
4178 | LIBSSP_USE_SYMVER_FALSE= | |
4179 | fi | |
4180 | ||
ca6d1176 RO |
4181 | if test "x$ssp_use_symver" = xgnu; then |
4182 | LIBSSP_USE_SYMVER_GNU_TRUE= | |
4183 | LIBSSP_USE_SYMVER_GNU_FALSE='#' | |
4184 | else | |
4185 | LIBSSP_USE_SYMVER_GNU_TRUE='#' | |
4186 | LIBSSP_USE_SYMVER_GNU_FALSE= | |
4187 | fi | |
4188 | ||
4189 | if test "x$ssp_use_symver" = xsun; then | |
4190 | LIBSSP_USE_SYMVER_SUN_TRUE= | |
4191 | LIBSSP_USE_SYMVER_SUN_FALSE='#' | |
4192 | else | |
4193 | LIBSSP_USE_SYMVER_SUN_TRUE='#' | |
4194 | LIBSSP_USE_SYMVER_SUN_FALSE= | |
4195 | fi | |
4196 | ||
5213506e RW |
4197 | |
4198 | ||
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4200 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4201 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4202 | $as_echo_n "(cached) " >&6 | |
4203 | else | |
4204 | if test -z "$GREP"; then | |
4205 | ac_path_GREP_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 grep ggrep; do | |
4213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4214 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4215 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4216 | # Check for GNU ac_path_GREP and select it if it is found. | |
4217 | # Check for GNU $ac_path_GREP | |
4218 | case `"$ac_path_GREP" --version 2>&1` in | |
4219 | *GNU*) | |
4220 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "conftest.nl" | |
4230 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "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_GREP_max-0}; then | |
4234 | # Best one so far, save it but keep looking for a better one | |
4235 | ac_cv_path_GREP="$ac_path_GREP" | |
4236 | ac_path_GREP_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_GREP_found && break 3 | |
4245 | done | |
4246 | done | |
4247 | done | |
4248 | IFS=$as_save_IFS | |
4249 | if test -z "$ac_cv_path_GREP"; then | |
4250 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4251 | fi | |
4252 | else | |
4253 | ac_cv_path_GREP=$GREP | |
4254 | fi | |
4255 | ||
4256 | fi | |
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4258 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4259 | GREP="$ac_cv_path_GREP" | |
4260 | ||
4261 | ||
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4263 | $as_echo_n "checking for egrep... " >&6; } | |
4264 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4265 | $as_echo_n "(cached) " >&6 | |
4266 | else | |
4267 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4268 | then ac_cv_path_EGREP="$GREP -E" | |
4269 | else | |
4270 | if test -z "$EGREP"; then | |
4271 | ac_path_EGREP_found=false | |
4272 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4274 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4275 | do | |
4276 | IFS=$as_save_IFS | |
4277 | test -z "$as_dir" && as_dir=. | |
4278 | for ac_prog in egrep; do | |
4279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4280 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4281 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4282 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4283 | # Check for GNU $ac_path_EGREP | |
4284 | case `"$ac_path_EGREP" --version 2>&1` in | |
4285 | *GNU*) | |
4286 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4287 | *) | |
4288 | ac_count=0 | |
4289 | $as_echo_n 0123456789 >"conftest.in" | |
4290 | while : | |
4291 | do | |
4292 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4293 | mv "conftest.tmp" "conftest.in" | |
4294 | cp "conftest.in" "conftest.nl" | |
4295 | $as_echo 'EGREP' >> "conftest.nl" | |
4296 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4297 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4298 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4299 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4300 | # Best one so far, save it but keep looking for a better one | |
4301 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4302 | ac_path_EGREP_max=$ac_count | |
4303 | fi | |
4304 | # 10*(2^10) chars as input seems more than enough | |
4305 | test $ac_count -gt 10 && break | |
4306 | done | |
4307 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4308 | esac | |
4309 | ||
4310 | $ac_path_EGREP_found && break 3 | |
4311 | done | |
4312 | done | |
4313 | done | |
4314 | IFS=$as_save_IFS | |
4315 | if test -z "$ac_cv_path_EGREP"; then | |
4316 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4317 | fi | |
4318 | else | |
4319 | ac_cv_path_EGREP=$EGREP | |
77008252 JJ |
4320 | fi |
4321 | ||
5213506e | 4322 | fi |
77008252 | 4323 | fi |
5213506e RW |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4325 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4326 | EGREP="$ac_cv_path_EGREP" | |
77008252 JJ |
4327 | |
4328 | ||
5213506e RW |
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4330 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4331 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4332 | $as_echo_n "(cached) " >&6 | |
77008252 | 4333 | else |
5213506e | 4334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
4335 | /* end confdefs.h. */ |
4336 | #include <stdlib.h> | |
4337 | #include <stdarg.h> | |
4338 | #include <string.h> | |
4339 | #include <float.h> | |
4340 | ||
4341 | int | |
4342 | main () | |
4343 | { | |
4344 | ||
4345 | ; | |
4346 | return 0; | |
4347 | } | |
4348 | _ACEOF | |
5213506e | 4349 | if ac_fn_c_try_compile "$LINENO"; then : |
77008252 JJ |
4350 | ac_cv_header_stdc=yes |
4351 | else | |
5213506e | 4352 | ac_cv_header_stdc=no |
77008252 | 4353 | fi |
5213506e | 4354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
77008252 JJ |
4355 | |
4356 | if test $ac_cv_header_stdc = yes; then | |
4357 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5213506e | 4358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
4359 | /* end confdefs.h. */ |
4360 | #include <string.h> | |
4361 | ||
4362 | _ACEOF | |
4363 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
4364 | $EGREP "memchr" >/dev/null 2>&1; then : |
4365 | ||
77008252 JJ |
4366 | else |
4367 | ac_cv_header_stdc=no | |
4368 | fi | |
4369 | rm -f conftest* | |
4370 | ||
4371 | fi | |
4372 | ||
4373 | if test $ac_cv_header_stdc = yes; then | |
4374 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5213506e | 4375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
4376 | /* end confdefs.h. */ |
4377 | #include <stdlib.h> | |
4378 | ||
4379 | _ACEOF | |
4380 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
4381 | $EGREP "free" >/dev/null 2>&1; then : |
4382 | ||
77008252 JJ |
4383 | else |
4384 | ac_cv_header_stdc=no | |
4385 | fi | |
4386 | rm -f conftest* | |
4387 | ||
4388 | fi | |
4389 | ||
4390 | if test $ac_cv_header_stdc = yes; then | |
4391 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5213506e | 4392 | if test "$cross_compiling" = yes; then : |
77008252 JJ |
4393 | : |
4394 | else | |
5213506e | 4395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
4396 | /* end confdefs.h. */ |
4397 | #include <ctype.h> | |
5213506e | 4398 | #include <stdlib.h> |
77008252 JJ |
4399 | #if ((' ' & 0x0FF) == 0x020) |
4400 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4401 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4402 | #else | |
4403 | # define ISLOWER(c) \ | |
4404 | (('a' <= (c) && (c) <= 'i') \ | |
4405 | || ('j' <= (c) && (c) <= 'r') \ | |
4406 | || ('s' <= (c) && (c) <= 'z')) | |
4407 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4408 | #endif | |
4409 | ||
4410 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4411 | int | |
4412 | main () | |
4413 | { | |
4414 | int i; | |
4415 | for (i = 0; i < 256; i++) | |
4416 | if (XOR (islower (i), ISLOWER (i)) | |
4417 | || toupper (i) != TOUPPER (i)) | |
5213506e RW |
4418 | return 2; |
4419 | return 0; | |
77008252 JJ |
4420 | } |
4421 | _ACEOF | |
5213506e | 4422 | if ac_fn_c_try_run "$LINENO"; then : |
77008252 | 4423 | |
5213506e RW |
4424 | else |
4425 | ac_cv_header_stdc=no | |
77008252 | 4426 | fi |
5213506e RW |
4427 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4428 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
77008252 | 4429 | fi |
5213506e | 4430 | |
77008252 JJ |
4431 | fi |
4432 | fi | |
5213506e RW |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4434 | $as_echo "$ac_cv_header_stdc" >&6; } | |
77008252 JJ |
4435 | if test $ac_cv_header_stdc = yes; then |
4436 | ||
5213506e | 4437 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
77008252 JJ |
4438 | |
4439 | fi | |
4440 | ||
4441 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
77008252 JJ |
4442 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4443 | inttypes.h stdint.h unistd.h | |
5213506e RW |
4444 | do : |
4445 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4446 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4447 | " | |
4448 | eval as_val=\$$as_ac_Header | |
4449 | if test "x$as_val" = x""yes; then : | |
77008252 | 4450 | cat >>confdefs.h <<_ACEOF |
5213506e | 4451 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
77008252 JJ |
4452 | _ACEOF |
4453 | ||
4454 | fi | |
4455 | ||
4456 | done | |
4457 | ||
4458 | ||
266aa805 | 4459 | for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h |
5213506e RW |
4460 | do : |
4461 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4462 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4463 | eval as_val=\$$as_ac_Header | |
4464 | if test "x$as_val" = x""yes; then : | |
77008252 | 4465 | cat >>confdefs.h <<_ACEOF |
5213506e | 4466 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
77008252 JJ |
4467 | _ACEOF |
4468 | ||
4469 | fi | |
4470 | ||
4471 | done | |
4472 | ||
4473 | ||
be14fe72 JM |
4474 | if test x$gcc_no_link = xyes; then |
4475 | # Presume the ISO C functions are available; add target-specific | |
4476 | # configuration here if required. | |
5213506e | 4477 | $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h |
77008252 | 4478 | |
5213506e | 4479 | $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h |
77008252 | 4480 | |
77008252 | 4481 | else |
ca6d1176 | 4482 | for ac_func in memmove mempcpy strncpy strncat |
5213506e RW |
4483 | do : |
4484 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4485 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4486 | eval as_val=\$$as_ac_var | |
4487 | if test "x$as_val" = x""yes; then : | |
77008252 | 4488 | cat >>confdefs.h <<_ACEOF |
5213506e | 4489 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
77008252 JJ |
4490 | _ACEOF |
4491 | ||
4492 | fi | |
4493 | done | |
4494 | ||
be14fe72 | 4495 | fi |
77008252 | 4496 | |
5213506e RW |
4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5 |
4498 | $as_echo_n "checking whether vsnprintf is usable... " >&6; } | |
4499 | if test "$cross_compiling" = yes; then : | |
77008252 JJ |
4500 | ssp_have_usable_vsnprintf=undef |
4501 | else | |
5213506e | 4502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
4503 | /* end confdefs.h. */ |
4504 | ||
4505 | #include <stdarg.h> | |
4506 | #include <string.h> | |
4507 | #include <stdio.h> | |
4508 | int foo (char *buf, size_t n, const char *fmt, ...) | |
4509 | { | |
4510 | va_list ap; | |
4511 | int ret; | |
4512 | va_start (ap, fmt); | |
4513 | ret = vsnprintf (buf, n, fmt, ap); | |
4514 | va_end (ap); | |
4515 | return ret; | |
4516 | } | |
4517 | int | |
4518 | main () | |
4519 | { | |
4520 | char buf[8]; memset (buf, 'A', sizeof (buf)); | |
4521 | if (foo (buf, 4, ".%s.", "CDEFG") != 7) | |
4522 | return 1; | |
4523 | return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0; | |
4524 | ; | |
4525 | return 0; | |
4526 | } | |
4527 | _ACEOF | |
5213506e | 4528 | if ac_fn_c_try_run "$LINENO"; then : |
77008252 JJ |
4529 | ssp_have_usable_vsnprintf=define |
4530 | else | |
5213506e | 4531 | ssp_have_usable_vsnprintf=undef |
77008252 | 4532 | fi |
5213506e RW |
4533 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4534 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
77008252 | 4535 | fi |
5213506e | 4536 | |
77008252 | 4537 | if test "x$ssp_have_usable_vsnprintf" = xdefine; then |
5213506e RW |
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4539 | $as_echo "yes" >&6; } | |
77008252 | 4540 | |
5213506e | 4541 | $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h |
77008252 JJ |
4542 | |
4543 | else | |
5213506e RW |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4545 | $as_echo "no" >&6; } | |
77008252 JJ |
4546 | fi |
4547 | ||
4548 | ||
77a3eb61 PG |
4549 | case `pwd` in |
4550 | *\ * | *\ *) | |
5213506e RW |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4552 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
77a3eb61 | 4553 | esac |
1cf3d07d SE |
4554 | |
4555 | ||
1cf3d07d | 4556 | |
43e02a8a RW |
4557 | macro_version='2.2.7a' |
4558 | macro_revision='1.3134' | |
1cf3d07d SE |
4559 | |
4560 | ||
4561 | ||
4562 | ||
4563 | ||
4564 | ||
77008252 | 4565 | |
1cf3d07d SE |
4566 | |
4567 | ||
4568 | ||
4569 | ||
4570 | ||
4571 | ||
77a3eb61 | 4572 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 4573 | |
43e02a8a RW |
4574 | # Backslashify metacharacters that are still active within |
4575 | # double-quoted strings. | |
4576 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4577 | ||
4578 | # Same as above, but do not quote variable references. | |
4579 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4580 | ||
4581 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4582 | # double_quote_subst'ed string. | |
4583 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4584 | ||
4585 | # Sed substitution to delay expansion of an escaped single quote. | |
4586 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4587 | ||
4588 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4589 | no_glob_subst='s/\*/\\\*/g' | |
4590 | ||
4591 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4592 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4593 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4594 | ||
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4596 | $as_echo_n "checking how to print strings... " >&6; } | |
4597 | # Test print first, because it will be a builtin if present. | |
4598 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
4599 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4600 | ECHO='print -r --' | |
4601 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4602 | ECHO='printf %s\n' | |
4603 | else | |
4604 | # Use this function as a fallback that always works. | |
4605 | func_fallback_echo () | |
4606 | { | |
4607 | eval 'cat <<_LTECHO_EOF | |
4608 | $1 | |
4609 | _LTECHO_EOF' | |
4610 | } | |
4611 | ECHO='func_fallback_echo' | |
4612 | fi | |
4613 | ||
4614 | # func_echo_all arg... | |
4615 | # Invoke $ECHO with all args, space-separated. | |
4616 | func_echo_all () | |
4617 | { | |
4618 | $ECHO "" | |
4619 | } | |
4620 | ||
4621 | case "$ECHO" in | |
4622 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4623 | $as_echo "printf" >&6; } ;; | |
4624 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4625 | $as_echo "print -r" >&6; } ;; | |
4626 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4627 | $as_echo "cat" >&6; } ;; | |
4628 | esac | |
4629 | ||
4630 | ||
4631 | ||
4632 | ||
4633 | ||
4634 | ||
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | ||
5213506e RW |
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4644 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4645 | if test "${ac_cv_path_SED+set}" = set; then : | |
4646 | $as_echo_n "(cached) " >&6 | |
4647 | else | |
4648 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4649 | for ac_i in 1 2 3 4 5 6 7; do | |
4650 | ac_script="$ac_script$as_nl$ac_script" | |
4651 | done | |
4652 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4653 | { ac_script=; unset ac_script;} | |
4654 | if test -z "$SED"; then | |
4655 | ac_path_SED_found=false | |
4656 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1cf3d07d SE |
4658 | for as_dir in $PATH |
4659 | do | |
4660 | IFS=$as_save_IFS | |
4661 | test -z "$as_dir" && as_dir=. | |
5213506e | 4662 | for ac_prog in sed gsed; do |
1cf3d07d | 4663 | for ac_exec_ext in '' $ac_executable_extensions; do |
5213506e RW |
4664 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4665 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4666 | # Check for GNU ac_path_SED and select it if it is found. | |
4667 | # Check for GNU $ac_path_SED | |
4668 | case `"$ac_path_SED" --version 2>&1` in | |
4669 | *GNU*) | |
4670 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4671 | *) | |
4672 | ac_count=0 | |
4673 | $as_echo_n 0123456789 >"conftest.in" | |
4674 | while : | |
4675 | do | |
4676 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4677 | mv "conftest.tmp" "conftest.in" | |
4678 | cp "conftest.in" "conftest.nl" | |
4679 | $as_echo '' >> "conftest.nl" | |
4680 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4681 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4682 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4683 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4684 | # Best one so far, save it but keep looking for a better one | |
4685 | ac_cv_path_SED="$ac_path_SED" | |
4686 | ac_path_SED_max=$ac_count | |
4687 | fi | |
4688 | # 10*(2^10) chars as input seems more than enough | |
4689 | test $ac_count -gt 10 && break | |
4690 | done | |
4691 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4692 | esac | |
4693 | ||
4694 | $ac_path_SED_found && break 3 | |
1cf3d07d SE |
4695 | done |
4696 | done | |
5213506e | 4697 | done |
1cf3d07d | 4698 | IFS=$as_save_IFS |
5213506e RW |
4699 | if test -z "$ac_cv_path_SED"; then |
4700 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
1cf3d07d | 4701 | fi |
5213506e RW |
4702 | else |
4703 | ac_cv_path_SED=$SED | |
1cf3d07d SE |
4704 | fi |
4705 | ||
5213506e RW |
4706 | fi |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4708 | $as_echo "$ac_cv_path_SED" >&6; } | |
4709 | SED="$ac_cv_path_SED" | |
4710 | rm -f conftest.sed | |
1cf3d07d SE |
4711 | |
4712 | test -z "$SED" && SED=sed | |
4713 | Xsed="$SED -e 1s/^X//" | |
4714 | ||
4715 | ||
4716 | ||
4717 | ||
4718 | ||
4719 | ||
4720 | ||
4721 | ||
4722 | ||
4723 | ||
4724 | ||
5213506e RW |
4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4726 | $as_echo_n "checking for fgrep... " >&6; } | |
4727 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
4728 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 4729 | else |
5213506e RW |
4730 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4731 | then ac_cv_path_FGREP="$GREP -F" | |
4732 | else | |
4733 | if test -z "$FGREP"; then | |
4734 | ac_path_FGREP_found=false | |
4735 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4737 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4738 | do | |
4739 | IFS=$as_save_IFS | |
4740 | test -z "$as_dir" && as_dir=. | |
4741 | for ac_prog in fgrep; do | |
4742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4743 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4744 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4745 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4746 | # Check for GNU $ac_path_FGREP | |
4747 | case `"$ac_path_FGREP" --version 2>&1` in | |
4748 | *GNU*) | |
4749 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4750 | *) | |
4751 | ac_count=0 | |
4752 | $as_echo_n 0123456789 >"conftest.in" | |
4753 | while : | |
4754 | do | |
4755 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4756 | mv "conftest.tmp" "conftest.in" | |
4757 | cp "conftest.in" "conftest.nl" | |
4758 | $as_echo 'FGREP' >> "conftest.nl" | |
4759 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4760 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4761 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4762 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4763 | # Best one so far, save it but keep looking for a better one | |
4764 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4765 | ac_path_FGREP_max=$ac_count | |
1cf3d07d | 4766 | fi |
5213506e RW |
4767 | # 10*(2^10) chars as input seems more than enough |
4768 | test $ac_count -gt 10 && break | |
4769 | done | |
4770 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4771 | esac | |
4772 | ||
4773 | $ac_path_FGREP_found && break 3 | |
4774 | done | |
4775 | done | |
4776 | done | |
4777 | IFS=$as_save_IFS | |
4778 | if test -z "$ac_cv_path_FGREP"; then | |
4779 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4780 | fi | |
4781 | else | |
4782 | ac_cv_path_FGREP=$FGREP | |
4783 | fi | |
4784 | ||
4785 | fi | |
1cf3d07d | 4786 | fi |
5213506e RW |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
4788 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4789 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
4790 | |
4791 | ||
4792 | test -z "$GREP" && GREP=grep | |
4793 | ||
4794 | ||
4795 | ||
4796 | ||
4797 | ||
4798 | ||
4799 | ||
4800 | ||
4801 | ||
4802 | ||
4803 | ||
4804 | ||
4805 | ||
4806 | ||
4807 | ||
4808 | ||
4809 | ||
4810 | ||
4811 | ||
5213506e RW |
4812 | # Check whether --with-gnu-ld was given. |
4813 | if test "${with_gnu_ld+set}" = set; then : | |
4814 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
77008252 JJ |
4815 | else |
4816 | with_gnu_ld=no | |
5213506e RW |
4817 | fi |
4818 | ||
77008252 JJ |
4819 | ac_prog=ld |
4820 | if test "$GCC" = yes; then | |
4821 | # Check if gcc -print-prog-name=ld gives a path. | |
5213506e RW |
4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4823 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
77008252 JJ |
4824 | case $host in |
4825 | *-*-mingw*) | |
4826 | # gcc leaves a trailing carriage return which upsets mingw | |
4827 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4828 | *) | |
4829 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4830 | esac | |
4831 | case $ac_prog in | |
4832 | # Accept absolute paths. | |
1cf3d07d | 4833 | [\\/]* | ?:[\\/]*) |
77008252 | 4834 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
4835 | # Canonicalize the pathname of ld |
4836 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4837 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4838 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
77008252 JJ |
4839 | done |
4840 | test -z "$LD" && LD="$ac_prog" | |
4841 | ;; | |
4842 | "") | |
4843 | # If it fails, then pretend we aren't using GCC. | |
4844 | ac_prog=ld | |
4845 | ;; | |
4846 | *) | |
4847 | # If it is relative, then search for the first ld in PATH. | |
4848 | with_gnu_ld=unknown | |
4849 | ;; | |
4850 | esac | |
4851 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4853 | $as_echo_n "checking for GNU ld... " >&6; } | |
77008252 | 4854 | else |
5213506e RW |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4856 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
77008252 | 4857 | fi |
5213506e RW |
4858 | if test "${lt_cv_path_LD+set}" = set; then : |
4859 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
4860 | else |
4861 | if test -z "$LD"; then | |
1cf3d07d | 4862 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
77008252 | 4863 | for ac_dir in $PATH; do |
1cf3d07d | 4864 | IFS="$lt_save_ifs" |
77008252 JJ |
4865 | test -z "$ac_dir" && ac_dir=. |
4866 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4867 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4868 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1cf3d07d | 4869 | # but apparently some variants of GNU ld only accept -v. |
77008252 | 4870 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
4871 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4872 | *GNU* | *'with BFD'*) | |
77008252 | 4873 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
4874 | ;; |
4875 | *) | |
77008252 | 4876 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
4877 | ;; |
4878 | esac | |
77008252 JJ |
4879 | fi |
4880 | done | |
1cf3d07d | 4881 | IFS="$lt_save_ifs" |
77008252 JJ |
4882 | else |
4883 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4884 | fi | |
4885 | fi | |
4886 | ||
4887 | LD="$lt_cv_path_LD" | |
4888 | if test -n "$LD"; then | |
5213506e RW |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4890 | $as_echo "$LD" >&6; } | |
77008252 | 4891 | else |
5213506e RW |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4893 | $as_echo "no" >&6; } | |
77008252 | 4894 | fi |
5213506e RW |
4895 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4897 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4898 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
4899 | $as_echo_n "(cached) " >&6 | |
77008252 | 4900 | else |
1cf3d07d SE |
4901 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4902 | case `$LD -v 2>&1 </dev/null` in | |
4903 | *GNU* | *'with BFD'*) | |
77008252 | 4904 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
4905 | ;; |
4906 | *) | |
77008252 | 4907 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
4908 | ;; |
4909 | esac | |
77008252 | 4910 | fi |
5213506e RW |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4912 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
77008252 JJ |
4913 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4914 | ||
4915 | ||
77008252 | 4916 | |
1cf3d07d SE |
4917 | |
4918 | ||
4919 | ||
4920 | ||
4921 | ||
4922 | ||
5213506e RW |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4924 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4925 | if test "${lt_cv_path_NM+set}" = set; then : | |
4926 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
4927 | else |
4928 | if test -n "$NM"; then | |
4929 | # Let the user override the test. | |
4930 | lt_cv_path_NM="$NM" | |
4931 | else | |
1cf3d07d SE |
4932 | lt_nm_to_check="${ac_tool_prefix}nm" |
4933 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4934 | lt_nm_to_check="$lt_nm_to_check nm" | |
4935 | fi | |
4936 | for lt_tmp_nm in $lt_nm_to_check; do | |
4937 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4938 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4939 | IFS="$lt_save_ifs" | |
4940 | test -z "$ac_dir" && ac_dir=. | |
4941 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4942 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4943 | # Check to see if the nm accepts a BSD-compat flag. | |
4944 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4945 | # nm: unknown option "B" ignored | |
4946 | # Tru64's nm complains that /dev/null is an invalid object file | |
4947 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4948 | */dev/null* | *'Invalid file or object type'*) | |
4949 | lt_cv_path_NM="$tmp_nm -B" | |
4950 | break | |
4951 | ;; | |
4952 | *) | |
4953 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4954 | */dev/null*) | |
4955 | lt_cv_path_NM="$tmp_nm -p" | |
4956 | break | |
4957 | ;; | |
4958 | *) | |
4959 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4960 | continue # so that we can try to find one that supports BSD flags | |
4961 | ;; | |
4962 | esac | |
4963 | ;; | |
4964 | esac | |
77008252 | 4965 | fi |
1cf3d07d SE |
4966 | done |
4967 | IFS="$lt_save_ifs" | |
77008252 | 4968 | done |
1cf3d07d | 4969 | : ${lt_cv_path_NM=no} |
77008252 JJ |
4970 | fi |
4971 | fi | |
5213506e RW |
4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
4973 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
4974 | if test "$lt_cv_path_NM" != "no"; then |
4975 | NM="$lt_cv_path_NM" | |
77008252 | 4976 | else |
1cf3d07d | 4977 | # Didn't find any BSD compatible name lister, look for dumpbin. |
43e02a8a RW |
4978 | if test -n "$DUMPBIN"; then : |
4979 | # Let the user override the test. | |
4980 | else | |
4981 | if test -n "$ac_tool_prefix"; then | |
4982 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
4983 | do |
4984 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4985 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4987 | $as_echo_n "checking for $ac_word... " >&6; } | |
4988 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
4989 | $as_echo_n "(cached) " >&6 | |
77008252 | 4990 | else |
1cf3d07d SE |
4991 | if test -n "$DUMPBIN"; then |
4992 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4993 | else | |
4994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4995 | for as_dir in $PATH | |
4996 | do | |
4997 | IFS=$as_save_IFS | |
4998 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4999 | for ac_exec_ext in '' $ac_executable_extensions; do |
5000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5001 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 5002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
5003 | break 2 |
5004 | fi | |
5005 | done | |
5213506e RW |
5006 | done |
5007 | IFS=$as_save_IFS | |
77008252 | 5008 | |
1cf3d07d SE |
5009 | fi |
5010 | fi | |
5011 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5012 | if test -n "$DUMPBIN"; then | |
5213506e RW |
5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5014 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 5015 | else |
5213506e RW |
5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5017 | $as_echo "no" >&6; } | |
1cf3d07d | 5018 | fi |
77008252 | 5019 | |
5213506e | 5020 | |
1cf3d07d SE |
5021 | test -n "$DUMPBIN" && break |
5022 | done | |
5023 | fi | |
5024 | if test -z "$DUMPBIN"; then | |
5025 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 5026 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
5027 | do |
5028 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5029 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5031 | $as_echo_n "checking for $ac_word... " >&6; } | |
5032 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5033 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
5034 | else |
5035 | if test -n "$ac_ct_DUMPBIN"; then | |
5036 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5037 | else | |
5038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5039 | for as_dir in $PATH | |
5040 | do | |
5041 | IFS=$as_save_IFS | |
5042 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5043 | for ac_exec_ext in '' $ac_executable_extensions; do |
5044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5045 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 5046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d | 5047 | break 2 |
77008252 | 5048 | fi |
1cf3d07d | 5049 | done |
5213506e RW |
5050 | done |
5051 | IFS=$as_save_IFS | |
77008252 | 5052 | |
1cf3d07d SE |
5053 | fi |
5054 | fi | |
5055 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5056 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5058 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 5059 | else |
5213506e RW |
5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5061 | $as_echo "no" >&6; } | |
1cf3d07d | 5062 | fi |
77008252 | 5063 | |
5213506e | 5064 | |
1cf3d07d SE |
5065 | test -n "$ac_ct_DUMPBIN" && break |
5066 | done | |
77008252 | 5067 | |
5213506e RW |
5068 | if test "x$ac_ct_DUMPBIN" = x; then |
5069 | DUMPBIN=":" | |
5070 | else | |
5071 | case $cross_compiling:$ac_tool_warned in | |
5072 | yes:) | |
5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5074 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5075 | ac_tool_warned=yes ;; | |
5076 | esac | |
5077 | DUMPBIN=$ac_ct_DUMPBIN | |
5078 | fi | |
1cf3d07d | 5079 | fi |
77008252 | 5080 | |
43e02a8a RW |
5081 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5082 | *COFF*) | |
5083 | DUMPBIN="$DUMPBIN -symbols" | |
5084 | ;; | |
5085 | *) | |
5086 | DUMPBIN=: | |
5087 | ;; | |
5088 | esac | |
5089 | fi | |
77008252 | 5090 | |
1cf3d07d SE |
5091 | if test "$DUMPBIN" != ":"; then |
5092 | NM="$DUMPBIN" | |
77008252 | 5093 | fi |
1cf3d07d SE |
5094 | fi |
5095 | test -z "$NM" && NM=nm | |
77008252 | 5096 | |
77008252 | 5097 | |
77008252 | 5098 | |
77008252 | 5099 | |
77008252 | 5100 | |
77008252 | 5101 | |
5213506e RW |
5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5103 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5104 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5105 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
5106 | else |
5107 | lt_cv_nm_interface="BSD nm" | |
5108 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 5109 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
5110 | (eval "$ac_compile" 2>conftest.err) |
5111 | cat conftest.err >&5 | |
43e02a8a | 5112 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
5113 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5114 | cat conftest.err >&5 | |
43e02a8a | 5115 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
5116 | cat conftest.out >&5 |
5117 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5118 | lt_cv_nm_interface="MS dumpbin" | |
5119 | fi | |
5120 | rm -f conftest* | |
77008252 | 5121 | fi |
5213506e RW |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5123 | $as_echo "$lt_cv_nm_interface" >&6; } | |
77008252 | 5124 | |
5213506e RW |
5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5126 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1cf3d07d SE |
5127 | LN_S=$as_ln_s |
5128 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5130 | $as_echo "yes" >&6; } | |
1cf3d07d | 5131 | else |
5213506e RW |
5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5133 | $as_echo "no, using $LN_S" >&6; } | |
1cf3d07d | 5134 | fi |
77008252 JJ |
5135 | |
5136 | # find the maximum length of command line arguments | |
5213506e RW |
5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5138 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5139 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5140 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
5141 | else |
5142 | i=0 | |
5143 | teststring="ABCD" | |
5144 | ||
5145 | case $build_os in | |
5146 | msdosdjgpp*) | |
5147 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5148 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5149 | # during glob expansion). Even if it were fixed, the result of this | |
5150 | # check would be larger than it should be. | |
5151 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5152 | ;; | |
5153 | ||
1cf3d07d SE |
5154 | gnu*) |
5155 | # Under GNU Hurd, this test is not required because there is | |
5156 | # no limit to the length of command line arguments. | |
5157 | # Libtool will interpret -1 as no limit whatsoever | |
5158 | lt_cv_sys_max_cmd_len=-1; | |
5159 | ;; | |
5160 | ||
77a3eb61 | 5161 | cygwin* | mingw* | cegcc*) |
77008252 JJ |
5162 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5163 | # about 5 minutes as the teststring grows exponentially. | |
5164 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5165 | # you end up with a "frozen" computer, even though with patience | |
5166 | # the test eventually succeeds (with a max line length of 256k). | |
5167 | # Instead, let's just punt: use the minimum linelength reported by | |
5168 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5169 | lt_cv_sys_max_cmd_len=8192; | |
5170 | ;; | |
5171 | ||
43e02a8a RW |
5172 | mint*) |
5173 | # On MiNT this can take a long time and run out of memory. | |
5174 | lt_cv_sys_max_cmd_len=8192; | |
5175 | ;; | |
5176 | ||
77008252 JJ |
5177 | amigaos*) |
5178 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5179 | # So we just punt and use a minimum line length of 8192. | |
5180 | lt_cv_sys_max_cmd_len=8192; | |
5181 | ;; | |
5182 | ||
5183 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5184 | # This has been around since 386BSD, at least. Likely further. | |
5185 | if test -x /sbin/sysctl; then | |
5186 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5187 | elif test -x /usr/sbin/sysctl; then | |
5188 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5189 | else | |
1cf3d07d | 5190 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
77008252 JJ |
5191 | fi |
5192 | # And add a safety zone | |
5193 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5194 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5195 | ;; | |
1cf3d07d SE |
5196 | |
5197 | interix*) | |
5198 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5199 | lt_cv_sys_max_cmd_len=196608 | |
5200 | ;; | |
5201 | ||
5202 | osf*) | |
5203 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5204 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5205 | # nice to cause kernel panics so lets avoid the loop below. | |
5206 | # First set a reasonable default. | |
5207 | lt_cv_sys_max_cmd_len=16384 | |
5208 | # | |
5209 | if test -x /sbin/sysconfig; then | |
5210 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5211 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5212 | esac | |
5213 | fi | |
5214 | ;; | |
5215 | sco3.2v5*) | |
5216 | lt_cv_sys_max_cmd_len=102400 | |
5217 | ;; | |
5218 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5219 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5220 | if test -n "$kargmax"; then | |
5221 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5222 | else | |
5223 | lt_cv_sys_max_cmd_len=32768 | |
5224 | fi | |
5225 | ;; | |
5226 | *) | |
77a3eb61 PG |
5227 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5228 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
5229 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5230 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5231 | else | |
5232 | # Make teststring a little bigger before we do anything with it. | |
5233 | # a 1K string should be a reasonable start. | |
5234 | for i in 1 2 3 4 5 6 7 8 ; do | |
5235 | teststring=$teststring$teststring | |
5236 | done | |
5237 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5238 | # If test is not a shell built-in, we'll probably end up computing a | |
5239 | # maximum length that is only half of the actual maximum length, but | |
5240 | # we can't tell. | |
43e02a8a RW |
5241 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5242 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
5243 | test $i != 17 # 1/2 MB should be enough |
5244 | do | |
5245 | i=`expr $i + 1` | |
5246 | teststring=$teststring$teststring | |
5247 | done | |
5248 | # Only check the string length outside the loop. | |
5249 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5250 | teststring= | |
5251 | # Add a significant safety factor because C++ compilers can tack on | |
5252 | # massive amounts of additional arguments before passing them to the | |
5253 | # linker. It appears as though 1/2 is a usable value. | |
5254 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5255 | fi | |
1cf3d07d | 5256 | ;; |
77008252 JJ |
5257 | esac |
5258 | ||
5259 | fi | |
5260 | ||
1cf3d07d | 5261 | if test -n $lt_cv_sys_max_cmd_len ; then |
5213506e RW |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5263 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
77008252 | 5264 | else |
5213506e RW |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5266 | $as_echo "none" >&6; } | |
77008252 | 5267 | fi |
1cf3d07d | 5268 | max_cmd_len=$lt_cv_sys_max_cmd_len |
77008252 JJ |
5269 | |
5270 | ||
1cf3d07d SE |
5271 | |
5272 | ||
5273 | ||
5274 | ||
1cf3d07d SE |
5275 | : ${CP="cp -f"} |
5276 | : ${MV="mv -f"} | |
5277 | : ${RM="rm -f"} | |
5278 | ||
5213506e RW |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5280 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
5281 | # Try some XSI features |
5282 | xsi_shell=no | |
5283 | ( _lt_dummy="a/b/c" | |
5284 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
77a3eb61 PG |
5285 | = c,a/b,, \ |
5286 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5287 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 5288 | && xsi_shell=yes |
5213506e RW |
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5290 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
5291 | |
5292 | ||
5213506e RW |
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5294 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
5295 | lt_shell_append=no |
5296 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5297 | >/dev/null 2>&1 \ | |
5298 | && lt_shell_append=yes | |
5213506e RW |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5300 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
5301 | |
5302 | ||
5303 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5304 | lt_unset=unset | |
77008252 | 5305 | else |
1cf3d07d SE |
5306 | lt_unset=false |
5307 | fi | |
77008252 | 5308 | |
77008252 | 5309 | |
1cf3d07d SE |
5310 | |
5311 | ||
5312 | ||
5313 | # test EBCDIC or ASCII | |
5314 | case `echo X|tr X '\101'` in | |
5315 | A) # ASCII based system | |
5316 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5317 | lt_SP2NL='tr \040 \012' | |
5318 | lt_NL2SP='tr \015\012 \040\040' | |
5319 | ;; | |
5320 | *) # EBCDIC based system | |
5321 | lt_SP2NL='tr \100 \n' | |
5322 | lt_NL2SP='tr \r\n \100\100' | |
77008252 JJ |
5323 | ;; |
5324 | esac | |
77008252 | 5325 | |
77008252 | 5326 | |
1cf3d07d SE |
5327 | |
5328 | ||
5329 | ||
5330 | ||
5331 | ||
5332 | ||
5333 | ||
5213506e RW |
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5335 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5336 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5337 | $as_echo_n "(cached) " >&6 | |
77008252 | 5338 | else |
1cf3d07d SE |
5339 | lt_cv_ld_reload_flag='-r' |
5340 | fi | |
5213506e RW |
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5342 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
5343 | reload_flag=$lt_cv_ld_reload_flag |
5344 | case $reload_flag in | |
5345 | "" | " "*) ;; | |
5346 | *) reload_flag=" $reload_flag" ;; | |
5347 | esac | |
5348 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5349 | case $host_os in | |
5350 | darwin*) | |
5351 | if test "$GCC" = yes; then | |
5352 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5353 | else | |
5354 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5355 | fi | |
5356 | ;; | |
5357 | esac | |
5358 | ||
5359 | ||
5360 | ||
5361 | ||
5362 | ||
5363 | ||
5364 | ||
5365 | ||
5366 | ||
77a3eb61 PG |
5367 | if test -n "$ac_tool_prefix"; then |
5368 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5369 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5371 | $as_echo_n "checking for $ac_word... " >&6; } | |
5372 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5373 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
5374 | else |
5375 | if test -n "$OBJDUMP"; then | |
5376 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5377 | else | |
5378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5379 | for as_dir in $PATH | |
5380 | do | |
5381 | IFS=$as_save_IFS | |
5382 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5383 | for ac_exec_ext in '' $ac_executable_extensions; do |
5384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 5385 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 5386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
5387 | break 2 |
5388 | fi | |
5389 | done | |
5213506e RW |
5390 | done |
5391 | IFS=$as_save_IFS | |
77a3eb61 PG |
5392 | |
5393 | fi | |
5394 | fi | |
5395 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5396 | if test -n "$OBJDUMP"; then | |
5213506e RW |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5398 | $as_echo "$OBJDUMP" >&6; } | |
77a3eb61 | 5399 | else |
5213506e RW |
5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5401 | $as_echo "no" >&6; } | |
77a3eb61 PG |
5402 | fi |
5403 | ||
5213506e | 5404 | |
77a3eb61 PG |
5405 | fi |
5406 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5407 | ac_ct_OBJDUMP=$OBJDUMP | |
5408 | # Extract the first word of "objdump", so it can be a program name with args. | |
5409 | set dummy objdump; ac_word=$2 | |
5213506e RW |
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5411 | $as_echo_n "checking for $ac_word... " >&6; } | |
5412 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5413 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
5414 | else |
5415 | if test -n "$ac_ct_OBJDUMP"; then | |
5416 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5417 | else | |
5418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5419 | for as_dir in $PATH | |
5420 | do | |
5421 | IFS=$as_save_IFS | |
5422 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5423 | for ac_exec_ext in '' $ac_executable_extensions; do |
5424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 5425 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 5426 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
5427 | break 2 |
5428 | fi | |
5429 | done | |
5213506e RW |
5430 | done |
5431 | IFS=$as_save_IFS | |
77a3eb61 | 5432 | |
77a3eb61 PG |
5433 | fi |
5434 | fi | |
5435 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5436 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5438 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
77a3eb61 | 5439 | else |
5213506e RW |
5440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5441 | $as_echo "no" >&6; } | |
77a3eb61 PG |
5442 | fi |
5443 | ||
5213506e RW |
5444 | if test "x$ac_ct_OBJDUMP" = x; then |
5445 | OBJDUMP="false" | |
5446 | else | |
5447 | case $cross_compiling:$ac_tool_warned in | |
5448 | yes:) | |
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5450 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5451 | ac_tool_warned=yes ;; | |
5452 | esac | |
5453 | OBJDUMP=$ac_ct_OBJDUMP | |
5454 | fi | |
77a3eb61 PG |
5455 | else |
5456 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5457 | fi | |
5458 | ||
5459 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5460 | ||
5461 | ||
5462 | ||
5463 | ||
5464 | ||
5465 | ||
5466 | ||
5467 | ||
1cf3d07d | 5468 | |
5213506e RW |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5470 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5471 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
5472 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
5473 | else |
5474 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5475 | lt_cv_file_magic_test_file= | |
5476 | lt_cv_deplibs_check_method='unknown' | |
5477 | # Need to set the preceding variable on all platforms that support | |
5478 | # interlibrary dependencies. | |
5479 | # 'none' -- dependencies not supported. | |
5480 | # `unknown' -- same as none, but documents that we really don't know. | |
5481 | # 'pass_all' -- all dependencies passed with no checks. | |
5482 | # 'test_compile' -- check by making test program. | |
5483 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5484 | # which responds to the $file_magic_cmd with a given extended regex. | |
5485 | # If you have `file' or equivalent on your system and you're not sure | |
5486 | # whether `pass_all' will *always* work, you probably want this one. | |
5487 | ||
5488 | case $host_os in | |
445bad9b | 5489 | aix[4-9]*) |
1cf3d07d SE |
5490 | lt_cv_deplibs_check_method=pass_all |
5491 | ;; | |
5492 | ||
5493 | beos*) | |
5494 | lt_cv_deplibs_check_method=pass_all | |
5495 | ;; | |
5496 | ||
5497 | bsdi[45]*) | |
5498 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5499 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5500 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5501 | ;; | |
5502 | ||
5503 | cygwin*) | |
5504 | # func_win32_libid is a shell function defined in ltmain.sh | |
5505 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5506 | lt_cv_file_magic_cmd='func_win32_libid' | |
5507 | ;; | |
5508 | ||
5509 | mingw* | pw32*) | |
5510 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5511 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5512 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
5513 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5514 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
5515 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5516 | lt_cv_file_magic_cmd='func_win32_libid' | |
5517 | else | |
5518 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5519 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5520 | fi | |
5521 | ;; | |
5522 | ||
43e02a8a | 5523 | cegcc*) |
77a3eb61 PG |
5524 | # use the weaker test based on 'objdump'. See mingw*. |
5525 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5526 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5527 | ;; | |
5528 | ||
1cf3d07d SE |
5529 | darwin* | rhapsody*) |
5530 | lt_cv_deplibs_check_method=pass_all | |
5531 | ;; | |
5532 | ||
5533 | freebsd* | dragonfly*) | |
5534 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5535 | case $host_cpu in | |
5536 | i*86 ) | |
5537 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5538 | # Let's accept both of them until this is cleared up. | |
5539 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5540 | lt_cv_file_magic_cmd=/usr/bin/file | |
5541 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5542 | ;; | |
5543 | esac | |
5544 | else | |
5545 | lt_cv_deplibs_check_method=pass_all | |
5546 | fi | |
77008252 | 5547 | ;; |
1cf3d07d SE |
5548 | |
5549 | gnu*) | |
5550 | lt_cv_deplibs_check_method=pass_all | |
77008252 | 5551 | ;; |
1cf3d07d | 5552 | |
43e02a8a RW |
5553 | haiku*) |
5554 | lt_cv_deplibs_check_method=pass_all | |
5555 | ;; | |
5556 | ||
1cf3d07d SE |
5557 | hpux10.20* | hpux11*) |
5558 | lt_cv_file_magic_cmd=/usr/bin/file | |
5559 | case $host_cpu in | |
5560 | ia64*) | |
5561 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5562 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5563 | ;; | |
5564 | hppa*64*) | |
43e02a8a | 5565 | 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]' |
1cf3d07d SE |
5566 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5567 | ;; | |
77008252 | 5568 | *) |
43e02a8a | 5569 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d SE |
5570 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5571 | ;; | |
5572 | esac | |
5573 | ;; | |
77008252 | 5574 | |
1cf3d07d SE |
5575 | interix[3-9]*) |
5576 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5577 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5578 | ;; | |
77008252 | 5579 | |
1cf3d07d SE |
5580 | irix5* | irix6* | nonstopux*) |
5581 | case $LD in | |
5582 | *-32|*"-32 ") libmagic=32-bit;; | |
5583 | *-n32|*"-n32 ") libmagic=N32;; | |
5584 | *-64|*"-64 ") libmagic=64-bit;; | |
5585 | *) libmagic=never-match;; | |
5586 | esac | |
5587 | lt_cv_deplibs_check_method=pass_all | |
77008252 | 5588 | ;; |
77008252 | 5589 | |
1cf3d07d | 5590 | # This must be Linux ELF. |
7a9d3fe8 | 5591 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
5592 | lt_cv_deplibs_check_method=pass_all |
5593 | ;; | |
77008252 | 5594 | |
1cf3d07d SE |
5595 | netbsd*) |
5596 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5597 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
77008252 | 5598 | else |
1cf3d07d | 5599 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
77008252 | 5600 | fi |
1cf3d07d SE |
5601 | ;; |
5602 | ||
5603 | newos6*) | |
5604 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5605 | lt_cv_file_magic_cmd=/usr/bin/file | |
5606 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5607 | ;; | |
5608 | ||
5609 | *nto* | *qnx*) | |
5610 | lt_cv_deplibs_check_method=pass_all | |
5611 | ;; | |
77008252 | 5612 | |
1cf3d07d SE |
5613 | openbsd*) |
5614 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5615 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5616 | else | |
5617 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
77008252 JJ |
5618 | fi |
5619 | ;; | |
1cf3d07d SE |
5620 | |
5621 | osf3* | osf4* | osf5*) | |
5622 | lt_cv_deplibs_check_method=pass_all | |
5623 | ;; | |
5624 | ||
5625 | rdos*) | |
5626 | lt_cv_deplibs_check_method=pass_all | |
5627 | ;; | |
5628 | ||
5629 | solaris*) | |
5630 | lt_cv_deplibs_check_method=pass_all | |
5631 | ;; | |
5632 | ||
5633 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5634 | lt_cv_deplibs_check_method=pass_all | |
5635 | ;; | |
5636 | ||
5637 | sysv4 | sysv4.3*) | |
5638 | case $host_vendor in | |
5639 | motorola) | |
5640 | 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]' | |
5641 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5642 | ;; | |
5643 | ncr) | |
5644 | lt_cv_deplibs_check_method=pass_all | |
5645 | ;; | |
5646 | sequent) | |
5647 | lt_cv_file_magic_cmd='/bin/file' | |
5648 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5649 | ;; | |
5650 | sni) | |
5651 | lt_cv_file_magic_cmd='/bin/file' | |
5652 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5653 | lt_cv_file_magic_test_file=/lib/libc.so | |
5654 | ;; | |
5655 | siemens) | |
5656 | lt_cv_deplibs_check_method=pass_all | |
5657 | ;; | |
5658 | pc) | |
5659 | lt_cv_deplibs_check_method=pass_all | |
5660 | ;; | |
5661 | esac | |
5662 | ;; | |
5663 | ||
5664 | tpf*) | |
5665 | lt_cv_deplibs_check_method=pass_all | |
5666 | ;; | |
77008252 JJ |
5667 | esac |
5668 | ||
1cf3d07d | 5669 | fi |
5213506e RW |
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5671 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
1cf3d07d SE |
5672 | file_magic_cmd=$lt_cv_file_magic_cmd |
5673 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5674 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5675 | ||
5676 | ||
5677 | ||
5678 | ||
5679 | ||
5680 | ||
5681 | ||
5682 | ||
5683 | ||
5684 | ||
5685 | ||
5686 | ||
77008252 | 5687 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
5688 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5689 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5691 | $as_echo_n "checking for $ac_word... " >&6; } | |
5692 | if test "${ac_cv_prog_AR+set}" = set; then : | |
5693 | $as_echo_n "(cached) " >&6 | |
77008252 | 5694 | else |
1cf3d07d SE |
5695 | if test -n "$AR"; then |
5696 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
77008252 JJ |
5697 | else |
5698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5699 | for as_dir in $PATH | |
5700 | do | |
5701 | IFS=$as_save_IFS | |
5702 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5703 | for ac_exec_ext in '' $ac_executable_extensions; do |
5704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5705 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 5706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
5707 | break 2 |
5708 | fi | |
5709 | done | |
5213506e RW |
5710 | done |
5711 | IFS=$as_save_IFS | |
77008252 JJ |
5712 | |
5713 | fi | |
5714 | fi | |
1cf3d07d SE |
5715 | AR=$ac_cv_prog_AR |
5716 | if test -n "$AR"; then | |
5213506e RW |
5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5718 | $as_echo "$AR" >&6; } | |
77008252 | 5719 | else |
5213506e RW |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5721 | $as_echo "no" >&6; } | |
77008252 JJ |
5722 | fi |
5723 | ||
5213506e | 5724 | |
77008252 | 5725 | fi |
1cf3d07d SE |
5726 | if test -z "$ac_cv_prog_AR"; then |
5727 | ac_ct_AR=$AR | |
5728 | # Extract the first word of "ar", so it can be a program name with args. | |
5729 | set dummy ar; ac_word=$2 | |
5213506e RW |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5731 | $as_echo_n "checking for $ac_word... " >&6; } | |
5732 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
5733 | $as_echo_n "(cached) " >&6 | |
77008252 | 5734 | else |
1cf3d07d SE |
5735 | if test -n "$ac_ct_AR"; then |
5736 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
77008252 JJ |
5737 | else |
5738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5739 | for as_dir in $PATH | |
5740 | do | |
5741 | IFS=$as_save_IFS | |
5742 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5743 | for ac_exec_ext in '' $ac_executable_extensions; do |
5744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5745 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 5746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
5747 | break 2 |
5748 | fi | |
5749 | done | |
5213506e RW |
5750 | done |
5751 | IFS=$as_save_IFS | |
77008252 | 5752 | |
77008252 JJ |
5753 | fi |
5754 | fi | |
1cf3d07d SE |
5755 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5756 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5758 | $as_echo "$ac_ct_AR" >&6; } | |
77008252 | 5759 | else |
5213506e RW |
5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5761 | $as_echo "no" >&6; } | |
77008252 JJ |
5762 | fi |
5763 | ||
5213506e RW |
5764 | if test "x$ac_ct_AR" = x; then |
5765 | AR="false" | |
5766 | else | |
5767 | case $cross_compiling:$ac_tool_warned in | |
5768 | yes:) | |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5770 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5771 | ac_tool_warned=yes ;; | |
5772 | esac | |
5773 | AR=$ac_ct_AR | |
5774 | fi | |
77008252 | 5775 | else |
1cf3d07d | 5776 | AR="$ac_cv_prog_AR" |
77008252 JJ |
5777 | fi |
5778 | ||
1cf3d07d SE |
5779 | test -z "$AR" && AR=ar |
5780 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5781 | ||
5782 | ||
5783 | ||
5784 | ||
5785 | ||
5786 | ||
5787 | ||
5788 | ||
5789 | ||
5790 | ||
5791 | ||
77008252 JJ |
5792 | if test -n "$ac_tool_prefix"; then |
5793 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5794 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5796 | $as_echo_n "checking for $ac_word... " >&6; } | |
5797 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
5798 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
5799 | else |
5800 | if test -n "$STRIP"; then | |
5801 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5802 | else | |
5803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5804 | for as_dir in $PATH | |
5805 | do | |
5806 | IFS=$as_save_IFS | |
5807 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5808 | for ac_exec_ext in '' $ac_executable_extensions; do |
5809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77008252 | 5810 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 5811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
5812 | break 2 |
5813 | fi | |
5814 | done | |
5213506e RW |
5815 | done |
5816 | IFS=$as_save_IFS | |
77008252 JJ |
5817 | |
5818 | fi | |
5819 | fi | |
5820 | STRIP=$ac_cv_prog_STRIP | |
5821 | if test -n "$STRIP"; then | |
5213506e RW |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
5823 | $as_echo "$STRIP" >&6; } | |
77008252 | 5824 | else |
5213506e RW |
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5826 | $as_echo "no" >&6; } | |
77008252 JJ |
5827 | fi |
5828 | ||
5213506e | 5829 | |
77008252 JJ |
5830 | fi |
5831 | if test -z "$ac_cv_prog_STRIP"; then | |
5832 | ac_ct_STRIP=$STRIP | |
5833 | # Extract the first word of "strip", so it can be a program name with args. | |
5834 | set dummy strip; ac_word=$2 | |
5213506e RW |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5836 | $as_echo_n "checking for $ac_word... " >&6; } | |
5837 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
5838 | $as_echo_n "(cached) " >&6 | |
77008252 JJ |
5839 | else |
5840 | if test -n "$ac_ct_STRIP"; then | |
5841 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5842 | else | |
5843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5844 | for as_dir in $PATH | |
5845 | do | |
5846 | IFS=$as_save_IFS | |
5847 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5848 | for ac_exec_ext in '' $ac_executable_extensions; do |
5849 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77008252 | 5850 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 5851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77008252 JJ |
5852 | break 2 |
5853 | fi | |
5854 | done | |
5213506e RW |
5855 | done |
5856 | IFS=$as_save_IFS | |
77008252 | 5857 | |
77008252 JJ |
5858 | fi |
5859 | fi | |
5860 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5861 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
5863 | $as_echo "$ac_ct_STRIP" >&6; } | |
77008252 | 5864 | else |
5213506e RW |
5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5866 | $as_echo "no" >&6; } | |
77008252 JJ |
5867 | fi |
5868 | ||
5213506e RW |
5869 | if test "x$ac_ct_STRIP" = x; then |
5870 | STRIP=":" | |
5871 | else | |
5872 | case $cross_compiling:$ac_tool_warned in | |
5873 | yes:) | |
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5875 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5876 | ac_tool_warned=yes ;; | |
5877 | esac | |
5878 | STRIP=$ac_ct_STRIP | |
5879 | fi | |
77008252 JJ |
5880 | else |
5881 | STRIP="$ac_cv_prog_STRIP" | |
5882 | fi | |
5883 | ||
1cf3d07d | 5884 | test -z "$STRIP" && STRIP=: |
77008252 | 5885 | |
77008252 JJ |
5886 | |
5887 | ||
77008252 | 5888 | |
77008252 JJ |
5889 | |
5890 | ||
1cf3d07d SE |
5891 | if test -n "$ac_tool_prefix"; then |
5892 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5893 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5895 | $as_echo_n "checking for $ac_word... " >&6; } | |
5896 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5897 | $as_echo_n "(cached) " >&6 | |
77008252 | 5898 | else |
1cf3d07d SE |
5899 | if test -n "$RANLIB"; then |
5900 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5901 | else | |
5902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5903 | for as_dir in $PATH | |
5904 | do | |
5905 | IFS=$as_save_IFS | |
5906 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5907 | for ac_exec_ext in '' $ac_executable_extensions; do |
5908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5909 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 5910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d | 5911 | break 2 |
77008252 | 5912 | fi |
1cf3d07d | 5913 | done |
5213506e RW |
5914 | done |
5915 | IFS=$as_save_IFS | |
1cf3d07d SE |
5916 | |
5917 | fi | |
5918 | fi | |
5919 | RANLIB=$ac_cv_prog_RANLIB | |
5920 | if test -n "$RANLIB"; then | |
5213506e RW |
5921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5922 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 5923 | else |
5213506e RW |
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5925 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5926 | fi |
5927 | ||
5213506e | 5928 | |
1cf3d07d SE |
5929 | fi |
5930 | if test -z "$ac_cv_prog_RANLIB"; then | |
5931 | ac_ct_RANLIB=$RANLIB | |
5932 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5933 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5935 | $as_echo_n "checking for $ac_word... " >&6; } | |
5936 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5937 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
5938 | else |
5939 | if test -n "$ac_ct_RANLIB"; then | |
5940 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5941 | else | |
5942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5943 | for as_dir in $PATH | |
5944 | do | |
5945 | IFS=$as_save_IFS | |
5946 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5947 | for ac_exec_ext in '' $ac_executable_extensions; do |
5948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5949 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 5950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
5951 | break 2 |
5952 | fi | |
5953 | done | |
5213506e RW |
5954 | done |
5955 | IFS=$as_save_IFS | |
1cf3d07d | 5956 | |
1cf3d07d SE |
5957 | fi |
5958 | fi | |
5959 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5960 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5962 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 5963 | else |
5213506e RW |
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5965 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5966 | fi |
5967 | ||
5213506e RW |
5968 | if test "x$ac_ct_RANLIB" = x; then |
5969 | RANLIB=":" | |
5970 | else | |
5971 | case $cross_compiling:$ac_tool_warned in | |
5972 | yes:) | |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5974 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5975 | ac_tool_warned=yes ;; | |
5976 | esac | |
5977 | RANLIB=$ac_ct_RANLIB | |
5978 | fi | |
1cf3d07d SE |
5979 | else |
5980 | RANLIB="$ac_cv_prog_RANLIB" | |
5981 | fi | |
5982 | ||
5983 | test -z "$RANLIB" && RANLIB=: | |
5984 | ||
5985 | ||
5986 | ||
5987 | ||
5988 | ||
5989 | ||
5990 | # Determine commands to create old-style static archives. | |
77a3eb61 | 5991 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
5992 | old_postinstall_cmds='chmod 644 $oldlib' |
5993 | old_postuninstall_cmds= | |
5994 | ||
5995 | if test -n "$RANLIB"; then | |
5996 | case $host_os in | |
5997 | openbsd*) | |
5998 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5999 | ;; | |
6000 | *) | |
6001 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6002 | ;; | |
6003 | esac | |
6004 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6005 | fi | |
6006 | ||
43e02a8a RW |
6007 | case $host_os in |
6008 | darwin*) | |
6009 | lock_old_archive_extraction=yes ;; | |
6010 | *) | |
6011 | lock_old_archive_extraction=no ;; | |
6012 | esac | |
6013 | ||
6014 | ||
6015 | ||
6016 | ||
6017 | ||
6018 | ||
1cf3d07d SE |
6019 | |
6020 | ||
6021 | ||
6022 | ||
6023 | ||
6024 | ||
6025 | ||
6026 | ||
6027 | ||
6028 | ||
6029 | ||
6030 | ||
6031 | ||
6032 | ||
6033 | ||
6034 | ||
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
6041 | ||
6042 | ||
6043 | ||
6044 | ||
6045 | ||
6046 | ||
6047 | ||
6048 | ||
6049 | ||
6050 | ||
6051 | ||
6052 | # If no C compiler was specified, use CC. | |
6053 | LTCC=${LTCC-"$CC"} | |
6054 | ||
6055 | # If no C compiler flags were specified, use CFLAGS. | |
6056 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6057 | ||
6058 | # Allow CC to be a program name with arguments. | |
6059 | compiler=$CC | |
6060 | ||
6061 | ||
6062 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6064 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6065 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6066 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
6067 | else |
6068 | ||
6069 | # These are sane defaults that work on at least a few old systems. | |
6070 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6071 | ||
6072 | # Character class describing NM global symbol codes. | |
6073 | symcode='[BCDEGRST]' | |
6074 | ||
6075 | # Regexp to match symbols that can be accessed directly from C. | |
6076 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6077 | ||
6078 | # Define system-specific variables. | |
6079 | case $host_os in | |
6080 | aix*) | |
6081 | symcode='[BCDT]' | |
6082 | ;; | |
77a3eb61 | 6083 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
6084 | symcode='[ABCDGISTW]' |
6085 | ;; | |
6086 | hpux*) | |
6087 | if test "$host_cpu" = ia64; then | |
6088 | symcode='[ABCDEGRST]' | |
6089 | fi | |
6090 | ;; | |
6091 | irix* | nonstopux*) | |
6092 | symcode='[BCDEGRST]' | |
6093 | ;; | |
6094 | osf*) | |
6095 | symcode='[BCDEGQRST]' | |
6096 | ;; | |
6097 | solaris*) | |
6098 | symcode='[BDRT]' | |
6099 | ;; | |
6100 | sco3.2v5*) | |
6101 | symcode='[DT]' | |
6102 | ;; | |
6103 | sysv4.2uw2*) | |
6104 | symcode='[DT]' | |
6105 | ;; | |
6106 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6107 | symcode='[ABDT]' | |
6108 | ;; | |
6109 | sysv4) | |
6110 | symcode='[DFNSTU]' | |
6111 | ;; | |
6112 | esac | |
6113 | ||
6114 | # If we're using GNU nm, then use its standard symbol codes. | |
6115 | case `$NM -V 2>&1` in | |
6116 | *GNU* | *'with BFD'*) | |
6117 | symcode='[ABCDGIRSTW]' ;; | |
6118 | esac | |
6119 | ||
6120 | # Transform an extracted symbol line into a proper C declaration. | |
6121 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6122 | # so use this general approach. | |
6123 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6124 | ||
6125 | # Transform an extracted symbol line into symbol name and symbol address | |
6126 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
77a3eb61 | 6127 | 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'" |
1cf3d07d SE |
6128 | |
6129 | # Handle CRLF in mingw tool chain | |
6130 | opt_cr= | |
6131 | case $build_os in | |
6132 | mingw*) | |
6133 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
77008252 | 6134 | ;; |
1cf3d07d SE |
6135 | esac |
6136 | ||
6137 | # Try without a prefix underscore, then with it. | |
6138 | for ac_symprfx in "" "_"; do | |
6139 | ||
6140 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6141 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6142 | ||
6143 | # Write the raw and C identifiers. | |
6144 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6145 | # Fake it for dumpbin and say T for any non-static function | |
6146 | # and D for any global variable. | |
6147 | # Also find C++ and __fastcall symbols from MSVC++, | |
6148 | # which start with @ or ?. | |
6149 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6150 | " {last_section=section; section=\$ 3};"\ | |
6151 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6152 | " \$ 0!~/External *\|/{next};"\ | |
6153 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6154 | " {if(hide[section]) next};"\ | |
6155 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6156 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6157 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6158 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6159 | " ' prfx=^$ac_symprfx" | |
6160 | else | |
6161 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6162 | fi | |
6163 | ||
6164 | # Check to see that the pipe works correctly. | |
6165 | pipe_works=no | |
6166 | ||
6167 | rm -f conftest* | |
6168 | cat > conftest.$ac_ext <<_LT_EOF | |
6169 | #ifdef __cplusplus | |
6170 | extern "C" { | |
6171 | #endif | |
6172 | char nm_test_var; | |
6173 | void nm_test_func(void); | |
6174 | void nm_test_func(void){} | |
6175 | #ifdef __cplusplus | |
6176 | } | |
6177 | #endif | |
6178 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6179 | _LT_EOF | |
6180 | ||
5213506e | 6181 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6182 | (eval $ac_compile) 2>&5 |
6183 | ac_status=$? | |
5213506e RW |
6184 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6185 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6186 | # Now try to grab the symbols. |
6187 | nlist=conftest.nm | |
43e02a8a RW |
6188 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6189 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 6190 | ac_status=$? |
5213506e RW |
6191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6192 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
6193 | # Try sorting and uniquifying the output. |
6194 | if sort "$nlist" | uniq > "$nlist"T; then | |
6195 | mv -f "$nlist"T "$nlist" | |
6196 | else | |
6197 | rm -f "$nlist"T | |
6198 | fi | |
6199 | ||
6200 | # Make sure that we snagged all the symbols we need. | |
6201 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6202 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6203 | cat <<_LT_EOF > conftest.$ac_ext | |
6204 | #ifdef __cplusplus | |
6205 | extern "C" { | |
6206 | #endif | |
6207 | ||
6208 | _LT_EOF | |
6209 | # Now generate the symbol file. | |
6210 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6211 | ||
6212 | cat <<_LT_EOF >> conftest.$ac_ext | |
6213 | ||
6214 | /* The mapping between symbol names and symbols. */ | |
6215 | const struct { | |
6216 | const char *name; | |
6217 | void *address; | |
6218 | } | |
6219 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6220 | { | |
6221 | { "@PROGRAM@", (void *) 0 }, | |
6222 | _LT_EOF | |
6223 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6224 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6225 | {0, (void *) 0} | |
6226 | }; | |
6227 | ||
6228 | /* This works around a problem in FreeBSD linker */ | |
6229 | #ifdef FREEBSD_WORKAROUND | |
6230 | static const void *lt_preloaded_setup() { | |
6231 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6232 | } | |
6233 | #endif | |
6234 | ||
6235 | #ifdef __cplusplus | |
6236 | } | |
6237 | #endif | |
6238 | _LT_EOF | |
6239 | # Now try linking the two files. | |
6240 | mv conftest.$ac_objext conftstm.$ac_objext | |
6241 | lt_save_LIBS="$LIBS" | |
6242 | lt_save_CFLAGS="$CFLAGS" | |
6243 | LIBS="conftstm.$ac_objext" | |
6244 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 6245 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
6246 | (eval $ac_link) 2>&5 |
6247 | ac_status=$? | |
5213506e RW |
6248 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6249 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
6250 | pipe_works=yes |
6251 | fi | |
6252 | LIBS="$lt_save_LIBS" | |
6253 | CFLAGS="$lt_save_CFLAGS" | |
6254 | else | |
6255 | echo "cannot find nm_test_func in $nlist" >&5 | |
6256 | fi | |
6257 | else | |
6258 | echo "cannot find nm_test_var in $nlist" >&5 | |
6259 | fi | |
6260 | else | |
6261 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6262 | fi | |
6263 | else | |
6264 | echo "$progname: failed program was:" >&5 | |
6265 | cat conftest.$ac_ext >&5 | |
6266 | fi | |
77a3eb61 | 6267 | rm -rf conftest* conftst* |
1cf3d07d SE |
6268 | |
6269 | # Do not use the global_symbol_pipe unless it works. | |
6270 | if test "$pipe_works" = yes; then | |
6271 | break | |
6272 | else | |
6273 | lt_cv_sys_global_symbol_pipe= | |
6274 | fi | |
6275 | done | |
6276 | ||
6277 | fi | |
6278 | ||
6279 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6280 | lt_cv_sys_global_symbol_to_cdecl= | |
6281 | fi | |
6282 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
6283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6284 | $as_echo "failed" >&6; } | |
1cf3d07d | 6285 | else |
5213506e RW |
6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6287 | $as_echo "ok" >&6; } | |
1cf3d07d | 6288 | fi |
77008252 | 6289 | |
1cf3d07d SE |
6290 | |
6291 | ||
6292 | ||
6293 | ||
6294 | ||
6295 | ||
6296 | ||
6297 | ||
6298 | ||
6299 | ||
6300 | ||
6301 | ||
6302 | ||
6303 | ||
77a3eb61 PG |
6304 | |
6305 | ||
6306 | ||
6307 | ||
6308 | ||
1cf3d07d SE |
6309 | |
6310 | ||
5213506e RW |
6311 | # Check whether --enable-libtool-lock was given. |
6312 | if test "${enable_libtool_lock+set}" = set; then : | |
6313 | enableval=$enable_libtool_lock; | |
6314 | fi | |
1cf3d07d | 6315 | |
1cf3d07d SE |
6316 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6317 | ||
6318 | # Some flags need to be propagated to the compiler or linker for good | |
6319 | # libtool support. | |
6320 | case $host in | |
77008252 JJ |
6321 | ia64-*-hpux*) |
6322 | # Find out which ABI we are using. | |
6323 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6324 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
77008252 JJ |
6325 | (eval $ac_compile) 2>&5 |
6326 | ac_status=$? | |
5213506e RW |
6327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6328 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6329 | case `/usr/bin/file conftest.$ac_objext` in |
6330 | *ELF-32*) | |
6331 | HPUX_IA64_MODE="32" | |
6332 | ;; | |
6333 | *ELF-64*) | |
6334 | HPUX_IA64_MODE="64" | |
6335 | ;; | |
6336 | esac | |
6337 | fi | |
6338 | rm -rf conftest* | |
6339 | ;; | |
6340 | *-*-irix6*) | |
6341 | # Find out which ABI we are using. | |
43e02a8a | 6342 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 6343 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6344 | (eval $ac_compile) 2>&5 |
6345 | ac_status=$? | |
5213506e RW |
6346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6347 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6348 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6349 | case `/usr/bin/file conftest.$ac_objext` in | |
6350 | *32-bit*) | |
6351 | LD="${LD-ld} -melf32bsmip" | |
6352 | ;; | |
6353 | *N32*) | |
6354 | LD="${LD-ld} -melf32bmipn32" | |
6355 | ;; | |
6356 | *64-bit*) | |
6357 | LD="${LD-ld} -melf64bmip" | |
6358 | ;; | |
6359 | esac | |
6360 | else | |
6361 | case `/usr/bin/file conftest.$ac_objext` in | |
6362 | *32-bit*) | |
6363 | LD="${LD-ld} -32" | |
6364 | ;; | |
6365 | *N32*) | |
6366 | LD="${LD-ld} -n32" | |
6367 | ;; | |
6368 | *64-bit*) | |
6369 | LD="${LD-ld} -64" | |
6370 | ;; | |
6371 | esac | |
6372 | fi | |
6373 | fi | |
6374 | rm -rf conftest* | |
6375 | ;; | |
6376 | ||
6377 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6378 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6379 | # Find out which ABI we are using. | |
6380 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6381 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6382 | (eval $ac_compile) 2>&5 |
6383 | ac_status=$? | |
5213506e RW |
6384 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6385 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6386 | case `/usr/bin/file conftest.o` in |
6387 | *32-bit*) | |
6388 | case $host in | |
6389 | x86_64-*kfreebsd*-gnu) | |
6390 | LD="${LD-ld} -m elf_i386_fbsd" | |
6391 | ;; | |
6392 | x86_64-*linux*) | |
6393 | LD="${LD-ld} -m elf_i386" | |
6394 | ;; | |
6395 | ppc64-*linux*|powerpc64-*linux*) | |
6396 | LD="${LD-ld} -m elf32ppclinux" | |
6397 | ;; | |
6398 | s390x-*linux*) | |
6399 | LD="${LD-ld} -m elf_s390" | |
6400 | ;; | |
6401 | sparc64-*linux*) | |
6402 | LD="${LD-ld} -m elf32_sparc" | |
6403 | ;; | |
6404 | esac | |
6405 | ;; | |
6406 | *64-bit*) | |
6407 | case $host in | |
6408 | x86_64-*kfreebsd*-gnu) | |
6409 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6410 | ;; | |
6411 | x86_64-*linux*) | |
6412 | LD="${LD-ld} -m elf_x86_64" | |
6413 | ;; | |
6414 | ppc*-*linux*|powerpc*-*linux*) | |
6415 | LD="${LD-ld} -m elf64ppc" | |
6416 | ;; | |
6417 | s390*-*linux*|s390*-*tpf*) | |
6418 | LD="${LD-ld} -m elf64_s390" | |
6419 | ;; | |
6420 | sparc*-*linux*) | |
6421 | LD="${LD-ld} -m elf64_sparc" | |
6422 | ;; | |
6423 | esac | |
6424 | ;; | |
6425 | esac | |
6426 | fi | |
6427 | rm -rf conftest* | |
6428 | ;; | |
6429 | ||
6430 | *-*-sco3.2v5*) | |
6431 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6432 | SAVE_CFLAGS="$CFLAGS" | |
6433 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6435 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6436 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6437 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
6438 | else |
6439 | ac_ext=c | |
6440 | ac_cpp='$CPP $CPPFLAGS' | |
6441 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6442 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6443 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6444 | ||
6445 | if test x$gcc_no_link = xyes; then | |
5213506e | 6446 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 6447 | fi |
5213506e | 6448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
6449 | /* end confdefs.h. */ |
6450 | ||
6451 | int | |
6452 | main () | |
6453 | { | |
6454 | ||
6455 | ; | |
6456 | return 0; | |
6457 | } | |
6458 | _ACEOF | |
5213506e | 6459 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
6460 | lt_cv_cc_needs_belf=yes |
6461 | else | |
5213506e | 6462 | lt_cv_cc_needs_belf=no |
1cf3d07d | 6463 | fi |
5213506e RW |
6464 | rm -f core conftest.err conftest.$ac_objext \ |
6465 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
6466 | ac_ext=c |
6467 | ac_cpp='$CPP $CPPFLAGS' | |
6468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6471 | ||
77a3eb61 | 6472 | fi |
5213506e RW |
6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6474 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
77a3eb61 PG |
6475 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6476 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6477 | CFLAGS="$SAVE_CFLAGS" | |
6478 | fi | |
6479 | ;; | |
6480 | sparc*-*solaris*) | |
6481 | # Find out which ABI we are using. | |
6482 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6483 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
77a3eb61 PG |
6484 | (eval $ac_compile) 2>&5 |
6485 | ac_status=$? | |
5213506e RW |
6486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6487 | test $ac_status = 0; }; then | |
77a3eb61 PG |
6488 | case `/usr/bin/file conftest.o` in |
6489 | *64-bit*) | |
6490 | case $lt_cv_prog_gnu_ld in | |
6491 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6492 | *) | |
6493 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6494 | LD="${LD-ld} -64" | |
6495 | fi | |
6496 | ;; | |
6497 | esac | |
6498 | ;; | |
6499 | esac | |
6500 | fi | |
6501 | rm -rf conftest* | |
6502 | ;; | |
6503 | esac | |
6504 | ||
6505 | need_locks="$enable_libtool_lock" | |
6506 | ||
6507 | ||
6508 | case $host_os in | |
6509 | rhapsody* | darwin*) | |
6510 | if test -n "$ac_tool_prefix"; then | |
6511 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6512 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6514 | $as_echo_n "checking for $ac_word... " >&6; } | |
6515 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
6516 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6517 | else |
6518 | if test -n "$DSYMUTIL"; then | |
6519 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6520 | else | |
6521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6522 | for as_dir in $PATH | |
6523 | do | |
6524 | IFS=$as_save_IFS | |
6525 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6526 | for ac_exec_ext in '' $ac_executable_extensions; do |
6527 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6528 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 6529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6530 | break 2 |
6531 | fi | |
6532 | done | |
5213506e RW |
6533 | done |
6534 | IFS=$as_save_IFS | |
77a3eb61 PG |
6535 | |
6536 | fi | |
6537 | fi | |
6538 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6539 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6541 | $as_echo "$DSYMUTIL" >&6; } | |
77a3eb61 | 6542 | else |
5213506e RW |
6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6544 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6545 | fi |
6546 | ||
5213506e | 6547 | |
77a3eb61 PG |
6548 | fi |
6549 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6550 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6551 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6552 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6554 | $as_echo_n "checking for $ac_word... " >&6; } | |
6555 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
6556 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6557 | else |
6558 | if test -n "$ac_ct_DSYMUTIL"; then | |
6559 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6560 | else | |
6561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6562 | for as_dir in $PATH | |
6563 | do | |
6564 | IFS=$as_save_IFS | |
6565 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6566 | for ac_exec_ext in '' $ac_executable_extensions; do |
6567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6568 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 6569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6570 | break 2 |
6571 | fi | |
6572 | done | |
5213506e RW |
6573 | done |
6574 | IFS=$as_save_IFS | |
77a3eb61 | 6575 | |
77a3eb61 PG |
6576 | fi |
6577 | fi | |
6578 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6579 | if test -n "$ac_ct_DSYMUTIL"; then | |
5213506e RW |
6580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6581 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
77a3eb61 | 6582 | else |
5213506e RW |
6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6584 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6585 | fi |
6586 | ||
5213506e RW |
6587 | if test "x$ac_ct_DSYMUTIL" = x; then |
6588 | DSYMUTIL=":" | |
6589 | else | |
6590 | case $cross_compiling:$ac_tool_warned in | |
6591 | yes:) | |
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6593 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6594 | ac_tool_warned=yes ;; | |
6595 | esac | |
6596 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6597 | fi | |
77a3eb61 PG |
6598 | else |
6599 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6600 | fi | |
6601 | ||
6602 | if test -n "$ac_tool_prefix"; then | |
6603 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6604 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6606 | $as_echo_n "checking for $ac_word... " >&6; } | |
6607 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
6608 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6609 | else |
6610 | if test -n "$NMEDIT"; then | |
6611 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6612 | else | |
6613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6614 | for as_dir in $PATH | |
6615 | do | |
6616 | IFS=$as_save_IFS | |
6617 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6618 | for ac_exec_ext in '' $ac_executable_extensions; do |
6619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6620 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 6621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6622 | break 2 |
6623 | fi | |
6624 | done | |
5213506e RW |
6625 | done |
6626 | IFS=$as_save_IFS | |
77a3eb61 PG |
6627 | |
6628 | fi | |
6629 | fi | |
6630 | NMEDIT=$ac_cv_prog_NMEDIT | |
6631 | if test -n "$NMEDIT"; then | |
5213506e RW |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
6633 | $as_echo "$NMEDIT" >&6; } | |
77a3eb61 | 6634 | else |
5213506e RW |
6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6636 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6637 | fi |
6638 | ||
5213506e | 6639 | |
77a3eb61 PG |
6640 | fi |
6641 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6642 | ac_ct_NMEDIT=$NMEDIT | |
6643 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6644 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6646 | $as_echo_n "checking for $ac_word... " >&6; } | |
6647 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
6648 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6649 | else |
6650 | if test -n "$ac_ct_NMEDIT"; then | |
6651 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6652 | else | |
6653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6654 | for as_dir in $PATH | |
6655 | do | |
6656 | IFS=$as_save_IFS | |
6657 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6658 | for ac_exec_ext in '' $ac_executable_extensions; do |
6659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6660 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 6661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6662 | break 2 |
6663 | fi | |
6664 | done | |
5213506e RW |
6665 | done |
6666 | IFS=$as_save_IFS | |
77a3eb61 | 6667 | |
77a3eb61 PG |
6668 | fi |
6669 | fi | |
6670 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6671 | if test -n "$ac_ct_NMEDIT"; then | |
5213506e RW |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
6673 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
77a3eb61 | 6674 | else |
5213506e RW |
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6676 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6677 | fi |
6678 | ||
5213506e RW |
6679 | if test "x$ac_ct_NMEDIT" = x; then |
6680 | NMEDIT=":" | |
6681 | else | |
6682 | case $cross_compiling:$ac_tool_warned in | |
6683 | yes:) | |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6685 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6686 | ac_tool_warned=yes ;; | |
6687 | esac | |
6688 | NMEDIT=$ac_ct_NMEDIT | |
6689 | fi | |
77a3eb61 PG |
6690 | else |
6691 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6692 | fi | |
6693 | ||
6694 | if test -n "$ac_tool_prefix"; then | |
6695 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6696 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6698 | $as_echo_n "checking for $ac_word... " >&6; } | |
6699 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
6700 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6701 | else |
6702 | if test -n "$LIPO"; then | |
6703 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6704 | else | |
6705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6706 | for as_dir in $PATH | |
6707 | do | |
6708 | IFS=$as_save_IFS | |
6709 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6710 | for ac_exec_ext in '' $ac_executable_extensions; do |
6711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6712 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 6713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6714 | break 2 |
6715 | fi | |
6716 | done | |
5213506e RW |
6717 | done |
6718 | IFS=$as_save_IFS | |
77a3eb61 PG |
6719 | |
6720 | fi | |
6721 | fi | |
6722 | LIPO=$ac_cv_prog_LIPO | |
6723 | if test -n "$LIPO"; then | |
5213506e RW |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
6725 | $as_echo "$LIPO" >&6; } | |
77a3eb61 | 6726 | else |
5213506e RW |
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6728 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6729 | fi |
6730 | ||
5213506e | 6731 | |
77a3eb61 PG |
6732 | fi |
6733 | if test -z "$ac_cv_prog_LIPO"; then | |
6734 | ac_ct_LIPO=$LIPO | |
6735 | # Extract the first word of "lipo", so it can be a program name with args. | |
6736 | set dummy lipo; ac_word=$2 | |
5213506e RW |
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6738 | $as_echo_n "checking for $ac_word... " >&6; } | |
6739 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
6740 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6741 | else |
6742 | if test -n "$ac_ct_LIPO"; then | |
6743 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6744 | else | |
6745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6746 | for as_dir in $PATH | |
6747 | do | |
6748 | IFS=$as_save_IFS | |
6749 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6750 | for ac_exec_ext in '' $ac_executable_extensions; do |
6751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6752 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 6753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6754 | break 2 |
6755 | fi | |
6756 | done | |
5213506e RW |
6757 | done |
6758 | IFS=$as_save_IFS | |
77a3eb61 | 6759 | |
77a3eb61 PG |
6760 | fi |
6761 | fi | |
6762 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6763 | if test -n "$ac_ct_LIPO"; then | |
5213506e RW |
6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
6765 | $as_echo "$ac_ct_LIPO" >&6; } | |
77a3eb61 | 6766 | else |
5213506e RW |
6767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6768 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6769 | fi |
6770 | ||
5213506e RW |
6771 | if test "x$ac_ct_LIPO" = x; then |
6772 | LIPO=":" | |
6773 | else | |
6774 | case $cross_compiling:$ac_tool_warned in | |
6775 | yes:) | |
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6777 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6778 | ac_tool_warned=yes ;; | |
6779 | esac | |
6780 | LIPO=$ac_ct_LIPO | |
6781 | fi | |
77a3eb61 PG |
6782 | else |
6783 | LIPO="$ac_cv_prog_LIPO" | |
6784 | fi | |
6785 | ||
6786 | if test -n "$ac_tool_prefix"; then | |
6787 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6788 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5213506e RW |
6789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6790 | $as_echo_n "checking for $ac_word... " >&6; } | |
6791 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
6792 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6793 | else |
6794 | if test -n "$OTOOL"; then | |
6795 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6796 | else | |
6797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6798 | for as_dir in $PATH | |
6799 | do | |
6800 | IFS=$as_save_IFS | |
6801 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6802 | for ac_exec_ext in '' $ac_executable_extensions; do |
6803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6804 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
5213506e | 6805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6806 | break 2 |
6807 | fi | |
6808 | done | |
5213506e RW |
6809 | done |
6810 | IFS=$as_save_IFS | |
77a3eb61 PG |
6811 | |
6812 | fi | |
6813 | fi | |
6814 | OTOOL=$ac_cv_prog_OTOOL | |
6815 | if test -n "$OTOOL"; then | |
5213506e RW |
6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
6817 | $as_echo "$OTOOL" >&6; } | |
77a3eb61 | 6818 | else |
5213506e RW |
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6820 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6821 | fi |
6822 | ||
5213506e | 6823 | |
77a3eb61 PG |
6824 | fi |
6825 | if test -z "$ac_cv_prog_OTOOL"; then | |
6826 | ac_ct_OTOOL=$OTOOL | |
6827 | # Extract the first word of "otool", so it can be a program name with args. | |
6828 | set dummy otool; ac_word=$2 | |
5213506e RW |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6830 | $as_echo_n "checking for $ac_word... " >&6; } | |
6831 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
6832 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6833 | else |
6834 | if test -n "$ac_ct_OTOOL"; then | |
6835 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6836 | else | |
6837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6838 | for as_dir in $PATH | |
6839 | do | |
6840 | IFS=$as_save_IFS | |
6841 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6842 | for ac_exec_ext in '' $ac_executable_extensions; do |
6843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6844 | ac_cv_prog_ac_ct_OTOOL="otool" |
5213506e | 6845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6846 | break 2 |
6847 | fi | |
6848 | done | |
5213506e RW |
6849 | done |
6850 | IFS=$as_save_IFS | |
77a3eb61 | 6851 | |
77a3eb61 PG |
6852 | fi |
6853 | fi | |
6854 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6855 | if test -n "$ac_ct_OTOOL"; then | |
5213506e RW |
6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
6857 | $as_echo "$ac_ct_OTOOL" >&6; } | |
77a3eb61 | 6858 | else |
5213506e RW |
6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6860 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6861 | fi |
6862 | ||
5213506e RW |
6863 | if test "x$ac_ct_OTOOL" = x; then |
6864 | OTOOL=":" | |
6865 | else | |
6866 | case $cross_compiling:$ac_tool_warned in | |
6867 | yes:) | |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6869 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6870 | ac_tool_warned=yes ;; | |
6871 | esac | |
6872 | OTOOL=$ac_ct_OTOOL | |
6873 | fi | |
77a3eb61 PG |
6874 | else |
6875 | OTOOL="$ac_cv_prog_OTOOL" | |
6876 | fi | |
6877 | ||
6878 | if test -n "$ac_tool_prefix"; then | |
6879 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6880 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5213506e RW |
6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6882 | $as_echo_n "checking for $ac_word... " >&6; } | |
6883 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
6884 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6885 | else |
6886 | if test -n "$OTOOL64"; then | |
6887 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6888 | else | |
6889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6890 | for as_dir in $PATH | |
6891 | do | |
6892 | IFS=$as_save_IFS | |
6893 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6894 | for ac_exec_ext in '' $ac_executable_extensions; do |
6895 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6896 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
5213506e | 6897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6898 | break 2 |
6899 | fi | |
6900 | done | |
5213506e RW |
6901 | done |
6902 | IFS=$as_save_IFS | |
77a3eb61 PG |
6903 | |
6904 | fi | |
6905 | fi | |
6906 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6907 | if test -n "$OTOOL64"; then | |
5213506e RW |
6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
6909 | $as_echo "$OTOOL64" >&6; } | |
77a3eb61 | 6910 | else |
5213506e RW |
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6912 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6913 | fi |
6914 | ||
5213506e | 6915 | |
77a3eb61 PG |
6916 | fi |
6917 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6918 | ac_ct_OTOOL64=$OTOOL64 | |
6919 | # Extract the first word of "otool64", so it can be a program name with args. | |
6920 | set dummy otool64; ac_word=$2 | |
5213506e RW |
6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6922 | $as_echo_n "checking for $ac_word... " >&6; } | |
6923 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
6924 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
6925 | else |
6926 | if test -n "$ac_ct_OTOOL64"; then | |
6927 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6928 | else | |
6929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6930 | for as_dir in $PATH | |
6931 | do | |
6932 | IFS=$as_save_IFS | |
6933 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6934 | for ac_exec_ext in '' $ac_executable_extensions; do |
6935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
77a3eb61 | 6936 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
5213506e | 6937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
77a3eb61 PG |
6938 | break 2 |
6939 | fi | |
6940 | done | |
5213506e RW |
6941 | done |
6942 | IFS=$as_save_IFS | |
77a3eb61 | 6943 | |
77a3eb61 PG |
6944 | fi |
6945 | fi | |
6946 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6947 | if test -n "$ac_ct_OTOOL64"; then | |
5213506e RW |
6948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
6949 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
77a3eb61 | 6950 | else |
5213506e RW |
6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6952 | $as_echo "no" >&6; } | |
77a3eb61 PG |
6953 | fi |
6954 | ||
5213506e RW |
6955 | if test "x$ac_ct_OTOOL64" = x; then |
6956 | OTOOL64=":" | |
6957 | else | |
6958 | case $cross_compiling:$ac_tool_warned in | |
6959 | yes:) | |
6960 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6961 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6962 | ac_tool_warned=yes ;; | |
6963 | esac | |
6964 | OTOOL64=$ac_ct_OTOOL64 | |
6965 | fi | |
77a3eb61 PG |
6966 | else |
6967 | OTOOL64="$ac_cv_prog_OTOOL64" | |
6968 | fi | |
6969 | ||
6970 | ||
6971 | ||
6972 | ||
6973 | ||
6974 | ||
6975 | ||
6976 | ||
6977 | ||
6978 | ||
6979 | ||
6980 | ||
6981 | ||
6982 | ||
6983 | ||
6984 | ||
6985 | ||
6986 | ||
6987 | ||
6988 | ||
6989 | ||
6990 | ||
6991 | ||
6992 | ||
6993 | ||
6994 | ||
6995 | ||
5213506e RW |
6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
6997 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6998 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
6999 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
7000 | else |
7001 | lt_cv_apple_cc_single_mod=no | |
7002 | if test -z "${LT_MULTI_MODULE}"; then | |
7003 | # By default we will add the -single_module flag. You can override | |
7004 | # by either setting the environment variable LT_MULTI_MODULE | |
7005 | # non-empty at configure time, or by adding -multi_module to the | |
7006 | # link flags. | |
7007 | rm -rf libconftest.dylib* | |
7008 | echo "int foo(void){return 1;}" > conftest.c | |
7009 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7010 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7011 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7012 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7013 | _lt_result=$? | |
7014 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7015 | lt_cv_apple_cc_single_mod=yes | |
7016 | else | |
7017 | cat conftest.err >&5 | |
7018 | fi | |
7019 | rm -rf libconftest.dylib* | |
7020 | rm -f conftest.* | |
7021 | fi | |
7022 | fi | |
5213506e RW |
7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7024 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7026 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7027 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7028 | $as_echo_n "(cached) " >&6 | |
77a3eb61 PG |
7029 | else |
7030 | lt_cv_ld_exported_symbols_list=no | |
7031 | save_LDFLAGS=$LDFLAGS | |
7032 | echo "_main" > conftest.sym | |
7033 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7034 | if test x$gcc_no_link = xyes; then | |
5213506e | 7035 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
77a3eb61 | 7036 | fi |
5213506e | 7037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77a3eb61 PG |
7038 | /* end confdefs.h. */ |
7039 | ||
7040 | int | |
7041 | main () | |
7042 | { | |
7043 | ||
7044 | ; | |
7045 | return 0; | |
7046 | } | |
7047 | _ACEOF | |
5213506e | 7048 | if ac_fn_c_try_link "$LINENO"; then : |
77a3eb61 PG |
7049 | lt_cv_ld_exported_symbols_list=yes |
7050 | else | |
5213506e | 7051 | lt_cv_ld_exported_symbols_list=no |
77a3eb61 | 7052 | fi |
5213506e RW |
7053 | rm -f core conftest.err conftest.$ac_objext \ |
7054 | conftest$ac_exeext conftest.$ac_ext | |
77a3eb61 PG |
7055 | LDFLAGS="$save_LDFLAGS" |
7056 | ||
7057 | fi | |
5213506e RW |
7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7059 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
43e02a8a RW |
7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7061 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7062 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
7063 | $as_echo_n "(cached) " >&6 | |
7064 | else | |
7065 | lt_cv_ld_force_load=no | |
7066 | cat > conftest.c << _LT_EOF | |
7067 | int forced_loaded() { return 2;} | |
7068 | _LT_EOF | |
7069 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7070 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7071 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7072 | $AR cru libconftest.a conftest.o 2>&5 | |
7073 | cat > conftest.c << _LT_EOF | |
7074 | int main() { return 0;} | |
7075 | _LT_EOF | |
7076 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7077 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7078 | _lt_result=$? | |
7079 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7080 | lt_cv_ld_force_load=yes | |
7081 | else | |
7082 | cat conftest.err >&5 | |
7083 | fi | |
7084 | rm -f conftest.err libconftest.a conftest conftest.c | |
7085 | rm -rf conftest.dSYM | |
7086 | ||
7087 | fi | |
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7089 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
77a3eb61 PG |
7090 | case $host_os in |
7091 | rhapsody* | darwin1.[012]) | |
7092 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7093 | darwin1.*) | |
7094 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7095 | darwin*) # darwin 5.x on | |
7096 | # if running on 10.5 or later, the deployment target defaults | |
7097 | # to the OS version, if on x86, and 10.4, the deployment | |
7098 | # target defaults to 10.4. Don't you love it? | |
7099 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7100 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7101 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7102 | 10.[012]*) | |
7103 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7104 | 10.*) | |
7105 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7106 | esac | |
7107 | ;; | |
7108 | esac | |
7109 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7110 | _lt_dar_single_mod='$single_module' | |
7111 | fi | |
7112 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7113 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7114 | else | |
7115 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7116 | fi | |
43e02a8a | 7117 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
77a3eb61 PG |
7118 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7119 | else | |
7120 | _lt_dsymutil= | |
7121 | fi | |
7122 | ;; | |
7123 | esac | |
7124 | ||
77a3eb61 | 7125 | for ac_header in dlfcn.h |
5213506e RW |
7126 | do : |
7127 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7128 | " | |
7129 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
77a3eb61 | 7130 | cat >>confdefs.h <<_ACEOF |
5213506e | 7131 | #define HAVE_DLFCN_H 1 |
77a3eb61 PG |
7132 | _ACEOF |
7133 | ||
7134 | fi | |
7135 | ||
7136 | done | |
7137 | ||
7138 | ||
7139 | ||
43e02a8a RW |
7140 | |
7141 | ||
77a3eb61 PG |
7142 | # Set options |
7143 | ||
7144 | ||
7145 | ||
7146 | enable_dlopen=no | |
7147 | ||
7148 | ||
7149 | enable_win32_dll=no | |
7150 | ||
7151 | ||
5213506e RW |
7152 | # Check whether --enable-shared was given. |
7153 | if test "${enable_shared+set}" = set; then : | |
7154 | enableval=$enable_shared; p=${PACKAGE-default} | |
77a3eb61 PG |
7155 | case $enableval in |
7156 | yes) enable_shared=yes ;; | |
7157 | no) enable_shared=no ;; | |
7158 | *) | |
7159 | enable_shared=no | |
7160 | # Look at the argument we got. We use all the common list separators. | |
7161 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7162 | for pkg in $enableval; do | |
7163 | IFS="$lt_save_ifs" | |
7164 | if test "X$pkg" = "X$p"; then | |
7165 | enable_shared=yes | |
7166 | fi | |
7167 | done | |
7168 | IFS="$lt_save_ifs" | |
7169 | ;; | |
7170 | esac | |
7171 | else | |
7172 | enable_shared=yes | |
5213506e | 7173 | fi |
77a3eb61 PG |
7174 | |
7175 | ||
7176 | ||
7177 | ||
7178 | ||
7179 | ||
7180 | ||
7181 | ||
5213506e RW |
7182 | |
7183 | # Check whether --enable-static was given. | |
7184 | if test "${enable_static+set}" = set; then : | |
7185 | enableval=$enable_static; p=${PACKAGE-default} | |
77a3eb61 PG |
7186 | case $enableval in |
7187 | yes) enable_static=yes ;; | |
7188 | no) enable_static=no ;; | |
7189 | *) | |
7190 | enable_static=no | |
7191 | # Look at the argument we got. We use all the common list separators. | |
7192 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7193 | for pkg in $enableval; do | |
7194 | IFS="$lt_save_ifs" | |
7195 | if test "X$pkg" = "X$p"; then | |
7196 | enable_static=yes | |
7197 | fi | |
7198 | done | |
7199 | IFS="$lt_save_ifs" | |
7200 | ;; | |
7201 | esac | |
7202 | else | |
7203 | enable_static=yes | |
5213506e | 7204 | fi |
77a3eb61 PG |
7205 | |
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | ||
5213506e RW |
7214 | |
7215 | # Check whether --with-pic was given. | |
7216 | if test "${with_pic+set}" = set; then : | |
7217 | withval=$with_pic; pic_mode="$withval" | |
77a3eb61 PG |
7218 | else |
7219 | pic_mode=default | |
5213506e RW |
7220 | fi |
7221 | ||
77a3eb61 PG |
7222 | |
7223 | test -z "$pic_mode" && pic_mode=default | |
7224 | ||
7225 | ||
7226 | ||
7227 | ||
7228 | ||
7229 | ||
7230 | ||
5213506e RW |
7231 | # Check whether --enable-fast-install was given. |
7232 | if test "${enable_fast_install+set}" = set; then : | |
7233 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
77a3eb61 PG |
7234 | case $enableval in |
7235 | yes) enable_fast_install=yes ;; | |
7236 | no) enable_fast_install=no ;; | |
7237 | *) | |
7238 | enable_fast_install=no | |
7239 | # Look at the argument we got. We use all the common list separators. | |
7240 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7241 | for pkg in $enableval; do | |
7242 | IFS="$lt_save_ifs" | |
7243 | if test "X$pkg" = "X$p"; then | |
7244 | enable_fast_install=yes | |
7245 | fi | |
7246 | done | |
7247 | IFS="$lt_save_ifs" | |
1cf3d07d SE |
7248 | ;; |
7249 | esac | |
77a3eb61 PG |
7250 | else |
7251 | enable_fast_install=yes | |
5213506e RW |
7252 | fi |
7253 | ||
1cf3d07d | 7254 | |
1cf3d07d SE |
7255 | |
7256 | ||
1cf3d07d | 7257 | |
1cf3d07d | 7258 | |
1cf3d07d | 7259 | |
1cf3d07d | 7260 | |
1cf3d07d SE |
7261 | |
7262 | ||
7263 | ||
7264 | # This can be used to rebuild libtool when needed | |
7265 | LIBTOOL_DEPS="$ltmain" | |
7266 | ||
7267 | # Always use our own libtool. | |
7268 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7269 | ||
7270 | ||
7271 | ||
7272 | ||
7273 | ||
7274 | ||
7275 | ||
7276 | ||
7277 | ||
7278 | ||
7279 | ||
7280 | ||
7281 | ||
7282 | ||
7283 | ||
7284 | ||
7285 | ||
7286 | ||
7287 | ||
7288 | ||
7289 | ||
7290 | ||
7291 | ||
43e02a8a | 7292 | |
1cf3d07d SE |
7293 | |
7294 | ||
7295 | test -z "$LN_S" && LN_S="ln -s" | |
7296 | ||
7297 | ||
7298 | ||
7299 | ||
7300 | ||
7301 | ||
7302 | ||
7303 | ||
7304 | ||
7305 | ||
7306 | ||
7307 | ||
7308 | ||
7309 | ||
7310 | if test -n "${ZSH_VERSION+set}" ; then | |
7311 | setopt NO_GLOB_SUBST | |
7312 | fi | |
7313 | ||
5213506e RW |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7315 | $as_echo_n "checking for objdir... " >&6; } | |
7316 | if test "${lt_cv_objdir+set}" = set; then : | |
7317 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
7318 | else |
7319 | rm -f .libs 2>/dev/null | |
7320 | mkdir .libs 2>/dev/null | |
7321 | if test -d .libs; then | |
7322 | lt_cv_objdir=.libs | |
7323 | else | |
7324 | # MS-DOS does not allow filenames that begin with a dot. | |
7325 | lt_cv_objdir=_libs | |
7326 | fi | |
7327 | rmdir .libs 2>/dev/null | |
7328 | fi | |
5213506e RW |
7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7330 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
7331 | objdir=$lt_cv_objdir |
7332 | ||
7333 | ||
7334 | ||
7335 | ||
7336 | ||
7337 | cat >>confdefs.h <<_ACEOF | |
7338 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7339 | _ACEOF | |
7340 | ||
7341 | ||
7342 | ||
7343 | ||
1cf3d07d SE |
7344 | case $host_os in |
7345 | aix3*) | |
7346 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7347 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7348 | # vanish in a puff of smoke. | |
7349 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7350 | COLLECT_NAMES= | |
7351 | export COLLECT_NAMES | |
7352 | fi | |
7353 | ;; | |
7354 | esac | |
7355 | ||
1cf3d07d SE |
7356 | # Global variables: |
7357 | ofile=libtool | |
7358 | can_build_shared=yes | |
7359 | ||
7360 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7361 | # which needs '.lib'). | |
7362 | libext=a | |
7363 | ||
7364 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7365 | ||
7366 | old_CC="$CC" | |
7367 | old_CFLAGS="$CFLAGS" | |
7368 | ||
7369 | # Set sane defaults for various variables | |
7370 | test -z "$CC" && CC=cc | |
7371 | test -z "$LTCC" && LTCC=$CC | |
7372 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7373 | test -z "$LD" && LD=ld | |
7374 | test -z "$ac_objext" && ac_objext=o | |
7375 | ||
7376 | for cc_temp in $compiler""; do | |
7377 | case $cc_temp in | |
7378 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7379 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7380 | \-*) ;; | |
7381 | *) break;; | |
7382 | esac | |
7383 | done | |
43e02a8a | 7384 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
7385 | |
7386 | ||
7387 | # Only perform the check for file, if the check method requires it | |
7388 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7389 | case $deplibs_check_method in | |
7390 | file_magic*) | |
7391 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
7392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7393 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7394 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7395 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
7396 | else |
7397 | case $MAGIC_CMD in | |
7398 | [\\/*] | ?:[\\/]*) | |
7399 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7400 | ;; | |
7401 | *) | |
7402 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7403 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7404 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7405 | for ac_dir in $ac_dummy; do | |
7406 | IFS="$lt_save_ifs" | |
7407 | test -z "$ac_dir" && ac_dir=. | |
7408 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7409 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7410 | if test -n "$file_magic_test_file"; then | |
7411 | case $deplibs_check_method in | |
7412 | "file_magic "*) | |
7413 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7414 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7415 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7416 | $EGREP "$file_magic_regex" > /dev/null; then | |
7417 | : | |
7418 | else | |
7419 | cat <<_LT_EOF 1>&2 | |
7420 | ||
7421 | *** Warning: the command libtool uses to detect shared libraries, | |
7422 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7423 | *** The result is that libtool may fail to recognize shared libraries | |
7424 | *** as such. This will affect the creation of libtool libraries that | |
7425 | *** depend on shared libraries, but programs linked with such libtool | |
7426 | *** libraries will work regardless of this problem. Nevertheless, you | |
7427 | *** may want to report the problem to your system manager and/or to | |
7428 | *** bug-libtool@gnu.org | |
7429 | ||
7430 | _LT_EOF | |
7431 | fi ;; | |
7432 | esac | |
7433 | fi | |
7434 | break | |
7435 | fi | |
7436 | done | |
7437 | IFS="$lt_save_ifs" | |
7438 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7439 | ;; | |
7440 | esac | |
7441 | fi | |
7442 | ||
7443 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7444 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7446 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 7447 | else |
5213506e RW |
7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7449 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7450 | fi |
7451 | ||
7452 | ||
7453 | ||
7454 | ||
7455 | ||
7456 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7457 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7459 | $as_echo_n "checking for file... " >&6; } | |
7460 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7461 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
7462 | else |
7463 | case $MAGIC_CMD in | |
7464 | [\\/*] | ?:[\\/]*) | |
7465 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7466 | ;; | |
7467 | *) | |
7468 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7469 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7470 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7471 | for ac_dir in $ac_dummy; do | |
7472 | IFS="$lt_save_ifs" | |
7473 | test -z "$ac_dir" && ac_dir=. | |
7474 | if test -f $ac_dir/file; then | |
7475 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7476 | if test -n "$file_magic_test_file"; then | |
7477 | case $deplibs_check_method in | |
7478 | "file_magic "*) | |
7479 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7480 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7481 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7482 | $EGREP "$file_magic_regex" > /dev/null; then | |
7483 | : | |
7484 | else | |
7485 | cat <<_LT_EOF 1>&2 | |
7486 | ||
7487 | *** Warning: the command libtool uses to detect shared libraries, | |
7488 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7489 | *** The result is that libtool may fail to recognize shared libraries | |
7490 | *** as such. This will affect the creation of libtool libraries that | |
7491 | *** depend on shared libraries, but programs linked with such libtool | |
7492 | *** libraries will work regardless of this problem. Nevertheless, you | |
7493 | *** may want to report the problem to your system manager and/or to | |
7494 | *** bug-libtool@gnu.org | |
7495 | ||
7496 | _LT_EOF | |
7497 | fi ;; | |
7498 | esac | |
7499 | fi | |
7500 | break | |
7501 | fi | |
7502 | done | |
7503 | IFS="$lt_save_ifs" | |
7504 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7505 | ;; | |
7506 | esac | |
7507 | fi | |
7508 | ||
7509 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7510 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7512 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 7513 | else |
5213506e RW |
7514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7515 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7516 | fi |
7517 | ||
7518 | ||
7519 | else | |
7520 | MAGIC_CMD=: | |
7521 | fi | |
7522 | fi | |
7523 | ||
7524 | fi | |
7525 | ;; | |
7526 | esac | |
7527 | ||
7528 | # Use C for the default configuration in the libtool script | |
7529 | ||
7530 | lt_save_CC="$CC" | |
7531 | ac_ext=c | |
7532 | ac_cpp='$CPP $CPPFLAGS' | |
7533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7536 | ||
7537 | ||
7538 | # Source file extension for C test sources. | |
7539 | ac_ext=c | |
7540 | ||
7541 | # Object file extension for compiled C test sources. | |
7542 | objext=o | |
7543 | objext=$objext | |
7544 | ||
7545 | # Code to be used in simple compile tests | |
7546 | lt_simple_compile_test_code="int some_variable = 0;" | |
7547 | ||
7548 | # Code to be used in simple link tests | |
7549 | lt_simple_link_test_code='int main(){return(0);}' | |
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | ||
7557 | # If no C compiler was specified, use CC. | |
7558 | LTCC=${LTCC-"$CC"} | |
7559 | ||
7560 | # If no C compiler flags were specified, use CFLAGS. | |
7561 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7562 | ||
7563 | # Allow CC to be a program name with arguments. | |
7564 | compiler=$CC | |
7565 | ||
7566 | # Save the default compiler, since it gets overwritten when the other | |
7567 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7568 | compiler_DEFAULT=$CC | |
7569 | ||
7570 | # save warnings/boilerplate of simple test code | |
7571 | ac_outfile=conftest.$ac_objext | |
7572 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7573 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7574 | _lt_compiler_boilerplate=`cat conftest.err` | |
7575 | $RM conftest* | |
7576 | ||
7577 | ac_outfile=conftest.$ac_objext | |
7578 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7579 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7580 | _lt_linker_boilerplate=`cat conftest.err` | |
77a3eb61 | 7581 | $RM -r conftest* |
1cf3d07d SE |
7582 | |
7583 | ||
7584 | ## CAVEAT EMPTOR: | |
7585 | ## There is no encapsulation within the following macros, do not change | |
7586 | ## the running order or otherwise move them around unless you know exactly | |
7587 | ## what you are doing... | |
7588 | if test -n "$compiler"; then | |
7589 | ||
7590 | lt_prog_compiler_no_builtin_flag= | |
7591 | ||
7592 | if test "$GCC" = yes; then | |
43e02a8a RW |
7593 | case $cc_basename in |
7594 | nvcc*) | |
7595 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7596 | *) | |
7597 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7598 | esac | |
1cf3d07d | 7599 | |
5213506e RW |
7600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7601 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7602 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
7603 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
7604 | else |
7605 | lt_cv_prog_compiler_rtti_exceptions=no | |
7606 | ac_outfile=conftest.$ac_objext | |
7607 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7608 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7609 | # Insert the option either (1) after the last *FLAGS variable, or | |
7610 | # (2) before a word containing "conftest.", or (3) at the end. | |
7611 | # Note that $ac_compile itself does not contain backslashes and begins | |
7612 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7613 | # The option is referenced via a variable to avoid confusing sed. | |
7614 | lt_compile=`echo "$ac_compile" | $SED \ | |
7615 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7616 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7617 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 7618 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
7619 | (eval "$lt_compile" 2>conftest.err) |
7620 | ac_status=$? | |
7621 | cat conftest.err >&5 | |
43e02a8a | 7622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
7623 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7624 | # The compiler can only warn and ignore the option if not recognized | |
7625 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 7626 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
7627 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7628 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7629 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7630 | fi | |
7631 | fi | |
7632 | $RM conftest* | |
7633 | ||
7634 | fi | |
5213506e RW |
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7636 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
7637 | |
7638 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7639 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7640 | else | |
7641 | : | |
7642 | fi | |
7643 | ||
7644 | fi | |
7645 | ||
7646 | ||
7647 | ||
7648 | ||
7649 | ||
7650 | ||
7651 | lt_prog_compiler_wl= | |
7652 | lt_prog_compiler_pic= | |
7653 | lt_prog_compiler_static= | |
7654 | ||
5213506e RW |
7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
7656 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
7657 | |
7658 | if test "$GCC" = yes; then | |
7659 | lt_prog_compiler_wl='-Wl,' | |
7660 | lt_prog_compiler_static='-static' | |
7661 | ||
7662 | case $host_os in | |
7663 | aix*) | |
7664 | # All AIX code is PIC. | |
7665 | if test "$host_cpu" = ia64; then | |
7666 | # AIX 5 now supports IA64 processor | |
7667 | lt_prog_compiler_static='-Bstatic' | |
7668 | fi | |
7669 | ;; | |
7670 | ||
7671 | amigaos*) | |
77a3eb61 PG |
7672 | case $host_cpu in |
7673 | powerpc) | |
7674 | # see comment about AmigaOS4 .so support | |
7675 | lt_prog_compiler_pic='-fPIC' | |
7676 | ;; | |
7677 | m68k) | |
7678 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7679 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7680 | # like `-m68040'. | |
7681 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7682 | ;; | |
7683 | esac | |
1cf3d07d SE |
7684 | ;; |
7685 | ||
7686 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7687 | # PIC is the default for these OSes. | |
7688 | ;; | |
7689 | ||
77a3eb61 | 7690 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
7691 | # This hack is so that the source file can tell whether it is being |
7692 | # built for inclusion in a dll (and should export symbols for example). | |
7693 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7694 | # (--disable-auto-import) libraries | |
7695 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7696 | ;; | |
7697 | ||
7698 | darwin* | rhapsody*) | |
7699 | # PIC is the default on this platform | |
7700 | # Common symbols not allowed in MH_DYLIB files | |
7701 | lt_prog_compiler_pic='-fno-common' | |
7702 | ;; | |
7703 | ||
43e02a8a RW |
7704 | haiku*) |
7705 | # PIC is the default for Haiku. | |
7706 | # The "-static" flag exists, but is broken. | |
7707 | lt_prog_compiler_static= | |
7708 | ;; | |
7709 | ||
1cf3d07d | 7710 | hpux*) |
77a3eb61 PG |
7711 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
7712 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7713 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 7714 | case $host_cpu in |
77a3eb61 | 7715 | hppa*64*) |
1cf3d07d SE |
7716 | # +Z the default |
7717 | ;; | |
7718 | *) | |
7719 | lt_prog_compiler_pic='-fPIC' | |
7720 | ;; | |
7721 | esac | |
7722 | ;; | |
7723 | ||
7724 | interix[3-9]*) | |
7725 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7726 | # Instead, we relocate shared libraries at runtime. | |
7727 | ;; | |
7728 | ||
7729 | msdosdjgpp*) | |
7730 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7731 | # on systems that don't support them. | |
7732 | lt_prog_compiler_can_build_shared=no | |
7733 | enable_shared=no | |
7734 | ;; | |
7735 | ||
7736 | *nto* | *qnx*) | |
7737 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7738 | # it will coredump. | |
7739 | lt_prog_compiler_pic='-fPIC -shared' | |
7740 | ;; | |
7741 | ||
7742 | sysv4*MP*) | |
7743 | if test -d /usr/nec; then | |
7744 | lt_prog_compiler_pic=-Kconform_pic | |
7745 | fi | |
7746 | ;; | |
7747 | ||
7748 | *) | |
7749 | lt_prog_compiler_pic='-fPIC' | |
7750 | ;; | |
7751 | esac | |
43e02a8a RW |
7752 | |
7753 | case $cc_basename in | |
7754 | nvcc*) # Cuda Compiler Driver 2.2 | |
7755 | lt_prog_compiler_wl='-Xlinker ' | |
7756 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
7757 | ;; | |
7758 | esac | |
1cf3d07d SE |
7759 | else |
7760 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7761 | case $host_os in | |
7762 | aix*) | |
7763 | lt_prog_compiler_wl='-Wl,' | |
7764 | if test "$host_cpu" = ia64; then | |
7765 | # AIX 5 now supports IA64 processor | |
7766 | lt_prog_compiler_static='-Bstatic' | |
7767 | else | |
7768 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7769 | fi | |
7770 | ;; | |
1cf3d07d | 7771 | |
77a3eb61 | 7772 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
7773 | # This hack is so that the source file can tell whether it is being |
7774 | # built for inclusion in a dll (and should export symbols for example). | |
7775 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7776 | ;; | |
7777 | ||
7778 | hpux9* | hpux10* | hpux11*) | |
7779 | lt_prog_compiler_wl='-Wl,' | |
7780 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7781 | # not for PA HP-UX. | |
7782 | case $host_cpu in | |
7783 | hppa*64*|ia64*) | |
7784 | # +Z the default | |
7785 | ;; | |
7786 | *) | |
7787 | lt_prog_compiler_pic='+Z' | |
7788 | ;; | |
7789 | esac | |
7790 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7791 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7792 | ;; | |
7793 | ||
7794 | irix5* | irix6* | nonstopux*) | |
7795 | lt_prog_compiler_wl='-Wl,' | |
7796 | # PIC (with -KPIC) is the default. | |
7797 | lt_prog_compiler_static='-non_shared' | |
7798 | ;; | |
7799 | ||
7a9d3fe8 | 7800 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 7801 | case $cc_basename in |
77a3eb61 PG |
7802 | # old Intel for x86_64 which still supported -KPIC. |
7803 | ecc*) | |
1cf3d07d SE |
7804 | lt_prog_compiler_wl='-Wl,' |
7805 | lt_prog_compiler_pic='-KPIC' | |
7806 | lt_prog_compiler_static='-static' | |
7807 | ;; | |
77a3eb61 PG |
7808 | # icc used to be incompatible with GCC. |
7809 | # ICC 10 doesn't accept -KPIC any more. | |
7810 | icc* | ifort*) | |
7811 | lt_prog_compiler_wl='-Wl,' | |
7812 | lt_prog_compiler_pic='-fPIC' | |
7813 | lt_prog_compiler_static='-static' | |
7814 | ;; | |
7815 | # Lahey Fortran 8.1. | |
7816 | lf95*) | |
7817 | lt_prog_compiler_wl='-Wl,' | |
7818 | lt_prog_compiler_pic='--shared' | |
7819 | lt_prog_compiler_static='--static' | |
7820 | ;; | |
43e02a8a | 7821 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
7822 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7823 | # which looks to be a dead project) | |
7824 | lt_prog_compiler_wl='-Wl,' | |
7825 | lt_prog_compiler_pic='-fpic' | |
7826 | lt_prog_compiler_static='-Bstatic' | |
7827 | ;; | |
7828 | ccc*) | |
7829 | lt_prog_compiler_wl='-Wl,' | |
7830 | # All Alpha code is PIC. | |
7831 | lt_prog_compiler_static='-non_shared' | |
7832 | ;; | |
43e02a8a RW |
7833 | xl* | bgxl* | bgf* | mpixl*) |
7834 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
77a3eb61 PG |
7835 | lt_prog_compiler_wl='-Wl,' |
7836 | lt_prog_compiler_pic='-qpic' | |
7837 | lt_prog_compiler_static='-qstaticlink' | |
7838 | ;; | |
1cf3d07d SE |
7839 | *) |
7840 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
7841 | *Sun\ F* | *Sun*Fortran*) |
7842 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
7843 | lt_prog_compiler_pic='-KPIC' |
7844 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 7845 | lt_prog_compiler_wl='' |
1cf3d07d | 7846 | ;; |
43e02a8a RW |
7847 | *Sun\ C*) |
7848 | # Sun C 5.9 | |
1cf3d07d SE |
7849 | lt_prog_compiler_pic='-KPIC' |
7850 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 7851 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
7852 | ;; |
7853 | esac | |
7854 | ;; | |
7855 | esac | |
7856 | ;; | |
7857 | ||
7858 | newsos6) | |
7859 | lt_prog_compiler_pic='-KPIC' | |
7860 | lt_prog_compiler_static='-Bstatic' | |
7861 | ;; | |
7862 | ||
7863 | *nto* | *qnx*) | |
7864 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7865 | # it will coredump. | |
7866 | lt_prog_compiler_pic='-fPIC -shared' | |
7867 | ;; | |
7868 | ||
7869 | osf3* | osf4* | osf5*) | |
7870 | lt_prog_compiler_wl='-Wl,' | |
7871 | # All OSF/1 code is PIC. | |
7872 | lt_prog_compiler_static='-non_shared' | |
7873 | ;; | |
7874 | ||
7875 | rdos*) | |
7876 | lt_prog_compiler_static='-non_shared' | |
7877 | ;; | |
7878 | ||
7879 | solaris*) | |
7880 | lt_prog_compiler_pic='-KPIC' | |
7881 | lt_prog_compiler_static='-Bstatic' | |
7882 | case $cc_basename in | |
7883 | f77* | f90* | f95*) | |
7884 | lt_prog_compiler_wl='-Qoption ld ';; | |
7885 | *) | |
7886 | lt_prog_compiler_wl='-Wl,';; | |
7887 | esac | |
7888 | ;; | |
7889 | ||
7890 | sunos4*) | |
7891 | lt_prog_compiler_wl='-Qoption ld ' | |
7892 | lt_prog_compiler_pic='-PIC' | |
7893 | lt_prog_compiler_static='-Bstatic' | |
7894 | ;; | |
7895 | ||
7896 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7897 | lt_prog_compiler_wl='-Wl,' | |
7898 | lt_prog_compiler_pic='-KPIC' | |
7899 | lt_prog_compiler_static='-Bstatic' | |
7900 | ;; | |
7901 | ||
7902 | sysv4*MP*) | |
7903 | if test -d /usr/nec ;then | |
7904 | lt_prog_compiler_pic='-Kconform_pic' | |
7905 | lt_prog_compiler_static='-Bstatic' | |
7906 | fi | |
7907 | ;; | |
7908 | ||
7909 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7910 | lt_prog_compiler_wl='-Wl,' | |
7911 | lt_prog_compiler_pic='-KPIC' | |
7912 | lt_prog_compiler_static='-Bstatic' | |
7913 | ;; | |
7914 | ||
7915 | unicos*) | |
7916 | lt_prog_compiler_wl='-Wl,' | |
7917 | lt_prog_compiler_can_build_shared=no | |
7918 | ;; | |
7919 | ||
7920 | uts4*) | |
7921 | lt_prog_compiler_pic='-pic' | |
7922 | lt_prog_compiler_static='-Bstatic' | |
7923 | ;; | |
7924 | ||
7925 | *) | |
7926 | lt_prog_compiler_can_build_shared=no | |
7927 | ;; | |
7928 | esac | |
7929 | fi | |
7930 | ||
7931 | case $host_os in | |
7932 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7933 | *djgpp*) | |
7934 | lt_prog_compiler_pic= | |
7935 | ;; | |
7936 | *) | |
7937 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7938 | ;; | |
7939 | esac | |
5213506e RW |
7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
7941 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
7942 | |
7943 | ||
7944 | ||
7945 | ||
7946 | ||
7947 | ||
7948 | # | |
7949 | # Check to make sure the PIC flag actually works. | |
7950 | # | |
7951 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7953 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7954 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7955 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 7956 | else |
77a3eb61 | 7957 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
7958 | ac_outfile=conftest.$ac_objext |
7959 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7960 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7961 | # Insert the option either (1) after the last *FLAGS variable, or | |
7962 | # (2) before a word containing "conftest.", or (3) at the end. | |
7963 | # Note that $ac_compile itself does not contain backslashes and begins | |
7964 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7965 | # The option is referenced via a variable to avoid confusing sed. | |
7966 | lt_compile=`echo "$ac_compile" | $SED \ | |
7967 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7968 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7969 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 7970 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
7971 | (eval "$lt_compile" 2>conftest.err) |
7972 | ac_status=$? | |
7973 | cat conftest.err >&5 | |
43e02a8a | 7974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
7975 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7976 | # The compiler can only warn and ignore the option if not recognized | |
7977 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 7978 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
7979 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7980 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
77a3eb61 | 7981 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
7982 | fi |
7983 | fi | |
7984 | $RM conftest* | |
7985 | ||
7986 | fi | |
5213506e RW |
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
7988 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 7989 | |
77a3eb61 | 7990 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
7991 | case $lt_prog_compiler_pic in |
7992 | "" | " "*) ;; | |
7993 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7994 | esac | |
7995 | else | |
7996 | lt_prog_compiler_pic= | |
7997 | lt_prog_compiler_can_build_shared=no | |
7998 | fi | |
7999 | ||
8000 | fi | |
8001 | ||
8002 | ||
8003 | ||
8004 | ||
8005 | ||
8006 | ||
8007 | # | |
8008 | # Check to make sure the static flag actually works. | |
8009 | # | |
8010 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8012 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8013 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8014 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 8015 | else |
77a3eb61 | 8016 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
8017 | save_LDFLAGS="$LDFLAGS" |
8018 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8019 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8020 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8021 | # The linker can only warn and ignore the option if not recognized | |
8022 | # So say no if there are warnings | |
8023 | if test -s conftest.err; then | |
8024 | # Append any errors to the config.log. | |
8025 | cat conftest.err 1>&5 | |
43e02a8a | 8026 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
8027 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8028 | if diff conftest.exp conftest.er2 >/dev/null; then | |
77a3eb61 | 8029 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8030 | fi |
8031 | else | |
77a3eb61 | 8032 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8033 | fi |
8034 | fi | |
77a3eb61 | 8035 | $RM -r conftest* |
1cf3d07d SE |
8036 | LDFLAGS="$save_LDFLAGS" |
8037 | ||
8038 | fi | |
5213506e RW |
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8040 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 8041 | |
77a3eb61 | 8042 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
8043 | : |
8044 | else | |
8045 | lt_prog_compiler_static= | |
8046 | fi | |
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | ||
5213506e RW |
8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8055 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8056 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8057 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
8058 | else |
8059 | lt_cv_prog_compiler_c_o=no | |
8060 | $RM -r conftest 2>/dev/null | |
8061 | mkdir conftest | |
8062 | cd conftest | |
8063 | mkdir out | |
8064 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8065 | ||
8066 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8067 | # Insert the option either (1) after the last *FLAGS variable, or | |
8068 | # (2) before a word containing "conftest.", or (3) at the end. | |
8069 | # Note that $ac_compile itself does not contain backslashes and begins | |
8070 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8071 | lt_compile=`echo "$ac_compile" | $SED \ | |
8072 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8073 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8074 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8075 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8076 | (eval "$lt_compile" 2>out/conftest.err) |
8077 | ac_status=$? | |
8078 | cat out/conftest.err >&5 | |
43e02a8a | 8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8080 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8081 | then | |
8082 | # The compiler can only warn and ignore the option if not recognized | |
8083 | # So say no if there are warnings | |
43e02a8a | 8084 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
8085 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8086 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8087 | lt_cv_prog_compiler_c_o=yes | |
8088 | fi | |
8089 | fi | |
8090 | chmod u+w . 2>&5 | |
8091 | $RM conftest* | |
8092 | # SGI C++ compiler will create directory out/ii_files/ for | |
8093 | # template instantiation | |
8094 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8095 | $RM out/* && rmdir out | |
8096 | cd .. | |
8097 | $RM -r conftest | |
8098 | $RM conftest* | |
8099 | ||
8100 | fi | |
5213506e RW |
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8102 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8103 | |
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | ||
5213506e RW |
8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8110 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8111 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8112 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
8113 | else |
8114 | lt_cv_prog_compiler_c_o=no | |
8115 | $RM -r conftest 2>/dev/null | |
8116 | mkdir conftest | |
8117 | cd conftest | |
8118 | mkdir out | |
8119 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8120 | ||
8121 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8122 | # Insert the option either (1) after the last *FLAGS variable, or | |
8123 | # (2) before a word containing "conftest.", or (3) at the end. | |
8124 | # Note that $ac_compile itself does not contain backslashes and begins | |
8125 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8126 | lt_compile=`echo "$ac_compile" | $SED \ | |
8127 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8128 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8129 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8130 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8131 | (eval "$lt_compile" 2>out/conftest.err) |
8132 | ac_status=$? | |
8133 | cat out/conftest.err >&5 | |
43e02a8a | 8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8135 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8136 | then | |
8137 | # The compiler can only warn and ignore the option if not recognized | |
8138 | # So say no if there are warnings | |
43e02a8a | 8139 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
8140 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8141 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8142 | lt_cv_prog_compiler_c_o=yes | |
8143 | fi | |
8144 | fi | |
8145 | chmod u+w . 2>&5 | |
8146 | $RM conftest* | |
8147 | # SGI C++ compiler will create directory out/ii_files/ for | |
8148 | # template instantiation | |
8149 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8150 | $RM out/* && rmdir out | |
8151 | cd .. | |
8152 | $RM -r conftest | |
8153 | $RM conftest* | |
8154 | ||
8155 | fi | |
5213506e RW |
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8157 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8158 | |
8159 | ||
8160 | ||
8161 | ||
8162 | hard_links="nottested" | |
8163 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8164 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8166 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
8167 | hard_links=yes |
8168 | $RM conftest* | |
8169 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8170 | touch conftest.a | |
8171 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8172 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8174 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 8175 | if test "$hard_links" = no; then |
5213506e RW |
8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8177 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
8178 | need_locks=warn |
8179 | fi | |
8180 | else | |
8181 | need_locks=no | |
8182 | fi | |
8183 | ||
8184 | ||
8185 | ||
8186 | ||
8187 | ||
8188 | ||
5213506e RW |
8189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8190 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
8191 | |
8192 | runpath_var= | |
8193 | allow_undefined_flag= | |
8194 | always_export_symbols=no | |
8195 | archive_cmds= | |
8196 | archive_expsym_cmds= | |
8197 | compiler_needs_object=no | |
8198 | enable_shared_with_static_runtimes=no | |
8199 | export_dynamic_flag_spec= | |
8200 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8201 | hardcode_automatic=no | |
8202 | hardcode_direct=no | |
8203 | hardcode_direct_absolute=no | |
8204 | hardcode_libdir_flag_spec= | |
8205 | hardcode_libdir_flag_spec_ld= | |
8206 | hardcode_libdir_separator= | |
8207 | hardcode_minus_L=no | |
8208 | hardcode_shlibpath_var=unsupported | |
8209 | inherit_rpath=no | |
8210 | link_all_deplibs=unknown | |
8211 | module_cmds= | |
8212 | module_expsym_cmds= | |
8213 | old_archive_from_new_cmds= | |
8214 | old_archive_from_expsyms_cmds= | |
8215 | thread_safe_flag_spec= | |
8216 | whole_archive_flag_spec= | |
8217 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8218 | # included in the symbol list | |
8219 | include_expsyms= | |
8220 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8221 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8222 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8223 | # as well as any symbol that contains `d'. | |
77a3eb61 | 8224 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
8225 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8226 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8227 | # the symbol is explicitly referenced. Since portable code cannot | |
8228 | # rely on this symbol name, it's probably fine to never include it in | |
8229 | # preloaded symbol tables. | |
77a3eb61 | 8230 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
8231 | extract_expsyms_cmds= |
8232 | ||
8233 | case $host_os in | |
77a3eb61 | 8234 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8235 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8236 | # When not using gcc, we currently assume that we are using | |
8237 | # Microsoft Visual C++. | |
8238 | if test "$GCC" != yes; then | |
8239 | with_gnu_ld=no | |
8240 | fi | |
8241 | ;; | |
8242 | interix*) | |
8243 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8244 | with_gnu_ld=yes | |
8245 | ;; | |
8246 | openbsd*) | |
8247 | with_gnu_ld=no | |
8248 | ;; | |
8249 | esac | |
8250 | ||
8251 | ld_shlibs=yes | |
43e02a8a RW |
8252 | |
8253 | # On some targets, GNU ld is compatible enough with the native linker | |
8254 | # that we're better off using the native interface for both. | |
8255 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 8256 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
8257 | case $host_os in |
8258 | aix*) | |
8259 | # The AIX port of GNU ld has always aspired to compatibility | |
8260 | # with the native linker. However, as the warning in the GNU ld | |
8261 | # block says, versions before 2.19.5* couldn't really create working | |
8262 | # shared libraries, regardless of the interface used. | |
8263 | case `$LD -v 2>&1` in | |
8264 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8265 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8266 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8267 | *) | |
8268 | lt_use_gnu_ld_interface=yes | |
8269 | ;; | |
8270 | esac | |
8271 | ;; | |
8272 | *) | |
8273 | lt_use_gnu_ld_interface=yes | |
8274 | ;; | |
8275 | esac | |
8276 | fi | |
8277 | ||
8278 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
8279 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8280 | wlarc='${wl}' | |
8281 | ||
8282 | # Set some defaults for GNU ld with shared library support. These | |
8283 | # are reset later if shared libraries are not supported. Putting them | |
8284 | # here allows them to be overridden if necessary. | |
8285 | runpath_var=LD_RUN_PATH | |
8286 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8287 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8288 | # ancient GNU ld didn't support --whole-archive et. al. | |
8289 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8290 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8291 | else | |
8292 | whole_archive_flag_spec= | |
8293 | fi | |
8294 | supports_anon_versioning=no | |
8295 | case `$LD -v 2>&1` in | |
43e02a8a | 8296 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
8297 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8298 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8299 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8300 | *\ 2.11.*) ;; # other 2.11 versions | |
8301 | *) supports_anon_versioning=yes ;; | |
8302 | esac | |
8303 | ||
8304 | # See if GNU ld supports shared libraries. | |
8305 | case $host_os in | |
445bad9b | 8306 | aix[3-9]*) |
1cf3d07d SE |
8307 | # On AIX/PPC, the GNU linker is very broken |
8308 | if test "$host_cpu" != ia64; then | |
8309 | ld_shlibs=no | |
8310 | cat <<_LT_EOF 1>&2 | |
8311 | ||
43e02a8a | 8312 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
8313 | *** to be unable to reliably create shared libraries on AIX. |
8314 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
8315 | *** really care for shared libraries, you may want to install binutils |
8316 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8317 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
8318 | |
8319 | _LT_EOF | |
8320 | fi | |
8321 | ;; | |
8322 | ||
8323 | amigaos*) | |
77a3eb61 PG |
8324 | case $host_cpu in |
8325 | powerpc) | |
8326 | # see comment about AmigaOS4 .so support | |
8327 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8328 | archive_expsym_cmds='' | |
8329 | ;; | |
8330 | m68k) | |
8331 | 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)' | |
8332 | hardcode_libdir_flag_spec='-L$libdir' | |
8333 | hardcode_minus_L=yes | |
8334 | ;; | |
8335 | esac | |
1cf3d07d SE |
8336 | ;; |
8337 | ||
8338 | beos*) | |
8339 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8340 | allow_undefined_flag=unsupported | |
8341 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8342 | # support --undefined. This deserves some investigation. FIXME | |
8343 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8344 | else | |
8345 | ld_shlibs=no | |
8346 | fi | |
8347 | ;; | |
8348 | ||
77a3eb61 | 8349 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8350 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8351 | # as there is no search path for DLLs. | |
8352 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 8353 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
8354 | allow_undefined_flag=unsupported |
8355 | always_export_symbols=no | |
8356 | enable_shared_with_static_runtimes=yes | |
8357 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8358 | ||
8359 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8360 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8361 | # If the export-symbols file already is a .def file (1st line | |
8362 | # is EXPORTS), use it as is; otherwise, prepend... | |
8363 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8364 | cp $export_symbols $output_objdir/$soname.def; | |
8365 | else | |
8366 | echo EXPORTS > $output_objdir/$soname.def; | |
8367 | cat $export_symbols >> $output_objdir/$soname.def; | |
8368 | fi~ | |
8369 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8370 | else | |
8371 | ld_shlibs=no | |
8372 | fi | |
8373 | ;; | |
8374 | ||
43e02a8a RW |
8375 | haiku*) |
8376 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8377 | link_all_deplibs=yes | |
8378 | ;; | |
8379 | ||
1cf3d07d SE |
8380 | interix[3-9]*) |
8381 | hardcode_direct=no | |
8382 | hardcode_shlibpath_var=no | |
8383 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8384 | export_dynamic_flag_spec='${wl}-E' | |
8385 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8386 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8387 | # default) and relocated if they conflict, which is a slow very memory | |
8388 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8389 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8390 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8391 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8392 | 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' | |
8393 | ;; | |
8394 | ||
7a9d3fe8 | 8395 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
8396 | tmp_diet=no |
8397 | if test "$host_os" = linux-dietlibc; then | |
8398 | case $cc_basename in | |
8399 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8400 | esac | |
8401 | fi | |
8402 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8403 | && test "$tmp_diet" = no | |
8404 | then | |
8405 | tmp_addflag= | |
77a3eb61 | 8406 | tmp_sharedflag='-shared' |
1cf3d07d SE |
8407 | case $cc_basename,$host_cpu in |
8408 | pgcc*) # Portland Group C compiler | |
43e02a8a | 8409 | 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' |
1cf3d07d SE |
8410 | tmp_addflag=' $pic_flag' |
8411 | ;; | |
43e02a8a RW |
8412 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8413 | # Portland Group f77 and f90 compilers | |
8414 | 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' | |
1cf3d07d SE |
8415 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8416 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8417 | tmp_addflag=' -i_dynamic' ;; | |
8418 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8419 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8420 | ifc* | ifort*) # Intel Fortran compiler | |
8421 | tmp_addflag=' -nofor_main' ;; | |
77a3eb61 PG |
8422 | lf95*) # Lahey Fortran 8.1 |
8423 | whole_archive_flag_spec= | |
8424 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 8425 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
77a3eb61 PG |
8426 | tmp_sharedflag='-qmkshrobj' |
8427 | tmp_addflag= ;; | |
43e02a8a RW |
8428 | nvcc*) # Cuda Compiler Driver 2.2 |
8429 | 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' | |
8430 | compiler_needs_object=yes | |
8431 | ;; | |
1cf3d07d SE |
8432 | esac |
8433 | case `$CC -V 2>&1 | sed 5q` in | |
8434 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 8435 | 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' |
1cf3d07d SE |
8436 | compiler_needs_object=yes |
8437 | tmp_sharedflag='-G' ;; | |
8438 | *Sun\ F*) # Sun Fortran 8.3 | |
8439 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
8440 | esac |
8441 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8442 | ||
8443 | if test "x$supports_anon_versioning" = xyes; then | |
8444 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8445 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8446 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8447 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8448 | fi | |
77a3eb61 PG |
8449 | |
8450 | case $cc_basename in | |
43e02a8a | 8451 | xlf* | bgf* | bgxlf* | mpixlf*) |
77a3eb61 PG |
8452 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8453 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8454 | hardcode_libdir_flag_spec= | |
8455 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8456 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8457 | if test "x$supports_anon_versioning" = xyes; then | |
8458 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8459 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8460 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8461 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8462 | fi | |
8463 | ;; | |
8464 | esac | |
1cf3d07d SE |
8465 | else |
8466 | ld_shlibs=no | |
8467 | fi | |
8468 | ;; | |
8469 | ||
8470 | netbsd*) | |
8471 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8472 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8473 | wlarc= | |
8474 | else | |
8475 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8476 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8477 | fi | |
8478 | ;; | |
8479 | ||
8480 | solaris*) | |
8481 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8482 | ld_shlibs=no | |
8483 | cat <<_LT_EOF 1>&2 | |
8484 | ||
8485 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8486 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8487 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8488 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8489 | *** your PATH or compiler configuration so that the native linker is | |
8490 | *** used, and then restart. | |
8491 | ||
8492 | _LT_EOF | |
8493 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8494 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8495 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8496 | else | |
8497 | ld_shlibs=no | |
8498 | fi | |
8499 | ;; | |
8500 | ||
8501 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8502 | case `$LD -v 2>&1` in | |
8503 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8504 | ld_shlibs=no | |
8505 | cat <<_LT_EOF 1>&2 | |
8506 | ||
8507 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8508 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8509 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8510 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8511 | *** your PATH or compiler configuration so that the native linker is | |
8512 | *** used, and then restart. | |
8513 | ||
8514 | _LT_EOF | |
8515 | ;; | |
8516 | *) | |
8517 | # For security reasons, it is highly recommended that you always | |
8518 | # use absolute paths for naming shared libraries, and exclude the | |
8519 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8520 | # requires that you compile everything twice, which is a pain. | |
8521 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8522 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8523 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8524 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8525 | else | |
8526 | ld_shlibs=no | |
8527 | fi | |
8528 | ;; | |
8529 | esac | |
8530 | ;; | |
8531 | ||
8532 | sunos4*) | |
8533 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8534 | wlarc= | |
8535 | hardcode_direct=yes | |
8536 | hardcode_shlibpath_var=no | |
8537 | ;; | |
8538 | ||
8539 | *) | |
8540 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8541 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8542 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8543 | else | |
8544 | ld_shlibs=no | |
8545 | fi | |
8546 | ;; | |
8547 | esac | |
8548 | ||
8549 | if test "$ld_shlibs" = no; then | |
8550 | runpath_var= | |
8551 | hardcode_libdir_flag_spec= | |
8552 | export_dynamic_flag_spec= | |
8553 | whole_archive_flag_spec= | |
8554 | fi | |
8555 | else | |
8556 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8557 | case $host_os in | |
8558 | aix3*) | |
8559 | allow_undefined_flag=unsupported | |
8560 | always_export_symbols=yes | |
8561 | 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' | |
8562 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8563 | # are no directories specified by -L. | |
8564 | hardcode_minus_L=yes | |
8565 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8566 | # Neither direct hardcoding nor static linking is supported with a | |
8567 | # broken collect2. | |
8568 | hardcode_direct=unsupported | |
8569 | fi | |
8570 | ;; | |
8571 | ||
445bad9b | 8572 | aix[4-9]*) |
1cf3d07d SE |
8573 | if test "$host_cpu" = ia64; then |
8574 | # On IA64, the linker does run time linking by default, so we don't | |
8575 | # have to do anything special. | |
8576 | aix_use_runtimelinking=no | |
8577 | exp_sym_flag='-Bexport' | |
8578 | no_entry_flag="" | |
8579 | else | |
8580 | # If we're using GNU nm, then we don't want the "-C" option. | |
8581 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
8582 | # Also, AIX nm treats weak defined symbols like other global |
8583 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 8584 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 8585 | 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' |
1cf3d07d SE |
8586 | else |
8587 | 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' | |
8588 | fi | |
8589 | aix_use_runtimelinking=no | |
8590 | ||
8591 | # Test if we are trying to use run time linking or normal | |
8592 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8593 | # need to do runtime linking. | |
445bad9b | 8594 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
8595 | for ld_flag in $LDFLAGS; do |
8596 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8597 | aix_use_runtimelinking=yes | |
8598 | break | |
8599 | fi | |
8600 | done | |
8601 | ;; | |
8602 | esac | |
8603 | ||
8604 | exp_sym_flag='-bexport' | |
8605 | no_entry_flag='-bnoentry' | |
8606 | fi | |
8607 | ||
8608 | # When large executables or shared objects are built, AIX ld can | |
8609 | # have problems creating the table of contents. If linking a library | |
8610 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8611 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8612 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8613 | ||
8614 | archive_cmds='' | |
8615 | hardcode_direct=yes | |
8616 | hardcode_direct_absolute=yes | |
8617 | hardcode_libdir_separator=':' | |
8618 | link_all_deplibs=yes | |
8619 | file_list_spec='${wl}-f,' | |
8620 | ||
8621 | if test "$GCC" = yes; then | |
8622 | case $host_os in aix4.[012]|aix4.[012].*) | |
8623 | # We only want to do this on AIX 4.2 and lower, the check | |
8624 | # below for broken collect2 doesn't work under 4.3+ | |
8625 | collect2name=`${CC} -print-prog-name=collect2` | |
8626 | if test -f "$collect2name" && | |
8627 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8628 | then | |
8629 | # We have reworked collect2 | |
8630 | : | |
8631 | else | |
8632 | # We have old collect2 | |
8633 | hardcode_direct=unsupported | |
8634 | # It fails to find uninstalled libraries when the uninstalled | |
8635 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8636 | # to unsupported forces relinking | |
8637 | hardcode_minus_L=yes | |
8638 | hardcode_libdir_flag_spec='-L$libdir' | |
8639 | hardcode_libdir_separator= | |
8640 | fi | |
8641 | ;; | |
8642 | esac | |
8643 | shared_flag='-shared' | |
8644 | if test "$aix_use_runtimelinking" = yes; then | |
8645 | shared_flag="$shared_flag "'${wl}-G' | |
8646 | fi | |
8647 | else | |
8648 | # not using gcc | |
8649 | if test "$host_cpu" = ia64; then | |
8650 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8651 | # chokes on -Wl,-G. The following line is correct: | |
8652 | shared_flag='-G' | |
8653 | else | |
8654 | if test "$aix_use_runtimelinking" = yes; then | |
8655 | shared_flag='${wl}-G' | |
8656 | else | |
8657 | shared_flag='${wl}-bM:SRE' | |
8658 | fi | |
8659 | fi | |
8660 | fi | |
8661 | ||
77a3eb61 | 8662 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
8663 | # It seems that -bexpall does not export symbols beginning with |
8664 | # underscore (_), so it is better to generate a list of symbols to export. | |
8665 | always_export_symbols=yes | |
8666 | if test "$aix_use_runtimelinking" = yes; then | |
8667 | # Warning - without using the other runtime loading flags (-brtl), | |
8668 | # -berok will link without error, but may produce a broken library. | |
8669 | allow_undefined_flag='-berok' | |
8670 | # Determine the default libpath from the value encoded in an | |
8671 | # empty executable. | |
8672 | if test x$gcc_no_link = xyes; then | |
5213506e | 8673 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 8674 | fi |
5213506e | 8675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
8676 | /* end confdefs.h. */ |
8677 | ||
8678 | int | |
8679 | main () | |
8680 | { | |
8681 | ||
8682 | ; | |
8683 | return 0; | |
8684 | } | |
8685 | _ACEOF | |
5213506e | 8686 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
8687 | |
8688 | lt_aix_libpath_sed=' | |
8689 | /Import File Strings/,/^$/ { | |
8690 | /^0/ { | |
8691 | s/^0 *\(.*\)$/\1/ | |
8692 | p | |
8693 | } | |
8694 | }' | |
8695 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8696 | # Check for a 64-bit object if we didn't find anything. | |
8697 | if test -z "$aix_libpath"; then | |
8698 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8699 | fi | |
1cf3d07d | 8700 | fi |
5213506e RW |
8701 | rm -f core conftest.err conftest.$ac_objext \ |
8702 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
8703 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8704 | ||
8705 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 8706 | 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" |
1cf3d07d SE |
8707 | else |
8708 | if test "$host_cpu" = ia64; then | |
8709 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8710 | allow_undefined_flag="-z nodefs" | |
8711 | 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" | |
8712 | else | |
8713 | # Determine the default libpath from the value encoded in an | |
8714 | # empty executable. | |
8715 | if test x$gcc_no_link = xyes; then | |
5213506e | 8716 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 8717 | fi |
5213506e | 8718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
8719 | /* end confdefs.h. */ |
8720 | ||
8721 | int | |
8722 | main () | |
8723 | { | |
8724 | ||
8725 | ; | |
8726 | return 0; | |
8727 | } | |
8728 | _ACEOF | |
5213506e | 8729 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
8730 | |
8731 | lt_aix_libpath_sed=' | |
8732 | /Import File Strings/,/^$/ { | |
8733 | /^0/ { | |
8734 | s/^0 *\(.*\)$/\1/ | |
8735 | p | |
8736 | } | |
8737 | }' | |
8738 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8739 | # Check for a 64-bit object if we didn't find anything. | |
8740 | if test -z "$aix_libpath"; then | |
8741 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8742 | fi | |
1cf3d07d | 8743 | fi |
5213506e RW |
8744 | rm -f core conftest.err conftest.$ac_objext \ |
8745 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
8746 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8747 | ||
8748 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8749 | # Warning - without using the other run time loading flags, | |
8750 | # -berok will link without error, but may produce a broken library. | |
8751 | no_undefined_flag=' ${wl}-bernotok' | |
8752 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
8753 | if test "$with_gnu_ld" = yes; then |
8754 | # We only use this code for GNU lds that support --whole-archive. | |
8755 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
8756 | else | |
8757 | # Exported symbols can be pulled into shared objects from archives | |
8758 | whole_archive_flag_spec='$convenience' | |
8759 | fi | |
1cf3d07d SE |
8760 | archive_cmds_need_lc=yes |
8761 | # This is similar to how AIX traditionally builds its shared libraries. | |
8762 | 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' | |
8763 | fi | |
8764 | fi | |
8765 | ;; | |
8766 | ||
8767 | amigaos*) | |
77a3eb61 PG |
8768 | case $host_cpu in |
8769 | powerpc) | |
8770 | # see comment about AmigaOS4 .so support | |
8771 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8772 | archive_expsym_cmds='' | |
8773 | ;; | |
8774 | m68k) | |
8775 | 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)' | |
8776 | hardcode_libdir_flag_spec='-L$libdir' | |
8777 | hardcode_minus_L=yes | |
8778 | ;; | |
8779 | esac | |
1cf3d07d SE |
8780 | ;; |
8781 | ||
8782 | bsdi[45]*) | |
8783 | export_dynamic_flag_spec=-rdynamic | |
8784 | ;; | |
8785 | ||
77a3eb61 | 8786 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8787 | # When not using gcc, we currently assume that we are using |
8788 | # Microsoft Visual C++. | |
8789 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8790 | # no search path for DLLs. | |
8791 | hardcode_libdir_flag_spec=' ' | |
8792 | allow_undefined_flag=unsupported | |
8793 | # Tell ltmain to make .lib files, not .a files. | |
8794 | libext=lib | |
8795 | # Tell ltmain to make .dll files, not .so files. | |
8796 | shrext_cmds=".dll" | |
8797 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 8798 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
8799 | # The linker will automatically build a .lib file if we build a DLL. |
8800 | old_archive_from_new_cmds='true' | |
8801 | # FIXME: Should let the user specify the lib program. | |
8802 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8803 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8804 | enable_shared_with_static_runtimes=yes | |
8805 | ;; | |
8806 | ||
8807 | darwin* | rhapsody*) | |
1cf3d07d | 8808 | |
77a3eb61 PG |
8809 | |
8810 | archive_cmds_need_lc=no | |
8811 | hardcode_direct=no | |
8812 | hardcode_automatic=yes | |
8813 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
8814 | if test "$lt_cv_ld_force_load" = "yes"; then |
8815 | 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\"`' | |
8816 | else | |
8817 | whole_archive_flag_spec='' | |
8818 | fi | |
77a3eb61 PG |
8819 | link_all_deplibs=yes |
8820 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8821 | case $cc_basename in | |
8822 | ifort*) _lt_dar_can_shared=yes ;; | |
8823 | *) _lt_dar_can_shared=$GCC ;; | |
8824 | esac | |
8825 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 8826 | output_verbose_link_cmd=func_echo_all |
77a3eb61 PG |
8827 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
8828 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8829 | 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}" | |
8830 | 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}" | |
8831 | ||
8832 | else | |
8833 | ld_shlibs=no | |
8834 | fi | |
8835 | ||
1cf3d07d SE |
8836 | ;; |
8837 | ||
8838 | dgux*) | |
8839 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8840 | hardcode_libdir_flag_spec='-L$libdir' | |
8841 | hardcode_shlibpath_var=no | |
8842 | ;; | |
8843 | ||
1cf3d07d SE |
8844 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8845 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8846 | # does not break anything, and helps significantly (at the cost of a little | |
8847 | # extra space). | |
8848 | freebsd2.2*) | |
8849 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8850 | hardcode_libdir_flag_spec='-R$libdir' | |
8851 | hardcode_direct=yes | |
8852 | hardcode_shlibpath_var=no | |
8853 | ;; | |
8854 | ||
8855 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8856 | freebsd2*) | |
8857 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8858 | hardcode_direct=yes | |
8859 | hardcode_minus_L=yes | |
8860 | hardcode_shlibpath_var=no | |
8861 | ;; | |
8862 | ||
8863 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8864 | freebsd* | dragonfly*) | |
8865 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8866 | hardcode_libdir_flag_spec='-R$libdir' | |
8867 | hardcode_direct=yes | |
8868 | hardcode_shlibpath_var=no | |
8869 | ;; | |
8870 | ||
8871 | hpux9*) | |
8872 | if test "$GCC" = yes; then | |
8873 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
8874 | else | |
8875 | 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' | |
8876 | fi | |
8877 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8878 | hardcode_libdir_separator=: | |
8879 | hardcode_direct=yes | |
8880 | ||
8881 | # hardcode_minus_L: Not really in the search PATH, | |
8882 | # but as the default location of the library. | |
8883 | hardcode_minus_L=yes | |
8884 | export_dynamic_flag_spec='${wl}-E' | |
8885 | ;; | |
8886 | ||
8887 | hpux10*) | |
43e02a8a | 8888 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
8889 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8890 | else | |
8891 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8892 | fi | |
8893 | if test "$with_gnu_ld" = no; then | |
8894 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8895 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8896 | hardcode_libdir_separator=: | |
8897 | hardcode_direct=yes | |
8898 | hardcode_direct_absolute=yes | |
8899 | export_dynamic_flag_spec='${wl}-E' | |
8900 | # hardcode_minus_L: Not really in the search PATH, | |
8901 | # but as the default location of the library. | |
8902 | hardcode_minus_L=yes | |
8903 | fi | |
8904 | ;; | |
8905 | ||
8906 | hpux11*) | |
43e02a8a | 8907 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
8908 | case $host_cpu in |
8909 | hppa*64*) | |
8910 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8911 | ;; | |
8912 | ia64*) | |
77a3eb61 | 8913 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
8914 | ;; |
8915 | *) | |
8916 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8917 | ;; | |
8918 | esac | |
8919 | else | |
8920 | case $host_cpu in | |
8921 | hppa*64*) | |
8922 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8923 | ;; | |
8924 | ia64*) | |
8925 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8926 | ;; | |
8927 | *) | |
43e02a8a RW |
8928 | |
8929 | # Older versions of the 11.00 compiler do not understand -b yet | |
8930 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
8932 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
8933 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
8934 | $as_echo_n "(cached) " >&6 | |
8935 | else | |
8936 | lt_cv_prog_compiler__b=no | |
8937 | save_LDFLAGS="$LDFLAGS" | |
8938 | LDFLAGS="$LDFLAGS -b" | |
8939 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8940 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8941 | # The linker can only warn and ignore the option if not recognized | |
8942 | # So say no if there are warnings | |
8943 | if test -s conftest.err; then | |
8944 | # Append any errors to the config.log. | |
8945 | cat conftest.err 1>&5 | |
8946 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8947 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8948 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8949 | lt_cv_prog_compiler__b=yes | |
8950 | fi | |
8951 | else | |
8952 | lt_cv_prog_compiler__b=yes | |
8953 | fi | |
8954 | fi | |
8955 | $RM -r conftest* | |
8956 | LDFLAGS="$save_LDFLAGS" | |
8957 | ||
8958 | fi | |
8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
8960 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
8961 | ||
8962 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
8963 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8964 | else | |
8965 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8966 | fi | |
8967 | ||
1cf3d07d SE |
8968 | ;; |
8969 | esac | |
8970 | fi | |
8971 | if test "$with_gnu_ld" = no; then | |
8972 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8973 | hardcode_libdir_separator=: | |
8974 | ||
8975 | case $host_cpu in | |
8976 | hppa*64*|ia64*) | |
8977 | hardcode_direct=no | |
8978 | hardcode_shlibpath_var=no | |
8979 | ;; | |
8980 | *) | |
8981 | hardcode_direct=yes | |
8982 | hardcode_direct_absolute=yes | |
8983 | export_dynamic_flag_spec='${wl}-E' | |
8984 | ||
8985 | # hardcode_minus_L: Not really in the search PATH, | |
8986 | # but as the default location of the library. | |
8987 | hardcode_minus_L=yes | |
8988 | ;; | |
8989 | esac | |
8990 | fi | |
8991 | ;; | |
8992 | ||
8993 | irix5* | irix6* | nonstopux*) | |
8994 | if test "$GCC" = yes; then | |
43e02a8a | 8995 | archive_cmds='$CC -shared $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' |
1cf3d07d SE |
8996 | # Try to use the -exported_symbol ld option, if it does not |
8997 | # work, assume that -exports_file does not work either and | |
8998 | # implicitly export all symbols. | |
8999 | save_LDFLAGS="$LDFLAGS" | |
9000 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9001 | if test x$gcc_no_link = xyes; then | |
5213506e | 9002 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 9003 | fi |
5213506e RW |
9004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9005 | /* end confdefs.h. */ | |
1cf3d07d SE |
9006 | int foo(void) {} |
9007 | _ACEOF | |
5213506e | 9008 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 9009 | archive_expsym_cmds='$CC -shared $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' |
1cf3d07d | 9010 | |
1cf3d07d | 9011 | fi |
5213506e RW |
9012 | rm -f core conftest.err conftest.$ac_objext \ |
9013 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9014 | LDFLAGS="$save_LDFLAGS" |
9015 | else | |
43e02a8a RW |
9016 | 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' |
9017 | 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' | |
1cf3d07d SE |
9018 | fi |
9019 | archive_cmds_need_lc='no' | |
9020 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9021 | hardcode_libdir_separator=: | |
9022 | inherit_rpath=yes | |
9023 | link_all_deplibs=yes | |
9024 | ;; | |
9025 | ||
9026 | netbsd*) | |
9027 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9028 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9029 | else | |
9030 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9031 | fi | |
9032 | hardcode_libdir_flag_spec='-R$libdir' | |
9033 | hardcode_direct=yes | |
9034 | hardcode_shlibpath_var=no | |
9035 | ;; | |
9036 | ||
9037 | newsos6) | |
9038 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9039 | hardcode_direct=yes | |
9040 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9041 | hardcode_libdir_separator=: | |
9042 | hardcode_shlibpath_var=no | |
9043 | ;; | |
9044 | ||
9045 | *nto* | *qnx*) | |
9046 | ;; | |
9047 | ||
9048 | openbsd*) | |
77a3eb61 PG |
9049 | if test -f /usr/libexec/ld.so; then |
9050 | hardcode_direct=yes | |
9051 | hardcode_shlibpath_var=no | |
9052 | hardcode_direct_absolute=yes | |
9053 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 9054 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
77a3eb61 | 9055 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 9056 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
77a3eb61 PG |
9057 | export_dynamic_flag_spec='${wl}-E' |
9058 | else | |
9059 | case $host_os in | |
9060 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9061 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9062 | hardcode_libdir_flag_spec='-R$libdir' | |
9063 | ;; | |
9064 | *) | |
9065 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9066 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9067 | ;; | |
9068 | esac | |
9069 | fi | |
9070 | else | |
9071 | ld_shlibs=no | |
1cf3d07d SE |
9072 | fi |
9073 | ;; | |
9074 | ||
9075 | os2*) | |
9076 | hardcode_libdir_flag_spec='-L$libdir' | |
9077 | hardcode_minus_L=yes | |
9078 | allow_undefined_flag=unsupported | |
43e02a8a | 9079 | 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' |
1cf3d07d SE |
9080 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9081 | ;; | |
9082 | ||
9083 | osf3*) | |
9084 | if test "$GCC" = yes; then | |
9085 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 9086 | 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' |
1cf3d07d SE |
9087 | else |
9088 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 9089 | 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' |
1cf3d07d SE |
9090 | fi |
9091 | archive_cmds_need_lc='no' | |
9092 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9093 | hardcode_libdir_separator=: | |
9094 | ;; | |
9095 | ||
9096 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9097 | if test "$GCC" = yes; then | |
9098 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 9099 | archive_cmds='$CC -shared${allow_undefined_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' |
1cf3d07d SE |
9100 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9101 | else | |
9102 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 9103 | 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' |
1cf3d07d | 9104 | 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~ |
43e02a8a | 9105 | $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' |
1cf3d07d SE |
9106 | |
9107 | # Both c and cxx compiler support -rpath directly | |
9108 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9109 | fi | |
9110 | archive_cmds_need_lc='no' | |
9111 | hardcode_libdir_separator=: | |
9112 | ;; | |
9113 | ||
9114 | solaris*) | |
9115 | no_undefined_flag=' -z defs' | |
9116 | if test "$GCC" = yes; then | |
9117 | wlarc='${wl}' | |
9118 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9119 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9120 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9121 | else | |
9122 | case `$CC -V 2>&1` in | |
9123 | *"Compilers 5.0"*) | |
9124 | wlarc='' | |
9125 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9126 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9127 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9128 | ;; | |
9129 | *) | |
9130 | wlarc='${wl}' | |
9131 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9132 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9133 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9134 | ;; | |
9135 | esac | |
9136 | fi | |
9137 | hardcode_libdir_flag_spec='-R$libdir' | |
9138 | hardcode_shlibpath_var=no | |
9139 | case $host_os in | |
9140 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9141 | *) | |
9142 | # The compiler driver will combine and reorder linker options, | |
9143 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9144 | # but is careful enough not to reorder. | |
9145 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9146 | if test "$GCC" = yes; then | |
9147 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9148 | else | |
9149 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9150 | fi | |
9151 | ;; | |
9152 | esac | |
9153 | link_all_deplibs=yes | |
9154 | ;; | |
9155 | ||
9156 | sunos4*) | |
9157 | if test "x$host_vendor" = xsequent; then | |
9158 | # Use $CC to link under sequent, because it throws in some extra .o | |
9159 | # files that make .init and .fini sections work. | |
9160 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9161 | else | |
9162 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9163 | fi | |
9164 | hardcode_libdir_flag_spec='-L$libdir' | |
9165 | hardcode_direct=yes | |
9166 | hardcode_minus_L=yes | |
9167 | hardcode_shlibpath_var=no | |
9168 | ;; | |
9169 | ||
9170 | sysv4) | |
9171 | case $host_vendor in | |
9172 | sni) | |
9173 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9174 | hardcode_direct=yes # is this really true??? | |
9175 | ;; | |
9176 | siemens) | |
9177 | ## LD is ld it makes a PLAMLIB | |
9178 | ## CC just makes a GrossModule. | |
9179 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9180 | reload_cmds='$CC -r -o $output$reload_objs' | |
9181 | hardcode_direct=no | |
9182 | ;; | |
9183 | motorola) | |
9184 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9185 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9186 | ;; | |
9187 | esac | |
9188 | runpath_var='LD_RUN_PATH' | |
9189 | hardcode_shlibpath_var=no | |
9190 | ;; | |
9191 | ||
9192 | sysv4.3*) | |
9193 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9194 | hardcode_shlibpath_var=no | |
9195 | export_dynamic_flag_spec='-Bexport' | |
9196 | ;; | |
9197 | ||
9198 | sysv4*MP*) | |
9199 | if test -d /usr/nec; then | |
9200 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9201 | hardcode_shlibpath_var=no | |
9202 | runpath_var=LD_RUN_PATH | |
9203 | hardcode_runpath_var=yes | |
9204 | ld_shlibs=yes | |
9205 | fi | |
9206 | ;; | |
9207 | ||
9208 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9209 | no_undefined_flag='${wl}-z,text' | |
9210 | archive_cmds_need_lc=no | |
9211 | hardcode_shlibpath_var=no | |
9212 | runpath_var='LD_RUN_PATH' | |
9213 | ||
9214 | if test "$GCC" = yes; then | |
9215 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9216 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9217 | else | |
9218 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9219 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9220 | fi | |
9221 | ;; | |
9222 | ||
9223 | sysv5* | sco3.2v5* | sco5v6*) | |
9224 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9225 | # link with -lc, and that would cause any symbols used from libc to | |
9226 | # always be unresolved, which means just about no library would | |
9227 | # ever link correctly. If we're not using GNU ld we use -z text | |
9228 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9229 | # as -z defs. | |
9230 | no_undefined_flag='${wl}-z,text' | |
9231 | allow_undefined_flag='${wl}-z,nodefs' | |
9232 | archive_cmds_need_lc=no | |
9233 | hardcode_shlibpath_var=no | |
9234 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9235 | hardcode_libdir_separator=':' | |
9236 | link_all_deplibs=yes | |
9237 | export_dynamic_flag_spec='${wl}-Bexport' | |
9238 | runpath_var='LD_RUN_PATH' | |
9239 | ||
9240 | if test "$GCC" = yes; then | |
9241 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9242 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9243 | else | |
9244 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9245 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9246 | fi | |
9247 | ;; | |
9248 | ||
9249 | uts4*) | |
9250 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9251 | hardcode_libdir_flag_spec='-L$libdir' | |
9252 | hardcode_shlibpath_var=no | |
9253 | ;; | |
9254 | ||
9255 | *) | |
9256 | ld_shlibs=no | |
9257 | ;; | |
9258 | esac | |
9259 | ||
9260 | if test x$host_vendor = xsni; then | |
9261 | case $host in | |
9262 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9263 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9264 | ;; | |
9265 | esac | |
9266 | fi | |
9267 | fi | |
9268 | ||
5213506e RW |
9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9270 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
9271 | test "$ld_shlibs" = no && can_build_shared=no |
9272 | ||
9273 | with_gnu_ld=$with_gnu_ld | |
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | # | |
9290 | # Do we need to explicitly link libc? | |
9291 | # | |
9292 | case "x$archive_cmds_need_lc" in | |
9293 | x|xyes) | |
9294 | # Assume -lc should be added | |
9295 | archive_cmds_need_lc=yes | |
9296 | ||
9297 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9298 | case $archive_cmds in | |
9299 | *'~'*) | |
9300 | # FIXME: we may have to deal with multi-command sequences. | |
9301 | ;; | |
9302 | '$CC '*) | |
9303 | # Test whether the compiler implicitly links with -lc since on some | |
9304 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9305 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
9306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9307 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9308 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9309 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
9310 | else |
9311 | $RM conftest* | |
9312 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 9313 | |
5213506e | 9314 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
9315 | (eval $ac_compile) 2>&5 |
9316 | ac_status=$? | |
5213506e RW |
9317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9318 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
9319 | soname=conftest |
9320 | lib=conftest | |
9321 | libobjs=conftest.$ac_objext | |
9322 | deplibs= | |
9323 | wl=$lt_prog_compiler_wl | |
9324 | pic_flag=$lt_prog_compiler_pic | |
9325 | compiler_flags=-v | |
9326 | linker_flags=-v | |
9327 | verstring= | |
9328 | output_objdir=. | |
9329 | libname=conftest | |
9330 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9331 | allow_undefined_flag= | |
5213506e | 9332 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
9333 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9334 | ac_status=$? | |
5213506e RW |
9335 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9336 | test $ac_status = 0; } | |
baafc534 RW |
9337 | then |
9338 | lt_cv_archive_cmds_need_lc=no | |
9339 | else | |
9340 | lt_cv_archive_cmds_need_lc=yes | |
9341 | fi | |
9342 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9343 | else | |
9344 | cat conftest.err 1>&5 | |
9345 | fi | |
9346 | $RM conftest* | |
9347 | ||
9348 | fi | |
5213506e RW |
9349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9350 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 9351 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
9352 | ;; |
9353 | esac | |
9354 | fi | |
9355 | ;; | |
9356 | esac | |
9357 | ||
9358 | ||
9359 | ||
9360 | ||
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9406 | ||
9407 | ||
9408 | ||
9409 | ||
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | ||
9452 | ||
9453 | ||
9454 | ||
9455 | ||
9456 | ||
9457 | ||
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9468 | ||
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9481 | ||
9482 | ||
9483 | ||
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | ||
9495 | ||
9496 | ||
9497 | ||
9498 | ||
9499 | ||
9500 | ||
9501 | ||
9502 | ||
9503 | ||
9504 | ||
9505 | ||
9506 | ||
9507 | ||
9508 | ||
9509 | ||
9510 | ||
9511 | ||
9512 | ||
9513 | ||
5213506e RW |
9514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9515 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
77a3eb61 PG |
9516 | |
9517 | if test "$GCC" = yes; then | |
1cf3d07d SE |
9518 | case $host_os in |
9519 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9520 | *) lt_awk_arg="/^libraries:/" ;; | |
9521 | esac | |
43e02a8a RW |
9522 | case $host_os in |
9523 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9524 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9525 | esac | |
9526 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9527 | case $lt_search_path_spec in | |
9528 | *\;*) | |
1cf3d07d SE |
9529 | # if the path contains ";" then we assume it to be the separator |
9530 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9531 | # assumed that no part of a normal pathname contains ";" but that should | |
9532 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
9533 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9534 | ;; | |
9535 | *) | |
9536 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9537 | ;; | |
9538 | esac | |
1cf3d07d SE |
9539 | # Ok, now we have the path, separated by spaces, we can step through it |
9540 | # and add multilib dir if necessary. | |
9541 | lt_tmp_lt_search_path_spec= | |
9542 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9543 | for lt_sys_path in $lt_search_path_spec; do | |
9544 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9545 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9546 | else | |
9547 | test -d "$lt_sys_path" && \ | |
9548 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9549 | fi | |
9550 | done | |
43e02a8a | 9551 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
9552 | BEGIN {RS=" "; FS="/|\n";} { |
9553 | lt_foo=""; | |
9554 | lt_count=0; | |
9555 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9556 | if ($lt_i != "" && $lt_i != ".") { | |
9557 | if ($lt_i == "..") { | |
9558 | lt_count++; | |
9559 | } else { | |
9560 | if (lt_count == 0) { | |
9561 | lt_foo="/" $lt_i lt_foo; | |
9562 | } else { | |
9563 | lt_count--; | |
9564 | } | |
9565 | } | |
9566 | } | |
9567 | } | |
9568 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9569 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9570 | }'` | |
43e02a8a RW |
9571 | # AWK program above erroneously prepends '/' to C:/dos/paths |
9572 | # for these hosts. | |
9573 | case $host_os in | |
9574 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9575 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9576 | esac | |
9577 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
9578 | else |
9579 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9580 | fi | |
9581 | library_names_spec= | |
9582 | libname_spec='lib$name' | |
9583 | soname_spec= | |
9584 | shrext_cmds=".so" | |
9585 | postinstall_cmds= | |
9586 | postuninstall_cmds= | |
9587 | finish_cmds= | |
9588 | finish_eval= | |
9589 | shlibpath_var= | |
9590 | shlibpath_overrides_runpath=unknown | |
9591 | version_type=none | |
9592 | dynamic_linker="$host_os ld.so" | |
9593 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9594 | need_lib_prefix=unknown | |
9595 | hardcode_into_libs=no | |
9596 | ||
9597 | # when you set need_version to no, make sure it does not cause -set_version | |
9598 | # flags to be left without arguments | |
9599 | need_version=unknown | |
9600 | ||
9601 | case $host_os in | |
9602 | aix3*) | |
9603 | version_type=linux | |
9604 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9605 | shlibpath_var=LIBPATH | |
9606 | ||
9607 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9608 | soname_spec='${libname}${release}${shared_ext}$major' | |
9609 | ;; | |
9610 | ||
445bad9b | 9611 | aix[4-9]*) |
1cf3d07d SE |
9612 | version_type=linux |
9613 | need_lib_prefix=no | |
9614 | need_version=no | |
9615 | hardcode_into_libs=yes | |
9616 | if test "$host_cpu" = ia64; then | |
9617 | # AIX 5 supports IA64 | |
9618 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9619 | shlibpath_var=LD_LIBRARY_PATH | |
9620 | else | |
9621 | # With GCC up to 2.95.x, collect2 would create an import file | |
9622 | # for dependence libraries. The import file would start with | |
9623 | # the line `#! .'. This would cause the generated library to | |
9624 | # depend on `.', always an invalid library. This was fixed in | |
9625 | # development snapshots of GCC prior to 3.0. | |
9626 | case $host_os in | |
9627 | aix4 | aix4.[01] | aix4.[01].*) | |
9628 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9629 | echo ' yes ' | |
9630 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9631 | : | |
9632 | else | |
9633 | can_build_shared=no | |
9634 | fi | |
9635 | ;; | |
9636 | esac | |
9637 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9638 | # soname into executable. Probably we can add versioning support to | |
9639 | # collect2, so additional links can be useful in future. | |
9640 | if test "$aix_use_runtimelinking" = yes; then | |
9641 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9642 | # instead of lib<name>.a to let people know that these are not | |
9643 | # typical AIX shared libraries. | |
9644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9645 | else | |
9646 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9647 | # and later when we are not doing run time linking. | |
9648 | library_names_spec='${libname}${release}.a $libname.a' | |
9649 | soname_spec='${libname}${release}${shared_ext}$major' | |
9650 | fi | |
9651 | shlibpath_var=LIBPATH | |
9652 | fi | |
9653 | ;; | |
9654 | ||
9655 | amigaos*) | |
77a3eb61 PG |
9656 | case $host_cpu in |
9657 | powerpc) | |
9658 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9659 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9661 | ;; | |
9662 | m68k) | |
1cf3d07d SE |
9663 | library_names_spec='$libname.ixlibrary $libname.a' |
9664 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 9665 | 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' |
77a3eb61 PG |
9666 | ;; |
9667 | esac | |
1cf3d07d SE |
9668 | ;; |
9669 | ||
9670 | beos*) | |
9671 | library_names_spec='${libname}${shared_ext}' | |
9672 | dynamic_linker="$host_os ld.so" | |
9673 | shlibpath_var=LIBRARY_PATH | |
9674 | ;; | |
9675 | ||
9676 | bsdi[45]*) | |
9677 | version_type=linux | |
9678 | need_version=no | |
9679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9680 | soname_spec='${libname}${release}${shared_ext}$major' | |
9681 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9682 | shlibpath_var=LD_LIBRARY_PATH | |
9683 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9684 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9685 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9686 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9687 | # libtool to hard-code these into programs | |
9688 | ;; | |
9689 | ||
77a3eb61 | 9690 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9691 | version_type=windows |
9692 | shrext_cmds=".dll" | |
9693 | need_version=no | |
9694 | need_lib_prefix=no | |
9695 | ||
77a3eb61 PG |
9696 | case $GCC,$host_os in |
9697 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
9698 | library_names_spec='$libname.dll.a' |
9699 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9700 | postinstall_cmds='base_file=`basename \${file}`~ | |
9701 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9702 | dldir=$destdir/`dirname \$dlpath`~ | |
9703 | test -d \$dldir || mkdir -p \$dldir~ | |
9704 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9705 | chmod a+x \$dldir/$dlname~ | |
9706 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9707 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9708 | fi' | |
9709 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9710 | dlpath=$dir/\$dldll~ | |
9711 | $RM \$dlpath' | |
9712 | shlibpath_overrides_runpath=yes | |
9713 | ||
9714 | case $host_os in | |
9715 | cygwin*) | |
9716 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9717 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
9718 | |
9719 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 9720 | ;; |
77a3eb61 | 9721 | mingw* | cegcc*) |
1cf3d07d SE |
9722 | # MinGW DLLs use traditional 'lib' prefix |
9723 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
9724 | ;; |
9725 | pw32*) | |
9726 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9727 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9728 | ;; | |
9729 | esac | |
9730 | ;; | |
9731 | ||
9732 | *) | |
9733 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9734 | ;; | |
9735 | esac | |
9736 | dynamic_linker='Win32 ld.exe' | |
9737 | # FIXME: first we should search . and the directory the executable is in | |
9738 | shlibpath_var=PATH | |
9739 | ;; | |
9740 | ||
9741 | darwin* | rhapsody*) | |
9742 | dynamic_linker="$host_os dyld" | |
9743 | version_type=darwin | |
9744 | need_lib_prefix=no | |
9745 | need_version=no | |
9746 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9747 | soname_spec='${libname}${release}${major}$shared_ext' | |
9748 | shlibpath_overrides_runpath=yes | |
9749 | shlibpath_var=DYLD_LIBRARY_PATH | |
9750 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9751 | ||
9752 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9753 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9754 | ;; | |
9755 | ||
9756 | dgux*) | |
9757 | version_type=linux | |
9758 | need_lib_prefix=no | |
9759 | need_version=no | |
9760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9761 | soname_spec='${libname}${release}${shared_ext}$major' | |
9762 | shlibpath_var=LD_LIBRARY_PATH | |
9763 | ;; | |
9764 | ||
1cf3d07d SE |
9765 | freebsd* | dragonfly*) |
9766 | # DragonFly does not have aout. When/if they implement a new | |
9767 | # versioning mechanism, adjust this. | |
9768 | if test -x /usr/bin/objformat; then | |
9769 | objformat=`/usr/bin/objformat` | |
9770 | else | |
9771 | case $host_os in | |
9772 | freebsd[123]*) objformat=aout ;; | |
9773 | *) objformat=elf ;; | |
9774 | esac | |
9775 | fi | |
9776 | version_type=freebsd-$objformat | |
9777 | case $version_type in | |
9778 | freebsd-elf*) | |
9779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9780 | need_version=no | |
9781 | need_lib_prefix=no | |
9782 | ;; | |
9783 | freebsd-*) | |
9784 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9785 | need_version=yes | |
9786 | ;; | |
9787 | esac | |
9788 | shlibpath_var=LD_LIBRARY_PATH | |
9789 | case $host_os in | |
9790 | freebsd2*) | |
9791 | shlibpath_overrides_runpath=yes | |
9792 | ;; | |
9793 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9794 | shlibpath_overrides_runpath=yes | |
9795 | hardcode_into_libs=yes | |
9796 | ;; | |
9797 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9798 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9799 | shlibpath_overrides_runpath=no | |
9800 | hardcode_into_libs=yes | |
9801 | ;; | |
9802 | *) # from 4.6 on, and DragonFly | |
9803 | shlibpath_overrides_runpath=yes | |
9804 | hardcode_into_libs=yes | |
9805 | ;; | |
9806 | esac | |
9807 | ;; | |
9808 | ||
9809 | gnu*) | |
9810 | version_type=linux | |
9811 | need_lib_prefix=no | |
9812 | need_version=no | |
9813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9814 | soname_spec='${libname}${release}${shared_ext}$major' | |
9815 | shlibpath_var=LD_LIBRARY_PATH | |
9816 | hardcode_into_libs=yes | |
9817 | ;; | |
9818 | ||
43e02a8a RW |
9819 | haiku*) |
9820 | version_type=linux | |
9821 | need_lib_prefix=no | |
9822 | need_version=no | |
9823 | dynamic_linker="$host_os runtime_loader" | |
9824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9825 | soname_spec='${libname}${release}${shared_ext}$major' | |
9826 | shlibpath_var=LIBRARY_PATH | |
9827 | shlibpath_overrides_runpath=yes | |
9828 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
9829 | hardcode_into_libs=yes | |
9830 | ;; | |
9831 | ||
1cf3d07d SE |
9832 | hpux9* | hpux10* | hpux11*) |
9833 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9834 | # link against other versions. | |
9835 | version_type=sunos | |
9836 | need_lib_prefix=no | |
9837 | need_version=no | |
9838 | case $host_cpu in | |
9839 | ia64*) | |
9840 | shrext_cmds='.so' | |
9841 | hardcode_into_libs=yes | |
9842 | dynamic_linker="$host_os dld.so" | |
9843 | shlibpath_var=LD_LIBRARY_PATH | |
9844 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9845 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9846 | soname_spec='${libname}${release}${shared_ext}$major' | |
9847 | if test "X$HPUX_IA64_MODE" = X32; then | |
9848 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9849 | else | |
9850 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9851 | fi | |
9852 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9853 | ;; | |
9854 | hppa*64*) | |
9855 | shrext_cmds='.sl' | |
9856 | hardcode_into_libs=yes | |
9857 | dynamic_linker="$host_os dld.sl" | |
9858 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9859 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9861 | soname_spec='${libname}${release}${shared_ext}$major' | |
9862 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9863 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9864 | ;; | |
9865 | *) | |
9866 | shrext_cmds='.sl' | |
9867 | dynamic_linker="$host_os dld.sl" | |
9868 | shlibpath_var=SHLIB_PATH | |
9869 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9871 | soname_spec='${libname}${release}${shared_ext}$major' | |
9872 | ;; | |
9873 | esac | |
43e02a8a | 9874 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 9875 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
9876 | # or fails outright, so override atomically: |
9877 | install_override_mode=555 | |
1cf3d07d SE |
9878 | ;; |
9879 | ||
9880 | interix[3-9]*) | |
9881 | version_type=linux | |
9882 | need_lib_prefix=no | |
9883 | need_version=no | |
9884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9885 | soname_spec='${libname}${release}${shared_ext}$major' | |
9886 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9887 | shlibpath_var=LD_LIBRARY_PATH | |
9888 | shlibpath_overrides_runpath=no | |
9889 | hardcode_into_libs=yes | |
9890 | ;; | |
9891 | ||
9892 | irix5* | irix6* | nonstopux*) | |
9893 | case $host_os in | |
9894 | nonstopux*) version_type=nonstopux ;; | |
9895 | *) | |
9896 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9897 | version_type=linux | |
9898 | else | |
9899 | version_type=irix | |
9900 | fi ;; | |
9901 | esac | |
9902 | need_lib_prefix=no | |
9903 | need_version=no | |
9904 | soname_spec='${libname}${release}${shared_ext}$major' | |
9905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9906 | case $host_os in | |
9907 | irix5* | nonstopux*) | |
9908 | libsuff= shlibsuff= | |
9909 | ;; | |
9910 | *) | |
9911 | case $LD in # libtool.m4 will add one of these switches to LD | |
9912 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9913 | libsuff= shlibsuff= libmagic=32-bit;; | |
9914 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9915 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9916 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9917 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9918 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9919 | esac | |
9920 | ;; | |
9921 | esac | |
9922 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9923 | shlibpath_overrides_runpath=no | |
9924 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9925 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9926 | hardcode_into_libs=yes | |
9927 | ;; | |
9928 | ||
9929 | # No shared lib support for Linux oldld, aout, or coff. | |
9930 | linux*oldld* | linux*aout* | linux*coff*) | |
9931 | dynamic_linker=no | |
9932 | ;; | |
9933 | ||
9934 | # This must be Linux ELF. | |
7a9d3fe8 | 9935 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
9936 | version_type=linux |
9937 | need_lib_prefix=no | |
9938 | need_version=no | |
9939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9940 | soname_spec='${libname}${release}${shared_ext}$major' | |
9941 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9942 | shlibpath_var=LD_LIBRARY_PATH | |
9943 | shlibpath_overrides_runpath=no | |
baafc534 | 9944 | |
1cf3d07d | 9945 | # Some binutils ld are patched to set DT_RUNPATH |
5213506e RW |
9946 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
9947 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
9948 | else |
9949 | lt_cv_shlibpath_overrides_runpath=no | |
9950 | save_LDFLAGS=$LDFLAGS | |
9951 | save_libdir=$libdir | |
9952 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9953 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9954 | if test x$gcc_no_link = xyes; then | |
5213506e | 9955 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 9956 | fi |
5213506e | 9957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
9958 | /* end confdefs.h. */ |
9959 | ||
9960 | int | |
9961 | main () | |
9962 | { | |
9963 | ||
9964 | ; | |
9965 | return 0; | |
9966 | } | |
9967 | _ACEOF | |
5213506e RW |
9968 | if ac_fn_c_try_link "$LINENO"; then : |
9969 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 9970 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 9971 | fi |
1cf3d07d | 9972 | fi |
5213506e RW |
9973 | rm -f core conftest.err conftest.$ac_objext \ |
9974 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
9975 | LDFLAGS=$save_LDFLAGS |
9976 | libdir=$save_libdir | |
9977 | ||
9978 | fi | |
9979 | ||
9980 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
9981 | |
9982 | # This implies no fast_install, which is unacceptable. | |
9983 | # Some rework will be needed to allow for fast_install | |
9984 | # before this can be enabled. | |
9985 | hardcode_into_libs=yes | |
9986 | ||
9987 | # Append ld.so.conf contents to the search path | |
9988 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 9989 | 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' ' '` |
1cf3d07d SE |
9990 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
9991 | fi | |
9992 | ||
9993 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9994 | # powerpc, because MkLinux only supported shared libraries with the | |
9995 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9996 | # most powerpc-linux boxes support dynamic linking these days and | |
9997 | # people can always --disable-shared, the test was removed, and we | |
9998 | # assume the GNU/Linux dynamic linker is in use. | |
9999 | dynamic_linker='GNU/Linux ld.so' | |
10000 | ;; | |
10001 | ||
10002 | netbsd*) | |
10003 | version_type=sunos | |
10004 | need_lib_prefix=no | |
10005 | need_version=no | |
10006 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10008 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10009 | dynamic_linker='NetBSD (a.out) ld.so' | |
10010 | else | |
10011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10012 | soname_spec='${libname}${release}${shared_ext}$major' | |
10013 | dynamic_linker='NetBSD ld.elf_so' | |
10014 | fi | |
10015 | shlibpath_var=LD_LIBRARY_PATH | |
10016 | shlibpath_overrides_runpath=yes | |
10017 | hardcode_into_libs=yes | |
10018 | ;; | |
10019 | ||
10020 | newsos6) | |
10021 | version_type=linux | |
10022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10023 | shlibpath_var=LD_LIBRARY_PATH | |
10024 | shlibpath_overrides_runpath=yes | |
10025 | ;; | |
10026 | ||
10027 | *nto* | *qnx*) | |
10028 | version_type=qnx | |
10029 | need_lib_prefix=no | |
10030 | need_version=no | |
10031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10032 | soname_spec='${libname}${release}${shared_ext}$major' | |
10033 | shlibpath_var=LD_LIBRARY_PATH | |
10034 | shlibpath_overrides_runpath=no | |
10035 | hardcode_into_libs=yes | |
10036 | dynamic_linker='ldqnx.so' | |
10037 | ;; | |
10038 | ||
10039 | openbsd*) | |
10040 | version_type=sunos | |
10041 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10042 | need_lib_prefix=no | |
10043 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10044 | case $host_os in | |
10045 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10046 | *) need_version=no ;; | |
10047 | esac | |
10048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10049 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10050 | shlibpath_var=LD_LIBRARY_PATH | |
10051 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10052 | case $host_os in | |
10053 | openbsd2.[89] | openbsd2.[89].*) | |
10054 | shlibpath_overrides_runpath=no | |
10055 | ;; | |
10056 | *) | |
10057 | shlibpath_overrides_runpath=yes | |
10058 | ;; | |
10059 | esac | |
10060 | else | |
10061 | shlibpath_overrides_runpath=yes | |
10062 | fi | |
10063 | ;; | |
10064 | ||
10065 | os2*) | |
10066 | libname_spec='$name' | |
10067 | shrext_cmds=".dll" | |
10068 | need_lib_prefix=no | |
10069 | library_names_spec='$libname${shared_ext} $libname.a' | |
10070 | dynamic_linker='OS/2 ld.exe' | |
10071 | shlibpath_var=LIBPATH | |
10072 | ;; | |
10073 | ||
10074 | osf3* | osf4* | osf5*) | |
10075 | version_type=osf | |
10076 | need_lib_prefix=no | |
10077 | need_version=no | |
10078 | soname_spec='${libname}${release}${shared_ext}$major' | |
10079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10080 | shlibpath_var=LD_LIBRARY_PATH | |
10081 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10082 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10083 | ;; | |
10084 | ||
10085 | rdos*) | |
10086 | dynamic_linker=no | |
10087 | ;; | |
10088 | ||
10089 | solaris*) | |
10090 | version_type=linux | |
10091 | need_lib_prefix=no | |
10092 | need_version=no | |
10093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10094 | soname_spec='${libname}${release}${shared_ext}$major' | |
10095 | shlibpath_var=LD_LIBRARY_PATH | |
10096 | shlibpath_overrides_runpath=yes | |
10097 | hardcode_into_libs=yes | |
10098 | # ldd complains unless libraries are executable | |
10099 | postinstall_cmds='chmod +x $lib' | |
10100 | ;; | |
10101 | ||
10102 | sunos4*) | |
10103 | version_type=sunos | |
10104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10105 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10106 | shlibpath_var=LD_LIBRARY_PATH | |
10107 | shlibpath_overrides_runpath=yes | |
10108 | if test "$with_gnu_ld" = yes; then | |
10109 | need_lib_prefix=no | |
10110 | fi | |
10111 | need_version=yes | |
10112 | ;; | |
10113 | ||
10114 | sysv4 | sysv4.3*) | |
10115 | version_type=linux | |
10116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10117 | soname_spec='${libname}${release}${shared_ext}$major' | |
10118 | shlibpath_var=LD_LIBRARY_PATH | |
10119 | case $host_vendor in | |
10120 | sni) | |
10121 | shlibpath_overrides_runpath=no | |
10122 | need_lib_prefix=no | |
10123 | runpath_var=LD_RUN_PATH | |
10124 | ;; | |
10125 | siemens) | |
10126 | need_lib_prefix=no | |
10127 | ;; | |
10128 | motorola) | |
10129 | need_lib_prefix=no | |
10130 | need_version=no | |
10131 | shlibpath_overrides_runpath=no | |
10132 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10133 | ;; | |
10134 | esac | |
10135 | ;; | |
10136 | ||
10137 | sysv4*MP*) | |
10138 | if test -d /usr/nec ;then | |
10139 | version_type=linux | |
10140 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10141 | soname_spec='$libname${shared_ext}.$major' | |
10142 | shlibpath_var=LD_LIBRARY_PATH | |
10143 | fi | |
10144 | ;; | |
10145 | ||
10146 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10147 | version_type=freebsd-elf | |
10148 | need_lib_prefix=no | |
10149 | need_version=no | |
10150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10151 | soname_spec='${libname}${release}${shared_ext}$major' | |
10152 | shlibpath_var=LD_LIBRARY_PATH | |
10153 | shlibpath_overrides_runpath=yes | |
10154 | hardcode_into_libs=yes | |
10155 | if test "$with_gnu_ld" = yes; then | |
10156 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10157 | else | |
10158 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10159 | case $host_os in | |
10160 | sco3.2v5*) | |
10161 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10162 | ;; | |
10163 | esac | |
10164 | fi | |
10165 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10166 | ;; | |
10167 | ||
10168 | tpf*) | |
10169 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10170 | version_type=linux | |
10171 | need_lib_prefix=no | |
10172 | need_version=no | |
77a3eb61 | 10173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
10174 | shlibpath_var=LD_LIBRARY_PATH |
10175 | shlibpath_overrides_runpath=no | |
10176 | hardcode_into_libs=yes | |
10177 | ;; | |
10178 | ||
10179 | uts4*) | |
10180 | version_type=linux | |
10181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10182 | soname_spec='${libname}${release}${shared_ext}$major' | |
10183 | shlibpath_var=LD_LIBRARY_PATH | |
10184 | ;; | |
10185 | ||
10186 | *) | |
10187 | dynamic_linker=no | |
10188 | ;; | |
10189 | esac | |
5213506e RW |
10190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10191 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
10192 | test "$dynamic_linker" = no && can_build_shared=no |
10193 | ||
10194 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10195 | if test "$GCC" = yes; then | |
10196 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10197 | fi | |
10198 | ||
77a3eb61 PG |
10199 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10200 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10201 | fi | |
10202 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10203 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10204 | fi | |
10205 | ||
1cf3d07d SE |
10206 | |
10207 | ||
10208 | ||
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
10218 | ||
10219 | ||
10220 | ||
10221 | ||
10222 | ||
10223 | ||
10224 | ||
10225 | ||
10226 | ||
10227 | ||
10228 | ||
10229 | ||
10230 | ||
10231 | ||
10232 | ||
10233 | ||
10234 | ||
10235 | ||
10236 | ||
10237 | ||
10238 | ||
10239 | ||
10240 | ||
10241 | ||
10242 | ||
10243 | ||
10244 | ||
10245 | ||
10246 | ||
10247 | ||
10248 | ||
10249 | ||
10250 | ||
10251 | ||
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | ||
10259 | ||
10260 | ||
10261 | ||
10262 | ||
10263 | ||
10264 | ||
10265 | ||
10266 | ||
10267 | ||
10268 | ||
10269 | ||
10270 | ||
10271 | ||
10272 | ||
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
43e02a8a RW |
10286 | |
10287 | ||
10288 | ||
10289 | ||
10290 | ||
1cf3d07d SE |
10291 | |
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
5213506e RW |
10297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10298 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
10299 | hardcode_action= |
10300 | if test -n "$hardcode_libdir_flag_spec" || | |
10301 | test -n "$runpath_var" || | |
10302 | test "X$hardcode_automatic" = "Xyes" ; then | |
10303 | ||
10304 | # We can hardcode non-existent directories. | |
10305 | if test "$hardcode_direct" != no && | |
10306 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10307 | # have to relink, otherwise we might link with an installed library | |
10308 | # when we should be linking with a yet-to-be-installed one | |
10309 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10310 | test "$hardcode_minus_L" != no; then | |
10311 | # Linking always hardcodes the temporary library directory. | |
10312 | hardcode_action=relink | |
10313 | else | |
10314 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10315 | hardcode_action=immediate | |
10316 | fi | |
10317 | else | |
10318 | # We cannot hardcode anything, or else we can only hardcode existing | |
10319 | # directories. | |
10320 | hardcode_action=unsupported | |
10321 | fi | |
5213506e RW |
10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10323 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
10324 | |
10325 | if test "$hardcode_action" = relink || | |
10326 | test "$inherit_rpath" = yes; then | |
10327 | # Fast installation is not supported | |
10328 | enable_fast_install=no | |
10329 | elif test "$shlibpath_overrides_runpath" = yes || | |
10330 | test "$enable_shared" = no; then | |
10331 | # Fast installation is not necessary | |
10332 | enable_fast_install=needless | |
10333 | fi | |
10334 | ||
10335 | ||
10336 | ||
10337 | ||
10338 | ||
10339 | ||
10340 | if test "x$enable_dlopen" != xyes; then | |
10341 | enable_dlopen=unknown | |
10342 | enable_dlopen_self=unknown | |
10343 | enable_dlopen_self_static=unknown | |
10344 | else | |
10345 | lt_cv_dlopen=no | |
10346 | lt_cv_dlopen_libs= | |
10347 | ||
10348 | case $host_os in | |
10349 | beos*) | |
10350 | lt_cv_dlopen="load_add_on" | |
10351 | lt_cv_dlopen_libs= | |
10352 | lt_cv_dlopen_self=yes | |
10353 | ;; | |
10354 | ||
77a3eb61 | 10355 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10356 | lt_cv_dlopen="LoadLibrary" |
10357 | lt_cv_dlopen_libs= | |
10358 | ;; | |
10359 | ||
10360 | cygwin*) | |
10361 | lt_cv_dlopen="dlopen" | |
5213506e RW |
10362 | lt_cv_dlopen_libs= |
10363 | ;; | |
10364 | ||
10365 | darwin*) | |
10366 | # if libdl is installed we need to link against it | |
10367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10368 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10369 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10370 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10371 | else |
10372 | ac_check_lib_save_LIBS=$LIBS | |
5213506e | 10373 | LIBS="-ldl $LIBS" |
1cf3d07d | 10374 | if test x$gcc_no_link = xyes; then |
5213506e | 10375 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10376 | fi |
5213506e | 10377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10378 | /* end confdefs.h. */ |
10379 | ||
5213506e RW |
10380 | /* Override any GCC internal prototype to avoid an error. |
10381 | Use char because int might match the return type of a GCC | |
10382 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10383 | #ifdef __cplusplus |
10384 | extern "C" | |
10385 | #endif | |
5213506e | 10386 | char dlopen (); |
1cf3d07d SE |
10387 | int |
10388 | main () | |
10389 | { | |
5213506e | 10390 | return dlopen (); |
1cf3d07d SE |
10391 | ; |
10392 | return 0; | |
10393 | } | |
10394 | _ACEOF | |
5213506e RW |
10395 | if ac_fn_c_try_link "$LINENO"; then : |
10396 | ac_cv_lib_dl_dlopen=yes | |
1cf3d07d | 10397 | else |
5213506e | 10398 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 10399 | fi |
5213506e RW |
10400 | rm -f core conftest.err conftest.$ac_objext \ |
10401 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10402 | LIBS=$ac_check_lib_save_LIBS |
10403 | fi | |
5213506e RW |
10404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10405 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10406 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10407 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
1cf3d07d | 10408 | else |
1cf3d07d | 10409 | |
5213506e RW |
10410 | lt_cv_dlopen="dyld" |
10411 | lt_cv_dlopen_libs= | |
10412 | lt_cv_dlopen_self=yes | |
1cf3d07d | 10413 | |
5213506e | 10414 | fi |
1cf3d07d | 10415 | |
5213506e | 10416 | ;; |
1cf3d07d | 10417 | |
5213506e RW |
10418 | *) |
10419 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10420 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
10421 | lt_cv_dlopen="shl_load" | |
10422 | else | |
10423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10424 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10425 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10426 | $as_echo_n "(cached) " >&6 | |
10427 | else | |
10428 | ac_check_lib_save_LIBS=$LIBS | |
10429 | LIBS="-ldld $LIBS" | |
10430 | if test x$gcc_no_link = xyes; then | |
10431 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
10432 | fi | |
10433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10434 | /* end confdefs.h. */ | |
10435 | ||
10436 | /* Override any GCC internal prototype to avoid an error. | |
10437 | Use char because int might match the return type of a GCC | |
1cf3d07d | 10438 | builtin and then its argument prototype would still apply. */ |
1cf3d07d | 10439 | #ifdef __cplusplus |
5213506e | 10440 | extern "C" |
1cf3d07d | 10441 | #endif |
5213506e | 10442 | char shl_load (); |
1cf3d07d SE |
10443 | int |
10444 | main () | |
10445 | { | |
5213506e | 10446 | return shl_load (); |
1cf3d07d SE |
10447 | ; |
10448 | return 0; | |
10449 | } | |
10450 | _ACEOF | |
5213506e RW |
10451 | if ac_fn_c_try_link "$LINENO"; then : |
10452 | ac_cv_lib_dld_shl_load=yes | |
1cf3d07d | 10453 | else |
5213506e | 10454 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 10455 | fi |
5213506e RW |
10456 | rm -f core conftest.err conftest.$ac_objext \ |
10457 | conftest$ac_exeext conftest.$ac_ext | |
10458 | LIBS=$ac_check_lib_save_LIBS | |
1cf3d07d | 10459 | fi |
5213506e RW |
10460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10461 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10462 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
10463 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10464 | else | |
10465 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10466 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
1cf3d07d SE |
10467 | lt_cv_dlopen="dlopen" |
10468 | else | |
5213506e RW |
10469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10470 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10471 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10472 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10473 | else |
10474 | ac_check_lib_save_LIBS=$LIBS | |
10475 | LIBS="-ldl $LIBS" | |
10476 | if test x$gcc_no_link = xyes; then | |
5213506e | 10477 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10478 | fi |
5213506e | 10479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10480 | /* end confdefs.h. */ |
10481 | ||
5213506e RW |
10482 | /* Override any GCC internal prototype to avoid an error. |
10483 | Use char because int might match the return type of a GCC | |
10484 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10485 | #ifdef __cplusplus |
10486 | extern "C" | |
10487 | #endif | |
1cf3d07d SE |
10488 | char dlopen (); |
10489 | int | |
10490 | main () | |
10491 | { | |
5213506e | 10492 | return dlopen (); |
1cf3d07d SE |
10493 | ; |
10494 | return 0; | |
10495 | } | |
10496 | _ACEOF | |
5213506e | 10497 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10498 | ac_cv_lib_dl_dlopen=yes |
10499 | else | |
5213506e | 10500 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 10501 | fi |
5213506e RW |
10502 | rm -f core conftest.err conftest.$ac_objext \ |
10503 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10504 | LIBS=$ac_check_lib_save_LIBS |
10505 | fi | |
5213506e RW |
10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10507 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10508 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
1cf3d07d SE |
10509 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10510 | else | |
5213506e RW |
10511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10512 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10513 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10514 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10515 | else |
10516 | ac_check_lib_save_LIBS=$LIBS | |
10517 | LIBS="-lsvld $LIBS" | |
10518 | if test x$gcc_no_link = xyes; then | |
5213506e | 10519 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10520 | fi |
5213506e | 10521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10522 | /* end confdefs.h. */ |
10523 | ||
5213506e RW |
10524 | /* Override any GCC internal prototype to avoid an error. |
10525 | Use char because int might match the return type of a GCC | |
10526 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10527 | #ifdef __cplusplus |
10528 | extern "C" | |
10529 | #endif | |
1cf3d07d SE |
10530 | char dlopen (); |
10531 | int | |
10532 | main () | |
10533 | { | |
5213506e | 10534 | return dlopen (); |
1cf3d07d SE |
10535 | ; |
10536 | return 0; | |
10537 | } | |
10538 | _ACEOF | |
5213506e | 10539 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10540 | ac_cv_lib_svld_dlopen=yes |
10541 | else | |
5213506e | 10542 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 10543 | fi |
5213506e RW |
10544 | rm -f core conftest.err conftest.$ac_objext \ |
10545 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10546 | LIBS=$ac_check_lib_save_LIBS |
10547 | fi | |
5213506e RW |
10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10549 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10550 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
1cf3d07d SE |
10551 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10552 | else | |
5213506e RW |
10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10554 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10555 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
10556 | $as_echo_n "(cached) " >&6 | |
77008252 | 10557 | else |
1cf3d07d SE |
10558 | ac_check_lib_save_LIBS=$LIBS |
10559 | LIBS="-ldld $LIBS" | |
10560 | if test x$gcc_no_link = xyes; then | |
5213506e | 10561 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
be14fe72 | 10562 | fi |
5213506e | 10563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
77008252 JJ |
10564 | /* end confdefs.h. */ |
10565 | ||
5213506e RW |
10566 | /* Override any GCC internal prototype to avoid an error. |
10567 | Use char because int might match the return type of a GCC | |
10568 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10569 | #ifdef __cplusplus |
10570 | extern "C" | |
10571 | #endif | |
1cf3d07d | 10572 | char dld_link (); |
77008252 JJ |
10573 | int |
10574 | main () | |
10575 | { | |
5213506e | 10576 | return dld_link (); |
77008252 JJ |
10577 | ; |
10578 | return 0; | |
10579 | } | |
10580 | _ACEOF | |
5213506e | 10581 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d | 10582 | ac_cv_lib_dld_dld_link=yes |
77008252 | 10583 | else |
5213506e | 10584 | ac_cv_lib_dld_dld_link=no |
77008252 | 10585 | fi |
5213506e RW |
10586 | rm -f core conftest.err conftest.$ac_objext \ |
10587 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10588 | LIBS=$ac_check_lib_save_LIBS |
10589 | fi | |
5213506e RW |
10590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10591 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10592 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
77a3eb61 | 10593 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
10594 | fi |
10595 | ||
77008252 JJ |
10596 | |
10597 | fi | |
1cf3d07d SE |
10598 | |
10599 | ||
10600 | fi | |
10601 | ||
10602 | ||
10603 | fi | |
10604 | ||
10605 | ||
10606 | fi | |
10607 | ||
10608 | ||
10609 | fi | |
10610 | ||
10611 | ;; | |
10612 | esac | |
10613 | ||
10614 | if test "x$lt_cv_dlopen" != xno; then | |
10615 | enable_dlopen=yes | |
10616 | else | |
10617 | enable_dlopen=no | |
77008252 | 10618 | fi |
77008252 | 10619 | |
1cf3d07d SE |
10620 | case $lt_cv_dlopen in |
10621 | dlopen) | |
10622 | save_CPPFLAGS="$CPPFLAGS" | |
10623 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
77008252 | 10624 | |
1cf3d07d SE |
10625 | save_LDFLAGS="$LDFLAGS" |
10626 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
77008252 | 10627 | |
1cf3d07d SE |
10628 | save_LIBS="$LIBS" |
10629 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
77008252 | 10630 | |
5213506e RW |
10631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10632 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
10633 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
10634 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10635 | else |
10636 | if test "$cross_compiling" = yes; then : | |
10637 | lt_cv_dlopen_self=cross | |
10638 | else | |
10639 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10640 | lt_status=$lt_dlunknown | |
10641 | cat > conftest.$ac_ext <<_LT_EOF | |
029c8f3e | 10642 | #line 10642 "configure" |
1cf3d07d | 10643 | #include "confdefs.h" |
77008252 | 10644 | |
1cf3d07d SE |
10645 | #if HAVE_DLFCN_H |
10646 | #include <dlfcn.h> | |
10647 | #endif | |
77008252 | 10648 | |
1cf3d07d SE |
10649 | #include <stdio.h> |
10650 | ||
10651 | #ifdef RTLD_GLOBAL | |
10652 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10653 | #else | |
10654 | # ifdef DL_GLOBAL | |
10655 | # define LT_DLGLOBAL DL_GLOBAL | |
10656 | # else | |
10657 | # define LT_DLGLOBAL 0 | |
10658 | # endif | |
10659 | #endif | |
10660 | ||
10661 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10662 | find out it does not work in some platform. */ | |
10663 | #ifndef LT_DLLAZY_OR_NOW | |
10664 | # ifdef RTLD_LAZY | |
10665 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10666 | # else | |
10667 | # ifdef DL_LAZY | |
10668 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10669 | # else | |
10670 | # ifdef RTLD_NOW | |
10671 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10672 | # else | |
10673 | # ifdef DL_NOW | |
10674 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10675 | # else | |
10676 | # define LT_DLLAZY_OR_NOW 0 | |
10677 | # endif | |
10678 | # endif | |
10679 | # endif | |
10680 | # endif | |
10681 | #endif | |
10682 | ||
43e02a8a RW |
10683 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10684 | correspondingly for the symbols needed. */ | |
10685 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
10686 | void fnord () __attribute__((visibility("default"))); | |
10687 | #endif | |
10688 | ||
10689 | void fnord () { int i=42; } | |
1cf3d07d | 10690 | int main () |
77008252 | 10691 | { |
1cf3d07d SE |
10692 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10693 | int status = $lt_dlunknown; | |
10694 | ||
10695 | if (self) | |
10696 | { | |
10697 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
10698 | else |
10699 | { | |
10700 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10701 | else puts (dlerror ()); | |
10702 | } | |
1cf3d07d SE |
10703 | /* dlclose (self); */ |
10704 | } | |
77008252 | 10705 | else |
1cf3d07d SE |
10706 | puts (dlerror ()); |
10707 | ||
77a3eb61 | 10708 | return status; |
1cf3d07d SE |
10709 | } |
10710 | _LT_EOF | |
5213506e | 10711 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
10712 | (eval $ac_link) 2>&5 |
10713 | ac_status=$? | |
5213506e RW |
10714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10715 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
10716 | (./conftest; exit; ) >&5 2>/dev/null |
10717 | lt_status=$? | |
10718 | case x$lt_status in | |
10719 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10720 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10721 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10722 | esac | |
10723 | else : | |
10724 | # compilation failed | |
10725 | lt_cv_dlopen_self=no | |
77008252 JJ |
10726 | fi |
10727 | fi | |
1cf3d07d SE |
10728 | rm -fr conftest* |
10729 | ||
10730 | ||
10731 | fi | |
5213506e RW |
10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
10733 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
10734 | |
10735 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10736 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
10738 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
10739 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
10740 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10741 | else |
10742 | if test "$cross_compiling" = yes; then : | |
10743 | lt_cv_dlopen_self_static=cross | |
10744 | else | |
10745 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10746 | lt_status=$lt_dlunknown | |
10747 | cat > conftest.$ac_ext <<_LT_EOF | |
029c8f3e | 10748 | #line 10748 "configure" |
1cf3d07d SE |
10749 | #include "confdefs.h" |
10750 | ||
10751 | #if HAVE_DLFCN_H | |
10752 | #include <dlfcn.h> | |
10753 | #endif | |
10754 | ||
10755 | #include <stdio.h> | |
10756 | ||
10757 | #ifdef RTLD_GLOBAL | |
10758 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10759 | #else | |
10760 | # ifdef DL_GLOBAL | |
10761 | # define LT_DLGLOBAL DL_GLOBAL | |
10762 | # else | |
10763 | # define LT_DLGLOBAL 0 | |
10764 | # endif | |
10765 | #endif | |
10766 | ||
10767 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10768 | find out it does not work in some platform. */ | |
10769 | #ifndef LT_DLLAZY_OR_NOW | |
10770 | # ifdef RTLD_LAZY | |
10771 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10772 | # else | |
10773 | # ifdef DL_LAZY | |
10774 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10775 | # else | |
10776 | # ifdef RTLD_NOW | |
10777 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10778 | # else | |
10779 | # ifdef DL_NOW | |
10780 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10781 | # else | |
10782 | # define LT_DLLAZY_OR_NOW 0 | |
10783 | # endif | |
10784 | # endif | |
10785 | # endif | |
10786 | # endif | |
10787 | #endif | |
10788 | ||
43e02a8a RW |
10789 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10790 | correspondingly for the symbols needed. */ | |
10791 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
10792 | void fnord () __attribute__((visibility("default"))); | |
10793 | #endif | |
10794 | ||
10795 | void fnord () { int i=42; } | |
1cf3d07d SE |
10796 | int main () |
10797 | { | |
10798 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10799 | int status = $lt_dlunknown; | |
10800 | ||
10801 | if (self) | |
10802 | { | |
10803 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
10804 | else |
10805 | { | |
10806 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10807 | else puts (dlerror ()); | |
10808 | } | |
1cf3d07d SE |
10809 | /* dlclose (self); */ |
10810 | } | |
10811 | else | |
10812 | puts (dlerror ()); | |
10813 | ||
77a3eb61 | 10814 | return status; |
1cf3d07d SE |
10815 | } |
10816 | _LT_EOF | |
5213506e | 10817 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
10818 | (eval $ac_link) 2>&5 |
10819 | ac_status=$? | |
5213506e RW |
10820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10821 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
10822 | (./conftest; exit; ) >&5 2>/dev/null |
10823 | lt_status=$? | |
10824 | case x$lt_status in | |
10825 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10826 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10827 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10828 | esac | |
10829 | else : | |
10830 | # compilation failed | |
10831 | lt_cv_dlopen_self_static=no | |
10832 | fi | |
10833 | fi | |
10834 | rm -fr conftest* | |
10835 | ||
10836 | ||
10837 | fi | |
5213506e RW |
10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
10839 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
10840 | fi |
10841 | ||
10842 | CPPFLAGS="$save_CPPFLAGS" | |
10843 | LDFLAGS="$save_LDFLAGS" | |
10844 | LIBS="$save_LIBS" | |
10845 | ;; | |
10846 | esac | |
10847 | ||
10848 | case $lt_cv_dlopen_self in | |
10849 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10850 | *) enable_dlopen_self=unknown ;; | |
10851 | esac | |
10852 | ||
10853 | case $lt_cv_dlopen_self_static in | |
10854 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10855 | *) enable_dlopen_self_static=unknown ;; | |
10856 | esac | |
10857 | fi | |
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
10875 | striplib= | |
10876 | old_striplib= | |
5213506e RW |
10877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
10878 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
10879 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
10880 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10881 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
10882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10883 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
10884 | else |
10885 | # FIXME - insert some real tests, host_os isn't really good enough | |
10886 | case $host_os in | |
10887 | darwin*) | |
10888 | if test -n "$STRIP" ; then | |
10889 | striplib="$STRIP -x" | |
10890 | old_striplib="$STRIP -S" | |
5213506e RW |
10891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10892 | $as_echo "yes" >&6; } | |
1cf3d07d | 10893 | else |
5213506e RW |
10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10895 | $as_echo "no" >&6; } | |
1cf3d07d SE |
10896 | fi |
10897 | ;; | |
10898 | *) | |
5213506e RW |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10900 | $as_echo "no" >&6; } | |
1cf3d07d SE |
10901 | ;; |
10902 | esac | |
10903 | fi | |
10904 | ||
10905 | ||
10906 | ||
10907 | ||
10908 | ||
10909 | ||
10910 | ||
10911 | ||
10912 | ||
10913 | ||
10914 | ||
10915 | ||
10916 | # Report which library types will actually be built | |
5213506e RW |
10917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
10918 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
10920 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 10921 | |
5213506e RW |
10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
10923 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
10924 | test "$can_build_shared" = "no" && enable_shared=no |
10925 | ||
10926 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10927 | # are all built from PIC. | |
10928 | case $host_os in | |
10929 | aix3*) | |
10930 | test "$enable_shared" = yes && enable_static=no | |
10931 | if test -n "$RANLIB"; then | |
10932 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10933 | postinstall_cmds='$RANLIB $lib' | |
10934 | fi | |
10935 | ;; | |
10936 | ||
445bad9b | 10937 | aix[4-9]*) |
1cf3d07d SE |
10938 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10939 | test "$enable_shared" = yes && enable_static=no | |
10940 | fi | |
10941 | ;; | |
10942 | esac | |
5213506e RW |
10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
10944 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 10945 | |
5213506e RW |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
10947 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
10948 | # Make sure either enable_shared or enable_static is yes. |
10949 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
10951 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
10952 | |
10953 | ||
77008252 | 10954 | |
77008252 | 10955 | |
77008252 | 10956 | fi |
1cf3d07d SE |
10957 | ac_ext=c |
10958 | ac_cpp='$CPP $CPPFLAGS' | |
10959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10962 | ||
10963 | CC="$lt_save_CC" | |
10964 | ||
10965 | ||
10966 | ||
10967 | ||
10968 | ||
10969 | ||
10970 | ||
77008252 JJ |
10971 | |
10972 | ||
77008252 | 10973 | |
77008252 | 10974 | |
77008252 JJ |
10975 | |
10976 | ||
5213506e | 10977 | ac_config_commands="$ac_config_commands libtool" |
77008252 JJ |
10978 | |
10979 | ||
10980 | ||
10981 | ||
1cf3d07d SE |
10982 | # Only expand once: |
10983 | ||
10984 | ||
77008252 JJ |
10985 | |
10986 | ||
10987 | ||
7de6ba7a DK |
10988 | case $host in |
10989 | *-cygwin* | *-mingw*) | |
10990 | # 'host' will be top-level target in the case of a target lib, | |
10991 | # we must compare to with_cross_host to decide if this is a native | |
10992 | # or cross-compiler and select where to install dlls appropriately. | |
10993 | if test -n "$with_cross_host" && | |
10994 | test x"$with_cross_host" != x"no"; then | |
10995 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
10996 | else | |
10997 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
10998 | fi | |
10999 | ;; | |
11000 | *) | |
11001 | lt_host_flags= | |
11002 | ;; | |
11003 | esac | |
11004 | ||
11005 | ||
11006 | ||
11007 | ||
11008 | ||
11009 | ||
77008252 JJ |
11010 | # Calculate toolexeclibdir |
11011 | # Also toolexecdir, though it's only used in toolexeclibdir | |
11012 | case ${version_specific_libs} in | |
11013 | yes) | |
11014 | # Need the gcc compiler version to know where to install libraries | |
11015 | # and header files if --enable-version-specific-runtime-libs option | |
11016 | # is selected. | |
11017 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
11018 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
11019 | ;; | |
11020 | no) | |
11021 | if test -n "$with_cross_host" && | |
11022 | test x"$with_cross_host" != x"no"; then | |
11023 | # Install a library built with a cross compiler in tooldir, not libdir. | |
11024 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
11025 | toolexeclibdir='$(toolexecdir)/lib' | |
11026 | else | |
11027 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
11028 | toolexeclibdir='$(libdir)' | |
11029 | fi | |
11030 | multi_os_directory=`$CC -print-multi-os-directory` | |
11031 | case $multi_os_directory in | |
11032 | .) ;; # Avoid trailing /. | |
11033 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
11034 | esac | |
11035 | ;; | |
11036 | esac | |
11037 | ||
11038 | ||
11039 | ||
11040 | if test ${multilib} = yes; then | |
11041 | multilib_arg="--enable-multilib" | |
11042 | else | |
11043 | multilib_arg= | |
11044 | fi | |
11045 | ||
5213506e | 11046 | ac_config_files="$ac_config_files Makefile ssp/ssp.h" |
77008252 JJ |
11047 | |
11048 | cat >confcache <<\_ACEOF | |
11049 | # This file is a shell script that caches the results of configure | |
11050 | # tests run on this system so they can be shared between configure | |
11051 | # scripts and configure runs, see configure's option --config-cache. | |
11052 | # It is not useful on other systems. If it contains results you don't | |
11053 | # want to keep, you may remove or edit it. | |
11054 | # | |
11055 | # config.status only pays attention to the cache file if you give it | |
11056 | # the --recheck option to rerun configure. | |
11057 | # | |
11058 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11059 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11060 | # following values. | |
11061 | ||
11062 | _ACEOF | |
11063 | ||
11064 | # The following way of writing the cache mishandles newlines in values, | |
11065 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 11066 | # So, we kill variables containing newlines. |
77008252 JJ |
11067 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11068 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
11069 | ( |
11070 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11071 | eval ac_val=\$$ac_var | |
11072 | case $ac_val in #( | |
11073 | *${as_nl}*) | |
11074 | case $ac_var in #( | |
11075 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
11076 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11077 | esac | |
11078 | case $ac_var in #( | |
11079 | _ | IFS | as_nl) ;; #( | |
11080 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11081 | *) { eval $ac_var=; unset $ac_var;} ;; | |
11082 | esac ;; | |
11083 | esac | |
11084 | done | |
11085 | ||
77008252 | 11086 | (set) 2>&1 | |
5213506e RW |
11087 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11088 | *${as_nl}ac_space=\ *) | |
11089 | # `set' does not quote correctly, so add quotes: double-quote | |
11090 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
77008252 JJ |
11091 | sed -n \ |
11092 | "s/'/'\\\\''/g; | |
11093 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 11094 | ;; #( |
77008252 JJ |
11095 | *) |
11096 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 11097 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
77008252 | 11098 | ;; |
5213506e RW |
11099 | esac | |
11100 | sort | |
11101 | ) | | |
77008252 | 11102 | sed ' |
5213506e | 11103 | /^ac_cv_env_/b end |
77008252 | 11104 | t clear |
5213506e | 11105 | :clear |
77008252 JJ |
11106 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11107 | t end | |
5213506e RW |
11108 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11109 | :end' >>confcache | |
11110 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11111 | if test -w "$cache_file"; then | |
11112 | test "x$cache_file" != "x/dev/null" && | |
11113 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
11114 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
77008252 JJ |
11115 | cat confcache >$cache_file |
11116 | else | |
5213506e RW |
11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
11118 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
77008252 JJ |
11119 | fi |
11120 | fi | |
11121 | rm -f confcache | |
11122 | ||
11123 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11124 | # Let make expand exec_prefix. | |
11125 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11126 | ||
77008252 JJ |
11127 | DEFS=-DHAVE_CONFIG_H |
11128 | ||
11129 | ac_libobjs= | |
11130 | ac_ltlibobjs= | |
11131 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11132 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
11133 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
11134 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11135 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11136 | # will be set to the directory where LIBOBJS objects are built. | |
11137 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11138 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
77008252 JJ |
11139 | done |
11140 | LIBOBJS=$ac_libobjs | |
11141 | ||
11142 | LTLIBOBJS=$ac_ltlibobjs | |
11143 | ||
11144 | ||
5213506e RW |
11145 | if test -n "$EXEEXT"; then |
11146 | am__EXEEXT_TRUE= | |
11147 | am__EXEEXT_FALSE='#' | |
11148 | else | |
11149 | am__EXEEXT_TRUE='#' | |
11150 | am__EXEEXT_FALSE= | |
11151 | fi | |
11152 | ||
77008252 | 11153 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
5213506e RW |
11154 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
11155 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
77008252 JJ |
11156 | fi |
11157 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5213506e RW |
11158 | as_fn_error "conditional \"AMDEP\" was never defined. |
11159 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
77008252 JJ |
11160 | fi |
11161 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5213506e RW |
11162 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
11163 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
77008252 JJ |
11164 | fi |
11165 | if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then | |
5213506e | 11166 | as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined. |
ca6d1176 RO |
11167 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11168 | fi | |
11169 | if test -z "${LIBSSP_USE_SYMVER_GNU_TRUE}" && test -z "${LIBSSP_USE_SYMVER_GNU_FALSE}"; then | |
11170 | as_fn_error "conditional \"LIBSSP_USE_SYMVER_GNU\" was never defined. | |
11171 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11172 | fi | |
11173 | if test -z "${LIBSSP_USE_SYMVER_SUN_TRUE}" && test -z "${LIBSSP_USE_SYMVER_SUN_FALSE}"; then | |
11174 | as_fn_error "conditional \"LIBSSP_USE_SYMVER_SUN\" was never defined. | |
5213506e | 11175 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
77008252 JJ |
11176 | fi |
11177 | ||
11178 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 11179 | ac_write_fail=0 |
77008252 JJ |
11180 | ac_clean_files_save=$ac_clean_files |
11181 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
11183 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11184 | as_write_fail=0 | |
11185 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
77008252 JJ |
11186 | #! $SHELL |
11187 | # Generated by $as_me. | |
11188 | # Run this file to recreate the current configuration. | |
11189 | # Compiler output produced by configure, useful for debugging | |
11190 | # configure, is in config.log if it exists. | |
11191 | ||
11192 | debug=false | |
11193 | ac_cs_recheck=false | |
11194 | ac_cs_silent=false | |
77008252 | 11195 | |
5213506e RW |
11196 | SHELL=\${CONFIG_SHELL-$SHELL} |
11197 | export SHELL | |
11198 | _ASEOF | |
11199 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11200 | ## -------------------- ## | |
11201 | ## M4sh Initialization. ## | |
11202 | ## -------------------- ## | |
11203 | ||
11204 | # Be more Bourne compatible | |
11205 | DUALCASE=1; export DUALCASE # for MKS sh | |
11206 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
77008252 JJ |
11207 | emulate sh |
11208 | NULLCMD=: | |
5213506e | 11209 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
77008252 JJ |
11210 | # is contrary to our usage. Disable this feature. |
11211 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
11212 | setopt NO_GLOB_SUBST |
11213 | else | |
11214 | case `(set -o) 2>/dev/null` in #( | |
11215 | *posix*) : | |
11216 | set -o posix ;; #( | |
11217 | *) : | |
11218 | ;; | |
11219 | esac | |
77008252 | 11220 | fi |
77008252 | 11221 | |
5213506e RW |
11222 | |
11223 | as_nl=' | |
11224 | ' | |
11225 | export as_nl | |
11226 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11227 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11228 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11229 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11230 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
11231 | # but without wasting forks for bash or zsh. | |
11232 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11233 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11234 | as_echo='print -r --' | |
11235 | as_echo_n='print -rn --' | |
11236 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11237 | as_echo='printf %s\n' | |
11238 | as_echo_n='printf %s' | |
11239 | else | |
11240 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11241 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11242 | as_echo_n='/usr/ucb/echo -n' | |
11243 | else | |
11244 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
11245 | as_echo_n_body='eval | |
11246 | arg=$1; | |
11247 | case $arg in #( | |
11248 | *"$as_nl"*) | |
11249 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11250 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11251 | esac; | |
11252 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11253 | ' | |
11254 | export as_echo_n_body | |
11255 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
11256 | fi | |
11257 | export as_echo_body | |
11258 | as_echo='sh -c $as_echo_body as_echo' | |
11259 | fi | |
11260 | ||
11261 | # The user is always right. | |
11262 | if test "${PATH_SEPARATOR+set}" != set; then | |
11263 | PATH_SEPARATOR=: | |
11264 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11265 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11266 | PATH_SEPARATOR=';' | |
11267 | } | |
77008252 JJ |
11268 | fi |
11269 | ||
11270 | ||
5213506e RW |
11271 | # IFS |
11272 | # We need space, tab and new line, in precisely that order. Quoting is | |
11273 | # there to prevent editors from complaining about space-tab. | |
11274 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11275 | # splitting by setting IFS to empty value.) | |
11276 | IFS=" "" $as_nl" | |
11277 | ||
11278 | # Find who we are. Look in the path if we contain no directory separator. | |
11279 | case $0 in #(( | |
11280 | *[\\/]* ) as_myself=$0 ;; | |
11281 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11282 | for as_dir in $PATH | |
11283 | do | |
11284 | IFS=$as_save_IFS | |
11285 | test -z "$as_dir" && as_dir=. | |
11286 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11287 | done | |
11288 | IFS=$as_save_IFS | |
11289 | ||
11290 | ;; | |
11291 | esac | |
11292 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11293 | # in which case we are not to be found in the path. | |
11294 | if test "x$as_myself" = x; then | |
11295 | as_myself=$0 | |
11296 | fi | |
11297 | if test ! -f "$as_myself"; then | |
11298 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
11299 | exit 1 | |
11300 | fi | |
11301 | ||
11302 | # Unset variables that we do not need and which cause bugs (e.g. in | |
11303 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
11304 | # suppresses any "Segmentation fault" message there. '((' could | |
11305 | # trigger a bug in pdksh 5.2.14. | |
11306 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
11307 | do eval test x\${$as_var+set} = xset \ | |
11308 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
11309 | done | |
77008252 JJ |
11310 | PS1='$ ' |
11311 | PS2='> ' | |
11312 | PS4='+ ' | |
11313 | ||
11314 | # NLS nuisances. | |
5213506e RW |
11315 | LC_ALL=C |
11316 | export LC_ALL | |
11317 | LANGUAGE=C | |
11318 | export LANGUAGE | |
11319 | ||
11320 | # CDPATH. | |
11321 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11322 | ||
11323 | ||
11324 | # as_fn_error ERROR [LINENO LOG_FD] | |
11325 | # --------------------------------- | |
11326 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
11327 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
11328 | # script with status $?, using 1 if that was 0. | |
11329 | as_fn_error () | |
11330 | { | |
11331 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
11332 | if test "$3"; then | |
11333 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
11334 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
77008252 | 11335 | fi |
5213506e RW |
11336 | $as_echo "$as_me: error: $1" >&2 |
11337 | as_fn_exit $as_status | |
11338 | } # as_fn_error | |
11339 | ||
11340 | ||
11341 | # as_fn_set_status STATUS | |
11342 | # ----------------------- | |
11343 | # Set $? to STATUS, without forking. | |
11344 | as_fn_set_status () | |
11345 | { | |
11346 | return $1 | |
11347 | } # as_fn_set_status | |
11348 | ||
11349 | # as_fn_exit STATUS | |
11350 | # ----------------- | |
11351 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
11352 | as_fn_exit () | |
11353 | { | |
11354 | set +e | |
11355 | as_fn_set_status $1 | |
11356 | exit $1 | |
11357 | } # as_fn_exit | |
11358 | ||
11359 | # as_fn_unset VAR | |
11360 | # --------------- | |
11361 | # Portably unset VAR. | |
11362 | as_fn_unset () | |
11363 | { | |
11364 | { eval $1=; unset $1;} | |
11365 | } | |
11366 | as_unset=as_fn_unset | |
11367 | # as_fn_append VAR VALUE | |
11368 | # ---------------------- | |
11369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
11370 | # advantage of any shell optimizations that allow amortized linear growth over | |
11371 | # repeated appends, instead of the typical quadratic growth present in naive | |
11372 | # implementations. | |
11373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
11374 | eval 'as_fn_append () | |
11375 | { | |
11376 | eval $1+=\$2 | |
11377 | }' | |
11378 | else | |
11379 | as_fn_append () | |
11380 | { | |
11381 | eval $1=\$$1\$2 | |
11382 | } | |
11383 | fi # as_fn_append | |
11384 | ||
11385 | # as_fn_arith ARG... | |
11386 | # ------------------ | |
11387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
11388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
11389 | # must be portable across $(()) and expr. | |
11390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
11391 | eval 'as_fn_arith () | |
11392 | { | |
11393 | as_val=$(( $* )) | |
11394 | }' | |
11395 | else | |
11396 | as_fn_arith () | |
11397 | { | |
11398 | as_val=`expr "$@" || test $? -eq 1` | |
11399 | } | |
11400 | fi # as_fn_arith | |
77008252 | 11401 | |
5213506e RW |
11402 | |
11403 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
11404 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
77008252 JJ |
11405 | as_expr=expr |
11406 | else | |
11407 | as_expr=false | |
11408 | fi | |
11409 | ||
5213506e | 11410 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
77008252 JJ |
11411 | as_basename=basename |
11412 | else | |
11413 | as_basename=false | |
11414 | fi | |
11415 | ||
5213506e RW |
11416 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11417 | as_dirname=dirname | |
11418 | else | |
11419 | as_dirname=false | |
11420 | fi | |
77008252 | 11421 | |
5213506e | 11422 | as_me=`$as_basename -- "$0" || |
77008252 JJ |
11423 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11424 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
11425 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
11426 | $as_echo X/"$0" | | |
11427 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
11428 | s//\1/ | |
11429 | q | |
11430 | } | |
11431 | /^X\/\(\/\/\)$/{ | |
11432 | s//\1/ | |
11433 | q | |
11434 | } | |
11435 | /^X\/\(\/\).*/{ | |
11436 | s//\1/ | |
11437 | q | |
11438 | } | |
11439 | s/.*/./; q'` | |
77008252 | 11440 | |
77008252 JJ |
11441 | # Avoid depending upon Character Ranges. |
11442 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11443 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11444 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11445 | as_cr_digits='0123456789' | |
11446 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11447 | ||
5213506e RW |
11448 | ECHO_C= ECHO_N= ECHO_T= |
11449 | case `echo -n x` in #((((( | |
11450 | -n*) | |
11451 | case `echo 'xy\c'` in | |
11452 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11453 | xy) ECHO_C='\c';; | |
11454 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
11455 | ECHO_T=' ';; | |
11456 | esac;; | |
11457 | *) | |
11458 | ECHO_N='-n';; | |
77008252 JJ |
11459 | esac |
11460 | ||
5213506e RW |
11461 | rm -f conf$$ conf$$.exe conf$$.file |
11462 | if test -d conf$$.dir; then | |
11463 | rm -f conf$$.dir/conf$$.file | |
77008252 | 11464 | else |
5213506e RW |
11465 | rm -f conf$$.dir |
11466 | mkdir conf$$.dir 2>/dev/null | |
77008252 | 11467 | fi |
5213506e RW |
11468 | if (echo >conf$$.file) 2>/dev/null; then |
11469 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
77008252 | 11470 | as_ln_s='ln -s' |
5213506e RW |
11471 | # ... but there are two gotchas: |
11472 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11473 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11474 | # In both cases, we have to default to `cp -p'. | |
11475 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
11476 | as_ln_s='cp -p' | |
11477 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
11478 | as_ln_s=ln | |
11479 | else | |
11480 | as_ln_s='cp -p' | |
77008252 | 11481 | fi |
77008252 JJ |
11482 | else |
11483 | as_ln_s='cp -p' | |
11484 | fi | |
5213506e RW |
11485 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11486 | rmdir conf$$.dir 2>/dev/null | |
11487 | ||
11488 | ||
11489 | # as_fn_mkdir_p | |
11490 | # ------------- | |
11491 | # Create "$as_dir" as a directory, including parents if necessary. | |
11492 | as_fn_mkdir_p () | |
11493 | { | |
11494 | ||
11495 | case $as_dir in #( | |
11496 | -*) as_dir=./$as_dir;; | |
11497 | esac | |
11498 | test -d "$as_dir" || eval $as_mkdir_p || { | |
11499 | as_dirs= | |
11500 | while :; do | |
11501 | case $as_dir in #( | |
11502 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
11503 | *) as_qdir=$as_dir;; | |
11504 | esac | |
11505 | as_dirs="'$as_qdir' $as_dirs" | |
11506 | as_dir=`$as_dirname -- "$as_dir" || | |
11507 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11508 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11509 | X"$as_dir" : 'X\(//\)$' \| \ | |
11510 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
11511 | $as_echo X"$as_dir" | | |
11512 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11513 | s//\1/ | |
11514 | q | |
11515 | } | |
11516 | /^X\(\/\/\)[^/].*/{ | |
11517 | s//\1/ | |
11518 | q | |
11519 | } | |
11520 | /^X\(\/\/\)$/{ | |
11521 | s//\1/ | |
11522 | q | |
11523 | } | |
11524 | /^X\(\/\).*/{ | |
11525 | s//\1/ | |
11526 | q | |
11527 | } | |
11528 | s/.*/./; q'` | |
11529 | test -d "$as_dir" && break | |
11530 | done | |
11531 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
11532 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
77008252 | 11533 | |
5213506e RW |
11534 | |
11535 | } # as_fn_mkdir_p | |
77008252 | 11536 | if mkdir -p . 2>/dev/null; then |
5213506e | 11537 | as_mkdir_p='mkdir -p "$as_dir"' |
77008252 JJ |
11538 | else |
11539 | test -d ./-p && rmdir ./-p | |
11540 | as_mkdir_p=false | |
11541 | fi | |
11542 | ||
5213506e RW |
11543 | if test -x / >/dev/null 2>&1; then |
11544 | as_test_x='test -x' | |
11545 | else | |
11546 | if ls -dL / >/dev/null 2>&1; then | |
11547 | as_ls_L_option=L | |
11548 | else | |
11549 | as_ls_L_option= | |
11550 | fi | |
11551 | as_test_x=' | |
11552 | eval sh -c '\'' | |
11553 | if test -d "$1"; then | |
11554 | test -d "$1/."; | |
11555 | else | |
11556 | case $1 in #( | |
11557 | -*)set "./$1";; | |
11558 | esac; | |
11559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
11560 | ???[sx]*):;;*)false;;esac;fi | |
11561 | '\'' sh | |
11562 | ' | |
11563 | fi | |
11564 | as_executable_p=$as_test_x | |
77008252 JJ |
11565 | |
11566 | # Sed expression to map a string onto a valid CPP name. | |
11567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
11568 | ||
5213506e RW |
11569 | # Sed expression to map a string onto a valid variable name. |
11570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
77008252 | 11571 | |
77008252 | 11572 | |
5213506e RW |
11573 | exec 6>&1 |
11574 | ## ----------------------------------- ## | |
11575 | ## Main body of $CONFIG_STATUS script. ## | |
11576 | ## ----------------------------------- ## | |
11577 | _ASEOF | |
11578 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
11579 | ||
11580 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11581 | # Save the log message, to keep $0 and so on meaningful, and to | |
77008252 | 11582 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
11583 | # values after options handling. |
11584 | ac_log=" | |
77008252 | 11585 | This file was extended by libssp $as_me 1.0, which was |
5213506e | 11586 | generated by GNU Autoconf 2.64. Invocation command line was |
77008252 JJ |
11587 | |
11588 | CONFIG_FILES = $CONFIG_FILES | |
11589 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11590 | CONFIG_LINKS = $CONFIG_LINKS | |
11591 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11592 | $ $0 $@ | |
11593 | ||
5213506e RW |
11594 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11595 | " | |
11596 | ||
77008252 JJ |
11597 | _ACEOF |
11598 | ||
5213506e RW |
11599 | case $ac_config_files in *" |
11600 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
11601 | esac | |
77008252 | 11602 | |
5213506e RW |
11603 | case $ac_config_headers in *" |
11604 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
11605 | esac | |
77008252 | 11606 | |
77008252 | 11607 | |
5213506e RW |
11608 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11609 | # Files that config.status was made for. | |
11610 | config_files="$ac_config_files" | |
11611 | config_headers="$ac_config_headers" | |
11612 | config_commands="$ac_config_commands" | |
77008252 | 11613 | |
5213506e | 11614 | _ACEOF |
77008252 | 11615 | |
5213506e | 11616 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
77008252 | 11617 | ac_cs_usage="\ |
5213506e RW |
11618 | \`$as_me' instantiates files and other configuration actions |
11619 | from templates according to the current configuration. Unless the files | |
11620 | and actions are specified as TAGs, all are instantiated by default. | |
77008252 | 11621 | |
5213506e | 11622 | Usage: $0 [OPTION]... [TAG]... |
77008252 JJ |
11623 | |
11624 | -h, --help print this help, then exit | |
5213506e RW |
11625 | -V, --version print version number and configuration settings, then exit |
11626 | -q, --quiet, --silent | |
11627 | do not print progress messages | |
77008252 JJ |
11628 | -d, --debug don't remove temporary files |
11629 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
11630 | --file=FILE[:TEMPLATE] |
11631 | instantiate the configuration file FILE | |
11632 | --header=FILE[:TEMPLATE] | |
11633 | instantiate the configuration header FILE | |
77008252 JJ |
11634 | |
11635 | Configuration files: | |
11636 | $config_files | |
11637 | ||
11638 | Configuration headers: | |
11639 | $config_headers | |
11640 | ||
11641 | Configuration commands: | |
11642 | $config_commands | |
11643 | ||
5213506e | 11644 | Report bugs to the package provider." |
77008252 | 11645 | |
5213506e RW |
11646 | _ACEOF |
11647 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
77008252 JJ |
11648 | ac_cs_version="\\ |
11649 | libssp config.status 1.0 | |
5213506e RW |
11650 | configured by $0, generated by GNU Autoconf 2.64, |
11651 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
77008252 | 11652 | |
5213506e | 11653 | Copyright (C) 2009 Free Software Foundation, Inc. |
77008252 JJ |
11654 | This config.status script is free software; the Free Software Foundation |
11655 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
11656 | |
11657 | ac_pwd='$ac_pwd' | |
11658 | srcdir='$srcdir' | |
11659 | INSTALL='$INSTALL' | |
11660 | MKDIR_P='$MKDIR_P' | |
11661 | AWK='$AWK' | |
11662 | test -n "\$AWK" || AWK=awk | |
77008252 JJ |
11663 | _ACEOF |
11664 | ||
5213506e RW |
11665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11666 | # The default lists apply if the user does not specify any file. | |
77008252 JJ |
11667 | ac_need_defaults=: |
11668 | while test $# != 0 | |
11669 | do | |
11670 | case $1 in | |
11671 | --*=*) | |
5213506e RW |
11672 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11673 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
77008252 JJ |
11674 | ac_shift=: |
11675 | ;; | |
5213506e | 11676 | *) |
77008252 JJ |
11677 | ac_option=$1 |
11678 | ac_optarg=$2 | |
11679 | ac_shift=shift | |
11680 | ;; | |
77008252 JJ |
11681 | esac |
11682 | ||
11683 | case $ac_option in | |
11684 | # Handling of the options. | |
77008252 JJ |
11685 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11686 | ac_cs_recheck=: ;; | |
5213506e RW |
11687 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
11688 | $as_echo "$ac_cs_version"; exit ;; | |
11689 | --debug | --debu | --deb | --de | --d | -d ) | |
77008252 JJ |
11690 | debug=: ;; |
11691 | --file | --fil | --fi | --f ) | |
11692 | $ac_shift | |
5213506e RW |
11693 | case $ac_optarg in |
11694 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11695 | esac | |
11696 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
77008252 JJ |
11697 | ac_need_defaults=false;; |
11698 | --header | --heade | --head | --hea ) | |
11699 | $ac_shift | |
5213506e RW |
11700 | case $ac_optarg in |
11701 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11702 | esac | |
11703 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
77008252 | 11704 | ac_need_defaults=false;; |
5213506e RW |
11705 | --he | --h) |
11706 | # Conflict between --help and --header | |
11707 | as_fn_error "ambiguous option: \`$1' | |
11708 | Try \`$0 --help' for more information.";; | |
11709 | --help | --hel | -h ) | |
11710 | $as_echo "$ac_cs_usage"; exit ;; | |
77008252 JJ |
11711 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11712 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11713 | ac_cs_silent=: ;; | |
11714 | ||
11715 | # This is an error. | |
5213506e RW |
11716 | -*) as_fn_error "unrecognized option: \`$1' |
11717 | Try \`$0 --help' for more information." ;; | |
77008252 | 11718 | |
5213506e RW |
11719 | *) as_fn_append ac_config_targets " $1" |
11720 | ac_need_defaults=false ;; | |
77008252 JJ |
11721 | |
11722 | esac | |
11723 | shift | |
11724 | done | |
11725 | ||
11726 | ac_configure_extra_args= | |
11727 | ||
11728 | if $ac_cs_silent; then | |
11729 | exec 6>/dev/null | |
11730 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11731 | fi | |
11732 | ||
11733 | _ACEOF | |
5213506e | 11734 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
77008252 | 11735 | if \$ac_cs_recheck; then |
5213506e RW |
11736 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11737 | shift | |
11738 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11739 | CONFIG_SHELL='$SHELL' | |
11740 | export CONFIG_SHELL | |
11741 | exec "\$@" | |
77008252 JJ |
11742 | fi |
11743 | ||
11744 | _ACEOF | |
5213506e RW |
11745 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11746 | exec 5>>config.log | |
11747 | { | |
11748 | echo | |
11749 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11750 | ## Running $as_me. ## | |
11751 | _ASBOX | |
11752 | $as_echo "$ac_log" | |
11753 | } >&5 | |
77008252 | 11754 | |
5213506e RW |
11755 | _ACEOF |
11756 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
77008252 | 11757 | # |
5213506e | 11758 | # INIT-COMMANDS |
77008252 JJ |
11759 | # |
11760 | ||
77008252 JJ |
11761 | srcdir="$srcdir" |
11762 | host="$host" | |
11763 | target="$target" | |
11764 | with_multisubdir="$with_multisubdir" | |
11765 | with_multisrctop="$with_multisrctop" | |
11766 | with_target_subdir="$with_target_subdir" | |
11767 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
11768 | multi_basedir="$multi_basedir" | |
11769 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
11770 | CC="$CC" | |
5213506e RW |
11771 | CXX="$CXX" |
11772 | GFORTRAN="$GFORTRAN" | |
11773 | GCJ="$GCJ" | |
77008252 JJ |
11774 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
11775 | ||
1cf3d07d SE |
11776 | |
11777 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
11778 | # if CDPATH is set. | |
11779 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11780 | ||
11781 | sed_quote_subst='$sed_quote_subst' | |
11782 | double_quote_subst='$double_quote_subst' | |
11783 | delay_variable_subst='$delay_variable_subst' | |
43e02a8a RW |
11784 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
11785 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
11786 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
11787 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
11788 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
11789 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
11790 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
11791 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
11792 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
11793 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
11794 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
11795 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
11796 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
11797 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
11798 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
11799 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
11800 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
11801 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
11802 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
11803 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
11804 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
11805 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
11806 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
11807 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
11808 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
11809 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
11810 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
11811 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
11812 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
11813 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
11814 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
11815 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
11816 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
11817 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
11818 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
11819 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
11820 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
11821 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
11822 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
11823 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
11824 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
11825 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
11826 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
11827 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
11828 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
11829 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
11830 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
11831 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
11832 | 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"`' | |
11833 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
11834 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
11835 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
11836 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
11837 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
11838 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
11839 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
11840 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
11841 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
11842 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
11843 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
11844 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
11845 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
11846 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
11847 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
11848 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
11849 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
11850 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
11851 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
11852 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
11853 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
11854 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
11855 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
11856 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
11857 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
11858 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
11859 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
11860 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
11861 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
11862 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
11863 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
11864 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
11865 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
11866 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
11867 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
11868 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
11869 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
11870 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
11871 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
11872 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
11873 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
11874 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
11875 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
11876 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
11877 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
11878 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
11879 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
11880 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
11881 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
11882 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
11883 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
11884 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
11885 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
11886 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
11887 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
11888 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
11889 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
11890 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
11891 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
11892 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
11893 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
11894 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
11895 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
11896 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
11897 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
11898 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
11899 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
11900 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
11901 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
11902 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
11903 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
11904 | |
11905 | LTCC='$LTCC' | |
11906 | LTCFLAGS='$LTCFLAGS' | |
11907 | compiler='$compiler_DEFAULT' | |
11908 | ||
43e02a8a RW |
11909 | # A function that is used when there is no print builtin or printf. |
11910 | func_fallback_echo () | |
11911 | { | |
11912 | eval 'cat <<_LTECHO_EOF | |
11913 | \$1 | |
11914 | _LTECHO_EOF' | |
11915 | } | |
11916 | ||
1cf3d07d | 11917 | # Quote evaled strings. |
43e02a8a RW |
11918 | for var in SHELL \ |
11919 | ECHO \ | |
11920 | SED \ | |
1cf3d07d SE |
11921 | GREP \ |
11922 | EGREP \ | |
11923 | FGREP \ | |
11924 | LD \ | |
11925 | NM \ | |
11926 | LN_S \ | |
11927 | lt_SP2NL \ | |
11928 | lt_NL2SP \ | |
11929 | reload_flag \ | |
77a3eb61 | 11930 | OBJDUMP \ |
1cf3d07d SE |
11931 | deplibs_check_method \ |
11932 | file_magic_cmd \ | |
11933 | AR \ | |
11934 | AR_FLAGS \ | |
11935 | STRIP \ | |
11936 | RANLIB \ | |
11937 | CC \ | |
11938 | CFLAGS \ | |
11939 | compiler \ | |
11940 | lt_cv_sys_global_symbol_pipe \ | |
11941 | lt_cv_sys_global_symbol_to_cdecl \ | |
11942 | lt_cv_sys_global_symbol_to_c_name_address \ | |
77a3eb61 | 11943 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
11944 | lt_prog_compiler_no_builtin_flag \ |
11945 | lt_prog_compiler_wl \ | |
11946 | lt_prog_compiler_pic \ | |
11947 | lt_prog_compiler_static \ | |
11948 | lt_cv_prog_compiler_c_o \ | |
11949 | need_locks \ | |
77a3eb61 PG |
11950 | DSYMUTIL \ |
11951 | NMEDIT \ | |
11952 | LIPO \ | |
11953 | OTOOL \ | |
11954 | OTOOL64 \ | |
1cf3d07d SE |
11955 | shrext_cmds \ |
11956 | export_dynamic_flag_spec \ | |
11957 | whole_archive_flag_spec \ | |
11958 | compiler_needs_object \ | |
11959 | with_gnu_ld \ | |
11960 | allow_undefined_flag \ | |
11961 | no_undefined_flag \ | |
11962 | hardcode_libdir_flag_spec \ | |
11963 | hardcode_libdir_flag_spec_ld \ | |
11964 | hardcode_libdir_separator \ | |
11965 | fix_srcfile_path \ | |
11966 | exclude_expsyms \ | |
11967 | include_expsyms \ | |
11968 | file_list_spec \ | |
11969 | variables_saved_for_relink \ | |
11970 | libname_spec \ | |
11971 | library_names_spec \ | |
11972 | soname_spec \ | |
43e02a8a | 11973 | install_override_mode \ |
1cf3d07d SE |
11974 | finish_eval \ |
11975 | old_striplib \ | |
11976 | striplib; do | |
43e02a8a | 11977 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 11978 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 11979 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
11980 | ;; |
11981 | *) | |
11982 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
11983 | ;; | |
11984 | esac | |
11985 | done | |
11986 | ||
11987 | # Double-quote double-evaled strings. | |
11988 | for var in reload_cmds \ | |
11989 | old_postinstall_cmds \ | |
11990 | old_postuninstall_cmds \ | |
11991 | old_archive_cmds \ | |
11992 | extract_expsyms_cmds \ | |
11993 | old_archive_from_new_cmds \ | |
11994 | old_archive_from_expsyms_cmds \ | |
11995 | archive_cmds \ | |
11996 | archive_expsym_cmds \ | |
11997 | module_cmds \ | |
11998 | module_expsym_cmds \ | |
11999 | export_symbols_cmds \ | |
12000 | prelink_cmds \ | |
12001 | postinstall_cmds \ | |
12002 | postuninstall_cmds \ | |
12003 | finish_cmds \ | |
12004 | sys_lib_search_path_spec \ | |
12005 | sys_lib_dlsearch_path_spec; do | |
43e02a8a | 12006 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 12007 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 12008 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
12009 | ;; |
12010 | *) | |
12011 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12012 | ;; | |
12013 | esac | |
12014 | done | |
12015 | ||
1cf3d07d SE |
12016 | ac_aux_dir='$ac_aux_dir' |
12017 | xsi_shell='$xsi_shell' | |
12018 | lt_shell_append='$lt_shell_append' | |
12019 | ||
12020 | # See if we are running on zsh, and set the options which allow our | |
12021 | # commands through without removal of \ escapes INIT. | |
12022 | if test -n "\${ZSH_VERSION+set}" ; then | |
12023 | setopt NO_GLOB_SUBST | |
12024 | fi | |
12025 | ||
12026 | ||
12027 | PACKAGE='$PACKAGE' | |
12028 | VERSION='$VERSION' | |
12029 | TIMESTAMP='$TIMESTAMP' | |
12030 | RM='$RM' | |
12031 | ofile='$ofile' | |
12032 | ||
12033 | ||
12034 | ||
12035 | ||
77008252 JJ |
12036 | _ACEOF |
12037 | ||
5213506e | 12038 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
77008252 | 12039 | |
5213506e | 12040 | # Handling of arguments. |
77008252 JJ |
12041 | for ac_config_target in $ac_config_targets |
12042 | do | |
5213506e RW |
12043 | case $ac_config_target in |
12044 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
12045 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
12046 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12047 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12048 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12049 | "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;; | |
12050 | ||
12051 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
77008252 JJ |
12052 | esac |
12053 | done | |
12054 | ||
5213506e | 12055 | |
77008252 JJ |
12056 | # If the user did not use the arguments to specify the items to instantiate, |
12057 | # then the envvar interface is used. Set only those that are not. | |
12058 | # We use the long form for the default assignment because of an extremely | |
12059 | # bizarre bug on SunOS 4.1.3. | |
12060 | if $ac_need_defaults; then | |
12061 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12062 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12063 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12064 | fi | |
12065 | ||
12066 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 12067 | # simply because there is no reason against having it here, and in addition, |
77008252 | 12068 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
12069 | # Hook for its removal unless debugging. |
12070 | # Note that there is a small window in which the directory will not be cleaned: | |
12071 | # after its creation but before its name has been assigned to `$tmp'. | |
77008252 JJ |
12072 | $debug || |
12073 | { | |
5213506e RW |
12074 | tmp= |
12075 | trap 'exit_status=$? | |
12076 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12077 | ' 0 | |
12078 | trap 'as_fn_exit 1' 1 2 13 15 | |
77008252 | 12079 | } |
77008252 JJ |
12080 | # Create a (secure) tmp directory for tmp files. |
12081 | ||
12082 | { | |
5213506e | 12083 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
77008252 JJ |
12084 | test -n "$tmp" && test -d "$tmp" |
12085 | } || | |
12086 | { | |
5213506e RW |
12087 | tmp=./conf$$-$RANDOM |
12088 | (umask 077 && mkdir "$tmp") | |
12089 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
12090 | ||
12091 | # Set up the scripts for CONFIG_FILES section. | |
12092 | # No need to generate them if there are no CONFIG_FILES. | |
12093 | # This happens for instance with `./config.status config.h'. | |
12094 | if test -n "$CONFIG_FILES"; then | |
12095 | ||
12096 | ||
12097 | ac_cr=`echo X | tr X '\015'` | |
12098 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12099 | # But we know of no other shell where ac_cr would be empty at this | |
12100 | # point, so we can use a bashism as a fallback. | |
12101 | if test "x$ac_cr" = x; then | |
12102 | eval ac_cr=\$\'\\r\' | |
12103 | fi | |
12104 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12105 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12106 | ac_cs_awk_cr='\r' | |
12107 | else | |
12108 | ac_cs_awk_cr=$ac_cr | |
12109 | fi | |
12110 | ||
12111 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
12112 | _ACEOF | |
12113 | ||
12114 | ||
77008252 | 12115 | { |
5213506e RW |
12116 | echo "cat >conf$$subs.awk <<_ACEOF" && |
12117 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12118 | echo "_ACEOF" | |
12119 | } >conf$$subs.sh || | |
12120 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12121 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
12122 | ac_delim='%!_!# ' | |
12123 | for ac_last_try in false false false false false :; do | |
12124 | . ./conf$$subs.sh || | |
12125 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12126 | ||
12127 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12128 | if test $ac_delim_n = $ac_delim_num; then | |
12129 | break | |
12130 | elif $ac_last_try; then | |
12131 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12132 | else | |
12133 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12134 | fi | |
12135 | done | |
12136 | rm -f conf$$subs.sh | |
77008252 | 12137 | |
5213506e RW |
12138 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12139 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
77008252 | 12140 | _ACEOF |
5213506e RW |
12141 | sed -n ' |
12142 | h | |
12143 | s/^/S["/; s/!.*/"]=/ | |
12144 | p | |
12145 | g | |
12146 | s/^[^!]*!// | |
12147 | :repl | |
12148 | t repl | |
12149 | s/'"$ac_delim"'$// | |
12150 | t delim | |
12151 | :nl | |
12152 | h | |
12153 | s/\(.\{148\}\).*/\1/ | |
12154 | t more1 | |
12155 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12156 | p | |
12157 | n | |
12158 | b repl | |
12159 | :more1 | |
12160 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12161 | p | |
12162 | g | |
12163 | s/.\{148\}// | |
12164 | t nl | |
12165 | :delim | |
12166 | h | |
12167 | s/\(.\{148\}\).*/\1/ | |
12168 | t more2 | |
12169 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12170 | p | |
12171 | b | |
12172 | :more2 | |
12173 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12174 | p | |
12175 | g | |
12176 | s/.\{148\}// | |
12177 | t delim | |
12178 | ' <conf$$subs.awk | sed ' | |
12179 | /^[^""]/{ | |
12180 | N | |
12181 | s/\n// | |
12182 | } | |
12183 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12184 | rm -f conf$$subs.awk | |
12185 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12186 | _ACAWK | |
12187 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
12188 | for (key in S) S_is_set[key] = 1 | |
12189 | FS = "\a" | |
12190 | ||
12191 | } | |
12192 | { | |
12193 | line = $ 0 | |
12194 | nfields = split(line, field, "@") | |
12195 | substed = 0 | |
12196 | len = length(field[1]) | |
12197 | for (i = 2; i < nfields; i++) { | |
12198 | key = field[i] | |
12199 | keylen = length(key) | |
12200 | if (S_is_set[key]) { | |
12201 | value = S[key] | |
12202 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12203 | len += length(value) + length(field[++i]) | |
12204 | substed = 1 | |
12205 | } else | |
12206 | len += 1 + keylen | |
12207 | } | |
77008252 | 12208 | |
5213506e RW |
12209 | print line |
12210 | } | |
77008252 | 12211 | |
5213506e RW |
12212 | _ACAWK |
12213 | _ACEOF | |
12214 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12215 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12216 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12217 | else | |
12218 | cat | |
12219 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
12220 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
12221 | _ACEOF | |
12222 | ||
12223 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
12224 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12225 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12226 | # (actually we leave an empty line to preserve line numbers). | |
12227 | if test "x$srcdir" = x.; then | |
12228 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12229 | s/:*\$(srcdir):*/:/ | |
12230 | s/:*\${srcdir}:*/:/ | |
12231 | s/:*@srcdir@:*/:/ | |
12232 | s/^\([^=]*=[ ]*\):*/\1/ | |
12233 | s/:*$// | |
12234 | s/^[^=]*=[ ]*$// | |
12235 | }' | |
12236 | fi | |
77008252 | 12237 | |
5213506e RW |
12238 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12239 | fi # test -n "$CONFIG_FILES" | |
77008252 | 12240 | |
5213506e RW |
12241 | # Set up the scripts for CONFIG_HEADERS section. |
12242 | # No need to generate them if there are no CONFIG_HEADERS. | |
12243 | # This happens for instance with `./config.status Makefile'. | |
12244 | if test -n "$CONFIG_HEADERS"; then | |
12245 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
12246 | BEGIN { | |
77008252 JJ |
12247 | _ACEOF |
12248 | ||
5213506e RW |
12249 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
12250 | # here-document in config.status, that substitutes the proper values into | |
12251 | # config.h.in to produce config.h. | |
12252 | ||
12253 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
12254 | # handling of long lines. | |
12255 | ac_delim='%!_!# ' | |
12256 | for ac_last_try in false false :; do | |
12257 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
12258 | if test -z "$ac_t"; then | |
12259 | break | |
12260 | elif $ac_last_try; then | |
12261 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
12262 | else | |
12263 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
77008252 | 12264 | fi |
5213506e | 12265 | done |
77008252 | 12266 | |
5213506e RW |
12267 | # For the awk script, D is an array of macro values keyed by name, |
12268 | # likewise P contains macro parameters if any. Preserve backslash | |
12269 | # newline sequences. | |
12270 | ||
12271 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12272 | sed -n ' | |
12273 | s/.\{148\}/&'"$ac_delim"'/g | |
12274 | t rset | |
12275 | :rset | |
12276 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
12277 | t def | |
12278 | d | |
12279 | :def | |
12280 | s/\\$// | |
12281 | t bsnl | |
12282 | s/["\\]/\\&/g | |
12283 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12284 | D["\1"]=" \3"/p | |
12285 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
12286 | d | |
12287 | :bsnl | |
12288 | s/["\\]/\\&/g | |
12289 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12290 | D["\1"]=" \3\\\\\\n"\\/p | |
12291 | t cont | |
12292 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
12293 | t cont | |
12294 | d | |
12295 | :cont | |
12296 | n | |
12297 | s/.\{148\}/&'"$ac_delim"'/g | |
12298 | t clear | |
12299 | :clear | |
12300 | s/\\$// | |
12301 | t bsnlc | |
12302 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
12303 | d | |
12304 | :bsnlc | |
12305 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
12306 | b cont | |
12307 | ' <confdefs.h | sed ' | |
12308 | s/'"$ac_delim"'/"\\\ | |
12309 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
12310 | ||
12311 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12312 | for (key in D) D_is_set[key] = 1 | |
12313 | FS = "\a" | |
12314 | } | |
12315 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
12316 | line = \$ 0 | |
12317 | split(line, arg, " ") | |
12318 | if (arg[1] == "#") { | |
12319 | defundef = arg[2] | |
12320 | mac1 = arg[3] | |
12321 | } else { | |
12322 | defundef = substr(arg[1], 2) | |
12323 | mac1 = arg[2] | |
12324 | } | |
12325 | split(mac1, mac2, "(") #) | |
12326 | macro = mac2[1] | |
12327 | prefix = substr(line, 1, index(line, defundef) - 1) | |
12328 | if (D_is_set[macro]) { | |
12329 | # Preserve the white space surrounding the "#". | |
12330 | print prefix "define", macro P[macro] D[macro] | |
12331 | next | |
12332 | } else { | |
12333 | # Replace #undef with comments. This is necessary, for example, | |
12334 | # in the case of _POSIX_SOURCE, which is predefined and required | |
12335 | # on some systems where configure will not decide to define it. | |
12336 | if (defundef == "undef") { | |
12337 | print "/*", prefix defundef, macro, "*/" | |
12338 | next | |
12339 | } | |
12340 | } | |
12341 | } | |
12342 | { print } | |
12343 | _ACAWK | |
77008252 | 12344 | _ACEOF |
5213506e RW |
12345 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12346 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
12347 | fi # test -n "$CONFIG_HEADERS" | |
12348 | ||
12349 | ||
12350 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
12351 | shift | |
12352 | for ac_tag | |
12353 | do | |
12354 | case $ac_tag in | |
12355 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12356 | esac | |
12357 | case $ac_mode$ac_tag in | |
12358 | :[FHL]*:*);; | |
12359 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
12360 | :[FH]-) ac_tag=-:-;; | |
12361 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12362 | esac | |
12363 | ac_save_IFS=$IFS | |
12364 | IFS=: | |
12365 | set x $ac_tag | |
12366 | IFS=$ac_save_IFS | |
12367 | shift | |
12368 | ac_file=$1 | |
12369 | shift | |
12370 | ||
12371 | case $ac_mode in | |
12372 | :L) ac_source=$1;; | |
12373 | :[FH]) | |
12374 | ac_file_inputs= | |
12375 | for ac_f | |
12376 | do | |
12377 | case $ac_f in | |
12378 | -) ac_f="$tmp/stdin";; | |
12379 | *) # Look for the file first in the build tree, then in the source tree | |
12380 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12381 | # because $ac_f cannot contain `:'. | |
12382 | test -f "$ac_f" || | |
12383 | case $ac_f in | |
12384 | [\\/$]*) false;; | |
12385 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12386 | esac || | |
12387 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
12388 | esac | |
12389 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
12390 | as_fn_append ac_file_inputs " '$ac_f'" | |
12391 | done | |
12392 | ||
12393 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12394 | # use $as_me), people would be surprised to read: | |
12395 | # /* config.h. Generated by config.status. */ | |
12396 | configure_input='Generated from '` | |
12397 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12398 | `' by configure.' | |
12399 | if test x"$ac_file" != x-; then | |
12400 | configure_input="$ac_file. $configure_input" | |
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
12402 | $as_echo "$as_me: creating $ac_file" >&6;} | |
12403 | fi | |
12404 | # Neutralize special characters interpreted by sed in replacement strings. | |
12405 | case $configure_input in #( | |
12406 | *\&* | *\|* | *\\* ) | |
12407 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
12408 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12409 | *) ac_sed_conf_input=$configure_input;; | |
12410 | esac | |
12411 | ||
12412 | case $ac_tag in | |
12413 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
12414 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
12415 | esac | |
12416 | ;; | |
77008252 JJ |
12417 | esac |
12418 | ||
5213506e | 12419 | ac_dir=`$as_dirname -- "$ac_file" || |
77008252 JJ |
12420 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12421 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12422 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
12423 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
12424 | $as_echo X"$ac_file" | | |
12425 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12426 | s//\1/ | |
12427 | q | |
12428 | } | |
12429 | /^X\(\/\/\)[^/].*/{ | |
12430 | s//\1/ | |
12431 | q | |
12432 | } | |
12433 | /^X\(\/\/\)$/{ | |
12434 | s//\1/ | |
12435 | q | |
12436 | } | |
12437 | /^X\(\/\).*/{ | |
12438 | s//\1/ | |
12439 | q | |
12440 | } | |
12441 | s/.*/./; q'` | |
12442 | as_dir="$ac_dir"; as_fn_mkdir_p | |
77008252 JJ |
12443 | ac_builddir=. |
12444 | ||
5213506e RW |
12445 | case "$ac_dir" in |
12446 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12447 | *) | |
12448 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
12449 | # A ".." for each directory in $ac_dir_suffix. | |
12450 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
12451 | case $ac_top_builddir_sub in | |
12452 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12453 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12454 | esac ;; | |
12455 | esac | |
12456 | ac_abs_top_builddir=$ac_pwd | |
12457 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12458 | # for backward compatibility: | |
12459 | ac_top_builddir=$ac_top_build_prefix | |
77008252 JJ |
12460 | |
12461 | case $srcdir in | |
5213506e | 12462 | .) # We are building in place. |
77008252 | 12463 | ac_srcdir=. |
5213506e RW |
12464 | ac_top_srcdir=$ac_top_builddir_sub |
12465 | ac_abs_top_srcdir=$ac_pwd ;; | |
12466 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
77008252 | 12467 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
12468 | ac_top_srcdir=$srcdir |
12469 | ac_abs_top_srcdir=$srcdir ;; | |
12470 | *) # Relative name. | |
12471 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12472 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12473 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
77008252 | 12474 | esac |
5213506e | 12475 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
77008252 | 12476 | |
77008252 | 12477 | |
5213506e RW |
12478 | case $ac_mode in |
12479 | :F) | |
12480 | # | |
12481 | # CONFIG_FILE | |
12482 | # | |
77008252 JJ |
12483 | |
12484 | case $INSTALL in | |
12485 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 12486 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
77008252 | 12487 | esac |
5213506e RW |
12488 | ac_MKDIR_P=$MKDIR_P |
12489 | case $MKDIR_P in | |
12490 | [\\/$]* | ?:[\\/]* ) ;; | |
12491 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12492 | esac | |
12493 | _ACEOF | |
77008252 | 12494 | |
5213506e RW |
12495 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12496 | # If the template does not know about datarootdir, expand it. | |
12497 | # FIXME: This hack should be removed a few years after 2.60. | |
12498 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12499 | ac_sed_dataroot=' | |
12500 | /datarootdir/ { | |
12501 | p | |
12502 | q | |
12503 | } | |
12504 | /@datadir@/p | |
12505 | /@docdir@/p | |
12506 | /@infodir@/p | |
12507 | /@localedir@/p | |
12508 | /@mandir@/p' | |
12509 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
12510 | *datarootdir*) ac_datarootdir_seen=yes;; | |
12511 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
12512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
12513 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
12514 | _ACEOF | |
12515 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12516 | ac_datarootdir_hack=' | |
12517 | s&@datadir@&$datadir&g | |
12518 | s&@docdir@&$docdir&g | |
12519 | s&@infodir@&$infodir&g | |
12520 | s&@localedir@&$localedir&g | |
12521 | s&@mandir@&$mandir&g | |
12522 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12523 | esac | |
77008252 | 12524 | _ACEOF |
5213506e RW |
12525 | |
12526 | # Neutralize VPATH when `$srcdir' = `.'. | |
12527 | # Shell code in configure.ac might set extrasub. | |
12528 | # FIXME: do we really want to maintain this feature? | |
12529 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12530 | ac_sed_extra="$ac_vpsub | |
77008252 JJ |
12531 | $extrasub |
12532 | _ACEOF | |
5213506e | 12533 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
77008252 JJ |
12534 | :t |
12535 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
12536 | s|@configure_input@|$ac_sed_conf_input|;t t |
12537 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
12538 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
12539 | s&@srcdir@&$ac_srcdir&;t t | |
12540 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12541 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12542 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12543 | s&@builddir@&$ac_builddir&;t t | |
12544 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12545 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12546 | s&@INSTALL@&$ac_INSTALL&;t t | |
12547 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
12548 | $ac_datarootdir_hack | |
12549 | " | |
12550 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
12551 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
12552 | ||
12553 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12554 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12555 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12557 | which seems to be undefined. Please make sure it is defined." >&5 | |
12558 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12559 | which seems to be undefined. Please make sure it is defined." >&2;} | |
12560 | ||
12561 | rm -f "$tmp/stdin" | |
77008252 | 12562 | case $ac_file in |
5213506e RW |
12563 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
12564 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
12565 | esac \ | |
12566 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
12567 | ;; | |
12568 | :H) | |
12569 | # | |
12570 | # CONFIG_HEADER | |
12571 | # | |
77008252 | 12572 | if test x"$ac_file" != x-; then |
5213506e RW |
12573 | { |
12574 | $as_echo "/* $configure_input */" \ | |
12575 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
12576 | } >"$tmp/config.h" \ | |
12577 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
12578 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
12580 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
77008252 | 12581 | else |
5213506e RW |
12582 | rm -f "$ac_file" |
12583 | mv "$tmp/config.h" "$ac_file" \ | |
12584 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
77008252 JJ |
12585 | fi |
12586 | else | |
5213506e RW |
12587 | $as_echo "/* $configure_input */" \ |
12588 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
12589 | || as_fn_error "could not create -" "$LINENO" 5 | |
77008252 | 12590 | fi |
5213506e RW |
12591 | # Compute "$ac_file"'s index in $config_headers. |
12592 | _am_arg="$ac_file" | |
77008252 JJ |
12593 | _am_stamp_count=1 |
12594 | for _am_header in $config_headers :; do | |
12595 | case $_am_header in | |
5213506e | 12596 | $_am_arg | $_am_arg:* ) |
77008252 JJ |
12597 | break ;; |
12598 | * ) | |
12599 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
12600 | esac | |
12601 | done | |
5213506e RW |
12602 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
12603 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12604 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
12605 | X"$_am_arg" : 'X\(//\)$' \| \ | |
12606 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
12607 | $as_echo X"$_am_arg" | | |
12608 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12609 | s//\1/ | |
12610 | q | |
12611 | } | |
12612 | /^X\(\/\/\)[^/].*/{ | |
12613 | s//\1/ | |
12614 | q | |
12615 | } | |
12616 | /^X\(\/\/\)$/{ | |
12617 | s//\1/ | |
12618 | q | |
12619 | } | |
12620 | /^X\(\/\).*/{ | |
12621 | s//\1/ | |
12622 | q | |
12623 | } | |
12624 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
12625 | ;; | |
77008252 | 12626 | |
5213506e RW |
12627 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
12628 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
12629 | ;; | |
12630 | esac | |
77008252 JJ |
12631 | |
12632 | ||
5213506e RW |
12633 | case $ac_file$ac_mode in |
12634 | "default-1":C) | |
77008252 JJ |
12635 | # Only add multilib support code if we just rebuilt the top-level |
12636 | # Makefile. | |
12637 | case " $CONFIG_FILES " in | |
12638 | *" Makefile "*) | |
12639 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
12640 | ;; | |
12641 | esac ;; | |
5213506e RW |
12642 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
12643 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
12644 | # are listed without --file. Let's play safe and only enable the eval | |
12645 | # if we detect the quoting. | |
12646 | case $CONFIG_FILES in | |
12647 | *\'*) eval set x "$CONFIG_FILES" ;; | |
12648 | *) set x $CONFIG_FILES ;; | |
12649 | esac | |
12650 | shift | |
12651 | for mf | |
12652 | do | |
12653 | # Strip MF so we end up with the name of the file. | |
12654 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
12655 | # Check whether this is an Automake generated Makefile or not. | |
12656 | # We used to match only the files named `Makefile.in', but | |
12657 | # some people rename them; so instead we look at the file content. | |
12658 | # Grep'ing the first line is not enough: some people post-process | |
12659 | # each Makefile.in and add a new line on top of each file to say so. | |
12660 | # Grep'ing the whole file is not good either: AIX grep has a line | |
12661 | # limit of 2048, but all sed's we know have understand at least 4000. | |
12662 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
12663 | dirpart=`$as_dirname -- "$mf" || | |
77008252 JJ |
12664 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12665 | X"$mf" : 'X\(//\)[^/]' \| \ | |
12666 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
12667 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
12668 | $as_echo X"$mf" | | |
12669 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12670 | s//\1/ | |
12671 | q | |
12672 | } | |
12673 | /^X\(\/\/\)[^/].*/{ | |
12674 | s//\1/ | |
12675 | q | |
12676 | } | |
12677 | /^X\(\/\/\)$/{ | |
12678 | s//\1/ | |
12679 | q | |
12680 | } | |
12681 | /^X\(\/\).*/{ | |
12682 | s//\1/ | |
12683 | q | |
12684 | } | |
12685 | s/.*/./; q'` | |
12686 | else | |
12687 | continue | |
12688 | fi | |
12689 | # Extract the definition of DEPDIR, am__include, and am__quote | |
12690 | # from the Makefile without running `make'. | |
12691 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
12692 | test -z "$DEPDIR" && continue | |
12693 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
12694 | test -z "am__include" && continue | |
12695 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
12696 | # When using ansi2knr, U may be empty or an underscore; expand it | |
12697 | U=`sed -n 's/^U = //p' < "$mf"` | |
12698 | # Find all dependency output files, they are included files with | |
12699 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
12700 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
12701 | # expansion. | |
12702 | for file in `sed -n " | |
12703 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
12704 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
12705 | # Make sure the directory exists. | |
12706 | test -f "$dirpart/$file" && continue | |
12707 | fdir=`$as_dirname -- "$file" || | |
77008252 JJ |
12708 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12709 | X"$file" : 'X\(//\)[^/]' \| \ | |
12710 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
12711 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
12712 | $as_echo X"$file" | | |
12713 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12714 | s//\1/ | |
12715 | q | |
12716 | } | |
12717 | /^X\(\/\/\)[^/].*/{ | |
12718 | s//\1/ | |
12719 | q | |
12720 | } | |
12721 | /^X\(\/\/\)$/{ | |
12722 | s//\1/ | |
12723 | q | |
12724 | } | |
12725 | /^X\(\/\).*/{ | |
12726 | s//\1/ | |
12727 | q | |
12728 | } | |
12729 | s/.*/./; q'` | |
12730 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
12731 | # echo "creating $dirpart/$file" | |
12732 | echo '# dummy' > "$dirpart/$file" | |
77008252 | 12733 | done |
77008252 | 12734 | done |
5213506e | 12735 | } |
1cf3d07d | 12736 | ;; |
5213506e | 12737 | "libtool":C) |
1cf3d07d SE |
12738 | |
12739 | # See if we are running on zsh, and set the options which allow our | |
12740 | # commands through without removal of \ escapes. | |
12741 | if test -n "${ZSH_VERSION+set}" ; then | |
12742 | setopt NO_GLOB_SUBST | |
12743 | fi | |
12744 | ||
12745 | cfgfile="${ofile}T" | |
12746 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
12747 | $RM "$cfgfile" | |
12748 | ||
12749 | cat <<_LT_EOF >> "$cfgfile" | |
12750 | #! $SHELL | |
12751 | ||
12752 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
77a3eb61 | 12753 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
12754 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
12755 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
12756 | # | |
77a3eb61 | 12757 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 12758 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
77a3eb61 | 12759 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 12760 | # |
77a3eb61 | 12761 | # This file is part of GNU Libtool. |
1cf3d07d | 12762 | # |
77a3eb61 PG |
12763 | # GNU Libtool is free software; you can redistribute it and/or |
12764 | # modify it under the terms of the GNU General Public License as | |
12765 | # published by the Free Software Foundation; either version 2 of | |
12766 | # the License, or (at your option) any later version. | |
1cf3d07d | 12767 | # |
77a3eb61 PG |
12768 | # As a special exception to the GNU General Public License, |
12769 | # if you distribute this file as part of a program or library that | |
12770 | # is built using GNU Libtool, you may include this file under the | |
12771 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 12772 | # |
77a3eb61 PG |
12773 | # GNU Libtool is distributed in the hope that it will be useful, |
12774 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12775 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12776 | # GNU General Public License for more details. | |
1cf3d07d | 12777 | # |
77a3eb61 PG |
12778 | # You should have received a copy of the GNU General Public License |
12779 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
12780 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
12781 | # obtained by writing to the Free Software Foundation, Inc., | |
12782 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
12783 | |
12784 | ||
12785 | # The names of the tagged configurations supported by this script. | |
12786 | available_tags="" | |
12787 | ||
12788 | # ### BEGIN LIBTOOL CONFIG | |
12789 | ||
12790 | # Which release of libtool.m4 was used? | |
12791 | macro_version=$macro_version | |
12792 | macro_revision=$macro_revision | |
12793 | ||
12794 | # Whether or not to build shared libraries. | |
12795 | build_libtool_libs=$enable_shared | |
12796 | ||
12797 | # Whether or not to build static libraries. | |
12798 | build_old_libs=$enable_static | |
12799 | ||
12800 | # What type of objects to build. | |
12801 | pic_mode=$pic_mode | |
12802 | ||
12803 | # Whether or not to optimize for fast installation. | |
12804 | fast_install=$enable_fast_install | |
12805 | ||
43e02a8a RW |
12806 | # Shell to use when invoking shell scripts. |
12807 | SHELL=$lt_SHELL | |
12808 | ||
12809 | # An echo program that protects backslashes. | |
12810 | ECHO=$lt_ECHO | |
12811 | ||
1cf3d07d SE |
12812 | # The host system. |
12813 | host_alias=$host_alias | |
12814 | host=$host | |
12815 | host_os=$host_os | |
12816 | ||
12817 | # The build system. | |
12818 | build_alias=$build_alias | |
12819 | build=$build | |
12820 | build_os=$build_os | |
12821 | ||
12822 | # A sed program that does not truncate output. | |
12823 | SED=$lt_SED | |
12824 | ||
12825 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
12826 | Xsed="\$SED -e 1s/^X//" | |
12827 | ||
12828 | # A grep program that handles long lines. | |
12829 | GREP=$lt_GREP | |
12830 | ||
12831 | # An ERE matcher. | |
12832 | EGREP=$lt_EGREP | |
12833 | ||
12834 | # A literal string matcher. | |
12835 | FGREP=$lt_FGREP | |
12836 | ||
12837 | # A BSD- or MS-compatible name lister. | |
12838 | NM=$lt_NM | |
12839 | ||
12840 | # Whether we need soft or hard links. | |
12841 | LN_S=$lt_LN_S | |
12842 | ||
12843 | # What is the maximum length of a command? | |
12844 | max_cmd_len=$max_cmd_len | |
12845 | ||
12846 | # Object file suffix (normally "o"). | |
12847 | objext=$ac_objext | |
12848 | ||
12849 | # Executable file suffix (normally ""). | |
12850 | exeext=$exeext | |
12851 | ||
12852 | # whether the shell understands "unset". | |
12853 | lt_unset=$lt_unset | |
12854 | ||
12855 | # turn spaces into newlines. | |
12856 | SP2NL=$lt_lt_SP2NL | |
12857 | ||
12858 | # turn newlines into spaces. | |
12859 | NL2SP=$lt_lt_NL2SP | |
12860 | ||
77a3eb61 PG |
12861 | # An object symbol dumper. |
12862 | OBJDUMP=$lt_OBJDUMP | |
12863 | ||
1cf3d07d SE |
12864 | # Method to check whether dependent libraries are shared objects. |
12865 | deplibs_check_method=$lt_deplibs_check_method | |
12866 | ||
12867 | # Command to use when deplibs_check_method == "file_magic". | |
12868 | file_magic_cmd=$lt_file_magic_cmd | |
12869 | ||
12870 | # The archiver. | |
12871 | AR=$lt_AR | |
12872 | AR_FLAGS=$lt_AR_FLAGS | |
12873 | ||
12874 | # A symbol stripping program. | |
12875 | STRIP=$lt_STRIP | |
12876 | ||
12877 | # Commands used to install an old-style archive. | |
12878 | RANLIB=$lt_RANLIB | |
12879 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
12880 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
12881 | ||
43e02a8a RW |
12882 | # Whether to use a lock for old archive extraction. |
12883 | lock_old_archive_extraction=$lock_old_archive_extraction | |
12884 | ||
1cf3d07d SE |
12885 | # A C compiler. |
12886 | LTCC=$lt_CC | |
12887 | ||
12888 | # LTCC compiler flags. | |
12889 | LTCFLAGS=$lt_CFLAGS | |
12890 | ||
12891 | # Take the output of nm and produce a listing of raw symbols and C names. | |
12892 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
12893 | ||
12894 | # Transform the output of nm in a proper C declaration. | |
12895 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
12896 | ||
12897 | # Transform the output of nm in a C name address pair. | |
12898 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
12899 | ||
77a3eb61 PG |
12900 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
12901 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
12902 | ||
1cf3d07d SE |
12903 | # The name of the directory that contains temporary libtool files. |
12904 | objdir=$objdir | |
12905 | ||
1cf3d07d SE |
12906 | # Used to examine libraries when file_magic_cmd begins with "file". |
12907 | MAGIC_CMD=$MAGIC_CMD | |
12908 | ||
12909 | # Must we lock files when doing compilation? | |
12910 | need_locks=$lt_need_locks | |
12911 | ||
77a3eb61 PG |
12912 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
12913 | DSYMUTIL=$lt_DSYMUTIL | |
12914 | ||
12915 | # Tool to change global to local symbols on Mac OS X. | |
12916 | NMEDIT=$lt_NMEDIT | |
12917 | ||
12918 | # Tool to manipulate fat objects and archives on Mac OS X. | |
12919 | LIPO=$lt_LIPO | |
12920 | ||
12921 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
12922 | OTOOL=$lt_OTOOL | |
12923 | ||
12924 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
12925 | OTOOL64=$lt_OTOOL64 | |
12926 | ||
1cf3d07d SE |
12927 | # Old archive suffix (normally "a"). |
12928 | libext=$libext | |
12929 | ||
12930 | # Shared library suffix (normally ".so"). | |
12931 | shrext_cmds=$lt_shrext_cmds | |
12932 | ||
12933 | # The commands to extract the exported symbol list from a shared archive. | |
12934 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
12935 | ||
12936 | # Variables whose values should be saved in libtool wrapper scripts and | |
12937 | # restored at link time. | |
12938 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
12939 | ||
12940 | # Do we need the "lib" prefix for modules? | |
12941 | need_lib_prefix=$need_lib_prefix | |
12942 | ||
12943 | # Do we need a version for libraries? | |
12944 | need_version=$need_version | |
12945 | ||
12946 | # Library versioning type. | |
12947 | version_type=$version_type | |
12948 | ||
12949 | # Shared library runtime path variable. | |
12950 | runpath_var=$runpath_var | |
12951 | ||
12952 | # Shared library path variable. | |
12953 | shlibpath_var=$shlibpath_var | |
12954 | ||
12955 | # Is shlibpath searched before the hard-coded library search path? | |
12956 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
12957 | ||
12958 | # Format of library name prefix. | |
12959 | libname_spec=$lt_libname_spec | |
12960 | ||
12961 | # List of archive names. First name is the real one, the rest are links. | |
12962 | # The last name is the one that the linker finds with -lNAME | |
12963 | library_names_spec=$lt_library_names_spec | |
12964 | ||
12965 | # The coded name of the library, if different from the real name. | |
12966 | soname_spec=$lt_soname_spec | |
12967 | ||
43e02a8a RW |
12968 | # Permission mode override for installation of shared libraries. |
12969 | install_override_mode=$lt_install_override_mode | |
12970 | ||
1cf3d07d SE |
12971 | # Command to use after installation of a shared archive. |
12972 | postinstall_cmds=$lt_postinstall_cmds | |
12973 | ||
12974 | # Command to use after uninstallation of a shared archive. | |
12975 | postuninstall_cmds=$lt_postuninstall_cmds | |
12976 | ||
12977 | # Commands used to finish a libtool library installation in a directory. | |
12978 | finish_cmds=$lt_finish_cmds | |
12979 | ||
12980 | # As "finish_cmds", except a single script fragment to be evaled but | |
12981 | # not shown. | |
12982 | finish_eval=$lt_finish_eval | |
12983 | ||
12984 | # Whether we should hardcode library paths into libraries. | |
12985 | hardcode_into_libs=$hardcode_into_libs | |
12986 | ||
12987 | # Compile-time system search path for libraries. | |
12988 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
12989 | ||
12990 | # Run-time system search path for libraries. | |
12991 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
12992 | ||
12993 | # Whether dlopen is supported. | |
12994 | dlopen_support=$enable_dlopen | |
12995 | ||
12996 | # Whether dlopen of programs is supported. | |
12997 | dlopen_self=$enable_dlopen_self | |
12998 | ||
12999 | # Whether dlopen of statically linked programs is supported. | |
13000 | dlopen_self_static=$enable_dlopen_self_static | |
13001 | ||
13002 | # Commands to strip libraries. | |
13003 | old_striplib=$lt_old_striplib | |
13004 | striplib=$lt_striplib | |
13005 | ||
13006 | ||
13007 | # The linker used to build libraries. | |
13008 | LD=$lt_LD | |
13009 | ||
43e02a8a RW |
13010 | # How to create reloadable object files. |
13011 | reload_flag=$lt_reload_flag | |
13012 | reload_cmds=$lt_reload_cmds | |
13013 | ||
1cf3d07d SE |
13014 | # Commands used to build an old-style archive. |
13015 | old_archive_cmds=$lt_old_archive_cmds | |
13016 | ||
13017 | # A language specific compiler. | |
13018 | CC=$lt_compiler | |
13019 | ||
13020 | # Is the compiler the GNU compiler? | |
13021 | with_gcc=$GCC | |
13022 | ||
13023 | # Compiler flag to turn off builtin functions. | |
13024 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
13025 | ||
13026 | # How to pass a linker flag through the compiler. | |
13027 | wl=$lt_lt_prog_compiler_wl | |
13028 | ||
13029 | # Additional compiler flags for building library objects. | |
13030 | pic_flag=$lt_lt_prog_compiler_pic | |
13031 | ||
13032 | # Compiler flag to prevent dynamic linking. | |
13033 | link_static_flag=$lt_lt_prog_compiler_static | |
13034 | ||
13035 | # Does compiler simultaneously support -c and -o options? | |
13036 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13037 | ||
13038 | # Whether or not to add -lc for building shared libraries. | |
13039 | build_libtool_need_lc=$archive_cmds_need_lc | |
13040 | ||
13041 | # Whether or not to disallow shared libs when runtime libs are static. | |
13042 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13043 | ||
13044 | # Compiler flag to allow reflexive dlopens. | |
13045 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
13046 | ||
13047 | # Compiler flag to generate shared objects directly from archives. | |
13048 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
13049 | ||
13050 | # Whether the compiler copes with passing no objects directly. | |
13051 | compiler_needs_object=$lt_compiler_needs_object | |
13052 | ||
13053 | # Create an old-style archive from a shared archive. | |
13054 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
13055 | ||
13056 | # Create a temporary old-style archive to link instead of a shared archive. | |
13057 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
13058 | ||
13059 | # Commands used to build a shared archive. | |
13060 | archive_cmds=$lt_archive_cmds | |
13061 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
13062 | ||
13063 | # Commands used to build a loadable module if different from building | |
13064 | # a shared archive. | |
13065 | module_cmds=$lt_module_cmds | |
13066 | module_expsym_cmds=$lt_module_expsym_cmds | |
13067 | ||
13068 | # Whether we are building with GNU ld or not. | |
13069 | with_gnu_ld=$lt_with_gnu_ld | |
13070 | ||
13071 | # Flag that allows shared libraries with undefined symbols to be built. | |
13072 | allow_undefined_flag=$lt_allow_undefined_flag | |
13073 | ||
13074 | # Flag that enforces no undefined symbols. | |
13075 | no_undefined_flag=$lt_no_undefined_flag | |
13076 | ||
13077 | # Flag to hardcode \$libdir into a binary during linking. | |
13078 | # This must work even if \$libdir does not exist | |
13079 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
13080 | ||
13081 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
13082 | # during linking. This must work even if \$libdir does not exist. | |
13083 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
13084 | ||
13085 | # Whether we need a single "-rpath" flag with a separated argument. | |
13086 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
13087 | ||
13088 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13089 | # DIR into the resulting binary. | |
13090 | hardcode_direct=$hardcode_direct | |
13091 | ||
13092 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13093 | # DIR into the resulting binary and the resulting library dependency is | |
13094 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13095 | # library is relocated. | |
13096 | hardcode_direct_absolute=$hardcode_direct_absolute | |
13097 | ||
13098 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
13099 | # into the resulting binary. | |
13100 | hardcode_minus_L=$hardcode_minus_L | |
13101 | ||
13102 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
13103 | # into the resulting binary. | |
13104 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
13105 | ||
13106 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
13107 | # into the library and all subsequent libraries and executables linked | |
13108 | # against it. | |
13109 | hardcode_automatic=$hardcode_automatic | |
13110 | ||
13111 | # Set to yes if linker adds runtime paths of dependent libraries | |
13112 | # to runtime path list. | |
13113 | inherit_rpath=$inherit_rpath | |
13114 | ||
13115 | # Whether libtool must link a program against all its dependency libraries. | |
13116 | link_all_deplibs=$link_all_deplibs | |
13117 | ||
13118 | # Fix the shell variable \$srcfile for the compiler. | |
13119 | fix_srcfile_path=$lt_fix_srcfile_path | |
13120 | ||
13121 | # Set to "yes" if exported symbols are required. | |
13122 | always_export_symbols=$always_export_symbols | |
13123 | ||
13124 | # The commands to list exported symbols. | |
13125 | export_symbols_cmds=$lt_export_symbols_cmds | |
13126 | ||
13127 | # Symbols that should not be listed in the preloaded symbols. | |
13128 | exclude_expsyms=$lt_exclude_expsyms | |
13129 | ||
13130 | # Symbols that must always be exported. | |
13131 | include_expsyms=$lt_include_expsyms | |
13132 | ||
13133 | # Commands necessary for linking programs (against libraries) with templates. | |
13134 | prelink_cmds=$lt_prelink_cmds | |
13135 | ||
13136 | # Specify filename containing input files. | |
13137 | file_list_spec=$lt_file_list_spec | |
13138 | ||
13139 | # How to hardcode a shared library path into an executable. | |
13140 | hardcode_action=$hardcode_action | |
13141 | ||
13142 | # ### END LIBTOOL CONFIG | |
13143 | ||
13144 | _LT_EOF | |
13145 | ||
13146 | case $host_os in | |
13147 | aix3*) | |
13148 | cat <<\_LT_EOF >> "$cfgfile" | |
13149 | # AIX sometimes has problems with the GCC collect2 program. For some | |
13150 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13151 | # vanish in a puff of smoke. | |
13152 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
13153 | COLLECT_NAMES= | |
13154 | export COLLECT_NAMES | |
13155 | fi | |
13156 | _LT_EOF | |
13157 | ;; | |
13158 | esac | |
13159 | ||
13160 | ||
13161 | ltmain="$ac_aux_dir/ltmain.sh" | |
13162 | ||
13163 | ||
13164 | # We use sed instead of cat because bash on DJGPP gets confused if | |
13165 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13166 | # text mode, it properly converts lines to CR/LF. This bash problem | |
13167 | # is reportedly fixed, but why not run on old versions too? | |
13168 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
13169 | || (rm -f "$cfgfile"; exit 1) | |
13170 | ||
13171 | case $xsi_shell in | |
13172 | yes) | |
13173 | cat << \_LT_EOF >> "$cfgfile" | |
77a3eb61 | 13174 | |
1cf3d07d SE |
13175 | # func_dirname file append nondir_replacement |
13176 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13177 | # otherwise set result to NONDIR_REPLACEMENT. | |
13178 | func_dirname () | |
13179 | { | |
13180 | case ${1} in | |
13181 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13182 | * ) func_dirname_result="${3}" ;; | |
13183 | esac | |
13184 | } | |
13185 | ||
13186 | # func_basename file | |
13187 | func_basename () | |
13188 | { | |
13189 | func_basename_result="${1##*/}" | |
13190 | } | |
13191 | ||
77a3eb61 PG |
13192 | # func_dirname_and_basename file append nondir_replacement |
13193 | # perform func_basename and func_dirname in a single function | |
13194 | # call: | |
13195 | # dirname: Compute the dirname of FILE. If nonempty, | |
13196 | # add APPEND to the result, otherwise set result | |
13197 | # to NONDIR_REPLACEMENT. | |
13198 | # value returned in "$func_dirname_result" | |
13199 | # basename: Compute filename of FILE. | |
13200 | # value retuned in "$func_basename_result" | |
13201 | # Implementation must be kept synchronized with func_dirname | |
13202 | # and func_basename. For efficiency, we do not delegate to | |
13203 | # those functions but instead duplicate the functionality here. | |
13204 | func_dirname_and_basename () | |
13205 | { | |
13206 | case ${1} in | |
13207 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13208 | * ) func_dirname_result="${3}" ;; | |
13209 | esac | |
13210 | func_basename_result="${1##*/}" | |
13211 | } | |
13212 | ||
1cf3d07d SE |
13213 | # func_stripname prefix suffix name |
13214 | # strip PREFIX and SUFFIX off of NAME. | |
13215 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13216 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13217 | # dot (in which case that matches only a dot). | |
13218 | func_stripname () | |
13219 | { | |
13220 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
13221 | # positional parameters, so assign one to ordinary parameter first. | |
13222 | func_stripname_result=${3} | |
13223 | func_stripname_result=${func_stripname_result#"${1}"} | |
13224 | func_stripname_result=${func_stripname_result%"${2}"} | |
13225 | } | |
13226 | ||
13227 | # func_opt_split | |
13228 | func_opt_split () | |
13229 | { | |
13230 | func_opt_split_opt=${1%%=*} | |
13231 | func_opt_split_arg=${1#*=} | |
13232 | } | |
13233 | ||
13234 | # func_lo2o object | |
13235 | func_lo2o () | |
13236 | { | |
13237 | case ${1} in | |
13238 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
13239 | *) func_lo2o_result=${1} ;; | |
13240 | esac | |
13241 | } | |
77a3eb61 PG |
13242 | |
13243 | # func_xform libobj-or-source | |
13244 | func_xform () | |
13245 | { | |
13246 | func_xform_result=${1%.*}.lo | |
13247 | } | |
13248 | ||
13249 | # func_arith arithmetic-term... | |
13250 | func_arith () | |
13251 | { | |
13252 | func_arith_result=$(( $* )) | |
13253 | } | |
13254 | ||
13255 | # func_len string | |
13256 | # STRING may not start with a hyphen. | |
13257 | func_len () | |
13258 | { | |
13259 | func_len_result=${#1} | |
13260 | } | |
13261 | ||
1cf3d07d SE |
13262 | _LT_EOF |
13263 | ;; | |
13264 | *) # Bourne compatible functions. | |
13265 | cat << \_LT_EOF >> "$cfgfile" | |
77a3eb61 | 13266 | |
1cf3d07d SE |
13267 | # func_dirname file append nondir_replacement |
13268 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13269 | # otherwise set result to NONDIR_REPLACEMENT. | |
13270 | func_dirname () | |
13271 | { | |
13272 | # Extract subdirectory from the argument. | |
43e02a8a | 13273 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
13274 | if test "X$func_dirname_result" = "X${1}"; then |
13275 | func_dirname_result="${3}" | |
13276 | else | |
13277 | func_dirname_result="$func_dirname_result${2}" | |
13278 | fi | |
13279 | } | |
13280 | ||
13281 | # func_basename file | |
13282 | func_basename () | |
13283 | { | |
43e02a8a | 13284 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
13285 | } |
13286 | ||
77a3eb61 | 13287 | |
1cf3d07d SE |
13288 | # func_stripname prefix suffix name |
13289 | # strip PREFIX and SUFFIX off of NAME. | |
13290 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13291 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13292 | # dot (in which case that matches only a dot). | |
13293 | # func_strip_suffix prefix name | |
13294 | func_stripname () | |
13295 | { | |
13296 | case ${2} in | |
43e02a8a RW |
13297 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
13298 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
13299 | esac |
13300 | } | |
13301 | ||
13302 | # sed scripts: | |
13303 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
13304 | my_sed_long_arg='1s/^-[^=]*=//' | |
13305 | ||
13306 | # func_opt_split | |
13307 | func_opt_split () | |
13308 | { | |
43e02a8a RW |
13309 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
13310 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
13311 | } |
13312 | ||
13313 | # func_lo2o object | |
13314 | func_lo2o () | |
13315 | { | |
43e02a8a | 13316 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 13317 | } |
77a3eb61 PG |
13318 | |
13319 | # func_xform libobj-or-source | |
13320 | func_xform () | |
13321 | { | |
43e02a8a | 13322 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
77a3eb61 PG |
13323 | } |
13324 | ||
13325 | # func_arith arithmetic-term... | |
13326 | func_arith () | |
13327 | { | |
13328 | func_arith_result=`expr "$@"` | |
13329 | } | |
13330 | ||
13331 | # func_len string | |
13332 | # STRING may not start with a hyphen. | |
13333 | func_len () | |
13334 | { | |
13335 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
13336 | } | |
13337 | ||
1cf3d07d SE |
13338 | _LT_EOF |
13339 | esac | |
13340 | ||
13341 | case $lt_shell_append in | |
13342 | yes) | |
13343 | cat << \_LT_EOF >> "$cfgfile" | |
13344 | ||
13345 | # func_append var value | |
13346 | # Append VALUE to the end of shell variable VAR. | |
13347 | func_append () | |
13348 | { | |
13349 | eval "$1+=\$2" | |
13350 | } | |
13351 | _LT_EOF | |
13352 | ;; | |
13353 | *) | |
13354 | cat << \_LT_EOF >> "$cfgfile" | |
13355 | ||
13356 | # func_append var value | |
13357 | # Append VALUE to the end of shell variable VAR. | |
13358 | func_append () | |
13359 | { | |
13360 | eval "$1=\$$1\$2" | |
13361 | } | |
77a3eb61 | 13362 | |
1cf3d07d SE |
13363 | _LT_EOF |
13364 | ;; | |
13365 | esac | |
13366 | ||
13367 | ||
13368 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
13369 | || (rm -f "$cfgfile"; exit 1) | |
13370 | ||
13371 | mv -f "$cfgfile" "$ofile" || | |
13372 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
13373 | chmod +x "$ofile" | |
13374 | ||
77008252 | 13375 | ;; |
5213506e | 13376 | |
77008252 | 13377 | esac |
5213506e | 13378 | done # for ac_tag |
77008252 | 13379 | |
77008252 | 13380 | |
5213506e | 13381 | as_fn_exit 0 |
77008252 | 13382 | _ACEOF |
77008252 JJ |
13383 | ac_clean_files=$ac_clean_files_save |
13384 | ||
5213506e RW |
13385 | test $ac_write_fail = 0 || |
13386 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
13387 | ||
77008252 JJ |
13388 | |
13389 | # configure is writing to config.log, and then calls config.status. | |
13390 | # config.status does its own redirection, appending to config.log. | |
13391 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13392 | # by configure, so config.status won't be able to write to it; its | |
13393 | # output is simply discarded. So we exec the FD to /dev/null, | |
13394 | # effectively closing config.log, so it can be properly (re)opened and | |
13395 | # appended to by config.status. When coming back to configure, we | |
13396 | # need to make the FD available again. | |
13397 | if test "$no_create" != yes; then | |
13398 | ac_cs_success=: | |
13399 | ac_config_status_args= | |
13400 | test "$silent" = yes && | |
13401 | ac_config_status_args="$ac_config_status_args --quiet" | |
13402 | exec 5>/dev/null | |
13403 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13404 | exec 5>>config.log | |
13405 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13406 | # would make configure fail if this is the last instruction. | |
5213506e RW |
13407 | $ac_cs_success || as_fn_exit $? |
13408 | fi | |
13409 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13411 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
77008252 JJ |
13412 | fi |
13413 |