]>
Commit | Line | Data |
---|---|---|
7460295f MG |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
9be467c0 | 3 | # Generated by GNU Autoconf 2.64 for shellinabox 2.10. |
7460295f MG |
4 | # |
5 | # Report bugs to <markus@shellinabox.com>. | |
6 | # | |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
a0673b07 MG |
8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
9 | # Foundation, Inc. | |
10 | # | |
7460295f MG |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
a0673b07 MG |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
3a0490f9 | 16 | |
7460295f MG |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
a0673b07 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
7460295f MG |
20 | emulate sh |
21 | NULLCMD=: | |
33aa8fe1 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7460295f MG |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
a0673b07 MG |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
7460295f | 32 | esac |
7460295f MG |
33 | fi |
34 | ||
35 | ||
33aa8fe1 MG |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
a0673b07 MG |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
33aa8fe1 MG |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
9d758d39 | 56 | else |
33aa8fe1 MG |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
a0673b07 | 60 | case $arg in #( |
33aa8fe1 MG |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
9d758d39 | 69 | fi |
33aa8fe1 MG |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
7460295f MG |
81 | fi |
82 | ||
7460295f MG |
83 | |
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7460295f MG |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
a0673b07 | 92 | case $0 in #(( |
7460295f MG |
93 | *[\\/]* ) as_myself=$0 ;; |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
a0673b07 MG |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
100 | done | |
7460295f MG |
101 | IFS=$as_save_IFS |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
33aa8fe1 | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
a0673b07 | 112 | exit 1 |
7460295f MG |
113 | fi |
114 | ||
a0673b07 MG |
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7460295f MG |
122 | done |
123 | PS1='$ ' | |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
33aa8fe1 MG |
128 | LC_ALL=C |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
7460295f | 132 | |
a0673b07 MG |
133 | # CDPATH. |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
174 | test \$(( 1 + 1 )) = 2 || exit 1" | |
175 | if (eval "$as_required") 2>/dev/null; then : | |
176 | as_have_required=yes | |
177 | else | |
178 | as_have_required=no | |
179 | fi | |
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | ||
182 | else | |
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 | as_found=false | |
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 | do | |
187 | IFS=$as_save_IFS | |
188 | test -z "$as_dir" && as_dir=. | |
189 | as_found=: | |
190 | case $as_dir in #( | |
191 | /*) | |
192 | for as_base in sh bash ksh sh5; do | |
193 | # Try only shells that exist, to save several forks. | |
194 | as_shell=$as_dir/$as_base | |
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | CONFIG_SHELL=$as_shell as_have_required=yes | |
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | break 2 | |
200 | fi | |
201 | fi | |
202 | done;; | |
203 | esac | |
204 | as_found=false | |
205 | done | |
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$SHELL as_have_required=yes | |
209 | fi; } | |
210 | IFS=$as_save_IFS | |
211 | ||
212 | ||
213 | if test "x$CONFIG_SHELL" != x; then : | |
214 | # We cannot yet assume a decent shell, so we have to provide a | |
215 | # neutralization value for shells without unset; and this also | |
216 | # works around shells that cannot unset nonexistent variables. | |
217 | BASH_ENV=/dev/null | |
218 | ENV=/dev/null | |
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 | export CONFIG_SHELL | |
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 | fi | |
223 | ||
224 | if test x$as_have_required = xno; then : | |
225 | $as_echo "$0: This script requires a shell more modern than all" | |
226 | $as_echo "$0: the shells that I found on your system." | |
227 | if test x${ZSH_VERSION+set} = xset ; then | |
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 | else | |
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
232 | $0: markus@shellinabox.com about your system, including any | |
233 | $0: error possibly output before this message. Then install | |
234 | $0: a modern shell, or manually run the script under such a | |
235 | $0: shell if you do have one." | |
236 | fi | |
237 | exit 1 | |
238 | fi | |
239 | fi | |
240 | fi | |
241 | SHELL=${CONFIG_SHELL-/bin/sh} | |
242 | export SHELL | |
243 | # Unset more variables known to interfere with behavior of common tools. | |
244 | CLICOLOR_FORCE= GREP_OPTIONS= | |
245 | unset CLICOLOR_FORCE GREP_OPTIONS | |
246 | ||
247 | ## --------------------- ## | |
248 | ## M4sh Shell Functions. ## | |
249 | ## --------------------- ## | |
250 | # as_fn_unset VAR | |
251 | # --------------- | |
252 | # Portably unset VAR. | |
253 | as_fn_unset () | |
254 | { | |
255 | { eval $1=; unset $1;} | |
256 | } | |
257 | as_unset=as_fn_unset | |
258 | ||
259 | # as_fn_set_status STATUS | |
260 | # ----------------------- | |
261 | # Set $? to STATUS, without forking. | |
262 | as_fn_set_status () | |
263 | { | |
264 | return $1 | |
265 | } # as_fn_set_status | |
266 | ||
267 | # as_fn_exit STATUS | |
268 | # ----------------- | |
269 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
270 | as_fn_exit () | |
271 | { | |
272 | set +e | |
273 | as_fn_set_status $1 | |
274 | exit $1 | |
275 | } # as_fn_exit | |
276 | ||
277 | # as_fn_mkdir_p | |
278 | # ------------- | |
279 | # Create "$as_dir" as a directory, including parents if necessary. | |
280 | as_fn_mkdir_p () | |
281 | { | |
282 | ||
283 | case $as_dir in #( | |
284 | -*) as_dir=./$as_dir;; | |
285 | esac | |
286 | test -d "$as_dir" || eval $as_mkdir_p || { | |
287 | as_dirs= | |
288 | while :; do | |
289 | case $as_dir in #( | |
290 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
291 | *) as_qdir=$as_dir;; | |
292 | esac | |
293 | as_dirs="'$as_qdir' $as_dirs" | |
294 | as_dir=`$as_dirname -- "$as_dir" || | |
295 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
296 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
297 | X"$as_dir" : 'X\(//\)$' \| \ | |
298 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
299 | $as_echo X"$as_dir" | | |
300 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
301 | s//\1/ | |
302 | q | |
303 | } | |
304 | /^X\(\/\/\)[^/].*/{ | |
305 | s//\1/ | |
306 | q | |
307 | } | |
308 | /^X\(\/\/\)$/{ | |
309 | s//\1/ | |
310 | q | |
311 | } | |
312 | /^X\(\/\).*/{ | |
313 | s//\1/ | |
314 | q | |
315 | } | |
316 | s/.*/./; q'` | |
317 | test -d "$as_dir" && break | |
318 | done | |
319 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
320 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
321 | ||
322 | ||
323 | } # as_fn_mkdir_p | |
324 | # as_fn_append VAR VALUE | |
325 | # ---------------------- | |
326 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
327 | # advantage of any shell optimizations that allow amortized linear growth over | |
328 | # repeated appends, instead of the typical quadratic growth present in naive | |
329 | # implementations. | |
330 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
331 | eval 'as_fn_append () | |
332 | { | |
333 | eval $1+=\$2 | |
334 | }' | |
335 | else | |
336 | as_fn_append () | |
337 | { | |
338 | eval $1=\$$1\$2 | |
339 | } | |
340 | fi # as_fn_append | |
341 | ||
342 | # as_fn_arith ARG... | |
343 | # ------------------ | |
344 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
345 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
346 | # must be portable across $(()) and expr. | |
347 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
348 | eval 'as_fn_arith () | |
349 | { | |
350 | as_val=$(( $* )) | |
351 | }' | |
352 | else | |
353 | as_fn_arith () | |
354 | { | |
355 | as_val=`expr "$@" || test $? -eq 1` | |
356 | } | |
357 | fi # as_fn_arith | |
358 | ||
359 | ||
360 | # as_fn_error ERROR [LINENO LOG_FD] | |
361 | # --------------------------------- | |
362 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
363 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
364 | # script with status $?, using 1 if that was 0. | |
365 | as_fn_error () | |
366 | { | |
367 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
368 | if test "$3"; then | |
369 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
370 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
371 | fi | |
372 | $as_echo "$as_me: error: $1" >&2 | |
373 | as_fn_exit $as_status | |
374 | } # as_fn_error | |
375 | ||
7460295f MG |
376 | if expr a : '\(a\)' >/dev/null 2>&1 && |
377 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
378 | as_expr=expr | |
379 | else | |
380 | as_expr=false | |
381 | fi | |
382 | ||
383 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
384 | as_basename=basename | |
385 | else | |
386 | as_basename=false | |
387 | fi | |
388 | ||
a0673b07 MG |
389 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
390 | as_dirname=dirname | |
391 | else | |
392 | as_dirname=false | |
393 | fi | |
7460295f | 394 | |
7460295f MG |
395 | as_me=`$as_basename -- "$0" || |
396 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
397 | X"$0" : 'X\(//\)$' \| \ | |
398 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
33aa8fe1 | 399 | $as_echo X/"$0" | |
7460295f MG |
400 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
401 | s//\1/ | |
402 | q | |
403 | } | |
404 | /^X\/\(\/\/\)$/{ | |
405 | s//\1/ | |
406 | q | |
407 | } | |
408 | /^X\/\(\/\).*/{ | |
409 | s//\1/ | |
410 | q | |
411 | } | |
412 | s/.*/./; q'` | |
413 | ||
a0673b07 MG |
414 | # Avoid depending upon Character Ranges. |
415 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
416 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
417 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
418 | as_cr_digits='0123456789' | |
419 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7460295f MG |
420 | |
421 | ||
a0673b07 MG |
422 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
423 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
424 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
425 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
426 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
427 | sed -n ' | |
428 | p | |
429 | /[$]LINENO/= | |
430 | ' <$as_myself | | |
431 | sed ' | |
432 | s/[$]LINENO.*/&-/ | |
433 | t lineno | |
434 | b | |
435 | :lineno | |
436 | N | |
437 | :loop | |
438 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
439 | t loop | |
440 | s/-\n.*// | |
441 | ' >$as_me.lineno && | |
442 | chmod +x "$as_me.lineno" || | |
443 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
7460295f | 444 | |
a0673b07 MG |
445 | # Don't try to exec as it changes $[0], causing all sort of problems |
446 | # (the dirname of $[0] is not the place where we might find the | |
447 | # original and so on. Autoconf is especially sensitive to this). | |
448 | . "./$as_me.lineno" | |
449 | # Exit status is that of the last command. | |
450 | exit | |
7460295f MG |
451 | } |
452 | ||
a0673b07 MG |
453 | ECHO_C= ECHO_N= ECHO_T= |
454 | case `echo -n x` in #((((( | |
455 | -n*) | |
456 | case `echo 'xy\c'` in | |
457 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
458 | xy) ECHO_C='\c';; | |
459 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
460 | ECHO_T=' ';; | |
461 | esac;; | |
462 | *) | |
463 | ECHO_N='-n';; | |
464 | esac | |
7460295f | 465 | |
a0673b07 MG |
466 | rm -f conf$$ conf$$.exe conf$$.file |
467 | if test -d conf$$.dir; then | |
468 | rm -f conf$$.dir/conf$$.file | |
469 | else | |
470 | rm -f conf$$.dir | |
471 | mkdir conf$$.dir 2>/dev/null | |
7460295f | 472 | fi |
a0673b07 MG |
473 | if (echo >conf$$.file) 2>/dev/null; then |
474 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
475 | as_ln_s='ln -s' | |
476 | # ... but there are two gotchas: | |
477 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
478 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
479 | # In both cases, we have to default to `cp -p'. | |
480 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
481 | as_ln_s='cp -p' | |
482 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
483 | as_ln_s=ln | |
484 | else | |
485 | as_ln_s='cp -p' | |
486 | fi | |
7460295f | 487 | else |
a0673b07 | 488 | as_ln_s='cp -p' |
7460295f | 489 | fi |
a0673b07 MG |
490 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
491 | rmdir conf$$.dir 2>/dev/null | |
7460295f | 492 | |
a0673b07 MG |
493 | if mkdir -p . 2>/dev/null; then |
494 | as_mkdir_p='mkdir -p "$as_dir"' | |
495 | else | |
496 | test -d ./-p && rmdir ./-p | |
497 | as_mkdir_p=false | |
7460295f MG |
498 | fi |
499 | ||
a0673b07 MG |
500 | if test -x / >/dev/null 2>&1; then |
501 | as_test_x='test -x' | |
7460295f | 502 | else |
a0673b07 MG |
503 | if ls -dL / >/dev/null 2>&1; then |
504 | as_ls_L_option=L | |
505 | else | |
506 | as_ls_L_option= | |
507 | fi | |
508 | as_test_x=' | |
509 | eval sh -c '\'' | |
510 | if test -d "$1"; then | |
511 | test -d "$1/."; | |
512 | else | |
513 | case $1 in #( | |
514 | -*)set "./$1";; | |
515 | esac; | |
516 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
517 | ???[sx]*):;;*)false;;esac;fi | |
518 | '\'' sh | |
519 | ' | |
7460295f | 520 | fi |
a0673b07 | 521 | as_executable_p=$as_test_x |
7460295f | 522 | |
a0673b07 MG |
523 | # Sed expression to map a string onto a valid CPP name. |
524 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7460295f | 525 | |
a0673b07 MG |
526 | # Sed expression to map a string onto a valid variable name. |
527 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7460295f MG |
528 | |
529 | ||
530 | ||
531 | # Check that we are running under the correct shell. | |
532 | SHELL=${CONFIG_SHELL-/bin/sh} | |
533 | ||
572ac014 | 534 | case X$lt_ECHO in |
7460295f MG |
535 | X*--fallback-echo) |
536 | # Remove one level of quotation (which was required for Make). | |
572ac014 | 537 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
7460295f MG |
538 | ;; |
539 | esac | |
540 | ||
572ac014 | 541 | ECHO=${lt_ECHO-echo} |
7460295f MG |
542 | if test "X$1" = X--no-reexec; then |
543 | # Discard the --no-reexec flag, and continue. | |
544 | shift | |
545 | elif test "X$1" = X--fallback-echo; then | |
546 | # Avoid inline document here, it may be left over | |
547 | : | |
572ac014 MG |
548 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
549 | # Yippee, $ECHO works! | |
7460295f MG |
550 | : |
551 | else | |
552 | # Restart under the correct shell. | |
553 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
554 | fi | |
555 | ||
556 | if test "X$1" = X--fallback-echo; then | |
557 | # used as fallback echo | |
558 | shift | |
572ac014 | 559 | cat <<_LT_EOF |
7460295f | 560 | $* |
572ac014 | 561 | _LT_EOF |
7460295f MG |
562 | exit 0 |
563 | fi | |
564 | ||
565 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
566 | # if CDPATH is set. | |
567 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
568 | ||
572ac014 MG |
569 | if test -z "$lt_ECHO"; then |
570 | if test "X${echo_test_string+set}" != Xset; then | |
571 | # find a string as large as possible, as long as the shell can cope with it | |
572 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
573 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
574 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
575 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
576 | then | |
577 | break | |
578 | fi | |
579 | done | |
580 | fi | |
7460295f | 581 | |
572ac014 MG |
582 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
583 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
584 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
585 | : | |
586 | else | |
587 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
588 | # backslashes. This makes it impossible to quote backslashes using | |
589 | # echo "$something" | sed 's/\\/\\\\/g' | |
590 | # | |
591 | # So, first we look for a working echo in the user's PATH. | |
7460295f | 592 | |
572ac014 MG |
593 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
594 | for dir in $PATH /usr/ucb; do | |
595 | IFS="$lt_save_ifs" | |
596 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
597 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
598 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
599 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
600 | ECHO="$dir/echo" | |
601 | break | |
602 | fi | |
603 | done | |
7460295f | 604 | IFS="$lt_save_ifs" |
7460295f | 605 | |
572ac014 MG |
606 | if test "X$ECHO" = Xecho; then |
607 | # We didn't find a better echo, so look for alternatives. | |
608 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
609 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
610 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
611 | # This shell has a builtin print -r that does the trick. | |
612 | ECHO='print -r' | |
613 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
614 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
615 | # If we have ksh, try running configure again with it. | |
616 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
617 | export ORIGINAL_CONFIG_SHELL | |
618 | CONFIG_SHELL=/bin/ksh | |
619 | export CONFIG_SHELL | |
620 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
7460295f | 621 | else |
572ac014 MG |
622 | # Try using printf. |
623 | ECHO='printf %s\n' | |
624 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
625 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
626 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
627 | # Cool, printf works | |
628 | : | |
629 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
630 | test "X$echo_testing_string" = 'X\t' && | |
631 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
632 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
633 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
634 | export CONFIG_SHELL | |
635 | SHELL="$CONFIG_SHELL" | |
636 | export SHELL | |
637 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
638 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
639 | test "X$echo_testing_string" = 'X\t' && | |
640 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
641 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
642 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
643 | else | |
644 | # maybe with a smaller string... | |
645 | prev=: | |
7460295f | 646 | |
572ac014 MG |
647 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
648 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
649 | then | |
650 | break | |
651 | fi | |
652 | prev="$cmd" | |
653 | done | |
7460295f | 654 | |
572ac014 MG |
655 | if test "$prev" != 'sed 50q "$0"'; then |
656 | echo_test_string=`eval $prev` | |
657 | export echo_test_string | |
658 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
659 | else | |
660 | # Oops. We lost completely, so just stick with echo. | |
661 | ECHO=echo | |
662 | fi | |
663 | fi | |
7460295f MG |
664 | fi |
665 | fi | |
666 | fi | |
667 | fi | |
7460295f MG |
668 | |
669 | # Copy echo and quote the copy suitably for passing to libtool from | |
670 | # the Makefile, instead of quoting the original, which is used later. | |
572ac014 MG |
671 | lt_ECHO=$ECHO |
672 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
673 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
7460295f MG |
674 | fi |
675 | ||
676 | ||
677 | ||
678 | ||
7460295f MG |
679 | exec 7<&0 </dev/null 6>&1 |
680 | ||
681 | # Name of the host. | |
682 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
683 | # so uname gets run too. | |
684 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
685 | ||
686 | # | |
687 | # Initializations. | |
688 | # | |
689 | ac_default_prefix=/usr/local | |
690 | ac_clean_files= | |
691 | ac_config_libobj_dir=. | |
692 | LIBOBJS= | |
693 | cross_compiling=no | |
694 | subdirs= | |
695 | MFLAGS= | |
696 | MAKEFLAGS= | |
7460295f MG |
697 | |
698 | # Identity of this package. | |
699 | PACKAGE_NAME='shellinabox' | |
700 | PACKAGE_TARNAME='shellinabox' | |
9be467c0 MG |
701 | PACKAGE_VERSION='2.10' |
702 | PACKAGE_STRING='shellinabox 2.10' | |
7460295f | 703 | PACKAGE_BUGREPORT='markus@shellinabox.com' |
a0673b07 | 704 | PACKAGE_URL='' |
7460295f | 705 | |
c593cf68 | 706 | ac_c_werror_flag= |
7460295f MG |
707 | # Factoring default headers for most tests. |
708 | ac_includes_default="\ | |
709 | #include <stdio.h> | |
710 | #ifdef HAVE_SYS_TYPES_H | |
711 | # include <sys/types.h> | |
712 | #endif | |
713 | #ifdef HAVE_SYS_STAT_H | |
714 | # include <sys/stat.h> | |
715 | #endif | |
716 | #ifdef STDC_HEADERS | |
717 | # include <stdlib.h> | |
718 | # include <stddef.h> | |
719 | #else | |
720 | # ifdef HAVE_STDLIB_H | |
721 | # include <stdlib.h> | |
722 | # endif | |
723 | #endif | |
724 | #ifdef HAVE_STRING_H | |
725 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
726 | # include <memory.h> | |
727 | # endif | |
728 | # include <string.h> | |
729 | #endif | |
730 | #ifdef HAVE_STRINGS_H | |
731 | # include <strings.h> | |
732 | #endif | |
733 | #ifdef HAVE_INTTYPES_H | |
734 | # include <inttypes.h> | |
735 | #endif | |
736 | #ifdef HAVE_STDINT_H | |
737 | # include <stdint.h> | |
738 | #endif | |
739 | #ifdef HAVE_UNISTD_H | |
740 | # include <unistd.h> | |
741 | #endif" | |
742 | ||
db50e572 MG |
743 | ac_subst_vars='am__EXEEXT_FALSE |
744 | am__EXEEXT_TRUE | |
745 | LTLIBOBJS | |
9d758d39 | 746 | LIBOBJS |
33aa8fe1 MG |
747 | LIBTOOL_DEPS |
748 | CPP | |
749 | OTOOL64 | |
750 | OTOOL | |
751 | LIPO | |
752 | NMEDIT | |
753 | DSYMUTIL | |
754 | lt_ECHO | |
755 | RANLIB | |
756 | AR | |
757 | OBJDUMP | |
758 | LN_S | |
759 | NM | |
760 | ac_ct_DUMPBIN | |
761 | DUMPBIN | |
762 | LD | |
763 | FGREP | |
764 | EGREP | |
765 | GREP | |
766 | SED | |
767 | host_os | |
768 | host_vendor | |
769 | host_cpu | |
770 | host | |
771 | build_os | |
772 | build_vendor | |
773 | build_cpu | |
774 | build | |
775 | LIBTOOL | |
776 | am__fastdepCC_FALSE | |
777 | am__fastdepCC_TRUE | |
778 | CCDEPMODE | |
779 | AMDEPBACKSLASH | |
780 | AMDEP_FALSE | |
781 | AMDEP_TRUE | |
782 | am__quote | |
783 | am__include | |
784 | DEPDIR | |
785 | OBJEXT | |
786 | EXEEXT | |
787 | ac_ct_CC | |
788 | CPPFLAGS | |
789 | LDFLAGS | |
790 | CFLAGS | |
791 | CC | |
792 | am__untar | |
793 | am__tar | |
794 | AMTAR | |
795 | am__leading_dot | |
796 | SET_MAKE | |
797 | AWK | |
798 | mkdir_p | |
799 | MKDIR_P | |
800 | INSTALL_STRIP_PROGRAM | |
801 | STRIP | |
802 | install_sh | |
803 | MAKEINFO | |
804 | AUTOHEADER | |
805 | AUTOMAKE | |
806 | AUTOCONF | |
807 | ACLOCAL | |
808 | VERSION | |
809 | PACKAGE | |
810 | CYGPATH_W | |
811 | am__isrc | |
812 | INSTALL_DATA | |
813 | INSTALL_SCRIPT | |
814 | INSTALL_PROGRAM | |
815 | VCS_REVISION | |
816 | target_alias | |
817 | host_alias | |
818 | build_alias | |
819 | LIBS | |
820 | ECHO_T | |
821 | ECHO_N | |
822 | ECHO_C | |
823 | DEFS | |
824 | mandir | |
825 | localedir | |
826 | libdir | |
827 | psdir | |
828 | pdfdir | |
829 | dvidir | |
830 | htmldir | |
831 | infodir | |
832 | docdir | |
833 | oldincludedir | |
834 | includedir | |
835 | localstatedir | |
836 | sharedstatedir | |
837 | sysconfdir | |
838 | datadir | |
839 | datarootdir | |
840 | libexecdir | |
841 | sbindir | |
842 | bindir | |
843 | program_transform_name | |
844 | prefix | |
845 | exec_prefix | |
a0673b07 | 846 | PACKAGE_URL |
33aa8fe1 MG |
847 | PACKAGE_BUGREPORT |
848 | PACKAGE_STRING | |
849 | PACKAGE_VERSION | |
850 | PACKAGE_TARNAME | |
851 | PACKAGE_NAME | |
852 | PATH_SEPARATOR | |
853 | SHELL' | |
7460295f | 854 | ac_subst_files='' |
33aa8fe1 MG |
855 | ac_user_opts=' |
856 | enable_option_checking | |
857 | enable_dependency_tracking | |
858 | enable_shared | |
859 | enable_static | |
860 | with_pic | |
861 | enable_fast_install | |
862 | with_gnu_ld | |
863 | enable_libtool_lock | |
864 | enable_ssl | |
865 | enable_pam | |
866 | enable_runtime_loading | |
867 | ' | |
7460295f MG |
868 | ac_precious_vars='build_alias |
869 | host_alias | |
870 | target_alias | |
871 | CC | |
872 | CFLAGS | |
873 | LDFLAGS | |
874 | LIBS | |
875 | CPPFLAGS | |
572ac014 | 876 | CPP' |
7460295f MG |
877 | |
878 | ||
879 | # Initialize some variables set by options. | |
880 | ac_init_help= | |
881 | ac_init_version=false | |
33aa8fe1 MG |
882 | ac_unrecognized_opts= |
883 | ac_unrecognized_sep= | |
7460295f MG |
884 | # The variables have the same names as the options, with |
885 | # dashes changed to underlines. | |
886 | cache_file=/dev/null | |
887 | exec_prefix=NONE | |
888 | no_create= | |
889 | no_recursion= | |
890 | prefix=NONE | |
891 | program_prefix=NONE | |
892 | program_suffix=NONE | |
893 | program_transform_name=s,x,x, | |
894 | silent= | |
895 | site= | |
896 | srcdir= | |
897 | verbose= | |
898 | x_includes=NONE | |
899 | x_libraries=NONE | |
900 | ||
901 | # Installation directory options. | |
902 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
903 | # and all the variables that are supposed to be based on exec_prefix | |
904 | # by default will actually change. | |
905 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
906 | # (The list follows the same order as the GNU Coding Standards.) | |
907 | bindir='${exec_prefix}/bin' | |
908 | sbindir='${exec_prefix}/sbin' | |
909 | libexecdir='${exec_prefix}/libexec' | |
910 | datarootdir='${prefix}/share' | |
911 | datadir='${datarootdir}' | |
912 | sysconfdir='${prefix}/etc' | |
913 | sharedstatedir='${prefix}/com' | |
914 | localstatedir='${prefix}/var' | |
915 | includedir='${prefix}/include' | |
916 | oldincludedir='/usr/include' | |
917 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
918 | infodir='${datarootdir}/info' | |
919 | htmldir='${docdir}' | |
920 | dvidir='${docdir}' | |
921 | pdfdir='${docdir}' | |
922 | psdir='${docdir}' | |
923 | libdir='${exec_prefix}/lib' | |
924 | localedir='${datarootdir}/locale' | |
925 | mandir='${datarootdir}/man' | |
926 | ||
927 | ac_prev= | |
928 | ac_dashdash= | |
929 | for ac_option | |
930 | do | |
931 | # If the previous option needs an argument, assign it. | |
932 | if test -n "$ac_prev"; then | |
933 | eval $ac_prev=\$ac_option | |
934 | ac_prev= | |
935 | continue | |
936 | fi | |
937 | ||
938 | case $ac_option in | |
939 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
940 | *) ac_optarg=yes ;; | |
941 | esac | |
942 | ||
943 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
944 | ||
945 | case $ac_dashdash$ac_option in | |
946 | --) | |
947 | ac_dashdash=yes ;; | |
948 | ||
949 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
950 | ac_prev=bindir ;; | |
951 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
952 | bindir=$ac_optarg ;; | |
953 | ||
954 | -build | --build | --buil | --bui | --bu) | |
955 | ac_prev=build_alias ;; | |
956 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
957 | build_alias=$ac_optarg ;; | |
958 | ||
959 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
960 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
961 | ac_prev=cache_file ;; | |
962 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
963 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
964 | cache_file=$ac_optarg ;; | |
965 | ||
966 | --config-cache | -C) | |
967 | cache_file=config.cache ;; | |
968 | ||
969 | -datadir | --datadir | --datadi | --datad) | |
970 | ac_prev=datadir ;; | |
971 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
972 | datadir=$ac_optarg ;; | |
973 | ||
974 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
975 | | --dataroo | --dataro | --datar) | |
976 | ac_prev=datarootdir ;; | |
977 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
978 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
979 | datarootdir=$ac_optarg ;; | |
980 | ||
981 | -disable-* | --disable-*) | |
33aa8fe1 | 982 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
7460295f | 983 | # Reject names that are not valid shell variable names. |
33aa8fe1 | 984 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
a0673b07 | 985 | as_fn_error "invalid feature name: $ac_useropt" |
33aa8fe1 MG |
986 | ac_useropt_orig=$ac_useropt |
987 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
988 | case $ac_user_opts in | |
989 | *" | |
990 | "enable_$ac_useropt" | |
991 | "*) ;; | |
992 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
993 | ac_unrecognized_sep=', ';; | |
994 | esac | |
995 | eval enable_$ac_useropt=no ;; | |
7460295f MG |
996 | |
997 | -docdir | --docdir | --docdi | --doc | --do) | |
998 | ac_prev=docdir ;; | |
999 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1000 | docdir=$ac_optarg ;; | |
1001 | ||
1002 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1003 | ac_prev=dvidir ;; | |
1004 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1005 | dvidir=$ac_optarg ;; | |
1006 | ||
1007 | -enable-* | --enable-*) | |
33aa8fe1 | 1008 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
7460295f | 1009 | # Reject names that are not valid shell variable names. |
33aa8fe1 | 1010 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
a0673b07 | 1011 | as_fn_error "invalid feature name: $ac_useropt" |
33aa8fe1 MG |
1012 | ac_useropt_orig=$ac_useropt |
1013 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1014 | case $ac_user_opts in | |
1015 | *" | |
1016 | "enable_$ac_useropt" | |
1017 | "*) ;; | |
1018 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1019 | ac_unrecognized_sep=', ';; | |
1020 | esac | |
1021 | eval enable_$ac_useropt=\$ac_optarg ;; | |
7460295f MG |
1022 | |
1023 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1024 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1025 | | --exec | --exe | --ex) | |
1026 | ac_prev=exec_prefix ;; | |
1027 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1028 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1029 | | --exec=* | --exe=* | --ex=*) | |
1030 | exec_prefix=$ac_optarg ;; | |
1031 | ||
1032 | -gas | --gas | --ga | --g) | |
1033 | # Obsolete; use --with-gas. | |
1034 | with_gas=yes ;; | |
1035 | ||
1036 | -help | --help | --hel | --he | -h) | |
1037 | ac_init_help=long ;; | |
1038 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1039 | ac_init_help=recursive ;; | |
1040 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1041 | ac_init_help=short ;; | |
1042 | ||
1043 | -host | --host | --hos | --ho) | |
1044 | ac_prev=host_alias ;; | |
1045 | -host=* | --host=* | --hos=* | --ho=*) | |
1046 | host_alias=$ac_optarg ;; | |
1047 | ||
1048 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1049 | ac_prev=htmldir ;; | |
1050 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1051 | | --ht=*) | |
1052 | htmldir=$ac_optarg ;; | |
1053 | ||
1054 | -includedir | --includedir | --includedi | --included | --include \ | |
1055 | | --includ | --inclu | --incl | --inc) | |
1056 | ac_prev=includedir ;; | |
1057 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1058 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1059 | includedir=$ac_optarg ;; | |
1060 | ||
1061 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1062 | ac_prev=infodir ;; | |
1063 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1064 | infodir=$ac_optarg ;; | |
1065 | ||
1066 | -libdir | --libdir | --libdi | --libd) | |
1067 | ac_prev=libdir ;; | |
1068 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1069 | libdir=$ac_optarg ;; | |
1070 | ||
1071 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1072 | | --libexe | --libex | --libe) | |
1073 | ac_prev=libexecdir ;; | |
1074 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1075 | | --libexe=* | --libex=* | --libe=*) | |
1076 | libexecdir=$ac_optarg ;; | |
1077 | ||
1078 | -localedir | --localedir | --localedi | --localed | --locale) | |
1079 | ac_prev=localedir ;; | |
1080 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1081 | localedir=$ac_optarg ;; | |
1082 | ||
1083 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1084 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1085 | ac_prev=localstatedir ;; | |
1086 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1087 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1088 | localstatedir=$ac_optarg ;; | |
1089 | ||
1090 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1091 | ac_prev=mandir ;; | |
1092 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1093 | mandir=$ac_optarg ;; | |
1094 | ||
1095 | -nfp | --nfp | --nf) | |
1096 | # Obsolete; use --without-fp. | |
1097 | with_fp=no ;; | |
1098 | ||
1099 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1100 | | --no-cr | --no-c | -n) | |
1101 | no_create=yes ;; | |
1102 | ||
1103 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1104 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1105 | no_recursion=yes ;; | |
1106 | ||
1107 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1108 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1109 | | --oldin | --oldi | --old | --ol | --o) | |
1110 | ac_prev=oldincludedir ;; | |
1111 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1112 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1113 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1114 | oldincludedir=$ac_optarg ;; | |
1115 | ||
1116 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1117 | ac_prev=prefix ;; | |
1118 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1119 | prefix=$ac_optarg ;; | |
1120 | ||
1121 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1122 | | --program-pre | --program-pr | --program-p) | |
1123 | ac_prev=program_prefix ;; | |
1124 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1125 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1126 | program_prefix=$ac_optarg ;; | |
1127 | ||
1128 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1129 | | --program-suf | --program-su | --program-s) | |
1130 | ac_prev=program_suffix ;; | |
1131 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1132 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1133 | program_suffix=$ac_optarg ;; | |
1134 | ||
1135 | -program-transform-name | --program-transform-name \ | |
1136 | | --program-transform-nam | --program-transform-na \ | |
1137 | | --program-transform-n | --program-transform- \ | |
1138 | | --program-transform | --program-transfor \ | |
1139 | | --program-transfo | --program-transf \ | |
1140 | | --program-trans | --program-tran \ | |
1141 | | --progr-tra | --program-tr | --program-t) | |
1142 | ac_prev=program_transform_name ;; | |
1143 | -program-transform-name=* | --program-transform-name=* \ | |
1144 | | --program-transform-nam=* | --program-transform-na=* \ | |
1145 | | --program-transform-n=* | --program-transform-=* \ | |
1146 | | --program-transform=* | --program-transfor=* \ | |
1147 | | --program-transfo=* | --program-transf=* \ | |
1148 | | --program-trans=* | --program-tran=* \ | |
1149 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1150 | program_transform_name=$ac_optarg ;; | |
1151 | ||
1152 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1153 | ac_prev=pdfdir ;; | |
1154 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1155 | pdfdir=$ac_optarg ;; | |
1156 | ||
1157 | -psdir | --psdir | --psdi | --psd | --ps) | |
1158 | ac_prev=psdir ;; | |
1159 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1160 | psdir=$ac_optarg ;; | |
1161 | ||
1162 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1163 | | -silent | --silent | --silen | --sile | --sil) | |
1164 | silent=yes ;; | |
1165 | ||
1166 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1167 | ac_prev=sbindir ;; | |
1168 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1169 | | --sbi=* | --sb=*) | |
1170 | sbindir=$ac_optarg ;; | |
1171 | ||
1172 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1173 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1174 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1175 | | --sha | --sh) | |
1176 | ac_prev=sharedstatedir ;; | |
1177 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1178 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1179 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1180 | | --sha=* | --sh=*) | |
1181 | sharedstatedir=$ac_optarg ;; | |
1182 | ||
1183 | -site | --site | --sit) | |
1184 | ac_prev=site ;; | |
1185 | -site=* | --site=* | --sit=*) | |
1186 | site=$ac_optarg ;; | |
1187 | ||
1188 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1189 | ac_prev=srcdir ;; | |
1190 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1191 | srcdir=$ac_optarg ;; | |
1192 | ||
1193 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1194 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1195 | ac_prev=sysconfdir ;; | |
1196 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1197 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1198 | sysconfdir=$ac_optarg ;; | |
1199 | ||
1200 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1201 | ac_prev=target_alias ;; | |
1202 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1203 | target_alias=$ac_optarg ;; | |
1204 | ||
1205 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1206 | verbose=yes ;; | |
1207 | ||
1208 | -version | --version | --versio | --versi | --vers | -V) | |
1209 | ac_init_version=: ;; | |
1210 | ||
1211 | -with-* | --with-*) | |
33aa8fe1 | 1212 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
7460295f | 1213 | # Reject names that are not valid shell variable names. |
33aa8fe1 | 1214 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
a0673b07 | 1215 | as_fn_error "invalid package name: $ac_useropt" |
33aa8fe1 MG |
1216 | ac_useropt_orig=$ac_useropt |
1217 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1218 | case $ac_user_opts in | |
1219 | *" | |
1220 | "with_$ac_useropt" | |
1221 | "*) ;; | |
1222 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1223 | ac_unrecognized_sep=', ';; | |
1224 | esac | |
1225 | eval with_$ac_useropt=\$ac_optarg ;; | |
7460295f MG |
1226 | |
1227 | -without-* | --without-*) | |
33aa8fe1 | 1228 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
7460295f | 1229 | # Reject names that are not valid shell variable names. |
33aa8fe1 | 1230 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
a0673b07 | 1231 | as_fn_error "invalid package name: $ac_useropt" |
33aa8fe1 MG |
1232 | ac_useropt_orig=$ac_useropt |
1233 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1234 | case $ac_user_opts in | |
1235 | *" | |
1236 | "with_$ac_useropt" | |
1237 | "*) ;; | |
1238 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1239 | ac_unrecognized_sep=', ';; | |
1240 | esac | |
1241 | eval with_$ac_useropt=no ;; | |
7460295f MG |
1242 | |
1243 | --x) | |
1244 | # Obsolete; use --with-x. | |
1245 | with_x=yes ;; | |
1246 | ||
1247 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1248 | | --x-incl | --x-inc | --x-in | --x-i) | |
1249 | ac_prev=x_includes ;; | |
1250 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1251 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1252 | x_includes=$ac_optarg ;; | |
1253 | ||
1254 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1255 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1256 | ac_prev=x_libraries ;; | |
1257 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1258 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1259 | x_libraries=$ac_optarg ;; | |
1260 | ||
a0673b07 MG |
1261 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1262 | Try \`$0 --help' for more information." | |
7460295f MG |
1263 | ;; |
1264 | ||
1265 | *=*) | |
1266 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1267 | # Reject names that are not valid shell variable names. | |
a0673b07 MG |
1268 | case $ac_envvar in #( |
1269 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1270 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1271 | esac | |
7460295f MG |
1272 | eval $ac_envvar=\$ac_optarg |
1273 | export $ac_envvar ;; | |
1274 | ||
1275 | *) | |
1276 | # FIXME: should be removed in autoconf 3.0. | |
33aa8fe1 | 1277 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
7460295f | 1278 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
33aa8fe1 | 1279 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
7460295f MG |
1280 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1281 | ;; | |
1282 | ||
1283 | esac | |
1284 | done | |
1285 | ||
1286 | if test -n "$ac_prev"; then | |
1287 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
a0673b07 | 1288 | as_fn_error "missing argument to $ac_option" |
7460295f MG |
1289 | fi |
1290 | ||
33aa8fe1 MG |
1291 | if test -n "$ac_unrecognized_opts"; then |
1292 | case $enable_option_checking in | |
1293 | no) ;; | |
a0673b07 | 1294 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
33aa8fe1 MG |
1295 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1296 | esac | |
1297 | fi | |
1298 | ||
1299 | # Check all directory arguments for consistency. | |
7460295f MG |
1300 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1301 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1302 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1303 | libdir localedir mandir | |
1304 | do | |
1305 | eval ac_val=\$$ac_var | |
33aa8fe1 MG |
1306 | # Remove trailing slashes. |
1307 | case $ac_val in | |
1308 | */ ) | |
1309 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1310 | eval $ac_var=\$ac_val;; | |
1311 | esac | |
1312 | # Be sure to have absolute directory names. | |
7460295f MG |
1313 | case $ac_val in |
1314 | [\\/$]* | ?:[\\/]* ) continue;; | |
1315 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1316 | esac | |
a0673b07 | 1317 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
7460295f MG |
1318 | done |
1319 | ||
1320 | # There might be people who depend on the old broken behavior: `$host' | |
1321 | # used to hold the argument of --host etc. | |
1322 | # FIXME: To remove some day. | |
1323 | build=$build_alias | |
1324 | host=$host_alias | |
1325 | target=$target_alias | |
1326 | ||
1327 | # FIXME: To remove some day. | |
1328 | if test "x$host_alias" != x; then | |
1329 | if test "x$build_alias" = x; then | |
1330 | cross_compiling=maybe | |
33aa8fe1 | 1331 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
7460295f MG |
1332 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1333 | elif test "x$build_alias" != "x$host_alias"; then | |
1334 | cross_compiling=yes | |
1335 | fi | |
1336 | fi | |
1337 | ||
1338 | ac_tool_prefix= | |
1339 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1340 | ||
1341 | test "$silent" = yes && exec 6>/dev/null | |
1342 | ||
1343 | ||
1344 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1345 | ac_ls_di=`ls -di .` && | |
1346 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
a0673b07 | 1347 | as_fn_error "working directory cannot be determined" |
7460295f | 1348 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
a0673b07 | 1349 | as_fn_error "pwd does not report name of working directory" |
7460295f MG |
1350 | |
1351 | ||
1352 | # Find the source files, if location was not specified. | |
1353 | if test -z "$srcdir"; then | |
1354 | ac_srcdir_defaulted=yes | |
1355 | # Try the directory containing this script, then the parent directory. | |
33aa8fe1 MG |
1356 | ac_confdir=`$as_dirname -- "$as_myself" || |
1357 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1358 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1359 | X"$as_myself" : 'X\(//\)$' \| \ | |
1360 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1361 | $as_echo X"$as_myself" | | |
7460295f MG |
1362 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1363 | s//\1/ | |
1364 | q | |
1365 | } | |
1366 | /^X\(\/\/\)[^/].*/{ | |
1367 | s//\1/ | |
1368 | q | |
1369 | } | |
1370 | /^X\(\/\/\)$/{ | |
1371 | s//\1/ | |
1372 | q | |
1373 | } | |
1374 | /^X\(\/\).*/{ | |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | s/.*/./; q'` | |
1379 | srcdir=$ac_confdir | |
1380 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1381 | srcdir=.. | |
1382 | fi | |
1383 | else | |
1384 | ac_srcdir_defaulted=no | |
1385 | fi | |
1386 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1387 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
a0673b07 | 1388 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
7460295f MG |
1389 | fi |
1390 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1391 | ac_abs_confdir=`( | |
a0673b07 | 1392 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
7460295f MG |
1393 | pwd)` |
1394 | # When building in place, set srcdir=. | |
1395 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1396 | srcdir=. | |
1397 | fi | |
1398 | # Remove unnecessary trailing slashes from srcdir. | |
1399 | # Double slashes in file names in object file debugging info | |
1400 | # mess up M-x gdb in Emacs. | |
1401 | case $srcdir in | |
1402 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1403 | esac | |
1404 | for ac_var in $ac_precious_vars; do | |
1405 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1406 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1407 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1408 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1409 | done | |
1410 | ||
1411 | # | |
1412 | # Report the --help message. | |
1413 | # | |
1414 | if test "$ac_init_help" = "long"; then | |
1415 | # Omit some internal or obsolete options to make the list less imposing. | |
1416 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1417 | cat <<_ACEOF | |
9be467c0 | 1418 | \`configure' configures shellinabox 2.10 to adapt to many kinds of systems. |
7460295f MG |
1419 | |
1420 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1421 | ||
1422 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1423 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1424 | ||
1425 | Defaults for the options are specified in brackets. | |
1426 | ||
1427 | Configuration: | |
1428 | -h, --help display this help and exit | |
1429 | --help=short display options specific to this package | |
1430 | --help=recursive display the short help of all the included packages | |
1431 | -V, --version display version information and exit | |
1432 | -q, --quiet, --silent do not print \`checking...' messages | |
1433 | --cache-file=FILE cache test results in FILE [disabled] | |
1434 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1435 | -n, --no-create do not create output files | |
1436 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1437 | ||
1438 | Installation directories: | |
1439 | --prefix=PREFIX install architecture-independent files in PREFIX | |
33aa8fe1 | 1440 | [$ac_default_prefix] |
7460295f | 1441 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
33aa8fe1 | 1442 | [PREFIX] |
7460295f MG |
1443 | |
1444 | By default, \`make install' will install all the files in | |
1445 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1446 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1447 | for instance \`--prefix=\$HOME'. | |
1448 | ||
1449 | For better control, use the options below. | |
1450 | ||
1451 | Fine tuning of the installation directories: | |
33aa8fe1 MG |
1452 | --bindir=DIR user executables [EPREFIX/bin] |
1453 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1454 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1455 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1456 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1457 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1458 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1459 | --includedir=DIR C header files [PREFIX/include] | |
1460 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1461 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1462 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1463 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1464 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1465 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1466 | --docdir=DIR documentation root [DATAROOTDIR/doc/shellinabox] | |
1467 | --htmldir=DIR html documentation [DOCDIR] | |
1468 | --dvidir=DIR dvi documentation [DOCDIR] | |
1469 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1470 | --psdir=DIR ps documentation [DOCDIR] | |
7460295f MG |
1471 | _ACEOF |
1472 | ||
1473 | cat <<\_ACEOF | |
1474 | ||
1475 | Program names: | |
1476 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1477 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1478 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1479 | ||
1480 | System types: | |
1481 | --build=BUILD configure for building on BUILD [guessed] | |
1482 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1483 | _ACEOF | |
1484 | fi | |
1485 | ||
1486 | if test -n "$ac_init_help"; then | |
1487 | case $ac_init_help in | |
9be467c0 | 1488 | short | recursive ) echo "Configuration of shellinabox 2.10:";; |
7460295f MG |
1489 | esac |
1490 | cat <<\_ACEOF | |
1491 | ||
1492 | Optional Features: | |
33aa8fe1 | 1493 | --disable-option-checking ignore unrecognized --enable/--with options |
7460295f MG |
1494 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1495 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1496 | --disable-dependency-tracking speeds up one-time build | |
1497 | --enable-dependency-tracking do not reject slow dependency extractors | |
1498 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1499 | --enable-static[=PKGS] build static libraries [default=yes] | |
1500 | --enable-fast-install[=PKGS] | |
1501 | optimize for fast installation [default=yes] | |
1502 | --disable-libtool-lock avoid locking (might break parallel builds) | |
bf1ec4d2 MG |
1503 | --disable-ssl if available at built-time, support for SSL |
1504 | connections will be enabled. It can still be | |
1505 | disabled at run-time, either on the daemon's | |
1506 | command line or if the operating system does not | |
1507 | have the OpenSSL libraries available. | |
1508 | --disable-pam PAM support is necessary in order to authenticate | |
1509 | users for running programs other than their default | |
1510 | login shell. | |
1511 | --disable-runtime-loading ShellInABox will try to load the OpenSSL, and PAM | |
1512 | libraries at run-time, if it has been compiled with | |
1513 | support for these libraries, and if the operating | |
1514 | system supports dynamic loading of libraries. This | |
1515 | allows you to install the same binary on different | |
1516 | systems independent of whether they have OpenSSL | |
1517 | and PAM enabled. If you would rather directly link | |
1518 | these libraries into the binary, thus making them a | |
1519 | hard dependency, then disable runtime-loading. | |
7460295f MG |
1520 | |
1521 | Optional Packages: | |
1522 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1523 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
7460295f MG |
1524 | --with-pic try to use only PIC/non-PIC objects [default=use |
1525 | both] | |
572ac014 | 1526 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
7460295f MG |
1527 | |
1528 | Some influential environment variables: | |
1529 | CC C compiler command | |
1530 | CFLAGS C compiler flags | |
1531 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1532 | nonstandard directory <lib dir> | |
1533 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1534 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1535 | you have headers in a nonstandard directory <include dir> | |
1536 | CPP C preprocessor | |
7460295f MG |
1537 | |
1538 | Use these variables to override the choices made by `configure' or to help | |
1539 | it to find libraries and programs with nonstandard names/locations. | |
1540 | ||
1541 | Report bugs to <markus@shellinabox.com>. | |
1542 | _ACEOF | |
1543 | ac_status=$? | |
1544 | fi | |
1545 | ||
1546 | if test "$ac_init_help" = "recursive"; then | |
1547 | # If there are subdirs, report their specific --help. | |
1548 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
33aa8fe1 MG |
1549 | test -d "$ac_dir" || |
1550 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1551 | continue | |
7460295f MG |
1552 | ac_builddir=. |
1553 | ||
1554 | case "$ac_dir" in | |
1555 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1556 | *) | |
33aa8fe1 | 1557 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7460295f | 1558 | # A ".." for each directory in $ac_dir_suffix. |
33aa8fe1 | 1559 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7460295f MG |
1560 | case $ac_top_builddir_sub in |
1561 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1562 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1563 | esac ;; | |
1564 | esac | |
1565 | ac_abs_top_builddir=$ac_pwd | |
1566 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1567 | # for backward compatibility: | |
1568 | ac_top_builddir=$ac_top_build_prefix | |
1569 | ||
1570 | case $srcdir in | |
1571 | .) # We are building in place. | |
1572 | ac_srcdir=. | |
1573 | ac_top_srcdir=$ac_top_builddir_sub | |
1574 | ac_abs_top_srcdir=$ac_pwd ;; | |
1575 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1576 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1577 | ac_top_srcdir=$srcdir | |
1578 | ac_abs_top_srcdir=$srcdir ;; | |
1579 | *) # Relative name. | |
1580 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1581 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1582 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1583 | esac | |
1584 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1585 | ||
1586 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1587 | # Check for guested configure. | |
1588 | if test -f "$ac_srcdir/configure.gnu"; then | |
1589 | echo && | |
1590 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1591 | elif test -f "$ac_srcdir/configure"; then | |
1592 | echo && | |
1593 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1594 | else | |
33aa8fe1 | 1595 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7460295f MG |
1596 | fi || ac_status=$? |
1597 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1598 | done | |
1599 | fi | |
1600 | ||
1601 | test -n "$ac_init_help" && exit $ac_status | |
1602 | if $ac_init_version; then | |
1603 | cat <<\_ACEOF | |
9be467c0 | 1604 | shellinabox configure 2.10 |
a0673b07 | 1605 | generated by GNU Autoconf 2.64 |
7460295f | 1606 | |
a0673b07 | 1607 | Copyright (C) 2009 Free Software Foundation, Inc. |
7460295f MG |
1608 | This configure script is free software; the Free Software Foundation |
1609 | gives unlimited permission to copy, distribute and modify it. | |
1610 | _ACEOF | |
1611 | exit | |
1612 | fi | |
7460295f | 1613 | |
a0673b07 MG |
1614 | ## ------------------------ ## |
1615 | ## Autoconf initialization. ## | |
1616 | ## ------------------------ ## | |
7460295f | 1617 | |
a0673b07 MG |
1618 | # ac_fn_c_try_compile LINENO |
1619 | # -------------------------- | |
1620 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1621 | ac_fn_c_try_compile () | |
7460295f | 1622 | { |
a0673b07 MG |
1623 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1624 | rm -f conftest.$ac_objext | |
1625 | if { { ac_try="$ac_compile" | |
1626 | case "(($ac_try" in | |
1627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1628 | *) ac_try_echo=$ac_try;; | |
1629 | esac | |
1630 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1631 | $as_echo "$ac_try_echo"; } >&5 | |
1632 | (eval "$ac_compile") 2>conftest.err | |
1633 | ac_status=$? | |
1634 | if test -s conftest.err; then | |
1635 | grep -v '^ *+' conftest.err >conftest.er1 | |
1636 | cat conftest.er1 >&5 | |
1637 | mv -f conftest.er1 conftest.err | |
1638 | fi | |
1639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1640 | test $ac_status = 0; } && { | |
1641 | test -z "$ac_c_werror_flag" || | |
1642 | test ! -s conftest.err | |
1643 | } && test -s conftest.$ac_objext; then : | |
1644 | ac_retval=0 | |
1645 | else | |
1646 | $as_echo "$as_me: failed program was:" >&5 | |
1647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7460295f | 1648 | |
a0673b07 MG |
1649 | ac_retval=1 |
1650 | fi | |
1651 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1652 | return $ac_retval | |
7460295f | 1653 | |
a0673b07 | 1654 | } # ac_fn_c_try_compile |
7460295f | 1655 | |
a0673b07 MG |
1656 | # ac_fn_c_try_link LINENO |
1657 | # ----------------------- | |
1658 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1659 | ac_fn_c_try_link () | |
1660 | { | |
1661 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1663 | if { { ac_try="$ac_link" | |
1664 | case "(($ac_try" in | |
1665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1666 | *) ac_try_echo=$ac_try;; | |
1667 | esac | |
1668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1669 | $as_echo "$ac_try_echo"; } >&5 | |
1670 | (eval "$ac_link") 2>conftest.err | |
1671 | ac_status=$? | |
1672 | if test -s conftest.err; then | |
1673 | grep -v '^ *+' conftest.err >conftest.er1 | |
1674 | cat conftest.er1 >&5 | |
1675 | mv -f conftest.er1 conftest.err | |
1676 | fi | |
1677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1678 | test $ac_status = 0; } && { | |
1679 | test -z "$ac_c_werror_flag" || | |
1680 | test ! -s conftest.err | |
1681 | } && test -s conftest$ac_exeext && { | |
1682 | test "$cross_compiling" = yes || | |
1683 | $as_test_x conftest$ac_exeext | |
1684 | }; then : | |
1685 | ac_retval=0 | |
1686 | else | |
1687 | $as_echo "$as_me: failed program was:" >&5 | |
1688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7460295f | 1689 | |
a0673b07 MG |
1690 | ac_retval=1 |
1691 | fi | |
1692 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1693 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1694 | # interfere with the next link command; also delete a directory that is | |
1695 | # left behind by Apple's compiler. We do this before executing the actions. | |
1696 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1697 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1698 | return $ac_retval | |
1699 | ||
1700 | } # ac_fn_c_try_link | |
1701 | ||
1702 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1703 | # ------------------------------------------------------- | |
1704 | # Tests whether HEADER exists and can be compiled using the include files in | |
1705 | # INCLUDES, setting the cache variable VAR accordingly. | |
1706 | ac_fn_c_check_header_compile () | |
1707 | { | |
1708 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1710 | $as_echo_n "checking for $2... " >&6; } | |
1711 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1712 | $as_echo_n "(cached) " >&6 | |
1713 | else | |
1714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1715 | /* end confdefs.h. */ | |
1716 | $4 | |
1717 | #include <$2> | |
1718 | _ACEOF | |
1719 | if ac_fn_c_try_compile "$LINENO"; then : | |
1720 | eval "$3=yes" | |
1721 | else | |
1722 | eval "$3=no" | |
1723 | fi | |
1724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1725 | fi | |
1726 | eval ac_res=\$$3 | |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1728 | $as_echo "$ac_res" >&6; } | |
1729 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1730 | ||
1731 | } # ac_fn_c_check_header_compile | |
1732 | ||
1733 | # ac_fn_c_try_cpp LINENO | |
1734 | # ---------------------- | |
1735 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1736 | ac_fn_c_try_cpp () | |
1737 | { | |
1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1739 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1740 | case "(($ac_try" in | |
1741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1742 | *) ac_try_echo=$ac_try;; | |
1743 | esac | |
1744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1745 | $as_echo "$ac_try_echo"; } >&5 | |
1746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1747 | ac_status=$? | |
1748 | if test -s conftest.err; then | |
1749 | grep -v '^ *+' conftest.err >conftest.er1 | |
1750 | cat conftest.er1 >&5 | |
1751 | mv -f conftest.er1 conftest.err | |
1752 | fi | |
1753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1754 | test $ac_status = 0; } >/dev/null && { | |
1755 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1756 | test ! -s conftest.err | |
1757 | }; then : | |
1758 | ac_retval=0 | |
1759 | else | |
1760 | $as_echo "$as_me: failed program was:" >&5 | |
1761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1762 | ||
1763 | ac_retval=1 | |
1764 | fi | |
1765 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1766 | return $ac_retval | |
1767 | ||
1768 | } # ac_fn_c_try_cpp | |
1769 | ||
1770 | # ac_fn_c_try_run LINENO | |
1771 | # ---------------------- | |
1772 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1773 | # that executables *can* be run. | |
1774 | ac_fn_c_try_run () | |
1775 | { | |
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1777 | if { { ac_try="$ac_link" | |
1778 | case "(($ac_try" in | |
1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1780 | *) ac_try_echo=$ac_try;; | |
1781 | esac | |
1782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1783 | $as_echo "$ac_try_echo"; } >&5 | |
1784 | (eval "$ac_link") 2>&5 | |
1785 | ac_status=$? | |
1786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1787 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1788 | { { case "(($ac_try" in | |
1789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1790 | *) ac_try_echo=$ac_try;; | |
1791 | esac | |
1792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1793 | $as_echo "$ac_try_echo"; } >&5 | |
1794 | (eval "$ac_try") 2>&5 | |
1795 | ac_status=$? | |
1796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1797 | test $ac_status = 0; }; }; then : | |
1798 | ac_retval=0 | |
1799 | else | |
1800 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1801 | $as_echo "$as_me: failed program was:" >&5 | |
1802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1803 | ||
1804 | ac_retval=$ac_status | |
1805 | fi | |
1806 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1807 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1808 | return $ac_retval | |
1809 | ||
1810 | } # ac_fn_c_try_run | |
1811 | ||
1812 | # ac_fn_c_check_func LINENO FUNC VAR | |
1813 | # ---------------------------------- | |
1814 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1815 | ac_fn_c_check_func () | |
1816 | { | |
1817 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1819 | $as_echo_n "checking for $2... " >&6; } | |
1820 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1821 | $as_echo_n "(cached) " >&6 | |
1822 | else | |
1823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1824 | /* end confdefs.h. */ | |
1825 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1826 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1827 | #define $2 innocuous_$2 | |
1828 | ||
1829 | /* System header to define __stub macros and hopefully few prototypes, | |
1830 | which can conflict with char $2 (); below. | |
1831 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1832 | <limits.h> exists even on freestanding compilers. */ | |
1833 | ||
1834 | #ifdef __STDC__ | |
1835 | # include <limits.h> | |
1836 | #else | |
1837 | # include <assert.h> | |
1838 | #endif | |
1839 | ||
1840 | #undef $2 | |
1841 | ||
1842 | /* Override any GCC internal prototype to avoid an error. | |
1843 | Use char because int might match the return type of a GCC | |
1844 | builtin and then its argument prototype would still apply. */ | |
1845 | #ifdef __cplusplus | |
1846 | extern "C" | |
1847 | #endif | |
1848 | char $2 (); | |
1849 | /* The GNU C library defines this for functions which it implements | |
1850 | to always fail with ENOSYS. Some functions are actually named | |
1851 | something starting with __ and the normal name is an alias. */ | |
1852 | #if defined __stub_$2 || defined __stub___$2 | |
1853 | choke me | |
1854 | #endif | |
1855 | ||
1856 | int | |
1857 | main () | |
1858 | { | |
1859 | return $2 (); | |
1860 | ; | |
1861 | return 0; | |
1862 | } | |
1863 | _ACEOF | |
1864 | if ac_fn_c_try_link "$LINENO"; then : | |
1865 | eval "$3=yes" | |
1866 | else | |
1867 | eval "$3=no" | |
1868 | fi | |
1869 | rm -f core conftest.err conftest.$ac_objext \ | |
1870 | conftest$ac_exeext conftest.$ac_ext | |
1871 | fi | |
1872 | eval ac_res=\$$3 | |
1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1874 | $as_echo "$ac_res" >&6; } | |
1875 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1876 | ||
1877 | } # ac_fn_c_check_func | |
1878 | ||
1879 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1880 | # ------------------------------------------------------- | |
1881 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1882 | # the include files in INCLUDES and setting the cache variable VAR | |
1883 | # accordingly. | |
1884 | ac_fn_c_check_header_mongrel () | |
1885 | { | |
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1887 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1889 | $as_echo_n "checking for $2... " >&6; } | |
1890 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1891 | $as_echo_n "(cached) " >&6 | |
1892 | fi | |
1893 | eval ac_res=\$$3 | |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1895 | $as_echo "$ac_res" >&6; } | |
1896 | else | |
1897 | # Is the header compilable? | |
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1899 | $as_echo_n "checking $2 usability... " >&6; } | |
1900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1901 | /* end confdefs.h. */ | |
1902 | $4 | |
1903 | #include <$2> | |
1904 | _ACEOF | |
1905 | if ac_fn_c_try_compile "$LINENO"; then : | |
1906 | ac_header_compiler=yes | |
1907 | else | |
1908 | ac_header_compiler=no | |
1909 | fi | |
1910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1912 | $as_echo "$ac_header_compiler" >&6; } | |
1913 | ||
1914 | # Is the header present? | |
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1916 | $as_echo_n "checking $2 presence... " >&6; } | |
1917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1918 | /* end confdefs.h. */ | |
1919 | #include <$2> | |
1920 | _ACEOF | |
1921 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1922 | ac_header_preproc=yes | |
1923 | else | |
1924 | ac_header_preproc=no | |
1925 | fi | |
1926 | rm -f conftest.err conftest.$ac_ext | |
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1928 | $as_echo "$ac_header_preproc" >&6; } | |
1929 | ||
1930 | # So? What about this header? | |
1931 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1932 | yes:no: ) | |
1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1934 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1936 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1937 | ;; | |
1938 | no:yes:* ) | |
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1940 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1942 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1944 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1946 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1948 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1949 | ( cat <<\_ASBOX | |
1950 | ## ------------------------------------- ## | |
1951 | ## Report this to markus@shellinabox.com ## | |
1952 | ## ------------------------------------- ## | |
1953 | _ASBOX | |
1954 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1955 | ;; | |
1956 | esac | |
1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1958 | $as_echo_n "checking for $2... " >&6; } | |
1959 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1960 | $as_echo_n "(cached) " >&6 | |
1961 | else | |
1962 | eval "$3=\$ac_header_compiler" | |
1963 | fi | |
1964 | eval ac_res=\$$3 | |
1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1966 | $as_echo "$ac_res" >&6; } | |
1967 | fi | |
1968 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1969 | ||
1970 | } # ac_fn_c_check_header_mongrel | |
1971 | cat >config.log <<_ACEOF | |
1972 | This file contains any messages produced by compilers while | |
1973 | running configure, to aid debugging if configure makes a mistake. | |
1974 | ||
9be467c0 | 1975 | It was created by shellinabox $as_me 2.10, which was |
a0673b07 MG |
1976 | generated by GNU Autoconf 2.64. Invocation command line was |
1977 | ||
1978 | $ $0 $@ | |
1979 | ||
1980 | _ACEOF | |
1981 | exec 5>>config.log | |
1982 | { | |
1983 | cat <<_ASUNAME | |
1984 | ## --------- ## | |
1985 | ## Platform. ## | |
1986 | ## --------- ## | |
1987 | ||
1988 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1989 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1990 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1991 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1992 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1993 | ||
1994 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1995 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1996 | ||
1997 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1998 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1999 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2000 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2001 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2002 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2003 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2004 | ||
2005 | _ASUNAME | |
7460295f MG |
2006 | |
2007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2008 | for as_dir in $PATH | |
2009 | do | |
2010 | IFS=$as_save_IFS | |
2011 | test -z "$as_dir" && as_dir=. | |
a0673b07 MG |
2012 | $as_echo "PATH: $as_dir" |
2013 | done | |
7460295f MG |
2014 | IFS=$as_save_IFS |
2015 | ||
2016 | } >&5 | |
2017 | ||
2018 | cat >&5 <<_ACEOF | |
2019 | ||
2020 | ||
2021 | ## ----------- ## | |
2022 | ## Core tests. ## | |
2023 | ## ----------- ## | |
2024 | ||
2025 | _ACEOF | |
2026 | ||
2027 | ||
2028 | # Keep a trace of the command line. | |
2029 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2030 | # Strip out --silent because we don't want to record it for future runs. | |
2031 | # Also quote any args containing shell meta-characters. | |
2032 | # Make two passes to allow for proper duplicate-argument suppression. | |
2033 | ac_configure_args= | |
2034 | ac_configure_args0= | |
2035 | ac_configure_args1= | |
2036 | ac_must_keep_next=false | |
2037 | for ac_pass in 1 2 | |
2038 | do | |
2039 | for ac_arg | |
2040 | do | |
2041 | case $ac_arg in | |
2042 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2043 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2044 | | -silent | --silent | --silen | --sile | --sil) | |
2045 | continue ;; | |
2046 | *\'*) | |
33aa8fe1 | 2047 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7460295f MG |
2048 | esac |
2049 | case $ac_pass in | |
a0673b07 | 2050 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
7460295f | 2051 | 2) |
a0673b07 | 2052 | as_fn_append ac_configure_args1 " '$ac_arg'" |
7460295f MG |
2053 | if test $ac_must_keep_next = true; then |
2054 | ac_must_keep_next=false # Got value, back to normal. | |
2055 | else | |
2056 | case $ac_arg in | |
2057 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2058 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2059 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2060 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2061 | case "$ac_configure_args0 " in | |
2062 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2063 | esac | |
2064 | ;; | |
2065 | -* ) ac_must_keep_next=true ;; | |
2066 | esac | |
2067 | fi | |
a0673b07 | 2068 | as_fn_append ac_configure_args " '$ac_arg'" |
7460295f MG |
2069 | ;; |
2070 | esac | |
2071 | done | |
2072 | done | |
a0673b07 MG |
2073 | { ac_configure_args0=; unset ac_configure_args0;} |
2074 | { ac_configure_args1=; unset ac_configure_args1;} | |
7460295f MG |
2075 | |
2076 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2077 | # config.log. We remove comments because anyway the quotes in there | |
2078 | # would cause problems or look ugly. | |
2079 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2080 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2081 | trap 'exit_status=$? | |
2082 | # Save into config.log some information that might help in debugging. | |
2083 | { | |
2084 | echo | |
2085 | ||
2086 | cat <<\_ASBOX | |
2087 | ## ---------------- ## | |
2088 | ## Cache variables. ## | |
2089 | ## ---------------- ## | |
2090 | _ASBOX | |
2091 | echo | |
2092 | # The following way of writing the cache mishandles newlines in values, | |
2093 | ( | |
2094 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2095 | eval ac_val=\$$ac_var | |
2096 | case $ac_val in #( | |
2097 | *${as_nl}*) | |
2098 | case $ac_var in #( | |
a0673b07 | 2099 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
33aa8fe1 | 2100 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7460295f MG |
2101 | esac |
2102 | case $ac_var in #( | |
2103 | _ | IFS | as_nl) ;; #( | |
33aa8fe1 | 2104 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
a0673b07 | 2105 | *) { eval $ac_var=; unset $ac_var;} ;; |
7460295f MG |
2106 | esac ;; |
2107 | esac | |
2108 | done | |
2109 | (set) 2>&1 | | |
2110 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2111 | *${as_nl}ac_space=\ *) | |
2112 | sed -n \ | |
2113 | "s/'\''/'\''\\\\'\'''\''/g; | |
2114 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2115 | ;; #( | |
2116 | *) | |
2117 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2118 | ;; | |
2119 | esac | | |
2120 | sort | |
2121 | ) | |
2122 | echo | |
2123 | ||
2124 | cat <<\_ASBOX | |
2125 | ## ----------------- ## | |
2126 | ## Output variables. ## | |
2127 | ## ----------------- ## | |
2128 | _ASBOX | |
2129 | echo | |
2130 | for ac_var in $ac_subst_vars | |
2131 | do | |
2132 | eval ac_val=\$$ac_var | |
2133 | case $ac_val in | |
33aa8fe1 | 2134 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7460295f | 2135 | esac |
33aa8fe1 | 2136 | $as_echo "$ac_var='\''$ac_val'\''" |
7460295f MG |
2137 | done | sort |
2138 | echo | |
2139 | ||
2140 | if test -n "$ac_subst_files"; then | |
2141 | cat <<\_ASBOX | |
2142 | ## ------------------- ## | |
2143 | ## File substitutions. ## | |
2144 | ## ------------------- ## | |
2145 | _ASBOX | |
2146 | echo | |
2147 | for ac_var in $ac_subst_files | |
2148 | do | |
2149 | eval ac_val=\$$ac_var | |
2150 | case $ac_val in | |
33aa8fe1 | 2151 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7460295f | 2152 | esac |
33aa8fe1 | 2153 | $as_echo "$ac_var='\''$ac_val'\''" |
7460295f MG |
2154 | done | sort |
2155 | echo | |
2156 | fi | |
2157 | ||
2158 | if test -s confdefs.h; then | |
2159 | cat <<\_ASBOX | |
2160 | ## ----------- ## | |
2161 | ## confdefs.h. ## | |
2162 | ## ----------- ## | |
2163 | _ASBOX | |
2164 | echo | |
2165 | cat confdefs.h | |
2166 | echo | |
2167 | fi | |
2168 | test "$ac_signal" != 0 && | |
33aa8fe1 MG |
2169 | $as_echo "$as_me: caught signal $ac_signal" |
2170 | $as_echo "$as_me: exit $exit_status" | |
7460295f MG |
2171 | } >&5 |
2172 | rm -f core *.core core.conftest.* && | |
2173 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2174 | exit $exit_status | |
2175 | ' 0 | |
2176 | for ac_signal in 1 2 13 15; do | |
a0673b07 | 2177 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
7460295f MG |
2178 | done |
2179 | ac_signal=0 | |
2180 | ||
2181 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2182 | rm -f -r conftest* confdefs.h | |
2183 | ||
a0673b07 MG |
2184 | $as_echo "/* confdefs.h */" > confdefs.h |
2185 | ||
7460295f MG |
2186 | # Predefined preprocessor variables. |
2187 | ||
2188 | cat >>confdefs.h <<_ACEOF | |
2189 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2190 | _ACEOF | |
2191 | ||
7460295f MG |
2192 | cat >>confdefs.h <<_ACEOF |
2193 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2194 | _ACEOF | |
2195 | ||
7460295f MG |
2196 | cat >>confdefs.h <<_ACEOF |
2197 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2198 | _ACEOF | |
2199 | ||
7460295f MG |
2200 | cat >>confdefs.h <<_ACEOF |
2201 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2202 | _ACEOF | |
2203 | ||
7460295f MG |
2204 | cat >>confdefs.h <<_ACEOF |
2205 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2206 | _ACEOF | |
2207 | ||
a0673b07 MG |
2208 | cat >>confdefs.h <<_ACEOF |
2209 | #define PACKAGE_URL "$PACKAGE_URL" | |
2210 | _ACEOF | |
2211 | ||
7460295f MG |
2212 | |
2213 | # Let the site file select an alternate cache file if it wants to. | |
33aa8fe1 MG |
2214 | # Prefer an explicitly selected file to automatically selected ones. |
2215 | ac_site_file1=NONE | |
2216 | ac_site_file2=NONE | |
7460295f | 2217 | if test -n "$CONFIG_SITE"; then |
33aa8fe1 | 2218 | ac_site_file1=$CONFIG_SITE |
7460295f | 2219 | elif test "x$prefix" != xNONE; then |
33aa8fe1 MG |
2220 | ac_site_file1=$prefix/share/config.site |
2221 | ac_site_file2=$prefix/etc/config.site | |
7460295f | 2222 | else |
33aa8fe1 MG |
2223 | ac_site_file1=$ac_default_prefix/share/config.site |
2224 | ac_site_file2=$ac_default_prefix/etc/config.site | |
7460295f | 2225 | fi |
33aa8fe1 | 2226 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7460295f | 2227 | do |
33aa8fe1 | 2228 | test "x$ac_site_file" = xNONE && continue |
7460295f | 2229 | if test -r "$ac_site_file"; then |
a0673b07 | 2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
33aa8fe1 | 2231 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
7460295f MG |
2232 | sed 's/^/| /' "$ac_site_file" >&5 |
2233 | . "$ac_site_file" | |
2234 | fi | |
2235 | done | |
2236 | ||
2237 | if test -r "$cache_file"; then | |
2238 | # Some versions of bash will fail to source /dev/null (special | |
2239 | # files actually), so we avoid doing that. | |
2240 | if test -f "$cache_file"; then | |
a0673b07 | 2241 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
33aa8fe1 | 2242 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
7460295f MG |
2243 | case $cache_file in |
2244 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2245 | *) . "./$cache_file";; | |
2246 | esac | |
2247 | fi | |
2248 | else | |
a0673b07 | 2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
33aa8fe1 | 2250 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
7460295f MG |
2251 | >$cache_file |
2252 | fi | |
2253 | ||
2254 | # Check that the precious variables saved in the cache have kept the same | |
2255 | # value. | |
2256 | ac_cache_corrupted=false | |
2257 | for ac_var in $ac_precious_vars; do | |
2258 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2259 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2260 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2261 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2262 | case $ac_old_set,$ac_new_set in | |
2263 | set,) | |
a0673b07 | 2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
33aa8fe1 | 2265 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
7460295f MG |
2266 | ac_cache_corrupted=: ;; |
2267 | ,set) | |
a0673b07 | 2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
33aa8fe1 | 2269 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
7460295f MG |
2270 | ac_cache_corrupted=: ;; |
2271 | ,);; | |
2272 | *) | |
2273 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
33aa8fe1 MG |
2274 | # differences in whitespace do not lead to failure. |
2275 | ac_old_val_w=`echo x $ac_old_val` | |
2276 | ac_new_val_w=`echo x $ac_new_val` | |
2277 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
a0673b07 | 2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
33aa8fe1 MG |
2279 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2280 | ac_cache_corrupted=: | |
2281 | else | |
a0673b07 | 2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
33aa8fe1 MG |
2283 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2284 | eval $ac_var=\$ac_old_val | |
2285 | fi | |
a0673b07 | 2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
33aa8fe1 | 2287 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
a0673b07 | 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
33aa8fe1 | 2289 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
7460295f MG |
2290 | fi;; |
2291 | esac | |
2292 | # Pass precious variables to config.status. | |
2293 | if test "$ac_new_set" = set; then | |
2294 | case $ac_new_val in | |
33aa8fe1 | 2295 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
7460295f MG |
2296 | *) ac_arg=$ac_var=$ac_new_val ;; |
2297 | esac | |
2298 | case " $ac_configure_args " in | |
2299 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
a0673b07 | 2300 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
7460295f MG |
2301 | esac |
2302 | fi | |
2303 | done | |
2304 | if $ac_cache_corrupted; then | |
a0673b07 | 2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
33aa8fe1 | 2306 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
a0673b07 | 2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
33aa8fe1 | 2308 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
a0673b07 | 2309 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
7460295f | 2310 | fi |
a0673b07 MG |
2311 | ## -------------------- ## |
2312 | ## Main body of script. ## | |
2313 | ## -------------------- ## | |
7460295f MG |
2314 | |
2315 | ac_ext=c | |
2316 | ac_cpp='$CPP $CPPFLAGS' | |
2317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2320 | ||
2321 | ||
09c5d6e3 | 2322 | VCS_REVISION=188 |
fe338aa8 MG |
2323 | |
2324 | ||
2325 | cat >>confdefs.h <<_ACEOF | |
2326 | #define VCS_REVISION "${VCS_REVISION}" | |
2327 | _ACEOF | |
2328 | ||
bf1ec4d2 | 2329 | |
c593cf68 | 2330 | CFLAGS="${CFLAGS:--Os}" |
db50e572 | 2331 | am__api_version='1.11' |
7460295f MG |
2332 | |
2333 | ac_aux_dir= | |
2334 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
a0673b07 MG |
2335 | for ac_t in install-sh install.sh shtool; do |
2336 | if test -f "$ac_dir/$ac_t"; then | |
2337 | ac_aux_dir=$ac_dir | |
2338 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2339 | break 2 | |
2340 | fi | |
2341 | done | |
7460295f MG |
2342 | done |
2343 | if test -z "$ac_aux_dir"; then | |
a0673b07 | 2344 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
7460295f MG |
2345 | fi |
2346 | ||
2347 | # These three variables are undocumented and unsupported, | |
2348 | # and are intended to be withdrawn in a future Autoconf release. | |
2349 | # They can cause serious problems if a builder's source tree is in a directory | |
2350 | # whose full name contains unusual characters. | |
2351 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2352 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2353 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2354 | ||
2355 | ||
2356 | # Find a good install program. We prefer a C program (faster), | |
2357 | # so one script is as good as another. But avoid the broken or | |
2358 | # incompatible versions: | |
2359 | # SysV /etc/install, /usr/sbin/install | |
2360 | # SunOS /usr/etc/install | |
2361 | # IRIX /sbin/install | |
2362 | # AIX /bin/install | |
2363 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2364 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2365 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2366 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2367 | # OS/2's system install, which has a completely different semantic | |
2368 | # ./install, which can be erroneously created by make from ./install.sh. | |
33aa8fe1 | 2369 | # Reject install programs that cannot install multiple files. |
a0673b07 | 2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
33aa8fe1 | 2371 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
7460295f | 2372 | if test -z "$INSTALL"; then |
a0673b07 | 2373 | if test "${ac_cv_path_install+set}" = set; then : |
33aa8fe1 | 2374 | $as_echo_n "(cached) " >&6 |
7460295f MG |
2375 | else |
2376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2377 | for as_dir in $PATH | |
2378 | do | |
2379 | IFS=$as_save_IFS | |
2380 | test -z "$as_dir" && as_dir=. | |
a0673b07 MG |
2381 | # Account for people who put trailing slashes in PATH elements. |
2382 | case $as_dir/ in #(( | |
2383 | ./ | .// | /[cC]/* | \ | |
7460295f | 2384 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
a0673b07 | 2385 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
7460295f MG |
2386 | /usr/ucb/* ) ;; |
2387 | *) | |
2388 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2389 | # Don't use installbsd from OSF since it installs stuff as root | |
2390 | # by default. | |
2391 | for ac_prog in ginstall scoinst install; do | |
2392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2393 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2394 | if test $ac_prog = install && | |
2395 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2396 | # AIX install. It has an incompatible calling convention. | |
2397 | : | |
2398 | elif test $ac_prog = install && | |
2399 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2400 | # program-specific install script used by HP pwplus--don't use. | |
2401 | : | |
2402 | else | |
33aa8fe1 MG |
2403 | rm -rf conftest.one conftest.two conftest.dir |
2404 | echo one > conftest.one | |
2405 | echo two > conftest.two | |
2406 | mkdir conftest.dir | |
2407 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2408 | test -s conftest.one && test -s conftest.two && | |
2409 | test -s conftest.dir/conftest.one && | |
2410 | test -s conftest.dir/conftest.two | |
2411 | then | |
2412 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2413 | break 3 | |
2414 | fi | |
7460295f MG |
2415 | fi |
2416 | fi | |
2417 | done | |
2418 | done | |
2419 | ;; | |
2420 | esac | |
33aa8fe1 | 2421 | |
a0673b07 | 2422 | done |
7460295f MG |
2423 | IFS=$as_save_IFS |
2424 | ||
33aa8fe1 | 2425 | rm -rf conftest.one conftest.two conftest.dir |
7460295f MG |
2426 | |
2427 | fi | |
2428 | if test "${ac_cv_path_install+set}" = set; then | |
2429 | INSTALL=$ac_cv_path_install | |
2430 | else | |
2431 | # As a last resort, use the slow shell script. Don't cache a | |
2432 | # value for INSTALL within a source directory, because that will | |
2433 | # break other packages using the cache if that directory is | |
2434 | # removed, or if the value is a relative name. | |
2435 | INSTALL=$ac_install_sh | |
2436 | fi | |
2437 | fi | |
a0673b07 | 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
33aa8fe1 | 2439 | $as_echo "$INSTALL" >&6; } |
7460295f MG |
2440 | |
2441 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2442 | # It thinks the first close brace ends the variable substitution. | |
2443 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2444 | ||
2445 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2446 | ||
2447 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2448 | ||
a0673b07 | 2449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
33aa8fe1 | 2450 | $as_echo_n "checking whether build environment is sane... " >&6; } |
7460295f MG |
2451 | # Just in case |
2452 | sleep 1 | |
2453 | echo timestamp > conftest.file | |
db50e572 MG |
2454 | # Reject unsafe characters in $srcdir or the absolute working directory |
2455 | # name. Accept space and tab only in the latter. | |
2456 | am_lf=' | |
2457 | ' | |
2458 | case `pwd` in | |
2459 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2460 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2461 | esac | |
2462 | case $srcdir in | |
2463 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2464 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2465 | esac | |
2466 | ||
7460295f MG |
2467 | # Do `set' in a subshell so we don't clobber the current shell's |
2468 | # arguments. Must try -L first in case configure is actually a | |
2469 | # symlink; some systems play weird games with the mod time of symlinks | |
2470 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2471 | # directory). | |
2472 | if ( | |
db50e572 | 2473 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
7460295f MG |
2474 | if test "$*" = "X"; then |
2475 | # -L didn't work. | |
db50e572 | 2476 | set X `ls -t "$srcdir/configure" conftest.file` |
7460295f MG |
2477 | fi |
2478 | rm -f conftest.file | |
2479 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2480 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2481 | ||
2482 | # If neither matched, then we have a broken ls. This can happen | |
2483 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2484 | # broken ls alias from the environment. This has actually | |
2485 | # happened. Such a system could not be considered "sane". | |
a0673b07 MG |
2486 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2487 | alias in your environment" "$LINENO" 5 | |
7460295f MG |
2488 | fi |
2489 | ||
2490 | test "$2" = conftest.file | |
2491 | ) | |
2492 | then | |
2493 | # Ok. | |
2494 | : | |
2495 | else | |
a0673b07 MG |
2496 | as_fn_error "newly created file is older than distributed files! |
2497 | Check your system clock" "$LINENO" 5 | |
7460295f | 2498 | fi |
a0673b07 | 2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33aa8fe1 | 2500 | $as_echo "yes" >&6; } |
7460295f MG |
2501 | test "$program_prefix" != NONE && |
2502 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2503 | # Use a double $ so make ignores it. | |
2504 | test "$program_suffix" != NONE && | |
2505 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
33aa8fe1 | 2506 | # Double any \ or $. |
7460295f | 2507 | # By default was `s,x,x', remove it if useless. |
33aa8fe1 MG |
2508 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2509 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
7460295f MG |
2510 | |
2511 | # expand $ac_aux_dir to an absolute path | |
2512 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2513 | ||
db50e572 MG |
2514 | if test x"${MISSING+set}" != xset; then |
2515 | case $am_aux_dir in | |
2516 | *\ * | *\ *) | |
2517 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2518 | *) | |
2519 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2520 | esac | |
2521 | fi | |
7460295f MG |
2522 | # Use eval to expand $SHELL |
2523 | if eval "$MISSING --run true"; then | |
2524 | am_missing_run="$MISSING --run " | |
2525 | else | |
2526 | am_missing_run= | |
a0673b07 | 2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
33aa8fe1 | 2528 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
7460295f MG |
2529 | fi |
2530 | ||
db50e572 MG |
2531 | if test x"${install_sh}" != xset; then |
2532 | case $am_aux_dir in | |
2533 | *\ * | *\ *) | |
2534 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2535 | *) | |
2536 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2537 | esac | |
2538 | fi | |
2539 | ||
2540 | # Installed binaries are usually stripped using `strip' when the user | |
2541 | # run `make install-strip'. However `strip' might not be the right | |
2542 | # tool to use in cross-compilation environments, therefore Automake | |
2543 | # will honor the `STRIP' environment variable to overrule this program. | |
2544 | if test "$cross_compiling" != no; then | |
2545 | if test -n "$ac_tool_prefix"; then | |
2546 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2547 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2549 | $as_echo_n "checking for $ac_word... " >&6; } | |
2550 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2551 | $as_echo_n "(cached) " >&6 | |
2552 | else | |
2553 | if test -n "$STRIP"; then | |
2554 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2555 | else | |
2556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2557 | for as_dir in $PATH | |
2558 | do | |
2559 | IFS=$as_save_IFS | |
2560 | test -z "$as_dir" && as_dir=. | |
2561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2563 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2565 | break 2 | |
2566 | fi | |
2567 | done | |
2568 | done | |
2569 | IFS=$as_save_IFS | |
2570 | ||
2571 | fi | |
2572 | fi | |
2573 | STRIP=$ac_cv_prog_STRIP | |
2574 | if test -n "$STRIP"; then | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2576 | $as_echo "$STRIP" >&6; } | |
2577 | else | |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2579 | $as_echo "no" >&6; } | |
2580 | fi | |
2581 | ||
2582 | ||
2583 | fi | |
2584 | if test -z "$ac_cv_prog_STRIP"; then | |
2585 | ac_ct_STRIP=$STRIP | |
2586 | # Extract the first word of "strip", so it can be a program name with args. | |
2587 | set dummy strip; ac_word=$2 | |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2589 | $as_echo_n "checking for $ac_word... " >&6; } | |
2590 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2591 | $as_echo_n "(cached) " >&6 | |
2592 | else | |
2593 | if test -n "$ac_ct_STRIP"; then | |
2594 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2595 | else | |
2596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2597 | for as_dir in $PATH | |
2598 | do | |
2599 | IFS=$as_save_IFS | |
2600 | test -z "$as_dir" && as_dir=. | |
2601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2603 | ac_cv_prog_ac_ct_STRIP="strip" | |
2604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2605 | break 2 | |
2606 | fi | |
2607 | done | |
2608 | done | |
2609 | IFS=$as_save_IFS | |
2610 | ||
2611 | fi | |
2612 | fi | |
2613 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2614 | if test -n "$ac_ct_STRIP"; then | |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2616 | $as_echo "$ac_ct_STRIP" >&6; } | |
2617 | else | |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2619 | $as_echo "no" >&6; } | |
2620 | fi | |
2621 | ||
2622 | if test "x$ac_ct_STRIP" = x; then | |
2623 | STRIP=":" | |
2624 | else | |
2625 | case $cross_compiling:$ac_tool_warned in | |
2626 | yes:) | |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2628 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2629 | ac_tool_warned=yes ;; | |
2630 | esac | |
2631 | STRIP=$ac_ct_STRIP | |
2632 | fi | |
2633 | else | |
2634 | STRIP="$ac_cv_prog_STRIP" | |
2635 | fi | |
2636 | ||
2637 | fi | |
2638 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2639 | ||
a0673b07 | 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
33aa8fe1 | 2641 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
7460295f | 2642 | if test -z "$MKDIR_P"; then |
a0673b07 | 2643 | if test "${ac_cv_path_mkdir+set}" = set; then : |
33aa8fe1 | 2644 | $as_echo_n "(cached) " >&6 |
7460295f MG |
2645 | else |
2646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2647 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2648 | do | |
2649 | IFS=$as_save_IFS | |
2650 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 2651 | for ac_prog in mkdir gmkdir; do |
7460295f MG |
2652 | for ac_exec_ext in '' $ac_executable_extensions; do |
2653 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2654 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2655 | 'mkdir (GNU coreutils) '* | \ | |
2656 | 'mkdir (coreutils) '* | \ | |
2657 | 'mkdir (fileutils) '4.1*) | |
2658 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2659 | break 3;; | |
2660 | esac | |
2661 | done | |
2662 | done | |
a0673b07 | 2663 | done |
7460295f MG |
2664 | IFS=$as_save_IFS |
2665 | ||
2666 | fi | |
2667 | ||
2668 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2669 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2670 | else | |
2671 | # As a last resort, use the slow shell script. Don't cache a | |
2672 | # value for MKDIR_P within a source directory, because that will | |
2673 | # break other packages using the cache if that directory is | |
2674 | # removed, or if the value is a relative name. | |
2675 | test -d ./--version && rmdir ./--version | |
2676 | MKDIR_P="$ac_install_sh -d" | |
2677 | fi | |
2678 | fi | |
a0673b07 | 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
33aa8fe1 | 2680 | $as_echo "$MKDIR_P" >&6; } |
7460295f MG |
2681 | |
2682 | mkdir_p="$MKDIR_P" | |
2683 | case $mkdir_p in | |
2684 | [\\/$]* | ?:[\\/]*) ;; | |
2685 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2686 | esac | |
2687 | ||
2688 | for ac_prog in gawk mawk nawk awk | |
2689 | do | |
2690 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2691 | set dummy $ac_prog; ac_word=$2 | |
a0673b07 | 2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 2693 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 2694 | if test "${ac_cv_prog_AWK+set}" = set; then : |
33aa8fe1 | 2695 | $as_echo_n "(cached) " >&6 |
7460295f MG |
2696 | else |
2697 | if test -n "$AWK"; then | |
2698 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2699 | else | |
2700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2701 | for as_dir in $PATH | |
2702 | do | |
2703 | IFS=$as_save_IFS | |
2704 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 2705 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f MG |
2706 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2707 | ac_cv_prog_AWK="$ac_prog" | |
a0673b07 | 2708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
2709 | break 2 |
2710 | fi | |
2711 | done | |
a0673b07 | 2712 | done |
7460295f MG |
2713 | IFS=$as_save_IFS |
2714 | ||
2715 | fi | |
2716 | fi | |
2717 | AWK=$ac_cv_prog_AWK | |
2718 | if test -n "$AWK"; then | |
a0673b07 | 2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
33aa8fe1 | 2720 | $as_echo "$AWK" >&6; } |
7460295f | 2721 | else |
a0673b07 | 2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 2723 | $as_echo "no" >&6; } |
7460295f MG |
2724 | fi |
2725 | ||
2726 | ||
2727 | test -n "$AWK" && break | |
2728 | done | |
2729 | ||
a0673b07 | 2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
33aa8fe1 MG |
2731 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2732 | set x ${MAKE-make} | |
2733 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
a0673b07 | 2734 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
33aa8fe1 | 2735 | $as_echo_n "(cached) " >&6 |
7460295f MG |
2736 | else |
2737 | cat >conftest.make <<\_ACEOF | |
2738 | SHELL = /bin/sh | |
2739 | all: | |
2740 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2741 | _ACEOF | |
2742 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2743 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2744 | *@@@%%%=?*=@@@%%%*) | |
2745 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2746 | *) | |
2747 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2748 | esac | |
2749 | rm -f conftest.make | |
2750 | fi | |
2751 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
a0673b07 | 2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33aa8fe1 | 2753 | $as_echo "yes" >&6; } |
7460295f MG |
2754 | SET_MAKE= |
2755 | else | |
a0673b07 | 2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 2757 | $as_echo "no" >&6; } |
7460295f MG |
2758 | SET_MAKE="MAKE=${MAKE-make}" |
2759 | fi | |
2760 | ||
2761 | rm -rf .tst 2>/dev/null | |
2762 | mkdir .tst 2>/dev/null | |
2763 | if test -d .tst; then | |
2764 | am__leading_dot=. | |
2765 | else | |
2766 | am__leading_dot=_ | |
2767 | fi | |
2768 | rmdir .tst 2>/dev/null | |
2769 | ||
2770 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2771 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2772 | # is not polluted with repeated "-I." | |
2773 | am__isrc=' -I$(srcdir)' | |
2774 | # test to see if srcdir already configured | |
2775 | if test -f $srcdir/config.status; then | |
a0673b07 | 2776 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
7460295f MG |
2777 | fi |
2778 | fi | |
2779 | ||
2780 | # test whether we have cygpath | |
2781 | if test -z "$CYGPATH_W"; then | |
2782 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2783 | CYGPATH_W='cygpath -w' | |
2784 | else | |
2785 | CYGPATH_W=echo | |
2786 | fi | |
2787 | fi | |
2788 | ||
2789 | ||
2790 | # Define the identity of the package. | |
2791 | PACKAGE='shellinabox' | |
9be467c0 | 2792 | VERSION='2.10' |
7460295f MG |
2793 | |
2794 | ||
2795 | cat >>confdefs.h <<_ACEOF | |
2796 | #define PACKAGE "$PACKAGE" | |
2797 | _ACEOF | |
2798 | ||
2799 | ||
2800 | cat >>confdefs.h <<_ACEOF | |
2801 | #define VERSION "$VERSION" | |
2802 | _ACEOF | |
2803 | ||
2804 | # Some tools Automake needs. | |
2805 | ||
2806 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2807 | ||
2808 | ||
2809 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2810 | ||
2811 | ||
2812 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2813 | ||
2814 | ||
2815 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2816 | ||
2817 | ||
2818 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2819 | ||
7460295f MG |
2820 | # We need awk for the "check" target. The system "awk" is bad on |
2821 | # some platforms. | |
2822 | # Always define AMTAR for backward compatibility. | |
2823 | ||
2824 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2825 | ||
2826 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2827 | ||
2828 | ||
2829 | ||
2830 | ||
2831 | ||
bdd01e84 MG |
2832 | ac_config_headers="$ac_config_headers config.h" |
2833 | ||
7460295f MG |
2834 | ac_ext=c |
2835 | ac_cpp='$CPP $CPPFLAGS' | |
2836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2839 | if test -n "$ac_tool_prefix"; then | |
2840 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2841 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
a0673b07 | 2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 2843 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 2844 | if test "${ac_cv_prog_CC+set}" = set; then : |
33aa8fe1 | 2845 | $as_echo_n "(cached) " >&6 |
7460295f MG |
2846 | else |
2847 | if test -n "$CC"; then | |
2848 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2849 | else | |
2850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2851 | for as_dir in $PATH | |
2852 | do | |
2853 | IFS=$as_save_IFS | |
2854 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 2855 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f MG |
2856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2857 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
a0673b07 | 2858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
2859 | break 2 |
2860 | fi | |
2861 | done | |
a0673b07 | 2862 | done |
7460295f MG |
2863 | IFS=$as_save_IFS |
2864 | ||
2865 | fi | |
2866 | fi | |
2867 | CC=$ac_cv_prog_CC | |
2868 | if test -n "$CC"; then | |
a0673b07 | 2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
33aa8fe1 | 2870 | $as_echo "$CC" >&6; } |
7460295f | 2871 | else |
a0673b07 | 2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 2873 | $as_echo "no" >&6; } |
7460295f MG |
2874 | fi |
2875 | ||
2876 | ||
2877 | fi | |
2878 | if test -z "$ac_cv_prog_CC"; then | |
2879 | ac_ct_CC=$CC | |
2880 | # Extract the first word of "gcc", so it can be a program name with args. | |
2881 | set dummy gcc; ac_word=$2 | |
a0673b07 | 2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 2883 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 2884 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
33aa8fe1 | 2885 | $as_echo_n "(cached) " >&6 |
7460295f MG |
2886 | else |
2887 | if test -n "$ac_ct_CC"; then | |
2888 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2889 | else | |
2890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2891 | for as_dir in $PATH | |
2892 | do | |
2893 | IFS=$as_save_IFS | |
2894 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 2895 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f MG |
2896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2897 | ac_cv_prog_ac_ct_CC="gcc" | |
a0673b07 | 2898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
2899 | break 2 |
2900 | fi | |
2901 | done | |
a0673b07 | 2902 | done |
7460295f MG |
2903 | IFS=$as_save_IFS |
2904 | ||
2905 | fi | |
2906 | fi | |
2907 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2908 | if test -n "$ac_ct_CC"; then | |
a0673b07 | 2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
33aa8fe1 | 2910 | $as_echo "$ac_ct_CC" >&6; } |
7460295f | 2911 | else |
a0673b07 | 2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 2913 | $as_echo "no" >&6; } |
7460295f MG |
2914 | fi |
2915 | ||
2916 | if test "x$ac_ct_CC" = x; then | |
2917 | CC="" | |
2918 | else | |
2919 | case $cross_compiling:$ac_tool_warned in | |
2920 | yes:) | |
a0673b07 | 2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 2922 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7460295f MG |
2923 | ac_tool_warned=yes ;; |
2924 | esac | |
2925 | CC=$ac_ct_CC | |
2926 | fi | |
2927 | else | |
2928 | CC="$ac_cv_prog_CC" | |
2929 | fi | |
2930 | ||
2931 | if test -z "$CC"; then | |
2932 | if test -n "$ac_tool_prefix"; then | |
2933 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2934 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
a0673b07 | 2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 2936 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 2937 | if test "${ac_cv_prog_CC+set}" = set; then : |
33aa8fe1 | 2938 | $as_echo_n "(cached) " >&6 |
7460295f MG |
2939 | else |
2940 | if test -n "$CC"; then | |
2941 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2942 | else | |
2943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2944 | for as_dir in $PATH | |
2945 | do | |
2946 | IFS=$as_save_IFS | |
2947 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 2948 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f MG |
2949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2950 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
a0673b07 | 2951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
2952 | break 2 |
2953 | fi | |
2954 | done | |
a0673b07 | 2955 | done |
7460295f MG |
2956 | IFS=$as_save_IFS |
2957 | ||
2958 | fi | |
2959 | fi | |
2960 | CC=$ac_cv_prog_CC | |
2961 | if test -n "$CC"; then | |
a0673b07 | 2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
33aa8fe1 | 2963 | $as_echo "$CC" >&6; } |
7460295f | 2964 | else |
a0673b07 | 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 2966 | $as_echo "no" >&6; } |
7460295f MG |
2967 | fi |
2968 | ||
2969 | ||
2970 | fi | |
2971 | fi | |
2972 | if test -z "$CC"; then | |
2973 | # Extract the first word of "cc", so it can be a program name with args. | |
2974 | set dummy cc; ac_word=$2 | |
a0673b07 | 2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 2976 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 2977 | if test "${ac_cv_prog_CC+set}" = set; then : |
33aa8fe1 | 2978 | $as_echo_n "(cached) " >&6 |
7460295f MG |
2979 | else |
2980 | if test -n "$CC"; then | |
2981 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2982 | else | |
2983 | ac_prog_rejected=no | |
2984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2985 | for as_dir in $PATH | |
2986 | do | |
2987 | IFS=$as_save_IFS | |
2988 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 2989 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f MG |
2990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2991 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2992 | ac_prog_rejected=yes | |
2993 | continue | |
2994 | fi | |
2995 | ac_cv_prog_CC="cc" | |
a0673b07 | 2996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
2997 | break 2 |
2998 | fi | |
2999 | done | |
a0673b07 | 3000 | done |
7460295f MG |
3001 | IFS=$as_save_IFS |
3002 | ||
3003 | if test $ac_prog_rejected = yes; then | |
3004 | # We found a bogon in the path, so make sure we never use it. | |
3005 | set dummy $ac_cv_prog_CC | |
3006 | shift | |
3007 | if test $# != 0; then | |
3008 | # We chose a different compiler from the bogus one. | |
3009 | # However, it has the same basename, so the bogon will be chosen | |
3010 | # first if we set CC to just the basename; use the full file name. | |
3011 | shift | |
3012 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3013 | fi | |
3014 | fi | |
3015 | fi | |
3016 | fi | |
3017 | CC=$ac_cv_prog_CC | |
3018 | if test -n "$CC"; then | |
a0673b07 | 3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
33aa8fe1 | 3020 | $as_echo "$CC" >&6; } |
7460295f | 3021 | else |
a0673b07 | 3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 3023 | $as_echo "no" >&6; } |
7460295f MG |
3024 | fi |
3025 | ||
3026 | ||
3027 | fi | |
3028 | if test -z "$CC"; then | |
3029 | if test -n "$ac_tool_prefix"; then | |
3030 | for ac_prog in cl.exe | |
3031 | do | |
3032 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3033 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a0673b07 | 3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 3035 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 3036 | if test "${ac_cv_prog_CC+set}" = set; then : |
33aa8fe1 | 3037 | $as_echo_n "(cached) " >&6 |
7460295f MG |
3038 | else |
3039 | if test -n "$CC"; then | |
3040 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3041 | else | |
3042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3043 | for as_dir in $PATH | |
3044 | do | |
3045 | IFS=$as_save_IFS | |
3046 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 3047 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f MG |
3048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3049 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
a0673b07 | 3050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
3051 | break 2 |
3052 | fi | |
3053 | done | |
a0673b07 | 3054 | done |
7460295f MG |
3055 | IFS=$as_save_IFS |
3056 | ||
3057 | fi | |
3058 | fi | |
3059 | CC=$ac_cv_prog_CC | |
3060 | if test -n "$CC"; then | |
a0673b07 | 3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
33aa8fe1 | 3062 | $as_echo "$CC" >&6; } |
7460295f | 3063 | else |
a0673b07 | 3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 3065 | $as_echo "no" >&6; } |
7460295f MG |
3066 | fi |
3067 | ||
3068 | ||
3069 | test -n "$CC" && break | |
3070 | done | |
3071 | fi | |
3072 | if test -z "$CC"; then | |
3073 | ac_ct_CC=$CC | |
3074 | for ac_prog in cl.exe | |
3075 | do | |
3076 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3077 | set dummy $ac_prog; ac_word=$2 | |
a0673b07 | 3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 3079 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 3080 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
33aa8fe1 | 3081 | $as_echo_n "(cached) " >&6 |
7460295f MG |
3082 | else |
3083 | if test -n "$ac_ct_CC"; then | |
3084 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3085 | else | |
3086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3087 | for as_dir in $PATH | |
3088 | do | |
3089 | IFS=$as_save_IFS | |
3090 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 3091 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f MG |
3092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3093 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
a0673b07 | 3094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
3095 | break 2 |
3096 | fi | |
3097 | done | |
a0673b07 | 3098 | done |
7460295f MG |
3099 | IFS=$as_save_IFS |
3100 | ||
3101 | fi | |
3102 | fi | |
3103 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3104 | if test -n "$ac_ct_CC"; then | |
a0673b07 | 3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
33aa8fe1 | 3106 | $as_echo "$ac_ct_CC" >&6; } |
7460295f | 3107 | else |
a0673b07 | 3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 3109 | $as_echo "no" >&6; } |
7460295f MG |
3110 | fi |
3111 | ||
3112 | ||
3113 | test -n "$ac_ct_CC" && break | |
3114 | done | |
3115 | ||
3116 | if test "x$ac_ct_CC" = x; then | |
3117 | CC="" | |
3118 | else | |
3119 | case $cross_compiling:$ac_tool_warned in | |
3120 | yes:) | |
a0673b07 | 3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 3122 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7460295f MG |
3123 | ac_tool_warned=yes ;; |
3124 | esac | |
3125 | CC=$ac_ct_CC | |
3126 | fi | |
3127 | fi | |
3128 | ||
3129 | fi | |
3130 | ||
3131 | ||
a0673b07 | 3132 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
33aa8fe1 | 3133 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
a0673b07 MG |
3134 | as_fn_error "no acceptable C compiler found in \$PATH |
3135 | See \`config.log' for more details." "$LINENO" 5; } | |
7460295f MG |
3136 | |
3137 | # Provide some information about the compiler. | |
a0673b07 | 3138 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
33aa8fe1 MG |
3139 | set X $ac_compile |
3140 | ac_compiler=$2 | |
a0673b07 MG |
3141 | for ac_option in --version -v -V -qversion; do |
3142 | { { ac_try="$ac_compiler $ac_option >&5" | |
7460295f MG |
3143 | case "(($ac_try" in |
3144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3145 | *) ac_try_echo=$ac_try;; | |
3146 | esac | |
a0673b07 MG |
3147 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3148 | $as_echo "$ac_try_echo"; } >&5 | |
3149 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
7460295f | 3150 | ac_status=$? |
a0673b07 MG |
3151 | if test -s conftest.err; then |
3152 | sed '10a\ | |
3153 | ... rest of stderr output deleted ... | |
3154 | 10q' conftest.err >conftest.er1 | |
3155 | cat conftest.er1 >&5 | |
3156 | rm -f conftest.er1 conftest.err | |
3157 | fi | |
3158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3159 | test $ac_status = 0; } | |
3160 | done | |
7460295f | 3161 | |
a0673b07 | 3162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7460295f | 3163 | /* end confdefs.h. */ |
a0673b07 | 3164 | #include <stdio.h> |
7460295f MG |
3165 | int |
3166 | main () | |
3167 | { | |
a0673b07 MG |
3168 | FILE *f = fopen ("conftest.out", "w"); |
3169 | return ferror (f) || fclose (f) != 0; | |
7460295f MG |
3170 | |
3171 | ; | |
3172 | return 0; | |
3173 | } | |
3174 | _ACEOF | |
3175 | ac_clean_files_save=$ac_clean_files | |
a0673b07 | 3176 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
7460295f MG |
3177 | # Try to create an executable without -o first, disregard a.out. |
3178 | # It will help us diagnose broken compilers, and finding out an intuition | |
3179 | # of exeext. | |
a0673b07 | 3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
33aa8fe1 MG |
3181 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
3182 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3183 | ||
3184 | # The possible output files: | |
3185 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3186 | ||
7460295f MG |
3187 | ac_rmfiles= |
3188 | for ac_file in $ac_files | |
3189 | do | |
3190 | case $ac_file in | |
33aa8fe1 | 3191 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7460295f MG |
3192 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3193 | esac | |
3194 | done | |
3195 | rm -f $ac_rmfiles | |
3196 | ||
a0673b07 | 3197 | if { { ac_try="$ac_link_default" |
7460295f MG |
3198 | case "(($ac_try" in |
3199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3200 | *) ac_try_echo=$ac_try;; | |
3201 | esac | |
a0673b07 MG |
3202 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3203 | $as_echo "$ac_try_echo"; } >&5 | |
7460295f MG |
3204 | (eval "$ac_link_default") 2>&5 |
3205 | ac_status=$? | |
a0673b07 MG |
3206 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3207 | test $ac_status = 0; }; then : | |
7460295f MG |
3208 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3209 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3210 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3211 | # so that the user can short-circuit this test for compilers unknown to | |
3212 | # Autoconf. | |
3213 | for ac_file in $ac_files '' | |
3214 | do | |
3215 | test -f "$ac_file" || continue | |
3216 | case $ac_file in | |
33aa8fe1 | 3217 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
7460295f MG |
3218 | ;; |
3219 | [ab].out ) | |
3220 | # We found the default executable, but exeext='' is most | |
3221 | # certainly right. | |
3222 | break;; | |
3223 | *.* ) | |
a0673b07 | 3224 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
7460295f MG |
3225 | then :; else |
3226 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3227 | fi | |
3228 | # We set ac_cv_exeext here because the later test for it is not | |
3229 | # safe: cross compilers may not add the suffix if given an `-o' | |
3230 | # argument, so we may need to know it at that point already. | |
3231 | # Even if this section looks crufty: it has the advantage of | |
3232 | # actually working. | |
3233 | break;; | |
3234 | * ) | |
3235 | break;; | |
3236 | esac | |
3237 | done | |
3238 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3239 | ||
3240 | else | |
3241 | ac_file='' | |
3242 | fi | |
a0673b07 | 3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
33aa8fe1 | 3244 | $as_echo "$ac_file" >&6; } |
a0673b07 | 3245 | if test -z "$ac_file"; then : |
33aa8fe1 | 3246 | $as_echo "$as_me: failed program was:" >&5 |
7460295f MG |
3247 | sed 's/^/| /' conftest.$ac_ext >&5 |
3248 | ||
a0673b07 | 3249 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
33aa8fe1 | 3250 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
a0673b07 MG |
3251 | { as_fn_set_status 77 |
3252 | as_fn_error "C compiler cannot create executables | |
3253 | See \`config.log' for more details." "$LINENO" 5; }; } | |
7460295f | 3254 | fi |
7460295f MG |
3255 | ac_exeext=$ac_cv_exeext |
3256 | ||
3257 | # Check that the compiler produces executables we can run. If not, either | |
3258 | # the compiler is broken, or we cross compile. | |
a0673b07 | 3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
33aa8fe1 | 3260 | $as_echo_n "checking whether the C compiler works... " >&6; } |
7460295f MG |
3261 | # If not cross compiling, check that we can run a simple program. |
3262 | if test "$cross_compiling" != yes; then | |
3263 | if { ac_try='./$ac_file' | |
a0673b07 | 3264 | { { case "(($ac_try" in |
7460295f MG |
3265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3266 | *) ac_try_echo=$ac_try;; | |
3267 | esac | |
a0673b07 MG |
3268 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3269 | $as_echo "$ac_try_echo"; } >&5 | |
7460295f MG |
3270 | (eval "$ac_try") 2>&5 |
3271 | ac_status=$? | |
a0673b07 MG |
3272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3273 | test $ac_status = 0; }; }; then | |
7460295f MG |
3274 | cross_compiling=no |
3275 | else | |
3276 | if test "$cross_compiling" = maybe; then | |
3277 | cross_compiling=yes | |
3278 | else | |
a0673b07 | 3279 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
33aa8fe1 | 3280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
a0673b07 | 3281 | as_fn_error "cannot run C compiled programs. |
7460295f | 3282 | If you meant to cross compile, use \`--host'. |
a0673b07 | 3283 | See \`config.log' for more details." "$LINENO" 5; } |
7460295f MG |
3284 | fi |
3285 | fi | |
3286 | fi | |
a0673b07 | 3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33aa8fe1 | 3288 | $as_echo "yes" >&6; } |
7460295f | 3289 | |
a0673b07 | 3290 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
7460295f MG |
3291 | ac_clean_files=$ac_clean_files_save |
3292 | # Check that the compiler produces executables we can run. If not, either | |
3293 | # the compiler is broken, or we cross compile. | |
a0673b07 | 3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
33aa8fe1 | 3295 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
a0673b07 | 3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
33aa8fe1 | 3297 | $as_echo "$cross_compiling" >&6; } |
7460295f | 3298 | |
a0673b07 | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
33aa8fe1 | 3300 | $as_echo_n "checking for suffix of executables... " >&6; } |
a0673b07 | 3301 | if { { ac_try="$ac_link" |
7460295f MG |
3302 | case "(($ac_try" in |
3303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3304 | *) ac_try_echo=$ac_try;; | |
3305 | esac | |
a0673b07 MG |
3306 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3307 | $as_echo "$ac_try_echo"; } >&5 | |
7460295f MG |
3308 | (eval "$ac_link") 2>&5 |
3309 | ac_status=$? | |
a0673b07 MG |
3310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3311 | test $ac_status = 0; }; then : | |
7460295f MG |
3312 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3313 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3314 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3315 | # `rm'. | |
3316 | for ac_file in conftest.exe conftest conftest.*; do | |
3317 | test -f "$ac_file" || continue | |
3318 | case $ac_file in | |
33aa8fe1 | 3319 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7460295f MG |
3320 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3321 | break;; | |
3322 | * ) break;; | |
3323 | esac | |
3324 | done | |
3325 | else | |
a0673b07 | 3326 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
33aa8fe1 | 3327 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
a0673b07 MG |
3328 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
3329 | See \`config.log' for more details." "$LINENO" 5; } | |
7460295f | 3330 | fi |
7460295f | 3331 | rm -f conftest$ac_cv_exeext |
a0673b07 | 3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
33aa8fe1 | 3333 | $as_echo "$ac_cv_exeext" >&6; } |
7460295f MG |
3334 | |
3335 | rm -f conftest.$ac_ext | |
3336 | EXEEXT=$ac_cv_exeext | |
3337 | ac_exeext=$EXEEXT | |
a0673b07 | 3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
33aa8fe1 | 3339 | $as_echo_n "checking for suffix of object files... " >&6; } |
a0673b07 | 3340 | if test "${ac_cv_objext+set}" = set; then : |
33aa8fe1 | 3341 | $as_echo_n "(cached) " >&6 |
7460295f | 3342 | else |
a0673b07 | 3343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7460295f MG |
3344 | /* end confdefs.h. */ |
3345 | ||
3346 | int | |
3347 | main () | |
3348 | { | |
3349 | ||
3350 | ; | |
3351 | return 0; | |
3352 | } | |
3353 | _ACEOF | |
3354 | rm -f conftest.o conftest.obj | |
a0673b07 | 3355 | if { { ac_try="$ac_compile" |
7460295f MG |
3356 | case "(($ac_try" in |
3357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3358 | *) ac_try_echo=$ac_try;; | |
3359 | esac | |
a0673b07 MG |
3360 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3361 | $as_echo "$ac_try_echo"; } >&5 | |
7460295f MG |
3362 | (eval "$ac_compile") 2>&5 |
3363 | ac_status=$? | |
a0673b07 MG |
3364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3365 | test $ac_status = 0; }; then : | |
7460295f MG |
3366 | for ac_file in conftest.o conftest.obj conftest.*; do |
3367 | test -f "$ac_file" || continue; | |
3368 | case $ac_file in | |
33aa8fe1 | 3369 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
7460295f MG |
3370 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3371 | break;; | |
3372 | esac | |
3373 | done | |
3374 | else | |
33aa8fe1 | 3375 | $as_echo "$as_me: failed program was:" >&5 |
7460295f MG |
3376 | sed 's/^/| /' conftest.$ac_ext >&5 |
3377 | ||
a0673b07 | 3378 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
33aa8fe1 | 3379 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
a0673b07 MG |
3380 | as_fn_error "cannot compute suffix of object files: cannot compile |
3381 | See \`config.log' for more details." "$LINENO" 5; } | |
7460295f | 3382 | fi |
7460295f MG |
3383 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3384 | fi | |
a0673b07 | 3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
33aa8fe1 | 3386 | $as_echo "$ac_cv_objext" >&6; } |
7460295f MG |
3387 | OBJEXT=$ac_cv_objext |
3388 | ac_objext=$OBJEXT | |
a0673b07 | 3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
33aa8fe1 | 3390 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
a0673b07 | 3391 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
33aa8fe1 | 3392 | $as_echo_n "(cached) " >&6 |
7460295f | 3393 | else |
a0673b07 | 3394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7460295f MG |
3395 | /* end confdefs.h. */ |
3396 | ||
3397 | int | |
3398 | main () | |
3399 | { | |
3400 | #ifndef __GNUC__ | |
3401 | choke me | |
3402 | #endif | |
3403 | ||
3404 | ; | |
3405 | return 0; | |
3406 | } | |
3407 | _ACEOF | |
a0673b07 | 3408 | if ac_fn_c_try_compile "$LINENO"; then : |
7460295f MG |
3409 | ac_compiler_gnu=yes |
3410 | else | |
a0673b07 | 3411 | ac_compiler_gnu=no |
7460295f | 3412 | fi |
7460295f MG |
3413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3414 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3415 | ||
3416 | fi | |
a0673b07 | 3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
33aa8fe1 MG |
3418 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3419 | if test $ac_compiler_gnu = yes; then | |
3420 | GCC=yes | |
3421 | else | |
3422 | GCC= | |
3423 | fi | |
7460295f MG |
3424 | ac_test_CFLAGS=${CFLAGS+set} |
3425 | ac_save_CFLAGS=$CFLAGS | |
a0673b07 | 3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
33aa8fe1 | 3427 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
a0673b07 | 3428 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
33aa8fe1 | 3429 | $as_echo_n "(cached) " >&6 |
7460295f MG |
3430 | else |
3431 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3432 | ac_c_werror_flag=yes | |
3433 | ac_cv_prog_cc_g=no | |
3434 | CFLAGS="-g" | |
a0673b07 | 3435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7460295f MG |
3436 | /* end confdefs.h. */ |
3437 | ||
3438 | int | |
3439 | main () | |
3440 | { | |
3441 | ||
3442 | ; | |
3443 | return 0; | |
3444 | } | |
3445 | _ACEOF | |
a0673b07 | 3446 | if ac_fn_c_try_compile "$LINENO"; then : |
7460295f MG |
3447 | ac_cv_prog_cc_g=yes |
3448 | else | |
a0673b07 MG |
3449 | CFLAGS="" |
3450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7460295f MG |
3451 | /* end confdefs.h. */ |
3452 | ||
3453 | int | |
3454 | main () | |
3455 | { | |
3456 | ||
3457 | ; | |
3458 | return 0; | |
3459 | } | |
3460 | _ACEOF | |
a0673b07 | 3461 | if ac_fn_c_try_compile "$LINENO"; then : |
7460295f | 3462 | |
a0673b07 MG |
3463 | else |
3464 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7460295f | 3465 | CFLAGS="-g" |
a0673b07 | 3466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7460295f MG |
3467 | /* end confdefs.h. */ |
3468 | ||
3469 | int | |
3470 | main () | |
3471 | { | |
3472 | ||
3473 | ; | |
3474 | return 0; | |
3475 | } | |
3476 | _ACEOF | |
a0673b07 | 3477 | if ac_fn_c_try_compile "$LINENO"; then : |
7460295f | 3478 | ac_cv_prog_cc_g=yes |
7460295f | 3479 | fi |
7460295f MG |
3480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3481 | fi | |
7460295f MG |
3482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3483 | fi | |
7460295f MG |
3484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3485 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3486 | fi | |
a0673b07 | 3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
33aa8fe1 | 3488 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
7460295f MG |
3489 | if test "$ac_test_CFLAGS" = set; then |
3490 | CFLAGS=$ac_save_CFLAGS | |
3491 | elif test $ac_cv_prog_cc_g = yes; then | |
3492 | if test "$GCC" = yes; then | |
3493 | CFLAGS="-g -O2" | |
3494 | else | |
3495 | CFLAGS="-g" | |
3496 | fi | |
3497 | else | |
3498 | if test "$GCC" = yes; then | |
3499 | CFLAGS="-O2" | |
3500 | else | |
3501 | CFLAGS= | |
3502 | fi | |
3503 | fi | |
a0673b07 | 3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
33aa8fe1 | 3505 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
a0673b07 | 3506 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
33aa8fe1 | 3507 | $as_echo_n "(cached) " >&6 |
7460295f MG |
3508 | else |
3509 | ac_cv_prog_cc_c89=no | |
3510 | ac_save_CC=$CC | |
a0673b07 | 3511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7460295f MG |
3512 | /* end confdefs.h. */ |
3513 | #include <stdarg.h> | |
3514 | #include <stdio.h> | |
3515 | #include <sys/types.h> | |
3516 | #include <sys/stat.h> | |
3517 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3518 | struct buf { int x; }; | |
3519 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3520 | static char *e (p, i) | |
3521 | char **p; | |
3522 | int i; | |
3523 | { | |
3524 | return p[i]; | |
3525 | } | |
3526 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3527 | { | |
3528 | char *s; | |
3529 | va_list v; | |
3530 | va_start (v,p); | |
3531 | s = g (p, va_arg (v,int)); | |
3532 | va_end (v); | |
3533 | return s; | |
3534 | } | |
3535 | ||
3536 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3537 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3538 | These don't provoke an error unfortunately, instead are silently treated | |
3539 | as 'x'. The following induces an error, until -std is added to get | |
3540 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3541 | array size at least. It's necessary to write '\x00'==0 to get something | |
3542 | that's true only with -std. */ | |
3543 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3544 | ||
3545 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3546 | inside strings and character constants. */ | |
3547 | #define FOO(x) 'x' | |
3548 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3549 | ||
3550 | int test (int i, double x); | |
3551 | struct s1 {int (*f) (int a);}; | |
3552 | struct s2 {int (*f) (double a);}; | |
3553 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3554 | int argc; | |
3555 | char **argv; | |
3556 | int | |
3557 | main () | |
3558 | { | |
3559 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3560 | ; | |
3561 | return 0; | |
3562 | } | |
3563 | _ACEOF | |
3564 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3565 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3566 | do | |
3567 | CC="$ac_save_CC $ac_arg" | |
a0673b07 | 3568 | if ac_fn_c_try_compile "$LINENO"; then : |
7460295f | 3569 | ac_cv_prog_cc_c89=$ac_arg |
7460295f | 3570 | fi |
7460295f MG |
3571 | rm -f core conftest.err conftest.$ac_objext |
3572 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3573 | done | |
3574 | rm -f conftest.$ac_ext | |
3575 | CC=$ac_save_CC | |
3576 | ||
3577 | fi | |
3578 | # AC_CACHE_VAL | |
3579 | case "x$ac_cv_prog_cc_c89" in | |
3580 | x) | |
a0673b07 | 3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
33aa8fe1 | 3582 | $as_echo "none needed" >&6; } ;; |
7460295f | 3583 | xno) |
a0673b07 | 3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
33aa8fe1 | 3585 | $as_echo "unsupported" >&6; } ;; |
7460295f MG |
3586 | *) |
3587 | CC="$CC $ac_cv_prog_cc_c89" | |
a0673b07 | 3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
33aa8fe1 | 3589 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
7460295f | 3590 | esac |
a0673b07 | 3591 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
7460295f | 3592 | |
a0673b07 | 3593 | fi |
7460295f MG |
3594 | |
3595 | ac_ext=c | |
3596 | ac_cpp='$CPP $CPPFLAGS' | |
3597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3600 | DEPDIR="${am__leading_dot}deps" | |
3601 | ||
3602 | ac_config_commands="$ac_config_commands depfiles" | |
3603 | ||
3604 | ||
3605 | am_make=${MAKE-make} | |
3606 | cat > confinc << 'END' | |
3607 | am__doit: | |
db50e572 | 3608 | @echo this is the am__doit target |
7460295f MG |
3609 | .PHONY: am__doit |
3610 | END | |
3611 | # If we don't find an include directive, just comment out the code. | |
a0673b07 | 3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
33aa8fe1 | 3613 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
7460295f MG |
3614 | am__include="#" |
3615 | am__quote= | |
3616 | _am_result=none | |
3617 | # First try GNU make style include. | |
3618 | echo "include confinc" > confmf | |
db50e572 MG |
3619 | # Ignore all kinds of additional output from `make'. |
3620 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3621 | *the\ am__doit\ target*) | |
3622 | am__include=include | |
3623 | am__quote= | |
3624 | _am_result=GNU | |
3625 | ;; | |
3626 | esac | |
7460295f MG |
3627 | # Now try BSD make style include. |
3628 | if test "$am__include" = "#"; then | |
3629 | echo '.include "confinc"' > confmf | |
db50e572 MG |
3630 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3631 | *the\ am__doit\ target*) | |
3632 | am__include=.include | |
3633 | am__quote="\"" | |
3634 | _am_result=BSD | |
3635 | ;; | |
3636 | esac | |
7460295f MG |
3637 | fi |
3638 | ||
3639 | ||
a0673b07 | 3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
33aa8fe1 | 3641 | $as_echo "$_am_result" >&6; } |
7460295f MG |
3642 | rm -f confinc confmf |
3643 | ||
3644 | # Check whether --enable-dependency-tracking was given. | |
a0673b07 | 3645 | if test "${enable_dependency_tracking+set}" = set; then : |
7460295f MG |
3646 | enableval=$enable_dependency_tracking; |
3647 | fi | |
3648 | ||
3649 | if test "x$enable_dependency_tracking" != xno; then | |
3650 | am_depcomp="$ac_aux_dir/depcomp" | |
3651 | AMDEPBACKSLASH='\' | |
3652 | fi | |
3653 | if test "x$enable_dependency_tracking" != xno; then | |
3654 | AMDEP_TRUE= | |
3655 | AMDEP_FALSE='#' | |
3656 | else | |
3657 | AMDEP_TRUE='#' | |
3658 | AMDEP_FALSE= | |
3659 | fi | |
3660 | ||
3661 | ||
3662 | ||
3663 | depcc="$CC" am_compiler_list= | |
3664 | ||
a0673b07 | 3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
33aa8fe1 | 3666 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
a0673b07 | 3667 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
33aa8fe1 | 3668 | $as_echo_n "(cached) " >&6 |
7460295f MG |
3669 | else |
3670 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3671 | # We make a subdir and do the tests there. Otherwise we can end up | |
3672 | # making bogus files that we don't know about and never remove. For | |
3673 | # instance it was reported that on HP-UX the gcc test will end up | |
3674 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3675 | # in D'. | |
3676 | mkdir conftest.dir | |
3677 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3678 | # using a relative directory. | |
3679 | cp "$am_depcomp" conftest.dir | |
3680 | cd conftest.dir | |
3681 | # We will build objects and dependencies in a subdirectory because | |
3682 | # it helps to detect inapplicable dependency modes. For instance | |
3683 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3684 | # side effect of compilation, but ICC will put the dependencies in | |
3685 | # the current directory while Tru64 will put them in the object | |
3686 | # directory. | |
3687 | mkdir sub | |
3688 | ||
3689 | am_cv_CC_dependencies_compiler_type=none | |
3690 | if test "$am_compiler_list" = ""; then | |
3691 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3692 | fi | |
db50e572 MG |
3693 | am__universal=false |
3694 | case " $depcc " in #( | |
3695 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3696 | esac | |
3697 | ||
7460295f MG |
3698 | for depmode in $am_compiler_list; do |
3699 | # Setup a source with many dependencies, because some compilers | |
3700 | # like to wrap large dependency lists on column 80 (with \), and | |
3701 | # we should not choose a depcomp mode which is confused by this. | |
3702 | # | |
3703 | # We need to recreate these files for each test, as the compiler may | |
3704 | # overwrite some of them when testing with obscure command lines. | |
3705 | # This happens at least with the AIX C compiler. | |
3706 | : > sub/conftest.c | |
3707 | for i in 1 2 3 4 5 6; do | |
3708 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3709 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3710 | # Solaris 8's {/usr,}/bin/sh. | |
3711 | touch sub/conftst$i.h | |
3712 | done | |
3713 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3714 | ||
db50e572 MG |
3715 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3716 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3717 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3718 | # versions had trouble with output in subdirs | |
3719 | am__obj=sub/conftest.${OBJEXT-o} | |
3720 | am__minus_obj="-o $am__obj" | |
7460295f | 3721 | case $depmode in |
db50e572 MG |
3722 | gcc) |
3723 | # This depmode causes a compiler race in universal mode. | |
3724 | test "$am__universal" = false || continue | |
3725 | ;; | |
7460295f MG |
3726 | nosideeffect) |
3727 | # after this tag, mechanisms are not by side-effect, so they'll | |
3728 | # only be used when explicitly requested | |
3729 | if test "x$enable_dependency_tracking" = xyes; then | |
3730 | continue | |
3731 | else | |
3732 | break | |
3733 | fi | |
3734 | ;; | |
db50e572 MG |
3735 | msvisualcpp | msvcmsys) |
3736 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3737 | # not run yet. These depmodes are late enough in the game, and | |
3738 | # so weak that their functioning should not be impacted. | |
3739 | am__obj=conftest.${OBJEXT-o} | |
3740 | am__minus_obj= | |
3741 | ;; | |
7460295f MG |
3742 | none) break ;; |
3743 | esac | |
7460295f | 3744 | if depmode=$depmode \ |
db50e572 | 3745 | source=sub/conftest.c object=$am__obj \ |
7460295f | 3746 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
db50e572 | 3747 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
7460295f MG |
3748 | >/dev/null 2>conftest.err && |
3749 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3750 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
db50e572 | 3751 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
7460295f MG |
3752 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3753 | # icc doesn't choke on unknown options, it will just issue warnings | |
3754 | # or remarks (even with -Werror). So we grep stderr for any message | |
3755 | # that says an option was ignored or not supported. | |
3756 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3757 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3758 | # The diagnosis changed in icc 8.0: | |
3759 | # icc: Command line remark: option '-MP' not supported | |
3760 | if (grep 'ignoring option' conftest.err || | |
3761 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3762 | am_cv_CC_dependencies_compiler_type=$depmode | |
3763 | break | |
3764 | fi | |
3765 | fi | |
3766 | done | |
3767 | ||
3768 | cd .. | |
3769 | rm -rf conftest.dir | |
3770 | else | |
3771 | am_cv_CC_dependencies_compiler_type=none | |
3772 | fi | |
3773 | ||
3774 | fi | |
a0673b07 | 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
33aa8fe1 | 3776 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
7460295f MG |
3777 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3778 | ||
3779 | if | |
3780 | test "x$enable_dependency_tracking" != xno \ | |
3781 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3782 | am__fastdepCC_TRUE= | |
3783 | am__fastdepCC_FALSE='#' | |
3784 | else | |
3785 | am__fastdepCC_TRUE='#' | |
3786 | am__fastdepCC_FALSE= | |
3787 | fi | |
3788 | ||
3789 | ||
c593cf68 MG |
3790 | |
3791 | ac_c_werror_flag=yes | |
7460295f | 3792 | |
572ac014 MG |
3793 | case `pwd` in |
3794 | *\ * | *\ *) | |
a0673b07 | 3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
33aa8fe1 | 3796 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
572ac014 MG |
3797 | esac |
3798 | ||
3799 | ||
3800 | ||
3801 | macro_version='2.2.6' | |
3802 | macro_revision='1.3012' | |
3803 | ||
3804 | ||
3805 | ||
7460295f MG |
3806 | |
3807 | ||
7460295f MG |
3808 | |
3809 | ||
7460295f MG |
3810 | |
3811 | ||
572ac014 MG |
3812 | |
3813 | ||
3814 | ||
3815 | ||
3816 | ltmain="$ac_aux_dir/ltmain.sh" | |
3817 | ||
7460295f MG |
3818 | # Make sure we can run config.sub. |
3819 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
a0673b07 | 3820 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
7460295f | 3821 | |
a0673b07 | 3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
33aa8fe1 | 3823 | $as_echo_n "checking build system type... " >&6; } |
a0673b07 | 3824 | if test "${ac_cv_build+set}" = set; then : |
33aa8fe1 | 3825 | $as_echo_n "(cached) " >&6 |
7460295f MG |
3826 | else |
3827 | ac_build_alias=$build_alias | |
3828 | test "x$ac_build_alias" = x && | |
3829 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3830 | test "x$ac_build_alias" = x && | |
a0673b07 | 3831 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
7460295f | 3832 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
a0673b07 | 3833 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
7460295f MG |
3834 | |
3835 | fi | |
a0673b07 | 3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
33aa8fe1 | 3837 | $as_echo "$ac_cv_build" >&6; } |
7460295f MG |
3838 | case $ac_cv_build in |
3839 | *-*-*) ;; | |
a0673b07 | 3840 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
7460295f MG |
3841 | esac |
3842 | build=$ac_cv_build | |
3843 | ac_save_IFS=$IFS; IFS='-' | |
3844 | set x $ac_cv_build | |
3845 | shift | |
3846 | build_cpu=$1 | |
3847 | build_vendor=$2 | |
3848 | shift; shift | |
3849 | # Remember, the first character of IFS is used to create $*, | |
3850 | # except with old shells: | |
3851 | build_os=$* | |
3852 | IFS=$ac_save_IFS | |
3853 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3854 | ||
3855 | ||
a0673b07 | 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
33aa8fe1 | 3857 | $as_echo_n "checking host system type... " >&6; } |
a0673b07 | 3858 | if test "${ac_cv_host+set}" = set; then : |
33aa8fe1 | 3859 | $as_echo_n "(cached) " >&6 |
7460295f MG |
3860 | else |
3861 | if test "x$host_alias" = x; then | |
3862 | ac_cv_host=$ac_cv_build | |
3863 | else | |
3864 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
a0673b07 | 3865 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
7460295f MG |
3866 | fi |
3867 | ||
3868 | fi | |
a0673b07 | 3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
33aa8fe1 | 3870 | $as_echo "$ac_cv_host" >&6; } |
7460295f MG |
3871 | case $ac_cv_host in |
3872 | *-*-*) ;; | |
a0673b07 | 3873 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
7460295f MG |
3874 | esac |
3875 | host=$ac_cv_host | |
3876 | ac_save_IFS=$IFS; IFS='-' | |
3877 | set x $ac_cv_host | |
3878 | shift | |
3879 | host_cpu=$1 | |
3880 | host_vendor=$2 | |
3881 | shift; shift | |
3882 | # Remember, the first character of IFS is used to create $*, | |
3883 | # except with old shells: | |
3884 | host_os=$* | |
3885 | IFS=$ac_save_IFS | |
3886 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3887 | ||
3888 | ||
a0673b07 | 3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
33aa8fe1 | 3890 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
a0673b07 | 3891 | if test "${ac_cv_path_SED+set}" = set; then : |
33aa8fe1 | 3892 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
3893 | else |
3894 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3895 | for ac_i in 1 2 3 4 5 6 7; do | |
3896 | ac_script="$ac_script$as_nl$ac_script" | |
3897 | done | |
33aa8fe1 | 3898 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
a0673b07 | 3899 | { ac_script=; unset ac_script;} |
33aa8fe1 | 3900 | if test -z "$SED"; then |
572ac014 | 3901 | ac_path_SED_found=false |
33aa8fe1 MG |
3902 | # Loop through the user's path and test for each of PROGNAME-LIST |
3903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7460295f MG |
3904 | for as_dir in $PATH |
3905 | do | |
3906 | IFS=$as_save_IFS | |
3907 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 3908 | for ac_prog in sed gsed; do |
33aa8fe1 MG |
3909 | for ac_exec_ext in '' $ac_executable_extensions; do |
3910 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
3911 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3912 | # Check for GNU ac_path_SED and select it if it is found. | |
572ac014 MG |
3913 | # Check for GNU $ac_path_SED |
3914 | case `"$ac_path_SED" --version 2>&1` in | |
3915 | *GNU*) | |
3916 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3917 | *) | |
3918 | ac_count=0 | |
33aa8fe1 | 3919 | $as_echo_n 0123456789 >"conftest.in" |
572ac014 MG |
3920 | while : |
3921 | do | |
3922 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3923 | mv "conftest.tmp" "conftest.in" | |
3924 | cp "conftest.in" "conftest.nl" | |
33aa8fe1 | 3925 | $as_echo '' >> "conftest.nl" |
572ac014 MG |
3926 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3927 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
a0673b07 | 3928 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
572ac014 MG |
3929 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
3930 | # Best one so far, save it but keep looking for a better one | |
3931 | ac_cv_path_SED="$ac_path_SED" | |
3932 | ac_path_SED_max=$ac_count | |
7460295f | 3933 | fi |
572ac014 MG |
3934 | # 10*(2^10) chars as input seems more than enough |
3935 | test $ac_count -gt 10 && break | |
3936 | done | |
3937 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3938 | esac | |
3939 | ||
33aa8fe1 MG |
3940 | $ac_path_SED_found && break 3 |
3941 | done | |
7460295f | 3942 | done |
a0673b07 | 3943 | done |
572ac014 | 3944 | IFS=$as_save_IFS |
33aa8fe1 | 3945 | if test -z "$ac_cv_path_SED"; then |
a0673b07 | 3946 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
33aa8fe1 | 3947 | fi |
572ac014 MG |
3948 | else |
3949 | ac_cv_path_SED=$SED | |
3950 | fi | |
3951 | ||
7460295f | 3952 | fi |
a0673b07 | 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
33aa8fe1 | 3954 | $as_echo "$ac_cv_path_SED" >&6; } |
572ac014 MG |
3955 | SED="$ac_cv_path_SED" |
3956 | rm -f conftest.sed | |
3957 | ||
3958 | test -z "$SED" && SED=sed | |
3959 | Xsed="$SED -e 1s/^X//" | |
3960 | ||
3961 | ||
3962 | ||
3963 | ||
3964 | ||
3965 | ||
3966 | ||
3967 | ||
7460295f | 3968 | |
7460295f | 3969 | |
7460295f | 3970 | |
a0673b07 | 3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
33aa8fe1 | 3972 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
a0673b07 | 3973 | if test "${ac_cv_path_GREP+set}" = set; then : |
33aa8fe1 | 3974 | $as_echo_n "(cached) " >&6 |
7460295f | 3975 | else |
33aa8fe1 | 3976 | if test -z "$GREP"; then |
7460295f | 3977 | ac_path_GREP_found=false |
33aa8fe1 MG |
3978 | # Loop through the user's path and test for each of PROGNAME-LIST |
3979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7460295f MG |
3980 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3981 | do | |
3982 | IFS=$as_save_IFS | |
3983 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 3984 | for ac_prog in grep ggrep; do |
33aa8fe1 MG |
3985 | for ac_exec_ext in '' $ac_executable_extensions; do |
3986 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3987 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3988 | # Check for GNU ac_path_GREP and select it if it is found. | |
7460295f MG |
3989 | # Check for GNU $ac_path_GREP |
3990 | case `"$ac_path_GREP" --version 2>&1` in | |
3991 | *GNU*) | |
3992 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3993 | *) | |
3994 | ac_count=0 | |
33aa8fe1 | 3995 | $as_echo_n 0123456789 >"conftest.in" |
7460295f MG |
3996 | while : |
3997 | do | |
3998 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3999 | mv "conftest.tmp" "conftest.in" | |
4000 | cp "conftest.in" "conftest.nl" | |
33aa8fe1 | 4001 | $as_echo 'GREP' >> "conftest.nl" |
7460295f MG |
4002 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4003 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
a0673b07 | 4004 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
7460295f MG |
4005 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4006 | # Best one so far, save it but keep looking for a better one | |
4007 | ac_cv_path_GREP="$ac_path_GREP" | |
4008 | ac_path_GREP_max=$ac_count | |
4009 | fi | |
4010 | # 10*(2^10) chars as input seems more than enough | |
4011 | test $ac_count -gt 10 && break | |
4012 | done | |
4013 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4014 | esac | |
4015 | ||
33aa8fe1 MG |
4016 | $ac_path_GREP_found && break 3 |
4017 | done | |
7460295f | 4018 | done |
a0673b07 | 4019 | done |
7460295f | 4020 | IFS=$as_save_IFS |
33aa8fe1 | 4021 | if test -z "$ac_cv_path_GREP"; then |
a0673b07 | 4022 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
33aa8fe1 | 4023 | fi |
7460295f MG |
4024 | else |
4025 | ac_cv_path_GREP=$GREP | |
4026 | fi | |
4027 | ||
7460295f | 4028 | fi |
a0673b07 | 4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
33aa8fe1 | 4030 | $as_echo "$ac_cv_path_GREP" >&6; } |
7460295f MG |
4031 | GREP="$ac_cv_path_GREP" |
4032 | ||
4033 | ||
a0673b07 | 4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
33aa8fe1 | 4035 | $as_echo_n "checking for egrep... " >&6; } |
a0673b07 | 4036 | if test "${ac_cv_path_EGREP+set}" = set; then : |
33aa8fe1 | 4037 | $as_echo_n "(cached) " >&6 |
7460295f MG |
4038 | else |
4039 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4040 | then ac_cv_path_EGREP="$GREP -E" | |
4041 | else | |
33aa8fe1 | 4042 | if test -z "$EGREP"; then |
7460295f | 4043 | ac_path_EGREP_found=false |
33aa8fe1 MG |
4044 | # Loop through the user's path and test for each of PROGNAME-LIST |
4045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7460295f MG |
4046 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4047 | do | |
4048 | IFS=$as_save_IFS | |
4049 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 4050 | for ac_prog in egrep; do |
33aa8fe1 MG |
4051 | for ac_exec_ext in '' $ac_executable_extensions; do |
4052 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4053 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4054 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7460295f MG |
4055 | # Check for GNU $ac_path_EGREP |
4056 | case `"$ac_path_EGREP" --version 2>&1` in | |
4057 | *GNU*) | |
4058 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4059 | *) | |
4060 | ac_count=0 | |
33aa8fe1 | 4061 | $as_echo_n 0123456789 >"conftest.in" |
7460295f MG |
4062 | while : |
4063 | do | |
4064 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4065 | mv "conftest.tmp" "conftest.in" | |
4066 | cp "conftest.in" "conftest.nl" | |
33aa8fe1 | 4067 | $as_echo 'EGREP' >> "conftest.nl" |
7460295f MG |
4068 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4069 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
a0673b07 | 4070 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
7460295f MG |
4071 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4072 | # Best one so far, save it but keep looking for a better one | |
4073 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4074 | ac_path_EGREP_max=$ac_count | |
4075 | fi | |
4076 | # 10*(2^10) chars as input seems more than enough | |
4077 | test $ac_count -gt 10 && break | |
4078 | done | |
4079 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4080 | esac | |
4081 | ||
33aa8fe1 MG |
4082 | $ac_path_EGREP_found && break 3 |
4083 | done | |
7460295f | 4084 | done |
a0673b07 | 4085 | done |
7460295f | 4086 | IFS=$as_save_IFS |
33aa8fe1 | 4087 | if test -z "$ac_cv_path_EGREP"; then |
a0673b07 | 4088 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
33aa8fe1 | 4089 | fi |
7460295f MG |
4090 | else |
4091 | ac_cv_path_EGREP=$EGREP | |
4092 | fi | |
4093 | ||
7460295f MG |
4094 | fi |
4095 | fi | |
a0673b07 | 4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
33aa8fe1 | 4097 | $as_echo "$ac_cv_path_EGREP" >&6; } |
7460295f MG |
4098 | EGREP="$ac_cv_path_EGREP" |
4099 | ||
4100 | ||
a0673b07 | 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
33aa8fe1 | 4102 | $as_echo_n "checking for fgrep... " >&6; } |
a0673b07 | 4103 | if test "${ac_cv_path_FGREP+set}" = set; then : |
33aa8fe1 | 4104 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
4105 | else |
4106 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4107 | then ac_cv_path_FGREP="$GREP -F" | |
4108 | else | |
33aa8fe1 | 4109 | if test -z "$FGREP"; then |
572ac014 | 4110 | ac_path_FGREP_found=false |
33aa8fe1 MG |
4111 | # Loop through the user's path and test for each of PROGNAME-LIST |
4112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
572ac014 MG |
4113 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4114 | do | |
4115 | IFS=$as_save_IFS | |
4116 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 4117 | for ac_prog in fgrep; do |
33aa8fe1 MG |
4118 | for ac_exec_ext in '' $ac_executable_extensions; do |
4119 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4120 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4121 | # Check for GNU ac_path_FGREP and select it if it is found. | |
572ac014 MG |
4122 | # Check for GNU $ac_path_FGREP |
4123 | case `"$ac_path_FGREP" --version 2>&1` in | |
4124 | *GNU*) | |
4125 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4126 | *) | |
4127 | ac_count=0 | |
33aa8fe1 | 4128 | $as_echo_n 0123456789 >"conftest.in" |
572ac014 MG |
4129 | while : |
4130 | do | |
4131 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4132 | mv "conftest.tmp" "conftest.in" | |
4133 | cp "conftest.in" "conftest.nl" | |
33aa8fe1 | 4134 | $as_echo 'FGREP' >> "conftest.nl" |
572ac014 MG |
4135 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4136 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
a0673b07 | 4137 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
572ac014 MG |
4138 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4139 | # Best one so far, save it but keep looking for a better one | |
4140 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4141 | ac_path_FGREP_max=$ac_count | |
4142 | fi | |
4143 | # 10*(2^10) chars as input seems more than enough | |
4144 | test $ac_count -gt 10 && break | |
4145 | done | |
4146 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4147 | esac | |
4148 | ||
33aa8fe1 MG |
4149 | $ac_path_FGREP_found && break 3 |
4150 | done | |
572ac014 | 4151 | done |
a0673b07 | 4152 | done |
572ac014 | 4153 | IFS=$as_save_IFS |
33aa8fe1 | 4154 | if test -z "$ac_cv_path_FGREP"; then |
a0673b07 | 4155 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
33aa8fe1 | 4156 | fi |
7460295f | 4157 | else |
572ac014 | 4158 | ac_cv_path_FGREP=$FGREP |
7460295f MG |
4159 | fi |
4160 | ||
572ac014 MG |
4161 | fi |
4162 | fi | |
a0673b07 | 4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
33aa8fe1 | 4164 | $as_echo "$ac_cv_path_FGREP" >&6; } |
572ac014 MG |
4165 | FGREP="$ac_cv_path_FGREP" |
4166 | ||
4167 | ||
4168 | test -z "$GREP" && GREP=grep | |
4169 | ||
4170 | ||
4171 | ||
4172 | ||
4173 | ||
4174 | ||
4175 | ||
4176 | ||
4177 | ||
4178 | ||
4179 | ||
4180 | ||
4181 | ||
4182 | ||
4183 | ||
4184 | ||
4185 | ||
4186 | ||
4187 | ||
4188 | # Check whether --with-gnu-ld was given. | |
a0673b07 | 4189 | if test "${with_gnu_ld+set}" = set; then : |
572ac014 MG |
4190 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
4191 | else | |
4192 | with_gnu_ld=no | |
4193 | fi | |
4194 | ||
4195 | ac_prog=ld | |
4196 | if test "$GCC" = yes; then | |
4197 | # Check if gcc -print-prog-name=ld gives a path. | |
a0673b07 | 4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
33aa8fe1 | 4199 | $as_echo_n "checking for ld used by $CC... " >&6; } |
572ac014 MG |
4200 | case $host in |
4201 | *-*-mingw*) | |
4202 | # gcc leaves a trailing carriage return which upsets mingw | |
4203 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4204 | *) | |
4205 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4206 | esac | |
4207 | case $ac_prog in | |
4208 | # Accept absolute paths. | |
4209 | [\\/]* | ?:[\\/]*) | |
4210 | re_direlt='/[^/][^/]*/\.\./' | |
4211 | # Canonicalize the pathname of ld | |
4212 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4213 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4214 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4215 | done | |
4216 | test -z "$LD" && LD="$ac_prog" | |
4217 | ;; | |
4218 | "") | |
4219 | # If it fails, then pretend we aren't using GCC. | |
7460295f MG |
4220 | ac_prog=ld |
4221 | ;; | |
4222 | *) | |
4223 | # If it is relative, then search for the first ld in PATH. | |
4224 | with_gnu_ld=unknown | |
4225 | ;; | |
4226 | esac | |
4227 | elif test "$with_gnu_ld" = yes; then | |
a0673b07 | 4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
33aa8fe1 | 4229 | $as_echo_n "checking for GNU ld... " >&6; } |
7460295f | 4230 | else |
a0673b07 | 4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
33aa8fe1 | 4232 | $as_echo_n "checking for non-GNU ld... " >&6; } |
7460295f | 4233 | fi |
a0673b07 | 4234 | if test "${lt_cv_path_LD+set}" = set; then : |
33aa8fe1 | 4235 | $as_echo_n "(cached) " >&6 |
7460295f MG |
4236 | else |
4237 | if test -z "$LD"; then | |
4238 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4239 | for ac_dir in $PATH; do | |
4240 | IFS="$lt_save_ifs" | |
4241 | test -z "$ac_dir" && ac_dir=. | |
4242 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4243 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4244 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4245 | # but apparently some variants of GNU ld only accept -v. | |
4246 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4247 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4248 | *GNU* | *'with BFD'*) | |
4249 | test "$with_gnu_ld" != no && break | |
4250 | ;; | |
4251 | *) | |
4252 | test "$with_gnu_ld" != yes && break | |
4253 | ;; | |
4254 | esac | |
4255 | fi | |
4256 | done | |
4257 | IFS="$lt_save_ifs" | |
4258 | else | |
4259 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4260 | fi | |
4261 | fi | |
4262 | ||
4263 | LD="$lt_cv_path_LD" | |
4264 | if test -n "$LD"; then | |
a0673b07 | 4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
33aa8fe1 | 4266 | $as_echo "$LD" >&6; } |
7460295f | 4267 | else |
a0673b07 | 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 4269 | $as_echo "no" >&6; } |
7460295f | 4270 | fi |
a0673b07 MG |
4271 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
33aa8fe1 | 4273 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
a0673b07 | 4274 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
33aa8fe1 | 4275 | $as_echo_n "(cached) " >&6 |
7460295f MG |
4276 | else |
4277 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4278 | case `$LD -v 2>&1 </dev/null` in | |
4279 | *GNU* | *'with BFD'*) | |
4280 | lt_cv_prog_gnu_ld=yes | |
4281 | ;; | |
4282 | *) | |
4283 | lt_cv_prog_gnu_ld=no | |
4284 | ;; | |
4285 | esac | |
4286 | fi | |
a0673b07 | 4287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
33aa8fe1 | 4288 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
7460295f MG |
4289 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4290 | ||
4291 | ||
7460295f | 4292 | |
572ac014 MG |
4293 | |
4294 | ||
4295 | ||
4296 | ||
4297 | ||
4298 | ||
a0673b07 | 4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
33aa8fe1 | 4300 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
a0673b07 | 4301 | if test "${lt_cv_path_NM+set}" = set; then : |
33aa8fe1 | 4302 | $as_echo_n "(cached) " >&6 |
7460295f MG |
4303 | else |
4304 | if test -n "$NM"; then | |
4305 | # Let the user override the test. | |
4306 | lt_cv_path_NM="$NM" | |
4307 | else | |
4308 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4309 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4310 | lt_nm_to_check="$lt_nm_to_check nm" | |
4311 | fi | |
4312 | for lt_tmp_nm in $lt_nm_to_check; do | |
4313 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4314 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4315 | IFS="$lt_save_ifs" | |
4316 | test -z "$ac_dir" && ac_dir=. | |
4317 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4318 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4319 | # Check to see if the nm accepts a BSD-compat flag. | |
4320 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4321 | # nm: unknown option "B" ignored | |
4322 | # Tru64's nm complains that /dev/null is an invalid object file | |
4323 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4324 | */dev/null* | *'Invalid file or object type'*) | |
4325 | lt_cv_path_NM="$tmp_nm -B" | |
4326 | break | |
4327 | ;; | |
4328 | *) | |
4329 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4330 | */dev/null*) | |
4331 | lt_cv_path_NM="$tmp_nm -p" | |
4332 | break | |
4333 | ;; | |
4334 | *) | |
4335 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4336 | continue # so that we can try to find one that supports BSD flags | |
4337 | ;; | |
4338 | esac | |
4339 | ;; | |
4340 | esac | |
4341 | fi | |
4342 | done | |
4343 | IFS="$lt_save_ifs" | |
4344 | done | |
572ac014 | 4345 | : ${lt_cv_path_NM=no} |
7460295f MG |
4346 | fi |
4347 | fi | |
a0673b07 | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
33aa8fe1 | 4349 | $as_echo "$lt_cv_path_NM" >&6; } |
572ac014 MG |
4350 | if test "$lt_cv_path_NM" != "no"; then |
4351 | NM="$lt_cv_path_NM" | |
4352 | else | |
4353 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4354 | if test -n "$ac_tool_prefix"; then | |
4355 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4356 | do | |
4357 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4358 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a0673b07 | 4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 4360 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 4361 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
33aa8fe1 | 4362 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
4363 | else |
4364 | if test -n "$DUMPBIN"; then | |
4365 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4366 | else | |
4367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4368 | for as_dir in $PATH | |
4369 | do | |
4370 | IFS=$as_save_IFS | |
4371 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 4372 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
4373 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4374 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
a0673b07 | 4375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
4376 | break 2 |
4377 | fi | |
4378 | done | |
a0673b07 | 4379 | done |
572ac014 | 4380 | IFS=$as_save_IFS |
7460295f | 4381 | |
572ac014 MG |
4382 | fi |
4383 | fi | |
4384 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4385 | if test -n "$DUMPBIN"; then | |
a0673b07 | 4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
33aa8fe1 | 4387 | $as_echo "$DUMPBIN" >&6; } |
7460295f | 4388 | else |
a0673b07 | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 4390 | $as_echo "no" >&6; } |
7460295f MG |
4391 | fi |
4392 | ||
7460295f | 4393 | |
572ac014 MG |
4394 | test -n "$DUMPBIN" && break |
4395 | done | |
4396 | fi | |
4397 | if test -z "$DUMPBIN"; then | |
4398 | ac_ct_DUMPBIN=$DUMPBIN | |
4399 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4400 | do | |
4401 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4402 | set dummy $ac_prog; ac_word=$2 | |
a0673b07 | 4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 4404 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 4405 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
33aa8fe1 | 4406 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
4407 | else |
4408 | if test -n "$ac_ct_DUMPBIN"; then | |
4409 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4410 | else | |
4411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4412 | for as_dir in $PATH | |
4413 | do | |
4414 | IFS=$as_save_IFS | |
4415 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 4416 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
4417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4418 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
a0673b07 | 4419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
4420 | break 2 |
4421 | fi | |
4422 | done | |
a0673b07 | 4423 | done |
572ac014 | 4424 | IFS=$as_save_IFS |
7460295f | 4425 | |
572ac014 MG |
4426 | fi |
4427 | fi | |
4428 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4429 | if test -n "$ac_ct_DUMPBIN"; then | |
a0673b07 | 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
33aa8fe1 | 4431 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
572ac014 | 4432 | else |
a0673b07 | 4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 4434 | $as_echo "no" >&6; } |
572ac014 | 4435 | fi |
7460295f | 4436 | |
7460295f | 4437 | |
572ac014 MG |
4438 | test -n "$ac_ct_DUMPBIN" && break |
4439 | done | |
7460295f | 4440 | |
572ac014 MG |
4441 | if test "x$ac_ct_DUMPBIN" = x; then |
4442 | DUMPBIN=":" | |
7460295f | 4443 | else |
572ac014 MG |
4444 | case $cross_compiling:$ac_tool_warned in |
4445 | yes:) | |
a0673b07 | 4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 4447 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
572ac014 MG |
4448 | ac_tool_warned=yes ;; |
4449 | esac | |
4450 | DUMPBIN=$ac_ct_DUMPBIN | |
7460295f | 4451 | fi |
572ac014 | 4452 | fi |
7460295f | 4453 | |
7460295f | 4454 | |
572ac014 MG |
4455 | if test "$DUMPBIN" != ":"; then |
4456 | NM="$DUMPBIN" | |
7460295f | 4457 | fi |
572ac014 MG |
4458 | fi |
4459 | test -z "$NM" && NM=nm | |
7460295f | 4460 | |
7460295f | 4461 | |
7460295f | 4462 | |
7460295f | 4463 | |
7460295f | 4464 | |
7460295f | 4465 | |
a0673b07 | 4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
33aa8fe1 | 4467 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
a0673b07 | 4468 | if test "${lt_cv_nm_interface+set}" = set; then : |
33aa8fe1 | 4469 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
4470 | else |
4471 | lt_cv_nm_interface="BSD nm" | |
4472 | echo "int some_variable = 0;" > conftest.$ac_ext | |
db50e572 | 4473 | (eval echo "\"\$as_me:4473: $ac_compile\"" >&5) |
572ac014 MG |
4474 | (eval "$ac_compile" 2>conftest.err) |
4475 | cat conftest.err >&5 | |
db50e572 | 4476 | (eval echo "\"\$as_me:4476: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
572ac014 MG |
4477 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4478 | cat conftest.err >&5 | |
db50e572 | 4479 | (eval echo "\"\$as_me:4479: output\"" >&5) |
572ac014 MG |
4480 | cat conftest.out >&5 |
4481 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4482 | lt_cv_nm_interface="MS dumpbin" | |
7460295f | 4483 | fi |
572ac014 MG |
4484 | rm -f conftest* |
4485 | fi | |
a0673b07 | 4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
33aa8fe1 | 4487 | $as_echo "$lt_cv_nm_interface" >&6; } |
7460295f | 4488 | |
a0673b07 | 4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
33aa8fe1 | 4490 | $as_echo_n "checking whether ln -s works... " >&6; } |
572ac014 MG |
4491 | LN_S=$as_ln_s |
4492 | if test "$LN_S" = "ln -s"; then | |
a0673b07 | 4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33aa8fe1 | 4494 | $as_echo "yes" >&6; } |
572ac014 | 4495 | else |
a0673b07 | 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
33aa8fe1 | 4497 | $as_echo "no, using $LN_S" >&6; } |
572ac014 | 4498 | fi |
7460295f | 4499 | |
572ac014 | 4500 | # find the maximum length of command line arguments |
a0673b07 | 4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
33aa8fe1 | 4502 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
a0673b07 | 4503 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
33aa8fe1 | 4504 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
4505 | else |
4506 | i=0 | |
4507 | teststring="ABCD" | |
7460295f | 4508 | |
572ac014 MG |
4509 | case $build_os in |
4510 | msdosdjgpp*) | |
4511 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4512 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4513 | # during glob expansion). Even if it were fixed, the result of this | |
4514 | # check would be larger than it should be. | |
4515 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4516 | ;; | |
7460295f | 4517 | |
572ac014 MG |
4518 | gnu*) |
4519 | # Under GNU Hurd, this test is not required because there is | |
4520 | # no limit to the length of command line arguments. | |
4521 | # Libtool will interpret -1 as no limit whatsoever | |
4522 | lt_cv_sys_max_cmd_len=-1; | |
4523 | ;; | |
7460295f | 4524 | |
572ac014 MG |
4525 | cygwin* | mingw* | cegcc*) |
4526 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4527 | # about 5 minutes as the teststring grows exponentially. | |
4528 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4529 | # you end up with a "frozen" computer, even though with patience | |
4530 | # the test eventually succeeds (with a max line length of 256k). | |
4531 | # Instead, let's just punt: use the minimum linelength reported by | |
4532 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4533 | lt_cv_sys_max_cmd_len=8192; | |
4534 | ;; | |
7460295f | 4535 | |
572ac014 MG |
4536 | amigaos*) |
4537 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4538 | # So we just punt and use a minimum line length of 8192. | |
4539 | lt_cv_sys_max_cmd_len=8192; | |
4540 | ;; | |
7460295f | 4541 | |
572ac014 MG |
4542 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4543 | # This has been around since 386BSD, at least. Likely further. | |
4544 | if test -x /sbin/sysctl; then | |
4545 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4546 | elif test -x /usr/sbin/sysctl; then | |
4547 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4548 | else | |
4549 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4550 | fi | |
4551 | # And add a safety zone | |
4552 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4553 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7460295f | 4554 | ;; |
572ac014 MG |
4555 | |
4556 | interix*) | |
4557 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4558 | lt_cv_sys_max_cmd_len=196608 | |
7460295f | 4559 | ;; |
572ac014 MG |
4560 | |
4561 | osf*) | |
4562 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4563 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4564 | # nice to cause kernel panics so lets avoid the loop below. | |
4565 | # First set a reasonable default. | |
4566 | lt_cv_sys_max_cmd_len=16384 | |
4567 | # | |
4568 | if test -x /sbin/sysconfig; then | |
4569 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4570 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4571 | esac | |
4572 | fi | |
7460295f | 4573 | ;; |
572ac014 MG |
4574 | sco3.2v5*) |
4575 | lt_cv_sys_max_cmd_len=102400 | |
7460295f | 4576 | ;; |
572ac014 MG |
4577 | sysv5* | sco5v6* | sysv4.2uw2*) |
4578 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4579 | if test -n "$kargmax"; then | |
4580 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4581 | else | |
4582 | lt_cv_sys_max_cmd_len=32768 | |
4583 | fi | |
7460295f | 4584 | ;; |
572ac014 MG |
4585 | *) |
4586 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4587 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4588 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4589 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4590 | else | |
4591 | # Make teststring a little bigger before we do anything with it. | |
4592 | # a 1K string should be a reasonable start. | |
4593 | for i in 1 2 3 4 5 6 7 8 ; do | |
4594 | teststring=$teststring$teststring | |
4595 | done | |
4596 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4597 | # If test is not a shell built-in, we'll probably end up computing a | |
4598 | # maximum length that is only half of the actual maximum length, but | |
4599 | # we can't tell. | |
4600 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4601 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4602 | test $i != 17 # 1/2 MB should be enough | |
4603 | do | |
4604 | i=`expr $i + 1` | |
4605 | teststring=$teststring$teststring | |
4606 | done | |
4607 | # Only check the string length outside the loop. | |
4608 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4609 | teststring= | |
4610 | # Add a significant safety factor because C++ compilers can tack on | |
4611 | # massive amounts of additional arguments before passing them to the | |
4612 | # linker. It appears as though 1/2 is a usable value. | |
4613 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4614 | fi | |
7460295f MG |
4615 | ;; |
4616 | esac | |
7460295f | 4617 | |
572ac014 | 4618 | fi |
7460295f | 4619 | |
572ac014 | 4620 | if test -n $lt_cv_sys_max_cmd_len ; then |
a0673b07 | 4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
33aa8fe1 | 4622 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
572ac014 | 4623 | else |
a0673b07 | 4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
33aa8fe1 | 4625 | $as_echo "none" >&6; } |
7460295f | 4626 | fi |
572ac014 | 4627 | max_cmd_len=$lt_cv_sys_max_cmd_len |
7460295f MG |
4628 | |
4629 | ||
4630 | ||
4631 | ||
7460295f | 4632 | |
7460295f | 4633 | |
572ac014 MG |
4634 | : ${CP="cp -f"} |
4635 | : ${MV="mv -f"} | |
4636 | : ${RM="rm -f"} | |
7460295f | 4637 | |
a0673b07 | 4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
33aa8fe1 | 4639 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
572ac014 MG |
4640 | # Try some XSI features |
4641 | xsi_shell=no | |
4642 | ( _lt_dummy="a/b/c" | |
4643 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4644 | = c,a/b,, \ | |
4645 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4646 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4647 | && xsi_shell=yes | |
a0673b07 | 4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
33aa8fe1 | 4649 | $as_echo "$xsi_shell" >&6; } |
7460295f | 4650 | |
572ac014 | 4651 | |
a0673b07 | 4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
33aa8fe1 | 4653 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
572ac014 MG |
4654 | lt_shell_append=no |
4655 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4656 | >/dev/null 2>&1 \ | |
4657 | && lt_shell_append=yes | |
a0673b07 | 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
33aa8fe1 | 4659 | $as_echo "$lt_shell_append" >&6; } |
572ac014 MG |
4660 | |
4661 | ||
4662 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4663 | lt_unset=unset | |
4664 | else | |
4665 | lt_unset=false | |
7460295f MG |
4666 | fi |
4667 | ||
7460295f | 4668 | |
572ac014 MG |
4669 | |
4670 | ||
4671 | ||
4672 | # test EBCDIC or ASCII | |
4673 | case `echo X|tr X '\101'` in | |
4674 | A) # ASCII based system | |
4675 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4676 | lt_SP2NL='tr \040 \012' | |
4677 | lt_NL2SP='tr \015\012 \040\040' | |
7460295f | 4678 | ;; |
572ac014 MG |
4679 | *) # EBCDIC based system |
4680 | lt_SP2NL='tr \100 \n' | |
4681 | lt_NL2SP='tr \r\n \100\100' | |
7460295f | 4682 | ;; |
572ac014 | 4683 | esac |
7460295f | 4684 | |
7460295f | 4685 | |
7460295f | 4686 | |
7460295f | 4687 | |
7460295f | 4688 | |
7460295f | 4689 | |
7460295f | 4690 | |
7460295f | 4691 | |
572ac014 | 4692 | |
a0673b07 | 4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
33aa8fe1 | 4694 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
a0673b07 | 4695 | if test "${lt_cv_ld_reload_flag+set}" = set; then : |
33aa8fe1 | 4696 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
4697 | else |
4698 | lt_cv_ld_reload_flag='-r' | |
7460295f | 4699 | fi |
a0673b07 | 4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
33aa8fe1 | 4701 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
572ac014 MG |
4702 | reload_flag=$lt_cv_ld_reload_flag |
4703 | case $reload_flag in | |
4704 | "" | " "*) ;; | |
4705 | *) reload_flag=" $reload_flag" ;; | |
4706 | esac | |
4707 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4708 | case $host_os in | |
4709 | darwin*) | |
4710 | if test "$GCC" = yes; then | |
4711 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4712 | else | |
4713 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4714 | fi | |
4715 | ;; | |
4716 | esac | |
7460295f MG |
4717 | |
4718 | ||
7460295f | 4719 | |
7460295f MG |
4720 | |
4721 | ||
7460295f | 4722 | |
7460295f | 4723 | |
7460295f | 4724 | |
572ac014 MG |
4725 | |
4726 | if test -n "$ac_tool_prefix"; then | |
4727 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4728 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
a0673b07 | 4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 4730 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 4731 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
33aa8fe1 | 4732 | $as_echo_n "(cached) " >&6 |
7460295f | 4733 | else |
572ac014 MG |
4734 | if test -n "$OBJDUMP"; then |
4735 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4736 | else | |
4737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4738 | for as_dir in $PATH | |
4739 | do | |
4740 | IFS=$as_save_IFS | |
4741 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 4742 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
4743 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4744 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
a0673b07 | 4745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
4746 | break 2 |
4747 | fi | |
4748 | done | |
a0673b07 | 4749 | done |
572ac014 | 4750 | IFS=$as_save_IFS |
7460295f | 4751 | |
572ac014 MG |
4752 | fi |
4753 | fi | |
4754 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4755 | if test -n "$OBJDUMP"; then | |
a0673b07 | 4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
33aa8fe1 | 4757 | $as_echo "$OBJDUMP" >&6; } |
572ac014 | 4758 | else |
a0673b07 | 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 4760 | $as_echo "no" >&6; } |
7460295f MG |
4761 | fi |
4762 | ||
7460295f | 4763 | |
7460295f | 4764 | fi |
572ac014 MG |
4765 | if test -z "$ac_cv_prog_OBJDUMP"; then |
4766 | ac_ct_OBJDUMP=$OBJDUMP | |
4767 | # Extract the first word of "objdump", so it can be a program name with args. | |
4768 | set dummy objdump; ac_word=$2 | |
a0673b07 | 4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 4770 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 4771 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
33aa8fe1 | 4772 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
4773 | else |
4774 | if test -n "$ac_ct_OBJDUMP"; then | |
4775 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4776 | else | |
4777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4778 | for as_dir in $PATH | |
4779 | do | |
4780 | IFS=$as_save_IFS | |
4781 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 4782 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
4783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4784 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
a0673b07 | 4785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
4786 | break 2 |
4787 | fi | |
4788 | done | |
a0673b07 | 4789 | done |
572ac014 | 4790 | IFS=$as_save_IFS |
7460295f MG |
4791 | |
4792 | fi | |
572ac014 MG |
4793 | fi |
4794 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4795 | if test -n "$ac_ct_OBJDUMP"; then | |
a0673b07 | 4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
33aa8fe1 | 4797 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
7460295f | 4798 | else |
a0673b07 | 4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 4800 | $as_echo "no" >&6; } |
7460295f | 4801 | fi |
572ac014 MG |
4802 | |
4803 | if test "x$ac_ct_OBJDUMP" = x; then | |
4804 | OBJDUMP="false" | |
4805 | else | |
4806 | case $cross_compiling:$ac_tool_warned in | |
4807 | yes:) | |
a0673b07 | 4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 4809 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
572ac014 | 4810 | ac_tool_warned=yes ;; |
7460295f | 4811 | esac |
572ac014 MG |
4812 | OBJDUMP=$ac_ct_OBJDUMP |
4813 | fi | |
7460295f | 4814 | else |
572ac014 | 4815 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
7460295f MG |
4816 | fi |
4817 | ||
572ac014 | 4818 | test -z "$OBJDUMP" && OBJDUMP=objdump |
7460295f | 4819 | |
7460295f | 4820 | |
7460295f | 4821 | |
7460295f | 4822 | |
7460295f | 4823 | |
7460295f MG |
4824 | |
4825 | ||
7460295f | 4826 | |
7460295f | 4827 | |
a0673b07 | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
33aa8fe1 | 4829 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
a0673b07 | 4830 | if test "${lt_cv_deplibs_check_method+set}" = set; then : |
33aa8fe1 | 4831 | $as_echo_n "(cached) " >&6 |
7460295f | 4832 | else |
572ac014 MG |
4833 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4834 | lt_cv_file_magic_test_file= | |
4835 | lt_cv_deplibs_check_method='unknown' | |
4836 | # Need to set the preceding variable on all platforms that support | |
4837 | # interlibrary dependencies. | |
4838 | # 'none' -- dependencies not supported. | |
4839 | # `unknown' -- same as none, but documents that we really don't know. | |
4840 | # 'pass_all' -- all dependencies passed with no checks. | |
4841 | # 'test_compile' -- check by making test program. | |
4842 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4843 | # which responds to the $file_magic_cmd with a given extended regex. | |
4844 | # If you have `file' or equivalent on your system and you're not sure | |
4845 | # whether `pass_all' will *always* work, you probably want this one. | |
7460295f | 4846 | |
572ac014 MG |
4847 | case $host_os in |
4848 | aix[4-9]*) | |
4849 | lt_cv_deplibs_check_method=pass_all | |
4850 | ;; | |
7460295f | 4851 | |
572ac014 MG |
4852 | beos*) |
4853 | lt_cv_deplibs_check_method=pass_all | |
4854 | ;; | |
7460295f | 4855 | |
572ac014 MG |
4856 | bsdi[45]*) |
4857 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4858 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4859 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4860 | ;; | |
7460295f | 4861 | |
572ac014 MG |
4862 | cygwin*) |
4863 | # func_win32_libid is a shell function defined in ltmain.sh | |
4864 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4865 | lt_cv_file_magic_cmd='func_win32_libid' | |
4866 | ;; | |
7460295f | 4867 | |
572ac014 MG |
4868 | mingw* | pw32*) |
4869 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4870 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4871 | # unless we find 'file', for example because we are cross-compiling. | |
4872 | if ( file / ) >/dev/null 2>&1; then | |
4873 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4874 | lt_cv_file_magic_cmd='func_win32_libid' | |
4875 | else | |
4876 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4877 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4878 | fi | |
4879 | ;; | |
7460295f | 4880 | |
572ac014 MG |
4881 | cegcc) |
4882 | # use the weaker test based on 'objdump'. See mingw*. | |
4883 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4884 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4885 | ;; | |
7460295f | 4886 | |
572ac014 MG |
4887 | darwin* | rhapsody*) |
4888 | lt_cv_deplibs_check_method=pass_all | |
4889 | ;; | |
7460295f | 4890 | |
572ac014 MG |
4891 | freebsd* | dragonfly*) |
4892 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4893 | case $host_cpu in | |
4894 | i*86 ) | |
4895 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4896 | # Let's accept both of them until this is cleared up. | |
4897 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4898 | lt_cv_file_magic_cmd=/usr/bin/file | |
4899 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4900 | ;; | |
4901 | esac | |
4902 | else | |
4903 | lt_cv_deplibs_check_method=pass_all | |
4904 | fi | |
4905 | ;; | |
7460295f | 4906 | |
572ac014 MG |
4907 | gnu*) |
4908 | lt_cv_deplibs_check_method=pass_all | |
4909 | ;; | |
7460295f | 4910 | |
572ac014 MG |
4911 | hpux10.20* | hpux11*) |
4912 | lt_cv_file_magic_cmd=/usr/bin/file | |
4913 | case $host_cpu in | |
4914 | ia64*) | |
4915 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4916 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4917 | ;; | |
4918 | hppa*64*) | |
4919 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
4920 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4921 | ;; | |
4922 | *) | |
4923 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4924 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4925 | ;; | |
4926 | esac | |
4927 | ;; | |
7460295f | 4928 | |
572ac014 MG |
4929 | interix[3-9]*) |
4930 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4931 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4932 | ;; | |
7460295f | 4933 | |
572ac014 MG |
4934 | irix5* | irix6* | nonstopux*) |
4935 | case $LD in | |
4936 | *-32|*"-32 ") libmagic=32-bit;; | |
4937 | *-n32|*"-n32 ") libmagic=N32;; | |
4938 | *-64|*"-64 ") libmagic=64-bit;; | |
4939 | *) libmagic=never-match;; | |
4940 | esac | |
4941 | lt_cv_deplibs_check_method=pass_all | |
4942 | ;; | |
7460295f | 4943 | |
572ac014 MG |
4944 | # This must be Linux ELF. |
4945 | linux* | k*bsd*-gnu) | |
4946 | lt_cv_deplibs_check_method=pass_all | |
4947 | ;; | |
7460295f | 4948 | |
572ac014 MG |
4949 | netbsd* | netbsdelf*-gnu) |
4950 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4951 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4952 | else | |
4953 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4954 | fi | |
4955 | ;; | |
7460295f | 4956 | |
572ac014 MG |
4957 | newos6*) |
4958 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4959 | lt_cv_file_magic_cmd=/usr/bin/file | |
4960 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4961 | ;; | |
7460295f | 4962 | |
572ac014 MG |
4963 | *nto* | *qnx*) |
4964 | lt_cv_deplibs_check_method=pass_all | |
4965 | ;; | |
7460295f | 4966 | |
572ac014 MG |
4967 | openbsd*) |
4968 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4969 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4970 | else | |
4971 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4972 | fi | |
4973 | ;; | |
7460295f | 4974 | |
572ac014 MG |
4975 | osf3* | osf4* | osf5*) |
4976 | lt_cv_deplibs_check_method=pass_all | |
4977 | ;; | |
7460295f | 4978 | |
572ac014 MG |
4979 | rdos*) |
4980 | lt_cv_deplibs_check_method=pass_all | |
4981 | ;; | |
7460295f | 4982 | |
572ac014 MG |
4983 | solaris*) |
4984 | lt_cv_deplibs_check_method=pass_all | |
4985 | ;; | |
7460295f | 4986 | |
572ac014 MG |
4987 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4988 | lt_cv_deplibs_check_method=pass_all | |
4989 | ;; | |
7460295f | 4990 | |
572ac014 MG |
4991 | sysv4 | sysv4.3*) |
4992 | case $host_vendor in | |
4993 | motorola) | |
4994 | 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]' | |
4995 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4996 | ;; | |
4997 | ncr) | |
4998 | lt_cv_deplibs_check_method=pass_all | |
4999 | ;; | |
5000 | sequent) | |
5001 | lt_cv_file_magic_cmd='/bin/file' | |
5002 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5003 | ;; | |
5004 | sni) | |
5005 | lt_cv_file_magic_cmd='/bin/file' | |
5006 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5007 | lt_cv_file_magic_test_file=/lib/libc.so | |
5008 | ;; | |
5009 | siemens) | |
5010 | lt_cv_deplibs_check_method=pass_all | |
5011 | ;; | |
5012 | pc) | |
5013 | lt_cv_deplibs_check_method=pass_all | |
5014 | ;; | |
5015 | esac | |
5016 | ;; | |
7460295f | 5017 | |
572ac014 MG |
5018 | tpf*) |
5019 | lt_cv_deplibs_check_method=pass_all | |
5020 | ;; | |
7460295f | 5021 | esac |
7460295f MG |
5022 | |
5023 | fi | |
a0673b07 | 5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
33aa8fe1 | 5025 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
572ac014 MG |
5026 | file_magic_cmd=$lt_cv_file_magic_cmd |
5027 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5028 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
7460295f MG |
5029 | |
5030 | ||
7460295f | 5031 | |
7460295f | 5032 | |
7460295f | 5033 | |
7460295f | 5034 | |
7460295f | 5035 | |
7460295f | 5036 | |
7460295f | 5037 | |
7460295f | 5038 | |
7460295f | 5039 | |
7460295f | 5040 | |
572ac014 MG |
5041 | if test -n "$ac_tool_prefix"; then |
5042 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5043 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a0673b07 | 5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5045 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5046 | if test "${ac_cv_prog_AR+set}" = set; then : |
33aa8fe1 | 5047 | $as_echo_n "(cached) " >&6 |
7460295f | 5048 | else |
572ac014 MG |
5049 | if test -n "$AR"; then |
5050 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7460295f MG |
5051 | else |
5052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5053 | for as_dir in $PATH | |
5054 | do | |
5055 | IFS=$as_save_IFS | |
5056 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5057 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 5058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 5059 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a0673b07 | 5060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
5061 | break 2 |
5062 | fi | |
5063 | done | |
a0673b07 | 5064 | done |
7460295f MG |
5065 | IFS=$as_save_IFS |
5066 | ||
5067 | fi | |
5068 | fi | |
572ac014 MG |
5069 | AR=$ac_cv_prog_AR |
5070 | if test -n "$AR"; then | |
a0673b07 | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
33aa8fe1 | 5072 | $as_echo "$AR" >&6; } |
7460295f | 5073 | else |
a0673b07 | 5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 5075 | $as_echo "no" >&6; } |
7460295f MG |
5076 | fi |
5077 | ||
5078 | ||
7460295f | 5079 | fi |
572ac014 MG |
5080 | if test -z "$ac_cv_prog_AR"; then |
5081 | ac_ct_AR=$AR | |
5082 | # Extract the first word of "ar", so it can be a program name with args. | |
5083 | set dummy ar; ac_word=$2 | |
a0673b07 | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5085 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5086 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
33aa8fe1 | 5087 | $as_echo_n "(cached) " >&6 |
7460295f | 5088 | else |
572ac014 MG |
5089 | if test -n "$ac_ct_AR"; then |
5090 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7460295f MG |
5091 | else |
5092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5093 | for as_dir in $PATH | |
5094 | do | |
5095 | IFS=$as_save_IFS | |
5096 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5097 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 5098 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 5099 | ac_cv_prog_ac_ct_AR="ar" |
a0673b07 | 5100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
5101 | break 2 |
5102 | fi | |
5103 | done | |
a0673b07 | 5104 | done |
7460295f MG |
5105 | IFS=$as_save_IFS |
5106 | ||
5107 | fi | |
5108 | fi | |
572ac014 MG |
5109 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5110 | if test -n "$ac_ct_AR"; then | |
a0673b07 | 5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
33aa8fe1 | 5112 | $as_echo "$ac_ct_AR" >&6; } |
7460295f | 5113 | else |
a0673b07 | 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 5115 | $as_echo "no" >&6; } |
7460295f MG |
5116 | fi |
5117 | ||
572ac014 MG |
5118 | if test "x$ac_ct_AR" = x; then |
5119 | AR="false" | |
7460295f MG |
5120 | else |
5121 | case $cross_compiling:$ac_tool_warned in | |
5122 | yes:) | |
a0673b07 | 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 5124 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7460295f MG |
5125 | ac_tool_warned=yes ;; |
5126 | esac | |
572ac014 | 5127 | AR=$ac_ct_AR |
7460295f | 5128 | fi |
572ac014 MG |
5129 | else |
5130 | AR="$ac_cv_prog_AR" | |
7460295f MG |
5131 | fi |
5132 | ||
572ac014 MG |
5133 | test -z "$AR" && AR=ar |
5134 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7460295f | 5135 | |
7460295f | 5136 | |
7460295f | 5137 | |
572ac014 MG |
5138 | |
5139 | ||
5140 | ||
5141 | ||
5142 | ||
5143 | ||
5144 | ||
5145 | ||
5146 | if test -n "$ac_tool_prefix"; then | |
5147 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5148 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a0673b07 | 5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5150 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5151 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
33aa8fe1 | 5152 | $as_echo_n "(cached) " >&6 |
7460295f | 5153 | else |
572ac014 MG |
5154 | if test -n "$STRIP"; then |
5155 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5156 | else | |
5157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5158 | for as_dir in $PATH | |
5159 | do | |
5160 | IFS=$as_save_IFS | |
5161 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5162 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
5163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5164 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
a0673b07 | 5165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
5166 | break 2 |
5167 | fi | |
5168 | done | |
a0673b07 | 5169 | done |
572ac014 | 5170 | IFS=$as_save_IFS |
7460295f | 5171 | |
572ac014 MG |
5172 | fi |
5173 | fi | |
5174 | STRIP=$ac_cv_prog_STRIP | |
5175 | if test -n "$STRIP"; then | |
a0673b07 | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
33aa8fe1 | 5177 | $as_echo "$STRIP" >&6; } |
572ac014 | 5178 | else |
a0673b07 | 5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 5180 | $as_echo "no" >&6; } |
7460295f MG |
5181 | fi |
5182 | ||
7460295f MG |
5183 | |
5184 | fi | |
572ac014 MG |
5185 | if test -z "$ac_cv_prog_STRIP"; then |
5186 | ac_ct_STRIP=$STRIP | |
5187 | # Extract the first word of "strip", so it can be a program name with args. | |
5188 | set dummy strip; ac_word=$2 | |
a0673b07 | 5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5190 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5191 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
33aa8fe1 | 5192 | $as_echo_n "(cached) " >&6 |
3a0490f9 | 5193 | else |
572ac014 MG |
5194 | if test -n "$ac_ct_STRIP"; then |
5195 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7460295f | 5196 | else |
572ac014 MG |
5197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5198 | for as_dir in $PATH | |
5199 | do | |
5200 | IFS=$as_save_IFS | |
5201 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5202 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
5203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5204 | ac_cv_prog_ac_ct_STRIP="strip" | |
a0673b07 | 5205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
5206 | break 2 |
5207 | fi | |
5208 | done | |
a0673b07 | 5209 | done |
572ac014 | 5210 | IFS=$as_save_IFS |
7460295f | 5211 | |
572ac014 MG |
5212 | fi |
5213 | fi | |
5214 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5215 | if test -n "$ac_ct_STRIP"; then | |
a0673b07 | 5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
33aa8fe1 | 5217 | $as_echo "$ac_ct_STRIP" >&6; } |
572ac014 | 5218 | else |
a0673b07 | 5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 5220 | $as_echo "no" >&6; } |
572ac014 | 5221 | fi |
7460295f | 5222 | |
572ac014 MG |
5223 | if test "x$ac_ct_STRIP" = x; then |
5224 | STRIP=":" | |
5225 | else | |
5226 | case $cross_compiling:$ac_tool_warned in | |
5227 | yes:) | |
a0673b07 | 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 5229 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
572ac014 | 5230 | ac_tool_warned=yes ;; |
7460295f | 5231 | esac |
572ac014 MG |
5232 | STRIP=$ac_ct_STRIP |
5233 | fi | |
7460295f | 5234 | else |
572ac014 MG |
5235 | STRIP="$ac_cv_prog_STRIP" |
5236 | fi | |
7460295f | 5237 | |
572ac014 | 5238 | test -z "$STRIP" && STRIP=: |
7460295f | 5239 | |
7460295f | 5240 | |
7460295f | 5241 | |
7460295f | 5242 | |
7460295f | 5243 | |
7460295f | 5244 | |
572ac014 MG |
5245 | if test -n "$ac_tool_prefix"; then |
5246 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5247 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
a0673b07 | 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5249 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5250 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
33aa8fe1 | 5251 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
5252 | else |
5253 | if test -n "$RANLIB"; then | |
5254 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5255 | else | |
5256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5257 | for as_dir in $PATH | |
5258 | do | |
5259 | IFS=$as_save_IFS | |
5260 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5261 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
5262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5263 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
a0673b07 | 5264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
5265 | break 2 |
5266 | fi | |
5267 | done | |
a0673b07 | 5268 | done |
572ac014 | 5269 | IFS=$as_save_IFS |
7460295f MG |
5270 | |
5271 | fi | |
572ac014 MG |
5272 | fi |
5273 | RANLIB=$ac_cv_prog_RANLIB | |
5274 | if test -n "$RANLIB"; then | |
a0673b07 | 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
33aa8fe1 | 5276 | $as_echo "$RANLIB" >&6; } |
572ac014 | 5277 | else |
a0673b07 | 5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 5279 | $as_echo "no" >&6; } |
572ac014 MG |
5280 | fi |
5281 | ||
7460295f | 5282 | |
7460295f | 5283 | fi |
572ac014 MG |
5284 | if test -z "$ac_cv_prog_RANLIB"; then |
5285 | ac_ct_RANLIB=$RANLIB | |
5286 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5287 | set dummy ranlib; ac_word=$2 | |
a0673b07 | 5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5289 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5290 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
33aa8fe1 | 5291 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
5292 | else |
5293 | if test -n "$ac_ct_RANLIB"; then | |
5294 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5295 | else | |
5296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5297 | for as_dir in $PATH | |
5298 | do | |
5299 | IFS=$as_save_IFS | |
5300 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5301 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
5302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5303 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
a0673b07 | 5304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
5305 | break 2 |
5306 | fi | |
5307 | done | |
a0673b07 | 5308 | done |
572ac014 | 5309 | IFS=$as_save_IFS |
7460295f | 5310 | |
572ac014 MG |
5311 | fi |
5312 | fi | |
5313 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5314 | if test -n "$ac_ct_RANLIB"; then | |
a0673b07 | 5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
33aa8fe1 | 5316 | $as_echo "$ac_ct_RANLIB" >&6; } |
572ac014 | 5317 | else |
a0673b07 | 5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 5319 | $as_echo "no" >&6; } |
7460295f MG |
5320 | fi |
5321 | ||
572ac014 MG |
5322 | if test "x$ac_ct_RANLIB" = x; then |
5323 | RANLIB=":" | |
7460295f | 5324 | else |
572ac014 MG |
5325 | case $cross_compiling:$ac_tool_warned in |
5326 | yes:) | |
a0673b07 | 5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 5328 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
572ac014 MG |
5329 | ac_tool_warned=yes ;; |
5330 | esac | |
5331 | RANLIB=$ac_ct_RANLIB | |
7460295f MG |
5332 | fi |
5333 | else | |
572ac014 | 5334 | RANLIB="$ac_cv_prog_RANLIB" |
7460295f | 5335 | fi |
7460295f | 5336 | |
572ac014 | 5337 | test -z "$RANLIB" && RANLIB=: |
7460295f | 5338 | |
7460295f | 5339 | |
7460295f | 5340 | |
7460295f | 5341 | |
7460295f | 5342 | |
7460295f | 5343 | |
572ac014 MG |
5344 | # Determine commands to create old-style static archives. |
5345 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5346 | old_postinstall_cmds='chmod 644 $oldlib' | |
5347 | old_postuninstall_cmds= | |
5348 | ||
5349 | if test -n "$RANLIB"; then | |
5350 | case $host_os in | |
5351 | openbsd*) | |
5352 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5353 | ;; | |
5354 | *) | |
5355 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5356 | ;; | |
5357 | esac | |
5358 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7460295f MG |
5359 | fi |
5360 | ||
5361 | ||
5362 | ||
5363 | ||
7460295f | 5364 | |
7460295f | 5365 | |
7460295f | 5366 | |
7460295f | 5367 | |
7460295f | 5368 | |
7460295f | 5369 | |
7460295f | 5370 | |
7460295f | 5371 | |
7460295f | 5372 | |
7460295f | 5373 | |
7460295f | 5374 | |
7460295f | 5375 | |
7460295f | 5376 | |
7460295f | 5377 | |
7460295f | 5378 | |
7460295f | 5379 | |
7460295f MG |
5380 | |
5381 | ||
7460295f | 5382 | |
7460295f MG |
5383 | |
5384 | ||
7460295f | 5385 | |
7460295f MG |
5386 | |
5387 | ||
7460295f | 5388 | |
7460295f MG |
5389 | |
5390 | ||
7460295f | 5391 | |
7460295f | 5392 | |
7460295f | 5393 | |
572ac014 MG |
5394 | # If no C compiler was specified, use CC. |
5395 | LTCC=${LTCC-"$CC"} | |
7460295f | 5396 | |
572ac014 MG |
5397 | # If no C compiler flags were specified, use CFLAGS. |
5398 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7460295f | 5399 | |
572ac014 MG |
5400 | # Allow CC to be a program name with arguments. |
5401 | compiler=$CC | |
7460295f | 5402 | |
572ac014 MG |
5403 | |
5404 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
a0673b07 | 5405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
33aa8fe1 | 5406 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
a0673b07 | 5407 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
33aa8fe1 | 5408 | $as_echo_n "(cached) " >&6 |
7460295f | 5409 | else |
7460295f | 5410 | |
572ac014 MG |
5411 | # These are sane defaults that work on at least a few old systems. |
5412 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7460295f | 5413 | |
572ac014 MG |
5414 | # Character class describing NM global symbol codes. |
5415 | symcode='[BCDEGRST]' | |
7460295f | 5416 | |
572ac014 MG |
5417 | # Regexp to match symbols that can be accessed directly from C. |
5418 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5419 | ||
5420 | # Define system-specific variables. | |
5421 | case $host_os in | |
5422 | aix*) | |
5423 | symcode='[BCDT]' | |
5424 | ;; | |
5425 | cygwin* | mingw* | pw32* | cegcc*) | |
5426 | symcode='[ABCDGISTW]' | |
5427 | ;; | |
5428 | hpux*) | |
5429 | if test "$host_cpu" = ia64; then | |
5430 | symcode='[ABCDEGRST]' | |
7460295f | 5431 | fi |
572ac014 MG |
5432 | ;; |
5433 | irix* | nonstopux*) | |
5434 | symcode='[BCDEGRST]' | |
5435 | ;; | |
5436 | osf*) | |
5437 | symcode='[BCDEGQRST]' | |
5438 | ;; | |
5439 | solaris*) | |
5440 | symcode='[BDRT]' | |
5441 | ;; | |
5442 | sco3.2v5*) | |
5443 | symcode='[DT]' | |
5444 | ;; | |
5445 | sysv4.2uw2*) | |
5446 | symcode='[DT]' | |
5447 | ;; | |
5448 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5449 | symcode='[ABDT]' | |
5450 | ;; | |
5451 | sysv4) | |
5452 | symcode='[DFNSTU]' | |
5453 | ;; | |
5454 | esac | |
7460295f | 5455 | |
572ac014 MG |
5456 | # If we're using GNU nm, then use its standard symbol codes. |
5457 | case `$NM -V 2>&1` in | |
5458 | *GNU* | *'with BFD'*) | |
5459 | symcode='[ABCDGIRSTW]' ;; | |
5460 | esac | |
7460295f | 5461 | |
572ac014 MG |
5462 | # Transform an extracted symbol line into a proper C declaration. |
5463 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5464 | # so use this general approach. | |
5465 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7460295f | 5466 | |
572ac014 MG |
5467 | # Transform an extracted symbol line into symbol name and symbol address |
5468 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5469 | 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'" | |
7460295f | 5470 | |
572ac014 MG |
5471 | # Handle CRLF in mingw tool chain |
5472 | opt_cr= | |
5473 | case $build_os in | |
5474 | mingw*) | |
5475 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5476 | ;; | |
5477 | esac | |
7460295f | 5478 | |
572ac014 MG |
5479 | # Try without a prefix underscore, then with it. |
5480 | for ac_symprfx in "" "_"; do | |
7460295f | 5481 | |
572ac014 MG |
5482 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5483 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7460295f | 5484 | |
572ac014 MG |
5485 | # Write the raw and C identifiers. |
5486 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5487 | # Fake it for dumpbin and say T for any non-static function | |
5488 | # and D for any global variable. | |
5489 | # Also find C++ and __fastcall symbols from MSVC++, | |
5490 | # which start with @ or ?. | |
5491 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5492 | " {last_section=section; section=\$ 3};"\ | |
5493 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5494 | " \$ 0!~/External *\|/{next};"\ | |
5495 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5496 | " {if(hide[section]) next};"\ | |
5497 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5498 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5499 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5500 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5501 | " ' prfx=^$ac_symprfx" | |
5502 | else | |
5503 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5504 | fi | |
7460295f | 5505 | |
572ac014 MG |
5506 | # Check to see that the pipe works correctly. |
5507 | pipe_works=no | |
7460295f MG |
5508 | |
5509 | rm -f conftest* | |
572ac014 | 5510 | cat > conftest.$ac_ext <<_LT_EOF |
7460295f MG |
5511 | #ifdef __cplusplus |
5512 | extern "C" { | |
5513 | #endif | |
5514 | char nm_test_var; | |
572ac014 MG |
5515 | void nm_test_func(void); |
5516 | void nm_test_func(void){} | |
7460295f MG |
5517 | #ifdef __cplusplus |
5518 | } | |
5519 | #endif | |
5520 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
572ac014 | 5521 | _LT_EOF |
7460295f | 5522 | |
a0673b07 | 5523 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7460295f MG |
5524 | (eval $ac_compile) 2>&5 |
5525 | ac_status=$? | |
a0673b07 MG |
5526 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5527 | test $ac_status = 0; }; then | |
7460295f MG |
5528 | # Now try to grab the symbols. |
5529 | nlist=conftest.nm | |
a0673b07 | 5530 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
7460295f MG |
5531 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5532 | ac_status=$? | |
a0673b07 MG |
5533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5534 | test $ac_status = 0; } && test -s "$nlist"; then | |
7460295f MG |
5535 | # Try sorting and uniquifying the output. |
5536 | if sort "$nlist" | uniq > "$nlist"T; then | |
5537 | mv -f "$nlist"T "$nlist" | |
5538 | else | |
5539 | rm -f "$nlist"T | |
5540 | fi | |
5541 | ||
5542 | # Make sure that we snagged all the symbols we need. | |
572ac014 MG |
5543 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
5544 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5545 | cat <<_LT_EOF > conftest.$ac_ext | |
7460295f MG |
5546 | #ifdef __cplusplus |
5547 | extern "C" { | |
5548 | #endif | |
5549 | ||
572ac014 | 5550 | _LT_EOF |
7460295f | 5551 | # Now generate the symbol file. |
572ac014 | 5552 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
7460295f | 5553 | |
572ac014 | 5554 | cat <<_LT_EOF >> conftest.$ac_ext |
7460295f | 5555 | |
572ac014 | 5556 | /* The mapping between symbol names and symbols. */ |
7460295f MG |
5557 | const struct { |
5558 | const char *name; | |
572ac014 | 5559 | void *address; |
7460295f | 5560 | } |
572ac014 | 5561 | lt__PROGRAM__LTX_preloaded_symbols[] = |
7460295f | 5562 | { |
572ac014 MG |
5563 | { "@PROGRAM@", (void *) 0 }, |
5564 | _LT_EOF | |
5565 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5566 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5567 | {0, (void *) 0} | |
7460295f MG |
5568 | }; |
5569 | ||
572ac014 MG |
5570 | /* This works around a problem in FreeBSD linker */ |
5571 | #ifdef FREEBSD_WORKAROUND | |
5572 | static const void *lt_preloaded_setup() { | |
5573 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5574 | } | |
5575 | #endif | |
5576 | ||
7460295f MG |
5577 | #ifdef __cplusplus |
5578 | } | |
5579 | #endif | |
572ac014 | 5580 | _LT_EOF |
7460295f MG |
5581 | # Now try linking the two files. |
5582 | mv conftest.$ac_objext conftstm.$ac_objext | |
5583 | lt_save_LIBS="$LIBS" | |
5584 | lt_save_CFLAGS="$CFLAGS" | |
5585 | LIBS="conftstm.$ac_objext" | |
5586 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
a0673b07 | 5587 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
7460295f MG |
5588 | (eval $ac_link) 2>&5 |
5589 | ac_status=$? | |
a0673b07 MG |
5590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5591 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7460295f MG |
5592 | pipe_works=yes |
5593 | fi | |
5594 | LIBS="$lt_save_LIBS" | |
5595 | CFLAGS="$lt_save_CFLAGS" | |
5596 | else | |
5597 | echo "cannot find nm_test_func in $nlist" >&5 | |
5598 | fi | |
5599 | else | |
5600 | echo "cannot find nm_test_var in $nlist" >&5 | |
5601 | fi | |
5602 | else | |
5603 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5604 | fi | |
5605 | else | |
5606 | echo "$progname: failed program was:" >&5 | |
5607 | cat conftest.$ac_ext >&5 | |
5608 | fi | |
5609 | rm -rf conftest* conftst* | |
5610 | ||
5611 | # Do not use the global_symbol_pipe unless it works. | |
5612 | if test "$pipe_works" = yes; then | |
5613 | break | |
5614 | else | |
5615 | lt_cv_sys_global_symbol_pipe= | |
5616 | fi | |
5617 | done | |
5618 | ||
5619 | fi | |
5620 | ||
5621 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5622 | lt_cv_sys_global_symbol_to_cdecl= | |
5623 | fi | |
5624 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
a0673b07 | 5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
33aa8fe1 | 5626 | $as_echo "failed" >&6; } |
7460295f | 5627 | else |
a0673b07 | 5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
33aa8fe1 | 5629 | $as_echo "ok" >&6; } |
7460295f MG |
5630 | fi |
5631 | ||
7460295f MG |
5632 | |
5633 | ||
5634 | ||
5635 | ||
5636 | ||
7460295f | 5637 | |
7460295f | 5638 | |
7460295f | 5639 | |
7460295f | 5640 | |
7460295f | 5641 | |
7460295f | 5642 | |
7460295f | 5643 | |
7460295f | 5644 | |
7460295f | 5645 | |
7460295f MG |
5646 | |
5647 | ||
7460295f | 5648 | |
572ac014 MG |
5649 | |
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | # Check whether --enable-libtool-lock was given. | |
a0673b07 | 5655 | if test "${enable_libtool_lock+set}" = set; then : |
572ac014 | 5656 | enableval=$enable_libtool_lock; |
7460295f MG |
5657 | fi |
5658 | ||
572ac014 MG |
5659 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
5660 | ||
5661 | # Some flags need to be propagated to the compiler or linker for good | |
5662 | # libtool support. | |
5663 | case $host in | |
5664 | ia64-*-hpux*) | |
5665 | # Find out which ABI we are using. | |
5666 | echo 'int i;' > conftest.$ac_ext | |
a0673b07 | 5667 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
572ac014 MG |
5668 | (eval $ac_compile) 2>&5 |
5669 | ac_status=$? | |
a0673b07 MG |
5670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5671 | test $ac_status = 0; }; then | |
572ac014 MG |
5672 | case `/usr/bin/file conftest.$ac_objext` in |
5673 | *ELF-32*) | |
5674 | HPUX_IA64_MODE="32" | |
5675 | ;; | |
5676 | *ELF-64*) | |
5677 | HPUX_IA64_MODE="64" | |
5678 | ;; | |
5679 | esac | |
5680 | fi | |
5681 | rm -rf conftest* | |
5682 | ;; | |
5683 | *-*-irix6*) | |
5684 | # Find out which ABI we are using. | |
db50e572 | 5685 | echo '#line 5685 "configure"' > conftest.$ac_ext |
a0673b07 | 5686 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
572ac014 MG |
5687 | (eval $ac_compile) 2>&5 |
5688 | ac_status=$? | |
a0673b07 MG |
5689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5690 | test $ac_status = 0; }; then | |
572ac014 MG |
5691 | if test "$lt_cv_prog_gnu_ld" = yes; then |
5692 | case `/usr/bin/file conftest.$ac_objext` in | |
5693 | *32-bit*) | |
5694 | LD="${LD-ld} -melf32bsmip" | |
5695 | ;; | |
5696 | *N32*) | |
5697 | LD="${LD-ld} -melf32bmipn32" | |
5698 | ;; | |
5699 | *64-bit*) | |
5700 | LD="${LD-ld} -melf64bmip" | |
5701 | ;; | |
5702 | esac | |
5703 | else | |
5704 | case `/usr/bin/file conftest.$ac_objext` in | |
5705 | *32-bit*) | |
5706 | LD="${LD-ld} -32" | |
5707 | ;; | |
5708 | *N32*) | |
5709 | LD="${LD-ld} -n32" | |
5710 | ;; | |
5711 | *64-bit*) | |
5712 | LD="${LD-ld} -64" | |
5713 | ;; | |
5714 | esac | |
5715 | fi | |
5716 | fi | |
5717 | rm -rf conftest* | |
5718 | ;; | |
5719 | ||
5720 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5721 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5722 | # Find out which ABI we are using. | |
5723 | echo 'int i;' > conftest.$ac_ext | |
a0673b07 | 5724 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
572ac014 MG |
5725 | (eval $ac_compile) 2>&5 |
5726 | ac_status=$? | |
a0673b07 MG |
5727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5728 | test $ac_status = 0; }; then | |
572ac014 MG |
5729 | case `/usr/bin/file conftest.o` in |
5730 | *32-bit*) | |
5731 | case $host in | |
5732 | x86_64-*kfreebsd*-gnu) | |
5733 | LD="${LD-ld} -m elf_i386_fbsd" | |
5734 | ;; | |
5735 | x86_64-*linux*) | |
5736 | LD="${LD-ld} -m elf_i386" | |
5737 | ;; | |
5738 | ppc64-*linux*|powerpc64-*linux*) | |
5739 | LD="${LD-ld} -m elf32ppclinux" | |
5740 | ;; | |
5741 | s390x-*linux*) | |
5742 | LD="${LD-ld} -m elf_s390" | |
5743 | ;; | |
5744 | sparc64-*linux*) | |
5745 | LD="${LD-ld} -m elf32_sparc" | |
5746 | ;; | |
5747 | esac | |
5748 | ;; | |
5749 | *64-bit*) | |
5750 | case $host in | |
5751 | x86_64-*kfreebsd*-gnu) | |
5752 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5753 | ;; | |
5754 | x86_64-*linux*) | |
5755 | LD="${LD-ld} -m elf_x86_64" | |
5756 | ;; | |
5757 | ppc*-*linux*|powerpc*-*linux*) | |
5758 | LD="${LD-ld} -m elf64ppc" | |
5759 | ;; | |
5760 | s390*-*linux*|s390*-*tpf*) | |
5761 | LD="${LD-ld} -m elf64_s390" | |
5762 | ;; | |
5763 | sparc*-*linux*) | |
5764 | LD="${LD-ld} -m elf64_sparc" | |
5765 | ;; | |
5766 | esac | |
5767 | ;; | |
5768 | esac | |
7460295f | 5769 | fi |
572ac014 MG |
5770 | rm -rf conftest* |
5771 | ;; | |
5772 | ||
5773 | *-*-sco3.2v5*) | |
5774 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5775 | SAVE_CFLAGS="$CFLAGS" | |
5776 | CFLAGS="$CFLAGS -belf" | |
a0673b07 | 5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
33aa8fe1 | 5778 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
a0673b07 | 5779 | if test "${lt_cv_cc_needs_belf+set}" = set; then : |
33aa8fe1 | 5780 | $as_echo_n "(cached) " >&6 |
7460295f | 5781 | else |
572ac014 MG |
5782 | ac_ext=c |
5783 | ac_cpp='$CPP $CPPFLAGS' | |
5784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5787 | ||
a0673b07 | 5788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
5789 | /* end confdefs.h. */ |
5790 | ||
5791 | int | |
5792 | main () | |
5793 | { | |
5794 | ||
5795 | ; | |
5796 | return 0; | |
5797 | } | |
5798 | _ACEOF | |
a0673b07 | 5799 | if ac_fn_c_try_link "$LINENO"; then : |
572ac014 MG |
5800 | lt_cv_cc_needs_belf=yes |
5801 | else | |
a0673b07 | 5802 | lt_cv_cc_needs_belf=no |
7460295f | 5803 | fi |
a0673b07 MG |
5804 | rm -f core conftest.err conftest.$ac_objext \ |
5805 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 MG |
5806 | ac_ext=c |
5807 | ac_cpp='$CPP $CPPFLAGS' | |
5808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5811 | ||
5812 | fi | |
a0673b07 | 5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
33aa8fe1 | 5814 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
572ac014 MG |
5815 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
5816 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5817 | CFLAGS="$SAVE_CFLAGS" | |
5818 | fi | |
5819 | ;; | |
5820 | sparc*-*solaris*) | |
5821 | # Find out which ABI we are using. | |
5822 | echo 'int i;' > conftest.$ac_ext | |
a0673b07 | 5823 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
572ac014 MG |
5824 | (eval $ac_compile) 2>&5 |
5825 | ac_status=$? | |
a0673b07 MG |
5826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5827 | test $ac_status = 0; }; then | |
572ac014 MG |
5828 | case `/usr/bin/file conftest.o` in |
5829 | *64-bit*) | |
5830 | case $lt_cv_prog_gnu_ld in | |
5831 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5832 | *) | |
5833 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5834 | LD="${LD-ld} -64" | |
5835 | fi | |
5836 | ;; | |
5837 | esac | |
5838 | ;; | |
5839 | esac | |
5840 | fi | |
5841 | rm -rf conftest* | |
5842 | ;; | |
5843 | esac | |
5844 | ||
5845 | need_locks="$enable_libtool_lock" | |
5846 | ||
5847 | ||
5848 | case $host_os in | |
5849 | rhapsody* | darwin*) | |
5850 | if test -n "$ac_tool_prefix"; then | |
5851 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5852 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
a0673b07 | 5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5854 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5855 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
33aa8fe1 | 5856 | $as_echo_n "(cached) " >&6 |
7460295f | 5857 | else |
572ac014 MG |
5858 | if test -n "$DSYMUTIL"; then |
5859 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7460295f MG |
5860 | else |
5861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5862 | for as_dir in $PATH | |
5863 | do | |
5864 | IFS=$as_save_IFS | |
5865 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5866 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 5867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 5868 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
a0673b07 | 5869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
5870 | break 2 |
5871 | fi | |
5872 | done | |
a0673b07 | 5873 | done |
7460295f MG |
5874 | IFS=$as_save_IFS |
5875 | ||
5876 | fi | |
5877 | fi | |
572ac014 MG |
5878 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
5879 | if test -n "$DSYMUTIL"; then | |
a0673b07 | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
33aa8fe1 | 5881 | $as_echo "$DSYMUTIL" >&6; } |
7460295f | 5882 | else |
a0673b07 | 5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 5884 | $as_echo "no" >&6; } |
7460295f MG |
5885 | fi |
5886 | ||
5887 | ||
5888 | fi | |
572ac014 MG |
5889 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
5890 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5891 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5892 | set dummy dsymutil; ac_word=$2 | |
a0673b07 | 5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5894 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5895 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
33aa8fe1 | 5896 | $as_echo_n "(cached) " >&6 |
7460295f | 5897 | else |
572ac014 MG |
5898 | if test -n "$ac_ct_DSYMUTIL"; then |
5899 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7460295f MG |
5900 | else |
5901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5902 | for as_dir in $PATH | |
5903 | do | |
5904 | IFS=$as_save_IFS | |
5905 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5906 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 5907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 5908 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
a0673b07 | 5909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
5910 | break 2 |
5911 | fi | |
5912 | done | |
a0673b07 | 5913 | done |
7460295f MG |
5914 | IFS=$as_save_IFS |
5915 | ||
5916 | fi | |
5917 | fi | |
572ac014 MG |
5918 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
5919 | if test -n "$ac_ct_DSYMUTIL"; then | |
a0673b07 | 5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
33aa8fe1 | 5921 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
7460295f | 5922 | else |
a0673b07 | 5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 5924 | $as_echo "no" >&6; } |
7460295f MG |
5925 | fi |
5926 | ||
572ac014 MG |
5927 | if test "x$ac_ct_DSYMUTIL" = x; then |
5928 | DSYMUTIL=":" | |
7460295f MG |
5929 | else |
5930 | case $cross_compiling:$ac_tool_warned in | |
5931 | yes:) | |
a0673b07 | 5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 5933 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7460295f MG |
5934 | ac_tool_warned=yes ;; |
5935 | esac | |
572ac014 | 5936 | DSYMUTIL=$ac_ct_DSYMUTIL |
7460295f MG |
5937 | fi |
5938 | else | |
572ac014 | 5939 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
7460295f MG |
5940 | fi |
5941 | ||
572ac014 MG |
5942 | if test -n "$ac_tool_prefix"; then |
5943 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5944 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
a0673b07 | 5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5946 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5947 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
33aa8fe1 | 5948 | $as_echo_n "(cached) " >&6 |
7460295f | 5949 | else |
572ac014 MG |
5950 | if test -n "$NMEDIT"; then |
5951 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7460295f MG |
5952 | else |
5953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5954 | for as_dir in $PATH | |
5955 | do | |
5956 | IFS=$as_save_IFS | |
5957 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5958 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 5959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 5960 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
a0673b07 | 5961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
5962 | break 2 |
5963 | fi | |
5964 | done | |
a0673b07 | 5965 | done |
7460295f MG |
5966 | IFS=$as_save_IFS |
5967 | ||
5968 | fi | |
5969 | fi | |
572ac014 MG |
5970 | NMEDIT=$ac_cv_prog_NMEDIT |
5971 | if test -n "$NMEDIT"; then | |
a0673b07 | 5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
33aa8fe1 | 5973 | $as_echo "$NMEDIT" >&6; } |
7460295f | 5974 | else |
a0673b07 | 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 5976 | $as_echo "no" >&6; } |
7460295f MG |
5977 | fi |
5978 | ||
5979 | ||
5980 | fi | |
572ac014 MG |
5981 | if test -z "$ac_cv_prog_NMEDIT"; then |
5982 | ac_ct_NMEDIT=$NMEDIT | |
5983 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5984 | set dummy nmedit; ac_word=$2 | |
a0673b07 | 5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 5986 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 5987 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
33aa8fe1 | 5988 | $as_echo_n "(cached) " >&6 |
7460295f | 5989 | else |
572ac014 MG |
5990 | if test -n "$ac_ct_NMEDIT"; then |
5991 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7460295f MG |
5992 | else |
5993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5994 | for as_dir in $PATH | |
5995 | do | |
5996 | IFS=$as_save_IFS | |
5997 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 5998 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 5999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 6000 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
a0673b07 | 6001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
6002 | break 2 |
6003 | fi | |
6004 | done | |
a0673b07 | 6005 | done |
7460295f MG |
6006 | IFS=$as_save_IFS |
6007 | ||
6008 | fi | |
6009 | fi | |
572ac014 MG |
6010 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
6011 | if test -n "$ac_ct_NMEDIT"; then | |
a0673b07 | 6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
33aa8fe1 | 6013 | $as_echo "$ac_ct_NMEDIT" >&6; } |
7460295f | 6014 | else |
a0673b07 | 6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 6016 | $as_echo "no" >&6; } |
7460295f MG |
6017 | fi |
6018 | ||
572ac014 MG |
6019 | if test "x$ac_ct_NMEDIT" = x; then |
6020 | NMEDIT=":" | |
7460295f MG |
6021 | else |
6022 | case $cross_compiling:$ac_tool_warned in | |
6023 | yes:) | |
a0673b07 | 6024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 6025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7460295f MG |
6026 | ac_tool_warned=yes ;; |
6027 | esac | |
572ac014 | 6028 | NMEDIT=$ac_ct_NMEDIT |
7460295f MG |
6029 | fi |
6030 | else | |
572ac014 | 6031 | NMEDIT="$ac_cv_prog_NMEDIT" |
7460295f MG |
6032 | fi |
6033 | ||
572ac014 MG |
6034 | if test -n "$ac_tool_prefix"; then |
6035 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6036 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
a0673b07 | 6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 6038 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 6039 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
33aa8fe1 | 6040 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
6041 | else |
6042 | if test -n "$LIPO"; then | |
6043 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6044 | else | |
6045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6046 | for as_dir in $PATH | |
6047 | do | |
6048 | IFS=$as_save_IFS | |
6049 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 6050 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
6051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6052 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
a0673b07 | 6053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
6054 | break 2 |
6055 | fi | |
7460295f | 6056 | done |
a0673b07 | 6057 | done |
572ac014 | 6058 | IFS=$as_save_IFS |
7460295f | 6059 | |
572ac014 MG |
6060 | fi |
6061 | fi | |
6062 | LIPO=$ac_cv_prog_LIPO | |
6063 | if test -n "$LIPO"; then | |
a0673b07 | 6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
33aa8fe1 | 6065 | $as_echo "$LIPO" >&6; } |
7460295f | 6066 | else |
a0673b07 | 6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 6068 | $as_echo "no" >&6; } |
572ac014 | 6069 | fi |
7460295f | 6070 | |
7460295f | 6071 | |
7460295f | 6072 | fi |
572ac014 MG |
6073 | if test -z "$ac_cv_prog_LIPO"; then |
6074 | ac_ct_LIPO=$LIPO | |
6075 | # Extract the first word of "lipo", so it can be a program name with args. | |
6076 | set dummy lipo; ac_word=$2 | |
a0673b07 | 6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 6078 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 6079 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
33aa8fe1 | 6080 | $as_echo_n "(cached) " >&6 |
7460295f | 6081 | else |
572ac014 MG |
6082 | if test -n "$ac_ct_LIPO"; then |
6083 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7460295f | 6084 | else |
572ac014 MG |
6085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6086 | for as_dir in $PATH | |
6087 | do | |
6088 | IFS=$as_save_IFS | |
6089 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 6090 | for ac_exec_ext in '' $ac_executable_extensions; do |
572ac014 MG |
6091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6092 | ac_cv_prog_ac_ct_LIPO="lipo" | |
a0673b07 | 6093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
572ac014 MG |
6094 | break 2 |
6095 | fi | |
6096 | done | |
a0673b07 | 6097 | done |
572ac014 | 6098 | IFS=$as_save_IFS |
7460295f | 6099 | |
7460295f | 6100 | fi |
572ac014 MG |
6101 | fi |
6102 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6103 | if test -n "$ac_ct_LIPO"; then | |
a0673b07 | 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
33aa8fe1 | 6105 | $as_echo "$ac_ct_LIPO" >&6; } |
7460295f | 6106 | else |
a0673b07 | 6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 6108 | $as_echo "no" >&6; } |
7460295f MG |
6109 | fi |
6110 | ||
572ac014 MG |
6111 | if test "x$ac_ct_LIPO" = x; then |
6112 | LIPO=":" | |
7460295f | 6113 | else |
572ac014 MG |
6114 | case $cross_compiling:$ac_tool_warned in |
6115 | yes:) | |
a0673b07 | 6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 6117 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
572ac014 MG |
6118 | ac_tool_warned=yes ;; |
6119 | esac | |
6120 | LIPO=$ac_ct_LIPO | |
7460295f | 6121 | fi |
572ac014 MG |
6122 | else |
6123 | LIPO="$ac_cv_prog_LIPO" | |
7460295f MG |
6124 | fi |
6125 | ||
7460295f | 6126 | if test -n "$ac_tool_prefix"; then |
572ac014 MG |
6127 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
6128 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
a0673b07 | 6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 6130 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 6131 | if test "${ac_cv_prog_OTOOL+set}" = set; then : |
33aa8fe1 | 6132 | $as_echo_n "(cached) " >&6 |
7460295f | 6133 | else |
572ac014 MG |
6134 | if test -n "$OTOOL"; then |
6135 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7460295f MG |
6136 | else |
6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6138 | for as_dir in $PATH | |
6139 | do | |
6140 | IFS=$as_save_IFS | |
6141 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 6142 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 6143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 6144 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
a0673b07 | 6145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
6146 | break 2 |
6147 | fi | |
6148 | done | |
a0673b07 | 6149 | done |
7460295f MG |
6150 | IFS=$as_save_IFS |
6151 | ||
6152 | fi | |
6153 | fi | |
572ac014 MG |
6154 | OTOOL=$ac_cv_prog_OTOOL |
6155 | if test -n "$OTOOL"; then | |
a0673b07 | 6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
33aa8fe1 | 6157 | $as_echo "$OTOOL" >&6; } |
7460295f | 6158 | else |
a0673b07 | 6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 6160 | $as_echo "no" >&6; } |
7460295f MG |
6161 | fi |
6162 | ||
6163 | ||
6164 | fi | |
572ac014 MG |
6165 | if test -z "$ac_cv_prog_OTOOL"; then |
6166 | ac_ct_OTOOL=$OTOOL | |
6167 | # Extract the first word of "otool", so it can be a program name with args. | |
6168 | set dummy otool; ac_word=$2 | |
a0673b07 | 6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 6170 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 6171 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
33aa8fe1 | 6172 | $as_echo_n "(cached) " >&6 |
7460295f | 6173 | else |
572ac014 MG |
6174 | if test -n "$ac_ct_OTOOL"; then |
6175 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7460295f MG |
6176 | else |
6177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6178 | for as_dir in $PATH | |
6179 | do | |
6180 | IFS=$as_save_IFS | |
6181 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 6182 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 6183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 6184 | ac_cv_prog_ac_ct_OTOOL="otool" |
a0673b07 | 6185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
6186 | break 2 |
6187 | fi | |
6188 | done | |
a0673b07 | 6189 | done |
7460295f MG |
6190 | IFS=$as_save_IFS |
6191 | ||
6192 | fi | |
6193 | fi | |
572ac014 MG |
6194 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
6195 | if test -n "$ac_ct_OTOOL"; then | |
a0673b07 | 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
33aa8fe1 | 6197 | $as_echo "$ac_ct_OTOOL" >&6; } |
7460295f | 6198 | else |
a0673b07 | 6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 6200 | $as_echo "no" >&6; } |
7460295f MG |
6201 | fi |
6202 | ||
572ac014 MG |
6203 | if test "x$ac_ct_OTOOL" = x; then |
6204 | OTOOL=":" | |
7460295f MG |
6205 | else |
6206 | case $cross_compiling:$ac_tool_warned in | |
6207 | yes:) | |
a0673b07 | 6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 6209 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7460295f MG |
6210 | ac_tool_warned=yes ;; |
6211 | esac | |
572ac014 | 6212 | OTOOL=$ac_ct_OTOOL |
7460295f MG |
6213 | fi |
6214 | else | |
572ac014 | 6215 | OTOOL="$ac_cv_prog_OTOOL" |
7460295f MG |
6216 | fi |
6217 | ||
6218 | if test -n "$ac_tool_prefix"; then | |
572ac014 MG |
6219 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
6220 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
a0673b07 | 6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 6222 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 6223 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
33aa8fe1 | 6224 | $as_echo_n "(cached) " >&6 |
7460295f | 6225 | else |
572ac014 MG |
6226 | if test -n "$OTOOL64"; then |
6227 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7460295f MG |
6228 | else |
6229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6230 | for as_dir in $PATH | |
6231 | do | |
6232 | IFS=$as_save_IFS | |
6233 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 6234 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 6235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 6236 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
a0673b07 | 6237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
6238 | break 2 |
6239 | fi | |
6240 | done | |
a0673b07 | 6241 | done |
7460295f MG |
6242 | IFS=$as_save_IFS |
6243 | ||
6244 | fi | |
6245 | fi | |
572ac014 MG |
6246 | OTOOL64=$ac_cv_prog_OTOOL64 |
6247 | if test -n "$OTOOL64"; then | |
a0673b07 | 6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
33aa8fe1 | 6249 | $as_echo "$OTOOL64" >&6; } |
7460295f | 6250 | else |
a0673b07 | 6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 6252 | $as_echo "no" >&6; } |
7460295f MG |
6253 | fi |
6254 | ||
6255 | ||
6256 | fi | |
572ac014 MG |
6257 | if test -z "$ac_cv_prog_OTOOL64"; then |
6258 | ac_ct_OTOOL64=$OTOOL64 | |
6259 | # Extract the first word of "otool64", so it can be a program name with args. | |
6260 | set dummy otool64; ac_word=$2 | |
a0673b07 | 6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33aa8fe1 | 6262 | $as_echo_n "checking for $ac_word... " >&6; } |
a0673b07 | 6263 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
33aa8fe1 | 6264 | $as_echo_n "(cached) " >&6 |
7460295f | 6265 | else |
572ac014 MG |
6266 | if test -n "$ac_ct_OTOOL64"; then |
6267 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7460295f MG |
6268 | else |
6269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6270 | for as_dir in $PATH | |
6271 | do | |
6272 | IFS=$as_save_IFS | |
6273 | test -z "$as_dir" && as_dir=. | |
a0673b07 | 6274 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460295f | 6275 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
572ac014 | 6276 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
a0673b07 | 6277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7460295f MG |
6278 | break 2 |
6279 | fi | |
6280 | done | |
a0673b07 | 6281 | done |
7460295f MG |
6282 | IFS=$as_save_IFS |
6283 | ||
6284 | fi | |
6285 | fi | |
572ac014 MG |
6286 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
6287 | if test -n "$ac_ct_OTOOL64"; then | |
a0673b07 | 6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
33aa8fe1 | 6289 | $as_echo "$ac_ct_OTOOL64" >&6; } |
7460295f | 6290 | else |
a0673b07 | 6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 6292 | $as_echo "no" >&6; } |
7460295f MG |
6293 | fi |
6294 | ||
572ac014 MG |
6295 | if test "x$ac_ct_OTOOL64" = x; then |
6296 | OTOOL64=":" | |
7460295f MG |
6297 | else |
6298 | case $cross_compiling:$ac_tool_warned in | |
6299 | yes:) | |
a0673b07 | 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33aa8fe1 | 6301 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7460295f MG |
6302 | ac_tool_warned=yes ;; |
6303 | esac | |
572ac014 | 6304 | OTOOL64=$ac_ct_OTOOL64 |
7460295f MG |
6305 | fi |
6306 | else | |
572ac014 | 6307 | OTOOL64="$ac_cv_prog_OTOOL64" |
7460295f MG |
6308 | fi |
6309 | ||
6310 | ||
572ac014 MG |
6311 | |
6312 | ||
6313 | ||
6314 | ||
6315 | ||
6316 | ||
6317 | ||
6318 | ||
6319 | ||
6320 | ||
6321 | ||
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | ||
6329 | ||
6330 | ||
6331 | ||
6332 | ||
6333 | ||
6334 | ||
6335 | ||
a0673b07 | 6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
33aa8fe1 | 6337 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
a0673b07 | 6338 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
33aa8fe1 | 6339 | $as_echo_n "(cached) " >&6 |
7460295f MG |
6340 | else |
6341 | lt_cv_apple_cc_single_mod=no | |
6342 | if test -z "${LT_MULTI_MODULE}"; then | |
572ac014 MG |
6343 | # By default we will add the -single_module flag. You can override |
6344 | # by either setting the environment variable LT_MULTI_MODULE | |
6345 | # non-empty at configure time, or by adding -multi_module to the | |
6346 | # link flags. | |
6347 | rm -rf libconftest.dylib* | |
6348 | echo "int foo(void){return 1;}" > conftest.c | |
6349 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6350 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6351 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6352 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6353 | _lt_result=$? | |
6354 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6355 | lt_cv_apple_cc_single_mod=yes | |
6356 | else | |
6357 | cat conftest.err >&5 | |
6358 | fi | |
6359 | rm -rf libconftest.dylib* | |
6360 | rm -f conftest.* | |
7460295f MG |
6361 | fi |
6362 | fi | |
a0673b07 | 6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
33aa8fe1 | 6364 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
a0673b07 | 6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
33aa8fe1 | 6366 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
a0673b07 | 6367 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
33aa8fe1 | 6368 | $as_echo_n "(cached) " >&6 |
7460295f MG |
6369 | else |
6370 | lt_cv_ld_exported_symbols_list=no | |
6371 | save_LDFLAGS=$LDFLAGS | |
6372 | echo "_main" > conftest.sym | |
6373 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
a0673b07 | 6374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7460295f MG |
6375 | /* end confdefs.h. */ |
6376 | ||
6377 | int | |
6378 | main () | |
6379 | { | |
6380 | ||
6381 | ; | |
6382 | return 0; | |
6383 | } | |
6384 | _ACEOF | |
a0673b07 | 6385 | if ac_fn_c_try_link "$LINENO"; then : |
7460295f MG |
6386 | lt_cv_ld_exported_symbols_list=yes |
6387 | else | |
a0673b07 | 6388 | lt_cv_ld_exported_symbols_list=no |
7460295f | 6389 | fi |
a0673b07 MG |
6390 | rm -f core conftest.err conftest.$ac_objext \ |
6391 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 | 6392 | LDFLAGS="$save_LDFLAGS" |
7460295f MG |
6393 | |
6394 | fi | |
a0673b07 | 6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
33aa8fe1 | 6396 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
7460295f | 6397 | case $host_os in |
572ac014 | 6398 | rhapsody* | darwin1.[012]) |
7460295f MG |
6399 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
6400 | darwin1.*) | |
572ac014 MG |
6401 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
6402 | darwin*) # darwin 5.x on | |
7460295f MG |
6403 | # if running on 10.5 or later, the deployment target defaults |
6404 | # to the OS version, if on x86, and 10.4, the deployment | |
6405 | # target defaults to 10.4. Don't you love it? | |
6406 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
572ac014 MG |
6407 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
6408 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6409 | 10.[012]*) | |
6410 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6411 | 10.*) | |
6412 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7460295f MG |
6413 | esac |
6414 | ;; | |
6415 | esac | |
6416 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6417 | _lt_dar_single_mod='$single_module' | |
6418 | fi | |
6419 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6420 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6421 | else | |
572ac014 | 6422 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7460295f MG |
6423 | fi |
6424 | if test "$DSYMUTIL" != ":"; then | |
572ac014 | 6425 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7460295f MG |
6426 | else |
6427 | _lt_dsymutil= | |
6428 | fi | |
6429 | ;; | |
6430 | esac | |
6431 | ||
7460295f MG |
6432 | ac_ext=c |
6433 | ac_cpp='$CPP $CPPFLAGS' | |
6434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a0673b07 | 6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
33aa8fe1 | 6438 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
572ac014 MG |
6439 | # On Suns, sometimes $CPP names a directory. |
6440 | if test -n "$CPP" && test -d "$CPP"; then | |
6441 | CPP= | |
6442 | fi | |
6443 | if test -z "$CPP"; then | |
a0673b07 | 6444 | if test "${ac_cv_prog_CPP+set}" = set; then : |
33aa8fe1 | 6445 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
6446 | else |
6447 | # Double quotes because CPP needs to be expanded | |
6448 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6449 | do | |
6450 | ac_preproc_ok=false | |
6451 | for ac_c_preproc_warn_flag in '' yes | |
6452 | do | |
6453 | # Use a header file that comes with gcc, so configuring glibc | |
6454 | # with a fresh cross-compiler works. | |
6455 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6456 | # <limits.h> exists even on freestanding compilers. | |
6457 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6458 | # not just through cpp. "Syntax error" is here to catch this case. | |
a0673b07 | 6459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
6460 | /* end confdefs.h. */ |
6461 | #ifdef __STDC__ | |
6462 | # include <limits.h> | |
6463 | #else | |
6464 | # include <assert.h> | |
6465 | #endif | |
6466 | Syntax error | |
6467 | _ACEOF | |
a0673b07 | 6468 | if ac_fn_c_try_cpp "$LINENO"; then : |
7460295f | 6469 | |
a0673b07 | 6470 | else |
572ac014 MG |
6471 | # Broken: fails on valid input. |
6472 | continue | |
6473 | fi | |
572ac014 | 6474 | rm -f conftest.err conftest.$ac_ext |
7460295f | 6475 | |
572ac014 MG |
6476 | # OK, works on sane cases. Now check whether nonexistent headers |
6477 | # can be detected and how. | |
a0673b07 | 6478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
6479 | /* end confdefs.h. */ |
6480 | #include <ac_nonexistent.h> | |
6481 | _ACEOF | |
a0673b07 | 6482 | if ac_fn_c_try_cpp "$LINENO"; then : |
572ac014 MG |
6483 | # Broken: success on invalid input. |
6484 | continue | |
6485 | else | |
572ac014 MG |
6486 | # Passes both tests. |
6487 | ac_preproc_ok=: | |
6488 | break | |
6489 | fi | |
572ac014 | 6490 | rm -f conftest.err conftest.$ac_ext |
7460295f | 6491 | |
572ac014 MG |
6492 | done |
6493 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6494 | rm -f conftest.err conftest.$ac_ext | |
a0673b07 | 6495 | if $ac_preproc_ok; then : |
572ac014 MG |
6496 | break |
6497 | fi | |
7460295f | 6498 | |
572ac014 MG |
6499 | done |
6500 | ac_cv_prog_CPP=$CPP | |
7460295f | 6501 | |
572ac014 MG |
6502 | fi |
6503 | CPP=$ac_cv_prog_CPP | |
6504 | else | |
6505 | ac_cv_prog_CPP=$CPP | |
6506 | fi | |
a0673b07 | 6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
33aa8fe1 | 6508 | $as_echo "$CPP" >&6; } |
572ac014 MG |
6509 | ac_preproc_ok=false |
6510 | for ac_c_preproc_warn_flag in '' yes | |
6511 | do | |
6512 | # Use a header file that comes with gcc, so configuring glibc | |
6513 | # with a fresh cross-compiler works. | |
6514 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6515 | # <limits.h> exists even on freestanding compilers. | |
6516 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6517 | # not just through cpp. "Syntax error" is here to catch this case. | |
a0673b07 | 6518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
6519 | /* end confdefs.h. */ |
6520 | #ifdef __STDC__ | |
6521 | # include <limits.h> | |
6522 | #else | |
6523 | # include <assert.h> | |
6524 | #endif | |
6525 | Syntax error | |
6526 | _ACEOF | |
a0673b07 | 6527 | if ac_fn_c_try_cpp "$LINENO"; then : |
7460295f | 6528 | |
a0673b07 | 6529 | else |
572ac014 MG |
6530 | # Broken: fails on valid input. |
6531 | continue | |
6532 | fi | |
572ac014 | 6533 | rm -f conftest.err conftest.$ac_ext |
7460295f | 6534 | |
572ac014 MG |
6535 | # OK, works on sane cases. Now check whether nonexistent headers |
6536 | # can be detected and how. | |
a0673b07 | 6537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
6538 | /* end confdefs.h. */ |
6539 | #include <ac_nonexistent.h> | |
6540 | _ACEOF | |
a0673b07 | 6541 | if ac_fn_c_try_cpp "$LINENO"; then : |
572ac014 MG |
6542 | # Broken: success on invalid input. |
6543 | continue | |
6544 | else | |
572ac014 MG |
6545 | # Passes both tests. |
6546 | ac_preproc_ok=: | |
6547 | break | |
6548 | fi | |
572ac014 | 6549 | rm -f conftest.err conftest.$ac_ext |
7460295f | 6550 | |
572ac014 MG |
6551 | done |
6552 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6553 | rm -f conftest.err conftest.$ac_ext | |
a0673b07 MG |
6554 | if $ac_preproc_ok; then : |
6555 | ||
572ac014 | 6556 | else |
a0673b07 | 6557 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
33aa8fe1 | 6558 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
a0673b07 MG |
6559 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
6560 | See \`config.log' for more details." "$LINENO" 5; } | |
572ac014 | 6561 | fi |
7460295f | 6562 | |
572ac014 MG |
6563 | ac_ext=c |
6564 | ac_cpp='$CPP $CPPFLAGS' | |
6565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7460295f MG |
6568 | |
6569 | ||
a0673b07 | 6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
33aa8fe1 | 6571 | $as_echo_n "checking for ANSI C header files... " >&6; } |
a0673b07 | 6572 | if test "${ac_cv_header_stdc+set}" = set; then : |
33aa8fe1 | 6573 | $as_echo_n "(cached) " >&6 |
7460295f | 6574 | else |
a0673b07 | 6575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
6576 | /* end confdefs.h. */ |
6577 | #include <stdlib.h> | |
6578 | #include <stdarg.h> | |
6579 | #include <string.h> | |
6580 | #include <float.h> | |
6581 | ||
6582 | int | |
6583 | main () | |
6584 | { | |
6585 | ||
6586 | ; | |
6587 | return 0; | |
6588 | } | |
6589 | _ACEOF | |
a0673b07 | 6590 | if ac_fn_c_try_compile "$LINENO"; then : |
572ac014 MG |
6591 | ac_cv_header_stdc=yes |
6592 | else | |
a0673b07 | 6593 | ac_cv_header_stdc=no |
7460295f | 6594 | fi |
572ac014 MG |
6595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6596 | ||
6597 | if test $ac_cv_header_stdc = yes; then | |
6598 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
a0673b07 | 6599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
6600 | /* end confdefs.h. */ |
6601 | #include <string.h> | |
6602 | ||
6603 | _ACEOF | |
6604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a0673b07 MG |
6605 | $EGREP "memchr" >/dev/null 2>&1; then : |
6606 | ||
7460295f | 6607 | else |
572ac014 | 6608 | ac_cv_header_stdc=no |
7460295f | 6609 | fi |
572ac014 | 6610 | rm -f conftest* |
7460295f MG |
6611 | |
6612 | fi | |
6613 | ||
572ac014 MG |
6614 | if test $ac_cv_header_stdc = yes; then |
6615 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
a0673b07 | 6616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
6617 | /* end confdefs.h. */ |
6618 | #include <stdlib.h> | |
7460295f | 6619 | |
572ac014 MG |
6620 | _ACEOF |
6621 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a0673b07 MG |
6622 | $EGREP "free" >/dev/null 2>&1; then : |
6623 | ||
572ac014 MG |
6624 | else |
6625 | ac_cv_header_stdc=no | |
6626 | fi | |
6627 | rm -f conftest* | |
7460295f | 6628 | |
572ac014 | 6629 | fi |
7460295f | 6630 | |
572ac014 MG |
6631 | if test $ac_cv_header_stdc = yes; then |
6632 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
a0673b07 | 6633 | if test "$cross_compiling" = yes; then : |
572ac014 MG |
6634 | : |
6635 | else | |
a0673b07 | 6636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
6637 | /* end confdefs.h. */ |
6638 | #include <ctype.h> | |
6639 | #include <stdlib.h> | |
6640 | #if ((' ' & 0x0FF) == 0x020) | |
6641 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6642 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6643 | #else | |
6644 | # define ISLOWER(c) \ | |
6645 | (('a' <= (c) && (c) <= 'i') \ | |
6646 | || ('j' <= (c) && (c) <= 'r') \ | |
6647 | || ('s' <= (c) && (c) <= 'z')) | |
6648 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6649 | #endif | |
7460295f | 6650 | |
572ac014 MG |
6651 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6652 | int | |
6653 | main () | |
6654 | { | |
6655 | int i; | |
6656 | for (i = 0; i < 256; i++) | |
6657 | if (XOR (islower (i), ISLOWER (i)) | |
6658 | || toupper (i) != TOUPPER (i)) | |
6659 | return 2; | |
6660 | return 0; | |
6661 | } | |
6662 | _ACEOF | |
a0673b07 | 6663 | if ac_fn_c_try_run "$LINENO"; then : |
7460295f | 6664 | |
a0673b07 MG |
6665 | else |
6666 | ac_cv_header_stdc=no | |
572ac014 | 6667 | fi |
a0673b07 MG |
6668 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6669 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
572ac014 | 6670 | fi |
7460295f | 6671 | |
572ac014 MG |
6672 | fi |
6673 | fi | |
a0673b07 | 6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
33aa8fe1 | 6675 | $as_echo "$ac_cv_header_stdc" >&6; } |
572ac014 | 6676 | if test $ac_cv_header_stdc = yes; then |
7460295f | 6677 | |
a0673b07 | 6678 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
7460295f | 6679 | |
572ac014 | 6680 | fi |
7460295f | 6681 | |
572ac014 | 6682 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
572ac014 MG |
6683 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6684 | inttypes.h stdint.h unistd.h | |
a0673b07 MG |
6685 | do : |
6686 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6687 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6688 | " | |
6689 | eval as_val=\$$as_ac_Header | |
6690 | if test "x$as_val" = x""yes; then : | |
572ac014 | 6691 | cat >>confdefs.h <<_ACEOF |
33aa8fe1 | 6692 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
572ac014 | 6693 | _ACEOF |
7460295f | 6694 | |
572ac014 | 6695 | fi |
7460295f | 6696 | |
572ac014 | 6697 | done |
7460295f | 6698 | |
7460295f | 6699 | |
572ac014 | 6700 | for ac_header in dlfcn.h |
a0673b07 MG |
6701 | do : |
6702 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6703 | " | |
6704 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
572ac014 | 6705 | cat >>confdefs.h <<_ACEOF |
a0673b07 | 6706 | #define HAVE_DLFCN_H 1 |
572ac014 | 6707 | _ACEOF |
7460295f MG |
6708 | |
6709 | fi | |
7460295f | 6710 | |
572ac014 | 6711 | done |
7460295f | 6712 | |
7460295f | 6713 | |
7460295f | 6714 | |
572ac014 | 6715 | # Set options |
7460295f | 6716 | |
7460295f | 6717 | |
7460295f | 6718 | |
572ac014 | 6719 | enable_dlopen=no |
7460295f MG |
6720 | |
6721 | ||
572ac014 MG |
6722 | enable_win32_dll=no |
6723 | ||
6724 | ||
6725 | # Check whether --enable-shared was given. | |
a0673b07 | 6726 | if test "${enable_shared+set}" = set; then : |
572ac014 MG |
6727 | enableval=$enable_shared; p=${PACKAGE-default} |
6728 | case $enableval in | |
6729 | yes) enable_shared=yes ;; | |
6730 | no) enable_shared=no ;; | |
6731 | *) | |
6732 | enable_shared=no | |
6733 | # Look at the argument we got. We use all the common list separators. | |
6734 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6735 | for pkg in $enableval; do | |
6736 | IFS="$lt_save_ifs" | |
6737 | if test "X$pkg" = "X$p"; then | |
6738 | enable_shared=yes | |
6739 | fi | |
6740 | done | |
6741 | IFS="$lt_save_ifs" | |
6742 | ;; | |
6743 | esac | |
7460295f | 6744 | else |
572ac014 | 6745 | enable_shared=yes |
7460295f MG |
6746 | fi |
6747 | ||
7460295f | 6748 | |
7460295f | 6749 | |
7460295f | 6750 | |
7460295f | 6751 | |
7460295f | 6752 | |
7460295f | 6753 | |
7460295f | 6754 | |
572ac014 MG |
6755 | |
6756 | # Check whether --enable-static was given. | |
a0673b07 | 6757 | if test "${enable_static+set}" = set; then : |
572ac014 MG |
6758 | enableval=$enable_static; p=${PACKAGE-default} |
6759 | case $enableval in | |
6760 | yes) enable_static=yes ;; | |
6761 | no) enable_static=no ;; | |
6762 | *) | |
6763 | enable_static=no | |
6764 | # Look at the argument we got. We use all the common list separators. | |
6765 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6766 | for pkg in $enableval; do | |
6767 | IFS="$lt_save_ifs" | |
6768 | if test "X$pkg" = "X$p"; then | |
6769 | enable_static=yes | |
6770 | fi | |
6771 | done | |
6772 | IFS="$lt_save_ifs" | |
7460295f | 6773 | ;; |
572ac014 MG |
6774 | esac |
6775 | else | |
6776 | enable_static=yes | |
6777 | fi | |
7460295f | 6778 | |
7460295f | 6779 | |
7460295f | 6780 | |
7460295f | 6781 | |
7460295f | 6782 | |
7460295f | 6783 | |
7460295f | 6784 | |
7460295f | 6785 | |
7460295f | 6786 | |
7460295f | 6787 | |
572ac014 | 6788 | # Check whether --with-pic was given. |
a0673b07 | 6789 | if test "${with_pic+set}" = set; then : |
572ac014 MG |
6790 | withval=$with_pic; pic_mode="$withval" |
6791 | else | |
6792 | pic_mode=default | |
6793 | fi | |
7460295f | 6794 | |
7460295f | 6795 | |
572ac014 MG |
6796 | test -z "$pic_mode" && pic_mode=default |
6797 | ||
7460295f | 6798 | |
7460295f | 6799 | |
7460295f | 6800 | |
7460295f | 6801 | |
7460295f | 6802 | |
572ac014 MG |
6803 | |
6804 | # Check whether --enable-fast-install was given. | |
a0673b07 | 6805 | if test "${enable_fast_install+set}" = set; then : |
572ac014 MG |
6806 | enableval=$enable_fast_install; p=${PACKAGE-default} |
6807 | case $enableval in | |
6808 | yes) enable_fast_install=yes ;; | |
6809 | no) enable_fast_install=no ;; | |
7460295f | 6810 | *) |
572ac014 MG |
6811 | enable_fast_install=no |
6812 | # Look at the argument we got. We use all the common list separators. | |
6813 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6814 | for pkg in $enableval; do | |
6815 | IFS="$lt_save_ifs" | |
6816 | if test "X$pkg" = "X$p"; then | |
6817 | enable_fast_install=yes | |
6818 | fi | |
6819 | done | |
6820 | IFS="$lt_save_ifs" | |
7460295f MG |
6821 | ;; |
6822 | esac | |
572ac014 MG |
6823 | else |
6824 | enable_fast_install=yes | |
6825 | fi | |
7460295f | 6826 | |
7460295f | 6827 | |
7460295f | 6828 | |
7460295f | 6829 | |
7460295f | 6830 | |
7460295f | 6831 | |
7460295f | 6832 | |
7460295f | 6833 | |
7460295f | 6834 | |
7460295f | 6835 | |
7460295f | 6836 | |
572ac014 MG |
6837 | # This can be used to rebuild libtool when needed |
6838 | LIBTOOL_DEPS="$ltmain" | |
7460295f | 6839 | |
572ac014 MG |
6840 | # Always use our own libtool. |
6841 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7460295f | 6842 | |
7460295f | 6843 | |
7460295f | 6844 | |
7460295f | 6845 | |
7460295f | 6846 | |
7460295f | 6847 | |
7460295f MG |
6848 | |
6849 | ||
7460295f | 6850 | |
7460295f | 6851 | |
7460295f | 6852 | |
7460295f | 6853 | |
7460295f | 6854 | |
7460295f | 6855 | |
7460295f | 6856 | |
7460295f | 6857 | |
7460295f | 6858 | |
7460295f | 6859 | |
7460295f | 6860 | |
7460295f | 6861 | |
7460295f | 6862 | |
7460295f | 6863 | |
7460295f | 6864 | |
7460295f | 6865 | |
7460295f | 6866 | |
572ac014 | 6867 | test -z "$LN_S" && LN_S="ln -s" |
7460295f | 6868 | |
7460295f | 6869 | |
7460295f | 6870 | |
7460295f | 6871 | |
7460295f | 6872 | |
7460295f | 6873 | |
7460295f | 6874 | |
7460295f | 6875 | |
7460295f | 6876 | |
7460295f | 6877 | |
7460295f | 6878 | |
7460295f | 6879 | |
7460295f | 6880 | |
7460295f | 6881 | |
572ac014 MG |
6882 | if test -n "${ZSH_VERSION+set}" ; then |
6883 | setopt NO_GLOB_SUBST | |
6884 | fi | |
7460295f | 6885 | |
a0673b07 | 6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
33aa8fe1 | 6887 | $as_echo_n "checking for objdir... " >&6; } |
a0673b07 | 6888 | if test "${lt_cv_objdir+set}" = set; then : |
33aa8fe1 | 6889 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
6890 | else |
6891 | rm -f .libs 2>/dev/null | |
6892 | mkdir .libs 2>/dev/null | |
6893 | if test -d .libs; then | |
6894 | lt_cv_objdir=.libs | |
6895 | else | |
6896 | # MS-DOS does not allow filenames that begin with a dot. | |
6897 | lt_cv_objdir=_libs | |
6898 | fi | |
6899 | rmdir .libs 2>/dev/null | |
6900 | fi | |
a0673b07 | 6901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
33aa8fe1 | 6902 | $as_echo "$lt_cv_objdir" >&6; } |
572ac014 | 6903 | objdir=$lt_cv_objdir |
7460295f | 6904 | |
7460295f | 6905 | |
7460295f | 6906 | |
7460295f | 6907 | |
7460295f | 6908 | |
572ac014 MG |
6909 | cat >>confdefs.h <<_ACEOF |
6910 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6911 | _ACEOF | |
7460295f | 6912 | |
7460295f | 6913 | |
7460295f | 6914 | |
7460295f | 6915 | |
7460295f | 6916 | |
572ac014 MG |
6917 | |
6918 | ||
6919 | ||
6920 | ||
6921 | ||
6922 | ||
6923 | ||
6924 | ||
6925 | ||
6926 | ||
6927 | ||
6928 | ||
6929 | case $host_os in | |
6930 | aix3*) | |
6931 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6932 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6933 | # vanish in a puff of smoke. | |
6934 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6935 | COLLECT_NAMES= | |
6936 | export COLLECT_NAMES | |
7460295f MG |
6937 | fi |
6938 | ;; | |
6939 | esac | |
6940 | ||
572ac014 MG |
6941 | # Sed substitution that helps us do robust quoting. It backslashifies |
6942 | # metacharacters that are still active within double-quoted strings. | |
6943 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
7460295f | 6944 | |
572ac014 MG |
6945 | # Same as above, but do not quote variable references. |
6946 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7460295f | 6947 | |
572ac014 MG |
6948 | # Sed substitution to delay expansion of an escaped shell variable in a |
6949 | # double_quote_subst'ed string. | |
6950 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7460295f | 6951 | |
572ac014 MG |
6952 | # Sed substitution to delay expansion of an escaped single quote. |
6953 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7460295f | 6954 | |
572ac014 MG |
6955 | # Sed substitution to avoid accidental globbing in evaled expressions |
6956 | no_glob_subst='s/\*/\\\*/g' | |
7460295f | 6957 | |
572ac014 MG |
6958 | # Global variables: |
6959 | ofile=libtool | |
6960 | can_build_shared=yes | |
7460295f | 6961 | |
572ac014 MG |
6962 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6963 | # which needs '.lib'). | |
6964 | libext=a | |
7460295f | 6965 | |
572ac014 | 6966 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
7460295f | 6967 | |
572ac014 MG |
6968 | old_CC="$CC" |
6969 | old_CFLAGS="$CFLAGS" | |
7460295f | 6970 | |
572ac014 MG |
6971 | # Set sane defaults for various variables |
6972 | test -z "$CC" && CC=cc | |
6973 | test -z "$LTCC" && LTCC=$CC | |
6974 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6975 | test -z "$LD" && LD=ld | |
6976 | test -z "$ac_objext" && ac_objext=o | |
7460295f | 6977 | |
572ac014 MG |
6978 | for cc_temp in $compiler""; do |
6979 | case $cc_temp in | |
6980 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6981 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6982 | \-*) ;; | |
6983 | *) break;; | |
6984 | esac | |
6985 | done | |
6986 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7460295f | 6987 | |
7460295f | 6988 | |
572ac014 MG |
6989 | # Only perform the check for file, if the check method requires it |
6990 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6991 | case $deplibs_check_method in | |
6992 | file_magic*) | |
6993 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
a0673b07 | 6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
33aa8fe1 | 6995 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
a0673b07 | 6996 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
33aa8fe1 | 6997 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
6998 | else |
6999 | case $MAGIC_CMD in | |
7000 | [\\/*] | ?:[\\/]*) | |
7001 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7460295f | 7002 | ;; |
572ac014 MG |
7003 | *) |
7004 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7005 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7006 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7007 | for ac_dir in $ac_dummy; do | |
7008 | IFS="$lt_save_ifs" | |
7009 | test -z "$ac_dir" && ac_dir=. | |
7010 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7011 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7012 | if test -n "$file_magic_test_file"; then | |
7013 | case $deplibs_check_method in | |
7014 | "file_magic "*) | |
7015 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7016 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7017 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7018 | $EGREP "$file_magic_regex" > /dev/null; then | |
7019 | : | |
7020 | else | |
7021 | cat <<_LT_EOF 1>&2 | |
7460295f | 7022 | |
572ac014 MG |
7023 | *** Warning: the command libtool uses to detect shared libraries, |
7024 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7025 | *** The result is that libtool may fail to recognize shared libraries | |
7026 | *** as such. This will affect the creation of libtool libraries that | |
7027 | *** depend on shared libraries, but programs linked with such libtool | |
7028 | *** libraries will work regardless of this problem. Nevertheless, you | |
7029 | *** may want to report the problem to your system manager and/or to | |
7030 | *** bug-libtool@gnu.org | |
7460295f | 7031 | |
572ac014 MG |
7032 | _LT_EOF |
7033 | fi ;; | |
7034 | esac | |
7035 | fi | |
7036 | break | |
7037 | fi | |
7038 | done | |
7039 | IFS="$lt_save_ifs" | |
7040 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7460295f | 7041 | ;; |
572ac014 MG |
7042 | esac |
7043 | fi | |
7460295f | 7044 | |
572ac014 MG |
7045 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7046 | if test -n "$MAGIC_CMD"; then | |
a0673b07 | 7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
33aa8fe1 | 7048 | $as_echo "$MAGIC_CMD" >&6; } |
572ac014 | 7049 | else |
a0673b07 | 7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 7051 | $as_echo "no" >&6; } |
572ac014 MG |
7052 | fi |
7053 | ||
7054 | ||
7055 | ||
7056 | ||
7057 | ||
7058 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7059 | if test -n "$ac_tool_prefix"; then | |
a0673b07 | 7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
33aa8fe1 | 7061 | $as_echo_n "checking for file... " >&6; } |
a0673b07 | 7062 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
33aa8fe1 | 7063 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
7064 | else |
7065 | case $MAGIC_CMD in | |
7066 | [\\/*] | ?:[\\/]*) | |
7067 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7460295f | 7068 | ;; |
572ac014 MG |
7069 | *) |
7070 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7071 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7072 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7073 | for ac_dir in $ac_dummy; do | |
7074 | IFS="$lt_save_ifs" | |
7075 | test -z "$ac_dir" && ac_dir=. | |
7076 | if test -f $ac_dir/file; then | |
7077 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7078 | if test -n "$file_magic_test_file"; then | |
7079 | case $deplibs_check_method in | |
7080 | "file_magic "*) | |
7081 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7082 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7083 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7084 | $EGREP "$file_magic_regex" > /dev/null; then | |
7085 | : | |
7086 | else | |
7087 | cat <<_LT_EOF 1>&2 | |
7460295f | 7088 | |
572ac014 MG |
7089 | *** Warning: the command libtool uses to detect shared libraries, |
7090 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7091 | *** The result is that libtool may fail to recognize shared libraries | |
7092 | *** as such. This will affect the creation of libtool libraries that | |
7093 | *** depend on shared libraries, but programs linked with such libtool | |
7094 | *** libraries will work regardless of this problem. Nevertheless, you | |
7095 | *** may want to report the problem to your system manager and/or to | |
7096 | *** bug-libtool@gnu.org | |
7097 | ||
7098 | _LT_EOF | |
7099 | fi ;; | |
7100 | esac | |
7101 | fi | |
7102 | break | |
7103 | fi | |
7104 | done | |
7105 | IFS="$lt_save_ifs" | |
7106 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7460295f | 7107 | ;; |
572ac014 MG |
7108 | esac |
7109 | fi | |
7110 | ||
7111 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7112 | if test -n "$MAGIC_CMD"; then | |
a0673b07 | 7113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
33aa8fe1 | 7114 | $as_echo "$MAGIC_CMD" >&6; } |
572ac014 | 7115 | else |
a0673b07 | 7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 7117 | $as_echo "no" >&6; } |
572ac014 MG |
7118 | fi |
7119 | ||
7460295f | 7120 | |
7460295f | 7121 | else |
572ac014 | 7122 | MAGIC_CMD=: |
7460295f | 7123 | fi |
572ac014 | 7124 | fi |
7460295f | 7125 | |
572ac014 | 7126 | fi |
7460295f | 7127 | ;; |
572ac014 | 7128 | esac |
7460295f | 7129 | |
572ac014 | 7130 | # Use C for the default configuration in the libtool script |
7460295f | 7131 | |
572ac014 MG |
7132 | lt_save_CC="$CC" |
7133 | ac_ext=c | |
7134 | ac_cpp='$CPP $CPPFLAGS' | |
7135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7460295f | 7138 | |
7460295f | 7139 | |
572ac014 MG |
7140 | # Source file extension for C test sources. |
7141 | ac_ext=c | |
7460295f | 7142 | |
572ac014 MG |
7143 | # Object file extension for compiled C test sources. |
7144 | objext=o | |
7145 | objext=$objext | |
7460295f | 7146 | |
572ac014 MG |
7147 | # Code to be used in simple compile tests |
7148 | lt_simple_compile_test_code="int some_variable = 0;" | |
7460295f | 7149 | |
572ac014 MG |
7150 | # Code to be used in simple link tests |
7151 | lt_simple_link_test_code='int main(){return(0);}' | |
7460295f | 7152 | |
7460295f | 7153 | |
7460295f | 7154 | |
7460295f | 7155 | |
7460295f | 7156 | |
7460295f | 7157 | |
7460295f | 7158 | |
572ac014 MG |
7159 | # If no C compiler was specified, use CC. |
7160 | LTCC=${LTCC-"$CC"} | |
7460295f | 7161 | |
572ac014 MG |
7162 | # If no C compiler flags were specified, use CFLAGS. |
7163 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7460295f | 7164 | |
572ac014 MG |
7165 | # Allow CC to be a program name with arguments. |
7166 | compiler=$CC | |
7460295f | 7167 | |
572ac014 MG |
7168 | # Save the default compiler, since it gets overwritten when the other |
7169 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7170 | compiler_DEFAULT=$CC | |
7460295f | 7171 | |
572ac014 MG |
7172 | # save warnings/boilerplate of simple test code |
7173 | ac_outfile=conftest.$ac_objext | |
7174 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7175 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7176 | _lt_compiler_boilerplate=`cat conftest.err` | |
7177 | $RM conftest* | |
7460295f | 7178 | |
572ac014 MG |
7179 | ac_outfile=conftest.$ac_objext |
7180 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7181 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7182 | _lt_linker_boilerplate=`cat conftest.err` | |
7183 | $RM -r conftest* | |
7460295f | 7184 | |
7460295f | 7185 | |
572ac014 | 7186 | if test -n "$compiler"; then |
7460295f | 7187 | |
572ac014 | 7188 | lt_prog_compiler_no_builtin_flag= |
7460295f | 7189 | |
572ac014 MG |
7190 | if test "$GCC" = yes; then |
7191 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7460295f | 7192 | |
a0673b07 | 7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
33aa8fe1 | 7194 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
a0673b07 | 7195 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
33aa8fe1 | 7196 | $as_echo_n "(cached) " >&6 |
7460295f | 7197 | else |
572ac014 MG |
7198 | lt_cv_prog_compiler_rtti_exceptions=no |
7199 | ac_outfile=conftest.$ac_objext | |
7200 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7201 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7202 | # Insert the option either (1) after the last *FLAGS variable, or | |
7203 | # (2) before a word containing "conftest.", or (3) at the end. | |
7204 | # Note that $ac_compile itself does not contain backslashes and begins | |
7205 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7206 | # The option is referenced via a variable to avoid confusing sed. | |
7207 | lt_compile=`echo "$ac_compile" | $SED \ | |
7208 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7209 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7210 | -e 's:$: $lt_compiler_flag:'` | |
db50e572 | 7211 | (eval echo "\"\$as_me:7211: $lt_compile\"" >&5) |
572ac014 MG |
7212 | (eval "$lt_compile" 2>conftest.err) |
7213 | ac_status=$? | |
7214 | cat conftest.err >&5 | |
db50e572 | 7215 | echo "$as_me:7215: \$? = $ac_status" >&5 |
572ac014 MG |
7216 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7217 | # The compiler can only warn and ignore the option if not recognized | |
7218 | # So say no if there are warnings other than the usual output. | |
7219 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7220 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7221 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7222 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7223 | fi | |
7224 | fi | |
7225 | $RM conftest* | |
7460295f | 7226 | |
7460295f | 7227 | fi |
a0673b07 | 7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
33aa8fe1 | 7229 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
7460295f | 7230 | |
572ac014 MG |
7231 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7232 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7460295f | 7233 | else |
572ac014 | 7234 | : |
7460295f MG |
7235 | fi |
7236 | ||
7460295f MG |
7237 | fi |
7238 | ||
7460295f | 7239 | |
7460295f | 7240 | |
7460295f | 7241 | |
7460295f | 7242 | |
7460295f | 7243 | |
572ac014 MG |
7244 | lt_prog_compiler_wl= |
7245 | lt_prog_compiler_pic= | |
7246 | lt_prog_compiler_static= | |
7460295f | 7247 | |
a0673b07 | 7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
33aa8fe1 | 7249 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
7460295f | 7250 | |
572ac014 MG |
7251 | if test "$GCC" = yes; then |
7252 | lt_prog_compiler_wl='-Wl,' | |
7253 | lt_prog_compiler_static='-static' | |
7460295f | 7254 | |
572ac014 MG |
7255 | case $host_os in |
7256 | aix*) | |
7257 | # All AIX code is PIC. | |
7258 | if test "$host_cpu" = ia64; then | |
7259 | # AIX 5 now supports IA64 processor | |
7260 | lt_prog_compiler_static='-Bstatic' | |
7261 | fi | |
7262 | ;; | |
7460295f | 7263 | |
572ac014 MG |
7264 | amigaos*) |
7265 | case $host_cpu in | |
7266 | powerpc) | |
7267 | # see comment about AmigaOS4 .so support | |
7268 | lt_prog_compiler_pic='-fPIC' | |
7269 | ;; | |
7270 | m68k) | |
7271 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7272 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7273 | # like `-m68040'. | |
7274 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7275 | ;; | |
7276 | esac | |
7277 | ;; | |
7460295f | 7278 | |
572ac014 MG |
7279 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7280 | # PIC is the default for these OSes. | |
7281 | ;; | |
7460295f | 7282 | |
572ac014 MG |
7283 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
7284 | # This hack is so that the source file can tell whether it is being | |
7285 | # built for inclusion in a dll (and should export symbols for example). | |
7286 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7287 | # (--disable-auto-import) libraries | |
7288 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7289 | ;; | |
7460295f | 7290 | |
572ac014 MG |
7291 | darwin* | rhapsody*) |
7292 | # PIC is the default on this platform | |
7293 | # Common symbols not allowed in MH_DYLIB files | |
7294 | lt_prog_compiler_pic='-fno-common' | |
7295 | ;; | |
7460295f | 7296 | |
572ac014 MG |
7297 | hpux*) |
7298 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7299 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7300 | # sets the default TLS model and affects inlining. | |
7301 | case $host_cpu in | |
7302 | hppa*64*) | |
7303 | # +Z the default | |
7304 | ;; | |
7305 | *) | |
7306 | lt_prog_compiler_pic='-fPIC' | |
7307 | ;; | |
7308 | esac | |
7309 | ;; | |
7460295f | 7310 | |
572ac014 MG |
7311 | interix[3-9]*) |
7312 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7313 | # Instead, we relocate shared libraries at runtime. | |
7314 | ;; | |
7460295f | 7315 | |
572ac014 MG |
7316 | msdosdjgpp*) |
7317 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7318 | # on systems that don't support them. | |
7319 | lt_prog_compiler_can_build_shared=no | |
7320 | enable_shared=no | |
7321 | ;; | |
7460295f | 7322 | |
572ac014 MG |
7323 | *nto* | *qnx*) |
7324 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7325 | # it will coredump. | |
7326 | lt_prog_compiler_pic='-fPIC -shared' | |
7327 | ;; | |
7460295f | 7328 | |
572ac014 MG |
7329 | sysv4*MP*) |
7330 | if test -d /usr/nec; then | |
7331 | lt_prog_compiler_pic=-Kconform_pic | |
7332 | fi | |
7333 | ;; | |
7460295f | 7334 | |
572ac014 MG |
7335 | *) |
7336 | lt_prog_compiler_pic='-fPIC' | |
7337 | ;; | |
7338 | esac | |
7339 | else | |
7340 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7341 | case $host_os in | |
7342 | aix*) | |
7343 | lt_prog_compiler_wl='-Wl,' | |
7344 | if test "$host_cpu" = ia64; then | |
7345 | # AIX 5 now supports IA64 processor | |
7346 | lt_prog_compiler_static='-Bstatic' | |
7347 | else | |
7348 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7349 | fi | |
7350 | ;; | |
7460295f | 7351 | |
572ac014 MG |
7352 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
7353 | # This hack is so that the source file can tell whether it is being | |
7354 | # built for inclusion in a dll (and should export symbols for example). | |
7355 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7356 | ;; | |
7460295f | 7357 | |
572ac014 MG |
7358 | hpux9* | hpux10* | hpux11*) |
7359 | lt_prog_compiler_wl='-Wl,' | |
7360 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7361 | # not for PA HP-UX. | |
7362 | case $host_cpu in | |
7363 | hppa*64*|ia64*) | |
7364 | # +Z the default | |
7365 | ;; | |
7366 | *) | |
7367 | lt_prog_compiler_pic='+Z' | |
7368 | ;; | |
7369 | esac | |
7370 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7371 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7372 | ;; | |
7460295f | 7373 | |
572ac014 MG |
7374 | irix5* | irix6* | nonstopux*) |
7375 | lt_prog_compiler_wl='-Wl,' | |
7376 | # PIC (with -KPIC) is the default. | |
7377 | lt_prog_compiler_static='-non_shared' | |
7378 | ;; | |
7460295f | 7379 | |
572ac014 MG |
7380 | linux* | k*bsd*-gnu) |
7381 | case $cc_basename in | |
7382 | # old Intel for x86_64 which still supported -KPIC. | |
7383 | ecc*) | |
7384 | lt_prog_compiler_wl='-Wl,' | |
7385 | lt_prog_compiler_pic='-KPIC' | |
7386 | lt_prog_compiler_static='-static' | |
7387 | ;; | |
7388 | # icc used to be incompatible with GCC. | |
7389 | # ICC 10 doesn't accept -KPIC any more. | |
7390 | icc* | ifort*) | |
7391 | lt_prog_compiler_wl='-Wl,' | |
7392 | lt_prog_compiler_pic='-fPIC' | |
7393 | lt_prog_compiler_static='-static' | |
7394 | ;; | |
7395 | # Lahey Fortran 8.1. | |
7396 | lf95*) | |
7397 | lt_prog_compiler_wl='-Wl,' | |
7398 | lt_prog_compiler_pic='--shared' | |
7399 | lt_prog_compiler_static='--static' | |
7400 | ;; | |
7401 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7402 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7403 | # which looks to be a dead project) | |
7404 | lt_prog_compiler_wl='-Wl,' | |
7405 | lt_prog_compiler_pic='-fpic' | |
7406 | lt_prog_compiler_static='-Bstatic' | |
7407 | ;; | |
7408 | ccc*) | |
7409 | lt_prog_compiler_wl='-Wl,' | |
7410 | # All Alpha code is PIC. | |
7411 | lt_prog_compiler_static='-non_shared' | |
7412 | ;; | |
7413 | xl*) | |
7414 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
7415 | lt_prog_compiler_wl='-Wl,' | |
7416 | lt_prog_compiler_pic='-qpic' | |
7417 | lt_prog_compiler_static='-qstaticlink' | |
7418 | ;; | |
7419 | *) | |
7420 | case `$CC -V 2>&1 | sed 5q` in | |
7421 | *Sun\ C*) | |
7422 | # Sun C 5.9 | |
7423 | lt_prog_compiler_pic='-KPIC' | |
7424 | lt_prog_compiler_static='-Bstatic' | |
7425 | lt_prog_compiler_wl='-Wl,' | |
7426 | ;; | |
7427 | *Sun\ F*) | |
7428 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7429 | lt_prog_compiler_pic='-KPIC' | |
7430 | lt_prog_compiler_static='-Bstatic' | |
7431 | lt_prog_compiler_wl='' | |
7432 | ;; | |
7433 | esac | |
7434 | ;; | |
7435 | esac | |
7436 | ;; | |
7460295f | 7437 | |
572ac014 MG |
7438 | newsos6) |
7439 | lt_prog_compiler_pic='-KPIC' | |
7440 | lt_prog_compiler_static='-Bstatic' | |
7441 | ;; | |
7460295f | 7442 | |
572ac014 MG |
7443 | *nto* | *qnx*) |
7444 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7445 | # it will coredump. | |
7446 | lt_prog_compiler_pic='-fPIC -shared' | |
7447 | ;; | |
7460295f | 7448 | |
572ac014 MG |
7449 | osf3* | osf4* | osf5*) |
7450 | lt_prog_compiler_wl='-Wl,' | |
7451 | # All OSF/1 code is PIC. | |
7452 | lt_prog_compiler_static='-non_shared' | |
7453 | ;; | |
7460295f | 7454 | |
572ac014 MG |
7455 | rdos*) |
7456 | lt_prog_compiler_static='-non_shared' | |
7457 | ;; | |
7458 | ||
7459 | solaris*) | |
7460 | lt_prog_compiler_pic='-KPIC' | |
7461 | lt_prog_compiler_static='-Bstatic' | |
7462 | case $cc_basename in | |
7463 | f77* | f90* | f95*) | |
7464 | lt_prog_compiler_wl='-Qoption ld ';; | |
7465 | *) | |
7466 | lt_prog_compiler_wl='-Wl,';; | |
7467 | esac | |
7468 | ;; | |
7469 | ||
7470 | sunos4*) | |
7471 | lt_prog_compiler_wl='-Qoption ld ' | |
7472 | lt_prog_compiler_pic='-PIC' | |
7473 | lt_prog_compiler_static='-Bstatic' | |
7474 | ;; | |
7475 | ||
7476 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7477 | lt_prog_compiler_wl='-Wl,' | |
7478 | lt_prog_compiler_pic='-KPIC' | |
7479 | lt_prog_compiler_static='-Bstatic' | |
7480 | ;; | |
7481 | ||
7482 | sysv4*MP*) | |
7483 | if test -d /usr/nec ;then | |
7484 | lt_prog_compiler_pic='-Kconform_pic' | |
7485 | lt_prog_compiler_static='-Bstatic' | |
7486 | fi | |
7487 | ;; | |
7488 | ||
7489 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7490 | lt_prog_compiler_wl='-Wl,' | |
7491 | lt_prog_compiler_pic='-KPIC' | |
7492 | lt_prog_compiler_static='-Bstatic' | |
7493 | ;; | |
7494 | ||
7495 | unicos*) | |
7496 | lt_prog_compiler_wl='-Wl,' | |
7497 | lt_prog_compiler_can_build_shared=no | |
7498 | ;; | |
7499 | ||
7500 | uts4*) | |
7501 | lt_prog_compiler_pic='-pic' | |
7502 | lt_prog_compiler_static='-Bstatic' | |
7503 | ;; | |
7504 | ||
7505 | *) | |
7506 | lt_prog_compiler_can_build_shared=no | |
7507 | ;; | |
7508 | esac | |
7509 | fi | |
7510 | ||
7511 | case $host_os in | |
7512 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7513 | *djgpp*) | |
7514 | lt_prog_compiler_pic= | |
7515 | ;; | |
7516 | *) | |
7517 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7518 | ;; | |
7460295f | 7519 | esac |
a0673b07 | 7520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
33aa8fe1 | 7521 | $as_echo "$lt_prog_compiler_pic" >&6; } |
572ac014 MG |
7522 | |
7523 | ||
7524 | ||
7525 | ||
7526 | ||
7527 | ||
7528 | # | |
7529 | # Check to make sure the PIC flag actually works. | |
7530 | # | |
7531 | if test -n "$lt_prog_compiler_pic"; then | |
a0673b07 | 7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
33aa8fe1 | 7533 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
a0673b07 | 7534 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
33aa8fe1 | 7535 | $as_echo_n "(cached) " >&6 |
7460295f | 7536 | else |
572ac014 MG |
7537 | lt_cv_prog_compiler_pic_works=no |
7538 | ac_outfile=conftest.$ac_objext | |
7539 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7540 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7541 | # Insert the option either (1) after the last *FLAGS variable, or | |
7542 | # (2) before a word containing "conftest.", or (3) at the end. | |
7543 | # Note that $ac_compile itself does not contain backslashes and begins | |
7544 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7545 | # The option is referenced via a variable to avoid confusing sed. | |
7546 | lt_compile=`echo "$ac_compile" | $SED \ | |
7547 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7548 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7549 | -e 's:$: $lt_compiler_flag:'` | |
db50e572 | 7550 | (eval echo "\"\$as_me:7550: $lt_compile\"" >&5) |
572ac014 MG |
7551 | (eval "$lt_compile" 2>conftest.err) |
7552 | ac_status=$? | |
7553 | cat conftest.err >&5 | |
db50e572 | 7554 | echo "$as_me:7554: \$? = $ac_status" >&5 |
572ac014 MG |
7555 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7556 | # The compiler can only warn and ignore the option if not recognized | |
7557 | # So say no if there are warnings other than the usual output. | |
7558 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7559 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7560 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7561 | lt_cv_prog_compiler_pic_works=yes | |
7562 | fi | |
7563 | fi | |
7564 | $RM conftest* | |
7460295f | 7565 | |
7460295f | 7566 | fi |
a0673b07 | 7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
33aa8fe1 | 7568 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
7460295f | 7569 | |
572ac014 MG |
7570 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
7571 | case $lt_prog_compiler_pic in | |
7572 | "" | " "*) ;; | |
7573 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7574 | esac | |
7460295f | 7575 | else |
572ac014 MG |
7576 | lt_prog_compiler_pic= |
7577 | lt_prog_compiler_can_build_shared=no | |
7578 | fi | |
7460295f | 7579 | |
572ac014 MG |
7580 | fi |
7581 | ||
7582 | ||
7583 | ||
7584 | ||
7585 | ||
7586 | ||
7587 | # | |
7588 | # Check to make sure the static flag actually works. | |
7589 | # | |
7590 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
a0673b07 | 7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
33aa8fe1 | 7592 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
a0673b07 | 7593 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
33aa8fe1 | 7594 | $as_echo_n "(cached) " >&6 |
7460295f | 7595 | else |
572ac014 MG |
7596 | lt_cv_prog_compiler_static_works=no |
7597 | save_LDFLAGS="$LDFLAGS" | |
7598 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7599 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7600 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7601 | # The linker can only warn and ignore the option if not recognized | |
7602 | # So say no if there are warnings | |
7603 | if test -s conftest.err; then | |
7604 | # Append any errors to the config.log. | |
7605 | cat conftest.err 1>&5 | |
7606 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7607 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7608 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7609 | lt_cv_prog_compiler_static_works=yes | |
7610 | fi | |
7611 | else | |
7612 | lt_cv_prog_compiler_static_works=yes | |
7613 | fi | |
7614 | fi | |
7615 | $RM -r conftest* | |
7616 | LDFLAGS="$save_LDFLAGS" | |
7460295f | 7617 | |
7460295f | 7618 | fi |
a0673b07 | 7619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
33aa8fe1 | 7620 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
7460295f | 7621 | |
572ac014 MG |
7622 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
7623 | : | |
7460295f | 7624 | else |
572ac014 MG |
7625 | lt_prog_compiler_static= |
7626 | fi | |
7460295f | 7627 | |
7460295f | 7628 | |
7460295f | 7629 | |
7460295f | 7630 | |
7460295f | 7631 | |
7460295f MG |
7632 | |
7633 | ||
a0673b07 | 7634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
33aa8fe1 | 7635 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
a0673b07 | 7636 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
33aa8fe1 | 7637 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
7638 | else |
7639 | lt_cv_prog_compiler_c_o=no | |
7640 | $RM -r conftest 2>/dev/null | |
7641 | mkdir conftest | |
7642 | cd conftest | |
7643 | mkdir out | |
7644 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7460295f | 7645 | |
572ac014 MG |
7646 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7647 | # Insert the option either (1) after the last *FLAGS variable, or | |
7648 | # (2) before a word containing "conftest.", or (3) at the end. | |
7649 | # Note that $ac_compile itself does not contain backslashes and begins | |
7650 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7651 | lt_compile=`echo "$ac_compile" | $SED \ | |
7652 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7653 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7654 | -e 's:$: $lt_compiler_flag:'` | |
db50e572 | 7655 | (eval echo "\"\$as_me:7655: $lt_compile\"" >&5) |
572ac014 MG |
7656 | (eval "$lt_compile" 2>out/conftest.err) |
7657 | ac_status=$? | |
7658 | cat out/conftest.err >&5 | |
db50e572 | 7659 | echo "$as_me:7659: \$? = $ac_status" >&5 |
572ac014 MG |
7660 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7661 | then | |
7662 | # The compiler can only warn and ignore the option if not recognized | |
7663 | # So say no if there are warnings | |
7664 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7665 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7666 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7667 | lt_cv_prog_compiler_c_o=yes | |
7668 | fi | |
7669 | fi | |
7670 | chmod u+w . 2>&5 | |
7671 | $RM conftest* | |
7672 | # SGI C++ compiler will create directory out/ii_files/ for | |
7673 | # template instantiation | |
7674 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7675 | $RM out/* && rmdir out | |
7676 | cd .. | |
7677 | $RM -r conftest | |
7678 | $RM conftest* | |
7460295f MG |
7679 | |
7680 | fi | |
a0673b07 | 7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
33aa8fe1 | 7682 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
7460295f MG |
7683 | |
7684 | ||
7460295f MG |
7685 | |
7686 | ||
7460295f MG |
7687 | |
7688 | ||
a0673b07 | 7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
33aa8fe1 | 7690 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
a0673b07 | 7691 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
33aa8fe1 | 7692 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
7693 | else |
7694 | lt_cv_prog_compiler_c_o=no | |
7695 | $RM -r conftest 2>/dev/null | |
7696 | mkdir conftest | |
7697 | cd conftest | |
7698 | mkdir out | |
7699 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7460295f | 7700 | |
572ac014 MG |
7701 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7702 | # Insert the option either (1) after the last *FLAGS variable, or | |
7703 | # (2) before a word containing "conftest.", or (3) at the end. | |
7704 | # Note that $ac_compile itself does not contain backslashes and begins | |
7705 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7706 | lt_compile=`echo "$ac_compile" | $SED \ | |
7707 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7708 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7709 | -e 's:$: $lt_compiler_flag:'` | |
db50e572 | 7710 | (eval echo "\"\$as_me:7710: $lt_compile\"" >&5) |
572ac014 MG |
7711 | (eval "$lt_compile" 2>out/conftest.err) |
7712 | ac_status=$? | |
7713 | cat out/conftest.err >&5 | |
db50e572 | 7714 | echo "$as_me:7714: \$? = $ac_status" >&5 |
572ac014 MG |
7715 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7716 | then | |
7717 | # The compiler can only warn and ignore the option if not recognized | |
7718 | # So say no if there are warnings | |
7719 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7720 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7721 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7722 | lt_cv_prog_compiler_c_o=yes | |
7723 | fi | |
7724 | fi | |
7725 | chmod u+w . 2>&5 | |
7726 | $RM conftest* | |
7727 | # SGI C++ compiler will create directory out/ii_files/ for | |
7728 | # template instantiation | |
7729 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7730 | $RM out/* && rmdir out | |
7731 | cd .. | |
7732 | $RM -r conftest | |
7733 | $RM conftest* | |
7460295f | 7734 | |
572ac014 | 7735 | fi |
a0673b07 | 7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
33aa8fe1 | 7737 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
7460295f | 7738 | |
7460295f | 7739 | |
7460295f | 7740 | |
7460295f | 7741 | |
572ac014 MG |
7742 | hard_links="nottested" |
7743 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7744 | # do not overwrite the value of need_locks provided by the user | |
a0673b07 | 7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
33aa8fe1 | 7746 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
572ac014 MG |
7747 | hard_links=yes |
7748 | $RM conftest* | |
7749 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7750 | touch conftest.a | |
7751 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7752 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
a0673b07 | 7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
33aa8fe1 | 7754 | $as_echo "$hard_links" >&6; } |
572ac014 | 7755 | if test "$hard_links" = no; then |
a0673b07 | 7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
33aa8fe1 | 7757 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
572ac014 MG |
7758 | need_locks=warn |
7759 | fi | |
7460295f | 7760 | else |
572ac014 MG |
7761 | need_locks=no |
7762 | fi | |
7460295f | 7763 | |
7460295f | 7764 | |
7460295f | 7765 | |
7460295f | 7766 | |
7460295f | 7767 | |
7460295f | 7768 | |
a0673b07 | 7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
33aa8fe1 | 7770 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
7460295f | 7771 | |
572ac014 MG |
7772 | runpath_var= |
7773 | allow_undefined_flag= | |
7774 | always_export_symbols=no | |
7775 | archive_cmds= | |
7776 | archive_expsym_cmds= | |
7777 | compiler_needs_object=no | |
7778 | enable_shared_with_static_runtimes=no | |
7779 | export_dynamic_flag_spec= | |
7780 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7781 | hardcode_automatic=no | |
7782 | hardcode_direct=no | |
7783 | hardcode_direct_absolute=no | |
7784 | hardcode_libdir_flag_spec= | |
7785 | hardcode_libdir_flag_spec_ld= | |
7786 | hardcode_libdir_separator= | |
7787 | hardcode_minus_L=no | |
7788 | hardcode_shlibpath_var=unsupported | |
7789 | inherit_rpath=no | |
7790 | link_all_deplibs=unknown | |
7791 | module_cmds= | |
7792 | module_expsym_cmds= | |
7793 | old_archive_from_new_cmds= | |
7794 | old_archive_from_expsyms_cmds= | |
7795 | thread_safe_flag_spec= | |
7796 | whole_archive_flag_spec= | |
7797 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7798 | # included in the symbol list | |
7799 | include_expsyms= | |
7800 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7801 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7802 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7803 | # as well as any symbol that contains `d'. | |
7804 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7805 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7806 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7807 | # the symbol is explicitly referenced. Since portable code cannot | |
7808 | # rely on this symbol name, it's probably fine to never include it in | |
7809 | # preloaded symbol tables. | |
7810 | # Exclude shared library initialization/finalization symbols. | |
7811 | extract_expsyms_cmds= | |
7460295f | 7812 | |
572ac014 MG |
7813 | case $host_os in |
7814 | cygwin* | mingw* | pw32* | cegcc*) | |
7815 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7816 | # When not using gcc, we currently assume that we are using | |
7817 | # Microsoft Visual C++. | |
7818 | if test "$GCC" != yes; then | |
7819 | with_gnu_ld=no | |
7460295f | 7820 | fi |
7460295f | 7821 | ;; |
572ac014 MG |
7822 | interix*) |
7823 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7824 | with_gnu_ld=yes | |
7460295f | 7825 | ;; |
572ac014 MG |
7826 | openbsd*) |
7827 | with_gnu_ld=no | |
7828 | ;; | |
7829 | linux* | k*bsd*-gnu) | |
7830 | link_all_deplibs=no | |
7460295f MG |
7831 | ;; |
7832 | esac | |
7833 | ||
572ac014 MG |
7834 | ld_shlibs=yes |
7835 | if test "$with_gnu_ld" = yes; then | |
7836 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7837 | wlarc='${wl}' | |
7460295f | 7838 | |
572ac014 MG |
7839 | # Set some defaults for GNU ld with shared library support. These |
7840 | # are reset later if shared libraries are not supported. Putting them | |
7841 | # here allows them to be overridden if necessary. | |
7842 | runpath_var=LD_RUN_PATH | |
7843 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7844 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7845 | # ancient GNU ld didn't support --whole-archive et. al. | |
7846 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7847 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7848 | else | |
7849 | whole_archive_flag_spec= | |
7850 | fi | |
7851 | supports_anon_versioning=no | |
7852 | case `$LD -v 2>&1` in | |
7853 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7854 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7855 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7856 | *\ 2.11.*) ;; # other 2.11 versions | |
7857 | *) supports_anon_versioning=yes ;; | |
7858 | esac | |
7460295f | 7859 | |
572ac014 MG |
7860 | # See if GNU ld supports shared libraries. |
7861 | case $host_os in | |
7862 | aix[3-9]*) | |
7863 | # On AIX/PPC, the GNU linker is very broken | |
7864 | if test "$host_cpu" != ia64; then | |
7865 | ld_shlibs=no | |
7866 | cat <<_LT_EOF 1>&2 | |
7460295f | 7867 | |
572ac014 MG |
7868 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7869 | *** to be unable to reliably create shared libraries on AIX. | |
7870 | *** Therefore, libtool is disabling shared libraries support. If you | |
7871 | *** really care for shared libraries, you may want to modify your PATH | |
7872 | *** so that a non-GNU linker is found, and then restart. | |
7460295f | 7873 | |
572ac014 MG |
7874 | _LT_EOF |
7875 | fi | |
7876 | ;; | |
7460295f | 7877 | |
572ac014 MG |
7878 | amigaos*) |
7879 | case $host_cpu in | |
7880 | powerpc) | |
7881 | # see comment about AmigaOS4 .so support | |
7882 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7883 | archive_expsym_cmds='' | |
7884 | ;; | |
7885 | m68k) | |
7886 | 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)' | |
7887 | hardcode_libdir_flag_spec='-L$libdir' | |
7888 | hardcode_minus_L=yes | |
7889 | ;; | |
7890 | esac | |
7891 | ;; | |
7460295f | 7892 | |
572ac014 MG |
7893 | beos*) |
7894 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7895 | allow_undefined_flag=unsupported | |
7896 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7897 | # support --undefined. This deserves some investigation. FIXME | |
7898 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7899 | else | |
7900 | ld_shlibs=no | |
7901 | fi | |
7902 | ;; | |
7460295f | 7903 | |
572ac014 MG |
7904 | cygwin* | mingw* | pw32* | cegcc*) |
7905 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7906 | # as there is no search path for DLLs. | |
7907 | hardcode_libdir_flag_spec='-L$libdir' | |
7908 | allow_undefined_flag=unsupported | |
7909 | always_export_symbols=no | |
7910 | enable_shared_with_static_runtimes=yes | |
7911 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7460295f | 7912 | |
572ac014 MG |
7913 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
7914 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7915 | # If the export-symbols file already is a .def file (1st line | |
7916 | # is EXPORTS), use it as is; otherwise, prepend... | |
7917 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7918 | cp $export_symbols $output_objdir/$soname.def; | |
7919 | else | |
7920 | echo EXPORTS > $output_objdir/$soname.def; | |
7921 | cat $export_symbols >> $output_objdir/$soname.def; | |
7922 | fi~ | |
7923 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7924 | else | |
7925 | ld_shlibs=no | |
7926 | fi | |
7927 | ;; | |
7460295f | 7928 | |
572ac014 MG |
7929 | interix[3-9]*) |
7930 | hardcode_direct=no | |
7931 | hardcode_shlibpath_var=no | |
7932 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7933 | export_dynamic_flag_spec='${wl}-E' | |
7934 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7935 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7936 | # default) and relocated if they conflict, which is a slow very memory | |
7937 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7938 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7939 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7940 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7941 | 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' | |
7942 | ;; | |
7460295f | 7943 | |
572ac014 MG |
7944 | gnu* | linux* | tpf* | k*bsd*-gnu) |
7945 | tmp_diet=no | |
7946 | if test "$host_os" = linux-dietlibc; then | |
7947 | case $cc_basename in | |
7948 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7949 | esac | |
7950 | fi | |
7951 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7952 | && test "$tmp_diet" = no | |
7953 | then | |
7954 | tmp_addflag= | |
7955 | tmp_sharedflag='-shared' | |
7956 | case $cc_basename,$host_cpu in | |
7957 | pgcc*) # Portland Group C compiler | |
7958 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7959 | tmp_addflag=' $pic_flag' | |
7960 | ;; | |
7961 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7962 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7963 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7964 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7965 | tmp_addflag=' -i_dynamic' ;; | |
7966 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7967 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7968 | ifc* | ifort*) # Intel Fortran compiler | |
7969 | tmp_addflag=' -nofor_main' ;; | |
7970 | lf95*) # Lahey Fortran 8.1 | |
7971 | whole_archive_flag_spec= | |
7972 | tmp_sharedflag='--shared' ;; | |
7973 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7974 | tmp_sharedflag='-qmkshrobj' | |
7975 | tmp_addflag= ;; | |
7976 | esac | |
7977 | case `$CC -V 2>&1 | sed 5q` in | |
7978 | *Sun\ C*) # Sun C 5.9 | |
7979 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7980 | compiler_needs_object=yes | |
7981 | tmp_sharedflag='-G' ;; | |
7982 | *Sun\ F*) # Sun Fortran 8.3 | |
7983 | tmp_sharedflag='-G' ;; | |
7984 | esac | |
7985 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7460295f | 7986 | |
572ac014 MG |
7987 | if test "x$supports_anon_versioning" = xyes; then |
7988 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7989 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7990 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7991 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7992 | fi | |
7460295f | 7993 | |
572ac014 MG |
7994 | case $cc_basename in |
7995 | xlf*) | |
7996 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7997 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7998 | hardcode_libdir_flag_spec= | |
7999 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8000 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8001 | if test "x$supports_anon_versioning" = xyes; then | |
8002 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8003 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8004 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8005 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8006 | fi | |
8007 | ;; | |
8008 | esac | |
8009 | else | |
8010 | ld_shlibs=no | |
8011 | fi | |
8012 | ;; | |
7460295f | 8013 | |
572ac014 MG |
8014 | netbsd* | netbsdelf*-gnu) |
8015 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8016 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8017 | wlarc= | |
8018 | else | |
8019 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8020 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8021 | fi | |
8022 | ;; | |
7460295f | 8023 | |
572ac014 MG |
8024 | solaris*) |
8025 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8026 | ld_shlibs=no | |
8027 | cat <<_LT_EOF 1>&2 | |
7460295f | 8028 | |
572ac014 MG |
8029 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8030 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8031 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8032 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8033 | *** your PATH or compiler configuration so that the native linker is | |
8034 | *** used, and then restart. | |
7460295f | 8035 | |
572ac014 MG |
8036 | _LT_EOF |
8037 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8038 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8039 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8040 | else | |
8041 | ld_shlibs=no | |
8042 | fi | |
8043 | ;; | |
7460295f | 8044 | |
572ac014 MG |
8045 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8046 | case `$LD -v 2>&1` in | |
8047 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8048 | ld_shlibs=no | |
8049 | cat <<_LT_EOF 1>&2 | |
7460295f | 8050 | |
572ac014 MG |
8051 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8052 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8053 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8054 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8055 | *** your PATH or compiler configuration so that the native linker is | |
8056 | *** used, and then restart. | |
7460295f | 8057 | |
572ac014 MG |
8058 | _LT_EOF |
8059 | ;; | |
8060 | *) | |
8061 | # For security reasons, it is highly recommended that you always | |
8062 | # use absolute paths for naming shared libraries, and exclude the | |
8063 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8064 | # requires that you compile everything twice, which is a pain. | |
8065 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8066 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8067 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8068 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8069 | else | |
8070 | ld_shlibs=no | |
8071 | fi | |
8072 | ;; | |
8073 | esac | |
8074 | ;; | |
7460295f | 8075 | |
572ac014 MG |
8076 | sunos4*) |
8077 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8078 | wlarc= | |
8079 | hardcode_direct=yes | |
8080 | hardcode_shlibpath_var=no | |
8081 | ;; | |
7460295f | 8082 | |
572ac014 MG |
8083 | *) |
8084 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8085 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8086 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8087 | else | |
8088 | ld_shlibs=no | |
8089 | fi | |
8090 | ;; | |
8091 | esac | |
7460295f | 8092 | |
572ac014 MG |
8093 | if test "$ld_shlibs" = no; then |
8094 | runpath_var= | |
8095 | hardcode_libdir_flag_spec= | |
8096 | export_dynamic_flag_spec= | |
8097 | whole_archive_flag_spec= | |
8098 | fi | |
8099 | else | |
8100 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8101 | case $host_os in | |
8102 | aix3*) | |
8103 | allow_undefined_flag=unsupported | |
8104 | always_export_symbols=yes | |
8105 | 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' | |
8106 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8107 | # are no directories specified by -L. | |
8108 | hardcode_minus_L=yes | |
8109 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8110 | # Neither direct hardcoding nor static linking is supported with a | |
8111 | # broken collect2. | |
8112 | hardcode_direct=unsupported | |
8113 | fi | |
8114 | ;; | |
7460295f | 8115 | |
572ac014 MG |
8116 | aix[4-9]*) |
8117 | if test "$host_cpu" = ia64; then | |
8118 | # On IA64, the linker does run time linking by default, so we don't | |
8119 | # have to do anything special. | |
8120 | aix_use_runtimelinking=no | |
8121 | exp_sym_flag='-Bexport' | |
8122 | no_entry_flag="" | |
8123 | else | |
8124 | # If we're using GNU nm, then we don't want the "-C" option. | |
8125 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8126 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8127 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8128 | else | |
8129 | 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' | |
8130 | fi | |
8131 | aix_use_runtimelinking=no | |
7460295f | 8132 | |
572ac014 MG |
8133 | # Test if we are trying to use run time linking or normal |
8134 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8135 | # need to do runtime linking. | |
8136 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8137 | for ld_flag in $LDFLAGS; do | |
8138 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8139 | aix_use_runtimelinking=yes | |
8140 | break | |
8141 | fi | |
8142 | done | |
8143 | ;; | |
8144 | esac | |
7460295f | 8145 | |
572ac014 MG |
8146 | exp_sym_flag='-bexport' |
8147 | no_entry_flag='-bnoentry' | |
8148 | fi | |
7460295f | 8149 | |
572ac014 MG |
8150 | # When large executables or shared objects are built, AIX ld can |
8151 | # have problems creating the table of contents. If linking a library | |
8152 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8153 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8154 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7460295f | 8155 | |
572ac014 MG |
8156 | archive_cmds='' |
8157 | hardcode_direct=yes | |
8158 | hardcode_direct_absolute=yes | |
8159 | hardcode_libdir_separator=':' | |
8160 | link_all_deplibs=yes | |
8161 | file_list_spec='${wl}-f,' | |
7460295f | 8162 | |
572ac014 MG |
8163 | if test "$GCC" = yes; then |
8164 | case $host_os in aix4.[012]|aix4.[012].*) | |
8165 | # We only want to do this on AIX 4.2 and lower, the check | |
8166 | # below for broken collect2 doesn't work under 4.3+ | |
8167 | collect2name=`${CC} -print-prog-name=collect2` | |
8168 | if test -f "$collect2name" && | |
8169 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8170 | then | |
8171 | # We have reworked collect2 | |
8172 | : | |
8173 | else | |
8174 | # We have old collect2 | |
8175 | hardcode_direct=unsupported | |
8176 | # It fails to find uninstalled libraries when the uninstalled | |
8177 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8178 | # to unsupported forces relinking | |
8179 | hardcode_minus_L=yes | |
8180 | hardcode_libdir_flag_spec='-L$libdir' | |
8181 | hardcode_libdir_separator= | |
8182 | fi | |
8183 | ;; | |
8184 | esac | |
8185 | shared_flag='-shared' | |
8186 | if test "$aix_use_runtimelinking" = yes; then | |
8187 | shared_flag="$shared_flag "'${wl}-G' | |
8188 | fi | |
8189 | link_all_deplibs=no | |
8190 | else | |
8191 | # not using gcc | |
8192 | if test "$host_cpu" = ia64; then | |
8193 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8194 | # chokes on -Wl,-G. The following line is correct: | |
8195 | shared_flag='-G' | |
8196 | else | |
8197 | if test "$aix_use_runtimelinking" = yes; then | |
8198 | shared_flag='${wl}-G' | |
8199 | else | |
8200 | shared_flag='${wl}-bM:SRE' | |
8201 | fi | |
8202 | fi | |
8203 | fi | |
7460295f | 8204 | |
572ac014 MG |
8205 | export_dynamic_flag_spec='${wl}-bexpall' |
8206 | # It seems that -bexpall does not export symbols beginning with | |
8207 | # underscore (_), so it is better to generate a list of symbols to export. | |
8208 | always_export_symbols=yes | |
8209 | if test "$aix_use_runtimelinking" = yes; then | |
8210 | # Warning - without using the other runtime loading flags (-brtl), | |
8211 | # -berok will link without error, but may produce a broken library. | |
8212 | allow_undefined_flag='-berok' | |
8213 | # Determine the default libpath from the value encoded in an | |
8214 | # empty executable. | |
a0673b07 | 8215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 8216 | /* end confdefs.h. */ |
7460295f | 8217 | |
572ac014 MG |
8218 | int |
8219 | main () | |
8220 | { | |
7460295f | 8221 | |
572ac014 MG |
8222 | ; |
8223 | return 0; | |
8224 | } | |
8225 | _ACEOF | |
a0673b07 | 8226 | if ac_fn_c_try_link "$LINENO"; then : |
7460295f | 8227 | |
572ac014 MG |
8228 | lt_aix_libpath_sed=' |
8229 | /Import File Strings/,/^$/ { | |
8230 | /^0/ { | |
8231 | s/^0 *\(.*\)$/\1/ | |
8232 | p | |
8233 | } | |
8234 | }' | |
8235 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8236 | # Check for a 64-bit object if we didn't find anything. | |
8237 | if test -z "$aix_libpath"; then | |
8238 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8239 | fi | |
572ac014 | 8240 | fi |
a0673b07 MG |
8241 | rm -f core conftest.err conftest.$ac_objext \ |
8242 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 | 8243 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7460295f | 8244 | |
572ac014 MG |
8245 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8246 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8247 | else | |
8248 | if test "$host_cpu" = ia64; then | |
8249 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8250 | allow_undefined_flag="-z nodefs" | |
8251 | 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" | |
8252 | else | |
8253 | # Determine the default libpath from the value encoded in an | |
8254 | # empty executable. | |
a0673b07 | 8255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 8256 | /* end confdefs.h. */ |
7460295f | 8257 | |
572ac014 MG |
8258 | int |
8259 | main () | |
8260 | { | |
7460295f | 8261 | |
572ac014 MG |
8262 | ; |
8263 | return 0; | |
8264 | } | |
8265 | _ACEOF | |
a0673b07 | 8266 | if ac_fn_c_try_link "$LINENO"; then : |
7460295f | 8267 | |
572ac014 MG |
8268 | lt_aix_libpath_sed=' |
8269 | /Import File Strings/,/^$/ { | |
8270 | /^0/ { | |
8271 | s/^0 *\(.*\)$/\1/ | |
8272 | p | |
8273 | } | |
8274 | }' | |
8275 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8276 | # Check for a 64-bit object if we didn't find anything. | |
8277 | if test -z "$aix_libpath"; then | |
8278 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8279 | fi | |
572ac014 | 8280 | fi |
a0673b07 MG |
8281 | rm -f core conftest.err conftest.$ac_objext \ |
8282 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 | 8283 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7460295f | 8284 | |
572ac014 MG |
8285 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8286 | # Warning - without using the other run time loading flags, | |
8287 | # -berok will link without error, but may produce a broken library. | |
8288 | no_undefined_flag=' ${wl}-bernotok' | |
8289 | allow_undefined_flag=' ${wl}-berok' | |
8290 | # Exported symbols can be pulled into shared objects from archives | |
8291 | whole_archive_flag_spec='$convenience' | |
8292 | archive_cmds_need_lc=yes | |
8293 | # This is similar to how AIX traditionally builds its shared libraries. | |
8294 | 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' | |
8295 | fi | |
8296 | fi | |
8297 | ;; | |
7460295f | 8298 | |
572ac014 MG |
8299 | amigaos*) |
8300 | case $host_cpu in | |
8301 | powerpc) | |
8302 | # see comment about AmigaOS4 .so support | |
8303 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8304 | archive_expsym_cmds='' | |
8305 | ;; | |
8306 | m68k) | |
8307 | 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)' | |
8308 | hardcode_libdir_flag_spec='-L$libdir' | |
8309 | hardcode_minus_L=yes | |
8310 | ;; | |
8311 | esac | |
8312 | ;; | |
7460295f | 8313 | |
572ac014 MG |
8314 | bsdi[45]*) |
8315 | export_dynamic_flag_spec=-rdynamic | |
8316 | ;; | |
7460295f | 8317 | |
572ac014 MG |
8318 | cygwin* | mingw* | pw32* | cegcc*) |
8319 | # When not using gcc, we currently assume that we are using | |
8320 | # Microsoft Visual C++. | |
8321 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8322 | # no search path for DLLs. | |
8323 | hardcode_libdir_flag_spec=' ' | |
8324 | allow_undefined_flag=unsupported | |
8325 | # Tell ltmain to make .lib files, not .a files. | |
8326 | libext=lib | |
8327 | # Tell ltmain to make .dll files, not .so files. | |
8328 | shrext_cmds=".dll" | |
8329 | # FIXME: Setting linknames here is a bad hack. | |
8330 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8331 | # The linker will automatically build a .lib file if we build a DLL. | |
8332 | old_archive_from_new_cmds='true' | |
8333 | # FIXME: Should let the user specify the lib program. | |
8334 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8335 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8336 | enable_shared_with_static_runtimes=yes | |
8337 | ;; | |
7460295f | 8338 | |
572ac014 | 8339 | darwin* | rhapsody*) |
7460295f | 8340 | |
7460295f | 8341 | |
572ac014 MG |
8342 | archive_cmds_need_lc=no |
8343 | hardcode_direct=no | |
8344 | hardcode_automatic=yes | |
8345 | hardcode_shlibpath_var=unsupported | |
8346 | whole_archive_flag_spec='' | |
8347 | link_all_deplibs=yes | |
8348 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8349 | case $cc_basename in | |
8350 | ifort*) _lt_dar_can_shared=yes ;; | |
8351 | *) _lt_dar_can_shared=$GCC ;; | |
8352 | esac | |
8353 | if test "$_lt_dar_can_shared" = "yes"; then | |
8354 | output_verbose_link_cmd=echo | |
8355 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8356 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8357 | 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}" | |
8358 | 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}" | |
7460295f | 8359 | |
572ac014 MG |
8360 | else |
8361 | ld_shlibs=no | |
8362 | fi | |
7460295f | 8363 | |
572ac014 | 8364 | ;; |
7460295f | 8365 | |
572ac014 MG |
8366 | dgux*) |
8367 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8368 | hardcode_libdir_flag_spec='-L$libdir' | |
8369 | hardcode_shlibpath_var=no | |
8370 | ;; | |
7460295f | 8371 | |
572ac014 MG |
8372 | freebsd1*) |
8373 | ld_shlibs=no | |
8374 | ;; | |
7460295f | 8375 | |
572ac014 MG |
8376 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8377 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8378 | # does not break anything, and helps significantly (at the cost of a little | |
8379 | # extra space). | |
8380 | freebsd2.2*) | |
8381 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8382 | hardcode_libdir_flag_spec='-R$libdir' | |
8383 | hardcode_direct=yes | |
8384 | hardcode_shlibpath_var=no | |
8385 | ;; | |
7460295f | 8386 | |
572ac014 MG |
8387 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8388 | freebsd2*) | |
8389 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8390 | hardcode_direct=yes | |
8391 | hardcode_minus_L=yes | |
8392 | hardcode_shlibpath_var=no | |
8393 | ;; | |
7460295f | 8394 | |
572ac014 MG |
8395 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8396 | freebsd* | dragonfly*) | |
8397 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8398 | hardcode_libdir_flag_spec='-R$libdir' | |
8399 | hardcode_direct=yes | |
8400 | hardcode_shlibpath_var=no | |
8401 | ;; | |
7460295f | 8402 | |
572ac014 MG |
8403 | hpux9*) |
8404 | if test "$GCC" = yes; then | |
8405 | 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' | |
8406 | else | |
8407 | 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' | |
8408 | fi | |
8409 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8410 | hardcode_libdir_separator=: | |
8411 | hardcode_direct=yes | |
7460295f | 8412 | |
572ac014 MG |
8413 | # hardcode_minus_L: Not really in the search PATH, |
8414 | # but as the default location of the library. | |
8415 | hardcode_minus_L=yes | |
8416 | export_dynamic_flag_spec='${wl}-E' | |
8417 | ;; | |
7460295f | 8418 | |
572ac014 MG |
8419 | hpux10*) |
8420 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8421 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8422 | else | |
8423 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8424 | fi | |
8425 | if test "$with_gnu_ld" = no; then | |
8426 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8427 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8428 | hardcode_libdir_separator=: | |
8429 | hardcode_direct=yes | |
8430 | hardcode_direct_absolute=yes | |
8431 | export_dynamic_flag_spec='${wl}-E' | |
8432 | # hardcode_minus_L: Not really in the search PATH, | |
8433 | # but as the default location of the library. | |
8434 | hardcode_minus_L=yes | |
8435 | fi | |
8436 | ;; | |
7460295f | 8437 | |
572ac014 MG |
8438 | hpux11*) |
8439 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8440 | case $host_cpu in | |
8441 | hppa*64*) | |
8442 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8443 | ;; | |
8444 | ia64*) | |
8445 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8446 | ;; | |
8447 | *) | |
8448 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8449 | ;; | |
8450 | esac | |
8451 | else | |
8452 | case $host_cpu in | |
8453 | hppa*64*) | |
8454 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8455 | ;; | |
8456 | ia64*) | |
8457 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8458 | ;; | |
8459 | *) | |
8460 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8461 | ;; | |
8462 | esac | |
8463 | fi | |
8464 | if test "$with_gnu_ld" = no; then | |
8465 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8466 | hardcode_libdir_separator=: | |
7460295f | 8467 | |
572ac014 MG |
8468 | case $host_cpu in |
8469 | hppa*64*|ia64*) | |
8470 | hardcode_direct=no | |
8471 | hardcode_shlibpath_var=no | |
8472 | ;; | |
8473 | *) | |
8474 | hardcode_direct=yes | |
8475 | hardcode_direct_absolute=yes | |
8476 | export_dynamic_flag_spec='${wl}-E' | |
7460295f | 8477 | |
572ac014 MG |
8478 | # hardcode_minus_L: Not really in the search PATH, |
8479 | # but as the default location of the library. | |
8480 | hardcode_minus_L=yes | |
8481 | ;; | |
8482 | esac | |
8483 | fi | |
8484 | ;; | |
7460295f | 8485 | |
572ac014 MG |
8486 | irix5* | irix6* | nonstopux*) |
8487 | if test "$GCC" = yes; then | |
8488 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8489 | # Try to use the -exported_symbol ld option, if it does not | |
8490 | # work, assume that -exports_file does not work either and | |
8491 | # implicitly export all symbols. | |
8492 | save_LDFLAGS="$LDFLAGS" | |
8493 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
a0673b07 MG |
8494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8495 | /* end confdefs.h. */ | |
572ac014 MG |
8496 | int foo(void) {} |
8497 | _ACEOF | |
a0673b07 | 8498 | if ac_fn_c_try_link "$LINENO"; then : |
572ac014 | 8499 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
7460295f | 8500 | |
572ac014 | 8501 | fi |
a0673b07 MG |
8502 | rm -f core conftest.err conftest.$ac_objext \ |
8503 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 MG |
8504 | LDFLAGS="$save_LDFLAGS" |
8505 | else | |
8506 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8507 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8508 | fi | |
8509 | archive_cmds_need_lc='no' | |
8510 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8511 | hardcode_libdir_separator=: | |
8512 | inherit_rpath=yes | |
8513 | link_all_deplibs=yes | |
8514 | ;; | |
7460295f | 8515 | |
572ac014 MG |
8516 | netbsd* | netbsdelf*-gnu) |
8517 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8518 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8519 | else | |
8520 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8521 | fi | |
8522 | hardcode_libdir_flag_spec='-R$libdir' | |
8523 | hardcode_direct=yes | |
8524 | hardcode_shlibpath_var=no | |
8525 | ;; | |
7460295f | 8526 | |
572ac014 MG |
8527 | newsos6) |
8528 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8529 | hardcode_direct=yes | |
8530 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8531 | hardcode_libdir_separator=: | |
8532 | hardcode_shlibpath_var=no | |
8533 | ;; | |
7460295f | 8534 | |
572ac014 MG |
8535 | *nto* | *qnx*) |
8536 | ;; | |
7460295f | 8537 | |
572ac014 MG |
8538 | openbsd*) |
8539 | if test -f /usr/libexec/ld.so; then | |
8540 | hardcode_direct=yes | |
8541 | hardcode_shlibpath_var=no | |
8542 | hardcode_direct_absolute=yes | |
8543 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8544 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8545 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8546 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8547 | export_dynamic_flag_spec='${wl}-E' | |
8548 | else | |
8549 | case $host_os in | |
8550 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8551 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8552 | hardcode_libdir_flag_spec='-R$libdir' | |
8553 | ;; | |
8554 | *) | |
8555 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8556 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8557 | ;; | |
8558 | esac | |
8559 | fi | |
8560 | else | |
8561 | ld_shlibs=no | |
8562 | fi | |
8563 | ;; | |
7460295f | 8564 | |
572ac014 MG |
8565 | os2*) |
8566 | hardcode_libdir_flag_spec='-L$libdir' | |
8567 | hardcode_minus_L=yes | |
8568 | allow_undefined_flag=unsupported | |
8569 | 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' | |
8570 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8571 | ;; | |
7460295f | 8572 | |
572ac014 MG |
8573 | osf3*) |
8574 | if test "$GCC" = yes; then | |
8575 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8576 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8577 | else | |
8578 | allow_undefined_flag=' -expect_unresolved \*' | |
8579 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8580 | fi | |
8581 | archive_cmds_need_lc='no' | |
8582 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8583 | hardcode_libdir_separator=: | |
8584 | ;; | |
7460295f | 8585 | |
572ac014 MG |
8586 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8587 | if test "$GCC" = yes; then | |
8588 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8589 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8590 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8591 | else | |
8592 | allow_undefined_flag=' -expect_unresolved \*' | |
8593 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8594 | 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~ | |
8595 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
7460295f | 8596 | |
572ac014 MG |
8597 | # Both c and cxx compiler support -rpath directly |
8598 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8599 | fi | |
8600 | archive_cmds_need_lc='no' | |
8601 | hardcode_libdir_separator=: | |
8602 | ;; | |
7460295f | 8603 | |
572ac014 MG |
8604 | solaris*) |
8605 | no_undefined_flag=' -z defs' | |
8606 | if test "$GCC" = yes; then | |
8607 | wlarc='${wl}' | |
8608 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8609 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8610 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8611 | else | |
8612 | case `$CC -V 2>&1` in | |
8613 | *"Compilers 5.0"*) | |
8614 | wlarc='' | |
8615 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8616 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8617 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8618 | ;; | |
8619 | *) | |
8620 | wlarc='${wl}' | |
8621 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8622 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8623 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8624 | ;; | |
8625 | esac | |
8626 | fi | |
8627 | hardcode_libdir_flag_spec='-R$libdir' | |
8628 | hardcode_shlibpath_var=no | |
8629 | case $host_os in | |
8630 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8631 | *) | |
8632 | # The compiler driver will combine and reorder linker options, | |
8633 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8634 | # but is careful enough not to reorder. | |
8635 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8636 | if test "$GCC" = yes; then | |
8637 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8638 | else | |
8639 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8640 | fi | |
8641 | ;; | |
8642 | esac | |
8643 | link_all_deplibs=yes | |
8644 | ;; | |
7460295f | 8645 | |
572ac014 MG |
8646 | sunos4*) |
8647 | if test "x$host_vendor" = xsequent; then | |
8648 | # Use $CC to link under sequent, because it throws in some extra .o | |
8649 | # files that make .init and .fini sections work. | |
8650 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8651 | else | |
8652 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8653 | fi | |
8654 | hardcode_libdir_flag_spec='-L$libdir' | |
8655 | hardcode_direct=yes | |
8656 | hardcode_minus_L=yes | |
8657 | hardcode_shlibpath_var=no | |
8658 | ;; | |
7460295f | 8659 | |
572ac014 MG |
8660 | sysv4) |
8661 | case $host_vendor in | |
8662 | sni) | |
8663 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8664 | hardcode_direct=yes # is this really true??? | |
8665 | ;; | |
8666 | siemens) | |
8667 | ## LD is ld it makes a PLAMLIB | |
8668 | ## CC just makes a GrossModule. | |
8669 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8670 | reload_cmds='$CC -r -o $output$reload_objs' | |
8671 | hardcode_direct=no | |
8672 | ;; | |
8673 | motorola) | |
8674 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8675 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8676 | ;; | |
8677 | esac | |
8678 | runpath_var='LD_RUN_PATH' | |
8679 | hardcode_shlibpath_var=no | |
8680 | ;; | |
7460295f | 8681 | |
572ac014 MG |
8682 | sysv4.3*) |
8683 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8684 | hardcode_shlibpath_var=no | |
8685 | export_dynamic_flag_spec='-Bexport' | |
8686 | ;; | |
7460295f | 8687 | |
572ac014 MG |
8688 | sysv4*MP*) |
8689 | if test -d /usr/nec; then | |
8690 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8691 | hardcode_shlibpath_var=no | |
8692 | runpath_var=LD_RUN_PATH | |
8693 | hardcode_runpath_var=yes | |
8694 | ld_shlibs=yes | |
8695 | fi | |
8696 | ;; | |
7460295f | 8697 | |
572ac014 MG |
8698 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
8699 | no_undefined_flag='${wl}-z,text' | |
8700 | archive_cmds_need_lc=no | |
8701 | hardcode_shlibpath_var=no | |
8702 | runpath_var='LD_RUN_PATH' | |
7460295f | 8703 | |
572ac014 MG |
8704 | if test "$GCC" = yes; then |
8705 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8706 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8707 | else | |
8708 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8709 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8710 | fi | |
8711 | ;; | |
7460295f | 8712 | |
572ac014 MG |
8713 | sysv5* | sco3.2v5* | sco5v6*) |
8714 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8715 | # link with -lc, and that would cause any symbols used from libc to | |
8716 | # always be unresolved, which means just about no library would | |
8717 | # ever link correctly. If we're not using GNU ld we use -z text | |
8718 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8719 | # as -z defs. | |
8720 | no_undefined_flag='${wl}-z,text' | |
8721 | allow_undefined_flag='${wl}-z,nodefs' | |
8722 | archive_cmds_need_lc=no | |
8723 | hardcode_shlibpath_var=no | |
8724 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8725 | hardcode_libdir_separator=':' | |
8726 | link_all_deplibs=yes | |
8727 | export_dynamic_flag_spec='${wl}-Bexport' | |
8728 | runpath_var='LD_RUN_PATH' | |
7460295f | 8729 | |
572ac014 MG |
8730 | if test "$GCC" = yes; then |
8731 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8732 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8733 | else | |
8734 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8735 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8736 | fi | |
8737 | ;; | |
7460295f | 8738 | |
572ac014 MG |
8739 | uts4*) |
8740 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8741 | hardcode_libdir_flag_spec='-L$libdir' | |
8742 | hardcode_shlibpath_var=no | |
8743 | ;; | |
7460295f | 8744 | |
572ac014 MG |
8745 | *) |
8746 | ld_shlibs=no | |
8747 | ;; | |
8748 | esac | |
7460295f | 8749 | |
572ac014 MG |
8750 | if test x$host_vendor = xsni; then |
8751 | case $host in | |
8752 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8753 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8754 | ;; | |
8755 | esac | |
8756 | fi | |
8757 | fi | |
7460295f | 8758 | |
a0673b07 | 8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
33aa8fe1 | 8760 | $as_echo "$ld_shlibs" >&6; } |
572ac014 | 8761 | test "$ld_shlibs" = no && can_build_shared=no |
7460295f | 8762 | |
572ac014 | 8763 | with_gnu_ld=$with_gnu_ld |
7460295f | 8764 | |
7460295f | 8765 | |
7460295f | 8766 | |
7460295f | 8767 | |
7460295f MG |
8768 | |
8769 | ||
7460295f | 8770 | |
7460295f MG |
8771 | |
8772 | ||
7460295f MG |
8773 | |
8774 | ||
7460295f | 8775 | |
7460295f | 8776 | |
7460295f | 8777 | |
572ac014 MG |
8778 | |
8779 | # | |
8780 | # Do we need to explicitly link libc? | |
8781 | # | |
8782 | case "x$archive_cmds_need_lc" in | |
8783 | x|xyes) | |
8784 | # Assume -lc should be added | |
8785 | archive_cmds_need_lc=yes | |
8786 | ||
8787 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8788 | case $archive_cmds in | |
8789 | *'~'*) | |
8790 | # FIXME: we may have to deal with multi-command sequences. | |
8791 | ;; | |
8792 | '$CC '*) | |
8793 | # Test whether the compiler implicitly links with -lc since on some | |
8794 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8795 | # to ld, don't add -lc before -lgcc. | |
a0673b07 | 8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
33aa8fe1 | 8797 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
572ac014 MG |
8798 | $RM conftest* |
8799 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8800 | ||
a0673b07 | 8801 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
572ac014 MG |
8802 | (eval $ac_compile) 2>&5 |
8803 | ac_status=$? | |
a0673b07 MG |
8804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8805 | test $ac_status = 0; } 2>conftest.err; then | |
572ac014 MG |
8806 | soname=conftest |
8807 | lib=conftest | |
8808 | libobjs=conftest.$ac_objext | |
8809 | deplibs= | |
8810 | wl=$lt_prog_compiler_wl | |
8811 | pic_flag=$lt_prog_compiler_pic | |
8812 | compiler_flags=-v | |
8813 | linker_flags=-v | |
8814 | verstring= | |
8815 | output_objdir=. | |
8816 | libname=conftest | |
8817 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8818 | allow_undefined_flag= | |
a0673b07 | 8819 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
572ac014 MG |
8820 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8821 | ac_status=$? | |
a0673b07 MG |
8822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8823 | test $ac_status = 0; } | |
572ac014 MG |
8824 | then |
8825 | archive_cmds_need_lc=no | |
8826 | else | |
8827 | archive_cmds_need_lc=yes | |
8828 | fi | |
8829 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8830 | else | |
8831 | cat conftest.err 1>&5 | |
8832 | fi | |
8833 | $RM conftest* | |
a0673b07 | 8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
33aa8fe1 | 8835 | $as_echo "$archive_cmds_need_lc" >&6; } |
572ac014 | 8836 | ;; |
7460295f | 8837 | esac |
572ac014 MG |
8838 | fi |
8839 | ;; | |
8840 | esac | |
8841 | ||
8842 | ||
8843 | ||
8844 | ||
8845 | ||
8846 | ||
8847 | ||
8848 | ||
8849 | ||
8850 | ||
8851 | ||
8852 | ||
8853 | ||
8854 | ||
8855 | ||
8856 | ||
8857 | ||
8858 | ||
8859 | ||
8860 | ||
8861 | ||
8862 | ||
8863 | ||
8864 | ||
8865 | ||
8866 | ||
8867 | ||
8868 | ||
8869 | ||
8870 | ||
8871 | ||
8872 | ||
8873 | ||
8874 | ||
8875 | ||
8876 | ||
8877 | ||
8878 | ||
8879 | ||
8880 | ||
8881 | ||
8882 | ||
8883 | ||
8884 | ||
8885 | ||
8886 | ||
8887 | ||
7460295f | 8888 | |
7460295f | 8889 | |
7460295f | 8890 | |
7460295f | 8891 | |
7460295f | 8892 | |
7460295f | 8893 | |
7460295f | 8894 | |
7460295f | 8895 | |
7460295f MG |
8896 | |
8897 | ||
7460295f | 8898 | |
7460295f MG |
8899 | |
8900 | ||
7460295f MG |
8901 | |
8902 | ||
7460295f | 8903 | |
7460295f MG |
8904 | |
8905 | ||
7460295f | 8906 | |
7460295f | 8907 | |
7460295f MG |
8908 | |
8909 | ||
8910 | ||
7460295f | 8911 | |
7460295f | 8912 | |
7460295f | 8913 | |
7460295f | 8914 | |
7460295f | 8915 | |
7460295f | 8916 | |
7460295f | 8917 | |
7460295f | 8918 | |
7460295f | 8919 | |
7460295f | 8920 | |
7460295f | 8921 | |
7460295f | 8922 | |
7460295f MG |
8923 | |
8924 | ||
7460295f | 8925 | |
7460295f | 8926 | |
7460295f | 8927 | |
7460295f | 8928 | |
7460295f | 8929 | |
7460295f | 8930 | |
7460295f MG |
8931 | |
8932 | ||
7460295f | 8933 | |
7460295f | 8934 | |
7460295f | 8935 | |
7460295f | 8936 | |
7460295f | 8937 | |
7460295f | 8938 | |
7460295f | 8939 | |
7460295f | 8940 | |
7460295f | 8941 | |
7460295f | 8942 | |
7460295f | 8943 | |
7460295f | 8944 | |
7460295f | 8945 | |
7460295f | 8946 | |
7460295f | 8947 | |
7460295f | 8948 | |
7460295f | 8949 | |
7460295f | 8950 | |
7460295f | 8951 | |
7460295f | 8952 | |
7460295f | 8953 | |
7460295f | 8954 | |
7460295f | 8955 | |
7460295f | 8956 | |
7460295f | 8957 | |
7460295f | 8958 | |
7460295f | 8959 | |
7460295f | 8960 | |
7460295f | 8961 | |
7460295f | 8962 | |
7460295f | 8963 | |
7460295f | 8964 | |
7460295f | 8965 | |
7460295f | 8966 | |
7460295f | 8967 | |
7460295f | 8968 | |
7460295f | 8969 | |
7460295f | 8970 | |
7460295f | 8971 | |
7460295f | 8972 | |
7460295f | 8973 | |
7460295f | 8974 | |
7460295f | 8975 | |
7460295f | 8976 | |
7460295f | 8977 | |
7460295f | 8978 | |
7460295f | 8979 | |
7460295f | 8980 | |
7460295f | 8981 | |
7460295f | 8982 | |
7460295f | 8983 | |
7460295f MG |
8984 | |
8985 | ||
7460295f | 8986 | |
7460295f | 8987 | |
7460295f MG |
8988 | |
8989 | ||
7460295f | 8990 | |
7460295f | 8991 | |
7460295f | 8992 | |
7460295f | 8993 | |
7460295f | 8994 | |
7460295f | 8995 | |
7460295f | 8996 | |
572ac014 | 8997 | |
a0673b07 | 8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
33aa8fe1 | 8999 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
572ac014 MG |
9000 | |
9001 | if test "$GCC" = yes; then | |
9002 | case $host_os in | |
9003 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9004 | *) lt_awk_arg="/^libraries:/" ;; | |
9005 | esac | |
9006 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9007 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9008 | # if the path contains ";" then we assume it to be the separator | |
9009 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9010 | # assumed that no part of a normal pathname contains ";" but that should | |
9011 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9012 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9013 | else | |
9014 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9015 | fi | |
9016 | # Ok, now we have the path, separated by spaces, we can step through it | |
9017 | # and add multilib dir if necessary. | |
9018 | lt_tmp_lt_search_path_spec= | |
9019 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9020 | for lt_sys_path in $lt_search_path_spec; do | |
9021 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9022 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9023 | else | |
9024 | test -d "$lt_sys_path" && \ | |
9025 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9026 | fi | |
9027 | done | |
9028 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9029 | BEGIN {RS=" "; FS="/|\n";} { | |
9030 | lt_foo=""; | |
9031 | lt_count=0; | |
9032 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9033 | if ($lt_i != "" && $lt_i != ".") { | |
9034 | if ($lt_i == "..") { | |
9035 | lt_count++; | |
9036 | } else { | |
9037 | if (lt_count == 0) { | |
9038 | lt_foo="/" $lt_i lt_foo; | |
9039 | } else { | |
9040 | lt_count--; | |
9041 | } | |
9042 | } | |
9043 | } | |
9044 | } | |
9045 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9046 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9047 | }'` | |
9048 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9049 | else | |
9050 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9051 | fi | |
7460295f MG |
9052 | library_names_spec= |
9053 | libname_spec='lib$name' | |
9054 | soname_spec= | |
9055 | shrext_cmds=".so" | |
9056 | postinstall_cmds= | |
9057 | postuninstall_cmds= | |
9058 | finish_cmds= | |
9059 | finish_eval= | |
9060 | shlibpath_var= | |
9061 | shlibpath_overrides_runpath=unknown | |
9062 | version_type=none | |
9063 | dynamic_linker="$host_os ld.so" | |
9064 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
7460295f MG |
9065 | need_lib_prefix=unknown |
9066 | hardcode_into_libs=no | |
9067 | ||
9068 | # when you set need_version to no, make sure it does not cause -set_version | |
9069 | # flags to be left without arguments | |
9070 | need_version=unknown | |
9071 | ||
9072 | case $host_os in | |
9073 | aix3*) | |
9074 | version_type=linux | |
9075 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9076 | shlibpath_var=LIBPATH | |
9077 | ||
9078 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9079 | soname_spec='${libname}${release}${shared_ext}$major' | |
9080 | ;; | |
9081 | ||
9082 | aix[4-9]*) | |
9083 | version_type=linux | |
9084 | need_lib_prefix=no | |
9085 | need_version=no | |
9086 | hardcode_into_libs=yes | |
9087 | if test "$host_cpu" = ia64; then | |
9088 | # AIX 5 supports IA64 | |
9089 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9090 | shlibpath_var=LD_LIBRARY_PATH | |
9091 | else | |
9092 | # With GCC up to 2.95.x, collect2 would create an import file | |
9093 | # for dependence libraries. The import file would start with | |
9094 | # the line `#! .'. This would cause the generated library to | |
9095 | # depend on `.', always an invalid library. This was fixed in | |
9096 | # development snapshots of GCC prior to 3.0. | |
9097 | case $host_os in | |
9098 | aix4 | aix4.[01] | aix4.[01].*) | |
9099 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9100 | echo ' yes ' | |
572ac014 | 9101 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
7460295f MG |
9102 | : |
9103 | else | |
9104 | can_build_shared=no | |
9105 | fi | |
9106 | ;; | |
9107 | esac | |
9108 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9109 | # soname into executable. Probably we can add versioning support to | |
9110 | # collect2, so additional links can be useful in future. | |
9111 | if test "$aix_use_runtimelinking" = yes; then | |
9112 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9113 | # instead of lib<name>.a to let people know that these are not | |
9114 | # typical AIX shared libraries. | |
9115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9116 | else | |
9117 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9118 | # and later when we are not doing run time linking. | |
9119 | library_names_spec='${libname}${release}.a $libname.a' | |
9120 | soname_spec='${libname}${release}${shared_ext}$major' | |
9121 | fi | |
9122 | shlibpath_var=LIBPATH | |
9123 | fi | |
9124 | ;; | |
9125 | ||
9126 | amigaos*) | |
572ac014 MG |
9127 | case $host_cpu in |
9128 | powerpc) | |
9129 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9130 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9132 | ;; | |
9133 | m68k) | |
9134 | library_names_spec='$libname.ixlibrary $libname.a' | |
9135 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9136 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' | |
9137 | ;; | |
9138 | esac | |
7460295f MG |
9139 | ;; |
9140 | ||
9141 | beos*) | |
9142 | library_names_spec='${libname}${shared_ext}' | |
9143 | dynamic_linker="$host_os ld.so" | |
9144 | shlibpath_var=LIBRARY_PATH | |
9145 | ;; | |
9146 | ||
9147 | bsdi[45]*) | |
9148 | version_type=linux | |
9149 | need_version=no | |
9150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9151 | soname_spec='${libname}${release}${shared_ext}$major' | |
9152 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9153 | shlibpath_var=LD_LIBRARY_PATH | |
9154 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9155 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9156 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9157 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9158 | # libtool to hard-code these into programs | |
9159 | ;; | |
9160 | ||
572ac014 | 9161 | cygwin* | mingw* | pw32* | cegcc*) |
7460295f MG |
9162 | version_type=windows |
9163 | shrext_cmds=".dll" | |
9164 | need_version=no | |
9165 | need_lib_prefix=no | |
9166 | ||
9167 | case $GCC,$host_os in | |
572ac014 | 9168 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
7460295f MG |
9169 | library_names_spec='$libname.dll.a' |
9170 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9171 | postinstall_cmds='base_file=`basename \${file}`~ | |
572ac014 | 9172 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
7460295f MG |
9173 | dldir=$destdir/`dirname \$dlpath`~ |
9174 | test -d \$dldir || mkdir -p \$dldir~ | |
9175 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
572ac014 MG |
9176 | chmod a+x \$dldir/$dlname~ |
9177 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9178 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9179 | fi' | |
7460295f MG |
9180 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9181 | dlpath=$dir/\$dldll~ | |
572ac014 | 9182 | $RM \$dlpath' |
7460295f MG |
9183 | shlibpath_overrides_runpath=yes |
9184 | ||
9185 | case $host_os in | |
9186 | cygwin*) | |
9187 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9188 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9189 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9190 | ;; | |
572ac014 | 9191 | mingw* | cegcc*) |
7460295f MG |
9192 | # MinGW DLLs use traditional 'lib' prefix |
9193 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
572ac014 MG |
9194 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9195 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
7460295f MG |
9196 | # It is most probably a Windows format PATH printed by |
9197 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9198 | # path with ; separators, and with drive letters. We can handle the | |
9199 | # drive letters (cygwin fileutils understands them), so leave them, | |
9200 | # especially as we might pass files found there to a mingw objdump, | |
9201 | # which wouldn't understand a cygwinified path. Ahh. | |
572ac014 | 9202 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7460295f | 9203 | else |
572ac014 | 9204 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7460295f MG |
9205 | fi |
9206 | ;; | |
9207 | pw32*) | |
9208 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9209 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9210 | ;; | |
9211 | esac | |
9212 | ;; | |
9213 | ||
9214 | *) | |
9215 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9216 | ;; | |
9217 | esac | |
9218 | dynamic_linker='Win32 ld.exe' | |
9219 | # FIXME: first we should search . and the directory the executable is in | |
9220 | shlibpath_var=PATH | |
9221 | ;; | |
9222 | ||
9223 | darwin* | rhapsody*) | |
9224 | dynamic_linker="$host_os dyld" | |
9225 | version_type=darwin | |
9226 | need_lib_prefix=no | |
9227 | need_version=no | |
572ac014 | 9228 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
7460295f MG |
9229 | soname_spec='${libname}${release}${major}$shared_ext' |
9230 | shlibpath_overrides_runpath=yes | |
9231 | shlibpath_var=DYLD_LIBRARY_PATH | |
9232 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9233 | ||
572ac014 | 9234 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
7460295f MG |
9235 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9236 | ;; | |
9237 | ||
9238 | dgux*) | |
9239 | version_type=linux | |
9240 | need_lib_prefix=no | |
9241 | need_version=no | |
9242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9243 | soname_spec='${libname}${release}${shared_ext}$major' | |
9244 | shlibpath_var=LD_LIBRARY_PATH | |
9245 | ;; | |
9246 | ||
9247 | freebsd1*) | |
9248 | dynamic_linker=no | |
9249 | ;; | |
9250 | ||
9251 | freebsd* | dragonfly*) | |
9252 | # DragonFly does not have aout. When/if they implement a new | |
9253 | # versioning mechanism, adjust this. | |
9254 | if test -x /usr/bin/objformat; then | |
9255 | objformat=`/usr/bin/objformat` | |
9256 | else | |
9257 | case $host_os in | |
9258 | freebsd[123]*) objformat=aout ;; | |
9259 | *) objformat=elf ;; | |
9260 | esac | |
9261 | fi | |
9262 | version_type=freebsd-$objformat | |
9263 | case $version_type in | |
9264 | freebsd-elf*) | |
9265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9266 | need_version=no | |
9267 | need_lib_prefix=no | |
9268 | ;; | |
9269 | freebsd-*) | |
9270 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9271 | need_version=yes | |
9272 | ;; | |
9273 | esac | |
9274 | shlibpath_var=LD_LIBRARY_PATH | |
9275 | case $host_os in | |
9276 | freebsd2*) | |
9277 | shlibpath_overrides_runpath=yes | |
9278 | ;; | |
9279 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9280 | shlibpath_overrides_runpath=yes | |
9281 | hardcode_into_libs=yes | |
9282 | ;; | |
9283 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9284 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9285 | shlibpath_overrides_runpath=no | |
9286 | hardcode_into_libs=yes | |
9287 | ;; | |
9288 | *) # from 4.6 on, and DragonFly | |
9289 | shlibpath_overrides_runpath=yes | |
9290 | hardcode_into_libs=yes | |
9291 | ;; | |
9292 | esac | |
9293 | ;; | |
9294 | ||
9295 | gnu*) | |
9296 | version_type=linux | |
9297 | need_lib_prefix=no | |
9298 | need_version=no | |
9299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9300 | soname_spec='${libname}${release}${shared_ext}$major' | |
9301 | shlibpath_var=LD_LIBRARY_PATH | |
9302 | hardcode_into_libs=yes | |
9303 | ;; | |
9304 | ||
9305 | hpux9* | hpux10* | hpux11*) | |
9306 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9307 | # link against other versions. | |
9308 | version_type=sunos | |
9309 | need_lib_prefix=no | |
9310 | need_version=no | |
9311 | case $host_cpu in | |
9312 | ia64*) | |
9313 | shrext_cmds='.so' | |
9314 | hardcode_into_libs=yes | |
9315 | dynamic_linker="$host_os dld.so" | |
9316 | shlibpath_var=LD_LIBRARY_PATH | |
9317 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9319 | soname_spec='${libname}${release}${shared_ext}$major' | |
9320 | if test "X$HPUX_IA64_MODE" = X32; then | |
9321 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9322 | else | |
9323 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9324 | fi | |
9325 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9326 | ;; | |
572ac014 | 9327 | hppa*64*) |
7460295f | 9328 | shrext_cmds='.sl' |
572ac014 | 9329 | hardcode_into_libs=yes |
7460295f | 9330 | dynamic_linker="$host_os dld.sl" |
572ac014 MG |
9331 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
9332 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
7460295f MG |
9333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9334 | soname_spec='${libname}${release}${shared_ext}$major' | |
572ac014 MG |
9335 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
9336 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7460295f | 9337 | ;; |
572ac014 MG |
9338 | *) |
9339 | shrext_cmds='.sl' | |
9340 | dynamic_linker="$host_os dld.sl" | |
9341 | shlibpath_var=SHLIB_PATH | |
9342 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9344 | soname_spec='${libname}${release}${shared_ext}$major' | |
9345 | ;; | |
9346 | esac | |
9347 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
7460295f MG |
9348 | postinstall_cmds='chmod 555 $lib' |
9349 | ;; | |
9350 | ||
9351 | interix[3-9]*) | |
9352 | version_type=linux | |
9353 | need_lib_prefix=no | |
9354 | need_version=no | |
9355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9356 | soname_spec='${libname}${release}${shared_ext}$major' | |
9357 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9358 | shlibpath_var=LD_LIBRARY_PATH | |
9359 | shlibpath_overrides_runpath=no | |
9360 | hardcode_into_libs=yes | |
9361 | ;; | |
9362 | ||
9363 | irix5* | irix6* | nonstopux*) | |
9364 | case $host_os in | |
9365 | nonstopux*) version_type=nonstopux ;; | |
9366 | *) | |
9367 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9368 | version_type=linux | |
9369 | else | |
9370 | version_type=irix | |
9371 | fi ;; | |
9372 | esac | |
9373 | need_lib_prefix=no | |
9374 | need_version=no | |
9375 | soname_spec='${libname}${release}${shared_ext}$major' | |
9376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9377 | case $host_os in | |
9378 | irix5* | nonstopux*) | |
9379 | libsuff= shlibsuff= | |
9380 | ;; | |
9381 | *) | |
9382 | case $LD in # libtool.m4 will add one of these switches to LD | |
9383 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9384 | libsuff= shlibsuff= libmagic=32-bit;; | |
9385 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9386 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9387 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9388 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9389 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9390 | esac | |
9391 | ;; | |
9392 | esac | |
9393 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9394 | shlibpath_overrides_runpath=no | |
9395 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9396 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9397 | hardcode_into_libs=yes | |
9398 | ;; | |
9399 | ||
9400 | # No shared lib support for Linux oldld, aout, or coff. | |
9401 | linux*oldld* | linux*aout* | linux*coff*) | |
9402 | dynamic_linker=no | |
9403 | ;; | |
9404 | ||
9405 | # This must be Linux ELF. | |
9406 | linux* | k*bsd*-gnu) | |
9407 | version_type=linux | |
9408 | need_lib_prefix=no | |
9409 | need_version=no | |
9410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9411 | soname_spec='${libname}${release}${shared_ext}$major' | |
9412 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9413 | shlibpath_var=LD_LIBRARY_PATH | |
9414 | shlibpath_overrides_runpath=no | |
572ac014 MG |
9415 | # Some binutils ld are patched to set DT_RUNPATH |
9416 | save_LDFLAGS=$LDFLAGS | |
9417 | save_libdir=$libdir | |
9418 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9419 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
a0673b07 | 9420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
9421 | /* end confdefs.h. */ |
9422 | ||
9423 | int | |
9424 | main () | |
9425 | { | |
9426 | ||
9427 | ; | |
9428 | return 0; | |
9429 | } | |
9430 | _ACEOF | |
a0673b07 MG |
9431 | if ac_fn_c_try_link "$LINENO"; then : |
9432 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
572ac014 MG |
9433 | shlibpath_overrides_runpath=yes |
9434 | fi | |
572ac014 | 9435 | fi |
a0673b07 MG |
9436 | rm -f core conftest.err conftest.$ac_objext \ |
9437 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 MG |
9438 | LDFLAGS=$save_LDFLAGS |
9439 | libdir=$save_libdir | |
9440 | ||
7460295f MG |
9441 | # This implies no fast_install, which is unacceptable. |
9442 | # Some rework will be needed to allow for fast_install | |
9443 | # before this can be enabled. | |
9444 | hardcode_into_libs=yes | |
9445 | ||
9446 | # Append ld.so.conf contents to the search path | |
9447 | if test -f /etc/ld.so.conf; then | |
572ac014 | 9448 | 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;/^$/d' | tr '\n' ' '` |
7460295f MG |
9449 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
9450 | fi | |
9451 | ||
9452 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9453 | # powerpc, because MkLinux only supported shared libraries with the | |
9454 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9455 | # most powerpc-linux boxes support dynamic linking these days and | |
9456 | # people can always --disable-shared, the test was removed, and we | |
9457 | # assume the GNU/Linux dynamic linker is in use. | |
9458 | dynamic_linker='GNU/Linux ld.so' | |
9459 | ;; | |
9460 | ||
9461 | netbsdelf*-gnu) | |
9462 | version_type=linux | |
9463 | need_lib_prefix=no | |
9464 | need_version=no | |
9465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9466 | soname_spec='${libname}${release}${shared_ext}$major' | |
9467 | shlibpath_var=LD_LIBRARY_PATH | |
9468 | shlibpath_overrides_runpath=no | |
9469 | hardcode_into_libs=yes | |
9470 | dynamic_linker='NetBSD ld.elf_so' | |
9471 | ;; | |
9472 | ||
9473 | netbsd*) | |
9474 | version_type=sunos | |
9475 | need_lib_prefix=no | |
9476 | need_version=no | |
572ac014 | 9477 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
7460295f MG |
9478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9479 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9480 | dynamic_linker='NetBSD (a.out) ld.so' | |
9481 | else | |
9482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9483 | soname_spec='${libname}${release}${shared_ext}$major' | |
9484 | dynamic_linker='NetBSD ld.elf_so' | |
9485 | fi | |
9486 | shlibpath_var=LD_LIBRARY_PATH | |
9487 | shlibpath_overrides_runpath=yes | |
9488 | hardcode_into_libs=yes | |
9489 | ;; | |
9490 | ||
9491 | newsos6) | |
9492 | version_type=linux | |
9493 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9494 | shlibpath_var=LD_LIBRARY_PATH | |
9495 | shlibpath_overrides_runpath=yes | |
9496 | ;; | |
9497 | ||
572ac014 MG |
9498 | *nto* | *qnx*) |
9499 | version_type=qnx | |
7460295f MG |
9500 | need_lib_prefix=no |
9501 | need_version=no | |
9502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9503 | soname_spec='${libname}${release}${shared_ext}$major' | |
9504 | shlibpath_var=LD_LIBRARY_PATH | |
572ac014 MG |
9505 | shlibpath_overrides_runpath=no |
9506 | hardcode_into_libs=yes | |
9507 | dynamic_linker='ldqnx.so' | |
7460295f MG |
9508 | ;; |
9509 | ||
9510 | openbsd*) | |
9511 | version_type=sunos | |
9512 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9513 | need_lib_prefix=no | |
9514 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9515 | case $host_os in | |
572ac014 MG |
9516 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9517 | *) need_version=no ;; | |
7460295f MG |
9518 | esac |
9519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9520 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9521 | shlibpath_var=LD_LIBRARY_PATH | |
572ac014 | 9522 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7460295f MG |
9523 | case $host_os in |
9524 | openbsd2.[89] | openbsd2.[89].*) | |
9525 | shlibpath_overrides_runpath=no | |
9526 | ;; | |
9527 | *) | |
9528 | shlibpath_overrides_runpath=yes | |
9529 | ;; | |
9530 | esac | |
9531 | else | |
9532 | shlibpath_overrides_runpath=yes | |
9533 | fi | |
9534 | ;; | |
9535 | ||
9536 | os2*) | |
9537 | libname_spec='$name' | |
9538 | shrext_cmds=".dll" | |
9539 | need_lib_prefix=no | |
9540 | library_names_spec='$libname${shared_ext} $libname.a' | |
9541 | dynamic_linker='OS/2 ld.exe' | |
9542 | shlibpath_var=LIBPATH | |
9543 | ;; | |
9544 | ||
9545 | osf3* | osf4* | osf5*) | |
9546 | version_type=osf | |
9547 | need_lib_prefix=no | |
9548 | need_version=no | |
9549 | soname_spec='${libname}${release}${shared_ext}$major' | |
9550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9551 | shlibpath_var=LD_LIBRARY_PATH | |
9552 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9553 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9554 | ;; | |
9555 | ||
9556 | rdos*) | |
9557 | dynamic_linker=no | |
9558 | ;; | |
9559 | ||
9560 | solaris*) | |
9561 | version_type=linux | |
9562 | need_lib_prefix=no | |
9563 | need_version=no | |
9564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9565 | soname_spec='${libname}${release}${shared_ext}$major' | |
9566 | shlibpath_var=LD_LIBRARY_PATH | |
9567 | shlibpath_overrides_runpath=yes | |
9568 | hardcode_into_libs=yes | |
9569 | # ldd complains unless libraries are executable | |
9570 | postinstall_cmds='chmod +x $lib' | |
9571 | ;; | |
9572 | ||
9573 | sunos4*) | |
9574 | version_type=sunos | |
9575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9576 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9577 | shlibpath_var=LD_LIBRARY_PATH | |
9578 | shlibpath_overrides_runpath=yes | |
9579 | if test "$with_gnu_ld" = yes; then | |
9580 | need_lib_prefix=no | |
9581 | fi | |
9582 | need_version=yes | |
9583 | ;; | |
9584 | ||
9585 | sysv4 | sysv4.3*) | |
9586 | version_type=linux | |
9587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9588 | soname_spec='${libname}${release}${shared_ext}$major' | |
9589 | shlibpath_var=LD_LIBRARY_PATH | |
9590 | case $host_vendor in | |
9591 | sni) | |
9592 | shlibpath_overrides_runpath=no | |
9593 | need_lib_prefix=no | |
7460295f MG |
9594 | runpath_var=LD_RUN_PATH |
9595 | ;; | |
9596 | siemens) | |
9597 | need_lib_prefix=no | |
9598 | ;; | |
9599 | motorola) | |
9600 | need_lib_prefix=no | |
9601 | need_version=no | |
9602 | shlibpath_overrides_runpath=no | |
9603 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9604 | ;; | |
9605 | esac | |
9606 | ;; | |
9607 | ||
9608 | sysv4*MP*) | |
9609 | if test -d /usr/nec ;then | |
9610 | version_type=linux | |
9611 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9612 | soname_spec='$libname${shared_ext}.$major' | |
9613 | shlibpath_var=LD_LIBRARY_PATH | |
9614 | fi | |
9615 | ;; | |
9616 | ||
9617 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9618 | version_type=freebsd-elf | |
9619 | need_lib_prefix=no | |
9620 | need_version=no | |
9621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9622 | soname_spec='${libname}${release}${shared_ext}$major' | |
9623 | shlibpath_var=LD_LIBRARY_PATH | |
572ac014 | 9624 | shlibpath_overrides_runpath=yes |
7460295f MG |
9625 | hardcode_into_libs=yes |
9626 | if test "$with_gnu_ld" = yes; then | |
9627 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
7460295f MG |
9628 | else |
9629 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
7460295f MG |
9630 | case $host_os in |
9631 | sco3.2v5*) | |
9632 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9633 | ;; | |
9634 | esac | |
9635 | fi | |
9636 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9637 | ;; | |
9638 | ||
572ac014 MG |
9639 | tpf*) |
9640 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9641 | version_type=linux | |
9642 | need_lib_prefix=no | |
9643 | need_version=no | |
9644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9645 | shlibpath_var=LD_LIBRARY_PATH | |
9646 | shlibpath_overrides_runpath=no | |
9647 | hardcode_into_libs=yes | |
9648 | ;; | |
9649 | ||
7460295f MG |
9650 | uts4*) |
9651 | version_type=linux | |
9652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9653 | soname_spec='${libname}${release}${shared_ext}$major' | |
9654 | shlibpath_var=LD_LIBRARY_PATH | |
9655 | ;; | |
9656 | ||
9657 | *) | |
9658 | dynamic_linker=no | |
9659 | ;; | |
9660 | esac | |
a0673b07 | 9661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
33aa8fe1 | 9662 | $as_echo "$dynamic_linker" >&6; } |
7460295f MG |
9663 | test "$dynamic_linker" = no && can_build_shared=no |
9664 | ||
7460295f MG |
9665 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9666 | if test "$GCC" = yes; then | |
9667 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9668 | fi | |
9669 | ||
572ac014 MG |
9670 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
9671 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
7460295f | 9672 | fi |
572ac014 MG |
9673 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
9674 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
7460295f MG |
9675 | fi |
9676 | ||
9677 | ||
7460295f | 9678 | |
7460295f | 9679 | |
7460295f | 9680 | |
7460295f | 9681 | |
7460295f | 9682 | |
7460295f | 9683 | |
7460295f | 9684 | |
7460295f | 9685 | |
7460295f | 9686 | |
7460295f | 9687 | |
7460295f | 9688 | |
7460295f | 9689 | |
7460295f | 9690 | |
7460295f | 9691 | |
7460295f | 9692 | |
7460295f | 9693 | |
7460295f | 9694 | |
7460295f | 9695 | |
7460295f | 9696 | |
7460295f | 9697 | |
7460295f | 9698 | |
7460295f | 9699 | |
7460295f | 9700 | |
7460295f | 9701 | |
7460295f | 9702 | |
7460295f | 9703 | |
7460295f | 9704 | |
7460295f | 9705 | |
7460295f | 9706 | |
7460295f | 9707 | |
7460295f | 9708 | |
7460295f | 9709 | |
7460295f | 9710 | |
7460295f | 9711 | |
7460295f | 9712 | |
7460295f | 9713 | |
7460295f | 9714 | |
7460295f | 9715 | |
7460295f | 9716 | |
7460295f | 9717 | |
7460295f | 9718 | |
7460295f | 9719 | |
7460295f | 9720 | |
7460295f | 9721 | |
7460295f | 9722 | |
7460295f | 9723 | |
7460295f | 9724 | |
7460295f | 9725 | |
7460295f | 9726 | |
7460295f | 9727 | |
7460295f | 9728 | |
7460295f | 9729 | |
7460295f | 9730 | |
7460295f | 9731 | |
7460295f | 9732 | |
7460295f | 9733 | |
7460295f | 9734 | |
7460295f | 9735 | |
7460295f | 9736 | |
7460295f | 9737 | |
7460295f | 9738 | |
7460295f | 9739 | |
7460295f | 9740 | |
7460295f | 9741 | |
7460295f | 9742 | |
7460295f | 9743 | |
7460295f | 9744 | |
7460295f | 9745 | |
7460295f | 9746 | |
7460295f | 9747 | |
7460295f | 9748 | |
7460295f | 9749 | |
7460295f | 9750 | |
7460295f | 9751 | |
7460295f | 9752 | |
7460295f | 9753 | |
7460295f | 9754 | |
7460295f | 9755 | |
7460295f | 9756 | |
7460295f | 9757 | |
7460295f | 9758 | |
7460295f | 9759 | |
7460295f | 9760 | |
7460295f | 9761 | |
7460295f | 9762 | |
a0673b07 | 9763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
33aa8fe1 | 9764 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
572ac014 MG |
9765 | hardcode_action= |
9766 | if test -n "$hardcode_libdir_flag_spec" || | |
9767 | test -n "$runpath_var" || | |
9768 | test "X$hardcode_automatic" = "Xyes" ; then | |
7460295f | 9769 | |
572ac014 MG |
9770 | # We can hardcode non-existent directories. |
9771 | if test "$hardcode_direct" != no && | |
9772 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9773 | # have to relink, otherwise we might link with an installed library | |
9774 | # when we should be linking with a yet-to-be-installed one | |
9775 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9776 | test "$hardcode_minus_L" != no; then | |
9777 | # Linking always hardcodes the temporary library directory. | |
9778 | hardcode_action=relink | |
9779 | else | |
9780 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9781 | hardcode_action=immediate | |
9782 | fi | |
9783 | else | |
9784 | # We cannot hardcode anything, or else we can only hardcode existing | |
9785 | # directories. | |
9786 | hardcode_action=unsupported | |
9787 | fi | |
a0673b07 | 9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
33aa8fe1 | 9789 | $as_echo "$hardcode_action" >&6; } |
7460295f | 9790 | |
572ac014 MG |
9791 | if test "$hardcode_action" = relink || |
9792 | test "$inherit_rpath" = yes; then | |
9793 | # Fast installation is not supported | |
9794 | enable_fast_install=no | |
9795 | elif test "$shlibpath_overrides_runpath" = yes || | |
9796 | test "$enable_shared" = no; then | |
9797 | # Fast installation is not necessary | |
9798 | enable_fast_install=needless | |
9799 | fi | |
7460295f | 9800 | |
7460295f | 9801 | |
7460295f | 9802 | |
7460295f | 9803 | |
7460295f | 9804 | |
7460295f | 9805 | |
572ac014 MG |
9806 | if test "x$enable_dlopen" != xyes; then |
9807 | enable_dlopen=unknown | |
9808 | enable_dlopen_self=unknown | |
9809 | enable_dlopen_self_static=unknown | |
9810 | else | |
9811 | lt_cv_dlopen=no | |
9812 | lt_cv_dlopen_libs= | |
7460295f | 9813 | |
572ac014 MG |
9814 | case $host_os in |
9815 | beos*) | |
9816 | lt_cv_dlopen="load_add_on" | |
9817 | lt_cv_dlopen_libs= | |
9818 | lt_cv_dlopen_self=yes | |
9819 | ;; | |
7460295f | 9820 | |
572ac014 MG |
9821 | mingw* | pw32* | cegcc*) |
9822 | lt_cv_dlopen="LoadLibrary" | |
9823 | lt_cv_dlopen_libs= | |
9824 | ;; | |
7460295f | 9825 | |
572ac014 MG |
9826 | cygwin*) |
9827 | lt_cv_dlopen="dlopen" | |
9828 | lt_cv_dlopen_libs= | |
9829 | ;; | |
7460295f | 9830 | |
572ac014 MG |
9831 | darwin*) |
9832 | # if libdl is installed we need to link against it | |
a0673b07 | 9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
33aa8fe1 | 9834 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
a0673b07 | 9835 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
33aa8fe1 | 9836 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
9837 | else |
9838 | ac_check_lib_save_LIBS=$LIBS | |
9839 | LIBS="-ldl $LIBS" | |
a0673b07 | 9840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 9841 | /* end confdefs.h. */ |
7460295f | 9842 | |
572ac014 MG |
9843 | /* Override any GCC internal prototype to avoid an error. |
9844 | Use char because int might match the return type of a GCC | |
9845 | builtin and then its argument prototype would still apply. */ | |
9846 | #ifdef __cplusplus | |
9847 | extern "C" | |
9848 | #endif | |
9849 | char dlopen (); | |
9850 | int | |
9851 | main () | |
9852 | { | |
9853 | return dlopen (); | |
9854 | ; | |
9855 | return 0; | |
9856 | } | |
9857 | _ACEOF | |
a0673b07 | 9858 | if ac_fn_c_try_link "$LINENO"; then : |
572ac014 MG |
9859 | ac_cv_lib_dl_dlopen=yes |
9860 | else | |
a0673b07 | 9861 | ac_cv_lib_dl_dlopen=no |
572ac014 | 9862 | fi |
a0673b07 MG |
9863 | rm -f core conftest.err conftest.$ac_objext \ |
9864 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 MG |
9865 | LIBS=$ac_check_lib_save_LIBS |
9866 | fi | |
a0673b07 | 9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
33aa8fe1 | 9868 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
a0673b07 | 9869 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
572ac014 MG |
9870 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9871 | else | |
7460295f | 9872 | |
572ac014 MG |
9873 | lt_cv_dlopen="dyld" |
9874 | lt_cv_dlopen_libs= | |
9875 | lt_cv_dlopen_self=yes | |
7460295f | 9876 | |
572ac014 | 9877 | fi |
7460295f | 9878 | |
572ac014 | 9879 | ;; |
7460295f | 9880 | |
572ac014 | 9881 | *) |
a0673b07 MG |
9882 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
9883 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
572ac014 MG |
9884 | lt_cv_dlopen="shl_load" |
9885 | else | |
a0673b07 | 9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
33aa8fe1 | 9887 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
a0673b07 | 9888 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
33aa8fe1 | 9889 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
9890 | else |
9891 | ac_check_lib_save_LIBS=$LIBS | |
9892 | LIBS="-ldld $LIBS" | |
a0673b07 | 9893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 9894 | /* end confdefs.h. */ |
7460295f | 9895 | |
572ac014 MG |
9896 | /* Override any GCC internal prototype to avoid an error. |
9897 | Use char because int might match the return type of a GCC | |
9898 | builtin and then its argument prototype would still apply. */ | |
9899 | #ifdef __cplusplus | |
9900 | extern "C" | |
9901 | #endif | |
9902 | char shl_load (); | |
9903 | int | |
9904 | main () | |
9905 | { | |
9906 | return shl_load (); | |
9907 | ; | |
9908 | return 0; | |
9909 | } | |
9910 | _ACEOF | |
a0673b07 | 9911 | if ac_fn_c_try_link "$LINENO"; then : |
572ac014 MG |
9912 | ac_cv_lib_dld_shl_load=yes |
9913 | else | |
a0673b07 | 9914 | ac_cv_lib_dld_shl_load=no |
572ac014 | 9915 | fi |
a0673b07 MG |
9916 | rm -f core conftest.err conftest.$ac_objext \ |
9917 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 MG |
9918 | LIBS=$ac_check_lib_save_LIBS |
9919 | fi | |
a0673b07 | 9920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
33aa8fe1 | 9921 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
a0673b07 | 9922 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
572ac014 MG |
9923 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
9924 | else | |
a0673b07 MG |
9925 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
9926 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
572ac014 MG |
9927 | lt_cv_dlopen="dlopen" |
9928 | else | |
a0673b07 | 9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
33aa8fe1 | 9930 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
a0673b07 | 9931 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
33aa8fe1 | 9932 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
9933 | else |
9934 | ac_check_lib_save_LIBS=$LIBS | |
9935 | LIBS="-ldl $LIBS" | |
a0673b07 | 9936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 9937 | /* end confdefs.h. */ |
7460295f | 9938 | |
572ac014 MG |
9939 | /* Override any GCC internal prototype to avoid an error. |
9940 | Use char because int might match the return type of a GCC | |
9941 | builtin and then its argument prototype would still apply. */ | |
9942 | #ifdef __cplusplus | |
9943 | extern "C" | |
9944 | #endif | |
9945 | char dlopen (); | |
9946 | int | |
9947 | main () | |
9948 | { | |
9949 | return dlopen (); | |
9950 | ; | |
9951 | return 0; | |
9952 | } | |
9953 | _ACEOF | |
a0673b07 | 9954 | if ac_fn_c_try_link "$LINENO"; then : |
572ac014 MG |
9955 | ac_cv_lib_dl_dlopen=yes |
9956 | else | |
a0673b07 | 9957 | ac_cv_lib_dl_dlopen=no |
572ac014 | 9958 | fi |
a0673b07 MG |
9959 | rm -f core conftest.err conftest.$ac_objext \ |
9960 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 MG |
9961 | LIBS=$ac_check_lib_save_LIBS |
9962 | fi | |
a0673b07 | 9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
33aa8fe1 | 9964 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
a0673b07 | 9965 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
572ac014 MG |
9966 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9967 | else | |
a0673b07 | 9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
33aa8fe1 | 9969 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
a0673b07 | 9970 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
33aa8fe1 | 9971 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
9972 | else |
9973 | ac_check_lib_save_LIBS=$LIBS | |
9974 | LIBS="-lsvld $LIBS" | |
a0673b07 | 9975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 9976 | /* end confdefs.h. */ |
7460295f | 9977 | |
572ac014 MG |
9978 | /* Override any GCC internal prototype to avoid an error. |
9979 | Use char because int might match the return type of a GCC | |
9980 | builtin and then its argument prototype would still apply. */ | |
9981 | #ifdef __cplusplus | |
9982 | extern "C" | |
9983 | #endif | |
9984 | char dlopen (); | |
9985 | int | |
9986 | main () | |
9987 | { | |
9988 | return dlopen (); | |
9989 | ; | |
9990 | return 0; | |
9991 | } | |
9992 | _ACEOF | |
a0673b07 | 9993 | if ac_fn_c_try_link "$LINENO"; then : |
572ac014 MG |
9994 | ac_cv_lib_svld_dlopen=yes |
9995 | else | |
a0673b07 | 9996 | ac_cv_lib_svld_dlopen=no |
572ac014 | 9997 | fi |
a0673b07 MG |
9998 | rm -f core conftest.err conftest.$ac_objext \ |
9999 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 | 10000 | LIBS=$ac_check_lib_save_LIBS |
7460295f | 10001 | fi |
a0673b07 | 10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
33aa8fe1 | 10003 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
a0673b07 | 10004 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
572ac014 MG |
10005 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10006 | else | |
a0673b07 | 10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
33aa8fe1 | 10008 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
a0673b07 | 10009 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
33aa8fe1 | 10010 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
10011 | else |
10012 | ac_check_lib_save_LIBS=$LIBS | |
10013 | LIBS="-ldld $LIBS" | |
a0673b07 | 10014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 10015 | /* end confdefs.h. */ |
7460295f | 10016 | |
572ac014 MG |
10017 | /* Override any GCC internal prototype to avoid an error. |
10018 | Use char because int might match the return type of a GCC | |
10019 | builtin and then its argument prototype would still apply. */ | |
10020 | #ifdef __cplusplus | |
10021 | extern "C" | |
10022 | #endif | |
10023 | char dld_link (); | |
10024 | int | |
10025 | main () | |
10026 | { | |
10027 | return dld_link (); | |
10028 | ; | |
10029 | return 0; | |
10030 | } | |
10031 | _ACEOF | |
a0673b07 | 10032 | if ac_fn_c_try_link "$LINENO"; then : |
572ac014 MG |
10033 | ac_cv_lib_dld_dld_link=yes |
10034 | else | |
a0673b07 | 10035 | ac_cv_lib_dld_dld_link=no |
572ac014 | 10036 | fi |
a0673b07 MG |
10037 | rm -f core conftest.err conftest.$ac_objext \ |
10038 | conftest$ac_exeext conftest.$ac_ext | |
572ac014 MG |
10039 | LIBS=$ac_check_lib_save_LIBS |
10040 | fi | |
a0673b07 | 10041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
33aa8fe1 | 10042 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
a0673b07 | 10043 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
572ac014 MG |
10044 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
10045 | fi | |
7460295f | 10046 | |
7460295f | 10047 | |
572ac014 | 10048 | fi |
7460295f | 10049 | |
7460295f | 10050 | |
572ac014 | 10051 | fi |
7460295f | 10052 | |
7460295f | 10053 | |
572ac014 | 10054 | fi |
7460295f | 10055 | |
7460295f | 10056 | |
572ac014 | 10057 | fi |
7460295f | 10058 | |
7460295f | 10059 | |
572ac014 | 10060 | fi |
7460295f | 10061 | |
572ac014 | 10062 | ;; |
7460295f | 10063 | esac |
7460295f | 10064 | |
572ac014 MG |
10065 | if test "x$lt_cv_dlopen" != xno; then |
10066 | enable_dlopen=yes | |
7460295f | 10067 | else |
572ac014 | 10068 | enable_dlopen=no |
7460295f | 10069 | fi |
7460295f | 10070 | |
572ac014 MG |
10071 | case $lt_cv_dlopen in |
10072 | dlopen) | |
10073 | save_CPPFLAGS="$CPPFLAGS" | |
10074 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10075 | ||
10076 | save_LDFLAGS="$LDFLAGS" | |
10077 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
7460295f | 10078 | |
572ac014 MG |
10079 | save_LIBS="$LIBS" |
10080 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
7460295f | 10081 | |
a0673b07 | 10082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
33aa8fe1 | 10083 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
a0673b07 | 10084 | if test "${lt_cv_dlopen_self+set}" = set; then : |
33aa8fe1 | 10085 | $as_echo_n "(cached) " >&6 |
7460295f | 10086 | else |
572ac014 MG |
10087 | if test "$cross_compiling" = yes; then : |
10088 | lt_cv_dlopen_self=cross | |
7460295f | 10089 | else |
572ac014 MG |
10090 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10091 | lt_status=$lt_dlunknown | |
10092 | cat > conftest.$ac_ext <<_LT_EOF | |
db50e572 | 10093 | #line 10093 "configure" |
572ac014 | 10094 | #include "confdefs.h" |
7460295f | 10095 | |
572ac014 MG |
10096 | #if HAVE_DLFCN_H |
10097 | #include <dlfcn.h> | |
10098 | #endif | |
7460295f | 10099 | |
572ac014 | 10100 | #include <stdio.h> |
7460295f | 10101 | |
572ac014 MG |
10102 | #ifdef RTLD_GLOBAL |
10103 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10104 | #else | |
10105 | # ifdef DL_GLOBAL | |
10106 | # define LT_DLGLOBAL DL_GLOBAL | |
10107 | # else | |
10108 | # define LT_DLGLOBAL 0 | |
10109 | # endif | |
10110 | #endif | |
7460295f | 10111 | |
572ac014 MG |
10112 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10113 | find out it does not work in some platform. */ | |
10114 | #ifndef LT_DLLAZY_OR_NOW | |
10115 | # ifdef RTLD_LAZY | |
10116 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10117 | # else | |
10118 | # ifdef DL_LAZY | |
10119 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10120 | # else | |
10121 | # ifdef RTLD_NOW | |
10122 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10123 | # else | |
10124 | # ifdef DL_NOW | |
10125 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10126 | # else | |
10127 | # define LT_DLLAZY_OR_NOW 0 | |
10128 | # endif | |
10129 | # endif | |
10130 | # endif | |
10131 | # endif | |
10132 | #endif | |
7460295f | 10133 | |
572ac014 MG |
10134 | void fnord() { int i=42;} |
10135 | int main () | |
10136 | { | |
10137 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10138 | int status = $lt_dlunknown; | |
7460295f | 10139 | |
572ac014 MG |
10140 | if (self) |
10141 | { | |
10142 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10143 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10144 | /* dlclose (self); */ | |
10145 | } | |
10146 | else | |
10147 | puts (dlerror ()); | |
7460295f | 10148 | |
572ac014 MG |
10149 | return status; |
10150 | } | |
10151 | _LT_EOF | |
a0673b07 | 10152 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
572ac014 MG |
10153 | (eval $ac_link) 2>&5 |
10154 | ac_status=$? | |
a0673b07 MG |
10155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10156 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
572ac014 MG |
10157 | (./conftest; exit; ) >&5 2>/dev/null |
10158 | lt_status=$? | |
10159 | case x$lt_status in | |
10160 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10161 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10162 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
7460295f | 10163 | esac |
572ac014 MG |
10164 | else : |
10165 | # compilation failed | |
10166 | lt_cv_dlopen_self=no | |
10167 | fi | |
10168 | fi | |
10169 | rm -fr conftest* | |
7460295f | 10170 | |
7460295f | 10171 | |
572ac014 | 10172 | fi |
a0673b07 | 10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
33aa8fe1 | 10174 | $as_echo "$lt_cv_dlopen_self" >&6; } |
7460295f | 10175 | |
572ac014 MG |
10176 | if test "x$lt_cv_dlopen_self" = xyes; then |
10177 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
a0673b07 | 10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
33aa8fe1 | 10179 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
a0673b07 | 10180 | if test "${lt_cv_dlopen_self_static+set}" = set; then : |
33aa8fe1 | 10181 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
10182 | else |
10183 | if test "$cross_compiling" = yes; then : | |
10184 | lt_cv_dlopen_self_static=cross | |
10185 | else | |
10186 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10187 | lt_status=$lt_dlunknown | |
10188 | cat > conftest.$ac_ext <<_LT_EOF | |
db50e572 | 10189 | #line 10189 "configure" |
572ac014 | 10190 | #include "confdefs.h" |
7460295f | 10191 | |
572ac014 MG |
10192 | #if HAVE_DLFCN_H |
10193 | #include <dlfcn.h> | |
10194 | #endif | |
7460295f | 10195 | |
572ac014 | 10196 | #include <stdio.h> |
7460295f | 10197 | |
572ac014 MG |
10198 | #ifdef RTLD_GLOBAL |
10199 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10200 | #else | |
10201 | # ifdef DL_GLOBAL | |
10202 | # define LT_DLGLOBAL DL_GLOBAL | |
10203 | # else | |
10204 | # define LT_DLGLOBAL 0 | |
10205 | # endif | |
10206 | #endif | |
7460295f | 10207 | |
572ac014 MG |
10208 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10209 | find out it does not work in some platform. */ | |
10210 | #ifndef LT_DLLAZY_OR_NOW | |
10211 | # ifdef RTLD_LAZY | |
10212 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10213 | # else | |
10214 | # ifdef DL_LAZY | |
10215 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10216 | # else | |
10217 | # ifdef RTLD_NOW | |
10218 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10219 | # else | |
10220 | # ifdef DL_NOW | |
10221 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10222 | # else | |
10223 | # define LT_DLLAZY_OR_NOW 0 | |
10224 | # endif | |
10225 | # endif | |
10226 | # endif | |
10227 | # endif | |
10228 | #endif | |
7460295f | 10229 | |
572ac014 MG |
10230 | void fnord() { int i=42;} |
10231 | int main () | |
10232 | { | |
10233 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10234 | int status = $lt_dlunknown; | |
7460295f | 10235 | |
572ac014 MG |
10236 | if (self) |
10237 | { | |
10238 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10239 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10240 | /* dlclose (self); */ | |
10241 | } | |
10242 | else | |
10243 | puts (dlerror ()); | |
7460295f | 10244 | |
572ac014 MG |
10245 | return status; |
10246 | } | |
10247 | _LT_EOF | |
a0673b07 | 10248 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
572ac014 MG |
10249 | (eval $ac_link) 2>&5 |
10250 | ac_status=$? | |
a0673b07 MG |
10251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10252 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
572ac014 MG |
10253 | (./conftest; exit; ) >&5 2>/dev/null |
10254 | lt_status=$? | |
10255 | case x$lt_status in | |
10256 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10257 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10258 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10259 | esac | |
10260 | else : | |
10261 | # compilation failed | |
10262 | lt_cv_dlopen_self_static=no | |
10263 | fi | |
10264 | fi | |
10265 | rm -fr conftest* | |
7460295f | 10266 | |
7460295f | 10267 | |
572ac014 | 10268 | fi |
a0673b07 | 10269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
33aa8fe1 | 10270 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
572ac014 | 10271 | fi |
7460295f | 10272 | |
572ac014 MG |
10273 | CPPFLAGS="$save_CPPFLAGS" |
10274 | LDFLAGS="$save_LDFLAGS" | |
10275 | LIBS="$save_LIBS" | |
10276 | ;; | |
10277 | esac | |
7460295f | 10278 | |
572ac014 MG |
10279 | case $lt_cv_dlopen_self in |
10280 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10281 | *) enable_dlopen_self=unknown ;; | |
10282 | esac | |
7460295f | 10283 | |
572ac014 MG |
10284 | case $lt_cv_dlopen_self_static in |
10285 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10286 | *) enable_dlopen_self_static=unknown ;; | |
10287 | esac | |
10288 | fi | |
7460295f | 10289 | |
7460295f | 10290 | |
7460295f | 10291 | |
7460295f | 10292 | |
7460295f | 10293 | |
7460295f | 10294 | |
7460295f | 10295 | |
7460295f | 10296 | |
7460295f | 10297 | |
7460295f | 10298 | |
7460295f | 10299 | |
7460295f | 10300 | |
7460295f | 10301 | |
7460295f | 10302 | |
7460295f | 10303 | |
7460295f | 10304 | |
7460295f | 10305 | |
572ac014 MG |
10306 | striplib= |
10307 | old_striplib= | |
a0673b07 | 10308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
33aa8fe1 | 10309 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
572ac014 MG |
10310 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
10311 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10312 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
a0673b07 | 10313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33aa8fe1 | 10314 | $as_echo "yes" >&6; } |
572ac014 MG |
10315 | else |
10316 | # FIXME - insert some real tests, host_os isn't really good enough | |
10317 | case $host_os in | |
10318 | darwin*) | |
10319 | if test -n "$STRIP" ; then | |
10320 | striplib="$STRIP -x" | |
10321 | old_striplib="$STRIP -S" | |
a0673b07 | 10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33aa8fe1 | 10323 | $as_echo "yes" >&6; } |
572ac014 | 10324 | else |
a0673b07 | 10325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 10326 | $as_echo "no" >&6; } |
572ac014 MG |
10327 | fi |
10328 | ;; | |
10329 | *) | |
a0673b07 | 10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33aa8fe1 | 10331 | $as_echo "no" >&6; } |
572ac014 MG |
10332 | ;; |
10333 | esac | |
10334 | fi | |
10335 | ||
7460295f | 10336 | |
7460295f | 10337 | |
7460295f | 10338 | |
7460295f | 10339 | |
7460295f | 10340 | |
7460295f | 10341 | |
7460295f | 10342 | |
7460295f | 10343 | |
7460295f | 10344 | |
7460295f | 10345 | |
7460295f | 10346 | |
572ac014 | 10347 | # Report which library types will actually be built |
a0673b07 | 10348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
33aa8fe1 | 10349 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
a0673b07 | 10350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
33aa8fe1 | 10351 | $as_echo "$can_build_shared" >&6; } |
7460295f | 10352 | |
a0673b07 | 10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
33aa8fe1 | 10354 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
572ac014 | 10355 | test "$can_build_shared" = "no" && enable_shared=no |
7460295f | 10356 | |
572ac014 MG |
10357 | # On AIX, shared libraries and static libraries use the same namespace, and |
10358 | # are all built from PIC. | |
10359 | case $host_os in | |
10360 | aix3*) | |
10361 | test "$enable_shared" = yes && enable_static=no | |
10362 | if test -n "$RANLIB"; then | |
10363 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10364 | postinstall_cmds='$RANLIB $lib' | |
10365 | fi | |
10366 | ;; | |
7460295f | 10367 | |
572ac014 MG |
10368 | aix[4-9]*) |
10369 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10370 | test "$enable_shared" = yes && enable_static=no | |
10371 | fi | |
10372 | ;; | |
10373 | esac | |
a0673b07 | 10374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
33aa8fe1 | 10375 | $as_echo "$enable_shared" >&6; } |
7460295f | 10376 | |
a0673b07 | 10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
33aa8fe1 | 10378 | $as_echo_n "checking whether to build static libraries... " >&6; } |
572ac014 MG |
10379 | # Make sure either enable_shared or enable_static is yes. |
10380 | test "$enable_shared" = yes || enable_static=yes | |
a0673b07 | 10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
33aa8fe1 | 10382 | $as_echo "$enable_static" >&6; } |
7460295f | 10383 | |
7460295f | 10384 | |
7460295f | 10385 | |
7460295f | 10386 | |
572ac014 MG |
10387 | fi |
10388 | ac_ext=c | |
10389 | ac_cpp='$CPP $CPPFLAGS' | |
10390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7460295f | 10393 | |
572ac014 | 10394 | CC="$lt_save_CC" |
7460295f | 10395 | |
7460295f | 10396 | |
7460295f | 10397 | |
7460295f | 10398 | |
7460295f | 10399 | |
7460295f | 10400 | |
7460295f | 10401 | |
7460295f | 10402 | |
7460295f | 10403 | |
7460295f | 10404 | |
7460295f | 10405 | |
7460295f | 10406 | |
7460295f | 10407 | |
572ac014 | 10408 | ac_config_commands="$ac_config_commands libtool" |
7460295f | 10409 | |
7460295f | 10410 | |
7460295f | 10411 | |
7460295f | 10412 | |
572ac014 | 10413 | # Only expand once: |
7460295f | 10414 | |
7460295f | 10415 | |
7460295f | 10416 | |
a0673b07 | 10417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
33aa8fe1 | 10418 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
a0673b07 | 10419 | if test "${ac_cv_c_const+set}" = set; then : |
33aa8fe1 | 10420 | $as_echo_n "(cached) " >&6 |
572ac014 | 10421 | else |
a0673b07 | 10422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 10423 | /* end confdefs.h. */ |
7460295f | 10424 | |
572ac014 MG |
10425 | int |
10426 | main () | |
10427 | { | |
10428 | /* FIXME: Include the comments suggested by Paul. */ | |
10429 | #ifndef __cplusplus | |
10430 | /* Ultrix mips cc rejects this. */ | |
10431 | typedef int charset[2]; | |
10432 | const charset cs; | |
10433 | /* SunOS 4.1.1 cc rejects this. */ | |
10434 | char const *const *pcpcc; | |
10435 | char **ppc; | |
10436 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10437 | struct point {int x, y;}; | |
10438 | static struct point const zero = {0,0}; | |
10439 | /* AIX XL C 1.02.0.0 rejects this. | |
10440 | It does not let you subtract one const X* pointer from another in | |
10441 | an arm of an if-expression whose if-part is not a constant | |
10442 | expression */ | |
10443 | const char *g = "string"; | |
10444 | pcpcc = &g + (g ? g-g : 0); | |
10445 | /* HPUX 7.0 cc rejects these. */ | |
10446 | ++pcpcc; | |
10447 | ppc = (char**) pcpcc; | |
10448 | pcpcc = (char const *const *) ppc; | |
10449 | { /* SCO 3.2v4 cc rejects this. */ | |
10450 | char *t; | |
10451 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
7460295f | 10452 | |
572ac014 MG |
10453 | *t++ = 0; |
10454 | if (s) return 0; | |
10455 | } | |
10456 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10457 | int x[] = {25, 17}; | |
10458 | const int *foo = &x[0]; | |
10459 | ++foo; | |
10460 | } | |
10461 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10462 | typedef const int *iptr; | |
10463 | iptr p = 0; | |
10464 | ++p; | |
10465 | } | |
10466 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10467 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10468 | struct s { int j; const int *ap[3]; }; | |
10469 | struct s *b; b->j = 5; | |
10470 | } | |
10471 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10472 | const int foo = 10; | |
10473 | if (!foo) return 0; | |
10474 | } | |
10475 | return !cs[0] && !zero.x; | |
10476 | #endif | |
7460295f | 10477 | |
572ac014 MG |
10478 | ; |
10479 | return 0; | |
10480 | } | |
10481 | _ACEOF | |
a0673b07 | 10482 | if ac_fn_c_try_compile "$LINENO"; then : |
572ac014 MG |
10483 | ac_cv_c_const=yes |
10484 | else | |
a0673b07 | 10485 | ac_cv_c_const=no |
572ac014 | 10486 | fi |
572ac014 MG |
10487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10488 | fi | |
a0673b07 | 10489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
33aa8fe1 | 10490 | $as_echo "$ac_cv_c_const" >&6; } |
572ac014 | 10491 | if test $ac_cv_c_const = no; then |
7460295f | 10492 | |
a0673b07 | 10493 | $as_echo "#define const /**/" >>confdefs.h |
7460295f | 10494 | |
572ac014 | 10495 | fi |
7460295f | 10496 | |
572ac014 | 10497 | if test $ac_cv_c_compiler_gnu = yes; then |
a0673b07 | 10498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
33aa8fe1 | 10499 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
a0673b07 | 10500 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : |
33aa8fe1 | 10501 | $as_echo_n "(cached) " >&6 |
572ac014 MG |
10502 | else |
10503 | ac_pattern="Autoconf.*'x'" | |
a0673b07 | 10504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
10505 | /* end confdefs.h. */ |
10506 | #include <sgtty.h> | |
10507 | Autoconf TIOCGETP | |
10508 | _ACEOF | |
10509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a0673b07 | 10510 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
572ac014 MG |
10511 | ac_cv_prog_gcc_traditional=yes |
10512 | else | |
10513 | ac_cv_prog_gcc_traditional=no | |
10514 | fi | |
10515 | rm -f conftest* | |
7460295f | 10516 | |
7460295f | 10517 | |
572ac014 | 10518 | if test $ac_cv_prog_gcc_traditional = no; then |
a0673b07 | 10519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 MG |
10520 | /* end confdefs.h. */ |
10521 | #include <termio.h> | |
10522 | Autoconf TCGETA | |
10523 | _ACEOF | |
10524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
a0673b07 | 10525 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
572ac014 MG |
10526 | ac_cv_prog_gcc_traditional=yes |
10527 | fi | |
10528 | rm -f conftest* | |
7460295f | 10529 | |
572ac014 MG |
10530 | fi |
10531 | fi | |
a0673b07 | 10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
33aa8fe1 | 10533 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
572ac014 MG |
10534 | if test $ac_cv_prog_gcc_traditional = yes; then |
10535 | CC="$CC -traditional" | |
10536 | fi | |
10537 | fi | |
7460295f | 10538 | |
7460295f | 10539 | |
ac96c090 MG |
10540 | for ac_header in libutil.h pthread.h pty.h strings.h sys/prctl.h sys/uio.h \ |
10541 | util.h utmp.h utmpx.h | |
a0673b07 MG |
10542 | do : |
10543 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10544 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10545 | eval as_val=\$$as_ac_Header | |
10546 | if test "x$as_val" = x""yes; then : | |
10547 | cat >>confdefs.h <<_ACEOF | |
10548 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10549 | _ACEOF | |
7460295f | 10550 | |
a0673b07 | 10551 | fi |
7460295f | 10552 | |
a0673b07 | 10553 | done |
7460295f | 10554 | |
7460295f | 10555 | |
a0673b07 MG |
10556 | for ac_func in login_tty |
10557 | do : | |
10558 | ac_fn_c_check_func "$LINENO" "login_tty" "ac_cv_func_login_tty" | |
10559 | if test "x$ac_cv_func_login_tty" = x""yes; then : | |
10560 | cat >>confdefs.h <<_ACEOF | |
10561 | #define HAVE_LOGIN_TTY 1 | |
10562 | _ACEOF | |
7460295f | 10563 | |
a0673b07 MG |
10564 | else |
10565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login_tty in -lutil" >&5 | |
10566 | $as_echo_n "checking for login_tty in -lutil... " >&6; } | |
10567 | if test "${ac_cv_lib_util_login_tty+set}" = set; then : | |
33aa8fe1 | 10568 | $as_echo_n "(cached) " >&6 |
572ac014 | 10569 | else |
a0673b07 MG |
10570 | ac_check_lib_save_LIBS=$LIBS |
10571 | LIBS="-lutil $LIBS" | |
10572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
572ac014 | 10573 | /* end confdefs.h. */ |
a0673b07 MG |
10574 | |
10575 | /* Override any GCC internal prototype to avoid an error. | |
10576 | Use char because int might match the return type of a GCC | |
10577 | builtin and then its argument prototype would still apply. */ | |
10578 | #ifdef __cplusplus | |
10579 | extern "C" | |
10580 | #endif | |
10581 | char login_tty (); | |
10582 | int | |
10583 | main () | |
10584 | { | |
10585 | return login_tty (); | |
10586 | ; | |
10587 | return 0; | |
10588 | } | |
572ac014 | 10589 | _ACEOF |
a0673b07 MG |
10590 | if ac_fn_c_try_link "$LINENO"; then : |
10591 | ac_cv_lib_util_login_tty=yes | |
572ac014 | 10592 | else |
a0673b07 MG |
10593 | ac_cv_lib_util_login_tty=no |
10594 | fi | |
10595 | rm -f core conftest.err conftest.$ac_objext \ | |
10596 | conftest$ac_exeext conftest.$ac_ext | |
10597 | LIBS=$ac_check_lib_save_LIBS | |
10598 | fi | |
10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_login_tty" >&5 | |
10600 | $as_echo "$ac_cv_lib_util_login_tty" >&6; } | |
10601 | if test "x$ac_cv_lib_util_login_tty" = x""yes; then : | |
10602 | LIBS="-lutil $LIBS" | |
10603 | $as_echo "#define HAVE_LOGIN_TTY 1" >>confdefs.h | |
7460295f | 10604 | |
572ac014 | 10605 | fi |
7460295f | 10606 | |
a0673b07 MG |
10607 | fi |
10608 | done | |
7460295f | 10609 | |
a0673b07 MG |
10610 | |
10611 | for ac_func in strlcat | |
10612 | do : | |
10613 | ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" | |
10614 | if test "x$ac_cv_func_strlcat" = x""yes; then : | |
10615 | cat >>confdefs.h <<_ACEOF | |
10616 | #define HAVE_STRLCAT 1 | |
572ac014 | 10617 | _ACEOF |
7460295f | 10618 | |
572ac014 | 10619 | fi |
a0673b07 | 10620 | done |
7460295f | 10621 | |
7460295f | 10622 | |
a0673b07 MG |
10623 | for ac_func in getgrgid_r getgrnam_r getpwnam_r getpwuid_r openpty \ |
10624 | strcasestr | |
10625 | do : | |
10626 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10627 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10628 | eval as_val=\$$as_ac_var | |
10629 | if test "x$as_val" = x""yes; then : | |
572ac014 | 10630 | cat >>confdefs.h <<_ACEOF |
a0673b07 | 10631 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
572ac014 | 10632 | _ACEOF |
7460295f | 10633 | |
572ac014 | 10634 | fi |
572ac014 | 10635 | done |
7460295f | 10636 | |
7460295f | 10637 | |
a0673b07 | 10638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 10639 | /* end confdefs.h. */ |
a0673b07 MG |
10640 | #ifndef _XOPEN_SOURCE |
10641 | #define _XOPEN_SOURCE | |
10642 | #endif | |
10643 | #ifndef _GNU_SOURCE | |
10644 | #define _GNU_SOURCE | |
10645 | #endif | |
10646 | #include <stdlib.h> | |
572ac014 MG |
10647 | int |
10648 | main () | |
10649 | { | |
a0673b07 | 10650 | char buf[10]; ptsname_r(0, buf, sizeof(buf)); |
572ac014 MG |
10651 | ; |
10652 | return 0; | |
10653 | } | |
10654 | _ACEOF | |
a0673b07 | 10655 | if ac_fn_c_try_link "$LINENO"; then : |
7460295f | 10656 | |
a0673b07 | 10657 | $as_echo "#define HAVE_PTSNAME_R 1" >>confdefs.h |
7460295f | 10658 | |
572ac014 | 10659 | fi |
a0673b07 MG |
10660 | rm -f core conftest.err conftest.$ac_objext \ |
10661 | conftest$ac_exeext conftest.$ac_ext | |
7460295f | 10662 | |
a0673b07 | 10663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
572ac014 | 10664 | /* end confdefs.h. */ |
a0673b07 MG |
10665 | #include <pthread.h> |
10666 | #include <signal.h> | |
572ac014 MG |
10667 | int |
10668 | main () | |
10669 | { | |
a0673b07 | 10670 | sigset_t s; int n; sigwait(&s, &n); |
572ac014 MG |
10671 | ; |
10672 | return 0; | |
10673 | } | |
10674 | _ACEOF | |
a0673b07 MG |
10675 | if ac_fn_c_try_link "$LINENO"; then : |
10676 | ||
10677 | $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h | |
7460295f | 10678 | |
572ac014 | 10679 | fi |
a0673b07 MG |
10680 | rm -f core conftest.err conftest.$ac_objext \ |
10681 | conftest$ac_exeext conftest.$ac_ext | |
7460295f | 10682 | |
a0673b07 MG |
10683 | # Check whether --enable-ssl was given. |
10684 | if test "${enable_ssl+set}" = set; then : | |
10685 | enableval=$enable_ssl; | |
572ac014 | 10686 | fi |
a0673b07 MG |
10687 | |
10688 | ||
10689 | # Check whether --enable-pam was given. | |
10690 | if test "${enable_pam+set}" = set; then : | |
10691 | enableval=$enable_pam; | |
10692 | fi | |
10693 | ||
10694 | ||
10695 | # Check whether --enable-runtime-loading was given. | |
10696 | if test "${enable_runtime_loading+set}" = set; then : | |
10697 | enableval=$enable_runtime_loading; | |
10698 | fi | |
10699 | ||
10700 | ||
10701 | if test "x$enable_ssl" != xno; then | |
10702 | for ac_header in openssl/bio.h openssl/err.h openssl/ssl.h | |
10703 | do : | |
10704 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10705 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10706 | eval as_val=\$$as_ac_Header | |
10707 | if test "x$as_val" = x""yes; then : | |
10708 | cat >>confdefs.h <<_ACEOF | |
10709 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
572ac014 | 10710 | _ACEOF |
7460295f | 10711 | |
572ac014 | 10712 | fi |
7460295f | 10713 | |
a0673b07 MG |
10714 | done |
10715 | ||
10716 | fi | |
10717 | ||
10718 | if test "x$enable_pam" != xno; then | |
10719 | for ac_header in security/pam_appl.h security/pam_client.h \ | |
10720 | security/pam_misc.h | |
10721 | do : | |
10722 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10723 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10724 | eval as_val=\$$as_ac_Header | |
10725 | if test "x$as_val" = x""yes; then : | |
10726 | cat >>confdefs.h <<_ACEOF | |
10727 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10728 | _ACEOF | |
10729 | ||
572ac014 | 10730 | fi |
a0673b07 | 10731 | |
7460295f | 10732 | done |
7460295f | 10733 | |
a0673b07 | 10734 | fi |
7460295f | 10735 | |
a0673b07 MG |
10736 | if test "x$enable_runtime_loading" != xno; then |
10737 | for ac_func in dlopen | |
10738 | do : | |
10739 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10740 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
10741 | cat >>confdefs.h <<_ACEOF | |
10742 | #define HAVE_DLOPEN 1 | |
10743 | _ACEOF | |
7460295f | 10744 | |
a0673b07 MG |
10745 | else |
10746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10747 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10748 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
33aa8fe1 | 10749 | $as_echo_n "(cached) " >&6 |
572ac014 | 10750 | else |
a0673b07 MG |
10751 | ac_check_lib_save_LIBS=$LIBS |
10752 | LIBS="-ldl $LIBS" | |
10753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
572ac014 | 10754 | /* end confdefs.h. */ |
7460295f | 10755 | |
572ac014 MG |
10756 | /* Override any GCC internal prototype to avoid an error. |
10757 | Use char because int might match the return type of a GCC | |
10758 | builtin and then its argument prototype would still apply. */ | |
10759 | #ifdef __cplusplus | |
10760 | extern "C" | |
10761 | #endif | |
a0673b07 | 10762 | char dlopen (); |
572ac014 MG |
10763 | int |
10764 | main () | |
10765 | { | |
a0673b07 | 10766 | return dlopen (); |
572ac014 MG |
10767 | ; |
10768 | return 0; | |
10769 | } | |
10770 | _ACEOF | |
a0673b07 MG |
10771 | if ac_fn_c_try_link "$LINENO"; then : |
10772 | ac_cv_lib_dl_dlopen=yes | |
572ac014 | 10773 | else |
a0673b07 | 10774 | ac_cv_lib_dl_dlopen=no |
572ac014 | 10775 | fi |
a0673b07 MG |
10776 | rm -f core conftest.err conftest.$ac_objext \ |
10777 | conftest$ac_exeext conftest.$ac_ext | |
10778 | LIBS=$ac_check_lib_save_LIBS | |
10779 | fi | |
10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10781 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10782 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10783 | LIBS="-ldl $LIBS" | |
10784 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h | |
7460295f | 10785 | |
a0673b07 MG |
10786 | else |
10787 | enable_runtime_loading=no | |
572ac014 | 10788 | fi |
7460295f | 10789 | |
572ac014 MG |
10790 | fi |
10791 | done | |
7460295f | 10792 | |
a0673b07 | 10793 | fi |
7460295f | 10794 | |
a0673b07 MG |
10795 | if test "x$enable_runtime_loading" == xno; then |
10796 | if test "x$enable_ssl" != xno; then | |
10797 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default" | |
10798 | if test "x$ac_cv_header_openssl_bio_h" = x""yes; then : | |
10799 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default" | |
10800 | if test "x$ac_cv_header_openssl_err_h" = x""yes; then : | |
10801 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" | |
10802 | if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then : | |
10803 | LIBS="-lssl -lcrypto $LIBS" | |
10804 | fi | |
7460295f | 10805 | |
7460295f | 10806 | |
a0673b07 | 10807 | fi |
7460295f | 10808 | |
7460295f | 10809 | |
a0673b07 | 10810 | fi |
7460295f | 10811 | |
297cee07 | 10812 | |
a0673b07 | 10813 | fi |
7460295f | 10814 | |
a0673b07 MG |
10815 | if test "x$enable_pam" != xno; then |
10816 | ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" | |
10817 | if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then : | |
10818 | LIBS="-lpam $LIBS" | |
10819 | fi | |
7460295f | 10820 | |
572ac014 | 10821 | |
a0673b07 MG |
10822 | ac_fn_c_check_header_mongrel "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "$ac_includes_default" |
10823 | if test "x$ac_cv_header_security_pam_misc_h" = x""yes; then : | |
10824 | LIBS="-lpam_misc $LIBS" | |
10825 | fi | |
572ac014 MG |
10826 | |
10827 | ||
10828 | fi | |
10829 | fi | |
10830 | ||
a0673b07 | 10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
33aa8fe1 | 10832 | $as_echo_n "checking for deflate in -lz... " >&6; } |
a0673b07 | 10833 | if test "${ac_cv_lib_z_deflate+set}" = set; then : |
33aa8fe1 MG |
10834 | $as_echo_n "(cached) " >&6 |
10835 | else | |
10836 | ac_check_lib_save_LIBS=$LIBS | |
10837 | LIBS="-lz $LIBS" | |
a0673b07 | 10838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
33aa8fe1 MG |
10839 | /* end confdefs.h. */ |
10840 | ||
10841 | /* Override any GCC internal prototype to avoid an error. | |
10842 | Use char because int might match the return type of a GCC | |
10843 | builtin and then its argument prototype would still apply. */ | |
10844 | #ifdef __cplusplus | |
10845 | extern "C" | |
10846 | #endif | |
10847 | char deflate (); | |
10848 | int | |
10849 | main () | |
10850 | { | |
10851 | return deflate (); | |
10852 | ; | |
10853 | return 0; | |
a0673b07 | 10854 | } |
33aa8fe1 | 10855 | _ACEOF |
a0673b07 MG |
10856 | if ac_fn_c_try_link "$LINENO"; then : |
10857 | ac_cv_lib_z_deflate=yes | |
33aa8fe1 | 10858 | else |
a0673b07 | 10859 | ac_cv_lib_z_deflate=no |
33aa8fe1 | 10860 | fi |
a0673b07 MG |
10861 | rm -f core conftest.err conftest.$ac_objext \ |
10862 | conftest$ac_exeext conftest.$ac_ext | |
10863 | LIBS=$ac_check_lib_save_LIBS | |
33aa8fe1 | 10864 | fi |
a0673b07 MG |
10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
10866 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | |
10867 | if test "x$ac_cv_lib_z_deflate" = x""yes; then : | |
33aa8fe1 | 10868 | |
a0673b07 MG |
10869 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
10870 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
33aa8fe1 MG |
10871 | LIBS="-lz $LIBS" |
10872 | ||
a0673b07 | 10873 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h |
33aa8fe1 MG |
10874 | |
10875 | ||
10876 | fi | |
10877 | ||
10878 | ||
10879 | fi | |
10880 | ||
10881 | ||
572ac014 MG |
10882 | ac_config_files="$ac_config_files Makefile" |
10883 | ||
10884 | cat >confcache <<\_ACEOF | |
10885 | # This file is a shell script that caches the results of configure | |
10886 | # tests run on this system so they can be shared between configure | |
10887 | # scripts and configure runs, see configure's option --config-cache. | |
10888 | # It is not useful on other systems. If it contains results you don't | |
10889 | # want to keep, you may remove or edit it. | |
10890 | # | |
10891 | # config.status only pays attention to the cache file if you give it | |
10892 | # the --recheck option to rerun configure. | |
10893 | # | |
10894 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10895 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10896 | # following values. | |
10897 | ||
10898 | _ACEOF | |
10899 | ||
10900 | # The following way of writing the cache mishandles newlines in values, | |
10901 | # but we know of no workaround that is simple, portable, and efficient. | |
10902 | # So, we kill variables containing newlines. | |
10903 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10904 | # and sets the high bit in the cache file unless we assign to the vars. | |
10905 | ( | |
10906 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10907 | eval ac_val=\$$ac_var | |
10908 | case $ac_val in #( | |
10909 | *${as_nl}*) | |
10910 | case $ac_var in #( | |
a0673b07 | 10911 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
33aa8fe1 | 10912 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
572ac014 MG |
10913 | esac |
10914 | case $ac_var in #( | |
10915 | _ | IFS | as_nl) ;; #( | |
33aa8fe1 | 10916 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
a0673b07 | 10917 | *) { eval $ac_var=; unset $ac_var;} ;; |
572ac014 MG |
10918 | esac ;; |
10919 | esac | |
10920 | done | |
10921 | ||
10922 | (set) 2>&1 | | |
10923 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
10924 | *${as_nl}ac_space=\ *) | |
a0673b07 MG |
10925 | # `set' does not quote correctly, so add quotes: double-quote |
10926 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
572ac014 MG |
10927 | sed -n \ |
10928 | "s/'/'\\\\''/g; | |
10929 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
10930 | ;; #( | |
10931 | *) | |
10932 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10933 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
10934 | ;; | |
10935 | esac | | |
10936 | sort | |
10937 | ) | | |
10938 | sed ' | |
10939 | /^ac_cv_env_/b end | |
10940 | t clear | |
10941 | :clear | |
10942 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10943 | t end | |
10944 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10945 | :end' >>confcache | |
10946 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10947 | if test -w "$cache_file"; then | |
10948 | test "x$cache_file" != "x/dev/null" && | |
a0673b07 | 10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
33aa8fe1 | 10950 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
572ac014 MG |
10951 | cat confcache >$cache_file |
10952 | else | |
a0673b07 | 10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
33aa8fe1 | 10954 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
572ac014 MG |
10955 | fi |
10956 | fi | |
10957 | rm -f confcache | |
10958 | ||
10959 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10960 | # Let make expand exec_prefix. | |
10961 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10962 | ||
10963 | DEFS=-DHAVE_CONFIG_H | |
10964 | ||
10965 | ac_libobjs= | |
10966 | ac_ltlibobjs= | |
10967 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10968 | # 1. Remove the extension, and $U if already installed. | |
10969 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
33aa8fe1 | 10970 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
572ac014 MG |
10971 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10972 | # will be set to the directory where LIBOBJS objects are built. | |
a0673b07 MG |
10973 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10974 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
572ac014 MG |
10975 | done |
10976 | LIBOBJS=$ac_libobjs | |
10977 | ||
10978 | LTLIBOBJS=$ac_ltlibobjs | |
10979 | ||
10980 | ||
db50e572 MG |
10981 | if test -n "$EXEEXT"; then |
10982 | am__EXEEXT_TRUE= | |
10983 | am__EXEEXT_FALSE='#' | |
10984 | else | |
10985 | am__EXEEXT_TRUE='#' | |
10986 | am__EXEEXT_FALSE= | |
10987 | fi | |
10988 | ||
572ac014 | 10989 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
a0673b07 MG |
10990 | as_fn_error "conditional \"AMDEP\" was never defined. |
10991 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
572ac014 MG |
10992 | fi |
10993 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
a0673b07 MG |
10994 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
10995 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
572ac014 MG |
10996 | fi |
10997 | ||
10998 | : ${CONFIG_STATUS=./config.status} | |
33aa8fe1 | 10999 | ac_write_fail=0 |
572ac014 MG |
11000 | ac_clean_files_save=$ac_clean_files |
11001 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
a0673b07 | 11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
33aa8fe1 | 11003 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
a0673b07 MG |
11004 | as_write_fail=0 |
11005 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
572ac014 MG |
11006 | #! $SHELL |
11007 | # Generated by $as_me. | |
11008 | # Run this file to recreate the current configuration. | |
11009 | # Compiler output produced by configure, useful for debugging | |
11010 | # configure, is in config.log if it exists. | |
11011 | ||
11012 | debug=false | |
11013 | ac_cs_recheck=false | |
11014 | ac_cs_silent=false | |
7460295f | 11015 | |
a0673b07 MG |
11016 | SHELL=\${CONFIG_SHELL-$SHELL} |
11017 | export SHELL | |
11018 | _ASEOF | |
11019 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11020 | ## -------------------- ## | |
11021 | ## M4sh Initialization. ## | |
11022 | ## -------------------- ## | |
572ac014 MG |
11023 | |
11024 | # Be more Bourne compatible | |
11025 | DUALCASE=1; export DUALCASE # for MKS sh | |
a0673b07 | 11026 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
572ac014 MG |
11027 | emulate sh |
11028 | NULLCMD=: | |
33aa8fe1 | 11029 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
572ac014 MG |
11030 | # is contrary to our usage. Disable this feature. |
11031 | alias -g '${1+"$@"}'='"$@"' | |
11032 | setopt NO_GLOB_SUBST | |
11033 | else | |
a0673b07 MG |
11034 | case `(set -o) 2>/dev/null` in #( |
11035 | *posix*) : | |
11036 | set -o posix ;; #( | |
11037 | *) : | |
11038 | ;; | |
572ac014 | 11039 | esac |
572ac014 MG |
11040 | fi |
11041 | ||
11042 | ||
33aa8fe1 MG |
11043 | as_nl=' |
11044 | ' | |
11045 | export as_nl | |
11046 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11047 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11048 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11049 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
a0673b07 MG |
11050 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
11051 | # but without wasting forks for bash or zsh. | |
11052 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11053 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11054 | as_echo='print -r --' | |
11055 | as_echo_n='print -rn --' | |
11056 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
33aa8fe1 MG |
11057 | as_echo='printf %s\n' |
11058 | as_echo_n='printf %s' | |
11059 | else | |
11060 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11061 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11062 | as_echo_n='/usr/ucb/echo -n' | |
9d758d39 | 11063 | else |
33aa8fe1 MG |
11064 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
11065 | as_echo_n_body='eval | |
11066 | arg=$1; | |
a0673b07 | 11067 | case $arg in #( |
33aa8fe1 MG |
11068 | *"$as_nl"*) |
11069 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11070 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11071 | esac; | |
11072 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11073 | ' | |
11074 | export as_echo_n_body | |
11075 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
9d758d39 | 11076 | fi |
33aa8fe1 MG |
11077 | export as_echo_body |
11078 | as_echo='sh -c $as_echo_body as_echo' | |
11079 | fi | |
11080 | ||
11081 | # The user is always right. | |
11082 | if test "${PATH_SEPARATOR+set}" != set; then | |
11083 | PATH_SEPARATOR=: | |
11084 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11085 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11086 | PATH_SEPARATOR=';' | |
11087 | } | |
572ac014 MG |
11088 | fi |
11089 | ||
572ac014 MG |
11090 | |
11091 | # IFS | |
11092 | # We need space, tab and new line, in precisely that order. Quoting is | |
11093 | # there to prevent editors from complaining about space-tab. | |
11094 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11095 | # splitting by setting IFS to empty value.) | |
572ac014 MG |
11096 | IFS=" "" $as_nl" |
11097 | ||
11098 | # Find who we are. Look in the path if we contain no directory separator. | |
a0673b07 | 11099 | case $0 in #(( |
572ac014 MG |
11100 | *[\\/]* ) as_myself=$0 ;; |
11101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11102 | for as_dir in $PATH | |
11103 | do | |
11104 | IFS=$as_save_IFS | |
11105 | test -z "$as_dir" && as_dir=. | |
a0673b07 MG |
11106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
11107 | done | |
572ac014 MG |
11108 | IFS=$as_save_IFS |
11109 | ||
11110 | ;; | |
11111 | esac | |
11112 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11113 | # in which case we are not to be found in the path. | |
11114 | if test "x$as_myself" = x; then | |
11115 | as_myself=$0 | |
11116 | fi | |
11117 | if test ! -f "$as_myself"; then | |
33aa8fe1 | 11118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
a0673b07 | 11119 | exit 1 |
572ac014 MG |
11120 | fi |
11121 | ||
a0673b07 MG |
11122 | # Unset variables that we do not need and which cause bugs (e.g. in |
11123 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
11124 | # suppresses any "Segmentation fault" message there. '((' could | |
11125 | # trigger a bug in pdksh 5.2.14. | |
11126 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
11127 | do eval test x\${$as_var+set} = xset \ | |
11128 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
572ac014 MG |
11129 | done |
11130 | PS1='$ ' | |
11131 | PS2='> ' | |
11132 | PS4='+ ' | |
11133 | ||
11134 | # NLS nuisances. | |
33aa8fe1 MG |
11135 | LC_ALL=C |
11136 | export LC_ALL | |
11137 | LANGUAGE=C | |
11138 | export LANGUAGE | |
572ac014 | 11139 | |
a0673b07 MG |
11140 | # CDPATH. |
11141 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11142 | ||
11143 | ||
11144 | # as_fn_error ERROR [LINENO LOG_FD] | |
11145 | # --------------------------------- | |
11146 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
11147 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
11148 | # script with status $?, using 1 if that was 0. | |
11149 | as_fn_error () | |
11150 | { | |
11151 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
11152 | if test "$3"; then | |
11153 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
11154 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
11155 | fi | |
11156 | $as_echo "$as_me: error: $1" >&2 | |
11157 | as_fn_exit $as_status | |
11158 | } # as_fn_error | |
11159 | ||
11160 | ||
11161 | # as_fn_set_status STATUS | |
11162 | # ----------------------- | |
11163 | # Set $? to STATUS, without forking. | |
11164 | as_fn_set_status () | |
11165 | { | |
11166 | return $1 | |
11167 | } # as_fn_set_status | |
11168 | ||
11169 | # as_fn_exit STATUS | |
11170 | # ----------------- | |
11171 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
11172 | as_fn_exit () | |
11173 | { | |
11174 | set +e | |
11175 | as_fn_set_status $1 | |
11176 | exit $1 | |
11177 | } # as_fn_exit | |
11178 | ||
11179 | # as_fn_unset VAR | |
11180 | # --------------- | |
11181 | # Portably unset VAR. | |
11182 | as_fn_unset () | |
11183 | { | |
11184 | { eval $1=; unset $1;} | |
11185 | } | |
11186 | as_unset=as_fn_unset | |
11187 | # as_fn_append VAR VALUE | |
11188 | # ---------------------- | |
11189 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
11190 | # advantage of any shell optimizations that allow amortized linear growth over | |
11191 | # repeated appends, instead of the typical quadratic growth present in naive | |
11192 | # implementations. | |
11193 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
11194 | eval 'as_fn_append () | |
11195 | { | |
11196 | eval $1+=\$2 | |
11197 | }' | |
11198 | else | |
11199 | as_fn_append () | |
11200 | { | |
11201 | eval $1=\$$1\$2 | |
11202 | } | |
11203 | fi # as_fn_append | |
11204 | ||
11205 | # as_fn_arith ARG... | |
11206 | # ------------------ | |
11207 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
11208 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
11209 | # must be portable across $(()) and expr. | |
11210 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
11211 | eval 'as_fn_arith () | |
11212 | { | |
11213 | as_val=$(( $* )) | |
11214 | }' | |
11215 | else | |
11216 | as_fn_arith () | |
11217 | { | |
11218 | as_val=`expr "$@" || test $? -eq 1` | |
11219 | } | |
11220 | fi # as_fn_arith | |
11221 | ||
11222 | ||
572ac014 MG |
11223 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11224 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
11225 | as_expr=expr | |
11226 | else | |
11227 | as_expr=false | |
11228 | fi | |
11229 | ||
11230 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
11231 | as_basename=basename | |
11232 | else | |
11233 | as_basename=false | |
7460295f MG |
11234 | fi |
11235 | ||
a0673b07 MG |
11236 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11237 | as_dirname=dirname | |
11238 | else | |
11239 | as_dirname=false | |
11240 | fi | |
29135474 | 11241 | |
572ac014 MG |
11242 | as_me=`$as_basename -- "$0" || |
11243 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11244 | X"$0" : 'X\(//\)$' \| \ | |
11245 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
33aa8fe1 | 11246 | $as_echo X/"$0" | |
572ac014 MG |
11247 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11248 | s//\1/ | |
11249 | q | |
11250 | } | |
11251 | /^X\/\(\/\/\)$/{ | |
11252 | s//\1/ | |
11253 | q | |
11254 | } | |
11255 | /^X\/\(\/\).*/{ | |
11256 | s//\1/ | |
11257 | q | |
11258 | } | |
11259 | s/.*/./; q'` | |
bf1ec4d2 | 11260 | |
a0673b07 MG |
11261 | # Avoid depending upon Character Ranges. |
11262 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11263 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11264 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11265 | as_cr_digits='0123456789' | |
11266 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
29135474 | 11267 | |
572ac014 | 11268 | ECHO_C= ECHO_N= ECHO_T= |
a0673b07 | 11269 | case `echo -n x` in #((((( |
572ac014 | 11270 | -n*) |
a0673b07 | 11271 | case `echo 'xy\c'` in |
572ac014 | 11272 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
a0673b07 MG |
11273 | xy) ECHO_C='\c';; |
11274 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
11275 | ECHO_T=' ';; | |
572ac014 MG |
11276 | esac;; |
11277 | *) | |
11278 | ECHO_N='-n';; | |
29135474 | 11279 | esac |
a3876a41 | 11280 | |
572ac014 MG |
11281 | rm -f conf$$ conf$$.exe conf$$.file |
11282 | if test -d conf$$.dir; then | |
11283 | rm -f conf$$.dir/conf$$.file | |
11284 | else | |
11285 | rm -f conf$$.dir | |
33aa8fe1 MG |
11286 | mkdir conf$$.dir 2>/dev/null |
11287 | fi | |
11288 | if (echo >conf$$.file) 2>/dev/null; then | |
11289 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11290 | as_ln_s='ln -s' | |
11291 | # ... but there are two gotchas: | |
11292 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11293 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11294 | # In both cases, we have to default to `cp -p'. | |
11295 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
11296 | as_ln_s='cp -p' | |
11297 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
11298 | as_ln_s=ln | |
11299 | else | |
572ac014 | 11300 | as_ln_s='cp -p' |
33aa8fe1 | 11301 | fi |
572ac014 MG |
11302 | else |
11303 | as_ln_s='cp -p' | |
a3876a41 | 11304 | fi |
572ac014 MG |
11305 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11306 | rmdir conf$$.dir 2>/dev/null | |
a3876a41 | 11307 | |
a0673b07 MG |
11308 | |
11309 | # as_fn_mkdir_p | |
11310 | # ------------- | |
11311 | # Create "$as_dir" as a directory, including parents if necessary. | |
11312 | as_fn_mkdir_p () | |
11313 | { | |
11314 | ||
11315 | case $as_dir in #( | |
11316 | -*) as_dir=./$as_dir;; | |
11317 | esac | |
11318 | test -d "$as_dir" || eval $as_mkdir_p || { | |
11319 | as_dirs= | |
11320 | while :; do | |
11321 | case $as_dir in #( | |
11322 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
11323 | *) as_qdir=$as_dir;; | |
11324 | esac | |
11325 | as_dirs="'$as_qdir' $as_dirs" | |
11326 | as_dir=`$as_dirname -- "$as_dir" || | |
11327 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11328 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11329 | X"$as_dir" : 'X\(//\)$' \| \ | |
11330 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
11331 | $as_echo X"$as_dir" | | |
11332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11333 | s//\1/ | |
11334 | q | |
11335 | } | |
11336 | /^X\(\/\/\)[^/].*/{ | |
11337 | s//\1/ | |
11338 | q | |
11339 | } | |
11340 | /^X\(\/\/\)$/{ | |
11341 | s//\1/ | |
11342 | q | |
11343 | } | |
11344 | /^X\(\/\).*/{ | |
11345 | s//\1/ | |
11346 | q | |
11347 | } | |
11348 | s/.*/./; q'` | |
11349 | test -d "$as_dir" && break | |
11350 | done | |
11351 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
11352 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
11353 | ||
11354 | ||
11355 | } # as_fn_mkdir_p | |
572ac014 | 11356 | if mkdir -p . 2>/dev/null; then |
a0673b07 | 11357 | as_mkdir_p='mkdir -p "$as_dir"' |
572ac014 MG |
11358 | else |
11359 | test -d ./-p && rmdir ./-p | |
11360 | as_mkdir_p=false | |
a3876a41 | 11361 | fi |
bf1ec4d2 | 11362 | |
572ac014 MG |
11363 | if test -x / >/dev/null 2>&1; then |
11364 | as_test_x='test -x' | |
a3876a41 | 11365 | else |
572ac014 MG |
11366 | if ls -dL / >/dev/null 2>&1; then |
11367 | as_ls_L_option=L | |
11368 | else | |
11369 | as_ls_L_option= | |
11370 | fi | |
11371 | as_test_x=' | |
11372 | eval sh -c '\'' | |
11373 | if test -d "$1"; then | |
33aa8fe1 | 11374 | test -d "$1/."; |
572ac014 | 11375 | else |
a0673b07 | 11376 | case $1 in #( |
33aa8fe1 | 11377 | -*)set "./$1";; |
572ac014 | 11378 | esac; |
a0673b07 | 11379 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
572ac014 MG |
11380 | ???[sx]*):;;*)false;;esac;fi |
11381 | '\'' sh | |
11382 | ' | |
11383 | fi | |
11384 | as_executable_p=$as_test_x | |
a3876a41 | 11385 | |
572ac014 MG |
11386 | # Sed expression to map a string onto a valid CPP name. |
11387 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
bf1ec4d2 | 11388 | |
572ac014 MG |
11389 | # Sed expression to map a string onto a valid variable name. |
11390 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
a3876a41 | 11391 | |
bf1ec4d2 | 11392 | |
572ac014 | 11393 | exec 6>&1 |
a0673b07 MG |
11394 | ## ----------------------------------- ## |
11395 | ## Main body of $CONFIG_STATUS script. ## | |
11396 | ## ----------------------------------- ## | |
11397 | _ASEOF | |
11398 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
a3876a41 | 11399 | |
a0673b07 MG |
11400 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11401 | # Save the log message, to keep $0 and so on meaningful, and to | |
572ac014 MG |
11402 | # report actual input values of CONFIG_FILES etc. instead of their |
11403 | # values after options handling. | |
11404 | ac_log=" | |
9be467c0 | 11405 | This file was extended by shellinabox $as_me 2.10, which was |
a0673b07 | 11406 | generated by GNU Autoconf 2.64. Invocation command line was |
bf1ec4d2 | 11407 | |
572ac014 MG |
11408 | CONFIG_FILES = $CONFIG_FILES |
11409 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11410 | CONFIG_LINKS = $CONFIG_LINKS | |
11411 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11412 | $ $0 $@ | |
bf1ec4d2 | 11413 | |
572ac014 MG |
11414 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11415 | " | |
bf1ec4d2 | 11416 | |
572ac014 | 11417 | _ACEOF |
bf1ec4d2 | 11418 | |
33aa8fe1 MG |
11419 | case $ac_config_files in *" |
11420 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
11421 | esac | |
11422 | ||
11423 | case $ac_config_headers in *" | |
11424 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
11425 | esac | |
11426 | ||
11427 | ||
11428 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
572ac014 MG |
11429 | # Files that config.status was made for. |
11430 | config_files="$ac_config_files" | |
11431 | config_headers="$ac_config_headers" | |
11432 | config_commands="$ac_config_commands" | |
bf1ec4d2 | 11433 | |
572ac014 | 11434 | _ACEOF |
bf1ec4d2 | 11435 | |
33aa8fe1 | 11436 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
572ac014 | 11437 | ac_cs_usage="\ |
a0673b07 MG |
11438 | \`$as_me' instantiates files and other configuration actions |
11439 | from templates according to the current configuration. Unless the files | |
11440 | and actions are specified as TAGs, all are instantiated by default. | |
bf1ec4d2 | 11441 | |
a0673b07 | 11442 | Usage: $0 [OPTION]... [TAG]... |
bf1ec4d2 | 11443 | |
572ac014 MG |
11444 | -h, --help print this help, then exit |
11445 | -V, --version print version number and configuration settings, then exit | |
33aa8fe1 MG |
11446 | -q, --quiet, --silent |
11447 | do not print progress messages | |
572ac014 MG |
11448 | -d, --debug don't remove temporary files |
11449 | --recheck update $as_me by reconfiguring in the same conditions | |
33aa8fe1 MG |
11450 | --file=FILE[:TEMPLATE] |
11451 | instantiate the configuration file FILE | |
11452 | --header=FILE[:TEMPLATE] | |
11453 | instantiate the configuration header FILE | |
a3876a41 | 11454 | |
572ac014 MG |
11455 | Configuration files: |
11456 | $config_files | |
29135474 | 11457 | |
572ac014 MG |
11458 | Configuration headers: |
11459 | $config_headers | |
29135474 | 11460 | |
572ac014 MG |
11461 | Configuration commands: |
11462 | $config_commands | |
29135474 | 11463 | |
a0673b07 | 11464 | Report bugs to <markus@shellinabox.com>." |
bf1ec4d2 | 11465 | |
572ac014 | 11466 | _ACEOF |
33aa8fe1 | 11467 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
572ac014 | 11468 | ac_cs_version="\\ |
9be467c0 | 11469 | shellinabox config.status 2.10 |
a0673b07 | 11470 | configured by $0, generated by GNU Autoconf 2.64, |
33aa8fe1 | 11471 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
bf1ec4d2 | 11472 | |
a0673b07 | 11473 | Copyright (C) 2009 Free Software Foundation, Inc. |
572ac014 MG |
11474 | This config.status script is free software; the Free Software Foundation |
11475 | gives unlimited permission to copy, distribute and modify it." | |
bf1ec4d2 | 11476 | |
572ac014 MG |
11477 | ac_pwd='$ac_pwd' |
11478 | srcdir='$srcdir' | |
11479 | INSTALL='$INSTALL' | |
11480 | MKDIR_P='$MKDIR_P' | |
33aa8fe1 MG |
11481 | AWK='$AWK' |
11482 | test -n "\$AWK" || AWK=awk | |
bf1ec4d2 MG |
11483 | _ACEOF |
11484 | ||
33aa8fe1 MG |
11485 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11486 | # The default lists apply if the user does not specify any file. | |
572ac014 MG |
11487 | ac_need_defaults=: |
11488 | while test $# != 0 | |
11489 | do | |
11490 | case $1 in | |
11491 | --*=*) | |
11492 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
11493 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
11494 | ac_shift=: | |
11495 | ;; | |
11496 | *) | |
11497 | ac_option=$1 | |
11498 | ac_optarg=$2 | |
11499 | ac_shift=shift | |
11500 | ;; | |
11501 | esac | |
bf1ec4d2 | 11502 | |
572ac014 MG |
11503 | case $ac_option in |
11504 | # Handling of the options. | |
11505 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11506 | ac_cs_recheck=: ;; | |
11507 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
33aa8fe1 | 11508 | $as_echo "$ac_cs_version"; exit ;; |
572ac014 MG |
11509 | --debug | --debu | --deb | --de | --d | -d ) |
11510 | debug=: ;; | |
11511 | --file | --fil | --fi | --f ) | |
11512 | $ac_shift | |
33aa8fe1 MG |
11513 | case $ac_optarg in |
11514 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11515 | esac | |
a0673b07 | 11516 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
572ac014 MG |
11517 | ac_need_defaults=false;; |
11518 | --header | --heade | --head | --hea ) | |
11519 | $ac_shift | |
33aa8fe1 MG |
11520 | case $ac_optarg in |
11521 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11522 | esac | |
a0673b07 | 11523 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
572ac014 MG |
11524 | ac_need_defaults=false;; |
11525 | --he | --h) | |
11526 | # Conflict between --help and --header | |
a0673b07 MG |
11527 | as_fn_error "ambiguous option: \`$1' |
11528 | Try \`$0 --help' for more information.";; | |
572ac014 | 11529 | --help | --hel | -h ) |
33aa8fe1 | 11530 | $as_echo "$ac_cs_usage"; exit ;; |
572ac014 MG |
11531 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11532 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11533 | ac_cs_silent=: ;; | |
bf1ec4d2 | 11534 | |
572ac014 | 11535 | # This is an error. |
a0673b07 MG |
11536 | -*) as_fn_error "unrecognized option: \`$1' |
11537 | Try \`$0 --help' for more information." ;; | |
bf1ec4d2 | 11538 | |
a0673b07 | 11539 | *) as_fn_append ac_config_targets " $1" |
572ac014 | 11540 | ac_need_defaults=false ;; |
bf1ec4d2 | 11541 | |
572ac014 MG |
11542 | esac |
11543 | shift | |
11544 | done | |
bf1ec4d2 | 11545 | |
572ac014 | 11546 | ac_configure_extra_args= |
bf1ec4d2 | 11547 | |
572ac014 MG |
11548 | if $ac_cs_silent; then |
11549 | exec 6>/dev/null | |
11550 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
bf1ec4d2 | 11551 | fi |
bf1ec4d2 | 11552 | |
572ac014 | 11553 | _ACEOF |
33aa8fe1 | 11554 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
572ac014 | 11555 | if \$ac_cs_recheck; then |
33aa8fe1 MG |
11556 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11557 | shift | |
11558 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11559 | CONFIG_SHELL='$SHELL' | |
572ac014 | 11560 | export CONFIG_SHELL |
33aa8fe1 | 11561 | exec "\$@" |
bf1ec4d2 MG |
11562 | fi |
11563 | ||
bf1ec4d2 | 11564 | _ACEOF |
33aa8fe1 | 11565 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
572ac014 MG |
11566 | exec 5>>config.log |
11567 | { | |
11568 | echo | |
11569 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11570 | ## Running $as_me. ## | |
11571 | _ASBOX | |
33aa8fe1 | 11572 | $as_echo "$ac_log" |
572ac014 MG |
11573 | } >&5 |
11574 | ||
bf1ec4d2 | 11575 | _ACEOF |
33aa8fe1 | 11576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
572ac014 MG |
11577 | # |
11578 | # INIT-COMMANDS | |
11579 | # | |
11580 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
bf1ec4d2 | 11581 | |
bf1ec4d2 | 11582 | |
572ac014 MG |
11583 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
11584 | # if CDPATH is set. | |
11585 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
bf1ec4d2 | 11586 | |
572ac014 MG |
11587 | sed_quote_subst='$sed_quote_subst' |
11588 | double_quote_subst='$double_quote_subst' | |
11589 | delay_variable_subst='$delay_variable_subst' | |
11590 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
11591 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
11592 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
11593 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
11594 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
11595 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
11596 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
11597 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
11598 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
11599 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
11600 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
11601 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
11602 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
11603 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
11604 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
11605 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
11606 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
11607 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
11608 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
11609 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
11610 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
11611 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
11612 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
11613 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
11614 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
11615 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
11616 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11617 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11618 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
11619 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
11620 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
11621 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
11622 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
11623 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
11624 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
11625 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11626 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11627 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11628 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
11629 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
11630 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
11631 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
11632 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
11633 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
11634 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
11635 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
11636 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
11637 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
11638 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
11639 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
11640 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11641 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
11642 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
11643 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
11644 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
11645 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
11646 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
11647 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
11648 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
11649 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
11650 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
11651 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
11652 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11653 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11654 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
11655 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
11656 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11657 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11658 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
11659 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11660 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11661 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11662 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11663 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11664 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11665 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
11666 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11667 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11668 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11669 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
11670 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
11671 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
11672 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
11673 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
11674 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
11675 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
11676 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
11677 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
11678 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
11679 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
11680 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11681 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
11682 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
11683 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11684 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11685 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
11686 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
11687 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
11688 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
11689 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
11690 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
11691 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
11692 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11693 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11694 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11695 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11696 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11697 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11698 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
11699 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
11700 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11701 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11702 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
11703 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
11704 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
11705 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
11706 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
11707 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
11708 | ||
11709 | LTCC='$LTCC' | |
11710 | LTCFLAGS='$LTCFLAGS' | |
11711 | compiler='$compiler_DEFAULT' | |
11712 | ||
11713 | # Quote evaled strings. | |
11714 | for var in SED \ | |
11715 | GREP \ | |
11716 | EGREP \ | |
11717 | FGREP \ | |
11718 | LD \ | |
11719 | NM \ | |
11720 | LN_S \ | |
11721 | lt_SP2NL \ | |
11722 | lt_NL2SP \ | |
11723 | reload_flag \ | |
11724 | OBJDUMP \ | |
11725 | deplibs_check_method \ | |
11726 | file_magic_cmd \ | |
11727 | AR \ | |
11728 | AR_FLAGS \ | |
11729 | STRIP \ | |
11730 | RANLIB \ | |
11731 | CC \ | |
11732 | CFLAGS \ | |
11733 | compiler \ | |
11734 | lt_cv_sys_global_symbol_pipe \ | |
11735 | lt_cv_sys_global_symbol_to_cdecl \ | |
11736 | lt_cv_sys_global_symbol_to_c_name_address \ | |
11737 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
11738 | SHELL \ | |
11739 | ECHO \ | |
11740 | lt_prog_compiler_no_builtin_flag \ | |
11741 | lt_prog_compiler_wl \ | |
11742 | lt_prog_compiler_pic \ | |
11743 | lt_prog_compiler_static \ | |
11744 | lt_cv_prog_compiler_c_o \ | |
11745 | need_locks \ | |
11746 | DSYMUTIL \ | |
11747 | NMEDIT \ | |
11748 | LIPO \ | |
11749 | OTOOL \ | |
11750 | OTOOL64 \ | |
11751 | shrext_cmds \ | |
11752 | export_dynamic_flag_spec \ | |
11753 | whole_archive_flag_spec \ | |
11754 | compiler_needs_object \ | |
11755 | with_gnu_ld \ | |
11756 | allow_undefined_flag \ | |
11757 | no_undefined_flag \ | |
11758 | hardcode_libdir_flag_spec \ | |
11759 | hardcode_libdir_flag_spec_ld \ | |
11760 | hardcode_libdir_separator \ | |
11761 | fix_srcfile_path \ | |
11762 | exclude_expsyms \ | |
11763 | include_expsyms \ | |
11764 | file_list_spec \ | |
11765 | variables_saved_for_relink \ | |
11766 | libname_spec \ | |
11767 | library_names_spec \ | |
11768 | soname_spec \ | |
11769 | finish_eval \ | |
11770 | old_striplib \ | |
11771 | striplib; do | |
11772 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
11773 | *[\\\\\\\`\\"\\\$]*) | |
11774 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
11775 | ;; | |
11776 | *) | |
11777 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
11778 | ;; | |
11779 | esac | |
11780 | done | |
11781 | ||
11782 | # Double-quote double-evaled strings. | |
11783 | for var in reload_cmds \ | |
11784 | old_postinstall_cmds \ | |
11785 | old_postuninstall_cmds \ | |
11786 | old_archive_cmds \ | |
11787 | extract_expsyms_cmds \ | |
11788 | old_archive_from_new_cmds \ | |
11789 | old_archive_from_expsyms_cmds \ | |
11790 | archive_cmds \ | |
11791 | archive_expsym_cmds \ | |
11792 | module_cmds \ | |
11793 | module_expsym_cmds \ | |
11794 | export_symbols_cmds \ | |
11795 | prelink_cmds \ | |
11796 | postinstall_cmds \ | |
11797 | postuninstall_cmds \ | |
11798 | finish_cmds \ | |
11799 | sys_lib_search_path_spec \ | |
11800 | sys_lib_dlsearch_path_spec; do | |
11801 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
11802 | *[\\\\\\\`\\"\\\$]*) | |
11803 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
11804 | ;; | |
11805 | *) | |
11806 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
11807 | ;; | |
11808 | esac | |
11809 | done | |
11810 | ||
11811 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
11812 | case \$lt_ECHO in | |
11813 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
11814 | ;; | |
bf1ec4d2 | 11815 | esac |
bf1ec4d2 | 11816 | |
572ac014 MG |
11817 | ac_aux_dir='$ac_aux_dir' |
11818 | xsi_shell='$xsi_shell' | |
11819 | lt_shell_append='$lt_shell_append' | |
bf1ec4d2 | 11820 | |
572ac014 MG |
11821 | # See if we are running on zsh, and set the options which allow our |
11822 | # commands through without removal of \ escapes INIT. | |
11823 | if test -n "\${ZSH_VERSION+set}" ; then | |
11824 | setopt NO_GLOB_SUBST | |
bf1ec4d2 MG |
11825 | fi |
11826 | ||
bf1ec4d2 | 11827 | |
572ac014 MG |
11828 | PACKAGE='$PACKAGE' |
11829 | VERSION='$VERSION' | |
11830 | TIMESTAMP='$TIMESTAMP' | |
11831 | RM='$RM' | |
11832 | ofile='$ofile' | |
bf1ec4d2 | 11833 | |
bf1ec4d2 | 11834 | |
bf1ec4d2 | 11835 | |
bf1ec4d2 | 11836 | |
572ac014 | 11837 | _ACEOF |
bf1ec4d2 | 11838 | |
33aa8fe1 | 11839 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bf1ec4d2 | 11840 | |
572ac014 MG |
11841 | # Handling of arguments. |
11842 | for ac_config_target in $ac_config_targets | |
11843 | do | |
11844 | case $ac_config_target in | |
11845 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
11846 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
11847 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
11848 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
bf1ec4d2 | 11849 | |
a0673b07 | 11850 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
572ac014 MG |
11851 | esac |
11852 | done | |
bf1ec4d2 | 11853 | |
bf1ec4d2 | 11854 | |
572ac014 MG |
11855 | # If the user did not use the arguments to specify the items to instantiate, |
11856 | # then the envvar interface is used. Set only those that are not. | |
11857 | # We use the long form for the default assignment because of an extremely | |
11858 | # bizarre bug on SunOS 4.1.3. | |
11859 | if $ac_need_defaults; then | |
11860 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11861 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
11862 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
bf1ec4d2 | 11863 | fi |
bf1ec4d2 | 11864 | |
572ac014 MG |
11865 | # Have a temporary directory for convenience. Make it in the build tree |
11866 | # simply because there is no reason against having it here, and in addition, | |
11867 | # creating and moving files from /tmp can sometimes cause problems. | |
11868 | # Hook for its removal unless debugging. | |
11869 | # Note that there is a small window in which the directory will not be cleaned: | |
11870 | # after its creation but before its name has been assigned to `$tmp'. | |
11871 | $debug || | |
11872 | { | |
11873 | tmp= | |
11874 | trap 'exit_status=$? | |
11875 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11876 | ' 0 | |
a0673b07 | 11877 | trap 'as_fn_exit 1' 1 2 13 15 |
572ac014 MG |
11878 | } |
11879 | # Create a (secure) tmp directory for tmp files. | |
bf1ec4d2 | 11880 | |
bf1ec4d2 | 11881 | { |
572ac014 MG |
11882 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
11883 | test -n "$tmp" && test -d "$tmp" | |
11884 | } || | |
11885 | { | |
11886 | tmp=./conf$$-$RANDOM | |
11887 | (umask 077 && mkdir "$tmp") | |
a0673b07 | 11888 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
572ac014 | 11889 | |
33aa8fe1 MG |
11890 | # Set up the scripts for CONFIG_FILES section. |
11891 | # No need to generate them if there are no CONFIG_FILES. | |
11892 | # This happens for instance with `./config.status config.h'. | |
572ac014 MG |
11893 | if test -n "$CONFIG_FILES"; then |
11894 | ||
9d758d39 | 11895 | |
a0673b07 MG |
11896 | ac_cr=`echo X | tr X '\015'` |
11897 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11898 | # But we know of no other shell where ac_cr would be empty at this | |
11899 | # point, so we can use a bashism as a fallback. | |
11900 | if test "x$ac_cr" = x; then | |
11901 | eval ac_cr=\$\'\\r\' | |
11902 | fi | |
33aa8fe1 MG |
11903 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11904 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
a0673b07 | 11905 | ac_cs_awk_cr='\r' |
33aa8fe1 MG |
11906 | else |
11907 | ac_cs_awk_cr=$ac_cr | |
bf1ec4d2 | 11908 | fi |
572ac014 | 11909 | |
33aa8fe1 | 11910 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
bf1ec4d2 MG |
11911 | _ACEOF |
11912 | ||
bf1ec4d2 | 11913 | |
33aa8fe1 MG |
11914 | { |
11915 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11916 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11917 | echo "_ACEOF" | |
11918 | } >conf$$subs.sh || | |
a0673b07 | 11919 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
33aa8fe1 | 11920 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
572ac014 MG |
11921 | ac_delim='%!_!# ' |
11922 | for ac_last_try in false false false false false :; do | |
33aa8fe1 | 11923 | . ./conf$$subs.sh || |
a0673b07 | 11924 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
33aa8fe1 MG |
11925 | |
11926 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11927 | if test $ac_delim_n = $ac_delim_num; then | |
572ac014 MG |
11928 | break |
11929 | elif $ac_last_try; then | |
a0673b07 | 11930 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
572ac014 MG |
11931 | else |
11932 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11933 | fi | |
bf1ec4d2 | 11934 | done |
33aa8fe1 MG |
11935 | rm -f conf$$subs.sh |
11936 | ||
11937 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11938 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11939 | _ACEOF | |
11940 | sed -n ' | |
11941 | h | |
11942 | s/^/S["/; s/!.*/"]=/ | |
11943 | p | |
11944 | g | |
11945 | s/^[^!]*!// | |
11946 | :repl | |
11947 | t repl | |
11948 | s/'"$ac_delim"'$// | |
11949 | t delim | |
11950 | :nl | |
11951 | h | |
11952 | s/\(.\{148\}\).*/\1/ | |
11953 | t more1 | |
11954 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11955 | p | |
11956 | n | |
11957 | b repl | |
11958 | :more1 | |
11959 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11960 | p | |
11961 | g | |
11962 | s/.\{148\}// | |
11963 | t nl | |
11964 | :delim | |
11965 | h | |
11966 | s/\(.\{148\}\).*/\1/ | |
11967 | t more2 | |
11968 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11969 | p | |
11970 | b | |
11971 | :more2 | |
11972 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11973 | p | |
11974 | g | |
11975 | s/.\{148\}// | |
11976 | t delim | |
11977 | ' <conf$$subs.awk | sed ' | |
11978 | /^[^""]/{ | |
11979 | N | |
11980 | s/\n// | |
11981 | } | |
11982 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11983 | rm -f conf$$subs.awk | |
11984 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11985 | _ACAWK | |
11986 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11987 | for (key in S) S_is_set[key] = 1 | |
11988 | FS = "\a" | |
bf1ec4d2 | 11989 | |
33aa8fe1 MG |
11990 | } |
11991 | { | |
11992 | line = $ 0 | |
11993 | nfields = split(line, field, "@") | |
11994 | substed = 0 | |
11995 | len = length(field[1]) | |
11996 | for (i = 2; i < nfields; i++) { | |
11997 | key = field[i] | |
11998 | keylen = length(key) | |
11999 | if (S_is_set[key]) { | |
12000 | value = S[key] | |
12001 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12002 | len += length(value) + length(field[++i]) | |
12003 | substed = 1 | |
12004 | } else | |
12005 | len += 1 + keylen | |
12006 | } | |
12007 | ||
12008 | print line | |
12009 | } | |
33eb7a7d | 12010 | |
33aa8fe1 | 12011 | _ACAWK |
bf1ec4d2 | 12012 | _ACEOF |
33aa8fe1 MG |
12013 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12014 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12015 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12016 | else | |
12017 | cat | |
12018 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
a0673b07 | 12019 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
bf1ec4d2 | 12020 | _ACEOF |
bf1ec4d2 | 12021 | |
572ac014 MG |
12022 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12023 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12024 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12025 | # (actually we leave an empty line to preserve line numbers). | |
12026 | if test "x$srcdir" = x.; then | |
12027 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12028 | s/:*\$(srcdir):*/:/ | |
12029 | s/:*\${srcdir}:*/:/ | |
12030 | s/:*@srcdir@:*/:/ | |
12031 | s/^\([^=]*=[ ]*\):*/\1/ | |
12032 | s/:*$// | |
12033 | s/^[^=]*=[ ]*$// | |
12034 | }' | |
bf1ec4d2 MG |
12035 | fi |
12036 | ||
33aa8fe1 | 12037 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
572ac014 | 12038 | fi # test -n "$CONFIG_FILES" |
bf1ec4d2 | 12039 | |
33aa8fe1 MG |
12040 | # Set up the scripts for CONFIG_HEADERS section. |
12041 | # No need to generate them if there are no CONFIG_HEADERS. | |
12042 | # This happens for instance with `./config.status Makefile'. | |
12043 | if test -n "$CONFIG_HEADERS"; then | |
12044 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
12045 | BEGIN { | |
12046 | _ACEOF | |
12047 | ||
12048 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
12049 | # here-document in config.status, that substitutes the proper values into | |
12050 | # config.h.in to produce config.h. | |
12051 | ||
12052 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
12053 | # handling of long lines. | |
12054 | ac_delim='%!_!# ' | |
12055 | for ac_last_try in false false :; do | |
12056 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
12057 | if test -z "$ac_t"; then | |
12058 | break | |
12059 | elif $ac_last_try; then | |
a0673b07 | 12060 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
33aa8fe1 MG |
12061 | else |
12062 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12063 | fi | |
12064 | done | |
12065 | ||
12066 | # For the awk script, D is an array of macro values keyed by name, | |
12067 | # likewise P contains macro parameters if any. Preserve backslash | |
12068 | # newline sequences. | |
12069 | ||
12070 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12071 | sed -n ' | |
12072 | s/.\{148\}/&'"$ac_delim"'/g | |
12073 | t rset | |
12074 | :rset | |
12075 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
12076 | t def | |
12077 | d | |
12078 | :def | |
12079 | s/\\$// | |
12080 | t bsnl | |
12081 | s/["\\]/\\&/g | |
12082 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12083 | D["\1"]=" \3"/p | |
12084 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
12085 | d | |
12086 | :bsnl | |
12087 | s/["\\]/\\&/g | |
12088 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12089 | D["\1"]=" \3\\\\\\n"\\/p | |
12090 | t cont | |
12091 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
12092 | t cont | |
12093 | d | |
12094 | :cont | |
12095 | n | |
12096 | s/.\{148\}/&'"$ac_delim"'/g | |
12097 | t clear | |
12098 | :clear | |
12099 | s/\\$// | |
12100 | t bsnlc | |
12101 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
12102 | d | |
12103 | :bsnlc | |
12104 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
12105 | b cont | |
12106 | ' <confdefs.h | sed ' | |
12107 | s/'"$ac_delim"'/"\\\ | |
12108 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
12109 | ||
12110 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12111 | for (key in D) D_is_set[key] = 1 | |
12112 | FS = "\a" | |
12113 | } | |
12114 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
12115 | line = \$ 0 | |
12116 | split(line, arg, " ") | |
12117 | if (arg[1] == "#") { | |
12118 | defundef = arg[2] | |
12119 | mac1 = arg[3] | |
12120 | } else { | |
12121 | defundef = substr(arg[1], 2) | |
12122 | mac1 = arg[2] | |
12123 | } | |
12124 | split(mac1, mac2, "(") #) | |
12125 | macro = mac2[1] | |
12126 | prefix = substr(line, 1, index(line, defundef) - 1) | |
12127 | if (D_is_set[macro]) { | |
12128 | # Preserve the white space surrounding the "#". | |
12129 | print prefix "define", macro P[macro] D[macro] | |
12130 | next | |
12131 | } else { | |
12132 | # Replace #undef with comments. This is necessary, for example, | |
12133 | # in the case of _POSIX_SOURCE, which is predefined and required | |
12134 | # on some systems where configure will not decide to define it. | |
12135 | if (defundef == "undef") { | |
12136 | print "/*", prefix defundef, macro, "*/" | |
12137 | next | |
12138 | } | |
12139 | } | |
12140 | } | |
12141 | { print } | |
12142 | _ACAWK | |
12143 | _ACEOF | |
12144 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
a0673b07 | 12145 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
33aa8fe1 MG |
12146 | fi # test -n "$CONFIG_HEADERS" |
12147 | ||
bf1ec4d2 | 12148 | |
33aa8fe1 MG |
12149 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
12150 | shift | |
12151 | for ac_tag | |
572ac014 MG |
12152 | do |
12153 | case $ac_tag in | |
12154 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12155 | esac | |
12156 | case $ac_mode$ac_tag in | |
12157 | :[FHL]*:*);; | |
a0673b07 | 12158 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
572ac014 MG |
12159 | :[FH]-) ac_tag=-:-;; |
12160 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12161 | esac | |
12162 | ac_save_IFS=$IFS | |
12163 | IFS=: | |
12164 | set x $ac_tag | |
12165 | IFS=$ac_save_IFS | |
12166 | shift | |
12167 | ac_file=$1 | |
12168 | shift | |
bf1ec4d2 | 12169 | |
572ac014 MG |
12170 | case $ac_mode in |
12171 | :L) ac_source=$1;; | |
12172 | :[FH]) | |
12173 | ac_file_inputs= | |
12174 | for ac_f | |
12175 | do | |
12176 | case $ac_f in | |
12177 | -) ac_f="$tmp/stdin";; | |
12178 | *) # Look for the file first in the build tree, then in the source tree | |
12179 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12180 | # because $ac_f cannot contain `:'. | |
12181 | test -f "$ac_f" || | |
12182 | case $ac_f in | |
12183 | [\\/$]*) false;; | |
12184 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12185 | esac || | |
a0673b07 | 12186 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
572ac014 | 12187 | esac |
33aa8fe1 | 12188 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
a0673b07 | 12189 | as_fn_append ac_file_inputs " '$ac_f'" |
572ac014 | 12190 | done |
bf1ec4d2 | 12191 | |
572ac014 MG |
12192 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
12193 | # use $as_me), people would be surprised to read: | |
12194 | # /* config.h. Generated by config.status. */ | |
33aa8fe1 MG |
12195 | configure_input='Generated from '` |
12196 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12197 | `' by configure.' | |
572ac014 MG |
12198 | if test x"$ac_file" != x-; then |
12199 | configure_input="$ac_file. $configure_input" | |
a0673b07 | 12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
33aa8fe1 | 12201 | $as_echo "$as_me: creating $ac_file" >&6;} |
572ac014 | 12202 | fi |
33aa8fe1 MG |
12203 | # Neutralize special characters interpreted by sed in replacement strings. |
12204 | case $configure_input in #( | |
12205 | *\&* | *\|* | *\\* ) | |
12206 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
12207 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12208 | *) ac_sed_conf_input=$configure_input;; | |
12209 | esac | |
572ac014 MG |
12210 | |
12211 | case $ac_tag in | |
33aa8fe1 | 12212 | *:-:* | *:-) cat >"$tmp/stdin" \ |
a0673b07 | 12213 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
572ac014 | 12214 | esac |
bf1ec4d2 | 12215 | ;; |
572ac014 MG |
12216 | esac |
12217 | ||
12218 | ac_dir=`$as_dirname -- "$ac_file" || | |
12219 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12220 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12221 | X"$ac_file" : 'X\(//\)$' \| \ | |
12222 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
33aa8fe1 | 12223 | $as_echo X"$ac_file" | |
572ac014 MG |
12224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12225 | s//\1/ | |
12226 | q | |
12227 | } | |
12228 | /^X\(\/\/\)[^/].*/{ | |
12229 | s//\1/ | |
12230 | q | |
12231 | } | |
12232 | /^X\(\/\/\)$/{ | |
12233 | s//\1/ | |
12234 | q | |
12235 | } | |
12236 | /^X\(\/\).*/{ | |
12237 | s//\1/ | |
12238 | q | |
12239 | } | |
12240 | s/.*/./; q'` | |
a0673b07 | 12241 | as_dir="$ac_dir"; as_fn_mkdir_p |
572ac014 MG |
12242 | ac_builddir=. |
12243 | ||
12244 | case "$ac_dir" in | |
12245 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12246 | *) | |
33aa8fe1 | 12247 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
572ac014 | 12248 | # A ".." for each directory in $ac_dir_suffix. |
33aa8fe1 | 12249 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
572ac014 MG |
12250 | case $ac_top_builddir_sub in |
12251 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12252 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12253 | esac ;; | |
bf1ec4d2 | 12254 | esac |
572ac014 MG |
12255 | ac_abs_top_builddir=$ac_pwd |
12256 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12257 | # for backward compatibility: | |
12258 | ac_top_builddir=$ac_top_build_prefix | |
bf1ec4d2 | 12259 | |
572ac014 MG |
12260 | case $srcdir in |
12261 | .) # We are building in place. | |
12262 | ac_srcdir=. | |
12263 | ac_top_srcdir=$ac_top_builddir_sub | |
12264 | ac_abs_top_srcdir=$ac_pwd ;; | |
12265 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
12266 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12267 | ac_top_srcdir=$srcdir | |
12268 | ac_abs_top_srcdir=$srcdir ;; | |
12269 | *) # Relative name. | |
12270 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12271 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12272 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
12273 | esac | |
12274 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
12275 | ||
12276 | ||
12277 | case $ac_mode in | |
12278 | :F) | |
12279 | # | |
12280 | # CONFIG_FILE | |
12281 | # | |
bf1ec4d2 | 12282 | |
572ac014 MG |
12283 | case $INSTALL in |
12284 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
12285 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
12286 | esac | |
12287 | ac_MKDIR_P=$MKDIR_P | |
12288 | case $MKDIR_P in | |
12289 | [\\/$]* | ?:[\\/]* ) ;; | |
12290 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12291 | esac | |
12292 | _ACEOF | |
bf1ec4d2 | 12293 | |
33aa8fe1 | 12294 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
572ac014 MG |
12295 | # If the template does not know about datarootdir, expand it. |
12296 | # FIXME: This hack should be removed a few years after 2.60. | |
12297 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
33aa8fe1 MG |
12298 | ac_sed_dataroot=' |
12299 | /datarootdir/ { | |
572ac014 MG |
12300 | p |
12301 | q | |
12302 | } | |
12303 | /@datadir@/p | |
12304 | /@docdir@/p | |
12305 | /@infodir@/p | |
12306 | /@localedir@/p | |
a0673b07 | 12307 | /@mandir@/p' |
33aa8fe1 | 12308 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
572ac014 MG |
12309 | *datarootdir*) ac_datarootdir_seen=yes;; |
12310 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
a0673b07 | 12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
33aa8fe1 | 12312 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
bf1ec4d2 | 12313 | _ACEOF |
33aa8fe1 | 12314 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
572ac014 MG |
12315 | ac_datarootdir_hack=' |
12316 | s&@datadir@&$datadir&g | |
12317 | s&@docdir@&$docdir&g | |
12318 | s&@infodir@&$infodir&g | |
12319 | s&@localedir@&$localedir&g | |
12320 | s&@mandir@&$mandir&g | |
a0673b07 | 12321 | s&\\\${datarootdir}&$datarootdir&g' ;; |
bf1ec4d2 | 12322 | esac |
572ac014 | 12323 | _ACEOF |
bf1ec4d2 | 12324 | |
572ac014 MG |
12325 | # Neutralize VPATH when `$srcdir' = `.'. |
12326 | # Shell code in configure.ac might set extrasub. | |
12327 | # FIXME: do we really want to maintain this feature? | |
33aa8fe1 MG |
12328 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12329 | ac_sed_extra="$ac_vpsub | |
572ac014 MG |
12330 | $extrasub |
12331 | _ACEOF | |
33aa8fe1 | 12332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
572ac014 MG |
12333 | :t |
12334 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
33aa8fe1 | 12335 | s|@configure_input@|$ac_sed_conf_input|;t t |
572ac014 | 12336 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
33aa8fe1 | 12337 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
572ac014 MG |
12338 | s&@srcdir@&$ac_srcdir&;t t |
12339 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12340 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12341 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12342 | s&@builddir@&$ac_builddir&;t t | |
12343 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12344 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12345 | s&@INSTALL@&$ac_INSTALL&;t t | |
12346 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
12347 | $ac_datarootdir_hack | |
33aa8fe1 MG |
12348 | " |
12349 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
a0673b07 | 12350 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bf1ec4d2 | 12351 | |
572ac014 MG |
12352 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12353 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12354 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
a0673b07 | 12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
572ac014 | 12356 | which seems to be undefined. Please make sure it is defined." >&5 |
33aa8fe1 | 12357 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
572ac014 | 12358 | which seems to be undefined. Please make sure it is defined." >&2;} |
bf1ec4d2 | 12359 | |
572ac014 MG |
12360 | rm -f "$tmp/stdin" |
12361 | case $ac_file in | |
33aa8fe1 MG |
12362 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
12363 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
12364 | esac \ | |
a0673b07 | 12365 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
572ac014 MG |
12366 | ;; |
12367 | :H) | |
12368 | # | |
12369 | # CONFIG_HEADER | |
12370 | # | |
572ac014 | 12371 | if test x"$ac_file" != x-; then |
33aa8fe1 MG |
12372 | { |
12373 | $as_echo "/* $configure_input */" \ | |
12374 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
12375 | } >"$tmp/config.h" \ | |
a0673b07 | 12376 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
33aa8fe1 | 12377 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
a0673b07 | 12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
33aa8fe1 | 12379 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
572ac014 | 12380 | else |
33aa8fe1 MG |
12381 | rm -f "$ac_file" |
12382 | mv "$tmp/config.h" "$ac_file" \ | |
a0673b07 | 12383 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
572ac014 MG |
12384 | fi |
12385 | else | |
33aa8fe1 MG |
12386 | $as_echo "/* $configure_input */" \ |
12387 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
a0673b07 | 12388 | || as_fn_error "could not create -" "$LINENO" 5 |
572ac014 | 12389 | fi |
33aa8fe1 MG |
12390 | # Compute "$ac_file"'s index in $config_headers. |
12391 | _am_arg="$ac_file" | |
572ac014 MG |
12392 | _am_stamp_count=1 |
12393 | for _am_header in $config_headers :; do | |
12394 | case $_am_header in | |
12395 | $_am_arg | $_am_arg:* ) | |
12396 | break ;; | |
12397 | * ) | |
12398 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
12399 | esac | |
12400 | done | |
12401 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
12402 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12403 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
12404 | X"$_am_arg" : 'X\(//\)$' \| \ | |
12405 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
33aa8fe1 | 12406 | $as_echo X"$_am_arg" | |
572ac014 MG |
12407 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12408 | s//\1/ | |
12409 | q | |
12410 | } | |
12411 | /^X\(\/\/\)[^/].*/{ | |
12412 | s//\1/ | |
12413 | q | |
12414 | } | |
12415 | /^X\(\/\/\)$/{ | |
12416 | s//\1/ | |
12417 | q | |
12418 | } | |
12419 | /^X\(\/\).*/{ | |
12420 | s//\1/ | |
12421 | q | |
12422 | } | |
12423 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
12424 | ;; | |
bf1ec4d2 | 12425 | |
a0673b07 | 12426 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
33aa8fe1 | 12427 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
572ac014 MG |
12428 | ;; |
12429 | esac | |
bf1ec4d2 | 12430 | |
572ac014 MG |
12431 | |
12432 | case $ac_file$ac_mode in | |
db50e572 MG |
12433 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
12434 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
12435 | # are listed without --file. Let's play safe and only enable the eval | |
12436 | # if we detect the quoting. | |
12437 | case $CONFIG_FILES in | |
12438 | *\'*) eval set x "$CONFIG_FILES" ;; | |
12439 | *) set x $CONFIG_FILES ;; | |
12440 | esac | |
12441 | shift | |
12442 | for mf | |
12443 | do | |
12444 | # Strip MF so we end up with the name of the file. | |
12445 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
12446 | # Check whether this is an Automake generated Makefile or not. | |
12447 | # We used to match only the files named `Makefile.in', but | |
12448 | # some people rename them; so instead we look at the file content. | |
12449 | # Grep'ing the first line is not enough: some people post-process | |
12450 | # each Makefile.in and add a new line on top of each file to say so. | |
12451 | # Grep'ing the whole file is not good either: AIX grep has a line | |
12452 | # limit of 2048, but all sed's we know have understand at least 4000. | |
12453 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
12454 | dirpart=`$as_dirname -- "$mf" || | |
572ac014 MG |
12455 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12456 | X"$mf" : 'X\(//\)[^/]' \| \ | |
12457 | X"$mf" : 'X\(//\)$' \| \ | |
12458 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
33aa8fe1 | 12459 | $as_echo X"$mf" | |
572ac014 MG |
12460 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12461 | s//\1/ | |
12462 | q | |
12463 | } | |
12464 | /^X\(\/\/\)[^/].*/{ | |
12465 | s//\1/ | |
12466 | q | |
12467 | } | |
12468 | /^X\(\/\/\)$/{ | |
12469 | s//\1/ | |
12470 | q | |
12471 | } | |
12472 | /^X\(\/\).*/{ | |
12473 | s//\1/ | |
12474 | q | |
12475 | } | |
12476 | s/.*/./; q'` | |
db50e572 MG |
12477 | else |
12478 | continue | |
12479 | fi | |
12480 | # Extract the definition of DEPDIR, am__include, and am__quote | |
12481 | # from the Makefile without running `make'. | |
12482 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
12483 | test -z "$DEPDIR" && continue | |
12484 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
12485 | test -z "am__include" && continue | |
12486 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
12487 | # When using ansi2knr, U may be empty or an underscore; expand it | |
12488 | U=`sed -n 's/^U = //p' < "$mf"` | |
12489 | # Find all dependency output files, they are included files with | |
12490 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
12491 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
12492 | # expansion. | |
12493 | for file in `sed -n " | |
12494 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
12495 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
12496 | # Make sure the directory exists. | |
12497 | test -f "$dirpart/$file" && continue | |
12498 | fdir=`$as_dirname -- "$file" || | |
572ac014 MG |
12499 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12500 | X"$file" : 'X\(//\)[^/]' \| \ | |
12501 | X"$file" : 'X\(//\)$' \| \ | |
12502 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
33aa8fe1 | 12503 | $as_echo X"$file" | |
572ac014 MG |
12504 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12505 | s//\1/ | |
12506 | q | |
12507 | } | |
12508 | /^X\(\/\/\)[^/].*/{ | |
12509 | s//\1/ | |
12510 | q | |
12511 | } | |
12512 | /^X\(\/\/\)$/{ | |
12513 | s//\1/ | |
12514 | q | |
12515 | } | |
12516 | /^X\(\/\).*/{ | |
12517 | s//\1/ | |
12518 | q | |
12519 | } | |
12520 | s/.*/./; q'` | |
db50e572 MG |
12521 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
12522 | # echo "creating $dirpart/$file" | |
12523 | echo '# dummy' > "$dirpart/$file" | |
12524 | done | |
572ac014 | 12525 | done |
db50e572 | 12526 | } |
572ac014 MG |
12527 | ;; |
12528 | "libtool":C) | |
bf1ec4d2 | 12529 | |
572ac014 MG |
12530 | # See if we are running on zsh, and set the options which allow our |
12531 | # commands through without removal of \ escapes. | |
12532 | if test -n "${ZSH_VERSION+set}" ; then | |
12533 | setopt NO_GLOB_SUBST | |
12534 | fi | |
bf1ec4d2 | 12535 | |
572ac014 MG |
12536 | cfgfile="${ofile}T" |
12537 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
12538 | $RM "$cfgfile" | |
bf1ec4d2 | 12539 | |
572ac014 MG |
12540 | cat <<_LT_EOF >> "$cfgfile" |
12541 | #! $SHELL | |
bf1ec4d2 | 12542 | |
572ac014 MG |
12543 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
12544 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
12545 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12546 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
12547 | # | |
12548 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
12549 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
12550 | # Written by Gordon Matzigkeit, 1996 | |
12551 | # | |
12552 | # This file is part of GNU Libtool. | |
12553 | # | |
12554 | # GNU Libtool is free software; you can redistribute it and/or | |
12555 | # modify it under the terms of the GNU General Public License as | |
12556 | # published by the Free Software Foundation; either version 2 of | |
12557 | # the License, or (at your option) any later version. | |
12558 | # | |
12559 | # As a special exception to the GNU General Public License, | |
12560 | # if you distribute this file as part of a program or library that | |
12561 | # is built using GNU Libtool, you may include this file under the | |
12562 | # same distribution terms that you use for the rest of that program. | |
12563 | # | |
12564 | # GNU Libtool is distributed in the hope that it will be useful, | |
12565 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12566 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12567 | # GNU General Public License for more details. | |
12568 | # | |
12569 | # You should have received a copy of the GNU General Public License | |
12570 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
12571 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
12572 | # obtained by writing to the Free Software Foundation, Inc., | |
12573 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
bf1ec4d2 | 12574 | |
bf1ec4d2 | 12575 | |
572ac014 MG |
12576 | # The names of the tagged configurations supported by this script. |
12577 | available_tags="" | |
bf1ec4d2 | 12578 | |
572ac014 | 12579 | # ### BEGIN LIBTOOL CONFIG |
bf1ec4d2 | 12580 | |
572ac014 MG |
12581 | # Which release of libtool.m4 was used? |
12582 | macro_version=$macro_version | |
12583 | macro_revision=$macro_revision | |
bf1ec4d2 | 12584 | |
572ac014 MG |
12585 | # Whether or not to build shared libraries. |
12586 | build_libtool_libs=$enable_shared | |
bf1ec4d2 | 12587 | |
572ac014 MG |
12588 | # Whether or not to build static libraries. |
12589 | build_old_libs=$enable_static | |
bf1ec4d2 | 12590 | |
572ac014 MG |
12591 | # What type of objects to build. |
12592 | pic_mode=$pic_mode | |
bf1ec4d2 | 12593 | |
572ac014 MG |
12594 | # Whether or not to optimize for fast installation. |
12595 | fast_install=$enable_fast_install | |
29135474 | 12596 | |
572ac014 MG |
12597 | # The host system. |
12598 | host_alias=$host_alias | |
12599 | host=$host | |
12600 | host_os=$host_os | |
7460295f | 12601 | |
572ac014 MG |
12602 | # The build system. |
12603 | build_alias=$build_alias | |
12604 | build=$build | |
12605 | build_os=$build_os | |
7460295f | 12606 | |
572ac014 MG |
12607 | # A sed program that does not truncate output. |
12608 | SED=$lt_SED | |
7460295f | 12609 | |
572ac014 MG |
12610 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
12611 | Xsed="\$SED -e 1s/^X//" | |
7460295f | 12612 | |
572ac014 MG |
12613 | # A grep program that handles long lines. |
12614 | GREP=$lt_GREP | |
7460295f | 12615 | |
572ac014 MG |
12616 | # An ERE matcher. |
12617 | EGREP=$lt_EGREP | |
7460295f | 12618 | |
572ac014 MG |
12619 | # A literal string matcher. |
12620 | FGREP=$lt_FGREP | |
7460295f | 12621 | |
572ac014 MG |
12622 | # A BSD- or MS-compatible name lister. |
12623 | NM=$lt_NM | |
7460295f | 12624 | |
572ac014 MG |
12625 | # Whether we need soft or hard links. |
12626 | LN_S=$lt_LN_S | |
7460295f | 12627 | |
572ac014 MG |
12628 | # What is the maximum length of a command? |
12629 | max_cmd_len=$max_cmd_len | |
7460295f | 12630 | |
572ac014 MG |
12631 | # Object file suffix (normally "o"). |
12632 | objext=$ac_objext | |
7460295f | 12633 | |
572ac014 MG |
12634 | # Executable file suffix (normally ""). |
12635 | exeext=$exeext | |
7460295f | 12636 | |
572ac014 MG |
12637 | # whether the shell understands "unset". |
12638 | lt_unset=$lt_unset | |
7460295f | 12639 | |
572ac014 MG |
12640 | # turn spaces into newlines. |
12641 | SP2NL=$lt_lt_SP2NL | |
7460295f | 12642 | |
572ac014 MG |
12643 | # turn newlines into spaces. |
12644 | NL2SP=$lt_lt_NL2SP | |
7460295f | 12645 | |
572ac014 MG |
12646 | # How to create reloadable object files. |
12647 | reload_flag=$lt_reload_flag | |
12648 | reload_cmds=$lt_reload_cmds | |
7460295f | 12649 | |
572ac014 MG |
12650 | # An object symbol dumper. |
12651 | OBJDUMP=$lt_OBJDUMP | |
7460295f | 12652 | |
572ac014 MG |
12653 | # Method to check whether dependent libraries are shared objects. |
12654 | deplibs_check_method=$lt_deplibs_check_method | |
7460295f | 12655 | |
572ac014 MG |
12656 | # Command to use when deplibs_check_method == "file_magic". |
12657 | file_magic_cmd=$lt_file_magic_cmd | |
7460295f | 12658 | |
572ac014 MG |
12659 | # The archiver. |
12660 | AR=$lt_AR | |
12661 | AR_FLAGS=$lt_AR_FLAGS | |
7460295f | 12662 | |
572ac014 MG |
12663 | # A symbol stripping program. |
12664 | STRIP=$lt_STRIP | |
3a0490f9 | 12665 | |
572ac014 MG |
12666 | # Commands used to install an old-style archive. |
12667 | RANLIB=$lt_RANLIB | |
12668 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
12669 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
7460295f | 12670 | |
572ac014 MG |
12671 | # A C compiler. |
12672 | LTCC=$lt_CC | |
7460295f | 12673 | |
572ac014 MG |
12674 | # LTCC compiler flags. |
12675 | LTCFLAGS=$lt_CFLAGS | |
7460295f | 12676 | |
572ac014 MG |
12677 | # Take the output of nm and produce a listing of raw symbols and C names. |
12678 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
7460295f | 12679 | |
572ac014 MG |
12680 | # Transform the output of nm in a proper C declaration. |
12681 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
7460295f | 12682 | |
572ac014 MG |
12683 | # Transform the output of nm in a C name address pair. |
12684 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
7460295f | 12685 | |
572ac014 MG |
12686 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
12687 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
7460295f | 12688 | |
572ac014 MG |
12689 | # The name of the directory that contains temporary libtool files. |
12690 | objdir=$objdir | |
7460295f | 12691 | |
572ac014 MG |
12692 | # Shell to use when invoking shell scripts. |
12693 | SHELL=$lt_SHELL | |
7460295f | 12694 | |
572ac014 MG |
12695 | # An echo program that does not interpret backslashes. |
12696 | ECHO=$lt_ECHO | |
7460295f | 12697 | |
572ac014 MG |
12698 | # Used to examine libraries when file_magic_cmd begins with "file". |
12699 | MAGIC_CMD=$MAGIC_CMD | |
7460295f | 12700 | |
572ac014 MG |
12701 | # Must we lock files when doing compilation? |
12702 | need_locks=$lt_need_locks | |
7460295f | 12703 | |
572ac014 MG |
12704 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
12705 | DSYMUTIL=$lt_DSYMUTIL | |
7460295f | 12706 | |
572ac014 MG |
12707 | # Tool to change global to local symbols on Mac OS X. |
12708 | NMEDIT=$lt_NMEDIT | |
7460295f | 12709 | |
572ac014 MG |
12710 | # Tool to manipulate fat objects and archives on Mac OS X. |
12711 | LIPO=$lt_LIPO | |
7460295f | 12712 | |
572ac014 MG |
12713 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
12714 | OTOOL=$lt_OTOOL | |
7460295f | 12715 | |
572ac014 MG |
12716 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
12717 | OTOOL64=$lt_OTOOL64 | |
7460295f | 12718 | |
572ac014 MG |
12719 | # Old archive suffix (normally "a"). |
12720 | libext=$libext | |
7460295f | 12721 | |
572ac014 MG |
12722 | # Shared library suffix (normally ".so"). |
12723 | shrext_cmds=$lt_shrext_cmds | |
7460295f | 12724 | |
572ac014 MG |
12725 | # The commands to extract the exported symbol list from a shared archive. |
12726 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
7460295f | 12727 | |
572ac014 MG |
12728 | # Variables whose values should be saved in libtool wrapper scripts and |
12729 | # restored at link time. | |
12730 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
7460295f | 12731 | |
572ac014 MG |
12732 | # Do we need the "lib" prefix for modules? |
12733 | need_lib_prefix=$need_lib_prefix | |
12734 | ||
12735 | # Do we need a version for libraries? | |
12736 | need_version=$need_version | |
12737 | ||
12738 | # Library versioning type. | |
12739 | version_type=$version_type | |
12740 | ||
12741 | # Shared library runtime path variable. | |
12742 | runpath_var=$runpath_var | |
12743 | ||
12744 | # Shared library path variable. | |
12745 | shlibpath_var=$shlibpath_var | |
12746 | ||
12747 | # Is shlibpath searched before the hard-coded library search path? | |
12748 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
12749 | ||
12750 | # Format of library name prefix. | |
12751 | libname_spec=$lt_libname_spec | |
7460295f | 12752 | |
572ac014 MG |
12753 | # List of archive names. First name is the real one, the rest are links. |
12754 | # The last name is the one that the linker finds with -lNAME | |
12755 | library_names_spec=$lt_library_names_spec | |
7460295f | 12756 | |
572ac014 MG |
12757 | # The coded name of the library, if different from the real name. |
12758 | soname_spec=$lt_soname_spec | |
7460295f | 12759 | |
572ac014 MG |
12760 | # Command to use after installation of a shared archive. |
12761 | postinstall_cmds=$lt_postinstall_cmds | |
7460295f | 12762 | |
572ac014 MG |
12763 | # Command to use after uninstallation of a shared archive. |
12764 | postuninstall_cmds=$lt_postuninstall_cmds | |
7460295f | 12765 | |
572ac014 MG |
12766 | # Commands used to finish a libtool library installation in a directory. |
12767 | finish_cmds=$lt_finish_cmds | |
7460295f | 12768 | |
572ac014 MG |
12769 | # As "finish_cmds", except a single script fragment to be evaled but |
12770 | # not shown. | |
12771 | finish_eval=$lt_finish_eval | |
7460295f | 12772 | |
572ac014 MG |
12773 | # Whether we should hardcode library paths into libraries. |
12774 | hardcode_into_libs=$hardcode_into_libs | |
7460295f | 12775 | |
572ac014 MG |
12776 | # Compile-time system search path for libraries. |
12777 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
7460295f | 12778 | |
572ac014 MG |
12779 | # Run-time system search path for libraries. |
12780 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
7460295f | 12781 | |
572ac014 MG |
12782 | # Whether dlopen is supported. |
12783 | dlopen_support=$enable_dlopen | |
7460295f | 12784 | |
572ac014 MG |
12785 | # Whether dlopen of programs is supported. |
12786 | dlopen_self=$enable_dlopen_self | |
3a0490f9 | 12787 | |
572ac014 MG |
12788 | # Whether dlopen of statically linked programs is supported. |
12789 | dlopen_self_static=$enable_dlopen_self_static | |
3a0490f9 | 12790 | |
572ac014 MG |
12791 | # Commands to strip libraries. |
12792 | old_striplib=$lt_old_striplib | |
12793 | striplib=$lt_striplib | |
3a0490f9 | 12794 | |
7460295f | 12795 | |
572ac014 MG |
12796 | # The linker used to build libraries. |
12797 | LD=$lt_LD | |
7460295f | 12798 | |
572ac014 MG |
12799 | # Commands used to build an old-style archive. |
12800 | old_archive_cmds=$lt_old_archive_cmds | |
7460295f | 12801 | |
572ac014 MG |
12802 | # A language specific compiler. |
12803 | CC=$lt_compiler | |
7460295f | 12804 | |
572ac014 MG |
12805 | # Is the compiler the GNU compiler? |
12806 | with_gcc=$GCC | |
7460295f | 12807 | |
572ac014 MG |
12808 | # Compiler flag to turn off builtin functions. |
12809 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
7460295f | 12810 | |
572ac014 MG |
12811 | # How to pass a linker flag through the compiler. |
12812 | wl=$lt_lt_prog_compiler_wl | |
bdd01e84 | 12813 | |
572ac014 MG |
12814 | # Additional compiler flags for building library objects. |
12815 | pic_flag=$lt_lt_prog_compiler_pic | |
7460295f | 12816 | |
572ac014 MG |
12817 | # Compiler flag to prevent dynamic linking. |
12818 | link_static_flag=$lt_lt_prog_compiler_static | |
7460295f | 12819 | |
572ac014 MG |
12820 | # Does compiler simultaneously support -c and -o options? |
12821 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
7460295f | 12822 | |
572ac014 MG |
12823 | # Whether or not to add -lc for building shared libraries. |
12824 | build_libtool_need_lc=$archive_cmds_need_lc | |
7460295f | 12825 | |
572ac014 MG |
12826 | # Whether or not to disallow shared libs when runtime libs are static. |
12827 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
7460295f | 12828 | |
572ac014 MG |
12829 | # Compiler flag to allow reflexive dlopens. |
12830 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
7460295f | 12831 | |
572ac014 MG |
12832 | # Compiler flag to generate shared objects directly from archives. |
12833 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
7460295f | 12834 | |
572ac014 MG |
12835 | # Whether the compiler copes with passing no objects directly. |
12836 | compiler_needs_object=$lt_compiler_needs_object | |
7460295f | 12837 | |
572ac014 MG |
12838 | # Create an old-style archive from a shared archive. |
12839 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
7460295f | 12840 | |
572ac014 MG |
12841 | # Create a temporary old-style archive to link instead of a shared archive. |
12842 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
7460295f | 12843 | |
572ac014 MG |
12844 | # Commands used to build a shared archive. |
12845 | archive_cmds=$lt_archive_cmds | |
12846 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
7460295f | 12847 | |
572ac014 MG |
12848 | # Commands used to build a loadable module if different from building |
12849 | # a shared archive. | |
12850 | module_cmds=$lt_module_cmds | |
12851 | module_expsym_cmds=$lt_module_expsym_cmds | |
7460295f | 12852 | |
572ac014 MG |
12853 | # Whether we are building with GNU ld or not. |
12854 | with_gnu_ld=$lt_with_gnu_ld | |
7460295f | 12855 | |
572ac014 MG |
12856 | # Flag that allows shared libraries with undefined symbols to be built. |
12857 | allow_undefined_flag=$lt_allow_undefined_flag | |
7460295f | 12858 | |
572ac014 MG |
12859 | # Flag that enforces no undefined symbols. |
12860 | no_undefined_flag=$lt_no_undefined_flag | |
7460295f | 12861 | |
572ac014 MG |
12862 | # Flag to hardcode \$libdir into a binary during linking. |
12863 | # This must work even if \$libdir does not exist | |
12864 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
7460295f | 12865 | |
572ac014 MG |
12866 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
12867 | # during linking. This must work even if \$libdir does not exist. | |
12868 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
7460295f | 12869 | |
572ac014 MG |
12870 | # Whether we need a single "-rpath" flag with a separated argument. |
12871 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
7460295f | 12872 | |
572ac014 MG |
12873 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
12874 | # DIR into the resulting binary. | |
12875 | hardcode_direct=$hardcode_direct | |
7460295f | 12876 | |
572ac014 MG |
12877 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
12878 | # DIR into the resulting binary and the resulting library dependency is | |
12879 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
12880 | # library is relocated. | |
12881 | hardcode_direct_absolute=$hardcode_direct_absolute | |
7460295f | 12882 | |
572ac014 MG |
12883 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
12884 | # into the resulting binary. | |
12885 | hardcode_minus_L=$hardcode_minus_L | |
7460295f | 12886 | |
572ac014 MG |
12887 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
12888 | # into the resulting binary. | |
12889 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
7460295f | 12890 | |
572ac014 MG |
12891 | # Set to "yes" if building a shared library automatically hardcodes DIR |
12892 | # into the library and all subsequent libraries and executables linked | |
12893 | # against it. | |
12894 | hardcode_automatic=$hardcode_automatic | |
12895 | ||
12896 | # Set to yes if linker adds runtime paths of dependent libraries | |
12897 | # to runtime path list. | |
12898 | inherit_rpath=$inherit_rpath | |
7460295f | 12899 | |
572ac014 MG |
12900 | # Whether libtool must link a program against all its dependency libraries. |
12901 | link_all_deplibs=$link_all_deplibs | |
7460295f | 12902 | |
572ac014 MG |
12903 | # Fix the shell variable \$srcfile for the compiler. |
12904 | fix_srcfile_path=$lt_fix_srcfile_path | |
7460295f | 12905 | |
572ac014 MG |
12906 | # Set to "yes" if exported symbols are required. |
12907 | always_export_symbols=$always_export_symbols | |
7460295f | 12908 | |
572ac014 MG |
12909 | # The commands to list exported symbols. |
12910 | export_symbols_cmds=$lt_export_symbols_cmds | |
7460295f | 12911 | |
572ac014 MG |
12912 | # Symbols that should not be listed in the preloaded symbols. |
12913 | exclude_expsyms=$lt_exclude_expsyms | |
7460295f | 12914 | |
572ac014 MG |
12915 | # Symbols that must always be exported. |
12916 | include_expsyms=$lt_include_expsyms | |
7460295f | 12917 | |
572ac014 MG |
12918 | # Commands necessary for linking programs (against libraries) with templates. |
12919 | prelink_cmds=$lt_prelink_cmds | |
7460295f | 12920 | |
572ac014 MG |
12921 | # Specify filename containing input files. |
12922 | file_list_spec=$lt_file_list_spec | |
3a0490f9 | 12923 | |
572ac014 MG |
12924 | # How to hardcode a shared library path into an executable. |
12925 | hardcode_action=$hardcode_action | |
7460295f | 12926 | |
572ac014 | 12927 | # ### END LIBTOOL CONFIG |
3a0490f9 | 12928 | |
572ac014 | 12929 | _LT_EOF |
7460295f | 12930 | |
572ac014 MG |
12931 | case $host_os in |
12932 | aix3*) | |
12933 | cat <<\_LT_EOF >> "$cfgfile" | |
12934 | # AIX sometimes has problems with the GCC collect2 program. For some | |
12935 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
12936 | # vanish in a puff of smoke. | |
12937 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
12938 | COLLECT_NAMES= | |
12939 | export COLLECT_NAMES | |
7460295f | 12940 | fi |
572ac014 MG |
12941 | _LT_EOF |
12942 | ;; | |
12943 | esac | |
7460295f | 12944 | |
7460295f | 12945 | |
572ac014 | 12946 | ltmain="$ac_aux_dir/ltmain.sh" |
3a0490f9 | 12947 | |
3a0490f9 | 12948 | |
572ac014 MG |
12949 | # We use sed instead of cat because bash on DJGPP gets confused if |
12950 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
12951 | # text mode, it properly converts lines to CR/LF. This bash problem | |
12952 | # is reportedly fixed, but why not run on old versions too? | |
12953 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
12954 | || (rm -f "$cfgfile"; exit 1) | |
3a0490f9 | 12955 | |
572ac014 MG |
12956 | case $xsi_shell in |
12957 | yes) | |
12958 | cat << \_LT_EOF >> "$cfgfile" | |
7460295f | 12959 | |
572ac014 MG |
12960 | # func_dirname file append nondir_replacement |
12961 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
12962 | # otherwise set result to NONDIR_REPLACEMENT. | |
12963 | func_dirname () | |
12964 | { | |
12965 | case ${1} in | |
12966 | */*) func_dirname_result="${1%/*}${2}" ;; | |
12967 | * ) func_dirname_result="${3}" ;; | |
12968 | esac | |
3a0490f9 | 12969 | } |
3a0490f9 | 12970 | |
572ac014 MG |
12971 | # func_basename file |
12972 | func_basename () | |
12973 | { | |
12974 | func_basename_result="${1##*/}" | |
12975 | } | |
3a0490f9 | 12976 | |
572ac014 MG |
12977 | # func_dirname_and_basename file append nondir_replacement |
12978 | # perform func_basename and func_dirname in a single function | |
12979 | # call: | |
12980 | # dirname: Compute the dirname of FILE. If nonempty, | |
12981 | # add APPEND to the result, otherwise set result | |
12982 | # to NONDIR_REPLACEMENT. | |
12983 | # value returned in "$func_dirname_result" | |
12984 | # basename: Compute filename of FILE. | |
12985 | # value retuned in "$func_basename_result" | |
12986 | # Implementation must be kept synchronized with func_dirname | |
12987 | # and func_basename. For efficiency, we do not delegate to | |
12988 | # those functions but instead duplicate the functionality here. | |
12989 | func_dirname_and_basename () | |
12990 | { | |
12991 | case ${1} in | |
12992 | */*) func_dirname_result="${1%/*}${2}" ;; | |
12993 | * ) func_dirname_result="${3}" ;; | |
7460295f | 12994 | esac |
572ac014 MG |
12995 | func_basename_result="${1##*/}" |
12996 | } | |
12997 | ||
12998 | # func_stripname prefix suffix name | |
12999 | # strip PREFIX and SUFFIX off of NAME. | |
13000 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13001 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13002 | # dot (in which case that matches only a dot). | |
13003 | func_stripname () | |
13004 | { | |
13005 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
13006 | # positional parameters, so assign one to ordinary parameter first. | |
13007 | func_stripname_result=${3} | |
13008 | func_stripname_result=${func_stripname_result#"${1}"} | |
13009 | func_stripname_result=${func_stripname_result%"${2}"} | |
13010 | } | |
13011 | ||
13012 | # func_opt_split | |
13013 | func_opt_split () | |
13014 | { | |
13015 | func_opt_split_opt=${1%%=*} | |
13016 | func_opt_split_arg=${1#*=} | |
13017 | } | |
13018 | ||
13019 | # func_lo2o object | |
13020 | func_lo2o () | |
13021 | { | |
13022 | case ${1} in | |
13023 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
13024 | *) func_lo2o_result=${1} ;; | |
7460295f | 13025 | esac |
572ac014 | 13026 | } |
7460295f | 13027 | |
572ac014 MG |
13028 | # func_xform libobj-or-source |
13029 | func_xform () | |
13030 | { | |
13031 | func_xform_result=${1%.*}.lo | |
13032 | } | |
7460295f | 13033 | |
572ac014 MG |
13034 | # func_arith arithmetic-term... |
13035 | func_arith () | |
13036 | { | |
13037 | func_arith_result=$(( $* )) | |
13038 | } | |
7460295f | 13039 | |
572ac014 MG |
13040 | # func_len string |
13041 | # STRING may not start with a hyphen. | |
13042 | func_len () | |
13043 | { | |
13044 | func_len_result=${#1} | |
13045 | } | |
13046 | ||
13047 | _LT_EOF | |
7460295f | 13048 | ;; |
572ac014 MG |
13049 | *) # Bourne compatible functions. |
13050 | cat << \_LT_EOF >> "$cfgfile" | |
7460295f | 13051 | |
572ac014 MG |
13052 | # func_dirname file append nondir_replacement |
13053 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13054 | # otherwise set result to NONDIR_REPLACEMENT. | |
13055 | func_dirname () | |
13056 | { | |
13057 | # Extract subdirectory from the argument. | |
13058 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
13059 | if test "X$func_dirname_result" = "X${1}"; then | |
13060 | func_dirname_result="${3}" | |
13061 | else | |
13062 | func_dirname_result="$func_dirname_result${2}" | |
13063 | fi | |
13064 | } | |
7460295f | 13065 | |
572ac014 MG |
13066 | # func_basename file |
13067 | func_basename () | |
13068 | { | |
13069 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
13070 | } | |
7460295f | 13071 | |
7460295f | 13072 | |
572ac014 MG |
13073 | # func_stripname prefix suffix name |
13074 | # strip PREFIX and SUFFIX off of NAME. | |
13075 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13076 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13077 | # dot (in which case that matches only a dot). | |
13078 | # func_strip_suffix prefix name | |
13079 | func_stripname () | |
13080 | { | |
13081 | case ${2} in | |
13082 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
13083 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
13084 | *) func_stripname_result=`$ECHO "X${3}" \ | |
13085 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
13086 | esac | |
13087 | } | |
13088 | ||
13089 | # sed scripts: | |
13090 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
13091 | my_sed_long_arg='1s/^-[^=]*=//' | |
13092 | ||
13093 | # func_opt_split | |
13094 | func_opt_split () | |
13095 | { | |
13096 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
13097 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
13098 | } | |
7460295f | 13099 | |
572ac014 MG |
13100 | # func_lo2o object |
13101 | func_lo2o () | |
13102 | { | |
13103 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
13104 | } | |
7460295f | 13105 | |
572ac014 MG |
13106 | # func_xform libobj-or-source |
13107 | func_xform () | |
13108 | { | |
13109 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
13110 | } | |
7460295f | 13111 | |
572ac014 MG |
13112 | # func_arith arithmetic-term... |
13113 | func_arith () | |
13114 | { | |
13115 | func_arith_result=`expr "$@"` | |
13116 | } | |
7460295f | 13117 | |
572ac014 MG |
13118 | # func_len string |
13119 | # STRING may not start with a hyphen. | |
13120 | func_len () | |
13121 | { | |
13122 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
7460295f | 13123 | } |
572ac014 MG |
13124 | |
13125 | _LT_EOF | |
7460295f | 13126 | esac |
7460295f | 13127 | |
572ac014 MG |
13128 | case $lt_shell_append in |
13129 | yes) | |
13130 | cat << \_LT_EOF >> "$cfgfile" | |
7460295f | 13131 | |
572ac014 MG |
13132 | # func_append var value |
13133 | # Append VALUE to the end of shell variable VAR. | |
13134 | func_append () | |
13135 | { | |
13136 | eval "$1+=\$2" | |
13137 | } | |
13138 | _LT_EOF | |
13139 | ;; | |
13140 | *) | |
13141 | cat << \_LT_EOF >> "$cfgfile" | |
7460295f | 13142 | |
572ac014 MG |
13143 | # func_append var value |
13144 | # Append VALUE to the end of shell variable VAR. | |
13145 | func_append () | |
13146 | { | |
13147 | eval "$1=\$$1\$2" | |
13148 | } | |
7460295f | 13149 | |
572ac014 MG |
13150 | _LT_EOF |
13151 | ;; | |
7460295f MG |
13152 | esac |
13153 | ||
13154 | ||
572ac014 MG |
13155 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
13156 | || (rm -f "$cfgfile"; exit 1) | |
13157 | ||
13158 | mv -f "$cfgfile" "$ofile" || | |
13159 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
13160 | chmod +x "$ofile" | |
13161 | ||
7460295f MG |
13162 | ;; |
13163 | ||
13164 | esac | |
13165 | done # for ac_tag | |
13166 | ||
13167 | ||
a0673b07 | 13168 | as_fn_exit 0 |
7460295f | 13169 | _ACEOF |
7460295f MG |
13170 | ac_clean_files=$ac_clean_files_save |
13171 | ||
33aa8fe1 | 13172 | test $ac_write_fail = 0 || |
a0673b07 | 13173 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
33aa8fe1 | 13174 | |
7460295f MG |
13175 | |
13176 | # configure is writing to config.log, and then calls config.status. | |
13177 | # config.status does its own redirection, appending to config.log. | |
13178 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13179 | # by configure, so config.status won't be able to write to it; its | |
13180 | # output is simply discarded. So we exec the FD to /dev/null, | |
13181 | # effectively closing config.log, so it can be properly (re)opened and | |
13182 | # appended to by config.status. When coming back to configure, we | |
13183 | # need to make the FD available again. | |
13184 | if test "$no_create" != yes; then | |
13185 | ac_cs_success=: | |
13186 | ac_config_status_args= | |
13187 | test "$silent" = yes && | |
13188 | ac_config_status_args="$ac_config_status_args --quiet" | |
13189 | exec 5>/dev/null | |
13190 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13191 | exec 5>>config.log | |
13192 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13193 | # would make configure fail if this is the last instruction. | |
a0673b07 | 13194 | $ac_cs_success || as_fn_exit $? |
7460295f | 13195 | fi |
33aa8fe1 | 13196 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
a0673b07 | 13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
33aa8fe1 MG |
13198 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
13199 | fi | |
7460295f | 13200 |