Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
252b5132 RH |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
6bf9431b | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6bf9431b BE |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6bf9431b BE |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
6bf9431b | 31 | fi |
6bf9431b | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
6bf9431b BE |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
6bf9431b BE |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6bf9431b | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
6bf9431b | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
6bf9431b | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
6bf9431b | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bf9431b BE |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bf9431b BE |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
6bf9431b | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
6bf9431b BE |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
6bf9431b | 410 | |
0ab6f085 AM |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
1b9750d6 | 417 | |
6bf9431b | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
6bf9431b | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
6bf9431b | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
6bf9431b | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
6bf9431b | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
6bf9431b BE |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
6bf9431b BE |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
6bf9431b BE |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
6bf9431b | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
6bf9431b | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
0ab6f085 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
0ab6f085 | 483 | fi |
6bf9431b BE |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
6bf9431b BE |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
6bf9431b BE |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
6bf9431b BE |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
d7040cdb SE |
527 | |
528 | # Check that we are running under the correct shell. | |
529 | SHELL=${CONFIG_SHELL-/bin/sh} | |
530 | ||
531 | case X$lt_ECHO in | |
532 | X*--fallback-echo) | |
533 | # Remove one level of quotation (which was required for Make). | |
534 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
535 | ;; | |
536 | esac | |
537 | ||
538 | ECHO=${lt_ECHO-echo} | |
539 | if test "X$1" = X--no-reexec; then | |
540 | # Discard the --no-reexec flag, and continue. | |
541 | shift | |
542 | elif test "X$1" = X--fallback-echo; then | |
543 | # Avoid inline document here, it may be left over | |
544 | : | |
545 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
546 | # Yippee, $ECHO works! | |
547 | : | |
548 | else | |
549 | # Restart under the correct shell. | |
550 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
551 | fi | |
552 | ||
553 | if test "X$1" = X--fallback-echo; then | |
554 | # used as fallback echo | |
555 | shift | |
556 | cat <<_LT_EOF | |
557 | $* | |
558 | _LT_EOF | |
559 | exit 0 | |
560 | fi | |
561 | ||
562 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
563 | # if CDPATH is set. | |
564 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
565 | ||
566 | if test -z "$lt_ECHO"; then | |
567 | if test "X${echo_test_string+set}" != Xset; then | |
568 | # find a string as large as possible, as long as the shell can cope with it | |
569 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
570 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
571 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
572 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
573 | then | |
574 | break | |
575 | fi | |
576 | done | |
577 | fi | |
578 | ||
579 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
580 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
581 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
582 | : | |
583 | else | |
584 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
585 | # backslashes. This makes it impossible to quote backslashes using | |
586 | # echo "$something" | sed 's/\\/\\\\/g' | |
587 | # | |
588 | # So, first we look for a working echo in the user's PATH. | |
589 | ||
590 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
591 | for dir in $PATH /usr/ucb; do | |
592 | IFS="$lt_save_ifs" | |
593 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
594 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
595 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
596 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
597 | ECHO="$dir/echo" | |
598 | break | |
599 | fi | |
600 | done | |
601 | IFS="$lt_save_ifs" | |
602 | ||
603 | if test "X$ECHO" = Xecho; then | |
604 | # We didn't find a better echo, so look for alternatives. | |
605 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
606 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
607 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
608 | # This shell has a builtin print -r that does the trick. | |
609 | ECHO='print -r' | |
610 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
611 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
612 | # If we have ksh, try running configure again with it. | |
613 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
614 | export ORIGINAL_CONFIG_SHELL | |
615 | CONFIG_SHELL=/bin/ksh | |
616 | export CONFIG_SHELL | |
617 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
618 | else | |
619 | # Try using printf. | |
620 | ECHO='printf %s\n' | |
621 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
622 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
623 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
624 | # Cool, printf works | |
625 | : | |
626 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
627 | test "X$echo_testing_string" = 'X\t' && | |
628 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
629 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
630 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
631 | export CONFIG_SHELL | |
632 | SHELL="$CONFIG_SHELL" | |
633 | export SHELL | |
634 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
635 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
636 | test "X$echo_testing_string" = 'X\t' && | |
637 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
638 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
640 | else | |
641 | # maybe with a smaller string... | |
642 | prev=: | |
643 | ||
644 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
645 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
646 | then | |
647 | break | |
648 | fi | |
649 | prev="$cmd" | |
650 | done | |
651 | ||
652 | if test "$prev" != 'sed 50q "$0"'; then | |
653 | echo_test_string=`eval $prev` | |
654 | export echo_test_string | |
655 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
656 | else | |
657 | # Oops. We lost completely, so just stick with echo. | |
658 | ECHO=echo | |
659 | fi | |
660 | fi | |
661 | fi | |
662 | fi | |
663 | fi | |
664 | fi | |
665 | ||
666 | # Copy echo and quote the copy suitably for passing to libtool from | |
667 | # the Makefile, instead of quoting the original, which is used later. | |
668 | lt_ECHO=$ECHO | |
669 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
670 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
671 | fi | |
672 | ||
673 | ||
674 | ||
675 | ||
81ecdfbb RW |
676 | exec 7<&0 </dev/null 6>&1 |
677 | ||
6bf9431b BE |
678 | # Name of the host. |
679 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
680 | # so uname gets run too. | |
681 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 682 | |
6bf9431b BE |
683 | # |
684 | # Initializations. | |
685 | # | |
252b5132 | 686 | ac_default_prefix=/usr/local |
81ecdfbb | 687 | ac_clean_files= |
6bf9431b | 688 | ac_config_libobj_dir=. |
81ecdfbb | 689 | LIBOBJS= |
6bf9431b BE |
690 | cross_compiling=no |
691 | subdirs= | |
692 | MFLAGS= | |
693 | MAKEFLAGS= | |
0ab6f085 | 694 | |
6bf9431b BE |
695 | # Identity of this package. |
696 | PACKAGE_NAME= | |
697 | PACKAGE_TARNAME= | |
698 | PACKAGE_VERSION= | |
699 | PACKAGE_STRING= | |
700 | PACKAGE_BUGREPORT= | |
81ecdfbb | 701 | PACKAGE_URL= |
6bf9431b BE |
702 | |
703 | ac_unique_file="gprof.c" | |
704 | # Factoring default headers for most tests. | |
705 | ac_includes_default="\ | |
706 | #include <stdio.h> | |
81ecdfbb | 707 | #ifdef HAVE_SYS_TYPES_H |
6bf9431b BE |
708 | # include <sys/types.h> |
709 | #endif | |
81ecdfbb | 710 | #ifdef HAVE_SYS_STAT_H |
6bf9431b BE |
711 | # include <sys/stat.h> |
712 | #endif | |
81ecdfbb | 713 | #ifdef STDC_HEADERS |
6bf9431b BE |
714 | # include <stdlib.h> |
715 | # include <stddef.h> | |
716 | #else | |
81ecdfbb | 717 | # ifdef HAVE_STDLIB_H |
6bf9431b BE |
718 | # include <stdlib.h> |
719 | # endif | |
720 | #endif | |
81ecdfbb RW |
721 | #ifdef HAVE_STRING_H |
722 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
6bf9431b BE |
723 | # include <memory.h> |
724 | # endif | |
725 | # include <string.h> | |
726 | #endif | |
81ecdfbb | 727 | #ifdef HAVE_STRINGS_H |
6bf9431b BE |
728 | # include <strings.h> |
729 | #endif | |
81ecdfbb | 730 | #ifdef HAVE_INTTYPES_H |
6bf9431b | 731 | # include <inttypes.h> |
6bf9431b | 732 | #endif |
81ecdfbb RW |
733 | #ifdef HAVE_STDINT_H |
734 | # include <stdint.h> | |
735 | #endif | |
736 | #ifdef HAVE_UNISTD_H | |
6bf9431b BE |
737 | # include <unistd.h> |
738 | #endif" | |
739 | ||
81ecdfbb RW |
740 | ac_subst_vars='am__EXEEXT_FALSE |
741 | am__EXEEXT_TRUE | |
742 | LTLIBOBJS | |
743 | LIBOBJS | |
744 | NO_WERROR | |
745 | WARN_CFLAGS | |
746 | GENINSRC_NEVER_FALSE | |
747 | GENINSRC_NEVER_TRUE | |
748 | MAINT | |
749 | MAINTAINER_MODE_FALSE | |
750 | MAINTAINER_MODE_TRUE | |
751 | MSGMERGE | |
752 | MSGFMT | |
753 | MKINSTALLDIRS | |
754 | CATOBJEXT | |
755 | GENCAT | |
756 | INSTOBJEXT | |
757 | DATADIRNAME | |
758 | CATALOGS | |
759 | POSUB | |
760 | GMSGFMT | |
761 | XGETTEXT | |
762 | INCINTL | |
763 | LIBINTL_DEP | |
764 | LIBINTL | |
765 | USE_NLS | |
766 | OTOOL64 | |
767 | OTOOL | |
768 | LIPO | |
769 | NMEDIT | |
770 | DSYMUTIL | |
771 | lt_ECHO | |
772 | RANLIB | |
773 | AR | |
774 | OBJDUMP | |
775 | LN_S | |
776 | NM | |
777 | ac_ct_DUMPBIN | |
778 | DUMPBIN | |
779 | LD | |
780 | FGREP | |
781 | SED | |
782 | LIBTOOL | |
783 | EGREP | |
784 | GREP | |
785 | CPP | |
786 | am__fastdepCC_FALSE | |
787 | am__fastdepCC_TRUE | |
788 | CCDEPMODE | |
789 | AMDEPBACKSLASH | |
790 | AMDEP_FALSE | |
791 | AMDEP_TRUE | |
792 | am__quote | |
793 | am__include | |
794 | DEPDIR | |
795 | am__untar | |
796 | am__tar | |
797 | AMTAR | |
798 | am__leading_dot | |
799 | SET_MAKE | |
800 | AWK | |
801 | mkdir_p | |
802 | MKDIR_P | |
803 | INSTALL_STRIP_PROGRAM | |
804 | STRIP | |
805 | install_sh | |
806 | MAKEINFO | |
807 | AUTOHEADER | |
808 | AUTOMAKE | |
809 | AUTOCONF | |
810 | ACLOCAL | |
811 | VERSION | |
812 | PACKAGE | |
813 | CYGPATH_W | |
814 | am__isrc | |
815 | INSTALL_DATA | |
816 | INSTALL_SCRIPT | |
817 | INSTALL_PROGRAM | |
818 | OBJEXT | |
819 | EXEEXT | |
820 | ac_ct_CC | |
821 | CPPFLAGS | |
822 | LDFLAGS | |
823 | CFLAGS | |
824 | CC | |
825 | target_os | |
826 | target_vendor | |
827 | target_cpu | |
828 | target | |
829 | host_os | |
830 | host_vendor | |
831 | host_cpu | |
832 | host | |
833 | build_os | |
834 | build_vendor | |
835 | build_cpu | |
836 | build | |
837 | target_alias | |
838 | host_alias | |
839 | build_alias | |
840 | LIBS | |
841 | ECHO_T | |
842 | ECHO_N | |
843 | ECHO_C | |
844 | DEFS | |
845 | mandir | |
846 | localedir | |
847 | libdir | |
848 | psdir | |
849 | pdfdir | |
850 | dvidir | |
851 | htmldir | |
852 | infodir | |
853 | docdir | |
854 | oldincludedir | |
855 | includedir | |
856 | localstatedir | |
857 | sharedstatedir | |
858 | sysconfdir | |
859 | datadir | |
860 | datarootdir | |
861 | libexecdir | |
862 | sbindir | |
863 | bindir | |
864 | program_transform_name | |
865 | prefix | |
866 | exec_prefix | |
867 | PACKAGE_URL | |
868 | PACKAGE_BUGREPORT | |
869 | PACKAGE_STRING | |
870 | PACKAGE_VERSION | |
871 | PACKAGE_TARNAME | |
872 | PACKAGE_NAME | |
873 | PATH_SEPARATOR | |
874 | SHELL' | |
6bf9431b | 875 | ac_subst_files='' |
81ecdfbb RW |
876 | ac_user_opts=' |
877 | enable_option_checking | |
878 | enable_dependency_tracking | |
da2f07f1 | 879 | enable_plugins |
81ecdfbb RW |
880 | enable_largefile |
881 | enable_shared | |
882 | enable_static | |
883 | with_pic | |
884 | enable_fast_install | |
885 | with_gnu_ld | |
886 | enable_libtool_lock | |
887 | enable_nls | |
888 | enable_maintainer_mode | |
889 | enable_werror | |
890 | enable_build_warnings | |
891 | ' | |
892 | ac_precious_vars='build_alias | |
893 | host_alias | |
894 | target_alias | |
895 | CC | |
896 | CFLAGS | |
897 | LDFLAGS | |
898 | LIBS | |
899 | CPPFLAGS | |
900 | CPP' | |
901 | ||
252b5132 RH |
902 | |
903 | # Initialize some variables set by options. | |
6bf9431b BE |
904 | ac_init_help= |
905 | ac_init_version=false | |
81ecdfbb RW |
906 | ac_unrecognized_opts= |
907 | ac_unrecognized_sep= | |
252b5132 RH |
908 | # The variables have the same names as the options, with |
909 | # dashes changed to underlines. | |
6bf9431b | 910 | cache_file=/dev/null |
252b5132 | 911 | exec_prefix=NONE |
252b5132 | 912 | no_create= |
252b5132 RH |
913 | no_recursion= |
914 | prefix=NONE | |
915 | program_prefix=NONE | |
916 | program_suffix=NONE | |
917 | program_transform_name=s,x,x, | |
918 | silent= | |
919 | site= | |
920 | srcdir= | |
252b5132 RH |
921 | verbose= |
922 | x_includes=NONE | |
923 | x_libraries=NONE | |
6bf9431b BE |
924 | |
925 | # Installation directory options. | |
926 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
927 | # and all the variables that are supposed to be based on exec_prefix | |
928 | # by default will actually change. | |
929 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 930 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
931 | bindir='${exec_prefix}/bin' |
932 | sbindir='${exec_prefix}/sbin' | |
933 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
934 | datarootdir='${prefix}/share' |
935 | datadir='${datarootdir}' | |
252b5132 RH |
936 | sysconfdir='${prefix}/etc' |
937 | sharedstatedir='${prefix}/com' | |
938 | localstatedir='${prefix}/var' | |
252b5132 RH |
939 | includedir='${prefix}/include' |
940 | oldincludedir='/usr/include' | |
81ecdfbb RW |
941 | docdir='${datarootdir}/doc/${PACKAGE}' |
942 | infodir='${datarootdir}/info' | |
943 | htmldir='${docdir}' | |
944 | dvidir='${docdir}' | |
945 | pdfdir='${docdir}' | |
946 | psdir='${docdir}' | |
947 | libdir='${exec_prefix}/lib' | |
948 | localedir='${datarootdir}/locale' | |
949 | mandir='${datarootdir}/man' | |
252b5132 | 950 | |
252b5132 | 951 | ac_prev= |
81ecdfbb | 952 | ac_dashdash= |
252b5132 RH |
953 | for ac_option |
954 | do | |
252b5132 RH |
955 | # If the previous option needs an argument, assign it. |
956 | if test -n "$ac_prev"; then | |
81ecdfbb | 957 | eval $ac_prev=\$ac_option |
252b5132 RH |
958 | ac_prev= |
959 | continue | |
960 | fi | |
961 | ||
81ecdfbb RW |
962 | case $ac_option in |
963 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
964 | *) ac_optarg=yes ;; | |
965 | esac | |
252b5132 RH |
966 | |
967 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
968 | ||
81ecdfbb RW |
969 | case $ac_dashdash$ac_option in |
970 | --) | |
971 | ac_dashdash=yes ;; | |
252b5132 RH |
972 | |
973 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
974 | ac_prev=bindir ;; | |
975 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
6bf9431b | 976 | bindir=$ac_optarg ;; |
252b5132 RH |
977 | |
978 | -build | --build | --buil | --bui | --bu) | |
6bf9431b | 979 | ac_prev=build_alias ;; |
252b5132 | 980 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
6bf9431b | 981 | build_alias=$ac_optarg ;; |
252b5132 RH |
982 | |
983 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
984 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
985 | ac_prev=cache_file ;; | |
986 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
987 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
6bf9431b BE |
988 | cache_file=$ac_optarg ;; |
989 | ||
990 | --config-cache | -C) | |
991 | cache_file=config.cache ;; | |
252b5132 | 992 | |
81ecdfbb | 993 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 994 | ac_prev=datadir ;; |
81ecdfbb | 995 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
6bf9431b | 996 | datadir=$ac_optarg ;; |
252b5132 | 997 | |
81ecdfbb RW |
998 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
999 | | --dataroo | --dataro | --datar) | |
1000 | ac_prev=datarootdir ;; | |
1001 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1002 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1003 | datarootdir=$ac_optarg ;; | |
1004 | ||
252b5132 | 1005 | -disable-* | --disable-*) |
81ecdfbb | 1006 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 1007 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1008 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1009 | as_fn_error "invalid feature name: $ac_useropt" | |
1010 | ac_useropt_orig=$ac_useropt | |
1011 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1012 | case $ac_user_opts in | |
1013 | *" | |
1014 | "enable_$ac_useropt" | |
1015 | "*) ;; | |
1016 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1017 | ac_unrecognized_sep=', ';; | |
1018 | esac | |
1019 | eval enable_$ac_useropt=no ;; | |
1020 | ||
1021 | -docdir | --docdir | --docdi | --doc | --do) | |
1022 | ac_prev=docdir ;; | |
1023 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1024 | docdir=$ac_optarg ;; | |
1025 | ||
1026 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1027 | ac_prev=dvidir ;; | |
1028 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1029 | dvidir=$ac_optarg ;; | |
252b5132 RH |
1030 | |
1031 | -enable-* | --enable-*) | |
81ecdfbb | 1032 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 1033 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1034 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1035 | as_fn_error "invalid feature name: $ac_useropt" | |
1036 | ac_useropt_orig=$ac_useropt | |
1037 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1038 | case $ac_user_opts in | |
1039 | *" | |
1040 | "enable_$ac_useropt" | |
1041 | "*) ;; | |
1042 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1043 | ac_unrecognized_sep=', ';; | |
0ab6f085 | 1044 | esac |
81ecdfbb | 1045 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1046 | |
1047 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1048 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1049 | | --exec | --exe | --ex) | |
1050 | ac_prev=exec_prefix ;; | |
1051 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1052 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1053 | | --exec=* | --exe=* | --ex=*) | |
6bf9431b | 1054 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
1055 | |
1056 | -gas | --gas | --ga | --g) | |
1057 | # Obsolete; use --with-gas. | |
1058 | with_gas=yes ;; | |
1059 | ||
6bf9431b BE |
1060 | -help | --help | --hel | --he | -h) |
1061 | ac_init_help=long ;; | |
1062 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1063 | ac_init_help=recursive ;; | |
1064 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1065 | ac_init_help=short ;; | |
252b5132 RH |
1066 | |
1067 | -host | --host | --hos | --ho) | |
6bf9431b | 1068 | ac_prev=host_alias ;; |
252b5132 | 1069 | -host=* | --host=* | --hos=* | --ho=*) |
6bf9431b | 1070 | host_alias=$ac_optarg ;; |
252b5132 | 1071 | |
81ecdfbb RW |
1072 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1073 | ac_prev=htmldir ;; | |
1074 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1075 | | --ht=*) | |
1076 | htmldir=$ac_optarg ;; | |
1077 | ||
252b5132 RH |
1078 | -includedir | --includedir | --includedi | --included | --include \ |
1079 | | --includ | --inclu | --incl | --inc) | |
1080 | ac_prev=includedir ;; | |
1081 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1082 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
6bf9431b | 1083 | includedir=$ac_optarg ;; |
252b5132 RH |
1084 | |
1085 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1086 | ac_prev=infodir ;; | |
1087 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
6bf9431b | 1088 | infodir=$ac_optarg ;; |
252b5132 RH |
1089 | |
1090 | -libdir | --libdir | --libdi | --libd) | |
1091 | ac_prev=libdir ;; | |
1092 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
6bf9431b | 1093 | libdir=$ac_optarg ;; |
252b5132 RH |
1094 | |
1095 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1096 | | --libexe | --libex | --libe) | |
1097 | ac_prev=libexecdir ;; | |
1098 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1099 | | --libexe=* | --libex=* | --libe=*) | |
6bf9431b | 1100 | libexecdir=$ac_optarg ;; |
252b5132 | 1101 | |
81ecdfbb RW |
1102 | -localedir | --localedir | --localedi | --localed | --locale) |
1103 | ac_prev=localedir ;; | |
1104 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1105 | localedir=$ac_optarg ;; | |
1106 | ||
252b5132 | 1107 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1108 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1109 | ac_prev=localstatedir ;; |
1110 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1111 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
6bf9431b | 1112 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1113 | |
1114 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1115 | ac_prev=mandir ;; | |
1116 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
6bf9431b | 1117 | mandir=$ac_optarg ;; |
252b5132 RH |
1118 | |
1119 | -nfp | --nfp | --nf) | |
1120 | # Obsolete; use --without-fp. | |
1121 | with_fp=no ;; | |
1122 | ||
1123 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
6bf9431b | 1124 | | --no-cr | --no-c | -n) |
252b5132 RH |
1125 | no_create=yes ;; |
1126 | ||
1127 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1128 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1129 | no_recursion=yes ;; | |
1130 | ||
1131 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1132 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1133 | | --oldin | --oldi | --old | --ol | --o) | |
1134 | ac_prev=oldincludedir ;; | |
1135 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1136 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1137 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
6bf9431b | 1138 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1139 | |
1140 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1141 | ac_prev=prefix ;; | |
1142 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
6bf9431b | 1143 | prefix=$ac_optarg ;; |
252b5132 RH |
1144 | |
1145 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1146 | | --program-pre | --program-pr | --program-p) | |
1147 | ac_prev=program_prefix ;; | |
1148 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1149 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
6bf9431b | 1150 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1151 | |
1152 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1153 | | --program-suf | --program-su | --program-s) | |
1154 | ac_prev=program_suffix ;; | |
1155 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1156 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
6bf9431b | 1157 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1158 | |
1159 | -program-transform-name | --program-transform-name \ | |
1160 | | --program-transform-nam | --program-transform-na \ | |
1161 | | --program-transform-n | --program-transform- \ | |
1162 | | --program-transform | --program-transfor \ | |
1163 | | --program-transfo | --program-transf \ | |
1164 | | --program-trans | --program-tran \ | |
1165 | | --progr-tra | --program-tr | --program-t) | |
1166 | ac_prev=program_transform_name ;; | |
1167 | -program-transform-name=* | --program-transform-name=* \ | |
1168 | | --program-transform-nam=* | --program-transform-na=* \ | |
1169 | | --program-transform-n=* | --program-transform-=* \ | |
1170 | | --program-transform=* | --program-transfor=* \ | |
1171 | | --program-transfo=* | --program-transf=* \ | |
1172 | | --program-trans=* | --program-tran=* \ | |
1173 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
6bf9431b | 1174 | program_transform_name=$ac_optarg ;; |
252b5132 | 1175 | |
81ecdfbb RW |
1176 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1177 | ac_prev=pdfdir ;; | |
1178 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1179 | pdfdir=$ac_optarg ;; | |
1180 | ||
1181 | -psdir | --psdir | --psdi | --psd | --ps) | |
1182 | ac_prev=psdir ;; | |
1183 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1184 | psdir=$ac_optarg ;; | |
1185 | ||
252b5132 RH |
1186 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1187 | | -silent | --silent | --silen | --sile | --sil) | |
1188 | silent=yes ;; | |
1189 | ||
1190 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1191 | ac_prev=sbindir ;; | |
1192 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1193 | | --sbi=* | --sb=*) | |
6bf9431b | 1194 | sbindir=$ac_optarg ;; |
252b5132 RH |
1195 | |
1196 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1197 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1198 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1199 | | --sha | --sh) | |
1200 | ac_prev=sharedstatedir ;; | |
1201 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1202 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1203 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1204 | | --sha=* | --sh=*) | |
6bf9431b | 1205 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1206 | |
1207 | -site | --site | --sit) | |
1208 | ac_prev=site ;; | |
1209 | -site=* | --site=* | --sit=*) | |
6bf9431b | 1210 | site=$ac_optarg ;; |
093872ec | 1211 | |
252b5132 RH |
1212 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1213 | ac_prev=srcdir ;; | |
1214 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
6bf9431b | 1215 | srcdir=$ac_optarg ;; |
252b5132 RH |
1216 | |
1217 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1218 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1219 | ac_prev=sysconfdir ;; | |
1220 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1221 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
6bf9431b | 1222 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1223 | |
1224 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
6bf9431b | 1225 | ac_prev=target_alias ;; |
252b5132 | 1226 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
6bf9431b | 1227 | target_alias=$ac_optarg ;; |
252b5132 RH |
1228 | |
1229 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1230 | verbose=yes ;; | |
1231 | ||
6bf9431b BE |
1232 | -version | --version | --versio | --versi | --vers | -V) |
1233 | ac_init_version=: ;; | |
252b5132 RH |
1234 | |
1235 | -with-* | --with-*) | |
81ecdfbb | 1236 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1237 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1238 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1239 | as_fn_error "invalid package name: $ac_useropt" | |
1240 | ac_useropt_orig=$ac_useropt | |
1241 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1242 | case $ac_user_opts in | |
1243 | *" | |
1244 | "with_$ac_useropt" | |
1245 | "*) ;; | |
1246 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1247 | ac_unrecognized_sep=', ';; | |
0ab6f085 | 1248 | esac |
81ecdfbb | 1249 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1250 | |
1251 | -without-* | --without-*) | |
81ecdfbb | 1252 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1253 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1254 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1255 | as_fn_error "invalid package name: $ac_useropt" | |
1256 | ac_useropt_orig=$ac_useropt | |
1257 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1258 | case $ac_user_opts in | |
1259 | *" | |
1260 | "with_$ac_useropt" | |
1261 | "*) ;; | |
1262 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1263 | ac_unrecognized_sep=', ';; | |
1264 | esac | |
1265 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1266 | |
1267 | --x) | |
1268 | # Obsolete; use --with-x. | |
1269 | with_x=yes ;; | |
1270 | ||
1271 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1272 | | --x-incl | --x-inc | --x-in | --x-i) | |
1273 | ac_prev=x_includes ;; | |
1274 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1275 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
6bf9431b | 1276 | x_includes=$ac_optarg ;; |
252b5132 RH |
1277 | |
1278 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1279 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1280 | ac_prev=x_libraries ;; | |
1281 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1282 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
6bf9431b | 1283 | x_libraries=$ac_optarg ;; |
252b5132 | 1284 | |
81ecdfbb RW |
1285 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1286 | Try \`$0 --help' for more information." | |
252b5132 RH |
1287 | ;; |
1288 | ||
6bf9431b BE |
1289 | *=*) |
1290 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1291 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1292 | case $ac_envvar in #( |
1293 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1294 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1295 | esac | |
1296 | eval $ac_envvar=\$ac_optarg | |
6bf9431b BE |
1297 | export $ac_envvar ;; |
1298 | ||
252b5132 | 1299 | *) |
6bf9431b | 1300 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1301 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
6bf9431b | 1302 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1303 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
6bf9431b | 1304 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1305 | ;; |
1306 | ||
1307 | esac | |
1308 | done | |
1309 | ||
1310 | if test -n "$ac_prev"; then | |
6bf9431b | 1311 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1312 | as_fn_error "missing argument to $ac_option" |
252b5132 RH |
1313 | fi |
1314 | ||
81ecdfbb RW |
1315 | if test -n "$ac_unrecognized_opts"; then |
1316 | case $enable_option_checking in | |
1317 | no) ;; | |
1318 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1319 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
0ab6f085 | 1320 | esac |
81ecdfbb | 1321 | fi |
0ab6f085 | 1322 | |
81ecdfbb RW |
1323 | # Check all directory arguments for consistency. |
1324 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1325 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1326 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1327 | libdir localedir mandir | |
0ab6f085 | 1328 | do |
81ecdfbb RW |
1329 | eval ac_val=\$$ac_var |
1330 | # Remove trailing slashes. | |
0ab6f085 | 1331 | case $ac_val in |
81ecdfbb RW |
1332 | */ ) |
1333 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1334 | eval $ac_var=\$ac_val;; | |
252b5132 | 1335 | esac |
81ecdfbb RW |
1336 | # Be sure to have absolute directory names. |
1337 | case $ac_val in | |
1338 | [\\/$]* | ?:[\\/]* ) continue;; | |
1339 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1340 | esac | |
1341 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
252b5132 RH |
1342 | done |
1343 | ||
6bf9431b BE |
1344 | # There might be people who depend on the old broken behavior: `$host' |
1345 | # used to hold the argument of --host etc. | |
1346 | # FIXME: To remove some day. | |
1347 | build=$build_alias | |
1348 | host=$host_alias | |
1349 | target=$target_alias | |
1350 | ||
1351 | # FIXME: To remove some day. | |
1352 | if test "x$host_alias" != x; then | |
1353 | if test "x$build_alias" = x; then | |
1354 | cross_compiling=maybe | |
81ecdfbb | 1355 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
6bf9431b BE |
1356 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1357 | elif test "x$build_alias" != "x$host_alias"; then | |
1358 | cross_compiling=yes | |
1359 | fi | |
1360 | fi | |
252b5132 | 1361 | |
6bf9431b BE |
1362 | ac_tool_prefix= |
1363 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1364 | ||
1365 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1366 | |
252b5132 | 1367 | |
81ecdfbb RW |
1368 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1369 | ac_ls_di=`ls -di .` && | |
1370 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1371 | as_fn_error "working directory cannot be determined" | |
1372 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1373 | as_fn_error "pwd does not report name of working directory" | |
1374 | ||
1375 | ||
252b5132 RH |
1376 | # Find the source files, if location was not specified. |
1377 | if test -z "$srcdir"; then | |
1378 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1379 | # Try the directory containing this script, then the parent directory. |
1380 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1381 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1382 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1383 | X"$as_myself" : 'X\(//\)$' \| \ | |
1384 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1385 | $as_echo X"$as_myself" | | |
1386 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1387 | s//\1/ | |
1388 | q | |
1389 | } | |
1390 | /^X\(\/\/\)[^/].*/{ | |
1391 | s//\1/ | |
1392 | q | |
1393 | } | |
1394 | /^X\(\/\/\)$/{ | |
1395 | s//\1/ | |
1396 | q | |
1397 | } | |
1398 | /^X\(\/\).*/{ | |
1399 | s//\1/ | |
1400 | q | |
1401 | } | |
1402 | s/.*/./; q'` | |
252b5132 | 1403 | srcdir=$ac_confdir |
81ecdfbb | 1404 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1405 | srcdir=.. |
1406 | fi | |
1407 | else | |
1408 | ac_srcdir_defaulted=no | |
1409 | fi | |
81ecdfbb RW |
1410 | if test ! -r "$srcdir/$ac_unique_file"; then |
1411 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1412 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1413 | fi | |
1414 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1415 | ac_abs_confdir=`( | |
1416 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1417 | pwd)` | |
1418 | # When building in place, set srcdir=. | |
1419 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1420 | srcdir=. | |
1421 | fi | |
1422 | # Remove unnecessary trailing slashes from srcdir. | |
1423 | # Double slashes in file names in object file debugging info | |
1424 | # mess up M-x gdb in Emacs. | |
1425 | case $srcdir in | |
1426 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1427 | esac | |
1428 | for ac_var in $ac_precious_vars; do | |
1429 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1430 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1431 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1432 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1433 | done | |
252b5132 | 1434 | |
6bf9431b BE |
1435 | # |
1436 | # Report the --help message. | |
1437 | # | |
1438 | if test "$ac_init_help" = "long"; then | |
1439 | # Omit some internal or obsolete options to make the list less imposing. | |
1440 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1441 | cat <<_ACEOF | |
1442 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 1443 | |
6bf9431b | 1444 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1445 | |
6bf9431b BE |
1446 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1447 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1448 | |
6bf9431b | 1449 | Defaults for the options are specified in brackets. |
ac48eca1 | 1450 | |
6bf9431b BE |
1451 | Configuration: |
1452 | -h, --help display this help and exit | |
1453 | --help=short display options specific to this package | |
1454 | --help=recursive display the short help of all the included packages | |
1455 | -V, --version display version information and exit | |
1456 | -q, --quiet, --silent do not print \`checking...' messages | |
1457 | --cache-file=FILE cache test results in FILE [disabled] | |
1458 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1459 | -n, --no-create do not create output files | |
1460 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1461 | ||
6bf9431b BE |
1462 | Installation directories: |
1463 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1464 | [$ac_default_prefix] |
6bf9431b | 1465 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1466 | [PREFIX] |
ac48eca1 | 1467 | |
6bf9431b BE |
1468 | By default, \`make install' will install all the files in |
1469 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1470 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1471 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1472 | |
6bf9431b | 1473 | For better control, use the options below. |
ac48eca1 | 1474 | |
6bf9431b | 1475 | Fine tuning of the installation directories: |
81ecdfbb RW |
1476 | --bindir=DIR user executables [EPREFIX/bin] |
1477 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1478 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1479 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1480 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1481 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1482 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1483 | --includedir=DIR C header files [PREFIX/include] | |
1484 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1485 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1486 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1487 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1488 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1489 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1490 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1491 | --htmldir=DIR html documentation [DOCDIR] | |
1492 | --dvidir=DIR dvi documentation [DOCDIR] | |
1493 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1494 | --psdir=DIR ps documentation [DOCDIR] | |
6bf9431b | 1495 | _ACEOF |
ac48eca1 | 1496 | |
6bf9431b | 1497 | cat <<\_ACEOF |
252b5132 | 1498 | |
6bf9431b BE |
1499 | Program names: |
1500 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1501 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1502 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1503 | |
6bf9431b BE |
1504 | System types: |
1505 | --build=BUILD configure for building on BUILD [guessed] | |
1506 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1507 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1508 | _ACEOF | |
252b5132 | 1509 | fi |
252b5132 | 1510 | |
6bf9431b | 1511 | if test -n "$ac_init_help"; then |
252b5132 | 1512 | |
6bf9431b | 1513 | cat <<\_ACEOF |
252b5132 | 1514 | |
6bf9431b | 1515 | Optional Features: |
81ecdfbb | 1516 | --disable-option-checking ignore unrecognized --enable/--with options |
6bf9431b BE |
1517 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1518 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1519 | --disable-dependency-tracking speeds up one-time build | |
1520 | --enable-dependency-tracking do not reject slow dependency extractors | |
da2f07f1 | 1521 | --enable-plugins Enable support for plugins (defaults no) |
d053aef8 | 1522 | --disable-largefile omit support for large files |
81ecdfbb RW |
1523 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1524 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1525 | --enable-fast-install[=PKGS] |
1526 | optimize for fast installation [default=yes] | |
6bf9431b BE |
1527 | --disable-libtool-lock avoid locking (might break parallel builds) |
1528 | --disable-nls do not use Native Language Support | |
1529 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1530 | (and sometimes confusing) to the casual installer | |
241a6c40 AM |
1531 | --enable-werror treat compile warnings as errors |
1532 | --enable-build-warnings enable build-time compiler warnings | |
6bf9431b BE |
1533 | |
1534 | Optional Packages: | |
1535 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1536 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1537 | --with-pic try to use only PIC/non-PIC objects [default=use |
1538 | both] | |
1539 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
252b5132 | 1540 | |
6bf9431b BE |
1541 | Some influential environment variables: |
1542 | CC C compiler command | |
1543 | CFLAGS C compiler flags | |
1544 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1545 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1546 | LIBS libraries to pass to the linker, e.g. -l<library> |
1547 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1548 | you have headers in a nonstandard directory <include dir> | |
6bf9431b | 1549 | CPP C preprocessor |
252b5132 | 1550 | |
6bf9431b BE |
1551 | Use these variables to override the choices made by `configure' or to help |
1552 | it to find libraries and programs with nonstandard names/locations. | |
1553 | ||
81ecdfbb | 1554 | Report bugs to the package provider. |
6bf9431b | 1555 | _ACEOF |
81ecdfbb | 1556 | ac_status=$? |
252b5132 RH |
1557 | fi |
1558 | ||
6bf9431b BE |
1559 | if test "$ac_init_help" = "recursive"; then |
1560 | # If there are subdirs, report their specific --help. | |
6bf9431b | 1561 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1562 | test -d "$ac_dir" || |
1563 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1564 | continue | |
6bf9431b | 1565 | ac_builddir=. |
252b5132 | 1566 | |
81ecdfbb RW |
1567 | case "$ac_dir" in |
1568 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1569 | *) | |
1570 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1571 | # A ".." for each directory in $ac_dir_suffix. | |
1572 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1573 | case $ac_top_builddir_sub in | |
1574 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1575 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1576 | esac ;; | |
1577 | esac | |
1578 | ac_abs_top_builddir=$ac_pwd | |
1579 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1580 | # for backward compatibility: | |
1581 | ac_top_builddir=$ac_top_build_prefix | |
6bf9431b BE |
1582 | |
1583 | case $srcdir in | |
81ecdfbb | 1584 | .) # We are building in place. |
6bf9431b | 1585 | ac_srcdir=. |
81ecdfbb RW |
1586 | ac_top_srcdir=$ac_top_builddir_sub |
1587 | ac_abs_top_srcdir=$ac_pwd ;; | |
1588 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6bf9431b | 1589 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1590 | ac_top_srcdir=$srcdir |
1591 | ac_abs_top_srcdir=$srcdir ;; | |
1592 | *) # Relative name. | |
1593 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1594 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1595 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
0ab6f085 | 1596 | esac |
81ecdfbb RW |
1597 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1598 | ||
1599 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1600 | # Check for guested configure. | |
1601 | if test -f "$ac_srcdir/configure.gnu"; then | |
1602 | echo && | |
1603 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1604 | elif test -f "$ac_srcdir/configure"; then | |
1605 | echo && | |
1606 | $SHELL "$ac_srcdir/configure" --help=recursive | |
6bf9431b | 1607 | else |
81ecdfbb RW |
1608 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1609 | fi || ac_status=$? | |
1610 | cd "$ac_pwd" || { ac_status=$?; break; } | |
6bf9431b BE |
1611 | done |
1612 | fi | |
252b5132 | 1613 | |
81ecdfbb | 1614 | test -n "$ac_init_help" && exit $ac_status |
6bf9431b BE |
1615 | if $ac_init_version; then |
1616 | cat <<\_ACEOF | |
81ecdfbb RW |
1617 | configure |
1618 | generated by GNU Autoconf 2.64 | |
252b5132 | 1619 | |
81ecdfbb | 1620 | Copyright (C) 2009 Free Software Foundation, Inc. |
6bf9431b BE |
1621 | This configure script is free software; the Free Software Foundation |
1622 | gives unlimited permission to copy, distribute and modify it. | |
1623 | _ACEOF | |
81ecdfbb | 1624 | exit |
6bf9431b | 1625 | fi |
5d64ca4e | 1626 | |
81ecdfbb RW |
1627 | ## ------------------------ ## |
1628 | ## Autoconf initialization. ## | |
1629 | ## ------------------------ ## | |
5d64ca4e | 1630 | |
81ecdfbb RW |
1631 | # ac_fn_c_try_compile LINENO |
1632 | # -------------------------- | |
1633 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1634 | ac_fn_c_try_compile () | |
6bf9431b | 1635 | { |
81ecdfbb RW |
1636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1637 | rm -f conftest.$ac_objext | |
1638 | if { { ac_try="$ac_compile" | |
1639 | case "(($ac_try" in | |
1640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1641 | *) ac_try_echo=$ac_try;; | |
1642 | esac | |
1643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1644 | $as_echo "$ac_try_echo"; } >&5 | |
1645 | (eval "$ac_compile") 2>conftest.err | |
1646 | ac_status=$? | |
1647 | if test -s conftest.err; then | |
1648 | grep -v '^ *+' conftest.err >conftest.er1 | |
1649 | cat conftest.er1 >&5 | |
1650 | mv -f conftest.er1 conftest.err | |
1651 | fi | |
1652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1653 | test $ac_status = 0; } && { | |
1654 | test -z "$ac_c_werror_flag" || | |
1655 | test ! -s conftest.err | |
1656 | } && test -s conftest.$ac_objext; then : | |
1657 | ac_retval=0 | |
1658 | else | |
1659 | $as_echo "$as_me: failed program was:" >&5 | |
1660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 1661 | |
81ecdfbb RW |
1662 | ac_retval=1 |
1663 | fi | |
1664 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1665 | return $ac_retval | |
6bf9431b | 1666 | |
81ecdfbb | 1667 | } # ac_fn_c_try_compile |
6bf9431b | 1668 | |
81ecdfbb RW |
1669 | # ac_fn_c_try_link LINENO |
1670 | # ----------------------- | |
1671 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1672 | ac_fn_c_try_link () | |
1673 | { | |
1674 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1676 | if { { ac_try="$ac_link" | |
1677 | case "(($ac_try" in | |
1678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1679 | *) ac_try_echo=$ac_try;; | |
1680 | esac | |
1681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1682 | $as_echo "$ac_try_echo"; } >&5 | |
1683 | (eval "$ac_link") 2>conftest.err | |
1684 | ac_status=$? | |
1685 | if test -s conftest.err; then | |
1686 | grep -v '^ *+' conftest.err >conftest.er1 | |
1687 | cat conftest.er1 >&5 | |
1688 | mv -f conftest.er1 conftest.err | |
1689 | fi | |
1690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1691 | test $ac_status = 0; } && { | |
1692 | test -z "$ac_c_werror_flag" || | |
1693 | test ! -s conftest.err | |
1694 | } && test -s conftest$ac_exeext && { | |
1695 | test "$cross_compiling" = yes || | |
1696 | $as_test_x conftest$ac_exeext | |
1697 | }; then : | |
1698 | ac_retval=0 | |
1699 | else | |
1700 | $as_echo "$as_me: failed program was:" >&5 | |
1701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 1702 | |
81ecdfbb RW |
1703 | ac_retval=1 |
1704 | fi | |
1705 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1706 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1707 | # interfere with the next link command; also delete a directory that is | |
1708 | # left behind by Apple's compiler. We do this before executing the actions. | |
1709 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1710 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1711 | return $ac_retval | |
6bf9431b | 1712 | |
81ecdfbb RW |
1713 | } # ac_fn_c_try_link |
1714 | ||
1715 | # ac_fn_c_try_cpp LINENO | |
1716 | # ---------------------- | |
1717 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1718 | ac_fn_c_try_cpp () | |
1719 | { | |
1720 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1721 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1722 | case "(($ac_try" in | |
1723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1724 | *) ac_try_echo=$ac_try;; | |
1725 | esac | |
1726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1727 | $as_echo "$ac_try_echo"; } >&5 | |
1728 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1729 | ac_status=$? | |
1730 | if test -s conftest.err; then | |
1731 | grep -v '^ *+' conftest.err >conftest.er1 | |
1732 | cat conftest.er1 >&5 | |
1733 | mv -f conftest.er1 conftest.err | |
1734 | fi | |
1735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1736 | test $ac_status = 0; } >/dev/null && { | |
1737 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1738 | test ! -s conftest.err | |
1739 | }; then : | |
1740 | ac_retval=0 | |
1741 | else | |
1742 | $as_echo "$as_me: failed program was:" >&5 | |
1743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1744 | ||
1745 | ac_retval=1 | |
1746 | fi | |
1747 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1748 | return $ac_retval | |
1749 | ||
1750 | } # ac_fn_c_try_cpp | |
1751 | ||
1752 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1753 | # ------------------------------------------------------- | |
1754 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1755 | # the include files in INCLUDES and setting the cache variable VAR | |
1756 | # accordingly. | |
1757 | ac_fn_c_check_header_mongrel () | |
1758 | { | |
1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1760 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1762 | $as_echo_n "checking for $2... " >&6; } | |
1763 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1764 | $as_echo_n "(cached) " >&6 | |
1765 | fi | |
1766 | eval ac_res=\$$3 | |
1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1768 | $as_echo "$ac_res" >&6; } | |
1769 | else | |
1770 | # Is the header compilable? | |
1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1772 | $as_echo_n "checking $2 usability... " >&6; } | |
1773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1774 | /* end confdefs.h. */ | |
1775 | $4 | |
1776 | #include <$2> | |
1777 | _ACEOF | |
1778 | if ac_fn_c_try_compile "$LINENO"; then : | |
1779 | ac_header_compiler=yes | |
1780 | else | |
1781 | ac_header_compiler=no | |
1782 | fi | |
1783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1785 | $as_echo "$ac_header_compiler" >&6; } | |
1786 | ||
1787 | # Is the header present? | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1789 | $as_echo_n "checking $2 presence... " >&6; } | |
1790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1791 | /* end confdefs.h. */ | |
1792 | #include <$2> | |
1793 | _ACEOF | |
1794 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1795 | ac_header_preproc=yes | |
1796 | else | |
1797 | ac_header_preproc=no | |
1798 | fi | |
1799 | rm -f conftest.err conftest.$ac_ext | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1801 | $as_echo "$ac_header_preproc" >&6; } | |
1802 | ||
1803 | # So? What about this header? | |
1804 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1805 | yes:no: ) | |
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1807 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1809 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1810 | ;; | |
1811 | no:yes:* ) | |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1813 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1815 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1817 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1819 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1821 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1822 | ;; | |
1823 | esac | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1825 | $as_echo_n "checking for $2... " >&6; } | |
1826 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1827 | $as_echo_n "(cached) " >&6 | |
1828 | else | |
1829 | eval "$3=\$ac_header_compiler" | |
1830 | fi | |
1831 | eval ac_res=\$$3 | |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1833 | $as_echo "$ac_res" >&6; } | |
1834 | fi | |
1835 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1836 | ||
1837 | } # ac_fn_c_check_header_mongrel | |
1838 | ||
1839 | # ac_fn_c_try_run LINENO | |
1840 | # ---------------------- | |
1841 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1842 | # that executables *can* be run. | |
1843 | ac_fn_c_try_run () | |
1844 | { | |
1845 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1846 | if { { ac_try="$ac_link" | |
1847 | case "(($ac_try" in | |
1848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1849 | *) ac_try_echo=$ac_try;; | |
1850 | esac | |
1851 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1852 | $as_echo "$ac_try_echo"; } >&5 | |
1853 | (eval "$ac_link") 2>&5 | |
1854 | ac_status=$? | |
1855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1856 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1857 | { { case "(($ac_try" in | |
1858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1859 | *) ac_try_echo=$ac_try;; | |
1860 | esac | |
1861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1862 | $as_echo "$ac_try_echo"; } >&5 | |
1863 | (eval "$ac_try") 2>&5 | |
1864 | ac_status=$? | |
1865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1866 | test $ac_status = 0; }; }; then : | |
1867 | ac_retval=0 | |
1868 | else | |
1869 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1870 | $as_echo "$as_me: failed program was:" >&5 | |
1871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1872 | ||
1873 | ac_retval=$ac_status | |
1874 | fi | |
1875 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1876 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1877 | return $ac_retval | |
1878 | ||
1879 | } # ac_fn_c_try_run | |
1880 | ||
1881 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1882 | # ------------------------------------------------------- | |
1883 | # Tests whether HEADER exists and can be compiled using the include files in | |
1884 | # INCLUDES, setting the cache variable VAR accordingly. | |
1885 | ac_fn_c_check_header_compile () | |
1886 | { | |
1887 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
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 | else | |
1893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1894 | /* end confdefs.h. */ | |
1895 | $4 | |
1896 | #include <$2> | |
1897 | _ACEOF | |
1898 | if ac_fn_c_try_compile "$LINENO"; then : | |
1899 | eval "$3=yes" | |
1900 | else | |
1901 | eval "$3=no" | |
1902 | fi | |
1903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1904 | fi | |
1905 | eval ac_res=\$$3 | |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1907 | $as_echo "$ac_res" >&6; } | |
1908 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1909 | ||
1910 | } # ac_fn_c_check_header_compile | |
1911 | ||
1912 | # ac_fn_c_check_func LINENO FUNC VAR | |
1913 | # ---------------------------------- | |
1914 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1915 | ac_fn_c_check_func () | |
1916 | { | |
1917 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1919 | $as_echo_n "checking for $2... " >&6; } | |
1920 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1921 | $as_echo_n "(cached) " >&6 | |
1922 | else | |
1923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1924 | /* end confdefs.h. */ | |
1925 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1927 | #define $2 innocuous_$2 | |
1928 | ||
1929 | /* System header to define __stub macros and hopefully few prototypes, | |
1930 | which can conflict with char $2 (); below. | |
1931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1932 | <limits.h> exists even on freestanding compilers. */ | |
1933 | ||
1934 | #ifdef __STDC__ | |
1935 | # include <limits.h> | |
1936 | #else | |
1937 | # include <assert.h> | |
1938 | #endif | |
1939 | ||
1940 | #undef $2 | |
1941 | ||
1942 | /* Override any GCC internal prototype to avoid an error. | |
1943 | Use char because int might match the return type of a GCC | |
1944 | builtin and then its argument prototype would still apply. */ | |
1945 | #ifdef __cplusplus | |
1946 | extern "C" | |
1947 | #endif | |
1948 | char $2 (); | |
1949 | /* The GNU C library defines this for functions which it implements | |
1950 | to always fail with ENOSYS. Some functions are actually named | |
1951 | something starting with __ and the normal name is an alias. */ | |
1952 | #if defined __stub_$2 || defined __stub___$2 | |
1953 | choke me | |
1954 | #endif | |
1955 | ||
1956 | int | |
1957 | main () | |
1958 | { | |
1959 | return $2 (); | |
1960 | ; | |
1961 | return 0; | |
1962 | } | |
1963 | _ACEOF | |
1964 | if ac_fn_c_try_link "$LINENO"; then : | |
1965 | eval "$3=yes" | |
1966 | else | |
1967 | eval "$3=no" | |
1968 | fi | |
1969 | rm -f core conftest.err conftest.$ac_objext \ | |
1970 | conftest$ac_exeext conftest.$ac_ext | |
1971 | fi | |
1972 | eval ac_res=\$$3 | |
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1974 | $as_echo "$ac_res" >&6; } | |
1975 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1976 | ||
1977 | } # ac_fn_c_check_func | |
1978 | cat >config.log <<_ACEOF | |
1979 | This file contains any messages produced by compilers while | |
1980 | running configure, to aid debugging if configure makes a mistake. | |
1981 | ||
1982 | It was created by $as_me, which was | |
1983 | generated by GNU Autoconf 2.64. Invocation command line was | |
1984 | ||
1985 | $ $0 $@ | |
1986 | ||
1987 | _ACEOF | |
1988 | exec 5>>config.log | |
1989 | { | |
1990 | cat <<_ASUNAME | |
1991 | ## --------- ## | |
1992 | ## Platform. ## | |
1993 | ## --------- ## | |
1994 | ||
1995 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1996 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1997 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1998 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1999 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2000 | ||
2001 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2002 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2003 | ||
2004 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2005 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2006 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2007 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2008 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2009 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2010 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2011 | ||
2012 | _ASUNAME | |
2013 | ||
2014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bf9431b BE |
2015 | for as_dir in $PATH |
2016 | do | |
2017 | IFS=$as_save_IFS | |
2018 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2019 | $as_echo "PATH: $as_dir" |
2020 | done | |
2021 | IFS=$as_save_IFS | |
5d64ca4e | 2022 | |
6bf9431b | 2023 | } >&5 |
093872ec | 2024 | |
6bf9431b | 2025 | cat >&5 <<_ACEOF |
252b5132 | 2026 | |
6bf9431b BE |
2027 | |
2028 | ## ----------- ## | |
2029 | ## Core tests. ## | |
2030 | ## ----------- ## | |
2031 | ||
2032 | _ACEOF | |
2033 | ||
2034 | ||
2035 | # Keep a trace of the command line. | |
2036 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2037 | # Strip out --silent because we don't want to record it for future runs. | |
2038 | # Also quote any args containing shell meta-characters. | |
2039 | # Make two passes to allow for proper duplicate-argument suppression. | |
2040 | ac_configure_args= | |
2041 | ac_configure_args0= | |
2042 | ac_configure_args1= | |
6bf9431b BE |
2043 | ac_must_keep_next=false |
2044 | for ac_pass in 1 2 | |
2045 | do | |
2046 | for ac_arg | |
2047 | do | |
2048 | case $ac_arg in | |
2049 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2050 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2051 | | -silent | --silent | --silen | --sile | --sil) | |
2052 | continue ;; | |
81ecdfbb RW |
2053 | *\'*) |
2054 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6bf9431b BE |
2055 | esac |
2056 | case $ac_pass in | |
81ecdfbb | 2057 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
6bf9431b | 2058 | 2) |
81ecdfbb | 2059 | as_fn_append ac_configure_args1 " '$ac_arg'" |
6bf9431b BE |
2060 | if test $ac_must_keep_next = true; then |
2061 | ac_must_keep_next=false # Got value, back to normal. | |
2062 | else | |
2063 | case $ac_arg in | |
2064 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2065 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2066 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2067 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2068 | case "$ac_configure_args0 " in | |
2069 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2070 | esac | |
2071 | ;; | |
2072 | -* ) ac_must_keep_next=true ;; | |
2073 | esac | |
2074 | fi | |
81ecdfbb | 2075 | as_fn_append ac_configure_args " '$ac_arg'" |
6bf9431b BE |
2076 | ;; |
2077 | esac | |
2078 | done | |
2079 | done | |
81ecdfbb RW |
2080 | { ac_configure_args0=; unset ac_configure_args0;} |
2081 | { ac_configure_args1=; unset ac_configure_args1;} | |
6bf9431b BE |
2082 | |
2083 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2084 | # config.log. We remove comments because anyway the quotes in there | |
2085 | # would cause problems or look ugly. | |
81ecdfbb RW |
2086 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2087 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
6bf9431b BE |
2088 | trap 'exit_status=$? |
2089 | # Save into config.log some information that might help in debugging. | |
2090 | { | |
2091 | echo | |
2092 | ||
2093 | cat <<\_ASBOX | |
2094 | ## ---------------- ## | |
2095 | ## Cache variables. ## | |
2096 | ## ---------------- ## | |
2097 | _ASBOX | |
2098 | echo | |
2099 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2100 | ( |
2101 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2102 | eval ac_val=\$$ac_var | |
2103 | case $ac_val in #( | |
2104 | *${as_nl}*) | |
2105 | case $ac_var in #( | |
2106 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2107 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2108 | esac | |
2109 | case $ac_var in #( | |
2110 | _ | IFS | as_nl) ;; #( | |
2111 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2112 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2113 | esac ;; | |
2114 | esac | |
2115 | done | |
6bf9431b | 2116 | (set) 2>&1 | |
81ecdfbb RW |
2117 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2118 | *${as_nl}ac_space=\ *) | |
6bf9431b | 2119 | sed -n \ |
81ecdfbb RW |
2120 | "s/'\''/'\''\\\\'\'''\''/g; |
2121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2122 | ;; #( | |
6bf9431b | 2123 | *) |
81ecdfbb | 2124 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6bf9431b | 2125 | ;; |
81ecdfbb RW |
2126 | esac | |
2127 | sort | |
2128 | ) | |
6bf9431b BE |
2129 | echo |
2130 | ||
2131 | cat <<\_ASBOX | |
2132 | ## ----------------- ## | |
2133 | ## Output variables. ## | |
2134 | ## ----------------- ## | |
2135 | _ASBOX | |
2136 | echo | |
2137 | for ac_var in $ac_subst_vars | |
2138 | do | |
81ecdfbb RW |
2139 | eval ac_val=\$$ac_var |
2140 | case $ac_val in | |
2141 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2142 | esac | |
2143 | $as_echo "$ac_var='\''$ac_val'\''" | |
6bf9431b BE |
2144 | done | sort |
2145 | echo | |
2146 | ||
2147 | if test -n "$ac_subst_files"; then | |
2148 | cat <<\_ASBOX | |
81ecdfbb RW |
2149 | ## ------------------- ## |
2150 | ## File substitutions. ## | |
2151 | ## ------------------- ## | |
6bf9431b BE |
2152 | _ASBOX |
2153 | echo | |
2154 | for ac_var in $ac_subst_files | |
2155 | do | |
81ecdfbb RW |
2156 | eval ac_val=\$$ac_var |
2157 | case $ac_val in | |
2158 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2159 | esac | |
2160 | $as_echo "$ac_var='\''$ac_val'\''" | |
6bf9431b BE |
2161 | done | sort |
2162 | echo | |
2163 | fi | |
2164 | ||
2165 | if test -s confdefs.h; then | |
2166 | cat <<\_ASBOX | |
2167 | ## ----------- ## | |
2168 | ## confdefs.h. ## | |
2169 | ## ----------- ## | |
2170 | _ASBOX | |
2171 | echo | |
81ecdfbb | 2172 | cat confdefs.h |
6bf9431b BE |
2173 | echo |
2174 | fi | |
2175 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2176 | $as_echo "$as_me: caught signal $ac_signal" |
2177 | $as_echo "$as_me: exit $exit_status" | |
6bf9431b | 2178 | } >&5 |
81ecdfbb RW |
2179 | rm -f core *.core core.conftest.* && |
2180 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
6bf9431b | 2181 | exit $exit_status |
81ecdfbb | 2182 | ' 0 |
6bf9431b | 2183 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2184 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
6bf9431b BE |
2185 | done |
2186 | ac_signal=0 | |
2187 | ||
2188 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2189 | rm -f -r conftest* confdefs.h |
2190 | ||
2191 | $as_echo "/* confdefs.h */" > confdefs.h | |
6bf9431b BE |
2192 | |
2193 | # Predefined preprocessor variables. | |
2194 | ||
2195 | cat >>confdefs.h <<_ACEOF | |
2196 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2197 | _ACEOF | |
2198 | ||
6bf9431b BE |
2199 | cat >>confdefs.h <<_ACEOF |
2200 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2201 | _ACEOF | |
2202 | ||
6bf9431b BE |
2203 | cat >>confdefs.h <<_ACEOF |
2204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2205 | _ACEOF | |
2206 | ||
6bf9431b BE |
2207 | cat >>confdefs.h <<_ACEOF |
2208 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2209 | _ACEOF | |
2210 | ||
6bf9431b BE |
2211 | cat >>confdefs.h <<_ACEOF |
2212 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2213 | _ACEOF | |
2214 | ||
81ecdfbb RW |
2215 | cat >>confdefs.h <<_ACEOF |
2216 | #define PACKAGE_URL "$PACKAGE_URL" | |
2217 | _ACEOF | |
2218 | ||
6bf9431b BE |
2219 | |
2220 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2221 | # Prefer an explicitly selected file to automatically selected ones. |
2222 | ac_site_file1=NONE | |
2223 | ac_site_file2=NONE | |
2224 | if test -n "$CONFIG_SITE"; then | |
2225 | ac_site_file1=$CONFIG_SITE | |
2226 | elif test "x$prefix" != xNONE; then | |
2227 | ac_site_file1=$prefix/share/config.site | |
2228 | ac_site_file2=$prefix/etc/config.site | |
2229 | else | |
2230 | ac_site_file1=$ac_default_prefix/share/config.site | |
2231 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2232 | fi | |
2233 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2234 | do | |
2235 | test "x$ac_site_file" = xNONE && continue | |
6bf9431b | 2236 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2238 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
6bf9431b BE |
2239 | sed 's/^/| /' "$ac_site_file" >&5 |
2240 | . "$ac_site_file" | |
2241 | fi | |
2242 | done | |
2243 | ||
2244 | if test -r "$cache_file"; then | |
2245 | # Some versions of bash will fail to source /dev/null (special | |
2246 | # files actually), so we avoid doing that. | |
2247 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2249 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
6bf9431b | 2250 | case $cache_file in |
81ecdfbb RW |
2251 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2252 | *) . "./$cache_file";; | |
6bf9431b BE |
2253 | esac |
2254 | fi | |
2255 | else | |
81ecdfbb RW |
2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2257 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
6bf9431b BE |
2258 | >$cache_file |
2259 | fi | |
2260 | ||
2261 | # Check that the precious variables saved in the cache have kept the same | |
2262 | # value. | |
2263 | ac_cache_corrupted=false | |
81ecdfbb | 2264 | for ac_var in $ac_precious_vars; do |
6bf9431b BE |
2265 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2266 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2267 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2268 | eval ac_new_val=\$ac_env_${ac_var}_value | |
6bf9431b BE |
2269 | case $ac_old_set,$ac_new_set in |
2270 | set,) | |
81ecdfbb RW |
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2272 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
6bf9431b BE |
2273 | ac_cache_corrupted=: ;; |
2274 | ,set) | |
81ecdfbb RW |
2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2276 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
6bf9431b BE |
2277 | ac_cache_corrupted=: ;; |
2278 | ,);; | |
2279 | *) | |
2280 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2281 | # differences in whitespace do not lead to failure. |
2282 | ac_old_val_w=`echo x $ac_old_val` | |
2283 | ac_new_val_w=`echo x $ac_new_val` | |
2284 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2286 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2287 | ac_cache_corrupted=: | |
2288 | else | |
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2290 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2291 | eval $ac_var=\$ac_old_val | |
2292 | fi | |
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2294 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2296 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
6bf9431b BE |
2297 | fi;; |
2298 | esac | |
2299 | # Pass precious variables to config.status. | |
2300 | if test "$ac_new_set" = set; then | |
2301 | case $ac_new_val in | |
81ecdfbb | 2302 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
6bf9431b BE |
2303 | *) ac_arg=$ac_var=$ac_new_val ;; |
2304 | esac | |
2305 | case " $ac_configure_args " in | |
2306 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2307 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
6bf9431b BE |
2308 | esac |
2309 | fi | |
2310 | done | |
2311 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2312 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2313 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2315 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2316 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
6bf9431b | 2317 | fi |
81ecdfbb RW |
2318 | ## -------------------- ## |
2319 | ## Main body of script. ## | |
2320 | ## -------------------- ## | |
6bf9431b | 2321 | |
0ab6f085 AM |
2322 | ac_ext=c |
2323 | ac_cpp='$CPP $CPPFLAGS' | |
2324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2327 | ||
6bf9431b BE |
2328 | |
2329 | ||
6bf9431b BE |
2330 | |
2331 | ||
2332 | ||
2333 | ||
2334 | ac_aux_dir= | |
81ecdfbb RW |
2335 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2336 | for ac_t in install-sh install.sh shtool; do | |
2337 | if test -f "$ac_dir/$ac_t"; then | |
2338 | ac_aux_dir=$ac_dir | |
2339 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2340 | break 2 | |
2341 | fi | |
2342 | done | |
6bf9431b BE |
2343 | done |
2344 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2345 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
6bf9431b | 2346 | fi |
81ecdfbb RW |
2347 | |
2348 | # These three variables are undocumented and unsupported, | |
2349 | # and are intended to be withdrawn in a future Autoconf release. | |
2350 | # They can cause serious problems if a builder's source tree is in a directory | |
2351 | # whose full name contains unusual characters. | |
2352 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2353 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2354 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2355 | ||
6bf9431b BE |
2356 | |
2357 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2358 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2359 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2360 | ||
2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2362 | $as_echo_n "checking build system type... " >&6; } | |
2363 | if test "${ac_cv_build+set}" = set; then : | |
2364 | $as_echo_n "(cached) " >&6 | |
2365 | else | |
2366 | ac_build_alias=$build_alias | |
2367 | test "x$ac_build_alias" = x && | |
2368 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2369 | test "x$ac_build_alias" = x && | |
2370 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2371 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2372 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2373 | ||
2374 | fi | |
2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2376 | $as_echo "$ac_cv_build" >&6; } | |
2377 | case $ac_cv_build in | |
2378 | *-*-*) ;; | |
2379 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2380 | esac | |
6bf9431b | 2381 | build=$ac_cv_build |
81ecdfbb RW |
2382 | ac_save_IFS=$IFS; IFS='-' |
2383 | set x $ac_cv_build | |
2384 | shift | |
2385 | build_cpu=$1 | |
2386 | build_vendor=$2 | |
2387 | shift; shift | |
2388 | # Remember, the first character of IFS is used to create $*, | |
2389 | # except with old shells: | |
2390 | build_os=$* | |
2391 | IFS=$ac_save_IFS | |
2392 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
0ab6f085 AM |
2393 | |
2394 | ||
81ecdfbb RW |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2396 | $as_echo_n "checking host system type... " >&6; } | |
2397 | if test "${ac_cv_host+set}" = set; then : | |
2398 | $as_echo_n "(cached) " >&6 | |
6bf9431b | 2399 | else |
81ecdfbb RW |
2400 | if test "x$host_alias" = x; then |
2401 | ac_cv_host=$ac_cv_build | |
2402 | else | |
2403 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2404 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2405 | fi | |
6bf9431b BE |
2406 | |
2407 | fi | |
81ecdfbb RW |
2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2409 | $as_echo "$ac_cv_host" >&6; } | |
2410 | case $ac_cv_host in | |
2411 | *-*-*) ;; | |
2412 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2413 | esac | |
6bf9431b | 2414 | host=$ac_cv_host |
81ecdfbb RW |
2415 | ac_save_IFS=$IFS; IFS='-' |
2416 | set x $ac_cv_host | |
2417 | shift | |
2418 | host_cpu=$1 | |
2419 | host_vendor=$2 | |
2420 | shift; shift | |
2421 | # Remember, the first character of IFS is used to create $*, | |
2422 | # except with old shells: | |
2423 | host_os=$* | |
2424 | IFS=$ac_save_IFS | |
2425 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
0ab6f085 AM |
2426 | |
2427 | ||
81ecdfbb RW |
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2429 | $as_echo_n "checking target system type... " >&6; } | |
2430 | if test "${ac_cv_target+set}" = set; then : | |
2431 | $as_echo_n "(cached) " >&6 | |
2432 | else | |
2433 | if test "x$target_alias" = x; then | |
2434 | ac_cv_target=$ac_cv_host | |
6bf9431b | 2435 | else |
81ecdfbb RW |
2436 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2437 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2438 | fi | |
6bf9431b BE |
2439 | |
2440 | fi | |
81ecdfbb RW |
2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2442 | $as_echo "$ac_cv_target" >&6; } | |
2443 | case $ac_cv_target in | |
2444 | *-*-*) ;; | |
2445 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2446 | esac | |
6bf9431b | 2447 | target=$ac_cv_target |
81ecdfbb RW |
2448 | ac_save_IFS=$IFS; IFS='-' |
2449 | set x $ac_cv_target | |
2450 | shift | |
2451 | target_cpu=$1 | |
2452 | target_vendor=$2 | |
2453 | shift; shift | |
2454 | # Remember, the first character of IFS is used to create $*, | |
2455 | # except with old shells: | |
2456 | target_os=$* | |
2457 | IFS=$ac_save_IFS | |
2458 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
6bf9431b BE |
2459 | |
2460 | ||
2461 | # The aliases save the names the user supplied, while $host etc. | |
2462 | # will get canonicalized. | |
2463 | test -n "$target_alias" && | |
2464 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2465 | NONENONEs,x,x, && | |
2466 | program_prefix=${target_alias}- | |
2467 | ac_ext=c | |
2468 | ac_cpp='$CPP $CPPFLAGS' | |
2469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2472 | if test -n "$ac_tool_prefix"; then | |
2473 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2474 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2476 | $as_echo_n "checking for $ac_word... " >&6; } | |
2477 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2478 | $as_echo_n "(cached) " >&6 | |
6bf9431b BE |
2479 | else |
2480 | if test -n "$CC"; then | |
2481 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2482 | else | |
2483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2484 | for as_dir in $PATH | |
2485 | do | |
2486 | IFS=$as_save_IFS | |
2487 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2488 | for ac_exec_ext in '' $ac_executable_extensions; do |
2489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6bf9431b | 2490 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6bf9431b BE |
2492 | break 2 |
2493 | fi | |
2494 | done | |
81ecdfbb RW |
2495 | done |
2496 | IFS=$as_save_IFS | |
6bf9431b BE |
2497 | |
2498 | fi | |
2499 | fi | |
2500 | CC=$ac_cv_prog_CC | |
2501 | if test -n "$CC"; then | |
81ecdfbb RW |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2503 | $as_echo "$CC" >&6; } | |
6bf9431b | 2504 | else |
81ecdfbb RW |
2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2506 | $as_echo "no" >&6; } | |
6bf9431b BE |
2507 | fi |
2508 | ||
81ecdfbb | 2509 | |
6bf9431b BE |
2510 | fi |
2511 | if test -z "$ac_cv_prog_CC"; then | |
2512 | ac_ct_CC=$CC | |
2513 | # Extract the first word of "gcc", so it can be a program name with args. | |
2514 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2516 | $as_echo_n "checking for $ac_word... " >&6; } | |
2517 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2518 | $as_echo_n "(cached) " >&6 | |
6bf9431b BE |
2519 | else |
2520 | if test -n "$ac_ct_CC"; then | |
2521 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2522 | else | |
2523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2524 | for as_dir in $PATH | |
2525 | do | |
2526 | IFS=$as_save_IFS | |
2527 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2528 | for ac_exec_ext in '' $ac_executable_extensions; do |
2529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6bf9431b | 2530 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6bf9431b BE |
2532 | break 2 |
2533 | fi | |
2534 | done | |
81ecdfbb RW |
2535 | done |
2536 | IFS=$as_save_IFS | |
6bf9431b BE |
2537 | |
2538 | fi | |
2539 | fi | |
2540 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2541 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2543 | $as_echo "$ac_ct_CC" >&6; } | |
6bf9431b | 2544 | else |
81ecdfbb RW |
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2546 | $as_echo "no" >&6; } | |
6bf9431b BE |
2547 | fi |
2548 | ||
81ecdfbb RW |
2549 | if test "x$ac_ct_CC" = x; then |
2550 | CC="" | |
2551 | else | |
2552 | case $cross_compiling:$ac_tool_warned in | |
2553 | yes:) | |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2555 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2556 | ac_tool_warned=yes ;; | |
2557 | esac | |
2558 | CC=$ac_ct_CC | |
2559 | fi | |
6bf9431b BE |
2560 | else |
2561 | CC="$ac_cv_prog_CC" | |
2562 | fi | |
2563 | ||
2564 | if test -z "$CC"; then | |
81ecdfbb RW |
2565 | if test -n "$ac_tool_prefix"; then |
2566 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6bf9431b | 2567 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2569 | $as_echo_n "checking for $ac_word... " >&6; } | |
2570 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2571 | $as_echo_n "(cached) " >&6 | |
6bf9431b BE |
2572 | else |
2573 | if test -n "$CC"; then | |
2574 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2575 | else | |
2576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2577 | for as_dir in $PATH | |
2578 | do | |
2579 | IFS=$as_save_IFS | |
2580 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2581 | for ac_exec_ext in '' $ac_executable_extensions; do |
2582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6bf9431b | 2583 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6bf9431b BE |
2585 | break 2 |
2586 | fi | |
2587 | done | |
81ecdfbb RW |
2588 | done |
2589 | IFS=$as_save_IFS | |
6bf9431b BE |
2590 | |
2591 | fi | |
2592 | fi | |
2593 | CC=$ac_cv_prog_CC | |
2594 | if test -n "$CC"; then | |
81ecdfbb RW |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2596 | $as_echo "$CC" >&6; } | |
0ab6f085 | 2597 | else |
81ecdfbb RW |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2599 | $as_echo "no" >&6; } | |
0ab6f085 AM |
2600 | fi |
2601 | ||
0ab6f085 | 2602 | |
81ecdfbb | 2603 | fi |
6bf9431b BE |
2604 | fi |
2605 | if test -z "$CC"; then | |
2606 | # Extract the first word of "cc", so it can be a program name with args. | |
2607 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2609 | $as_echo_n "checking for $ac_word... " >&6; } | |
2610 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2611 | $as_echo_n "(cached) " >&6 | |
6bf9431b BE |
2612 | else |
2613 | if test -n "$CC"; then | |
2614 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2615 | else | |
2616 | ac_prog_rejected=no | |
2617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2618 | for as_dir in $PATH | |
2619 | do | |
2620 | IFS=$as_save_IFS | |
2621 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2622 | for ac_exec_ext in '' $ac_executable_extensions; do |
2623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6bf9431b BE |
2624 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2625 | ac_prog_rejected=yes | |
2626 | continue | |
2627 | fi | |
2628 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6bf9431b BE |
2630 | break 2 |
2631 | fi | |
2632 | done | |
81ecdfbb RW |
2633 | done |
2634 | IFS=$as_save_IFS | |
6bf9431b BE |
2635 | |
2636 | if test $ac_prog_rejected = yes; then | |
2637 | # We found a bogon in the path, so make sure we never use it. | |
2638 | set dummy $ac_cv_prog_CC | |
2639 | shift | |
2640 | if test $# != 0; then | |
2641 | # We chose a different compiler from the bogus one. | |
2642 | # However, it has the same basename, so the bogon will be chosen | |
2643 | # first if we set CC to just the basename; use the full file name. | |
2644 | shift | |
2645 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2646 | fi | |
2647 | fi | |
2648 | fi | |
2649 | fi | |
2650 | CC=$ac_cv_prog_CC | |
2651 | if test -n "$CC"; then | |
81ecdfbb RW |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2653 | $as_echo "$CC" >&6; } | |
6bf9431b | 2654 | else |
81ecdfbb RW |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2656 | $as_echo "no" >&6; } | |
6bf9431b BE |
2657 | fi |
2658 | ||
81ecdfbb | 2659 | |
6bf9431b BE |
2660 | fi |
2661 | if test -z "$CC"; then | |
2662 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2663 | for ac_prog in cl.exe |
6bf9431b BE |
2664 | do |
2665 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2666 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2668 | $as_echo_n "checking for $ac_word... " >&6; } | |
2669 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2670 | $as_echo_n "(cached) " >&6 | |
6bf9431b BE |
2671 | else |
2672 | if test -n "$CC"; then | |
2673 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2674 | else | |
2675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2676 | for as_dir in $PATH | |
2677 | do | |
2678 | IFS=$as_save_IFS | |
2679 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2680 | for ac_exec_ext in '' $ac_executable_extensions; do |
2681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6bf9431b | 2682 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6bf9431b BE |
2684 | break 2 |
2685 | fi | |
2686 | done | |
81ecdfbb RW |
2687 | done |
2688 | IFS=$as_save_IFS | |
6bf9431b BE |
2689 | |
2690 | fi | |
2691 | fi | |
2692 | CC=$ac_cv_prog_CC | |
2693 | if test -n "$CC"; then | |
81ecdfbb RW |
2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2695 | $as_echo "$CC" >&6; } | |
6bf9431b | 2696 | else |
81ecdfbb RW |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2698 | $as_echo "no" >&6; } | |
6bf9431b BE |
2699 | fi |
2700 | ||
81ecdfbb | 2701 | |
6bf9431b BE |
2702 | test -n "$CC" && break |
2703 | done | |
2704 | fi | |
2705 | if test -z "$CC"; then | |
2706 | ac_ct_CC=$CC | |
81ecdfbb | 2707 | for ac_prog in cl.exe |
6bf9431b BE |
2708 | do |
2709 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2710 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2712 | $as_echo_n "checking for $ac_word... " >&6; } | |
2713 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2714 | $as_echo_n "(cached) " >&6 | |
6bf9431b BE |
2715 | else |
2716 | if test -n "$ac_ct_CC"; then | |
2717 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2718 | else | |
2719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2720 | for as_dir in $PATH | |
2721 | do | |
2722 | IFS=$as_save_IFS | |
2723 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2724 | for ac_exec_ext in '' $ac_executable_extensions; do |
2725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6bf9431b | 2726 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6bf9431b BE |
2728 | break 2 |
2729 | fi | |
2730 | done | |
81ecdfbb RW |
2731 | done |
2732 | IFS=$as_save_IFS | |
6bf9431b BE |
2733 | |
2734 | fi | |
2735 | fi | |
2736 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2737 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2739 | $as_echo "$ac_ct_CC" >&6; } | |
6bf9431b | 2740 | else |
81ecdfbb RW |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2742 | $as_echo "no" >&6; } | |
6bf9431b BE |
2743 | fi |
2744 | ||
81ecdfbb | 2745 | |
6bf9431b BE |
2746 | test -n "$ac_ct_CC" && break |
2747 | done | |
2748 | ||
81ecdfbb RW |
2749 | if test "x$ac_ct_CC" = x; then |
2750 | CC="" | |
2751 | else | |
2752 | case $cross_compiling:$ac_tool_warned in | |
2753 | yes:) | |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2755 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2756 | ac_tool_warned=yes ;; | |
2757 | esac | |
2758 | CC=$ac_ct_CC | |
2759 | fi | |
6bf9431b BE |
2760 | fi |
2761 | ||
2762 | fi | |
2763 | ||
2764 | ||
81ecdfbb RW |
2765 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2766 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2767 | as_fn_error "no acceptable C compiler found in \$PATH | |
2768 | See \`config.log' for more details." "$LINENO" 5; } | |
6bf9431b BE |
2769 | |
2770 | # Provide some information about the compiler. | |
81ecdfbb RW |
2771 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2772 | set X $ac_compile | |
2773 | ac_compiler=$2 | |
2774 | for ac_option in --version -v -V -qversion; do | |
2775 | { { ac_try="$ac_compiler $ac_option >&5" | |
2776 | case "(($ac_try" in | |
2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2778 | *) ac_try_echo=$ac_try;; | |
2779 | esac | |
2780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2781 | $as_echo "$ac_try_echo"; } >&5 | |
2782 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6bf9431b | 2783 | ac_status=$? |
81ecdfbb RW |
2784 | if test -s conftest.err; then |
2785 | sed '10a\ | |
2786 | ... rest of stderr output deleted ... | |
2787 | 10q' conftest.err >conftest.er1 | |
2788 | cat conftest.er1 >&5 | |
2789 | rm -f conftest.er1 conftest.err | |
2790 | fi | |
2791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2792 | test $ac_status = 0; } | |
2793 | done | |
6bf9431b | 2794 | |
81ecdfbb | 2795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6bf9431b BE |
2796 | /* end confdefs.h. */ |
2797 | ||
2798 | int | |
2799 | main () | |
2800 | { | |
2801 | ||
2802 | ; | |
2803 | return 0; | |
2804 | } | |
2805 | _ACEOF | |
2806 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2807 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
6bf9431b BE |
2808 | # Try to create an executable without -o first, disregard a.out. |
2809 | # It will help us diagnose broken compilers, and finding out an intuition | |
2810 | # of exeext. | |
81ecdfbb RW |
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2812 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2813 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2814 | ||
2815 | # The possible output files: | |
2816 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2817 | ||
2818 | ac_rmfiles= | |
2819 | for ac_file in $ac_files | |
2820 | do | |
2821 | case $ac_file in | |
2822 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2823 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2824 | esac | |
2825 | done | |
2826 | rm -f $ac_rmfiles | |
2827 | ||
2828 | if { { ac_try="$ac_link_default" | |
2829 | case "(($ac_try" in | |
2830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2831 | *) ac_try_echo=$ac_try;; | |
2832 | esac | |
2833 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2834 | $as_echo "$ac_try_echo"; } >&5 | |
2835 | (eval "$ac_link_default") 2>&5 | |
2836 | ac_status=$? | |
2837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2838 | test $ac_status = 0; }; then : | |
2839 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2840 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2841 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2842 | # so that the user can short-circuit this test for compilers unknown to | |
2843 | # Autoconf. | |
2844 | for ac_file in $ac_files '' | |
6bf9431b BE |
2845 | do |
2846 | test -f "$ac_file" || continue | |
2847 | case $ac_file in | |
81ecdfbb | 2848 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
6bf9431b BE |
2849 | ;; |
2850 | [ab].out ) | |
2851 | # We found the default executable, but exeext='' is most | |
2852 | # certainly right. | |
2853 | break;; | |
2854 | *.* ) | |
81ecdfbb RW |
2855 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2856 | then :; else | |
2857 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2858 | fi | |
2859 | # We set ac_cv_exeext here because the later test for it is not | |
2860 | # safe: cross compilers may not add the suffix if given an `-o' | |
2861 | # argument, so we may need to know it at that point already. | |
2862 | # Even if this section looks crufty: it has the advantage of | |
2863 | # actually working. | |
6bf9431b BE |
2864 | break;; |
2865 | * ) | |
2866 | break;; | |
2867 | esac | |
2868 | done | |
81ecdfbb RW |
2869 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2870 | ||
6bf9431b | 2871 | else |
81ecdfbb RW |
2872 | ac_file='' |
2873 | fi | |
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2875 | $as_echo "$ac_file" >&6; } | |
2876 | if test -z "$ac_file"; then : | |
2877 | $as_echo "$as_me: failed program was:" >&5 | |
6bf9431b BE |
2878 | sed 's/^/| /' conftest.$ac_ext >&5 |
2879 | ||
81ecdfbb RW |
2880 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2881 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2882 | { as_fn_set_status 77 | |
2883 | as_fn_error "C compiler cannot create executables | |
2884 | See \`config.log' for more details." "$LINENO" 5; }; } | |
6bf9431b | 2885 | fi |
6bf9431b | 2886 | ac_exeext=$ac_cv_exeext |
6bf9431b | 2887 | |
81ecdfbb | 2888 | # Check that the compiler produces executables we can run. If not, either |
6bf9431b | 2889 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2891 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
6bf9431b BE |
2892 | # If not cross compiling, check that we can run a simple program. |
2893 | if test "$cross_compiling" != yes; then | |
2894 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2895 | { { case "(($ac_try" in |
2896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2897 | *) ac_try_echo=$ac_try;; | |
2898 | esac | |
2899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2900 | $as_echo "$ac_try_echo"; } >&5 | |
2901 | (eval "$ac_try") 2>&5 | |
6bf9431b | 2902 | ac_status=$? |
81ecdfbb RW |
2903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2904 | test $ac_status = 0; }; }; then | |
6bf9431b BE |
2905 | cross_compiling=no |
2906 | else | |
2907 | if test "$cross_compiling" = maybe; then | |
2908 | cross_compiling=yes | |
2909 | else | |
81ecdfbb RW |
2910 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2911 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2912 | as_fn_error "cannot run C compiled programs. | |
6bf9431b | 2913 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2914 | See \`config.log' for more details." "$LINENO" 5; } |
6bf9431b BE |
2915 | fi |
2916 | fi | |
2917 | fi | |
81ecdfbb RW |
2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2919 | $as_echo "yes" >&6; } | |
6bf9431b | 2920 | |
81ecdfbb | 2921 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
6bf9431b | 2922 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2923 | # Check that the compiler produces executables we can run. If not, either |
6bf9431b | 2924 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2926 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2928 | $as_echo "$cross_compiling" >&6; } | |
2929 | ||
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2931 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2932 | if { { ac_try="$ac_link" | |
2933 | case "(($ac_try" in | |
2934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2935 | *) ac_try_echo=$ac_try;; | |
2936 | esac | |
2937 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2938 | $as_echo "$ac_try_echo"; } >&5 | |
2939 | (eval "$ac_link") 2>&5 | |
6bf9431b | 2940 | ac_status=$? |
81ecdfbb RW |
2941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2942 | test $ac_status = 0; }; then : | |
6bf9431b BE |
2943 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2944 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2945 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2946 | # `rm'. | |
2947 | for ac_file in conftest.exe conftest conftest.*; do | |
2948 | test -f "$ac_file" || continue | |
2949 | case $ac_file in | |
81ecdfbb | 2950 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
6bf9431b | 2951 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
6bf9431b BE |
2952 | break;; |
2953 | * ) break;; | |
2954 | esac | |
2955 | done | |
2956 | else | |
81ecdfbb RW |
2957 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2958 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2959 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2960 | See \`config.log' for more details." "$LINENO" 5; } | |
6bf9431b | 2961 | fi |
6bf9431b | 2962 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2964 | $as_echo "$ac_cv_exeext" >&6; } | |
6bf9431b BE |
2965 | |
2966 | rm -f conftest.$ac_ext | |
2967 | EXEEXT=$ac_cv_exeext | |
2968 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2970 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2971 | if test "${ac_cv_objext+set}" = set; then : | |
2972 | $as_echo_n "(cached) " >&6 | |
6bf9431b | 2973 | else |
81ecdfbb | 2974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6bf9431b BE |
2975 | /* end confdefs.h. */ |
2976 | ||
2977 | int | |
2978 | main () | |
2979 | { | |
2980 | ||
2981 | ; | |
2982 | return 0; | |
2983 | } | |
2984 | _ACEOF | |
2985 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2986 | if { { ac_try="$ac_compile" |
2987 | case "(($ac_try" in | |
2988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2989 | *) ac_try_echo=$ac_try;; | |
2990 | esac | |
2991 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2992 | $as_echo "$ac_try_echo"; } >&5 | |
2993 | (eval "$ac_compile") 2>&5 | |
2994 | ac_status=$? | |
2995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2996 | test $ac_status = 0; }; then : | |
2997 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2998 | test -f "$ac_file" || continue; | |
6bf9431b | 2999 | case $ac_file in |
81ecdfbb | 3000 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
6bf9431b BE |
3001 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3002 | break;; | |
3003 | esac | |
3004 | done | |
3005 | else | |
81ecdfbb | 3006 | $as_echo "$as_me: failed program was:" >&5 |
6bf9431b BE |
3007 | sed 's/^/| /' conftest.$ac_ext >&5 |
3008 | ||
81ecdfbb RW |
3009 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3011 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3012 | See \`config.log' for more details." "$LINENO" 5; } | |
6bf9431b | 3013 | fi |
6bf9431b BE |
3014 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3015 | fi | |
81ecdfbb RW |
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3017 | $as_echo "$ac_cv_objext" >&6; } | |
6bf9431b BE |
3018 | OBJEXT=$ac_cv_objext |
3019 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3021 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3022 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3023 | $as_echo_n "(cached) " >&6 | |
6bf9431b | 3024 | else |
81ecdfbb | 3025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6bf9431b BE |
3026 | /* end confdefs.h. */ |
3027 | ||
3028 | int | |
3029 | main () | |
3030 | { | |
3031 | #ifndef __GNUC__ | |
3032 | choke me | |
3033 | #endif | |
3034 | ||
3035 | ; | |
3036 | return 0; | |
3037 | } | |
3038 | _ACEOF | |
81ecdfbb | 3039 | if ac_fn_c_try_compile "$LINENO"; then : |
6bf9431b BE |
3040 | ac_compiler_gnu=yes |
3041 | else | |
81ecdfbb | 3042 | ac_compiler_gnu=no |
6bf9431b | 3043 | fi |
81ecdfbb | 3044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6bf9431b BE |
3045 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3046 | ||
3047 | fi | |
81ecdfbb RW |
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3049 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3050 | if test $ac_compiler_gnu = yes; then | |
3051 | GCC=yes | |
3052 | else | |
3053 | GCC= | |
3054 | fi | |
6bf9431b BE |
3055 | ac_test_CFLAGS=${CFLAGS+set} |
3056 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3058 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3059 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3060 | $as_echo_n "(cached) " >&6 | |
3061 | else | |
3062 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3063 | ac_c_werror_flag=yes | |
3064 | ac_cv_prog_cc_g=no | |
3065 | CFLAGS="-g" | |
3066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6bf9431b BE |
3067 | /* end confdefs.h. */ |
3068 | ||
3069 | int | |
3070 | main () | |
3071 | { | |
3072 | ||
3073 | ; | |
3074 | return 0; | |
3075 | } | |
3076 | _ACEOF | |
81ecdfbb | 3077 | if ac_fn_c_try_compile "$LINENO"; then : |
6bf9431b BE |
3078 | ac_cv_prog_cc_g=yes |
3079 | else | |
81ecdfbb RW |
3080 | CFLAGS="" |
3081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3082 | /* end confdefs.h. */ | |
3083 | ||
3084 | int | |
3085 | main () | |
3086 | { | |
3087 | ||
3088 | ; | |
3089 | return 0; | |
3090 | } | |
3091 | _ACEOF | |
3092 | if ac_fn_c_try_compile "$LINENO"; then : | |
3093 | ||
3094 | else | |
3095 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3096 | CFLAGS="-g" | |
3097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3098 | /* end confdefs.h. */ | |
3099 | ||
3100 | int | |
3101 | main () | |
3102 | { | |
6bf9431b | 3103 | |
81ecdfbb RW |
3104 | ; |
3105 | return 0; | |
3106 | } | |
3107 | _ACEOF | |
3108 | if ac_fn_c_try_compile "$LINENO"; then : | |
3109 | ac_cv_prog_cc_g=yes | |
3110 | fi | |
3111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bf9431b | 3112 | fi |
81ecdfbb | 3113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6bf9431b | 3114 | fi |
81ecdfbb RW |
3115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3116 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3117 | fi | |
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3119 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
6bf9431b BE |
3120 | if test "$ac_test_CFLAGS" = set; then |
3121 | CFLAGS=$ac_save_CFLAGS | |
3122 | elif test $ac_cv_prog_cc_g = yes; then | |
3123 | if test "$GCC" = yes; then | |
3124 | CFLAGS="-g -O2" | |
3125 | else | |
3126 | CFLAGS="-g" | |
3127 | fi | |
3128 | else | |
3129 | if test "$GCC" = yes; then | |
3130 | CFLAGS="-O2" | |
3131 | else | |
3132 | CFLAGS= | |
3133 | fi | |
3134 | fi | |
81ecdfbb RW |
3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3136 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3137 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3138 | $as_echo_n "(cached) " >&6 | |
6bf9431b | 3139 | else |
81ecdfbb | 3140 | ac_cv_prog_cc_c89=no |
6bf9431b | 3141 | ac_save_CC=$CC |
81ecdfbb | 3142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6bf9431b BE |
3143 | /* end confdefs.h. */ |
3144 | #include <stdarg.h> | |
3145 | #include <stdio.h> | |
3146 | #include <sys/types.h> | |
3147 | #include <sys/stat.h> | |
3148 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3149 | struct buf { int x; }; | |
3150 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3151 | static char *e (p, i) | |
3152 | char **p; | |
3153 | int i; | |
3154 | { | |
3155 | return p[i]; | |
3156 | } | |
3157 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3158 | { | |
3159 | char *s; | |
3160 | va_list v; | |
3161 | va_start (v,p); | |
3162 | s = g (p, va_arg (v,int)); | |
3163 | va_end (v); | |
3164 | return s; | |
3165 | } | |
3166 | ||
3167 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3168 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3169 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3170 | as 'x'. The following induces an error, until -std is added to get |
6bf9431b BE |
3171 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3172 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3173 | that's true only with -std. */ |
6bf9431b BE |
3174 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3175 | ||
81ecdfbb RW |
3176 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3177 | inside strings and character constants. */ | |
3178 | #define FOO(x) 'x' | |
3179 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3180 | ||
6bf9431b BE |
3181 | int test (int i, double x); |
3182 | struct s1 {int (*f) (int a);}; | |
3183 | struct s2 {int (*f) (double a);}; | |
3184 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3185 | int argc; | |
3186 | char **argv; | |
3187 | int | |
3188 | main () | |
3189 | { | |
3190 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3191 | ; | |
3192 | return 0; | |
3193 | } | |
3194 | _ACEOF | |
81ecdfbb RW |
3195 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3196 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
6bf9431b BE |
3197 | do |
3198 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3199 | if ac_fn_c_try_compile "$LINENO"; then : |
3200 | ac_cv_prog_cc_c89=$ac_arg | |
6bf9431b | 3201 | fi |
81ecdfbb RW |
3202 | rm -f core conftest.err conftest.$ac_objext |
3203 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
6bf9431b | 3204 | done |
81ecdfbb | 3205 | rm -f conftest.$ac_ext |
6bf9431b BE |
3206 | CC=$ac_save_CC |
3207 | ||
3208 | fi | |
81ecdfbb RW |
3209 | # AC_CACHE_VAL |
3210 | case "x$ac_cv_prog_cc_c89" in | |
3211 | x) | |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3213 | $as_echo "none needed" >&6; } ;; | |
3214 | xno) | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3216 | $as_echo "unsupported" >&6; } ;; | |
6bf9431b | 3217 | *) |
81ecdfbb RW |
3218 | CC="$CC $ac_cv_prog_cc_c89" |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3220 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
6bf9431b | 3221 | esac |
81ecdfbb | 3222 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
6bf9431b | 3223 | |
0ab6f085 AM |
3224 | fi |
3225 | ||
6bf9431b BE |
3226 | ac_ext=c |
3227 | ac_cpp='$CPP $CPPFLAGS' | |
3228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3231 | ||
3232 | ||
81ecdfbb RW |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3234 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3235 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3236 | $as_echo_n "(cached) " >&6 | |
6bf9431b BE |
3237 | else |
3238 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 3239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6bf9431b BE |
3240 | /* end confdefs.h. */ |
3241 | ||
81ecdfbb RW |
3242 | /* Override any GCC internal prototype to avoid an error. |
3243 | Use char because int might match the return type of a GCC | |
3244 | builtin and then its argument prototype would still apply. */ | |
6bf9431b BE |
3245 | #ifdef __cplusplus |
3246 | extern "C" | |
3247 | #endif | |
6bf9431b BE |
3248 | char strerror (); |
3249 | int | |
3250 | main () | |
3251 | { | |
81ecdfbb | 3252 | return strerror (); |
6bf9431b BE |
3253 | ; |
3254 | return 0; | |
3255 | } | |
3256 | _ACEOF | |
81ecdfbb RW |
3257 | for ac_lib in '' cposix; do |
3258 | if test -z "$ac_lib"; then | |
3259 | ac_res="none required" | |
3260 | else | |
3261 | ac_res=-l$ac_lib | |
0ab6f085 | 3262 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3263 | fi |
3264 | if ac_fn_c_try_link "$LINENO"; then : | |
3265 | ac_cv_search_strerror=$ac_res | |
3266 | fi | |
3267 | rm -f core conftest.err conftest.$ac_objext \ | |
3268 | conftest$ac_exeext | |
3269 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3270 | break | |
3271 | fi | |
3272 | done | |
3273 | if test "${ac_cv_search_strerror+set}" = set; then : | |
6bf9431b | 3274 | |
1b9750d6 | 3275 | else |
81ecdfbb | 3276 | ac_cv_search_strerror=no |
6bf9431b | 3277 | fi |
81ecdfbb | 3278 | rm conftest.$ac_ext |
6bf9431b BE |
3279 | LIBS=$ac_func_search_save_LIBS |
3280 | fi | |
81ecdfbb RW |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3282 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3283 | ac_res=$ac_cv_search_strerror | |
3284 | if test "$ac_res" != no; then : | |
3285 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6bf9431b BE |
3286 | |
3287 | fi | |
3288 | ||
3289 | ||
3290 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
81ecdfbb RW |
3291 | am__api_version='1.11' |
3292 | ||
6bf9431b BE |
3293 | # Find a good install program. We prefer a C program (faster), |
3294 | # so one script is as good as another. But avoid the broken or | |
3295 | # incompatible versions: | |
3296 | # SysV /etc/install, /usr/sbin/install | |
3297 | # SunOS /usr/etc/install | |
3298 | # IRIX /sbin/install | |
3299 | # AIX /bin/install | |
3300 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3301 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3302 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3303 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3304 | # OS/2's system install, which has a completely different semantic | |
3305 | # ./install, which can be erroneously created by make from ./install.sh. | |
58c85be7 | 3306 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3308 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6bf9431b | 3309 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3310 | if test "${ac_cv_path_install+set}" = set; then : |
3311 | $as_echo_n "(cached) " >&6 | |
6bf9431b BE |
3312 | else |
3313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3314 | for as_dir in $PATH | |
3315 | do | |
3316 | IFS=$as_save_IFS | |
3317 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3318 | # Account for people who put trailing slashes in PATH elements. |
3319 | case $as_dir/ in #(( | |
3320 | ./ | .// | /[cC]/* | \ | |
6bf9431b | 3321 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3322 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
6bf9431b BE |
3323 | /usr/ucb/* ) ;; |
3324 | *) | |
3325 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3326 | # Don't use installbsd from OSF since it installs stuff as root | |
3327 | # by default. | |
3328 | for ac_prog in ginstall scoinst install; do | |
3329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3330 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
6bf9431b BE |
3331 | if test $ac_prog = install && |
3332 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3333 | # AIX install. It has an incompatible calling convention. | |
3334 | : | |
3335 | elif test $ac_prog = install && | |
3336 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3337 | # program-specific install script used by HP pwplus--don't use. | |
3338 | : | |
252b5132 | 3339 | else |
58c85be7 RW |
3340 | rm -rf conftest.one conftest.two conftest.dir |
3341 | echo one > conftest.one | |
3342 | echo two > conftest.two | |
3343 | mkdir conftest.dir | |
3344 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3345 | test -s conftest.one && test -s conftest.two && | |
3346 | test -s conftest.dir/conftest.one && | |
3347 | test -s conftest.dir/conftest.two | |
3348 | then | |
3349 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3350 | break 3 | |
3351 | fi | |
252b5132 RH |
3352 | fi |
3353 | fi | |
3354 | done | |
6bf9431b BE |
3355 | done |
3356 | ;; | |
3357 | esac | |
81ecdfbb RW |
3358 | |
3359 | done | |
3360 | IFS=$as_save_IFS | |
6bf9431b | 3361 | |
58c85be7 | 3362 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3363 | |
3364 | fi | |
3365 | if test "${ac_cv_path_install+set}" = set; then | |
6bf9431b | 3366 | INSTALL=$ac_cv_path_install |
252b5132 | 3367 | else |
58c85be7 RW |
3368 | # As a last resort, use the slow shell script. Don't cache a |
3369 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3370 | # break other packages using the cache if that directory is |
58c85be7 | 3371 | # removed, or if the value is a relative name. |
6bf9431b | 3372 | INSTALL=$ac_install_sh |
252b5132 RH |
3373 | fi |
3374 | fi | |
81ecdfbb RW |
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3376 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3377 | |
3378 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3379 | # It thinks the first close brace ends the variable substitution. | |
3380 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3381 | ||
6bf9431b | 3382 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3383 | |
3384 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3385 | ||
81ecdfbb RW |
3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3387 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3388 | # Just in case |
3389 | sleep 1 | |
6bf9431b | 3390 | echo timestamp > conftest.file |
81ecdfbb RW |
3391 | # Reject unsafe characters in $srcdir or the absolute working directory |
3392 | # name. Accept space and tab only in the latter. | |
3393 | am_lf=' | |
3394 | ' | |
3395 | case `pwd` in | |
3396 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3397 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3398 | esac | |
3399 | case $srcdir in | |
3400 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3401 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3402 | esac | |
3403 | ||
252b5132 RH |
3404 | # Do `set' in a subshell so we don't clobber the current shell's |
3405 | # arguments. Must try -L first in case configure is actually a | |
3406 | # symlink; some systems play weird games with the mod time of symlinks | |
3407 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3408 | # directory). | |
3409 | if ( | |
81ecdfbb | 3410 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3411 | if test "$*" = "X"; then |
3412 | # -L didn't work. | |
81ecdfbb | 3413 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3414 | fi |
6bf9431b BE |
3415 | rm -f conftest.file |
3416 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3417 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3418 | |
3419 | # If neither matched, then we have a broken ls. This can happen | |
3420 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3421 | # broken ls alias from the environment. This has actually | |
3422 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3423 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3424 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3425 | fi |
3426 | ||
6bf9431b | 3427 | test "$2" = conftest.file |
252b5132 RH |
3428 | ) |
3429 | then | |
3430 | # Ok. | |
3431 | : | |
3432 | else | |
81ecdfbb RW |
3433 | as_fn_error "newly created file is older than distributed files! |
3434 | Check your system clock" "$LINENO" 5 | |
252b5132 | 3435 | fi |
81ecdfbb RW |
3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3437 | $as_echo "yes" >&6; } | |
252b5132 | 3438 | test "$program_prefix" != NONE && |
81ecdfbb | 3439 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3440 | # Use a double $ so make ignores it. |
3441 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3442 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3443 | # Double any \ or $. | |
6bf9431b | 3444 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3445 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3446 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
6bf9431b BE |
3447 | |
3448 | # expand $ac_aux_dir to an absolute path | |
3449 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3450 | ||
81ecdfbb RW |
3451 | if test x"${MISSING+set}" != xset; then |
3452 | case $am_aux_dir in | |
3453 | *\ * | *\ *) | |
3454 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3455 | *) | |
3456 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3457 | esac | |
3458 | fi | |
6bf9431b BE |
3459 | # Use eval to expand $SHELL |
3460 | if eval "$MISSING --run true"; then | |
3461 | am_missing_run="$MISSING --run " | |
3462 | else | |
3463 | am_missing_run= | |
81ecdfbb RW |
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3465 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
6bf9431b | 3466 | fi |
252b5132 | 3467 | |
81ecdfbb RW |
3468 | if test x"${install_sh}" != xset; then |
3469 | case $am_aux_dir in | |
3470 | *\ * | *\ *) | |
3471 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3472 | *) | |
3473 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3474 | esac | |
3475 | fi | |
3476 | ||
3477 | # Installed binaries are usually stripped using `strip' when the user | |
3478 | # run `make install-strip'. However `strip' might not be the right | |
3479 | # tool to use in cross-compilation environments, therefore Automake | |
3480 | # will honor the `STRIP' environment variable to overrule this program. | |
3481 | if test "$cross_compiling" != no; then | |
3482 | if test -n "$ac_tool_prefix"; then | |
3483 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3484 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3486 | $as_echo_n "checking for $ac_word... " >&6; } | |
3487 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3488 | $as_echo_n "(cached) " >&6 | |
6bf9431b | 3489 | else |
81ecdfbb RW |
3490 | if test -n "$STRIP"; then |
3491 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6bf9431b BE |
3492 | else |
3493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3494 | for as_dir in $PATH | |
3495 | do | |
3496 | IFS=$as_save_IFS | |
3497 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3498 | for ac_exec_ext in '' $ac_executable_extensions; do |
3499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3500 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6bf9431b BE |
3502 | break 2 |
3503 | fi | |
3504 | done | |
81ecdfbb RW |
3505 | done |
3506 | IFS=$as_save_IFS | |
6bf9431b BE |
3507 | |
3508 | fi | |
3509 | fi | |
81ecdfbb RW |
3510 | STRIP=$ac_cv_prog_STRIP |
3511 | if test -n "$STRIP"; then | |
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3513 | $as_echo "$STRIP" >&6; } | |
6bf9431b | 3514 | else |
81ecdfbb RW |
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3516 | $as_echo "no" >&6; } | |
6bf9431b BE |
3517 | fi |
3518 | ||
252b5132 | 3519 | |
81ecdfbb RW |
3520 | fi |
3521 | if test -z "$ac_cv_prog_STRIP"; then | |
3522 | ac_ct_STRIP=$STRIP | |
3523 | # Extract the first word of "strip", so it can be a program name with args. | |
3524 | set dummy strip; ac_word=$2 | |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3526 | $as_echo_n "checking for $ac_word... " >&6; } | |
3527 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3528 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3529 | else |
81ecdfbb RW |
3530 | if test -n "$ac_ct_STRIP"; then |
3531 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
0ab6f085 | 3532 | else |
81ecdfbb RW |
3533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3534 | for as_dir in $PATH | |
3535 | do | |
3536 | IFS=$as_save_IFS | |
3537 | test -z "$as_dir" && as_dir=. | |
3538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3540 | ac_cv_prog_ac_ct_STRIP="strip" | |
3541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3542 | break 2 | |
3543 | fi | |
3544 | done | |
3545 | done | |
3546 | IFS=$as_save_IFS | |
3547 | ||
0ab6f085 | 3548 | fi |
252b5132 | 3549 | fi |
81ecdfbb RW |
3550 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3551 | if test -n "$ac_ct_STRIP"; then | |
3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3553 | $as_echo "$ac_ct_STRIP" >&6; } | |
252b5132 | 3554 | else |
81ecdfbb RW |
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3556 | $as_echo "no" >&6; } | |
252b5132 RH |
3557 | fi |
3558 | ||
81ecdfbb RW |
3559 | if test "x$ac_ct_STRIP" = x; then |
3560 | STRIP=":" | |
3561 | else | |
3562 | case $cross_compiling:$ac_tool_warned in | |
3563 | yes:) | |
3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3565 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3566 | ac_tool_warned=yes ;; | |
3567 | esac | |
3568 | STRIP=$ac_ct_STRIP | |
3569 | fi | |
3570 | else | |
3571 | STRIP="$ac_cv_prog_STRIP" | |
3572 | fi | |
3573 | ||
3574 | fi | |
3575 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3576 | ||
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3578 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3579 | if test -z "$MKDIR_P"; then | |
3580 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3581 | $as_echo_n "(cached) " >&6 | |
3582 | else | |
3583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3584 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3585 | do | |
3586 | IFS=$as_save_IFS | |
3587 | test -z "$as_dir" && as_dir=. | |
3588 | for ac_prog in mkdir gmkdir; do | |
3589 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3590 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3591 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3592 | 'mkdir (GNU coreutils) '* | \ | |
3593 | 'mkdir (coreutils) '* | \ | |
3594 | 'mkdir (fileutils) '4.1*) | |
3595 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3596 | break 3;; | |
3597 | esac | |
3598 | done | |
3599 | done | |
3600 | done | |
3601 | IFS=$as_save_IFS | |
3602 | ||
3603 | fi | |
3604 | ||
3605 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3606 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3607 | else | |
3608 | # As a last resort, use the slow shell script. Don't cache a | |
3609 | # value for MKDIR_P within a source directory, because that will | |
3610 | # break other packages using the cache if that directory is | |
3611 | # removed, or if the value is a relative name. | |
3612 | test -d ./--version && rmdir ./--version | |
3613 | MKDIR_P="$ac_install_sh -d" | |
3614 | fi | |
3615 | fi | |
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3617 | $as_echo "$MKDIR_P" >&6; } | |
3618 | ||
3619 | mkdir_p="$MKDIR_P" | |
3620 | case $mkdir_p in | |
3621 | [\\/$]* | ?:[\\/]*) ;; | |
3622 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3623 | esac | |
3624 | ||
3625 | for ac_prog in gawk mawk nawk awk | |
3626 | do | |
3627 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3628 | set dummy $ac_prog; ac_word=$2 | |
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3630 | $as_echo_n "checking for $ac_word... " >&6; } | |
3631 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3632 | $as_echo_n "(cached) " >&6 | |
3633 | else | |
3634 | if test -n "$AWK"; then | |
3635 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3636 | else | |
3637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3638 | for as_dir in $PATH | |
3639 | do | |
3640 | IFS=$as_save_IFS | |
3641 | test -z "$as_dir" && as_dir=. | |
3642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3643 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3644 | ac_cv_prog_AWK="$ac_prog" | |
3645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3646 | break 2 | |
3647 | fi | |
3648 | done | |
3649 | done | |
3650 | IFS=$as_save_IFS | |
3651 | ||
3652 | fi | |
3653 | fi | |
3654 | AWK=$ac_cv_prog_AWK | |
3655 | if test -n "$AWK"; then | |
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3657 | $as_echo "$AWK" >&6; } | |
3658 | else | |
3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3660 | $as_echo "no" >&6; } | |
3661 | fi | |
3662 | ||
3663 | ||
3664 | test -n "$AWK" && break | |
3665 | done | |
3666 | ||
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3668 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3669 | set x ${MAKE-make} | |
3670 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3671 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3672 | $as_echo_n "(cached) " >&6 | |
3673 | else | |
3674 | cat >conftest.make <<\_ACEOF | |
3675 | SHELL = /bin/sh | |
3676 | all: | |
3677 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3678 | _ACEOF | |
3679 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3680 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3681 | *@@@%%%=?*=@@@%%%*) | |
3682 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3683 | *) | |
3684 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3685 | esac | |
3686 | rm -f conftest.make | |
3687 | fi | |
3688 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3690 | $as_echo "yes" >&6; } | |
3691 | SET_MAKE= | |
3692 | else | |
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3694 | $as_echo "no" >&6; } | |
3695 | SET_MAKE="MAKE=${MAKE-make}" | |
3696 | fi | |
3697 | ||
3698 | rm -rf .tst 2>/dev/null | |
6bf9431b BE |
3699 | mkdir .tst 2>/dev/null |
3700 | if test -d .tst; then | |
3701 | am__leading_dot=. | |
3702 | else | |
3703 | am__leading_dot=_ | |
3704 | fi | |
3705 | rmdir .tst 2>/dev/null | |
3706 | ||
3707 | DEPDIR="${am__leading_dot}deps" | |
3708 | ||
81ecdfbb | 3709 | ac_config_commands="$ac_config_commands depfiles" |
6bf9431b BE |
3710 | |
3711 | ||
3712 | am_make=${MAKE-make} | |
3713 | cat > confinc << 'END' | |
3714 | am__doit: | |
81ecdfbb | 3715 | @echo this is the am__doit target |
6bf9431b BE |
3716 | .PHONY: am__doit |
3717 | END | |
3718 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3720 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
6bf9431b BE |
3721 | am__include="#" |
3722 | am__quote= | |
3723 | _am_result=none | |
3724 | # First try GNU make style include. | |
3725 | echo "include confinc" > confmf | |
81ecdfbb RW |
3726 | # Ignore all kinds of additional output from `make'. |
3727 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3728 | *the\ am__doit\ target*) | |
3729 | am__include=include | |
3730 | am__quote= | |
3731 | _am_result=GNU | |
3732 | ;; | |
3733 | esac | |
6bf9431b BE |
3734 | # Now try BSD make style include. |
3735 | if test "$am__include" = "#"; then | |
3736 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
3737 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3738 | *the\ am__doit\ target*) | |
3739 | am__include=.include | |
3740 | am__quote="\"" | |
3741 | _am_result=BSD | |
3742 | ;; | |
3743 | esac | |
6bf9431b BE |
3744 | fi |
3745 | ||
252b5132 | 3746 | |
81ecdfbb RW |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3748 | $as_echo "$_am_result" >&6; } | |
6bf9431b | 3749 | rm -f confinc confmf |
252b5132 | 3750 | |
81ecdfbb RW |
3751 | # Check whether --enable-dependency-tracking was given. |
3752 | if test "${enable_dependency_tracking+set}" = set; then : | |
3753 | enableval=$enable_dependency_tracking; | |
3754 | fi | |
252b5132 | 3755 | |
6bf9431b BE |
3756 | if test "x$enable_dependency_tracking" != xno; then |
3757 | am_depcomp="$ac_aux_dir/depcomp" | |
3758 | AMDEPBACKSLASH='\' | |
252b5132 | 3759 | fi |
81ecdfbb | 3760 | if test "x$enable_dependency_tracking" != xno; then |
6bf9431b BE |
3761 | AMDEP_TRUE= |
3762 | AMDEP_FALSE='#' | |
3763 | else | |
3764 | AMDEP_TRUE='#' | |
3765 | AMDEP_FALSE= | |
3766 | fi | |
3767 | ||
3768 | ||
81ecdfbb RW |
3769 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3770 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3771 | # is not polluted with repeated "-I." | |
3772 | am__isrc=' -I$(srcdir)' | |
3773 | # test to see if srcdir already configured | |
3774 | if test -f $srcdir/config.status; then | |
3775 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3776 | fi | |
6bf9431b BE |
3777 | fi |
3778 | ||
3779 | # test whether we have cygpath | |
3780 | if test -z "$CYGPATH_W"; then | |
3781 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3782 | CYGPATH_W='cygpath -w' | |
3783 | else | |
3784 | CYGPATH_W=echo | |
3785 | fi | |
3786 | fi | |
3787 | ||
3788 | ||
3789 | # Define the identity of the package. | |
3790 | PACKAGE=gprof | |
3791 | VERSION=${BFD_VERSION} | |
3792 | ||
3793 | ||
3794 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3795 | #define PACKAGE "$PACKAGE" |
6bf9431b BE |
3796 | _ACEOF |
3797 | ||
252b5132 | 3798 | |
6bf9431b | 3799 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3800 | #define VERSION "$VERSION" |
6bf9431b BE |
3801 | _ACEOF |
3802 | ||
3803 | # Some tools Automake needs. | |
3804 | ||
3805 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3806 | ||
3807 | ||
3808 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3809 | ||
3810 | ||
3811 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3812 | ||
3813 | ||
3814 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3815 | ||
3816 | ||
3817 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3818 | ||
6bf9431b BE |
3819 | # We need awk for the "check" target. The system "awk" is bad on |
3820 | # some platforms. | |
df76639a AM |
3821 | # Always define AMTAR for backward compatibility. |
3822 | ||
3823 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3824 | ||
3825 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3826 | ||
3827 | ||
6bf9431b BE |
3828 | |
3829 | ||
3830 | depcc="$CC" am_compiler_list= | |
3831 | ||
81ecdfbb RW |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3833 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3834 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3835 | $as_echo_n "(cached) " >&6 | |
6bf9431b BE |
3836 | else |
3837 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3838 | # We make a subdir and do the tests there. Otherwise we can end up | |
3839 | # making bogus files that we don't know about and never remove. For | |
3840 | # instance it was reported that on HP-UX the gcc test will end up | |
3841 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3842 | # in D'. | |
3843 | mkdir conftest.dir | |
3844 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3845 | # using a relative directory. | |
3846 | cp "$am_depcomp" conftest.dir | |
3847 | cd conftest.dir | |
3848 | # We will build objects and dependencies in a subdirectory because | |
3849 | # it helps to detect inapplicable dependency modes. For instance | |
3850 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3851 | # side effect of compilation, but ICC will put the dependencies in | |
3852 | # the current directory while Tru64 will put them in the object | |
3853 | # directory. | |
3854 | mkdir sub | |
3855 | ||
3856 | am_cv_CC_dependencies_compiler_type=none | |
3857 | if test "$am_compiler_list" = ""; then | |
3858 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3859 | fi | |
81ecdfbb RW |
3860 | am__universal=false |
3861 | case " $depcc " in #( | |
3862 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3863 | esac | |
3864 | ||
6bf9431b BE |
3865 | for depmode in $am_compiler_list; do |
3866 | # Setup a source with many dependencies, because some compilers | |
3867 | # like to wrap large dependency lists on column 80 (with \), and | |
3868 | # we should not choose a depcomp mode which is confused by this. | |
3869 | # | |
3870 | # We need to recreate these files for each test, as the compiler may | |
3871 | # overwrite some of them when testing with obscure command lines. | |
3872 | # This happens at least with the AIX C compiler. | |
3873 | : > sub/conftest.c | |
3874 | for i in 1 2 3 4 5 6; do | |
3875 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3876 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3877 | # Solaris 8's {/usr,}/bin/sh. | |
3878 | touch sub/conftst$i.h | |
3879 | done | |
3880 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3881 | ||
81ecdfbb RW |
3882 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3883 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3884 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3885 | # versions had trouble with output in subdirs | |
3886 | am__obj=sub/conftest.${OBJEXT-o} | |
3887 | am__minus_obj="-o $am__obj" | |
6bf9431b | 3888 | case $depmode in |
81ecdfbb RW |
3889 | gcc) |
3890 | # This depmode causes a compiler race in universal mode. | |
3891 | test "$am__universal" = false || continue | |
3892 | ;; | |
6bf9431b BE |
3893 | nosideeffect) |
3894 | # after this tag, mechanisms are not by side-effect, so they'll | |
3895 | # only be used when explicitly requested | |
3896 | if test "x$enable_dependency_tracking" = xyes; then | |
3897 | continue | |
3898 | else | |
3899 | break | |
3900 | fi | |
3901 | ;; | |
81ecdfbb RW |
3902 | msvisualcpp | msvcmsys) |
3903 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3904 | # not run yet. These depmodes are late enough in the game, and | |
3905 | # so weak that their functioning should not be impacted. | |
3906 | am__obj=conftest.${OBJEXT-o} | |
3907 | am__minus_obj= | |
3908 | ;; | |
6bf9431b BE |
3909 | none) break ;; |
3910 | esac | |
6bf9431b | 3911 | if depmode=$depmode \ |
81ecdfbb | 3912 | source=sub/conftest.c object=$am__obj \ |
6bf9431b | 3913 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 3914 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
6bf9431b | 3915 | >/dev/null 2>conftest.err && |
81ecdfbb | 3916 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
6bf9431b | 3917 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 3918 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
6bf9431b BE |
3919 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3920 | # icc doesn't choke on unknown options, it will just issue warnings | |
3921 | # or remarks (even with -Werror). So we grep stderr for any message | |
3922 | # that says an option was ignored or not supported. | |
3923 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3924 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3925 | # The diagnosis changed in icc 8.0: | |
3926 | # icc: Command line remark: option '-MP' not supported | |
3927 | if (grep 'ignoring option' conftest.err || | |
3928 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3929 | am_cv_CC_dependencies_compiler_type=$depmode | |
3930 | break | |
3931 | fi | |
3932 | fi | |
3933 | done | |
3934 | ||
3935 | cd .. | |
3936 | rm -rf conftest.dir | |
252b5132 | 3937 | else |
6bf9431b | 3938 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3939 | fi |
3940 | ||
252b5132 | 3941 | fi |
81ecdfbb RW |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3943 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
6bf9431b BE |
3944 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3945 | ||
81ecdfbb | 3946 | if |
6bf9431b BE |
3947 | test "x$enable_dependency_tracking" != xno \ |
3948 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3949 | am__fastdepCC_TRUE= | |
3950 | am__fastdepCC_FALSE='#' | |
252b5132 | 3951 | else |
6bf9431b BE |
3952 | am__fastdepCC_TRUE='#' |
3953 | am__fastdepCC_FALSE= | |
252b5132 RH |
3954 | fi |
3955 | ||
3956 | ||
3957 | ||
6bf9431b | 3958 | |
81ecdfbb | 3959 | ac_config_headers="$ac_config_headers gconfig.h:gconfig.in" |
d7040cdb SE |
3960 | |
3961 | ||
ce2cded5 L |
3962 | ac_ext=c |
3963 | ac_cpp='$CPP $CPPFLAGS' | |
3964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3967 | if test -n "$ac_tool_prefix"; then | |
3968 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3969 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3971 | $as_echo_n "checking for $ac_word... " >&6; } | |
3972 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3973 | $as_echo_n "(cached) " >&6 | |
1b9750d6 | 3974 | else |
ce2cded5 L |
3975 | if test -n "$CC"; then |
3976 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
0ab6f085 | 3977 | else |
ce2cded5 L |
3978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3979 | for as_dir in $PATH | |
3980 | do | |
3981 | IFS=$as_save_IFS | |
3982 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3983 | for ac_exec_ext in '' $ac_executable_extensions; do |
3984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 3985 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3987 | break 2 |
3988 | fi | |
3989 | done | |
81ecdfbb RW |
3990 | done |
3991 | IFS=$as_save_IFS | |
0ab6f085 | 3992 | |
ce2cded5 L |
3993 | fi |
3994 | fi | |
3995 | CC=$ac_cv_prog_CC | |
3996 | if test -n "$CC"; then | |
81ecdfbb RW |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3998 | $as_echo "$CC" >&6; } | |
0ab6f085 | 3999 | else |
81ecdfbb RW |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4001 | $as_echo "no" >&6; } | |
ce2cded5 | 4002 | fi |
d7040cdb | 4003 | |
81ecdfbb | 4004 | |
ce2cded5 L |
4005 | fi |
4006 | if test -z "$ac_cv_prog_CC"; then | |
4007 | ac_ct_CC=$CC | |
4008 | # Extract the first word of "gcc", so it can be a program name with args. | |
4009 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4011 | $as_echo_n "checking for $ac_word... " >&6; } | |
4012 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4013 | $as_echo_n "(cached) " >&6 | |
1b9750d6 | 4014 | else |
ce2cded5 L |
4015 | if test -n "$ac_ct_CC"; then |
4016 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4017 | else | |
d7040cdb | 4018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
0ab6f085 | 4019 | for as_dir in $PATH |
d7040cdb SE |
4020 | do |
4021 | IFS=$as_save_IFS | |
4022 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4023 | for ac_exec_ext in '' $ac_executable_extensions; do |
4024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4025 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 4027 | break 2 |
0ab6f085 | 4028 | fi |
ce2cded5 | 4029 | done |
81ecdfbb RW |
4030 | done |
4031 | IFS=$as_save_IFS | |
d7040cdb | 4032 | |
ce2cded5 L |
4033 | fi |
4034 | fi | |
4035 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4036 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4038 | $as_echo "$ac_ct_CC" >&6; } | |
ce2cded5 | 4039 | else |
81ecdfbb RW |
4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4041 | $as_echo "no" >&6; } | |
1b9750d6 | 4042 | fi |
d7040cdb | 4043 | |
81ecdfbb RW |
4044 | if test "x$ac_ct_CC" = x; then |
4045 | CC="" | |
4046 | else | |
4047 | case $cross_compiling:$ac_tool_warned in | |
4048 | yes:) | |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4050 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4051 | ac_tool_warned=yes ;; | |
4052 | esac | |
4053 | CC=$ac_ct_CC | |
4054 | fi | |
ce2cded5 L |
4055 | else |
4056 | CC="$ac_cv_prog_CC" | |
4057 | fi | |
d7040cdb | 4058 | |
ce2cded5 | 4059 | if test -z "$CC"; then |
81ecdfbb RW |
4060 | if test -n "$ac_tool_prefix"; then |
4061 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 4062 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4064 | $as_echo_n "checking for $ac_word... " >&6; } | |
4065 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4066 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4067 | else |
ce2cded5 L |
4068 | if test -n "$CC"; then |
4069 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
0ab6f085 | 4070 | else |
ce2cded5 L |
4071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4072 | for as_dir in $PATH | |
4073 | do | |
4074 | IFS=$as_save_IFS | |
4075 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4076 | for ac_exec_ext in '' $ac_executable_extensions; do |
4077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4078 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4080 | break 2 |
4081 | fi | |
4082 | done | |
81ecdfbb RW |
4083 | done |
4084 | IFS=$as_save_IFS | |
d7040cdb | 4085 | |
252b5132 RH |
4086 | fi |
4087 | fi | |
ce2cded5 L |
4088 | CC=$ac_cv_prog_CC |
4089 | if test -n "$CC"; then | |
81ecdfbb RW |
4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4091 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4092 | else |
81ecdfbb RW |
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4094 | $as_echo "no" >&6; } | |
d7040cdb | 4095 | fi |
6be7c12c | 4096 | |
ce2cded5 | 4097 | |
81ecdfbb | 4098 | fi |
ce2cded5 L |
4099 | fi |
4100 | if test -z "$CC"; then | |
4101 | # Extract the first word of "cc", so it can be a program name with args. | |
4102 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4104 | $as_echo_n "checking for $ac_word... " >&6; } | |
4105 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4106 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4107 | else |
4108 | if test -n "$CC"; then | |
4109 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4110 | else | |
4111 | ac_prog_rejected=no | |
4112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4113 | for as_dir in $PATH | |
4114 | do | |
4115 | IFS=$as_save_IFS | |
4116 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4117 | for ac_exec_ext in '' $ac_executable_extensions; do |
4118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 L |
4119 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4120 | ac_prog_rejected=yes | |
4121 | continue | |
4122 | fi | |
4123 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4125 | break 2 |
4126 | fi | |
4127 | done | |
81ecdfbb RW |
4128 | done |
4129 | IFS=$as_save_IFS | |
ce2cded5 L |
4130 | |
4131 | if test $ac_prog_rejected = yes; then | |
4132 | # We found a bogon in the path, so make sure we never use it. | |
4133 | set dummy $ac_cv_prog_CC | |
4134 | shift | |
4135 | if test $# != 0; then | |
4136 | # We chose a different compiler from the bogus one. | |
4137 | # However, it has the same basename, so the bogon will be chosen | |
4138 | # first if we set CC to just the basename; use the full file name. | |
4139 | shift | |
4140 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4141 | fi | |
4142 | fi | |
4143 | fi | |
4144 | fi | |
4145 | CC=$ac_cv_prog_CC | |
4146 | if test -n "$CC"; then | |
81ecdfbb RW |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4148 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4149 | else |
81ecdfbb RW |
4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4151 | $as_echo "no" >&6; } | |
ce2cded5 L |
4152 | fi |
4153 | ||
81ecdfbb | 4154 | |
ce2cded5 L |
4155 | fi |
4156 | if test -z "$CC"; then | |
4157 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4158 | for ac_prog in cl.exe |
ce2cded5 L |
4159 | do |
4160 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4161 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4163 | $as_echo_n "checking for $ac_word... " >&6; } | |
4164 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4165 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4166 | else |
4167 | if test -n "$CC"; then | |
4168 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4169 | else | |
4170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4171 | for as_dir in $PATH | |
4172 | do | |
4173 | IFS=$as_save_IFS | |
4174 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4175 | for ac_exec_ext in '' $ac_executable_extensions; do |
4176 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4177 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4179 | break 2 |
4180 | fi | |
4181 | done | |
81ecdfbb RW |
4182 | done |
4183 | IFS=$as_save_IFS | |
ce2cded5 L |
4184 | |
4185 | fi | |
4186 | fi | |
4187 | CC=$ac_cv_prog_CC | |
4188 | if test -n "$CC"; then | |
81ecdfbb RW |
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4190 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4191 | else |
81ecdfbb RW |
4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4193 | $as_echo "no" >&6; } | |
ce2cded5 L |
4194 | fi |
4195 | ||
81ecdfbb | 4196 | |
ce2cded5 | 4197 | test -n "$CC" && break |
d7040cdb SE |
4198 | done |
4199 | fi | |
ce2cded5 L |
4200 | if test -z "$CC"; then |
4201 | ac_ct_CC=$CC | |
81ecdfbb | 4202 | for ac_prog in cl.exe |
d7040cdb SE |
4203 | do |
4204 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4205 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4207 | $as_echo_n "checking for $ac_word... " >&6; } | |
4208 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4209 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4210 | else |
ce2cded5 L |
4211 | if test -n "$ac_ct_CC"; then |
4212 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
4213 | else |
4214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4215 | for as_dir in $PATH | |
4216 | do | |
4217 | IFS=$as_save_IFS | |
4218 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4219 | for ac_exec_ext in '' $ac_executable_extensions; do |
4220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4221 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 4223 | break 2 |
ac48eca1 | 4224 | fi |
d7040cdb | 4225 | done |
81ecdfbb RW |
4226 | done |
4227 | IFS=$as_save_IFS | |
ac48eca1 | 4228 | |
d7040cdb SE |
4229 | fi |
4230 | fi | |
ce2cded5 L |
4231 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4232 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4234 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 4235 | else |
81ecdfbb RW |
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4237 | $as_echo "no" >&6; } | |
d7040cdb | 4238 | fi |
ac48eca1 | 4239 | |
81ecdfbb | 4240 | |
ce2cded5 | 4241 | test -n "$ac_ct_CC" && break |
d7040cdb | 4242 | done |
ac48eca1 | 4243 | |
81ecdfbb RW |
4244 | if test "x$ac_ct_CC" = x; then |
4245 | CC="" | |
4246 | else | |
4247 | case $cross_compiling:$ac_tool_warned in | |
4248 | yes:) | |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4251 | ac_tool_warned=yes ;; | |
4252 | esac | |
4253 | CC=$ac_ct_CC | |
4254 | fi | |
d7040cdb | 4255 | fi |
ac48eca1 | 4256 | |
d7040cdb | 4257 | fi |
ac48eca1 | 4258 | |
ac48eca1 | 4259 | |
81ecdfbb RW |
4260 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4262 | as_fn_error "no acceptable C compiler found in \$PATH | |
4263 | See \`config.log' for more details." "$LINENO" 5; } | |
6be7c12c | 4264 | |
ce2cded5 | 4265 | # Provide some information about the compiler. |
81ecdfbb RW |
4266 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4267 | set X $ac_compile | |
4268 | ac_compiler=$2 | |
4269 | for ac_option in --version -v -V -qversion; do | |
4270 | { { ac_try="$ac_compiler $ac_option >&5" | |
4271 | case "(($ac_try" in | |
4272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4273 | *) ac_try_echo=$ac_try;; | |
4274 | esac | |
4275 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4276 | $as_echo "$ac_try_echo"; } >&5 | |
4277 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 4278 | ac_status=$? |
81ecdfbb RW |
4279 | if test -s conftest.err; then |
4280 | sed '10a\ | |
4281 | ... rest of stderr output deleted ... | |
4282 | 10q' conftest.err >conftest.er1 | |
4283 | cat conftest.er1 >&5 | |
4284 | rm -f conftest.er1 conftest.err | |
4285 | fi | |
4286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4287 | test $ac_status = 0; } | |
4288 | done | |
ac48eca1 | 4289 | |
81ecdfbb RW |
4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4291 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4292 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4293 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4294 | else |
81ecdfbb | 4295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4296 | /* end confdefs.h. */ |
ac48eca1 | 4297 | |
ce2cded5 L |
4298 | int |
4299 | main () | |
4300 | { | |
4301 | #ifndef __GNUC__ | |
4302 | choke me | |
4303 | #endif | |
4304 | ||
4305 | ; | |
4306 | return 0; | |
4307 | } | |
4308 | _ACEOF | |
81ecdfbb | 4309 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 4310 | ac_compiler_gnu=yes |
d7040cdb | 4311 | else |
81ecdfbb | 4312 | ac_compiler_gnu=no |
d7040cdb | 4313 | fi |
81ecdfbb | 4314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 4315 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
ac48eca1 | 4316 | |
ce2cded5 | 4317 | fi |
81ecdfbb RW |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4319 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4320 | if test $ac_compiler_gnu = yes; then | |
4321 | GCC=yes | |
4322 | else | |
4323 | GCC= | |
4324 | fi | |
ce2cded5 L |
4325 | ac_test_CFLAGS=${CFLAGS+set} |
4326 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4328 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4329 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4330 | $as_echo_n "(cached) " >&6 | |
4331 | else | |
4332 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4333 | ac_c_werror_flag=yes | |
4334 | ac_cv_prog_cc_g=no | |
4335 | CFLAGS="-g" | |
4336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 4337 | /* end confdefs.h. */ |
d7040cdb | 4338 | |
ce2cded5 L |
4339 | int |
4340 | main () | |
4341 | { | |
d7040cdb | 4342 | |
ce2cded5 L |
4343 | ; |
4344 | return 0; | |
4345 | } | |
4346 | _ACEOF | |
81ecdfbb | 4347 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
4348 | ac_cv_prog_cc_g=yes |
4349 | else | |
81ecdfbb RW |
4350 | CFLAGS="" |
4351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4352 | /* end confdefs.h. */ | |
108a6f8e | 4353 | |
81ecdfbb RW |
4354 | int |
4355 | main () | |
4356 | { | |
4357 | ||
4358 | ; | |
4359 | return 0; | |
4360 | } | |
4361 | _ACEOF | |
4362 | if ac_fn_c_try_compile "$LINENO"; then : | |
4363 | ||
4364 | else | |
4365 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4366 | CFLAGS="-g" | |
4367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4368 | /* end confdefs.h. */ | |
4369 | ||
4370 | int | |
4371 | main () | |
4372 | { | |
4373 | ||
4374 | ; | |
4375 | return 0; | |
4376 | } | |
4377 | _ACEOF | |
4378 | if ac_fn_c_try_compile "$LINENO"; then : | |
4379 | ac_cv_prog_cc_g=yes | |
4380 | fi | |
4381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4382 | fi | |
4383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4384 | fi | |
4385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4386 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4387 | fi | |
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4389 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4390 | if test "$ac_test_CFLAGS" = set; then | |
4391 | CFLAGS=$ac_save_CFLAGS | |
4392 | elif test $ac_cv_prog_cc_g = yes; then | |
4393 | if test "$GCC" = yes; then | |
4394 | CFLAGS="-g -O2" | |
4395 | else | |
ce2cded5 L |
4396 | CFLAGS="-g" |
4397 | fi | |
ac48eca1 | 4398 | else |
ce2cded5 L |
4399 | if test "$GCC" = yes; then |
4400 | CFLAGS="-O2" | |
4401 | else | |
4402 | CFLAGS= | |
4403 | fi | |
ac48eca1 | 4404 | fi |
81ecdfbb RW |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4406 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4407 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4408 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4409 | else |
81ecdfbb | 4410 | ac_cv_prog_cc_c89=no |
ce2cded5 | 4411 | ac_save_CC=$CC |
81ecdfbb | 4412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
4413 | /* end confdefs.h. */ |
4414 | #include <stdarg.h> | |
4415 | #include <stdio.h> | |
4416 | #include <sys/types.h> | |
4417 | #include <sys/stat.h> | |
4418 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4419 | struct buf { int x; }; | |
4420 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4421 | static char *e (p, i) | |
4422 | char **p; | |
4423 | int i; | |
4424 | { | |
4425 | return p[i]; | |
4426 | } | |
4427 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4428 | { | |
4429 | char *s; | |
4430 | va_list v; | |
4431 | va_start (v,p); | |
4432 | s = g (p, va_arg (v,int)); | |
4433 | va_end (v); | |
4434 | return s; | |
4435 | } | |
d7040cdb | 4436 | |
ce2cded5 L |
4437 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4438 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4439 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4440 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
4441 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4442 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4443 | that's true only with -std. */ |
ce2cded5 | 4444 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
d7040cdb | 4445 | |
81ecdfbb RW |
4446 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4447 | inside strings and character constants. */ | |
4448 | #define FOO(x) 'x' | |
4449 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4450 | ||
ce2cded5 L |
4451 | int test (int i, double x); |
4452 | struct s1 {int (*f) (int a);}; | |
4453 | struct s2 {int (*f) (double a);}; | |
4454 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4455 | int argc; | |
4456 | char **argv; | |
4457 | int | |
4458 | main () | |
4459 | { | |
4460 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4461 | ; | |
4462 | return 0; | |
4463 | } | |
4464 | _ACEOF | |
81ecdfbb RW |
4465 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4466 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
4467 | do |
4468 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4469 | if ac_fn_c_try_compile "$LINENO"; then : |
4470 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 4471 | fi |
81ecdfbb RW |
4472 | rm -f core conftest.err conftest.$ac_objext |
4473 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 4474 | done |
81ecdfbb | 4475 | rm -f conftest.$ac_ext |
ce2cded5 | 4476 | CC=$ac_save_CC |
d7040cdb | 4477 | |
ce2cded5 | 4478 | fi |
81ecdfbb RW |
4479 | # AC_CACHE_VAL |
4480 | case "x$ac_cv_prog_cc_c89" in | |
4481 | x) | |
4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4483 | $as_echo "none needed" >&6; } ;; | |
4484 | xno) | |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4486 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 4487 | *) |
81ecdfbb RW |
4488 | CC="$CC $ac_cv_prog_cc_c89" |
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4490 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ce2cded5 | 4491 | esac |
81ecdfbb | 4492 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 4493 | |
ce2cded5 | 4494 | fi |
d7040cdb | 4495 | |
ce2cded5 L |
4496 | ac_ext=c |
4497 | ac_cpp='$CPP $CPPFLAGS' | |
4498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4501 | |
7357c5b6 AM |
4502 | ac_ext=c |
4503 | ac_cpp='$CPP $CPPFLAGS' | |
4504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4508 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4509 | # On Suns, sometimes $CPP names a directory. |
4510 | if test -n "$CPP" && test -d "$CPP"; then | |
4511 | CPP= | |
4512 | fi | |
4513 | if test -z "$CPP"; then | |
81ecdfbb RW |
4514 | if test "${ac_cv_prog_CPP+set}" = set; then : |
4515 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 4516 | else |
7357c5b6 AM |
4517 | # Double quotes because CPP needs to be expanded |
4518 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4519 | do | |
4520 | ac_preproc_ok=false | |
4521 | for ac_c_preproc_warn_flag in '' yes | |
ce2cded5 | 4522 | do |
7357c5b6 AM |
4523 | # Use a header file that comes with gcc, so configuring glibc |
4524 | # with a fresh cross-compiler works. | |
4525 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4526 | # <limits.h> exists even on freestanding compilers. | |
4527 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4528 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4530 | /* end confdefs.h. */ |
4531 | #ifdef __STDC__ | |
4532 | # include <limits.h> | |
4533 | #else | |
4534 | # include <assert.h> | |
4535 | #endif | |
4536 | Syntax error | |
4537 | _ACEOF | |
81ecdfbb | 4538 | if ac_fn_c_try_cpp "$LINENO"; then : |
6bf9431b | 4539 | |
81ecdfbb | 4540 | else |
7357c5b6 AM |
4541 | # Broken: fails on valid input. |
4542 | continue | |
4543 | fi | |
4544 | rm -f conftest.err conftest.$ac_ext | |
ce2cded5 | 4545 | |
81ecdfbb | 4546 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4547 | # can be detected and how. |
81ecdfbb | 4548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4549 | /* end confdefs.h. */ |
4550 | #include <ac_nonexistent.h> | |
4551 | _ACEOF | |
81ecdfbb | 4552 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4553 | # Broken: success on invalid input. |
4554 | continue | |
4555 | else | |
7357c5b6 AM |
4556 | # Passes both tests. |
4557 | ac_preproc_ok=: | |
4558 | break | |
4559 | fi | |
4560 | rm -f conftest.err conftest.$ac_ext | |
6bf9431b | 4561 | |
7357c5b6 AM |
4562 | done |
4563 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4564 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 4565 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4566 | break |
4567 | fi | |
6bf9431b | 4568 | |
7357c5b6 AM |
4569 | done |
4570 | ac_cv_prog_CPP=$CPP | |
252b5132 | 4571 | |
7357c5b6 AM |
4572 | fi |
4573 | CPP=$ac_cv_prog_CPP | |
4574 | else | |
4575 | ac_cv_prog_CPP=$CPP | |
4576 | fi | |
81ecdfbb RW |
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4578 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4579 | ac_preproc_ok=false |
4580 | for ac_c_preproc_warn_flag in '' yes | |
4581 | do | |
4582 | # Use a header file that comes with gcc, so configuring glibc | |
4583 | # with a fresh cross-compiler works. | |
4584 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4585 | # <limits.h> exists even on freestanding compilers. | |
4586 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4587 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4589 | /* end confdefs.h. */ |
4590 | #ifdef __STDC__ | |
4591 | # include <limits.h> | |
4592 | #else | |
4593 | # include <assert.h> | |
4594 | #endif | |
4595 | Syntax error | |
4596 | _ACEOF | |
81ecdfbb | 4597 | if ac_fn_c_try_cpp "$LINENO"; then : |
6bf9431b | 4598 | |
81ecdfbb | 4599 | else |
7357c5b6 AM |
4600 | # Broken: fails on valid input. |
4601 | continue | |
4602 | fi | |
4603 | rm -f conftest.err conftest.$ac_ext | |
252b5132 | 4604 | |
81ecdfbb | 4605 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4606 | # can be detected and how. |
81ecdfbb | 4607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4608 | /* end confdefs.h. */ |
4609 | #include <ac_nonexistent.h> | |
4610 | _ACEOF | |
81ecdfbb | 4611 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4612 | # Broken: success on invalid input. |
4613 | continue | |
4614 | else | |
7357c5b6 AM |
4615 | # Passes both tests. |
4616 | ac_preproc_ok=: | |
4617 | break | |
4618 | fi | |
4619 | rm -f conftest.err conftest.$ac_ext | |
252b5132 | 4620 | |
7357c5b6 AM |
4621 | done |
4622 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4623 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
4624 | if $ac_preproc_ok; then : |
4625 | ||
7357c5b6 | 4626 | else |
81ecdfbb RW |
4627 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4628 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4629 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4630 | See \`config.log' for more details." "$LINENO" 5; } | |
7357c5b6 | 4631 | fi |
6bf9431b | 4632 | |
7357c5b6 AM |
4633 | ac_ext=c |
4634 | ac_cpp='$CPP $CPPFLAGS' | |
4635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
252b5132 | 4638 | |
252b5132 | 4639 | |
81ecdfbb RW |
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4641 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4642 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4643 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 4644 | else |
81ecdfbb RW |
4645 | if test -z "$GREP"; then |
4646 | ac_path_GREP_found=false | |
4647 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4649 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4650 | do | |
4651 | IFS=$as_save_IFS | |
4652 | test -z "$as_dir" && as_dir=. | |
4653 | for ac_prog in grep ggrep; do | |
4654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4655 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4656 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4657 | # Check for GNU ac_path_GREP and select it if it is found. | |
4658 | # Check for GNU $ac_path_GREP | |
4659 | case `"$ac_path_GREP" --version 2>&1` in | |
4660 | *GNU*) | |
4661 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4662 | *) | |
4663 | ac_count=0 | |
4664 | $as_echo_n 0123456789 >"conftest.in" | |
4665 | while : | |
4666 | do | |
4667 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4668 | mv "conftest.tmp" "conftest.in" | |
4669 | cp "conftest.in" "conftest.nl" | |
4670 | $as_echo 'GREP' >> "conftest.nl" | |
4671 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4672 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4673 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4674 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4675 | # Best one so far, save it but keep looking for a better one | |
4676 | ac_cv_path_GREP="$ac_path_GREP" | |
4677 | ac_path_GREP_max=$ac_count | |
ce2cded5 | 4678 | fi |
81ecdfbb RW |
4679 | # 10*(2^10) chars as input seems more than enough |
4680 | test $ac_count -gt 10 && break | |
4681 | done | |
4682 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4683 | esac | |
4684 | ||
4685 | $ac_path_GREP_found && break 3 | |
4686 | done | |
4687 | done | |
4688 | done | |
4689 | IFS=$as_save_IFS | |
4690 | if test -z "$ac_cv_path_GREP"; then | |
4691 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4692 | fi | |
4693 | else | |
4694 | ac_cv_path_GREP=$GREP | |
4695 | fi | |
4696 | ||
ce2cded5 | 4697 | fi |
81ecdfbb RW |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4699 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4700 | GREP="$ac_cv_path_GREP" | |
ce2cded5 | 4701 | |
6bf9431b | 4702 | |
81ecdfbb RW |
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4704 | $as_echo_n "checking for egrep... " >&6; } | |
4705 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4706 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4707 | else |
81ecdfbb RW |
4708 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4709 | then ac_cv_path_EGREP="$GREP -E" | |
4710 | else | |
4711 | if test -z "$EGREP"; then | |
4712 | ac_path_EGREP_found=false | |
4713 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4715 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4716 | do | |
4717 | IFS=$as_save_IFS | |
4718 | test -z "$as_dir" && as_dir=. | |
4719 | for ac_prog in egrep; do | |
4720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4721 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4722 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4723 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4724 | # Check for GNU $ac_path_EGREP | |
4725 | case `"$ac_path_EGREP" --version 2>&1` in | |
4726 | *GNU*) | |
4727 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4728 | *) | |
4729 | ac_count=0 | |
4730 | $as_echo_n 0123456789 >"conftest.in" | |
4731 | while : | |
4732 | do | |
4733 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4734 | mv "conftest.tmp" "conftest.in" | |
4735 | cp "conftest.in" "conftest.nl" | |
4736 | $as_echo 'EGREP' >> "conftest.nl" | |
4737 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4738 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4739 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4740 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4741 | # Best one so far, save it but keep looking for a better one | |
4742 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4743 | ac_path_EGREP_max=$ac_count | |
4744 | fi | |
4745 | # 10*(2^10) chars as input seems more than enough | |
4746 | test $ac_count -gt 10 && break | |
4747 | done | |
4748 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4749 | esac | |
4750 | ||
4751 | $ac_path_EGREP_found && break 3 | |
4752 | done | |
4753 | done | |
4754 | done | |
4755 | IFS=$as_save_IFS | |
4756 | if test -z "$ac_cv_path_EGREP"; then | |
4757 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4758 | fi | |
4759 | else | |
4760 | ac_cv_path_EGREP=$EGREP | |
4761 | fi | |
4762 | ||
4763 | fi | |
4764 | fi | |
4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4766 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4767 | EGREP="$ac_cv_path_EGREP" | |
4768 | ||
4769 | ||
4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4771 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4772 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4773 | $as_echo_n "(cached) " >&6 | |
4774 | else | |
4775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7357c5b6 AM |
4776 | /* end confdefs.h. */ |
4777 | #include <stdlib.h> | |
4778 | #include <stdarg.h> | |
4779 | #include <string.h> | |
4780 | #include <float.h> | |
4781 | ||
4782 | int | |
4783 | main () | |
4784 | { | |
4785 | ||
4786 | ; | |
4787 | return 0; | |
4788 | } | |
4789 | _ACEOF | |
81ecdfbb | 4790 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4791 | ac_cv_header_stdc=yes |
4792 | else | |
81ecdfbb | 4793 | ac_cv_header_stdc=no |
7357c5b6 | 4794 | fi |
81ecdfbb | 4795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 AM |
4796 | |
4797 | if test $ac_cv_header_stdc = yes; then | |
4798 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4800 | /* end confdefs.h. */ |
4801 | #include <string.h> | |
4802 | ||
4803 | _ACEOF | |
4804 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4805 | $EGREP "memchr" >/dev/null 2>&1; then : |
4806 | ||
7357c5b6 AM |
4807 | else |
4808 | ac_cv_header_stdc=no | |
4809 | fi | |
4810 | rm -f conftest* | |
4811 | ||
4812 | fi | |
4813 | ||
4814 | if test $ac_cv_header_stdc = yes; then | |
4815 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4817 | /* end confdefs.h. */ |
4818 | #include <stdlib.h> | |
4819 | ||
4820 | _ACEOF | |
4821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4822 | $EGREP "free" >/dev/null 2>&1; then : |
4823 | ||
7357c5b6 AM |
4824 | else |
4825 | ac_cv_header_stdc=no | |
4826 | fi | |
4827 | rm -f conftest* | |
4828 | ||
4829 | fi | |
4830 | ||
4831 | if test $ac_cv_header_stdc = yes; then | |
4832 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4833 | if test "$cross_compiling" = yes; then : |
7357c5b6 | 4834 | : |
ce2cded5 | 4835 | else |
81ecdfbb | 4836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4837 | /* end confdefs.h. */ |
4838 | #include <ctype.h> | |
81ecdfbb | 4839 | #include <stdlib.h> |
7357c5b6 AM |
4840 | #if ((' ' & 0x0FF) == 0x020) |
4841 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4842 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4843 | #else | |
4844 | # define ISLOWER(c) \ | |
4845 | (('a' <= (c) && (c) <= 'i') \ | |
4846 | || ('j' <= (c) && (c) <= 'r') \ | |
4847 | || ('s' <= (c) && (c) <= 'z')) | |
4848 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4849 | #endif | |
6bf9431b | 4850 | |
7357c5b6 AM |
4851 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4852 | int | |
4853 | main () | |
4854 | { | |
4855 | int i; | |
4856 | for (i = 0; i < 256; i++) | |
4857 | if (XOR (islower (i), ISLOWER (i)) | |
4858 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4859 | return 2; |
4860 | return 0; | |
7357c5b6 AM |
4861 | } |
4862 | _ACEOF | |
81ecdfbb | 4863 | if ac_fn_c_try_run "$LINENO"; then : |
6bf9431b | 4864 | |
81ecdfbb RW |
4865 | else |
4866 | ac_cv_header_stdc=no | |
7357c5b6 | 4867 | fi |
81ecdfbb RW |
4868 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4869 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4870 | fi |
81ecdfbb | 4871 | |
7357c5b6 AM |
4872 | fi |
4873 | fi | |
81ecdfbb RW |
4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4875 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4876 | if test $ac_cv_header_stdc = yes; then |
6bf9431b | 4877 | |
81ecdfbb | 4878 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4879 | |
7357c5b6 | 4880 | fi |
d7040cdb | 4881 | |
7357c5b6 | 4882 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4883 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4884 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4885 | do : |
4886 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4887 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4888 | " | |
4889 | eval as_val=\$$as_ac_Header | |
4890 | if test "x$as_val" = x""yes; then : | |
7357c5b6 | 4891 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4892 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4893 | _ACEOF |
d7040cdb | 4894 | |
7357c5b6 | 4895 | fi |
d7040cdb | 4896 | |
7357c5b6 | 4897 | done |
d7040cdb SE |
4898 | |
4899 | ||
4900 | ||
81ecdfbb RW |
4901 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4902 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
7357c5b6 AM |
4903 | MINIX=yes |
4904 | else | |
4905 | MINIX= | |
4906 | fi | |
d7040cdb SE |
4907 | |
4908 | ||
7357c5b6 | 4909 | if test "$MINIX" = yes; then |
d7040cdb | 4910 | |
81ecdfbb | 4911 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb | 4912 | |
d7040cdb | 4913 | |
81ecdfbb | 4914 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb | 4915 | |
d7040cdb | 4916 | |
81ecdfbb | 4917 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4918 | |
ce2cded5 | 4919 | fi |
d7040cdb | 4920 | |
d7040cdb | 4921 | |
81ecdfbb RW |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4923 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4924 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4925 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 4926 | else |
81ecdfbb | 4927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4928 | /* end confdefs.h. */ |
d7040cdb | 4929 | |
7357c5b6 AM |
4930 | # define __EXTENSIONS__ 1 |
4931 | $ac_includes_default | |
4932 | int | |
4933 | main () | |
4934 | { | |
d7040cdb | 4935 | |
7357c5b6 AM |
4936 | ; |
4937 | return 0; | |
4938 | } | |
4939 | _ACEOF | |
81ecdfbb | 4940 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4941 | ac_cv_safe_to_define___extensions__=yes |
4942 | else | |
81ecdfbb | 4943 | ac_cv_safe_to_define___extensions__=no |
ce2cded5 | 4944 | fi |
81ecdfbb | 4945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 4946 | fi |
81ecdfbb RW |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4948 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 4949 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4950 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
d7040cdb | 4951 | |
81ecdfbb | 4952 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d7040cdb | 4953 | |
81ecdfbb | 4954 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
d7040cdb | 4955 | |
81ecdfbb | 4956 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
d7040cdb | 4957 | |
81ecdfbb | 4958 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
d7040cdb | 4959 | |
d7040cdb | 4960 | |
d053aef8 | 4961 | |
81ecdfbb | 4962 | |
da2f07f1 JK |
4963 | |
4964 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
4965 | # even in directories otherwise not depending on the $plugins option. | |
4966 | ||
4967 | ||
4968 | # Check whether --enable-plugins was given. | |
4969 | if test "${enable_plugins+set}" = set; then : | |
4970 | enableval=$enable_plugins; case "${enableval}" in | |
4971 | yes | "") plugins=yes ;; | |
4972 | no) plugins=no ;; | |
4973 | *) plugins=yes ;; | |
4974 | esac | |
4975 | else | |
4976 | plugins=no | |
4977 | fi | |
4978 | ||
4979 | ||
4980 | ||
4981 | case "${host}" in | |
4982 | sparc-*-solaris*|i[3-7]86-*-solaris*) | |
4983 | # On native 32bit sparc and ia32 solaris, large-file and procfs support | |
4984 | # are mutually exclusive; and without procfs support, the bfd/ elf module | |
4985 | # cannot provide certain routines such as elfcore_write_prpsinfo | |
4986 | # or elfcore_write_prstatus. So unless the user explicitly requested | |
4987 | # large-file support through the --enable-largefile switch, disable | |
4988 | # large-file support in favor of procfs support. | |
4989 | test "${target}" = "${host}" -a "x$plugins" = xno \ | |
4990 | && : ${enable_largefile="no"} | |
4991 | ;; | |
4992 | esac | |
4993 | ||
81ecdfbb RW |
4994 | # Check whether --enable-largefile was given. |
4995 | if test "${enable_largefile+set}" = set; then : | |
4996 | enableval=$enable_largefile; | |
4997 | fi | |
4998 | ||
d053aef8 JK |
4999 | if test "$enable_largefile" != no; then |
5000 | ||
81ecdfbb RW |
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
5002 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
5003 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
5004 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5005 | else |
5006 | ac_cv_sys_largefile_CC=no | |
5007 | if test "$GCC" != yes; then | |
5008 | ac_save_CC=$CC | |
5009 | while :; do | |
81ecdfbb RW |
5010 | # IRIX 6.2 and later do not support large files by default, |
5011 | # so use the C compiler's -n32 option if that helps. | |
5012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5013 | /* end confdefs.h. */ |
5014 | #include <sys/types.h> | |
5015 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5016 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5017 | since some C++ compilers masquerading as C compilers | |
5018 | incorrectly reject 9223372036854775807. */ | |
5019 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5020 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5021 | && LARGE_OFF_T % 2147483647 == 1) | |
5022 | ? 1 : -1]; | |
5023 | int | |
5024 | main () | |
5025 | { | |
5026 | ||
5027 | ; | |
5028 | return 0; | |
5029 | } | |
5030 | _ACEOF | |
81ecdfbb | 5031 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5032 | break |
d053aef8 | 5033 | fi |
81ecdfbb RW |
5034 | rm -f core conftest.err conftest.$ac_objext |
5035 | CC="$CC -n32" | |
5036 | if ac_fn_c_try_compile "$LINENO"; then : | |
d053aef8 | 5037 | ac_cv_sys_largefile_CC=' -n32'; break |
d053aef8 | 5038 | fi |
81ecdfbb | 5039 | rm -f core conftest.err conftest.$ac_objext |
d053aef8 JK |
5040 | break |
5041 | done | |
5042 | CC=$ac_save_CC | |
5043 | rm -f conftest.$ac_ext | |
5044 | fi | |
5045 | fi | |
81ecdfbb RW |
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
5047 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
d053aef8 JK |
5048 | if test "$ac_cv_sys_largefile_CC" != no; then |
5049 | CC=$CC$ac_cv_sys_largefile_CC | |
5050 | fi | |
5051 | ||
81ecdfbb RW |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5053 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
5054 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
5055 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5056 | else |
5057 | while :; do | |
81ecdfbb | 5058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5059 | /* end confdefs.h. */ |
5060 | #include <sys/types.h> | |
5061 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5062 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5063 | since some C++ compilers masquerading as C compilers | |
5064 | incorrectly reject 9223372036854775807. */ | |
5065 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5066 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5067 | && LARGE_OFF_T % 2147483647 == 1) | |
5068 | ? 1 : -1]; | |
5069 | int | |
5070 | main () | |
5071 | { | |
5072 | ||
5073 | ; | |
5074 | return 0; | |
5075 | } | |
5076 | _ACEOF | |
81ecdfbb RW |
5077 | if ac_fn_c_try_compile "$LINENO"; then : |
5078 | ac_cv_sys_file_offset_bits=no; break | |
d053aef8 | 5079 | fi |
81ecdfbb RW |
5080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5082 | /* end confdefs.h. */ |
5083 | #define _FILE_OFFSET_BITS 64 | |
5084 | #include <sys/types.h> | |
5085 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5086 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5087 | since some C++ compilers masquerading as C compilers | |
5088 | incorrectly reject 9223372036854775807. */ | |
5089 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5090 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5091 | && LARGE_OFF_T % 2147483647 == 1) | |
5092 | ? 1 : -1]; | |
5093 | int | |
5094 | main () | |
5095 | { | |
5096 | ||
5097 | ; | |
5098 | return 0; | |
5099 | } | |
5100 | _ACEOF | |
81ecdfbb | 5101 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5102 | ac_cv_sys_file_offset_bits=64; break |
d053aef8 | 5103 | fi |
81ecdfbb RW |
5104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5105 | ac_cv_sys_file_offset_bits=unknown | |
d053aef8 JK |
5106 | break |
5107 | done | |
5108 | fi | |
81ecdfbb RW |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
5110 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
5111 | case $ac_cv_sys_file_offset_bits in #( | |
5112 | no | unknown) ;; | |
5113 | *) | |
d053aef8 JK |
5114 | cat >>confdefs.h <<_ACEOF |
5115 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5116 | _ACEOF | |
81ecdfbb RW |
5117 | ;; |
5118 | esac | |
5119 | rm -rf conftest* | |
5120 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
5122 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
5123 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
5124 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5125 | else |
5126 | while :; do | |
81ecdfbb | 5127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5128 | /* end confdefs.h. */ |
5129 | #include <sys/types.h> | |
5130 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5131 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5132 | since some C++ compilers masquerading as C compilers | |
5133 | incorrectly reject 9223372036854775807. */ | |
5134 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5135 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5136 | && LARGE_OFF_T % 2147483647 == 1) | |
5137 | ? 1 : -1]; | |
5138 | int | |
5139 | main () | |
5140 | { | |
5141 | ||
5142 | ; | |
5143 | return 0; | |
5144 | } | |
5145 | _ACEOF | |
81ecdfbb RW |
5146 | if ac_fn_c_try_compile "$LINENO"; then : |
5147 | ac_cv_sys_large_files=no; break | |
d053aef8 | 5148 | fi |
81ecdfbb RW |
5149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5151 | /* end confdefs.h. */ |
5152 | #define _LARGE_FILES 1 | |
5153 | #include <sys/types.h> | |
5154 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5155 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5156 | since some C++ compilers masquerading as C compilers | |
5157 | incorrectly reject 9223372036854775807. */ | |
5158 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5159 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5160 | && LARGE_OFF_T % 2147483647 == 1) | |
5161 | ? 1 : -1]; | |
5162 | int | |
5163 | main () | |
5164 | { | |
5165 | ||
5166 | ; | |
5167 | return 0; | |
5168 | } | |
81ecdfbb RW |
5169 | _ACEOF |
5170 | if ac_fn_c_try_compile "$LINENO"; then : | |
5171 | ac_cv_sys_large_files=1; break | |
d053aef8 | 5172 | fi |
81ecdfbb RW |
5173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5174 | ac_cv_sys_large_files=unknown | |
d053aef8 JK |
5175 | break |
5176 | done | |
5177 | fi | |
81ecdfbb RW |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
5179 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
5180 | case $ac_cv_sys_large_files in #( | |
5181 | no | unknown) ;; | |
5182 | *) | |
d053aef8 JK |
5183 | cat >>confdefs.h <<_ACEOF |
5184 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5185 | _ACEOF | |
81ecdfbb | 5186 | ;; |
7357c5b6 | 5187 | esac |
81ecdfbb | 5188 | rm -rf conftest* |
7357c5b6 AM |
5189 | fi |
5190 | fi | |
d7040cdb | 5191 | |
d7040cdb | 5192 | |
ce2cded5 | 5193 | |
da2f07f1 | 5194 | |
b214d478 SE |
5195 | case `pwd` in |
5196 | *\ * | *\ *) | |
81ecdfbb RW |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
5198 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
b214d478 | 5199 | esac |
d7040cdb SE |
5200 | |
5201 | ||
6bf9431b | 5202 | |
b214d478 SE |
5203 | macro_version='2.2.6' |
5204 | macro_revision='1.3012' | |
ce2cded5 | 5205 | |
d7040cdb | 5206 | |
d7040cdb | 5207 | |
d7040cdb | 5208 | |
d7040cdb | 5209 | |
7357c5b6 | 5210 | |
6bf9431b | 5211 | |
6bf9431b | 5212 | |
6bf9431b | 5213 | |
6bf9431b | 5214 | |
d7040cdb | 5215 | |
d7040cdb | 5216 | |
6bf9431b | 5217 | |
b214d478 | 5218 | ltmain="$ac_aux_dir/ltmain.sh" |
d7040cdb | 5219 | |
81ecdfbb RW |
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5221 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5222 | if test "${ac_cv_path_SED+set}" = set; then : | |
5223 | $as_echo_n "(cached) " >&6 | |
5224 | else | |
5225 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5226 | for ac_i in 1 2 3 4 5 6 7; do | |
5227 | ac_script="$ac_script$as_nl$ac_script" | |
5228 | done | |
5229 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5230 | { ac_script=; unset ac_script;} | |
5231 | if test -z "$SED"; then | |
5232 | ac_path_SED_found=false | |
5233 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5235 | for as_dir in $PATH |
5236 | do | |
5237 | IFS=$as_save_IFS | |
5238 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5239 | for ac_prog in sed gsed; do |
7357c5b6 | 5240 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5241 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5242 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5243 | # Check for GNU ac_path_SED and select it if it is found. | |
5244 | # Check for GNU $ac_path_SED | |
5245 | case `"$ac_path_SED" --version 2>&1` in | |
5246 | *GNU*) | |
5247 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5248 | *) | |
5249 | ac_count=0 | |
5250 | $as_echo_n 0123456789 >"conftest.in" | |
5251 | while : | |
5252 | do | |
5253 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5254 | mv "conftest.tmp" "conftest.in" | |
5255 | cp "conftest.in" "conftest.nl" | |
5256 | $as_echo '' >> "conftest.nl" | |
5257 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5258 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5259 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5260 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5261 | # Best one so far, save it but keep looking for a better one | |
5262 | ac_cv_path_SED="$ac_path_SED" | |
5263 | ac_path_SED_max=$ac_count | |
5264 | fi | |
5265 | # 10*(2^10) chars as input seems more than enough | |
5266 | test $ac_count -gt 10 && break | |
5267 | done | |
5268 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5269 | esac | |
5270 | ||
5271 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5272 | done |
5273 | done | |
81ecdfbb | 5274 | done |
7357c5b6 | 5275 | IFS=$as_save_IFS |
81ecdfbb RW |
5276 | if test -z "$ac_cv_path_SED"; then |
5277 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
7357c5b6 | 5278 | fi |
81ecdfbb RW |
5279 | else |
5280 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
5281 | fi |
5282 | ||
81ecdfbb RW |
5283 | fi |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5285 | $as_echo "$ac_cv_path_SED" >&6; } | |
5286 | SED="$ac_cv_path_SED" | |
5287 | rm -f conftest.sed | |
7357c5b6 AM |
5288 | |
5289 | test -z "$SED" && SED=sed | |
5290 | Xsed="$SED -e 1s/^X//" | |
5291 | ||
5292 | ||
5293 | ||
d7040cdb | 5294 | |
d7040cdb | 5295 | |
d7040cdb | 5296 | |
d7040cdb | 5297 | |
d7040cdb | 5298 | |
d7040cdb | 5299 | |
d7040cdb | 5300 | |
6bf9431b | 5301 | |
81ecdfbb RW |
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5303 | $as_echo_n "checking for fgrep... " >&6; } | |
5304 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5305 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5306 | else |
81ecdfbb RW |
5307 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5308 | then ac_cv_path_FGREP="$GREP -F" | |
5309 | else | |
5310 | if test -z "$FGREP"; then | |
5311 | ac_path_FGREP_found=false | |
5312 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5314 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5315 | do | |
5316 | IFS=$as_save_IFS | |
5317 | test -z "$as_dir" && as_dir=. | |
5318 | for ac_prog in fgrep; do | |
5319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5320 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5321 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5322 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5323 | # Check for GNU $ac_path_FGREP | |
5324 | case `"$ac_path_FGREP" --version 2>&1` in | |
5325 | *GNU*) | |
5326 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5327 | *) | |
5328 | ac_count=0 | |
5329 | $as_echo_n 0123456789 >"conftest.in" | |
5330 | while : | |
5331 | do | |
5332 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5333 | mv "conftest.tmp" "conftest.in" | |
5334 | cp "conftest.in" "conftest.nl" | |
5335 | $as_echo 'FGREP' >> "conftest.nl" | |
5336 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5337 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5338 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5339 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5340 | # Best one so far, save it but keep looking for a better one | |
5341 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5342 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5343 | fi |
81ecdfbb RW |
5344 | # 10*(2^10) chars as input seems more than enough |
5345 | test $ac_count -gt 10 && break | |
5346 | done | |
5347 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5348 | esac | |
5349 | ||
5350 | $ac_path_FGREP_found && break 3 | |
5351 | done | |
5352 | done | |
5353 | done | |
5354 | IFS=$as_save_IFS | |
5355 | if test -z "$ac_cv_path_FGREP"; then | |
5356 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5357 | fi | |
5358 | else | |
5359 | ac_cv_path_FGREP=$FGREP | |
5360 | fi | |
5361 | ||
5362 | fi | |
6bf9431b | 5363 | fi |
81ecdfbb RW |
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5365 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5366 | FGREP="$ac_cv_path_FGREP" | |
d7040cdb | 5367 | |
6bf9431b | 5368 | |
7357c5b6 | 5369 | test -z "$GREP" && GREP=grep |
252b5132 | 5370 | |
6bf9431b | 5371 | |
252b5132 | 5372 | |
252b5132 | 5373 | |
252b5132 | 5374 | |
252b5132 | 5375 | |
252b5132 RH |
5376 | |
5377 | ||
6bf9431b | 5378 | |
d7040cdb | 5379 | |
6bf9431b | 5380 | |
6bf9431b | 5381 | |
7357c5b6 AM |
5382 | |
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
81ecdfbb RW |
5389 | # Check whether --with-gnu-ld was given. |
5390 | if test "${with_gnu_ld+set}" = set; then : | |
5391 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5392 | else |
5393 | with_gnu_ld=no | |
81ecdfbb RW |
5394 | fi |
5395 | ||
7357c5b6 AM |
5396 | ac_prog=ld |
5397 | if test "$GCC" = yes; then | |
5398 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5400 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
5401 | case $host in |
5402 | *-*-mingw*) | |
5403 | # gcc leaves a trailing carriage return which upsets mingw | |
5404 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5405 | *) | |
5406 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5407 | esac | |
5408 | case $ac_prog in | |
5409 | # Accept absolute paths. | |
5410 | [\\/]* | ?:[\\/]*) | |
5411 | re_direlt='/[^/][^/]*/\.\./' | |
5412 | # Canonicalize the pathname of ld | |
5413 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5414 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5415 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5416 | done | |
5417 | test -z "$LD" && LD="$ac_prog" | |
5418 | ;; | |
5419 | "") | |
5420 | # If it fails, then pretend we aren't using GCC. | |
5421 | ac_prog=ld | |
5422 | ;; | |
5423 | *) | |
5424 | # If it is relative, then search for the first ld in PATH. | |
5425 | with_gnu_ld=unknown | |
5426 | ;; | |
5427 | esac | |
5428 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5430 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357c5b6 | 5431 | else |
81ecdfbb RW |
5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5433 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 5434 | fi |
81ecdfbb RW |
5435 | if test "${lt_cv_path_LD+set}" = set; then : |
5436 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5437 | else |
7357c5b6 AM |
5438 | if test -z "$LD"; then |
5439 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5440 | for ac_dir in $PATH; do | |
5441 | IFS="$lt_save_ifs" | |
5442 | test -z "$ac_dir" && ac_dir=. | |
5443 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5444 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5445 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5446 | # but apparently some variants of GNU ld only accept -v. | |
5447 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5448 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5449 | *GNU* | *'with BFD'*) | |
5450 | test "$with_gnu_ld" != no && break | |
5451 | ;; | |
5452 | *) | |
5453 | test "$with_gnu_ld" != yes && break | |
5454 | ;; | |
5455 | esac | |
5456 | fi | |
5457 | done | |
5458 | IFS="$lt_save_ifs" | |
6bf9431b | 5459 | else |
7357c5b6 | 5460 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
6bf9431b | 5461 | fi |
6bf9431b | 5462 | fi |
7357c5b6 AM |
5463 | |
5464 | LD="$lt_cv_path_LD" | |
5465 | if test -n "$LD"; then | |
81ecdfbb RW |
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5467 | $as_echo "$LD" >&6; } | |
ce2cded5 | 5468 | else |
81ecdfbb RW |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5470 | $as_echo "no" >&6; } | |
6bf9431b | 5471 | fi |
81ecdfbb RW |
5472 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5474 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5475 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5476 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5477 | else |
7357c5b6 AM |
5478 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5479 | case `$LD -v 2>&1 </dev/null` in | |
5480 | *GNU* | *'with BFD'*) | |
5481 | lt_cv_prog_gnu_ld=yes | |
5482 | ;; | |
5483 | *) | |
5484 | lt_cv_prog_gnu_ld=no | |
5485 | ;; | |
5486 | esac | |
ce2cded5 | 5487 | fi |
81ecdfbb RW |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5489 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7357c5b6 | 5490 | with_gnu_ld=$lt_cv_prog_gnu_ld |
20e95c23 DJ |
5491 | |
5492 | ||
5493 | ||
20e95c23 | 5494 | |
d7040cdb SE |
5495 | |
5496 | ||
5497 | ||
5498 | ||
5499 | ||
81ecdfbb RW |
5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5501 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5502 | if test "${lt_cv_path_NM+set}" = set; then : | |
5503 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5504 | else |
7357c5b6 AM |
5505 | if test -n "$NM"; then |
5506 | # Let the user override the test. | |
5507 | lt_cv_path_NM="$NM" | |
ce2cded5 | 5508 | else |
7357c5b6 AM |
5509 | lt_nm_to_check="${ac_tool_prefix}nm" |
5510 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5511 | lt_nm_to_check="$lt_nm_to_check nm" | |
ce2cded5 | 5512 | fi |
7357c5b6 AM |
5513 | for lt_tmp_nm in $lt_nm_to_check; do |
5514 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5515 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5516 | IFS="$lt_save_ifs" | |
5517 | test -z "$ac_dir" && ac_dir=. | |
5518 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5519 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5520 | # Check to see if the nm accepts a BSD-compat flag. | |
5521 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5522 | # nm: unknown option "B" ignored | |
5523 | # Tru64's nm complains that /dev/null is an invalid object file | |
5524 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5525 | */dev/null* | *'Invalid file or object type'*) | |
5526 | lt_cv_path_NM="$tmp_nm -B" | |
5527 | break | |
5528 | ;; | |
5529 | *) | |
5530 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5531 | */dev/null*) | |
5532 | lt_cv_path_NM="$tmp_nm -p" | |
5533 | break | |
5534 | ;; | |
5535 | *) | |
5536 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5537 | continue # so that we can try to find one that supports BSD flags | |
5538 | ;; | |
5539 | esac | |
5540 | ;; | |
5541 | esac | |
5542 | fi | |
5543 | done | |
5544 | IFS="$lt_save_ifs" | |
5545 | done | |
5546 | : ${lt_cv_path_NM=no} | |
ce2cded5 L |
5547 | fi |
5548 | fi | |
81ecdfbb RW |
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5550 | $as_echo "$lt_cv_path_NM" >&6; } | |
7357c5b6 AM |
5551 | if test "$lt_cv_path_NM" != "no"; then |
5552 | NM="$lt_cv_path_NM" | |
ce2cded5 | 5553 | else |
7357c5b6 AM |
5554 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5555 | if test -n "$ac_tool_prefix"; then | |
5556 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5557 | do | |
5558 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5559 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5561 | $as_echo_n "checking for $ac_word... " >&6; } | |
5562 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5563 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5564 | else |
7357c5b6 AM |
5565 | if test -n "$DUMPBIN"; then |
5566 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
5567 | else |
5568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5569 | for as_dir in $PATH | |
5570 | do | |
5571 | IFS=$as_save_IFS | |
5572 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5573 | for ac_exec_ext in '' $ac_executable_extensions; do |
5574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 5575 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5577 | break 2 |
5578 | fi | |
5579 | done | |
81ecdfbb RW |
5580 | done |
5581 | IFS=$as_save_IFS | |
d7040cdb | 5582 | |
ce2cded5 L |
5583 | fi |
5584 | fi | |
7357c5b6 AM |
5585 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5586 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5588 | $as_echo "$DUMPBIN" >&6; } | |
ce2cded5 | 5589 | else |
81ecdfbb RW |
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5591 | $as_echo "no" >&6; } | |
ce2cded5 | 5592 | fi |
d7040cdb | 5593 | |
81ecdfbb | 5594 | |
7357c5b6 AM |
5595 | test -n "$DUMPBIN" && break |
5596 | done | |
ce2cded5 | 5597 | fi |
7357c5b6 AM |
5598 | if test -z "$DUMPBIN"; then |
5599 | ac_ct_DUMPBIN=$DUMPBIN | |
5600 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5601 | do | |
5602 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5603 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5605 | $as_echo_n "checking for $ac_word... " >&6; } | |
5606 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5607 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5608 | else |
7357c5b6 AM |
5609 | if test -n "$ac_ct_DUMPBIN"; then |
5610 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
5611 | else |
5612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5613 | for as_dir in $PATH | |
5614 | do | |
5615 | IFS=$as_save_IFS | |
5616 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5617 | for ac_exec_ext in '' $ac_executable_extensions; do |
5618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 5619 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5621 | break 2 |
5622 | fi | |
5623 | done | |
81ecdfbb RW |
5624 | done |
5625 | IFS=$as_save_IFS | |
d7040cdb | 5626 | |
ce2cded5 L |
5627 | fi |
5628 | fi | |
7357c5b6 AM |
5629 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5630 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5632 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 5633 | else |
81ecdfbb RW |
5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5635 | $as_echo "no" >&6; } | |
20e95c23 | 5636 | fi |
20e95c23 | 5637 | |
81ecdfbb | 5638 | |
7357c5b6 | 5639 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 L |
5640 | done |
5641 | ||
81ecdfbb RW |
5642 | if test "x$ac_ct_DUMPBIN" = x; then |
5643 | DUMPBIN=":" | |
5644 | else | |
5645 | case $cross_compiling:$ac_tool_warned in | |
5646 | yes:) | |
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5648 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5649 | ac_tool_warned=yes ;; | |
5650 | esac | |
5651 | DUMPBIN=$ac_ct_DUMPBIN | |
5652 | fi | |
d7040cdb | 5653 | fi |
7357c5b6 AM |
5654 | |
5655 | ||
5656 | if test "$DUMPBIN" != ":"; then | |
5657 | NM="$DUMPBIN" | |
5658 | fi | |
20e95c23 | 5659 | fi |
7357c5b6 AM |
5660 | test -z "$NM" && NM=nm |
5661 | ||
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | ||
81ecdfbb RW |
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5668 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5669 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5670 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5671 | else |
7357c5b6 AM |
5672 | lt_cv_nm_interface="BSD nm" |
5673 | echo "int some_variable = 0;" > conftest.$ac_ext | |
da2f07f1 | 5674 | (eval echo "\"\$as_me:5674: $ac_compile\"" >&5) |
7357c5b6 AM |
5675 | (eval "$ac_compile" 2>conftest.err) |
5676 | cat conftest.err >&5 | |
da2f07f1 | 5677 | (eval echo "\"\$as_me:5677: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7357c5b6 AM |
5678 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5679 | cat conftest.err >&5 | |
da2f07f1 | 5680 | (eval echo "\"\$as_me:5680: output\"" >&5) |
7357c5b6 AM |
5681 | cat conftest.out >&5 |
5682 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5683 | lt_cv_nm_interface="MS dumpbin" | |
5684 | fi | |
5685 | rm -f conftest* | |
ce2cded5 | 5686 | fi |
81ecdfbb RW |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5688 | $as_echo "$lt_cv_nm_interface" >&6; } | |
20e95c23 | 5689 | |
81ecdfbb RW |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5691 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7357c5b6 AM |
5692 | LN_S=$as_ln_s |
5693 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5695 | $as_echo "yes" >&6; } | |
ce2cded5 | 5696 | else |
81ecdfbb RW |
5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5698 | $as_echo "no, using $LN_S" >&6; } | |
ce2cded5 | 5699 | fi |
d7040cdb | 5700 | |
7357c5b6 | 5701 | # find the maximum length of command line arguments |
81ecdfbb RW |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5703 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5704 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5705 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
5706 | else |
5707 | i=0 | |
5708 | teststring="ABCD" | |
d7040cdb | 5709 | |
7357c5b6 AM |
5710 | case $build_os in |
5711 | msdosdjgpp*) | |
5712 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5713 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5714 | # during glob expansion). Even if it were fixed, the result of this | |
5715 | # check would be larger than it should be. | |
5716 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5717 | ;; | |
d7040cdb | 5718 | |
7357c5b6 AM |
5719 | gnu*) |
5720 | # Under GNU Hurd, this test is not required because there is | |
5721 | # no limit to the length of command line arguments. | |
5722 | # Libtool will interpret -1 as no limit whatsoever | |
5723 | lt_cv_sys_max_cmd_len=-1; | |
5724 | ;; | |
d7040cdb | 5725 | |
b214d478 | 5726 | cygwin* | mingw* | cegcc*) |
7357c5b6 AM |
5727 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5728 | # about 5 minutes as the teststring grows exponentially. | |
5729 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5730 | # you end up with a "frozen" computer, even though with patience | |
5731 | # the test eventually succeeds (with a max line length of 256k). | |
5732 | # Instead, let's just punt: use the minimum linelength reported by | |
5733 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5734 | lt_cv_sys_max_cmd_len=8192; | |
5735 | ;; | |
d7040cdb | 5736 | |
7357c5b6 AM |
5737 | amigaos*) |
5738 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5739 | # So we just punt and use a minimum line length of 8192. | |
5740 | lt_cv_sys_max_cmd_len=8192; | |
5741 | ;; | |
d7040cdb | 5742 | |
7357c5b6 AM |
5743 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5744 | # This has been around since 386BSD, at least. Likely further. | |
5745 | if test -x /sbin/sysctl; then | |
5746 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5747 | elif test -x /usr/sbin/sysctl; then | |
5748 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5749 | else | |
5750 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5751 | fi | |
5752 | # And add a safety zone | |
5753 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5754 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5755 | ;; | |
d7040cdb | 5756 | |
7357c5b6 AM |
5757 | interix*) |
5758 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5759 | lt_cv_sys_max_cmd_len=196608 | |
5760 | ;; | |
d7040cdb | 5761 | |
7357c5b6 AM |
5762 | osf*) |
5763 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5764 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5765 | # nice to cause kernel panics so lets avoid the loop below. | |
5766 | # First set a reasonable default. | |
5767 | lt_cv_sys_max_cmd_len=16384 | |
5768 | # | |
5769 | if test -x /sbin/sysconfig; then | |
5770 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5771 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5772 | esac | |
5773 | fi | |
5774 | ;; | |
5775 | sco3.2v5*) | |
5776 | lt_cv_sys_max_cmd_len=102400 | |
5777 | ;; | |
5778 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5779 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5780 | if test -n "$kargmax"; then | |
5781 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5782 | else | |
5783 | lt_cv_sys_max_cmd_len=32768 | |
5784 | fi | |
ce2cded5 L |
5785 | ;; |
5786 | *) | |
b214d478 SE |
5787 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5788 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7357c5b6 AM |
5789 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5790 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5791 | else | |
5792 | # Make teststring a little bigger before we do anything with it. | |
5793 | # a 1K string should be a reasonable start. | |
5794 | for i in 1 2 3 4 5 6 7 8 ; do | |
5795 | teststring=$teststring$teststring | |
5796 | done | |
5797 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5798 | # If test is not a shell built-in, we'll probably end up computing a | |
5799 | # maximum length that is only half of the actual maximum length, but | |
5800 | # we can't tell. | |
5801 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5802 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5803 | test $i != 17 # 1/2 MB should be enough | |
5804 | do | |
5805 | i=`expr $i + 1` | |
5806 | teststring=$teststring$teststring | |
5807 | done | |
5808 | # Only check the string length outside the loop. | |
5809 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5810 | teststring= | |
5811 | # Add a significant safety factor because C++ compilers can tack on | |
5812 | # massive amounts of additional arguments before passing them to the | |
5813 | # linker. It appears as though 1/2 is a usable value. | |
5814 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5815 | fi | |
ce2cded5 L |
5816 | ;; |
5817 | esac | |
d7040cdb | 5818 | |
7357c5b6 | 5819 | fi |
d7040cdb | 5820 | |
7357c5b6 | 5821 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5823 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7357c5b6 | 5824 | else |
81ecdfbb RW |
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5826 | $as_echo "none" >&6; } | |
7357c5b6 AM |
5827 | fi |
5828 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
5829 | |
5830 | ||
5831 | ||
5832 | ||
5833 | ||
5834 | ||
7357c5b6 AM |
5835 | : ${CP="cp -f"} |
5836 | : ${MV="mv -f"} | |
5837 | : ${RM="rm -f"} | |
d7040cdb | 5838 | |
81ecdfbb RW |
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5840 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7357c5b6 AM |
5841 | # Try some XSI features |
5842 | xsi_shell=no | |
5843 | ( _lt_dummy="a/b/c" | |
5844 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
b214d478 SE |
5845 | = c,a/b,, \ |
5846 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5847 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7357c5b6 | 5848 | && xsi_shell=yes |
81ecdfbb RW |
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5850 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb SE |
5851 | |
5852 | ||
81ecdfbb RW |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5854 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7357c5b6 AM |
5855 | lt_shell_append=no |
5856 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5857 | >/dev/null 2>&1 \ | |
5858 | && lt_shell_append=yes | |
81ecdfbb RW |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5860 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb | 5861 | |
d7040cdb | 5862 | |
7357c5b6 AM |
5863 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5864 | lt_unset=unset | |
5865 | else | |
5866 | lt_unset=false | |
5867 | fi | |
d7040cdb | 5868 | |
d7040cdb | 5869 | |
d7040cdb | 5870 | |
d7040cdb | 5871 | |
d7040cdb | 5872 | |
7357c5b6 AM |
5873 | # test EBCDIC or ASCII |
5874 | case `echo X|tr X '\101'` in | |
5875 | A) # ASCII based system | |
5876 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5877 | lt_SP2NL='tr \040 \012' | |
5878 | lt_NL2SP='tr \015\012 \040\040' | |
5879 | ;; | |
5880 | *) # EBCDIC based system | |
5881 | lt_SP2NL='tr \100 \n' | |
5882 | lt_NL2SP='tr \r\n \100\100' | |
5883 | ;; | |
5884 | esac | |
d7040cdb | 5885 | |
d7040cdb | 5886 | |
d7040cdb | 5887 | |
d7040cdb | 5888 | |
d7040cdb | 5889 | |
d7040cdb SE |
5890 | |
5891 | ||
5af11cab | 5892 | |
d7040cdb | 5893 | |
81ecdfbb RW |
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5895 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5896 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5897 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
5898 | else |
5899 | lt_cv_ld_reload_flag='-r' | |
5900 | fi | |
81ecdfbb RW |
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5902 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7357c5b6 AM |
5903 | reload_flag=$lt_cv_ld_reload_flag |
5904 | case $reload_flag in | |
5905 | "" | " "*) ;; | |
5906 | *) reload_flag=" $reload_flag" ;; | |
5907 | esac | |
5908 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5909 | case $host_os in | |
5910 | darwin*) | |
5911 | if test "$GCC" = yes; then | |
5912 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5913 | else | |
5914 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5915 | fi | |
5916 | ;; | |
5917 | esac | |
20e95c23 | 5918 | |
6bf9431b | 5919 | |
20e95c23 DJ |
5920 | |
5921 | ||
20e95c23 | 5922 | |
20e95c23 | 5923 | |
ce2cded5 | 5924 | |
ce2cded5 | 5925 | |
ce2cded5 | 5926 | |
b214d478 SE |
5927 | if test -n "$ac_tool_prefix"; then |
5928 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5929 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5931 | $as_echo_n "checking for $ac_word... " >&6; } | |
5932 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5933 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
5934 | else |
5935 | if test -n "$OBJDUMP"; then | |
5936 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5937 | else | |
5938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5939 | for as_dir in $PATH | |
5940 | do | |
5941 | IFS=$as_save_IFS | |
5942 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5943 | for ac_exec_ext in '' $ac_executable_extensions; do |
5944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 5945 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
5947 | break 2 |
5948 | fi | |
5949 | done | |
81ecdfbb RW |
5950 | done |
5951 | IFS=$as_save_IFS | |
b214d478 SE |
5952 | |
5953 | fi | |
5954 | fi | |
5955 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5956 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5958 | $as_echo "$OBJDUMP" >&6; } | |
b214d478 | 5959 | else |
81ecdfbb RW |
5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5961 | $as_echo "no" >&6; } | |
b214d478 SE |
5962 | fi |
5963 | ||
81ecdfbb | 5964 | |
b214d478 SE |
5965 | fi |
5966 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5967 | ac_ct_OBJDUMP=$OBJDUMP | |
5968 | # Extract the first word of "objdump", so it can be a program name with args. | |
5969 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5971 | $as_echo_n "checking for $ac_word... " >&6; } | |
5972 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5973 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
5974 | else |
5975 | if test -n "$ac_ct_OBJDUMP"; then | |
5976 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5977 | else | |
5978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5979 | for as_dir in $PATH | |
5980 | do | |
5981 | IFS=$as_save_IFS | |
5982 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5983 | for ac_exec_ext in '' $ac_executable_extensions; do |
5984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 5985 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
5987 | break 2 |
5988 | fi | |
5989 | done | |
81ecdfbb RW |
5990 | done |
5991 | IFS=$as_save_IFS | |
b214d478 | 5992 | |
b214d478 SE |
5993 | fi |
5994 | fi | |
5995 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5996 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5998 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b214d478 | 5999 | else |
81ecdfbb RW |
6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6001 | $as_echo "no" >&6; } | |
b214d478 SE |
6002 | fi |
6003 | ||
81ecdfbb RW |
6004 | if test "x$ac_ct_OBJDUMP" = x; then |
6005 | OBJDUMP="false" | |
6006 | else | |
6007 | case $cross_compiling:$ac_tool_warned in | |
6008 | yes:) | |
6009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6011 | ac_tool_warned=yes ;; | |
6012 | esac | |
6013 | OBJDUMP=$ac_ct_OBJDUMP | |
6014 | fi | |
b214d478 SE |
6015 | else |
6016 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6017 | fi | |
6018 | ||
6019 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6020 | ||
6021 | ||
6022 | ||
6023 | ||
6024 | ||
6025 | ||
6026 | ||
6027 | ||
ce2cded5 | 6028 | |
81ecdfbb RW |
6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6030 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6031 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6032 | $as_echo_n "(cached) " >&6 | |
6bf9431b | 6033 | else |
7357c5b6 AM |
6034 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6035 | lt_cv_file_magic_test_file= | |
6036 | lt_cv_deplibs_check_method='unknown' | |
6037 | # Need to set the preceding variable on all platforms that support | |
6038 | # interlibrary dependencies. | |
6039 | # 'none' -- dependencies not supported. | |
6040 | # `unknown' -- same as none, but documents that we really don't know. | |
6041 | # 'pass_all' -- all dependencies passed with no checks. | |
6042 | # 'test_compile' -- check by making test program. | |
6043 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6044 | # which responds to the $file_magic_cmd with a given extended regex. | |
6045 | # If you have `file' or equivalent on your system and you're not sure | |
6046 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 6047 | |
ce2cded5 | 6048 | case $host_os in |
7357c5b6 AM |
6049 | aix[4-9]*) |
6050 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6051 | ;; |
7357c5b6 AM |
6052 | |
6053 | beos*) | |
6054 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6055 | ;; |
7357c5b6 AM |
6056 | |
6057 | bsdi[45]*) | |
6058 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6059 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6060 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 6061 | ;; |
7357c5b6 AM |
6062 | |
6063 | cygwin*) | |
6064 | # func_win32_libid is a shell function defined in ltmain.sh | |
6065 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6066 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 6067 | ;; |
7357c5b6 AM |
6068 | |
6069 | mingw* | pw32*) | |
6070 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6071 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6072 | # unless we find 'file', for example because we are cross-compiling. | |
6073 | if ( file / ) >/dev/null 2>&1; then | |
6074 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6075 | lt_cv_file_magic_cmd='func_win32_libid' | |
6076 | else | |
6077 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6078 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6079 | fi | |
ce2cded5 | 6080 | ;; |
7357c5b6 | 6081 | |
b214d478 SE |
6082 | cegcc) |
6083 | # use the weaker test based on 'objdump'. See mingw*. | |
6084 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6085 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6086 | ;; | |
6087 | ||
7357c5b6 AM |
6088 | darwin* | rhapsody*) |
6089 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6090 | ;; |
d7040cdb | 6091 | |
7357c5b6 AM |
6092 | freebsd* | dragonfly*) |
6093 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6094 | case $host_cpu in | |
6095 | i*86 ) | |
6096 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6097 | # Let's accept both of them until this is cleared up. | |
6098 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6099 | lt_cv_file_magic_cmd=/usr/bin/file | |
6100 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6101 | ;; | |
6102 | esac | |
6103 | else | |
6104 | lt_cv_deplibs_check_method=pass_all | |
6105 | fi | |
6106 | ;; | |
20e95c23 | 6107 | |
7357c5b6 AM |
6108 | gnu*) |
6109 | lt_cv_deplibs_check_method=pass_all | |
6110 | ;; | |
20e95c23 | 6111 | |
7357c5b6 AM |
6112 | hpux10.20* | hpux11*) |
6113 | lt_cv_file_magic_cmd=/usr/bin/file | |
6114 | case $host_cpu in | |
6115 | ia64*) | |
6116 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6117 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6118 | ;; | |
6119 | hppa*64*) | |
6120 | 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]' | |
6121 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6122 | ;; | |
6123 | *) | |
6124 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6125 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6126 | ;; | |
6127 | esac | |
6128 | ;; | |
5af11cab | 6129 | |
7357c5b6 AM |
6130 | interix[3-9]*) |
6131 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6132 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
d7040cdb | 6133 | ;; |
20e95c23 | 6134 | |
7357c5b6 AM |
6135 | irix5* | irix6* | nonstopux*) |
6136 | case $LD in | |
6137 | *-32|*"-32 ") libmagic=32-bit;; | |
6138 | *-n32|*"-n32 ") libmagic=N32;; | |
6139 | *-64|*"-64 ") libmagic=64-bit;; | |
6140 | *) libmagic=never-match;; | |
6141 | esac | |
6142 | lt_cv_deplibs_check_method=pass_all | |
6143 | ;; | |
d7040cdb | 6144 | |
7357c5b6 | 6145 | # This must be Linux ELF. |
58e24671 | 6146 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7357c5b6 AM |
6147 | lt_cv_deplibs_check_method=pass_all |
6148 | ;; | |
d7040cdb | 6149 | |
7357c5b6 AM |
6150 | netbsd*) |
6151 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6152 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
ce2cded5 | 6153 | else |
7357c5b6 | 6154 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
ce2cded5 | 6155 | fi |
7357c5b6 | 6156 | ;; |
d7040cdb | 6157 | |
7357c5b6 AM |
6158 | newos6*) |
6159 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6160 | lt_cv_file_magic_cmd=/usr/bin/file | |
6161 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6162 | ;; | |
d7040cdb | 6163 | |
7357c5b6 AM |
6164 | *nto* | *qnx*) |
6165 | lt_cv_deplibs_check_method=pass_all | |
6166 | ;; | |
d7040cdb | 6167 | |
7357c5b6 AM |
6168 | openbsd*) |
6169 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6170 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6171 | else | |
6172 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6173 | fi | |
6174 | ;; | |
d7040cdb | 6175 | |
7357c5b6 AM |
6176 | osf3* | osf4* | osf5*) |
6177 | lt_cv_deplibs_check_method=pass_all | |
6178 | ;; | |
d7040cdb | 6179 | |
7357c5b6 AM |
6180 | rdos*) |
6181 | lt_cv_deplibs_check_method=pass_all | |
6182 | ;; | |
d7040cdb | 6183 | |
7357c5b6 AM |
6184 | solaris*) |
6185 | lt_cv_deplibs_check_method=pass_all | |
6186 | ;; | |
d7040cdb | 6187 | |
7357c5b6 AM |
6188 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6189 | lt_cv_deplibs_check_method=pass_all | |
6190 | ;; | |
d7040cdb | 6191 | |
7357c5b6 AM |
6192 | sysv4 | sysv4.3*) |
6193 | case $host_vendor in | |
6194 | motorola) | |
6195 | 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]' | |
6196 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6197 | ;; | |
6198 | ncr) | |
6199 | lt_cv_deplibs_check_method=pass_all | |
6200 | ;; | |
6201 | sequent) | |
6202 | lt_cv_file_magic_cmd='/bin/file' | |
6203 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6204 | ;; | |
6205 | sni) | |
6206 | lt_cv_file_magic_cmd='/bin/file' | |
6207 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6208 | lt_cv_file_magic_test_file=/lib/libc.so | |
6209 | ;; | |
6210 | siemens) | |
6211 | lt_cv_deplibs_check_method=pass_all | |
6212 | ;; | |
6213 | pc) | |
6214 | lt_cv_deplibs_check_method=pass_all | |
6215 | ;; | |
6216 | esac | |
6217 | ;; | |
d7040cdb | 6218 | |
7357c5b6 AM |
6219 | tpf*) |
6220 | lt_cv_deplibs_check_method=pass_all | |
6221 | ;; | |
6222 | esac | |
d7040cdb | 6223 | |
ce2cded5 | 6224 | fi |
81ecdfbb RW |
6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6226 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7357c5b6 AM |
6227 | file_magic_cmd=$lt_cv_file_magic_cmd |
6228 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6229 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6230 | |
d7040cdb | 6231 | |
d7040cdb | 6232 | |
d7040cdb | 6233 | |
5af11cab | 6234 | |
20e95c23 | 6235 | |
20e95c23 | 6236 | |
20e95c23 | 6237 | |
20e95c23 DJ |
6238 | |
6239 | ||
6240 | ||
20e95c23 | 6241 | |
7357c5b6 AM |
6242 | if test -n "$ac_tool_prefix"; then |
6243 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6244 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6246 | $as_echo_n "checking for $ac_word... " >&6; } | |
6247 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6248 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6249 | else |
6250 | if test -n "$AR"; then | |
6251 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6252 | else | |
6253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6254 | for as_dir in $PATH | |
6255 | do | |
6256 | IFS=$as_save_IFS | |
6257 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6258 | for ac_exec_ext in '' $ac_executable_extensions; do |
6259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6260 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6262 | break 2 |
ce2cded5 | 6263 | fi |
7357c5b6 | 6264 | done |
81ecdfbb RW |
6265 | done |
6266 | IFS=$as_save_IFS | |
d5fbea21 | 6267 | |
7357c5b6 AM |
6268 | fi |
6269 | fi | |
6270 | AR=$ac_cv_prog_AR | |
6271 | if test -n "$AR"; then | |
81ecdfbb RW |
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6273 | $as_echo "$AR" >&6; } | |
7357c5b6 | 6274 | else |
81ecdfbb RW |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6276 | $as_echo "no" >&6; } | |
7357c5b6 | 6277 | fi |
d5fbea21 | 6278 | |
81ecdfbb | 6279 | |
7357c5b6 AM |
6280 | fi |
6281 | if test -z "$ac_cv_prog_AR"; then | |
6282 | ac_ct_AR=$AR | |
6283 | # Extract the first word of "ar", so it can be a program name with args. | |
6284 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6286 | $as_echo_n "checking for $ac_word... " >&6; } | |
6287 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6288 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6289 | else |
7357c5b6 AM |
6290 | if test -n "$ac_ct_AR"; then |
6291 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6292 | else | |
6293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6294 | for as_dir in $PATH | |
6295 | do | |
6296 | IFS=$as_save_IFS | |
6297 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6298 | for ac_exec_ext in '' $ac_executable_extensions; do |
6299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6300 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6302 | break 2 |
6303 | fi | |
6304 | done | |
81ecdfbb RW |
6305 | done |
6306 | IFS=$as_save_IFS | |
d7040cdb | 6307 | |
7357c5b6 AM |
6308 | fi |
6309 | fi | |
6310 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6311 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6313 | $as_echo "$ac_ct_AR" >&6; } | |
ce2cded5 | 6314 | else |
81ecdfbb RW |
6315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6316 | $as_echo "no" >&6; } | |
ce2cded5 | 6317 | fi |
d7040cdb | 6318 | |
81ecdfbb RW |
6319 | if test "x$ac_ct_AR" = x; then |
6320 | AR="false" | |
6321 | else | |
6322 | case $cross_compiling:$ac_tool_warned in | |
6323 | yes:) | |
6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6325 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6326 | ac_tool_warned=yes ;; | |
6327 | esac | |
6328 | AR=$ac_ct_AR | |
6329 | fi | |
7357c5b6 AM |
6330 | else |
6331 | AR="$ac_cv_prog_AR" | |
ce2cded5 | 6332 | fi |
d7040cdb | 6333 | |
7357c5b6 AM |
6334 | test -z "$AR" && AR=ar |
6335 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb | 6336 | |
7357c5b6 AM |
6337 | |
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
6346 | ||
6347 | if test -n "$ac_tool_prefix"; then | |
6348 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6349 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6351 | $as_echo_n "checking for $ac_word... " >&6; } | |
6352 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6353 | $as_echo_n "(cached) " >&6 | |
252b5132 | 6354 | else |
7357c5b6 AM |
6355 | if test -n "$STRIP"; then |
6356 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6357 | else | |
6358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6359 | for as_dir in $PATH | |
ce2cded5 | 6360 | do |
7357c5b6 AM |
6361 | IFS=$as_save_IFS |
6362 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6363 | for ac_exec_ext in '' $ac_executable_extensions; do |
6364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6365 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6367 | break 2 |
ce2cded5 | 6368 | fi |
7357c5b6 | 6369 | done |
81ecdfbb RW |
6370 | done |
6371 | IFS=$as_save_IFS | |
7357c5b6 | 6372 | |
252b5132 | 6373 | fi |
7357c5b6 AM |
6374 | fi |
6375 | STRIP=$ac_cv_prog_STRIP | |
6376 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6378 | $as_echo "$STRIP" >&6; } | |
252b5132 | 6379 | else |
81ecdfbb RW |
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6381 | $as_echo "no" >&6; } | |
252b5132 | 6382 | fi |
d7040cdb | 6383 | |
81ecdfbb | 6384 | |
6bf9431b | 6385 | fi |
7357c5b6 AM |
6386 | if test -z "$ac_cv_prog_STRIP"; then |
6387 | ac_ct_STRIP=$STRIP | |
6388 | # Extract the first word of "strip", so it can be a program name with args. | |
6389 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6391 | $as_echo_n "checking for $ac_word... " >&6; } | |
6392 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6393 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 6394 | else |
7357c5b6 AM |
6395 | if test -n "$ac_ct_STRIP"; then |
6396 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6397 | else | |
6398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6399 | for as_dir in $PATH | |
6400 | do | |
6401 | IFS=$as_save_IFS | |
6402 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6403 | for ac_exec_ext in '' $ac_executable_extensions; do |
6404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6405 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6407 | break 2 |
6408 | fi | |
6409 | done | |
81ecdfbb RW |
6410 | done |
6411 | IFS=$as_save_IFS | |
6bf9431b | 6412 | |
7357c5b6 AM |
6413 | fi |
6414 | fi | |
6415 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6416 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6418 | $as_echo "$ac_ct_STRIP" >&6; } | |
7357c5b6 | 6419 | else |
81ecdfbb RW |
6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6421 | $as_echo "no" >&6; } | |
6bf9431b | 6422 | fi |
6bf9431b | 6423 | |
81ecdfbb RW |
6424 | if test "x$ac_ct_STRIP" = x; then |
6425 | STRIP=":" | |
6426 | else | |
6427 | case $cross_compiling:$ac_tool_warned in | |
6428 | yes:) | |
6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6430 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6431 | ac_tool_warned=yes ;; | |
6432 | esac | |
6433 | STRIP=$ac_ct_STRIP | |
6434 | fi | |
7357c5b6 AM |
6435 | else |
6436 | STRIP="$ac_cv_prog_STRIP" | |
ce2cded5 | 6437 | fi |
6bf9431b | 6438 | |
7357c5b6 AM |
6439 | test -z "$STRIP" && STRIP=: |
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | if test -n "$ac_tool_prefix"; then | |
6447 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6448 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6450 | $as_echo_n "checking for $ac_word... " >&6; } | |
6451 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6452 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6453 | else |
6454 | if test -n "$RANLIB"; then | |
6455 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6456 | else | |
6457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6458 | for as_dir in $PATH | |
6459 | do | |
6460 | IFS=$as_save_IFS | |
6461 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6462 | for ac_exec_ext in '' $ac_executable_extensions; do |
6463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6464 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6465 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6466 | break 2 |
6467 | fi | |
6468 | done | |
81ecdfbb RW |
6469 | done |
6470 | IFS=$as_save_IFS | |
6bf9431b | 6471 | |
ce2cded5 | 6472 | fi |
7357c5b6 AM |
6473 | fi |
6474 | RANLIB=$ac_cv_prog_RANLIB | |
6475 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6477 | $as_echo "$RANLIB" >&6; } | |
ac48eca1 | 6478 | else |
81ecdfbb RW |
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6480 | $as_echo "no" >&6; } | |
d7040cdb | 6481 | fi |
7357c5b6 | 6482 | |
81ecdfbb | 6483 | |
7357c5b6 AM |
6484 | fi |
6485 | if test -z "$ac_cv_prog_RANLIB"; then | |
6486 | ac_ct_RANLIB=$RANLIB | |
6487 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6488 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6490 | $as_echo_n "checking for $ac_word... " >&6; } | |
6491 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6492 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6493 | else |
6494 | if test -n "$ac_ct_RANLIB"; then | |
6495 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6496 | else | |
6497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6498 | for as_dir in $PATH | |
ce2cded5 | 6499 | do |
7357c5b6 AM |
6500 | IFS=$as_save_IFS |
6501 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6502 | for ac_exec_ext in '' $ac_executable_extensions; do |
6503 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6504 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6505 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6506 | break 2 |
ce2cded5 | 6507 | fi |
7357c5b6 | 6508 | done |
81ecdfbb RW |
6509 | done |
6510 | IFS=$as_save_IFS | |
7357c5b6 | 6511 | |
ce2cded5 | 6512 | fi |
7357c5b6 AM |
6513 | fi |
6514 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6515 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6517 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ce2cded5 | 6518 | else |
81ecdfbb RW |
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6520 | $as_echo "no" >&6; } | |
ce2cded5 | 6521 | fi |
d7040cdb | 6522 | |
81ecdfbb RW |
6523 | if test "x$ac_ct_RANLIB" = x; then |
6524 | RANLIB=":" | |
6525 | else | |
6526 | case $cross_compiling:$ac_tool_warned in | |
6527 | yes:) | |
6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6529 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6530 | ac_tool_warned=yes ;; | |
6531 | esac | |
6532 | RANLIB=$ac_ct_RANLIB | |
6533 | fi | |
d7040cdb | 6534 | else |
7357c5b6 | 6535 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb SE |
6536 | fi |
6537 | ||
7357c5b6 AM |
6538 | test -z "$RANLIB" && RANLIB=: |
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | # Determine commands to create old-style static archives. | |
b214d478 | 6546 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7357c5b6 AM |
6547 | old_postinstall_cmds='chmod 644 $oldlib' |
6548 | old_postuninstall_cmds= | |
6549 | ||
6550 | if test -n "$RANLIB"; then | |
6551 | case $host_os in | |
6552 | openbsd*) | |
6553 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6554 | ;; | |
6555 | *) | |
6556 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6557 | ;; | |
6558 | esac | |
6559 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 6560 | fi |
d7040cdb SE |
6561 | |
6562 | ||
6563 | ||
6564 | ||
6565 | ||
d7040cdb | 6566 | |
7357c5b6 AM |
6567 | |
6568 | ||
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
6577 | ||
6578 | ||
6579 | ||
6580 | ||
6581 | ||
6582 | ||
6583 | ||
6584 | ||
6585 | ||
6586 | ||
6587 | ||
6588 | ||
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | # If no C compiler was specified, use CC. | |
6596 | LTCC=${LTCC-"$CC"} | |
6597 | ||
6598 | # If no C compiler flags were specified, use CFLAGS. | |
6599 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6600 | ||
6601 | # Allow CC to be a program name with arguments. | |
6602 | compiler=$CC | |
6603 | ||
6604 | ||
6605 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6607 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6608 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6609 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6610 | else |
6611 | ||
6612 | # These are sane defaults that work on at least a few old systems. | |
6613 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6614 | ||
6615 | # Character class describing NM global symbol codes. | |
6616 | symcode='[BCDEGRST]' | |
6617 | ||
6618 | # Regexp to match symbols that can be accessed directly from C. | |
6619 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6620 | ||
6621 | # Define system-specific variables. | |
6622 | case $host_os in | |
6623 | aix*) | |
6624 | symcode='[BCDT]' | |
6625 | ;; | |
b214d478 | 6626 | cygwin* | mingw* | pw32* | cegcc*) |
7357c5b6 AM |
6627 | symcode='[ABCDGISTW]' |
6628 | ;; | |
6629 | hpux*) | |
6630 | if test "$host_cpu" = ia64; then | |
6631 | symcode='[ABCDEGRST]' | |
6632 | fi | |
6633 | ;; | |
6634 | irix* | nonstopux*) | |
6635 | symcode='[BCDEGRST]' | |
6636 | ;; | |
6637 | osf*) | |
6638 | symcode='[BCDEGQRST]' | |
6639 | ;; | |
6640 | solaris*) | |
6641 | symcode='[BDRT]' | |
6642 | ;; | |
6643 | sco3.2v5*) | |
6644 | symcode='[DT]' | |
6645 | ;; | |
6646 | sysv4.2uw2*) | |
6647 | symcode='[DT]' | |
6648 | ;; | |
6649 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6650 | symcode='[ABDT]' | |
6651 | ;; | |
6652 | sysv4) | |
6653 | symcode='[DFNSTU]' | |
6654 | ;; | |
6655 | esac | |
6656 | ||
6657 | # If we're using GNU nm, then use its standard symbol codes. | |
6658 | case `$NM -V 2>&1` in | |
6659 | *GNU* | *'with BFD'*) | |
6660 | symcode='[ABCDGIRSTW]' ;; | |
6661 | esac | |
6662 | ||
6663 | # Transform an extracted symbol line into a proper C declaration. | |
6664 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6665 | # so use this general approach. | |
6666 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6667 | ||
6668 | # Transform an extracted symbol line into symbol name and symbol address | |
6669 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
b214d478 | 6670 | 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'" |
7357c5b6 AM |
6671 | |
6672 | # Handle CRLF in mingw tool chain | |
6673 | opt_cr= | |
6674 | case $build_os in | |
6675 | mingw*) | |
6676 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6677 | ;; | |
6678 | esac | |
6679 | ||
6680 | # Try without a prefix underscore, then with it. | |
6681 | for ac_symprfx in "" "_"; do | |
6682 | ||
6683 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6684 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6685 | ||
6686 | # Write the raw and C identifiers. | |
6687 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6688 | # Fake it for dumpbin and say T for any non-static function | |
6689 | # and D for any global variable. | |
6690 | # Also find C++ and __fastcall symbols from MSVC++, | |
6691 | # which start with @ or ?. | |
6692 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6693 | " {last_section=section; section=\$ 3};"\ | |
6694 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6695 | " \$ 0!~/External *\|/{next};"\ | |
6696 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6697 | " {if(hide[section]) next};"\ | |
6698 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6699 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6700 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6701 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6702 | " ' prfx=^$ac_symprfx" | |
6703 | else | |
6704 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6705 | fi | |
6706 | ||
6707 | # Check to see that the pipe works correctly. | |
6708 | pipe_works=no | |
6709 | ||
6710 | rm -f conftest* | |
6711 | cat > conftest.$ac_ext <<_LT_EOF | |
6712 | #ifdef __cplusplus | |
6713 | extern "C" { | |
6714 | #endif | |
6715 | char nm_test_var; | |
6716 | void nm_test_func(void); | |
6717 | void nm_test_func(void){} | |
6718 | #ifdef __cplusplus | |
ce2cded5 | 6719 | } |
7357c5b6 AM |
6720 | #endif |
6721 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6722 | _LT_EOF | |
6723 | ||
81ecdfbb | 6724 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6725 | (eval $ac_compile) 2>&5 |
ce2cded5 | 6726 | ac_status=$? |
81ecdfbb RW |
6727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6728 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6729 | # Now try to grab the symbols. |
6730 | nlist=conftest.nm | |
81ecdfbb | 6731 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
7357c5b6 | 6732 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
ce2cded5 | 6733 | ac_status=$? |
81ecdfbb RW |
6734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6735 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6736 | # Try sorting and uniquifying the output. |
6737 | if sort "$nlist" | uniq > "$nlist"T; then | |
6738 | mv -f "$nlist"T "$nlist" | |
6739 | else | |
6740 | rm -f "$nlist"T | |
6741 | fi | |
6bf9431b | 6742 | |
7357c5b6 AM |
6743 | # Make sure that we snagged all the symbols we need. |
6744 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6745 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6746 | cat <<_LT_EOF > conftest.$ac_ext | |
6747 | #ifdef __cplusplus | |
6748 | extern "C" { | |
6749 | #endif | |
d7040cdb | 6750 | |
7357c5b6 AM |
6751 | _LT_EOF |
6752 | # Now generate the symbol file. | |
6753 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d7040cdb | 6754 | |
7357c5b6 | 6755 | cat <<_LT_EOF >> conftest.$ac_ext |
ac48eca1 | 6756 | |
7357c5b6 AM |
6757 | /* The mapping between symbol names and symbols. */ |
6758 | const struct { | |
6759 | const char *name; | |
6760 | void *address; | |
6761 | } | |
6762 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6763 | { | |
6764 | { "@PROGRAM@", (void *) 0 }, | |
6765 | _LT_EOF | |
6766 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6767 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6768 | {0, (void *) 0} | |
6769 | }; | |
d7040cdb | 6770 | |
7357c5b6 AM |
6771 | /* This works around a problem in FreeBSD linker */ |
6772 | #ifdef FREEBSD_WORKAROUND | |
6773 | static const void *lt_preloaded_setup() { | |
6774 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6775 | } | |
ce2cded5 | 6776 | #endif |
d7040cdb | 6777 | |
7357c5b6 | 6778 | #ifdef __cplusplus |
ce2cded5 | 6779 | } |
7357c5b6 AM |
6780 | #endif |
6781 | _LT_EOF | |
6782 | # Now try linking the two files. | |
6783 | mv conftest.$ac_objext conftstm.$ac_objext | |
6784 | lt_save_LIBS="$LIBS" | |
6785 | lt_save_CFLAGS="$CFLAGS" | |
6786 | LIBS="conftstm.$ac_objext" | |
6787 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6788 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
6789 | (eval $ac_link) 2>&5 |
6790 | ac_status=$? | |
81ecdfbb RW |
6791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6792 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6793 | pipe_works=yes |
6794 | fi | |
6795 | LIBS="$lt_save_LIBS" | |
6796 | CFLAGS="$lt_save_CFLAGS" | |
6797 | else | |
6798 | echo "cannot find nm_test_func in $nlist" >&5 | |
6799 | fi | |
6800 | else | |
6801 | echo "cannot find nm_test_var in $nlist" >&5 | |
6802 | fi | |
6803 | else | |
6804 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6805 | fi | |
6806 | else | |
6807 | echo "$progname: failed program was:" >&5 | |
6808 | cat conftest.$ac_ext >&5 | |
6809 | fi | |
b214d478 | 6810 | rm -rf conftest* conftst* |
7357c5b6 AM |
6811 | |
6812 | # Do not use the global_symbol_pipe unless it works. | |
6813 | if test "$pipe_works" = yes; then | |
6814 | break | |
6815 | else | |
6816 | lt_cv_sys_global_symbol_pipe= | |
6817 | fi | |
6818 | done | |
d7040cdb | 6819 | |
ce2cded5 | 6820 | fi |
7357c5b6 AM |
6821 | |
6822 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6823 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 6824 | fi |
7357c5b6 | 6825 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6827 | $as_echo "failed" >&6; } | |
7357c5b6 | 6828 | else |
81ecdfbb RW |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6830 | $as_echo "ok" >&6; } | |
ce2cded5 | 6831 | fi |
d7040cdb | 6832 | |
d7040cdb | 6833 | |
d7040cdb | 6834 | |
d7040cdb | 6835 | |
d7040cdb | 6836 | |
d7040cdb | 6837 | |
d7040cdb | 6838 | |
d7040cdb | 6839 | |
d7040cdb | 6840 | |
d7040cdb | 6841 | |
d7040cdb | 6842 | |
d7040cdb | 6843 | |
7357c5b6 AM |
6844 | |
6845 | ||
6846 | ||
b214d478 SE |
6847 | |
6848 | ||
6849 | ||
6850 | ||
6851 | ||
7357c5b6 AM |
6852 | |
6853 | ||
81ecdfbb RW |
6854 | # Check whether --enable-libtool-lock was given. |
6855 | if test "${enable_libtool_lock+set}" = set; then : | |
6856 | enableval=$enable_libtool_lock; | |
6857 | fi | |
7357c5b6 | 6858 | |
7357c5b6 AM |
6859 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6860 | ||
6861 | # Some flags need to be propagated to the compiler or linker for good | |
6862 | # libtool support. | |
6863 | case $host in | |
6864 | ia64-*-hpux*) | |
6865 | # Find out which ABI we are using. | |
6866 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6867 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6868 | (eval $ac_compile) 2>&5 |
6869 | ac_status=$? | |
81ecdfbb RW |
6870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6871 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6872 | case `/usr/bin/file conftest.$ac_objext` in |
6873 | *ELF-32*) | |
6874 | HPUX_IA64_MODE="32" | |
6875 | ;; | |
6876 | *ELF-64*) | |
6877 | HPUX_IA64_MODE="64" | |
6878 | ;; | |
6879 | esac | |
6880 | fi | |
6881 | rm -rf conftest* | |
6882 | ;; | |
6883 | *-*-irix6*) | |
6884 | # Find out which ABI we are using. | |
da2f07f1 | 6885 | echo '#line 6885 "configure"' > conftest.$ac_ext |
81ecdfbb | 6886 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6887 | (eval $ac_compile) 2>&5 |
6888 | ac_status=$? | |
81ecdfbb RW |
6889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6890 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6891 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6892 | case `/usr/bin/file conftest.$ac_objext` in | |
6893 | *32-bit*) | |
6894 | LD="${LD-ld} -melf32bsmip" | |
6895 | ;; | |
6896 | *N32*) | |
6897 | LD="${LD-ld} -melf32bmipn32" | |
6898 | ;; | |
6899 | *64-bit*) | |
6900 | LD="${LD-ld} -melf64bmip" | |
6901 | ;; | |
6902 | esac | |
6903 | else | |
6904 | case `/usr/bin/file conftest.$ac_objext` in | |
6905 | *32-bit*) | |
6906 | LD="${LD-ld} -32" | |
6907 | ;; | |
6908 | *N32*) | |
6909 | LD="${LD-ld} -n32" | |
6910 | ;; | |
6911 | *64-bit*) | |
6912 | LD="${LD-ld} -64" | |
6913 | ;; | |
6914 | esac | |
6915 | fi | |
6916 | fi | |
6917 | rm -rf conftest* | |
6918 | ;; | |
6919 | ||
6920 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6921 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6922 | # Find out which ABI we are using. | |
6923 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6924 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6925 | (eval $ac_compile) 2>&5 |
6926 | ac_status=$? | |
81ecdfbb RW |
6927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6928 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6929 | case `/usr/bin/file conftest.o` in |
6930 | *32-bit*) | |
6931 | case $host in | |
6932 | x86_64-*kfreebsd*-gnu) | |
6933 | LD="${LD-ld} -m elf_i386_fbsd" | |
6934 | ;; | |
6935 | x86_64-*linux*) | |
6936 | LD="${LD-ld} -m elf_i386" | |
6937 | ;; | |
6938 | ppc64-*linux*|powerpc64-*linux*) | |
6939 | LD="${LD-ld} -m elf32ppclinux" | |
6940 | ;; | |
6941 | s390x-*linux*) | |
6942 | LD="${LD-ld} -m elf_s390" | |
6943 | ;; | |
6944 | sparc64-*linux*) | |
6945 | LD="${LD-ld} -m elf32_sparc" | |
6946 | ;; | |
6947 | esac | |
6948 | ;; | |
6949 | *64-bit*) | |
6950 | case $host in | |
6951 | x86_64-*kfreebsd*-gnu) | |
6952 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6953 | ;; | |
6954 | x86_64-*linux*) | |
6955 | LD="${LD-ld} -m elf_x86_64" | |
6956 | ;; | |
6957 | ppc*-*linux*|powerpc*-*linux*) | |
6958 | LD="${LD-ld} -m elf64ppc" | |
6959 | ;; | |
6960 | s390*-*linux*|s390*-*tpf*) | |
6961 | LD="${LD-ld} -m elf64_s390" | |
6962 | ;; | |
6963 | sparc*-*linux*) | |
6964 | LD="${LD-ld} -m elf64_sparc" | |
6965 | ;; | |
6966 | esac | |
6967 | ;; | |
6968 | esac | |
6969 | fi | |
6970 | rm -rf conftest* | |
6971 | ;; | |
6972 | ||
6973 | *-*-sco3.2v5*) | |
6974 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6975 | SAVE_CFLAGS="$CFLAGS" | |
6976 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6978 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6979 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6980 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6981 | else |
7357c5b6 AM |
6982 | ac_ext=c |
6983 | ac_cpp='$CPP $CPPFLAGS' | |
6984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6987 | ||
81ecdfbb | 6988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6bf9431b | 6989 | /* end confdefs.h. */ |
20e95c23 | 6990 | |
7357c5b6 AM |
6991 | int |
6992 | main () | |
6993 | { | |
6994 | ||
6995 | ; | |
6996 | return 0; | |
6997 | } | |
6bf9431b | 6998 | _ACEOF |
81ecdfbb | 6999 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7000 | lt_cv_cc_needs_belf=yes |
6bf9431b | 7001 | else |
81ecdfbb | 7002 | lt_cv_cc_needs_belf=no |
ce2cded5 | 7003 | fi |
81ecdfbb RW |
7004 | rm -f core conftest.err conftest.$ac_objext \ |
7005 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7006 | ac_ext=c |
7007 | ac_cpp='$CPP $CPPFLAGS' | |
7008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 7011 | |
b214d478 | 7012 | fi |
81ecdfbb RW |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7014 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
b214d478 SE |
7015 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7016 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7017 | CFLAGS="$SAVE_CFLAGS" | |
7018 | fi | |
7019 | ;; | |
7020 | sparc*-*solaris*) | |
7021 | # Find out which ABI we are using. | |
7022 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7023 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b214d478 SE |
7024 | (eval $ac_compile) 2>&5 |
7025 | ac_status=$? | |
81ecdfbb RW |
7026 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7027 | test $ac_status = 0; }; then | |
b214d478 SE |
7028 | case `/usr/bin/file conftest.o` in |
7029 | *64-bit*) | |
7030 | case $lt_cv_prog_gnu_ld in | |
7031 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7032 | *) | |
7033 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7034 | LD="${LD-ld} -64" | |
7035 | fi | |
7036 | ;; | |
7037 | esac | |
7038 | ;; | |
7039 | esac | |
7040 | fi | |
7041 | rm -rf conftest* | |
7042 | ;; | |
7043 | esac | |
7044 | ||
7045 | need_locks="$enable_libtool_lock" | |
7046 | ||
7047 | ||
7048 | case $host_os in | |
7049 | rhapsody* | darwin*) | |
7050 | if test -n "$ac_tool_prefix"; then | |
7051 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7052 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7054 | $as_echo_n "checking for $ac_word... " >&6; } | |
7055 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7056 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7057 | else |
7058 | if test -n "$DSYMUTIL"; then | |
7059 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7060 | else | |
7061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7062 | for as_dir in $PATH | |
7063 | do | |
7064 | IFS=$as_save_IFS | |
7065 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7066 | for ac_exec_ext in '' $ac_executable_extensions; do |
7067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7068 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7070 | break 2 |
7071 | fi | |
7072 | done | |
81ecdfbb RW |
7073 | done |
7074 | IFS=$as_save_IFS | |
b214d478 SE |
7075 | |
7076 | fi | |
7077 | fi | |
7078 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7079 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7081 | $as_echo "$DSYMUTIL" >&6; } | |
b214d478 | 7082 | else |
81ecdfbb RW |
7083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7084 | $as_echo "no" >&6; } | |
b214d478 SE |
7085 | fi |
7086 | ||
81ecdfbb | 7087 | |
b214d478 SE |
7088 | fi |
7089 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7090 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7091 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7092 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7094 | $as_echo_n "checking for $ac_word... " >&6; } | |
7095 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7096 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7097 | else |
7098 | if test -n "$ac_ct_DSYMUTIL"; then | |
7099 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7100 | else | |
7101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7102 | for as_dir in $PATH | |
7103 | do | |
7104 | IFS=$as_save_IFS | |
7105 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7106 | for ac_exec_ext in '' $ac_executable_extensions; do |
7107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7108 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7110 | break 2 |
7111 | fi | |
7112 | done | |
81ecdfbb RW |
7113 | done |
7114 | IFS=$as_save_IFS | |
b214d478 | 7115 | |
b214d478 SE |
7116 | fi |
7117 | fi | |
7118 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7119 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7121 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b214d478 | 7122 | else |
81ecdfbb RW |
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7124 | $as_echo "no" >&6; } | |
b214d478 SE |
7125 | fi |
7126 | ||
81ecdfbb RW |
7127 | if test "x$ac_ct_DSYMUTIL" = x; then |
7128 | DSYMUTIL=":" | |
7129 | else | |
7130 | case $cross_compiling:$ac_tool_warned in | |
7131 | yes:) | |
7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7133 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7134 | ac_tool_warned=yes ;; | |
7135 | esac | |
7136 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7137 | fi | |
b214d478 SE |
7138 | else |
7139 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7140 | fi | |
7141 | ||
7142 | if test -n "$ac_tool_prefix"; then | |
7143 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7144 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7146 | $as_echo_n "checking for $ac_word... " >&6; } | |
7147 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
7148 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7149 | else |
7150 | if test -n "$NMEDIT"; then | |
7151 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7152 | else | |
7153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7154 | for as_dir in $PATH | |
7155 | do | |
7156 | IFS=$as_save_IFS | |
7157 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7158 | for ac_exec_ext in '' $ac_executable_extensions; do |
7159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7160 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7162 | break 2 |
7163 | fi | |
7164 | done | |
81ecdfbb RW |
7165 | done |
7166 | IFS=$as_save_IFS | |
b214d478 SE |
7167 | |
7168 | fi | |
7169 | fi | |
7170 | NMEDIT=$ac_cv_prog_NMEDIT | |
7171 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7173 | $as_echo "$NMEDIT" >&6; } | |
b214d478 | 7174 | else |
81ecdfbb RW |
7175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7176 | $as_echo "no" >&6; } | |
b214d478 SE |
7177 | fi |
7178 | ||
81ecdfbb | 7179 | |
b214d478 SE |
7180 | fi |
7181 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7182 | ac_ct_NMEDIT=$NMEDIT | |
7183 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7184 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7186 | $as_echo_n "checking for $ac_word... " >&6; } | |
7187 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7188 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7189 | else |
7190 | if test -n "$ac_ct_NMEDIT"; then | |
7191 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7192 | else | |
7193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7194 | for as_dir in $PATH | |
7195 | do | |
7196 | IFS=$as_save_IFS | |
7197 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7198 | for ac_exec_ext in '' $ac_executable_extensions; do |
7199 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7200 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7202 | break 2 |
7203 | fi | |
7204 | done | |
81ecdfbb RW |
7205 | done |
7206 | IFS=$as_save_IFS | |
b214d478 | 7207 | |
b214d478 SE |
7208 | fi |
7209 | fi | |
7210 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7211 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7213 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b214d478 | 7214 | else |
81ecdfbb RW |
7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7216 | $as_echo "no" >&6; } | |
b214d478 SE |
7217 | fi |
7218 | ||
81ecdfbb RW |
7219 | if test "x$ac_ct_NMEDIT" = x; then |
7220 | NMEDIT=":" | |
7221 | else | |
7222 | case $cross_compiling:$ac_tool_warned in | |
7223 | yes:) | |
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7225 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7226 | ac_tool_warned=yes ;; | |
7227 | esac | |
7228 | NMEDIT=$ac_ct_NMEDIT | |
7229 | fi | |
b214d478 SE |
7230 | else |
7231 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7232 | fi | |
7233 | ||
7234 | if test -n "$ac_tool_prefix"; then | |
7235 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7236 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7238 | $as_echo_n "checking for $ac_word... " >&6; } | |
7239 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7240 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7241 | else |
7242 | if test -n "$LIPO"; then | |
7243 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7244 | else | |
7245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7246 | for as_dir in $PATH | |
7247 | do | |
7248 | IFS=$as_save_IFS | |
7249 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7250 | for ac_exec_ext in '' $ac_executable_extensions; do |
7251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7252 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7254 | break 2 |
7255 | fi | |
7256 | done | |
81ecdfbb RW |
7257 | done |
7258 | IFS=$as_save_IFS | |
b214d478 SE |
7259 | |
7260 | fi | |
7261 | fi | |
7262 | LIPO=$ac_cv_prog_LIPO | |
7263 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7265 | $as_echo "$LIPO" >&6; } | |
b214d478 | 7266 | else |
81ecdfbb RW |
7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7268 | $as_echo "no" >&6; } | |
b214d478 SE |
7269 | fi |
7270 | ||
81ecdfbb | 7271 | |
b214d478 SE |
7272 | fi |
7273 | if test -z "$ac_cv_prog_LIPO"; then | |
7274 | ac_ct_LIPO=$LIPO | |
7275 | # Extract the first word of "lipo", so it can be a program name with args. | |
7276 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7278 | $as_echo_n "checking for $ac_word... " >&6; } | |
7279 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7280 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7281 | else |
7282 | if test -n "$ac_ct_LIPO"; then | |
7283 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7284 | else | |
7285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7286 | for as_dir in $PATH | |
7287 | do | |
7288 | IFS=$as_save_IFS | |
7289 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7290 | for ac_exec_ext in '' $ac_executable_extensions; do |
7291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7292 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7294 | break 2 |
7295 | fi | |
7296 | done | |
81ecdfbb RW |
7297 | done |
7298 | IFS=$as_save_IFS | |
b214d478 | 7299 | |
b214d478 SE |
7300 | fi |
7301 | fi | |
7302 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7303 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7305 | $as_echo "$ac_ct_LIPO" >&6; } | |
b214d478 | 7306 | else |
81ecdfbb RW |
7307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7308 | $as_echo "no" >&6; } | |
b214d478 SE |
7309 | fi |
7310 | ||
81ecdfbb RW |
7311 | if test "x$ac_ct_LIPO" = x; then |
7312 | LIPO=":" | |
7313 | else | |
7314 | case $cross_compiling:$ac_tool_warned in | |
7315 | yes:) | |
7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7317 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7318 | ac_tool_warned=yes ;; | |
7319 | esac | |
7320 | LIPO=$ac_ct_LIPO | |
7321 | fi | |
b214d478 SE |
7322 | else |
7323 | LIPO="$ac_cv_prog_LIPO" | |
7324 | fi | |
7325 | ||
7326 | if test -n "$ac_tool_prefix"; then | |
7327 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7328 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7330 | $as_echo_n "checking for $ac_word... " >&6; } | |
7331 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7332 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7333 | else |
7334 | if test -n "$OTOOL"; then | |
7335 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7336 | else | |
7337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7338 | for as_dir in $PATH | |
7339 | do | |
7340 | IFS=$as_save_IFS | |
7341 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7342 | for ac_exec_ext in '' $ac_executable_extensions; do |
7343 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7344 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7346 | break 2 |
7347 | fi | |
7348 | done | |
81ecdfbb RW |
7349 | done |
7350 | IFS=$as_save_IFS | |
b214d478 SE |
7351 | |
7352 | fi | |
7353 | fi | |
7354 | OTOOL=$ac_cv_prog_OTOOL | |
7355 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7357 | $as_echo "$OTOOL" >&6; } | |
b214d478 | 7358 | else |
81ecdfbb RW |
7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7360 | $as_echo "no" >&6; } | |
b214d478 SE |
7361 | fi |
7362 | ||
81ecdfbb | 7363 | |
b214d478 SE |
7364 | fi |
7365 | if test -z "$ac_cv_prog_OTOOL"; then | |
7366 | ac_ct_OTOOL=$OTOOL | |
7367 | # Extract the first word of "otool", so it can be a program name with args. | |
7368 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7370 | $as_echo_n "checking for $ac_word... " >&6; } | |
7371 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7372 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7373 | else |
7374 | if test -n "$ac_ct_OTOOL"; then | |
7375 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7376 | else | |
7377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7378 | for as_dir in $PATH | |
7379 | do | |
7380 | IFS=$as_save_IFS | |
7381 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7382 | for ac_exec_ext in '' $ac_executable_extensions; do |
7383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7384 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7386 | break 2 |
7387 | fi | |
7388 | done | |
81ecdfbb RW |
7389 | done |
7390 | IFS=$as_save_IFS | |
b214d478 | 7391 | |
b214d478 SE |
7392 | fi |
7393 | fi | |
7394 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7395 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7397 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b214d478 | 7398 | else |
81ecdfbb RW |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7400 | $as_echo "no" >&6; } | |
b214d478 SE |
7401 | fi |
7402 | ||
81ecdfbb RW |
7403 | if test "x$ac_ct_OTOOL" = x; then |
7404 | OTOOL=":" | |
7405 | else | |
7406 | case $cross_compiling:$ac_tool_warned in | |
7407 | yes:) | |
7408 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7409 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7410 | ac_tool_warned=yes ;; | |
7411 | esac | |
7412 | OTOOL=$ac_ct_OTOOL | |
7413 | fi | |
b214d478 SE |
7414 | else |
7415 | OTOOL="$ac_cv_prog_OTOOL" | |
7416 | fi | |
7417 | ||
7418 | if test -n "$ac_tool_prefix"; then | |
7419 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7420 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7422 | $as_echo_n "checking for $ac_word... " >&6; } | |
7423 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7424 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7425 | else |
7426 | if test -n "$OTOOL64"; then | |
7427 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7428 | else | |
7429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7430 | for as_dir in $PATH | |
7431 | do | |
7432 | IFS=$as_save_IFS | |
7433 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7434 | for ac_exec_ext in '' $ac_executable_extensions; do |
7435 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7436 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7438 | break 2 |
7439 | fi | |
7440 | done | |
81ecdfbb RW |
7441 | done |
7442 | IFS=$as_save_IFS | |
b214d478 SE |
7443 | |
7444 | fi | |
7445 | fi | |
7446 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7447 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7449 | $as_echo "$OTOOL64" >&6; } | |
b214d478 | 7450 | else |
81ecdfbb RW |
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7452 | $as_echo "no" >&6; } | |
b214d478 SE |
7453 | fi |
7454 | ||
81ecdfbb | 7455 | |
b214d478 SE |
7456 | fi |
7457 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7458 | ac_ct_OTOOL64=$OTOOL64 | |
7459 | # Extract the first word of "otool64", so it can be a program name with args. | |
7460 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7462 | $as_echo_n "checking for $ac_word... " >&6; } | |
7463 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7464 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7465 | else |
7466 | if test -n "$ac_ct_OTOOL64"; then | |
7467 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7468 | else | |
7469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7470 | for as_dir in $PATH | |
7471 | do | |
7472 | IFS=$as_save_IFS | |
7473 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7474 | for ac_exec_ext in '' $ac_executable_extensions; do |
7475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7476 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7478 | break 2 |
7479 | fi | |
7480 | done | |
81ecdfbb RW |
7481 | done |
7482 | IFS=$as_save_IFS | |
b214d478 | 7483 | |
b214d478 SE |
7484 | fi |
7485 | fi | |
7486 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7487 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7489 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b214d478 | 7490 | else |
81ecdfbb RW |
7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7492 | $as_echo "no" >&6; } | |
b214d478 SE |
7493 | fi |
7494 | ||
81ecdfbb RW |
7495 | if test "x$ac_ct_OTOOL64" = x; then |
7496 | OTOOL64=":" | |
7497 | else | |
7498 | case $cross_compiling:$ac_tool_warned in | |
7499 | yes:) | |
7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7501 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7502 | ac_tool_warned=yes ;; | |
7503 | esac | |
7504 | OTOOL64=$ac_ct_OTOOL64 | |
7505 | fi | |
b214d478 SE |
7506 | else |
7507 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7508 | fi | |
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | ||
7517 | ||
7518 | ||
7519 | ||
7520 | ||
7521 | ||
7522 | ||
7523 | ||
7524 | ||
7525 | ||
7526 | ||
7527 | ||
7528 | ||
7529 | ||
7530 | ||
7531 | ||
7532 | ||
7533 | ||
7534 | ||
7535 | ||
81ecdfbb RW |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7537 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7538 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7539 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7540 | else |
7541 | lt_cv_apple_cc_single_mod=no | |
7542 | if test -z "${LT_MULTI_MODULE}"; then | |
7543 | # By default we will add the -single_module flag. You can override | |
7544 | # by either setting the environment variable LT_MULTI_MODULE | |
7545 | # non-empty at configure time, or by adding -multi_module to the | |
7546 | # link flags. | |
7547 | rm -rf libconftest.dylib* | |
7548 | echo "int foo(void){return 1;}" > conftest.c | |
7549 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7550 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7551 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7552 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7553 | _lt_result=$? | |
7554 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7555 | lt_cv_apple_cc_single_mod=yes | |
7556 | else | |
7557 | cat conftest.err >&5 | |
7558 | fi | |
7559 | rm -rf libconftest.dylib* | |
7560 | rm -f conftest.* | |
7561 | fi | |
7562 | fi | |
81ecdfbb RW |
7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7564 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7566 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7567 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7568 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7569 | else |
7570 | lt_cv_ld_exported_symbols_list=no | |
7571 | save_LDFLAGS=$LDFLAGS | |
7572 | echo "_main" > conftest.sym | |
7573 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b214d478 SE |
7575 | /* end confdefs.h. */ |
7576 | ||
7577 | int | |
7578 | main () | |
7579 | { | |
7580 | ||
7581 | ; | |
7582 | return 0; | |
7583 | } | |
7584 | _ACEOF | |
81ecdfbb | 7585 | if ac_fn_c_try_link "$LINENO"; then : |
b214d478 SE |
7586 | lt_cv_ld_exported_symbols_list=yes |
7587 | else | |
81ecdfbb | 7588 | lt_cv_ld_exported_symbols_list=no |
b214d478 | 7589 | fi |
81ecdfbb RW |
7590 | rm -f core conftest.err conftest.$ac_objext \ |
7591 | conftest$ac_exeext conftest.$ac_ext | |
b214d478 SE |
7592 | LDFLAGS="$save_LDFLAGS" |
7593 | ||
7594 | fi | |
81ecdfbb RW |
7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7596 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
b214d478 SE |
7597 | case $host_os in |
7598 | rhapsody* | darwin1.[012]) | |
7599 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7600 | darwin1.*) | |
7601 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7602 | darwin*) # darwin 5.x on | |
7603 | # if running on 10.5 or later, the deployment target defaults | |
7604 | # to the OS version, if on x86, and 10.4, the deployment | |
7605 | # target defaults to 10.4. Don't you love it? | |
7606 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7607 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7608 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7609 | 10.[012]*) | |
7610 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7611 | 10.*) | |
7612 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7613 | esac | |
7614 | ;; | |
7615 | esac | |
7616 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7617 | _lt_dar_single_mod='$single_module' | |
7618 | fi | |
7619 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7620 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7621 | else | |
7622 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7623 | fi | |
7624 | if test "$DSYMUTIL" != ":"; then | |
7625 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7626 | else | |
7627 | _lt_dsymutil= | |
7628 | fi | |
7629 | ;; | |
7630 | esac | |
7631 | ||
b214d478 | 7632 | for ac_header in dlfcn.h |
81ecdfbb RW |
7633 | do : |
7634 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7635 | " | |
7636 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
b214d478 | 7637 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7638 | #define HAVE_DLFCN_H 1 |
b214d478 SE |
7639 | _ACEOF |
7640 | ||
7641 | fi | |
7642 | ||
7643 | done | |
7644 | ||
7645 | ||
7646 | ||
7647 | # Set options | |
7648 | ||
7649 | ||
7650 | ||
7651 | enable_dlopen=no | |
7652 | ||
7653 | ||
7654 | enable_win32_dll=no | |
7655 | ||
7656 | ||
81ecdfbb RW |
7657 | # Check whether --enable-shared was given. |
7658 | if test "${enable_shared+set}" = set; then : | |
7659 | enableval=$enable_shared; p=${PACKAGE-default} | |
b214d478 SE |
7660 | case $enableval in |
7661 | yes) enable_shared=yes ;; | |
7662 | no) enable_shared=no ;; | |
7663 | *) | |
7664 | enable_shared=no | |
7665 | # Look at the argument we got. We use all the common list separators. | |
7666 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7667 | for pkg in $enableval; do | |
7668 | IFS="$lt_save_ifs" | |
7669 | if test "X$pkg" = "X$p"; then | |
7670 | enable_shared=yes | |
7671 | fi | |
7672 | done | |
7673 | IFS="$lt_save_ifs" | |
7674 | ;; | |
7675 | esac | |
7676 | else | |
7677 | enable_shared=yes | |
81ecdfbb RW |
7678 | fi |
7679 | ||
b214d478 SE |
7680 | |
7681 | ||
7682 | ||
7683 | ||
7684 | ||
7685 | ||
7686 | ||
7687 | ||
81ecdfbb RW |
7688 | # Check whether --enable-static was given. |
7689 | if test "${enable_static+set}" = set; then : | |
7690 | enableval=$enable_static; p=${PACKAGE-default} | |
b214d478 SE |
7691 | case $enableval in |
7692 | yes) enable_static=yes ;; | |
7693 | no) enable_static=no ;; | |
7694 | *) | |
7695 | enable_static=no | |
7696 | # Look at the argument we got. We use all the common list separators. | |
7697 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7698 | for pkg in $enableval; do | |
7699 | IFS="$lt_save_ifs" | |
7700 | if test "X$pkg" = "X$p"; then | |
7701 | enable_static=yes | |
7702 | fi | |
7703 | done | |
7704 | IFS="$lt_save_ifs" | |
7705 | ;; | |
7706 | esac | |
7707 | else | |
7708 | enable_static=yes | |
81ecdfbb RW |
7709 | fi |
7710 | ||
b214d478 SE |
7711 | |
7712 | ||
7713 | ||
7714 | ||
7715 | ||
7716 | ||
7717 | ||
7718 | ||
7719 | ||
81ecdfbb RW |
7720 | # Check whether --with-pic was given. |
7721 | if test "${with_pic+set}" = set; then : | |
7722 | withval=$with_pic; pic_mode="$withval" | |
b214d478 SE |
7723 | else |
7724 | pic_mode=default | |
81ecdfbb RW |
7725 | fi |
7726 | ||
b214d478 SE |
7727 | |
7728 | test -z "$pic_mode" && pic_mode=default | |
7729 | ||
7730 | ||
7731 | ||
7732 | ||
7733 | ||
7734 | ||
7735 | ||
81ecdfbb RW |
7736 | # Check whether --enable-fast-install was given. |
7737 | if test "${enable_fast_install+set}" = set; then : | |
7738 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
b214d478 SE |
7739 | case $enableval in |
7740 | yes) enable_fast_install=yes ;; | |
7741 | no) enable_fast_install=no ;; | |
7742 | *) | |
7743 | enable_fast_install=no | |
7744 | # Look at the argument we got. We use all the common list separators. | |
7745 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7746 | for pkg in $enableval; do | |
7747 | IFS="$lt_save_ifs" | |
7748 | if test "X$pkg" = "X$p"; then | |
7749 | enable_fast_install=yes | |
7750 | fi | |
7751 | done | |
7752 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
7753 | ;; |
7754 | esac | |
b214d478 SE |
7755 | else |
7756 | enable_fast_install=yes | |
81ecdfbb RW |
7757 | fi |
7758 | ||
d7040cdb | 7759 | |
ce2cded5 L |
7760 | |
7761 | ||
ce2cded5 | 7762 | |
252b5132 | 7763 | |
d7040cdb | 7764 | |
252b5132 | 7765 | |
6bf9431b | 7766 | |
252b5132 | 7767 | |
6bf9431b | 7768 | |
ce2cded5 L |
7769 | # This can be used to rebuild libtool when needed |
7770 | LIBTOOL_DEPS="$ltmain" | |
6bf9431b | 7771 | |
ce2cded5 L |
7772 | # Always use our own libtool. |
7773 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
252b5132 | 7774 | |
6bf9431b | 7775 | |
252b5132 | 7776 | |
6bf9431b | 7777 | |
252b5132 | 7778 | |
252b5132 | 7779 | |
d7040cdb | 7780 | |
6bf9431b | 7781 | |
252b5132 | 7782 | |
d7040cdb | 7783 | |
d7040cdb | 7784 | |
d7040cdb | 7785 | |
d7040cdb | 7786 | |
d7040cdb | 7787 | |
d7040cdb | 7788 | |
d7040cdb | 7789 | |
d7040cdb | 7790 | |
d7040cdb | 7791 | |
d7040cdb | 7792 | |
d7040cdb | 7793 | |
d7040cdb SE |
7794 | |
7795 | ||
7796 | ||
7797 | ||
7798 | ||
ce2cded5 | 7799 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7800 | |
7801 | ||
7802 | ||
7803 | ||
7804 | ||
7805 | ||
7806 | ||
7807 | ||
7808 | ||
7809 | ||
7810 | ||
7811 | ||
7812 | ||
7813 | ||
ce2cded5 L |
7814 | if test -n "${ZSH_VERSION+set}" ; then |
7815 | setopt NO_GLOB_SUBST | |
7816 | fi | |
d7040cdb | 7817 | |
81ecdfbb RW |
7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7819 | $as_echo_n "checking for objdir... " >&6; } | |
7820 | if test "${lt_cv_objdir+set}" = set; then : | |
7821 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
7822 | else |
7823 | rm -f .libs 2>/dev/null | |
7824 | mkdir .libs 2>/dev/null | |
7825 | if test -d .libs; then | |
7826 | lt_cv_objdir=.libs | |
7827 | else | |
7828 | # MS-DOS does not allow filenames that begin with a dot. | |
7829 | lt_cv_objdir=_libs | |
7830 | fi | |
7831 | rmdir .libs 2>/dev/null | |
7832 | fi | |
81ecdfbb RW |
7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7834 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 7835 | objdir=$lt_cv_objdir |
d7040cdb SE |
7836 | |
7837 | ||
7838 | ||
7839 | ||
7840 | ||
ce2cded5 L |
7841 | cat >>confdefs.h <<_ACEOF |
7842 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7843 | _ACEOF | |
d7040cdb SE |
7844 | |
7845 | ||
7846 | ||
7847 | ||
7848 | ||
7849 | ||
7850 | ||
7851 | ||
7852 | ||
7853 | ||
7854 | ||
7855 | ||
7856 | ||
7857 | ||
7858 | ||
7859 | ||
7860 | ||
ce2cded5 L |
7861 | case $host_os in |
7862 | aix3*) | |
7863 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7864 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7865 | # vanish in a puff of smoke. | |
7866 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7867 | COLLECT_NAMES= | |
7868 | export COLLECT_NAMES | |
7869 | fi | |
7870 | ;; | |
7871 | esac | |
d7040cdb | 7872 | |
ce2cded5 L |
7873 | # Sed substitution that helps us do robust quoting. It backslashifies |
7874 | # metacharacters that are still active within double-quoted strings. | |
7875 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 7876 | |
ce2cded5 L |
7877 | # Same as above, but do not quote variable references. |
7878 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 7879 | |
ce2cded5 L |
7880 | # Sed substitution to delay expansion of an escaped shell variable in a |
7881 | # double_quote_subst'ed string. | |
7882 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 7883 | |
ce2cded5 L |
7884 | # Sed substitution to delay expansion of an escaped single quote. |
7885 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 7886 | |
ce2cded5 L |
7887 | # Sed substitution to avoid accidental globbing in evaled expressions |
7888 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 7889 | |
ce2cded5 L |
7890 | # Global variables: |
7891 | ofile=libtool | |
7892 | can_build_shared=yes | |
d7040cdb | 7893 | |
ce2cded5 L |
7894 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7895 | # which needs '.lib'). | |
7896 | libext=a | |
d7040cdb | 7897 | |
ce2cded5 | 7898 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7899 | |
ce2cded5 L |
7900 | old_CC="$CC" |
7901 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7902 | |
ce2cded5 L |
7903 | # Set sane defaults for various variables |
7904 | test -z "$CC" && CC=cc | |
7905 | test -z "$LTCC" && LTCC=$CC | |
7906 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7907 | test -z "$LD" && LD=ld | |
7908 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 7909 | |
ce2cded5 L |
7910 | for cc_temp in $compiler""; do |
7911 | case $cc_temp in | |
7912 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7913 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7914 | \-*) ;; | |
7915 | *) break;; | |
7916 | esac | |
7917 | done | |
7918 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d7040cdb SE |
7919 | |
7920 | ||
ce2cded5 L |
7921 | # Only perform the check for file, if the check method requires it |
7922 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7923 | case $deplibs_check_method in | |
7924 | file_magic*) | |
7925 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7927 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7928 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7929 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
7930 | else |
7931 | case $MAGIC_CMD in | |
7932 | [\\/*] | ?:[\\/]*) | |
7933 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7934 | ;; | |
7935 | *) | |
7936 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7937 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7938 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7939 | for ac_dir in $ac_dummy; do | |
7940 | IFS="$lt_save_ifs" | |
7941 | test -z "$ac_dir" && ac_dir=. | |
7942 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7943 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7944 | if test -n "$file_magic_test_file"; then | |
7945 | case $deplibs_check_method in | |
7946 | "file_magic "*) | |
7947 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7948 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7949 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7950 | $EGREP "$file_magic_regex" > /dev/null; then | |
7951 | : | |
7952 | else | |
7953 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 7954 | |
ce2cded5 L |
7955 | *** Warning: the command libtool uses to detect shared libraries, |
7956 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7957 | *** The result is that libtool may fail to recognize shared libraries | |
7958 | *** as such. This will affect the creation of libtool libraries that | |
7959 | *** depend on shared libraries, but programs linked with such libtool | |
7960 | *** libraries will work regardless of this problem. Nevertheless, you | |
7961 | *** may want to report the problem to your system manager and/or to | |
7962 | *** bug-libtool@gnu.org | |
d7040cdb | 7963 | |
ce2cded5 L |
7964 | _LT_EOF |
7965 | fi ;; | |
7966 | esac | |
7967 | fi | |
7968 | break | |
7969 | fi | |
7970 | done | |
7971 | IFS="$lt_save_ifs" | |
7972 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7973 | ;; | |
7974 | esac | |
7975 | fi | |
d7040cdb | 7976 | |
ce2cded5 L |
7977 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7978 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7980 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 7981 | else |
81ecdfbb RW |
7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7983 | $as_echo "no" >&6; } | |
ce2cded5 | 7984 | fi |
d7040cdb SE |
7985 | |
7986 | ||
7987 | ||
7988 | ||
7989 | ||
ce2cded5 L |
7990 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7991 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7993 | $as_echo_n "checking for file... " >&6; } | |
7994 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7995 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
7996 | else |
7997 | case $MAGIC_CMD in | |
7998 | [\\/*] | ?:[\\/]*) | |
7999 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8000 | ;; | |
8001 | *) | |
8002 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8003 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8004 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8005 | for ac_dir in $ac_dummy; do | |
8006 | IFS="$lt_save_ifs" | |
8007 | test -z "$ac_dir" && ac_dir=. | |
8008 | if test -f $ac_dir/file; then | |
8009 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8010 | if test -n "$file_magic_test_file"; then | |
8011 | case $deplibs_check_method in | |
8012 | "file_magic "*) | |
8013 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8014 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8015 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8016 | $EGREP "$file_magic_regex" > /dev/null; then | |
8017 | : | |
8018 | else | |
8019 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8020 | |
ce2cded5 L |
8021 | *** Warning: the command libtool uses to detect shared libraries, |
8022 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8023 | *** The result is that libtool may fail to recognize shared libraries | |
8024 | *** as such. This will affect the creation of libtool libraries that | |
8025 | *** depend on shared libraries, but programs linked with such libtool | |
8026 | *** libraries will work regardless of this problem. Nevertheless, you | |
8027 | *** may want to report the problem to your system manager and/or to | |
8028 | *** bug-libtool@gnu.org | |
d7040cdb | 8029 | |
ce2cded5 L |
8030 | _LT_EOF |
8031 | fi ;; | |
8032 | esac | |
8033 | fi | |
8034 | break | |
8035 | fi | |
8036 | done | |
8037 | IFS="$lt_save_ifs" | |
8038 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8039 | ;; | |
8040 | esac | |
8041 | fi | |
d7040cdb | 8042 | |
ce2cded5 L |
8043 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8044 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8046 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8047 | else |
81ecdfbb RW |
8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8049 | $as_echo "no" >&6; } | |
ce2cded5 | 8050 | fi |
d7040cdb SE |
8051 | |
8052 | ||
ce2cded5 L |
8053 | else |
8054 | MAGIC_CMD=: | |
8055 | fi | |
8056 | fi | |
d7040cdb | 8057 | |
ce2cded5 L |
8058 | fi |
8059 | ;; | |
8060 | esac | |
d7040cdb | 8061 | |
ce2cded5 | 8062 | # Use C for the default configuration in the libtool script |
d7040cdb | 8063 | |
ce2cded5 L |
8064 | lt_save_CC="$CC" |
8065 | ac_ext=c | |
8066 | ac_cpp='$CPP $CPPFLAGS' | |
8067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
8070 | |
8071 | ||
ce2cded5 L |
8072 | # Source file extension for C test sources. |
8073 | ac_ext=c | |
d7040cdb | 8074 | |
ce2cded5 L |
8075 | # Object file extension for compiled C test sources. |
8076 | objext=o | |
8077 | objext=$objext | |
d7040cdb | 8078 | |
ce2cded5 L |
8079 | # Code to be used in simple compile tests |
8080 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 8081 | |
ce2cded5 L |
8082 | # Code to be used in simple link tests |
8083 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
8084 | |
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
ce2cded5 L |
8091 | # If no C compiler was specified, use CC. |
8092 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 8093 | |
ce2cded5 L |
8094 | # If no C compiler flags were specified, use CFLAGS. |
8095 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 8096 | |
ce2cded5 L |
8097 | # Allow CC to be a program name with arguments. |
8098 | compiler=$CC | |
d7040cdb | 8099 | |
ce2cded5 L |
8100 | # Save the default compiler, since it gets overwritten when the other |
8101 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8102 | compiler_DEFAULT=$CC | |
d7040cdb | 8103 | |
ce2cded5 L |
8104 | # save warnings/boilerplate of simple test code |
8105 | ac_outfile=conftest.$ac_objext | |
8106 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8107 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8108 | _lt_compiler_boilerplate=`cat conftest.err` | |
8109 | $RM conftest* | |
d7040cdb | 8110 | |
ce2cded5 L |
8111 | ac_outfile=conftest.$ac_objext |
8112 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8113 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8114 | _lt_linker_boilerplate=`cat conftest.err` | |
b214d478 | 8115 | $RM -r conftest* |
d7040cdb SE |
8116 | |
8117 | ||
ce2cded5 L |
8118 | ## CAVEAT EMPTOR: |
8119 | ## There is no encapsulation within the following macros, do not change | |
8120 | ## the running order or otherwise move them around unless you know exactly | |
8121 | ## what you are doing... | |
8122 | if test -n "$compiler"; then | |
d7040cdb | 8123 | |
ce2cded5 | 8124 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 8125 | |
ce2cded5 L |
8126 | if test "$GCC" = yes; then |
8127 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d7040cdb | 8128 | |
81ecdfbb RW |
8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8130 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8131 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8132 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8133 | else |
8134 | lt_cv_prog_compiler_rtti_exceptions=no | |
8135 | ac_outfile=conftest.$ac_objext | |
8136 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8137 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8138 | # Insert the option either (1) after the last *FLAGS variable, or | |
8139 | # (2) before a word containing "conftest.", or (3) at the end. | |
8140 | # Note that $ac_compile itself does not contain backslashes and begins | |
8141 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8142 | # The option is referenced via a variable to avoid confusing sed. | |
8143 | lt_compile=`echo "$ac_compile" | $SED \ | |
8144 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8145 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8146 | -e 's:$: $lt_compiler_flag:'` | |
da2f07f1 | 8147 | (eval echo "\"\$as_me:8147: $lt_compile\"" >&5) |
ce2cded5 L |
8148 | (eval "$lt_compile" 2>conftest.err) |
8149 | ac_status=$? | |
8150 | cat conftest.err >&5 | |
da2f07f1 | 8151 | echo "$as_me:8151: \$? = $ac_status" >&5 |
ce2cded5 L |
8152 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8153 | # The compiler can only warn and ignore the option if not recognized | |
8154 | # So say no if there are warnings other than the usual output. | |
8155 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8156 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8157 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8158 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8159 | fi | |
8160 | fi | |
8161 | $RM conftest* | |
d7040cdb | 8162 | |
ce2cded5 | 8163 | fi |
81ecdfbb RW |
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8165 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb | 8166 | |
ce2cded5 L |
8167 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8168 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8169 | else | |
8170 | : | |
8171 | fi | |
d7040cdb | 8172 | |
ce2cded5 | 8173 | fi |
d7040cdb SE |
8174 | |
8175 | ||
8176 | ||
8177 | ||
8178 | ||
8179 | ||
ce2cded5 L |
8180 | lt_prog_compiler_wl= |
8181 | lt_prog_compiler_pic= | |
8182 | lt_prog_compiler_static= | |
d7040cdb | 8183 | |
81ecdfbb RW |
8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8185 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb | 8186 | |
ce2cded5 L |
8187 | if test "$GCC" = yes; then |
8188 | lt_prog_compiler_wl='-Wl,' | |
8189 | lt_prog_compiler_static='-static' | |
d7040cdb | 8190 | |
ce2cded5 L |
8191 | case $host_os in |
8192 | aix*) | |
8193 | # All AIX code is PIC. | |
8194 | if test "$host_cpu" = ia64; then | |
8195 | # AIX 5 now supports IA64 processor | |
8196 | lt_prog_compiler_static='-Bstatic' | |
8197 | fi | |
8198 | ;; | |
d7040cdb | 8199 | |
ce2cded5 | 8200 | amigaos*) |
b214d478 SE |
8201 | case $host_cpu in |
8202 | powerpc) | |
8203 | # see comment about AmigaOS4 .so support | |
8204 | lt_prog_compiler_pic='-fPIC' | |
8205 | ;; | |
8206 | m68k) | |
8207 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8208 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8209 | # like `-m68040'. | |
8210 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8211 | ;; | |
8212 | esac | |
ce2cded5 | 8213 | ;; |
d7040cdb | 8214 | |
ce2cded5 L |
8215 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8216 | # PIC is the default for these OSes. | |
8217 | ;; | |
d7040cdb | 8218 | |
b214d478 | 8219 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8220 | # This hack is so that the source file can tell whether it is being |
8221 | # built for inclusion in a dll (and should export symbols for example). | |
8222 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8223 | # (--disable-auto-import) libraries | |
8224 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8225 | ;; | |
d7040cdb | 8226 | |
ce2cded5 L |
8227 | darwin* | rhapsody*) |
8228 | # PIC is the default on this platform | |
8229 | # Common symbols not allowed in MH_DYLIB files | |
8230 | lt_prog_compiler_pic='-fno-common' | |
8231 | ;; | |
d7040cdb | 8232 | |
ce2cded5 | 8233 | hpux*) |
b214d478 SE |
8234 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8235 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8236 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8237 | case $host_cpu in |
b214d478 | 8238 | hppa*64*) |
ce2cded5 L |
8239 | # +Z the default |
8240 | ;; | |
8241 | *) | |
8242 | lt_prog_compiler_pic='-fPIC' | |
8243 | ;; | |
8244 | esac | |
8245 | ;; | |
d7040cdb | 8246 | |
ce2cded5 L |
8247 | interix[3-9]*) |
8248 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8249 | # Instead, we relocate shared libraries at runtime. | |
8250 | ;; | |
d7040cdb | 8251 | |
ce2cded5 L |
8252 | msdosdjgpp*) |
8253 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8254 | # on systems that don't support them. | |
8255 | lt_prog_compiler_can_build_shared=no | |
8256 | enable_shared=no | |
8257 | ;; | |
d7040cdb | 8258 | |
ce2cded5 L |
8259 | *nto* | *qnx*) |
8260 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8261 | # it will coredump. | |
8262 | lt_prog_compiler_pic='-fPIC -shared' | |
8263 | ;; | |
d7040cdb | 8264 | |
ce2cded5 L |
8265 | sysv4*MP*) |
8266 | if test -d /usr/nec; then | |
8267 | lt_prog_compiler_pic=-Kconform_pic | |
8268 | fi | |
8269 | ;; | |
d7040cdb | 8270 | |
ce2cded5 L |
8271 | *) |
8272 | lt_prog_compiler_pic='-fPIC' | |
8273 | ;; | |
8274 | esac | |
8275 | else | |
8276 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8277 | case $host_os in | |
8278 | aix*) | |
8279 | lt_prog_compiler_wl='-Wl,' | |
8280 | if test "$host_cpu" = ia64; then | |
8281 | # AIX 5 now supports IA64 processor | |
8282 | lt_prog_compiler_static='-Bstatic' | |
8283 | else | |
8284 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8285 | fi | |
8286 | ;; | |
d7040cdb | 8287 | |
b214d478 | 8288 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8289 | # This hack is so that the source file can tell whether it is being |
8290 | # built for inclusion in a dll (and should export symbols for example). | |
8291 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8292 | ;; | |
d7040cdb | 8293 | |
ce2cded5 L |
8294 | hpux9* | hpux10* | hpux11*) |
8295 | lt_prog_compiler_wl='-Wl,' | |
8296 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8297 | # not for PA HP-UX. | |
8298 | case $host_cpu in | |
8299 | hppa*64*|ia64*) | |
8300 | # +Z the default | |
8301 | ;; | |
8302 | *) | |
8303 | lt_prog_compiler_pic='+Z' | |
8304 | ;; | |
8305 | esac | |
8306 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8307 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8308 | ;; | |
d7040cdb | 8309 | |
ce2cded5 L |
8310 | irix5* | irix6* | nonstopux*) |
8311 | lt_prog_compiler_wl='-Wl,' | |
8312 | # PIC (with -KPIC) is the default. | |
8313 | lt_prog_compiler_static='-non_shared' | |
8314 | ;; | |
d7040cdb | 8315 | |
58e24671 | 8316 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8317 | case $cc_basename in |
b214d478 SE |
8318 | # old Intel for x86_64 which still supported -KPIC. |
8319 | ecc*) | |
ce2cded5 L |
8320 | lt_prog_compiler_wl='-Wl,' |
8321 | lt_prog_compiler_pic='-KPIC' | |
8322 | lt_prog_compiler_static='-static' | |
8323 | ;; | |
b214d478 SE |
8324 | # icc used to be incompatible with GCC. |
8325 | # ICC 10 doesn't accept -KPIC any more. | |
8326 | icc* | ifort*) | |
8327 | lt_prog_compiler_wl='-Wl,' | |
8328 | lt_prog_compiler_pic='-fPIC' | |
8329 | lt_prog_compiler_static='-static' | |
8330 | ;; | |
8331 | # Lahey Fortran 8.1. | |
8332 | lf95*) | |
8333 | lt_prog_compiler_wl='-Wl,' | |
8334 | lt_prog_compiler_pic='--shared' | |
8335 | lt_prog_compiler_static='--static' | |
8336 | ;; | |
ce2cded5 L |
8337 | pgcc* | pgf77* | pgf90* | pgf95*) |
8338 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8339 | # which looks to be a dead project) | |
8340 | lt_prog_compiler_wl='-Wl,' | |
8341 | lt_prog_compiler_pic='-fpic' | |
8342 | lt_prog_compiler_static='-Bstatic' | |
8343 | ;; | |
8344 | ccc*) | |
8345 | lt_prog_compiler_wl='-Wl,' | |
8346 | # All Alpha code is PIC. | |
8347 | lt_prog_compiler_static='-non_shared' | |
8348 | ;; | |
b214d478 SE |
8349 | xl*) |
8350 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8351 | lt_prog_compiler_wl='-Wl,' | |
8352 | lt_prog_compiler_pic='-qpic' | |
8353 | lt_prog_compiler_static='-qstaticlink' | |
8354 | ;; | |
ce2cded5 L |
8355 | *) |
8356 | case `$CC -V 2>&1 | sed 5q` in | |
8357 | *Sun\ C*) | |
8358 | # Sun C 5.9 | |
8359 | lt_prog_compiler_pic='-KPIC' | |
8360 | lt_prog_compiler_static='-Bstatic' | |
8361 | lt_prog_compiler_wl='-Wl,' | |
8362 | ;; | |
8363 | *Sun\ F*) | |
8364 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8365 | lt_prog_compiler_pic='-KPIC' | |
8366 | lt_prog_compiler_static='-Bstatic' | |
8367 | lt_prog_compiler_wl='' | |
8368 | ;; | |
8369 | esac | |
8370 | ;; | |
8371 | esac | |
8372 | ;; | |
d7040cdb | 8373 | |
ce2cded5 L |
8374 | newsos6) |
8375 | lt_prog_compiler_pic='-KPIC' | |
8376 | lt_prog_compiler_static='-Bstatic' | |
8377 | ;; | |
d7040cdb | 8378 | |
ce2cded5 L |
8379 | *nto* | *qnx*) |
8380 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8381 | # it will coredump. | |
8382 | lt_prog_compiler_pic='-fPIC -shared' | |
8383 | ;; | |
d7040cdb | 8384 | |
ce2cded5 L |
8385 | osf3* | osf4* | osf5*) |
8386 | lt_prog_compiler_wl='-Wl,' | |
8387 | # All OSF/1 code is PIC. | |
8388 | lt_prog_compiler_static='-non_shared' | |
8389 | ;; | |
d7040cdb | 8390 | |
ce2cded5 L |
8391 | rdos*) |
8392 | lt_prog_compiler_static='-non_shared' | |
8393 | ;; | |
d7040cdb | 8394 | |
ce2cded5 L |
8395 | solaris*) |
8396 | lt_prog_compiler_pic='-KPIC' | |
8397 | lt_prog_compiler_static='-Bstatic' | |
8398 | case $cc_basename in | |
8399 | f77* | f90* | f95*) | |
8400 | lt_prog_compiler_wl='-Qoption ld ';; | |
8401 | *) | |
8402 | lt_prog_compiler_wl='-Wl,';; | |
8403 | esac | |
8404 | ;; | |
d7040cdb | 8405 | |
ce2cded5 L |
8406 | sunos4*) |
8407 | lt_prog_compiler_wl='-Qoption ld ' | |
8408 | lt_prog_compiler_pic='-PIC' | |
8409 | lt_prog_compiler_static='-Bstatic' | |
8410 | ;; | |
d7040cdb | 8411 | |
ce2cded5 L |
8412 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8413 | lt_prog_compiler_wl='-Wl,' | |
8414 | lt_prog_compiler_pic='-KPIC' | |
8415 | lt_prog_compiler_static='-Bstatic' | |
8416 | ;; | |
d7040cdb | 8417 | |
ce2cded5 L |
8418 | sysv4*MP*) |
8419 | if test -d /usr/nec ;then | |
8420 | lt_prog_compiler_pic='-Kconform_pic' | |
8421 | lt_prog_compiler_static='-Bstatic' | |
8422 | fi | |
8423 | ;; | |
d7040cdb | 8424 | |
ce2cded5 L |
8425 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8426 | lt_prog_compiler_wl='-Wl,' | |
8427 | lt_prog_compiler_pic='-KPIC' | |
8428 | lt_prog_compiler_static='-Bstatic' | |
8429 | ;; | |
d7040cdb | 8430 | |
ce2cded5 L |
8431 | unicos*) |
8432 | lt_prog_compiler_wl='-Wl,' | |
8433 | lt_prog_compiler_can_build_shared=no | |
8434 | ;; | |
d7040cdb | 8435 | |
ce2cded5 L |
8436 | uts4*) |
8437 | lt_prog_compiler_pic='-pic' | |
8438 | lt_prog_compiler_static='-Bstatic' | |
8439 | ;; | |
d7040cdb | 8440 | |
ce2cded5 L |
8441 | *) |
8442 | lt_prog_compiler_can_build_shared=no | |
8443 | ;; | |
8444 | esac | |
8445 | fi | |
d7040cdb | 8446 | |
ce2cded5 L |
8447 | case $host_os in |
8448 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8449 | *djgpp*) | |
8450 | lt_prog_compiler_pic= | |
8451 | ;; | |
8452 | *) | |
8453 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8454 | ;; | |
8455 | esac | |
81ecdfbb RW |
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8457 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8458 | |
8459 | ||
8460 | ||
8461 | ||
8462 | ||
8463 | ||
ce2cded5 L |
8464 | # |
8465 | # Check to make sure the PIC flag actually works. | |
8466 | # | |
8467 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8469 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8470 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8471 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8472 | else |
b214d478 | 8473 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8474 | ac_outfile=conftest.$ac_objext |
8475 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8476 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8477 | # Insert the option either (1) after the last *FLAGS variable, or | |
8478 | # (2) before a word containing "conftest.", or (3) at the end. | |
8479 | # Note that $ac_compile itself does not contain backslashes and begins | |
8480 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8481 | # The option is referenced via a variable to avoid confusing sed. | |
8482 | lt_compile=`echo "$ac_compile" | $SED \ | |
8483 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8484 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8485 | -e 's:$: $lt_compiler_flag:'` | |
da2f07f1 | 8486 | (eval echo "\"\$as_me:8486: $lt_compile\"" >&5) |
ce2cded5 L |
8487 | (eval "$lt_compile" 2>conftest.err) |
8488 | ac_status=$? | |
8489 | cat conftest.err >&5 | |
da2f07f1 | 8490 | echo "$as_me:8490: \$? = $ac_status" >&5 |
ce2cded5 L |
8491 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8492 | # The compiler can only warn and ignore the option if not recognized | |
8493 | # So say no if there are warnings other than the usual output. | |
8494 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8495 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8496 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 8497 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
8498 | fi |
8499 | fi | |
8500 | $RM conftest* | |
d7040cdb | 8501 | |
ce2cded5 | 8502 | fi |
81ecdfbb RW |
8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8504 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8505 | |
b214d478 | 8506 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
8507 | case $lt_prog_compiler_pic in |
8508 | "" | " "*) ;; | |
8509 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8510 | esac | |
8511 | else | |
8512 | lt_prog_compiler_pic= | |
8513 | lt_prog_compiler_can_build_shared=no | |
8514 | fi | |
d7040cdb | 8515 | |
ce2cded5 | 8516 | fi |
d7040cdb SE |
8517 | |
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
ce2cded5 L |
8523 | # |
8524 | # Check to make sure the static flag actually works. | |
8525 | # | |
8526 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8528 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8529 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8530 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8531 | else |
b214d478 | 8532 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
8533 | save_LDFLAGS="$LDFLAGS" |
8534 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8535 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8536 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8537 | # The linker can only warn and ignore the option if not recognized | |
8538 | # So say no if there are warnings | |
8539 | if test -s conftest.err; then | |
8540 | # Append any errors to the config.log. | |
8541 | cat conftest.err 1>&5 | |
8542 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8543 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8544 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 8545 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8546 | fi |
8547 | else | |
b214d478 | 8548 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8549 | fi |
8550 | fi | |
b214d478 | 8551 | $RM -r conftest* |
ce2cded5 | 8552 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8553 | |
ce2cded5 | 8554 | fi |
81ecdfbb RW |
8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8556 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8557 | |
b214d478 | 8558 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
8559 | : |
8560 | else | |
8561 | lt_prog_compiler_static= | |
8562 | fi | |
d7040cdb SE |
8563 | |
8564 | ||
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
81ecdfbb RW |
8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8571 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8572 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8573 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8574 | else |
8575 | lt_cv_prog_compiler_c_o=no | |
8576 | $RM -r conftest 2>/dev/null | |
8577 | mkdir conftest | |
8578 | cd conftest | |
8579 | mkdir out | |
8580 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8581 | |
ce2cded5 L |
8582 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8583 | # Insert the option either (1) after the last *FLAGS variable, or | |
8584 | # (2) before a word containing "conftest.", or (3) at the end. | |
8585 | # Note that $ac_compile itself does not contain backslashes and begins | |
8586 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8587 | lt_compile=`echo "$ac_compile" | $SED \ | |
8588 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8589 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8590 | -e 's:$: $lt_compiler_flag:'` | |
da2f07f1 | 8591 | (eval echo "\"\$as_me:8591: $lt_compile\"" >&5) |
ce2cded5 L |
8592 | (eval "$lt_compile" 2>out/conftest.err) |
8593 | ac_status=$? | |
8594 | cat out/conftest.err >&5 | |
da2f07f1 | 8595 | echo "$as_me:8595: \$? = $ac_status" >&5 |
ce2cded5 L |
8596 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8597 | then | |
8598 | # The compiler can only warn and ignore the option if not recognized | |
8599 | # So say no if there are warnings | |
8600 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8601 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8602 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8603 | lt_cv_prog_compiler_c_o=yes | |
8604 | fi | |
8605 | fi | |
8606 | chmod u+w . 2>&5 | |
8607 | $RM conftest* | |
8608 | # SGI C++ compiler will create directory out/ii_files/ for | |
8609 | # template instantiation | |
8610 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8611 | $RM out/* && rmdir out | |
8612 | cd .. | |
8613 | $RM -r conftest | |
8614 | $RM conftest* | |
8615 | ||
8616 | fi | |
81ecdfbb RW |
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8618 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ce2cded5 L |
8619 | |
8620 | ||
8621 | ||
8622 | ||
8623 | ||
8624 | ||
81ecdfbb RW |
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8626 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8627 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8628 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 8629 | else |
ce2cded5 L |
8630 | lt_cv_prog_compiler_c_o=no |
8631 | $RM -r conftest 2>/dev/null | |
8632 | mkdir conftest | |
8633 | cd conftest | |
8634 | mkdir out | |
8635 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8636 | ||
8637 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8638 | # Insert the option either (1) after the last *FLAGS variable, or | |
8639 | # (2) before a word containing "conftest.", or (3) at the end. | |
8640 | # Note that $ac_compile itself does not contain backslashes and begins | |
8641 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8642 | lt_compile=`echo "$ac_compile" | $SED \ | |
8643 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8644 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8645 | -e 's:$: $lt_compiler_flag:'` | |
da2f07f1 | 8646 | (eval echo "\"\$as_me:8646: $lt_compile\"" >&5) |
ce2cded5 L |
8647 | (eval "$lt_compile" 2>out/conftest.err) |
8648 | ac_status=$? | |
8649 | cat out/conftest.err >&5 | |
da2f07f1 | 8650 | echo "$as_me:8650: \$? = $ac_status" >&5 |
ce2cded5 L |
8651 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8652 | then | |
8653 | # The compiler can only warn and ignore the option if not recognized | |
8654 | # So say no if there are warnings | |
8655 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8656 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8657 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8658 | lt_cv_prog_compiler_c_o=yes | |
8659 | fi | |
8660 | fi | |
8661 | chmod u+w . 2>&5 | |
8662 | $RM conftest* | |
8663 | # SGI C++ compiler will create directory out/ii_files/ for | |
8664 | # template instantiation | |
8665 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8666 | $RM out/* && rmdir out | |
8667 | cd .. | |
8668 | $RM -r conftest | |
8669 | $RM conftest* | |
8670 | ||
d7040cdb | 8671 | fi |
81ecdfbb RW |
8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8673 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb | 8674 | |
d7040cdb | 8675 | |
d7040cdb | 8676 | |
d7040cdb | 8677 | |
ce2cded5 L |
8678 | hard_links="nottested" |
8679 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8680 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8682 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
8683 | hard_links=yes |
8684 | $RM conftest* | |
8685 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8686 | touch conftest.a | |
8687 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8688 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8690 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 8691 | if test "$hard_links" = no; then |
81ecdfbb RW |
8692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8693 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 | 8694 | need_locks=warn |
d7040cdb | 8695 | fi |
ce2cded5 L |
8696 | else |
8697 | need_locks=no | |
8698 | fi | |
d7040cdb | 8699 | |
d7040cdb | 8700 | |
d7040cdb | 8701 | |
d7040cdb | 8702 | |
d7040cdb | 8703 | |
d7040cdb | 8704 | |
81ecdfbb RW |
8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8706 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8707 | |
ce2cded5 L |
8708 | runpath_var= |
8709 | allow_undefined_flag= | |
8710 | always_export_symbols=no | |
8711 | archive_cmds= | |
8712 | archive_expsym_cmds= | |
8713 | compiler_needs_object=no | |
8714 | enable_shared_with_static_runtimes=no | |
8715 | export_dynamic_flag_spec= | |
8716 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8717 | hardcode_automatic=no | |
8718 | hardcode_direct=no | |
8719 | hardcode_direct_absolute=no | |
8720 | hardcode_libdir_flag_spec= | |
8721 | hardcode_libdir_flag_spec_ld= | |
8722 | hardcode_libdir_separator= | |
8723 | hardcode_minus_L=no | |
8724 | hardcode_shlibpath_var=unsupported | |
8725 | inherit_rpath=no | |
8726 | link_all_deplibs=unknown | |
8727 | module_cmds= | |
8728 | module_expsym_cmds= | |
8729 | old_archive_from_new_cmds= | |
8730 | old_archive_from_expsyms_cmds= | |
8731 | thread_safe_flag_spec= | |
8732 | whole_archive_flag_spec= | |
8733 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8734 | # included in the symbol list | |
8735 | include_expsyms= | |
8736 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8737 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8738 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8739 | # as well as any symbol that contains `d'. | |
b214d478 | 8740 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
8741 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8742 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8743 | # the symbol is explicitly referenced. Since portable code cannot | |
8744 | # rely on this symbol name, it's probably fine to never include it in | |
8745 | # preloaded symbol tables. | |
b214d478 | 8746 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 8747 | extract_expsyms_cmds= |
d7040cdb | 8748 | |
d7040cdb | 8749 | case $host_os in |
b214d478 | 8750 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8751 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8752 | # When not using gcc, we currently assume that we are using | |
8753 | # Microsoft Visual C++. | |
8754 | if test "$GCC" != yes; then | |
8755 | with_gnu_ld=no | |
8756 | fi | |
d7040cdb | 8757 | ;; |
ce2cded5 L |
8758 | interix*) |
8759 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8760 | with_gnu_ld=yes | |
d7040cdb | 8761 | ;; |
ce2cded5 L |
8762 | openbsd*) |
8763 | with_gnu_ld=no | |
d7040cdb SE |
8764 | ;; |
8765 | esac | |
d7040cdb | 8766 | |
ce2cded5 L |
8767 | ld_shlibs=yes |
8768 | if test "$with_gnu_ld" = yes; then | |
8769 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8770 | wlarc='${wl}' | |
d7040cdb | 8771 | |
ce2cded5 L |
8772 | # Set some defaults for GNU ld with shared library support. These |
8773 | # are reset later if shared libraries are not supported. Putting them | |
8774 | # here allows them to be overridden if necessary. | |
8775 | runpath_var=LD_RUN_PATH | |
8776 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8777 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8778 | # ancient GNU ld didn't support --whole-archive et. al. | |
8779 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8780 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
d7040cdb | 8781 | else |
ce2cded5 | 8782 | whole_archive_flag_spec= |
d7040cdb | 8783 | fi |
ce2cded5 L |
8784 | supports_anon_versioning=no |
8785 | case `$LD -v 2>&1` in | |
8786 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8787 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8788 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8789 | *\ 2.11.*) ;; # other 2.11 versions | |
8790 | *) supports_anon_versioning=yes ;; | |
8791 | esac | |
d7040cdb | 8792 | |
ce2cded5 L |
8793 | # See if GNU ld supports shared libraries. |
8794 | case $host_os in | |
50e7d84b | 8795 | aix[3-9]*) |
ce2cded5 L |
8796 | # On AIX/PPC, the GNU linker is very broken |
8797 | if test "$host_cpu" != ia64; then | |
8798 | ld_shlibs=no | |
8799 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8800 | |
ce2cded5 L |
8801 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8802 | *** to be unable to reliably create shared libraries on AIX. | |
8803 | *** Therefore, libtool is disabling shared libraries support. If you | |
8804 | *** really care for shared libraries, you may want to modify your PATH | |
8805 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 8806 | |
ce2cded5 L |
8807 | _LT_EOF |
8808 | fi | |
8809 | ;; | |
d7040cdb | 8810 | |
ce2cded5 | 8811 | amigaos*) |
b214d478 SE |
8812 | case $host_cpu in |
8813 | powerpc) | |
8814 | # see comment about AmigaOS4 .so support | |
8815 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8816 | archive_expsym_cmds='' | |
8817 | ;; | |
8818 | m68k) | |
8819 | 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)' | |
8820 | hardcode_libdir_flag_spec='-L$libdir' | |
8821 | hardcode_minus_L=yes | |
8822 | ;; | |
8823 | esac | |
ce2cded5 | 8824 | ;; |
d7040cdb | 8825 | |
ce2cded5 L |
8826 | beos*) |
8827 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8828 | allow_undefined_flag=unsupported | |
8829 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8830 | # support --undefined. This deserves some investigation. FIXME | |
8831 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8832 | else | |
8833 | ld_shlibs=no | |
8834 | fi | |
8835 | ;; | |
d7040cdb | 8836 | |
b214d478 | 8837 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8838 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8839 | # as there is no search path for DLLs. | |
8840 | hardcode_libdir_flag_spec='-L$libdir' | |
8841 | allow_undefined_flag=unsupported | |
8842 | always_export_symbols=no | |
8843 | enable_shared_with_static_runtimes=yes | |
8844 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 8845 | |
ce2cded5 L |
8846 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8847 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8848 | # If the export-symbols file already is a .def file (1st line | |
8849 | # is EXPORTS), use it as is; otherwise, prepend... | |
8850 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8851 | cp $export_symbols $output_objdir/$soname.def; | |
8852 | else | |
8853 | echo EXPORTS > $output_objdir/$soname.def; | |
8854 | cat $export_symbols >> $output_objdir/$soname.def; | |
8855 | fi~ | |
8856 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8857 | else | |
8858 | ld_shlibs=no | |
8859 | fi | |
8860 | ;; | |
d7040cdb | 8861 | |
ce2cded5 L |
8862 | interix[3-9]*) |
8863 | hardcode_direct=no | |
8864 | hardcode_shlibpath_var=no | |
8865 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8866 | export_dynamic_flag_spec='${wl}-E' | |
8867 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8868 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8869 | # default) and relocated if they conflict, which is a slow very memory | |
8870 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8871 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8872 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8873 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8874 | 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' | |
8875 | ;; | |
d7040cdb | 8876 | |
58e24671 | 8877 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
8878 | tmp_diet=no |
8879 | if test "$host_os" = linux-dietlibc; then | |
8880 | case $cc_basename in | |
8881 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8882 | esac | |
8883 | fi | |
8884 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8885 | && test "$tmp_diet" = no | |
8886 | then | |
8887 | tmp_addflag= | |
b214d478 | 8888 | tmp_sharedflag='-shared' |
ce2cded5 L |
8889 | case $cc_basename,$host_cpu in |
8890 | pgcc*) # Portland Group C compiler | |
8891 | 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' | |
8892 | tmp_addflag=' $pic_flag' | |
8893 | ;; | |
8894 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8895 | 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' | |
8896 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8897 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8898 | tmp_addflag=' -i_dynamic' ;; | |
8899 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8900 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8901 | ifc* | ifort*) # Intel Fortran compiler | |
8902 | tmp_addflag=' -nofor_main' ;; | |
b214d478 SE |
8903 | lf95*) # Lahey Fortran 8.1 |
8904 | whole_archive_flag_spec= | |
8905 | tmp_sharedflag='--shared' ;; | |
8906 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8907 | tmp_sharedflag='-qmkshrobj' | |
8908 | tmp_addflag= ;; | |
ce2cded5 L |
8909 | esac |
8910 | case `$CC -V 2>&1 | sed 5q` in | |
8911 | *Sun\ C*) # Sun C 5.9 | |
8912 | 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' | |
8913 | compiler_needs_object=yes | |
8914 | tmp_sharedflag='-G' ;; | |
8915 | *Sun\ F*) # Sun Fortran 8.3 | |
8916 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
8917 | esac |
8918 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8919 | |
ce2cded5 L |
8920 | if test "x$supports_anon_versioning" = xyes; then |
8921 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8922 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8923 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8924 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8925 | fi | |
b214d478 SE |
8926 | |
8927 | case $cc_basename in | |
8928 | xlf*) | |
8929 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8930 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8931 | hardcode_libdir_flag_spec= | |
8932 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8933 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8934 | if test "x$supports_anon_versioning" = xyes; then | |
8935 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8936 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8937 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8938 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8939 | fi | |
8940 | ;; | |
8941 | esac | |
ce2cded5 L |
8942 | else |
8943 | ld_shlibs=no | |
8944 | fi | |
8945 | ;; | |
d7040cdb | 8946 | |
ce2cded5 L |
8947 | netbsd*) |
8948 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8949 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8950 | wlarc= | |
8951 | else | |
8952 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8953 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8954 | fi | |
8955 | ;; | |
d7040cdb | 8956 | |
ce2cded5 L |
8957 | solaris*) |
8958 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8959 | ld_shlibs=no | |
8960 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8961 | |
ce2cded5 L |
8962 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8963 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8964 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8965 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8966 | *** your PATH or compiler configuration so that the native linker is | |
8967 | *** used, and then restart. | |
d7040cdb | 8968 | |
ce2cded5 L |
8969 | _LT_EOF |
8970 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8971 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8972 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8973 | else | |
8974 | ld_shlibs=no | |
8975 | fi | |
8976 | ;; | |
d7040cdb | 8977 | |
ce2cded5 L |
8978 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8979 | case `$LD -v 2>&1` in | |
8980 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8981 | ld_shlibs=no | |
8982 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8983 | |
ce2cded5 L |
8984 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8985 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8986 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8987 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8988 | *** your PATH or compiler configuration so that the native linker is | |
8989 | *** used, and then restart. | |
d7040cdb | 8990 | |
ce2cded5 L |
8991 | _LT_EOF |
8992 | ;; | |
8993 | *) | |
8994 | # For security reasons, it is highly recommended that you always | |
8995 | # use absolute paths for naming shared libraries, and exclude the | |
8996 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8997 | # requires that you compile everything twice, which is a pain. | |
8998 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8999 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9000 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9001 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9002 | else | |
9003 | ld_shlibs=no | |
9004 | fi | |
9005 | ;; | |
9006 | esac | |
d7040cdb | 9007 | ;; |
ce2cded5 L |
9008 | |
9009 | sunos4*) | |
9010 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9011 | wlarc= | |
9012 | hardcode_direct=yes | |
9013 | hardcode_shlibpath_var=no | |
d7040cdb | 9014 | ;; |
d7040cdb | 9015 | |
ce2cded5 L |
9016 | *) |
9017 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9018 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9019 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9020 | else | |
9021 | ld_shlibs=no | |
9022 | fi | |
9023 | ;; | |
9024 | esac | |
d7040cdb | 9025 | |
ce2cded5 L |
9026 | if test "$ld_shlibs" = no; then |
9027 | runpath_var= | |
9028 | hardcode_libdir_flag_spec= | |
9029 | export_dynamic_flag_spec= | |
9030 | whole_archive_flag_spec= | |
9031 | fi | |
d7040cdb | 9032 | else |
ce2cded5 | 9033 | # PORTME fill in a description of your system's linker (not GNU ld) |
d7040cdb | 9034 | case $host_os in |
ce2cded5 L |
9035 | aix3*) |
9036 | allow_undefined_flag=unsupported | |
9037 | always_export_symbols=yes | |
9038 | 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' | |
9039 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9040 | # are no directories specified by -L. | |
9041 | hardcode_minus_L=yes | |
9042 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9043 | # Neither direct hardcoding nor static linking is supported with a | |
9044 | # broken collect2. | |
9045 | hardcode_direct=unsupported | |
9046 | fi | |
9047 | ;; | |
d7040cdb | 9048 | |
50e7d84b | 9049 | aix[4-9]*) |
ce2cded5 L |
9050 | if test "$host_cpu" = ia64; then |
9051 | # On IA64, the linker does run time linking by default, so we don't | |
9052 | # have to do anything special. | |
9053 | aix_use_runtimelinking=no | |
9054 | exp_sym_flag='-Bexport' | |
9055 | no_entry_flag="" | |
9056 | else | |
9057 | # If we're using GNU nm, then we don't want the "-C" option. | |
9058 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9059 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9060 | 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' | |
9061 | else | |
9062 | 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' | |
9063 | fi | |
9064 | aix_use_runtimelinking=no | |
d7040cdb | 9065 | |
ce2cded5 L |
9066 | # Test if we are trying to use run time linking or normal |
9067 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9068 | # need to do runtime linking. | |
50e7d84b | 9069 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
9070 | for ld_flag in $LDFLAGS; do |
9071 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9072 | aix_use_runtimelinking=yes | |
9073 | break | |
9074 | fi | |
9075 | done | |
9076 | ;; | |
9077 | esac | |
d7040cdb | 9078 | |
ce2cded5 L |
9079 | exp_sym_flag='-bexport' |
9080 | no_entry_flag='-bnoentry' | |
9081 | fi | |
d7040cdb | 9082 | |
ce2cded5 L |
9083 | # When large executables or shared objects are built, AIX ld can |
9084 | # have problems creating the table of contents. If linking a library | |
9085 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9086 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9087 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 9088 | |
ce2cded5 L |
9089 | archive_cmds='' |
9090 | hardcode_direct=yes | |
9091 | hardcode_direct_absolute=yes | |
9092 | hardcode_libdir_separator=':' | |
9093 | link_all_deplibs=yes | |
9094 | file_list_spec='${wl}-f,' | |
d7040cdb | 9095 | |
ce2cded5 L |
9096 | if test "$GCC" = yes; then |
9097 | case $host_os in aix4.[012]|aix4.[012].*) | |
9098 | # We only want to do this on AIX 4.2 and lower, the check | |
9099 | # below for broken collect2 doesn't work under 4.3+ | |
9100 | collect2name=`${CC} -print-prog-name=collect2` | |
9101 | if test -f "$collect2name" && | |
9102 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9103 | then | |
9104 | # We have reworked collect2 | |
9105 | : | |
9106 | else | |
9107 | # We have old collect2 | |
9108 | hardcode_direct=unsupported | |
9109 | # It fails to find uninstalled libraries when the uninstalled | |
9110 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9111 | # to unsupported forces relinking | |
9112 | hardcode_minus_L=yes | |
9113 | hardcode_libdir_flag_spec='-L$libdir' | |
9114 | hardcode_libdir_separator= | |
9115 | fi | |
9116 | ;; | |
9117 | esac | |
9118 | shared_flag='-shared' | |
9119 | if test "$aix_use_runtimelinking" = yes; then | |
9120 | shared_flag="$shared_flag "'${wl}-G' | |
9121 | fi | |
9122 | else | |
9123 | # not using gcc | |
9124 | if test "$host_cpu" = ia64; then | |
9125 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9126 | # chokes on -Wl,-G. The following line is correct: | |
9127 | shared_flag='-G' | |
9128 | else | |
9129 | if test "$aix_use_runtimelinking" = yes; then | |
9130 | shared_flag='${wl}-G' | |
9131 | else | |
9132 | shared_flag='${wl}-bM:SRE' | |
9133 | fi | |
9134 | fi | |
9135 | fi | |
d7040cdb | 9136 | |
b214d478 | 9137 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
9138 | # It seems that -bexpall does not export symbols beginning with |
9139 | # underscore (_), so it is better to generate a list of symbols to export. | |
9140 | always_export_symbols=yes | |
9141 | if test "$aix_use_runtimelinking" = yes; then | |
9142 | # Warning - without using the other runtime loading flags (-brtl), | |
9143 | # -berok will link without error, but may produce a broken library. | |
9144 | allow_undefined_flag='-berok' | |
9145 | # Determine the default libpath from the value encoded in an | |
9146 | # empty executable. | |
81ecdfbb | 9147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
9148 | /* end confdefs.h. */ |
9149 | ||
d7040cdb SE |
9150 | int |
9151 | main () | |
9152 | { | |
ce2cded5 | 9153 | |
d7040cdb SE |
9154 | ; |
9155 | return 0; | |
9156 | } | |
9157 | _ACEOF | |
81ecdfbb | 9158 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9159 | |
ce2cded5 L |
9160 | lt_aix_libpath_sed=' |
9161 | /Import File Strings/,/^$/ { | |
9162 | /^0/ { | |
9163 | s/^0 *\(.*\)$/\1/ | |
9164 | p | |
9165 | } | |
9166 | }' | |
9167 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9168 | # Check for a 64-bit object if we didn't find anything. | |
9169 | if test -z "$aix_libpath"; then | |
9170 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
d7040cdb | 9171 | fi |
d7040cdb | 9172 | fi |
81ecdfbb RW |
9173 | rm -f core conftest.err conftest.$ac_objext \ |
9174 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
9175 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9176 | ||
9177 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9178 | 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" | |
9179 | else | |
9180 | if test "$host_cpu" = ia64; then | |
9181 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9182 | allow_undefined_flag="-z nodefs" | |
9183 | 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" | |
9184 | else | |
9185 | # Determine the default libpath from the value encoded in an | |
9186 | # empty executable. | |
81ecdfbb | 9187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
9188 | /* end confdefs.h. */ |
9189 | ||
d7040cdb SE |
9190 | int |
9191 | main () | |
9192 | { | |
ce2cded5 | 9193 | |
d7040cdb SE |
9194 | ; |
9195 | return 0; | |
9196 | } | |
9197 | _ACEOF | |
81ecdfbb | 9198 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
9199 | |
9200 | lt_aix_libpath_sed=' | |
9201 | /Import File Strings/,/^$/ { | |
9202 | /^0/ { | |
9203 | s/^0 *\(.*\)$/\1/ | |
9204 | p | |
9205 | } | |
9206 | }' | |
9207 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9208 | # Check for a 64-bit object if we didn't find anything. | |
9209 | if test -z "$aix_libpath"; then | |
9210 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9211 | fi | |
d7040cdb | 9212 | fi |
81ecdfbb RW |
9213 | rm -f core conftest.err conftest.$ac_objext \ |
9214 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9215 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9216 | |
ce2cded5 L |
9217 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9218 | # Warning - without using the other run time loading flags, | |
9219 | # -berok will link without error, but may produce a broken library. | |
9220 | no_undefined_flag=' ${wl}-bernotok' | |
9221 | allow_undefined_flag=' ${wl}-berok' | |
9222 | # Exported symbols can be pulled into shared objects from archives | |
9223 | whole_archive_flag_spec='$convenience' | |
9224 | archive_cmds_need_lc=yes | |
9225 | # This is similar to how AIX traditionally builds its shared libraries. | |
9226 | 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' | |
9227 | fi | |
9228 | fi | |
9229 | ;; | |
d7040cdb | 9230 | |
ce2cded5 | 9231 | amigaos*) |
b214d478 SE |
9232 | case $host_cpu in |
9233 | powerpc) | |
9234 | # see comment about AmigaOS4 .so support | |
9235 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9236 | archive_expsym_cmds='' | |
9237 | ;; | |
9238 | m68k) | |
9239 | 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)' | |
9240 | hardcode_libdir_flag_spec='-L$libdir' | |
9241 | hardcode_minus_L=yes | |
9242 | ;; | |
9243 | esac | |
ce2cded5 | 9244 | ;; |
d7040cdb | 9245 | |
ce2cded5 L |
9246 | bsdi[45]*) |
9247 | export_dynamic_flag_spec=-rdynamic | |
9248 | ;; | |
d7040cdb | 9249 | |
b214d478 | 9250 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9251 | # When not using gcc, we currently assume that we are using |
9252 | # Microsoft Visual C++. | |
9253 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9254 | # no search path for DLLs. | |
9255 | hardcode_libdir_flag_spec=' ' | |
9256 | allow_undefined_flag=unsupported | |
9257 | # Tell ltmain to make .lib files, not .a files. | |
9258 | libext=lib | |
9259 | # Tell ltmain to make .dll files, not .so files. | |
9260 | shrext_cmds=".dll" | |
9261 | # FIXME: Setting linknames here is a bad hack. | |
9262 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9263 | # The linker will automatically build a .lib file if we build a DLL. | |
9264 | old_archive_from_new_cmds='true' | |
9265 | # FIXME: Should let the user specify the lib program. | |
9266 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9267 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9268 | enable_shared_with_static_runtimes=yes | |
9269 | ;; | |
d7040cdb | 9270 | |
ce2cded5 | 9271 | darwin* | rhapsody*) |
ce2cded5 | 9272 | |
b214d478 SE |
9273 | |
9274 | archive_cmds_need_lc=no | |
9275 | hardcode_direct=no | |
9276 | hardcode_automatic=yes | |
9277 | hardcode_shlibpath_var=unsupported | |
9278 | whole_archive_flag_spec='' | |
9279 | link_all_deplibs=yes | |
9280 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9281 | case $cc_basename in | |
9282 | ifort*) _lt_dar_can_shared=yes ;; | |
9283 | *) _lt_dar_can_shared=$GCC ;; | |
9284 | esac | |
9285 | if test "$_lt_dar_can_shared" = "yes"; then | |
9286 | output_verbose_link_cmd=echo | |
9287 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9288 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9289 | 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}" | |
9290 | 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}" | |
9291 | ||
9292 | else | |
9293 | ld_shlibs=no | |
9294 | fi | |
9295 | ||
ce2cded5 L |
9296 | ;; |
9297 | ||
9298 | dgux*) | |
9299 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9300 | hardcode_libdir_flag_spec='-L$libdir' | |
9301 | hardcode_shlibpath_var=no | |
9302 | ;; | |
9303 | ||
9304 | freebsd1*) | |
9305 | ld_shlibs=no | |
9306 | ;; | |
9307 | ||
9308 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9309 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9310 | # does not break anything, and helps significantly (at the cost of a little | |
9311 | # extra space). | |
9312 | freebsd2.2*) | |
9313 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9314 | hardcode_libdir_flag_spec='-R$libdir' | |
9315 | hardcode_direct=yes | |
9316 | hardcode_shlibpath_var=no | |
9317 | ;; | |
9318 | ||
9319 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9320 | freebsd2*) | |
9321 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9322 | hardcode_direct=yes | |
9323 | hardcode_minus_L=yes | |
9324 | hardcode_shlibpath_var=no | |
9325 | ;; | |
9326 | ||
9327 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9328 | freebsd* | dragonfly*) | |
9329 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9330 | hardcode_libdir_flag_spec='-R$libdir' | |
9331 | hardcode_direct=yes | |
9332 | hardcode_shlibpath_var=no | |
9333 | ;; | |
9334 | ||
9335 | hpux9*) | |
9336 | if test "$GCC" = yes; then | |
9337 | 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' | |
9338 | else | |
9339 | 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' | |
9340 | fi | |
9341 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9342 | hardcode_libdir_separator=: | |
9343 | hardcode_direct=yes | |
9344 | ||
9345 | # hardcode_minus_L: Not really in the search PATH, | |
9346 | # but as the default location of the library. | |
9347 | hardcode_minus_L=yes | |
9348 | export_dynamic_flag_spec='${wl}-E' | |
9349 | ;; | |
9350 | ||
9351 | hpux10*) | |
9352 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9353 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9354 | else | |
9355 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9356 | fi | |
9357 | if test "$with_gnu_ld" = no; then | |
9358 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9359 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9360 | hardcode_libdir_separator=: | |
9361 | hardcode_direct=yes | |
9362 | hardcode_direct_absolute=yes | |
9363 | export_dynamic_flag_spec='${wl}-E' | |
9364 | # hardcode_minus_L: Not really in the search PATH, | |
9365 | # but as the default location of the library. | |
9366 | hardcode_minus_L=yes | |
9367 | fi | |
9368 | ;; | |
9369 | ||
9370 | hpux11*) | |
9371 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9372 | case $host_cpu in | |
9373 | hppa*64*) | |
9374 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9375 | ;; | |
9376 | ia64*) | |
b214d478 | 9377 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9378 | ;; |
9379 | *) | |
9380 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9381 | ;; | |
9382 | esac | |
9383 | else | |
9384 | case $host_cpu in | |
9385 | hppa*64*) | |
9386 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9387 | ;; | |
9388 | ia64*) | |
9389 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9390 | ;; | |
9391 | *) | |
9392 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9393 | ;; | |
9394 | esac | |
9395 | fi | |
9396 | if test "$with_gnu_ld" = no; then | |
9397 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9398 | hardcode_libdir_separator=: | |
9399 | ||
9400 | case $host_cpu in | |
9401 | hppa*64*|ia64*) | |
9402 | hardcode_direct=no | |
9403 | hardcode_shlibpath_var=no | |
9404 | ;; | |
9405 | *) | |
9406 | hardcode_direct=yes | |
9407 | hardcode_direct_absolute=yes | |
9408 | export_dynamic_flag_spec='${wl}-E' | |
9409 | ||
9410 | # hardcode_minus_L: Not really in the search PATH, | |
9411 | # but as the default location of the library. | |
9412 | hardcode_minus_L=yes | |
9413 | ;; | |
9414 | esac | |
9415 | fi | |
9416 | ;; | |
9417 | ||
9418 | irix5* | irix6* | nonstopux*) | |
9419 | if test "$GCC" = yes; then | |
9420 | 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' | |
9421 | # Try to use the -exported_symbol ld option, if it does not | |
9422 | # work, assume that -exports_file does not work either and | |
9423 | # implicitly export all symbols. | |
9424 | save_LDFLAGS="$LDFLAGS" | |
9425 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9427 | /* end confdefs.h. */ | |
ce2cded5 | 9428 | int foo(void) {} |
d7040cdb | 9429 | _ACEOF |
81ecdfbb | 9430 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
9431 | 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' |
9432 | ||
d7040cdb | 9433 | fi |
81ecdfbb RW |
9434 | rm -f core conftest.err conftest.$ac_objext \ |
9435 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
9436 | LDFLAGS="$save_LDFLAGS" |
9437 | else | |
9438 | 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' | |
9439 | 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' | |
9440 | fi | |
9441 | archive_cmds_need_lc='no' | |
9442 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9443 | hardcode_libdir_separator=: | |
9444 | inherit_rpath=yes | |
9445 | link_all_deplibs=yes | |
9446 | ;; | |
9447 | ||
9448 | netbsd*) | |
9449 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9450 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9451 | else | |
9452 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9453 | fi | |
9454 | hardcode_libdir_flag_spec='-R$libdir' | |
9455 | hardcode_direct=yes | |
9456 | hardcode_shlibpath_var=no | |
9457 | ;; | |
9458 | ||
9459 | newsos6) | |
9460 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9461 | hardcode_direct=yes | |
9462 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9463 | hardcode_libdir_separator=: | |
9464 | hardcode_shlibpath_var=no | |
9465 | ;; | |
9466 | ||
9467 | *nto* | *qnx*) | |
9468 | ;; | |
9469 | ||
9470 | openbsd*) | |
b214d478 SE |
9471 | if test -f /usr/libexec/ld.so; then |
9472 | hardcode_direct=yes | |
9473 | hardcode_shlibpath_var=no | |
9474 | hardcode_direct_absolute=yes | |
9475 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 9476 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
b214d478 | 9477 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 9478 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
b214d478 SE |
9479 | export_dynamic_flag_spec='${wl}-E' |
9480 | else | |
9481 | case $host_os in | |
9482 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9483 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9484 | hardcode_libdir_flag_spec='-R$libdir' | |
9485 | ;; | |
9486 | *) | |
9487 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9488 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9489 | ;; | |
9490 | esac | |
9491 | fi | |
9492 | else | |
9493 | ld_shlibs=no | |
ce2cded5 L |
9494 | fi |
9495 | ;; | |
9496 | ||
9497 | os2*) | |
9498 | hardcode_libdir_flag_spec='-L$libdir' | |
9499 | hardcode_minus_L=yes | |
9500 | allow_undefined_flag=unsupported | |
9501 | 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' | |
9502 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9503 | ;; | |
9504 | ||
9505 | osf3*) | |
9506 | if test "$GCC" = yes; then | |
9507 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9508 | 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' | |
9509 | else | |
9510 | allow_undefined_flag=' -expect_unresolved \*' | |
9511 | 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' | |
9512 | fi | |
9513 | archive_cmds_need_lc='no' | |
9514 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9515 | hardcode_libdir_separator=: | |
9516 | ;; | |
9517 | ||
9518 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9519 | if test "$GCC" = yes; then | |
9520 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9521 | 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' | |
9522 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9523 | else | |
9524 | allow_undefined_flag=' -expect_unresolved \*' | |
9525 | 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' | |
9526 | 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~ | |
9527 | $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' | |
9528 | ||
9529 | # Both c and cxx compiler support -rpath directly | |
9530 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9531 | fi | |
9532 | archive_cmds_need_lc='no' | |
9533 | hardcode_libdir_separator=: | |
9534 | ;; | |
9535 | ||
9536 | solaris*) | |
9537 | no_undefined_flag=' -z defs' | |
9538 | if test "$GCC" = yes; then | |
9539 | wlarc='${wl}' | |
9540 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9541 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9542 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9543 | else | |
9544 | case `$CC -V 2>&1` in | |
9545 | *"Compilers 5.0"*) | |
9546 | wlarc='' | |
9547 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9548 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9549 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9550 | ;; | |
9551 | *) | |
9552 | wlarc='${wl}' | |
9553 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9554 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9555 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9556 | ;; | |
9557 | esac | |
9558 | fi | |
9559 | hardcode_libdir_flag_spec='-R$libdir' | |
9560 | hardcode_shlibpath_var=no | |
9561 | case $host_os in | |
9562 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9563 | *) | |
9564 | # The compiler driver will combine and reorder linker options, | |
9565 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9566 | # but is careful enough not to reorder. | |
9567 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9568 | if test "$GCC" = yes; then | |
9569 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9570 | else | |
9571 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9572 | fi | |
9573 | ;; | |
9574 | esac | |
9575 | link_all_deplibs=yes | |
9576 | ;; | |
9577 | ||
9578 | sunos4*) | |
9579 | if test "x$host_vendor" = xsequent; then | |
9580 | # Use $CC to link under sequent, because it throws in some extra .o | |
9581 | # files that make .init and .fini sections work. | |
9582 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9583 | else | |
9584 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9585 | fi | |
9586 | hardcode_libdir_flag_spec='-L$libdir' | |
9587 | hardcode_direct=yes | |
9588 | hardcode_minus_L=yes | |
9589 | hardcode_shlibpath_var=no | |
9590 | ;; | |
9591 | ||
9592 | sysv4) | |
9593 | case $host_vendor in | |
9594 | sni) | |
9595 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9596 | hardcode_direct=yes # is this really true??? | |
9597 | ;; | |
9598 | siemens) | |
9599 | ## LD is ld it makes a PLAMLIB | |
9600 | ## CC just makes a GrossModule. | |
9601 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9602 | reload_cmds='$CC -r -o $output$reload_objs' | |
9603 | hardcode_direct=no | |
9604 | ;; | |
9605 | motorola) | |
9606 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9607 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9608 | ;; | |
9609 | esac | |
9610 | runpath_var='LD_RUN_PATH' | |
9611 | hardcode_shlibpath_var=no | |
9612 | ;; | |
9613 | ||
9614 | sysv4.3*) | |
9615 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9616 | hardcode_shlibpath_var=no | |
9617 | export_dynamic_flag_spec='-Bexport' | |
9618 | ;; | |
9619 | ||
9620 | sysv4*MP*) | |
9621 | if test -d /usr/nec; then | |
9622 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9623 | hardcode_shlibpath_var=no | |
9624 | runpath_var=LD_RUN_PATH | |
9625 | hardcode_runpath_var=yes | |
9626 | ld_shlibs=yes | |
9627 | fi | |
9628 | ;; | |
9629 | ||
9630 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9631 | no_undefined_flag='${wl}-z,text' | |
9632 | archive_cmds_need_lc=no | |
9633 | hardcode_shlibpath_var=no | |
9634 | runpath_var='LD_RUN_PATH' | |
9635 | ||
9636 | if test "$GCC" = yes; then | |
9637 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9638 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9639 | else | |
9640 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9641 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9642 | fi | |
9643 | ;; | |
9644 | ||
9645 | sysv5* | sco3.2v5* | sco5v6*) | |
9646 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9647 | # link with -lc, and that would cause any symbols used from libc to | |
9648 | # always be unresolved, which means just about no library would | |
9649 | # ever link correctly. If we're not using GNU ld we use -z text | |
9650 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9651 | # as -z defs. | |
9652 | no_undefined_flag='${wl}-z,text' | |
9653 | allow_undefined_flag='${wl}-z,nodefs' | |
9654 | archive_cmds_need_lc=no | |
9655 | hardcode_shlibpath_var=no | |
9656 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9657 | hardcode_libdir_separator=':' | |
9658 | link_all_deplibs=yes | |
9659 | export_dynamic_flag_spec='${wl}-Bexport' | |
9660 | runpath_var='LD_RUN_PATH' | |
9661 | ||
9662 | if test "$GCC" = yes; then | |
9663 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9664 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9665 | else | |
9666 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9667 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9668 | fi | |
9669 | ;; | |
9670 | ||
9671 | uts4*) | |
9672 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9673 | hardcode_libdir_flag_spec='-L$libdir' | |
9674 | hardcode_shlibpath_var=no | |
9675 | ;; | |
9676 | ||
9677 | *) | |
9678 | ld_shlibs=no | |
9679 | ;; | |
9680 | esac | |
9681 | ||
9682 | if test x$host_vendor = xsni; then | |
9683 | case $host in | |
9684 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9685 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9686 | ;; | |
9687 | esac | |
9688 | fi | |
9689 | fi | |
9690 | ||
81ecdfbb RW |
9691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9692 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 L |
9693 | test "$ld_shlibs" = no && can_build_shared=no |
9694 | ||
9695 | with_gnu_ld=$with_gnu_ld | |
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | # | |
9712 | # Do we need to explicitly link libc? | |
9713 | # | |
9714 | case "x$archive_cmds_need_lc" in | |
9715 | x|xyes) | |
9716 | # Assume -lc should be added | |
9717 | archive_cmds_need_lc=yes | |
9718 | ||
9719 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9720 | case $archive_cmds in | |
9721 | *'~'*) | |
9722 | # FIXME: we may have to deal with multi-command sequences. | |
9723 | ;; | |
9724 | '$CC '*) | |
9725 | # Test whether the compiler implicitly links with -lc since on some | |
9726 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9727 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9729 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9730 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9731 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
9732 | else |
9733 | $RM conftest* | |
9734 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
ce2cded5 | 9735 | |
81ecdfbb | 9736 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
9737 | (eval $ac_compile) 2>&5 |
9738 | ac_status=$? | |
81ecdfbb RW |
9739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9740 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9741 | soname=conftest |
9742 | lib=conftest | |
9743 | libobjs=conftest.$ac_objext | |
9744 | deplibs= | |
9745 | wl=$lt_prog_compiler_wl | |
9746 | pic_flag=$lt_prog_compiler_pic | |
9747 | compiler_flags=-v | |
9748 | linker_flags=-v | |
9749 | verstring= | |
9750 | output_objdir=. | |
9751 | libname=conftest | |
9752 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9753 | allow_undefined_flag= | |
81ecdfbb | 9754 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
9755 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9756 | ac_status=$? | |
81ecdfbb RW |
9757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9758 | test $ac_status = 0; } | |
39144654 RW |
9759 | then |
9760 | lt_cv_archive_cmds_need_lc=no | |
9761 | else | |
9762 | lt_cv_archive_cmds_need_lc=yes | |
9763 | fi | |
9764 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9765 | else | |
9766 | cat conftest.err 1>&5 | |
9767 | fi | |
9768 | $RM conftest* | |
9769 | ||
9770 | fi | |
81ecdfbb RW |
9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9772 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9773 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
9774 | ;; |
9775 | esac | |
9776 | fi | |
9777 | ;; | |
9778 | esac | |
9779 | ||
9780 | ||
9781 | ||
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | ||
9791 | ||
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | ||
9810 | ||
9811 | ||
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
81ecdfbb RW |
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9937 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
b214d478 SE |
9938 | |
9939 | if test "$GCC" = yes; then | |
ce2cded5 L |
9940 | case $host_os in |
9941 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9942 | *) lt_awk_arg="/^libraries:/" ;; | |
9943 | esac | |
9944 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9945 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9946 | # if the path contains ";" then we assume it to be the separator | |
9947 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9948 | # assumed that no part of a normal pathname contains ";" but that should | |
9949 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9950 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9951 | else | |
9952 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9953 | fi | |
9954 | # Ok, now we have the path, separated by spaces, we can step through it | |
9955 | # and add multilib dir if necessary. | |
9956 | lt_tmp_lt_search_path_spec= | |
9957 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9958 | for lt_sys_path in $lt_search_path_spec; do | |
9959 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9960 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9961 | else | |
9962 | test -d "$lt_sys_path" && \ | |
9963 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9964 | fi | |
9965 | done | |
9966 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9967 | BEGIN {RS=" "; FS="/|\n";} { | |
9968 | lt_foo=""; | |
9969 | lt_count=0; | |
9970 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9971 | if ($lt_i != "" && $lt_i != ".") { | |
9972 | if ($lt_i == "..") { | |
9973 | lt_count++; | |
9974 | } else { | |
9975 | if (lt_count == 0) { | |
9976 | lt_foo="/" $lt_i lt_foo; | |
9977 | } else { | |
9978 | lt_count--; | |
9979 | } | |
9980 | } | |
9981 | } | |
9982 | } | |
9983 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9984 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9985 | }'` | |
9986 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9987 | else | |
9988 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9989 | fi | |
9990 | library_names_spec= | |
9991 | libname_spec='lib$name' | |
9992 | soname_spec= | |
9993 | shrext_cmds=".so" | |
9994 | postinstall_cmds= | |
9995 | postuninstall_cmds= | |
9996 | finish_cmds= | |
9997 | finish_eval= | |
9998 | shlibpath_var= | |
9999 | shlibpath_overrides_runpath=unknown | |
10000 | version_type=none | |
10001 | dynamic_linker="$host_os ld.so" | |
10002 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10003 | need_lib_prefix=unknown | |
10004 | hardcode_into_libs=no | |
10005 | ||
10006 | # when you set need_version to no, make sure it does not cause -set_version | |
10007 | # flags to be left without arguments | |
10008 | need_version=unknown | |
10009 | ||
10010 | case $host_os in | |
10011 | aix3*) | |
10012 | version_type=linux | |
10013 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10014 | shlibpath_var=LIBPATH | |
10015 | ||
10016 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10017 | soname_spec='${libname}${release}${shared_ext}$major' | |
10018 | ;; | |
10019 | ||
50e7d84b | 10020 | aix[4-9]*) |
ce2cded5 L |
10021 | version_type=linux |
10022 | need_lib_prefix=no | |
10023 | need_version=no | |
10024 | hardcode_into_libs=yes | |
10025 | if test "$host_cpu" = ia64; then | |
10026 | # AIX 5 supports IA64 | |
10027 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10028 | shlibpath_var=LD_LIBRARY_PATH | |
10029 | else | |
10030 | # With GCC up to 2.95.x, collect2 would create an import file | |
10031 | # for dependence libraries. The import file would start with | |
10032 | # the line `#! .'. This would cause the generated library to | |
10033 | # depend on `.', always an invalid library. This was fixed in | |
10034 | # development snapshots of GCC prior to 3.0. | |
10035 | case $host_os in | |
10036 | aix4 | aix4.[01] | aix4.[01].*) | |
10037 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10038 | echo ' yes ' | |
10039 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10040 | : | |
10041 | else | |
10042 | can_build_shared=no | |
10043 | fi | |
10044 | ;; | |
10045 | esac | |
10046 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10047 | # soname into executable. Probably we can add versioning support to | |
10048 | # collect2, so additional links can be useful in future. | |
10049 | if test "$aix_use_runtimelinking" = yes; then | |
10050 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10051 | # instead of lib<name>.a to let people know that these are not | |
10052 | # typical AIX shared libraries. | |
10053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10054 | else | |
10055 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10056 | # and later when we are not doing run time linking. | |
10057 | library_names_spec='${libname}${release}.a $libname.a' | |
10058 | soname_spec='${libname}${release}${shared_ext}$major' | |
10059 | fi | |
10060 | shlibpath_var=LIBPATH | |
10061 | fi | |
10062 | ;; | |
10063 | ||
10064 | amigaos*) | |
b214d478 SE |
10065 | case $host_cpu in |
10066 | powerpc) | |
10067 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10068 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10070 | ;; | |
10071 | m68k) | |
ce2cded5 L |
10072 | library_names_spec='$libname.ixlibrary $libname.a' |
10073 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10074 | 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' | |
b214d478 SE |
10075 | ;; |
10076 | esac | |
ce2cded5 L |
10077 | ;; |
10078 | ||
10079 | beos*) | |
10080 | library_names_spec='${libname}${shared_ext}' | |
10081 | dynamic_linker="$host_os ld.so" | |
10082 | shlibpath_var=LIBRARY_PATH | |
10083 | ;; | |
10084 | ||
10085 | bsdi[45]*) | |
10086 | version_type=linux | |
10087 | need_version=no | |
10088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10089 | soname_spec='${libname}${release}${shared_ext}$major' | |
10090 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10091 | shlibpath_var=LD_LIBRARY_PATH | |
10092 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10093 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10094 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10095 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10096 | # libtool to hard-code these into programs | |
10097 | ;; | |
10098 | ||
b214d478 | 10099 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10100 | version_type=windows |
10101 | shrext_cmds=".dll" | |
10102 | need_version=no | |
10103 | need_lib_prefix=no | |
10104 | ||
b214d478 SE |
10105 | case $GCC,$host_os in |
10106 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10107 | library_names_spec='$libname.dll.a' |
10108 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10109 | postinstall_cmds='base_file=`basename \${file}`~ | |
10110 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10111 | dldir=$destdir/`dirname \$dlpath`~ | |
10112 | test -d \$dldir || mkdir -p \$dldir~ | |
10113 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10114 | chmod a+x \$dldir/$dlname~ | |
10115 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10116 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10117 | fi' | |
10118 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10119 | dlpath=$dir/\$dldll~ | |
10120 | $RM \$dlpath' | |
10121 | shlibpath_overrides_runpath=yes | |
10122 | ||
10123 | case $host_os in | |
10124 | cygwin*) | |
10125 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10126 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10127 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10128 | ;; | |
b214d478 | 10129 | mingw* | cegcc*) |
ce2cded5 L |
10130 | # MinGW DLLs use traditional 'lib' prefix |
10131 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10132 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10133 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10134 | # It is most probably a Windows format PATH printed by | |
10135 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10136 | # path with ; separators, and with drive letters. We can handle the | |
10137 | # drive letters (cygwin fileutils understands them), so leave them, | |
10138 | # especially as we might pass files found there to a mingw objdump, | |
10139 | # which wouldn't understand a cygwinified path. Ahh. | |
10140 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10141 | else | |
10142 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10143 | fi | |
10144 | ;; | |
10145 | pw32*) | |
10146 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10147 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10148 | ;; | |
10149 | esac | |
10150 | ;; | |
10151 | ||
10152 | *) | |
10153 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10154 | ;; | |
10155 | esac | |
10156 | dynamic_linker='Win32 ld.exe' | |
10157 | # FIXME: first we should search . and the directory the executable is in | |
10158 | shlibpath_var=PATH | |
10159 | ;; | |
10160 | ||
10161 | darwin* | rhapsody*) | |
10162 | dynamic_linker="$host_os dyld" | |
10163 | version_type=darwin | |
10164 | need_lib_prefix=no | |
10165 | need_version=no | |
10166 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10167 | soname_spec='${libname}${release}${major}$shared_ext' | |
10168 | shlibpath_overrides_runpath=yes | |
10169 | shlibpath_var=DYLD_LIBRARY_PATH | |
10170 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10171 | ||
10172 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10173 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10174 | ;; | |
10175 | ||
10176 | dgux*) | |
10177 | version_type=linux | |
10178 | need_lib_prefix=no | |
10179 | need_version=no | |
10180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10181 | soname_spec='${libname}${release}${shared_ext}$major' | |
10182 | shlibpath_var=LD_LIBRARY_PATH | |
10183 | ;; | |
10184 | ||
10185 | freebsd1*) | |
10186 | dynamic_linker=no | |
10187 | ;; | |
10188 | ||
10189 | freebsd* | dragonfly*) | |
10190 | # DragonFly does not have aout. When/if they implement a new | |
10191 | # versioning mechanism, adjust this. | |
10192 | if test -x /usr/bin/objformat; then | |
10193 | objformat=`/usr/bin/objformat` | |
10194 | else | |
10195 | case $host_os in | |
10196 | freebsd[123]*) objformat=aout ;; | |
10197 | *) objformat=elf ;; | |
10198 | esac | |
10199 | fi | |
10200 | version_type=freebsd-$objformat | |
10201 | case $version_type in | |
10202 | freebsd-elf*) | |
10203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10204 | need_version=no | |
10205 | need_lib_prefix=no | |
10206 | ;; | |
10207 | freebsd-*) | |
10208 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10209 | need_version=yes | |
10210 | ;; | |
10211 | esac | |
10212 | shlibpath_var=LD_LIBRARY_PATH | |
10213 | case $host_os in | |
10214 | freebsd2*) | |
10215 | shlibpath_overrides_runpath=yes | |
10216 | ;; | |
10217 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10218 | shlibpath_overrides_runpath=yes | |
10219 | hardcode_into_libs=yes | |
10220 | ;; | |
10221 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10222 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10223 | shlibpath_overrides_runpath=no | |
10224 | hardcode_into_libs=yes | |
10225 | ;; | |
10226 | *) # from 4.6 on, and DragonFly | |
10227 | shlibpath_overrides_runpath=yes | |
10228 | hardcode_into_libs=yes | |
10229 | ;; | |
10230 | esac | |
10231 | ;; | |
10232 | ||
10233 | gnu*) | |
10234 | version_type=linux | |
10235 | need_lib_prefix=no | |
10236 | need_version=no | |
10237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10238 | soname_spec='${libname}${release}${shared_ext}$major' | |
10239 | shlibpath_var=LD_LIBRARY_PATH | |
10240 | hardcode_into_libs=yes | |
10241 | ;; | |
10242 | ||
10243 | hpux9* | hpux10* | hpux11*) | |
10244 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10245 | # link against other versions. | |
10246 | version_type=sunos | |
10247 | need_lib_prefix=no | |
10248 | need_version=no | |
10249 | case $host_cpu in | |
10250 | ia64*) | |
10251 | shrext_cmds='.so' | |
10252 | hardcode_into_libs=yes | |
10253 | dynamic_linker="$host_os dld.so" | |
10254 | shlibpath_var=LD_LIBRARY_PATH | |
10255 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10257 | soname_spec='${libname}${release}${shared_ext}$major' | |
10258 | if test "X$HPUX_IA64_MODE" = X32; then | |
10259 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10260 | else | |
10261 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10262 | fi | |
10263 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10264 | ;; | |
10265 | hppa*64*) | |
10266 | shrext_cmds='.sl' | |
10267 | hardcode_into_libs=yes | |
10268 | dynamic_linker="$host_os dld.sl" | |
10269 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10270 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10272 | soname_spec='${libname}${release}${shared_ext}$major' | |
10273 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10274 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10275 | ;; | |
10276 | *) | |
10277 | shrext_cmds='.sl' | |
10278 | dynamic_linker="$host_os dld.sl" | |
10279 | shlibpath_var=SHLIB_PATH | |
10280 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10282 | soname_spec='${libname}${release}${shared_ext}$major' | |
10283 | ;; | |
10284 | esac | |
10285 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10286 | postinstall_cmds='chmod 555 $lib' | |
10287 | ;; | |
10288 | ||
10289 | interix[3-9]*) | |
10290 | version_type=linux | |
10291 | need_lib_prefix=no | |
10292 | need_version=no | |
10293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10294 | soname_spec='${libname}${release}${shared_ext}$major' | |
10295 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10296 | shlibpath_var=LD_LIBRARY_PATH | |
10297 | shlibpath_overrides_runpath=no | |
10298 | hardcode_into_libs=yes | |
10299 | ;; | |
d7040cdb | 10300 | |
ce2cded5 L |
10301 | irix5* | irix6* | nonstopux*) |
10302 | case $host_os in | |
10303 | nonstopux*) version_type=nonstopux ;; | |
10304 | *) | |
10305 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10306 | version_type=linux | |
10307 | else | |
10308 | version_type=irix | |
10309 | fi ;; | |
10310 | esac | |
10311 | need_lib_prefix=no | |
10312 | need_version=no | |
10313 | soname_spec='${libname}${release}${shared_ext}$major' | |
10314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10315 | case $host_os in | |
10316 | irix5* | nonstopux*) | |
10317 | libsuff= shlibsuff= | |
10318 | ;; | |
10319 | *) | |
10320 | case $LD in # libtool.m4 will add one of these switches to LD | |
10321 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10322 | libsuff= shlibsuff= libmagic=32-bit;; | |
10323 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10324 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10325 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10326 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10327 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10328 | esac | |
10329 | ;; | |
10330 | esac | |
10331 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10332 | shlibpath_overrides_runpath=no | |
10333 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10334 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10335 | hardcode_into_libs=yes | |
10336 | ;; | |
d7040cdb | 10337 | |
ce2cded5 L |
10338 | # No shared lib support for Linux oldld, aout, or coff. |
10339 | linux*oldld* | linux*aout* | linux*coff*) | |
10340 | dynamic_linker=no | |
10341 | ;; | |
10342 | ||
10343 | # This must be Linux ELF. | |
58e24671 | 10344 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
10345 | version_type=linux |
10346 | need_lib_prefix=no | |
10347 | need_version=no | |
10348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10349 | soname_spec='${libname}${release}${shared_ext}$major' | |
10350 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10351 | shlibpath_var=LD_LIBRARY_PATH | |
10352 | shlibpath_overrides_runpath=no | |
39144654 | 10353 | |
ce2cded5 | 10354 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
10355 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
10356 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10357 | else |
10358 | lt_cv_shlibpath_overrides_runpath=no | |
10359 | save_LDFLAGS=$LDFLAGS | |
10360 | save_libdir=$libdir | |
10361 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10362 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10364 | /* end confdefs.h. */ |
10365 | ||
d7040cdb SE |
10366 | int |
10367 | main () | |
10368 | { | |
ce2cded5 | 10369 | |
d7040cdb SE |
10370 | ; |
10371 | return 0; | |
10372 | } | |
10373 | _ACEOF | |
81ecdfbb RW |
10374 | if ac_fn_c_try_link "$LINENO"; then : |
10375 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10376 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 10377 | fi |
d7040cdb | 10378 | fi |
81ecdfbb RW |
10379 | rm -f core conftest.err conftest.$ac_objext \ |
10380 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10381 | LDFLAGS=$save_LDFLAGS |
10382 | libdir=$save_libdir | |
10383 | ||
10384 | fi | |
10385 | ||
10386 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb | 10387 | |
ce2cded5 L |
10388 | # This implies no fast_install, which is unacceptable. |
10389 | # Some rework will be needed to allow for fast_install | |
10390 | # before this can be enabled. | |
10391 | hardcode_into_libs=yes | |
d7040cdb | 10392 | |
ce2cded5 L |
10393 | # Append ld.so.conf contents to the search path |
10394 | if test -f /etc/ld.so.conf; then | |
b214d478 | 10395 | 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' ' '` |
ce2cded5 L |
10396 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10397 | fi | |
d7040cdb | 10398 | |
ce2cded5 L |
10399 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
10400 | # powerpc, because MkLinux only supported shared libraries with the | |
10401 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10402 | # most powerpc-linux boxes support dynamic linking these days and | |
10403 | # people can always --disable-shared, the test was removed, and we | |
10404 | # assume the GNU/Linux dynamic linker is in use. | |
10405 | dynamic_linker='GNU/Linux ld.so' | |
10406 | ;; | |
d7040cdb | 10407 | |
ce2cded5 L |
10408 | netbsd*) |
10409 | version_type=sunos | |
10410 | need_lib_prefix=no | |
10411 | need_version=no | |
10412 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10414 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10415 | dynamic_linker='NetBSD (a.out) ld.so' | |
10416 | else | |
10417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10418 | soname_spec='${libname}${release}${shared_ext}$major' | |
10419 | dynamic_linker='NetBSD ld.elf_so' | |
10420 | fi | |
10421 | shlibpath_var=LD_LIBRARY_PATH | |
10422 | shlibpath_overrides_runpath=yes | |
10423 | hardcode_into_libs=yes | |
10424 | ;; | |
d7040cdb | 10425 | |
ce2cded5 L |
10426 | newsos6) |
10427 | version_type=linux | |
10428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10429 | shlibpath_var=LD_LIBRARY_PATH | |
10430 | shlibpath_overrides_runpath=yes | |
10431 | ;; | |
d7040cdb | 10432 | |
ce2cded5 L |
10433 | *nto* | *qnx*) |
10434 | version_type=qnx | |
10435 | need_lib_prefix=no | |
10436 | need_version=no | |
10437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10438 | soname_spec='${libname}${release}${shared_ext}$major' | |
10439 | shlibpath_var=LD_LIBRARY_PATH | |
10440 | shlibpath_overrides_runpath=no | |
10441 | hardcode_into_libs=yes | |
10442 | dynamic_linker='ldqnx.so' | |
10443 | ;; | |
d7040cdb | 10444 | |
ce2cded5 L |
10445 | openbsd*) |
10446 | version_type=sunos | |
10447 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10448 | need_lib_prefix=no | |
10449 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10450 | case $host_os in | |
10451 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10452 | *) need_version=no ;; | |
d7040cdb | 10453 | esac |
ce2cded5 L |
10454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10455 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10456 | shlibpath_var=LD_LIBRARY_PATH | |
10457 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10458 | case $host_os in | |
10459 | openbsd2.[89] | openbsd2.[89].*) | |
10460 | shlibpath_overrides_runpath=no | |
10461 | ;; | |
10462 | *) | |
10463 | shlibpath_overrides_runpath=yes | |
10464 | ;; | |
10465 | esac | |
d7040cdb | 10466 | else |
ce2cded5 | 10467 | shlibpath_overrides_runpath=yes |
d7040cdb | 10468 | fi |
ce2cded5 | 10469 | ;; |
d7040cdb | 10470 | |
ce2cded5 L |
10471 | os2*) |
10472 | libname_spec='$name' | |
10473 | shrext_cmds=".dll" | |
10474 | need_lib_prefix=no | |
10475 | library_names_spec='$libname${shared_ext} $libname.a' | |
10476 | dynamic_linker='OS/2 ld.exe' | |
10477 | shlibpath_var=LIBPATH | |
10478 | ;; | |
d7040cdb | 10479 | |
ce2cded5 L |
10480 | osf3* | osf4* | osf5*) |
10481 | version_type=osf | |
10482 | need_lib_prefix=no | |
10483 | need_version=no | |
10484 | soname_spec='${libname}${release}${shared_ext}$major' | |
10485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10486 | shlibpath_var=LD_LIBRARY_PATH | |
10487 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10488 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10489 | ;; | |
d7040cdb | 10490 | |
ce2cded5 L |
10491 | rdos*) |
10492 | dynamic_linker=no | |
10493 | ;; | |
d7040cdb | 10494 | |
ce2cded5 L |
10495 | solaris*) |
10496 | version_type=linux | |
10497 | need_lib_prefix=no | |
10498 | need_version=no | |
10499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10500 | soname_spec='${libname}${release}${shared_ext}$major' | |
10501 | shlibpath_var=LD_LIBRARY_PATH | |
10502 | shlibpath_overrides_runpath=yes | |
10503 | hardcode_into_libs=yes | |
10504 | # ldd complains unless libraries are executable | |
10505 | postinstall_cmds='chmod +x $lib' | |
10506 | ;; | |
d7040cdb | 10507 | |
ce2cded5 L |
10508 | sunos4*) |
10509 | version_type=sunos | |
10510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10511 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10512 | shlibpath_var=LD_LIBRARY_PATH | |
10513 | shlibpath_overrides_runpath=yes | |
10514 | if test "$with_gnu_ld" = yes; then | |
10515 | need_lib_prefix=no | |
10516 | fi | |
10517 | need_version=yes | |
10518 | ;; | |
d7040cdb | 10519 | |
ce2cded5 L |
10520 | sysv4 | sysv4.3*) |
10521 | version_type=linux | |
10522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10523 | soname_spec='${libname}${release}${shared_ext}$major' | |
10524 | shlibpath_var=LD_LIBRARY_PATH | |
10525 | case $host_vendor in | |
10526 | sni) | |
10527 | shlibpath_overrides_runpath=no | |
10528 | need_lib_prefix=no | |
10529 | runpath_var=LD_RUN_PATH | |
10530 | ;; | |
10531 | siemens) | |
10532 | need_lib_prefix=no | |
10533 | ;; | |
10534 | motorola) | |
10535 | need_lib_prefix=no | |
10536 | need_version=no | |
10537 | shlibpath_overrides_runpath=no | |
10538 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10539 | ;; | |
10540 | esac | |
10541 | ;; | |
d7040cdb | 10542 | |
ce2cded5 L |
10543 | sysv4*MP*) |
10544 | if test -d /usr/nec ;then | |
10545 | version_type=linux | |
10546 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10547 | soname_spec='$libname${shared_ext}.$major' | |
10548 | shlibpath_var=LD_LIBRARY_PATH | |
10549 | fi | |
10550 | ;; | |
d7040cdb | 10551 | |
ce2cded5 L |
10552 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
10553 | version_type=freebsd-elf | |
10554 | need_lib_prefix=no | |
10555 | need_version=no | |
10556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10557 | soname_spec='${libname}${release}${shared_ext}$major' | |
10558 | shlibpath_var=LD_LIBRARY_PATH | |
10559 | shlibpath_overrides_runpath=yes | |
10560 | hardcode_into_libs=yes | |
10561 | if test "$with_gnu_ld" = yes; then | |
10562 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10563 | else | |
10564 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10565 | case $host_os in | |
10566 | sco3.2v5*) | |
10567 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10568 | ;; | |
10569 | esac | |
10570 | fi | |
10571 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10572 | ;; | |
d7040cdb | 10573 | |
ce2cded5 L |
10574 | tpf*) |
10575 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10576 | version_type=linux | |
10577 | need_lib_prefix=no | |
10578 | need_version=no | |
b214d478 | 10579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
10580 | shlibpath_var=LD_LIBRARY_PATH |
10581 | shlibpath_overrides_runpath=no | |
10582 | hardcode_into_libs=yes | |
10583 | ;; | |
d7040cdb | 10584 | |
ce2cded5 L |
10585 | uts4*) |
10586 | version_type=linux | |
10587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10588 | soname_spec='${libname}${release}${shared_ext}$major' | |
10589 | shlibpath_var=LD_LIBRARY_PATH | |
10590 | ;; | |
d7040cdb | 10591 | |
ce2cded5 L |
10592 | *) |
10593 | dynamic_linker=no | |
10594 | ;; | |
10595 | esac | |
81ecdfbb RW |
10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10597 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 | 10598 | test "$dynamic_linker" = no && can_build_shared=no |
d7040cdb | 10599 | |
ce2cded5 L |
10600 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
10601 | if test "$GCC" = yes; then | |
10602 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10603 | fi |
d7040cdb | 10604 | |
b214d478 SE |
10605 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10606 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10607 | fi | |
10608 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10609 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10610 | fi | |
10611 | ||
d7040cdb | 10612 | |
d7040cdb | 10613 | |
d7040cdb | 10614 | |
d7040cdb | 10615 | |
d7040cdb | 10616 | |
d7040cdb | 10617 | |
d7040cdb | 10618 | |
d7040cdb | 10619 | |
d7040cdb | 10620 | |
d7040cdb | 10621 | |
d7040cdb SE |
10622 | |
10623 | ||
d7040cdb | 10624 | |
d7040cdb | 10625 | |
d7040cdb | 10626 | |
d7040cdb SE |
10627 | |
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | ||
10641 | ||
10642 | ||
10643 | ||
d7040cdb SE |
10644 | |
10645 | ||
10646 | ||
10647 | ||
10648 | ||
10649 | ||
10650 | ||
10651 | ||
10652 | ||
10653 | ||
10654 | ||
10655 | ||
d7040cdb | 10656 | |
d7040cdb | 10657 | |
d7040cdb | 10658 | |
d7040cdb | 10659 | |
d7040cdb SE |
10660 | |
10661 | ||
10662 | ||
10663 | ||
d7040cdb | 10664 | |
d7040cdb SE |
10665 | |
10666 | ||
10667 | ||
10668 | ||
10669 | ||
10670 | ||
10671 | ||
10672 | ||
10673 | ||
10674 | ||
10675 | ||
10676 | ||
10677 | ||
d7040cdb SE |
10678 | |
10679 | ||
10680 | ||
10681 | ||
d7040cdb SE |
10682 | |
10683 | ||
10684 | ||
d7040cdb SE |
10685 | |
10686 | ||
d7040cdb | 10687 | |
d7040cdb | 10688 | |
d7040cdb | 10689 | |
ce2cded5 L |
10690 | |
10691 | ||
10692 | ||
10693 | ||
10694 | ||
10695 | ||
10696 | ||
10697 | ||
81ecdfbb RW |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10699 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
10700 | hardcode_action= |
10701 | if test -n "$hardcode_libdir_flag_spec" || | |
10702 | test -n "$runpath_var" || | |
10703 | test "X$hardcode_automatic" = "Xyes" ; then | |
10704 | ||
10705 | # We can hardcode non-existent directories. | |
10706 | if test "$hardcode_direct" != no && | |
10707 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10708 | # have to relink, otherwise we might link with an installed library | |
10709 | # when we should be linking with a yet-to-be-installed one | |
10710 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10711 | test "$hardcode_minus_L" != no; then | |
10712 | # Linking always hardcodes the temporary library directory. | |
10713 | hardcode_action=relink | |
10714 | else | |
10715 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10716 | hardcode_action=immediate | |
10717 | fi | |
d7040cdb | 10718 | else |
ce2cded5 L |
10719 | # We cannot hardcode anything, or else we can only hardcode existing |
10720 | # directories. | |
10721 | hardcode_action=unsupported | |
d7040cdb | 10722 | fi |
81ecdfbb RW |
10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10724 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb | 10725 | |
ce2cded5 L |
10726 | if test "$hardcode_action" = relink || |
10727 | test "$inherit_rpath" = yes; then | |
10728 | # Fast installation is not supported | |
10729 | enable_fast_install=no | |
10730 | elif test "$shlibpath_overrides_runpath" = yes || | |
10731 | test "$enable_shared" = no; then | |
10732 | # Fast installation is not necessary | |
10733 | enable_fast_install=needless | |
d7040cdb SE |
10734 | fi |
10735 | ||
d7040cdb | 10736 | |
d7040cdb | 10737 | |
0ab6f085 | 10738 | |
0ab6f085 | 10739 | |
0ab6f085 | 10740 | |
ce2cded5 L |
10741 | if test "x$enable_dlopen" != xyes; then |
10742 | enable_dlopen=unknown | |
10743 | enable_dlopen_self=unknown | |
10744 | enable_dlopen_self_static=unknown | |
d7040cdb | 10745 | else |
ce2cded5 L |
10746 | lt_cv_dlopen=no |
10747 | lt_cv_dlopen_libs= | |
d7040cdb | 10748 | |
ce2cded5 L |
10749 | case $host_os in |
10750 | beos*) | |
10751 | lt_cv_dlopen="load_add_on" | |
10752 | lt_cv_dlopen_libs= | |
10753 | lt_cv_dlopen_self=yes | |
10754 | ;; | |
d7040cdb | 10755 | |
b214d478 | 10756 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10757 | lt_cv_dlopen="LoadLibrary" |
10758 | lt_cv_dlopen_libs= | |
10759 | ;; | |
10760 | ||
10761 | cygwin*) | |
10762 | lt_cv_dlopen="dlopen" | |
10763 | lt_cv_dlopen_libs= | |
10764 | ;; | |
10765 | ||
10766 | darwin*) | |
10767 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10769 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10770 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10771 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 10772 | else |
ce2cded5 L |
10773 | ac_check_lib_save_LIBS=$LIBS |
10774 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
10776 | /* end confdefs.h. */ |
10777 | ||
81ecdfbb RW |
10778 | /* Override any GCC internal prototype to avoid an error. |
10779 | Use char because int might match the return type of a GCC | |
10780 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10781 | #ifdef __cplusplus |
10782 | extern "C" | |
10783 | #endif | |
ce2cded5 L |
10784 | char dlopen (); |
10785 | int | |
10786 | main () | |
10787 | { | |
81ecdfbb | 10788 | return dlopen (); |
ce2cded5 L |
10789 | ; |
10790 | return 0; | |
10791 | } | |
10792 | _ACEOF | |
81ecdfbb | 10793 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10794 | ac_cv_lib_dl_dlopen=yes |
10795 | else | |
81ecdfbb | 10796 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10797 | fi |
81ecdfbb RW |
10798 | rm -f core conftest.err conftest.$ac_objext \ |
10799 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 10800 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 10801 | fi |
81ecdfbb RW |
10802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10803 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10804 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 10805 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 10806 | else |
d7040cdb | 10807 | |
ce2cded5 L |
10808 | lt_cv_dlopen="dyld" |
10809 | lt_cv_dlopen_libs= | |
10810 | lt_cv_dlopen_self=yes | |
10811 | ||
d7040cdb | 10812 | fi |
ce2cded5 L |
10813 | |
10814 | ;; | |
10815 | ||
10816 | *) | |
81ecdfbb RW |
10817 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
10818 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
10819 | lt_cv_dlopen="shl_load" |
10820 | else | |
81ecdfbb RW |
10821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10822 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10823 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10824 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10825 | else |
10826 | ac_check_lib_save_LIBS=$LIBS | |
10827 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10829 | /* end confdefs.h. */ |
d7040cdb | 10830 | |
81ecdfbb RW |
10831 | /* Override any GCC internal prototype to avoid an error. |
10832 | Use char because int might match the return type of a GCC | |
10833 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10834 | #ifdef __cplusplus |
10835 | extern "C" | |
10836 | #endif | |
ce2cded5 L |
10837 | char shl_load (); |
10838 | int | |
10839 | main () | |
10840 | { | |
81ecdfbb | 10841 | return shl_load (); |
ce2cded5 L |
10842 | ; |
10843 | return 0; | |
10844 | } | |
10845 | _ACEOF | |
81ecdfbb | 10846 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10847 | ac_cv_lib_dld_shl_load=yes |
10848 | else | |
81ecdfbb | 10849 | ac_cv_lib_dld_shl_load=no |
ce2cded5 | 10850 | fi |
81ecdfbb RW |
10851 | rm -f core conftest.err conftest.$ac_objext \ |
10852 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10853 | LIBS=$ac_check_lib_save_LIBS |
10854 | fi | |
81ecdfbb RW |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10856 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10857 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
b214d478 | 10858 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 10859 | else |
81ecdfbb RW |
10860 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
10861 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
10862 | lt_cv_dlopen="dlopen" |
10863 | else | |
81ecdfbb RW |
10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10865 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10866 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10867 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 10868 | else |
ce2cded5 L |
10869 | ac_check_lib_save_LIBS=$LIBS |
10870 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10872 | /* end confdefs.h. */ |
10873 | ||
81ecdfbb RW |
10874 | /* Override any GCC internal prototype to avoid an error. |
10875 | Use char because int might match the return type of a GCC | |
10876 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10877 | #ifdef __cplusplus |
10878 | extern "C" | |
10879 | #endif | |
ce2cded5 | 10880 | char dlopen (); |
d7040cdb SE |
10881 | int |
10882 | main () | |
10883 | { | |
81ecdfbb | 10884 | return dlopen (); |
d7040cdb SE |
10885 | ; |
10886 | return 0; | |
10887 | } | |
10888 | _ACEOF | |
81ecdfbb | 10889 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 10890 | ac_cv_lib_dl_dlopen=yes |
d7040cdb | 10891 | else |
81ecdfbb | 10892 | ac_cv_lib_dl_dlopen=no |
1b9750d6 | 10893 | fi |
81ecdfbb RW |
10894 | rm -f core conftest.err conftest.$ac_objext \ |
10895 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 10896 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 10897 | fi |
81ecdfbb RW |
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10899 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10900 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 10901 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 10902 | else |
81ecdfbb RW |
10903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10904 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10905 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10906 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 10907 | else |
ce2cded5 L |
10908 | ac_check_lib_save_LIBS=$LIBS |
10909 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 10910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10911 | /* end confdefs.h. */ |
d7040cdb | 10912 | |
81ecdfbb RW |
10913 | /* Override any GCC internal prototype to avoid an error. |
10914 | Use char because int might match the return type of a GCC | |
10915 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10916 | #ifdef __cplusplus |
10917 | extern "C" | |
10918 | #endif | |
ce2cded5 | 10919 | char dlopen (); |
d7040cdb SE |
10920 | int |
10921 | main () | |
10922 | { | |
81ecdfbb | 10923 | return dlopen (); |
d7040cdb SE |
10924 | ; |
10925 | return 0; | |
10926 | } | |
10927 | _ACEOF | |
81ecdfbb | 10928 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 10929 | ac_cv_lib_svld_dlopen=yes |
0ab6f085 | 10930 | else |
81ecdfbb | 10931 | ac_cv_lib_svld_dlopen=no |
0ab6f085 | 10932 | fi |
81ecdfbb RW |
10933 | rm -f core conftest.err conftest.$ac_objext \ |
10934 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 10935 | LIBS=$ac_check_lib_save_LIBS |
0ab6f085 | 10936 | fi |
81ecdfbb RW |
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10938 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10939 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
10940 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10941 | else | |
81ecdfbb RW |
10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10943 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10944 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
10945 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10946 | else |
10947 | ac_check_lib_save_LIBS=$LIBS | |
10948 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0ab6f085 | 10950 | /* end confdefs.h. */ |
ce2cded5 | 10951 | |
81ecdfbb RW |
10952 | /* Override any GCC internal prototype to avoid an error. |
10953 | Use char because int might match the return type of a GCC | |
10954 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10955 | #ifdef __cplusplus |
10956 | extern "C" | |
10957 | #endif | |
ce2cded5 | 10958 | char dld_link (); |
0ab6f085 AM |
10959 | int |
10960 | main () | |
10961 | { | |
81ecdfbb | 10962 | return dld_link (); |
0ab6f085 AM |
10963 | ; |
10964 | return 0; | |
10965 | } | |
10966 | _ACEOF | |
81ecdfbb | 10967 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 10968 | ac_cv_lib_dld_dld_link=yes |
0ab6f085 | 10969 | else |
81ecdfbb | 10970 | ac_cv_lib_dld_dld_link=no |
0ab6f085 | 10971 | fi |
81ecdfbb RW |
10972 | rm -f core conftest.err conftest.$ac_objext \ |
10973 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10974 | LIBS=$ac_check_lib_save_LIBS |
10975 | fi | |
81ecdfbb RW |
10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10977 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10978 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
b214d478 | 10979 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
10980 | fi |
10981 | ||
10982 | ||
10983 | fi | |
10984 | ||
10985 | ||
10986 | fi | |
10987 | ||
10988 | ||
10989 | fi | |
10990 | ||
10991 | ||
10992 | fi | |
10993 | ||
10994 | ||
10995 | fi | |
10996 | ||
10997 | ;; | |
10998 | esac | |
10999 | ||
11000 | if test "x$lt_cv_dlopen" != xno; then | |
11001 | enable_dlopen=yes | |
11002 | else | |
11003 | enable_dlopen=no | |
11004 | fi | |
11005 | ||
11006 | case $lt_cv_dlopen in | |
11007 | dlopen) | |
11008 | save_CPPFLAGS="$CPPFLAGS" | |
11009 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11010 | ||
11011 | save_LDFLAGS="$LDFLAGS" | |
11012 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11013 | ||
11014 | save_LIBS="$LIBS" | |
11015 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11016 | ||
81ecdfbb RW |
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11018 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11019 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11020 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11021 | else |
11022 | if test "$cross_compiling" = yes; then : | |
11023 | lt_cv_dlopen_self=cross | |
11024 | else | |
11025 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11026 | lt_status=$lt_dlunknown | |
11027 | cat > conftest.$ac_ext <<_LT_EOF | |
da2f07f1 | 11028 | #line 11028 "configure" |
ce2cded5 L |
11029 | #include "confdefs.h" |
11030 | ||
11031 | #if HAVE_DLFCN_H | |
11032 | #include <dlfcn.h> | |
11033 | #endif | |
11034 | ||
11035 | #include <stdio.h> | |
11036 | ||
11037 | #ifdef RTLD_GLOBAL | |
11038 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11039 | #else | |
11040 | # ifdef DL_GLOBAL | |
11041 | # define LT_DLGLOBAL DL_GLOBAL | |
11042 | # else | |
11043 | # define LT_DLGLOBAL 0 | |
11044 | # endif | |
11045 | #endif | |
11046 | ||
11047 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11048 | find out it does not work in some platform. */ | |
11049 | #ifndef LT_DLLAZY_OR_NOW | |
11050 | # ifdef RTLD_LAZY | |
11051 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11052 | # else | |
11053 | # ifdef DL_LAZY | |
11054 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11055 | # else | |
11056 | # ifdef RTLD_NOW | |
11057 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11058 | # else | |
11059 | # ifdef DL_NOW | |
11060 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11061 | # else | |
11062 | # define LT_DLLAZY_OR_NOW 0 | |
11063 | # endif | |
11064 | # endif | |
11065 | # endif | |
11066 | # endif | |
11067 | #endif | |
11068 | ||
ce2cded5 L |
11069 | void fnord() { int i=42;} |
11070 | int main () | |
0ab6f085 | 11071 | { |
ce2cded5 L |
11072 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11073 | int status = $lt_dlunknown; | |
11074 | ||
11075 | if (self) | |
11076 | { | |
11077 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11078 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11079 | /* dlclose (self); */ | |
11080 | } | |
11081 | else | |
11082 | puts (dlerror ()); | |
11083 | ||
b214d478 | 11084 | return status; |
ce2cded5 L |
11085 | } |
11086 | _LT_EOF | |
81ecdfbb | 11087 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
11088 | (eval $ac_link) 2>&5 |
11089 | ac_status=$? | |
81ecdfbb RW |
11090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11091 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11092 | (./conftest; exit; ) >&5 2>/dev/null |
11093 | lt_status=$? | |
11094 | case x$lt_status in | |
11095 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11096 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11097 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11098 | esac | |
11099 | else : | |
11100 | # compilation failed | |
11101 | lt_cv_dlopen_self=no | |
11102 | fi | |
11103 | fi | |
11104 | rm -fr conftest* | |
11105 | ||
11106 | ||
11107 | fi | |
81ecdfbb RW |
11108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11109 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
11110 | |
11111 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11112 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11114 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11115 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11116 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11117 | else |
11118 | if test "$cross_compiling" = yes; then : | |
11119 | lt_cv_dlopen_self_static=cross | |
11120 | else | |
11121 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11122 | lt_status=$lt_dlunknown | |
11123 | cat > conftest.$ac_ext <<_LT_EOF | |
da2f07f1 | 11124 | #line 11124 "configure" |
ce2cded5 L |
11125 | #include "confdefs.h" |
11126 | ||
11127 | #if HAVE_DLFCN_H | |
11128 | #include <dlfcn.h> | |
11129 | #endif | |
11130 | ||
11131 | #include <stdio.h> | |
11132 | ||
11133 | #ifdef RTLD_GLOBAL | |
11134 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11135 | #else | |
11136 | # ifdef DL_GLOBAL | |
11137 | # define LT_DLGLOBAL DL_GLOBAL | |
11138 | # else | |
11139 | # define LT_DLGLOBAL 0 | |
11140 | # endif | |
11141 | #endif | |
11142 | ||
11143 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11144 | find out it does not work in some platform. */ | |
11145 | #ifndef LT_DLLAZY_OR_NOW | |
11146 | # ifdef RTLD_LAZY | |
11147 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11148 | # else | |
11149 | # ifdef DL_LAZY | |
11150 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11151 | # else | |
11152 | # ifdef RTLD_NOW | |
11153 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11154 | # else | |
11155 | # ifdef DL_NOW | |
11156 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11157 | # else | |
11158 | # define LT_DLLAZY_OR_NOW 0 | |
11159 | # endif | |
11160 | # endif | |
11161 | # endif | |
11162 | # endif | |
11163 | #endif | |
11164 | ||
ce2cded5 L |
11165 | void fnord() { int i=42;} |
11166 | int main () | |
11167 | { | |
11168 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11169 | int status = $lt_dlunknown; | |
11170 | ||
11171 | if (self) | |
11172 | { | |
11173 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11174 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11175 | /* dlclose (self); */ | |
11176 | } | |
11177 | else | |
11178 | puts (dlerror ()); | |
11179 | ||
b214d478 | 11180 | return status; |
0ab6f085 | 11181 | } |
ce2cded5 | 11182 | _LT_EOF |
81ecdfbb | 11183 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 11184 | (eval $ac_link) 2>&5 |
0ab6f085 | 11185 | ac_status=$? |
81ecdfbb RW |
11186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11187 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11188 | (./conftest; exit; ) >&5 2>/dev/null |
11189 | lt_status=$? | |
11190 | case x$lt_status in | |
11191 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11192 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11193 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11194 | esac | |
11195 | else : | |
11196 | # compilation failed | |
11197 | lt_cv_dlopen_self_static=no | |
11198 | fi | |
11199 | fi | |
11200 | rm -fr conftest* | |
11201 | ||
d7040cdb SE |
11202 | |
11203 | fi | |
81ecdfbb RW |
11204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11205 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
ce2cded5 L |
11206 | fi |
11207 | ||
11208 | CPPFLAGS="$save_CPPFLAGS" | |
11209 | LDFLAGS="$save_LDFLAGS" | |
11210 | LIBS="$save_LIBS" | |
11211 | ;; | |
11212 | esac | |
11213 | ||
11214 | case $lt_cv_dlopen_self in | |
11215 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11216 | *) enable_dlopen_self=unknown ;; | |
11217 | esac | |
11218 | ||
11219 | case $lt_cv_dlopen_self_static in | |
11220 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11221 | *) enable_dlopen_self_static=unknown ;; | |
11222 | esac | |
d7040cdb SE |
11223 | fi |
11224 | ||
ce2cded5 L |
11225 | |
11226 | ||
11227 | ||
11228 | ||
11229 | ||
11230 | ||
11231 | ||
11232 | ||
11233 | ||
11234 | ||
11235 | ||
11236 | ||
11237 | ||
11238 | ||
11239 | ||
11240 | ||
11241 | striplib= | |
11242 | old_striplib= | |
81ecdfbb RW |
11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11244 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
ce2cded5 L |
11245 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11246 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11247 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11249 | $as_echo "yes" >&6; } | |
0ab6f085 | 11250 | else |
ce2cded5 L |
11251 | # FIXME - insert some real tests, host_os isn't really good enough |
11252 | case $host_os in | |
11253 | darwin*) | |
11254 | if test -n "$STRIP" ; then | |
11255 | striplib="$STRIP -x" | |
11256 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11258 | $as_echo "yes" >&6; } | |
ce2cded5 | 11259 | else |
81ecdfbb RW |
11260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11261 | $as_echo "no" >&6; } | |
ce2cded5 L |
11262 | fi |
11263 | ;; | |
11264 | *) | |
81ecdfbb RW |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11266 | $as_echo "no" >&6; } | |
ce2cded5 L |
11267 | ;; |
11268 | esac | |
11269 | fi | |
11270 | ||
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ||
11276 | ||
11277 | ||
11278 | ||
11279 | ||
11280 | ||
11281 | ||
11282 | # Report which library types will actually be built | |
81ecdfbb RW |
11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11284 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11286 | $as_echo "$can_build_shared" >&6; } | |
ce2cded5 | 11287 | |
81ecdfbb RW |
11288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11289 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
ce2cded5 L |
11290 | test "$can_build_shared" = "no" && enable_shared=no |
11291 | ||
11292 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11293 | # are all built from PIC. | |
11294 | case $host_os in | |
11295 | aix3*) | |
11296 | test "$enable_shared" = yes && enable_static=no | |
11297 | if test -n "$RANLIB"; then | |
11298 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11299 | postinstall_cmds='$RANLIB $lib' | |
11300 | fi | |
11301 | ;; | |
11302 | ||
50e7d84b | 11303 | aix[4-9]*) |
ce2cded5 L |
11304 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11305 | test "$enable_shared" = yes && enable_static=no | |
11306 | fi | |
11307 | ;; | |
11308 | esac | |
81ecdfbb RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11310 | $as_echo "$enable_shared" >&6; } | |
ce2cded5 | 11311 | |
81ecdfbb RW |
11312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11313 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
ce2cded5 L |
11314 | # Make sure either enable_shared or enable_static is yes. |
11315 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11317 | $as_echo "$enable_static" >&6; } | |
ce2cded5 L |
11318 | |
11319 | ||
11320 | ||
d7040cdb | 11321 | |
0ab6f085 | 11322 | fi |
d7040cdb SE |
11323 | ac_ext=c |
11324 | ac_cpp='$CPP $CPPFLAGS' | |
11325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11328 | ||
ce2cded5 | 11329 | CC="$lt_save_CC" |
0ab6f085 | 11330 | |
0ab6f085 AM |
11331 | |
11332 | ||
d7040cdb SE |
11333 | |
11334 | ||
d7040cdb | 11335 | |
d7040cdb | 11336 | |
d7040cdb | 11337 | |
ce2cded5 L |
11338 | |
11339 | ||
11340 | ||
11341 | ||
11342 | ||
81ecdfbb | 11343 | ac_config_commands="$ac_config_commands libtool" |
ce2cded5 L |
11344 | |
11345 | ||
11346 | ||
11347 | ||
11348 | # Only expand once: | |
11349 | ||
d7040cdb SE |
11350 | |
11351 | ||
d7040cdb | 11352 | for ac_func in setmode |
81ecdfbb RW |
11353 | do : |
11354 | ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode" | |
11355 | if test "x$ac_cv_func_setmode" = x""yes; then : | |
d7040cdb | 11356 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 11357 | #define HAVE_SETMODE 1 |
d7040cdb SE |
11358 | _ACEOF |
11359 | ||
11360 | fi | |
11361 | done | |
11362 | ||
11363 | ||
789169e5 | 11364 | ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl" |
d7040cdb SE |
11365 | # If we haven't got the data from the intl directory, |
11366 | # assume NLS is disabled. | |
11367 | USE_NLS=no | |
11368 | LIBINTL= | |
11369 | LIBINTL_DEP= | |
11370 | INCINTL= | |
11371 | XGETTEXT= | |
11372 | GMSGFMT= | |
11373 | POSUB= | |
11374 | ||
11375 | if test -f ../intl/config.intl; then | |
11376 | . ../intl/config.intl | |
11377 | fi | |
81ecdfbb RW |
11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11379 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 11380 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11382 | $as_echo "no" >&6; } | |
d7040cdb | 11383 | else |
81ecdfbb RW |
11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11385 | $as_echo "yes" >&6; } | |
d7040cdb | 11386 | |
81ecdfbb | 11387 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
11388 | |
11389 | ||
81ecdfbb RW |
11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
11391 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
11392 | # Look for .po and .gmo files in the source directory. |
11393 | CATALOGS= | |
11394 | XLINGUAS= | |
11395 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
11396 | # If there aren't any .gmo files the shell will give us the | |
11397 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
11398 | # weeded out. | |
11399 | case "$cat" in *\**) | |
11400 | continue;; | |
11401 | esac | |
11402 | # The quadruple backslash is collapsed to a double backslash | |
11403 | # by the backticks, then collapsed again by the double quotes, | |
11404 | # leaving us with one backslash in the sed expression (right | |
11405 | # before the dot that mustn't act as a wildcard). | |
11406 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
11407 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
11408 | # The user is allowed to set LINGUAS to a list of languages to | |
11409 | # install catalogs for. If it's empty that means "all of them." | |
11410 | if test "x$LINGUAS" = x; then | |
11411 | CATALOGS="$CATALOGS $cat" | |
11412 | XLINGUAS="$XLINGUAS $lang" | |
11413 | else | |
11414 | case "$LINGUAS" in *$lang*) | |
11415 | CATALOGS="$CATALOGS $cat" | |
11416 | XLINGUAS="$XLINGUAS $lang" | |
11417 | ;; | |
11418 | esac | |
11419 | fi | |
11420 | done | |
11421 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
11423 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
11424 | |
11425 | ||
11426 | DATADIRNAME=share | |
11427 | ||
11428 | INSTOBJEXT=.mo | |
11429 | ||
11430 | GENCAT=gencat | |
11431 | ||
11432 | CATOBJEXT=.gmo | |
11433 | ||
11434 | fi | |
11435 | ||
11436 | MKINSTALLDIRS= | |
11437 | if test -n "$ac_aux_dir"; then | |
11438 | case "$ac_aux_dir" in | |
11439 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
11440 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
11441 | esac | |
11442 | fi | |
11443 | if test -z "$MKINSTALLDIRS"; then | |
11444 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
11445 | fi | |
11446 | ||
11447 | ||
11448 | ||
81ecdfbb RW |
11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11450 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
11451 | # Check whether --enable-nls was given. | |
11452 | if test "${enable_nls+set}" = set; then : | |
11453 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
11454 | else |
11455 | USE_NLS=yes | |
81ecdfbb RW |
11456 | fi |
11457 | ||
11458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11459 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
11460 | |
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | # Prepare PATH_SEPARATOR. | |
11467 | # The user is always right. | |
11468 | if test "${PATH_SEPARATOR+set}" != set; then | |
11469 | echo "#! /bin/sh" >conf$$.sh | |
11470 | echo "exit 0" >>conf$$.sh | |
11471 | chmod +x conf$$.sh | |
11472 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11473 | PATH_SEPARATOR=';' | |
11474 | else | |
11475 | PATH_SEPARATOR=: | |
11476 | fi | |
11477 | rm -f conf$$.sh | |
11478 | fi | |
11479 | ||
11480 | # Find out how to test for executable files. Don't use a zero-byte file, | |
11481 | # as systems may use methods other than mode bits to determine executability. | |
11482 | cat >conf$$.file <<_ASEOF | |
11483 | #! /bin/sh | |
11484 | exit 0 | |
11485 | _ASEOF | |
11486 | chmod +x conf$$.file | |
11487 | if test -x conf$$.file >/dev/null 2>&1; then | |
11488 | ac_executable_p="test -x" | |
11489 | else | |
11490 | ac_executable_p="test -f" | |
11491 | fi | |
11492 | rm -f conf$$.file | |
11493 | ||
11494 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
11495 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11497 | $as_echo_n "checking for $ac_word... " >&6; } | |
11498 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
11499 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
11500 | else |
11501 | case "$MSGFMT" in | |
11502 | [\\/]* | ?:[\\/]*) | |
11503 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
11504 | ;; | |
11505 | *) | |
11506 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11507 | for ac_dir in $PATH; do | |
11508 | IFS="$ac_save_IFS" | |
11509 | test -z "$ac_dir" && ac_dir=. | |
11510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11511 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11512 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
11513 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11514 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
11515 | break 2 | |
11516 | fi | |
11517 | fi | |
11518 | done | |
11519 | done | |
11520 | IFS="$ac_save_IFS" | |
11521 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
11522 | ;; | |
11523 | esac | |
11524 | fi | |
11525 | MSGFMT="$ac_cv_path_MSGFMT" | |
11526 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
11528 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 11529 | else |
81ecdfbb RW |
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11531 | $as_echo "no" >&6; } | |
d7040cdb SE |
11532 | fi |
11533 | ||
11534 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
11535 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11537 | $as_echo_n "checking for $ac_word... " >&6; } | |
11538 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
11539 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
11540 | else |
11541 | case $GMSGFMT in | |
11542 | [\\/]* | ?:[\\/]*) | |
11543 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
11544 | ;; | |
11545 | *) | |
11546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11547 | for as_dir in $PATH | |
11548 | do | |
11549 | IFS=$as_save_IFS | |
11550 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11551 | for ac_exec_ext in '' $ac_executable_extensions; do |
11552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 11553 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
11555 | break 2 |
11556 | fi | |
11557 | done | |
81ecdfbb RW |
11558 | done |
11559 | IFS=$as_save_IFS | |
d7040cdb SE |
11560 | |
11561 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
11562 | ;; | |
11563 | esac | |
11564 | fi | |
11565 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 11566 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
11568 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 11569 | else |
81ecdfbb RW |
11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11571 | $as_echo "no" >&6; } | |
d7040cdb SE |
11572 | fi |
11573 | ||
11574 | ||
11575 | ||
81ecdfbb | 11576 | |
d7040cdb SE |
11577 | # Prepare PATH_SEPARATOR. |
11578 | # The user is always right. | |
11579 | if test "${PATH_SEPARATOR+set}" != set; then | |
11580 | echo "#! /bin/sh" >conf$$.sh | |
11581 | echo "exit 0" >>conf$$.sh | |
11582 | chmod +x conf$$.sh | |
11583 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11584 | PATH_SEPARATOR=';' | |
11585 | else | |
11586 | PATH_SEPARATOR=: | |
11587 | fi | |
11588 | rm -f conf$$.sh | |
11589 | fi | |
11590 | ||
11591 | # Find out how to test for executable files. Don't use a zero-byte file, | |
11592 | # as systems may use methods other than mode bits to determine executability. | |
11593 | cat >conf$$.file <<_ASEOF | |
11594 | #! /bin/sh | |
11595 | exit 0 | |
11596 | _ASEOF | |
11597 | chmod +x conf$$.file | |
11598 | if test -x conf$$.file >/dev/null 2>&1; then | |
11599 | ac_executable_p="test -x" | |
11600 | else | |
11601 | ac_executable_p="test -f" | |
11602 | fi | |
11603 | rm -f conf$$.file | |
11604 | ||
11605 | # Extract the first word of "xgettext", so it can be a program name with args. | |
11606 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11608 | $as_echo_n "checking for $ac_word... " >&6; } | |
11609 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
11610 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
11611 | else |
11612 | case "$XGETTEXT" in | |
11613 | [\\/]* | ?:[\\/]*) | |
11614 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
11615 | ;; | |
11616 | *) | |
11617 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11618 | for ac_dir in $PATH; do | |
11619 | IFS="$ac_save_IFS" | |
11620 | test -z "$ac_dir" && ac_dir=. | |
11621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11622 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11623 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11624 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11625 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
11626 | break 2 | |
11627 | fi | |
11628 | fi | |
11629 | done | |
11630 | done | |
11631 | IFS="$ac_save_IFS" | |
11632 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
11633 | ;; | |
11634 | esac | |
11635 | fi | |
11636 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
11637 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
11638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
11639 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 11640 | else |
81ecdfbb RW |
11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11642 | $as_echo "no" >&6; } | |
d7040cdb SE |
11643 | fi |
11644 | ||
11645 | rm -f messages.po | |
11646 | ||
11647 | ||
11648 | # Prepare PATH_SEPARATOR. | |
11649 | # The user is always right. | |
11650 | if test "${PATH_SEPARATOR+set}" != set; then | |
11651 | echo "#! /bin/sh" >conf$$.sh | |
11652 | echo "exit 0" >>conf$$.sh | |
11653 | chmod +x conf$$.sh | |
11654 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11655 | PATH_SEPARATOR=';' | |
11656 | else | |
11657 | PATH_SEPARATOR=: | |
11658 | fi | |
11659 | rm -f conf$$.sh | |
11660 | fi | |
11661 | ||
11662 | # Find out how to test for executable files. Don't use a zero-byte file, | |
11663 | # as systems may use methods other than mode bits to determine executability. | |
11664 | cat >conf$$.file <<_ASEOF | |
11665 | #! /bin/sh | |
11666 | exit 0 | |
11667 | _ASEOF | |
11668 | chmod +x conf$$.file | |
11669 | if test -x conf$$.file >/dev/null 2>&1; then | |
11670 | ac_executable_p="test -x" | |
11671 | else | |
11672 | ac_executable_p="test -f" | |
11673 | fi | |
11674 | rm -f conf$$.file | |
11675 | ||
11676 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
11677 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11679 | $as_echo_n "checking for $ac_word... " >&6; } | |
11680 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
11681 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
11682 | else |
11683 | case "$MSGMERGE" in | |
11684 | [\\/]* | ?:[\\/]*) | |
11685 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
11686 | ;; | |
11687 | *) | |
11688 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11689 | for ac_dir in $PATH; do | |
11690 | IFS="$ac_save_IFS" | |
11691 | test -z "$ac_dir" && ac_dir=. | |
11692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11693 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11694 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
11695 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
11696 | break 2 | |
11697 | fi | |
11698 | fi | |
11699 | done | |
11700 | done | |
11701 | IFS="$ac_save_IFS" | |
11702 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
11703 | ;; | |
11704 | esac | |
11705 | fi | |
11706 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
11707 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
11709 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 11710 | else |
81ecdfbb RW |
11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11712 | $as_echo "no" >&6; } | |
d7040cdb SE |
11713 | fi |
11714 | ||
11715 | ||
11716 | if test "$GMSGFMT" != ":"; then | |
11717 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
11718 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11719 | : ; | |
11720 | else | |
11721 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
11723 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
11724 | GMSGFMT=":" |
11725 | fi | |
11726 | fi | |
11727 | ||
11728 | if test "$XGETTEXT" != ":"; then | |
11729 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11730 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11731 | : ; | |
11732 | else | |
81ecdfbb RW |
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
11734 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
11735 | XGETTEXT=":" |
11736 | fi | |
11737 | rm -f messages.po | |
11738 | fi | |
11739 | ||
81ecdfbb RW |
11740 | ac_config_commands="$ac_config_commands default-1" |
11741 | ||
d7040cdb SE |
11742 | |
11743 | ||
11744 | ||
81ecdfbb RW |
11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
11746 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11747 | # Check whether --enable-maintainer-mode was given. | |
11748 | if test "${enable_maintainer_mode+set}" = set; then : | |
11749 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
252b5132 | 11750 | else |
d7040cdb | 11751 | USE_MAINTAINER_MODE=no |
81ecdfbb | 11752 | fi |
d7040cdb | 11753 | |
81ecdfbb RW |
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
11755 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11756 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
11757 | MAINTAINER_MODE_TRUE= |
11758 | MAINTAINER_MODE_FALSE='#' | |
11759 | else | |
11760 | MAINTAINER_MODE_TRUE='#' | |
11761 | MAINTAINER_MODE_FALSE= | |
20e95c23 | 11762 | fi |
6bf9431b | 11763 | |
d7040cdb SE |
11764 | MAINT=$MAINTAINER_MODE_TRUE |
11765 | ||
11766 | ||
81ecdfbb | 11767 | if false; then |
d7040cdb SE |
11768 | GENINSRC_NEVER_TRUE= |
11769 | GENINSRC_NEVER_FALSE='#' | |
11770 | else | |
11771 | GENINSRC_NEVER_TRUE='#' | |
11772 | GENINSRC_NEVER_FALSE= | |
20e95c23 | 11773 | fi |
6bf9431b BE |
11774 | |
11775 | ||
11776 | ||
6bf9431b | 11777 | for ac_header in sys/gmon_out.h |
81ecdfbb RW |
11778 | do : |
11779 | ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default" | |
11780 | if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then : | |
6bf9431b | 11781 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 11782 | #define HAVE_SYS_GMON_OUT_H 1 |
6bf9431b BE |
11783 | _ACEOF |
11784 | ||
11785 | fi | |
11786 | ||
11787 | done | |
11788 | ||
11789 | ||
81ecdfbb RW |
11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
11791 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
11792 | if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then : | |
11793 | $as_echo_n "(cached) " >&6 | |
34875e64 | 11794 | else |
81ecdfbb | 11795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
34875e64 NC |
11796 | /* end confdefs.h. */ |
11797 | #include <unistd.h> | |
11798 | int | |
11799 | main () | |
11800 | { | |
11801 | extern int getopt (int, char *const*, const char *); | |
11802 | ; | |
11803 | return 0; | |
11804 | } | |
11805 | _ACEOF | |
81ecdfbb | 11806 | if ac_fn_c_try_compile "$LINENO"; then : |
34875e64 NC |
11807 | gprof_cv_decl_getopt_unistd_h=yes |
11808 | else | |
81ecdfbb | 11809 | gprof_cv_decl_getopt_unistd_h=no |
34875e64 | 11810 | fi |
81ecdfbb | 11811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
11812 | fi |
11813 | ||
81ecdfbb RW |
11814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5 |
11815 | $as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; } | |
34875e64 NC |
11816 | if test $gprof_cv_decl_getopt_unistd_h = yes; then |
11817 | ||
81ecdfbb | 11818 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
34875e64 NC |
11819 | |
11820 | fi | |
11821 | ||
1b9750d6 | 11822 | # Some systems have fabs only in -lm, not in -lc. |
81ecdfbb RW |
11823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5 |
11824 | $as_echo_n "checking for library containing fabs... " >&6; } | |
11825 | if test "${ac_cv_search_fabs+set}" = set; then : | |
11826 | $as_echo_n "(cached) " >&6 | |
1b9750d6 NC |
11827 | else |
11828 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 11829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b9750d6 NC |
11830 | /* end confdefs.h. */ |
11831 | ||
81ecdfbb RW |
11832 | /* Override any GCC internal prototype to avoid an error. |
11833 | Use char because int might match the return type of a GCC | |
11834 | builtin and then its argument prototype would still apply. */ | |
1b9750d6 NC |
11835 | #ifdef __cplusplus |
11836 | extern "C" | |
11837 | #endif | |
11838 | char fabs (); | |
11839 | int | |
11840 | main () | |
11841 | { | |
81ecdfbb | 11842 | return fabs (); |
1b9750d6 NC |
11843 | ; |
11844 | return 0; | |
11845 | } | |
11846 | _ACEOF | |
81ecdfbb RW |
11847 | for ac_lib in '' m; do |
11848 | if test -z "$ac_lib"; then | |
11849 | ac_res="none required" | |
11850 | else | |
11851 | ac_res=-l$ac_lib | |
0ab6f085 | 11852 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
11853 | fi |
11854 | if ac_fn_c_try_link "$LINENO"; then : | |
11855 | ac_cv_search_fabs=$ac_res | |
11856 | fi | |
11857 | rm -f core conftest.err conftest.$ac_objext \ | |
11858 | conftest$ac_exeext | |
11859 | if test "${ac_cv_search_fabs+set}" = set; then : | |
11860 | break | |
11861 | fi | |
11862 | done | |
11863 | if test "${ac_cv_search_fabs+set}" = set; then : | |
1b9750d6 | 11864 | |
1b9750d6 | 11865 | else |
81ecdfbb | 11866 | ac_cv_search_fabs=no |
1b9750d6 | 11867 | fi |
81ecdfbb | 11868 | rm conftest.$ac_ext |
1b9750d6 NC |
11869 | LIBS=$ac_func_search_save_LIBS |
11870 | fi | |
81ecdfbb RW |
11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5 |
11872 | $as_echo "$ac_cv_search_fabs" >&6; } | |
11873 | ac_res=$ac_cv_search_fabs | |
11874 | if test "$ac_res" != no; then : | |
11875 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
1b9750d6 NC |
11876 | |
11877 | fi | |
11878 | ||
11879 | ||
9e9b66a9 | 11880 | |
a541e3ce | 11881 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
1ad12f97 | 11882 | |
81ecdfbb RW |
11883 | # Check whether --enable-werror was given. |
11884 | if test "${enable_werror+set}" = set; then : | |
11885 | enableval=$enable_werror; case "${enableval}" in | |
1ad12f97 NC |
11886 | yes | y) ERROR_ON_WARNING="yes" ;; |
11887 | no | n) ERROR_ON_WARNING="no" ;; | |
81ecdfbb | 11888 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
1ad12f97 | 11889 | esac |
81ecdfbb RW |
11890 | fi |
11891 | ||
1ad12f97 | 11892 | |
32b1cf22 L |
11893 | # Enable -Wno-format by default when using gcc on mingw |
11894 | case "${host}" in | |
11895 | *-*-mingw32*) | |
11896 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11897 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11898 | fi | |
11899 | ;; | |
11900 | *) ;; | |
11901 | esac | |
11902 | ||
9e9b66a9 AM |
11903 | # Enable -Werror by default when using gcc |
11904 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11905 | ERROR_ON_WARNING=yes | |
11906 | fi | |
11907 | ||
11908 | NO_WERROR= | |
11909 | if test "${ERROR_ON_WARNING}" = yes ; then | |
a541e3ce | 11910 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
9e9b66a9 | 11911 | NO_WERROR="-Wno-error" |
1ad12f97 NC |
11912 | fi |
11913 | ||
a541e3ce SE |
11914 | if test "${GCC}" = yes ; then |
11915 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11916 | fi | |
11917 | ||
81ecdfbb RW |
11918 | # Check whether --enable-build-warnings was given. |
11919 | if test "${enable_build_warnings+set}" = set; then : | |
11920 | enableval=$enable_build_warnings; case "${enableval}" in | |
a541e3ce SE |
11921 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
11922 | no) if test "${GCC}" = yes ; then | |
11923 | WARN_CFLAGS="-w" | |
11924 | fi;; | |
6bf9431b | 11925 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 11926 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; |
6bf9431b | 11927 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 11928 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; |
9e9b66a9 | 11929 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
6bf9431b | 11930 | esac |
81ecdfbb RW |
11931 | fi |
11932 | ||
9e9b66a9 AM |
11933 | |
11934 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
11935 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
6bf9431b BE |
11936 | fi |
11937 | ||
11938 | ||
9e9b66a9 AM |
11939 | |
11940 | ||
11941 | ||
108a6f8e CD |
11942 | |
11943 | ||
11944 | ||
11945 | ||
31dd3154 | 11946 | |
81ecdfbb | 11947 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
6bf9431b | 11948 | |
6bf9431b BE |
11949 | cat >confcache <<\_ACEOF |
11950 | # This file is a shell script that caches the results of configure | |
11951 | # tests run on this system so they can be shared between configure | |
11952 | # scripts and configure runs, see configure's option --config-cache. | |
11953 | # It is not useful on other systems. If it contains results you don't | |
11954 | # want to keep, you may remove or edit it. | |
11955 | # | |
11956 | # config.status only pays attention to the cache file if you give it | |
11957 | # the --recheck option to rerun configure. | |
11958 | # | |
11959 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11960 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11961 | # following values. | |
11962 | ||
11963 | _ACEOF | |
11964 | ||
11965 | # The following way of writing the cache mishandles newlines in values, | |
11966 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 11967 | # So, we kill variables containing newlines. |
6bf9431b BE |
11968 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11969 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
11970 | ( |
11971 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11972 | eval ac_val=\$$ac_var | |
11973 | case $ac_val in #( | |
11974 | *${as_nl}*) | |
11975 | case $ac_var in #( | |
11976 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
11977 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11978 | esac | |
11979 | case $ac_var in #( | |
11980 | _ | IFS | as_nl) ;; #( | |
11981 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11982 | *) { eval $ac_var=; unset $ac_var;} ;; | |
11983 | esac ;; | |
11984 | esac | |
11985 | done | |
11986 | ||
6bf9431b | 11987 | (set) 2>&1 | |
81ecdfbb RW |
11988 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11989 | *${as_nl}ac_space=\ *) | |
11990 | # `set' does not quote correctly, so add quotes: double-quote | |
11991 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6bf9431b BE |
11992 | sed -n \ |
11993 | "s/'/'\\\\''/g; | |
11994 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 11995 | ;; #( |
6bf9431b BE |
11996 | *) |
11997 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 11998 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6bf9431b | 11999 | ;; |
81ecdfbb RW |
12000 | esac | |
12001 | sort | |
12002 | ) | | |
6bf9431b | 12003 | sed ' |
81ecdfbb | 12004 | /^ac_cv_env_/b end |
6bf9431b | 12005 | t clear |
81ecdfbb | 12006 | :clear |
6bf9431b BE |
12007 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12008 | t end | |
81ecdfbb RW |
12009 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12010 | :end' >>confcache | |
12011 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12012 | if test -w "$cache_file"; then | |
12013 | test "x$cache_file" != "x/dev/null" && | |
12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
12015 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
6bf9431b BE |
12016 | cat confcache >$cache_file |
12017 | else | |
81ecdfbb RW |
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
12019 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6bf9431b BE |
12020 | fi |
12021 | fi | |
12022 | rm -f confcache | |
12023 | ||
12024 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12025 | # Let make expand exec_prefix. | |
12026 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12027 | ||
6bf9431b BE |
12028 | DEFS=-DHAVE_CONFIG_H |
12029 | ||
12030 | ac_libobjs= | |
12031 | ac_ltlibobjs= | |
12032 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12033 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
12034 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
12035 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12036 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12037 | # will be set to the directory where LIBOBJS objects are built. | |
12038 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12039 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
6bf9431b BE |
12040 | done |
12041 | LIBOBJS=$ac_libobjs | |
12042 | ||
12043 | LTLIBOBJS=$ac_ltlibobjs | |
12044 | ||
12045 | ||
12046 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
12047 | as_fn_error "conditional \"AMDEP\" was never defined. |
12048 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6bf9431b BE |
12049 | fi |
12050 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
12051 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
12052 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12053 | fi | |
12054 | if test -n "$EXEEXT"; then | |
12055 | am__EXEEXT_TRUE= | |
12056 | am__EXEEXT_FALSE='#' | |
12057 | else | |
12058 | am__EXEEXT_TRUE='#' | |
12059 | am__EXEEXT_FALSE= | |
6bf9431b | 12060 | fi |
81ecdfbb | 12061 | |
6bf9431b | 12062 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
12063 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
12064 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6bf9431b | 12065 | fi |
d5fbea21 | 12066 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
12067 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
12068 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 12069 | fi |
6bf9431b BE |
12070 | |
12071 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 12072 | ac_write_fail=0 |
6bf9431b BE |
12073 | ac_clean_files_save=$ac_clean_files |
12074 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
12076 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12077 | as_write_fail=0 | |
12078 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
6bf9431b BE |
12079 | #! $SHELL |
12080 | # Generated by $as_me. | |
12081 | # Run this file to recreate the current configuration. | |
12082 | # Compiler output produced by configure, useful for debugging | |
12083 | # configure, is in config.log if it exists. | |
12084 | ||
12085 | debug=false | |
12086 | ac_cs_recheck=false | |
12087 | ac_cs_silent=false | |
6bf9431b | 12088 | |
81ecdfbb RW |
12089 | SHELL=\${CONFIG_SHELL-$SHELL} |
12090 | export SHELL | |
12091 | _ASEOF | |
12092 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12093 | ## -------------------- ## | |
12094 | ## M4sh Initialization. ## | |
12095 | ## -------------------- ## | |
6bf9431b | 12096 | |
81ecdfbb RW |
12097 | # Be more Bourne compatible |
12098 | DUALCASE=1; export DUALCASE # for MKS sh | |
12099 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6bf9431b BE |
12100 | emulate sh |
12101 | NULLCMD=: | |
81ecdfbb | 12102 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6bf9431b BE |
12103 | # is contrary to our usage. Disable this feature. |
12104 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
12105 | setopt NO_GLOB_SUBST |
12106 | else | |
12107 | case `(set -o) 2>/dev/null` in #( | |
12108 | *posix*) : | |
12109 | set -o posix ;; #( | |
12110 | *) : | |
12111 | ;; | |
12112 | esac | |
6bf9431b | 12113 | fi |
6bf9431b | 12114 | |
81ecdfbb RW |
12115 | |
12116 | as_nl=' | |
12117 | ' | |
12118 | export as_nl | |
12119 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12120 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12121 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12122 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12123 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
12124 | # but without wasting forks for bash or zsh. | |
12125 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12126 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12127 | as_echo='print -r --' | |
12128 | as_echo_n='print -rn --' | |
12129 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12130 | as_echo='printf %s\n' | |
12131 | as_echo_n='printf %s' | |
12132 | else | |
12133 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12134 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12135 | as_echo_n='/usr/ucb/echo -n' | |
12136 | else | |
12137 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12138 | as_echo_n_body='eval | |
12139 | arg=$1; | |
12140 | case $arg in #( | |
12141 | *"$as_nl"*) | |
12142 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12143 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12144 | esac; | |
12145 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12146 | ' | |
12147 | export as_echo_n_body | |
12148 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12149 | fi | |
12150 | export as_echo_body | |
12151 | as_echo='sh -c $as_echo_body as_echo' | |
12152 | fi | |
12153 | ||
12154 | # The user is always right. | |
12155 | if test "${PATH_SEPARATOR+set}" != set; then | |
12156 | PATH_SEPARATOR=: | |
12157 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12158 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12159 | PATH_SEPARATOR=';' | |
12160 | } | |
6bf9431b BE |
12161 | fi |
12162 | ||
12163 | ||
81ecdfbb RW |
12164 | # IFS |
12165 | # We need space, tab and new line, in precisely that order. Quoting is | |
12166 | # there to prevent editors from complaining about space-tab. | |
12167 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12168 | # splitting by setting IFS to empty value.) | |
12169 | IFS=" "" $as_nl" | |
12170 | ||
12171 | # Find who we are. Look in the path if we contain no directory separator. | |
12172 | case $0 in #(( | |
12173 | *[\\/]* ) as_myself=$0 ;; | |
12174 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12175 | for as_dir in $PATH | |
12176 | do | |
12177 | IFS=$as_save_IFS | |
12178 | test -z "$as_dir" && as_dir=. | |
12179 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12180 | done | |
12181 | IFS=$as_save_IFS | |
12182 | ||
12183 | ;; | |
12184 | esac | |
12185 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12186 | # in which case we are not to be found in the path. | |
12187 | if test "x$as_myself" = x; then | |
12188 | as_myself=$0 | |
12189 | fi | |
12190 | if test ! -f "$as_myself"; then | |
12191 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12192 | exit 1 | |
12193 | fi | |
12194 | ||
12195 | # Unset variables that we do not need and which cause bugs (e.g. in | |
12196 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12197 | # suppresses any "Segmentation fault" message there. '((' could | |
12198 | # trigger a bug in pdksh 5.2.14. | |
12199 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12200 | do eval test x\${$as_var+set} = xset \ | |
12201 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
12202 | done | |
6bf9431b BE |
12203 | PS1='$ ' |
12204 | PS2='> ' | |
12205 | PS4='+ ' | |
12206 | ||
12207 | # NLS nuisances. | |
81ecdfbb RW |
12208 | LC_ALL=C |
12209 | export LC_ALL | |
12210 | LANGUAGE=C | |
12211 | export LANGUAGE | |
12212 | ||
12213 | # CDPATH. | |
12214 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12215 | ||
12216 | ||
12217 | # as_fn_error ERROR [LINENO LOG_FD] | |
12218 | # --------------------------------- | |
12219 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12220 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12221 | # script with status $?, using 1 if that was 0. | |
12222 | as_fn_error () | |
12223 | { | |
12224 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
12225 | if test "$3"; then | |
12226 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12227 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
6bf9431b | 12228 | fi |
81ecdfbb RW |
12229 | $as_echo "$as_me: error: $1" >&2 |
12230 | as_fn_exit $as_status | |
12231 | } # as_fn_error | |
12232 | ||
12233 | ||
12234 | # as_fn_set_status STATUS | |
12235 | # ----------------------- | |
12236 | # Set $? to STATUS, without forking. | |
12237 | as_fn_set_status () | |
12238 | { | |
12239 | return $1 | |
12240 | } # as_fn_set_status | |
6bf9431b | 12241 | |
81ecdfbb RW |
12242 | # as_fn_exit STATUS |
12243 | # ----------------- | |
12244 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12245 | as_fn_exit () | |
12246 | { | |
12247 | set +e | |
12248 | as_fn_set_status $1 | |
12249 | exit $1 | |
12250 | } # as_fn_exit | |
12251 | ||
12252 | # as_fn_unset VAR | |
12253 | # --------------- | |
12254 | # Portably unset VAR. | |
12255 | as_fn_unset () | |
12256 | { | |
12257 | { eval $1=; unset $1;} | |
12258 | } | |
12259 | as_unset=as_fn_unset | |
12260 | # as_fn_append VAR VALUE | |
12261 | # ---------------------- | |
12262 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12263 | # advantage of any shell optimizations that allow amortized linear growth over | |
12264 | # repeated appends, instead of the typical quadratic growth present in naive | |
12265 | # implementations. | |
12266 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12267 | eval 'as_fn_append () | |
12268 | { | |
12269 | eval $1+=\$2 | |
12270 | }' | |
12271 | else | |
12272 | as_fn_append () | |
12273 | { | |
12274 | eval $1=\$$1\$2 | |
12275 | } | |
12276 | fi # as_fn_append | |
12277 | ||
12278 | # as_fn_arith ARG... | |
12279 | # ------------------ | |
12280 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12281 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12282 | # must be portable across $(()) and expr. | |
12283 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12284 | eval 'as_fn_arith () | |
12285 | { | |
12286 | as_val=$(( $* )) | |
12287 | }' | |
12288 | else | |
12289 | as_fn_arith () | |
12290 | { | |
12291 | as_val=`expr "$@" || test $? -eq 1` | |
12292 | } | |
12293 | fi # as_fn_arith | |
12294 | ||
12295 | ||
12296 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
12297 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bf9431b BE |
12298 | as_expr=expr |
12299 | else | |
12300 | as_expr=false | |
12301 | fi | |
12302 | ||
81ecdfbb | 12303 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bf9431b BE |
12304 | as_basename=basename |
12305 | else | |
12306 | as_basename=false | |
252b5132 | 12307 | fi |
252b5132 | 12308 | |
81ecdfbb RW |
12309 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12310 | as_dirname=dirname | |
12311 | else | |
12312 | as_dirname=false | |
12313 | fi | |
252b5132 | 12314 | |
81ecdfbb | 12315 | as_me=`$as_basename -- "$0" || |
6bf9431b BE |
12316 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12317 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
12318 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
12319 | $as_echo X/"$0" | | |
12320 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12321 | s//\1/ | |
12322 | q | |
12323 | } | |
12324 | /^X\/\(\/\/\)$/{ | |
12325 | s//\1/ | |
12326 | q | |
12327 | } | |
12328 | /^X\/\(\/\).*/{ | |
12329 | s//\1/ | |
12330 | q | |
12331 | } | |
12332 | s/.*/./; q'` | |
0ab6f085 | 12333 | |
0ab6f085 AM |
12334 | # Avoid depending upon Character Ranges. |
12335 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12336 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12337 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12338 | as_cr_digits='0123456789' | |
12339 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12340 | ||
81ecdfbb RW |
12341 | ECHO_C= ECHO_N= ECHO_T= |
12342 | case `echo -n x` in #((((( | |
12343 | -n*) | |
12344 | case `echo 'xy\c'` in | |
12345 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12346 | xy) ECHO_C='\c';; | |
12347 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12348 | ECHO_T=' ';; | |
12349 | esac;; | |
12350 | *) | |
12351 | ECHO_N='-n';; | |
6bf9431b BE |
12352 | esac |
12353 | ||
81ecdfbb RW |
12354 | rm -f conf$$ conf$$.exe conf$$.file |
12355 | if test -d conf$$.dir; then | |
12356 | rm -f conf$$.dir/conf$$.file | |
0eee5820 | 12357 | else |
81ecdfbb RW |
12358 | rm -f conf$$.dir |
12359 | mkdir conf$$.dir 2>/dev/null | |
0eee5820 | 12360 | fi |
81ecdfbb RW |
12361 | if (echo >conf$$.file) 2>/dev/null; then |
12362 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
0ab6f085 | 12363 | as_ln_s='ln -s' |
81ecdfbb RW |
12364 | # ... but there are two gotchas: |
12365 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12366 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12367 | # In both cases, we have to default to `cp -p'. | |
12368 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12369 | as_ln_s='cp -p' | |
12370 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12371 | as_ln_s=ln | |
12372 | else | |
12373 | as_ln_s='cp -p' | |
0ab6f085 | 12374 | fi |
6bf9431b BE |
12375 | else |
12376 | as_ln_s='cp -p' | |
0eee5820 | 12377 | fi |
81ecdfbb RW |
12378 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12379 | rmdir conf$$.dir 2>/dev/null | |
12380 | ||
12381 | ||
12382 | # as_fn_mkdir_p | |
12383 | # ------------- | |
12384 | # Create "$as_dir" as a directory, including parents if necessary. | |
12385 | as_fn_mkdir_p () | |
12386 | { | |
12387 | ||
12388 | case $as_dir in #( | |
12389 | -*) as_dir=./$as_dir;; | |
12390 | esac | |
12391 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12392 | as_dirs= | |
12393 | while :; do | |
12394 | case $as_dir in #( | |
12395 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12396 | *) as_qdir=$as_dir;; | |
12397 | esac | |
12398 | as_dirs="'$as_qdir' $as_dirs" | |
12399 | as_dir=`$as_dirname -- "$as_dir" || | |
12400 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12401 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12402 | X"$as_dir" : 'X\(//\)$' \| \ | |
12403 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12404 | $as_echo X"$as_dir" | | |
12405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12406 | s//\1/ | |
12407 | q | |
12408 | } | |
12409 | /^X\(\/\/\)[^/].*/{ | |
12410 | s//\1/ | |
12411 | q | |
12412 | } | |
12413 | /^X\(\/\/\)$/{ | |
12414 | s//\1/ | |
12415 | q | |
12416 | } | |
12417 | /^X\(\/\).*/{ | |
12418 | s//\1/ | |
12419 | q | |
12420 | } | |
12421 | s/.*/./; q'` | |
12422 | test -d "$as_dir" && break | |
12423 | done | |
12424 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12425 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
6bf9431b | 12426 | |
81ecdfbb RW |
12427 | |
12428 | } # as_fn_mkdir_p | |
6bf9431b | 12429 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 12430 | as_mkdir_p='mkdir -p "$as_dir"' |
0ab6f085 AM |
12431 | else |
12432 | test -d ./-p && rmdir ./-p | |
12433 | as_mkdir_p=false | |
1b9750d6 | 12434 | fi |
0ab6f085 | 12435 | |
81ecdfbb RW |
12436 | if test -x / >/dev/null 2>&1; then |
12437 | as_test_x='test -x' | |
12438 | else | |
12439 | if ls -dL / >/dev/null 2>&1; then | |
12440 | as_ls_L_option=L | |
12441 | else | |
12442 | as_ls_L_option= | |
12443 | fi | |
12444 | as_test_x=' | |
12445 | eval sh -c '\'' | |
12446 | if test -d "$1"; then | |
12447 | test -d "$1/."; | |
12448 | else | |
12449 | case $1 in #( | |
12450 | -*)set "./$1";; | |
12451 | esac; | |
12452 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
12453 | ???[sx]*):;;*)false;;esac;fi | |
12454 | '\'' sh | |
12455 | ' | |
12456 | fi | |
12457 | as_executable_p=$as_test_x | |
0eee5820 | 12458 | |
6bf9431b BE |
12459 | # Sed expression to map a string onto a valid CPP name. |
12460 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12461 | ||
12462 | # Sed expression to map a string onto a valid variable name. | |
12463 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12464 | ||
1b9750d6 | 12465 | |
6bf9431b | 12466 | exec 6>&1 |
81ecdfbb RW |
12467 | ## ----------------------------------- ## |
12468 | ## Main body of $CONFIG_STATUS script. ## | |
12469 | ## ----------------------------------- ## | |
12470 | _ASEOF | |
12471 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
6bf9431b | 12472 | |
81ecdfbb RW |
12473 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12474 | # Save the log message, to keep $0 and so on meaningful, and to | |
6bf9431b | 12475 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
12476 | # values after options handling. |
12477 | ac_log=" | |
6bf9431b | 12478 | This file was extended by $as_me, which was |
81ecdfbb | 12479 | generated by GNU Autoconf 2.64. Invocation command line was |
6bf9431b BE |
12480 | |
12481 | CONFIG_FILES = $CONFIG_FILES | |
12482 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12483 | CONFIG_LINKS = $CONFIG_LINKS | |
12484 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12485 | $ $0 $@ | |
12486 | ||
81ecdfbb RW |
12487 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12488 | " | |
12489 | ||
6bf9431b BE |
12490 | _ACEOF |
12491 | ||
81ecdfbb RW |
12492 | case $ac_config_files in *" |
12493 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12494 | esac | |
a2d91340 | 12495 | |
81ecdfbb RW |
12496 | case $ac_config_headers in *" |
12497 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12498 | esac | |
0ab6f085 | 12499 | |
0ab6f085 | 12500 | |
81ecdfbb RW |
12501 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12502 | # Files that config.status was made for. | |
12503 | config_files="$ac_config_files" | |
12504 | config_headers="$ac_config_headers" | |
12505 | config_commands="$ac_config_commands" | |
a2d91340 | 12506 | |
81ecdfbb | 12507 | _ACEOF |
0ab6f085 | 12508 | |
81ecdfbb | 12509 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6bf9431b | 12510 | ac_cs_usage="\ |
81ecdfbb RW |
12511 | \`$as_me' instantiates files and other configuration actions |
12512 | from templates according to the current configuration. Unless the files | |
12513 | and actions are specified as TAGs, all are instantiated by default. | |
6bf9431b | 12514 | |
81ecdfbb | 12515 | Usage: $0 [OPTION]... [TAG]... |
6bf9431b BE |
12516 | |
12517 | -h, --help print this help, then exit | |
81ecdfbb RW |
12518 | -V, --version print version number and configuration settings, then exit |
12519 | -q, --quiet, --silent | |
12520 | do not print progress messages | |
6bf9431b BE |
12521 | -d, --debug don't remove temporary files |
12522 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
12523 | --file=FILE[:TEMPLATE] |
12524 | instantiate the configuration file FILE | |
12525 | --header=FILE[:TEMPLATE] | |
12526 | instantiate the configuration header FILE | |
6bf9431b BE |
12527 | |
12528 | Configuration files: | |
12529 | $config_files | |
12530 | ||
12531 | Configuration headers: | |
12532 | $config_headers | |
12533 | ||
12534 | Configuration commands: | |
12535 | $config_commands | |
12536 | ||
81ecdfbb | 12537 | Report bugs to the package provider." |
0ab6f085 | 12538 | |
81ecdfbb RW |
12539 | _ACEOF |
12540 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6bf9431b BE |
12541 | ac_cs_version="\\ |
12542 | config.status | |
81ecdfbb RW |
12543 | configured by $0, generated by GNU Autoconf 2.64, |
12544 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
6bf9431b | 12545 | |
81ecdfbb | 12546 | Copyright (C) 2009 Free Software Foundation, Inc. |
6bf9431b BE |
12547 | This config.status script is free software; the Free Software Foundation |
12548 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
12549 | |
12550 | ac_pwd='$ac_pwd' | |
12551 | srcdir='$srcdir' | |
12552 | INSTALL='$INSTALL' | |
12553 | MKDIR_P='$MKDIR_P' | |
12554 | AWK='$AWK' | |
12555 | test -n "\$AWK" || AWK=awk | |
6bf9431b BE |
12556 | _ACEOF |
12557 | ||
81ecdfbb RW |
12558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12559 | # The default lists apply if the user does not specify any file. | |
6bf9431b BE |
12560 | ac_need_defaults=: |
12561 | while test $# != 0 | |
12562 | do | |
12563 | case $1 in | |
12564 | --*=*) | |
81ecdfbb RW |
12565 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12566 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6bf9431b | 12567 | ac_shift=: |
252b5132 | 12568 | ;; |
81ecdfbb | 12569 | *) |
6bf9431b BE |
12570 | ac_option=$1 |
12571 | ac_optarg=$2 | |
12572 | ac_shift=shift | |
252b5132 | 12573 | ;; |
6bf9431b | 12574 | esac |
252b5132 | 12575 | |
6bf9431b BE |
12576 | case $ac_option in |
12577 | # Handling of the options. | |
6bf9431b BE |
12578 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12579 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
12580 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
12581 | $as_echo "$ac_cs_version"; exit ;; | |
12582 | --debug | --debu | --deb | --de | --d | -d ) | |
6bf9431b BE |
12583 | debug=: ;; |
12584 | --file | --fil | --fi | --f ) | |
12585 | $ac_shift | |
81ecdfbb RW |
12586 | case $ac_optarg in |
12587 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12588 | esac | |
12589 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
6bf9431b BE |
12590 | ac_need_defaults=false;; |
12591 | --header | --heade | --head | --hea ) | |
12592 | $ac_shift | |
81ecdfbb RW |
12593 | case $ac_optarg in |
12594 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12595 | esac | |
12596 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6bf9431b | 12597 | ac_need_defaults=false;; |
81ecdfbb RW |
12598 | --he | --h) |
12599 | # Conflict between --help and --header | |
12600 | as_fn_error "ambiguous option: \`$1' | |
12601 | Try \`$0 --help' for more information.";; | |
12602 | --help | --hel | -h ) | |
12603 | $as_echo "$ac_cs_usage"; exit ;; | |
6bf9431b BE |
12604 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12605 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12606 | ac_cs_silent=: ;; | |
252b5132 | 12607 | |
6bf9431b | 12608 | # This is an error. |
81ecdfbb RW |
12609 | -*) as_fn_error "unrecognized option: \`$1' |
12610 | Try \`$0 --help' for more information." ;; | |
252b5132 | 12611 | |
81ecdfbb RW |
12612 | *) as_fn_append ac_config_targets " $1" |
12613 | ac_need_defaults=false ;; | |
252b5132 | 12614 | |
6bf9431b BE |
12615 | esac |
12616 | shift | |
12617 | done | |
252b5132 | 12618 | |
6bf9431b | 12619 | ac_configure_extra_args= |
252b5132 | 12620 | |
6bf9431b BE |
12621 | if $ac_cs_silent; then |
12622 | exec 6>/dev/null | |
12623 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12624 | fi | |
252b5132 | 12625 | |
6bf9431b | 12626 | _ACEOF |
81ecdfbb | 12627 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6bf9431b | 12628 | if \$ac_cs_recheck; then |
81ecdfbb RW |
12629 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
12630 | shift | |
12631 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12632 | CONFIG_SHELL='$SHELL' | |
12633 | export CONFIG_SHELL | |
12634 | exec "\$@" | |
6bf9431b BE |
12635 | fi |
12636 | ||
12637 | _ACEOF | |
81ecdfbb RW |
12638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12639 | exec 5>>config.log | |
12640 | { | |
12641 | echo | |
12642 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12643 | ## Running $as_me. ## | |
12644 | _ASBOX | |
12645 | $as_echo "$ac_log" | |
12646 | } >&5 | |
6bf9431b | 12647 | |
81ecdfbb RW |
12648 | _ACEOF |
12649 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
252b5132 | 12650 | # |
81ecdfbb | 12651 | # INIT-COMMANDS |
252b5132 | 12652 | # |
6bf9431b | 12653 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
12654 | |
12655 | ||
12656 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12657 | # if CDPATH is set. | |
12658 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12659 | ||
12660 | sed_quote_subst='$sed_quote_subst' | |
12661 | double_quote_subst='$double_quote_subst' | |
12662 | delay_variable_subst='$delay_variable_subst' | |
12663 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12664 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
12665 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
12666 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12667 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
12668 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
12669 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12670 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
12671 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12672 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12673 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
12674 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12675 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
12676 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
12677 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12678 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12679 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12680 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
12681 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
12682 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
12683 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
12684 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
12685 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
12686 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
12687 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
12688 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
12689 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12690 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
b214d478 | 12691 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
12692 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
12693 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
12694 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
12695 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12696 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
12697 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
12698 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12699 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12700 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12701 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
12702 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12703 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
12704 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
12705 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
12706 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
12707 | 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"`' | |
b214d478 | 12708 | 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"`' |
d7040cdb SE |
12709 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
12710 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
12711 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
12712 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
12713 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12714 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
12715 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
12716 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12717 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
12718 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
b214d478 SE |
12719 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
12720 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
12721 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
12722 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
12723 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
d7040cdb SE |
12724 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
12725 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12726 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12727 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
12728 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
12729 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12730 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12731 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
12732 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12733 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12734 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12735 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12736 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12737 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12738 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12739 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12740 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12741 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12742 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12743 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
12744 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
12745 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
12746 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
12747 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12748 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
12749 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12750 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
12751 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
12752 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
12753 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12754 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12755 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12756 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12757 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12758 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
12759 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
12760 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12761 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
12762 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12763 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12764 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12765 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12766 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12767 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12768 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12769 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12770 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12771 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
12772 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
12773 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12774 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12775 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
12776 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
12777 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
12778 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12779 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12780 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12781 | ||
12782 | LTCC='$LTCC' | |
12783 | LTCFLAGS='$LTCFLAGS' | |
12784 | compiler='$compiler_DEFAULT' | |
12785 | ||
12786 | # Quote evaled strings. | |
12787 | for var in SED \ | |
12788 | GREP \ | |
12789 | EGREP \ | |
12790 | FGREP \ | |
12791 | LD \ | |
12792 | NM \ | |
12793 | LN_S \ | |
12794 | lt_SP2NL \ | |
12795 | lt_NL2SP \ | |
12796 | reload_flag \ | |
b214d478 | 12797 | OBJDUMP \ |
d7040cdb SE |
12798 | deplibs_check_method \ |
12799 | file_magic_cmd \ | |
12800 | AR \ | |
12801 | AR_FLAGS \ | |
12802 | STRIP \ | |
12803 | RANLIB \ | |
12804 | CC \ | |
12805 | CFLAGS \ | |
12806 | compiler \ | |
12807 | lt_cv_sys_global_symbol_pipe \ | |
12808 | lt_cv_sys_global_symbol_to_cdecl \ | |
12809 | lt_cv_sys_global_symbol_to_c_name_address \ | |
b214d478 | 12810 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
12811 | SHELL \ |
12812 | ECHO \ | |
12813 | lt_prog_compiler_no_builtin_flag \ | |
12814 | lt_prog_compiler_wl \ | |
12815 | lt_prog_compiler_pic \ | |
12816 | lt_prog_compiler_static \ | |
12817 | lt_cv_prog_compiler_c_o \ | |
12818 | need_locks \ | |
b214d478 SE |
12819 | DSYMUTIL \ |
12820 | NMEDIT \ | |
12821 | LIPO \ | |
12822 | OTOOL \ | |
12823 | OTOOL64 \ | |
d7040cdb SE |
12824 | shrext_cmds \ |
12825 | export_dynamic_flag_spec \ | |
12826 | whole_archive_flag_spec \ | |
12827 | compiler_needs_object \ | |
12828 | with_gnu_ld \ | |
12829 | allow_undefined_flag \ | |
12830 | no_undefined_flag \ | |
12831 | hardcode_libdir_flag_spec \ | |
12832 | hardcode_libdir_flag_spec_ld \ | |
12833 | hardcode_libdir_separator \ | |
12834 | fix_srcfile_path \ | |
12835 | exclude_expsyms \ | |
12836 | include_expsyms \ | |
12837 | file_list_spec \ | |
12838 | variables_saved_for_relink \ | |
12839 | libname_spec \ | |
12840 | library_names_spec \ | |
12841 | soname_spec \ | |
12842 | finish_eval \ | |
12843 | old_striplib \ | |
12844 | striplib; do | |
12845 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12846 | *[\\\\\\\`\\"\\\$]*) | |
12847 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12848 | ;; | |
12849 | *) | |
12850 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12851 | ;; | |
12852 | esac | |
12853 | done | |
12854 | ||
12855 | # Double-quote double-evaled strings. | |
12856 | for var in reload_cmds \ | |
12857 | old_postinstall_cmds \ | |
12858 | old_postuninstall_cmds \ | |
12859 | old_archive_cmds \ | |
12860 | extract_expsyms_cmds \ | |
12861 | old_archive_from_new_cmds \ | |
12862 | old_archive_from_expsyms_cmds \ | |
12863 | archive_cmds \ | |
12864 | archive_expsym_cmds \ | |
12865 | module_cmds \ | |
12866 | module_expsym_cmds \ | |
12867 | export_symbols_cmds \ | |
12868 | prelink_cmds \ | |
12869 | postinstall_cmds \ | |
12870 | postuninstall_cmds \ | |
12871 | finish_cmds \ | |
12872 | sys_lib_search_path_spec \ | |
12873 | sys_lib_dlsearch_path_spec; do | |
12874 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12875 | *[\\\\\\\`\\"\\\$]*) | |
12876 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
12877 | ;; | |
12878 | *) | |
12879 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12880 | ;; | |
12881 | esac | |
12882 | done | |
12883 | ||
12884 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
12885 | case \$lt_ECHO in | |
12886 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
12887 | ;; | |
12888 | esac | |
12889 | ||
12890 | ac_aux_dir='$ac_aux_dir' | |
12891 | xsi_shell='$xsi_shell' | |
12892 | lt_shell_append='$lt_shell_append' | |
12893 | ||
12894 | # See if we are running on zsh, and set the options which allow our | |
12895 | # commands through without removal of \ escapes INIT. | |
12896 | if test -n "\${ZSH_VERSION+set}" ; then | |
12897 | setopt NO_GLOB_SUBST | |
12898 | fi | |
12899 | ||
12900 | ||
12901 | PACKAGE='$PACKAGE' | |
12902 | VERSION='$VERSION' | |
12903 | TIMESTAMP='$TIMESTAMP' | |
12904 | RM='$RM' | |
12905 | ofile='$ofile' | |
12906 | ||
12907 | ||
12908 | ||
20e95c23 DJ |
12909 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
12910 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
12911 | # from automake. | |
12912 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
12913 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
12914 | LINGUAS="${LINGUAS-%UNSET%}" | |
6bf9431b BE |
12915 | |
12916 | ||
12917 | _ACEOF | |
12918 | ||
81ecdfbb | 12919 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1b9750d6 | 12920 | |
81ecdfbb | 12921 | # Handling of arguments. |
6bf9431b | 12922 | for ac_config_target in $ac_config_targets |
252b5132 | 12923 | do |
81ecdfbb RW |
12924 | case $ac_config_target in |
12925 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12926 | "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;; | |
12927 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12928 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
12929 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12930 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
12931 | ||
12932 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
252b5132 RH |
12933 | esac |
12934 | done | |
12935 | ||
81ecdfbb | 12936 | |
6bf9431b BE |
12937 | # If the user did not use the arguments to specify the items to instantiate, |
12938 | # then the envvar interface is used. Set only those that are not. | |
12939 | # We use the long form for the default assignment because of an extremely | |
12940 | # bizarre bug on SunOS 4.1.3. | |
12941 | if $ac_need_defaults; then | |
12942 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12943 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12944 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12945 | fi | |
12946 | ||
12947 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 12948 | # simply because there is no reason against having it here, and in addition, |
6bf9431b | 12949 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
12950 | # Hook for its removal unless debugging. |
12951 | # Note that there is a small window in which the directory will not be cleaned: | |
12952 | # after its creation but before its name has been assigned to `$tmp'. | |
6bf9431b BE |
12953 | $debug || |
12954 | { | |
81ecdfbb RW |
12955 | tmp= |
12956 | trap 'exit_status=$? | |
12957 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12958 | ' 0 | |
12959 | trap 'as_fn_exit 1' 1 2 13 15 | |
6bf9431b | 12960 | } |
6bf9431b | 12961 | # Create a (secure) tmp directory for tmp files. |
252b5132 | 12962 | |
6bf9431b | 12963 | { |
81ecdfbb | 12964 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
6bf9431b BE |
12965 | test -n "$tmp" && test -d "$tmp" |
12966 | } || | |
12967 | { | |
81ecdfbb RW |
12968 | tmp=./conf$$-$RANDOM |
12969 | (umask 077 && mkdir "$tmp") | |
12970 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
12971 | ||
12972 | # Set up the scripts for CONFIG_FILES section. | |
12973 | # No need to generate them if there are no CONFIG_FILES. | |
12974 | # This happens for instance with `./config.status config.h'. | |
12975 | if test -n "$CONFIG_FILES"; then | |
12976 | ||
12977 | ||
12978 | ac_cr=`echo X | tr X '\015'` | |
12979 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12980 | # But we know of no other shell where ac_cr would be empty at this | |
12981 | # point, so we can use a bashism as a fallback. | |
12982 | if test "x$ac_cr" = x; then | |
12983 | eval ac_cr=\$\'\\r\' | |
12984 | fi | |
12985 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12986 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12987 | ac_cs_awk_cr='\r' | |
12988 | else | |
12989 | ac_cs_awk_cr=$ac_cr | |
12990 | fi | |
12991 | ||
12992 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
12993 | _ACEOF | |
12994 | ||
12995 | ||
12996 | { | |
12997 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12998 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12999 | echo "_ACEOF" | |
13000 | } >conf$$subs.sh || | |
13001 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13002 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
13003 | ac_delim='%!_!# ' | |
13004 | for ac_last_try in false false false false false :; do | |
13005 | . ./conf$$subs.sh || | |
13006 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13007 | ||
13008 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13009 | if test $ac_delim_n = $ac_delim_num; then | |
13010 | break | |
13011 | elif $ac_last_try; then | |
13012 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13013 | else | |
13014 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13015 | fi | |
13016 | done | |
13017 | rm -f conf$$subs.sh | |
13018 | ||
13019 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13020 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13021 | _ACEOF | |
13022 | sed -n ' | |
13023 | h | |
13024 | s/^/S["/; s/!.*/"]=/ | |
13025 | p | |
13026 | g | |
13027 | s/^[^!]*!// | |
13028 | :repl | |
13029 | t repl | |
13030 | s/'"$ac_delim"'$// | |
13031 | t delim | |
13032 | :nl | |
13033 | h | |
13034 | s/\(.\{148\}\).*/\1/ | |
13035 | t more1 | |
13036 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13037 | p | |
13038 | n | |
13039 | b repl | |
13040 | :more1 | |
13041 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13042 | p | |
13043 | g | |
13044 | s/.\{148\}// | |
13045 | t nl | |
13046 | :delim | |
13047 | h | |
13048 | s/\(.\{148\}\).*/\1/ | |
13049 | t more2 | |
13050 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13051 | p | |
13052 | b | |
13053 | :more2 | |
13054 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13055 | p | |
13056 | g | |
13057 | s/.\{148\}// | |
13058 | t delim | |
13059 | ' <conf$$subs.awk | sed ' | |
13060 | /^[^""]/{ | |
13061 | N | |
13062 | s/\n// | |
13063 | } | |
13064 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13065 | rm -f conf$$subs.awk | |
13066 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13067 | _ACAWK | |
13068 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13069 | for (key in S) S_is_set[key] = 1 | |
13070 | FS = "\a" | |
13071 | ||
13072 | } | |
6bf9431b | 13073 | { |
81ecdfbb RW |
13074 | line = $ 0 |
13075 | nfields = split(line, field, "@") | |
13076 | substed = 0 | |
13077 | len = length(field[1]) | |
13078 | for (i = 2; i < nfields; i++) { | |
13079 | key = field[i] | |
13080 | keylen = length(key) | |
13081 | if (S_is_set[key]) { | |
13082 | value = S[key] | |
13083 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13084 | len += length(value) + length(field[++i]) | |
13085 | substed = 1 | |
13086 | } else | |
13087 | len += 1 + keylen | |
13088 | } | |
13089 | ||
13090 | print line | |
6bf9431b | 13091 | } |
252b5132 | 13092 | |
81ecdfbb RW |
13093 | _ACAWK |
13094 | _ACEOF | |
13095 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13096 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13097 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13098 | else | |
13099 | cat | |
13100 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13101 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
0ab6f085 AM |
13102 | _ACEOF |
13103 | ||
81ecdfbb RW |
13104 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13105 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13106 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13107 | # (actually we leave an empty line to preserve line numbers). | |
13108 | if test "x$srcdir" = x.; then | |
13109 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13110 | s/:*\$(srcdir):*/:/ | |
13111 | s/:*\${srcdir}:*/:/ | |
13112 | s/:*@srcdir@:*/:/ | |
13113 | s/^\([^=]*=[ ]*\):*/\1/ | |
13114 | s/:*$// | |
13115 | s/^[^=]*=[ ]*$// | |
13116 | }' | |
13117 | fi | |
13118 | ||
13119 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13120 | fi # test -n "$CONFIG_FILES" | |
0ab6f085 | 13121 | |
81ecdfbb RW |
13122 | # Set up the scripts for CONFIG_HEADERS section. |
13123 | # No need to generate them if there are no CONFIG_HEADERS. | |
13124 | # This happens for instance with `./config.status Makefile'. | |
13125 | if test -n "$CONFIG_HEADERS"; then | |
13126 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13127 | BEGIN { | |
13128 | _ACEOF | |
6bf9431b | 13129 | |
81ecdfbb RW |
13130 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
13131 | # here-document in config.status, that substitutes the proper values into | |
13132 | # config.h.in to produce config.h. | |
1b9750d6 | 13133 | |
81ecdfbb RW |
13134 | # Create a delimiter string that does not exist in confdefs.h, to ease |
13135 | # handling of long lines. | |
13136 | ac_delim='%!_!# ' | |
13137 | for ac_last_try in false false :; do | |
13138 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13139 | if test -z "$ac_t"; then | |
13140 | break | |
13141 | elif $ac_last_try; then | |
13142 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
13143 | else | |
13144 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13145 | fi | |
13146 | done | |
13147 | ||
13148 | # For the awk script, D is an array of macro values keyed by name, | |
13149 | # likewise P contains macro parameters if any. Preserve backslash | |
13150 | # newline sequences. | |
13151 | ||
13152 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13153 | sed -n ' | |
13154 | s/.\{148\}/&'"$ac_delim"'/g | |
13155 | t rset | |
13156 | :rset | |
13157 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13158 | t def | |
13159 | d | |
13160 | :def | |
13161 | s/\\$// | |
13162 | t bsnl | |
13163 | s/["\\]/\\&/g | |
13164 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13165 | D["\1"]=" \3"/p | |
13166 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13167 | d | |
13168 | :bsnl | |
13169 | s/["\\]/\\&/g | |
13170 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13171 | D["\1"]=" \3\\\\\\n"\\/p | |
13172 | t cont | |
13173 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13174 | t cont | |
13175 | d | |
13176 | :cont | |
13177 | n | |
13178 | s/.\{148\}/&'"$ac_delim"'/g | |
13179 | t clear | |
13180 | :clear | |
13181 | s/\\$// | |
13182 | t bsnlc | |
13183 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13184 | d | |
13185 | :bsnlc | |
13186 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13187 | b cont | |
13188 | ' <confdefs.h | sed ' | |
13189 | s/'"$ac_delim"'/"\\\ | |
13190 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13191 | ||
13192 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13193 | for (key in D) D_is_set[key] = 1 | |
13194 | FS = "\a" | |
13195 | } | |
13196 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13197 | line = \$ 0 | |
13198 | split(line, arg, " ") | |
13199 | if (arg[1] == "#") { | |
13200 | defundef = arg[2] | |
13201 | mac1 = arg[3] | |
13202 | } else { | |
13203 | defundef = substr(arg[1], 2) | |
13204 | mac1 = arg[2] | |
13205 | } | |
13206 | split(mac1, mac2, "(") #) | |
13207 | macro = mac2[1] | |
13208 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13209 | if (D_is_set[macro]) { | |
13210 | # Preserve the white space surrounding the "#". | |
13211 | print prefix "define", macro P[macro] D[macro] | |
13212 | next | |
13213 | } else { | |
13214 | # Replace #undef with comments. This is necessary, for example, | |
13215 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13216 | # on some systems where configure will not decide to define it. | |
13217 | if (defundef == "undef") { | |
13218 | print "/*", prefix defundef, macro, "*/" | |
13219 | next | |
13220 | } | |
13221 | } | |
13222 | } | |
13223 | { print } | |
13224 | _ACAWK | |
1b9750d6 | 13225 | _ACEOF |
81ecdfbb RW |
13226 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13227 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
13228 | fi # test -n "$CONFIG_HEADERS" | |
1b9750d6 | 13229 | |
81ecdfbb RW |
13230 | |
13231 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
13232 | shift | |
13233 | for ac_tag | |
13234 | do | |
13235 | case $ac_tag in | |
13236 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13237 | esac | |
13238 | case $ac_mode$ac_tag in | |
13239 | :[FHL]*:*);; | |
13240 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
13241 | :[FH]-) ac_tag=-:-;; | |
13242 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13243 | esac | |
13244 | ac_save_IFS=$IFS | |
13245 | IFS=: | |
13246 | set x $ac_tag | |
13247 | IFS=$ac_save_IFS | |
13248 | shift | |
13249 | ac_file=$1 | |
13250 | shift | |
13251 | ||
13252 | case $ac_mode in | |
13253 | :L) ac_source=$1;; | |
13254 | :[FH]) | |
13255 | ac_file_inputs= | |
13256 | for ac_f | |
13257 | do | |
13258 | case $ac_f in | |
13259 | -) ac_f="$tmp/stdin";; | |
13260 | *) # Look for the file first in the build tree, then in the source tree | |
13261 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13262 | # because $ac_f cannot contain `:'. | |
13263 | test -f "$ac_f" || | |
13264 | case $ac_f in | |
13265 | [\\/$]*) false;; | |
13266 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13267 | esac || | |
13268 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
13269 | esac | |
13270 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13271 | as_fn_append ac_file_inputs " '$ac_f'" | |
13272 | done | |
13273 | ||
13274 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13275 | # use $as_me), people would be surprised to read: | |
13276 | # /* config.h. Generated by config.status. */ | |
13277 | configure_input='Generated from '` | |
13278 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13279 | `' by configure.' | |
13280 | if test x"$ac_file" != x-; then | |
13281 | configure_input="$ac_file. $configure_input" | |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
13283 | $as_echo "$as_me: creating $ac_file" >&6;} | |
0ab6f085 | 13284 | fi |
81ecdfbb RW |
13285 | # Neutralize special characters interpreted by sed in replacement strings. |
13286 | case $configure_input in #( | |
13287 | *\&* | *\|* | *\\* ) | |
13288 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13289 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13290 | *) ac_sed_conf_input=$configure_input;; | |
13291 | esac | |
1b9750d6 | 13292 | |
81ecdfbb RW |
13293 | case $ac_tag in |
13294 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
13295 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
13296 | esac | |
13297 | ;; | |
252b5132 RH |
13298 | esac |
13299 | ||
81ecdfbb | 13300 | ac_dir=`$as_dirname -- "$ac_file" || |
6bf9431b BE |
13301 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13302 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13303 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
13304 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
13305 | $as_echo X"$ac_file" | | |
13306 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13307 | s//\1/ | |
13308 | q | |
13309 | } | |
13310 | /^X\(\/\/\)[^/].*/{ | |
13311 | s//\1/ | |
13312 | q | |
13313 | } | |
13314 | /^X\(\/\/\)$/{ | |
13315 | s//\1/ | |
13316 | q | |
13317 | } | |
13318 | /^X\(\/\).*/{ | |
13319 | s//\1/ | |
13320 | q | |
13321 | } | |
13322 | s/.*/./; q'` | |
13323 | as_dir="$ac_dir"; as_fn_mkdir_p | |
6bf9431b BE |
13324 | ac_builddir=. |
13325 | ||
81ecdfbb RW |
13326 | case "$ac_dir" in |
13327 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13328 | *) | |
13329 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13330 | # A ".." for each directory in $ac_dir_suffix. | |
13331 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13332 | case $ac_top_builddir_sub in | |
13333 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13334 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13335 | esac ;; | |
13336 | esac | |
13337 | ac_abs_top_builddir=$ac_pwd | |
13338 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13339 | # for backward compatibility: | |
13340 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 13341 | |
6bf9431b | 13342 | case $srcdir in |
81ecdfbb | 13343 | .) # We are building in place. |
6bf9431b | 13344 | ac_srcdir=. |
81ecdfbb RW |
13345 | ac_top_srcdir=$ac_top_builddir_sub |
13346 | ac_abs_top_srcdir=$ac_pwd ;; | |
13347 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6bf9431b | 13348 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
13349 | ac_top_srcdir=$srcdir |
13350 | ac_abs_top_srcdir=$srcdir ;; | |
13351 | *) # Relative name. | |
13352 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13353 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13354 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6bf9431b | 13355 | esac |
81ecdfbb | 13356 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 13357 | |
252b5132 | 13358 | |
81ecdfbb RW |
13359 | case $ac_mode in |
13360 | :F) | |
13361 | # | |
13362 | # CONFIG_FILE | |
13363 | # | |
6bf9431b BE |
13364 | |
13365 | case $INSTALL in | |
13366 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
13367 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
13368 | esac | |
13369 | ac_MKDIR_P=$MKDIR_P | |
13370 | case $MKDIR_P in | |
13371 | [\\/$]* | ?:[\\/]* ) ;; | |
13372 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
252b5132 | 13373 | esac |
81ecdfbb | 13374 | _ACEOF |
1b9750d6 | 13375 | |
81ecdfbb RW |
13376 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13377 | # If the template does not know about datarootdir, expand it. | |
13378 | # FIXME: This hack should be removed a few years after 2.60. | |
13379 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13380 | ac_sed_dataroot=' | |
13381 | /datarootdir/ { | |
13382 | p | |
13383 | q | |
13384 | } | |
13385 | /@datadir@/p | |
13386 | /@docdir@/p | |
13387 | /@infodir@/p | |
13388 | /@localedir@/p | |
13389 | /@mandir@/p' | |
13390 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13391 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13392 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13394 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13395 | _ACEOF | |
13396 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13397 | ac_datarootdir_hack=' | |
13398 | s&@datadir@&$datadir&g | |
13399 | s&@docdir@&$docdir&g | |
13400 | s&@infodir@&$infodir&g | |
13401 | s&@localedir@&$localedir&g | |
13402 | s&@mandir@&$mandir&g | |
13403 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13404 | esac | |
6bf9431b | 13405 | _ACEOF |
81ecdfbb RW |
13406 | |
13407 | # Neutralize VPATH when `$srcdir' = `.'. | |
13408 | # Shell code in configure.ac might set extrasub. | |
13409 | # FIXME: do we really want to maintain this feature? | |
13410 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13411 | ac_sed_extra="$ac_vpsub | |
6bf9431b BE |
13412 | $extrasub |
13413 | _ACEOF | |
81ecdfbb | 13414 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6bf9431b BE |
13415 | :t |
13416 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
13417 | s|@configure_input@|$ac_sed_conf_input|;t t |
13418 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13419 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13420 | s&@srcdir@&$ac_srcdir&;t t | |
13421 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13422 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13423 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13424 | s&@builddir@&$ac_builddir&;t t | |
13425 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13426 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13427 | s&@INSTALL@&$ac_INSTALL&;t t | |
13428 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13429 | $ac_datarootdir_hack | |
13430 | " | |
13431 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13432 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13433 | ||
13434 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13435 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13436 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
13437 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13438 | which seems to be undefined. Please make sure it is defined." >&5 | |
13439 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13440 | which seems to be undefined. Please make sure it is defined." >&2;} | |
13441 | ||
13442 | rm -f "$tmp/stdin" | |
6bf9431b | 13443 | case $ac_file in |
81ecdfbb RW |
13444 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
13445 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13446 | esac \ | |
13447 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13448 | ;; | |
13449 | :H) | |
13450 | # | |
13451 | # CONFIG_HEADER | |
13452 | # | |
6bf9431b | 13453 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
13454 | { |
13455 | $as_echo "/* $configure_input */" \ | |
13456 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13457 | } >"$tmp/config.h" \ | |
13458 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13459 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
13461 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6bf9431b | 13462 | else |
81ecdfbb RW |
13463 | rm -f "$ac_file" |
13464 | mv "$tmp/config.h" "$ac_file" \ | |
13465 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 13466 | fi |
6bf9431b | 13467 | else |
81ecdfbb RW |
13468 | $as_echo "/* $configure_input */" \ |
13469 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13470 | || as_fn_error "could not create -" "$LINENO" 5 | |
252b5132 | 13471 | fi |
81ecdfbb RW |
13472 | # Compute "$ac_file"'s index in $config_headers. |
13473 | _am_arg="$ac_file" | |
6bf9431b BE |
13474 | _am_stamp_count=1 |
13475 | for _am_header in $config_headers :; do | |
13476 | case $_am_header in | |
81ecdfbb | 13477 | $_am_arg | $_am_arg:* ) |
6bf9431b BE |
13478 | break ;; |
13479 | * ) | |
13480 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13481 | esac | |
13482 | done | |
81ecdfbb RW |
13483 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
13484 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13485 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13486 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13487 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13488 | $as_echo X"$_am_arg" | | |
13489 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13490 | s//\1/ | |
13491 | q | |
13492 | } | |
13493 | /^X\(\/\/\)[^/].*/{ | |
13494 | s//\1/ | |
13495 | q | |
13496 | } | |
13497 | /^X\(\/\/\)$/{ | |
13498 | s//\1/ | |
13499 | q | |
13500 | } | |
13501 | /^X\(\/\).*/{ | |
13502 | s//\1/ | |
13503 | q | |
13504 | } | |
13505 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13506 | ;; | |
0ab6f085 | 13507 | |
81ecdfbb RW |
13508 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
13509 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13510 | ;; | |
13511 | esac | |
6bf9431b BE |
13512 | |
13513 | ||
81ecdfbb RW |
13514 | case $ac_file$ac_mode in |
13515 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
13516 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
13517 | # are listed without --file. Let's play safe and only enable the eval | |
13518 | # if we detect the quoting. | |
13519 | case $CONFIG_FILES in | |
13520 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13521 | *) set x $CONFIG_FILES ;; | |
13522 | esac | |
13523 | shift | |
13524 | for mf | |
13525 | do | |
13526 | # Strip MF so we end up with the name of the file. | |
13527 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13528 | # Check whether this is an Automake generated Makefile or not. | |
13529 | # We used to match only the files named `Makefile.in', but | |
13530 | # some people rename them; so instead we look at the file content. | |
13531 | # Grep'ing the first line is not enough: some people post-process | |
13532 | # each Makefile.in and add a new line on top of each file to say so. | |
13533 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13534 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13535 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13536 | dirpart=`$as_dirname -- "$mf" || | |
6bf9431b BE |
13537 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13538 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13539 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
13540 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
13541 | $as_echo X"$mf" | | |
13542 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13543 | s//\1/ | |
13544 | q | |
13545 | } | |
13546 | /^X\(\/\/\)[^/].*/{ | |
13547 | s//\1/ | |
13548 | q | |
13549 | } | |
13550 | /^X\(\/\/\)$/{ | |
13551 | s//\1/ | |
13552 | q | |
13553 | } | |
13554 | /^X\(\/\).*/{ | |
13555 | s//\1/ | |
13556 | q | |
13557 | } | |
13558 | s/.*/./; q'` | |
13559 | else | |
13560 | continue | |
13561 | fi | |
13562 | # Extract the definition of DEPDIR, am__include, and am__quote | |
13563 | # from the Makefile without running `make'. | |
13564 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13565 | test -z "$DEPDIR" && continue | |
13566 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13567 | test -z "am__include" && continue | |
13568 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13569 | # When using ansi2knr, U may be empty or an underscore; expand it | |
13570 | U=`sed -n 's/^U = //p' < "$mf"` | |
13571 | # Find all dependency output files, they are included files with | |
13572 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13573 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13574 | # expansion. | |
13575 | for file in `sed -n " | |
13576 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13577 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13578 | # Make sure the directory exists. | |
13579 | test -f "$dirpart/$file" && continue | |
13580 | fdir=`$as_dirname -- "$file" || | |
6bf9431b BE |
13581 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13582 | X"$file" : 'X\(//\)[^/]' \| \ | |
13583 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
13584 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
13585 | $as_echo X"$file" | | |
13586 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13587 | s//\1/ | |
13588 | q | |
13589 | } | |
13590 | /^X\(\/\/\)[^/].*/{ | |
13591 | s//\1/ | |
13592 | q | |
13593 | } | |
13594 | /^X\(\/\/\)$/{ | |
13595 | s//\1/ | |
13596 | q | |
13597 | } | |
13598 | /^X\(\/\).*/{ | |
13599 | s//\1/ | |
13600 | q | |
13601 | } | |
13602 | s/.*/./; q'` | |
13603 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
13604 | # echo "creating $dirpart/$file" | |
13605 | echo '# dummy' > "$dirpart/$file" | |
6bf9431b | 13606 | done |
6bf9431b | 13607 | done |
81ecdfbb | 13608 | } |
d7040cdb | 13609 | ;; |
81ecdfbb | 13610 | "libtool":C) |
d7040cdb SE |
13611 | |
13612 | # See if we are running on zsh, and set the options which allow our | |
13613 | # commands through without removal of \ escapes. | |
13614 | if test -n "${ZSH_VERSION+set}" ; then | |
13615 | setopt NO_GLOB_SUBST | |
13616 | fi | |
13617 | ||
13618 | cfgfile="${ofile}T" | |
13619 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13620 | $RM "$cfgfile" | |
13621 | ||
13622 | cat <<_LT_EOF >> "$cfgfile" | |
13623 | #! $SHELL | |
13624 | ||
13625 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
b214d478 | 13626 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
13627 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13628 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
13629 | # | |
b214d478 SE |
13630 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
13631 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
13632 | # Written by Gordon Matzigkeit, 1996 | |
d7040cdb | 13633 | # |
b214d478 | 13634 | # This file is part of GNU Libtool. |
d7040cdb | 13635 | # |
b214d478 SE |
13636 | # GNU Libtool is free software; you can redistribute it and/or |
13637 | # modify it under the terms of the GNU General Public License as | |
13638 | # published by the Free Software Foundation; either version 2 of | |
13639 | # the License, or (at your option) any later version. | |
d7040cdb | 13640 | # |
b214d478 SE |
13641 | # As a special exception to the GNU General Public License, |
13642 | # if you distribute this file as part of a program or library that | |
13643 | # is built using GNU Libtool, you may include this file under the | |
13644 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 13645 | # |
b214d478 SE |
13646 | # GNU Libtool is distributed in the hope that it will be useful, |
13647 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13648 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13649 | # GNU General Public License for more details. | |
d7040cdb | 13650 | # |
b214d478 SE |
13651 | # You should have received a copy of the GNU General Public License |
13652 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
13653 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
13654 | # obtained by writing to the Free Software Foundation, Inc., | |
13655 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
13656 | |
13657 | ||
13658 | # The names of the tagged configurations supported by this script. | |
13659 | available_tags="" | |
13660 | ||
13661 | # ### BEGIN LIBTOOL CONFIG | |
13662 | ||
13663 | # Which release of libtool.m4 was used? | |
13664 | macro_version=$macro_version | |
13665 | macro_revision=$macro_revision | |
13666 | ||
13667 | # Whether or not to build shared libraries. | |
13668 | build_libtool_libs=$enable_shared | |
13669 | ||
13670 | # Whether or not to build static libraries. | |
13671 | build_old_libs=$enable_static | |
13672 | ||
13673 | # What type of objects to build. | |
13674 | pic_mode=$pic_mode | |
13675 | ||
13676 | # Whether or not to optimize for fast installation. | |
13677 | fast_install=$enable_fast_install | |
13678 | ||
13679 | # The host system. | |
13680 | host_alias=$host_alias | |
13681 | host=$host | |
13682 | host_os=$host_os | |
13683 | ||
13684 | # The build system. | |
13685 | build_alias=$build_alias | |
13686 | build=$build | |
13687 | build_os=$build_os | |
13688 | ||
13689 | # A sed program that does not truncate output. | |
13690 | SED=$lt_SED | |
13691 | ||
13692 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
13693 | Xsed="\$SED -e 1s/^X//" | |
13694 | ||
13695 | # A grep program that handles long lines. | |
13696 | GREP=$lt_GREP | |
13697 | ||
13698 | # An ERE matcher. | |
13699 | EGREP=$lt_EGREP | |
13700 | ||
13701 | # A literal string matcher. | |
13702 | FGREP=$lt_FGREP | |
13703 | ||
13704 | # A BSD- or MS-compatible name lister. | |
13705 | NM=$lt_NM | |
13706 | ||
13707 | # Whether we need soft or hard links. | |
13708 | LN_S=$lt_LN_S | |
13709 | ||
13710 | # What is the maximum length of a command? | |
13711 | max_cmd_len=$max_cmd_len | |
13712 | ||
13713 | # Object file suffix (normally "o"). | |
13714 | objext=$ac_objext | |
13715 | ||
13716 | # Executable file suffix (normally ""). | |
13717 | exeext=$exeext | |
13718 | ||
13719 | # whether the shell understands "unset". | |
13720 | lt_unset=$lt_unset | |
13721 | ||
13722 | # turn spaces into newlines. | |
13723 | SP2NL=$lt_lt_SP2NL | |
13724 | ||
13725 | # turn newlines into spaces. | |
13726 | NL2SP=$lt_lt_NL2SP | |
13727 | ||
13728 | # How to create reloadable object files. | |
13729 | reload_flag=$lt_reload_flag | |
13730 | reload_cmds=$lt_reload_cmds | |
13731 | ||
b214d478 SE |
13732 | # An object symbol dumper. |
13733 | OBJDUMP=$lt_OBJDUMP | |
13734 | ||
d7040cdb SE |
13735 | # Method to check whether dependent libraries are shared objects. |
13736 | deplibs_check_method=$lt_deplibs_check_method | |
13737 | ||
13738 | # Command to use when deplibs_check_method == "file_magic". | |
13739 | file_magic_cmd=$lt_file_magic_cmd | |
13740 | ||
13741 | # The archiver. | |
13742 | AR=$lt_AR | |
13743 | AR_FLAGS=$lt_AR_FLAGS | |
13744 | ||
13745 | # A symbol stripping program. | |
13746 | STRIP=$lt_STRIP | |
13747 | ||
13748 | # Commands used to install an old-style archive. | |
13749 | RANLIB=$lt_RANLIB | |
13750 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13751 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13752 | ||
13753 | # A C compiler. | |
13754 | LTCC=$lt_CC | |
13755 | ||
13756 | # LTCC compiler flags. | |
13757 | LTCFLAGS=$lt_CFLAGS | |
13758 | ||
13759 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13760 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13761 | ||
13762 | # Transform the output of nm in a proper C declaration. | |
13763 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13764 | ||
13765 | # Transform the output of nm in a C name address pair. | |
13766 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13767 | ||
b214d478 SE |
13768 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
13769 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
13770 | ||
d7040cdb SE |
13771 | # The name of the directory that contains temporary libtool files. |
13772 | objdir=$objdir | |
13773 | ||
13774 | # Shell to use when invoking shell scripts. | |
13775 | SHELL=$lt_SHELL | |
13776 | ||
13777 | # An echo program that does not interpret backslashes. | |
13778 | ECHO=$lt_ECHO | |
13779 | ||
13780 | # Used to examine libraries when file_magic_cmd begins with "file". | |
13781 | MAGIC_CMD=$MAGIC_CMD | |
13782 | ||
13783 | # Must we lock files when doing compilation? | |
13784 | need_locks=$lt_need_locks | |
13785 | ||
b214d478 SE |
13786 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
13787 | DSYMUTIL=$lt_DSYMUTIL | |
13788 | ||
13789 | # Tool to change global to local symbols on Mac OS X. | |
13790 | NMEDIT=$lt_NMEDIT | |
13791 | ||
13792 | # Tool to manipulate fat objects and archives on Mac OS X. | |
13793 | LIPO=$lt_LIPO | |
13794 | ||
13795 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
13796 | OTOOL=$lt_OTOOL | |
13797 | ||
13798 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
13799 | OTOOL64=$lt_OTOOL64 | |
13800 | ||
d7040cdb SE |
13801 | # Old archive suffix (normally "a"). |
13802 | libext=$libext | |
13803 | ||
13804 | # Shared library suffix (normally ".so"). | |
13805 | shrext_cmds=$lt_shrext_cmds | |
13806 | ||
13807 | # The commands to extract the exported symbol list from a shared archive. | |
13808 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13809 | ||
13810 | # Variables whose values should be saved in libtool wrapper scripts and | |
13811 | # restored at link time. | |
13812 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
13813 | ||
13814 | # Do we need the "lib" prefix for modules? | |
13815 | need_lib_prefix=$need_lib_prefix | |
13816 | ||
13817 | # Do we need a version for libraries? | |
13818 | need_version=$need_version | |
13819 | ||
13820 | # Library versioning type. | |
13821 | version_type=$version_type | |
13822 | ||
13823 | # Shared library runtime path variable. | |
13824 | runpath_var=$runpath_var | |
13825 | ||
13826 | # Shared library path variable. | |
13827 | shlibpath_var=$shlibpath_var | |
13828 | ||
13829 | # Is shlibpath searched before the hard-coded library search path? | |
13830 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13831 | ||
13832 | # Format of library name prefix. | |
13833 | libname_spec=$lt_libname_spec | |
13834 | ||
13835 | # List of archive names. First name is the real one, the rest are links. | |
13836 | # The last name is the one that the linker finds with -lNAME | |
13837 | library_names_spec=$lt_library_names_spec | |
13838 | ||
13839 | # The coded name of the library, if different from the real name. | |
13840 | soname_spec=$lt_soname_spec | |
13841 | ||
13842 | # Command to use after installation of a shared archive. | |
13843 | postinstall_cmds=$lt_postinstall_cmds | |
13844 | ||
13845 | # Command to use after uninstallation of a shared archive. | |
13846 | postuninstall_cmds=$lt_postuninstall_cmds | |
13847 | ||
13848 | # Commands used to finish a libtool library installation in a directory. | |
13849 | finish_cmds=$lt_finish_cmds | |
13850 | ||
13851 | # As "finish_cmds", except a single script fragment to be evaled but | |
13852 | # not shown. | |
13853 | finish_eval=$lt_finish_eval | |
13854 | ||
13855 | # Whether we should hardcode library paths into libraries. | |
13856 | hardcode_into_libs=$hardcode_into_libs | |
13857 | ||
13858 | # Compile-time system search path for libraries. | |
13859 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13860 | ||
13861 | # Run-time system search path for libraries. | |
13862 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13863 | ||
13864 | # Whether dlopen is supported. | |
13865 | dlopen_support=$enable_dlopen | |
13866 | ||
13867 | # Whether dlopen of programs is supported. | |
13868 | dlopen_self=$enable_dlopen_self | |
13869 | ||
13870 | # Whether dlopen of statically linked programs is supported. | |
13871 | dlopen_self_static=$enable_dlopen_self_static | |
13872 | ||
13873 | # Commands to strip libraries. | |
13874 | old_striplib=$lt_old_striplib | |
13875 | striplib=$lt_striplib | |
13876 | ||
13877 | ||
13878 | # The linker used to build libraries. | |
13879 | LD=$lt_LD | |
13880 | ||
13881 | # Commands used to build an old-style archive. | |
13882 | old_archive_cmds=$lt_old_archive_cmds | |
13883 | ||
13884 | # A language specific compiler. | |
13885 | CC=$lt_compiler | |
13886 | ||
13887 | # Is the compiler the GNU compiler? | |
13888 | with_gcc=$GCC | |
13889 | ||
13890 | # Compiler flag to turn off builtin functions. | |
13891 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
13892 | ||
13893 | # How to pass a linker flag through the compiler. | |
13894 | wl=$lt_lt_prog_compiler_wl | |
13895 | ||
13896 | # Additional compiler flags for building library objects. | |
13897 | pic_flag=$lt_lt_prog_compiler_pic | |
13898 | ||
13899 | # Compiler flag to prevent dynamic linking. | |
13900 | link_static_flag=$lt_lt_prog_compiler_static | |
13901 | ||
13902 | # Does compiler simultaneously support -c and -o options? | |
13903 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13904 | ||
13905 | # Whether or not to add -lc for building shared libraries. | |
13906 | build_libtool_need_lc=$archive_cmds_need_lc | |
13907 | ||
13908 | # Whether or not to disallow shared libs when runtime libs are static. | |
13909 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13910 | ||
13911 | # Compiler flag to allow reflexive dlopens. | |
13912 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
13913 | ||
13914 | # Compiler flag to generate shared objects directly from archives. | |
13915 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
13916 | ||
13917 | # Whether the compiler copes with passing no objects directly. | |
13918 | compiler_needs_object=$lt_compiler_needs_object | |
13919 | ||
13920 | # Create an old-style archive from a shared archive. | |
13921 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
13922 | ||
13923 | # Create a temporary old-style archive to link instead of a shared archive. | |
13924 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
13925 | ||
13926 | # Commands used to build a shared archive. | |
13927 | archive_cmds=$lt_archive_cmds | |
13928 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
13929 | ||
13930 | # Commands used to build a loadable module if different from building | |
13931 | # a shared archive. | |
13932 | module_cmds=$lt_module_cmds | |
13933 | module_expsym_cmds=$lt_module_expsym_cmds | |
13934 | ||
13935 | # Whether we are building with GNU ld or not. | |
13936 | with_gnu_ld=$lt_with_gnu_ld | |
13937 | ||
13938 | # Flag that allows shared libraries with undefined symbols to be built. | |
13939 | allow_undefined_flag=$lt_allow_undefined_flag | |
13940 | ||
13941 | # Flag that enforces no undefined symbols. | |
13942 | no_undefined_flag=$lt_no_undefined_flag | |
13943 | ||
13944 | # Flag to hardcode \$libdir into a binary during linking. | |
13945 | # This must work even if \$libdir does not exist | |
13946 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
13947 | ||
13948 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
13949 | # during linking. This must work even if \$libdir does not exist. | |
13950 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
13951 | ||
13952 | # Whether we need a single "-rpath" flag with a separated argument. | |
13953 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
13954 | ||
13955 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13956 | # DIR into the resulting binary. | |
13957 | hardcode_direct=$hardcode_direct | |
13958 | ||
13959 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13960 | # DIR into the resulting binary and the resulting library dependency is | |
13961 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13962 | # library is relocated. | |
13963 | hardcode_direct_absolute=$hardcode_direct_absolute | |
13964 | ||
13965 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
13966 | # into the resulting binary. | |
13967 | hardcode_minus_L=$hardcode_minus_L | |
13968 | ||
13969 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
13970 | # into the resulting binary. | |
13971 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
13972 | ||
13973 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
13974 | # into the library and all subsequent libraries and executables linked | |
13975 | # against it. | |
13976 | hardcode_automatic=$hardcode_automatic | |
13977 | ||
13978 | # Set to yes if linker adds runtime paths of dependent libraries | |
13979 | # to runtime path list. | |
13980 | inherit_rpath=$inherit_rpath | |
13981 | ||
13982 | # Whether libtool must link a program against all its dependency libraries. | |
13983 | link_all_deplibs=$link_all_deplibs | |
13984 | ||
13985 | # Fix the shell variable \$srcfile for the compiler. | |
13986 | fix_srcfile_path=$lt_fix_srcfile_path | |
13987 | ||
13988 | # Set to "yes" if exported symbols are required. | |
13989 | always_export_symbols=$always_export_symbols | |
13990 | ||
13991 | # The commands to list exported symbols. | |
13992 | export_symbols_cmds=$lt_export_symbols_cmds | |
13993 | ||
13994 | # Symbols that should not be listed in the preloaded symbols. | |
13995 | exclude_expsyms=$lt_exclude_expsyms | |
13996 | ||
13997 | # Symbols that must always be exported. | |
13998 | include_expsyms=$lt_include_expsyms | |
13999 | ||
14000 | # Commands necessary for linking programs (against libraries) with templates. | |
14001 | prelink_cmds=$lt_prelink_cmds | |
14002 | ||
14003 | # Specify filename containing input files. | |
14004 | file_list_spec=$lt_file_list_spec | |
14005 | ||
14006 | # How to hardcode a shared library path into an executable. | |
14007 | hardcode_action=$hardcode_action | |
14008 | ||
14009 | # ### END LIBTOOL CONFIG | |
14010 | ||
14011 | _LT_EOF | |
14012 | ||
14013 | case $host_os in | |
14014 | aix3*) | |
14015 | cat <<\_LT_EOF >> "$cfgfile" | |
14016 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14017 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14018 | # vanish in a puff of smoke. | |
14019 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14020 | COLLECT_NAMES= | |
14021 | export COLLECT_NAMES | |
14022 | fi | |
14023 | _LT_EOF | |
14024 | ;; | |
14025 | esac | |
14026 | ||
14027 | ||
14028 | ltmain="$ac_aux_dir/ltmain.sh" | |
14029 | ||
14030 | ||
14031 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14032 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14033 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14034 | # is reportedly fixed, but why not run on old versions too? | |
14035 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14036 | || (rm -f "$cfgfile"; exit 1) | |
14037 | ||
14038 | case $xsi_shell in | |
14039 | yes) | |
14040 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 14041 | |
d7040cdb SE |
14042 | # func_dirname file append nondir_replacement |
14043 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14044 | # otherwise set result to NONDIR_REPLACEMENT. | |
14045 | func_dirname () | |
14046 | { | |
14047 | case ${1} in | |
14048 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14049 | * ) func_dirname_result="${3}" ;; | |
14050 | esac | |
14051 | } | |
14052 | ||
14053 | # func_basename file | |
14054 | func_basename () | |
14055 | { | |
14056 | func_basename_result="${1##*/}" | |
14057 | } | |
14058 | ||
b214d478 SE |
14059 | # func_dirname_and_basename file append nondir_replacement |
14060 | # perform func_basename and func_dirname in a single function | |
14061 | # call: | |
14062 | # dirname: Compute the dirname of FILE. If nonempty, | |
14063 | # add APPEND to the result, otherwise set result | |
14064 | # to NONDIR_REPLACEMENT. | |
14065 | # value returned in "$func_dirname_result" | |
14066 | # basename: Compute filename of FILE. | |
14067 | # value retuned in "$func_basename_result" | |
14068 | # Implementation must be kept synchronized with func_dirname | |
14069 | # and func_basename. For efficiency, we do not delegate to | |
14070 | # those functions but instead duplicate the functionality here. | |
14071 | func_dirname_and_basename () | |
14072 | { | |
14073 | case ${1} in | |
14074 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14075 | * ) func_dirname_result="${3}" ;; | |
14076 | esac | |
14077 | func_basename_result="${1##*/}" | |
14078 | } | |
14079 | ||
d7040cdb SE |
14080 | # func_stripname prefix suffix name |
14081 | # strip PREFIX and SUFFIX off of NAME. | |
14082 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14083 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14084 | # dot (in which case that matches only a dot). | |
14085 | func_stripname () | |
14086 | { | |
14087 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
14088 | # positional parameters, so assign one to ordinary parameter first. | |
14089 | func_stripname_result=${3} | |
14090 | func_stripname_result=${func_stripname_result#"${1}"} | |
14091 | func_stripname_result=${func_stripname_result%"${2}"} | |
14092 | } | |
14093 | ||
14094 | # func_opt_split | |
14095 | func_opt_split () | |
14096 | { | |
14097 | func_opt_split_opt=${1%%=*} | |
14098 | func_opt_split_arg=${1#*=} | |
14099 | } | |
14100 | ||
14101 | # func_lo2o object | |
14102 | func_lo2o () | |
14103 | { | |
14104 | case ${1} in | |
14105 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
14106 | *) func_lo2o_result=${1} ;; | |
14107 | esac | |
14108 | } | |
b214d478 SE |
14109 | |
14110 | # func_xform libobj-or-source | |
14111 | func_xform () | |
14112 | { | |
14113 | func_xform_result=${1%.*}.lo | |
14114 | } | |
14115 | ||
14116 | # func_arith arithmetic-term... | |
14117 | func_arith () | |
14118 | { | |
14119 | func_arith_result=$(( $* )) | |
14120 | } | |
14121 | ||
14122 | # func_len string | |
14123 | # STRING may not start with a hyphen. | |
14124 | func_len () | |
14125 | { | |
14126 | func_len_result=${#1} | |
14127 | } | |
14128 | ||
d7040cdb SE |
14129 | _LT_EOF |
14130 | ;; | |
14131 | *) # Bourne compatible functions. | |
14132 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 14133 | |
d7040cdb SE |
14134 | # func_dirname file append nondir_replacement |
14135 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14136 | # otherwise set result to NONDIR_REPLACEMENT. | |
14137 | func_dirname () | |
14138 | { | |
14139 | # Extract subdirectory from the argument. | |
14140 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
14141 | if test "X$func_dirname_result" = "X${1}"; then | |
14142 | func_dirname_result="${3}" | |
14143 | else | |
14144 | func_dirname_result="$func_dirname_result${2}" | |
14145 | fi | |
14146 | } | |
14147 | ||
14148 | # func_basename file | |
14149 | func_basename () | |
14150 | { | |
14151 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
14152 | } | |
14153 | ||
b214d478 | 14154 | |
d7040cdb SE |
14155 | # func_stripname prefix suffix name |
14156 | # strip PREFIX and SUFFIX off of NAME. | |
14157 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14158 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14159 | # dot (in which case that matches only a dot). | |
14160 | # func_strip_suffix prefix name | |
14161 | func_stripname () | |
14162 | { | |
14163 | case ${2} in | |
14164 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
14165 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
14166 | *) func_stripname_result=`$ECHO "X${3}" \ | |
14167 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
14168 | esac | |
14169 | } | |
14170 | ||
14171 | # sed scripts: | |
14172 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14173 | my_sed_long_arg='1s/^-[^=]*=//' | |
14174 | ||
14175 | # func_opt_split | |
14176 | func_opt_split () | |
14177 | { | |
14178 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
14179 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
14180 | } | |
14181 | ||
14182 | # func_lo2o object | |
14183 | func_lo2o () | |
14184 | { | |
14185 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
14186 | } | |
b214d478 SE |
14187 | |
14188 | # func_xform libobj-or-source | |
14189 | func_xform () | |
14190 | { | |
14191 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
14192 | } | |
14193 | ||
14194 | # func_arith arithmetic-term... | |
14195 | func_arith () | |
14196 | { | |
14197 | func_arith_result=`expr "$@"` | |
14198 | } | |
14199 | ||
14200 | # func_len string | |
14201 | # STRING may not start with a hyphen. | |
14202 | func_len () | |
14203 | { | |
14204 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14205 | } | |
14206 | ||
d7040cdb SE |
14207 | _LT_EOF |
14208 | esac | |
14209 | ||
14210 | case $lt_shell_append in | |
14211 | yes) | |
14212 | cat << \_LT_EOF >> "$cfgfile" | |
14213 | ||
14214 | # func_append var value | |
14215 | # Append VALUE to the end of shell variable VAR. | |
14216 | func_append () | |
14217 | { | |
14218 | eval "$1+=\$2" | |
14219 | } | |
14220 | _LT_EOF | |
14221 | ;; | |
14222 | *) | |
14223 | cat << \_LT_EOF >> "$cfgfile" | |
14224 | ||
14225 | # func_append var value | |
14226 | # Append VALUE to the end of shell variable VAR. | |
14227 | func_append () | |
14228 | { | |
14229 | eval "$1=\$$1\$2" | |
14230 | } | |
b214d478 | 14231 | |
d7040cdb SE |
14232 | _LT_EOF |
14233 | ;; | |
14234 | esac | |
14235 | ||
14236 | ||
14237 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14238 | || (rm -f "$cfgfile"; exit 1) | |
14239 | ||
14240 | mv -f "$cfgfile" "$ofile" || | |
14241 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14242 | chmod +x "$ofile" | |
14243 | ||
6bf9431b | 14244 | ;; |
81ecdfbb | 14245 | "default-1":C) |
20e95c23 DJ |
14246 | for ac_file in $CONFIG_FILES; do |
14247 | # Support "outfile[:infile[:infile...]]" | |
14248 | case "$ac_file" in | |
14249 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14250 | esac | |
14251 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
14252 | case "$ac_file" in */Makefile.in) | |
14253 | # Adjust a relative srcdir. | |
14254 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
14255 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
14256 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
14257 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
14258 | # In autoconf-2.50 it is called $srcdir. | |
14259 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
14260 | case "$ac_given_srcdir" in | |
14261 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
14262 | /*) top_srcdir="$ac_given_srcdir" ;; | |
14263 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
14264 | esac | |
14265 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
14266 | rm -f "$ac_dir/POTFILES" | |
14267 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
14268 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
14269 | POMAKEFILEDEPS="POTFILES.in" | |
14270 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
14271 | # on $ac_dir but don't depend on user-specified configuration | |
14272 | # parameters. | |
14273 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
14274 | # The LINGUAS file contains the set of available languages. | |
14275 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
14276 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
14277 | fi | |
14278 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
14279 | # Hide the ALL_LINGUAS assigment from automake. | |
14280 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
14281 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
14282 | else | |
14283 | # The set of available languages was given in configure.in. | |
14284 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
14285 | fi | |
14286 | case "$ac_given_srcdir" in | |
14287 | .) srcdirpre= ;; | |
14288 | *) srcdirpre='$(srcdir)/' ;; | |
14289 | esac | |
14290 | POFILES= | |
14291 | GMOFILES= | |
14292 | UPDATEPOFILES= | |
14293 | DUMMYPOFILES= | |
14294 | for lang in $ALL_LINGUAS; do | |
14295 | POFILES="$POFILES $srcdirpre$lang.po" | |
14296 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
14297 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
14298 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
14299 | done | |
14300 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
14301 | # environment variable. | |
14302 | INST_LINGUAS= | |
14303 | if test -n "$ALL_LINGUAS"; then | |
14304 | for presentlang in $ALL_LINGUAS; do | |
14305 | useit=no | |
14306 | if test "%UNSET%" != "$LINGUAS"; then | |
14307 | desiredlanguages="$LINGUAS" | |
14308 | else | |
14309 | desiredlanguages="$ALL_LINGUAS" | |
14310 | fi | |
14311 | for desiredlang in $desiredlanguages; do | |
14312 | # Use the presentlang catalog if desiredlang is | |
14313 | # a. equal to presentlang, or | |
14314 | # b. a variant of presentlang (because in this case, | |
14315 | # presentlang can be used as a fallback for messages | |
14316 | # which are not translated in the desiredlang catalog). | |
14317 | case "$desiredlang" in | |
14318 | "$presentlang"*) useit=yes;; | |
14319 | esac | |
14320 | done | |
14321 | if test $useit = yes; then | |
14322 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
14323 | fi | |
14324 | done | |
14325 | fi | |
14326 | CATALOGS= | |
14327 | if test -n "$INST_LINGUAS"; then | |
14328 | for lang in $INST_LINGUAS; do | |
14329 | CATALOGS="$CATALOGS $lang.gmo" | |
14330 | done | |
14331 | fi | |
14332 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
14333 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
14334 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
14335 | if test -f "$f"; then | |
14336 | case "$f" in | |
14337 | *.orig | *.bak | *~) ;; | |
14338 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
14339 | esac | |
14340 | fi | |
14341 | done | |
14342 | fi | |
14343 | ;; | |
14344 | esac | |
14345 | done ;; | |
81ecdfbb | 14346 | |
6bf9431b | 14347 | esac |
81ecdfbb | 14348 | done # for ac_tag |
6bf9431b | 14349 | |
6bf9431b | 14350 | |
81ecdfbb | 14351 | as_fn_exit 0 |
6bf9431b | 14352 | _ACEOF |
6bf9431b BE |
14353 | ac_clean_files=$ac_clean_files_save |
14354 | ||
81ecdfbb RW |
14355 | test $ac_write_fail = 0 || |
14356 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
14357 | ||
6bf9431b BE |
14358 | |
14359 | # configure is writing to config.log, and then calls config.status. | |
14360 | # config.status does its own redirection, appending to config.log. | |
14361 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14362 | # by configure, so config.status won't be able to write to it; its | |
14363 | # output is simply discarded. So we exec the FD to /dev/null, | |
14364 | # effectively closing config.log, so it can be properly (re)opened and | |
14365 | # appended to by config.status. When coming back to configure, we | |
14366 | # need to make the FD available again. | |
14367 | if test "$no_create" != yes; then | |
14368 | ac_cs_success=: | |
14369 | ac_config_status_args= | |
14370 | test "$silent" = yes && | |
14371 | ac_config_status_args="$ac_config_status_args --quiet" | |
14372 | exec 5>/dev/null | |
14373 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14374 | exec 5>>config.log | |
14375 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14376 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
14377 | $ac_cs_success || as_fn_exit $? |
14378 | fi | |
14379 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14381 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6bf9431b | 14382 | fi |
252b5132 | 14383 |