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 | ## -------------------- ## | |
42ecbf5e | 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 : | |
42ecbf5e DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
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 | |
42ecbf5e | 31 | fi |
42ecbf5e | 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 | } | |
42ecbf5e DJ |
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 | |
42ecbf5e DJ |
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 | |
3725885a RW |
172 | test \$(( 1 + 1 )) = 2 || exit 1 |
173 | ||
174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 | PATH=/empty FPATH=/empty; export PATH FPATH | |
179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
181 | if (eval "$as_required") 2>/dev/null; then : |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42ecbf5e | 192 | do |
81ecdfbb RW |
193 | IFS=$as_save_IFS |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
42ecbf5e | 236 | else |
81ecdfbb RW |
237 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
42ecbf5e | 241 | fi |
81ecdfbb RW |
242 | exit 1 |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
363 | ||
364 | ||
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
42ecbf5e | 380 | |
81ecdfbb RW |
381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
383 | as_expr=expr |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
81ecdfbb | 388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
389 | as_basename=basename |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
81ecdfbb RW |
394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
42ecbf5e | 399 | |
81ecdfbb | 400 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
402 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
42ecbf5e | 418 | |
42ecbf5e DJ |
419 | # Avoid depending upon Character Ranges. |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
425 | ||
42ecbf5e | 426 | |
81ecdfbb RW |
427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
42ecbf5e | 436 | sed ' |
81ecdfbb RW |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
42ecbf5e | 441 | N |
81ecdfbb RW |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
42ecbf5e | 444 | t loop |
81ecdfbb | 445 | s/-\n.*// |
42ecbf5e | 446 | ' >$as_me.lineno && |
81ecdfbb RW |
447 | chmod +x "$as_me.lineno" || |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
42ecbf5e DJ |
449 | |
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
452 | # original and so on. Autoconf is especially sensitive to this). |
453 | . "./$as_me.lineno" | |
42ecbf5e DJ |
454 | # Exit status is that of the last command. |
455 | exit | |
456 | } | |
457 | ||
81ecdfbb RW |
458 | ECHO_C= ECHO_N= ECHO_T= |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
42ecbf5e DJ |
469 | esac |
470 | ||
81ecdfbb RW |
471 | rm -f conf$$ conf$$.exe conf$$.file |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 474 | else |
81ecdfbb RW |
475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 477 | fi |
81ecdfbb RW |
478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 480 | as_ln_s='ln -s' |
81ecdfbb RW |
481 | # ... but there are two gotchas: |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
42ecbf5e | 491 | fi |
42ecbf5e DJ |
492 | else |
493 | as_ln_s='cp -p' | |
494 | fi | |
81ecdfbb RW |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
496 | rmdir conf$$.dir 2>/dev/null | |
42ecbf5e DJ |
497 | |
498 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 499 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
500 | else |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
81ecdfbb RW |
505 | if test -x / >/dev/null 2>&1; then |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
42ecbf5e DJ |
527 | |
528 | # Sed expression to map a string onto a valid CPP name. | |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | # Sed expression to map a string onto a valid variable name. | |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | ||
d7040cdb SE |
534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | ||
d7040cdb | 536 | |
81ecdfbb RW |
537 | exec 7<&0 </dev/null 6>&1 |
538 | ||
42ecbf5e DJ |
539 | # Name of the host. |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 543 | |
42ecbf5e DJ |
544 | # |
545 | # Initializations. | |
546 | # | |
252b5132 | 547 | ac_default_prefix=/usr/local |
81ecdfbb | 548 | ac_clean_files= |
42ecbf5e | 549 | ac_config_libobj_dir=. |
81ecdfbb | 550 | LIBOBJS= |
42ecbf5e DJ |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
42ecbf5e DJ |
555 | |
556 | # Identity of this package. | |
557 | PACKAGE_NAME= | |
558 | PACKAGE_TARNAME= | |
559 | PACKAGE_VERSION= | |
560 | PACKAGE_STRING= | |
561 | PACKAGE_BUGREPORT= | |
81ecdfbb | 562 | PACKAGE_URL= |
42ecbf5e DJ |
563 | |
564 | ac_unique_file="ldmain.c" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
81ecdfbb | 568 | #ifdef HAVE_SYS_TYPES_H |
42ecbf5e DJ |
569 | # include <sys/types.h> |
570 | #endif | |
81ecdfbb | 571 | #ifdef HAVE_SYS_STAT_H |
42ecbf5e DJ |
572 | # include <sys/stat.h> |
573 | #endif | |
81ecdfbb | 574 | #ifdef STDC_HEADERS |
42ecbf5e DJ |
575 | # include <stdlib.h> |
576 | # include <stddef.h> | |
577 | #else | |
81ecdfbb | 578 | # ifdef HAVE_STDLIB_H |
42ecbf5e DJ |
579 | # include <stdlib.h> |
580 | # endif | |
581 | #endif | |
81ecdfbb RW |
582 | #ifdef HAVE_STRING_H |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
42ecbf5e DJ |
584 | # include <memory.h> |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
81ecdfbb | 588 | #ifdef HAVE_STRINGS_H |
42ecbf5e DJ |
589 | # include <strings.h> |
590 | #endif | |
81ecdfbb | 591 | #ifdef HAVE_INTTYPES_H |
42ecbf5e | 592 | # include <inttypes.h> |
42ecbf5e | 593 | #endif |
81ecdfbb RW |
594 | #ifdef HAVE_STDINT_H |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
42ecbf5e DJ |
598 | # include <unistd.h> |
599 | #endif" | |
600 | ||
81ecdfbb RW |
601 | ac_subst_vars='am__EXEEXT_FALSE |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
605 | TESTBFDLIB | |
606 | EMULATION_LIBPATH | |
607 | LIB_PATH | |
608 | EMUL_EXTRA_OFILES | |
609 | EMULATION_OFILES | |
610 | EMUL | |
611 | STRINGIFY | |
02ecc8e9 | 612 | enable_initfini_array |
5d3236ee DK |
613 | ENABLE_PLUGINS_FALSE |
614 | ENABLE_PLUGINS_TRUE | |
81ecdfbb | 615 | NATIVE_LIB_DIRS |
b27caf75 | 616 | HOSTING_SLIBS |
81ecdfbb | 617 | HOSTING_LIBS |
6738cadc | 618 | HOSTING_SCRT0 |
81ecdfbb RW |
619 | HOSTING_CRT0 |
620 | HDEFINES | |
621 | do_compare | |
622 | GENINSRC_NEVER_FALSE | |
623 | GENINSRC_NEVER_TRUE | |
81ecdfbb RW |
624 | LEXLIB |
625 | LEX_OUTPUT_ROOT | |
626 | LEX | |
627 | YFLAGS | |
628 | YACC | |
629 | MSGMERGE | |
630 | MSGFMT | |
631 | MKINSTALLDIRS | |
632 | CATOBJEXT | |
633 | GENCAT | |
634 | INSTOBJEXT | |
635 | DATADIRNAME | |
636 | CATALOGS | |
637 | POSUB | |
638 | GMSGFMT | |
639 | XGETTEXT | |
640 | INCINTL | |
641 | LIBINTL_DEP | |
642 | LIBINTL | |
643 | USE_NLS | |
3cb62297 | 644 | CXXCPP |
81ecdfbb RW |
645 | OTOOL64 |
646 | OTOOL | |
647 | LIPO | |
648 | NMEDIT | |
649 | DSYMUTIL | |
81ecdfbb RW |
650 | RANLIB |
651 | AR | |
652 | OBJDUMP | |
653 | LN_S | |
654 | NM | |
655 | ac_ct_DUMPBIN | |
656 | DUMPBIN | |
657 | LD | |
658 | FGREP | |
659 | SED | |
660 | LIBTOOL | |
3cb62297 L |
661 | am__fastdepCXX_FALSE |
662 | am__fastdepCXX_TRUE | |
663 | CXXDEPMODE | |
664 | ac_ct_CXX | |
665 | CXXFLAGS | |
666 | CXX | |
397841b5 AM |
667 | NO_WERROR |
668 | WARN_CFLAGS | |
81ecdfbb RW |
669 | EGREP |
670 | GREP | |
671 | CPP | |
4fda8867 NC |
672 | installed_linker |
673 | install_as_default | |
81ecdfbb RW |
674 | TARGET_SYSTEM_ROOT_DEFINE |
675 | TARGET_SYSTEM_ROOT | |
676 | use_sysroot | |
64ac50ac RW |
677 | MAINT |
678 | MAINTAINER_MODE_FALSE | |
679 | MAINTAINER_MODE_TRUE | |
81ecdfbb RW |
680 | am__fastdepCC_FALSE |
681 | am__fastdepCC_TRUE | |
682 | CCDEPMODE | |
683 | AMDEPBACKSLASH | |
684 | AMDEP_FALSE | |
685 | AMDEP_TRUE | |
686 | am__quote | |
687 | am__include | |
688 | DEPDIR | |
689 | am__untar | |
690 | am__tar | |
691 | AMTAR | |
692 | am__leading_dot | |
693 | SET_MAKE | |
694 | AWK | |
695 | mkdir_p | |
696 | MKDIR_P | |
697 | INSTALL_STRIP_PROGRAM | |
698 | STRIP | |
699 | install_sh | |
700 | MAKEINFO | |
701 | AUTOHEADER | |
702 | AUTOMAKE | |
703 | AUTOCONF | |
704 | ACLOCAL | |
705 | VERSION | |
706 | PACKAGE | |
707 | CYGPATH_W | |
708 | am__isrc | |
709 | INSTALL_DATA | |
710 | INSTALL_SCRIPT | |
711 | INSTALL_PROGRAM | |
712 | OBJEXT | |
713 | EXEEXT | |
714 | ac_ct_CC | |
715 | CPPFLAGS | |
716 | LDFLAGS | |
717 | CFLAGS | |
718 | CC | |
719 | target_os | |
720 | target_vendor | |
721 | target_cpu | |
722 | target | |
723 | host_os | |
724 | host_vendor | |
725 | host_cpu | |
726 | host | |
727 | build_os | |
728 | build_vendor | |
729 | build_cpu | |
730 | build | |
731 | target_alias | |
732 | host_alias | |
733 | build_alias | |
734 | LIBS | |
735 | ECHO_T | |
736 | ECHO_N | |
737 | ECHO_C | |
738 | DEFS | |
739 | mandir | |
740 | localedir | |
741 | libdir | |
742 | psdir | |
743 | pdfdir | |
744 | dvidir | |
745 | htmldir | |
746 | infodir | |
747 | docdir | |
748 | oldincludedir | |
749 | includedir | |
750 | localstatedir | |
751 | sharedstatedir | |
752 | sysconfdir | |
753 | datadir | |
754 | datarootdir | |
755 | libexecdir | |
756 | sbindir | |
757 | bindir | |
758 | program_transform_name | |
759 | prefix | |
760 | exec_prefix | |
761 | PACKAGE_URL | |
762 | PACKAGE_BUGREPORT | |
763 | PACKAGE_STRING | |
764 | PACKAGE_VERSION | |
765 | PACKAGE_TARNAME | |
766 | PACKAGE_NAME | |
767 | PATH_SEPARATOR | |
768 | SHELL' | |
42ecbf5e | 769 | ac_subst_files='TDIRS' |
81ecdfbb RW |
770 | ac_user_opts=' |
771 | enable_option_checking | |
772 | enable_dependency_tracking | |
64ac50ac | 773 | enable_maintainer_mode |
81ecdfbb RW |
774 | with_lib_path |
775 | enable_targets | |
776 | enable_64_bit_bfd | |
777 | with_sysroot | |
4fda8867 | 778 | enable_gold |
81ecdfbb RW |
779 | enable_got |
780 | enable_werror | |
781 | enable_build_warnings | |
da2f07f1 | 782 | enable_plugins |
81ecdfbb RW |
783 | enable_largefile |
784 | enable_shared | |
785 | enable_static | |
786 | with_pic | |
787 | enable_fast_install | |
788 | with_gnu_ld | |
789 | enable_libtool_lock | |
790 | enable_nls | |
02ecc8e9 | 791 | enable_initfini_array |
52546677 | 792 | with_zlib |
81ecdfbb RW |
793 | ' |
794 | ac_precious_vars='build_alias | |
795 | host_alias | |
796 | target_alias | |
797 | CC | |
798 | CFLAGS | |
799 | LDFLAGS | |
800 | LIBS | |
801 | CPPFLAGS | |
802 | CPP | |
3cb62297 L |
803 | CXX |
804 | CXXFLAGS | |
805 | CCC | |
806 | CXXCPP | |
81ecdfbb RW |
807 | YACC |
808 | YFLAGS' | |
809 | ||
252b5132 RH |
810 | |
811 | # Initialize some variables set by options. | |
42ecbf5e DJ |
812 | ac_init_help= |
813 | ac_init_version=false | |
81ecdfbb RW |
814 | ac_unrecognized_opts= |
815 | ac_unrecognized_sep= | |
252b5132 RH |
816 | # The variables have the same names as the options, with |
817 | # dashes changed to underlines. | |
42ecbf5e | 818 | cache_file=/dev/null |
252b5132 | 819 | exec_prefix=NONE |
252b5132 | 820 | no_create= |
252b5132 RH |
821 | no_recursion= |
822 | prefix=NONE | |
823 | program_prefix=NONE | |
824 | program_suffix=NONE | |
825 | program_transform_name=s,x,x, | |
826 | silent= | |
827 | site= | |
828 | srcdir= | |
252b5132 RH |
829 | verbose= |
830 | x_includes=NONE | |
831 | x_libraries=NONE | |
42ecbf5e DJ |
832 | |
833 | # Installation directory options. | |
834 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
835 | # and all the variables that are supposed to be based on exec_prefix | |
836 | # by default will actually change. | |
837 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 838 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
839 | bindir='${exec_prefix}/bin' |
840 | sbindir='${exec_prefix}/sbin' | |
841 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
842 | datarootdir='${prefix}/share' |
843 | datadir='${datarootdir}' | |
252b5132 RH |
844 | sysconfdir='${prefix}/etc' |
845 | sharedstatedir='${prefix}/com' | |
846 | localstatedir='${prefix}/var' | |
252b5132 RH |
847 | includedir='${prefix}/include' |
848 | oldincludedir='/usr/include' | |
81ecdfbb RW |
849 | docdir='${datarootdir}/doc/${PACKAGE}' |
850 | infodir='${datarootdir}/info' | |
851 | htmldir='${docdir}' | |
852 | dvidir='${docdir}' | |
853 | pdfdir='${docdir}' | |
854 | psdir='${docdir}' | |
855 | libdir='${exec_prefix}/lib' | |
856 | localedir='${datarootdir}/locale' | |
857 | mandir='${datarootdir}/man' | |
252b5132 | 858 | |
252b5132 | 859 | ac_prev= |
81ecdfbb | 860 | ac_dashdash= |
252b5132 RH |
861 | for ac_option |
862 | do | |
252b5132 RH |
863 | # If the previous option needs an argument, assign it. |
864 | if test -n "$ac_prev"; then | |
81ecdfbb | 865 | eval $ac_prev=\$ac_option |
252b5132 RH |
866 | ac_prev= |
867 | continue | |
868 | fi | |
869 | ||
81ecdfbb RW |
870 | case $ac_option in |
871 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
872 | *) ac_optarg=yes ;; | |
873 | esac | |
252b5132 RH |
874 | |
875 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
876 | ||
81ecdfbb RW |
877 | case $ac_dashdash$ac_option in |
878 | --) | |
879 | ac_dashdash=yes ;; | |
252b5132 RH |
880 | |
881 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
882 | ac_prev=bindir ;; | |
883 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 884 | bindir=$ac_optarg ;; |
252b5132 RH |
885 | |
886 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 887 | ac_prev=build_alias ;; |
252b5132 | 888 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 889 | build_alias=$ac_optarg ;; |
252b5132 RH |
890 | |
891 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
892 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
893 | ac_prev=cache_file ;; | |
894 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
895 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
896 | cache_file=$ac_optarg ;; |
897 | ||
898 | --config-cache | -C) | |
899 | cache_file=config.cache ;; | |
252b5132 | 900 | |
81ecdfbb | 901 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 902 | ac_prev=datadir ;; |
81ecdfbb | 903 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
42ecbf5e | 904 | datadir=$ac_optarg ;; |
252b5132 | 905 | |
81ecdfbb RW |
906 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
907 | | --dataroo | --dataro | --datar) | |
908 | ac_prev=datarootdir ;; | |
909 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
910 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
911 | datarootdir=$ac_optarg ;; | |
912 | ||
252b5132 | 913 | -disable-* | --disable-*) |
81ecdfbb | 914 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 915 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
916 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
917 | as_fn_error "invalid feature name: $ac_useropt" | |
918 | ac_useropt_orig=$ac_useropt | |
919 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
920 | case $ac_user_opts in | |
921 | *" | |
922 | "enable_$ac_useropt" | |
923 | "*) ;; | |
924 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
925 | ac_unrecognized_sep=', ';; | |
926 | esac | |
927 | eval enable_$ac_useropt=no ;; | |
928 | ||
929 | -docdir | --docdir | --docdi | --doc | --do) | |
930 | ac_prev=docdir ;; | |
931 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
932 | docdir=$ac_optarg ;; | |
933 | ||
934 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
935 | ac_prev=dvidir ;; | |
936 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
937 | dvidir=$ac_optarg ;; | |
252b5132 RH |
938 | |
939 | -enable-* | --enable-*) | |
81ecdfbb | 940 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 941 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
943 | as_fn_error "invalid feature name: $ac_useropt" | |
944 | ac_useropt_orig=$ac_useropt | |
945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
946 | case $ac_user_opts in | |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
252b5132 | 952 | esac |
81ecdfbb | 953 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
954 | |
955 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
956 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
957 | | --exec | --exe | --ex) | |
958 | ac_prev=exec_prefix ;; | |
959 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
960 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
961 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 962 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
963 | |
964 | -gas | --gas | --ga | --g) | |
965 | # Obsolete; use --with-gas. | |
966 | with_gas=yes ;; | |
967 | ||
42ecbf5e DJ |
968 | -help | --help | --hel | --he | -h) |
969 | ac_init_help=long ;; | |
970 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
971 | ac_init_help=recursive ;; | |
972 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
973 | ac_init_help=short ;; | |
252b5132 RH |
974 | |
975 | -host | --host | --hos | --ho) | |
42ecbf5e | 976 | ac_prev=host_alias ;; |
252b5132 | 977 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 978 | host_alias=$ac_optarg ;; |
252b5132 | 979 | |
81ecdfbb RW |
980 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
981 | ac_prev=htmldir ;; | |
982 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
983 | | --ht=*) | |
984 | htmldir=$ac_optarg ;; | |
985 | ||
252b5132 RH |
986 | -includedir | --includedir | --includedi | --included | --include \ |
987 | | --includ | --inclu | --incl | --inc) | |
988 | ac_prev=includedir ;; | |
989 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
990 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 991 | includedir=$ac_optarg ;; |
252b5132 RH |
992 | |
993 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
994 | ac_prev=infodir ;; | |
995 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 996 | infodir=$ac_optarg ;; |
252b5132 RH |
997 | |
998 | -libdir | --libdir | --libdi | --libd) | |
999 | ac_prev=libdir ;; | |
1000 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 1001 | libdir=$ac_optarg ;; |
252b5132 RH |
1002 | |
1003 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1004 | | --libexe | --libex | --libe) | |
1005 | ac_prev=libexecdir ;; | |
1006 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1007 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 1008 | libexecdir=$ac_optarg ;; |
252b5132 | 1009 | |
81ecdfbb RW |
1010 | -localedir | --localedir | --localedi | --localed | --locale) |
1011 | ac_prev=localedir ;; | |
1012 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1013 | localedir=$ac_optarg ;; | |
1014 | ||
252b5132 | 1015 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1016 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1017 | ac_prev=localstatedir ;; |
1018 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1019 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
42ecbf5e | 1020 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1021 | |
1022 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1023 | ac_prev=mandir ;; | |
1024 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 1025 | mandir=$ac_optarg ;; |
252b5132 RH |
1026 | |
1027 | -nfp | --nfp | --nf) | |
1028 | # Obsolete; use --without-fp. | |
1029 | with_fp=no ;; | |
1030 | ||
1031 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 1032 | | --no-cr | --no-c | -n) |
252b5132 RH |
1033 | no_create=yes ;; |
1034 | ||
1035 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1036 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1037 | no_recursion=yes ;; | |
1038 | ||
1039 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1040 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1041 | | --oldin | --oldi | --old | --ol | --o) | |
1042 | ac_prev=oldincludedir ;; | |
1043 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1044 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1045 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 1046 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1047 | |
1048 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1049 | ac_prev=prefix ;; | |
1050 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 1051 | prefix=$ac_optarg ;; |
252b5132 RH |
1052 | |
1053 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1054 | | --program-pre | --program-pr | --program-p) | |
1055 | ac_prev=program_prefix ;; | |
1056 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1057 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 1058 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1059 | |
1060 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1061 | | --program-suf | --program-su | --program-s) | |
1062 | ac_prev=program_suffix ;; | |
1063 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1064 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 1065 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1066 | |
1067 | -program-transform-name | --program-transform-name \ | |
1068 | | --program-transform-nam | --program-transform-na \ | |
1069 | | --program-transform-n | --program-transform- \ | |
1070 | | --program-transform | --program-transfor \ | |
1071 | | --program-transfo | --program-transf \ | |
1072 | | --program-trans | --program-tran \ | |
1073 | | --progr-tra | --program-tr | --program-t) | |
1074 | ac_prev=program_transform_name ;; | |
1075 | -program-transform-name=* | --program-transform-name=* \ | |
1076 | | --program-transform-nam=* | --program-transform-na=* \ | |
1077 | | --program-transform-n=* | --program-transform-=* \ | |
1078 | | --program-transform=* | --program-transfor=* \ | |
1079 | | --program-transfo=* | --program-transf=* \ | |
1080 | | --program-trans=* | --program-tran=* \ | |
1081 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 1082 | program_transform_name=$ac_optarg ;; |
252b5132 | 1083 | |
81ecdfbb RW |
1084 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1085 | ac_prev=pdfdir ;; | |
1086 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1087 | pdfdir=$ac_optarg ;; | |
1088 | ||
1089 | -psdir | --psdir | --psdi | --psd | --ps) | |
1090 | ac_prev=psdir ;; | |
1091 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1092 | psdir=$ac_optarg ;; | |
1093 | ||
252b5132 RH |
1094 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1095 | | -silent | --silent | --silen | --sile | --sil) | |
1096 | silent=yes ;; | |
1097 | ||
1098 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1099 | ac_prev=sbindir ;; | |
1100 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1101 | | --sbi=* | --sb=*) | |
42ecbf5e | 1102 | sbindir=$ac_optarg ;; |
252b5132 RH |
1103 | |
1104 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1105 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1106 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1107 | | --sha | --sh) | |
1108 | ac_prev=sharedstatedir ;; | |
1109 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1110 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1111 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1112 | | --sha=* | --sh=*) | |
42ecbf5e | 1113 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1114 | |
1115 | -site | --site | --sit) | |
1116 | ac_prev=site ;; | |
1117 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 1118 | site=$ac_optarg ;; |
85fbca6a | 1119 | |
252b5132 RH |
1120 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1121 | ac_prev=srcdir ;; | |
1122 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 1123 | srcdir=$ac_optarg ;; |
252b5132 RH |
1124 | |
1125 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1126 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1127 | ac_prev=sysconfdir ;; | |
1128 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1129 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 1130 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1131 | |
1132 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 1133 | ac_prev=target_alias ;; |
252b5132 | 1134 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 1135 | target_alias=$ac_optarg ;; |
252b5132 RH |
1136 | |
1137 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1138 | verbose=yes ;; | |
1139 | ||
42ecbf5e DJ |
1140 | -version | --version | --versio | --versi | --vers | -V) |
1141 | ac_init_version=: ;; | |
252b5132 RH |
1142 | |
1143 | -with-* | --with-*) | |
81ecdfbb | 1144 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1145 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1146 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1147 | as_fn_error "invalid package name: $ac_useropt" | |
1148 | ac_useropt_orig=$ac_useropt | |
1149 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1150 | case $ac_user_opts in | |
1151 | *" | |
1152 | "with_$ac_useropt" | |
1153 | "*) ;; | |
1154 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1155 | ac_unrecognized_sep=', ';; | |
252b5132 | 1156 | esac |
81ecdfbb | 1157 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1158 | |
1159 | -without-* | --without-*) | |
81ecdfbb | 1160 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1161 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1162 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1163 | as_fn_error "invalid package name: $ac_useropt" | |
1164 | ac_useropt_orig=$ac_useropt | |
1165 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1166 | case $ac_user_opts in | |
1167 | *" | |
1168 | "with_$ac_useropt" | |
1169 | "*) ;; | |
1170 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1171 | ac_unrecognized_sep=', ';; | |
1172 | esac | |
1173 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1174 | |
1175 | --x) | |
1176 | # Obsolete; use --with-x. | |
1177 | with_x=yes ;; | |
1178 | ||
1179 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1180 | | --x-incl | --x-inc | --x-in | --x-i) | |
1181 | ac_prev=x_includes ;; | |
1182 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1183 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 1184 | x_includes=$ac_optarg ;; |
252b5132 RH |
1185 | |
1186 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1187 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1188 | ac_prev=x_libraries ;; | |
1189 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1190 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 1191 | x_libraries=$ac_optarg ;; |
252b5132 | 1192 | |
81ecdfbb RW |
1193 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1194 | Try \`$0 --help' for more information." | |
252b5132 RH |
1195 | ;; |
1196 | ||
42ecbf5e DJ |
1197 | *=*) |
1198 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1199 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1200 | case $ac_envvar in #( |
1201 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1202 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1203 | esac | |
1204 | eval $ac_envvar=\$ac_optarg | |
42ecbf5e DJ |
1205 | export $ac_envvar ;; |
1206 | ||
252b5132 | 1207 | *) |
42ecbf5e | 1208 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1209 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
42ecbf5e | 1210 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1211 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
42ecbf5e | 1212 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1213 | ;; |
1214 | ||
1215 | esac | |
1216 | done | |
1217 | ||
1218 | if test -n "$ac_prev"; then | |
42ecbf5e | 1219 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1220 | as_fn_error "missing argument to $ac_option" |
252b5132 | 1221 | fi |
252b5132 | 1222 | |
81ecdfbb RW |
1223 | if test -n "$ac_unrecognized_opts"; then |
1224 | case $enable_option_checking in | |
1225 | no) ;; | |
1226 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1227 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
42ecbf5e | 1228 | esac |
81ecdfbb | 1229 | fi |
252b5132 | 1230 | |
81ecdfbb RW |
1231 | # Check all directory arguments for consistency. |
1232 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1233 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1234 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1235 | libdir localedir mandir | |
252b5132 | 1236 | do |
81ecdfbb RW |
1237 | eval ac_val=\$$ac_var |
1238 | # Remove trailing slashes. | |
1239 | case $ac_val in | |
1240 | */ ) | |
1241 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1242 | eval $ac_var=\$ac_val;; | |
1243 | esac | |
1244 | # Be sure to have absolute directory names. | |
42ecbf5e | 1245 | case $ac_val in |
81ecdfbb RW |
1246 | [\\/$]* | ?:[\\/]* ) continue;; |
1247 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1248 | esac |
81ecdfbb | 1249 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1250 | done |
1251 | ||
42ecbf5e DJ |
1252 | # There might be people who depend on the old broken behavior: `$host' |
1253 | # used to hold the argument of --host etc. | |
1254 | # FIXME: To remove some day. | |
1255 | build=$build_alias | |
1256 | host=$host_alias | |
1257 | target=$target_alias | |
1258 | ||
1259 | # FIXME: To remove some day. | |
1260 | if test "x$host_alias" != x; then | |
1261 | if test "x$build_alias" = x; then | |
1262 | cross_compiling=maybe | |
81ecdfbb | 1263 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
42ecbf5e DJ |
1264 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1265 | elif test "x$build_alias" != "x$host_alias"; then | |
1266 | cross_compiling=yes | |
1267 | fi | |
1268 | fi | |
e5a52504 | 1269 | |
42ecbf5e DJ |
1270 | ac_tool_prefix= |
1271 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1272 | ||
1273 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1274 | |
252b5132 | 1275 | |
81ecdfbb RW |
1276 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1277 | ac_ls_di=`ls -di .` && | |
1278 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1279 | as_fn_error "working directory cannot be determined" | |
1280 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1281 | as_fn_error "pwd does not report name of working directory" | |
1282 | ||
1283 | ||
252b5132 RH |
1284 | # Find the source files, if location was not specified. |
1285 | if test -z "$srcdir"; then | |
1286 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1287 | # Try the directory containing this script, then the parent directory. |
1288 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1289 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1290 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1291 | X"$as_myself" : 'X\(//\)$' \| \ | |
1292 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1293 | $as_echo X"$as_myself" | | |
1294 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1295 | s//\1/ | |
1296 | q | |
1297 | } | |
1298 | /^X\(\/\/\)[^/].*/{ | |
1299 | s//\1/ | |
1300 | q | |
1301 | } | |
1302 | /^X\(\/\/\)$/{ | |
1303 | s//\1/ | |
1304 | q | |
1305 | } | |
1306 | /^X\(\/\).*/{ | |
1307 | s//\1/ | |
1308 | q | |
1309 | } | |
1310 | s/.*/./; q'` | |
252b5132 | 1311 | srcdir=$ac_confdir |
81ecdfbb | 1312 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1313 | srcdir=.. |
1314 | fi | |
1315 | else | |
1316 | ac_srcdir_defaulted=no | |
1317 | fi | |
81ecdfbb RW |
1318 | if test ! -r "$srcdir/$ac_unique_file"; then |
1319 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1320 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1321 | fi | |
1322 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1323 | ac_abs_confdir=`( | |
1324 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1325 | pwd)` | |
1326 | # When building in place, set srcdir=. | |
1327 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1328 | srcdir=. | |
1329 | fi | |
1330 | # Remove unnecessary trailing slashes from srcdir. | |
1331 | # Double slashes in file names in object file debugging info | |
1332 | # mess up M-x gdb in Emacs. | |
1333 | case $srcdir in | |
1334 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1335 | esac | |
1336 | for ac_var in $ac_precious_vars; do | |
1337 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1338 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1339 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1340 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1341 | done | |
252b5132 | 1342 | |
42ecbf5e DJ |
1343 | # |
1344 | # Report the --help message. | |
1345 | # | |
1346 | if test "$ac_init_help" = "long"; then | |
1347 | # Omit some internal or obsolete options to make the list less imposing. | |
1348 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1349 | cat <<_ACEOF | |
1350 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 1351 | |
42ecbf5e | 1352 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1353 | |
42ecbf5e DJ |
1354 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1355 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1356 | |
42ecbf5e | 1357 | Defaults for the options are specified in brackets. |
ac48eca1 | 1358 | |
42ecbf5e DJ |
1359 | Configuration: |
1360 | -h, --help display this help and exit | |
1361 | --help=short display options specific to this package | |
1362 | --help=recursive display the short help of all the included packages | |
1363 | -V, --version display version information and exit | |
1364 | -q, --quiet, --silent do not print \`checking...' messages | |
1365 | --cache-file=FILE cache test results in FILE [disabled] | |
1366 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1367 | -n, --no-create do not create output files | |
1368 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1369 | ||
42ecbf5e DJ |
1370 | Installation directories: |
1371 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1372 | [$ac_default_prefix] |
42ecbf5e | 1373 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1374 | [PREFIX] |
ac48eca1 | 1375 | |
42ecbf5e DJ |
1376 | By default, \`make install' will install all the files in |
1377 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1378 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1379 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1380 | |
42ecbf5e | 1381 | For better control, use the options below. |
ac48eca1 | 1382 | |
42ecbf5e | 1383 | Fine tuning of the installation directories: |
81ecdfbb RW |
1384 | --bindir=DIR user executables [EPREFIX/bin] |
1385 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1386 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1387 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1388 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1389 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1390 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1391 | --includedir=DIR C header files [PREFIX/include] | |
1392 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1393 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1394 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1395 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1396 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1397 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1398 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1399 | --htmldir=DIR html documentation [DOCDIR] | |
1400 | --dvidir=DIR dvi documentation [DOCDIR] | |
1401 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1402 | --psdir=DIR ps documentation [DOCDIR] | |
42ecbf5e | 1403 | _ACEOF |
ac48eca1 | 1404 | |
42ecbf5e | 1405 | cat <<\_ACEOF |
252b5132 | 1406 | |
42ecbf5e DJ |
1407 | Program names: |
1408 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1409 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1410 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1411 | |
42ecbf5e DJ |
1412 | System types: |
1413 | --build=BUILD configure for building on BUILD [guessed] | |
1414 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1415 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1416 | _ACEOF | |
252b5132 | 1417 | fi |
252b5132 | 1418 | |
42ecbf5e | 1419 | if test -n "$ac_init_help"; then |
252b5132 | 1420 | |
42ecbf5e | 1421 | cat <<\_ACEOF |
e5a52504 | 1422 | |
42ecbf5e | 1423 | Optional Features: |
81ecdfbb | 1424 | --disable-option-checking ignore unrecognized --enable/--with options |
42ecbf5e DJ |
1425 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1426 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1427 | --disable-dependency-tracking speeds up one-time build | |
1428 | --enable-dependency-tracking do not reject slow dependency extractors | |
64ac50ac RW |
1429 | --enable-maintainer-mode enable make rules and dependencies not useful |
1430 | (and sometimes confusing) to the casual installer | |
ce2cded5 L |
1431 | --enable-targets alternative target configurations |
1432 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
c7791212 | 1433 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7fb9f789 NC |
1434 | --enable-got=<type> GOT handling scheme (target, single, negative, |
1435 | multigot) | |
ce2cded5 L |
1436 | --enable-werror treat compile warnings as errors |
1437 | --enable-build-warnings enable build-time compiler warnings | |
da2f07f1 | 1438 | --enable-plugins Enable support for plugins (defaults no) |
d053aef8 | 1439 | --disable-largefile omit support for large files |
81ecdfbb RW |
1440 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1441 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1442 | --enable-fast-install[=PKGS] |
1443 | optimize for fast installation [default=yes] | |
42ecbf5e | 1444 | --disable-libtool-lock avoid locking (might break parallel builds) |
42ecbf5e | 1445 | --disable-nls do not use Native Language Support |
02ecc8e9 | 1446 | --enable-initfini-array use .init_array/.fini_array sections |
42ecbf5e DJ |
1447 | |
1448 | Optional Packages: | |
1449 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1450 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
ce2cded5 L |
1451 | --with-lib-path=dir1:dir2... set default LIB_PATH |
1452 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
d7040cdb SE |
1453 | --with-pic try to use only PIC/non-PIC objects [default=use |
1454 | both] | |
1455 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
52546677 | 1456 | --with-zlib include zlib support (auto/yes/no) default=auto |
42ecbf5e DJ |
1457 | |
1458 | Some influential environment variables: | |
1459 | CC C compiler command | |
1460 | CFLAGS C compiler flags | |
1461 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1462 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1463 | LIBS libraries to pass to the linker, e.g. -l<library> |
1464 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1465 | you have headers in a nonstandard directory <include dir> | |
42ecbf5e | 1466 | CPP C preprocessor |
3cb62297 L |
1467 | CXX C++ compiler command |
1468 | CXXFLAGS C++ compiler flags | |
1469 | CXXCPP C++ preprocessor | |
81ecdfbb RW |
1470 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1471 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1472 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1473 | This script will default YFLAGS to the empty string to avoid a | |
1474 | default value of `-d' given by some make applications. | |
42ecbf5e DJ |
1475 | |
1476 | Use these variables to override the choices made by `configure' or to help | |
1477 | it to find libraries and programs with nonstandard names/locations. | |
1478 | ||
81ecdfbb | 1479 | Report bugs to the package provider. |
42ecbf5e | 1480 | _ACEOF |
81ecdfbb | 1481 | ac_status=$? |
42ecbf5e DJ |
1482 | fi |
1483 | ||
1484 | if test "$ac_init_help" = "recursive"; then | |
1485 | # If there are subdirs, report their specific --help. | |
42ecbf5e | 1486 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1487 | test -d "$ac_dir" || |
1488 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1489 | continue | |
42ecbf5e DJ |
1490 | ac_builddir=. |
1491 | ||
81ecdfbb RW |
1492 | case "$ac_dir" in |
1493 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1494 | *) | |
1495 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1496 | # A ".." for each directory in $ac_dir_suffix. | |
1497 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1498 | case $ac_top_builddir_sub in | |
1499 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1500 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1501 | esac ;; | |
1502 | esac | |
1503 | ac_abs_top_builddir=$ac_pwd | |
1504 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1505 | # for backward compatibility: | |
1506 | ac_top_builddir=$ac_top_build_prefix | |
42ecbf5e DJ |
1507 | |
1508 | case $srcdir in | |
81ecdfbb | 1509 | .) # We are building in place. |
42ecbf5e | 1510 | ac_srcdir=. |
81ecdfbb RW |
1511 | ac_top_srcdir=$ac_top_builddir_sub |
1512 | ac_abs_top_srcdir=$ac_pwd ;; | |
1513 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 1514 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1515 | ac_top_srcdir=$srcdir |
1516 | ac_abs_top_srcdir=$srcdir ;; | |
1517 | *) # Relative name. | |
1518 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1519 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1520 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 1521 | esac |
81ecdfbb RW |
1522 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1523 | ||
1524 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1525 | # Check for guested configure. | |
1526 | if test -f "$ac_srcdir/configure.gnu"; then | |
1527 | echo && | |
1528 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1529 | elif test -f "$ac_srcdir/configure"; then | |
1530 | echo && | |
1531 | $SHELL "$ac_srcdir/configure" --help=recursive | |
42ecbf5e | 1532 | else |
81ecdfbb RW |
1533 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1534 | fi || ac_status=$? | |
1535 | cd "$ac_pwd" || { ac_status=$?; break; } | |
42ecbf5e | 1536 | done |
a2d91340 AC |
1537 | fi |
1538 | ||
81ecdfbb | 1539 | test -n "$ac_init_help" && exit $ac_status |
42ecbf5e DJ |
1540 | if $ac_init_version; then |
1541 | cat <<\_ACEOF | |
81ecdfbb RW |
1542 | configure |
1543 | generated by GNU Autoconf 2.64 | |
a2d91340 | 1544 | |
81ecdfbb | 1545 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
1546 | This configure script is free software; the Free Software Foundation |
1547 | gives unlimited permission to copy, distribute and modify it. | |
1548 | _ACEOF | |
81ecdfbb | 1549 | exit |
42ecbf5e | 1550 | fi |
a2d91340 | 1551 | |
81ecdfbb RW |
1552 | ## ------------------------ ## |
1553 | ## Autoconf initialization. ## | |
1554 | ## ------------------------ ## | |
a2d91340 | 1555 | |
81ecdfbb RW |
1556 | # ac_fn_c_try_compile LINENO |
1557 | # -------------------------- | |
1558 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1559 | ac_fn_c_try_compile () | |
1560 | { | |
1561 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1562 | rm -f conftest.$ac_objext | |
1563 | if { { ac_try="$ac_compile" | |
1564 | case "(($ac_try" in | |
1565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1566 | *) ac_try_echo=$ac_try;; | |
1567 | esac | |
1568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1569 | $as_echo "$ac_try_echo"; } >&5 | |
1570 | (eval "$ac_compile") 2>conftest.err | |
1571 | ac_status=$? | |
1572 | if test -s conftest.err; then | |
1573 | grep -v '^ *+' conftest.err >conftest.er1 | |
1574 | cat conftest.er1 >&5 | |
1575 | mv -f conftest.er1 conftest.err | |
1576 | fi | |
1577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1578 | test $ac_status = 0; } && { | |
1579 | test -z "$ac_c_werror_flag" || | |
1580 | test ! -s conftest.err | |
1581 | } && test -s conftest.$ac_objext; then : | |
1582 | ac_retval=0 | |
1583 | else | |
1584 | $as_echo "$as_me: failed program was:" >&5 | |
1585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a2d91340 | 1586 | |
81ecdfbb RW |
1587 | ac_retval=1 |
1588 | fi | |
1589 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1590 | return $ac_retval | |
1591 | ||
1592 | } # ac_fn_c_try_compile | |
1593 | ||
1594 | # ac_fn_c_try_link LINENO | |
1595 | # ----------------------- | |
1596 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1597 | ac_fn_c_try_link () | |
42ecbf5e | 1598 | { |
81ecdfbb RW |
1599 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1601 | if { { ac_try="$ac_link" | |
1602 | case "(($ac_try" in | |
1603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1604 | *) ac_try_echo=$ac_try;; | |
1605 | esac | |
1606 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1607 | $as_echo "$ac_try_echo"; } >&5 | |
1608 | (eval "$ac_link") 2>conftest.err | |
1609 | ac_status=$? | |
1610 | if test -s conftest.err; then | |
1611 | grep -v '^ *+' conftest.err >conftest.er1 | |
1612 | cat conftest.er1 >&5 | |
1613 | mv -f conftest.er1 conftest.err | |
1614 | fi | |
1615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1616 | test $ac_status = 0; } && { | |
1617 | test -z "$ac_c_werror_flag" || | |
1618 | test ! -s conftest.err | |
1619 | } && test -s conftest$ac_exeext && { | |
1620 | test "$cross_compiling" = yes || | |
1621 | $as_test_x conftest$ac_exeext | |
1622 | }; then : | |
1623 | ac_retval=0 | |
1624 | else | |
1625 | $as_echo "$as_me: failed program was:" >&5 | |
1626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 1627 | |
81ecdfbb RW |
1628 | ac_retval=1 |
1629 | fi | |
1630 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1631 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1632 | # interfere with the next link command; also delete a directory that is | |
1633 | # left behind by Apple's compiler. We do this before executing the actions. | |
1634 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1635 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1636 | return $ac_retval | |
42ecbf5e | 1637 | |
81ecdfbb | 1638 | } # ac_fn_c_try_link |
42ecbf5e | 1639 | |
81ecdfbb RW |
1640 | # ac_fn_c_try_cpp LINENO |
1641 | # ---------------------- | |
1642 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1643 | ac_fn_c_try_cpp () | |
1644 | { | |
1645 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1646 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1647 | case "(($ac_try" in | |
1648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1649 | *) ac_try_echo=$ac_try;; | |
1650 | esac | |
1651 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1652 | $as_echo "$ac_try_echo"; } >&5 | |
1653 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1654 | ac_status=$? | |
1655 | if test -s conftest.err; then | |
1656 | grep -v '^ *+' conftest.err >conftest.er1 | |
1657 | cat conftest.er1 >&5 | |
1658 | mv -f conftest.er1 conftest.err | |
1659 | fi | |
1660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1661 | test $ac_status = 0; } >/dev/null && { | |
1662 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1663 | test ! -s conftest.err | |
1664 | }; then : | |
1665 | ac_retval=0 | |
1666 | else | |
1667 | $as_echo "$as_me: failed program was:" >&5 | |
1668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1669 | ||
1670 | ac_retval=1 | |
1671 | fi | |
1672 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1673 | return $ac_retval | |
1674 | ||
1675 | } # ac_fn_c_try_cpp | |
1676 | ||
3cb62297 L |
1677 | # ac_fn_cxx_try_compile LINENO |
1678 | # ---------------------------- | |
1679 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1680 | ac_fn_cxx_try_compile () | |
1681 | { | |
1682 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1683 | rm -f conftest.$ac_objext | |
1684 | if { { ac_try="$ac_compile" | |
1685 | case "(($ac_try" in | |
1686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1687 | *) ac_try_echo=$ac_try;; | |
1688 | esac | |
1689 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1690 | $as_echo "$ac_try_echo"; } >&5 | |
1691 | (eval "$ac_compile") 2>conftest.err | |
1692 | ac_status=$? | |
1693 | if test -s conftest.err; then | |
1694 | grep -v '^ *+' conftest.err >conftest.er1 | |
1695 | cat conftest.er1 >&5 | |
1696 | mv -f conftest.er1 conftest.err | |
1697 | fi | |
1698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1699 | test $ac_status = 0; } && { | |
1700 | test -z "$ac_cxx_werror_flag" || | |
1701 | test ! -s conftest.err | |
1702 | } && test -s conftest.$ac_objext; then : | |
1703 | ac_retval=0 | |
1704 | else | |
1705 | $as_echo "$as_me: failed program was:" >&5 | |
1706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1707 | ||
1708 | ac_retval=1 | |
1709 | fi | |
1710 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1711 | return $ac_retval | |
1712 | ||
1713 | } # ac_fn_cxx_try_compile | |
1714 | ||
81ecdfbb RW |
1715 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1716 | # ------------------------------------------------------- | |
1717 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1718 | # the include files in INCLUDES and setting the cache variable VAR | |
1719 | # accordingly. | |
1720 | ac_fn_c_check_header_mongrel () | |
1721 | { | |
1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1723 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1725 | $as_echo_n "checking for $2... " >&6; } | |
1726 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1727 | $as_echo_n "(cached) " >&6 | |
1728 | fi | |
1729 | eval ac_res=\$$3 | |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1731 | $as_echo "$ac_res" >&6; } | |
1732 | else | |
1733 | # Is the header compilable? | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1735 | $as_echo_n "checking $2 usability... " >&6; } | |
1736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1737 | /* end confdefs.h. */ | |
1738 | $4 | |
1739 | #include <$2> | |
1740 | _ACEOF | |
1741 | if ac_fn_c_try_compile "$LINENO"; then : | |
1742 | ac_header_compiler=yes | |
1743 | else | |
1744 | ac_header_compiler=no | |
1745 | fi | |
1746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1748 | $as_echo "$ac_header_compiler" >&6; } | |
1749 | ||
1750 | # Is the header present? | |
1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1752 | $as_echo_n "checking $2 presence... " >&6; } | |
1753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1754 | /* end confdefs.h. */ | |
1755 | #include <$2> | |
1756 | _ACEOF | |
1757 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1758 | ac_header_preproc=yes | |
1759 | else | |
1760 | ac_header_preproc=no | |
1761 | fi | |
1762 | rm -f conftest.err conftest.$ac_ext | |
1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1764 | $as_echo "$ac_header_preproc" >&6; } | |
1765 | ||
1766 | # So? What about this header? | |
1767 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1768 | yes:no: ) | |
1769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1770 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1772 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1773 | ;; | |
1774 | no:yes:* ) | |
1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1776 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1778 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1780 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1782 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1784 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1785 | ;; | |
1786 | esac | |
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1788 | $as_echo_n "checking for $2... " >&6; } | |
1789 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1790 | $as_echo_n "(cached) " >&6 | |
1791 | else | |
1792 | eval "$3=\$ac_header_compiler" | |
1793 | fi | |
1794 | eval ac_res=\$$3 | |
1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1796 | $as_echo "$ac_res" >&6; } | |
1797 | fi | |
1798 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1799 | ||
1800 | } # ac_fn_c_check_header_mongrel | |
1801 | ||
1802 | # ac_fn_c_try_run LINENO | |
1803 | # ---------------------- | |
1804 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1805 | # that executables *can* be run. | |
1806 | ac_fn_c_try_run () | |
1807 | { | |
1808 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1809 | if { { ac_try="$ac_link" | |
1810 | case "(($ac_try" in | |
1811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1812 | *) ac_try_echo=$ac_try;; | |
1813 | esac | |
1814 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1815 | $as_echo "$ac_try_echo"; } >&5 | |
1816 | (eval "$ac_link") 2>&5 | |
1817 | ac_status=$? | |
1818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1819 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1820 | { { case "(($ac_try" in | |
1821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1822 | *) ac_try_echo=$ac_try;; | |
1823 | esac | |
1824 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1825 | $as_echo "$ac_try_echo"; } >&5 | |
1826 | (eval "$ac_try") 2>&5 | |
1827 | ac_status=$? | |
1828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1829 | test $ac_status = 0; }; }; then : | |
1830 | ac_retval=0 | |
1831 | else | |
1832 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1833 | $as_echo "$as_me: failed program was:" >&5 | |
1834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1835 | ||
1836 | ac_retval=$ac_status | |
1837 | fi | |
1838 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1839 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1840 | return $ac_retval | |
1841 | ||
1842 | } # ac_fn_c_try_run | |
1843 | ||
1844 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1845 | # ------------------------------------------------------- | |
1846 | # Tests whether HEADER exists and can be compiled using the include files in | |
1847 | # INCLUDES, setting the cache variable VAR accordingly. | |
1848 | ac_fn_c_check_header_compile () | |
1849 | { | |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1852 | $as_echo_n "checking for $2... " >&6; } | |
1853 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1854 | $as_echo_n "(cached) " >&6 | |
1855 | else | |
1856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1857 | /* end confdefs.h. */ | |
1858 | $4 | |
1859 | #include <$2> | |
1860 | _ACEOF | |
1861 | if ac_fn_c_try_compile "$LINENO"; then : | |
1862 | eval "$3=yes" | |
1863 | else | |
1864 | eval "$3=no" | |
1865 | fi | |
1866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1867 | fi | |
1868 | eval ac_res=\$$3 | |
1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1870 | $as_echo "$ac_res" >&6; } | |
1871 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1872 | ||
1873 | } # ac_fn_c_check_header_compile | |
1874 | ||
1875 | # ac_fn_c_check_func LINENO FUNC VAR | |
1876 | # ---------------------------------- | |
1877 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1878 | ac_fn_c_check_func () | |
1879 | { | |
1880 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1882 | $as_echo_n "checking for $2... " >&6; } | |
1883 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1884 | $as_echo_n "(cached) " >&6 | |
1885 | else | |
1886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1887 | /* end confdefs.h. */ | |
1888 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1890 | #define $2 innocuous_$2 | |
1891 | ||
1892 | /* System header to define __stub macros and hopefully few prototypes, | |
1893 | which can conflict with char $2 (); below. | |
1894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1895 | <limits.h> exists even on freestanding compilers. */ | |
1896 | ||
1897 | #ifdef __STDC__ | |
1898 | # include <limits.h> | |
1899 | #else | |
1900 | # include <assert.h> | |
1901 | #endif | |
1902 | ||
1903 | #undef $2 | |
1904 | ||
1905 | /* Override any GCC internal prototype to avoid an error. | |
1906 | Use char because int might match the return type of a GCC | |
1907 | builtin and then its argument prototype would still apply. */ | |
1908 | #ifdef __cplusplus | |
1909 | extern "C" | |
1910 | #endif | |
1911 | char $2 (); | |
1912 | /* The GNU C library defines this for functions which it implements | |
1913 | to always fail with ENOSYS. Some functions are actually named | |
1914 | something starting with __ and the normal name is an alias. */ | |
1915 | #if defined __stub_$2 || defined __stub___$2 | |
1916 | choke me | |
1917 | #endif | |
1918 | ||
1919 | int | |
1920 | main () | |
1921 | { | |
1922 | return $2 (); | |
1923 | ; | |
1924 | return 0; | |
1925 | } | |
1926 | _ACEOF | |
1927 | if ac_fn_c_try_link "$LINENO"; then : | |
1928 | eval "$3=yes" | |
1929 | else | |
1930 | eval "$3=no" | |
1931 | fi | |
1932 | rm -f core conftest.err conftest.$ac_objext \ | |
1933 | conftest$ac_exeext conftest.$ac_ext | |
1934 | fi | |
1935 | eval ac_res=\$$3 | |
1936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1937 | $as_echo "$ac_res" >&6; } | |
1938 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1939 | ||
1940 | } # ac_fn_c_check_func | |
1941 | ||
3cb62297 L |
1942 | # ac_fn_cxx_try_cpp LINENO |
1943 | # ------------------------ | |
1944 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1945 | ac_fn_cxx_try_cpp () | |
1946 | { | |
1947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1948 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1949 | case "(($ac_try" in | |
1950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1951 | *) ac_try_echo=$ac_try;; | |
1952 | esac | |
1953 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1954 | $as_echo "$ac_try_echo"; } >&5 | |
1955 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1956 | ac_status=$? | |
1957 | if test -s conftest.err; then | |
1958 | grep -v '^ *+' conftest.err >conftest.er1 | |
1959 | cat conftest.er1 >&5 | |
1960 | mv -f conftest.er1 conftest.err | |
1961 | fi | |
1962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1963 | test $ac_status = 0; } >/dev/null && { | |
1964 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1965 | test ! -s conftest.err | |
1966 | }; then : | |
1967 | ac_retval=0 | |
1968 | else | |
1969 | $as_echo "$as_me: failed program was:" >&5 | |
1970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1971 | ||
1972 | ac_retval=1 | |
1973 | fi | |
1974 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1975 | return $ac_retval | |
1976 | ||
1977 | } # ac_fn_cxx_try_cpp | |
1978 | ||
1979 | # ac_fn_cxx_try_link LINENO | |
1980 | # ------------------------- | |
1981 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1982 | ac_fn_cxx_try_link () | |
1983 | { | |
1984 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1986 | if { { ac_try="$ac_link" | |
1987 | case "(($ac_try" in | |
1988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1989 | *) ac_try_echo=$ac_try;; | |
1990 | esac | |
1991 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1992 | $as_echo "$ac_try_echo"; } >&5 | |
1993 | (eval "$ac_link") 2>conftest.err | |
1994 | ac_status=$? | |
1995 | if test -s conftest.err; then | |
1996 | grep -v '^ *+' conftest.err >conftest.er1 | |
1997 | cat conftest.er1 >&5 | |
1998 | mv -f conftest.er1 conftest.err | |
1999 | fi | |
2000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2001 | test $ac_status = 0; } && { | |
2002 | test -z "$ac_cxx_werror_flag" || | |
2003 | test ! -s conftest.err | |
2004 | } && test -s conftest$ac_exeext && { | |
2005 | test "$cross_compiling" = yes || | |
2006 | $as_test_x conftest$ac_exeext | |
2007 | }; then : | |
2008 | ac_retval=0 | |
2009 | else | |
2010 | $as_echo "$as_me: failed program was:" >&5 | |
2011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2012 | ||
2013 | ac_retval=1 | |
2014 | fi | |
2015 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2016 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2017 | # interfere with the next link command; also delete a directory that is | |
2018 | # left behind by Apple's compiler. We do this before executing the actions. | |
2019 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2020 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2021 | return $ac_retval | |
2022 | ||
2023 | } # ac_fn_cxx_try_link | |
2024 | ||
81ecdfbb RW |
2025 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
2026 | # ------------------------------------ | |
2027 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2028 | ac_fn_c_check_decl () | |
2029 | { | |
2030 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
2031 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2032 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2034 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2035 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2036 | $as_echo_n "(cached) " >&6 | |
2037 | else | |
2038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2039 | /* end confdefs.h. */ | |
2040 | $4 | |
2041 | int | |
2042 | main () | |
2043 | { | |
360cfc9c AM |
2044 | #ifndef $as_decl_name |
2045 | #ifdef __cplusplus | |
2046 | (void) $as_decl_use; | |
2047 | #else | |
2048 | (void) $as_decl_name; | |
2049 | #endif | |
81ecdfbb RW |
2050 | #endif |
2051 | ||
2052 | ; | |
2053 | return 0; | |
2054 | } | |
2055 | _ACEOF | |
2056 | if ac_fn_c_try_compile "$LINENO"; then : | |
2057 | eval "$3=yes" | |
2058 | else | |
2059 | eval "$3=no" | |
2060 | fi | |
2061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2062 | fi | |
2063 | eval ac_res=\$$3 | |
2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2065 | $as_echo "$ac_res" >&6; } | |
2066 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2067 | ||
2068 | } # ac_fn_c_check_decl | |
2069 | ||
2070 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2071 | # -------------------------------------------- | |
2072 | # Tries to find the compile-time value of EXPR in a program that includes | |
2073 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2074 | # computed | |
2075 | ac_fn_c_compute_int () | |
2076 | { | |
2077 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2078 | if test "$cross_compiling" = yes; then | |
2079 | # Depending upon the size, compute the lo and hi bounds. | |
2080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2081 | /* end confdefs.h. */ | |
2082 | $4 | |
2083 | int | |
2084 | main () | |
2085 | { | |
2086 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2087 | test_array [0] = 0 | |
2088 | ||
2089 | ; | |
2090 | return 0; | |
2091 | } | |
2092 | _ACEOF | |
2093 | if ac_fn_c_try_compile "$LINENO"; then : | |
2094 | ac_lo=0 ac_mid=0 | |
2095 | while :; do | |
2096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2097 | /* end confdefs.h. */ | |
2098 | $4 | |
2099 | int | |
2100 | main () | |
2101 | { | |
2102 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2103 | test_array [0] = 0 | |
2104 | ||
2105 | ; | |
2106 | return 0; | |
2107 | } | |
2108 | _ACEOF | |
2109 | if ac_fn_c_try_compile "$LINENO"; then : | |
2110 | ac_hi=$ac_mid; break | |
2111 | else | |
2112 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2113 | if test $ac_lo -le $ac_mid; then | |
2114 | ac_lo= ac_hi= | |
2115 | break | |
2116 | fi | |
2117 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2118 | fi | |
2119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2120 | done | |
2121 | else | |
2122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2123 | /* end confdefs.h. */ | |
2124 | $4 | |
2125 | int | |
2126 | main () | |
2127 | { | |
2128 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2129 | test_array [0] = 0 | |
2130 | ||
2131 | ; | |
2132 | return 0; | |
2133 | } | |
2134 | _ACEOF | |
2135 | if ac_fn_c_try_compile "$LINENO"; then : | |
2136 | ac_hi=-1 ac_mid=-1 | |
2137 | while :; do | |
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2139 | /* end confdefs.h. */ | |
2140 | $4 | |
2141 | int | |
2142 | main () | |
2143 | { | |
2144 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2145 | test_array [0] = 0 | |
2146 | ||
2147 | ; | |
2148 | return 0; | |
2149 | } | |
2150 | _ACEOF | |
2151 | if ac_fn_c_try_compile "$LINENO"; then : | |
2152 | ac_lo=$ac_mid; break | |
2153 | else | |
2154 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2155 | if test $ac_mid -le $ac_hi; then | |
2156 | ac_lo= ac_hi= | |
2157 | break | |
2158 | fi | |
2159 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2160 | fi | |
2161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2162 | done | |
2163 | else | |
2164 | ac_lo= ac_hi= | |
2165 | fi | |
2166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2167 | fi | |
2168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2169 | # Binary search between lo and hi bounds. | |
2170 | while test "x$ac_lo" != "x$ac_hi"; do | |
2171 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2173 | /* end confdefs.h. */ | |
2174 | $4 | |
2175 | int | |
2176 | main () | |
2177 | { | |
2178 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2179 | test_array [0] = 0 | |
2180 | ||
2181 | ; | |
2182 | return 0; | |
2183 | } | |
2184 | _ACEOF | |
2185 | if ac_fn_c_try_compile "$LINENO"; then : | |
2186 | ac_hi=$ac_mid | |
2187 | else | |
2188 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2189 | fi | |
2190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2191 | done | |
2192 | case $ac_lo in #(( | |
2193 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2194 | '') ac_retval=1 ;; | |
2195 | esac | |
2196 | else | |
2197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2198 | /* end confdefs.h. */ | |
2199 | $4 | |
2200 | static long int longval () { return $2; } | |
2201 | static unsigned long int ulongval () { return $2; } | |
2202 | #include <stdio.h> | |
2203 | #include <stdlib.h> | |
2204 | int | |
2205 | main () | |
2206 | { | |
2207 | ||
2208 | FILE *f = fopen ("conftest.val", "w"); | |
2209 | if (! f) | |
2210 | return 1; | |
2211 | if (($2) < 0) | |
2212 | { | |
2213 | long int i = longval (); | |
2214 | if (i != ($2)) | |
2215 | return 1; | |
2216 | fprintf (f, "%ld", i); | |
2217 | } | |
2218 | else | |
2219 | { | |
2220 | unsigned long int i = ulongval (); | |
2221 | if (i != ($2)) | |
2222 | return 1; | |
2223 | fprintf (f, "%lu", i); | |
2224 | } | |
2225 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2226 | on some platforms. */ | |
2227 | return ferror (f) || fclose (f) != 0; | |
2228 | ||
2229 | ; | |
2230 | return 0; | |
2231 | } | |
2232 | _ACEOF | |
2233 | if ac_fn_c_try_run "$LINENO"; then : | |
2234 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2235 | else | |
2236 | ac_retval=1 | |
2237 | fi | |
2238 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2239 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2240 | rm -f conftest.val | |
2241 | ||
2242 | fi | |
2243 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2244 | return $ac_retval | |
2245 | ||
2246 | } # ac_fn_c_compute_int | |
2247 | cat >config.log <<_ACEOF | |
2248 | This file contains any messages produced by compilers while | |
2249 | running configure, to aid debugging if configure makes a mistake. | |
2250 | ||
2251 | It was created by $as_me, which was | |
2252 | generated by GNU Autoconf 2.64. Invocation command line was | |
2253 | ||
2254 | $ $0 $@ | |
2255 | ||
2256 | _ACEOF | |
2257 | exec 5>>config.log | |
2258 | { | |
2259 | cat <<_ASUNAME | |
2260 | ## --------- ## | |
2261 | ## Platform. ## | |
2262 | ## --------- ## | |
2263 | ||
2264 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2265 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2266 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2267 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2268 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2269 | ||
2270 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2271 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2272 | ||
2273 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2274 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2275 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2276 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
42ecbf5e DJ |
2277 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2278 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2279 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2280 | ||
2281 | _ASUNAME | |
2282 | ||
2283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2284 | for as_dir in $PATH | |
2285 | do | |
2286 | IFS=$as_save_IFS | |
2287 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2288 | $as_echo "PATH: $as_dir" |
2289 | done | |
2290 | IFS=$as_save_IFS | |
252b5132 | 2291 | |
42ecbf5e | 2292 | } >&5 |
5d64ca4e | 2293 | |
42ecbf5e | 2294 | cat >&5 <<_ACEOF |
5d64ca4e | 2295 | |
5d64ca4e | 2296 | |
42ecbf5e DJ |
2297 | ## ----------- ## |
2298 | ## Core tests. ## | |
2299 | ## ----------- ## | |
5d64ca4e | 2300 | |
42ecbf5e | 2301 | _ACEOF |
2469cfa2 | 2302 | |
42ecbf5e DJ |
2303 | |
2304 | # Keep a trace of the command line. | |
2305 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2306 | # Strip out --silent because we don't want to record it for future runs. | |
2307 | # Also quote any args containing shell meta-characters. | |
2308 | # Make two passes to allow for proper duplicate-argument suppression. | |
2309 | ac_configure_args= | |
2310 | ac_configure_args0= | |
2311 | ac_configure_args1= | |
42ecbf5e DJ |
2312 | ac_must_keep_next=false |
2313 | for ac_pass in 1 2 | |
2314 | do | |
2315 | for ac_arg | |
2316 | do | |
2317 | case $ac_arg in | |
2318 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2319 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2320 | | -silent | --silent | --silen | --sile | --sil) | |
2321 | continue ;; | |
81ecdfbb RW |
2322 | *\'*) |
2323 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42ecbf5e DJ |
2324 | esac |
2325 | case $ac_pass in | |
81ecdfbb | 2326 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
42ecbf5e | 2327 | 2) |
81ecdfbb | 2328 | as_fn_append ac_configure_args1 " '$ac_arg'" |
42ecbf5e DJ |
2329 | if test $ac_must_keep_next = true; then |
2330 | ac_must_keep_next=false # Got value, back to normal. | |
2331 | else | |
2332 | case $ac_arg in | |
2333 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2334 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2335 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2336 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2337 | case "$ac_configure_args0 " in | |
2338 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2339 | esac | |
2340 | ;; | |
2341 | -* ) ac_must_keep_next=true ;; | |
2342 | esac | |
2343 | fi | |
81ecdfbb | 2344 | as_fn_append ac_configure_args " '$ac_arg'" |
42ecbf5e DJ |
2345 | ;; |
2346 | esac | |
2347 | done | |
2348 | done | |
81ecdfbb RW |
2349 | { ac_configure_args0=; unset ac_configure_args0;} |
2350 | { ac_configure_args1=; unset ac_configure_args1;} | |
42ecbf5e DJ |
2351 | |
2352 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2353 | # config.log. We remove comments because anyway the quotes in there | |
2354 | # would cause problems or look ugly. | |
81ecdfbb RW |
2355 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2356 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
42ecbf5e DJ |
2357 | trap 'exit_status=$? |
2358 | # Save into config.log some information that might help in debugging. | |
2359 | { | |
2360 | echo | |
2361 | ||
2362 | cat <<\_ASBOX | |
2363 | ## ---------------- ## | |
2364 | ## Cache variables. ## | |
2365 | ## ---------------- ## | |
2366 | _ASBOX | |
2367 | echo | |
2368 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2369 | ( |
2370 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2371 | eval ac_val=\$$ac_var | |
2372 | case $ac_val in #( | |
2373 | *${as_nl}*) | |
2374 | case $ac_var in #( | |
2375 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2376 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2377 | esac | |
2378 | case $ac_var in #( | |
2379 | _ | IFS | as_nl) ;; #( | |
2380 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2381 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2382 | esac ;; | |
2383 | esac | |
2384 | done | |
42ecbf5e | 2385 | (set) 2>&1 | |
81ecdfbb RW |
2386 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2387 | *${as_nl}ac_space=\ *) | |
42ecbf5e | 2388 | sed -n \ |
81ecdfbb RW |
2389 | "s/'\''/'\''\\\\'\'''\''/g; |
2390 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2391 | ;; #( | |
42ecbf5e | 2392 | *) |
81ecdfbb | 2393 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 2394 | ;; |
81ecdfbb RW |
2395 | esac | |
2396 | sort | |
2397 | ) | |
42ecbf5e DJ |
2398 | echo |
2399 | ||
2400 | cat <<\_ASBOX | |
2401 | ## ----------------- ## | |
2402 | ## Output variables. ## | |
2403 | ## ----------------- ## | |
2404 | _ASBOX | |
2405 | echo | |
2406 | for ac_var in $ac_subst_vars | |
2407 | do | |
81ecdfbb RW |
2408 | eval ac_val=\$$ac_var |
2409 | case $ac_val in | |
2410 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2411 | esac | |
2412 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2413 | done | sort |
2414 | echo | |
2415 | ||
2416 | if test -n "$ac_subst_files"; then | |
2417 | cat <<\_ASBOX | |
81ecdfbb RW |
2418 | ## ------------------- ## |
2419 | ## File substitutions. ## | |
2420 | ## ------------------- ## | |
42ecbf5e DJ |
2421 | _ASBOX |
2422 | echo | |
2423 | for ac_var in $ac_subst_files | |
2424 | do | |
81ecdfbb RW |
2425 | eval ac_val=\$$ac_var |
2426 | case $ac_val in | |
2427 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2428 | esac | |
2429 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2430 | done | sort |
2431 | echo | |
2432 | fi | |
2433 | ||
2434 | if test -s confdefs.h; then | |
2435 | cat <<\_ASBOX | |
2436 | ## ----------- ## | |
2437 | ## confdefs.h. ## | |
2438 | ## ----------- ## | |
2439 | _ASBOX | |
2440 | echo | |
81ecdfbb | 2441 | cat confdefs.h |
42ecbf5e DJ |
2442 | echo |
2443 | fi | |
2444 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2445 | $as_echo "$as_me: caught signal $ac_signal" |
2446 | $as_echo "$as_me: exit $exit_status" | |
42ecbf5e | 2447 | } >&5 |
81ecdfbb RW |
2448 | rm -f core *.core core.conftest.* && |
2449 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
42ecbf5e | 2450 | exit $exit_status |
81ecdfbb | 2451 | ' 0 |
42ecbf5e | 2452 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2453 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
42ecbf5e DJ |
2454 | done |
2455 | ac_signal=0 | |
2456 | ||
2457 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2458 | rm -f -r conftest* confdefs.h |
2459 | ||
2460 | $as_echo "/* confdefs.h */" > confdefs.h | |
42ecbf5e DJ |
2461 | |
2462 | # Predefined preprocessor variables. | |
2463 | ||
2464 | cat >>confdefs.h <<_ACEOF | |
2465 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2466 | _ACEOF | |
2467 | ||
42ecbf5e DJ |
2468 | cat >>confdefs.h <<_ACEOF |
2469 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2470 | _ACEOF | |
2471 | ||
42ecbf5e DJ |
2472 | cat >>confdefs.h <<_ACEOF |
2473 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2474 | _ACEOF | |
2475 | ||
42ecbf5e DJ |
2476 | cat >>confdefs.h <<_ACEOF |
2477 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2478 | _ACEOF | |
2479 | ||
42ecbf5e DJ |
2480 | cat >>confdefs.h <<_ACEOF |
2481 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2482 | _ACEOF | |
2483 | ||
81ecdfbb RW |
2484 | cat >>confdefs.h <<_ACEOF |
2485 | #define PACKAGE_URL "$PACKAGE_URL" | |
2486 | _ACEOF | |
2487 | ||
42ecbf5e DJ |
2488 | |
2489 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2490 | # Prefer an explicitly selected file to automatically selected ones. |
2491 | ac_site_file1=NONE | |
2492 | ac_site_file2=NONE | |
2493 | if test -n "$CONFIG_SITE"; then | |
2494 | ac_site_file1=$CONFIG_SITE | |
2495 | elif test "x$prefix" != xNONE; then | |
2496 | ac_site_file1=$prefix/share/config.site | |
2497 | ac_site_file2=$prefix/etc/config.site | |
2498 | else | |
2499 | ac_site_file1=$ac_default_prefix/share/config.site | |
2500 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2501 | fi | |
2502 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2503 | do | |
2504 | test "x$ac_site_file" = xNONE && continue | |
42ecbf5e | 2505 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2507 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
42ecbf5e DJ |
2508 | sed 's/^/| /' "$ac_site_file" >&5 |
2509 | . "$ac_site_file" | |
2510 | fi | |
2511 | done | |
2512 | ||
2513 | if test -r "$cache_file"; then | |
2514 | # Some versions of bash will fail to source /dev/null (special | |
2515 | # files actually), so we avoid doing that. | |
2516 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2518 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
42ecbf5e | 2519 | case $cache_file in |
81ecdfbb RW |
2520 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2521 | *) . "./$cache_file";; | |
42ecbf5e DJ |
2522 | esac |
2523 | fi | |
2524 | else | |
81ecdfbb RW |
2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2526 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
42ecbf5e DJ |
2527 | >$cache_file |
2528 | fi | |
2529 | ||
2530 | # Check that the precious variables saved in the cache have kept the same | |
2531 | # value. | |
2532 | ac_cache_corrupted=false | |
81ecdfbb | 2533 | for ac_var in $ac_precious_vars; do |
42ecbf5e DJ |
2534 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2535 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2536 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2537 | eval ac_new_val=\$ac_env_${ac_var}_value | |
42ecbf5e DJ |
2538 | case $ac_old_set,$ac_new_set in |
2539 | set,) | |
81ecdfbb RW |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2541 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
42ecbf5e DJ |
2542 | ac_cache_corrupted=: ;; |
2543 | ,set) | |
81ecdfbb RW |
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2545 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
42ecbf5e DJ |
2546 | ac_cache_corrupted=: ;; |
2547 | ,);; | |
2548 | *) | |
2549 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2550 | # differences in whitespace do not lead to failure. |
2551 | ac_old_val_w=`echo x $ac_old_val` | |
2552 | ac_new_val_w=`echo x $ac_new_val` | |
2553 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2555 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2556 | ac_cache_corrupted=: | |
2557 | else | |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2559 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2560 | eval $ac_var=\$ac_old_val | |
2561 | fi | |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2563 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2565 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
42ecbf5e DJ |
2566 | fi;; |
2567 | esac | |
2568 | # Pass precious variables to config.status. | |
2569 | if test "$ac_new_set" = set; then | |
2570 | case $ac_new_val in | |
81ecdfbb | 2571 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
42ecbf5e DJ |
2572 | *) ac_arg=$ac_var=$ac_new_val ;; |
2573 | esac | |
2574 | case " $ac_configure_args " in | |
2575 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2576 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
42ecbf5e DJ |
2577 | esac |
2578 | fi | |
2579 | done | |
2580 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2582 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2584 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2585 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
42ecbf5e | 2586 | fi |
81ecdfbb RW |
2587 | ## -------------------- ## |
2588 | ## Main body of script. ## | |
2589 | ## -------------------- ## | |
42ecbf5e DJ |
2590 | |
2591 | ac_ext=c | |
2592 | ac_cpp='$CPP $CPPFLAGS' | |
2593 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2594 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2595 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2596 | ||
2597 | ||
2598 | ||
42ecbf5e | 2599 | |
da594c4a | 2600 | |
42ecbf5e DJ |
2601 | |
2602 | ||
2603 | ac_aux_dir= | |
81ecdfbb RW |
2604 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2605 | for ac_t in install-sh install.sh shtool; do | |
2606 | if test -f "$ac_dir/$ac_t"; then | |
2607 | ac_aux_dir=$ac_dir | |
2608 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2609 | break 2 | |
2610 | fi | |
2611 | done | |
42ecbf5e DJ |
2612 | done |
2613 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2614 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
42ecbf5e | 2615 | fi |
81ecdfbb RW |
2616 | |
2617 | # These three variables are undocumented and unsupported, | |
2618 | # and are intended to be withdrawn in a future Autoconf release. | |
2619 | # They can cause serious problems if a builder's source tree is in a directory | |
2620 | # whose full name contains unusual characters. | |
2621 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2622 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2623 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2624 | ||
42ecbf5e DJ |
2625 | |
2626 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2627 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2628 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2629 | ||
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2631 | $as_echo_n "checking build system type... " >&6; } | |
2632 | if test "${ac_cv_build+set}" = set; then : | |
2633 | $as_echo_n "(cached) " >&6 | |
2634 | else | |
2635 | ac_build_alias=$build_alias | |
2636 | test "x$ac_build_alias" = x && | |
2637 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2638 | test "x$ac_build_alias" = x && | |
2639 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2640 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2641 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2642 | ||
2643 | fi | |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2645 | $as_echo "$ac_cv_build" >&6; } | |
2646 | case $ac_cv_build in | |
2647 | *-*-*) ;; | |
2648 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2649 | esac | |
42ecbf5e | 2650 | build=$ac_cv_build |
81ecdfbb RW |
2651 | ac_save_IFS=$IFS; IFS='-' |
2652 | set x $ac_cv_build | |
2653 | shift | |
2654 | build_cpu=$1 | |
2655 | build_vendor=$2 | |
2656 | shift; shift | |
2657 | # Remember, the first character of IFS is used to create $*, | |
2658 | # except with old shells: | |
2659 | build_os=$* | |
2660 | IFS=$ac_save_IFS | |
2661 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2662 | |
2663 | ||
81ecdfbb RW |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2665 | $as_echo_n "checking host system type... " >&6; } | |
2666 | if test "${ac_cv_host+set}" = set; then : | |
2667 | $as_echo_n "(cached) " >&6 | |
2668 | else | |
2669 | if test "x$host_alias" = x; then | |
2670 | ac_cv_host=$ac_cv_build | |
42ecbf5e | 2671 | else |
81ecdfbb RW |
2672 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2673 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2674 | fi | |
42ecbf5e DJ |
2675 | |
2676 | fi | |
81ecdfbb RW |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2678 | $as_echo "$ac_cv_host" >&6; } | |
2679 | case $ac_cv_host in | |
2680 | *-*-*) ;; | |
2681 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2682 | esac | |
42ecbf5e | 2683 | host=$ac_cv_host |
81ecdfbb RW |
2684 | ac_save_IFS=$IFS; IFS='-' |
2685 | set x $ac_cv_host | |
2686 | shift | |
2687 | host_cpu=$1 | |
2688 | host_vendor=$2 | |
2689 | shift; shift | |
2690 | # Remember, the first character of IFS is used to create $*, | |
2691 | # except with old shells: | |
2692 | host_os=$* | |
2693 | IFS=$ac_save_IFS | |
2694 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2695 | |
2696 | ||
81ecdfbb RW |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2698 | $as_echo_n "checking target system type... " >&6; } | |
2699 | if test "${ac_cv_target+set}" = set; then : | |
2700 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 2701 | else |
81ecdfbb RW |
2702 | if test "x$target_alias" = x; then |
2703 | ac_cv_target=$ac_cv_host | |
2704 | else | |
2705 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2706 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2707 | fi | |
42ecbf5e DJ |
2708 | |
2709 | fi | |
81ecdfbb RW |
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2711 | $as_echo "$ac_cv_target" >&6; } | |
2712 | case $ac_cv_target in | |
2713 | *-*-*) ;; | |
2714 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2715 | esac | |
42ecbf5e | 2716 | target=$ac_cv_target |
81ecdfbb RW |
2717 | ac_save_IFS=$IFS; IFS='-' |
2718 | set x $ac_cv_target | |
2719 | shift | |
2720 | target_cpu=$1 | |
2721 | target_vendor=$2 | |
2722 | shift; shift | |
2723 | # Remember, the first character of IFS is used to create $*, | |
2724 | # except with old shells: | |
2725 | target_os=$* | |
2726 | IFS=$ac_save_IFS | |
2727 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2728 | |
2729 | ||
2730 | # The aliases save the names the user supplied, while $host etc. | |
2731 | # will get canonicalized. | |
2732 | test -n "$target_alias" && | |
2733 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2734 | NONENONEs,x,x, && | |
2735 | program_prefix=${target_alias}- | |
02ecc8e9 | 2736 | |
42ecbf5e DJ |
2737 | ac_ext=c |
2738 | ac_cpp='$CPP $CPPFLAGS' | |
2739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2742 | if test -n "$ac_tool_prefix"; then | |
2743 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2744 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2746 | $as_echo_n "checking for $ac_word... " >&6; } | |
2747 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2748 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2749 | else |
2750 | if test -n "$CC"; then | |
2751 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2752 | else | |
2753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2754 | for as_dir in $PATH | |
2755 | do | |
2756 | IFS=$as_save_IFS | |
2757 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2758 | for ac_exec_ext in '' $ac_executable_extensions; do |
2759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2760 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2762 | break 2 |
2763 | fi | |
2764 | done | |
81ecdfbb RW |
2765 | done |
2766 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2767 | |
2768 | fi | |
2769 | fi | |
2770 | CC=$ac_cv_prog_CC | |
2771 | if test -n "$CC"; then | |
81ecdfbb RW |
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2773 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2774 | else |
81ecdfbb RW |
2775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2776 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2777 | fi |
2778 | ||
81ecdfbb | 2779 | |
42ecbf5e DJ |
2780 | fi |
2781 | if test -z "$ac_cv_prog_CC"; then | |
2782 | ac_ct_CC=$CC | |
2783 | # Extract the first word of "gcc", so it can be a program name with args. | |
2784 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2786 | $as_echo_n "checking for $ac_word... " >&6; } | |
2787 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2788 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2789 | else |
2790 | if test -n "$ac_ct_CC"; then | |
2791 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2792 | else | |
2793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2794 | for as_dir in $PATH | |
2795 | do | |
2796 | IFS=$as_save_IFS | |
2797 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2798 | for ac_exec_ext in '' $ac_executable_extensions; do |
2799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2800 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2802 | break 2 |
2803 | fi | |
2804 | done | |
81ecdfbb RW |
2805 | done |
2806 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2807 | |
2808 | fi | |
2809 | fi | |
2810 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2811 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2813 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 2814 | else |
81ecdfbb RW |
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2816 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2817 | fi |
2818 | ||
81ecdfbb RW |
2819 | if test "x$ac_ct_CC" = x; then |
2820 | CC="" | |
2821 | else | |
2822 | case $cross_compiling:$ac_tool_warned in | |
2823 | yes:) | |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2825 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2826 | ac_tool_warned=yes ;; | |
2827 | esac | |
2828 | CC=$ac_ct_CC | |
2829 | fi | |
42ecbf5e DJ |
2830 | else |
2831 | CC="$ac_cv_prog_CC" | |
2832 | fi | |
2833 | ||
2834 | if test -z "$CC"; then | |
81ecdfbb RW |
2835 | if test -n "$ac_tool_prefix"; then |
2836 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
42ecbf5e | 2837 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2839 | $as_echo_n "checking for $ac_word... " >&6; } | |
2840 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2841 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2842 | else |
2843 | if test -n "$CC"; then | |
2844 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2845 | else | |
2846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2847 | for as_dir in $PATH | |
2848 | do | |
2849 | IFS=$as_save_IFS | |
2850 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2851 | for ac_exec_ext in '' $ac_executable_extensions; do |
2852 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2853 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2855 | break 2 |
2856 | fi | |
2857 | done | |
81ecdfbb RW |
2858 | done |
2859 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2860 | |
2861 | fi | |
2862 | fi | |
2863 | CC=$ac_cv_prog_CC | |
2864 | if test -n "$CC"; then | |
81ecdfbb RW |
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2866 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2867 | else |
81ecdfbb RW |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2869 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2870 | fi |
2871 | ||
42ecbf5e | 2872 | |
81ecdfbb | 2873 | fi |
42ecbf5e DJ |
2874 | fi |
2875 | if test -z "$CC"; then | |
2876 | # Extract the first word of "cc", so it can be a program name with args. | |
2877 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2879 | $as_echo_n "checking for $ac_word... " >&6; } | |
2880 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2881 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2882 | else |
2883 | if test -n "$CC"; then | |
2884 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2885 | else | |
2886 | ac_prog_rejected=no | |
2887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2888 | for as_dir in $PATH | |
2889 | do | |
2890 | IFS=$as_save_IFS | |
2891 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2892 | for ac_exec_ext in '' $ac_executable_extensions; do |
2893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e DJ |
2894 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2895 | ac_prog_rejected=yes | |
2896 | continue | |
2897 | fi | |
2898 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2900 | break 2 |
2901 | fi | |
2902 | done | |
81ecdfbb RW |
2903 | done |
2904 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2905 | |
2906 | if test $ac_prog_rejected = yes; then | |
2907 | # We found a bogon in the path, so make sure we never use it. | |
2908 | set dummy $ac_cv_prog_CC | |
2909 | shift | |
2910 | if test $# != 0; then | |
2911 | # We chose a different compiler from the bogus one. | |
2912 | # However, it has the same basename, so the bogon will be chosen | |
2913 | # first if we set CC to just the basename; use the full file name. | |
2914 | shift | |
2915 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2916 | fi | |
2917 | fi | |
2918 | fi | |
2919 | fi | |
2920 | CC=$ac_cv_prog_CC | |
2921 | if test -n "$CC"; then | |
81ecdfbb RW |
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2923 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2924 | else |
81ecdfbb RW |
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2926 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2927 | fi |
2928 | ||
81ecdfbb | 2929 | |
42ecbf5e DJ |
2930 | fi |
2931 | if test -z "$CC"; then | |
2932 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2933 | for ac_prog in cl.exe |
42ecbf5e DJ |
2934 | do |
2935 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2936 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2938 | $as_echo_n "checking for $ac_word... " >&6; } | |
2939 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2940 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2941 | else |
2942 | if test -n "$CC"; then | |
2943 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2944 | else | |
2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2946 | for as_dir in $PATH | |
2947 | do | |
2948 | IFS=$as_save_IFS | |
2949 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2950 | for ac_exec_ext in '' $ac_executable_extensions; do |
2951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2952 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2954 | break 2 |
2955 | fi | |
2956 | done | |
81ecdfbb RW |
2957 | done |
2958 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2959 | |
2960 | fi | |
2961 | fi | |
2962 | CC=$ac_cv_prog_CC | |
2963 | if test -n "$CC"; then | |
81ecdfbb RW |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2965 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2966 | else |
81ecdfbb RW |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2968 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2969 | fi |
2970 | ||
81ecdfbb | 2971 | |
42ecbf5e DJ |
2972 | test -n "$CC" && break |
2973 | done | |
2974 | fi | |
2975 | if test -z "$CC"; then | |
2976 | ac_ct_CC=$CC | |
81ecdfbb | 2977 | for ac_prog in cl.exe |
42ecbf5e DJ |
2978 | do |
2979 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2980 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2982 | $as_echo_n "checking for $ac_word... " >&6; } | |
2983 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2984 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2985 | else |
2986 | if test -n "$ac_ct_CC"; then | |
2987 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2988 | else | |
2989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2990 | for as_dir in $PATH | |
2991 | do | |
2992 | IFS=$as_save_IFS | |
2993 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2994 | for ac_exec_ext in '' $ac_executable_extensions; do |
2995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2996 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2998 | break 2 |
2999 | fi | |
3000 | done | |
81ecdfbb RW |
3001 | done |
3002 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3003 | |
3004 | fi | |
3005 | fi | |
3006 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3007 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3009 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 3010 | else |
81ecdfbb RW |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3012 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
3013 | fi |
3014 | ||
81ecdfbb | 3015 | |
42ecbf5e DJ |
3016 | test -n "$ac_ct_CC" && break |
3017 | done | |
3018 | ||
81ecdfbb RW |
3019 | if test "x$ac_ct_CC" = x; then |
3020 | CC="" | |
3021 | else | |
3022 | case $cross_compiling:$ac_tool_warned in | |
3023 | yes:) | |
3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3026 | ac_tool_warned=yes ;; | |
3027 | esac | |
3028 | CC=$ac_ct_CC | |
3029 | fi | |
42ecbf5e DJ |
3030 | fi |
3031 | ||
3032 | fi | |
3033 | ||
3034 | ||
81ecdfbb RW |
3035 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3037 | as_fn_error "no acceptable C compiler found in \$PATH | |
3038 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e DJ |
3039 | |
3040 | # Provide some information about the compiler. | |
81ecdfbb RW |
3041 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3042 | set X $ac_compile | |
3043 | ac_compiler=$2 | |
3044 | for ac_option in --version -v -V -qversion; do | |
3045 | { { ac_try="$ac_compiler $ac_option >&5" | |
3046 | case "(($ac_try" in | |
3047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3048 | *) ac_try_echo=$ac_try;; | |
3049 | esac | |
3050 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3051 | $as_echo "$ac_try_echo"; } >&5 | |
3052 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
42ecbf5e | 3053 | ac_status=$? |
81ecdfbb RW |
3054 | if test -s conftest.err; then |
3055 | sed '10a\ | |
3056 | ... rest of stderr output deleted ... | |
3057 | 10q' conftest.err >conftest.er1 | |
3058 | cat conftest.er1 >&5 | |
3059 | rm -f conftest.er1 conftest.err | |
3060 | fi | |
3061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3062 | test $ac_status = 0; } | |
3063 | done | |
42ecbf5e | 3064 | |
81ecdfbb | 3065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3066 | /* end confdefs.h. */ |
3067 | ||
3068 | int | |
3069 | main () | |
3070 | { | |
3071 | ||
3072 | ; | |
3073 | return 0; | |
3074 | } | |
3075 | _ACEOF | |
3076 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 3077 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
42ecbf5e DJ |
3078 | # Try to create an executable without -o first, disregard a.out. |
3079 | # It will help us diagnose broken compilers, and finding out an intuition | |
3080 | # of exeext. | |
81ecdfbb RW |
3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3082 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3083 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3084 | ||
3085 | # The possible output files: | |
3086 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3087 | ||
3088 | ac_rmfiles= | |
3089 | for ac_file in $ac_files | |
3090 | do | |
3091 | case $ac_file in | |
3092 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3093 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3094 | esac | |
3095 | done | |
3096 | rm -f $ac_rmfiles | |
3097 | ||
3098 | if { { ac_try="$ac_link_default" | |
3099 | case "(($ac_try" in | |
3100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3101 | *) ac_try_echo=$ac_try;; | |
3102 | esac | |
3103 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3104 | $as_echo "$ac_try_echo"; } >&5 | |
3105 | (eval "$ac_link_default") 2>&5 | |
3106 | ac_status=$? | |
3107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3108 | test $ac_status = 0; }; then : | |
3109 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3110 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3111 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3112 | # so that the user can short-circuit this test for compilers unknown to | |
3113 | # Autoconf. | |
3114 | for ac_file in $ac_files '' | |
42ecbf5e DJ |
3115 | do |
3116 | test -f "$ac_file" || continue | |
3117 | case $ac_file in | |
81ecdfbb | 3118 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
42ecbf5e DJ |
3119 | ;; |
3120 | [ab].out ) | |
3121 | # We found the default executable, but exeext='' is most | |
3122 | # certainly right. | |
3123 | break;; | |
3124 | *.* ) | |
81ecdfbb RW |
3125 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3126 | then :; else | |
3127 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3128 | fi | |
3129 | # We set ac_cv_exeext here because the later test for it is not | |
3130 | # safe: cross compilers may not add the suffix if given an `-o' | |
3131 | # argument, so we may need to know it at that point already. | |
3132 | # Even if this section looks crufty: it has the advantage of | |
3133 | # actually working. | |
42ecbf5e DJ |
3134 | break;; |
3135 | * ) | |
3136 | break;; | |
3137 | esac | |
3138 | done | |
81ecdfbb RW |
3139 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3140 | ||
42ecbf5e | 3141 | else |
81ecdfbb RW |
3142 | ac_file='' |
3143 | fi | |
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3145 | $as_echo "$ac_file" >&6; } | |
3146 | if test -z "$ac_file"; then : | |
3147 | $as_echo "$as_me: failed program was:" >&5 | |
42ecbf5e DJ |
3148 | sed 's/^/| /' conftest.$ac_ext >&5 |
3149 | ||
81ecdfbb RW |
3150 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3151 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3152 | { as_fn_set_status 77 | |
3153 | as_fn_error "C compiler cannot create executables | |
3154 | See \`config.log' for more details." "$LINENO" 5; }; } | |
42ecbf5e | 3155 | fi |
42ecbf5e | 3156 | ac_exeext=$ac_cv_exeext |
42ecbf5e | 3157 | |
81ecdfbb | 3158 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3159 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3161 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
42ecbf5e DJ |
3162 | # If not cross compiling, check that we can run a simple program. |
3163 | if test "$cross_compiling" != yes; then | |
3164 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
3165 | { { case "(($ac_try" in |
3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3167 | *) ac_try_echo=$ac_try;; | |
3168 | esac | |
3169 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3170 | $as_echo "$ac_try_echo"; } >&5 | |
3171 | (eval "$ac_try") 2>&5 | |
42ecbf5e | 3172 | ac_status=$? |
81ecdfbb RW |
3173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3174 | test $ac_status = 0; }; }; then | |
42ecbf5e DJ |
3175 | cross_compiling=no |
3176 | else | |
3177 | if test "$cross_compiling" = maybe; then | |
3178 | cross_compiling=yes | |
3179 | else | |
81ecdfbb RW |
3180 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3182 | as_fn_error "cannot run C compiled programs. | |
42ecbf5e | 3183 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 3184 | See \`config.log' for more details." "$LINENO" 5; } |
42ecbf5e DJ |
3185 | fi |
3186 | fi | |
3187 | fi | |
81ecdfbb RW |
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3189 | $as_echo "yes" >&6; } | |
42ecbf5e | 3190 | |
81ecdfbb | 3191 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
42ecbf5e | 3192 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 3193 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3194 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3196 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3198 | $as_echo "$cross_compiling" >&6; } | |
3199 | ||
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3201 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3202 | if { { ac_try="$ac_link" | |
3203 | case "(($ac_try" in | |
3204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3205 | *) ac_try_echo=$ac_try;; | |
3206 | esac | |
3207 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3208 | $as_echo "$ac_try_echo"; } >&5 | |
3209 | (eval "$ac_link") 2>&5 | |
42ecbf5e | 3210 | ac_status=$? |
81ecdfbb RW |
3211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3212 | test $ac_status = 0; }; then : | |
42ecbf5e DJ |
3213 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3214 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3215 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3216 | # `rm'. | |
3217 | for ac_file in conftest.exe conftest conftest.*; do | |
3218 | test -f "$ac_file" || continue | |
3219 | case $ac_file in | |
81ecdfbb | 3220 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
42ecbf5e | 3221 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
42ecbf5e DJ |
3222 | break;; |
3223 | * ) break;; | |
3224 | esac | |
3225 | done | |
3226 | else | |
81ecdfbb RW |
3227 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3228 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3229 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3230 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3231 | fi |
42ecbf5e | 3232 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3234 | $as_echo "$ac_cv_exeext" >&6; } | |
42ecbf5e DJ |
3235 | |
3236 | rm -f conftest.$ac_ext | |
3237 | EXEEXT=$ac_cv_exeext | |
3238 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3240 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3241 | if test "${ac_cv_objext+set}" = set; then : | |
3242 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3243 | else |
81ecdfbb | 3244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3245 | /* end confdefs.h. */ |
3246 | ||
3247 | int | |
3248 | main () | |
3249 | { | |
3250 | ||
3251 | ; | |
3252 | return 0; | |
3253 | } | |
3254 | _ACEOF | |
3255 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3256 | if { { ac_try="$ac_compile" |
3257 | case "(($ac_try" in | |
3258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3259 | *) ac_try_echo=$ac_try;; | |
3260 | esac | |
3261 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3262 | $as_echo "$ac_try_echo"; } >&5 | |
3263 | (eval "$ac_compile") 2>&5 | |
3264 | ac_status=$? | |
3265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3266 | test $ac_status = 0; }; then : | |
3267 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3268 | test -f "$ac_file" || continue; | |
42ecbf5e | 3269 | case $ac_file in |
81ecdfbb | 3270 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
42ecbf5e DJ |
3271 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3272 | break;; | |
3273 | esac | |
3274 | done | |
3275 | else | |
81ecdfbb | 3276 | $as_echo "$as_me: failed program was:" >&5 |
42ecbf5e DJ |
3277 | sed 's/^/| /' conftest.$ac_ext >&5 |
3278 | ||
81ecdfbb RW |
3279 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3281 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3282 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3283 | fi |
42ecbf5e DJ |
3284 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3285 | fi | |
81ecdfbb RW |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3287 | $as_echo "$ac_cv_objext" >&6; } | |
42ecbf5e DJ |
3288 | OBJEXT=$ac_cv_objext |
3289 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3291 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3292 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3293 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3294 | else |
81ecdfbb | 3295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3296 | /* end confdefs.h. */ |
3297 | ||
3298 | int | |
3299 | main () | |
3300 | { | |
3301 | #ifndef __GNUC__ | |
3302 | choke me | |
3303 | #endif | |
3304 | ||
3305 | ; | |
3306 | return 0; | |
3307 | } | |
3308 | _ACEOF | |
81ecdfbb | 3309 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3310 | ac_compiler_gnu=yes |
3311 | else | |
81ecdfbb | 3312 | ac_compiler_gnu=no |
42ecbf5e | 3313 | fi |
81ecdfbb | 3314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e DJ |
3315 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3316 | ||
3317 | fi | |
81ecdfbb RW |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3319 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3320 | if test $ac_compiler_gnu = yes; then | |
3321 | GCC=yes | |
3322 | else | |
3323 | GCC= | |
3324 | fi | |
42ecbf5e DJ |
3325 | ac_test_CFLAGS=${CFLAGS+set} |
3326 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3328 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3329 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3330 | $as_echo_n "(cached) " >&6 | |
3331 | else | |
3332 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3333 | ac_c_werror_flag=yes | |
3334 | ac_cv_prog_cc_g=no | |
3335 | CFLAGS="-g" | |
3336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e DJ |
3337 | /* end confdefs.h. */ |
3338 | ||
3339 | int | |
3340 | main () | |
3341 | { | |
3342 | ||
3343 | ; | |
3344 | return 0; | |
3345 | } | |
3346 | _ACEOF | |
81ecdfbb | 3347 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3348 | ac_cv_prog_cc_g=yes |
3349 | else | |
81ecdfbb RW |
3350 | CFLAGS="" |
3351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3352 | /* end confdefs.h. */ | |
3353 | ||
3354 | int | |
3355 | main () | |
3356 | { | |
3357 | ||
3358 | ; | |
3359 | return 0; | |
3360 | } | |
3361 | _ACEOF | |
3362 | if ac_fn_c_try_compile "$LINENO"; then : | |
3363 | ||
3364 | else | |
3365 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3366 | CFLAGS="-g" | |
3367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3368 | /* end confdefs.h. */ | |
3369 | ||
3370 | int | |
3371 | main () | |
3372 | { | |
42ecbf5e | 3373 | |
81ecdfbb RW |
3374 | ; |
3375 | return 0; | |
3376 | } | |
3377 | _ACEOF | |
3378 | if ac_fn_c_try_compile "$LINENO"; then : | |
3379 | ac_cv_prog_cc_g=yes | |
3380 | fi | |
3381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3382 | fi | |
3383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
42ecbf5e | 3384 | fi |
81ecdfbb RW |
3385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3386 | ac_c_werror_flag=$ac_save_c_werror_flag | |
42ecbf5e | 3387 | fi |
81ecdfbb RW |
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3389 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
42ecbf5e DJ |
3390 | if test "$ac_test_CFLAGS" = set; then |
3391 | CFLAGS=$ac_save_CFLAGS | |
3392 | elif test $ac_cv_prog_cc_g = yes; then | |
3393 | if test "$GCC" = yes; then | |
3394 | CFLAGS="-g -O2" | |
3395 | else | |
3396 | CFLAGS="-g" | |
3397 | fi | |
3398 | else | |
3399 | if test "$GCC" = yes; then | |
3400 | CFLAGS="-O2" | |
3401 | else | |
3402 | CFLAGS= | |
3403 | fi | |
3404 | fi | |
81ecdfbb RW |
3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3406 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3407 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3408 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3409 | else |
81ecdfbb | 3410 | ac_cv_prog_cc_c89=no |
42ecbf5e | 3411 | ac_save_CC=$CC |
81ecdfbb | 3412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3413 | /* end confdefs.h. */ |
3414 | #include <stdarg.h> | |
3415 | #include <stdio.h> | |
3416 | #include <sys/types.h> | |
3417 | #include <sys/stat.h> | |
3418 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3419 | struct buf { int x; }; | |
3420 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3421 | static char *e (p, i) | |
3422 | char **p; | |
3423 | int i; | |
3424 | { | |
3425 | return p[i]; | |
3426 | } | |
3427 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3428 | { | |
3429 | char *s; | |
3430 | va_list v; | |
3431 | va_start (v,p); | |
3432 | s = g (p, va_arg (v,int)); | |
3433 | va_end (v); | |
3434 | return s; | |
3435 | } | |
3436 | ||
3437 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3438 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3439 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3440 | as 'x'. The following induces an error, until -std is added to get |
42ecbf5e DJ |
3441 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3442 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3443 | that's true only with -std. */ |
42ecbf5e DJ |
3444 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3445 | ||
81ecdfbb RW |
3446 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3447 | inside strings and character constants. */ | |
3448 | #define FOO(x) 'x' | |
3449 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3450 | ||
42ecbf5e DJ |
3451 | int test (int i, double x); |
3452 | struct s1 {int (*f) (int a);}; | |
3453 | struct s2 {int (*f) (double a);}; | |
3454 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3455 | int argc; | |
3456 | char **argv; | |
3457 | int | |
3458 | main () | |
3459 | { | |
3460 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3461 | ; | |
3462 | return 0; | |
3463 | } | |
3464 | _ACEOF | |
81ecdfbb RW |
3465 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3466 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
42ecbf5e DJ |
3467 | do |
3468 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3469 | if ac_fn_c_try_compile "$LINENO"; then : |
3470 | ac_cv_prog_cc_c89=$ac_arg | |
42ecbf5e | 3471 | fi |
81ecdfbb RW |
3472 | rm -f core conftest.err conftest.$ac_objext |
3473 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
42ecbf5e | 3474 | done |
81ecdfbb | 3475 | rm -f conftest.$ac_ext |
42ecbf5e DJ |
3476 | CC=$ac_save_CC |
3477 | ||
3478 | fi | |
81ecdfbb RW |
3479 | # AC_CACHE_VAL |
3480 | case "x$ac_cv_prog_cc_c89" in | |
3481 | x) | |
3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3483 | $as_echo "none needed" >&6; } ;; | |
3484 | xno) | |
3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3486 | $as_echo "unsupported" >&6; } ;; | |
42ecbf5e | 3487 | *) |
81ecdfbb RW |
3488 | CC="$CC $ac_cv_prog_cc_c89" |
3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3490 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
42ecbf5e | 3491 | esac |
81ecdfbb | 3492 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
42ecbf5e | 3493 | |
42ecbf5e DJ |
3494 | fi |
3495 | ||
42ecbf5e DJ |
3496 | ac_ext=c |
3497 | ac_cpp='$CPP $CPPFLAGS' | |
3498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3501 | ||
3502 | ||
81ecdfbb RW |
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3504 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3505 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3506 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3507 | else |
3508 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 3509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3510 | /* end confdefs.h. */ |
3511 | ||
81ecdfbb RW |
3512 | /* Override any GCC internal prototype to avoid an error. |
3513 | Use char because int might match the return type of a GCC | |
3514 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
3515 | #ifdef __cplusplus |
3516 | extern "C" | |
3517 | #endif | |
42ecbf5e DJ |
3518 | char strerror (); |
3519 | int | |
3520 | main () | |
3521 | { | |
81ecdfbb | 3522 | return strerror (); |
42ecbf5e DJ |
3523 | ; |
3524 | return 0; | |
3525 | } | |
3526 | _ACEOF | |
81ecdfbb RW |
3527 | for ac_lib in '' cposix; do |
3528 | if test -z "$ac_lib"; then | |
3529 | ac_res="none required" | |
3530 | else | |
3531 | ac_res=-l$ac_lib | |
42ecbf5e | 3532 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3533 | fi |
3534 | if ac_fn_c_try_link "$LINENO"; then : | |
3535 | ac_cv_search_strerror=$ac_res | |
3536 | fi | |
3537 | rm -f core conftest.err conftest.$ac_objext \ | |
3538 | conftest$ac_exeext | |
3539 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3540 | break | |
3541 | fi | |
3542 | done | |
3543 | if test "${ac_cv_search_strerror+set}" = set; then : | |
42ecbf5e | 3544 | |
42ecbf5e | 3545 | else |
81ecdfbb | 3546 | ac_cv_search_strerror=no |
42ecbf5e | 3547 | fi |
81ecdfbb | 3548 | rm conftest.$ac_ext |
42ecbf5e DJ |
3549 | LIBS=$ac_func_search_save_LIBS |
3550 | fi | |
81ecdfbb RW |
3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3552 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3553 | ac_res=$ac_cv_search_strerror | |
3554 | if test "$ac_res" != no; then : | |
3555 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e DJ |
3556 | |
3557 | fi | |
e5a52504 MM |
3558 | |
3559 | ||
c4dd807e | 3560 | BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'` |
81ecdfbb RW |
3561 | am__api_version='1.11' |
3562 | ||
e5a52504 MM |
3563 | # Find a good install program. We prefer a C program (faster), |
3564 | # so one script is as good as another. But avoid the broken or | |
3565 | # incompatible versions: | |
3566 | # SysV /etc/install, /usr/sbin/install | |
3567 | # SunOS /usr/etc/install | |
3568 | # IRIX /sbin/install | |
3569 | # AIX /bin/install | |
42ecbf5e | 3570 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5a52504 MM |
3571 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3572 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3573 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 3574 | # OS/2's system install, which has a completely different semantic |
e5a52504 | 3575 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3576 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3578 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5a52504 | 3579 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3580 | if test "${ac_cv_path_install+set}" = set; then : |
3581 | $as_echo_n "(cached) " >&6 | |
e5a52504 | 3582 | else |
42ecbf5e DJ |
3583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3584 | for as_dir in $PATH | |
3585 | do | |
3586 | IFS=$as_save_IFS | |
3587 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3588 | # Account for people who put trailing slashes in PATH elements. |
3589 | case $as_dir/ in #(( | |
3590 | ./ | .// | /[cC]/* | \ | |
42ecbf5e | 3591 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3592 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
42ecbf5e DJ |
3593 | /usr/ucb/* ) ;; |
3594 | *) | |
3595 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3596 | # Don't use installbsd from OSF since it installs stuff as root | |
3597 | # by default. | |
3598 | for ac_prog in ginstall scoinst install; do | |
3599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3600 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
252b5132 | 3601 | if test $ac_prog = install && |
42ecbf5e | 3602 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
3603 | # AIX install. It has an incompatible calling convention. |
3604 | : | |
42ecbf5e DJ |
3605 | elif test $ac_prog = install && |
3606 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3607 | # program-specific install script used by HP pwplus--don't use. | |
3608 | : | |
252b5132 | 3609 | else |
58c85be7 RW |
3610 | rm -rf conftest.one conftest.two conftest.dir |
3611 | echo one > conftest.one | |
3612 | echo two > conftest.two | |
3613 | mkdir conftest.dir | |
3614 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3615 | test -s conftest.one && test -s conftest.two && | |
3616 | test -s conftest.dir/conftest.one && | |
3617 | test -s conftest.dir/conftest.two | |
3618 | then | |
3619 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3620 | break 3 | |
3621 | fi | |
252b5132 RH |
3622 | fi |
3623 | fi | |
3624 | done | |
42ecbf5e DJ |
3625 | done |
3626 | ;; | |
3627 | esac | |
81ecdfbb RW |
3628 | |
3629 | done | |
3630 | IFS=$as_save_IFS | |
42ecbf5e | 3631 | |
58c85be7 | 3632 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3633 | |
3634 | fi | |
3635 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 3636 | INSTALL=$ac_cv_path_install |
252b5132 | 3637 | else |
58c85be7 RW |
3638 | # As a last resort, use the slow shell script. Don't cache a |
3639 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3640 | # break other packages using the cache if that directory is |
58c85be7 | 3641 | # removed, or if the value is a relative name. |
42ecbf5e | 3642 | INSTALL=$ac_install_sh |
252b5132 RH |
3643 | fi |
3644 | fi | |
81ecdfbb RW |
3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3646 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3647 | |
3648 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3649 | # It thinks the first close brace ends the variable substitution. | |
3650 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3651 | ||
42ecbf5e | 3652 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3653 | |
3654 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3655 | ||
81ecdfbb RW |
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3657 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3658 | # Just in case |
3659 | sleep 1 | |
42ecbf5e | 3660 | echo timestamp > conftest.file |
81ecdfbb RW |
3661 | # Reject unsafe characters in $srcdir or the absolute working directory |
3662 | # name. Accept space and tab only in the latter. | |
3663 | am_lf=' | |
3664 | ' | |
3665 | case `pwd` in | |
3666 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3667 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3668 | esac | |
3669 | case $srcdir in | |
3670 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3671 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3672 | esac | |
3673 | ||
252b5132 RH |
3674 | # Do `set' in a subshell so we don't clobber the current shell's |
3675 | # arguments. Must try -L first in case configure is actually a | |
3676 | # symlink; some systems play weird games with the mod time of symlinks | |
3677 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3678 | # directory). | |
3679 | if ( | |
81ecdfbb | 3680 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3681 | if test "$*" = "X"; then |
3682 | # -L didn't work. | |
81ecdfbb | 3683 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3684 | fi |
42ecbf5e DJ |
3685 | rm -f conftest.file |
3686 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3687 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3688 | |
3689 | # If neither matched, then we have a broken ls. This can happen | |
3690 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3691 | # broken ls alias from the environment. This has actually | |
3692 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3693 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3694 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3695 | fi |
3696 | ||
42ecbf5e | 3697 | test "$2" = conftest.file |
252b5132 RH |
3698 | ) |
3699 | then | |
3700 | # Ok. | |
3701 | : | |
3702 | else | |
81ecdfbb RW |
3703 | as_fn_error "newly created file is older than distributed files! |
3704 | Check your system clock" "$LINENO" 5 | |
252b5132 | 3705 | fi |
81ecdfbb RW |
3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3707 | $as_echo "yes" >&6; } | |
252b5132 | 3708 | test "$program_prefix" != NONE && |
81ecdfbb | 3709 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3710 | # Use a double $ so make ignores it. |
3711 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3712 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3713 | # Double any \ or $. | |
42ecbf5e | 3714 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3715 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3716 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
42ecbf5e DJ |
3717 | |
3718 | # expand $ac_aux_dir to an absolute path | |
3719 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3720 | ||
81ecdfbb RW |
3721 | if test x"${MISSING+set}" != xset; then |
3722 | case $am_aux_dir in | |
3723 | *\ * | *\ *) | |
3724 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3725 | *) | |
3726 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3727 | esac | |
3728 | fi | |
42ecbf5e DJ |
3729 | # Use eval to expand $SHELL |
3730 | if eval "$MISSING --run true"; then | |
3731 | am_missing_run="$MISSING --run " | |
3732 | else | |
3733 | am_missing_run= | |
81ecdfbb RW |
3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3735 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3736 | fi | |
3737 | ||
3738 | if test x"${install_sh}" != xset; then | |
3739 | case $am_aux_dir in | |
3740 | *\ * | *\ *) | |
3741 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3742 | *) | |
3743 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3744 | esac | |
3745 | fi | |
3746 | ||
3747 | # Installed binaries are usually stripped using `strip' when the user | |
3748 | # run `make install-strip'. However `strip' might not be the right | |
3749 | # tool to use in cross-compilation environments, therefore Automake | |
3750 | # will honor the `STRIP' environment variable to overrule this program. | |
3751 | if test "$cross_compiling" != no; then | |
3752 | if test -n "$ac_tool_prefix"; then | |
3753 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3754 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3756 | $as_echo_n "checking for $ac_word... " >&6; } | |
3757 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3758 | $as_echo_n "(cached) " >&6 | |
3759 | else | |
3760 | if test -n "$STRIP"; then | |
3761 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3762 | else | |
3763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3764 | for as_dir in $PATH | |
3765 | do | |
3766 | IFS=$as_save_IFS | |
3767 | test -z "$as_dir" && as_dir=. | |
3768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3770 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3772 | break 2 | |
3773 | fi | |
3774 | done | |
3775 | done | |
3776 | IFS=$as_save_IFS | |
3777 | ||
3778 | fi | |
3779 | fi | |
3780 | STRIP=$ac_cv_prog_STRIP | |
3781 | if test -n "$STRIP"; then | |
3782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3783 | $as_echo "$STRIP" >&6; } | |
3784 | else | |
3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3786 | $as_echo "no" >&6; } | |
3787 | fi | |
3788 | ||
3789 | ||
3790 | fi | |
3791 | if test -z "$ac_cv_prog_STRIP"; then | |
3792 | ac_ct_STRIP=$STRIP | |
3793 | # Extract the first word of "strip", so it can be a program name with args. | |
3794 | set dummy strip; ac_word=$2 | |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3796 | $as_echo_n "checking for $ac_word... " >&6; } | |
3797 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3798 | $as_echo_n "(cached) " >&6 | |
3799 | else | |
3800 | if test -n "$ac_ct_STRIP"; then | |
3801 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3802 | else | |
3803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3804 | for as_dir in $PATH | |
3805 | do | |
3806 | IFS=$as_save_IFS | |
3807 | test -z "$as_dir" && as_dir=. | |
3808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3810 | ac_cv_prog_ac_ct_STRIP="strip" | |
3811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3812 | break 2 | |
3813 | fi | |
3814 | done | |
3815 | done | |
3816 | IFS=$as_save_IFS | |
3817 | ||
3818 | fi | |
3819 | fi | |
3820 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3821 | if test -n "$ac_ct_STRIP"; then | |
3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3823 | $as_echo "$ac_ct_STRIP" >&6; } | |
3824 | else | |
3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3826 | $as_echo "no" >&6; } | |
3827 | fi | |
3828 | ||
3829 | if test "x$ac_ct_STRIP" = x; then | |
3830 | STRIP=":" | |
3831 | else | |
3832 | case $cross_compiling:$ac_tool_warned in | |
3833 | yes:) | |
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3835 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3836 | ac_tool_warned=yes ;; | |
3837 | esac | |
3838 | STRIP=$ac_ct_STRIP | |
3839 | fi | |
3840 | else | |
3841 | STRIP="$ac_cv_prog_STRIP" | |
3842 | fi | |
3843 | ||
3844 | fi | |
3845 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3846 | ||
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3848 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3849 | if test -z "$MKDIR_P"; then | |
3850 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3851 | $as_echo_n "(cached) " >&6 | |
3852 | else | |
3853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3854 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3855 | do | |
3856 | IFS=$as_save_IFS | |
3857 | test -z "$as_dir" && as_dir=. | |
3858 | for ac_prog in mkdir gmkdir; do | |
3859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3860 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3861 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3862 | 'mkdir (GNU coreutils) '* | \ | |
3863 | 'mkdir (coreutils) '* | \ | |
3864 | 'mkdir (fileutils) '4.1*) | |
3865 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3866 | break 3;; | |
3867 | esac | |
3868 | done | |
3869 | done | |
42ecbf5e | 3870 | done |
81ecdfbb RW |
3871 | IFS=$as_save_IFS |
3872 | ||
3873 | fi | |
3874 | ||
3875 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3876 | MKDIR_P="$ac_cv_path_mkdir -p" | |
42ecbf5e | 3877 | else |
81ecdfbb RW |
3878 | # As a last resort, use the slow shell script. Don't cache a |
3879 | # value for MKDIR_P within a source directory, because that will | |
3880 | # break other packages using the cache if that directory is | |
3881 | # removed, or if the value is a relative name. | |
3882 | test -d ./--version && rmdir ./--version | |
3883 | MKDIR_P="$ac_install_sh -d" | |
42ecbf5e DJ |
3884 | fi |
3885 | fi | |
81ecdfbb RW |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3887 | $as_echo "$MKDIR_P" >&6; } | |
3888 | ||
3889 | mkdir_p="$MKDIR_P" | |
3890 | case $mkdir_p in | |
3891 | [\\/$]* | ?:[\\/]*) ;; | |
3892 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3893 | esac | |
42ecbf5e DJ |
3894 | |
3895 | for ac_prog in gawk mawk nawk awk | |
3896 | do | |
3897 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3898 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3900 | $as_echo_n "checking for $ac_word... " >&6; } | |
3901 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3902 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3903 | else |
3904 | if test -n "$AWK"; then | |
3905 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3906 | else | |
3907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3908 | for as_dir in $PATH | |
3909 | do | |
3910 | IFS=$as_save_IFS | |
3911 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3912 | for ac_exec_ext in '' $ac_executable_extensions; do |
3913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 3914 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3916 | break 2 |
3917 | fi | |
3918 | done | |
81ecdfbb RW |
3919 | done |
3920 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3921 | |
3922 | fi | |
3923 | fi | |
3924 | AWK=$ac_cv_prog_AWK | |
3925 | if test -n "$AWK"; then | |
81ecdfbb RW |
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3927 | $as_echo "$AWK" >&6; } | |
42ecbf5e | 3928 | else |
81ecdfbb RW |
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3930 | $as_echo "no" >&6; } | |
42ecbf5e | 3931 | fi |
252b5132 | 3932 | |
81ecdfbb | 3933 | |
42ecbf5e DJ |
3934 | test -n "$AWK" && break |
3935 | done | |
252b5132 | 3936 | |
81ecdfbb RW |
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3938 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3939 | set x ${MAKE-make} | |
3940 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3941 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3942 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3943 | else |
42ecbf5e | 3944 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 3945 | SHELL = /bin/sh |
252b5132 | 3946 | all: |
81ecdfbb | 3947 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
42ecbf5e | 3948 | _ACEOF |
252b5132 | 3949 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
3950 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3951 | *@@@%%%=?*=@@@%%%*) | |
3952 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3953 | *) | |
3954 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3955 | esac | |
42ecbf5e | 3956 | rm -f conftest.make |
252b5132 | 3957 | fi |
81ecdfbb RW |
3958 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3960 | $as_echo "yes" >&6; } | |
252b5132 RH |
3961 | SET_MAKE= |
3962 | else | |
81ecdfbb RW |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3964 | $as_echo "no" >&6; } | |
252b5132 RH |
3965 | SET_MAKE="MAKE=${MAKE-make}" |
3966 | fi | |
3967 | ||
42ecbf5e DJ |
3968 | rm -rf .tst 2>/dev/null |
3969 | mkdir .tst 2>/dev/null | |
3970 | if test -d .tst; then | |
3971 | am__leading_dot=. | |
3972 | else | |
3973 | am__leading_dot=_ | |
3974 | fi | |
3975 | rmdir .tst 2>/dev/null | |
3976 | ||
3977 | DEPDIR="${am__leading_dot}deps" | |
3978 | ||
81ecdfbb | 3979 | ac_config_commands="$ac_config_commands depfiles" |
42ecbf5e DJ |
3980 | |
3981 | ||
3982 | am_make=${MAKE-make} | |
3983 | cat > confinc << 'END' | |
3984 | am__doit: | |
81ecdfbb | 3985 | @echo this is the am__doit target |
42ecbf5e DJ |
3986 | .PHONY: am__doit |
3987 | END | |
3988 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3990 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
42ecbf5e DJ |
3991 | am__include="#" |
3992 | am__quote= | |
3993 | _am_result=none | |
3994 | # First try GNU make style include. | |
3995 | echo "include confinc" > confmf | |
81ecdfbb RW |
3996 | # Ignore all kinds of additional output from `make'. |
3997 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3998 | *the\ am__doit\ target*) | |
3999 | am__include=include | |
4000 | am__quote= | |
4001 | _am_result=GNU | |
4002 | ;; | |
4003 | esac | |
42ecbf5e DJ |
4004 | # Now try BSD make style include. |
4005 | if test "$am__include" = "#"; then | |
4006 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
4007 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4008 | *the\ am__doit\ target*) | |
4009 | am__include=.include | |
4010 | am__quote="\"" | |
4011 | _am_result=BSD | |
4012 | ;; | |
4013 | esac | |
42ecbf5e DJ |
4014 | fi |
4015 | ||
4016 | ||
81ecdfbb RW |
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4018 | $as_echo "$_am_result" >&6; } | |
42ecbf5e DJ |
4019 | rm -f confinc confmf |
4020 | ||
81ecdfbb RW |
4021 | # Check whether --enable-dependency-tracking was given. |
4022 | if test "${enable_dependency_tracking+set}" = set; then : | |
4023 | enableval=$enable_dependency_tracking; | |
4024 | fi | |
42ecbf5e | 4025 | |
42ecbf5e DJ |
4026 | if test "x$enable_dependency_tracking" != xno; then |
4027 | am_depcomp="$ac_aux_dir/depcomp" | |
4028 | AMDEPBACKSLASH='\' | |
4029 | fi | |
81ecdfbb | 4030 | if test "x$enable_dependency_tracking" != xno; then |
42ecbf5e DJ |
4031 | AMDEP_TRUE= |
4032 | AMDEP_FALSE='#' | |
4033 | else | |
4034 | AMDEP_TRUE='#' | |
4035 | AMDEP_FALSE= | |
4036 | fi | |
4037 | ||
e5a52504 | 4038 | |
81ecdfbb RW |
4039 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4040 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4041 | # is not polluted with repeated "-I." | |
4042 | am__isrc=' -I$(srcdir)' | |
4043 | # test to see if srcdir already configured | |
4044 | if test -f $srcdir/config.status; then | |
4045 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4046 | fi | |
42ecbf5e | 4047 | fi |
252b5132 | 4048 | |
42ecbf5e DJ |
4049 | # test whether we have cygpath |
4050 | if test -z "$CYGPATH_W"; then | |
4051 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4052 | CYGPATH_W='cygpath -w' | |
4053 | else | |
4054 | CYGPATH_W=echo | |
4055 | fi | |
252b5132 | 4056 | fi |
42ecbf5e DJ |
4057 | |
4058 | ||
4059 | # Define the identity of the package. | |
4060 | PACKAGE=ld | |
4061 | VERSION=${BFD_VERSION} | |
4062 | ||
4063 | ||
4064 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 4065 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
4066 | _ACEOF |
4067 | ||
252b5132 | 4068 | |
42ecbf5e | 4069 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 4070 | #define VERSION "$VERSION" |
42ecbf5e DJ |
4071 | _ACEOF |
4072 | ||
4073 | # Some tools Automake needs. | |
4074 | ||
4075 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4076 | ||
4077 | ||
4078 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4079 | ||
4080 | ||
4081 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4082 | ||
4083 | ||
4084 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4085 | ||
e5a52504 | 4086 | |
42ecbf5e | 4087 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 4088 | |
42ecbf5e DJ |
4089 | # We need awk for the "check" target. The system "awk" is bad on |
4090 | # some platforms. | |
4091 | # Always define AMTAR for backward compatibility. | |
4092 | ||
4093 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4094 | ||
4095 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4096 | ||
4097 | ||
4098 | ||
4099 | ||
4100 | depcc="$CC" am_compiler_list= | |
4101 | ||
81ecdfbb RW |
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4103 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4104 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4105 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
4106 | else |
4107 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4108 | # We make a subdir and do the tests there. Otherwise we can end up | |
4109 | # making bogus files that we don't know about and never remove. For | |
4110 | # instance it was reported that on HP-UX the gcc test will end up | |
4111 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4112 | # in D'. | |
4113 | mkdir conftest.dir | |
4114 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4115 | # using a relative directory. | |
4116 | cp "$am_depcomp" conftest.dir | |
4117 | cd conftest.dir | |
4118 | # We will build objects and dependencies in a subdirectory because | |
4119 | # it helps to detect inapplicable dependency modes. For instance | |
4120 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4121 | # side effect of compilation, but ICC will put the dependencies in | |
4122 | # the current directory while Tru64 will put them in the object | |
4123 | # directory. | |
4124 | mkdir sub | |
4125 | ||
4126 | am_cv_CC_dependencies_compiler_type=none | |
4127 | if test "$am_compiler_list" = ""; then | |
4128 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4129 | fi | |
81ecdfbb RW |
4130 | am__universal=false |
4131 | case " $depcc " in #( | |
4132 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4133 | esac | |
4134 | ||
42ecbf5e DJ |
4135 | for depmode in $am_compiler_list; do |
4136 | # Setup a source with many dependencies, because some compilers | |
4137 | # like to wrap large dependency lists on column 80 (with \), and | |
4138 | # we should not choose a depcomp mode which is confused by this. | |
4139 | # | |
4140 | # We need to recreate these files for each test, as the compiler may | |
4141 | # overwrite some of them when testing with obscure command lines. | |
4142 | # This happens at least with the AIX C compiler. | |
4143 | : > sub/conftest.c | |
4144 | for i in 1 2 3 4 5 6; do | |
4145 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4146 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4147 | # Solaris 8's {/usr,}/bin/sh. | |
4148 | touch sub/conftst$i.h | |
4149 | done | |
4150 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4151 | ||
81ecdfbb RW |
4152 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4153 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4154 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4155 | # versions had trouble with output in subdirs | |
4156 | am__obj=sub/conftest.${OBJEXT-o} | |
4157 | am__minus_obj="-o $am__obj" | |
42ecbf5e | 4158 | case $depmode in |
81ecdfbb RW |
4159 | gcc) |
4160 | # This depmode causes a compiler race in universal mode. | |
4161 | test "$am__universal" = false || continue | |
4162 | ;; | |
42ecbf5e DJ |
4163 | nosideeffect) |
4164 | # after this tag, mechanisms are not by side-effect, so they'll | |
4165 | # only be used when explicitly requested | |
4166 | if test "x$enable_dependency_tracking" = xyes; then | |
4167 | continue | |
4168 | else | |
4169 | break | |
4170 | fi | |
4171 | ;; | |
81ecdfbb RW |
4172 | msvisualcpp | msvcmsys) |
4173 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4174 | # not run yet. These depmodes are late enough in the game, and | |
4175 | # so weak that their functioning should not be impacted. | |
4176 | am__obj=conftest.${OBJEXT-o} | |
4177 | am__minus_obj= | |
4178 | ;; | |
42ecbf5e DJ |
4179 | none) break ;; |
4180 | esac | |
42ecbf5e | 4181 | if depmode=$depmode \ |
81ecdfbb | 4182 | source=sub/conftest.c object=$am__obj \ |
42ecbf5e | 4183 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 4184 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
42ecbf5e | 4185 | >/dev/null 2>conftest.err && |
81ecdfbb | 4186 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e | 4187 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 4188 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e DJ |
4189 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4190 | # icc doesn't choke on unknown options, it will just issue warnings | |
4191 | # or remarks (even with -Werror). So we grep stderr for any message | |
4192 | # that says an option was ignored or not supported. | |
4193 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4194 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4195 | # The diagnosis changed in icc 8.0: | |
4196 | # icc: Command line remark: option '-MP' not supported | |
4197 | if (grep 'ignoring option' conftest.err || | |
4198 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4199 | am_cv_CC_dependencies_compiler_type=$depmode | |
4200 | break | |
4201 | fi | |
4202 | fi | |
4203 | done | |
2469cfa2 | 4204 | |
42ecbf5e DJ |
4205 | cd .. |
4206 | rm -rf conftest.dir | |
2469cfa2 | 4207 | else |
42ecbf5e DJ |
4208 | am_cv_CC_dependencies_compiler_type=none |
4209 | fi | |
4210 | ||
2469cfa2 | 4211 | fi |
81ecdfbb RW |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4213 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
42ecbf5e DJ |
4214 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4215 | ||
81ecdfbb | 4216 | if |
42ecbf5e DJ |
4217 | test "x$enable_dependency_tracking" != xno \ |
4218 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4219 | am__fastdepCC_TRUE= | |
4220 | am__fastdepCC_FALSE='#' | |
2469cfa2 | 4221 | else |
42ecbf5e DJ |
4222 | am__fastdepCC_TRUE='#' |
4223 | am__fastdepCC_FALSE= | |
2469cfa2 | 4224 | fi |
2469cfa2 | 4225 | |
2469cfa2 | 4226 | |
e5a52504 | 4227 | |
42ecbf5e | 4228 | |
64ac50ac RW |
4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4230 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4231 | # Check whether --enable-maintainer-mode was given. | |
4232 | if test "${enable_maintainer_mode+set}" = set; then : | |
4233 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4234 | else | |
4235 | USE_MAINTAINER_MODE=no | |
4236 | fi | |
4237 | ||
4238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4239 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4240 | if test $USE_MAINTAINER_MODE = yes; then | |
4241 | MAINTAINER_MODE_TRUE= | |
4242 | MAINTAINER_MODE_FALSE='#' | |
4243 | else | |
4244 | MAINTAINER_MODE_TRUE='#' | |
4245 | MAINTAINER_MODE_FALSE= | |
4246 | fi | |
4247 | ||
4248 | MAINT=$MAINTAINER_MODE_TRUE | |
4249 | ||
4250 | ||
4251 | ||
d7040cdb | 4252 | |
81ecdfbb RW |
4253 | # Check whether --with-lib-path was given. |
4254 | if test "${with_lib_path+set}" = set; then : | |
4255 | withval=$with_lib_path; LIB_PATH=$withval | |
4256 | fi | |
4257 | ||
4258 | # Check whether --enable-targets was given. | |
4259 | if test "${enable_targets+set}" = set; then : | |
4260 | enableval=$enable_targets; case "${enableval}" in | |
4261 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
ce2cded5 L |
4262 | ;; |
4263 | no) enable_targets= ;; | |
4264 | *) enable_targets=$enableval ;; | |
4265 | esac | |
81ecdfbb RW |
4266 | fi |
4267 | # Check whether --enable-64-bit-bfd was given. | |
4268 | if test "${enable_64_bit_bfd+set}" = set; then : | |
4269 | enableval=$enable_64_bit_bfd; case "${enableval}" in | |
ce2cded5 L |
4270 | yes) want64=true ;; |
4271 | no) want64=false ;; | |
81ecdfbb | 4272 | *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; |
ce2cded5 | 4273 | esac |
2469cfa2 | 4274 | else |
ce2cded5 | 4275 | want64=false |
81ecdfbb | 4276 | fi |
d7040cdb SE |
4277 | |
4278 | ||
81ecdfbb RW |
4279 | # Check whether --with-sysroot was given. |
4280 | if test "${with_sysroot+set}" = set; then : | |
4281 | withval=$with_sysroot; | |
ce2cded5 L |
4282 | case ${with_sysroot} in |
4283 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
4284 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
4285 | esac | |
d7040cdb | 4286 | |
ce2cded5 L |
4287 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' |
4288 | use_sysroot=yes | |
d7040cdb | 4289 | |
ce2cded5 L |
4290 | if test "x$prefix" = xNONE; then |
4291 | test_prefix=/usr/local | |
4292 | else | |
4293 | test_prefix=$prefix | |
4294 | fi | |
4295 | if test "x$exec_prefix" = xNONE; then | |
4296 | test_exec_prefix=$test_prefix | |
4297 | else | |
4298 | test_exec_prefix=$exec_prefix | |
4299 | fi | |
4300 | case ${TARGET_SYSTEM_ROOT} in | |
4301 | "${test_prefix}"|"${test_prefix}/"*|\ | |
4302 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
4303 | '${prefix}'|'${prefix}/'*|\ | |
4304 | '${exec_prefix}'|'${exec_prefix}/'*) | |
4305 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" | |
4306 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
4307 | ;; | |
4308 | esac | |
d7040cdb | 4309 | |
e5a52504 | 4310 | else |
d7040cdb | 4311 | |
ce2cded5 L |
4312 | use_sysroot=no |
4313 | TARGET_SYSTEM_ROOT= | |
4314 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
d7040cdb | 4315 | |
81ecdfbb RW |
4316 | fi |
4317 | ||
d7040cdb SE |
4318 | |
4319 | ||
4320 | ||
4321 | ||
4fda8867 NC |
4322 | # Check whether --enable-gold was given. |
4323 | if test "${enable_gold+set}" = set; then : | |
4324 | enableval=$enable_gold; case "${enableval}" in | |
c7791212 | 4325 | default) |
4fda8867 NC |
4326 | install_as_default=no |
4327 | installed_linker=ld.bfd | |
4328 | ;; | |
c7791212 | 4329 | yes|no) |
4fda8867 NC |
4330 | install_as_default=yes |
4331 | installed_linker=ld.bfd | |
4332 | ;; | |
4333 | *) | |
4334 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
4335 | ;; | |
4336 | esac | |
4337 | else | |
c7791212 NC |
4338 | install_as_default=yes |
4339 | installed_linker=ld.bfd | |
4fda8867 NC |
4340 | fi |
4341 | ||
4342 | ||
4343 | ||
4344 | ||
81ecdfbb RW |
4345 | # Check whether --enable-got was given. |
4346 | if test "${enable_got+set}" = set; then : | |
4347 | enableval=$enable_got; case "${enableval}" in | |
7fb9f789 | 4348 | target | single | negative | multigot) got_handling=$enableval ;; |
81ecdfbb | 4349 | *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;; |
7fb9f789 NC |
4350 | esac |
4351 | else | |
4352 | got_handling=target | |
81ecdfbb RW |
4353 | fi |
4354 | ||
7fb9f789 NC |
4355 | |
4356 | case "${got_handling}" in | |
4357 | target) | |
4358 | ||
81ecdfbb | 4359 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h |
7fb9f789 NC |
4360 | ;; |
4361 | single) | |
4362 | ||
81ecdfbb | 4363 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h |
7fb9f789 NC |
4364 | ;; |
4365 | negative) | |
4366 | ||
81ecdfbb | 4367 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h |
7fb9f789 NC |
4368 | ;; |
4369 | multigot) | |
4370 | ||
81ecdfbb | 4371 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h |
7fb9f789 | 4372 | ;; |
81ecdfbb | 4373 | *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; |
7fb9f789 NC |
4374 | esac |
4375 | ||
397841b5 AM |
4376 | ac_ext=c |
4377 | ac_cpp='$CPP $CPPFLAGS' | |
4378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4382 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4383 | # On Suns, sometimes $CPP names a directory. | |
4384 | if test -n "$CPP" && test -d "$CPP"; then | |
4385 | CPP= | |
ce2cded5 | 4386 | fi |
397841b5 AM |
4387 | if test -z "$CPP"; then |
4388 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
4389 | $as_echo_n "(cached) " >&6 | |
4390 | else | |
4391 | # Double quotes because CPP needs to be expanded | |
4392 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4393 | do | |
4394 | ac_preproc_ok=false | |
4395 | for ac_c_preproc_warn_flag in '' yes | |
4396 | do | |
4397 | # Use a header file that comes with gcc, so configuring glibc | |
4398 | # with a fresh cross-compiler works. | |
4399 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4400 | # <limits.h> exists even on freestanding compilers. | |
4401 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4402 | # not just through cpp. "Syntax error" is here to catch this case. | |
4403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4404 | /* end confdefs.h. */ | |
4405 | #ifdef __STDC__ | |
4406 | # include <limits.h> | |
4407 | #else | |
4408 | # include <assert.h> | |
4409 | #endif | |
4410 | Syntax error | |
4411 | _ACEOF | |
4412 | if ac_fn_c_try_cpp "$LINENO"; then : | |
d7040cdb | 4413 | |
397841b5 AM |
4414 | else |
4415 | # Broken: fails on valid input. | |
4416 | continue | |
ce2cded5 | 4417 | fi |
397841b5 | 4418 | rm -f conftest.err conftest.$ac_ext |
d7040cdb | 4419 | |
397841b5 AM |
4420 | # OK, works on sane cases. Now check whether nonexistent headers |
4421 | # can be detected and how. | |
4422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4423 | /* end confdefs.h. */ | |
4424 | #include <ac_nonexistent.h> | |
4425 | _ACEOF | |
4426 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4427 | # Broken: success on invalid input. | |
4428 | continue | |
4429 | else | |
4430 | # Passes both tests. | |
4431 | ac_preproc_ok=: | |
4432 | break | |
ce2cded5 | 4433 | fi |
397841b5 | 4434 | rm -f conftest.err conftest.$ac_ext |
d7040cdb | 4435 | |
397841b5 AM |
4436 | done |
4437 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4438 | rm -f conftest.err conftest.$ac_ext | |
4439 | if $ac_preproc_ok; then : | |
4440 | break | |
81ecdfbb RW |
4441 | fi |
4442 | ||
397841b5 AM |
4443 | done |
4444 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4445 | |
ce2cded5 | 4446 | fi |
397841b5 AM |
4447 | CPP=$ac_cv_prog_CPP |
4448 | else | |
4449 | ac_cv_prog_CPP=$CPP | |
4450 | fi | |
4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4452 | $as_echo "$CPP" >&6; } | |
4453 | ac_preproc_ok=false | |
4454 | for ac_c_preproc_warn_flag in '' yes | |
4455 | do | |
4456 | # Use a header file that comes with gcc, so configuring glibc | |
4457 | # with a fresh cross-compiler works. | |
4458 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4459 | # <limits.h> exists even on freestanding compilers. | |
4460 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4461 | # not just through cpp. "Syntax error" is here to catch this case. | |
4462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4463 | /* end confdefs.h. */ | |
4464 | #ifdef __STDC__ | |
4465 | # include <limits.h> | |
4466 | #else | |
4467 | # include <assert.h> | |
4468 | #endif | |
4469 | Syntax error | |
4470 | _ACEOF | |
4471 | if ac_fn_c_try_cpp "$LINENO"; then : | |
d7040cdb | 4472 | |
397841b5 AM |
4473 | else |
4474 | # Broken: fails on valid input. | |
4475 | continue | |
4476 | fi | |
4477 | rm -f conftest.err conftest.$ac_ext | |
2469cfa2 | 4478 | |
397841b5 AM |
4479 | # OK, works on sane cases. Now check whether nonexistent headers |
4480 | # can be detected and how. | |
4481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4482 | /* end confdefs.h. */ | |
4483 | #include <ac_nonexistent.h> | |
4484 | _ACEOF | |
4485 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4486 | # Broken: success on invalid input. | |
4487 | continue | |
4488 | else | |
4489 | # Passes both tests. | |
4490 | ac_preproc_ok=: | |
4491 | break | |
4492 | fi | |
4493 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4494 | |
397841b5 AM |
4495 | done |
4496 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4497 | rm -f conftest.err conftest.$ac_ext | |
4498 | if $ac_preproc_ok; then : | |
d7040cdb | 4499 | |
397841b5 AM |
4500 | else |
4501 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4502 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4503 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4504 | See \`config.log' for more details." "$LINENO" 5; } | |
ce2cded5 | 4505 | fi |
d7040cdb | 4506 | |
ce2cded5 L |
4507 | ac_ext=c |
4508 | ac_cpp='$CPP $CPPFLAGS' | |
4509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
397841b5 AM |
4512 | |
4513 | ||
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4515 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4516 | if test "${ac_cv_path_GREP+set}" = set; then : | |
81ecdfbb | 4517 | $as_echo_n "(cached) " >&6 |
d7040cdb | 4518 | else |
397841b5 AM |
4519 | if test -z "$GREP"; then |
4520 | ac_path_GREP_found=false | |
4521 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4523 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
d7040cdb SE |
4524 | do |
4525 | IFS=$as_save_IFS | |
4526 | test -z "$as_dir" && as_dir=. | |
397841b5 | 4527 | for ac_prog in grep ggrep; do |
81ecdfbb | 4528 | for ac_exec_ext in '' $ac_executable_extensions; do |
397841b5 AM |
4529 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4530 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4531 | # Check for GNU ac_path_GREP and select it if it is found. | |
4532 | # Check for GNU $ac_path_GREP | |
4533 | case `"$ac_path_GREP" --version 2>&1` in | |
4534 | *GNU*) | |
4535 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4536 | *) | |
4537 | ac_count=0 | |
4538 | $as_echo_n 0123456789 >"conftest.in" | |
4539 | while : | |
4540 | do | |
4541 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4542 | mv "conftest.tmp" "conftest.in" | |
4543 | cp "conftest.in" "conftest.nl" | |
4544 | $as_echo 'GREP' >> "conftest.nl" | |
4545 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4546 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4547 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4548 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4549 | # Best one so far, save it but keep looking for a better one | |
4550 | ac_cv_path_GREP="$ac_path_GREP" | |
4551 | ac_path_GREP_max=$ac_count | |
4552 | fi | |
4553 | # 10*(2^10) chars as input seems more than enough | |
4554 | test $ac_count -gt 10 && break | |
81ecdfbb | 4555 | done |
397841b5 AM |
4556 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4557 | esac | |
d7040cdb | 4558 | |
397841b5 AM |
4559 | $ac_path_GREP_found && break 3 |
4560 | done | |
4561 | done | |
4562 | done | |
4563 | IFS=$as_save_IFS | |
4564 | if test -z "$ac_cv_path_GREP"; then | |
4565 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4566 | fi | |
d7040cdb | 4567 | else |
397841b5 | 4568 | ac_cv_path_GREP=$GREP |
d7040cdb | 4569 | fi |
d7040cdb | 4570 | |
252b5132 | 4571 | fi |
397841b5 AM |
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4573 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4574 | GREP="$ac_cv_path_GREP" | |
4575 | ||
4576 | ||
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4578 | $as_echo_n "checking for egrep... " >&6; } | |
4579 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4580 | $as_echo_n "(cached) " >&6 | |
4581 | else | |
4582 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4583 | then ac_cv_path_EGREP="$GREP -E" | |
4584 | else | |
4585 | if test -z "$EGREP"; then | |
4586 | ac_path_EGREP_found=false | |
4587 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4589 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4590 | do | |
4591 | IFS=$as_save_IFS | |
4592 | test -z "$as_dir" && as_dir=. | |
4593 | for ac_prog in egrep; do | |
4594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4595 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4596 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4597 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4598 | # Check for GNU $ac_path_EGREP | |
4599 | case `"$ac_path_EGREP" --version 2>&1` in | |
4600 | *GNU*) | |
4601 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4602 | *) | |
4603 | ac_count=0 | |
4604 | $as_echo_n 0123456789 >"conftest.in" | |
4605 | while : | |
4606 | do | |
4607 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4608 | mv "conftest.tmp" "conftest.in" | |
4609 | cp "conftest.in" "conftest.nl" | |
4610 | $as_echo 'EGREP' >> "conftest.nl" | |
4611 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4612 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4613 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4614 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4615 | # Best one so far, save it but keep looking for a better one | |
4616 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4617 | ac_path_EGREP_max=$ac_count | |
4618 | fi | |
4619 | # 10*(2^10) chars as input seems more than enough | |
4620 | test $ac_count -gt 10 && break | |
4621 | done | |
4622 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4623 | esac | |
4624 | ||
4625 | $ac_path_EGREP_found && break 3 | |
4626 | done | |
4627 | done | |
4628 | done | |
4629 | IFS=$as_save_IFS | |
4630 | if test -z "$ac_cv_path_EGREP"; then | |
4631 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4632 | fi | |
4633 | else | |
4634 | ac_cv_path_EGREP=$EGREP | |
4635 | fi | |
4636 | ||
4637 | fi | |
4638 | fi | |
4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4640 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4641 | EGREP="$ac_cv_path_EGREP" | |
4642 | ||
4643 | ||
4644 | ||
270c9937 JB |
4645 | # Set the 'development' global. |
4646 | . $srcdir/../bfd/development.sh | |
4647 | ||
397841b5 AM |
4648 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
4649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4650 | /* end confdefs.h. */ | |
4651 | __GNUC__ | |
4652 | _ACEOF | |
4653 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4654 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
4655 | ||
4656 | else | |
4657 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
4658 | fi | |
4659 | rm -f conftest* | |
4660 | ||
4661 | ||
4662 | # Check whether --enable-werror was given. | |
4663 | if test "${enable_werror+set}" = set; then : | |
4664 | enableval=$enable_werror; case "${enableval}" in | |
4665 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4666 | no | n) ERROR_ON_WARNING="no" ;; | |
4667 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
4668 | esac | |
4669 | fi | |
4670 | ||
4671 | ||
4672 | # Disable -Wformat by default when using gcc on mingw | |
4673 | case "${host}" in | |
4674 | *-*-mingw32*) | |
4675 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4676 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
4677 | fi | |
4678 | ;; | |
4679 | *) ;; | |
4680 | esac | |
4681 | ||
270c9937 JB |
4682 | # Enable -Werror by default when using gcc. Turn it off for releases. |
4683 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
397841b5 AM |
4684 | ERROR_ON_WARNING=yes |
4685 | fi | |
4686 | ||
4687 | NO_WERROR= | |
4688 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4689 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
4690 | NO_WERROR="-Wno-error" | |
4691 | fi | |
4692 | ||
4693 | if test "${GCC}" = yes ; then | |
4694 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
4695 | fi | |
4696 | ||
4697 | # Check whether --enable-build-warnings was given. | |
4698 | if test "${enable_build_warnings+set}" = set; then : | |
4699 | enableval=$enable_build_warnings; case "${enableval}" in | |
4700 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
4701 | no) if test "${GCC}" = yes ; then | |
4702 | WARN_CFLAGS="-w" | |
4703 | fi;; | |
4704 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4705 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
4706 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4707 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
4708 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
4709 | esac | |
4710 | fi | |
4711 | ||
4712 | ||
4713 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4714 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
4715 | fi | |
4716 | ||
4717 | ||
4718 | ||
4719 | ||
4720 | ||
44350750 NC |
4721 | |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
4723 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
4724 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
4725 | $as_echo_n "(cached) " >&6 | |
4726 | else | |
4727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4728 | /* end confdefs.h. */ | |
4729 | #include <locale.h> | |
4730 | int | |
4731 | main () | |
4732 | { | |
4733 | return LC_MESSAGES | |
4734 | ; | |
4735 | return 0; | |
4736 | } | |
4737 | _ACEOF | |
4738 | if ac_fn_c_try_link "$LINENO"; then : | |
4739 | am_cv_val_LC_MESSAGES=yes | |
4740 | else | |
4741 | am_cv_val_LC_MESSAGES=no | |
4742 | fi | |
4743 | rm -f core conftest.err conftest.$ac_objext \ | |
4744 | conftest$ac_exeext conftest.$ac_ext | |
4745 | fi | |
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
4747 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
4748 | if test $am_cv_val_LC_MESSAGES = yes; then | |
4749 | ||
4750 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
4751 | ||
4752 | fi | |
4753 | ||
4754 | ||
397841b5 AM |
4755 | ac_config_headers="$ac_config_headers config.h:config.in" |
4756 | ||
4757 | ||
df7b86aa NC |
4758 | # PR 14072 |
4759 | ||
4760 | ||
397841b5 AM |
4761 | if test -z "$target" ; then |
4762 | as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 | |
4763 | fi | |
4764 | if test -z "$host" ; then | |
4765 | as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5 | |
4766 | fi | |
4767 | ||
4768 | # host-specific stuff: | |
4769 | ||
4770 | ac_ext=c | |
4771 | ac_cpp='$CPP $CPPFLAGS' | |
4772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4775 | if test -n "$ac_tool_prefix"; then | |
4776 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4777 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4779 | $as_echo_n "checking for $ac_word... " >&6; } | |
4780 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4781 | $as_echo_n "(cached) " >&6 | |
4782 | else | |
4783 | if test -n "$CC"; then | |
4784 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4785 | else | |
4786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4787 | for as_dir in $PATH | |
4788 | do | |
4789 | IFS=$as_save_IFS | |
4790 | test -z "$as_dir" && as_dir=. | |
4791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4793 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4795 | break 2 | |
4796 | fi | |
4797 | done | |
4798 | done | |
4799 | IFS=$as_save_IFS | |
4800 | ||
4801 | fi | |
4802 | fi | |
4803 | CC=$ac_cv_prog_CC | |
4804 | if test -n "$CC"; then | |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4806 | $as_echo "$CC" >&6; } | |
4807 | else | |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4809 | $as_echo "no" >&6; } | |
4810 | fi | |
4811 | ||
4812 | ||
4813 | fi | |
4814 | if test -z "$ac_cv_prog_CC"; then | |
4815 | ac_ct_CC=$CC | |
4816 | # Extract the first word of "gcc", so it can be a program name with args. | |
4817 | set dummy gcc; ac_word=$2 | |
4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4819 | $as_echo_n "checking for $ac_word... " >&6; } | |
81ecdfbb RW |
4820 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
4821 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4822 | else |
ce2cded5 L |
4823 | if test -n "$ac_ct_CC"; then |
4824 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 4825 | else |
ce2cded5 L |
4826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4827 | for as_dir in $PATH | |
4828 | do | |
4829 | IFS=$as_save_IFS | |
4830 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4831 | for ac_exec_ext in '' $ac_executable_extensions; do |
4832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4833 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4835 | break 2 |
4836 | fi | |
4837 | done | |
81ecdfbb RW |
4838 | done |
4839 | IFS=$as_save_IFS | |
4840 | ||
252b5132 RH |
4841 | fi |
4842 | fi | |
ce2cded5 L |
4843 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4844 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4846 | $as_echo "$ac_ct_CC" >&6; } | |
252b5132 | 4847 | else |
81ecdfbb RW |
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4849 | $as_echo "no" >&6; } | |
252b5132 | 4850 | fi |
ce2cded5 | 4851 | |
81ecdfbb RW |
4852 | if test "x$ac_ct_CC" = x; then |
4853 | CC="" | |
4854 | else | |
4855 | case $cross_compiling:$ac_tool_warned in | |
4856 | yes:) | |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4858 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4859 | ac_tool_warned=yes ;; | |
4860 | esac | |
4861 | CC=$ac_ct_CC | |
4862 | fi | |
252b5132 | 4863 | else |
ce2cded5 | 4864 | CC="$ac_cv_prog_CC" |
252b5132 | 4865 | fi |
d7040cdb | 4866 | |
ce2cded5 | 4867 | if test -z "$CC"; then |
81ecdfbb RW |
4868 | if test -n "$ac_tool_prefix"; then |
4869 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 4870 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4872 | $as_echo_n "checking for $ac_word... " >&6; } | |
4873 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4874 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4875 | else |
ce2cded5 L |
4876 | if test -n "$CC"; then |
4877 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4878 | else |
ce2cded5 L |
4879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4880 | for as_dir in $PATH | |
4881 | do | |
4882 | IFS=$as_save_IFS | |
4883 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4884 | for ac_exec_ext in '' $ac_executable_extensions; do |
4885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4886 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4888 | break 2 |
4889 | fi | |
4890 | done | |
81ecdfbb RW |
4891 | done |
4892 | IFS=$as_save_IFS | |
ce2cded5 | 4893 | |
252b5132 RH |
4894 | fi |
4895 | fi | |
ce2cded5 L |
4896 | CC=$ac_cv_prog_CC |
4897 | if test -n "$CC"; then | |
81ecdfbb RW |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4899 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4900 | else |
81ecdfbb RW |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4902 | $as_echo "no" >&6; } | |
ce2cded5 L |
4903 | fi |
4904 | ||
ce2cded5 | 4905 | |
81ecdfbb | 4906 | fi |
ce2cded5 L |
4907 | fi |
4908 | if test -z "$CC"; then | |
4909 | # Extract the first word of "cc", so it can be a program name with args. | |
4910 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4912 | $as_echo_n "checking for $ac_word... " >&6; } | |
4913 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4914 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4915 | else |
4916 | if test -n "$CC"; then | |
4917 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4918 | else | |
4919 | ac_prog_rejected=no | |
4920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4921 | for as_dir in $PATH | |
4922 | do | |
4923 | IFS=$as_save_IFS | |
4924 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4925 | for ac_exec_ext in '' $ac_executable_extensions; do |
4926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 L |
4927 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4928 | ac_prog_rejected=yes | |
4929 | continue | |
4930 | fi | |
4931 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4933 | break 2 |
4934 | fi | |
4935 | done | |
81ecdfbb RW |
4936 | done |
4937 | IFS=$as_save_IFS | |
ce2cded5 L |
4938 | |
4939 | if test $ac_prog_rejected = yes; then | |
4940 | # We found a bogon in the path, so make sure we never use it. | |
4941 | set dummy $ac_cv_prog_CC | |
4942 | shift | |
4943 | if test $# != 0; then | |
4944 | # We chose a different compiler from the bogus one. | |
4945 | # However, it has the same basename, so the bogon will be chosen | |
4946 | # first if we set CC to just the basename; use the full file name. | |
4947 | shift | |
4948 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4949 | fi | |
4950 | fi | |
4951 | fi | |
4952 | fi | |
4953 | CC=$ac_cv_prog_CC | |
4954 | if test -n "$CC"; then | |
81ecdfbb RW |
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4956 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4957 | else |
81ecdfbb RW |
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4959 | $as_echo "no" >&6; } | |
ce2cded5 L |
4960 | fi |
4961 | ||
81ecdfbb | 4962 | |
ce2cded5 L |
4963 | fi |
4964 | if test -z "$CC"; then | |
d7040cdb | 4965 | if test -n "$ac_tool_prefix"; then |
81ecdfbb | 4966 | for ac_prog in cl.exe |
d7040cdb SE |
4967 | do |
4968 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4969 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4971 | $as_echo_n "checking for $ac_word... " >&6; } | |
4972 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4973 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4974 | else |
ce2cded5 L |
4975 | if test -n "$CC"; then |
4976 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb SE |
4977 | else |
4978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4979 | for as_dir in $PATH | |
4980 | do | |
4981 | IFS=$as_save_IFS | |
4982 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4983 | for ac_exec_ext in '' $ac_executable_extensions; do |
4984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4985 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
4987 | break 2 |
4988 | fi | |
4989 | done | |
81ecdfbb RW |
4990 | done |
4991 | IFS=$as_save_IFS | |
d7040cdb SE |
4992 | |
4993 | fi | |
4994 | fi | |
ce2cded5 L |
4995 | CC=$ac_cv_prog_CC |
4996 | if test -n "$CC"; then | |
81ecdfbb RW |
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4998 | $as_echo "$CC" >&6; } | |
d7040cdb | 4999 | else |
81ecdfbb RW |
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5001 | $as_echo "no" >&6; } | |
d7040cdb SE |
5002 | fi |
5003 | ||
81ecdfbb | 5004 | |
ce2cded5 | 5005 | test -n "$CC" && break |
d7040cdb SE |
5006 | done |
5007 | fi | |
ce2cded5 L |
5008 | if test -z "$CC"; then |
5009 | ac_ct_CC=$CC | |
81ecdfbb | 5010 | for ac_prog in cl.exe |
d7040cdb SE |
5011 | do |
5012 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5013 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5015 | $as_echo_n "checking for $ac_word... " >&6; } | |
5016 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
5017 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5018 | else |
ce2cded5 L |
5019 | if test -n "$ac_ct_CC"; then |
5020 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
5021 | else |
5022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5023 | for as_dir in $PATH | |
5024 | do | |
5025 | IFS=$as_save_IFS | |
5026 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5027 | for ac_exec_ext in '' $ac_executable_extensions; do |
5028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 5029 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 5030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
5031 | break 2 |
5032 | fi | |
5033 | done | |
81ecdfbb RW |
5034 | done |
5035 | IFS=$as_save_IFS | |
d7040cdb SE |
5036 | |
5037 | fi | |
5038 | fi | |
ce2cded5 L |
5039 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5040 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
5042 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 5043 | else |
81ecdfbb RW |
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5045 | $as_echo "no" >&6; } | |
d7040cdb SE |
5046 | fi |
5047 | ||
81ecdfbb | 5048 | |
ce2cded5 | 5049 | test -n "$ac_ct_CC" && break |
d7040cdb | 5050 | done |
d7040cdb | 5051 | |
81ecdfbb RW |
5052 | if test "x$ac_ct_CC" = x; then |
5053 | CC="" | |
5054 | else | |
5055 | case $cross_compiling:$ac_tool_warned in | |
5056 | yes:) | |
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5058 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5059 | ac_tool_warned=yes ;; | |
5060 | esac | |
5061 | CC=$ac_ct_CC | |
5062 | fi | |
d7040cdb SE |
5063 | fi |
5064 | ||
d7040cdb | 5065 | fi |
d7040cdb SE |
5066 | |
5067 | ||
81ecdfbb RW |
5068 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5069 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5070 | as_fn_error "no acceptable C compiler found in \$PATH | |
5071 | See \`config.log' for more details." "$LINENO" 5; } | |
d7040cdb | 5072 | |
ce2cded5 | 5073 | # Provide some information about the compiler. |
81ecdfbb RW |
5074 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
5075 | set X $ac_compile | |
5076 | ac_compiler=$2 | |
5077 | for ac_option in --version -v -V -qversion; do | |
5078 | { { ac_try="$ac_compiler $ac_option >&5" | |
5079 | case "(($ac_try" in | |
5080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5081 | *) ac_try_echo=$ac_try;; | |
5082 | esac | |
5083 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5084 | $as_echo "$ac_try_echo"; } >&5 | |
5085 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 5086 | ac_status=$? |
81ecdfbb RW |
5087 | if test -s conftest.err; then |
5088 | sed '10a\ | |
5089 | ... rest of stderr output deleted ... | |
5090 | 10q' conftest.err >conftest.er1 | |
5091 | cat conftest.er1 >&5 | |
5092 | rm -f conftest.er1 conftest.err | |
5093 | fi | |
5094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5095 | test $ac_status = 0; } | |
5096 | done | |
d7040cdb | 5097 | |
81ecdfbb RW |
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
5099 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
5100 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
5101 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5102 | else |
81ecdfbb | 5103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 5104 | /* end confdefs.h. */ |
d7040cdb | 5105 | |
ce2cded5 L |
5106 | int |
5107 | main () | |
5108 | { | |
5109 | #ifndef __GNUC__ | |
5110 | choke me | |
5111 | #endif | |
5112 | ||
5113 | ; | |
5114 | return 0; | |
5115 | } | |
5116 | _ACEOF | |
81ecdfbb | 5117 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 5118 | ac_compiler_gnu=yes |
d7040cdb | 5119 | else |
81ecdfbb | 5120 | ac_compiler_gnu=no |
d7040cdb | 5121 | fi |
81ecdfbb | 5122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 5123 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 5124 | |
ce2cded5 | 5125 | fi |
81ecdfbb RW |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
5127 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5128 | if test $ac_compiler_gnu = yes; then | |
5129 | GCC=yes | |
5130 | else | |
5131 | GCC= | |
5132 | fi | |
ce2cded5 L |
5133 | ac_test_CFLAGS=${CFLAGS+set} |
5134 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
5136 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
5137 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
5138 | $as_echo_n "(cached) " >&6 | |
5139 | else | |
5140 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5141 | ac_c_werror_flag=yes | |
5142 | ac_cv_prog_cc_g=no | |
5143 | CFLAGS="-g" | |
5144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 5145 | /* end confdefs.h. */ |
d7040cdb | 5146 | |
ce2cded5 L |
5147 | int |
5148 | main () | |
5149 | { | |
d7040cdb | 5150 | |
ce2cded5 L |
5151 | ; |
5152 | return 0; | |
5153 | } | |
5154 | _ACEOF | |
81ecdfbb | 5155 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
5156 | ac_cv_prog_cc_g=yes |
5157 | else | |
81ecdfbb RW |
5158 | CFLAGS="" |
5159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5160 | /* end confdefs.h. */ | |
5161 | ||
5162 | int | |
5163 | main () | |
5164 | { | |
5165 | ||
5166 | ; | |
5167 | return 0; | |
5168 | } | |
5169 | _ACEOF | |
5170 | if ac_fn_c_try_compile "$LINENO"; then : | |
5171 | ||
5172 | else | |
5173 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5174 | CFLAGS="-g" | |
5175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5176 | /* end confdefs.h. */ | |
5177 | ||
5178 | int | |
5179 | main () | |
5180 | { | |
d7040cdb | 5181 | |
81ecdfbb RW |
5182 | ; |
5183 | return 0; | |
5184 | } | |
5185 | _ACEOF | |
5186 | if ac_fn_c_try_compile "$LINENO"; then : | |
5187 | ac_cv_prog_cc_g=yes | |
5188 | fi | |
5189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5190 | fi | |
5191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 5192 | fi |
81ecdfbb RW |
5193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5194 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ce2cded5 | 5195 | fi |
81ecdfbb RW |
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
5197 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ce2cded5 L |
5198 | if test "$ac_test_CFLAGS" = set; then |
5199 | CFLAGS=$ac_save_CFLAGS | |
5200 | elif test $ac_cv_prog_cc_g = yes; then | |
5201 | if test "$GCC" = yes; then | |
5202 | CFLAGS="-g -O2" | |
5203 | else | |
5204 | CFLAGS="-g" | |
5205 | fi | |
d7040cdb | 5206 | else |
ce2cded5 L |
5207 | if test "$GCC" = yes; then |
5208 | CFLAGS="-O2" | |
5209 | else | |
5210 | CFLAGS= | |
5211 | fi | |
d7040cdb | 5212 | fi |
81ecdfbb RW |
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
5214 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5215 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
5216 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5217 | else |
81ecdfbb | 5218 | ac_cv_prog_cc_c89=no |
ce2cded5 | 5219 | ac_save_CC=$CC |
81ecdfbb | 5220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
5221 | /* end confdefs.h. */ |
5222 | #include <stdarg.h> | |
5223 | #include <stdio.h> | |
5224 | #include <sys/types.h> | |
5225 | #include <sys/stat.h> | |
5226 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5227 | struct buf { int x; }; | |
5228 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5229 | static char *e (p, i) | |
5230 | char **p; | |
5231 | int i; | |
5232 | { | |
5233 | return p[i]; | |
5234 | } | |
5235 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5236 | { | |
5237 | char *s; | |
5238 | va_list v; | |
5239 | va_start (v,p); | |
5240 | s = g (p, va_arg (v,int)); | |
5241 | va_end (v); | |
5242 | return s; | |
5243 | } | |
d7040cdb | 5244 | |
ce2cded5 L |
5245 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
5246 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5247 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 5248 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
5249 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
5250 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 5251 | that's true only with -std. */ |
ce2cded5 | 5252 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
d7040cdb | 5253 | |
81ecdfbb RW |
5254 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5255 | inside strings and character constants. */ | |
5256 | #define FOO(x) 'x' | |
5257 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5258 | ||
ce2cded5 L |
5259 | int test (int i, double x); |
5260 | struct s1 {int (*f) (int a);}; | |
5261 | struct s2 {int (*f) (double a);}; | |
5262 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5263 | int argc; | |
5264 | char **argv; | |
5265 | int | |
5266 | main () | |
5267 | { | |
5268 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5269 | ; | |
5270 | return 0; | |
5271 | } | |
5272 | _ACEOF | |
81ecdfbb RW |
5273 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5274 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
5275 | do |
5276 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
5277 | if ac_fn_c_try_compile "$LINENO"; then : |
5278 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 5279 | fi |
81ecdfbb RW |
5280 | rm -f core conftest.err conftest.$ac_objext |
5281 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 5282 | done |
81ecdfbb | 5283 | rm -f conftest.$ac_ext |
ce2cded5 | 5284 | CC=$ac_save_CC |
d7040cdb | 5285 | |
ce2cded5 | 5286 | fi |
81ecdfbb RW |
5287 | # AC_CACHE_VAL |
5288 | case "x$ac_cv_prog_cc_c89" in | |
5289 | x) | |
5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5291 | $as_echo "none needed" >&6; } ;; | |
5292 | xno) | |
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5294 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 5295 | *) |
81ecdfbb RW |
5296 | CC="$CC $ac_cv_prog_cc_c89" |
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5298 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d7040cdb | 5299 | esac |
81ecdfbb | 5300 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 5301 | |
ce2cded5 | 5302 | fi |
d7040cdb | 5303 | |
ce2cded5 L |
5304 | ac_ext=c |
5305 | ac_cpp='$CPP $CPPFLAGS' | |
5306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 5309 | |
3cb62297 L |
5310 | ac_ext=cpp |
5311 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5312 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5313 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5314 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5315 | if test -z "$CXX"; then | |
5316 | if test -n "$CCC"; then | |
5317 | CXX=$CCC | |
5318 | else | |
5319 | if test -n "$ac_tool_prefix"; then | |
5320 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5321 | do | |
5322 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5323 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5325 | $as_echo_n "checking for $ac_word... " >&6; } | |
5326 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
81ecdfbb RW |
5327 | $as_echo_n "(cached) " >&6 |
5328 | else | |
3cb62297 L |
5329 | if test -n "$CXX"; then |
5330 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5331 | else | |
5332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5333 | for as_dir in $PATH | |
5334 | do | |
5335 | IFS=$as_save_IFS | |
5336 | test -z "$as_dir" && as_dir=. | |
5337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5339 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
5340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5341 | break 2 | |
5342 | fi | |
5343 | done | |
5344 | done | |
5345 | IFS=$as_save_IFS | |
81ecdfbb | 5346 | |
3cb62297 L |
5347 | fi |
5348 | fi | |
5349 | CXX=$ac_cv_prog_CXX | |
5350 | if test -n "$CXX"; then | |
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
5352 | $as_echo "$CXX" >&6; } | |
81ecdfbb | 5353 | else |
3cb62297 L |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5355 | $as_echo "no" >&6; } | |
7357c5b6 | 5356 | fi |
42ecbf5e | 5357 | |
81ecdfbb | 5358 | |
3cb62297 L |
5359 | test -n "$CXX" && break |
5360 | done | |
7357c5b6 | 5361 | fi |
3cb62297 L |
5362 | if test -z "$CXX"; then |
5363 | ac_ct_CXX=$CXX | |
5364 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5365 | do | |
5366 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5367 | set dummy $ac_prog; ac_word=$2 | |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5369 | $as_echo_n "checking for $ac_word... " >&6; } | |
5370 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
5371 | $as_echo_n "(cached) " >&6 | |
5372 | else | |
5373 | if test -n "$ac_ct_CXX"; then | |
5374 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5375 | else | |
5376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5377 | for as_dir in $PATH | |
5378 | do | |
5379 | IFS=$as_save_IFS | |
5380 | test -z "$as_dir" && as_dir=. | |
5381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5383 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
5384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5385 | break 2 | |
5386 | fi | |
5387 | done | |
5388 | done | |
5389 | IFS=$as_save_IFS | |
252b5132 | 5390 | |
3cb62297 L |
5391 | fi |
5392 | fi | |
5393 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5394 | if test -n "$ac_ct_CXX"; then | |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5396 | $as_echo "$ac_ct_CXX" >&6; } | |
5397 | else | |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5399 | $as_echo "no" >&6; } | |
7357c5b6 | 5400 | fi |
252b5132 | 5401 | |
42ecbf5e | 5402 | |
3cb62297 L |
5403 | test -n "$ac_ct_CXX" && break |
5404 | done | |
81ecdfbb | 5405 | |
3cb62297 L |
5406 | if test "x$ac_ct_CXX" = x; then |
5407 | CXX="g++" | |
5408 | else | |
5409 | case $cross_compiling:$ac_tool_warned in | |
5410 | yes:) | |
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5412 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5413 | ac_tool_warned=yes ;; | |
5414 | esac | |
5415 | CXX=$ac_ct_CXX | |
5416 | fi | |
7357c5b6 | 5417 | fi |
ac48eca1 | 5418 | |
3cb62297 | 5419 | fi |
7357c5b6 | 5420 | fi |
3cb62297 L |
5421 | # Provide some information about the compiler. |
5422 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
5423 | set X $ac_compile | |
5424 | ac_compiler=$2 | |
5425 | for ac_option in --version -v -V -qversion; do | |
5426 | { { ac_try="$ac_compiler $ac_option >&5" | |
5427 | case "(($ac_try" in | |
5428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5429 | *) ac_try_echo=$ac_try;; | |
5430 | esac | |
5431 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5432 | $as_echo "$ac_try_echo"; } >&5 | |
5433 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5434 | ac_status=$? | |
5435 | if test -s conftest.err; then | |
5436 | sed '10a\ | |
5437 | ... rest of stderr output deleted ... | |
5438 | 10q' conftest.err >conftest.er1 | |
5439 | cat conftest.er1 >&5 | |
5440 | rm -f conftest.er1 conftest.err | |
5441 | fi | |
5442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5443 | test $ac_status = 0; } | |
5444 | done | |
d7040cdb | 5445 | |
3cb62297 L |
5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5447 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
5448 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
5449 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5450 | else |
81ecdfbb | 5451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 5452 | /* end confdefs.h. */ |
d7040cdb | 5453 | |
7357c5b6 AM |
5454 | int |
5455 | main () | |
5456 | { | |
3cb62297 L |
5457 | #ifndef __GNUC__ |
5458 | choke me | |
5459 | #endif | |
5460 | ||
5461 | ; | |
81ecdfbb | 5462 | return 0; |
7357c5b6 AM |
5463 | } |
5464 | _ACEOF | |
3cb62297 L |
5465 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5466 | ac_compiler_gnu=yes | |
81ecdfbb | 5467 | else |
3cb62297 | 5468 | ac_compiler_gnu=no |
7357c5b6 | 5469 | fi |
3cb62297 L |
5470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5471 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
81ecdfbb | 5472 | |
7357c5b6 | 5473 | fi |
3cb62297 L |
5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5475 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5476 | if test $ac_compiler_gnu = yes; then | |
5477 | GXX=yes | |
5478 | else | |
5479 | GXX= | |
7357c5b6 | 5480 | fi |
3cb62297 L |
5481 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5482 | ac_save_CXXFLAGS=$CXXFLAGS | |
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5484 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
5485 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
5486 | $as_echo_n "(cached) " >&6 | |
5487 | else | |
5488 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5489 | ac_cxx_werror_flag=yes | |
5490 | ac_cv_prog_cxx_g=no | |
5491 | CXXFLAGS="-g" | |
5492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5493 | /* end confdefs.h. */ | |
252b5132 | 5494 | |
3cb62297 L |
5495 | int |
5496 | main () | |
5497 | { | |
252b5132 | 5498 | |
3cb62297 L |
5499 | ; |
5500 | return 0; | |
5501 | } | |
7357c5b6 | 5502 | _ACEOF |
3cb62297 L |
5503 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5504 | ac_cv_prog_cxx_g=yes | |
5505 | else | |
5506 | CXXFLAGS="" | |
5507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5508 | /* end confdefs.h. */ | |
42ecbf5e | 5509 | |
3cb62297 L |
5510 | int |
5511 | main () | |
5512 | { | |
42ecbf5e | 5513 | |
3cb62297 L |
5514 | ; |
5515 | return 0; | |
5516 | } | |
5517 | _ACEOF | |
5518 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
42ecbf5e | 5519 | |
3cb62297 L |
5520 | else |
5521 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5522 | CXXFLAGS="-g" | |
5523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5524 | /* end confdefs.h. */ | |
42ecbf5e | 5525 | |
3cb62297 L |
5526 | int |
5527 | main () | |
5528 | { | |
42ecbf5e | 5529 | |
3cb62297 L |
5530 | ; |
5531 | return 0; | |
5532 | } | |
5533 | _ACEOF | |
5534 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5535 | ac_cv_prog_cxx_g=yes | |
5536 | fi | |
5537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5538 | fi | |
5539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5540 | fi | |
5541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5542 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5543 | fi | |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5545 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5546 | if test "$ac_test_CXXFLAGS" = set; then | |
5547 | CXXFLAGS=$ac_save_CXXFLAGS | |
5548 | elif test $ac_cv_prog_cxx_g = yes; then | |
5549 | if test "$GXX" = yes; then | |
5550 | CXXFLAGS="-g -O2" | |
5551 | else | |
5552 | CXXFLAGS="-g" | |
5553 | fi | |
ce2cded5 | 5554 | else |
3cb62297 L |
5555 | if test "$GXX" = yes; then |
5556 | CXXFLAGS="-O2" | |
5557 | else | |
5558 | CXXFLAGS= | |
5559 | fi | |
ce2cded5 | 5560 | fi |
3cb62297 L |
5561 | ac_ext=c |
5562 | ac_cpp='$CPP $CPPFLAGS' | |
5563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e | 5566 | |
3cb62297 | 5567 | depcc="$CXX" am_compiler_list= |
e5a52504 | 5568 | |
3cb62297 L |
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
5570 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5571 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
5572 | $as_echo_n "(cached) " >&6 | |
5573 | else | |
5574 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5575 | # We make a subdir and do the tests there. Otherwise we can end up | |
5576 | # making bogus files that we don't know about and never remove. For | |
5577 | # instance it was reported that on HP-UX the gcc test will end up | |
5578 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5579 | # in D'. | |
5580 | mkdir conftest.dir | |
5581 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5582 | # using a relative directory. | |
5583 | cp "$am_depcomp" conftest.dir | |
5584 | cd conftest.dir | |
5585 | # We will build objects and dependencies in a subdirectory because | |
5586 | # it helps to detect inapplicable dependency modes. For instance | |
5587 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5588 | # side effect of compilation, but ICC will put the dependencies in | |
5589 | # the current directory while Tru64 will put them in the object | |
5590 | # directory. | |
5591 | mkdir sub | |
7357c5b6 | 5592 | |
3cb62297 L |
5593 | am_cv_CXX_dependencies_compiler_type=none |
5594 | if test "$am_compiler_list" = ""; then | |
5595 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5596 | fi | |
5597 | am__universal=false | |
5598 | case " $depcc " in #( | |
5599 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5600 | esac | |
d7040cdb | 5601 | |
3cb62297 L |
5602 | for depmode in $am_compiler_list; do |
5603 | # Setup a source with many dependencies, because some compilers | |
5604 | # like to wrap large dependency lists on column 80 (with \), and | |
5605 | # we should not choose a depcomp mode which is confused by this. | |
5606 | # | |
5607 | # We need to recreate these files for each test, as the compiler may | |
5608 | # overwrite some of them when testing with obscure command lines. | |
5609 | # This happens at least with the AIX C compiler. | |
5610 | : > sub/conftest.c | |
5611 | for i in 1 2 3 4 5 6; do | |
5612 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5613 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5614 | # Solaris 8's {/usr,}/bin/sh. | |
5615 | touch sub/conftst$i.h | |
5616 | done | |
5617 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
d7040cdb | 5618 | |
3cb62297 L |
5619 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5620 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5621 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5622 | # versions had trouble with output in subdirs | |
5623 | am__obj=sub/conftest.${OBJEXT-o} | |
5624 | am__minus_obj="-o $am__obj" | |
5625 | case $depmode in | |
5626 | gcc) | |
5627 | # This depmode causes a compiler race in universal mode. | |
5628 | test "$am__universal" = false || continue | |
5629 | ;; | |
5630 | nosideeffect) | |
5631 | # after this tag, mechanisms are not by side-effect, so they'll | |
5632 | # only be used when explicitly requested | |
5633 | if test "x$enable_dependency_tracking" = xyes; then | |
5634 | continue | |
5635 | else | |
5636 | break | |
5637 | fi | |
5638 | ;; | |
5639 | msvisualcpp | msvcmsys) | |
5640 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5641 | # not run yet. These depmodes are late enough in the game, and | |
5642 | # so weak that their functioning should not be impacted. | |
5643 | am__obj=conftest.${OBJEXT-o} | |
5644 | am__minus_obj= | |
5645 | ;; | |
5646 | none) break ;; | |
5647 | esac | |
5648 | if depmode=$depmode \ | |
5649 | source=sub/conftest.c object=$am__obj \ | |
5650 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5651 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5652 | >/dev/null 2>conftest.err && | |
5653 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5654 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5655 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5656 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5657 | # icc doesn't choke on unknown options, it will just issue warnings | |
5658 | # or remarks (even with -Werror). So we grep stderr for any message | |
5659 | # that says an option was ignored or not supported. | |
5660 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5661 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5662 | # The diagnosis changed in icc 8.0: | |
5663 | # icc: Command line remark: option '-MP' not supported | |
5664 | if (grep 'ignoring option' conftest.err || | |
5665 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5666 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5667 | break | |
5668 | fi | |
5669 | fi | |
5670 | done | |
d7040cdb | 5671 | |
3cb62297 L |
5672 | cd .. |
5673 | rm -rf conftest.dir | |
5674 | else | |
5675 | am_cv_CXX_dependencies_compiler_type=none | |
5676 | fi | |
d7040cdb | 5677 | |
3cb62297 L |
5678 | fi |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5680 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5681 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
d7040cdb | 5682 | |
3cb62297 L |
5683 | if |
5684 | test "x$enable_dependency_tracking" != xno \ | |
5685 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5686 | am__fastdepCXX_TRUE= | |
5687 | am__fastdepCXX_FALSE='#' | |
5688 | else | |
5689 | am__fastdepCXX_TRUE='#' | |
5690 | am__fastdepCXX_FALSE= | |
5691 | fi | |
d7040cdb | 5692 | |
d7040cdb | 5693 | |
3cb62297 L |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5695 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5696 | if test "${ac_cv_header_stdc+set}" = set; then : | |
81ecdfbb | 5697 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 5698 | else |
81ecdfbb | 5699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 5700 | /* end confdefs.h. */ |
3cb62297 L |
5701 | #include <stdlib.h> |
5702 | #include <stdarg.h> | |
5703 | #include <string.h> | |
5704 | #include <float.h> | |
7357c5b6 | 5705 | |
7357c5b6 AM |
5706 | int |
5707 | main () | |
5708 | { | |
5709 | ||
5710 | ; | |
5711 | return 0; | |
5712 | } | |
5713 | _ACEOF | |
81ecdfbb | 5714 | if ac_fn_c_try_compile "$LINENO"; then : |
3cb62297 | 5715 | ac_cv_header_stdc=yes |
ce2cded5 | 5716 | else |
3cb62297 | 5717 | ac_cv_header_stdc=no |
ce2cded5 | 5718 | fi |
81ecdfbb | 5719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 5720 | |
3cb62297 L |
5721 | if test $ac_cv_header_stdc = yes; then |
5722 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5724 | /* end confdefs.h. */ | |
5725 | #include <string.h> | |
7357c5b6 | 5726 | |
3cb62297 L |
5727 | _ACEOF |
5728 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5729 | $EGREP "memchr" >/dev/null 2>&1; then : | |
d053aef8 | 5730 | |
3cb62297 L |
5731 | else |
5732 | ac_cv_header_stdc=no | |
5733 | fi | |
5734 | rm -f conftest* | |
da2f07f1 | 5735 | |
3cb62297 | 5736 | fi |
3388710e | 5737 | |
3cb62297 L |
5738 | if test $ac_cv_header_stdc = yes; then |
5739 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5741 | /* end confdefs.h. */ | |
5742 | #include <stdlib.h> | |
3388710e | 5743 | |
3cb62297 L |
5744 | _ACEOF |
5745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5746 | $EGREP "free" >/dev/null 2>&1; then : | |
3388710e | 5747 | |
3cb62297 L |
5748 | else |
5749 | ac_cv_header_stdc=no | |
5750 | fi | |
5751 | rm -f conftest* | |
5752 | ||
5753 | fi | |
5754 | ||
5755 | if test $ac_cv_header_stdc = yes; then | |
5756 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5757 | if test "$cross_compiling" = yes; then : | |
5758 | : | |
5759 | else | |
5760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5761 | /* end confdefs.h. */ | |
5762 | #include <ctype.h> | |
5763 | #include <stdlib.h> | |
5764 | #if ((' ' & 0x0FF) == 0x020) | |
5765 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5766 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5767 | #else | |
5768 | # define ISLOWER(c) \ | |
5769 | (('a' <= (c) && (c) <= 'i') \ | |
5770 | || ('j' <= (c) && (c) <= 'r') \ | |
5771 | || ('s' <= (c) && (c) <= 'z')) | |
5772 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5773 | #endif | |
5774 | ||
5775 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5776 | int | |
5777 | main () | |
5778 | { | |
5779 | int i; | |
5780 | for (i = 0; i < 256; i++) | |
5781 | if (XOR (islower (i), ISLOWER (i)) | |
5782 | || toupper (i) != TOUPPER (i)) | |
5783 | return 2; | |
5784 | return 0; | |
5785 | } | |
5786 | _ACEOF | |
5787 | if ac_fn_c_try_run "$LINENO"; then : | |
5788 | ||
5789 | else | |
5790 | ac_cv_header_stdc=no | |
5791 | fi | |
5792 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5793 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5794 | fi | |
5795 | ||
5796 | fi | |
5797 | fi | |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5799 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5800 | if test $ac_cv_header_stdc = yes; then | |
5801 | ||
5802 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5803 | ||
5804 | fi | |
5805 | ||
5806 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5807 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5808 | inttypes.h stdint.h unistd.h | |
5809 | do : | |
5810 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5811 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5812 | " | |
5813 | eval as_val=\$$as_ac_Header | |
5814 | if test "x$as_val" = x""yes; then : | |
5815 | cat >>confdefs.h <<_ACEOF | |
5816 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5817 | _ACEOF | |
5818 | ||
5819 | fi | |
5820 | ||
5821 | done | |
5822 | ||
5823 | ||
5824 | ||
5825 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
5826 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5827 | MINIX=yes | |
5828 | else | |
5829 | MINIX= | |
5830 | fi | |
5831 | ||
5832 | ||
5833 | if test "$MINIX" = yes; then | |
5834 | ||
5835 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5836 | ||
5837 | ||
5838 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5839 | ||
5840 | ||
5841 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5842 | ||
5843 | fi | |
5844 | ||
5845 | ||
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5847 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5848 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5849 | $as_echo_n "(cached) " >&6 | |
5850 | else | |
5851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5852 | /* end confdefs.h. */ | |
5853 | ||
5854 | # define __EXTENSIONS__ 1 | |
5855 | $ac_includes_default | |
5856 | int | |
5857 | main () | |
5858 | { | |
5859 | ||
5860 | ; | |
5861 | return 0; | |
5862 | } | |
5863 | _ACEOF | |
5864 | if ac_fn_c_try_compile "$LINENO"; then : | |
5865 | ac_cv_safe_to_define___extensions__=yes | |
5866 | else | |
5867 | ac_cv_safe_to_define___extensions__=no | |
5868 | fi | |
5869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5870 | fi | |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5872 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5873 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5874 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5875 | ||
5876 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5877 | ||
5878 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5879 | ||
5880 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5881 | ||
5882 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5883 | ||
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | # The tests for host and target for $enable_largefile require | |
5889 | # canonical names. | |
5890 | ||
5891 | ||
5892 | ||
5893 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
5894 | # even in directories otherwise not depending on the $plugins option. | |
da2f07f1 JK |
5895 | |
5896 | ||
5897 | # Check whether --enable-plugins was given. | |
5898 | if test "${enable_plugins+set}" = set; then : | |
5899 | enableval=$enable_plugins; case "${enableval}" in | |
5900 | yes | "") plugins=yes ;; | |
5901 | no) plugins=no ;; | |
5902 | *) plugins=yes ;; | |
5903 | esac | |
5904 | else | |
5905 | plugins=no | |
5906 | fi | |
5907 | ||
5908 | ||
5909 | ||
5910 | case "${host}" in | |
5911 | sparc-*-solaris*|i[3-7]86-*-solaris*) | |
5912 | # On native 32bit sparc and ia32 solaris, large-file and procfs support | |
5913 | # are mutually exclusive; and without procfs support, the bfd/ elf module | |
5914 | # cannot provide certain routines such as elfcore_write_prpsinfo | |
5915 | # or elfcore_write_prstatus. So unless the user explicitly requested | |
5916 | # large-file support through the --enable-largefile switch, disable | |
5917 | # large-file support in favor of procfs support. | |
5918 | test "${target}" = "${host}" -a "x$plugins" = xno \ | |
5919 | && : ${enable_largefile="no"} | |
5920 | ;; | |
5921 | esac | |
5922 | ||
81ecdfbb RW |
5923 | # Check whether --enable-largefile was given. |
5924 | if test "${enable_largefile+set}" = set; then : | |
5925 | enableval=$enable_largefile; | |
5926 | fi | |
5927 | ||
d053aef8 JK |
5928 | if test "$enable_largefile" != no; then |
5929 | ||
81ecdfbb RW |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
5931 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
5932 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
5933 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5934 | else |
5935 | ac_cv_sys_largefile_CC=no | |
5936 | if test "$GCC" != yes; then | |
5937 | ac_save_CC=$CC | |
5938 | while :; do | |
81ecdfbb RW |
5939 | # IRIX 6.2 and later do not support large files by default, |
5940 | # so use the C compiler's -n32 option if that helps. | |
5941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5942 | /* end confdefs.h. */ |
5943 | #include <sys/types.h> | |
5944 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5945 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5946 | since some C++ compilers masquerading as C compilers | |
5947 | incorrectly reject 9223372036854775807. */ | |
5948 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5949 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5950 | && LARGE_OFF_T % 2147483647 == 1) | |
5951 | ? 1 : -1]; | |
5952 | int | |
5953 | main () | |
5954 | { | |
5955 | ||
5956 | ; | |
5957 | return 0; | |
5958 | } | |
5959 | _ACEOF | |
81ecdfbb | 5960 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5961 | break |
d053aef8 | 5962 | fi |
81ecdfbb RW |
5963 | rm -f core conftest.err conftest.$ac_objext |
5964 | CC="$CC -n32" | |
5965 | if ac_fn_c_try_compile "$LINENO"; then : | |
d053aef8 | 5966 | ac_cv_sys_largefile_CC=' -n32'; break |
d053aef8 | 5967 | fi |
81ecdfbb | 5968 | rm -f core conftest.err conftest.$ac_objext |
d053aef8 JK |
5969 | break |
5970 | done | |
5971 | CC=$ac_save_CC | |
5972 | rm -f conftest.$ac_ext | |
5973 | fi | |
5974 | fi | |
81ecdfbb RW |
5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
5976 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
d053aef8 JK |
5977 | if test "$ac_cv_sys_largefile_CC" != no; then |
5978 | CC=$CC$ac_cv_sys_largefile_CC | |
5979 | fi | |
5980 | ||
81ecdfbb RW |
5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5982 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
5983 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
5984 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5985 | else |
5986 | while :; do | |
81ecdfbb | 5987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5988 | /* end confdefs.h. */ |
5989 | #include <sys/types.h> | |
5990 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5991 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5992 | since some C++ compilers masquerading as C compilers | |
5993 | incorrectly reject 9223372036854775807. */ | |
5994 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5995 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5996 | && LARGE_OFF_T % 2147483647 == 1) | |
5997 | ? 1 : -1]; | |
5998 | int | |
5999 | main () | |
6000 | { | |
6001 | ||
6002 | ; | |
6003 | return 0; | |
6004 | } | |
6005 | _ACEOF | |
81ecdfbb RW |
6006 | if ac_fn_c_try_compile "$LINENO"; then : |
6007 | ac_cv_sys_file_offset_bits=no; break | |
d053aef8 | 6008 | fi |
81ecdfbb RW |
6009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
6011 | /* end confdefs.h. */ |
6012 | #define _FILE_OFFSET_BITS 64 | |
6013 | #include <sys/types.h> | |
6014 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6015 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6016 | since some C++ compilers masquerading as C compilers | |
6017 | incorrectly reject 9223372036854775807. */ | |
6018 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6019 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6020 | && LARGE_OFF_T % 2147483647 == 1) | |
6021 | ? 1 : -1]; | |
6022 | int | |
6023 | main () | |
6024 | { | |
6025 | ||
6026 | ; | |
6027 | return 0; | |
6028 | } | |
6029 | _ACEOF | |
81ecdfbb | 6030 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 6031 | ac_cv_sys_file_offset_bits=64; break |
d053aef8 | 6032 | fi |
81ecdfbb RW |
6033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6034 | ac_cv_sys_file_offset_bits=unknown | |
d053aef8 JK |
6035 | break |
6036 | done | |
6037 | fi | |
81ecdfbb RW |
6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
6039 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
6040 | case $ac_cv_sys_file_offset_bits in #( | |
6041 | no | unknown) ;; | |
6042 | *) | |
d053aef8 JK |
6043 | cat >>confdefs.h <<_ACEOF |
6044 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
6045 | _ACEOF | |
81ecdfbb RW |
6046 | ;; |
6047 | esac | |
6048 | rm -rf conftest* | |
6049 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
6051 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
6052 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
6053 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
6054 | else |
6055 | while :; do | |
81ecdfbb | 6056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
6057 | /* end confdefs.h. */ |
6058 | #include <sys/types.h> | |
6059 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6060 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6061 | since some C++ compilers masquerading as C compilers | |
6062 | incorrectly reject 9223372036854775807. */ | |
6063 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6064 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6065 | && LARGE_OFF_T % 2147483647 == 1) | |
6066 | ? 1 : -1]; | |
6067 | int | |
6068 | main () | |
6069 | { | |
6070 | ||
6071 | ; | |
6072 | return 0; | |
6073 | } | |
6074 | _ACEOF | |
81ecdfbb RW |
6075 | if ac_fn_c_try_compile "$LINENO"; then : |
6076 | ac_cv_sys_large_files=no; break | |
d053aef8 | 6077 | fi |
81ecdfbb RW |
6078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
6080 | /* end confdefs.h. */ |
6081 | #define _LARGE_FILES 1 | |
6082 | #include <sys/types.h> | |
6083 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6084 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6085 | since some C++ compilers masquerading as C compilers | |
6086 | incorrectly reject 9223372036854775807. */ | |
6087 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6088 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6089 | && LARGE_OFF_T % 2147483647 == 1) | |
6090 | ? 1 : -1]; | |
6091 | int | |
6092 | main () | |
6093 | { | |
6094 | ||
6095 | ; | |
6096 | return 0; | |
6097 | } | |
6098 | _ACEOF | |
81ecdfbb | 6099 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 6100 | ac_cv_sys_large_files=1; break |
d053aef8 | 6101 | fi |
81ecdfbb RW |
6102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6103 | ac_cv_sys_large_files=unknown | |
d053aef8 JK |
6104 | break |
6105 | done | |
6106 | fi | |
81ecdfbb RW |
6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
6108 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
6109 | case $ac_cv_sys_large_files in #( | |
6110 | no | unknown) ;; | |
6111 | *) | |
d053aef8 JK |
6112 | cat >>confdefs.h <<_ACEOF |
6113 | #define _LARGE_FILES $ac_cv_sys_large_files | |
6114 | _ACEOF | |
81ecdfbb RW |
6115 | ;; |
6116 | esac | |
6117 | rm -rf conftest* | |
6118 | fi | |
d053aef8 JK |
6119 | fi |
6120 | ||
42ecbf5e | 6121 | |
42ecbf5e | 6122 | |
da2f07f1 | 6123 | |
b214d478 SE |
6124 | case `pwd` in |
6125 | *\ * | *\ *) | |
81ecdfbb RW |
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
6127 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
b214d478 | 6128 | esac |
252b5132 | 6129 | |
42ecbf5e | 6130 | |
d7040cdb | 6131 | |
3725885a RW |
6132 | macro_version='2.2.7a' |
6133 | macro_revision='1.3134' | |
d7040cdb | 6134 | |
d7040cdb SE |
6135 | |
6136 | ||
d7040cdb | 6137 | |
d7040cdb | 6138 | |
42ecbf5e | 6139 | |
d7040cdb | 6140 | |
252b5132 | 6141 | |
252b5132 | 6142 | |
252b5132 | 6143 | |
252b5132 RH |
6144 | |
6145 | ||
ce2cded5 | 6146 | |
b214d478 | 6147 | ltmain="$ac_aux_dir/ltmain.sh" |
ce2cded5 | 6148 | |
3725885a RW |
6149 | # Backslashify metacharacters that are still active within |
6150 | # double-quoted strings. | |
6151 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6152 | ||
6153 | # Same as above, but do not quote variable references. | |
6154 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6155 | ||
6156 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6157 | # double_quote_subst'ed string. | |
6158 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6159 | ||
6160 | # Sed substitution to delay expansion of an escaped single quote. | |
6161 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6162 | ||
6163 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6164 | no_glob_subst='s/\*/\\\*/g' | |
6165 | ||
6166 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6167 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6168 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6169 | ||
6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6171 | $as_echo_n "checking how to print strings... " >&6; } | |
6172 | # Test print first, because it will be a builtin if present. | |
6173 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6174 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6175 | ECHO='print -r --' | |
6176 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6177 | ECHO='printf %s\n' | |
6178 | else | |
6179 | # Use this function as a fallback that always works. | |
6180 | func_fallback_echo () | |
6181 | { | |
6182 | eval 'cat <<_LTECHO_EOF | |
6183 | $1 | |
6184 | _LTECHO_EOF' | |
6185 | } | |
6186 | ECHO='func_fallback_echo' | |
6187 | fi | |
6188 | ||
6189 | # func_echo_all arg... | |
6190 | # Invoke $ECHO with all args, space-separated. | |
6191 | func_echo_all () | |
6192 | { | |
6193 | $ECHO "" | |
6194 | } | |
6195 | ||
6196 | case "$ECHO" in | |
6197 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6198 | $as_echo "printf" >&6; } ;; | |
6199 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6200 | $as_echo "print -r" >&6; } ;; | |
6201 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6202 | $as_echo "cat" >&6; } ;; | |
6203 | esac | |
6204 | ||
6205 | ||
6206 | ||
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | ||
6213 | ||
6214 | ||
6215 | ||
6216 | ||
6217 | ||
81ecdfbb RW |
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
6219 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6220 | if test "${ac_cv_path_SED+set}" = set; then : | |
6221 | $as_echo_n "(cached) " >&6 | |
6222 | else | |
6223 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
6224 | for ac_i in 1 2 3 4 5 6 7; do | |
6225 | ac_script="$ac_script$as_nl$ac_script" | |
6226 | done | |
6227 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6228 | { ac_script=; unset ac_script;} | |
6229 | if test -z "$SED"; then | |
6230 | ac_path_SED_found=false | |
6231 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
6233 | for as_dir in $PATH |
6234 | do | |
6235 | IFS=$as_save_IFS | |
6236 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6237 | for ac_prog in sed gsed; do |
7357c5b6 | 6238 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
6239 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
6240 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
6241 | # Check for GNU ac_path_SED and select it if it is found. | |
6242 | # Check for GNU $ac_path_SED | |
6243 | case `"$ac_path_SED" --version 2>&1` in | |
6244 | *GNU*) | |
6245 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6246 | *) | |
6247 | ac_count=0 | |
6248 | $as_echo_n 0123456789 >"conftest.in" | |
6249 | while : | |
6250 | do | |
6251 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6252 | mv "conftest.tmp" "conftest.in" | |
6253 | cp "conftest.in" "conftest.nl" | |
6254 | $as_echo '' >> "conftest.nl" | |
6255 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6256 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6257 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6258 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6259 | # Best one so far, save it but keep looking for a better one | |
6260 | ac_cv_path_SED="$ac_path_SED" | |
6261 | ac_path_SED_max=$ac_count | |
6262 | fi | |
6263 | # 10*(2^10) chars as input seems more than enough | |
6264 | test $ac_count -gt 10 && break | |
6265 | done | |
6266 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6267 | esac | |
6268 | ||
6269 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
6270 | done |
6271 | done | |
81ecdfbb | 6272 | done |
7357c5b6 | 6273 | IFS=$as_save_IFS |
81ecdfbb RW |
6274 | if test -z "$ac_cv_path_SED"; then |
6275 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
ce2cded5 | 6276 | fi |
81ecdfbb RW |
6277 | else |
6278 | ac_cv_path_SED=$SED | |
7357c5b6 | 6279 | fi |
20e95c23 | 6280 | |
81ecdfbb RW |
6281 | fi |
6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
6283 | $as_echo "$ac_cv_path_SED" >&6; } | |
6284 | SED="$ac_cv_path_SED" | |
6285 | rm -f conftest.sed | |
20e95c23 | 6286 | |
7357c5b6 AM |
6287 | test -z "$SED" && SED=sed |
6288 | Xsed="$SED -e 1s/^X//" | |
20e95c23 DJ |
6289 | |
6290 | ||
6291 | ||
6292 | ||
6293 | ||
6294 | ||
20e95c23 | 6295 | |
20e95c23 | 6296 | |
d7040cdb | 6297 | |
d7040cdb | 6298 | |
7357c5b6 | 6299 | |
81ecdfbb RW |
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
6301 | $as_echo_n "checking for fgrep... " >&6; } | |
6302 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
6303 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 6304 | else |
81ecdfbb RW |
6305 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6306 | then ac_cv_path_FGREP="$GREP -F" | |
6307 | else | |
6308 | if test -z "$FGREP"; then | |
6309 | ac_path_FGREP_found=false | |
6310 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6312 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6313 | do | |
6314 | IFS=$as_save_IFS | |
6315 | test -z "$as_dir" && as_dir=. | |
6316 | for ac_prog in fgrep; do | |
6317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6318 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6319 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
6320 | # Check for GNU ac_path_FGREP and select it if it is found. | |
6321 | # Check for GNU $ac_path_FGREP | |
6322 | case `"$ac_path_FGREP" --version 2>&1` in | |
6323 | *GNU*) | |
6324 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6325 | *) | |
6326 | ac_count=0 | |
6327 | $as_echo_n 0123456789 >"conftest.in" | |
6328 | while : | |
6329 | do | |
6330 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6331 | mv "conftest.tmp" "conftest.in" | |
6332 | cp "conftest.in" "conftest.nl" | |
6333 | $as_echo 'FGREP' >> "conftest.nl" | |
6334 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6335 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6336 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6337 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6338 | # Best one so far, save it but keep looking for a better one | |
6339 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6340 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 6341 | fi |
81ecdfbb RW |
6342 | # 10*(2^10) chars as input seems more than enough |
6343 | test $ac_count -gt 10 && break | |
6344 | done | |
6345 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6346 | esac | |
6347 | ||
6348 | $ac_path_FGREP_found && break 3 | |
6349 | done | |
6350 | done | |
6351 | done | |
6352 | IFS=$as_save_IFS | |
6353 | if test -z "$ac_cv_path_FGREP"; then | |
6354 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6355 | fi | |
6356 | else | |
6357 | ac_cv_path_FGREP=$FGREP | |
6358 | fi | |
6359 | ||
6360 | fi | |
20e95c23 | 6361 | fi |
81ecdfbb RW |
6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6363 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6364 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
6365 | |
6366 | ||
6367 | test -z "$GREP" && GREP=grep | |
6368 | ||
d7040cdb SE |
6369 | |
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | ||
6377 | ||
6378 | ||
6379 | ||
20e95c23 | 6380 | |
ce2cded5 | 6381 | |
d7040cdb | 6382 | |
7357c5b6 AM |
6383 | |
6384 | ||
6385 | ||
6386 | ||
81ecdfbb RW |
6387 | # Check whether --with-gnu-ld was given. |
6388 | if test "${with_gnu_ld+set}" = set; then : | |
6389 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
6390 | else |
6391 | with_gnu_ld=no | |
81ecdfbb RW |
6392 | fi |
6393 | ||
7357c5b6 AM |
6394 | ac_prog=ld |
6395 | if test "$GCC" = yes; then | |
6396 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
6398 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
6399 | case $host in |
6400 | *-*-mingw*) | |
6401 | # gcc leaves a trailing carriage return which upsets mingw | |
6402 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6403 | *) | |
6404 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6405 | esac | |
6406 | case $ac_prog in | |
6407 | # Accept absolute paths. | |
6408 | [\\/]* | ?:[\\/]*) | |
6409 | re_direlt='/[^/][^/]*/\.\./' | |
6410 | # Canonicalize the pathname of ld | |
6411 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6412 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6413 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6414 | done | |
6415 | test -z "$LD" && LD="$ac_prog" | |
6416 | ;; | |
6417 | "") | |
6418 | # If it fails, then pretend we aren't using GCC. | |
6419 | ac_prog=ld | |
6420 | ;; | |
6421 | *) | |
6422 | # If it is relative, then search for the first ld in PATH. | |
6423 | with_gnu_ld=unknown | |
6424 | ;; | |
6425 | esac | |
6426 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
6427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
6428 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357c5b6 | 6429 | else |
81ecdfbb RW |
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
6431 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 6432 | fi |
81ecdfbb RW |
6433 | if test "${lt_cv_path_LD+set}" = set; then : |
6434 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6435 | else |
7357c5b6 AM |
6436 | if test -z "$LD"; then |
6437 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6438 | for ac_dir in $PATH; do | |
6439 | IFS="$lt_save_ifs" | |
6440 | test -z "$ac_dir" && ac_dir=. | |
6441 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6442 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6443 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6444 | # but apparently some variants of GNU ld only accept -v. | |
6445 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6446 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6447 | *GNU* | *'with BFD'*) | |
6448 | test "$with_gnu_ld" != no && break | |
6449 | ;; | |
6450 | *) | |
6451 | test "$with_gnu_ld" != yes && break | |
6452 | ;; | |
6453 | esac | |
6454 | fi | |
6455 | done | |
6456 | IFS="$lt_save_ifs" | |
ce2cded5 | 6457 | else |
7357c5b6 | 6458 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ce2cded5 L |
6459 | fi |
6460 | fi | |
7357c5b6 AM |
6461 | |
6462 | LD="$lt_cv_path_LD" | |
6463 | if test -n "$LD"; then | |
81ecdfbb RW |
6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
6465 | $as_echo "$LD" >&6; } | |
ce2cded5 | 6466 | else |
81ecdfbb RW |
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6468 | $as_echo "no" >&6; } | |
ce2cded5 | 6469 | fi |
81ecdfbb RW |
6470 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6472 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6473 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
6474 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6475 | else |
7357c5b6 AM |
6476 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
6477 | case `$LD -v 2>&1 </dev/null` in | |
6478 | *GNU* | *'with BFD'*) | |
6479 | lt_cv_prog_gnu_ld=yes | |
6480 | ;; | |
6481 | *) | |
6482 | lt_cv_prog_gnu_ld=no | |
6483 | ;; | |
6484 | esac | |
ce2cded5 | 6485 | fi |
81ecdfbb RW |
6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
6487 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7357c5b6 | 6488 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
6489 | |
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
81ecdfbb RW |
6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6499 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6500 | if test "${lt_cv_path_NM+set}" = set; then : | |
6501 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6502 | else |
7357c5b6 AM |
6503 | if test -n "$NM"; then |
6504 | # Let the user override the test. | |
6505 | lt_cv_path_NM="$NM" | |
ce2cded5 | 6506 | else |
7357c5b6 AM |
6507 | lt_nm_to_check="${ac_tool_prefix}nm" |
6508 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6509 | lt_nm_to_check="$lt_nm_to_check nm" | |
20e95c23 | 6510 | fi |
7357c5b6 AM |
6511 | for lt_tmp_nm in $lt_nm_to_check; do |
6512 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6513 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6514 | IFS="$lt_save_ifs" | |
6515 | test -z "$ac_dir" && ac_dir=. | |
6516 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6517 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6518 | # Check to see if the nm accepts a BSD-compat flag. | |
6519 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6520 | # nm: unknown option "B" ignored | |
6521 | # Tru64's nm complains that /dev/null is an invalid object file | |
6522 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6523 | */dev/null* | *'Invalid file or object type'*) | |
6524 | lt_cv_path_NM="$tmp_nm -B" | |
6525 | break | |
6526 | ;; | |
6527 | *) | |
6528 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6529 | */dev/null*) | |
6530 | lt_cv_path_NM="$tmp_nm -p" | |
6531 | break | |
6532 | ;; | |
6533 | *) | |
6534 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6535 | continue # so that we can try to find one that supports BSD flags | |
6536 | ;; | |
6537 | esac | |
6538 | ;; | |
6539 | esac | |
6540 | fi | |
6541 | done | |
6542 | IFS="$lt_save_ifs" | |
6543 | done | |
6544 | : ${lt_cv_path_NM=no} | |
ce2cded5 L |
6545 | fi |
6546 | fi | |
81ecdfbb RW |
6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
6548 | $as_echo "$lt_cv_path_NM" >&6; } | |
7357c5b6 AM |
6549 | if test "$lt_cv_path_NM" != "no"; then |
6550 | NM="$lt_cv_path_NM" | |
ce2cded5 | 6551 | else |
7357c5b6 | 6552 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
6553 | if test -n "$DUMPBIN"; then : |
6554 | # Let the user override the test. | |
6555 | else | |
6556 | if test -n "$ac_tool_prefix"; then | |
6557 | for ac_prog in dumpbin "link -dump" | |
7357c5b6 AM |
6558 | do |
6559 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6560 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6562 | $as_echo_n "checking for $ac_word... " >&6; } | |
6563 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
6564 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6565 | else |
7357c5b6 AM |
6566 | if test -n "$DUMPBIN"; then |
6567 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6568 | else |
6569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6570 | for as_dir in $PATH | |
6571 | do | |
6572 | IFS=$as_save_IFS | |
6573 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6574 | for ac_exec_ext in '' $ac_executable_extensions; do |
6575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6576 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 6577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6578 | break 2 |
6579 | fi | |
6580 | done | |
81ecdfbb RW |
6581 | done |
6582 | IFS=$as_save_IFS | |
d7040cdb | 6583 | |
20e95c23 | 6584 | fi |
ce2cded5 | 6585 | fi |
7357c5b6 AM |
6586 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6587 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
6588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
6589 | $as_echo "$DUMPBIN" >&6; } | |
42ecbf5e | 6590 | else |
81ecdfbb RW |
6591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6592 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6593 | fi |
6594 | ||
81ecdfbb | 6595 | |
7357c5b6 AM |
6596 | test -n "$DUMPBIN" && break |
6597 | done | |
ce2cded5 | 6598 | fi |
7357c5b6 AM |
6599 | if test -z "$DUMPBIN"; then |
6600 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 6601 | for ac_prog in dumpbin "link -dump" |
7357c5b6 AM |
6602 | do |
6603 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6604 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6606 | $as_echo_n "checking for $ac_word... " >&6; } | |
6607 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
6608 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 6609 | else |
7357c5b6 AM |
6610 | if test -n "$ac_ct_DUMPBIN"; then |
6611 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6612 | else |
6613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6614 | for as_dir in $PATH | |
6615 | do | |
6616 | IFS=$as_save_IFS | |
6617 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6618 | for ac_exec_ext in '' $ac_executable_extensions; do |
6619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6620 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 6621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6622 | break 2 |
6623 | fi | |
6624 | done | |
81ecdfbb RW |
6625 | done |
6626 | IFS=$as_save_IFS | |
d7040cdb | 6627 | |
ce2cded5 L |
6628 | fi |
6629 | fi | |
7357c5b6 AM |
6630 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6631 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6633 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 6634 | else |
81ecdfbb RW |
6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6636 | $as_echo "no" >&6; } | |
ce2cded5 | 6637 | fi |
d7040cdb | 6638 | |
81ecdfbb | 6639 | |
7357c5b6 | 6640 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 | 6641 | done |
d7040cdb | 6642 | |
81ecdfbb RW |
6643 | if test "x$ac_ct_DUMPBIN" = x; then |
6644 | DUMPBIN=":" | |
6645 | else | |
6646 | case $cross_compiling:$ac_tool_warned in | |
6647 | yes:) | |
6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6649 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6650 | ac_tool_warned=yes ;; | |
6651 | esac | |
6652 | DUMPBIN=$ac_ct_DUMPBIN | |
6653 | fi | |
ce2cded5 | 6654 | fi |
7357c5b6 | 6655 | |
3725885a RW |
6656 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6657 | *COFF*) | |
6658 | DUMPBIN="$DUMPBIN -symbols" | |
6659 | ;; | |
6660 | *) | |
6661 | DUMPBIN=: | |
6662 | ;; | |
6663 | esac | |
6664 | fi | |
7357c5b6 AM |
6665 | |
6666 | if test "$DUMPBIN" != ":"; then | |
6667 | NM="$DUMPBIN" | |
6668 | fi | |
ce2cded5 | 6669 | fi |
7357c5b6 AM |
6670 | test -z "$NM" && NM=nm |
6671 | ||
6672 | ||
6673 | ||
6674 | ||
6675 | ||
6676 | ||
81ecdfbb RW |
6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6678 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6679 | if test "${lt_cv_nm_interface+set}" = set; then : | |
6680 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6681 | else |
7357c5b6 AM |
6682 | lt_cv_nm_interface="BSD nm" |
6683 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 6684 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
7357c5b6 AM |
6685 | (eval "$ac_compile" 2>conftest.err) |
6686 | cat conftest.err >&5 | |
3725885a | 6687 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7357c5b6 AM |
6688 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6689 | cat conftest.err >&5 | |
3725885a | 6690 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
7357c5b6 AM |
6691 | cat conftest.out >&5 |
6692 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6693 | lt_cv_nm_interface="MS dumpbin" | |
6694 | fi | |
6695 | rm -f conftest* | |
20e95c23 | 6696 | fi |
81ecdfbb RW |
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6698 | $as_echo "$lt_cv_nm_interface" >&6; } | |
20e95c23 | 6699 | |
81ecdfbb RW |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6701 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7357c5b6 AM |
6702 | LN_S=$as_ln_s |
6703 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6705 | $as_echo "yes" >&6; } | |
ce2cded5 | 6706 | else |
81ecdfbb RW |
6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6708 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 6709 | fi |
20e95c23 | 6710 | |
7357c5b6 | 6711 | # find the maximum length of command line arguments |
81ecdfbb RW |
6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6713 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6714 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
6715 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6716 | else |
6717 | i=0 | |
6718 | teststring="ABCD" | |
20e95c23 | 6719 | |
7357c5b6 AM |
6720 | case $build_os in |
6721 | msdosdjgpp*) | |
6722 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6723 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6724 | # during glob expansion). Even if it were fixed, the result of this | |
6725 | # check would be larger than it should be. | |
6726 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6727 | ;; | |
20e95c23 | 6728 | |
7357c5b6 AM |
6729 | gnu*) |
6730 | # Under GNU Hurd, this test is not required because there is | |
6731 | # no limit to the length of command line arguments. | |
6732 | # Libtool will interpret -1 as no limit whatsoever | |
6733 | lt_cv_sys_max_cmd_len=-1; | |
6734 | ;; | |
20e95c23 | 6735 | |
b214d478 | 6736 | cygwin* | mingw* | cegcc*) |
7357c5b6 AM |
6737 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6738 | # about 5 minutes as the teststring grows exponentially. | |
6739 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6740 | # you end up with a "frozen" computer, even though with patience | |
6741 | # the test eventually succeeds (with a max line length of 256k). | |
6742 | # Instead, let's just punt: use the minimum linelength reported by | |
6743 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6744 | lt_cv_sys_max_cmd_len=8192; | |
6745 | ;; | |
20e95c23 | 6746 | |
3725885a RW |
6747 | mint*) |
6748 | # On MiNT this can take a long time and run out of memory. | |
6749 | lt_cv_sys_max_cmd_len=8192; | |
6750 | ;; | |
6751 | ||
7357c5b6 AM |
6752 | amigaos*) |
6753 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6754 | # So we just punt and use a minimum line length of 8192. | |
6755 | lt_cv_sys_max_cmd_len=8192; | |
6756 | ;; | |
20e95c23 | 6757 | |
7357c5b6 AM |
6758 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6759 | # This has been around since 386BSD, at least. Likely further. | |
6760 | if test -x /sbin/sysctl; then | |
6761 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6762 | elif test -x /usr/sbin/sysctl; then | |
6763 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6764 | else | |
6765 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6766 | fi | |
6767 | # And add a safety zone | |
6768 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6769 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6770 | ;; | |
d7040cdb | 6771 | |
7357c5b6 AM |
6772 | interix*) |
6773 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6774 | lt_cv_sys_max_cmd_len=196608 | |
6775 | ;; | |
d7040cdb | 6776 | |
7357c5b6 AM |
6777 | osf*) |
6778 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6779 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6780 | # nice to cause kernel panics so lets avoid the loop below. | |
6781 | # First set a reasonable default. | |
6782 | lt_cv_sys_max_cmd_len=16384 | |
6783 | # | |
6784 | if test -x /sbin/sysconfig; then | |
6785 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6786 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6787 | esac | |
6788 | fi | |
6789 | ;; | |
6790 | sco3.2v5*) | |
6791 | lt_cv_sys_max_cmd_len=102400 | |
6792 | ;; | |
6793 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6794 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6795 | if test -n "$kargmax"; then | |
6796 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6797 | else | |
6798 | lt_cv_sys_max_cmd_len=32768 | |
6799 | fi | |
ce2cded5 L |
6800 | ;; |
6801 | *) | |
b214d478 SE |
6802 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6803 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7357c5b6 AM |
6804 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6805 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6806 | else | |
6807 | # Make teststring a little bigger before we do anything with it. | |
6808 | # a 1K string should be a reasonable start. | |
6809 | for i in 1 2 3 4 5 6 7 8 ; do | |
6810 | teststring=$teststring$teststring | |
6811 | done | |
6812 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6813 | # If test is not a shell built-in, we'll probably end up computing a | |
6814 | # maximum length that is only half of the actual maximum length, but | |
6815 | # we can't tell. | |
3725885a RW |
6816 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
6817 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
7357c5b6 AM |
6818 | test $i != 17 # 1/2 MB should be enough |
6819 | do | |
6820 | i=`expr $i + 1` | |
6821 | teststring=$teststring$teststring | |
6822 | done | |
6823 | # Only check the string length outside the loop. | |
6824 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6825 | teststring= | |
6826 | # Add a significant safety factor because C++ compilers can tack on | |
6827 | # massive amounts of additional arguments before passing them to the | |
6828 | # linker. It appears as though 1/2 is a usable value. | |
6829 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6830 | fi | |
ce2cded5 L |
6831 | ;; |
6832 | esac | |
d7040cdb | 6833 | |
7357c5b6 | 6834 | fi |
d7040cdb | 6835 | |
7357c5b6 | 6836 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6838 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7357c5b6 | 6839 | else |
81ecdfbb RW |
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6841 | $as_echo "none" >&6; } | |
7357c5b6 AM |
6842 | fi |
6843 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
6844 | |
6845 | ||
6846 | ||
6847 | ||
6848 | ||
d7040cdb | 6849 | |
7357c5b6 AM |
6850 | : ${CP="cp -f"} |
6851 | : ${MV="mv -f"} | |
6852 | : ${RM="rm -f"} | |
d7040cdb | 6853 | |
81ecdfbb RW |
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6855 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7357c5b6 AM |
6856 | # Try some XSI features |
6857 | xsi_shell=no | |
6858 | ( _lt_dummy="a/b/c" | |
6859 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
b214d478 SE |
6860 | = c,a/b,, \ |
6861 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6862 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7357c5b6 | 6863 | && xsi_shell=yes |
81ecdfbb RW |
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6865 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb | 6866 | |
d7040cdb | 6867 | |
81ecdfbb RW |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6869 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7357c5b6 AM |
6870 | lt_shell_append=no |
6871 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6872 | >/dev/null 2>&1 \ | |
6873 | && lt_shell_append=yes | |
81ecdfbb RW |
6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6875 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
6876 | |
6877 | ||
7357c5b6 AM |
6878 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6879 | lt_unset=unset | |
6880 | else | |
6881 | lt_unset=false | |
6882 | fi | |
d7040cdb | 6883 | |
d7040cdb | 6884 | |
d7040cdb | 6885 | |
d7040cdb | 6886 | |
d7040cdb | 6887 | |
7357c5b6 AM |
6888 | # test EBCDIC or ASCII |
6889 | case `echo X|tr X '\101'` in | |
6890 | A) # ASCII based system | |
6891 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6892 | lt_SP2NL='tr \040 \012' | |
6893 | lt_NL2SP='tr \015\012 \040\040' | |
6894 | ;; | |
6895 | *) # EBCDIC based system | |
6896 | lt_SP2NL='tr \100 \n' | |
6897 | lt_NL2SP='tr \r\n \100\100' | |
6898 | ;; | |
6899 | esac | |
42ecbf5e | 6900 | |
d7040cdb SE |
6901 | |
6902 | ||
6903 | ||
6904 | ||
6905 | ||
6906 | ||
d7040cdb | 6907 | |
d7040cdb | 6908 | |
81ecdfbb RW |
6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6910 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6911 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
6912 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6913 | else |
6914 | lt_cv_ld_reload_flag='-r' | |
6915 | fi | |
81ecdfbb RW |
6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6917 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7357c5b6 AM |
6918 | reload_flag=$lt_cv_ld_reload_flag |
6919 | case $reload_flag in | |
6920 | "" | " "*) ;; | |
6921 | *) reload_flag=" $reload_flag" ;; | |
6922 | esac | |
6923 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6924 | case $host_os in | |
6925 | darwin*) | |
6926 | if test "$GCC" = yes; then | |
6927 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6928 | else | |
6929 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6930 | fi | |
6931 | ;; | |
6932 | esac | |
d7040cdb | 6933 | |
d7040cdb | 6934 | |
d7040cdb | 6935 | |
d7040cdb | 6936 | |
d7040cdb | 6937 | |
d7040cdb | 6938 | |
d7040cdb | 6939 | |
d7040cdb | 6940 | |
d7040cdb | 6941 | |
b214d478 SE |
6942 | if test -n "$ac_tool_prefix"; then |
6943 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6944 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
6945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6946 | $as_echo_n "checking for $ac_word... " >&6; } | |
6947 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
6948 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6949 | else |
6950 | if test -n "$OBJDUMP"; then | |
6951 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6952 | else | |
6953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6954 | for as_dir in $PATH | |
6955 | do | |
6956 | IFS=$as_save_IFS | |
6957 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6958 | for ac_exec_ext in '' $ac_executable_extensions; do |
6959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6960 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 6961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6962 | break 2 |
6963 | fi | |
6964 | done | |
81ecdfbb RW |
6965 | done |
6966 | IFS=$as_save_IFS | |
b214d478 SE |
6967 | |
6968 | fi | |
6969 | fi | |
6970 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6971 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6973 | $as_echo "$OBJDUMP" >&6; } | |
b214d478 | 6974 | else |
81ecdfbb RW |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6976 | $as_echo "no" >&6; } | |
b214d478 SE |
6977 | fi |
6978 | ||
81ecdfbb | 6979 | |
b214d478 SE |
6980 | fi |
6981 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6982 | ac_ct_OBJDUMP=$OBJDUMP | |
6983 | # Extract the first word of "objdump", so it can be a program name with args. | |
6984 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6986 | $as_echo_n "checking for $ac_word... " >&6; } | |
6987 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
6988 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6989 | else |
6990 | if test -n "$ac_ct_OBJDUMP"; then | |
6991 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6992 | else | |
6993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6994 | for as_dir in $PATH | |
6995 | do | |
6996 | IFS=$as_save_IFS | |
6997 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6998 | for ac_exec_ext in '' $ac_executable_extensions; do |
6999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7000 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 7001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7002 | break 2 |
7003 | fi | |
7004 | done | |
81ecdfbb RW |
7005 | done |
7006 | IFS=$as_save_IFS | |
b214d478 | 7007 | |
b214d478 SE |
7008 | fi |
7009 | fi | |
7010 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7011 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7013 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b214d478 | 7014 | else |
81ecdfbb RW |
7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7016 | $as_echo "no" >&6; } | |
b214d478 SE |
7017 | fi |
7018 | ||
81ecdfbb RW |
7019 | if test "x$ac_ct_OBJDUMP" = x; then |
7020 | OBJDUMP="false" | |
7021 | else | |
7022 | case $cross_compiling:$ac_tool_warned in | |
7023 | yes:) | |
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7026 | ac_tool_warned=yes ;; | |
7027 | esac | |
7028 | OBJDUMP=$ac_ct_OBJDUMP | |
7029 | fi | |
b214d478 SE |
7030 | else |
7031 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7032 | fi | |
7033 | ||
7034 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7035 | ||
7036 | ||
7037 | ||
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
d7040cdb | 7043 | |
81ecdfbb RW |
7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7045 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
7046 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
7047 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7048 | else |
7357c5b6 AM |
7049 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
7050 | lt_cv_file_magic_test_file= | |
7051 | lt_cv_deplibs_check_method='unknown' | |
7052 | # Need to set the preceding variable on all platforms that support | |
7053 | # interlibrary dependencies. | |
7054 | # 'none' -- dependencies not supported. | |
7055 | # `unknown' -- same as none, but documents that we really don't know. | |
7056 | # 'pass_all' -- all dependencies passed with no checks. | |
7057 | # 'test_compile' -- check by making test program. | |
7058 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
7059 | # which responds to the $file_magic_cmd with a given extended regex. | |
7060 | # If you have `file' or equivalent on your system and you're not sure | |
7061 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 7062 | |
ce2cded5 | 7063 | case $host_os in |
7357c5b6 AM |
7064 | aix[4-9]*) |
7065 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 7066 | ;; |
7357c5b6 AM |
7067 | |
7068 | beos*) | |
7069 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 7070 | ;; |
7357c5b6 AM |
7071 | |
7072 | bsdi[45]*) | |
7073 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
7074 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7075 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 7076 | ;; |
7357c5b6 AM |
7077 | |
7078 | cygwin*) | |
7079 | # func_win32_libid is a shell function defined in ltmain.sh | |
7080 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7081 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 7082 | ;; |
7357c5b6 AM |
7083 | |
7084 | mingw* | pw32*) | |
7085 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7086 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7087 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
7088 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7089 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
7357c5b6 AM |
7090 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7091 | lt_cv_file_magic_cmd='func_win32_libid' | |
7092 | else | |
7093 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7094 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7095 | fi | |
ce2cded5 | 7096 | ;; |
7357c5b6 | 7097 | |
3725885a | 7098 | cegcc*) |
b214d478 SE |
7099 | # use the weaker test based on 'objdump'. See mingw*. |
7100 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7101 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7102 | ;; | |
7103 | ||
7357c5b6 AM |
7104 | darwin* | rhapsody*) |
7105 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 7106 | ;; |
7357c5b6 AM |
7107 | |
7108 | freebsd* | dragonfly*) | |
7109 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7110 | case $host_cpu in | |
7111 | i*86 ) | |
7112 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7113 | # Let's accept both of them until this is cleared up. | |
7114 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
7115 | lt_cv_file_magic_cmd=/usr/bin/file | |
7116 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7117 | ;; | |
7118 | esac | |
7119 | else | |
7120 | lt_cv_deplibs_check_method=pass_all | |
7121 | fi | |
ce2cded5 | 7122 | ;; |
7357c5b6 AM |
7123 | |
7124 | gnu*) | |
7125 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 7126 | ;; |
7357c5b6 | 7127 | |
3725885a RW |
7128 | haiku*) |
7129 | lt_cv_deplibs_check_method=pass_all | |
7130 | ;; | |
7131 | ||
7357c5b6 AM |
7132 | hpux10.20* | hpux11*) |
7133 | lt_cv_file_magic_cmd=/usr/bin/file | |
7134 | case $host_cpu in | |
7135 | ia64*) | |
7136 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
7137 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
7138 | ;; | |
7139 | hppa*64*) | |
3725885a | 7140 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
7357c5b6 AM |
7141 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
7142 | ;; | |
7143 | *) | |
3725885a | 7144 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
7357c5b6 AM |
7145 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
7146 | ;; | |
7147 | esac | |
ce2cded5 | 7148 | ;; |
d7040cdb | 7149 | |
7357c5b6 AM |
7150 | interix[3-9]*) |
7151 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7152 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7153 | ;; | |
d7040cdb | 7154 | |
7357c5b6 AM |
7155 | irix5* | irix6* | nonstopux*) |
7156 | case $LD in | |
7157 | *-32|*"-32 ") libmagic=32-bit;; | |
7158 | *-n32|*"-n32 ") libmagic=N32;; | |
7159 | *-64|*"-64 ") libmagic=64-bit;; | |
7160 | *) libmagic=never-match;; | |
7161 | esac | |
7162 | lt_cv_deplibs_check_method=pass_all | |
7163 | ;; | |
d7040cdb | 7164 | |
7357c5b6 | 7165 | # This must be Linux ELF. |
58e24671 | 7166 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7357c5b6 AM |
7167 | lt_cv_deplibs_check_method=pass_all |
7168 | ;; | |
d7040cdb | 7169 | |
7357c5b6 AM |
7170 | netbsd*) |
7171 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7172 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7173 | else | |
7174 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
7175 | fi | |
ce2cded5 | 7176 | ;; |
d7040cdb | 7177 | |
7357c5b6 AM |
7178 | newos6*) |
7179 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
7180 | lt_cv_file_magic_cmd=/usr/bin/file | |
7181 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7182 | ;; | |
d7040cdb | 7183 | |
7357c5b6 AM |
7184 | *nto* | *qnx*) |
7185 | lt_cv_deplibs_check_method=pass_all | |
7186 | ;; | |
d7040cdb | 7187 | |
7357c5b6 AM |
7188 | openbsd*) |
7189 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7190 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
ce2cded5 | 7191 | else |
7357c5b6 | 7192 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
ce2cded5 | 7193 | fi |
7357c5b6 | 7194 | ;; |
d7040cdb | 7195 | |
7357c5b6 AM |
7196 | osf3* | osf4* | osf5*) |
7197 | lt_cv_deplibs_check_method=pass_all | |
7198 | ;; | |
d7040cdb | 7199 | |
7357c5b6 AM |
7200 | rdos*) |
7201 | lt_cv_deplibs_check_method=pass_all | |
7202 | ;; | |
d7040cdb | 7203 | |
7357c5b6 AM |
7204 | solaris*) |
7205 | lt_cv_deplibs_check_method=pass_all | |
7206 | ;; | |
d7040cdb | 7207 | |
7357c5b6 AM |
7208 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
7209 | lt_cv_deplibs_check_method=pass_all | |
7210 | ;; | |
d7040cdb | 7211 | |
7357c5b6 AM |
7212 | sysv4 | sysv4.3*) |
7213 | case $host_vendor in | |
7214 | motorola) | |
7215 | 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]' | |
7216 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7217 | ;; | |
7218 | ncr) | |
7219 | lt_cv_deplibs_check_method=pass_all | |
7220 | ;; | |
7221 | sequent) | |
7222 | lt_cv_file_magic_cmd='/bin/file' | |
7223 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7224 | ;; | |
7225 | sni) | |
7226 | lt_cv_file_magic_cmd='/bin/file' | |
7227 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7228 | lt_cv_file_magic_test_file=/lib/libc.so | |
7229 | ;; | |
7230 | siemens) | |
7231 | lt_cv_deplibs_check_method=pass_all | |
7232 | ;; | |
7233 | pc) | |
7234 | lt_cv_deplibs_check_method=pass_all | |
7235 | ;; | |
7236 | esac | |
7237 | ;; | |
d7040cdb | 7238 | |
7357c5b6 AM |
7239 | tpf*) |
7240 | lt_cv_deplibs_check_method=pass_all | |
7241 | ;; | |
7242 | esac | |
d7040cdb | 7243 | |
7357c5b6 | 7244 | fi |
81ecdfbb RW |
7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7246 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7357c5b6 AM |
7247 | file_magic_cmd=$lt_cv_file_magic_cmd |
7248 | deplibs_check_method=$lt_cv_deplibs_check_method | |
7249 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb SE |
7250 | |
7251 | ||
7252 | ||
7357c5b6 AM |
7253 | |
7254 | ||
7255 | ||
7256 | ||
7257 | ||
7258 | ||
7259 | ||
7260 | ||
7261 | ||
7262 | if test -n "$ac_tool_prefix"; then | |
7263 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7264 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7266 | $as_echo_n "checking for $ac_word... " >&6; } | |
7267 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7268 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
7269 | else |
7270 | if test -n "$AR"; then | |
7271 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7272 | else | |
7273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7274 | for as_dir in $PATH | |
7275 | do | |
7276 | IFS=$as_save_IFS | |
7277 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7278 | for ac_exec_ext in '' $ac_executable_extensions; do |
7279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7280 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 7281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7282 | break 2 |
ce2cded5 L |
7283 | fi |
7284 | done | |
81ecdfbb RW |
7285 | done |
7286 | IFS=$as_save_IFS | |
d7040cdb | 7287 | |
42ecbf5e | 7288 | fi |
ce2cded5 | 7289 | fi |
7357c5b6 AM |
7290 | AR=$ac_cv_prog_AR |
7291 | if test -n "$AR"; then | |
81ecdfbb RW |
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7293 | $as_echo "$AR" >&6; } | |
42ecbf5e | 7294 | else |
81ecdfbb RW |
7295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7296 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
7297 | fi |
7298 | ||
81ecdfbb | 7299 | |
7357c5b6 AM |
7300 | fi |
7301 | if test -z "$ac_cv_prog_AR"; then | |
7302 | ac_ct_AR=$AR | |
7303 | # Extract the first word of "ar", so it can be a program name with args. | |
7304 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7306 | $as_echo_n "checking for $ac_word... " >&6; } | |
7307 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
7308 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
7309 | else |
7310 | if test -n "$ac_ct_AR"; then | |
7311 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7312 | else | |
7313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7314 | for as_dir in $PATH | |
7315 | do | |
7316 | IFS=$as_save_IFS | |
7317 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7318 | for ac_exec_ext in '' $ac_executable_extensions; do |
7319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7320 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 7321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
7322 | break 2 |
7323 | fi | |
7324 | done | |
81ecdfbb RW |
7325 | done |
7326 | IFS=$as_save_IFS | |
42ecbf5e | 7327 | |
7357c5b6 AM |
7328 | fi |
7329 | fi | |
7330 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7331 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7333 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 7334 | else |
81ecdfbb RW |
7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7336 | $as_echo "no" >&6; } | |
7357c5b6 | 7337 | fi |
d7040cdb | 7338 | |
81ecdfbb RW |
7339 | if test "x$ac_ct_AR" = x; then |
7340 | AR="false" | |
7341 | else | |
7342 | case $cross_compiling:$ac_tool_warned in | |
7343 | yes:) | |
7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7345 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7346 | ac_tool_warned=yes ;; | |
7347 | esac | |
7348 | AR=$ac_ct_AR | |
7349 | fi | |
7357c5b6 AM |
7350 | else |
7351 | AR="$ac_cv_prog_AR" | |
7352 | fi | |
d7040cdb | 7353 | |
7357c5b6 AM |
7354 | test -z "$AR" && AR=ar |
7355 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
7356 | |
7357 | ||
7358 | ||
20e95c23 | 7359 | |
d7040cdb | 7360 | |
d7040cdb SE |
7361 | |
7362 | ||
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7357c5b6 AM |
7367 | if test -n "$ac_tool_prefix"; then |
7368 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7369 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
7370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7371 | $as_echo_n "checking for $ac_word... " >&6; } | |
7372 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
7373 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
7374 | else |
7375 | if test -n "$STRIP"; then | |
7376 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7377 | else | |
7378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7379 | for as_dir in $PATH | |
7380 | do | |
7381 | IFS=$as_save_IFS | |
7382 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7383 | for ac_exec_ext in '' $ac_executable_extensions; do |
7384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7385 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 7386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7387 | break 2 |
ce2cded5 | 7388 | fi |
7357c5b6 | 7389 | done |
81ecdfbb RW |
7390 | done |
7391 | IFS=$as_save_IFS | |
d7040cdb | 7392 | |
7357c5b6 AM |
7393 | fi |
7394 | fi | |
7395 | STRIP=$ac_cv_prog_STRIP | |
7396 | if test -n "$STRIP"; then | |
81ecdfbb RW |
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7398 | $as_echo "$STRIP" >&6; } | |
7357c5b6 | 7399 | else |
81ecdfbb RW |
7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7401 | $as_echo "no" >&6; } | |
7357c5b6 AM |
7402 | fi |
7403 | ||
81ecdfbb | 7404 | |
7357c5b6 AM |
7405 | fi |
7406 | if test -z "$ac_cv_prog_STRIP"; then | |
7407 | ac_ct_STRIP=$STRIP | |
7408 | # Extract the first word of "strip", so it can be a program name with args. | |
7409 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7411 | $as_echo_n "checking for $ac_word... " >&6; } | |
7412 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
7413 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
7414 | else |
7415 | if test -n "$ac_ct_STRIP"; then | |
7416 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7417 | else | |
7418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7419 | for as_dir in $PATH | |
7420 | do | |
7421 | IFS=$as_save_IFS | |
7422 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7423 | for ac_exec_ext in '' $ac_executable_extensions; do |
7424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7425 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 7426 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7427 | break 2 |
ce2cded5 | 7428 | fi |
7357c5b6 | 7429 | done |
81ecdfbb RW |
7430 | done |
7431 | IFS=$as_save_IFS | |
d7040cdb | 7432 | |
7357c5b6 AM |
7433 | fi |
7434 | fi | |
7435 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7436 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7438 | $as_echo "$ac_ct_STRIP" >&6; } | |
20e95c23 | 7439 | else |
81ecdfbb RW |
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7441 | $as_echo "no" >&6; } | |
7357c5b6 | 7442 | fi |
d7040cdb | 7443 | |
81ecdfbb RW |
7444 | if test "x$ac_ct_STRIP" = x; then |
7445 | STRIP=":" | |
7446 | else | |
7447 | case $cross_compiling:$ac_tool_warned in | |
7448 | yes:) | |
7449 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7450 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7451 | ac_tool_warned=yes ;; | |
7452 | esac | |
7453 | STRIP=$ac_ct_STRIP | |
7454 | fi | |
7357c5b6 AM |
7455 | else |
7456 | STRIP="$ac_cv_prog_STRIP" | |
7457 | fi | |
d7040cdb | 7458 | |
7357c5b6 | 7459 | test -z "$STRIP" && STRIP=: |
d7040cdb | 7460 | |
d7040cdb SE |
7461 | |
7462 | ||
7463 | ||
d7040cdb | 7464 | |
7357c5b6 AM |
7465 | |
7466 | if test -n "$ac_tool_prefix"; then | |
7467 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7468 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7470 | $as_echo_n "checking for $ac_word... " >&6; } | |
7471 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
7472 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7473 | else |
7357c5b6 AM |
7474 | if test -n "$RANLIB"; then |
7475 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7476 | else | |
7477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7478 | for as_dir in $PATH | |
ce2cded5 | 7479 | do |
7357c5b6 AM |
7480 | IFS=$as_save_IFS |
7481 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7482 | for ac_exec_ext in '' $ac_executable_extensions; do |
7483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7484 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 7485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7486 | break 2 |
ce2cded5 | 7487 | fi |
7357c5b6 | 7488 | done |
81ecdfbb RW |
7489 | done |
7490 | IFS=$as_save_IFS | |
7357c5b6 | 7491 | |
ce2cded5 | 7492 | fi |
7357c5b6 AM |
7493 | fi |
7494 | RANLIB=$ac_cv_prog_RANLIB | |
7495 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7497 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 7498 | else |
81ecdfbb RW |
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7500 | $as_echo "no" >&6; } | |
ce2cded5 | 7501 | fi |
d7040cdb | 7502 | |
81ecdfbb | 7503 | |
7357c5b6 AM |
7504 | fi |
7505 | if test -z "$ac_cv_prog_RANLIB"; then | |
7506 | ac_ct_RANLIB=$RANLIB | |
7507 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7508 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7510 | $as_echo_n "checking for $ac_word... " >&6; } | |
7511 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
7512 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7513 | else |
7357c5b6 AM |
7514 | if test -n "$ac_ct_RANLIB"; then |
7515 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7516 | else | |
7517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7518 | for as_dir in $PATH | |
7519 | do | |
7520 | IFS=$as_save_IFS | |
7521 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7522 | for ac_exec_ext in '' $ac_executable_extensions; do |
7523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7524 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 7525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
7526 | break 2 |
7527 | fi | |
7528 | done | |
81ecdfbb RW |
7529 | done |
7530 | IFS=$as_save_IFS | |
7357c5b6 | 7531 | |
ce2cded5 | 7532 | fi |
7357c5b6 AM |
7533 | fi |
7534 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7535 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7537 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ce2cded5 | 7538 | else |
81ecdfbb RW |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7540 | $as_echo "no" >&6; } | |
ce2cded5 | 7541 | fi |
d7040cdb | 7542 | |
81ecdfbb RW |
7543 | if test "x$ac_ct_RANLIB" = x; then |
7544 | RANLIB=":" | |
7545 | else | |
7546 | case $cross_compiling:$ac_tool_warned in | |
7547 | yes:) | |
7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7549 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7550 | ac_tool_warned=yes ;; | |
7551 | esac | |
7552 | RANLIB=$ac_ct_RANLIB | |
7553 | fi | |
7357c5b6 AM |
7554 | else |
7555 | RANLIB="$ac_cv_prog_RANLIB" | |
ce2cded5 | 7556 | fi |
d7040cdb | 7557 | |
7357c5b6 | 7558 | test -z "$RANLIB" && RANLIB=: |
d7040cdb | 7559 | |
7357c5b6 AM |
7560 | |
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | # Determine commands to create old-style static archives. | |
b214d478 | 7566 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7357c5b6 AM |
7567 | old_postinstall_cmds='chmod 644 $oldlib' |
7568 | old_postuninstall_cmds= | |
7569 | ||
7570 | if test -n "$RANLIB"; then | |
7571 | case $host_os in | |
7572 | openbsd*) | |
7573 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7574 | ;; | |
7575 | *) | |
7576 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7577 | ;; | |
7578 | esac | |
7579 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 7580 | fi |
7357c5b6 | 7581 | |
3725885a RW |
7582 | case $host_os in |
7583 | darwin*) | |
7584 | lock_old_archive_extraction=yes ;; | |
7585 | *) | |
7586 | lock_old_archive_extraction=no ;; | |
7587 | esac | |
7588 | ||
7589 | ||
7590 | ||
7591 | ||
7592 | ||
7593 | ||
7357c5b6 AM |
7594 | |
7595 | ||
7596 | ||
7597 | ||
7598 | ||
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
7613 | ||
7614 | ||
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | ||
7620 | ||
7621 | ||
7622 | ||
7623 | ||
7624 | ||
7625 | ||
7626 | ||
7627 | # If no C compiler was specified, use CC. | |
7628 | LTCC=${LTCC-"$CC"} | |
7629 | ||
7630 | # If no C compiler flags were specified, use CFLAGS. | |
7631 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7632 | ||
7633 | # Allow CC to be a program name with arguments. | |
7634 | compiler=$CC | |
7635 | ||
7636 | ||
7637 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7639 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7640 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
7641 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7642 | else |
d7040cdb | 7643 | |
7357c5b6 AM |
7644 | # These are sane defaults that work on at least a few old systems. |
7645 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 7646 | |
7357c5b6 AM |
7647 | # Character class describing NM global symbol codes. |
7648 | symcode='[BCDEGRST]' | |
7649 | ||
7650 | # Regexp to match symbols that can be accessed directly from C. | |
7651 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7652 | ||
7653 | # Define system-specific variables. | |
7654 | case $host_os in | |
7655 | aix*) | |
7656 | symcode='[BCDT]' | |
7657 | ;; | |
b214d478 | 7658 | cygwin* | mingw* | pw32* | cegcc*) |
7357c5b6 AM |
7659 | symcode='[ABCDGISTW]' |
7660 | ;; | |
7661 | hpux*) | |
7662 | if test "$host_cpu" = ia64; then | |
7663 | symcode='[ABCDEGRST]' | |
ce2cded5 | 7664 | fi |
7357c5b6 AM |
7665 | ;; |
7666 | irix* | nonstopux*) | |
7667 | symcode='[BCDEGRST]' | |
7668 | ;; | |
7669 | osf*) | |
7670 | symcode='[BCDEGQRST]' | |
7671 | ;; | |
7672 | solaris*) | |
7673 | symcode='[BDRT]' | |
7674 | ;; | |
7675 | sco3.2v5*) | |
7676 | symcode='[DT]' | |
7677 | ;; | |
7678 | sysv4.2uw2*) | |
7679 | symcode='[DT]' | |
7680 | ;; | |
7681 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7682 | symcode='[ABDT]' | |
7683 | ;; | |
7684 | sysv4) | |
7685 | symcode='[DFNSTU]' | |
7686 | ;; | |
7687 | esac | |
d7040cdb | 7688 | |
7357c5b6 AM |
7689 | # If we're using GNU nm, then use its standard symbol codes. |
7690 | case `$NM -V 2>&1` in | |
7691 | *GNU* | *'with BFD'*) | |
7692 | symcode='[ABCDGIRSTW]' ;; | |
7693 | esac | |
d7040cdb | 7694 | |
7357c5b6 AM |
7695 | # Transform an extracted symbol line into a proper C declaration. |
7696 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7697 | # so use this general approach. | |
7698 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7699 | ||
7700 | # Transform an extracted symbol line into symbol name and symbol address | |
7701 | 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 | 7702 | 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 |
7703 | |
7704 | # Handle CRLF in mingw tool chain | |
7705 | opt_cr= | |
7706 | case $build_os in | |
7707 | mingw*) | |
7708 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7709 | ;; | |
7710 | esac | |
d7040cdb | 7711 | |
7357c5b6 AM |
7712 | # Try without a prefix underscore, then with it. |
7713 | for ac_symprfx in "" "_"; do | |
d7040cdb | 7714 | |
7357c5b6 AM |
7715 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7716 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 7717 | |
7357c5b6 AM |
7718 | # Write the raw and C identifiers. |
7719 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7720 | # Fake it for dumpbin and say T for any non-static function | |
7721 | # and D for any global variable. | |
7722 | # Also find C++ and __fastcall symbols from MSVC++, | |
7723 | # which start with @ or ?. | |
7724 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7725 | " {last_section=section; section=\$ 3};"\ | |
7726 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7727 | " \$ 0!~/External *\|/{next};"\ | |
7728 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7729 | " {if(hide[section]) next};"\ | |
7730 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7731 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7732 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7733 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7734 | " ' prfx=^$ac_symprfx" | |
7735 | else | |
7736 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7737 | fi | |
d7040cdb | 7738 | |
7357c5b6 AM |
7739 | # Check to see that the pipe works correctly. |
7740 | pipe_works=no | |
d7040cdb | 7741 | |
7357c5b6 AM |
7742 | rm -f conftest* |
7743 | cat > conftest.$ac_ext <<_LT_EOF | |
7744 | #ifdef __cplusplus | |
7745 | extern "C" { | |
7746 | #endif | |
7747 | char nm_test_var; | |
7748 | void nm_test_func(void); | |
7749 | void nm_test_func(void){} | |
7750 | #ifdef __cplusplus | |
20e95c23 | 7751 | } |
7357c5b6 AM |
7752 | #endif |
7753 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7754 | _LT_EOF | |
7755 | ||
81ecdfbb | 7756 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 7757 | (eval $ac_compile) 2>&5 |
20e95c23 | 7758 | ac_status=$? |
81ecdfbb RW |
7759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7760 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7761 | # Now try to grab the symbols. |
7762 | nlist=conftest.nm | |
3725885a RW |
7763 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7764 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
20e95c23 | 7765 | ac_status=$? |
81ecdfbb RW |
7766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7767 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
7768 | # Try sorting and uniquifying the output. |
7769 | if sort "$nlist" | uniq > "$nlist"T; then | |
7770 | mv -f "$nlist"T "$nlist" | |
7771 | else | |
7772 | rm -f "$nlist"T | |
7773 | fi | |
d7040cdb | 7774 | |
7357c5b6 AM |
7775 | # Make sure that we snagged all the symbols we need. |
7776 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7777 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7778 | cat <<_LT_EOF > conftest.$ac_ext | |
7779 | #ifdef __cplusplus | |
7780 | extern "C" { | |
7781 | #endif | |
ce2cded5 | 7782 | |
7357c5b6 AM |
7783 | _LT_EOF |
7784 | # Now generate the symbol file. | |
7785 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
ce2cded5 | 7786 | |
7357c5b6 | 7787 | cat <<_LT_EOF >> conftest.$ac_ext |
42ecbf5e | 7788 | |
7357c5b6 AM |
7789 | /* The mapping between symbol names and symbols. */ |
7790 | const struct { | |
7791 | const char *name; | |
7792 | void *address; | |
7793 | } | |
7794 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7795 | { | |
7796 | { "@PROGRAM@", (void *) 0 }, | |
7797 | _LT_EOF | |
7798 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7799 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7800 | {0, (void *) 0} | |
7801 | }; | |
d7040cdb | 7802 | |
7357c5b6 AM |
7803 | /* This works around a problem in FreeBSD linker */ |
7804 | #ifdef FREEBSD_WORKAROUND | |
7805 | static const void *lt_preloaded_setup() { | |
7806 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7807 | } | |
ce2cded5 | 7808 | #endif |
42ecbf5e | 7809 | |
7357c5b6 | 7810 | #ifdef __cplusplus |
ce2cded5 | 7811 | } |
7357c5b6 AM |
7812 | #endif |
7813 | _LT_EOF | |
7814 | # Now try linking the two files. | |
7815 | mv conftest.$ac_objext conftstm.$ac_objext | |
7816 | lt_save_LIBS="$LIBS" | |
7817 | lt_save_CFLAGS="$CFLAGS" | |
7818 | LIBS="conftstm.$ac_objext" | |
7819 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 7820 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
7821 | (eval $ac_link) 2>&5 |
7822 | ac_status=$? | |
81ecdfbb RW |
7823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7824 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
7825 | pipe_works=yes |
7826 | fi | |
7827 | LIBS="$lt_save_LIBS" | |
7828 | CFLAGS="$lt_save_CFLAGS" | |
7829 | else | |
7830 | echo "cannot find nm_test_func in $nlist" >&5 | |
7831 | fi | |
7832 | else | |
7833 | echo "cannot find nm_test_var in $nlist" >&5 | |
7834 | fi | |
7835 | else | |
7836 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7837 | fi | |
7838 | else | |
7839 | echo "$progname: failed program was:" >&5 | |
7840 | cat conftest.$ac_ext >&5 | |
7841 | fi | |
b214d478 | 7842 | rm -rf conftest* conftst* |
7357c5b6 AM |
7843 | |
7844 | # Do not use the global_symbol_pipe unless it works. | |
7845 | if test "$pipe_works" = yes; then | |
7846 | break | |
7847 | else | |
7848 | lt_cv_sys_global_symbol_pipe= | |
7849 | fi | |
7850 | done | |
42ecbf5e | 7851 | |
ce2cded5 | 7852 | fi |
7357c5b6 AM |
7853 | |
7854 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7855 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 7856 | fi |
7357c5b6 | 7857 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7859 | $as_echo "failed" >&6; } | |
7357c5b6 | 7860 | else |
81ecdfbb RW |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7862 | $as_echo "ok" >&6; } | |
ce2cded5 | 7863 | fi |
e5a52504 | 7864 | |
d7040cdb | 7865 | |
e5a52504 | 7866 | |
d7040cdb | 7867 | |
d7040cdb | 7868 | |
d7040cdb | 7869 | |
d7040cdb | 7870 | |
d7040cdb | 7871 | |
d7040cdb | 7872 | |
d7040cdb | 7873 | |
d7040cdb | 7874 | |
d7040cdb | 7875 | |
7357c5b6 AM |
7876 | |
7877 | ||
7878 | ||
b214d478 SE |
7879 | |
7880 | ||
7881 | ||
7882 | ||
7883 | ||
7357c5b6 AM |
7884 | |
7885 | ||
81ecdfbb RW |
7886 | # Check whether --enable-libtool-lock was given. |
7887 | if test "${enable_libtool_lock+set}" = set; then : | |
7888 | enableval=$enable_libtool_lock; | |
7889 | fi | |
7357c5b6 | 7890 | |
7357c5b6 AM |
7891 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7892 | ||
7893 | # Some flags need to be propagated to the compiler or linker for good | |
7894 | # libtool support. | |
7895 | case $host in | |
7896 | ia64-*-hpux*) | |
7897 | # Find out which ABI we are using. | |
7898 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7899 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7900 | (eval $ac_compile) 2>&5 |
7901 | ac_status=$? | |
81ecdfbb RW |
7902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7903 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7904 | case `/usr/bin/file conftest.$ac_objext` in |
7905 | *ELF-32*) | |
7906 | HPUX_IA64_MODE="32" | |
7907 | ;; | |
7908 | *ELF-64*) | |
7909 | HPUX_IA64_MODE="64" | |
7910 | ;; | |
7911 | esac | |
7912 | fi | |
7913 | rm -rf conftest* | |
7914 | ;; | |
7915 | *-*-irix6*) | |
7916 | # Find out which ABI we are using. | |
3725885a | 7917 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 7918 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7919 | (eval $ac_compile) 2>&5 |
7920 | ac_status=$? | |
81ecdfbb RW |
7921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7922 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7923 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7924 | case `/usr/bin/file conftest.$ac_objext` in | |
7925 | *32-bit*) | |
7926 | LD="${LD-ld} -melf32bsmip" | |
7927 | ;; | |
7928 | *N32*) | |
7929 | LD="${LD-ld} -melf32bmipn32" | |
7930 | ;; | |
7931 | *64-bit*) | |
7932 | LD="${LD-ld} -melf64bmip" | |
7933 | ;; | |
7934 | esac | |
7935 | else | |
7936 | case `/usr/bin/file conftest.$ac_objext` in | |
7937 | *32-bit*) | |
7938 | LD="${LD-ld} -32" | |
7939 | ;; | |
7940 | *N32*) | |
7941 | LD="${LD-ld} -n32" | |
7942 | ;; | |
7943 | *64-bit*) | |
7944 | LD="${LD-ld} -64" | |
7945 | ;; | |
7946 | esac | |
7947 | fi | |
7948 | fi | |
7949 | rm -rf conftest* | |
7950 | ;; | |
7951 | ||
cc9afea3 | 7952 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
7953 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7954 | # Find out which ABI we are using. | |
7955 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7956 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7957 | (eval $ac_compile) 2>&5 |
7958 | ac_status=$? | |
81ecdfbb RW |
7959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7960 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7961 | case `/usr/bin/file conftest.o` in |
7962 | *32-bit*) | |
7963 | case $host in | |
7964 | x86_64-*kfreebsd*-gnu) | |
7965 | LD="${LD-ld} -m elf_i386_fbsd" | |
7966 | ;; | |
7967 | x86_64-*linux*) | |
6d2920c8 L |
7968 | case `/usr/bin/file conftest.o` in |
7969 | *x86-64*) | |
7970 | LD="${LD-ld} -m elf32_x86_64" | |
7971 | ;; | |
7972 | *) | |
7973 | LD="${LD-ld} -m elf_i386" | |
7974 | ;; | |
7975 | esac | |
7357c5b6 | 7976 | ;; |
cc9afea3 AM |
7977 | powerpc64le-*linux*) |
7978 | LD="${LD-ld} -m elf32lppclinux" | |
7979 | ;; | |
7980 | powerpc64-*linux*) | |
7357c5b6 AM |
7981 | LD="${LD-ld} -m elf32ppclinux" |
7982 | ;; | |
7983 | s390x-*linux*) | |
7984 | LD="${LD-ld} -m elf_s390" | |
7985 | ;; | |
7986 | sparc64-*linux*) | |
7987 | LD="${LD-ld} -m elf32_sparc" | |
7988 | ;; | |
7989 | esac | |
7990 | ;; | |
7991 | *64-bit*) | |
7992 | case $host in | |
7993 | x86_64-*kfreebsd*-gnu) | |
7994 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7995 | ;; | |
7996 | x86_64-*linux*) | |
7997 | LD="${LD-ld} -m elf_x86_64" | |
7998 | ;; | |
cc9afea3 AM |
7999 | powerpcle-*linux*) |
8000 | LD="${LD-ld} -m elf64lppc" | |
8001 | ;; | |
8002 | powerpc-*linux*) | |
7357c5b6 AM |
8003 | LD="${LD-ld} -m elf64ppc" |
8004 | ;; | |
8005 | s390*-*linux*|s390*-*tpf*) | |
8006 | LD="${LD-ld} -m elf64_s390" | |
8007 | ;; | |
8008 | sparc*-*linux*) | |
8009 | LD="${LD-ld} -m elf64_sparc" | |
8010 | ;; | |
8011 | esac | |
8012 | ;; | |
8013 | esac | |
8014 | fi | |
8015 | rm -rf conftest* | |
8016 | ;; | |
8017 | ||
8018 | *-*-sco3.2v5*) | |
8019 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8020 | SAVE_CFLAGS="$CFLAGS" | |
8021 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
8022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8023 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
8024 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
8025 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8026 | else |
7357c5b6 AM |
8027 | ac_ext=c |
8028 | ac_cpp='$CPP $CPPFLAGS' | |
8029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8032 | ||
81ecdfbb | 8033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 8034 | /* end confdefs.h. */ |
d7040cdb | 8035 | |
7357c5b6 AM |
8036 | int |
8037 | main () | |
8038 | { | |
8039 | ||
8040 | ; | |
8041 | return 0; | |
8042 | } | |
ce2cded5 | 8043 | _ACEOF |
81ecdfbb | 8044 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 8045 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 8046 | else |
81ecdfbb | 8047 | lt_cv_cc_needs_belf=no |
ce2cded5 | 8048 | fi |
81ecdfbb RW |
8049 | rm -f core conftest.err conftest.$ac_objext \ |
8050 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
8051 | ac_ext=c |
8052 | ac_cpp='$CPP $CPPFLAGS' | |
8053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 8056 | |
b214d478 | 8057 | fi |
81ecdfbb RW |
8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8059 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
b214d478 SE |
8060 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8061 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8062 | CFLAGS="$SAVE_CFLAGS" | |
8063 | fi | |
8064 | ;; | |
8065 | sparc*-*solaris*) | |
8066 | # Find out which ABI we are using. | |
8067 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 8068 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b214d478 SE |
8069 | (eval $ac_compile) 2>&5 |
8070 | ac_status=$? | |
81ecdfbb RW |
8071 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8072 | test $ac_status = 0; }; then | |
b214d478 SE |
8073 | case `/usr/bin/file conftest.o` in |
8074 | *64-bit*) | |
8075 | case $lt_cv_prog_gnu_ld in | |
8076 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
8077 | *) | |
8078 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8079 | LD="${LD-ld} -64" | |
8080 | fi | |
8081 | ;; | |
8082 | esac | |
8083 | ;; | |
8084 | esac | |
8085 | fi | |
8086 | rm -rf conftest* | |
8087 | ;; | |
8088 | esac | |
8089 | ||
8090 | need_locks="$enable_libtool_lock" | |
8091 | ||
8092 | ||
8093 | case $host_os in | |
8094 | rhapsody* | darwin*) | |
8095 | if test -n "$ac_tool_prefix"; then | |
8096 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8097 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8099 | $as_echo_n "checking for $ac_word... " >&6; } | |
8100 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
8101 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8102 | else |
8103 | if test -n "$DSYMUTIL"; then | |
8104 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8105 | else | |
8106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8107 | for as_dir in $PATH | |
8108 | do | |
8109 | IFS=$as_save_IFS | |
8110 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8111 | for ac_exec_ext in '' $ac_executable_extensions; do |
8112 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8113 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 8114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8115 | break 2 |
8116 | fi | |
8117 | done | |
81ecdfbb RW |
8118 | done |
8119 | IFS=$as_save_IFS | |
b214d478 SE |
8120 | |
8121 | fi | |
8122 | fi | |
8123 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8124 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8126 | $as_echo "$DSYMUTIL" >&6; } | |
b214d478 | 8127 | else |
81ecdfbb RW |
8128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8129 | $as_echo "no" >&6; } | |
b214d478 SE |
8130 | fi |
8131 | ||
81ecdfbb | 8132 | |
b214d478 SE |
8133 | fi |
8134 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8135 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8136 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8137 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8139 | $as_echo_n "checking for $ac_word... " >&6; } | |
8140 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
8141 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8142 | else |
8143 | if test -n "$ac_ct_DSYMUTIL"; then | |
8144 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8145 | else | |
8146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8147 | for as_dir in $PATH | |
8148 | do | |
8149 | IFS=$as_save_IFS | |
8150 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8151 | for ac_exec_ext in '' $ac_executable_extensions; do |
8152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8153 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 8154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8155 | break 2 |
8156 | fi | |
8157 | done | |
81ecdfbb RW |
8158 | done |
8159 | IFS=$as_save_IFS | |
b214d478 | 8160 | |
b214d478 SE |
8161 | fi |
8162 | fi | |
8163 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8164 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8166 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b214d478 | 8167 | else |
81ecdfbb RW |
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8169 | $as_echo "no" >&6; } | |
b214d478 SE |
8170 | fi |
8171 | ||
81ecdfbb RW |
8172 | if test "x$ac_ct_DSYMUTIL" = x; then |
8173 | DSYMUTIL=":" | |
8174 | else | |
8175 | case $cross_compiling:$ac_tool_warned in | |
8176 | yes:) | |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8178 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8179 | ac_tool_warned=yes ;; | |
8180 | esac | |
8181 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8182 | fi | |
b214d478 SE |
8183 | else |
8184 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8185 | fi | |
8186 | ||
8187 | if test -n "$ac_tool_prefix"; then | |
8188 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8189 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8191 | $as_echo_n "checking for $ac_word... " >&6; } | |
8192 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
8193 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8194 | else |
8195 | if test -n "$NMEDIT"; then | |
8196 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8197 | else | |
8198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8199 | for as_dir in $PATH | |
8200 | do | |
8201 | IFS=$as_save_IFS | |
8202 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8203 | for ac_exec_ext in '' $ac_executable_extensions; do |
8204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8205 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 8206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8207 | break 2 |
8208 | fi | |
8209 | done | |
81ecdfbb RW |
8210 | done |
8211 | IFS=$as_save_IFS | |
b214d478 SE |
8212 | |
8213 | fi | |
8214 | fi | |
8215 | NMEDIT=$ac_cv_prog_NMEDIT | |
8216 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8218 | $as_echo "$NMEDIT" >&6; } | |
b214d478 | 8219 | else |
81ecdfbb RW |
8220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8221 | $as_echo "no" >&6; } | |
b214d478 SE |
8222 | fi |
8223 | ||
81ecdfbb | 8224 | |
b214d478 SE |
8225 | fi |
8226 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8227 | ac_ct_NMEDIT=$NMEDIT | |
8228 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8229 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8231 | $as_echo_n "checking for $ac_word... " >&6; } | |
8232 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
8233 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8234 | else |
8235 | if test -n "$ac_ct_NMEDIT"; then | |
8236 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8237 | else | |
8238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8239 | for as_dir in $PATH | |
8240 | do | |
8241 | IFS=$as_save_IFS | |
8242 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8243 | for ac_exec_ext in '' $ac_executable_extensions; do |
8244 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8245 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 8246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8247 | break 2 |
8248 | fi | |
8249 | done | |
81ecdfbb RW |
8250 | done |
8251 | IFS=$as_save_IFS | |
b214d478 | 8252 | |
b214d478 SE |
8253 | fi |
8254 | fi | |
8255 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8256 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8258 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b214d478 | 8259 | else |
81ecdfbb RW |
8260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8261 | $as_echo "no" >&6; } | |
b214d478 SE |
8262 | fi |
8263 | ||
81ecdfbb RW |
8264 | if test "x$ac_ct_NMEDIT" = x; then |
8265 | NMEDIT=":" | |
8266 | else | |
8267 | case $cross_compiling:$ac_tool_warned in | |
8268 | yes:) | |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8270 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8271 | ac_tool_warned=yes ;; | |
8272 | esac | |
8273 | NMEDIT=$ac_ct_NMEDIT | |
8274 | fi | |
b214d478 SE |
8275 | else |
8276 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8277 | fi | |
8278 | ||
8279 | if test -n "$ac_tool_prefix"; then | |
8280 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8281 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8283 | $as_echo_n "checking for $ac_word... " >&6; } | |
8284 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8285 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8286 | else |
8287 | if test -n "$LIPO"; then | |
8288 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8289 | else | |
8290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8291 | for as_dir in $PATH | |
8292 | do | |
8293 | IFS=$as_save_IFS | |
8294 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8295 | for ac_exec_ext in '' $ac_executable_extensions; do |
8296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8297 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 8298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8299 | break 2 |
8300 | fi | |
8301 | done | |
81ecdfbb RW |
8302 | done |
8303 | IFS=$as_save_IFS | |
b214d478 SE |
8304 | |
8305 | fi | |
8306 | fi | |
8307 | LIPO=$ac_cv_prog_LIPO | |
8308 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8310 | $as_echo "$LIPO" >&6; } | |
b214d478 | 8311 | else |
81ecdfbb RW |
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8313 | $as_echo "no" >&6; } | |
b214d478 SE |
8314 | fi |
8315 | ||
81ecdfbb | 8316 | |
b214d478 SE |
8317 | fi |
8318 | if test -z "$ac_cv_prog_LIPO"; then | |
8319 | ac_ct_LIPO=$LIPO | |
8320 | # Extract the first word of "lipo", so it can be a program name with args. | |
8321 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8323 | $as_echo_n "checking for $ac_word... " >&6; } | |
8324 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
8325 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8326 | else |
8327 | if test -n "$ac_ct_LIPO"; then | |
8328 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8329 | else | |
8330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8331 | for as_dir in $PATH | |
8332 | do | |
8333 | IFS=$as_save_IFS | |
8334 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8335 | for ac_exec_ext in '' $ac_executable_extensions; do |
8336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8337 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 8338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8339 | break 2 |
8340 | fi | |
8341 | done | |
81ecdfbb RW |
8342 | done |
8343 | IFS=$as_save_IFS | |
b214d478 | 8344 | |
b214d478 SE |
8345 | fi |
8346 | fi | |
8347 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8348 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8350 | $as_echo "$ac_ct_LIPO" >&6; } | |
b214d478 | 8351 | else |
81ecdfbb RW |
8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8353 | $as_echo "no" >&6; } | |
b214d478 SE |
8354 | fi |
8355 | ||
81ecdfbb RW |
8356 | if test "x$ac_ct_LIPO" = x; then |
8357 | LIPO=":" | |
8358 | else | |
8359 | case $cross_compiling:$ac_tool_warned in | |
8360 | yes:) | |
8361 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8362 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8363 | ac_tool_warned=yes ;; | |
8364 | esac | |
8365 | LIPO=$ac_ct_LIPO | |
8366 | fi | |
b214d478 SE |
8367 | else |
8368 | LIPO="$ac_cv_prog_LIPO" | |
8369 | fi | |
8370 | ||
8371 | if test -n "$ac_tool_prefix"; then | |
8372 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8373 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8375 | $as_echo_n "checking for $ac_word... " >&6; } | |
8376 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
8377 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8378 | else |
8379 | if test -n "$OTOOL"; then | |
8380 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8381 | else | |
8382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8383 | for as_dir in $PATH | |
8384 | do | |
8385 | IFS=$as_save_IFS | |
8386 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8387 | for ac_exec_ext in '' $ac_executable_extensions; do |
8388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8389 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 8390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8391 | break 2 |
8392 | fi | |
8393 | done | |
81ecdfbb RW |
8394 | done |
8395 | IFS=$as_save_IFS | |
b214d478 SE |
8396 | |
8397 | fi | |
8398 | fi | |
8399 | OTOOL=$ac_cv_prog_OTOOL | |
8400 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
8401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8402 | $as_echo "$OTOOL" >&6; } | |
b214d478 | 8403 | else |
81ecdfbb RW |
8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8405 | $as_echo "no" >&6; } | |
b214d478 SE |
8406 | fi |
8407 | ||
81ecdfbb | 8408 | |
b214d478 SE |
8409 | fi |
8410 | if test -z "$ac_cv_prog_OTOOL"; then | |
8411 | ac_ct_OTOOL=$OTOOL | |
8412 | # Extract the first word of "otool", so it can be a program name with args. | |
8413 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8415 | $as_echo_n "checking for $ac_word... " >&6; } | |
8416 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
8417 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8418 | else |
8419 | if test -n "$ac_ct_OTOOL"; then | |
8420 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8421 | else | |
8422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8423 | for as_dir in $PATH | |
8424 | do | |
8425 | IFS=$as_save_IFS | |
8426 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8427 | for ac_exec_ext in '' $ac_executable_extensions; do |
8428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8429 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 8430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8431 | break 2 |
8432 | fi | |
8433 | done | |
81ecdfbb RW |
8434 | done |
8435 | IFS=$as_save_IFS | |
b214d478 | 8436 | |
b214d478 SE |
8437 | fi |
8438 | fi | |
8439 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8440 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8442 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b214d478 | 8443 | else |
81ecdfbb RW |
8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8445 | $as_echo "no" >&6; } | |
b214d478 SE |
8446 | fi |
8447 | ||
81ecdfbb RW |
8448 | if test "x$ac_ct_OTOOL" = x; then |
8449 | OTOOL=":" | |
8450 | else | |
8451 | case $cross_compiling:$ac_tool_warned in | |
8452 | yes:) | |
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8454 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8455 | ac_tool_warned=yes ;; | |
8456 | esac | |
8457 | OTOOL=$ac_ct_OTOOL | |
8458 | fi | |
b214d478 SE |
8459 | else |
8460 | OTOOL="$ac_cv_prog_OTOOL" | |
8461 | fi | |
8462 | ||
8463 | if test -n "$ac_tool_prefix"; then | |
8464 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8465 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
8466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8467 | $as_echo_n "checking for $ac_word... " >&6; } | |
8468 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
8469 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8470 | else |
8471 | if test -n "$OTOOL64"; then | |
8472 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8473 | else | |
8474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8475 | for as_dir in $PATH | |
8476 | do | |
8477 | IFS=$as_save_IFS | |
8478 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8479 | for ac_exec_ext in '' $ac_executable_extensions; do |
8480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8481 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 8482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8483 | break 2 |
8484 | fi | |
8485 | done | |
81ecdfbb RW |
8486 | done |
8487 | IFS=$as_save_IFS | |
b214d478 SE |
8488 | |
8489 | fi | |
8490 | fi | |
8491 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8492 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
8493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8494 | $as_echo "$OTOOL64" >&6; } | |
b214d478 | 8495 | else |
81ecdfbb RW |
8496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8497 | $as_echo "no" >&6; } | |
b214d478 SE |
8498 | fi |
8499 | ||
81ecdfbb | 8500 | |
b214d478 SE |
8501 | fi |
8502 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8503 | ac_ct_OTOOL64=$OTOOL64 | |
8504 | # Extract the first word of "otool64", so it can be a program name with args. | |
8505 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8507 | $as_echo_n "checking for $ac_word... " >&6; } | |
8508 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
8509 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8510 | else |
8511 | if test -n "$ac_ct_OTOOL64"; then | |
8512 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8513 | else | |
8514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8515 | for as_dir in $PATH | |
8516 | do | |
8517 | IFS=$as_save_IFS | |
8518 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8519 | for ac_exec_ext in '' $ac_executable_extensions; do |
8520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8521 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 8522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8523 | break 2 |
8524 | fi | |
8525 | done | |
81ecdfbb RW |
8526 | done |
8527 | IFS=$as_save_IFS | |
b214d478 | 8528 | |
b214d478 SE |
8529 | fi |
8530 | fi | |
8531 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8532 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8534 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b214d478 | 8535 | else |
81ecdfbb RW |
8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8537 | $as_echo "no" >&6; } | |
b214d478 SE |
8538 | fi |
8539 | ||
81ecdfbb RW |
8540 | if test "x$ac_ct_OTOOL64" = x; then |
8541 | OTOOL64=":" | |
8542 | else | |
8543 | case $cross_compiling:$ac_tool_warned in | |
8544 | yes:) | |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8546 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8547 | ac_tool_warned=yes ;; | |
8548 | esac | |
8549 | OTOOL64=$ac_ct_OTOOL64 | |
8550 | fi | |
b214d478 SE |
8551 | else |
8552 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8553 | fi | |
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | ||
8577 | ||
8578 | ||
8579 | ||
8580 | ||
81ecdfbb RW |
8581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8582 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8583 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
8584 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8585 | else |
8586 | lt_cv_apple_cc_single_mod=no | |
8587 | if test -z "${LT_MULTI_MODULE}"; then | |
8588 | # By default we will add the -single_module flag. You can override | |
8589 | # by either setting the environment variable LT_MULTI_MODULE | |
8590 | # non-empty at configure time, or by adding -multi_module to the | |
8591 | # link flags. | |
8592 | rm -rf libconftest.dylib* | |
8593 | echo "int foo(void){return 1;}" > conftest.c | |
8594 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8595 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8596 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8597 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8598 | _lt_result=$? | |
8599 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8600 | lt_cv_apple_cc_single_mod=yes | |
8601 | else | |
8602 | cat conftest.err >&5 | |
8603 | fi | |
8604 | rm -rf libconftest.dylib* | |
8605 | rm -f conftest.* | |
8606 | fi | |
8607 | fi | |
81ecdfbb RW |
8608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8609 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8611 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8612 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
8613 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8614 | else |
8615 | lt_cv_ld_exported_symbols_list=no | |
8616 | save_LDFLAGS=$LDFLAGS | |
8617 | echo "_main" > conftest.sym | |
8618 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 8619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b214d478 SE |
8620 | /* end confdefs.h. */ |
8621 | ||
8622 | int | |
8623 | main () | |
8624 | { | |
8625 | ||
8626 | ; | |
8627 | return 0; | |
8628 | } | |
8629 | _ACEOF | |
81ecdfbb | 8630 | if ac_fn_c_try_link "$LINENO"; then : |
b214d478 SE |
8631 | lt_cv_ld_exported_symbols_list=yes |
8632 | else | |
81ecdfbb | 8633 | lt_cv_ld_exported_symbols_list=no |
b214d478 | 8634 | fi |
81ecdfbb RW |
8635 | rm -f core conftest.err conftest.$ac_objext \ |
8636 | conftest$ac_exeext conftest.$ac_ext | |
b214d478 SE |
8637 | LDFLAGS="$save_LDFLAGS" |
8638 | ||
8639 | fi | |
81ecdfbb RW |
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8641 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8643 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8644 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
8645 | $as_echo_n "(cached) " >&6 | |
8646 | else | |
8647 | lt_cv_ld_force_load=no | |
8648 | cat > conftest.c << _LT_EOF | |
8649 | int forced_loaded() { return 2;} | |
8650 | _LT_EOF | |
8651 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8652 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8653 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8654 | $AR cru libconftest.a conftest.o 2>&5 | |
8655 | cat > conftest.c << _LT_EOF | |
8656 | int main() { return 0;} | |
8657 | _LT_EOF | |
8658 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8659 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8660 | _lt_result=$? | |
8661 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8662 | lt_cv_ld_force_load=yes | |
8663 | else | |
8664 | cat conftest.err >&5 | |
8665 | fi | |
8666 | rm -f conftest.err libconftest.a conftest conftest.c | |
8667 | rm -rf conftest.dSYM | |
8668 | ||
8669 | fi | |
8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8671 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
b214d478 SE |
8672 | case $host_os in |
8673 | rhapsody* | darwin1.[012]) | |
8674 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8675 | darwin1.*) | |
8676 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8677 | darwin*) # darwin 5.x on | |
8678 | # if running on 10.5 or later, the deployment target defaults | |
8679 | # to the OS version, if on x86, and 10.4, the deployment | |
8680 | # target defaults to 10.4. Don't you love it? | |
8681 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8682 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8683 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8684 | 10.[012]*) | |
8685 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8686 | 10.*) | |
8687 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8688 | esac | |
8689 | ;; | |
8690 | esac | |
8691 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8692 | _lt_dar_single_mod='$single_module' | |
8693 | fi | |
8694 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8695 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8696 | else | |
8697 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8698 | fi | |
3725885a | 8699 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
b214d478 SE |
8700 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8701 | else | |
8702 | _lt_dsymutil= | |
8703 | fi | |
8704 | ;; | |
8705 | esac | |
8706 | ||
b214d478 | 8707 | for ac_header in dlfcn.h |
81ecdfbb RW |
8708 | do : |
8709 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8710 | " | |
8711 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
b214d478 | 8712 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 8713 | #define HAVE_DLFCN_H 1 |
b214d478 SE |
8714 | _ACEOF |
8715 | ||
8716 | fi | |
8717 | ||
8718 | done | |
8719 | ||
8720 | ||
8721 | ||
3725885a RW |
8722 | |
8723 | ||
3cb62297 | 8724 | |
b214d478 SE |
8725 | # Set options |
8726 | ||
8727 | ||
8728 | ||
8729 | enable_dlopen=no | |
8730 | ||
8731 | ||
8732 | enable_win32_dll=no | |
8733 | ||
8734 | ||
81ecdfbb RW |
8735 | # Check whether --enable-shared was given. |
8736 | if test "${enable_shared+set}" = set; then : | |
8737 | enableval=$enable_shared; p=${PACKAGE-default} | |
b214d478 SE |
8738 | case $enableval in |
8739 | yes) enable_shared=yes ;; | |
8740 | no) enable_shared=no ;; | |
8741 | *) | |
8742 | enable_shared=no | |
8743 | # Look at the argument we got. We use all the common list separators. | |
8744 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8745 | for pkg in $enableval; do | |
8746 | IFS="$lt_save_ifs" | |
8747 | if test "X$pkg" = "X$p"; then | |
8748 | enable_shared=yes | |
8749 | fi | |
8750 | done | |
8751 | IFS="$lt_save_ifs" | |
8752 | ;; | |
8753 | esac | |
8754 | else | |
8755 | enable_shared=yes | |
81ecdfbb | 8756 | fi |
b214d478 SE |
8757 | |
8758 | ||
8759 | ||
8760 | ||
8761 | ||
8762 | ||
8763 | ||
8764 | ||
81ecdfbb RW |
8765 | |
8766 | # Check whether --enable-static was given. | |
8767 | if test "${enable_static+set}" = set; then : | |
8768 | enableval=$enable_static; p=${PACKAGE-default} | |
b214d478 SE |
8769 | case $enableval in |
8770 | yes) enable_static=yes ;; | |
8771 | no) enable_static=no ;; | |
8772 | *) | |
8773 | enable_static=no | |
8774 | # Look at the argument we got. We use all the common list separators. | |
8775 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8776 | for pkg in $enableval; do | |
8777 | IFS="$lt_save_ifs" | |
8778 | if test "X$pkg" = "X$p"; then | |
8779 | enable_static=yes | |
8780 | fi | |
8781 | done | |
8782 | IFS="$lt_save_ifs" | |
8783 | ;; | |
8784 | esac | |
8785 | else | |
8786 | enable_static=yes | |
81ecdfbb | 8787 | fi |
b214d478 SE |
8788 | |
8789 | ||
8790 | ||
8791 | ||
8792 | ||
8793 | ||
8794 | ||
8795 | ||
8796 | ||
81ecdfbb RW |
8797 | |
8798 | # Check whether --with-pic was given. | |
8799 | if test "${with_pic+set}" = set; then : | |
8800 | withval=$with_pic; pic_mode="$withval" | |
b214d478 SE |
8801 | else |
8802 | pic_mode=default | |
81ecdfbb RW |
8803 | fi |
8804 | ||
b214d478 SE |
8805 | |
8806 | test -z "$pic_mode" && pic_mode=default | |
8807 | ||
8808 | ||
8809 | ||
8810 | ||
8811 | ||
8812 | ||
8813 | ||
81ecdfbb RW |
8814 | # Check whether --enable-fast-install was given. |
8815 | if test "${enable_fast_install+set}" = set; then : | |
8816 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
b214d478 SE |
8817 | case $enableval in |
8818 | yes) enable_fast_install=yes ;; | |
8819 | no) enable_fast_install=no ;; | |
8820 | *) | |
8821 | enable_fast_install=no | |
8822 | # Look at the argument we got. We use all the common list separators. | |
8823 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8824 | for pkg in $enableval; do | |
8825 | IFS="$lt_save_ifs" | |
8826 | if test "X$pkg" = "X$p"; then | |
8827 | enable_fast_install=yes | |
8828 | fi | |
8829 | done | |
8830 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
8831 | ;; |
8832 | esac | |
b214d478 SE |
8833 | else |
8834 | enable_fast_install=yes | |
81ecdfbb RW |
8835 | fi |
8836 | ||
ce2cded5 | 8837 | |
ce2cded5 L |
8838 | |
8839 | ||
ce2cded5 | 8840 | |
42ecbf5e | 8841 | |
d7040cdb | 8842 | |
d7040cdb | 8843 | |
d7040cdb | 8844 | |
d7040cdb | 8845 | |
d7040cdb | 8846 | |
ce2cded5 L |
8847 | # This can be used to rebuild libtool when needed |
8848 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 8849 | |
ce2cded5 L |
8850 | # Always use our own libtool. |
8851 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 8852 | |
d7040cdb | 8853 | |
d7040cdb | 8854 | |
d7040cdb | 8855 | |
d7040cdb | 8856 | |
d7040cdb | 8857 | |
d7040cdb | 8858 | |
d7040cdb | 8859 | |
d7040cdb | 8860 | |
d7040cdb | 8861 | |
d7040cdb | 8862 | |
d7040cdb | 8863 | |
d7040cdb | 8864 | |
d7040cdb | 8865 | |
d7040cdb | 8866 | |
d7040cdb | 8867 | |
d7040cdb SE |
8868 | |
8869 | ||
8870 | ||
8871 | ||
8872 | ||
8873 | ||
8874 | ||
3725885a | 8875 | |
d7040cdb SE |
8876 | |
8877 | ||
ce2cded5 | 8878 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
8879 | |
8880 | ||
8881 | ||
8882 | ||
8883 | ||
8884 | ||
d7040cdb SE |
8885 | |
8886 | ||
8887 | ||
8888 | ||
8889 | ||
8890 | ||
8891 | ||
8892 | ||
ce2cded5 L |
8893 | if test -n "${ZSH_VERSION+set}" ; then |
8894 | setopt NO_GLOB_SUBST | |
8895 | fi | |
d7040cdb | 8896 | |
81ecdfbb RW |
8897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8898 | $as_echo_n "checking for objdir... " >&6; } | |
8899 | if test "${lt_cv_objdir+set}" = set; then : | |
8900 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8901 | else |
8902 | rm -f .libs 2>/dev/null | |
8903 | mkdir .libs 2>/dev/null | |
8904 | if test -d .libs; then | |
8905 | lt_cv_objdir=.libs | |
8906 | else | |
8907 | # MS-DOS does not allow filenames that begin with a dot. | |
8908 | lt_cv_objdir=_libs | |
8909 | fi | |
8910 | rmdir .libs 2>/dev/null | |
8911 | fi | |
81ecdfbb RW |
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8913 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 8914 | objdir=$lt_cv_objdir |
d7040cdb SE |
8915 | |
8916 | ||
8917 | ||
8918 | ||
8919 | ||
ce2cded5 L |
8920 | cat >>confdefs.h <<_ACEOF |
8921 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8922 | _ACEOF | |
d7040cdb SE |
8923 | |
8924 | ||
8925 | ||
8926 | ||
ce2cded5 L |
8927 | case $host_os in |
8928 | aix3*) | |
8929 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8930 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8931 | # vanish in a puff of smoke. | |
8932 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8933 | COLLECT_NAMES= | |
8934 | export COLLECT_NAMES | |
8935 | fi | |
8936 | ;; | |
8937 | esac | |
d7040cdb | 8938 | |
ce2cded5 L |
8939 | # Global variables: |
8940 | ofile=libtool | |
8941 | can_build_shared=yes | |
d7040cdb | 8942 | |
ce2cded5 L |
8943 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8944 | # which needs '.lib'). | |
8945 | libext=a | |
d7040cdb | 8946 | |
ce2cded5 | 8947 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 8948 | |
ce2cded5 L |
8949 | old_CC="$CC" |
8950 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 8951 | |
ce2cded5 L |
8952 | # Set sane defaults for various variables |
8953 | test -z "$CC" && CC=cc | |
8954 | test -z "$LTCC" && LTCC=$CC | |
8955 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8956 | test -z "$LD" && LD=ld | |
8957 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 8958 | |
ce2cded5 L |
8959 | for cc_temp in $compiler""; do |
8960 | case $cc_temp in | |
8961 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8962 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8963 | \-*) ;; | |
8964 | *) break;; | |
8965 | esac | |
8966 | done | |
3725885a | 8967 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
d7040cdb SE |
8968 | |
8969 | ||
ce2cded5 L |
8970 | # Only perform the check for file, if the check method requires it |
8971 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8972 | case $deplibs_check_method in | |
8973 | file_magic*) | |
8974 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8976 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8977 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8978 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8979 | else |
8980 | case $MAGIC_CMD in | |
8981 | [\\/*] | ?:[\\/]*) | |
8982 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8983 | ;; | |
8984 | *) | |
8985 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8986 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8987 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8988 | for ac_dir in $ac_dummy; do | |
8989 | IFS="$lt_save_ifs" | |
8990 | test -z "$ac_dir" && ac_dir=. | |
8991 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8992 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8993 | if test -n "$file_magic_test_file"; then | |
8994 | case $deplibs_check_method in | |
8995 | "file_magic "*) | |
8996 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8997 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8998 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8999 | $EGREP "$file_magic_regex" > /dev/null; then | |
9000 | : | |
9001 | else | |
9002 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9003 | |
ce2cded5 L |
9004 | *** Warning: the command libtool uses to detect shared libraries, |
9005 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9006 | *** The result is that libtool may fail to recognize shared libraries | |
9007 | *** as such. This will affect the creation of libtool libraries that | |
9008 | *** depend on shared libraries, but programs linked with such libtool | |
9009 | *** libraries will work regardless of this problem. Nevertheless, you | |
9010 | *** may want to report the problem to your system manager and/or to | |
9011 | *** bug-libtool@gnu.org | |
d7040cdb | 9012 | |
ce2cded5 L |
9013 | _LT_EOF |
9014 | fi ;; | |
9015 | esac | |
9016 | fi | |
9017 | break | |
9018 | fi | |
9019 | done | |
9020 | IFS="$lt_save_ifs" | |
9021 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9022 | ;; | |
9023 | esac | |
9024 | fi | |
d7040cdb | 9025 | |
ce2cded5 L |
9026 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9027 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
9028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9029 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 9030 | else |
81ecdfbb RW |
9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9032 | $as_echo "no" >&6; } | |
ce2cded5 | 9033 | fi |
d7040cdb SE |
9034 | |
9035 | ||
9036 | ||
9037 | ||
9038 | ||
ce2cded5 L |
9039 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
9040 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9042 | $as_echo_n "checking for file... " >&6; } | |
9043 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
9044 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9045 | else |
9046 | case $MAGIC_CMD in | |
9047 | [\\/*] | ?:[\\/]*) | |
9048 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9049 | ;; | |
9050 | *) | |
9051 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9052 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9053 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9054 | for ac_dir in $ac_dummy; do | |
9055 | IFS="$lt_save_ifs" | |
9056 | test -z "$ac_dir" && ac_dir=. | |
9057 | if test -f $ac_dir/file; then | |
9058 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9059 | if test -n "$file_magic_test_file"; then | |
9060 | case $deplibs_check_method in | |
9061 | "file_magic "*) | |
9062 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9063 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9064 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9065 | $EGREP "$file_magic_regex" > /dev/null; then | |
9066 | : | |
9067 | else | |
9068 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9069 | |
ce2cded5 L |
9070 | *** Warning: the command libtool uses to detect shared libraries, |
9071 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9072 | *** The result is that libtool may fail to recognize shared libraries | |
9073 | *** as such. This will affect the creation of libtool libraries that | |
9074 | *** depend on shared libraries, but programs linked with such libtool | |
9075 | *** libraries will work regardless of this problem. Nevertheless, you | |
9076 | *** may want to report the problem to your system manager and/or to | |
9077 | *** bug-libtool@gnu.org | |
d7040cdb | 9078 | |
ce2cded5 L |
9079 | _LT_EOF |
9080 | fi ;; | |
9081 | esac | |
9082 | fi | |
9083 | break | |
9084 | fi | |
9085 | done | |
9086 | IFS="$lt_save_ifs" | |
9087 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9088 | ;; | |
9089 | esac | |
9090 | fi | |
d7040cdb | 9091 | |
ce2cded5 L |
9092 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9093 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9095 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 9096 | else |
81ecdfbb RW |
9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9098 | $as_echo "no" >&6; } | |
ce2cded5 | 9099 | fi |
d7040cdb SE |
9100 | |
9101 | ||
ce2cded5 L |
9102 | else |
9103 | MAGIC_CMD=: | |
9104 | fi | |
9105 | fi | |
d7040cdb | 9106 | |
ce2cded5 L |
9107 | fi |
9108 | ;; | |
9109 | esac | |
d7040cdb | 9110 | |
ce2cded5 | 9111 | # Use C for the default configuration in the libtool script |
d7040cdb | 9112 | |
ce2cded5 L |
9113 | lt_save_CC="$CC" |
9114 | ac_ext=c | |
9115 | ac_cpp='$CPP $CPPFLAGS' | |
9116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
9119 | |
9120 | ||
ce2cded5 L |
9121 | # Source file extension for C test sources. |
9122 | ac_ext=c | |
d7040cdb | 9123 | |
ce2cded5 L |
9124 | # Object file extension for compiled C test sources. |
9125 | objext=o | |
9126 | objext=$objext | |
d7040cdb | 9127 | |
ce2cded5 L |
9128 | # Code to be used in simple compile tests |
9129 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 9130 | |
ce2cded5 L |
9131 | # Code to be used in simple link tests |
9132 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
9133 | |
9134 | ||
9135 | ||
9136 | ||
9137 | ||
9138 | ||
9139 | ||
ce2cded5 L |
9140 | # If no C compiler was specified, use CC. |
9141 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 9142 | |
ce2cded5 L |
9143 | # If no C compiler flags were specified, use CFLAGS. |
9144 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 9145 | |
ce2cded5 L |
9146 | # Allow CC to be a program name with arguments. |
9147 | compiler=$CC | |
d7040cdb | 9148 | |
ce2cded5 L |
9149 | # Save the default compiler, since it gets overwritten when the other |
9150 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9151 | compiler_DEFAULT=$CC | |
d7040cdb | 9152 | |
ce2cded5 L |
9153 | # save warnings/boilerplate of simple test code |
9154 | ac_outfile=conftest.$ac_objext | |
9155 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9156 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9157 | _lt_compiler_boilerplate=`cat conftest.err` | |
9158 | $RM conftest* | |
d7040cdb | 9159 | |
ce2cded5 L |
9160 | ac_outfile=conftest.$ac_objext |
9161 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9162 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9163 | _lt_linker_boilerplate=`cat conftest.err` | |
b214d478 | 9164 | $RM -r conftest* |
d7040cdb SE |
9165 | |
9166 | ||
ce2cded5 L |
9167 | ## CAVEAT EMPTOR: |
9168 | ## There is no encapsulation within the following macros, do not change | |
9169 | ## the running order or otherwise move them around unless you know exactly | |
9170 | ## what you are doing... | |
9171 | if test -n "$compiler"; then | |
d7040cdb | 9172 | |
ce2cded5 | 9173 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 9174 | |
ce2cded5 | 9175 | if test "$GCC" = yes; then |
3725885a RW |
9176 | case $cc_basename in |
9177 | nvcc*) | |
9178 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9179 | *) | |
9180 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9181 | esac | |
d7040cdb | 9182 | |
81ecdfbb RW |
9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9184 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9185 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
9186 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9187 | else |
9188 | lt_cv_prog_compiler_rtti_exceptions=no | |
9189 | ac_outfile=conftest.$ac_objext | |
9190 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9191 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9192 | # Insert the option either (1) after the last *FLAGS variable, or | |
9193 | # (2) before a word containing "conftest.", or (3) at the end. | |
9194 | # Note that $ac_compile itself does not contain backslashes and begins | |
9195 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9196 | # The option is referenced via a variable to avoid confusing sed. | |
9197 | lt_compile=`echo "$ac_compile" | $SED \ | |
9198 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9199 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9200 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9201 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9202 | (eval "$lt_compile" 2>conftest.err) |
9203 | ac_status=$? | |
9204 | cat conftest.err >&5 | |
3725885a | 9205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9206 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9207 | # The compiler can only warn and ignore the option if not recognized | |
9208 | # So say no if there are warnings other than the usual output. | |
3725885a | 9209 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
9210 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9211 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9212 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9213 | fi | |
9214 | fi | |
9215 | $RM conftest* | |
d7040cdb | 9216 | |
ce2cded5 | 9217 | fi |
81ecdfbb RW |
9218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9219 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb | 9220 | |
ce2cded5 L |
9221 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9222 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9223 | else | |
9224 | : | |
9225 | fi | |
d7040cdb | 9226 | |
ce2cded5 | 9227 | fi |
d7040cdb SE |
9228 | |
9229 | ||
9230 | ||
9231 | ||
9232 | ||
9233 | ||
ce2cded5 L |
9234 | lt_prog_compiler_wl= |
9235 | lt_prog_compiler_pic= | |
9236 | lt_prog_compiler_static= | |
d7040cdb | 9237 | |
81ecdfbb RW |
9238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9239 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb | 9240 | |
ce2cded5 L |
9241 | if test "$GCC" = yes; then |
9242 | lt_prog_compiler_wl='-Wl,' | |
9243 | lt_prog_compiler_static='-static' | |
d7040cdb | 9244 | |
ce2cded5 L |
9245 | case $host_os in |
9246 | aix*) | |
9247 | # All AIX code is PIC. | |
9248 | if test "$host_cpu" = ia64; then | |
9249 | # AIX 5 now supports IA64 processor | |
9250 | lt_prog_compiler_static='-Bstatic' | |
9251 | fi | |
52204357 | 9252 | lt_prog_compiler_pic='-fPIC' |
ce2cded5 | 9253 | ;; |
d7040cdb | 9254 | |
ce2cded5 | 9255 | amigaos*) |
b214d478 SE |
9256 | case $host_cpu in |
9257 | powerpc) | |
9258 | # see comment about AmigaOS4 .so support | |
9259 | lt_prog_compiler_pic='-fPIC' | |
9260 | ;; | |
9261 | m68k) | |
9262 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9263 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9264 | # like `-m68040'. | |
9265 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9266 | ;; | |
9267 | esac | |
ce2cded5 | 9268 | ;; |
d7040cdb | 9269 | |
ce2cded5 L |
9270 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9271 | # PIC is the default for these OSes. | |
9272 | ;; | |
d7040cdb | 9273 | |
b214d478 | 9274 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
9275 | # This hack is so that the source file can tell whether it is being |
9276 | # built for inclusion in a dll (and should export symbols for example). | |
9277 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9278 | # (--disable-auto-import) libraries | |
9279 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9280 | ;; | |
d7040cdb | 9281 | |
ce2cded5 L |
9282 | darwin* | rhapsody*) |
9283 | # PIC is the default on this platform | |
9284 | # Common symbols not allowed in MH_DYLIB files | |
9285 | lt_prog_compiler_pic='-fno-common' | |
9286 | ;; | |
d7040cdb | 9287 | |
3725885a RW |
9288 | haiku*) |
9289 | # PIC is the default for Haiku. | |
9290 | # The "-static" flag exists, but is broken. | |
9291 | lt_prog_compiler_static= | |
9292 | ;; | |
9293 | ||
ce2cded5 | 9294 | hpux*) |
b214d478 SE |
9295 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9296 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9297 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 9298 | case $host_cpu in |
b214d478 | 9299 | hppa*64*) |
ce2cded5 L |
9300 | # +Z the default |
9301 | ;; | |
9302 | *) | |
9303 | lt_prog_compiler_pic='-fPIC' | |
9304 | ;; | |
9305 | esac | |
9306 | ;; | |
d7040cdb | 9307 | |
ce2cded5 L |
9308 | interix[3-9]*) |
9309 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9310 | # Instead, we relocate shared libraries at runtime. | |
9311 | ;; | |
d7040cdb | 9312 | |
ce2cded5 L |
9313 | msdosdjgpp*) |
9314 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9315 | # on systems that don't support them. | |
9316 | lt_prog_compiler_can_build_shared=no | |
9317 | enable_shared=no | |
9318 | ;; | |
d7040cdb | 9319 | |
ce2cded5 L |
9320 | *nto* | *qnx*) |
9321 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9322 | # it will coredump. | |
9323 | lt_prog_compiler_pic='-fPIC -shared' | |
9324 | ;; | |
d7040cdb | 9325 | |
ce2cded5 L |
9326 | sysv4*MP*) |
9327 | if test -d /usr/nec; then | |
9328 | lt_prog_compiler_pic=-Kconform_pic | |
9329 | fi | |
9330 | ;; | |
d7040cdb | 9331 | |
ce2cded5 L |
9332 | *) |
9333 | lt_prog_compiler_pic='-fPIC' | |
9334 | ;; | |
9335 | esac | |
3725885a RW |
9336 | |
9337 | case $cc_basename in | |
9338 | nvcc*) # Cuda Compiler Driver 2.2 | |
9339 | lt_prog_compiler_wl='-Xlinker ' | |
9340 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9341 | ;; | |
9342 | esac | |
ce2cded5 L |
9343 | else |
9344 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9345 | case $host_os in | |
9346 | aix*) | |
9347 | lt_prog_compiler_wl='-Wl,' | |
9348 | if test "$host_cpu" = ia64; then | |
9349 | # AIX 5 now supports IA64 processor | |
9350 | lt_prog_compiler_static='-Bstatic' | |
9351 | else | |
9352 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9353 | fi | |
9354 | ;; | |
d7040cdb | 9355 | |
b214d478 | 9356 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
9357 | # This hack is so that the source file can tell whether it is being |
9358 | # built for inclusion in a dll (and should export symbols for example). | |
9359 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9360 | ;; | |
d7040cdb | 9361 | |
ce2cded5 L |
9362 | hpux9* | hpux10* | hpux11*) |
9363 | lt_prog_compiler_wl='-Wl,' | |
9364 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9365 | # not for PA HP-UX. | |
9366 | case $host_cpu in | |
9367 | hppa*64*|ia64*) | |
9368 | # +Z the default | |
9369 | ;; | |
9370 | *) | |
9371 | lt_prog_compiler_pic='+Z' | |
9372 | ;; | |
9373 | esac | |
9374 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9375 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9376 | ;; | |
d7040cdb | 9377 | |
ce2cded5 L |
9378 | irix5* | irix6* | nonstopux*) |
9379 | lt_prog_compiler_wl='-Wl,' | |
9380 | # PIC (with -KPIC) is the default. | |
9381 | lt_prog_compiler_static='-non_shared' | |
9382 | ;; | |
d7040cdb | 9383 | |
58e24671 | 9384 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 9385 | case $cc_basename in |
b214d478 SE |
9386 | # old Intel for x86_64 which still supported -KPIC. |
9387 | ecc*) | |
ce2cded5 L |
9388 | lt_prog_compiler_wl='-Wl,' |
9389 | lt_prog_compiler_pic='-KPIC' | |
9390 | lt_prog_compiler_static='-static' | |
9391 | ;; | |
b214d478 SE |
9392 | # icc used to be incompatible with GCC. |
9393 | # ICC 10 doesn't accept -KPIC any more. | |
9394 | icc* | ifort*) | |
9395 | lt_prog_compiler_wl='-Wl,' | |
9396 | lt_prog_compiler_pic='-fPIC' | |
9397 | lt_prog_compiler_static='-static' | |
9398 | ;; | |
9399 | # Lahey Fortran 8.1. | |
9400 | lf95*) | |
9401 | lt_prog_compiler_wl='-Wl,' | |
9402 | lt_prog_compiler_pic='--shared' | |
9403 | lt_prog_compiler_static='--static' | |
9404 | ;; | |
3725885a | 9405 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
9406 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9407 | # which looks to be a dead project) | |
9408 | lt_prog_compiler_wl='-Wl,' | |
9409 | lt_prog_compiler_pic='-fpic' | |
9410 | lt_prog_compiler_static='-Bstatic' | |
9411 | ;; | |
9412 | ccc*) | |
9413 | lt_prog_compiler_wl='-Wl,' | |
9414 | # All Alpha code is PIC. | |
9415 | lt_prog_compiler_static='-non_shared' | |
9416 | ;; | |
3725885a RW |
9417 | xl* | bgxl* | bgf* | mpixl*) |
9418 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
b214d478 SE |
9419 | lt_prog_compiler_wl='-Wl,' |
9420 | lt_prog_compiler_pic='-qpic' | |
9421 | lt_prog_compiler_static='-qstaticlink' | |
9422 | ;; | |
ce2cded5 L |
9423 | *) |
9424 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
9425 | *Sun\ F* | *Sun*Fortran*) |
9426 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
9427 | lt_prog_compiler_pic='-KPIC' |
9428 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 9429 | lt_prog_compiler_wl='' |
ce2cded5 | 9430 | ;; |
3725885a RW |
9431 | *Sun\ C*) |
9432 | # Sun C 5.9 | |
ce2cded5 L |
9433 | lt_prog_compiler_pic='-KPIC' |
9434 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 9435 | lt_prog_compiler_wl='-Wl,' |
ce2cded5 L |
9436 | ;; |
9437 | esac | |
9438 | ;; | |
9439 | esac | |
9440 | ;; | |
d7040cdb | 9441 | |
ce2cded5 L |
9442 | newsos6) |
9443 | lt_prog_compiler_pic='-KPIC' | |
9444 | lt_prog_compiler_static='-Bstatic' | |
9445 | ;; | |
d7040cdb | 9446 | |
ce2cded5 L |
9447 | *nto* | *qnx*) |
9448 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9449 | # it will coredump. | |
9450 | lt_prog_compiler_pic='-fPIC -shared' | |
9451 | ;; | |
d7040cdb | 9452 | |
ce2cded5 L |
9453 | osf3* | osf4* | osf5*) |
9454 | lt_prog_compiler_wl='-Wl,' | |
9455 | # All OSF/1 code is PIC. | |
9456 | lt_prog_compiler_static='-non_shared' | |
9457 | ;; | |
d7040cdb | 9458 | |
ce2cded5 L |
9459 | rdos*) |
9460 | lt_prog_compiler_static='-non_shared' | |
9461 | ;; | |
d7040cdb | 9462 | |
ce2cded5 L |
9463 | solaris*) |
9464 | lt_prog_compiler_pic='-KPIC' | |
9465 | lt_prog_compiler_static='-Bstatic' | |
9466 | case $cc_basename in | |
9467 | f77* | f90* | f95*) | |
9468 | lt_prog_compiler_wl='-Qoption ld ';; | |
9469 | *) | |
9470 | lt_prog_compiler_wl='-Wl,';; | |
9471 | esac | |
9472 | ;; | |
d7040cdb | 9473 | |
ce2cded5 L |
9474 | sunos4*) |
9475 | lt_prog_compiler_wl='-Qoption ld ' | |
9476 | lt_prog_compiler_pic='-PIC' | |
9477 | lt_prog_compiler_static='-Bstatic' | |
9478 | ;; | |
d7040cdb | 9479 | |
ce2cded5 L |
9480 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9481 | lt_prog_compiler_wl='-Wl,' | |
9482 | lt_prog_compiler_pic='-KPIC' | |
9483 | lt_prog_compiler_static='-Bstatic' | |
9484 | ;; | |
d7040cdb | 9485 | |
ce2cded5 L |
9486 | sysv4*MP*) |
9487 | if test -d /usr/nec ;then | |
9488 | lt_prog_compiler_pic='-Kconform_pic' | |
9489 | lt_prog_compiler_static='-Bstatic' | |
9490 | fi | |
9491 | ;; | |
d7040cdb | 9492 | |
ce2cded5 L |
9493 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9494 | lt_prog_compiler_wl='-Wl,' | |
9495 | lt_prog_compiler_pic='-KPIC' | |
9496 | lt_prog_compiler_static='-Bstatic' | |
9497 | ;; | |
d7040cdb | 9498 | |
ce2cded5 L |
9499 | unicos*) |
9500 | lt_prog_compiler_wl='-Wl,' | |
9501 | lt_prog_compiler_can_build_shared=no | |
9502 | ;; | |
d7040cdb | 9503 | |
ce2cded5 L |
9504 | uts4*) |
9505 | lt_prog_compiler_pic='-pic' | |
9506 | lt_prog_compiler_static='-Bstatic' | |
9507 | ;; | |
d7040cdb | 9508 | |
ce2cded5 L |
9509 | *) |
9510 | lt_prog_compiler_can_build_shared=no | |
9511 | ;; | |
9512 | esac | |
9513 | fi | |
d7040cdb | 9514 | |
ce2cded5 L |
9515 | case $host_os in |
9516 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9517 | *djgpp*) | |
9518 | lt_prog_compiler_pic= | |
9519 | ;; | |
9520 | *) | |
9521 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9522 | ;; | |
9523 | esac | |
81ecdfbb RW |
9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
9525 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
9526 | |
9527 | ||
9528 | ||
9529 | ||
9530 | ||
9531 | ||
ce2cded5 L |
9532 | # |
9533 | # Check to make sure the PIC flag actually works. | |
9534 | # | |
9535 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
9536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
9537 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9538 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
9539 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 9540 | else |
b214d478 | 9541 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
9542 | ac_outfile=conftest.$ac_objext |
9543 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9544 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9545 | # Insert the option either (1) after the last *FLAGS variable, or | |
9546 | # (2) before a word containing "conftest.", or (3) at the end. | |
9547 | # Note that $ac_compile itself does not contain backslashes and begins | |
9548 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9549 | # The option is referenced via a variable to avoid confusing sed. | |
9550 | lt_compile=`echo "$ac_compile" | $SED \ | |
9551 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9552 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9553 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9554 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9555 | (eval "$lt_compile" 2>conftest.err) |
9556 | ac_status=$? | |
9557 | cat conftest.err >&5 | |
3725885a | 9558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9559 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9560 | # The compiler can only warn and ignore the option if not recognized | |
9561 | # So say no if there are warnings other than the usual output. | |
3725885a | 9562 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
9563 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9564 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9565 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
9566 | fi |
9567 | fi | |
9568 | $RM conftest* | |
d7040cdb | 9569 | |
ce2cded5 | 9570 | fi |
81ecdfbb RW |
9571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9572 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
ce2cded5 | 9573 | |
b214d478 | 9574 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
9575 | case $lt_prog_compiler_pic in |
9576 | "" | " "*) ;; | |
9577 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9578 | esac | |
9579 | else | |
9580 | lt_prog_compiler_pic= | |
9581 | lt_prog_compiler_can_build_shared=no | |
9582 | fi | |
9583 | ||
9584 | fi | |
d7040cdb SE |
9585 | |
9586 | ||
9587 | ||
9588 | ||
9589 | ||
9590 | ||
ce2cded5 L |
9591 | # |
9592 | # Check to make sure the static flag actually works. | |
9593 | # | |
9594 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9596 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9597 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
9598 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 9599 | else |
b214d478 | 9600 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
9601 | save_LDFLAGS="$LDFLAGS" |
9602 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9603 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9604 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9605 | # The linker can only warn and ignore the option if not recognized | |
9606 | # So say no if there are warnings | |
9607 | if test -s conftest.err; then | |
9608 | # Append any errors to the config.log. | |
9609 | cat conftest.err 1>&5 | |
3725885a | 9610 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
9611 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9612 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9613 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9614 | fi |
9615 | else | |
b214d478 | 9616 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9617 | fi |
9618 | fi | |
b214d478 | 9619 | $RM -r conftest* |
ce2cded5 | 9620 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 9621 | |
ce2cded5 | 9622 | fi |
81ecdfbb RW |
9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9624 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 9625 | |
b214d478 | 9626 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
9627 | : |
9628 | else | |
9629 | lt_prog_compiler_static= | |
9630 | fi | |
d7040cdb SE |
9631 | |
9632 | ||
9633 | ||
9634 | ||
9635 | ||
9636 | ||
9637 | ||
81ecdfbb RW |
9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9639 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9640 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9641 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9642 | else |
9643 | lt_cv_prog_compiler_c_o=no | |
9644 | $RM -r conftest 2>/dev/null | |
9645 | mkdir conftest | |
9646 | cd conftest | |
9647 | mkdir out | |
9648 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9649 | |
ce2cded5 L |
9650 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9651 | # Insert the option either (1) after the last *FLAGS variable, or | |
9652 | # (2) before a word containing "conftest.", or (3) at the end. | |
9653 | # Note that $ac_compile itself does not contain backslashes and begins | |
9654 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9655 | lt_compile=`echo "$ac_compile" | $SED \ | |
9656 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9657 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9658 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9659 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9660 | (eval "$lt_compile" 2>out/conftest.err) |
9661 | ac_status=$? | |
9662 | cat out/conftest.err >&5 | |
3725885a | 9663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9664 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9665 | then | |
9666 | # The compiler can only warn and ignore the option if not recognized | |
9667 | # So say no if there are warnings | |
3725885a | 9668 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9669 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9670 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9671 | lt_cv_prog_compiler_c_o=yes | |
9672 | fi | |
9673 | fi | |
9674 | chmod u+w . 2>&5 | |
9675 | $RM conftest* | |
9676 | # SGI C++ compiler will create directory out/ii_files/ for | |
9677 | # template instantiation | |
9678 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9679 | $RM out/* && rmdir out | |
9680 | cd .. | |
9681 | $RM -r conftest | |
9682 | $RM conftest* | |
d7040cdb | 9683 | |
ce2cded5 | 9684 | fi |
81ecdfbb RW |
9685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9686 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
9687 | |
9688 | ||
9689 | ||
9690 | ||
9691 | ||
9692 | ||
81ecdfbb RW |
9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9694 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9695 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9696 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9697 | else |
9698 | lt_cv_prog_compiler_c_o=no | |
9699 | $RM -r conftest 2>/dev/null | |
9700 | mkdir conftest | |
9701 | cd conftest | |
9702 | mkdir out | |
9703 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9704 | |
ce2cded5 L |
9705 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9706 | # Insert the option either (1) after the last *FLAGS variable, or | |
9707 | # (2) before a word containing "conftest.", or (3) at the end. | |
9708 | # Note that $ac_compile itself does not contain backslashes and begins | |
9709 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9710 | lt_compile=`echo "$ac_compile" | $SED \ | |
9711 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9712 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9713 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9714 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9715 | (eval "$lt_compile" 2>out/conftest.err) |
9716 | ac_status=$? | |
9717 | cat out/conftest.err >&5 | |
3725885a | 9718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9719 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9720 | then | |
9721 | # The compiler can only warn and ignore the option if not recognized | |
9722 | # So say no if there are warnings | |
3725885a | 9723 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9724 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9725 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9726 | lt_cv_prog_compiler_c_o=yes | |
9727 | fi | |
9728 | fi | |
9729 | chmod u+w . 2>&5 | |
9730 | $RM conftest* | |
9731 | # SGI C++ compiler will create directory out/ii_files/ for | |
9732 | # template instantiation | |
9733 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9734 | $RM out/* && rmdir out | |
9735 | cd .. | |
9736 | $RM -r conftest | |
9737 | $RM conftest* | |
9738 | ||
9739 | fi | |
81ecdfbb RW |
9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9741 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ce2cded5 L |
9742 | |
9743 | ||
9744 | ||
9745 | ||
9746 | hard_links="nottested" | |
9747 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9748 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
9749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9750 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
9751 | hard_links=yes |
9752 | $RM conftest* | |
9753 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9754 | touch conftest.a | |
9755 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9756 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9758 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 9759 | if test "$hard_links" = no; then |
81ecdfbb RW |
9760 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9761 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 | 9762 | need_locks=warn |
d7040cdb | 9763 | fi |
d7040cdb | 9764 | else |
ce2cded5 | 9765 | need_locks=no |
d7040cdb | 9766 | fi |
d7040cdb | 9767 | |
d7040cdb | 9768 | |
d7040cdb | 9769 | |
d7040cdb | 9770 | |
d7040cdb | 9771 | |
d7040cdb | 9772 | |
81ecdfbb RW |
9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9774 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 9775 | |
ce2cded5 L |
9776 | runpath_var= |
9777 | allow_undefined_flag= | |
9778 | always_export_symbols=no | |
9779 | archive_cmds= | |
9780 | archive_expsym_cmds= | |
9781 | compiler_needs_object=no | |
9782 | enable_shared_with_static_runtimes=no | |
9783 | export_dynamic_flag_spec= | |
9784 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9785 | hardcode_automatic=no | |
9786 | hardcode_direct=no | |
9787 | hardcode_direct_absolute=no | |
9788 | hardcode_libdir_flag_spec= | |
9789 | hardcode_libdir_flag_spec_ld= | |
9790 | hardcode_libdir_separator= | |
9791 | hardcode_minus_L=no | |
9792 | hardcode_shlibpath_var=unsupported | |
9793 | inherit_rpath=no | |
9794 | link_all_deplibs=unknown | |
9795 | module_cmds= | |
9796 | module_expsym_cmds= | |
9797 | old_archive_from_new_cmds= | |
9798 | old_archive_from_expsyms_cmds= | |
9799 | thread_safe_flag_spec= | |
9800 | whole_archive_flag_spec= | |
9801 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9802 | # included in the symbol list | |
9803 | include_expsyms= | |
9804 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9805 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9806 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9807 | # as well as any symbol that contains `d'. | |
b214d478 | 9808 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
9809 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9810 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9811 | # the symbol is explicitly referenced. Since portable code cannot | |
9812 | # rely on this symbol name, it's probably fine to never include it in | |
9813 | # preloaded symbol tables. | |
b214d478 | 9814 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 9815 | extract_expsyms_cmds= |
d7040cdb | 9816 | |
ce2cded5 | 9817 | case $host_os in |
b214d478 | 9818 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9819 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9820 | # When not using gcc, we currently assume that we are using | |
9821 | # Microsoft Visual C++. | |
9822 | if test "$GCC" != yes; then | |
9823 | with_gnu_ld=no | |
9824 | fi | |
d7040cdb | 9825 | ;; |
ce2cded5 L |
9826 | interix*) |
9827 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9828 | with_gnu_ld=yes | |
9829 | ;; | |
9830 | openbsd*) | |
9831 | with_gnu_ld=no | |
d7040cdb SE |
9832 | ;; |
9833 | esac | |
d7040cdb | 9834 | |
ce2cded5 | 9835 | ld_shlibs=yes |
3725885a RW |
9836 | |
9837 | # On some targets, GNU ld is compatible enough with the native linker | |
9838 | # that we're better off using the native interface for both. | |
9839 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 9840 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
9841 | case $host_os in |
9842 | aix*) | |
9843 | # The AIX port of GNU ld has always aspired to compatibility | |
9844 | # with the native linker. However, as the warning in the GNU ld | |
9845 | # block says, versions before 2.19.5* couldn't really create working | |
9846 | # shared libraries, regardless of the interface used. | |
9847 | case `$LD -v 2>&1` in | |
9848 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9849 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9850 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9851 | *) | |
9852 | lt_use_gnu_ld_interface=yes | |
9853 | ;; | |
9854 | esac | |
9855 | ;; | |
9856 | *) | |
9857 | lt_use_gnu_ld_interface=yes | |
9858 | ;; | |
9859 | esac | |
9860 | fi | |
9861 | ||
9862 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
9863 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9864 | wlarc='${wl}' | |
d7040cdb | 9865 | |
ce2cded5 L |
9866 | # Set some defaults for GNU ld with shared library support. These |
9867 | # are reset later if shared libraries are not supported. Putting them | |
9868 | # here allows them to be overridden if necessary. | |
9869 | runpath_var=LD_RUN_PATH | |
9870 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9871 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9872 | # ancient GNU ld didn't support --whole-archive et. al. | |
9873 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9874 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9875 | else | |
9876 | whole_archive_flag_spec= | |
9877 | fi | |
9878 | supports_anon_versioning=no | |
9879 | case `$LD -v 2>&1` in | |
3725885a | 9880 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
9881 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9882 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9883 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9884 | *\ 2.11.*) ;; # other 2.11 versions | |
9885 | *) supports_anon_versioning=yes ;; | |
9886 | esac | |
d7040cdb | 9887 | |
ce2cded5 L |
9888 | # See if GNU ld supports shared libraries. |
9889 | case $host_os in | |
50e7d84b | 9890 | aix[3-9]*) |
ce2cded5 L |
9891 | # On AIX/PPC, the GNU linker is very broken |
9892 | if test "$host_cpu" != ia64; then | |
9893 | ld_shlibs=no | |
9894 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9895 | |
3725885a | 9896 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
9897 | *** to be unable to reliably create shared libraries on AIX. |
9898 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
9899 | *** really care for shared libraries, you may want to install binutils |
9900 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9901 | *** You will then need to restart the configuration process. | |
d7040cdb | 9902 | |
ce2cded5 L |
9903 | _LT_EOF |
9904 | fi | |
d7040cdb | 9905 | ;; |
d7040cdb | 9906 | |
ce2cded5 | 9907 | amigaos*) |
b214d478 SE |
9908 | case $host_cpu in |
9909 | powerpc) | |
9910 | # see comment about AmigaOS4 .so support | |
9911 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9912 | archive_expsym_cmds='' | |
9913 | ;; | |
9914 | m68k) | |
9915 | 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)' | |
9916 | hardcode_libdir_flag_spec='-L$libdir' | |
9917 | hardcode_minus_L=yes | |
9918 | ;; | |
9919 | esac | |
ce2cded5 | 9920 | ;; |
d7040cdb | 9921 | |
ce2cded5 L |
9922 | beos*) |
9923 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9924 | allow_undefined_flag=unsupported | |
9925 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9926 | # support --undefined. This deserves some investigation. FIXME | |
9927 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9928 | else | |
9929 | ld_shlibs=no | |
9930 | fi | |
9931 | ;; | |
d7040cdb | 9932 | |
b214d478 | 9933 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9934 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9935 | # as there is no search path for DLLs. | |
9936 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 9937 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
9938 | allow_undefined_flag=unsupported |
9939 | always_export_symbols=no | |
9940 | enable_shared_with_static_runtimes=yes | |
9941 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9942 | ||
9943 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9944 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9945 | # If the export-symbols file already is a .def file (1st line | |
9946 | # is EXPORTS), use it as is; otherwise, prepend... | |
9947 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9948 | cp $export_symbols $output_objdir/$soname.def; | |
d7040cdb | 9949 | else |
ce2cded5 L |
9950 | echo EXPORTS > $output_objdir/$soname.def; |
9951 | cat $export_symbols >> $output_objdir/$soname.def; | |
9952 | fi~ | |
9953 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9954 | else | |
9955 | ld_shlibs=no | |
9956 | fi | |
9957 | ;; | |
d7040cdb | 9958 | |
3725885a RW |
9959 | haiku*) |
9960 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9961 | link_all_deplibs=yes | |
9962 | ;; | |
9963 | ||
ce2cded5 L |
9964 | interix[3-9]*) |
9965 | hardcode_direct=no | |
9966 | hardcode_shlibpath_var=no | |
9967 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9968 | export_dynamic_flag_spec='${wl}-E' | |
9969 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9970 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9971 | # default) and relocated if they conflict, which is a slow very memory | |
9972 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9973 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9974 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9975 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9976 | 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' | |
9977 | ;; | |
d7040cdb | 9978 | |
58e24671 | 9979 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
9980 | tmp_diet=no |
9981 | if test "$host_os" = linux-dietlibc; then | |
9982 | case $cc_basename in | |
9983 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9984 | esac | |
9985 | fi | |
9986 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9987 | && test "$tmp_diet" = no | |
9988 | then | |
9989 | tmp_addflag= | |
b214d478 | 9990 | tmp_sharedflag='-shared' |
ce2cded5 L |
9991 | case $cc_basename,$host_cpu in |
9992 | pgcc*) # Portland Group C compiler | |
3725885a | 9993 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
ce2cded5 L |
9994 | tmp_addflag=' $pic_flag' |
9995 | ;; | |
3725885a RW |
9996 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9997 | # Portland Group f77 and f90 compilers | |
9998 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
ce2cded5 L |
9999 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10000 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10001 | tmp_addflag=' -i_dynamic' ;; | |
10002 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10003 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10004 | ifc* | ifort*) # Intel Fortran compiler | |
10005 | tmp_addflag=' -nofor_main' ;; | |
b214d478 SE |
10006 | lf95*) # Lahey Fortran 8.1 |
10007 | whole_archive_flag_spec= | |
10008 | tmp_sharedflag='--shared' ;; | |
3725885a | 10009 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
b214d478 SE |
10010 | tmp_sharedflag='-qmkshrobj' |
10011 | tmp_addflag= ;; | |
3725885a RW |
10012 | nvcc*) # Cuda Compiler Driver 2.2 |
10013 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
10014 | compiler_needs_object=yes | |
10015 | ;; | |
ce2cded5 L |
10016 | esac |
10017 | case `$CC -V 2>&1 | sed 5q` in | |
10018 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 10019 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
ce2cded5 L |
10020 | compiler_needs_object=yes |
10021 | tmp_sharedflag='-G' ;; | |
10022 | *Sun\ F*) # Sun Fortran 8.3 | |
10023 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
10024 | esac |
10025 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 10026 | |
ce2cded5 L |
10027 | if test "x$supports_anon_versioning" = xyes; then |
10028 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10029 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10030 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10031 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10032 | fi | |
b214d478 SE |
10033 | |
10034 | case $cc_basename in | |
3725885a | 10035 | xlf* | bgf* | bgxlf* | mpixlf*) |
b214d478 SE |
10036 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10037 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10038 | hardcode_libdir_flag_spec= | |
10039 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10040 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10041 | if test "x$supports_anon_versioning" = xyes; then | |
10042 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10043 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10044 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10045 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10046 | fi | |
10047 | ;; | |
10048 | esac | |
ce2cded5 L |
10049 | else |
10050 | ld_shlibs=no | |
10051 | fi | |
10052 | ;; | |
d7040cdb | 10053 | |
ce2cded5 L |
10054 | netbsd*) |
10055 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10056 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10057 | wlarc= | |
10058 | else | |
10059 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10060 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10061 | fi | |
10062 | ;; | |
10063 | ||
10064 | solaris*) | |
10065 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10066 | ld_shlibs=no | |
10067 | cat <<_LT_EOF 1>&2 | |
10068 | ||
10069 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10070 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10071 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10072 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10073 | *** your PATH or compiler configuration so that the native linker is | |
10074 | *** used, and then restart. | |
10075 | ||
10076 | _LT_EOF | |
10077 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10078 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10079 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10080 | else | |
10081 | ld_shlibs=no | |
10082 | fi | |
10083 | ;; | |
10084 | ||
10085 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10086 | case `$LD -v 2>&1` in | |
10087 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10088 | ld_shlibs=no | |
10089 | cat <<_LT_EOF 1>&2 | |
10090 | ||
10091 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10092 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10093 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10094 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10095 | *** your PATH or compiler configuration so that the native linker is | |
10096 | *** used, and then restart. | |
10097 | ||
10098 | _LT_EOF | |
10099 | ;; | |
10100 | *) | |
10101 | # For security reasons, it is highly recommended that you always | |
10102 | # use absolute paths for naming shared libraries, and exclude the | |
10103 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10104 | # requires that you compile everything twice, which is a pain. | |
10105 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10106 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10107 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10108 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10109 | else | |
10110 | ld_shlibs=no | |
10111 | fi | |
10112 | ;; | |
10113 | esac | |
10114 | ;; | |
10115 | ||
10116 | sunos4*) | |
10117 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10118 | wlarc= | |
10119 | hardcode_direct=yes | |
10120 | hardcode_shlibpath_var=no | |
10121 | ;; | |
10122 | ||
10123 | *) | |
10124 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10125 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10126 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10127 | else | |
10128 | ld_shlibs=no | |
10129 | fi | |
10130 | ;; | |
10131 | esac | |
10132 | ||
10133 | if test "$ld_shlibs" = no; then | |
10134 | runpath_var= | |
10135 | hardcode_libdir_flag_spec= | |
10136 | export_dynamic_flag_spec= | |
10137 | whole_archive_flag_spec= | |
10138 | fi | |
10139 | else | |
10140 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10141 | case $host_os in | |
10142 | aix3*) | |
10143 | allow_undefined_flag=unsupported | |
10144 | always_export_symbols=yes | |
10145 | 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' | |
10146 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10147 | # are no directories specified by -L. | |
10148 | hardcode_minus_L=yes | |
10149 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10150 | # Neither direct hardcoding nor static linking is supported with a | |
10151 | # broken collect2. | |
10152 | hardcode_direct=unsupported | |
10153 | fi | |
10154 | ;; | |
10155 | ||
50e7d84b | 10156 | aix[4-9]*) |
ce2cded5 L |
10157 | if test "$host_cpu" = ia64; then |
10158 | # On IA64, the linker does run time linking by default, so we don't | |
10159 | # have to do anything special. | |
10160 | aix_use_runtimelinking=no | |
10161 | exp_sym_flag='-Bexport' | |
10162 | no_entry_flag="" | |
10163 | else | |
10164 | # If we're using GNU nm, then we don't want the "-C" option. | |
10165 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
10166 | # Also, AIX nm treats weak defined symbols like other global |
10167 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 10168 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 10169 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
ce2cded5 L |
10170 | else |
10171 | 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' | |
10172 | fi | |
10173 | aix_use_runtimelinking=no | |
10174 | ||
10175 | # Test if we are trying to use run time linking or normal | |
10176 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10177 | # need to do runtime linking. | |
50e7d84b | 10178 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
10179 | for ld_flag in $LDFLAGS; do |
10180 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10181 | aix_use_runtimelinking=yes | |
10182 | break | |
10183 | fi | |
10184 | done | |
10185 | ;; | |
10186 | esac | |
10187 | ||
10188 | exp_sym_flag='-bexport' | |
10189 | no_entry_flag='-bnoentry' | |
10190 | fi | |
10191 | ||
10192 | # When large executables or shared objects are built, AIX ld can | |
10193 | # have problems creating the table of contents. If linking a library | |
10194 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10195 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10196 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10197 | ||
10198 | archive_cmds='' | |
10199 | hardcode_direct=yes | |
10200 | hardcode_direct_absolute=yes | |
10201 | hardcode_libdir_separator=':' | |
10202 | link_all_deplibs=yes | |
10203 | file_list_spec='${wl}-f,' | |
10204 | ||
10205 | if test "$GCC" = yes; then | |
10206 | case $host_os in aix4.[012]|aix4.[012].*) | |
10207 | # We only want to do this on AIX 4.2 and lower, the check | |
10208 | # below for broken collect2 doesn't work under 4.3+ | |
10209 | collect2name=`${CC} -print-prog-name=collect2` | |
10210 | if test -f "$collect2name" && | |
10211 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10212 | then | |
10213 | # We have reworked collect2 | |
10214 | : | |
10215 | else | |
10216 | # We have old collect2 | |
10217 | hardcode_direct=unsupported | |
10218 | # It fails to find uninstalled libraries when the uninstalled | |
10219 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10220 | # to unsupported forces relinking | |
10221 | hardcode_minus_L=yes | |
10222 | hardcode_libdir_flag_spec='-L$libdir' | |
10223 | hardcode_libdir_separator= | |
10224 | fi | |
10225 | ;; | |
10226 | esac | |
10227 | shared_flag='-shared' | |
10228 | if test "$aix_use_runtimelinking" = yes; then | |
10229 | shared_flag="$shared_flag "'${wl}-G' | |
10230 | fi | |
10231 | else | |
10232 | # not using gcc | |
10233 | if test "$host_cpu" = ia64; then | |
10234 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10235 | # chokes on -Wl,-G. The following line is correct: | |
10236 | shared_flag='-G' | |
10237 | else | |
10238 | if test "$aix_use_runtimelinking" = yes; then | |
10239 | shared_flag='${wl}-G' | |
10240 | else | |
10241 | shared_flag='${wl}-bM:SRE' | |
10242 | fi | |
10243 | fi | |
10244 | fi | |
10245 | ||
b214d478 | 10246 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
10247 | # It seems that -bexpall does not export symbols beginning with |
10248 | # underscore (_), so it is better to generate a list of symbols to export. | |
10249 | always_export_symbols=yes | |
10250 | if test "$aix_use_runtimelinking" = yes; then | |
10251 | # Warning - without using the other runtime loading flags (-brtl), | |
10252 | # -berok will link without error, but may produce a broken library. | |
10253 | allow_undefined_flag='-berok' | |
10254 | # Determine the default libpath from the value encoded in an | |
10255 | # empty executable. | |
81ecdfbb | 10256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
10257 | /* end confdefs.h. */ |
10258 | ||
10259 | int | |
10260 | main () | |
10261 | { | |
10262 | ||
10263 | ; | |
10264 | return 0; | |
10265 | } | |
10266 | _ACEOF | |
81ecdfbb | 10267 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 10268 | |
ce2cded5 L |
10269 | lt_aix_libpath_sed=' |
10270 | /Import File Strings/,/^$/ { | |
10271 | /^0/ { | |
10272 | s/^0 *\(.*\)$/\1/ | |
10273 | p | |
10274 | } | |
10275 | }' | |
10276 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10277 | # Check for a 64-bit object if we didn't find anything. | |
10278 | if test -z "$aix_libpath"; then | |
10279 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10280 | fi | |
d7040cdb | 10281 | fi |
81ecdfbb RW |
10282 | rm -f core conftest.err conftest.$ac_objext \ |
10283 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 10284 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 10285 | |
ce2cded5 | 10286 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 10287 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
ce2cded5 L |
10288 | else |
10289 | if test "$host_cpu" = ia64; then | |
10290 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10291 | allow_undefined_flag="-z nodefs" | |
10292 | 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" | |
10293 | else | |
10294 | # Determine the default libpath from the value encoded in an | |
10295 | # empty executable. | |
81ecdfbb | 10296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10297 | /* end confdefs.h. */ |
d7040cdb | 10298 | |
ce2cded5 L |
10299 | int |
10300 | main () | |
10301 | { | |
d7040cdb | 10302 | |
ce2cded5 L |
10303 | ; |
10304 | return 0; | |
10305 | } | |
10306 | _ACEOF | |
81ecdfbb | 10307 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 10308 | |
ce2cded5 L |
10309 | lt_aix_libpath_sed=' |
10310 | /Import File Strings/,/^$/ { | |
10311 | /^0/ { | |
10312 | s/^0 *\(.*\)$/\1/ | |
10313 | p | |
10314 | } | |
10315 | }' | |
10316 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10317 | # Check for a 64-bit object if we didn't find anything. | |
10318 | if test -z "$aix_libpath"; then | |
10319 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10320 | fi | |
ce2cded5 | 10321 | fi |
81ecdfbb RW |
10322 | rm -f core conftest.err conftest.$ac_objext \ |
10323 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 10324 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 10325 | |
ce2cded5 L |
10326 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10327 | # Warning - without using the other run time loading flags, | |
10328 | # -berok will link without error, but may produce a broken library. | |
10329 | no_undefined_flag=' ${wl}-bernotok' | |
10330 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
10331 | if test "$with_gnu_ld" = yes; then |
10332 | # We only use this code for GNU lds that support --whole-archive. | |
10333 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10334 | else | |
10335 | # Exported symbols can be pulled into shared objects from archives | |
10336 | whole_archive_flag_spec='$convenience' | |
10337 | fi | |
ce2cded5 L |
10338 | archive_cmds_need_lc=yes |
10339 | # This is similar to how AIX traditionally builds its shared libraries. | |
10340 | 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' | |
10341 | fi | |
10342 | fi | |
10343 | ;; | |
d7040cdb | 10344 | |
ce2cded5 | 10345 | amigaos*) |
b214d478 SE |
10346 | case $host_cpu in |
10347 | powerpc) | |
10348 | # see comment about AmigaOS4 .so support | |
10349 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10350 | archive_expsym_cmds='' | |
10351 | ;; | |
10352 | m68k) | |
10353 | 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)' | |
10354 | hardcode_libdir_flag_spec='-L$libdir' | |
10355 | hardcode_minus_L=yes | |
10356 | ;; | |
10357 | esac | |
ce2cded5 L |
10358 | ;; |
10359 | ||
10360 | bsdi[45]*) | |
10361 | export_dynamic_flag_spec=-rdynamic | |
10362 | ;; | |
10363 | ||
b214d478 | 10364 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10365 | # When not using gcc, we currently assume that we are using |
10366 | # Microsoft Visual C++. | |
10367 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10368 | # no search path for DLLs. | |
10369 | hardcode_libdir_flag_spec=' ' | |
10370 | allow_undefined_flag=unsupported | |
10371 | # Tell ltmain to make .lib files, not .a files. | |
10372 | libext=lib | |
10373 | # Tell ltmain to make .dll files, not .so files. | |
10374 | shrext_cmds=".dll" | |
10375 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 10376 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
ce2cded5 L |
10377 | # The linker will automatically build a .lib file if we build a DLL. |
10378 | old_archive_from_new_cmds='true' | |
10379 | # FIXME: Should let the user specify the lib program. | |
10380 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10381 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10382 | enable_shared_with_static_runtimes=yes | |
10383 | ;; | |
10384 | ||
10385 | darwin* | rhapsody*) | |
d7040cdb | 10386 | |
b214d478 SE |
10387 | |
10388 | archive_cmds_need_lc=no | |
10389 | hardcode_direct=no | |
10390 | hardcode_automatic=yes | |
10391 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
10392 | if test "$lt_cv_ld_force_load" = "yes"; then |
10393 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
10394 | else | |
10395 | whole_archive_flag_spec='' | |
10396 | fi | |
b214d478 SE |
10397 | link_all_deplibs=yes |
10398 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10399 | case $cc_basename in | |
10400 | ifort*) _lt_dar_can_shared=yes ;; | |
10401 | *) _lt_dar_can_shared=$GCC ;; | |
10402 | esac | |
10403 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 10404 | output_verbose_link_cmd=func_echo_all |
b214d478 SE |
10405 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10406 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10407 | 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}" | |
10408 | 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}" | |
10409 | ||
10410 | else | |
10411 | ld_shlibs=no | |
10412 | fi | |
10413 | ||
ce2cded5 | 10414 | ;; |
d7040cdb | 10415 | |
ce2cded5 L |
10416 | dgux*) |
10417 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10418 | hardcode_libdir_flag_spec='-L$libdir' | |
10419 | hardcode_shlibpath_var=no | |
10420 | ;; | |
d7040cdb | 10421 | |
ce2cded5 L |
10422 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10423 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10424 | # does not break anything, and helps significantly (at the cost of a little | |
10425 | # extra space). | |
10426 | freebsd2.2*) | |
10427 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10428 | hardcode_libdir_flag_spec='-R$libdir' | |
10429 | hardcode_direct=yes | |
10430 | hardcode_shlibpath_var=no | |
d7040cdb | 10431 | ;; |
d7040cdb | 10432 | |
ce2cded5 | 10433 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 10434 | freebsd2.*) |
ce2cded5 L |
10435 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10436 | hardcode_direct=yes | |
10437 | hardcode_minus_L=yes | |
10438 | hardcode_shlibpath_var=no | |
10439 | ;; | |
d7040cdb | 10440 | |
ce2cded5 L |
10441 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10442 | freebsd* | dragonfly*) | |
10443 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10444 | hardcode_libdir_flag_spec='-R$libdir' | |
10445 | hardcode_direct=yes | |
10446 | hardcode_shlibpath_var=no | |
10447 | ;; | |
d7040cdb | 10448 | |
ce2cded5 L |
10449 | hpux9*) |
10450 | if test "$GCC" = yes; then | |
10451 | 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' | |
10452 | else | |
10453 | 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' | |
10454 | fi | |
10455 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10456 | hardcode_libdir_separator=: | |
10457 | hardcode_direct=yes | |
d7040cdb | 10458 | |
ce2cded5 L |
10459 | # hardcode_minus_L: Not really in the search PATH, |
10460 | # but as the default location of the library. | |
10461 | hardcode_minus_L=yes | |
10462 | export_dynamic_flag_spec='${wl}-E' | |
10463 | ;; | |
d7040cdb | 10464 | |
ce2cded5 | 10465 | hpux10*) |
3725885a | 10466 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
10467 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10468 | else | |
10469 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10470 | fi | |
10471 | if test "$with_gnu_ld" = no; then | |
10472 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10473 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10474 | hardcode_libdir_separator=: | |
10475 | hardcode_direct=yes | |
10476 | hardcode_direct_absolute=yes | |
10477 | export_dynamic_flag_spec='${wl}-E' | |
10478 | # hardcode_minus_L: Not really in the search PATH, | |
10479 | # but as the default location of the library. | |
10480 | hardcode_minus_L=yes | |
10481 | fi | |
10482 | ;; | |
d7040cdb | 10483 | |
ce2cded5 | 10484 | hpux11*) |
3725885a | 10485 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
10486 | case $host_cpu in |
10487 | hppa*64*) | |
10488 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10489 | ;; | |
10490 | ia64*) | |
b214d478 | 10491 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
10492 | ;; |
10493 | *) | |
10494 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10495 | ;; | |
10496 | esac | |
10497 | else | |
10498 | case $host_cpu in | |
10499 | hppa*64*) | |
10500 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10501 | ;; | |
10502 | ia64*) | |
10503 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10504 | ;; | |
10505 | *) | |
3725885a RW |
10506 | |
10507 | # Older versions of the 11.00 compiler do not understand -b yet | |
10508 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10510 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10511 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
10512 | $as_echo_n "(cached) " >&6 | |
10513 | else | |
10514 | lt_cv_prog_compiler__b=no | |
10515 | save_LDFLAGS="$LDFLAGS" | |
10516 | LDFLAGS="$LDFLAGS -b" | |
10517 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10518 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10519 | # The linker can only warn and ignore the option if not recognized | |
10520 | # So say no if there are warnings | |
10521 | if test -s conftest.err; then | |
10522 | # Append any errors to the config.log. | |
10523 | cat conftest.err 1>&5 | |
10524 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10525 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10526 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10527 | lt_cv_prog_compiler__b=yes | |
10528 | fi | |
10529 | else | |
10530 | lt_cv_prog_compiler__b=yes | |
10531 | fi | |
10532 | fi | |
10533 | $RM -r conftest* | |
10534 | LDFLAGS="$save_LDFLAGS" | |
10535 | ||
10536 | fi | |
10537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10538 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10539 | ||
10540 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10541 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10542 | else | |
10543 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10544 | fi | |
10545 | ||
ce2cded5 L |
10546 | ;; |
10547 | esac | |
10548 | fi | |
10549 | if test "$with_gnu_ld" = no; then | |
10550 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10551 | hardcode_libdir_separator=: | |
d7040cdb | 10552 | |
ce2cded5 L |
10553 | case $host_cpu in |
10554 | hppa*64*|ia64*) | |
10555 | hardcode_direct=no | |
10556 | hardcode_shlibpath_var=no | |
10557 | ;; | |
10558 | *) | |
10559 | hardcode_direct=yes | |
10560 | hardcode_direct_absolute=yes | |
10561 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 10562 | |
ce2cded5 L |
10563 | # hardcode_minus_L: Not really in the search PATH, |
10564 | # but as the default location of the library. | |
10565 | hardcode_minus_L=yes | |
10566 | ;; | |
10567 | esac | |
10568 | fi | |
10569 | ;; | |
d7040cdb | 10570 | |
ce2cded5 L |
10571 | irix5* | irix6* | nonstopux*) |
10572 | if test "$GCC" = yes; then | |
3725885a | 10573 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
10574 | # Try to use the -exported_symbol ld option, if it does not |
10575 | # work, assume that -exports_file does not work either and | |
10576 | # implicitly export all symbols. | |
10577 | save_LDFLAGS="$LDFLAGS" | |
10578 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
10579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10580 | /* end confdefs.h. */ | |
ce2cded5 L |
10581 | int foo(void) {} |
10582 | _ACEOF | |
81ecdfbb | 10583 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 10584 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
d7040cdb | 10585 | |
ce2cded5 | 10586 | fi |
81ecdfbb RW |
10587 | rm -f core conftest.err conftest.$ac_objext \ |
10588 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10589 | LDFLAGS="$save_LDFLAGS" |
10590 | else | |
3725885a RW |
10591 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
10592 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
ce2cded5 L |
10593 | fi |
10594 | archive_cmds_need_lc='no' | |
10595 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10596 | hardcode_libdir_separator=: | |
10597 | inherit_rpath=yes | |
10598 | link_all_deplibs=yes | |
10599 | ;; | |
d7040cdb | 10600 | |
ce2cded5 L |
10601 | netbsd*) |
10602 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10603 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10604 | else | |
10605 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10606 | fi | |
10607 | hardcode_libdir_flag_spec='-R$libdir' | |
10608 | hardcode_direct=yes | |
10609 | hardcode_shlibpath_var=no | |
10610 | ;; | |
d7040cdb | 10611 | |
ce2cded5 L |
10612 | newsos6) |
10613 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10614 | hardcode_direct=yes | |
10615 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10616 | hardcode_libdir_separator=: | |
10617 | hardcode_shlibpath_var=no | |
10618 | ;; | |
d7040cdb | 10619 | |
ce2cded5 L |
10620 | *nto* | *qnx*) |
10621 | ;; | |
d7040cdb | 10622 | |
ce2cded5 | 10623 | openbsd*) |
b214d478 SE |
10624 | if test -f /usr/libexec/ld.so; then |
10625 | hardcode_direct=yes | |
10626 | hardcode_shlibpath_var=no | |
10627 | hardcode_direct_absolute=yes | |
10628 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 10629 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
b214d478 | 10630 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 10631 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
b214d478 SE |
10632 | export_dynamic_flag_spec='${wl}-E' |
10633 | else | |
10634 | case $host_os in | |
10635 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10636 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10637 | hardcode_libdir_flag_spec='-R$libdir' | |
10638 | ;; | |
10639 | *) | |
10640 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10641 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10642 | ;; | |
10643 | esac | |
10644 | fi | |
10645 | else | |
10646 | ld_shlibs=no | |
ce2cded5 L |
10647 | fi |
10648 | ;; | |
d7040cdb | 10649 | |
ce2cded5 L |
10650 | os2*) |
10651 | hardcode_libdir_flag_spec='-L$libdir' | |
10652 | hardcode_minus_L=yes | |
10653 | allow_undefined_flag=unsupported | |
3725885a | 10654 | 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' |
ce2cded5 L |
10655 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10656 | ;; | |
d7040cdb | 10657 | |
ce2cded5 L |
10658 | osf3*) |
10659 | if test "$GCC" = yes; then | |
10660 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10661 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
10662 | else |
10663 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10664 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
10665 | fi |
10666 | archive_cmds_need_lc='no' | |
10667 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10668 | hardcode_libdir_separator=: | |
10669 | ;; | |
d7040cdb | 10670 | |
ce2cded5 L |
10671 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10672 | if test "$GCC" = yes; then | |
10673 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10674 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
10675 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10676 | else | |
10677 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10678 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
ce2cded5 | 10679 | 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~ |
3725885a | 10680 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
d7040cdb | 10681 | |
ce2cded5 L |
10682 | # Both c and cxx compiler support -rpath directly |
10683 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10684 | fi | |
10685 | archive_cmds_need_lc='no' | |
10686 | hardcode_libdir_separator=: | |
10687 | ;; | |
d7040cdb | 10688 | |
ce2cded5 L |
10689 | solaris*) |
10690 | no_undefined_flag=' -z defs' | |
10691 | if test "$GCC" = yes; then | |
10692 | wlarc='${wl}' | |
10693 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10694 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10695 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10696 | else | |
10697 | case `$CC -V 2>&1` in | |
10698 | *"Compilers 5.0"*) | |
10699 | wlarc='' | |
10700 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10701 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10702 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10703 | ;; | |
10704 | *) | |
10705 | wlarc='${wl}' | |
10706 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10707 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10708 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10709 | ;; | |
10710 | esac | |
10711 | fi | |
10712 | hardcode_libdir_flag_spec='-R$libdir' | |
10713 | hardcode_shlibpath_var=no | |
10714 | case $host_os in | |
10715 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10716 | *) | |
10717 | # The compiler driver will combine and reorder linker options, | |
10718 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10719 | # but is careful enough not to reorder. | |
10720 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10721 | if test "$GCC" = yes; then | |
10722 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10723 | else | |
10724 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10725 | fi | |
10726 | ;; | |
10727 | esac | |
10728 | link_all_deplibs=yes | |
10729 | ;; | |
d7040cdb | 10730 | |
ce2cded5 L |
10731 | sunos4*) |
10732 | if test "x$host_vendor" = xsequent; then | |
10733 | # Use $CC to link under sequent, because it throws in some extra .o | |
10734 | # files that make .init and .fini sections work. | |
10735 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10736 | else | |
10737 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10738 | fi | |
10739 | hardcode_libdir_flag_spec='-L$libdir' | |
10740 | hardcode_direct=yes | |
10741 | hardcode_minus_L=yes | |
10742 | hardcode_shlibpath_var=no | |
10743 | ;; | |
d7040cdb | 10744 | |
ce2cded5 L |
10745 | sysv4) |
10746 | case $host_vendor in | |
10747 | sni) | |
10748 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10749 | hardcode_direct=yes # is this really true??? | |
10750 | ;; | |
10751 | siemens) | |
10752 | ## LD is ld it makes a PLAMLIB | |
10753 | ## CC just makes a GrossModule. | |
10754 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10755 | reload_cmds='$CC -r -o $output$reload_objs' | |
10756 | hardcode_direct=no | |
10757 | ;; | |
10758 | motorola) | |
10759 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10760 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10761 | ;; | |
10762 | esac | |
10763 | runpath_var='LD_RUN_PATH' | |
10764 | hardcode_shlibpath_var=no | |
10765 | ;; | |
d7040cdb | 10766 | |
ce2cded5 L |
10767 | sysv4.3*) |
10768 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10769 | hardcode_shlibpath_var=no | |
10770 | export_dynamic_flag_spec='-Bexport' | |
10771 | ;; | |
d7040cdb | 10772 | |
ce2cded5 L |
10773 | sysv4*MP*) |
10774 | if test -d /usr/nec; then | |
10775 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10776 | hardcode_shlibpath_var=no | |
10777 | runpath_var=LD_RUN_PATH | |
10778 | hardcode_runpath_var=yes | |
10779 | ld_shlibs=yes | |
10780 | fi | |
10781 | ;; | |
d7040cdb | 10782 | |
ce2cded5 L |
10783 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10784 | no_undefined_flag='${wl}-z,text' | |
10785 | archive_cmds_need_lc=no | |
10786 | hardcode_shlibpath_var=no | |
10787 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10788 | |
ce2cded5 L |
10789 | if test "$GCC" = yes; then |
10790 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10791 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10792 | else | |
10793 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10794 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10795 | fi | |
10796 | ;; | |
d7040cdb | 10797 | |
ce2cded5 L |
10798 | sysv5* | sco3.2v5* | sco5v6*) |
10799 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10800 | # link with -lc, and that would cause any symbols used from libc to | |
10801 | # always be unresolved, which means just about no library would | |
10802 | # ever link correctly. If we're not using GNU ld we use -z text | |
10803 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10804 | # as -z defs. | |
10805 | no_undefined_flag='${wl}-z,text' | |
10806 | allow_undefined_flag='${wl}-z,nodefs' | |
10807 | archive_cmds_need_lc=no | |
10808 | hardcode_shlibpath_var=no | |
10809 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10810 | hardcode_libdir_separator=':' | |
10811 | link_all_deplibs=yes | |
10812 | export_dynamic_flag_spec='${wl}-Bexport' | |
10813 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10814 | |
ce2cded5 L |
10815 | if test "$GCC" = yes; then |
10816 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10817 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10818 | else | |
10819 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10820 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10821 | fi | |
10822 | ;; | |
d7040cdb | 10823 | |
ce2cded5 L |
10824 | uts4*) |
10825 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10826 | hardcode_libdir_flag_spec='-L$libdir' | |
10827 | hardcode_shlibpath_var=no | |
10828 | ;; | |
d7040cdb | 10829 | |
ce2cded5 L |
10830 | *) |
10831 | ld_shlibs=no | |
10832 | ;; | |
10833 | esac | |
d7040cdb | 10834 | |
ce2cded5 L |
10835 | if test x$host_vendor = xsni; then |
10836 | case $host in | |
10837 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10838 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10839 | ;; | |
10840 | esac | |
10841 | fi | |
10842 | fi | |
d7040cdb | 10843 | |
81ecdfbb RW |
10844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10845 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 10846 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 10847 | |
ce2cded5 | 10848 | with_gnu_ld=$with_gnu_ld |
d7040cdb SE |
10849 | |
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
ce2cded5 L |
10864 | # |
10865 | # Do we need to explicitly link libc? | |
10866 | # | |
10867 | case "x$archive_cmds_need_lc" in | |
10868 | x|xyes) | |
10869 | # Assume -lc should be added | |
10870 | archive_cmds_need_lc=yes | |
d7040cdb | 10871 | |
ce2cded5 L |
10872 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10873 | case $archive_cmds in | |
10874 | *'~'*) | |
10875 | # FIXME: we may have to deal with multi-command sequences. | |
10876 | ;; | |
10877 | '$CC '*) | |
10878 | # Test whether the compiler implicitly links with -lc since on some | |
10879 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10880 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
10881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10882 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10883 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
10884 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10885 | else |
10886 | $RM conftest* | |
10887 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 10888 | |
81ecdfbb | 10889 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
10890 | (eval $ac_compile) 2>&5 |
10891 | ac_status=$? | |
81ecdfbb RW |
10892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10893 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
10894 | soname=conftest |
10895 | lib=conftest | |
10896 | libobjs=conftest.$ac_objext | |
10897 | deplibs= | |
10898 | wl=$lt_prog_compiler_wl | |
10899 | pic_flag=$lt_prog_compiler_pic | |
10900 | compiler_flags=-v | |
10901 | linker_flags=-v | |
10902 | verstring= | |
10903 | output_objdir=. | |
10904 | libname=conftest | |
10905 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10906 | allow_undefined_flag= | |
81ecdfbb | 10907 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
10908 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10909 | ac_status=$? | |
81ecdfbb RW |
10910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10911 | test $ac_status = 0; } | |
39144654 RW |
10912 | then |
10913 | lt_cv_archive_cmds_need_lc=no | |
10914 | else | |
10915 | lt_cv_archive_cmds_need_lc=yes | |
10916 | fi | |
10917 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10918 | else | |
10919 | cat conftest.err 1>&5 | |
10920 | fi | |
10921 | $RM conftest* | |
10922 | ||
10923 | fi | |
81ecdfbb RW |
10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10925 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 10926 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
10927 | ;; |
10928 | esac | |
10929 | fi | |
10930 | ;; | |
10931 | esac | |
d7040cdb SE |
10932 | |
10933 | ||
10934 | ||
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | ||
10940 | ||
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | ||
10946 | ||
10947 | ||
10948 | ||
10949 | ||
10950 | ||
10951 | ||
10952 | ||
10953 | ||
10954 | ||
10955 | ||
10956 | ||
10957 | ||
10958 | ||
d7040cdb | 10959 | |
d7040cdb | 10960 | |
d7040cdb SE |
10961 | |
10962 | ||
10963 | ||
10964 | ||
10965 | ||
10966 | ||
d7040cdb | 10967 | |
d7040cdb | 10968 | |
d7040cdb | 10969 | |
d7040cdb | 10970 | |
d7040cdb | 10971 | |
d7040cdb | 10972 | |
d7040cdb | 10973 | |
d7040cdb | 10974 | |
d7040cdb | 10975 | |
d7040cdb | 10976 | |
d7040cdb | 10977 | |
d7040cdb | 10978 | |
d7040cdb | 10979 | |
d7040cdb | 10980 | |
d7040cdb | 10981 | |
d7040cdb | 10982 | |
d7040cdb | 10983 | |
d7040cdb | 10984 | |
d7040cdb | 10985 | |
d7040cdb | 10986 | |
d7040cdb | 10987 | |
d7040cdb | 10988 | |
d7040cdb | 10989 | |
d7040cdb | 10990 | |
d7040cdb | 10991 | |
d7040cdb | 10992 | |
d7040cdb | 10993 | |
d7040cdb | 10994 | |
ce2cded5 L |
10995 | |
10996 | ||
10997 | ||
10998 | ||
10999 | ||
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | ||
11006 | ||
11007 | ||
11008 | ||
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | ||
11014 | ||
11015 | ||
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | ||
11055 | ||
11056 | ||
11057 | ||
11058 | ||
11059 | ||
11060 | ||
11061 | ||
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | ||
11072 | ||
11073 | ||
11074 | ||
11075 | ||
11076 | ||
11077 | ||
11078 | ||
11079 | ||
11080 | ||
11081 | ||
11082 | ||
11083 | ||
11084 | ||
11085 | ||
11086 | ||
11087 | ||
11088 | ||
81ecdfbb RW |
11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11090 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
b214d478 SE |
11091 | |
11092 | if test "$GCC" = yes; then | |
ce2cded5 L |
11093 | case $host_os in |
11094 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11095 | *) lt_awk_arg="/^libraries:/" ;; | |
11096 | esac | |
3725885a RW |
11097 | case $host_os in |
11098 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11099 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11100 | esac | |
11101 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11102 | case $lt_search_path_spec in | |
11103 | *\;*) | |
ce2cded5 L |
11104 | # if the path contains ";" then we assume it to be the separator |
11105 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11106 | # assumed that no part of a normal pathname contains ";" but that should | |
11107 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
11108 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11109 | ;; | |
11110 | *) | |
11111 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11112 | ;; | |
11113 | esac | |
ce2cded5 L |
11114 | # Ok, now we have the path, separated by spaces, we can step through it |
11115 | # and add multilib dir if necessary. | |
11116 | lt_tmp_lt_search_path_spec= | |
11117 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11118 | for lt_sys_path in $lt_search_path_spec; do | |
11119 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11120 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11121 | else | |
11122 | test -d "$lt_sys_path" && \ | |
11123 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11124 | fi | |
11125 | done | |
3725885a | 11126 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
11127 | BEGIN {RS=" "; FS="/|\n";} { |
11128 | lt_foo=""; | |
11129 | lt_count=0; | |
11130 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11131 | if ($lt_i != "" && $lt_i != ".") { | |
11132 | if ($lt_i == "..") { | |
11133 | lt_count++; | |
11134 | } else { | |
11135 | if (lt_count == 0) { | |
11136 | lt_foo="/" $lt_i lt_foo; | |
11137 | } else { | |
11138 | lt_count--; | |
11139 | } | |
11140 | } | |
11141 | } | |
11142 | } | |
11143 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11144 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11145 | }'` | |
3725885a RW |
11146 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11147 | # for these hosts. | |
11148 | case $host_os in | |
11149 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11150 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11151 | esac | |
11152 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 11153 | else |
ce2cded5 L |
11154 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11155 | fi | |
11156 | library_names_spec= | |
11157 | libname_spec='lib$name' | |
11158 | soname_spec= | |
11159 | shrext_cmds=".so" | |
11160 | postinstall_cmds= | |
11161 | postuninstall_cmds= | |
11162 | finish_cmds= | |
11163 | finish_eval= | |
11164 | shlibpath_var= | |
11165 | shlibpath_overrides_runpath=unknown | |
11166 | version_type=none | |
11167 | dynamic_linker="$host_os ld.so" | |
11168 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11169 | need_lib_prefix=unknown | |
11170 | hardcode_into_libs=no | |
11171 | ||
11172 | # when you set need_version to no, make sure it does not cause -set_version | |
11173 | # flags to be left without arguments | |
11174 | need_version=unknown | |
11175 | ||
11176 | case $host_os in | |
11177 | aix3*) | |
11178 | version_type=linux | |
11179 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11180 | shlibpath_var=LIBPATH | |
11181 | ||
11182 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11183 | soname_spec='${libname}${release}${shared_ext}$major' | |
11184 | ;; | |
11185 | ||
50e7d84b | 11186 | aix[4-9]*) |
ce2cded5 L |
11187 | version_type=linux |
11188 | need_lib_prefix=no | |
11189 | need_version=no | |
11190 | hardcode_into_libs=yes | |
11191 | if test "$host_cpu" = ia64; then | |
11192 | # AIX 5 supports IA64 | |
11193 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11194 | shlibpath_var=LD_LIBRARY_PATH | |
11195 | else | |
11196 | # With GCC up to 2.95.x, collect2 would create an import file | |
11197 | # for dependence libraries. The import file would start with | |
11198 | # the line `#! .'. This would cause the generated library to | |
11199 | # depend on `.', always an invalid library. This was fixed in | |
11200 | # development snapshots of GCC prior to 3.0. | |
11201 | case $host_os in | |
11202 | aix4 | aix4.[01] | aix4.[01].*) | |
11203 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11204 | echo ' yes ' | |
11205 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11206 | : | |
11207 | else | |
11208 | can_build_shared=no | |
11209 | fi | |
11210 | ;; | |
11211 | esac | |
11212 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11213 | # soname into executable. Probably we can add versioning support to | |
11214 | # collect2, so additional links can be useful in future. | |
11215 | if test "$aix_use_runtimelinking" = yes; then | |
11216 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11217 | # instead of lib<name>.a to let people know that these are not | |
11218 | # typical AIX shared libraries. | |
11219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11220 | else | |
11221 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11222 | # and later when we are not doing run time linking. | |
11223 | library_names_spec='${libname}${release}.a $libname.a' | |
11224 | soname_spec='${libname}${release}${shared_ext}$major' | |
11225 | fi | |
11226 | shlibpath_var=LIBPATH | |
11227 | fi | |
11228 | ;; | |
11229 | ||
11230 | amigaos*) | |
b214d478 SE |
11231 | case $host_cpu in |
11232 | powerpc) | |
11233 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11234 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11236 | ;; | |
11237 | m68k) | |
ce2cded5 L |
11238 | library_names_spec='$libname.ixlibrary $libname.a' |
11239 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 11240 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
b214d478 SE |
11241 | ;; |
11242 | esac | |
ce2cded5 L |
11243 | ;; |
11244 | ||
11245 | beos*) | |
11246 | library_names_spec='${libname}${shared_ext}' | |
11247 | dynamic_linker="$host_os ld.so" | |
11248 | shlibpath_var=LIBRARY_PATH | |
11249 | ;; | |
11250 | ||
11251 | bsdi[45]*) | |
11252 | version_type=linux | |
11253 | need_version=no | |
11254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11255 | soname_spec='${libname}${release}${shared_ext}$major' | |
11256 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11257 | shlibpath_var=LD_LIBRARY_PATH | |
11258 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11259 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11260 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11261 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11262 | # libtool to hard-code these into programs | |
11263 | ;; | |
11264 | ||
b214d478 | 11265 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11266 | version_type=windows |
11267 | shrext_cmds=".dll" | |
11268 | need_version=no | |
11269 | need_lib_prefix=no | |
11270 | ||
b214d478 SE |
11271 | case $GCC,$host_os in |
11272 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
11273 | library_names_spec='$libname.dll.a' |
11274 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11275 | postinstall_cmds='base_file=`basename \${file}`~ | |
11276 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11277 | dldir=$destdir/`dirname \$dlpath`~ | |
11278 | test -d \$dldir || mkdir -p \$dldir~ | |
11279 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11280 | chmod a+x \$dldir/$dlname~ | |
11281 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11282 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11283 | fi' | |
11284 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11285 | dlpath=$dir/\$dldll~ | |
11286 | $RM \$dlpath' | |
11287 | shlibpath_overrides_runpath=yes | |
11288 | ||
11289 | case $host_os in | |
11290 | cygwin*) | |
11291 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11292 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
11293 | |
11294 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 11295 | ;; |
b214d478 | 11296 | mingw* | cegcc*) |
ce2cded5 L |
11297 | # MinGW DLLs use traditional 'lib' prefix |
11298 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
11299 | ;; |
11300 | pw32*) | |
11301 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11302 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11303 | ;; | |
11304 | esac | |
11305 | ;; | |
11306 | ||
11307 | *) | |
11308 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11309 | ;; | |
11310 | esac | |
11311 | dynamic_linker='Win32 ld.exe' | |
11312 | # FIXME: first we should search . and the directory the executable is in | |
11313 | shlibpath_var=PATH | |
11314 | ;; | |
11315 | ||
11316 | darwin* | rhapsody*) | |
11317 | dynamic_linker="$host_os dyld" | |
11318 | version_type=darwin | |
11319 | need_lib_prefix=no | |
11320 | need_version=no | |
11321 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11322 | soname_spec='${libname}${release}${major}$shared_ext' | |
11323 | shlibpath_overrides_runpath=yes | |
11324 | shlibpath_var=DYLD_LIBRARY_PATH | |
11325 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11326 | ||
11327 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11328 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11329 | ;; | |
11330 | ||
11331 | dgux*) | |
11332 | version_type=linux | |
11333 | need_lib_prefix=no | |
11334 | need_version=no | |
11335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11336 | soname_spec='${libname}${release}${shared_ext}$major' | |
11337 | shlibpath_var=LD_LIBRARY_PATH | |
11338 | ;; | |
11339 | ||
ce2cded5 L |
11340 | freebsd* | dragonfly*) |
11341 | # DragonFly does not have aout. When/if they implement a new | |
11342 | # versioning mechanism, adjust this. | |
11343 | if test -x /usr/bin/objformat; then | |
11344 | objformat=`/usr/bin/objformat` | |
11345 | else | |
11346 | case $host_os in | |
6d2920c8 | 11347 | freebsd[23].*) objformat=aout ;; |
ce2cded5 L |
11348 | *) objformat=elf ;; |
11349 | esac | |
11350 | fi | |
11351 | version_type=freebsd-$objformat | |
11352 | case $version_type in | |
11353 | freebsd-elf*) | |
11354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11355 | need_version=no | |
11356 | need_lib_prefix=no | |
11357 | ;; | |
11358 | freebsd-*) | |
11359 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11360 | need_version=yes | |
11361 | ;; | |
11362 | esac | |
11363 | shlibpath_var=LD_LIBRARY_PATH | |
11364 | case $host_os in | |
6d2920c8 | 11365 | freebsd2.*) |
ce2cded5 L |
11366 | shlibpath_overrides_runpath=yes |
11367 | ;; | |
11368 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11369 | shlibpath_overrides_runpath=yes | |
11370 | hardcode_into_libs=yes | |
11371 | ;; | |
11372 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11373 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11374 | shlibpath_overrides_runpath=no | |
11375 | hardcode_into_libs=yes | |
11376 | ;; | |
11377 | *) # from 4.6 on, and DragonFly | |
11378 | shlibpath_overrides_runpath=yes | |
11379 | hardcode_into_libs=yes | |
11380 | ;; | |
11381 | esac | |
11382 | ;; | |
11383 | ||
11384 | gnu*) | |
11385 | version_type=linux | |
11386 | need_lib_prefix=no | |
11387 | need_version=no | |
11388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11389 | soname_spec='${libname}${release}${shared_ext}$major' | |
11390 | shlibpath_var=LD_LIBRARY_PATH | |
11391 | hardcode_into_libs=yes | |
11392 | ;; | |
11393 | ||
3725885a RW |
11394 | haiku*) |
11395 | version_type=linux | |
11396 | need_lib_prefix=no | |
11397 | need_version=no | |
11398 | dynamic_linker="$host_os runtime_loader" | |
11399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11400 | soname_spec='${libname}${release}${shared_ext}$major' | |
11401 | shlibpath_var=LIBRARY_PATH | |
11402 | shlibpath_overrides_runpath=yes | |
11403 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11404 | hardcode_into_libs=yes | |
11405 | ;; | |
11406 | ||
ce2cded5 L |
11407 | hpux9* | hpux10* | hpux11*) |
11408 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11409 | # link against other versions. | |
11410 | version_type=sunos | |
11411 | need_lib_prefix=no | |
11412 | need_version=no | |
11413 | case $host_cpu in | |
11414 | ia64*) | |
11415 | shrext_cmds='.so' | |
11416 | hardcode_into_libs=yes | |
11417 | dynamic_linker="$host_os dld.so" | |
11418 | shlibpath_var=LD_LIBRARY_PATH | |
11419 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11421 | soname_spec='${libname}${release}${shared_ext}$major' | |
11422 | if test "X$HPUX_IA64_MODE" = X32; then | |
11423 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11424 | else | |
11425 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11426 | fi | |
11427 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11428 | ;; | |
11429 | hppa*64*) | |
11430 | shrext_cmds='.sl' | |
11431 | hardcode_into_libs=yes | |
11432 | dynamic_linker="$host_os dld.sl" | |
11433 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11434 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11436 | soname_spec='${libname}${release}${shared_ext}$major' | |
11437 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11438 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11439 | ;; | |
11440 | *) | |
11441 | shrext_cmds='.sl' | |
11442 | dynamic_linker="$host_os dld.sl" | |
11443 | shlibpath_var=SHLIB_PATH | |
11444 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11446 | soname_spec='${libname}${release}${shared_ext}$major' | |
11447 | ;; | |
11448 | esac | |
3725885a | 11449 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 11450 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
11451 | # or fails outright, so override atomically: |
11452 | install_override_mode=555 | |
ce2cded5 L |
11453 | ;; |
11454 | ||
11455 | interix[3-9]*) | |
11456 | version_type=linux | |
11457 | need_lib_prefix=no | |
11458 | need_version=no | |
11459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11460 | soname_spec='${libname}${release}${shared_ext}$major' | |
11461 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11462 | shlibpath_var=LD_LIBRARY_PATH | |
11463 | shlibpath_overrides_runpath=no | |
11464 | hardcode_into_libs=yes | |
11465 | ;; | |
11466 | ||
11467 | irix5* | irix6* | nonstopux*) | |
11468 | case $host_os in | |
11469 | nonstopux*) version_type=nonstopux ;; | |
11470 | *) | |
11471 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11472 | version_type=linux | |
11473 | else | |
11474 | version_type=irix | |
11475 | fi ;; | |
11476 | esac | |
11477 | need_lib_prefix=no | |
11478 | need_version=no | |
11479 | soname_spec='${libname}${release}${shared_ext}$major' | |
11480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11481 | case $host_os in | |
11482 | irix5* | nonstopux*) | |
11483 | libsuff= shlibsuff= | |
11484 | ;; | |
11485 | *) | |
11486 | case $LD in # libtool.m4 will add one of these switches to LD | |
11487 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11488 | libsuff= shlibsuff= libmagic=32-bit;; | |
11489 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11490 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11491 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11492 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11493 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11494 | esac | |
11495 | ;; | |
11496 | esac | |
11497 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11498 | shlibpath_overrides_runpath=no | |
11499 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11500 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11501 | hardcode_into_libs=yes | |
11502 | ;; | |
11503 | ||
11504 | # No shared lib support for Linux oldld, aout, or coff. | |
11505 | linux*oldld* | linux*aout* | linux*coff*) | |
11506 | dynamic_linker=no | |
11507 | ;; | |
11508 | ||
11509 | # This must be Linux ELF. | |
58e24671 | 11510 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
11511 | version_type=linux |
11512 | need_lib_prefix=no | |
11513 | need_version=no | |
11514 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11515 | soname_spec='${libname}${release}${shared_ext}$major' | |
11516 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11517 | shlibpath_var=LD_LIBRARY_PATH | |
11518 | shlibpath_overrides_runpath=no | |
39144654 | 11519 | |
ce2cded5 | 11520 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
11521 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
11522 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
11523 | else |
11524 | lt_cv_shlibpath_overrides_runpath=no | |
11525 | save_LDFLAGS=$LDFLAGS | |
11526 | save_libdir=$libdir | |
11527 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11528 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 11529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11530 | /* end confdefs.h. */ |
11531 | ||
d7040cdb SE |
11532 | int |
11533 | main () | |
11534 | { | |
ce2cded5 | 11535 | |
d7040cdb SE |
11536 | ; |
11537 | return 0; | |
11538 | } | |
11539 | _ACEOF | |
81ecdfbb RW |
11540 | if ac_fn_c_try_link "$LINENO"; then : |
11541 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 11542 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 11543 | fi |
d7040cdb | 11544 | fi |
81ecdfbb RW |
11545 | rm -f core conftest.err conftest.$ac_objext \ |
11546 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
11547 | LDFLAGS=$save_LDFLAGS |
11548 | libdir=$save_libdir | |
11549 | ||
11550 | fi | |
11551 | ||
11552 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb | 11553 | |
ce2cded5 L |
11554 | # This implies no fast_install, which is unacceptable. |
11555 | # Some rework will be needed to allow for fast_install | |
11556 | # before this can be enabled. | |
11557 | hardcode_into_libs=yes | |
d7040cdb | 11558 | |
ce2cded5 L |
11559 | # Append ld.so.conf contents to the search path |
11560 | if test -f /etc/ld.so.conf; then | |
3725885a | 11561 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
ce2cded5 L |
11562 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11563 | fi | |
d7040cdb | 11564 | |
ce2cded5 L |
11565 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11566 | # powerpc, because MkLinux only supported shared libraries with the | |
11567 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11568 | # most powerpc-linux boxes support dynamic linking these days and | |
11569 | # people can always --disable-shared, the test was removed, and we | |
11570 | # assume the GNU/Linux dynamic linker is in use. | |
11571 | dynamic_linker='GNU/Linux ld.so' | |
11572 | ;; | |
d7040cdb | 11573 | |
ce2cded5 L |
11574 | netbsd*) |
11575 | version_type=sunos | |
11576 | need_lib_prefix=no | |
11577 | need_version=no | |
11578 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11580 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11581 | dynamic_linker='NetBSD (a.out) ld.so' | |
11582 | else | |
11583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11584 | soname_spec='${libname}${release}${shared_ext}$major' | |
11585 | dynamic_linker='NetBSD ld.elf_so' | |
11586 | fi | |
11587 | shlibpath_var=LD_LIBRARY_PATH | |
11588 | shlibpath_overrides_runpath=yes | |
11589 | hardcode_into_libs=yes | |
11590 | ;; | |
d7040cdb | 11591 | |
ce2cded5 L |
11592 | newsos6) |
11593 | version_type=linux | |
11594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11595 | shlibpath_var=LD_LIBRARY_PATH | |
11596 | shlibpath_overrides_runpath=yes | |
11597 | ;; | |
d7040cdb | 11598 | |
ce2cded5 L |
11599 | *nto* | *qnx*) |
11600 | version_type=qnx | |
11601 | need_lib_prefix=no | |
11602 | need_version=no | |
11603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11604 | soname_spec='${libname}${release}${shared_ext}$major' | |
11605 | shlibpath_var=LD_LIBRARY_PATH | |
11606 | shlibpath_overrides_runpath=no | |
11607 | hardcode_into_libs=yes | |
11608 | dynamic_linker='ldqnx.so' | |
11609 | ;; | |
d7040cdb | 11610 | |
ce2cded5 L |
11611 | openbsd*) |
11612 | version_type=sunos | |
11613 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11614 | need_lib_prefix=no | |
11615 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11616 | case $host_os in | |
11617 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11618 | *) need_version=no ;; | |
11619 | esac | |
11620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11621 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11622 | shlibpath_var=LD_LIBRARY_PATH | |
11623 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11624 | case $host_os in | |
11625 | openbsd2.[89] | openbsd2.[89].*) | |
11626 | shlibpath_overrides_runpath=no | |
11627 | ;; | |
11628 | *) | |
11629 | shlibpath_overrides_runpath=yes | |
11630 | ;; | |
11631 | esac | |
11632 | else | |
11633 | shlibpath_overrides_runpath=yes | |
11634 | fi | |
11635 | ;; | |
d7040cdb | 11636 | |
ce2cded5 L |
11637 | os2*) |
11638 | libname_spec='$name' | |
11639 | shrext_cmds=".dll" | |
11640 | need_lib_prefix=no | |
11641 | library_names_spec='$libname${shared_ext} $libname.a' | |
11642 | dynamic_linker='OS/2 ld.exe' | |
11643 | shlibpath_var=LIBPATH | |
11644 | ;; | |
d7040cdb | 11645 | |
ce2cded5 L |
11646 | osf3* | osf4* | osf5*) |
11647 | version_type=osf | |
11648 | need_lib_prefix=no | |
11649 | need_version=no | |
11650 | soname_spec='${libname}${release}${shared_ext}$major' | |
11651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11652 | shlibpath_var=LD_LIBRARY_PATH | |
11653 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11654 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11655 | ;; | |
d7040cdb | 11656 | |
ce2cded5 L |
11657 | rdos*) |
11658 | dynamic_linker=no | |
11659 | ;; | |
d7040cdb | 11660 | |
ce2cded5 L |
11661 | solaris*) |
11662 | version_type=linux | |
11663 | need_lib_prefix=no | |
11664 | need_version=no | |
11665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11666 | soname_spec='${libname}${release}${shared_ext}$major' | |
11667 | shlibpath_var=LD_LIBRARY_PATH | |
11668 | shlibpath_overrides_runpath=yes | |
11669 | hardcode_into_libs=yes | |
11670 | # ldd complains unless libraries are executable | |
11671 | postinstall_cmds='chmod +x $lib' | |
11672 | ;; | |
d7040cdb | 11673 | |
ce2cded5 L |
11674 | sunos4*) |
11675 | version_type=sunos | |
11676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11677 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11678 | shlibpath_var=LD_LIBRARY_PATH | |
11679 | shlibpath_overrides_runpath=yes | |
11680 | if test "$with_gnu_ld" = yes; then | |
11681 | need_lib_prefix=no | |
11682 | fi | |
11683 | need_version=yes | |
11684 | ;; | |
d7040cdb | 11685 | |
ce2cded5 L |
11686 | sysv4 | sysv4.3*) |
11687 | version_type=linux | |
11688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11689 | soname_spec='${libname}${release}${shared_ext}$major' | |
11690 | shlibpath_var=LD_LIBRARY_PATH | |
11691 | case $host_vendor in | |
11692 | sni) | |
11693 | shlibpath_overrides_runpath=no | |
11694 | need_lib_prefix=no | |
11695 | runpath_var=LD_RUN_PATH | |
11696 | ;; | |
11697 | siemens) | |
11698 | need_lib_prefix=no | |
11699 | ;; | |
11700 | motorola) | |
11701 | need_lib_prefix=no | |
11702 | need_version=no | |
11703 | shlibpath_overrides_runpath=no | |
11704 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11705 | ;; | |
11706 | esac | |
11707 | ;; | |
d7040cdb | 11708 | |
ce2cded5 L |
11709 | sysv4*MP*) |
11710 | if test -d /usr/nec ;then | |
11711 | version_type=linux | |
11712 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11713 | soname_spec='$libname${shared_ext}.$major' | |
11714 | shlibpath_var=LD_LIBRARY_PATH | |
11715 | fi | |
11716 | ;; | |
d7040cdb | 11717 | |
ce2cded5 L |
11718 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11719 | version_type=freebsd-elf | |
11720 | need_lib_prefix=no | |
11721 | need_version=no | |
11722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11723 | soname_spec='${libname}${release}${shared_ext}$major' | |
11724 | shlibpath_var=LD_LIBRARY_PATH | |
11725 | shlibpath_overrides_runpath=yes | |
11726 | hardcode_into_libs=yes | |
11727 | if test "$with_gnu_ld" = yes; then | |
11728 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11729 | else | |
11730 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11731 | case $host_os in | |
11732 | sco3.2v5*) | |
11733 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11734 | ;; | |
11735 | esac | |
11736 | fi | |
11737 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11738 | ;; | |
d7040cdb | 11739 | |
ce2cded5 L |
11740 | tpf*) |
11741 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11742 | version_type=linux | |
11743 | need_lib_prefix=no | |
11744 | need_version=no | |
b214d478 | 11745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
11746 | shlibpath_var=LD_LIBRARY_PATH |
11747 | shlibpath_overrides_runpath=no | |
11748 | hardcode_into_libs=yes | |
11749 | ;; | |
d7040cdb | 11750 | |
ce2cded5 L |
11751 | uts4*) |
11752 | version_type=linux | |
11753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11754 | soname_spec='${libname}${release}${shared_ext}$major' | |
11755 | shlibpath_var=LD_LIBRARY_PATH | |
11756 | ;; | |
d7040cdb | 11757 | |
ce2cded5 L |
11758 | *) |
11759 | dynamic_linker=no | |
11760 | ;; | |
11761 | esac | |
81ecdfbb RW |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11763 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
11764 | test "$dynamic_linker" = no && can_build_shared=no |
11765 | ||
11766 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11767 | if test "$GCC" = yes; then | |
11768 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb SE |
11769 | fi |
11770 | ||
b214d478 SE |
11771 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11772 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11773 | fi | |
11774 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11775 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11776 | fi | |
11777 | ||
d7040cdb SE |
11778 | |
11779 | ||
11780 | ||
11781 | ||
11782 | ||
11783 | ||
11784 | ||
11785 | ||
11786 | ||
11787 | ||
11788 | ||
d7040cdb | 11789 | |
d7040cdb | 11790 | |
d7040cdb | 11791 | |
d7040cdb | 11792 | |
d7040cdb SE |
11793 | |
11794 | ||
11795 | ||
11796 | ||
d7040cdb | 11797 | |
d7040cdb SE |
11798 | |
11799 | ||
11800 | ||
11801 | ||
11802 | ||
11803 | ||
11804 | ||
11805 | ||
11806 | ||
11807 | ||
11808 | ||
11809 | ||
11810 | ||
d7040cdb SE |
11811 | |
11812 | ||
11813 | ||
11814 | ||
d7040cdb SE |
11815 | |
11816 | ||
11817 | ||
11818 | ||
d7040cdb | 11819 | |
d7040cdb | 11820 | |
d7040cdb | 11821 | |
d7040cdb | 11822 | |
d7040cdb | 11823 | |
d7040cdb | 11824 | |
d7040cdb | 11825 | |
d7040cdb SE |
11826 | |
11827 | ||
11828 | ||
11829 | ||
11830 | ||
d7040cdb | 11831 | |
d7040cdb | 11832 | |
d7040cdb | 11833 | |
d7040cdb | 11834 | |
d7040cdb | 11835 | |
d7040cdb | 11836 | |
d7040cdb SE |
11837 | |
11838 | ||
11839 | ||
11840 | ||
11841 | ||
d7040cdb SE |
11842 | |
11843 | ||
d7040cdb | 11844 | |
d7040cdb | 11845 | |
d7040cdb | 11846 | |
d7040cdb | 11847 | |
ce2cded5 L |
11848 | |
11849 | ||
11850 | ||
11851 | ||
11852 | ||
11853 | ||
11854 | ||
11855 | ||
11856 | ||
11857 | ||
3725885a RW |
11858 | |
11859 | ||
11860 | ||
11861 | ||
11862 | ||
ce2cded5 L |
11863 | |
11864 | ||
11865 | ||
11866 | ||
11867 | ||
11868 | ||
81ecdfbb RW |
11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11870 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
11871 | hardcode_action= |
11872 | if test -n "$hardcode_libdir_flag_spec" || | |
11873 | test -n "$runpath_var" || | |
11874 | test "X$hardcode_automatic" = "Xyes" ; then | |
11875 | ||
11876 | # We can hardcode non-existent directories. | |
11877 | if test "$hardcode_direct" != no && | |
11878 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11879 | # have to relink, otherwise we might link with an installed library | |
11880 | # when we should be linking with a yet-to-be-installed one | |
11881 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11882 | test "$hardcode_minus_L" != no; then | |
11883 | # Linking always hardcodes the temporary library directory. | |
11884 | hardcode_action=relink | |
11885 | else | |
11886 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11887 | hardcode_action=immediate | |
d7040cdb | 11888 | fi |
d7040cdb | 11889 | else |
ce2cded5 L |
11890 | # We cannot hardcode anything, or else we can only hardcode existing |
11891 | # directories. | |
11892 | hardcode_action=unsupported | |
d7040cdb | 11893 | fi |
81ecdfbb RW |
11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11895 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb | 11896 | |
ce2cded5 L |
11897 | if test "$hardcode_action" = relink || |
11898 | test "$inherit_rpath" = yes; then | |
11899 | # Fast installation is not supported | |
11900 | enable_fast_install=no | |
11901 | elif test "$shlibpath_overrides_runpath" = yes || | |
11902 | test "$enable_shared" = no; then | |
11903 | # Fast installation is not necessary | |
11904 | enable_fast_install=needless | |
d7040cdb SE |
11905 | fi |
11906 | ||
d7040cdb | 11907 | |
d7040cdb | 11908 | |
d7040cdb | 11909 | |
d7040cdb | 11910 | |
d7040cdb | 11911 | |
ce2cded5 L |
11912 | if test "x$enable_dlopen" != xyes; then |
11913 | enable_dlopen=unknown | |
11914 | enable_dlopen_self=unknown | |
11915 | enable_dlopen_self_static=unknown | |
d7040cdb | 11916 | else |
ce2cded5 L |
11917 | lt_cv_dlopen=no |
11918 | lt_cv_dlopen_libs= | |
d7040cdb | 11919 | |
ce2cded5 L |
11920 | case $host_os in |
11921 | beos*) | |
11922 | lt_cv_dlopen="load_add_on" | |
11923 | lt_cv_dlopen_libs= | |
11924 | lt_cv_dlopen_self=yes | |
11925 | ;; | |
d7040cdb | 11926 | |
b214d478 | 11927 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11928 | lt_cv_dlopen="LoadLibrary" |
11929 | lt_cv_dlopen_libs= | |
11930 | ;; | |
11931 | ||
11932 | cygwin*) | |
11933 | lt_cv_dlopen="dlopen" | |
11934 | lt_cv_dlopen_libs= | |
11935 | ;; | |
11936 | ||
11937 | darwin*) | |
11938 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11940 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11941 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11942 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11943 | else |
ce2cded5 L |
11944 | ac_check_lib_save_LIBS=$LIBS |
11945 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11947 | /* end confdefs.h. */ |
11948 | ||
81ecdfbb RW |
11949 | /* Override any GCC internal prototype to avoid an error. |
11950 | Use char because int might match the return type of a GCC | |
11951 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11952 | #ifdef __cplusplus |
11953 | extern "C" | |
11954 | #endif | |
ce2cded5 L |
11955 | char dlopen (); |
11956 | int | |
11957 | main () | |
11958 | { | |
81ecdfbb | 11959 | return dlopen (); |
ce2cded5 L |
11960 | ; |
11961 | return 0; | |
11962 | } | |
11963 | _ACEOF | |
81ecdfbb | 11964 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11965 | ac_cv_lib_dl_dlopen=yes |
11966 | else | |
81ecdfbb | 11967 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11968 | fi |
81ecdfbb RW |
11969 | rm -f core conftest.err conftest.$ac_objext \ |
11970 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11971 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11972 | fi |
81ecdfbb RW |
11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11974 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11975 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11976 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11977 | else |
d7040cdb | 11978 | |
ce2cded5 L |
11979 | lt_cv_dlopen="dyld" |
11980 | lt_cv_dlopen_libs= | |
11981 | lt_cv_dlopen_self=yes | |
11982 | ||
d7040cdb | 11983 | fi |
ce2cded5 L |
11984 | |
11985 | ;; | |
11986 | ||
11987 | *) | |
81ecdfbb RW |
11988 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11989 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
11990 | lt_cv_dlopen="shl_load" |
11991 | else | |
81ecdfbb RW |
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11993 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11994 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
11995 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11996 | else |
11997 | ac_check_lib_save_LIBS=$LIBS | |
11998 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 12000 | /* end confdefs.h. */ |
d7040cdb | 12001 | |
81ecdfbb RW |
12002 | /* Override any GCC internal prototype to avoid an error. |
12003 | Use char because int might match the return type of a GCC | |
12004 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
12005 | #ifdef __cplusplus |
12006 | extern "C" | |
12007 | #endif | |
ce2cded5 L |
12008 | char shl_load (); |
12009 | int | |
12010 | main () | |
12011 | { | |
81ecdfbb | 12012 | return shl_load (); |
ce2cded5 L |
12013 | ; |
12014 | return 0; | |
12015 | } | |
12016 | _ACEOF | |
81ecdfbb | 12017 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
12018 | ac_cv_lib_dld_shl_load=yes |
12019 | else | |
81ecdfbb | 12020 | ac_cv_lib_dld_shl_load=no |
ce2cded5 | 12021 | fi |
81ecdfbb RW |
12022 | rm -f core conftest.err conftest.$ac_objext \ |
12023 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
12024 | LIBS=$ac_check_lib_save_LIBS |
12025 | fi | |
81ecdfbb RW |
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12027 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12028 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
b214d478 | 12029 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 12030 | else |
81ecdfbb RW |
12031 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
12032 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
12033 | lt_cv_dlopen="dlopen" |
12034 | else | |
81ecdfbb RW |
12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12036 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12037 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
12038 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 12039 | else |
ce2cded5 L |
12040 | ac_check_lib_save_LIBS=$LIBS |
12041 | LIBS="-ldl $LIBS" | |
81ecdfbb | 12042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
12043 | /* end confdefs.h. */ |
12044 | ||
81ecdfbb RW |
12045 | /* Override any GCC internal prototype to avoid an error. |
12046 | Use char because int might match the return type of a GCC | |
12047 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
12048 | #ifdef __cplusplus |
12049 | extern "C" | |
12050 | #endif | |
ce2cded5 | 12051 | char dlopen (); |
d7040cdb SE |
12052 | int |
12053 | main () | |
12054 | { | |
81ecdfbb | 12055 | return dlopen (); |
d7040cdb SE |
12056 | ; |
12057 | return 0; | |
12058 | } | |
12059 | _ACEOF | |
81ecdfbb | 12060 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 12061 | ac_cv_lib_dl_dlopen=yes |
d7040cdb | 12062 | else |
81ecdfbb | 12063 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 12064 | fi |
81ecdfbb RW |
12065 | rm -f core conftest.err conftest.$ac_objext \ |
12066 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 12067 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 12068 | fi |
81ecdfbb RW |
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12070 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12071 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 12072 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 12073 | else |
81ecdfbb RW |
12074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12075 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12076 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
12077 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 12078 | else |
ce2cded5 L |
12079 | ac_check_lib_save_LIBS=$LIBS |
12080 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 12081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 12082 | /* end confdefs.h. */ |
d7040cdb | 12083 | |
81ecdfbb RW |
12084 | /* Override any GCC internal prototype to avoid an error. |
12085 | Use char because int might match the return type of a GCC | |
12086 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
12087 | #ifdef __cplusplus |
12088 | extern "C" | |
12089 | #endif | |
ce2cded5 | 12090 | char dlopen (); |
d7040cdb SE |
12091 | int |
12092 | main () | |
12093 | { | |
81ecdfbb | 12094 | return dlopen (); |
d7040cdb SE |
12095 | ; |
12096 | return 0; | |
12097 | } | |
12098 | _ACEOF | |
81ecdfbb | 12099 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 12100 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 12101 | else |
81ecdfbb | 12102 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 12103 | fi |
81ecdfbb RW |
12104 | rm -f core conftest.err conftest.$ac_objext \ |
12105 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 12106 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 12107 | fi |
81ecdfbb RW |
12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12109 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12110 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
12111 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12112 | else | |
81ecdfbb RW |
12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12114 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12115 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
12116 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
12117 | else |
12118 | ac_check_lib_save_LIBS=$LIBS | |
12119 | LIBS="-ldld $LIBS" | |
81ecdfbb | 12120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
12121 | /* end confdefs.h. */ |
12122 | ||
81ecdfbb RW |
12123 | /* Override any GCC internal prototype to avoid an error. |
12124 | Use char because int might match the return type of a GCC | |
12125 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
12126 | #ifdef __cplusplus |
12127 | extern "C" | |
12128 | #endif | |
ce2cded5 | 12129 | char dld_link (); |
d7040cdb SE |
12130 | int |
12131 | main () | |
12132 | { | |
81ecdfbb | 12133 | return dld_link (); |
d7040cdb SE |
12134 | ; |
12135 | return 0; | |
12136 | } | |
12137 | _ACEOF | |
81ecdfbb | 12138 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 12139 | ac_cv_lib_dld_dld_link=yes |
d7040cdb | 12140 | else |
81ecdfbb | 12141 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 12142 | fi |
81ecdfbb RW |
12143 | rm -f core conftest.err conftest.$ac_objext \ |
12144 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
12145 | LIBS=$ac_check_lib_save_LIBS |
12146 | fi | |
81ecdfbb RW |
12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12148 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12149 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
b214d478 | 12150 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
12151 | fi |
12152 | ||
12153 | ||
12154 | fi | |
12155 | ||
12156 | ||
12157 | fi | |
12158 | ||
12159 | ||
12160 | fi | |
12161 | ||
12162 | ||
12163 | fi | |
12164 | ||
12165 | ||
12166 | fi | |
12167 | ||
12168 | ;; | |
12169 | esac | |
12170 | ||
12171 | if test "x$lt_cv_dlopen" != xno; then | |
12172 | enable_dlopen=yes | |
12173 | else | |
12174 | enable_dlopen=no | |
12175 | fi | |
12176 | ||
12177 | case $lt_cv_dlopen in | |
12178 | dlopen) | |
12179 | save_CPPFLAGS="$CPPFLAGS" | |
12180 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12181 | ||
12182 | save_LDFLAGS="$LDFLAGS" | |
12183 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12184 | ||
12185 | save_LIBS="$LIBS" | |
12186 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12187 | ||
81ecdfbb RW |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12189 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12190 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
12191 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
12192 | else |
12193 | if test "$cross_compiling" = yes; then : | |
12194 | lt_cv_dlopen_self=cross | |
12195 | else | |
12196 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12197 | lt_status=$lt_dlunknown | |
12198 | cat > conftest.$ac_ext <<_LT_EOF | |
270c9937 | 12199 | #line 12199 "configure" |
ce2cded5 L |
12200 | #include "confdefs.h" |
12201 | ||
12202 | #if HAVE_DLFCN_H | |
12203 | #include <dlfcn.h> | |
12204 | #endif | |
12205 | ||
12206 | #include <stdio.h> | |
12207 | ||
12208 | #ifdef RTLD_GLOBAL | |
12209 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12210 | #else | |
12211 | # ifdef DL_GLOBAL | |
12212 | # define LT_DLGLOBAL DL_GLOBAL | |
12213 | # else | |
12214 | # define LT_DLGLOBAL 0 | |
12215 | # endif | |
12216 | #endif | |
12217 | ||
12218 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12219 | find out it does not work in some platform. */ | |
12220 | #ifndef LT_DLLAZY_OR_NOW | |
12221 | # ifdef RTLD_LAZY | |
12222 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12223 | # else | |
12224 | # ifdef DL_LAZY | |
12225 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12226 | # else | |
12227 | # ifdef RTLD_NOW | |
12228 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12229 | # else | |
12230 | # ifdef DL_NOW | |
12231 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12232 | # else | |
12233 | # define LT_DLLAZY_OR_NOW 0 | |
12234 | # endif | |
12235 | # endif | |
12236 | # endif | |
12237 | # endif | |
12238 | #endif | |
12239 | ||
3725885a RW |
12240 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12241 | correspondingly for the symbols needed. */ | |
12242 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12243 | void fnord () __attribute__((visibility("default"))); | |
12244 | #endif | |
12245 | ||
12246 | void fnord () { int i=42; } | |
ce2cded5 | 12247 | int main () |
d7040cdb | 12248 | { |
ce2cded5 L |
12249 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12250 | int status = $lt_dlunknown; | |
12251 | ||
12252 | if (self) | |
12253 | { | |
12254 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
12255 | else |
12256 | { | |
12257 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12258 | else puts (dlerror ()); | |
12259 | } | |
ce2cded5 L |
12260 | /* dlclose (self); */ |
12261 | } | |
12262 | else | |
12263 | puts (dlerror ()); | |
12264 | ||
b214d478 | 12265 | return status; |
d7040cdb | 12266 | } |
ce2cded5 | 12267 | _LT_EOF |
81ecdfbb | 12268 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 12269 | (eval $ac_link) 2>&5 |
d7040cdb | 12270 | ac_status=$? |
81ecdfbb RW |
12271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12272 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
12273 | (./conftest; exit; ) >&5 2>/dev/null |
12274 | lt_status=$? | |
12275 | case x$lt_status in | |
12276 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12277 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12278 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12279 | esac | |
12280 | else : | |
12281 | # compilation failed | |
12282 | lt_cv_dlopen_self=no | |
12283 | fi | |
12284 | fi | |
12285 | rm -fr conftest* | |
12286 | ||
12287 | ||
12288 | fi | |
81ecdfbb RW |
12289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12290 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
12291 | |
12292 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12293 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12295 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12296 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
12297 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
12298 | else |
12299 | if test "$cross_compiling" = yes; then : | |
12300 | lt_cv_dlopen_self_static=cross | |
12301 | else | |
12302 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12303 | lt_status=$lt_dlunknown | |
12304 | cat > conftest.$ac_ext <<_LT_EOF | |
270c9937 | 12305 | #line 12305 "configure" |
ce2cded5 L |
12306 | #include "confdefs.h" |
12307 | ||
12308 | #if HAVE_DLFCN_H | |
12309 | #include <dlfcn.h> | |
12310 | #endif | |
12311 | ||
12312 | #include <stdio.h> | |
12313 | ||
12314 | #ifdef RTLD_GLOBAL | |
12315 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12316 | #else | |
12317 | # ifdef DL_GLOBAL | |
12318 | # define LT_DLGLOBAL DL_GLOBAL | |
12319 | # else | |
12320 | # define LT_DLGLOBAL 0 | |
12321 | # endif | |
12322 | #endif | |
12323 | ||
12324 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12325 | find out it does not work in some platform. */ | |
12326 | #ifndef LT_DLLAZY_OR_NOW | |
12327 | # ifdef RTLD_LAZY | |
12328 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12329 | # else | |
12330 | # ifdef DL_LAZY | |
12331 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12332 | # else | |
12333 | # ifdef RTLD_NOW | |
12334 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12335 | # else | |
12336 | # ifdef DL_NOW | |
12337 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12338 | # else | |
12339 | # define LT_DLLAZY_OR_NOW 0 | |
12340 | # endif | |
12341 | # endif | |
12342 | # endif | |
12343 | # endif | |
12344 | #endif | |
12345 | ||
3cb62297 L |
12346 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12347 | correspondingly for the symbols needed. */ | |
12348 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12349 | void fnord () __attribute__((visibility("default"))); | |
12350 | #endif | |
12351 | ||
12352 | void fnord () { int i=42; } | |
12353 | int main () | |
12354 | { | |
12355 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12356 | int status = $lt_dlunknown; | |
12357 | ||
12358 | if (self) | |
12359 | { | |
12360 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12361 | else | |
12362 | { | |
12363 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12364 | else puts (dlerror ()); | |
12365 | } | |
12366 | /* dlclose (self); */ | |
12367 | } | |
12368 | else | |
12369 | puts (dlerror ()); | |
12370 | ||
12371 | return status; | |
12372 | } | |
12373 | _LT_EOF | |
12374 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12375 | (eval $ac_link) 2>&5 | |
12376 | ac_status=$? | |
12377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12378 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12379 | (./conftest; exit; ) >&5 2>/dev/null | |
12380 | lt_status=$? | |
12381 | case x$lt_status in | |
12382 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12383 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12384 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12385 | esac | |
12386 | else : | |
12387 | # compilation failed | |
12388 | lt_cv_dlopen_self_static=no | |
12389 | fi | |
12390 | fi | |
12391 | rm -fr conftest* | |
12392 | ||
12393 | ||
12394 | fi | |
12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12396 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12397 | fi | |
12398 | ||
12399 | CPPFLAGS="$save_CPPFLAGS" | |
12400 | LDFLAGS="$save_LDFLAGS" | |
12401 | LIBS="$save_LIBS" | |
12402 | ;; | |
12403 | esac | |
12404 | ||
12405 | case $lt_cv_dlopen_self in | |
12406 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12407 | *) enable_dlopen_self=unknown ;; | |
12408 | esac | |
12409 | ||
12410 | case $lt_cv_dlopen_self_static in | |
12411 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12412 | *) enable_dlopen_self_static=unknown ;; | |
12413 | esac | |
12414 | fi | |
12415 | ||
12416 | ||
12417 | ||
12418 | ||
12419 | ||
12420 | ||
12421 | ||
12422 | ||
12423 | ||
12424 | ||
12425 | ||
12426 | ||
12427 | ||
12428 | ||
12429 | ||
12430 | ||
12431 | ||
12432 | striplib= | |
12433 | old_striplib= | |
12434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12435 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12436 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12437 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12438 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12440 | $as_echo "yes" >&6; } | |
12441 | else | |
12442 | # FIXME - insert some real tests, host_os isn't really good enough | |
12443 | case $host_os in | |
12444 | darwin*) | |
12445 | if test -n "$STRIP" ; then | |
12446 | striplib="$STRIP -x" | |
12447 | old_striplib="$STRIP -S" | |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12449 | $as_echo "yes" >&6; } | |
12450 | else | |
12451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12452 | $as_echo "no" >&6; } | |
12453 | fi | |
12454 | ;; | |
12455 | *) | |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12457 | $as_echo "no" >&6; } | |
12458 | ;; | |
12459 | esac | |
12460 | fi | |
12461 | ||
12462 | ||
12463 | ||
12464 | ||
12465 | ||
12466 | ||
12467 | ||
12468 | ||
12469 | ||
12470 | ||
12471 | ||
12472 | ||
12473 | # Report which library types will actually be built | |
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12475 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12477 | $as_echo "$can_build_shared" >&6; } | |
12478 | ||
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12480 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12481 | test "$can_build_shared" = "no" && enable_shared=no | |
12482 | ||
12483 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12484 | # are all built from PIC. | |
12485 | case $host_os in | |
12486 | aix3*) | |
12487 | test "$enable_shared" = yes && enable_static=no | |
12488 | if test -n "$RANLIB"; then | |
12489 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12490 | postinstall_cmds='$RANLIB $lib' | |
12491 | fi | |
12492 | ;; | |
12493 | ||
12494 | aix[4-9]*) | |
12495 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12496 | test "$enable_shared" = yes && enable_static=no | |
12497 | fi | |
12498 | ;; | |
12499 | esac | |
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12501 | $as_echo "$enable_shared" >&6; } | |
12502 | ||
12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12504 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12505 | # Make sure either enable_shared or enable_static is yes. | |
12506 | test "$enable_shared" = yes || enable_static=yes | |
12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12508 | $as_echo "$enable_static" >&6; } | |
12509 | ||
12510 | ||
12511 | ||
12512 | ||
12513 | fi | |
12514 | ac_ext=c | |
12515 | ac_cpp='$CPP $CPPFLAGS' | |
12516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12519 | ||
12520 | CC="$lt_save_CC" | |
12521 | ||
12522 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12523 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12524 | (test "X$CXX" != "Xg++"))) ; then | |
12525 | ac_ext=cpp | |
12526 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12527 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12528 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12529 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12531 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12532 | if test -z "$CXXCPP"; then | |
12533 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
12534 | $as_echo_n "(cached) " >&6 | |
12535 | else | |
12536 | # Double quotes because CXXCPP needs to be expanded | |
12537 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12538 | do | |
12539 | ac_preproc_ok=false | |
12540 | for ac_cxx_preproc_warn_flag in '' yes | |
12541 | do | |
12542 | # Use a header file that comes with gcc, so configuring glibc | |
12543 | # with a fresh cross-compiler works. | |
12544 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12545 | # <limits.h> exists even on freestanding compilers. | |
12546 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12547 | # not just through cpp. "Syntax error" is here to catch this case. | |
12548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12549 | /* end confdefs.h. */ | |
12550 | #ifdef __STDC__ | |
12551 | # include <limits.h> | |
12552 | #else | |
12553 | # include <assert.h> | |
12554 | #endif | |
12555 | Syntax error | |
12556 | _ACEOF | |
12557 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12558 | ||
12559 | else | |
12560 | # Broken: fails on valid input. | |
12561 | continue | |
12562 | fi | |
12563 | rm -f conftest.err conftest.$ac_ext | |
12564 | ||
12565 | # OK, works on sane cases. Now check whether nonexistent headers | |
12566 | # can be detected and how. | |
12567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12568 | /* end confdefs.h. */ | |
12569 | #include <ac_nonexistent.h> | |
12570 | _ACEOF | |
12571 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12572 | # Broken: success on invalid input. | |
12573 | continue | |
12574 | else | |
12575 | # Passes both tests. | |
12576 | ac_preproc_ok=: | |
12577 | break | |
12578 | fi | |
12579 | rm -f conftest.err conftest.$ac_ext | |
12580 | ||
12581 | done | |
12582 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12583 | rm -f conftest.err conftest.$ac_ext | |
12584 | if $ac_preproc_ok; then : | |
12585 | break | |
12586 | fi | |
12587 | ||
12588 | done | |
12589 | ac_cv_prog_CXXCPP=$CXXCPP | |
12590 | ||
12591 | fi | |
12592 | CXXCPP=$ac_cv_prog_CXXCPP | |
12593 | else | |
12594 | ac_cv_prog_CXXCPP=$CXXCPP | |
12595 | fi | |
12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12597 | $as_echo "$CXXCPP" >&6; } | |
12598 | ac_preproc_ok=false | |
12599 | for ac_cxx_preproc_warn_flag in '' yes | |
12600 | do | |
12601 | # Use a header file that comes with gcc, so configuring glibc | |
12602 | # with a fresh cross-compiler works. | |
12603 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12604 | # <limits.h> exists even on freestanding compilers. | |
12605 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12606 | # not just through cpp. "Syntax error" is here to catch this case. | |
12607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12608 | /* end confdefs.h. */ | |
12609 | #ifdef __STDC__ | |
12610 | # include <limits.h> | |
12611 | #else | |
12612 | # include <assert.h> | |
12613 | #endif | |
12614 | Syntax error | |
12615 | _ACEOF | |
12616 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12617 | ||
12618 | else | |
12619 | # Broken: fails on valid input. | |
12620 | continue | |
12621 | fi | |
12622 | rm -f conftest.err conftest.$ac_ext | |
12623 | ||
12624 | # OK, works on sane cases. Now check whether nonexistent headers | |
12625 | # can be detected and how. | |
12626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12627 | /* end confdefs.h. */ | |
12628 | #include <ac_nonexistent.h> | |
12629 | _ACEOF | |
12630 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12631 | # Broken: success on invalid input. | |
12632 | continue | |
12633 | else | |
12634 | # Passes both tests. | |
12635 | ac_preproc_ok=: | |
12636 | break | |
12637 | fi | |
12638 | rm -f conftest.err conftest.$ac_ext | |
12639 | ||
12640 | done | |
12641 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12642 | rm -f conftest.err conftest.$ac_ext | |
12643 | if $ac_preproc_ok; then : | |
12644 | ||
12645 | else | |
12646 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12648 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
12649 | See \`config.log' for more details." "$LINENO" 5; } | |
12650 | fi | |
12651 | ||
12652 | ac_ext=c | |
12653 | ac_cpp='$CPP $CPPFLAGS' | |
12654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12657 | ||
12658 | else | |
12659 | _lt_caught_CXX_error=yes | |
12660 | fi | |
12661 | ||
12662 | ac_ext=cpp | |
12663 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12664 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12665 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12666 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12667 | ||
12668 | archive_cmds_need_lc_CXX=no | |
12669 | allow_undefined_flag_CXX= | |
12670 | always_export_symbols_CXX=no | |
12671 | archive_expsym_cmds_CXX= | |
12672 | compiler_needs_object_CXX=no | |
12673 | export_dynamic_flag_spec_CXX= | |
12674 | hardcode_direct_CXX=no | |
12675 | hardcode_direct_absolute_CXX=no | |
12676 | hardcode_libdir_flag_spec_CXX= | |
12677 | hardcode_libdir_flag_spec_ld_CXX= | |
12678 | hardcode_libdir_separator_CXX= | |
12679 | hardcode_minus_L_CXX=no | |
12680 | hardcode_shlibpath_var_CXX=unsupported | |
12681 | hardcode_automatic_CXX=no | |
12682 | inherit_rpath_CXX=no | |
12683 | module_cmds_CXX= | |
12684 | module_expsym_cmds_CXX= | |
12685 | link_all_deplibs_CXX=unknown | |
12686 | old_archive_cmds_CXX=$old_archive_cmds | |
12687 | reload_flag_CXX=$reload_flag | |
12688 | reload_cmds_CXX=$reload_cmds | |
12689 | no_undefined_flag_CXX= | |
12690 | whole_archive_flag_spec_CXX= | |
12691 | enable_shared_with_static_runtimes_CXX=no | |
12692 | ||
12693 | # Source file extension for C++ test sources. | |
12694 | ac_ext=cpp | |
12695 | ||
12696 | # Object file extension for compiled C++ test sources. | |
12697 | objext=o | |
12698 | objext_CXX=$objext | |
12699 | ||
12700 | # No sense in running all these tests if we already determined that | |
12701 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12702 | # are currently assumed to apply to all compilers on this platform, | |
12703 | # and will be corrupted by setting them based on a non-working compiler. | |
12704 | if test "$_lt_caught_CXX_error" != yes; then | |
12705 | # Code to be used in simple compile tests | |
12706 | lt_simple_compile_test_code="int some_variable = 0;" | |
12707 | ||
12708 | # Code to be used in simple link tests | |
12709 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12710 | ||
12711 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12712 | ||
12713 | ||
12714 | ||
12715 | ||
12716 | ||
12717 | ||
12718 | # If no C compiler was specified, use CC. | |
12719 | LTCC=${LTCC-"$CC"} | |
12720 | ||
12721 | # If no C compiler flags were specified, use CFLAGS. | |
12722 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12723 | ||
12724 | # Allow CC to be a program name with arguments. | |
12725 | compiler=$CC | |
12726 | ||
12727 | ||
12728 | # save warnings/boilerplate of simple test code | |
12729 | ac_outfile=conftest.$ac_objext | |
12730 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12731 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12732 | _lt_compiler_boilerplate=`cat conftest.err` | |
12733 | $RM conftest* | |
12734 | ||
12735 | ac_outfile=conftest.$ac_objext | |
12736 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12737 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12738 | _lt_linker_boilerplate=`cat conftest.err` | |
12739 | $RM -r conftest* | |
12740 | ||
12741 | ||
12742 | # Allow CC to be a program name with arguments. | |
12743 | lt_save_CC=$CC | |
12744 | lt_save_LD=$LD | |
12745 | lt_save_GCC=$GCC | |
12746 | GCC=$GXX | |
12747 | lt_save_with_gnu_ld=$with_gnu_ld | |
12748 | lt_save_path_LD=$lt_cv_path_LD | |
12749 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12750 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12751 | else | |
12752 | $as_unset lt_cv_prog_gnu_ld | |
12753 | fi | |
12754 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12755 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12756 | else | |
12757 | $as_unset lt_cv_path_LD | |
12758 | fi | |
12759 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12760 | CC=${CXX-"c++"} | |
12761 | compiler=$CC | |
12762 | compiler_CXX=$CC | |
12763 | for cc_temp in $compiler""; do | |
12764 | case $cc_temp in | |
12765 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12766 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12767 | \-*) ;; | |
12768 | *) break;; | |
12769 | esac | |
12770 | done | |
12771 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12772 | ||
12773 | ||
12774 | if test -n "$compiler"; then | |
12775 | # We don't want -fno-exception when compiling C++ code, so set the | |
12776 | # no_builtin_flag separately | |
12777 | if test "$GXX" = yes; then | |
12778 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12779 | else | |
12780 | lt_prog_compiler_no_builtin_flag_CXX= | |
12781 | fi | |
12782 | ||
12783 | if test "$GXX" = yes; then | |
12784 | # Set up default GNU C++ configuration | |
12785 | ||
12786 | ||
12787 | ||
12788 | # Check whether --with-gnu-ld was given. | |
12789 | if test "${with_gnu_ld+set}" = set; then : | |
12790 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12791 | else | |
12792 | with_gnu_ld=no | |
12793 | fi | |
12794 | ||
12795 | ac_prog=ld | |
12796 | if test "$GCC" = yes; then | |
12797 | # Check if gcc -print-prog-name=ld gives a path. | |
12798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12799 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12800 | case $host in | |
12801 | *-*-mingw*) | |
12802 | # gcc leaves a trailing carriage return which upsets mingw | |
12803 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12804 | *) | |
12805 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12806 | esac | |
12807 | case $ac_prog in | |
12808 | # Accept absolute paths. | |
12809 | [\\/]* | ?:[\\/]*) | |
12810 | re_direlt='/[^/][^/]*/\.\./' | |
12811 | # Canonicalize the pathname of ld | |
12812 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12813 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12814 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12815 | done | |
12816 | test -z "$LD" && LD="$ac_prog" | |
12817 | ;; | |
12818 | "") | |
12819 | # If it fails, then pretend we aren't using GCC. | |
12820 | ac_prog=ld | |
12821 | ;; | |
12822 | *) | |
12823 | # If it is relative, then search for the first ld in PATH. | |
12824 | with_gnu_ld=unknown | |
12825 | ;; | |
12826 | esac | |
12827 | elif test "$with_gnu_ld" = yes; then | |
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12829 | $as_echo_n "checking for GNU ld... " >&6; } | |
12830 | else | |
12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12832 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
12833 | fi | |
12834 | if test "${lt_cv_path_LD+set}" = set; then : | |
12835 | $as_echo_n "(cached) " >&6 | |
12836 | else | |
12837 | if test -z "$LD"; then | |
12838 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12839 | for ac_dir in $PATH; do | |
12840 | IFS="$lt_save_ifs" | |
12841 | test -z "$ac_dir" && ac_dir=. | |
12842 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12843 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12844 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12845 | # but apparently some variants of GNU ld only accept -v. | |
12846 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12847 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12848 | *GNU* | *'with BFD'*) | |
12849 | test "$with_gnu_ld" != no && break | |
12850 | ;; | |
12851 | *) | |
12852 | test "$with_gnu_ld" != yes && break | |
12853 | ;; | |
12854 | esac | |
12855 | fi | |
12856 | done | |
12857 | IFS="$lt_save_ifs" | |
12858 | else | |
12859 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12860 | fi | |
12861 | fi | |
12862 | ||
12863 | LD="$lt_cv_path_LD" | |
12864 | if test -n "$LD"; then | |
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12866 | $as_echo "$LD" >&6; } | |
12867 | else | |
12868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12869 | $as_echo "no" >&6; } | |
12870 | fi | |
12871 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
12872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
12873 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
12874 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
12875 | $as_echo_n "(cached) " >&6 | |
12876 | else | |
12877 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12878 | case `$LD -v 2>&1 </dev/null` in | |
12879 | *GNU* | *'with BFD'*) | |
12880 | lt_cv_prog_gnu_ld=yes | |
12881 | ;; | |
12882 | *) | |
12883 | lt_cv_prog_gnu_ld=no | |
12884 | ;; | |
12885 | esac | |
12886 | fi | |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12888 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12889 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12890 | ||
12891 | ||
12892 | ||
12893 | ||
12894 | ||
12895 | ||
12896 | ||
12897 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12898 | # archiving commands below assume that GNU ld is being used. | |
12899 | if test "$with_gnu_ld" = yes; then | |
12900 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12901 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12902 | ||
12903 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12904 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12905 | ||
12906 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12907 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12908 | # investigate it a little bit more. (MM) | |
12909 | wlarc='${wl}' | |
12910 | ||
12911 | # ancient GNU ld didn't support --whole-archive et. al. | |
12912 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12913 | $GREP 'no-whole-archive' > /dev/null; then | |
12914 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12915 | else | |
12916 | whole_archive_flag_spec_CXX= | |
12917 | fi | |
12918 | else | |
12919 | with_gnu_ld=no | |
12920 | wlarc= | |
12921 | ||
12922 | # A generic and very simple default shared library creation | |
12923 | # command for GNU C++ for the case where it uses the native | |
12924 | # linker, instead of GNU ld. If possible, this setting should | |
12925 | # overridden to take advantage of the native linker features on | |
12926 | # the platform it is being used on. | |
12927 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12928 | fi | |
12929 | ||
12930 | # Commands to make compiler produce verbose output that lists | |
12931 | # what "hidden" libraries, object files and flags are used when | |
12932 | # linking a shared library. | |
12933 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12934 | ||
12935 | else | |
12936 | GXX=no | |
12937 | with_gnu_ld=no | |
12938 | wlarc= | |
12939 | fi | |
12940 | ||
12941 | # PORTME: fill in a description of your system's C++ link characteristics | |
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12943 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12944 | ld_shlibs_CXX=yes | |
12945 | case $host_os in | |
12946 | aix3*) | |
12947 | # FIXME: insert proper C++ library support | |
12948 | ld_shlibs_CXX=no | |
12949 | ;; | |
12950 | aix[4-9]*) | |
12951 | if test "$host_cpu" = ia64; then | |
12952 | # On IA64, the linker does run time linking by default, so we don't | |
12953 | # have to do anything special. | |
12954 | aix_use_runtimelinking=no | |
12955 | exp_sym_flag='-Bexport' | |
12956 | no_entry_flag="" | |
12957 | else | |
12958 | aix_use_runtimelinking=no | |
12959 | ||
12960 | # Test if we are trying to use run time linking or normal | |
12961 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12962 | # need to do runtime linking. | |
12963 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12964 | for ld_flag in $LDFLAGS; do | |
12965 | case $ld_flag in | |
12966 | *-brtl*) | |
12967 | aix_use_runtimelinking=yes | |
12968 | break | |
12969 | ;; | |
12970 | esac | |
12971 | done | |
12972 | ;; | |
12973 | esac | |
12974 | ||
12975 | exp_sym_flag='-bexport' | |
12976 | no_entry_flag='-bnoentry' | |
12977 | fi | |
12978 | ||
12979 | # When large executables or shared objects are built, AIX ld can | |
12980 | # have problems creating the table of contents. If linking a library | |
12981 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12982 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12983 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12984 | ||
12985 | archive_cmds_CXX='' | |
12986 | hardcode_direct_CXX=yes | |
12987 | hardcode_direct_absolute_CXX=yes | |
12988 | hardcode_libdir_separator_CXX=':' | |
12989 | link_all_deplibs_CXX=yes | |
12990 | file_list_spec_CXX='${wl}-f,' | |
12991 | ||
12992 | if test "$GXX" = yes; then | |
12993 | case $host_os in aix4.[012]|aix4.[012].*) | |
12994 | # We only want to do this on AIX 4.2 and lower, the check | |
12995 | # below for broken collect2 doesn't work under 4.3+ | |
12996 | collect2name=`${CC} -print-prog-name=collect2` | |
12997 | if test -f "$collect2name" && | |
12998 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12999 | then | |
13000 | # We have reworked collect2 | |
13001 | : | |
13002 | else | |
13003 | # We have old collect2 | |
13004 | hardcode_direct_CXX=unsupported | |
13005 | # It fails to find uninstalled libraries when the uninstalled | |
13006 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13007 | # to unsupported forces relinking | |
13008 | hardcode_minus_L_CXX=yes | |
13009 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13010 | hardcode_libdir_separator_CXX= | |
13011 | fi | |
13012 | esac | |
13013 | shared_flag='-shared' | |
13014 | if test "$aix_use_runtimelinking" = yes; then | |
13015 | shared_flag="$shared_flag "'${wl}-G' | |
13016 | fi | |
13017 | else | |
13018 | # not using gcc | |
13019 | if test "$host_cpu" = ia64; then | |
13020 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13021 | # chokes on -Wl,-G. The following line is correct: | |
13022 | shared_flag='-G' | |
13023 | else | |
13024 | if test "$aix_use_runtimelinking" = yes; then | |
13025 | shared_flag='${wl}-G' | |
13026 | else | |
13027 | shared_flag='${wl}-bM:SRE' | |
13028 | fi | |
13029 | fi | |
13030 | fi | |
13031 | ||
13032 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
13033 | # It seems that -bexpall does not export symbols beginning with | |
13034 | # underscore (_), so it is better to generate a list of symbols to | |
13035 | # export. | |
13036 | always_export_symbols_CXX=yes | |
13037 | if test "$aix_use_runtimelinking" = yes; then | |
13038 | # Warning - without using the other runtime loading flags (-brtl), | |
13039 | # -berok will link without error, but may produce a broken library. | |
13040 | allow_undefined_flag_CXX='-berok' | |
13041 | # Determine the default libpath from the value encoded in an empty | |
13042 | # executable. | |
13043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13044 | /* end confdefs.h. */ | |
13045 | ||
13046 | int | |
13047 | main () | |
13048 | { | |
13049 | ||
13050 | ; | |
13051 | return 0; | |
13052 | } | |
13053 | _ACEOF | |
13054 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13055 | ||
13056 | lt_aix_libpath_sed=' | |
13057 | /Import File Strings/,/^$/ { | |
13058 | /^0/ { | |
13059 | s/^0 *\(.*\)$/\1/ | |
13060 | p | |
13061 | } | |
13062 | }' | |
13063 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13064 | # Check for a 64-bit object if we didn't find anything. | |
13065 | if test -z "$aix_libpath"; then | |
13066 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13067 | fi | |
13068 | fi | |
13069 | rm -f core conftest.err conftest.$ac_objext \ | |
13070 | conftest$ac_exeext conftest.$ac_ext | |
13071 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13072 | ||
13073 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13074 | ||
13075 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
13076 | else | |
13077 | if test "$host_cpu" = ia64; then | |
13078 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13079 | allow_undefined_flag_CXX="-z nodefs" | |
13080 | archive_expsym_cmds_CXX="\$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" | |
13081 | else | |
13082 | # Determine the default libpath from the value encoded in an | |
13083 | # empty executable. | |
13084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13085 | /* end confdefs.h. */ | |
13086 | ||
13087 | int | |
13088 | main () | |
13089 | { | |
13090 | ||
13091 | ; | |
13092 | return 0; | |
13093 | } | |
13094 | _ACEOF | |
13095 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13096 | ||
13097 | lt_aix_libpath_sed=' | |
13098 | /Import File Strings/,/^$/ { | |
13099 | /^0/ { | |
13100 | s/^0 *\(.*\)$/\1/ | |
13101 | p | |
13102 | } | |
13103 | }' | |
13104 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13105 | # Check for a 64-bit object if we didn't find anything. | |
13106 | if test -z "$aix_libpath"; then | |
13107 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13108 | fi | |
13109 | fi | |
13110 | rm -f core conftest.err conftest.$ac_objext \ | |
13111 | conftest$ac_exeext conftest.$ac_ext | |
13112 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13113 | ||
13114 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13115 | # Warning - without using the other run time loading flags, | |
13116 | # -berok will link without error, but may produce a broken library. | |
13117 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13118 | allow_undefined_flag_CXX=' ${wl}-berok' | |
13119 | if test "$with_gnu_ld" = yes; then | |
13120 | # We only use this code for GNU lds that support --whole-archive. | |
13121 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13122 | else | |
13123 | # Exported symbols can be pulled into shared objects from archives | |
13124 | whole_archive_flag_spec_CXX='$convenience' | |
13125 | fi | |
13126 | archive_cmds_need_lc_CXX=yes | |
13127 | # This is similar to how AIX traditionally builds its shared | |
13128 | # libraries. | |
13129 | archive_expsym_cmds_CXX="\$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' | |
13130 | fi | |
13131 | fi | |
13132 | ;; | |
13133 | ||
13134 | beos*) | |
13135 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13136 | allow_undefined_flag_CXX=unsupported | |
13137 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13138 | # support --undefined. This deserves some investigation. FIXME | |
13139 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13140 | else | |
13141 | ld_shlibs_CXX=no | |
13142 | fi | |
13143 | ;; | |
13144 | ||
13145 | chorus*) | |
13146 | case $cc_basename in | |
13147 | *) | |
13148 | # FIXME: insert proper C++ library support | |
13149 | ld_shlibs_CXX=no | |
13150 | ;; | |
13151 | esac | |
13152 | ;; | |
13153 | ||
13154 | cygwin* | mingw* | pw32* | cegcc*) | |
13155 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13156 | # as there is no search path for DLLs. | |
13157 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13158 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13159 | allow_undefined_flag_CXX=unsupported | |
13160 | always_export_symbols_CXX=no | |
13161 | enable_shared_with_static_runtimes_CXX=yes | |
13162 | ||
13163 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13164 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13165 | # If the export-symbols file already is a .def file (1st line | |
13166 | # is EXPORTS), use it as is; otherwise, prepend... | |
13167 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13168 | cp $export_symbols $output_objdir/$soname.def; | |
13169 | else | |
13170 | echo EXPORTS > $output_objdir/$soname.def; | |
13171 | cat $export_symbols >> $output_objdir/$soname.def; | |
13172 | fi~ | |
13173 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13174 | else | |
13175 | ld_shlibs_CXX=no | |
13176 | fi | |
13177 | ;; | |
13178 | darwin* | rhapsody*) | |
13179 | ||
13180 | ||
13181 | archive_cmds_need_lc_CXX=no | |
13182 | hardcode_direct_CXX=no | |
13183 | hardcode_automatic_CXX=yes | |
13184 | hardcode_shlibpath_var_CXX=unsupported | |
13185 | if test "$lt_cv_ld_force_load" = "yes"; then | |
13186 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
13187 | else | |
13188 | whole_archive_flag_spec_CXX='' | |
13189 | fi | |
13190 | link_all_deplibs_CXX=yes | |
13191 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13192 | case $cc_basename in | |
13193 | ifort*) _lt_dar_can_shared=yes ;; | |
13194 | *) _lt_dar_can_shared=$GCC ;; | |
13195 | esac | |
13196 | if test "$_lt_dar_can_shared" = "yes"; then | |
13197 | output_verbose_link_cmd=func_echo_all | |
13198 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
13199 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13200 | archive_expsym_cmds_CXX="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}" | |
13201 | module_expsym_cmds_CXX="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}" | |
13202 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13203 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
13204 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
13205 | fi | |
13206 | ||
13207 | else | |
13208 | ld_shlibs_CXX=no | |
13209 | fi | |
13210 | ||
13211 | ;; | |
13212 | ||
13213 | dgux*) | |
13214 | case $cc_basename in | |
13215 | ec++*) | |
13216 | # FIXME: insert proper C++ library support | |
13217 | ld_shlibs_CXX=no | |
13218 | ;; | |
13219 | ghcx*) | |
13220 | # Green Hills C++ Compiler | |
13221 | # FIXME: insert proper C++ library support | |
13222 | ld_shlibs_CXX=no | |
13223 | ;; | |
13224 | *) | |
13225 | # FIXME: insert proper C++ library support | |
13226 | ld_shlibs_CXX=no | |
13227 | ;; | |
13228 | esac | |
13229 | ;; | |
13230 | ||
6d2920c8 | 13231 | freebsd2.*) |
3cb62297 L |
13232 | # C++ shared libraries reported to be fairly broken before |
13233 | # switch to ELF | |
13234 | ld_shlibs_CXX=no | |
13235 | ;; | |
13236 | ||
13237 | freebsd-elf*) | |
13238 | archive_cmds_need_lc_CXX=no | |
13239 | ;; | |
13240 | ||
13241 | freebsd* | dragonfly*) | |
13242 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13243 | # conventions | |
13244 | ld_shlibs_CXX=yes | |
13245 | ;; | |
13246 | ||
13247 | gnu*) | |
13248 | ;; | |
13249 | ||
13250 | haiku*) | |
13251 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13252 | link_all_deplibs_CXX=yes | |
13253 | ;; | |
13254 | ||
13255 | hpux9*) | |
13256 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13257 | hardcode_libdir_separator_CXX=: | |
13258 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13259 | hardcode_direct_CXX=yes | |
13260 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13261 | # but as the default | |
13262 | # location of the library. | |
13263 | ||
13264 | case $cc_basename in | |
13265 | CC*) | |
13266 | # FIXME: insert proper C++ library support | |
13267 | ld_shlibs_CXX=no | |
13268 | ;; | |
13269 | aCC*) | |
13270 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13271 | # Commands to make compiler produce verbose output that lists | |
13272 | # what "hidden" libraries, object files and flags are used when | |
13273 | # linking a shared library. | |
13274 | # | |
13275 | # There doesn't appear to be a way to prevent this compiler from | |
13276 | # explicitly linking system object files so we need to strip them | |
13277 | # from the output so that they don't get included in the library | |
13278 | # dependencies. | |
13279 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13280 | ;; | |
13281 | *) | |
13282 | if test "$GXX" = yes; then | |
13283 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13284 | else | |
13285 | # FIXME: insert proper C++ library support | |
13286 | ld_shlibs_CXX=no | |
13287 | fi | |
13288 | ;; | |
13289 | esac | |
13290 | ;; | |
13291 | ||
13292 | hpux10*|hpux11*) | |
13293 | if test $with_gnu_ld = no; then | |
13294 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13295 | hardcode_libdir_separator_CXX=: | |
13296 | ||
13297 | case $host_cpu in | |
13298 | hppa*64*|ia64*) | |
13299 | ;; | |
13300 | *) | |
13301 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13302 | ;; | |
13303 | esac | |
13304 | fi | |
13305 | case $host_cpu in | |
13306 | hppa*64*|ia64*) | |
13307 | hardcode_direct_CXX=no | |
13308 | hardcode_shlibpath_var_CXX=no | |
13309 | ;; | |
13310 | *) | |
13311 | hardcode_direct_CXX=yes | |
13312 | hardcode_direct_absolute_CXX=yes | |
13313 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13314 | # but as the default | |
13315 | # location of the library. | |
13316 | ;; | |
13317 | esac | |
13318 | ||
13319 | case $cc_basename in | |
13320 | CC*) | |
13321 | # FIXME: insert proper C++ library support | |
13322 | ld_shlibs_CXX=no | |
13323 | ;; | |
13324 | aCC*) | |
13325 | case $host_cpu in | |
13326 | hppa*64*) | |
13327 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13328 | ;; | |
13329 | ia64*) | |
13330 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13331 | ;; | |
13332 | *) | |
13333 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13334 | ;; | |
13335 | esac | |
13336 | # Commands to make compiler produce verbose output that lists | |
13337 | # what "hidden" libraries, object files and flags are used when | |
13338 | # linking a shared library. | |
13339 | # | |
13340 | # There doesn't appear to be a way to prevent this compiler from | |
13341 | # explicitly linking system object files so we need to strip them | |
13342 | # from the output so that they don't get included in the library | |
13343 | # dependencies. | |
13344 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13345 | ;; | |
13346 | *) | |
13347 | if test "$GXX" = yes; then | |
13348 | if test $with_gnu_ld = no; then | |
13349 | case $host_cpu in | |
13350 | hppa*64*) | |
13351 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13352 | ;; | |
13353 | ia64*) | |
13354 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13355 | ;; | |
13356 | *) | |
13357 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13358 | ;; | |
13359 | esac | |
13360 | fi | |
13361 | else | |
13362 | # FIXME: insert proper C++ library support | |
13363 | ld_shlibs_CXX=no | |
13364 | fi | |
13365 | ;; | |
13366 | esac | |
13367 | ;; | |
13368 | ||
13369 | interix[3-9]*) | |
13370 | hardcode_direct_CXX=no | |
13371 | hardcode_shlibpath_var_CXX=no | |
13372 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13373 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13374 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13375 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13376 | # default) and relocated if they conflict, which is a slow very memory | |
13377 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13378 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13379 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13380 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13381 | archive_expsym_cmds_CXX='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' | |
13382 | ;; | |
13383 | irix5* | irix6*) | |
13384 | case $cc_basename in | |
13385 | CC*) | |
13386 | # SGI C++ | |
13387 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13388 | ||
13389 | # Archives containing C++ object files must be created using | |
13390 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13391 | # necessary to make sure instantiated templates are included | |
13392 | # in the archive. | |
13393 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13394 | ;; | |
13395 | *) | |
13396 | if test "$GXX" = yes; then | |
13397 | if test "$with_gnu_ld" = no; then | |
13398 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13399 | else | |
13400 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | |
13401 | fi | |
13402 | fi | |
13403 | link_all_deplibs_CXX=yes | |
13404 | ;; | |
13405 | esac | |
13406 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13407 | hardcode_libdir_separator_CXX=: | |
13408 | inherit_rpath_CXX=yes | |
13409 | ;; | |
13410 | ||
13411 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13412 | case $cc_basename in | |
13413 | KCC*) | |
13414 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13415 | ||
13416 | # KCC will only create a shared library if the output file | |
13417 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13418 | # to its proper name (with version) after linking. | |
13419 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13420 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
13421 | # Commands to make compiler produce verbose output that lists | |
13422 | # what "hidden" libraries, object files and flags are used when | |
13423 | # linking a shared library. | |
13424 | # | |
13425 | # There doesn't appear to be a way to prevent this compiler from | |
13426 | # explicitly linking system object files so we need to strip them | |
13427 | # from the output so that they don't get included in the library | |
13428 | # dependencies. | |
13429 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13430 | ||
13431 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13432 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13433 | ||
13434 | # Archives containing C++ object files must be created using | |
13435 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13436 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13437 | ;; | |
13438 | icpc* | ecpc* ) | |
13439 | # Intel C++ | |
13440 | with_gnu_ld=yes | |
13441 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13442 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13443 | # earlier do not add the objects themselves. | |
13444 | case `$CC -V 2>&1` in | |
13445 | *"Version 7."*) | |
13446 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13447 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13448 | ;; | |
13449 | *) # Version 8.0 or newer | |
13450 | tmp_idyn= | |
13451 | case $host_cpu in | |
13452 | ia64*) tmp_idyn=' -i_dynamic';; | |
13453 | esac | |
13454 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13455 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13456 | ;; | |
13457 | esac | |
13458 | archive_cmds_need_lc_CXX=no | |
13459 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13460 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13461 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13462 | ;; | |
13463 | pgCC* | pgcpp*) | |
13464 | # Portland Group C++ compiler | |
13465 | case `$CC -V` in | |
13466 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
13467 | prelink_cmds_CXX='tpldir=Template.dir~ | |
13468 | rm -rf $tpldir~ | |
13469 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
13470 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
13471 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
13472 | rm -rf $tpldir~ | |
13473 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
13474 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
13475 | $RANLIB $oldlib' | |
13476 | archive_cmds_CXX='tpldir=Template.dir~ | |
13477 | rm -rf $tpldir~ | |
13478 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13479 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13480 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
13481 | rm -rf $tpldir~ | |
13482 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13483 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13484 | ;; | |
13485 | *) # Version 6 and above use weak symbols | |
13486 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13487 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13488 | ;; | |
13489 | esac | |
13490 | ||
13491 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13492 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13493 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
13494 | ;; | |
13495 | cxx*) | |
13496 | # Compaq C++ | |
13497 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13498 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
13499 | ||
13500 | runpath_var=LD_RUN_PATH | |
13501 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13502 | hardcode_libdir_separator_CXX=: | |
13503 | ||
13504 | # Commands to make compiler produce verbose output that lists | |
13505 | # what "hidden" libraries, object files and flags are used when | |
13506 | # linking a shared library. | |
13507 | # | |
13508 | # There doesn't appear to be a way to prevent this compiler from | |
13509 | # explicitly linking system object files so we need to strip them | |
13510 | # from the output so that they don't get included in the library | |
13511 | # dependencies. | |
13512 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | |
13513 | ;; | |
13514 | xl* | mpixl* | bgxl*) | |
13515 | # IBM XL 8.0 on PPC, with GNU ld | |
13516 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13517 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13518 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13519 | if test "x$supports_anon_versioning" = xyes; then | |
13520 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13521 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13522 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13523 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13524 | fi | |
13525 | ;; | |
13526 | *) | |
13527 | case `$CC -V 2>&1 | sed 5q` in | |
13528 | *Sun\ C*) | |
13529 | # Sun C++ 5.9 | |
13530 | no_undefined_flag_CXX=' -zdefs' | |
13531 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13532 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
13533 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13534 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
13535 | compiler_needs_object_CXX=yes | |
13536 | ||
13537 | # Not sure whether something based on | |
13538 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13539 | # would be better. | |
13540 | output_verbose_link_cmd='func_echo_all' | |
13541 | ||
13542 | # Archives containing C++ object files must be created using | |
13543 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13544 | # necessary to make sure instantiated templates are included | |
13545 | # in the archive. | |
13546 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13547 | ;; | |
13548 | esac | |
13549 | ;; | |
13550 | esac | |
13551 | ;; | |
13552 | ||
13553 | lynxos*) | |
13554 | # FIXME: insert proper C++ library support | |
13555 | ld_shlibs_CXX=no | |
13556 | ;; | |
13557 | ||
13558 | m88k*) | |
13559 | # FIXME: insert proper C++ library support | |
13560 | ld_shlibs_CXX=no | |
13561 | ;; | |
13562 | ||
13563 | mvs*) | |
13564 | case $cc_basename in | |
13565 | cxx*) | |
13566 | # FIXME: insert proper C++ library support | |
13567 | ld_shlibs_CXX=no | |
13568 | ;; | |
13569 | *) | |
13570 | # FIXME: insert proper C++ library support | |
13571 | ld_shlibs_CXX=no | |
13572 | ;; | |
13573 | esac | |
13574 | ;; | |
13575 | ||
13576 | netbsd*) | |
13577 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13578 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13579 | wlarc= | |
13580 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13581 | hardcode_direct_CXX=yes | |
13582 | hardcode_shlibpath_var_CXX=no | |
13583 | fi | |
13584 | # Workaround some broken pre-1.5 toolchains | |
13585 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13586 | ;; | |
13587 | ||
13588 | *nto* | *qnx*) | |
13589 | ld_shlibs_CXX=yes | |
13590 | ;; | |
13591 | ||
13592 | openbsd2*) | |
13593 | # C++ shared libraries are fairly broken | |
13594 | ld_shlibs_CXX=no | |
13595 | ;; | |
13596 | ||
13597 | openbsd*) | |
13598 | if test -f /usr/libexec/ld.so; then | |
13599 | hardcode_direct_CXX=yes | |
13600 | hardcode_shlibpath_var_CXX=no | |
13601 | hardcode_direct_absolute_CXX=yes | |
13602 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13603 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13604 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13605 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13606 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13607 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13608 | fi | |
13609 | output_verbose_link_cmd=func_echo_all | |
13610 | else | |
13611 | ld_shlibs_CXX=no | |
13612 | fi | |
13613 | ;; | |
13614 | ||
13615 | osf3* | osf4* | osf5*) | |
13616 | case $cc_basename in | |
13617 | KCC*) | |
13618 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13619 | ||
13620 | # KCC will only create a shared library if the output file | |
13621 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13622 | # to its proper name (with version) after linking. | |
13623 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13624 | ||
13625 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13626 | hardcode_libdir_separator_CXX=: | |
13627 | ||
13628 | # Archives containing C++ object files must be created using | |
13629 | # the KAI C++ compiler. | |
13630 | case $host in | |
13631 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13632 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13633 | esac | |
13634 | ;; | |
13635 | RCC*) | |
13636 | # Rational C++ 2.4.1 | |
13637 | # FIXME: insert proper C++ library support | |
13638 | ld_shlibs_CXX=no | |
13639 | ;; | |
13640 | cxx*) | |
13641 | case $host in | |
13642 | osf3*) | |
13643 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13644 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13645 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13646 | ;; | |
13647 | *) | |
13648 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13649 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13650 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13651 | echo "-hidden">> $lib.exp~ | |
13652 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13653 | $RM $lib.exp' | |
13654 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13655 | ;; | |
13656 | esac | |
13657 | ||
13658 | hardcode_libdir_separator_CXX=: | |
13659 | ||
13660 | # Commands to make compiler produce verbose output that lists | |
13661 | # what "hidden" libraries, object files and flags are used when | |
13662 | # linking a shared library. | |
13663 | # | |
13664 | # There doesn't appear to be a way to prevent this compiler from | |
13665 | # explicitly linking system object files so we need to strip them | |
13666 | # from the output so that they don't get included in the library | |
13667 | # dependencies. | |
13668 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13669 | ;; | |
13670 | *) | |
13671 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13672 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13673 | case $host in | |
13674 | osf3*) | |
13675 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13676 | ;; | |
13677 | *) | |
13678 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13679 | ;; | |
13680 | esac | |
13681 | ||
13682 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13683 | hardcode_libdir_separator_CXX=: | |
13684 | ||
13685 | # Commands to make compiler produce verbose output that lists | |
13686 | # what "hidden" libraries, object files and flags are used when | |
13687 | # linking a shared library. | |
13688 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13689 | ||
13690 | else | |
13691 | # FIXME: insert proper C++ library support | |
13692 | ld_shlibs_CXX=no | |
13693 | fi | |
13694 | ;; | |
13695 | esac | |
13696 | ;; | |
13697 | ||
13698 | psos*) | |
13699 | # FIXME: insert proper C++ library support | |
13700 | ld_shlibs_CXX=no | |
13701 | ;; | |
13702 | ||
13703 | sunos4*) | |
13704 | case $cc_basename in | |
13705 | CC*) | |
13706 | # Sun C++ 4.x | |
13707 | # FIXME: insert proper C++ library support | |
13708 | ld_shlibs_CXX=no | |
13709 | ;; | |
13710 | lcc*) | |
13711 | # Lucid | |
13712 | # FIXME: insert proper C++ library support | |
13713 | ld_shlibs_CXX=no | |
13714 | ;; | |
13715 | *) | |
13716 | # FIXME: insert proper C++ library support | |
13717 | ld_shlibs_CXX=no | |
13718 | ;; | |
13719 | esac | |
13720 | ;; | |
13721 | ||
13722 | solaris*) | |
13723 | case $cc_basename in | |
13724 | CC*) | |
13725 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13726 | archive_cmds_need_lc_CXX=yes | |
13727 | no_undefined_flag_CXX=' -zdefs' | |
13728 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13729 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13730 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13731 | ||
13732 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13733 | hardcode_shlibpath_var_CXX=no | |
13734 | case $host_os in | |
13735 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13736 | *) | |
13737 | # The compiler driver will combine and reorder linker options, | |
13738 | # but understands `-z linker_flag'. | |
13739 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13740 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13741 | ;; | |
13742 | esac | |
13743 | link_all_deplibs_CXX=yes | |
13744 | ||
13745 | output_verbose_link_cmd='func_echo_all' | |
13746 | ||
13747 | # Archives containing C++ object files must be created using | |
13748 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13749 | # necessary to make sure instantiated templates are included | |
13750 | # in the archive. | |
13751 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13752 | ;; | |
13753 | gcx*) | |
13754 | # Green Hills C++ Compiler | |
13755 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13756 | ||
13757 | # The C++ compiler must be used to create the archive. | |
13758 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13759 | ;; | |
13760 | *) | |
13761 | # GNU C++ compiler with Solaris linker | |
13762 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13763 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13764 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13765 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13766 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13767 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13768 | ||
13769 | # Commands to make compiler produce verbose output that lists | |
13770 | # what "hidden" libraries, object files and flags are used when | |
13771 | # linking a shared library. | |
13772 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13773 | else | |
13774 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13775 | # platform. | |
13776 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13777 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13778 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13779 | ||
13780 | # Commands to make compiler produce verbose output that lists | |
13781 | # what "hidden" libraries, object files and flags are used when | |
13782 | # linking a shared library. | |
13783 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13784 | fi | |
13785 | ||
13786 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13787 | case $host_os in | |
13788 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13789 | *) | |
13790 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13791 | ;; | |
13792 | esac | |
13793 | fi | |
13794 | ;; | |
13795 | esac | |
13796 | ;; | |
13797 | ||
13798 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13799 | no_undefined_flag_CXX='${wl}-z,text' | |
13800 | archive_cmds_need_lc_CXX=no | |
13801 | hardcode_shlibpath_var_CXX=no | |
13802 | runpath_var='LD_RUN_PATH' | |
13803 | ||
13804 | case $cc_basename in | |
13805 | CC*) | |
13806 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13807 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13808 | ;; | |
13809 | *) | |
13810 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13811 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13812 | ;; | |
13813 | esac | |
13814 | ;; | |
13815 | ||
13816 | sysv5* | sco3.2v5* | sco5v6*) | |
13817 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13818 | # link with -lc, and that would cause any symbols used from libc to | |
13819 | # always be unresolved, which means just about no library would | |
13820 | # ever link correctly. If we're not using GNU ld we use -z text | |
13821 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13822 | # as -z defs. | |
13823 | no_undefined_flag_CXX='${wl}-z,text' | |
13824 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13825 | archive_cmds_need_lc_CXX=no | |
13826 | hardcode_shlibpath_var_CXX=no | |
13827 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13828 | hardcode_libdir_separator_CXX=':' | |
13829 | link_all_deplibs_CXX=yes | |
13830 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13831 | runpath_var='LD_RUN_PATH' | |
13832 | ||
13833 | case $cc_basename in | |
13834 | CC*) | |
13835 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13836 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13837 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13838 | '"$old_archive_cmds_CXX" | |
13839 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13840 | '"$reload_cmds_CXX" | |
13841 | ;; | |
13842 | *) | |
13843 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13844 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13845 | ;; | |
13846 | esac | |
13847 | ;; | |
13848 | ||
13849 | tandem*) | |
13850 | case $cc_basename in | |
13851 | NCC*) | |
13852 | # NonStop-UX NCC 3.20 | |
13853 | # FIXME: insert proper C++ library support | |
13854 | ld_shlibs_CXX=no | |
13855 | ;; | |
13856 | *) | |
13857 | # FIXME: insert proper C++ library support | |
13858 | ld_shlibs_CXX=no | |
13859 | ;; | |
13860 | esac | |
13861 | ;; | |
13862 | ||
13863 | vxworks*) | |
13864 | # FIXME: insert proper C++ library support | |
13865 | ld_shlibs_CXX=no | |
13866 | ;; | |
13867 | ||
13868 | *) | |
13869 | # FIXME: insert proper C++ library support | |
13870 | ld_shlibs_CXX=no | |
13871 | ;; | |
13872 | esac | |
13873 | ||
13874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13875 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13876 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13877 | ||
13878 | GCC_CXX="$GXX" | |
13879 | LD_CXX="$LD" | |
13880 | ||
13881 | ## CAVEAT EMPTOR: | |
13882 | ## There is no encapsulation within the following macros, do not change | |
13883 | ## the running order or otherwise move them around unless you know exactly | |
13884 | ## what you are doing... | |
13885 | # Dependencies to place before and after the object being linked: | |
13886 | predep_objects_CXX= | |
13887 | postdep_objects_CXX= | |
13888 | predeps_CXX= | |
13889 | postdeps_CXX= | |
13890 | compiler_lib_search_path_CXX= | |
13891 | ||
13892 | cat > conftest.$ac_ext <<_LT_EOF | |
13893 | class Foo | |
13894 | { | |
13895 | public: | |
13896 | Foo (void) { a = 0; } | |
13897 | private: | |
13898 | int a; | |
13899 | }; | |
13900 | _LT_EOF | |
13901 | ||
13902 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13903 | (eval $ac_compile) 2>&5 | |
13904 | ac_status=$? | |
13905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13906 | test $ac_status = 0; }; then | |
13907 | # Parse the compiler output and extract the necessary | |
13908 | # objects, libraries and library flags. | |
13909 | ||
13910 | # Sentinel used to keep track of whether or not we are before | |
13911 | # the conftest object file. | |
13912 | pre_test_object_deps_done=no | |
13913 | ||
13914 | for p in `eval "$output_verbose_link_cmd"`; do | |
13915 | case $p in | |
13916 | ||
13917 | -L* | -R* | -l*) | |
13918 | # Some compilers place space between "-{L,R}" and the path. | |
13919 | # Remove the space. | |
13920 | if test $p = "-L" || | |
13921 | test $p = "-R"; then | |
13922 | prev=$p | |
13923 | continue | |
13924 | else | |
13925 | prev= | |
13926 | fi | |
13927 | ||
13928 | if test "$pre_test_object_deps_done" = no; then | |
13929 | case $p in | |
13930 | -L* | -R*) | |
13931 | # Internal compiler library paths should come after those | |
13932 | # provided the user. The postdeps already come after the | |
13933 | # user supplied libs so there is no need to process them. | |
13934 | if test -z "$compiler_lib_search_path_CXX"; then | |
13935 | compiler_lib_search_path_CXX="${prev}${p}" | |
13936 | else | |
13937 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13938 | fi | |
13939 | ;; | |
13940 | # The "-l" case would never come before the object being | |
13941 | # linked, so don't bother handling this case. | |
13942 | esac | |
13943 | else | |
13944 | if test -z "$postdeps_CXX"; then | |
13945 | postdeps_CXX="${prev}${p}" | |
13946 | else | |
13947 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13948 | fi | |
13949 | fi | |
13950 | ;; | |
13951 | ||
13952 | *.$objext) | |
13953 | # This assumes that the test object file only shows up | |
13954 | # once in the compiler output. | |
13955 | if test "$p" = "conftest.$objext"; then | |
13956 | pre_test_object_deps_done=yes | |
13957 | continue | |
13958 | fi | |
13959 | ||
13960 | if test "$pre_test_object_deps_done" = no; then | |
13961 | if test -z "$predep_objects_CXX"; then | |
13962 | predep_objects_CXX="$p" | |
13963 | else | |
13964 | predep_objects_CXX="$predep_objects_CXX $p" | |
13965 | fi | |
13966 | else | |
13967 | if test -z "$postdep_objects_CXX"; then | |
13968 | postdep_objects_CXX="$p" | |
13969 | else | |
13970 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13971 | fi | |
13972 | fi | |
13973 | ;; | |
13974 | ||
13975 | *) ;; # Ignore the rest. | |
13976 | ||
13977 | esac | |
13978 | done | |
13979 | ||
13980 | # Clean up. | |
13981 | rm -f a.out a.exe | |
13982 | else | |
13983 | echo "libtool.m4: error: problem compiling CXX test program" | |
13984 | fi | |
13985 | ||
13986 | $RM -f confest.$objext | |
13987 | ||
13988 | # PORTME: override above test on systems where it is broken | |
13989 | case $host_os in | |
13990 | interix[3-9]*) | |
13991 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13992 | # hack all around it, let's just trust "g++" to DTRT. | |
13993 | predep_objects_CXX= | |
13994 | postdep_objects_CXX= | |
13995 | postdeps_CXX= | |
13996 | ;; | |
13997 | ||
13998 | linux*) | |
13999 | case `$CC -V 2>&1 | sed 5q` in | |
14000 | *Sun\ C*) | |
14001 | # Sun C++ 5.9 | |
14002 | ||
14003 | # The more standards-conforming stlport4 library is | |
14004 | # incompatible with the Cstd library. Avoid specifying | |
14005 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14006 | # -library=stlport4 depends on it. | |
14007 | case " $CXX $CXXFLAGS " in | |
14008 | *" -library=stlport4 "*) | |
14009 | solaris_use_stlport4=yes | |
14010 | ;; | |
14011 | esac | |
14012 | ||
14013 | if test "$solaris_use_stlport4" != yes; then | |
14014 | postdeps_CXX='-library=Cstd -library=Crun' | |
14015 | fi | |
14016 | ;; | |
14017 | esac | |
14018 | ;; | |
14019 | ||
14020 | solaris*) | |
14021 | case $cc_basename in | |
14022 | CC*) | |
14023 | # The more standards-conforming stlport4 library is | |
14024 | # incompatible with the Cstd library. Avoid specifying | |
14025 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14026 | # -library=stlport4 depends on it. | |
14027 | case " $CXX $CXXFLAGS " in | |
14028 | *" -library=stlport4 "*) | |
14029 | solaris_use_stlport4=yes | |
14030 | ;; | |
14031 | esac | |
14032 | ||
14033 | # Adding this requires a known-good setup of shared libraries for | |
14034 | # Sun compiler versions before 5.6, else PIC objects from an old | |
14035 | # archive will be linked into the output, leading to subtle bugs. | |
14036 | if test "$solaris_use_stlport4" != yes; then | |
14037 | postdeps_CXX='-library=Cstd -library=Crun' | |
14038 | fi | |
14039 | ;; | |
14040 | esac | |
14041 | ;; | |
14042 | esac | |
14043 | ||
14044 | ||
14045 | case " $postdeps_CXX " in | |
14046 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14047 | esac | |
14048 | compiler_lib_search_dirs_CXX= | |
14049 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14050 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
14051 | fi | |
14052 | ||
14053 | ||
14054 | ||
14055 | ||
14056 | ||
14057 | ||
14058 | ||
14059 | ||
14060 | ||
14061 | ||
14062 | ||
14063 | ||
14064 | ||
14065 | ||
14066 | ||
14067 | ||
14068 | ||
14069 | ||
14070 | ||
14071 | ||
14072 | ||
14073 | ||
14074 | ||
14075 | ||
14076 | ||
14077 | ||
14078 | ||
14079 | ||
14080 | ||
14081 | ||
14082 | ||
14083 | lt_prog_compiler_wl_CXX= | |
14084 | lt_prog_compiler_pic_CXX= | |
14085 | lt_prog_compiler_static_CXX= | |
14086 | ||
14087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
14088 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14089 | ||
14090 | # C++ specific cases for pic, static, wl, etc. | |
14091 | if test "$GXX" = yes; then | |
14092 | lt_prog_compiler_wl_CXX='-Wl,' | |
14093 | lt_prog_compiler_static_CXX='-static' | |
14094 | ||
14095 | case $host_os in | |
14096 | aix*) | |
14097 | # All AIX code is PIC. | |
14098 | if test "$host_cpu" = ia64; then | |
14099 | # AIX 5 now supports IA64 processor | |
14100 | lt_prog_compiler_static_CXX='-Bstatic' | |
14101 | fi | |
52204357 | 14102 | lt_prog_compiler_pic_CXX='-fPIC' |
3cb62297 L |
14103 | ;; |
14104 | ||
14105 | amigaos*) | |
14106 | case $host_cpu in | |
14107 | powerpc) | |
14108 | # see comment about AmigaOS4 .so support | |
14109 | lt_prog_compiler_pic_CXX='-fPIC' | |
14110 | ;; | |
14111 | m68k) | |
14112 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14113 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14114 | # like `-m68040'. | |
14115 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14116 | ;; | |
14117 | esac | |
14118 | ;; | |
14119 | ||
14120 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14121 | # PIC is the default for these OSes. | |
14122 | ;; | |
14123 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14124 | # This hack is so that the source file can tell whether it is being | |
14125 | # built for inclusion in a dll (and should export symbols for example). | |
14126 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14127 | # (--disable-auto-import) libraries | |
14128 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14129 | ;; | |
14130 | darwin* | rhapsody*) | |
14131 | # PIC is the default on this platform | |
14132 | # Common symbols not allowed in MH_DYLIB files | |
14133 | lt_prog_compiler_pic_CXX='-fno-common' | |
14134 | ;; | |
14135 | *djgpp*) | |
14136 | # DJGPP does not support shared libraries at all | |
14137 | lt_prog_compiler_pic_CXX= | |
14138 | ;; | |
14139 | haiku*) | |
14140 | # PIC is the default for Haiku. | |
14141 | # The "-static" flag exists, but is broken. | |
14142 | lt_prog_compiler_static_CXX= | |
14143 | ;; | |
14144 | interix[3-9]*) | |
14145 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14146 | # Instead, we relocate shared libraries at runtime. | |
14147 | ;; | |
14148 | sysv4*MP*) | |
14149 | if test -d /usr/nec; then | |
14150 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14151 | fi | |
14152 | ;; | |
14153 | hpux*) | |
14154 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14155 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14156 | # sets the default TLS model and affects inlining. | |
14157 | case $host_cpu in | |
14158 | hppa*64*) | |
14159 | ;; | |
14160 | *) | |
14161 | lt_prog_compiler_pic_CXX='-fPIC' | |
14162 | ;; | |
14163 | esac | |
14164 | ;; | |
14165 | *qnx* | *nto*) | |
14166 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14167 | # it will coredump. | |
14168 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14169 | ;; | |
14170 | *) | |
14171 | lt_prog_compiler_pic_CXX='-fPIC' | |
14172 | ;; | |
14173 | esac | |
14174 | else | |
14175 | case $host_os in | |
14176 | aix[4-9]*) | |
14177 | # All AIX code is PIC. | |
14178 | if test "$host_cpu" = ia64; then | |
14179 | # AIX 5 now supports IA64 processor | |
14180 | lt_prog_compiler_static_CXX='-Bstatic' | |
14181 | else | |
14182 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14183 | fi | |
14184 | ;; | |
14185 | chorus*) | |
14186 | case $cc_basename in | |
14187 | cxch68*) | |
14188 | # Green Hills C++ Compiler | |
14189 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
14190 | ;; | |
14191 | esac | |
14192 | ;; | |
14193 | dgux*) | |
14194 | case $cc_basename in | |
14195 | ec++*) | |
14196 | lt_prog_compiler_pic_CXX='-KPIC' | |
14197 | ;; | |
14198 | ghcx*) | |
14199 | # Green Hills C++ Compiler | |
14200 | lt_prog_compiler_pic_CXX='-pic' | |
14201 | ;; | |
14202 | *) | |
14203 | ;; | |
14204 | esac | |
14205 | ;; | |
14206 | freebsd* | dragonfly*) | |
14207 | # FreeBSD uses GNU C++ | |
14208 | ;; | |
14209 | hpux9* | hpux10* | hpux11*) | |
14210 | case $cc_basename in | |
14211 | CC*) | |
14212 | lt_prog_compiler_wl_CXX='-Wl,' | |
14213 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14214 | if test "$host_cpu" != ia64; then | |
14215 | lt_prog_compiler_pic_CXX='+Z' | |
14216 | fi | |
14217 | ;; | |
14218 | aCC*) | |
14219 | lt_prog_compiler_wl_CXX='-Wl,' | |
14220 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14221 | case $host_cpu in | |
14222 | hppa*64*|ia64*) | |
14223 | # +Z the default | |
14224 | ;; | |
14225 | *) | |
14226 | lt_prog_compiler_pic_CXX='+Z' | |
14227 | ;; | |
14228 | esac | |
14229 | ;; | |
14230 | *) | |
14231 | ;; | |
14232 | esac | |
14233 | ;; | |
14234 | interix*) | |
14235 | # This is c89, which is MS Visual C++ (no shared libs) | |
14236 | # Anyone wants to do a port? | |
14237 | ;; | |
14238 | irix5* | irix6* | nonstopux*) | |
14239 | case $cc_basename in | |
14240 | CC*) | |
14241 | lt_prog_compiler_wl_CXX='-Wl,' | |
14242 | lt_prog_compiler_static_CXX='-non_shared' | |
14243 | # CC pic flag -KPIC is the default. | |
14244 | ;; | |
14245 | *) | |
14246 | ;; | |
14247 | esac | |
14248 | ;; | |
14249 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14250 | case $cc_basename in | |
14251 | KCC*) | |
14252 | # KAI C++ Compiler | |
14253 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14254 | lt_prog_compiler_pic_CXX='-fPIC' | |
14255 | ;; | |
14256 | ecpc* ) | |
14257 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14258 | lt_prog_compiler_wl_CXX='-Wl,' | |
14259 | lt_prog_compiler_pic_CXX='-KPIC' | |
14260 | lt_prog_compiler_static_CXX='-static' | |
14261 | ;; | |
14262 | icpc* ) | |
14263 | # Intel C++, used to be incompatible with GCC. | |
14264 | # ICC 10 doesn't accept -KPIC any more. | |
14265 | lt_prog_compiler_wl_CXX='-Wl,' | |
14266 | lt_prog_compiler_pic_CXX='-fPIC' | |
14267 | lt_prog_compiler_static_CXX='-static' | |
14268 | ;; | |
14269 | pgCC* | pgcpp*) | |
14270 | # Portland Group C++ compiler | |
14271 | lt_prog_compiler_wl_CXX='-Wl,' | |
14272 | lt_prog_compiler_pic_CXX='-fpic' | |
14273 | lt_prog_compiler_static_CXX='-Bstatic' | |
14274 | ;; | |
14275 | cxx*) | |
14276 | # Compaq C++ | |
14277 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14278 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14279 | lt_prog_compiler_pic_CXX= | |
14280 | lt_prog_compiler_static_CXX='-non_shared' | |
14281 | ;; | |
14282 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
14283 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
14284 | lt_prog_compiler_wl_CXX='-Wl,' | |
14285 | lt_prog_compiler_pic_CXX='-qpic' | |
14286 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14287 | ;; | |
14288 | *) | |
14289 | case `$CC -V 2>&1 | sed 5q` in | |
14290 | *Sun\ C*) | |
14291 | # Sun C++ 5.9 | |
14292 | lt_prog_compiler_pic_CXX='-KPIC' | |
14293 | lt_prog_compiler_static_CXX='-Bstatic' | |
14294 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14295 | ;; | |
14296 | esac | |
14297 | ;; | |
14298 | esac | |
14299 | ;; | |
14300 | lynxos*) | |
14301 | ;; | |
14302 | m88k*) | |
14303 | ;; | |
14304 | mvs*) | |
14305 | case $cc_basename in | |
14306 | cxx*) | |
14307 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14308 | ;; | |
14309 | *) | |
14310 | ;; | |
14311 | esac | |
14312 | ;; | |
14313 | netbsd*) | |
14314 | ;; | |
14315 | *qnx* | *nto*) | |
14316 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14317 | # it will coredump. | |
14318 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14319 | ;; | |
14320 | osf3* | osf4* | osf5*) | |
14321 | case $cc_basename in | |
14322 | KCC*) | |
14323 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14324 | ;; | |
14325 | RCC*) | |
14326 | # Rational C++ 2.4.1 | |
14327 | lt_prog_compiler_pic_CXX='-pic' | |
14328 | ;; | |
14329 | cxx*) | |
14330 | # Digital/Compaq C++ | |
14331 | lt_prog_compiler_wl_CXX='-Wl,' | |
14332 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14333 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14334 | lt_prog_compiler_pic_CXX= | |
14335 | lt_prog_compiler_static_CXX='-non_shared' | |
14336 | ;; | |
14337 | *) | |
14338 | ;; | |
14339 | esac | |
14340 | ;; | |
14341 | psos*) | |
14342 | ;; | |
14343 | solaris*) | |
14344 | case $cc_basename in | |
14345 | CC*) | |
14346 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14347 | lt_prog_compiler_pic_CXX='-KPIC' | |
14348 | lt_prog_compiler_static_CXX='-Bstatic' | |
14349 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14350 | ;; | |
14351 | gcx*) | |
14352 | # Green Hills C++ Compiler | |
14353 | lt_prog_compiler_pic_CXX='-PIC' | |
14354 | ;; | |
14355 | *) | |
14356 | ;; | |
14357 | esac | |
14358 | ;; | |
14359 | sunos4*) | |
14360 | case $cc_basename in | |
14361 | CC*) | |
14362 | # Sun C++ 4.x | |
14363 | lt_prog_compiler_pic_CXX='-pic' | |
14364 | lt_prog_compiler_static_CXX='-Bstatic' | |
14365 | ;; | |
14366 | lcc*) | |
14367 | # Lucid | |
14368 | lt_prog_compiler_pic_CXX='-pic' | |
14369 | ;; | |
14370 | *) | |
14371 | ;; | |
14372 | esac | |
14373 | ;; | |
14374 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14375 | case $cc_basename in | |
14376 | CC*) | |
14377 | lt_prog_compiler_wl_CXX='-Wl,' | |
14378 | lt_prog_compiler_pic_CXX='-KPIC' | |
14379 | lt_prog_compiler_static_CXX='-Bstatic' | |
14380 | ;; | |
14381 | esac | |
14382 | ;; | |
14383 | tandem*) | |
14384 | case $cc_basename in | |
14385 | NCC*) | |
14386 | # NonStop-UX NCC 3.20 | |
14387 | lt_prog_compiler_pic_CXX='-KPIC' | |
14388 | ;; | |
14389 | *) | |
14390 | ;; | |
14391 | esac | |
14392 | ;; | |
14393 | vxworks*) | |
14394 | ;; | |
14395 | *) | |
14396 | lt_prog_compiler_can_build_shared_CXX=no | |
14397 | ;; | |
14398 | esac | |
14399 | fi | |
14400 | ||
14401 | case $host_os in | |
14402 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14403 | *djgpp*) | |
14404 | lt_prog_compiler_pic_CXX= | |
14405 | ;; | |
14406 | *) | |
14407 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14408 | ;; | |
14409 | esac | |
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
14411 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
14412 | ||
14413 | ||
14414 | ||
14415 | # | |
14416 | # Check to make sure the PIC flag actually works. | |
14417 | # | |
14418 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14420 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
14421 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
14422 | $as_echo_n "(cached) " >&6 | |
14423 | else | |
14424 | lt_cv_prog_compiler_pic_works_CXX=no | |
14425 | ac_outfile=conftest.$ac_objext | |
14426 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14427 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14428 | # Insert the option either (1) after the last *FLAGS variable, or | |
14429 | # (2) before a word containing "conftest.", or (3) at the end. | |
14430 | # Note that $ac_compile itself does not contain backslashes and begins | |
14431 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14432 | # The option is referenced via a variable to avoid confusing sed. | |
14433 | lt_compile=`echo "$ac_compile" | $SED \ | |
14434 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14435 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14436 | -e 's:$: $lt_compiler_flag:'` | |
14437 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14438 | (eval "$lt_compile" 2>conftest.err) | |
14439 | ac_status=$? | |
14440 | cat conftest.err >&5 | |
14441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14442 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
14443 | # The compiler can only warn and ignore the option if not recognized | |
14444 | # So say no if there are warnings other than the usual output. | |
14445 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
14446 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14447 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14448 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14449 | fi | |
14450 | fi | |
14451 | $RM conftest* | |
14452 | ||
14453 | fi | |
14454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14455 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14456 | ||
14457 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14458 | case $lt_prog_compiler_pic_CXX in | |
14459 | "" | " "*) ;; | |
14460 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14461 | esac | |
14462 | else | |
14463 | lt_prog_compiler_pic_CXX= | |
14464 | lt_prog_compiler_can_build_shared_CXX=no | |
14465 | fi | |
14466 | ||
14467 | fi | |
14468 | ||
14469 | ||
14470 | ||
14471 | # | |
14472 | # Check to make sure the static flag actually works. | |
14473 | # | |
14474 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14476 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
14477 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
14478 | $as_echo_n "(cached) " >&6 | |
14479 | else | |
14480 | lt_cv_prog_compiler_static_works_CXX=no | |
14481 | save_LDFLAGS="$LDFLAGS" | |
14482 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14483 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14484 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14485 | # The linker can only warn and ignore the option if not recognized | |
14486 | # So say no if there are warnings | |
14487 | if test -s conftest.err; then | |
14488 | # Append any errors to the config.log. | |
14489 | cat conftest.err 1>&5 | |
14490 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14491 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14492 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14493 | lt_cv_prog_compiler_static_works_CXX=yes | |
14494 | fi | |
14495 | else | |
14496 | lt_cv_prog_compiler_static_works_CXX=yes | |
14497 | fi | |
14498 | fi | |
14499 | $RM -r conftest* | |
14500 | LDFLAGS="$save_LDFLAGS" | |
14501 | ||
14502 | fi | |
14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14504 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14505 | ||
14506 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14507 | : | |
14508 | else | |
14509 | lt_prog_compiler_static_CXX= | |
14510 | fi | |
14511 | ||
14512 | ||
14513 | ||
14514 | ||
14515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14516 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14517 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14518 | $as_echo_n "(cached) " >&6 | |
14519 | else | |
14520 | lt_cv_prog_compiler_c_o_CXX=no | |
14521 | $RM -r conftest 2>/dev/null | |
14522 | mkdir conftest | |
14523 | cd conftest | |
14524 | mkdir out | |
14525 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14526 | ||
14527 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14528 | # Insert the option either (1) after the last *FLAGS variable, or | |
14529 | # (2) before a word containing "conftest.", or (3) at the end. | |
14530 | # Note that $ac_compile itself does not contain backslashes and begins | |
14531 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14532 | lt_compile=`echo "$ac_compile" | $SED \ | |
14533 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14534 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14535 | -e 's:$: $lt_compiler_flag:'` | |
14536 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14537 | (eval "$lt_compile" 2>out/conftest.err) | |
14538 | ac_status=$? | |
14539 | cat out/conftest.err >&5 | |
14540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14541 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14542 | then | |
14543 | # The compiler can only warn and ignore the option if not recognized | |
14544 | # So say no if there are warnings | |
14545 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14546 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14547 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14548 | lt_cv_prog_compiler_c_o_CXX=yes | |
14549 | fi | |
14550 | fi | |
14551 | chmod u+w . 2>&5 | |
14552 | $RM conftest* | |
14553 | # SGI C++ compiler will create directory out/ii_files/ for | |
14554 | # template instantiation | |
14555 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14556 | $RM out/* && rmdir out | |
14557 | cd .. | |
14558 | $RM -r conftest | |
14559 | $RM conftest* | |
14560 | ||
14561 | fi | |
14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14563 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14564 | ||
14565 | ||
14566 | ||
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14568 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14569 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14570 | $as_echo_n "(cached) " >&6 | |
14571 | else | |
14572 | lt_cv_prog_compiler_c_o_CXX=no | |
14573 | $RM -r conftest 2>/dev/null | |
14574 | mkdir conftest | |
14575 | cd conftest | |
14576 | mkdir out | |
14577 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14578 | ||
14579 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14580 | # Insert the option either (1) after the last *FLAGS variable, or | |
14581 | # (2) before a word containing "conftest.", or (3) at the end. | |
14582 | # Note that $ac_compile itself does not contain backslashes and begins | |
14583 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14584 | lt_compile=`echo "$ac_compile" | $SED \ | |
14585 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14586 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14587 | -e 's:$: $lt_compiler_flag:'` | |
14588 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14589 | (eval "$lt_compile" 2>out/conftest.err) | |
14590 | ac_status=$? | |
14591 | cat out/conftest.err >&5 | |
14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14593 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14594 | then | |
14595 | # The compiler can only warn and ignore the option if not recognized | |
14596 | # So say no if there are warnings | |
14597 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14598 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14599 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14600 | lt_cv_prog_compiler_c_o_CXX=yes | |
14601 | fi | |
14602 | fi | |
14603 | chmod u+w . 2>&5 | |
14604 | $RM conftest* | |
14605 | # SGI C++ compiler will create directory out/ii_files/ for | |
14606 | # template instantiation | |
14607 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14608 | $RM out/* && rmdir out | |
14609 | cd .. | |
14610 | $RM -r conftest | |
14611 | $RM conftest* | |
14612 | ||
14613 | fi | |
14614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14615 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14616 | ||
14617 | ||
14618 | ||
14619 | ||
14620 | hard_links="nottested" | |
14621 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14622 | # do not overwrite the value of need_locks provided by the user | |
14623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14624 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14625 | hard_links=yes | |
14626 | $RM conftest* | |
14627 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14628 | touch conftest.a | |
14629 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14630 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14632 | $as_echo "$hard_links" >&6; } | |
14633 | if test "$hard_links" = no; then | |
14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14635 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14636 | need_locks=warn | |
14637 | fi | |
14638 | else | |
14639 | need_locks=no | |
14640 | fi | |
14641 | ||
14642 | ||
14643 | ||
14644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14645 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14646 | ||
14647 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14648 | case $host_os in | |
14649 | aix[4-9]*) | |
14650 | # If we're using GNU nm, then we don't want the "-C" option. | |
14651 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14652 | # Also, AIX nm treats weak defined symbols like other global defined | |
14653 | # symbols, whereas GNU nm marks them as "W". | |
14654 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14655 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14656 | else | |
14657 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14658 | fi | |
14659 | ;; | |
14660 | pw32*) | |
14661 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14662 | ;; | |
14663 | cygwin* | mingw* | cegcc*) | |
14664 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
14665 | ;; | |
14666 | *) | |
14667 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14668 | ;; | |
14669 | esac | |
14670 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
14671 | ||
14672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14673 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14674 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14675 | ||
14676 | with_gnu_ld_CXX=$with_gnu_ld | |
14677 | ||
14678 | ||
14679 | ||
14680 | ||
14681 | ||
14682 | ||
14683 | # | |
14684 | # Do we need to explicitly link libc? | |
14685 | # | |
14686 | case "x$archive_cmds_need_lc_CXX" in | |
14687 | x|xyes) | |
14688 | # Assume -lc should be added | |
14689 | archive_cmds_need_lc_CXX=yes | |
14690 | ||
14691 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14692 | case $archive_cmds_CXX in | |
14693 | *'~'*) | |
14694 | # FIXME: we may have to deal with multi-command sequences. | |
14695 | ;; | |
14696 | '$CC '*) | |
14697 | # Test whether the compiler implicitly links with -lc since on some | |
14698 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14699 | # to ld, don't add -lc before -lgcc. | |
14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14701 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
14702 | if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : | |
14703 | $as_echo_n "(cached) " >&6 | |
14704 | else | |
14705 | $RM conftest* | |
14706 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14707 | ||
14708 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14709 | (eval $ac_compile) 2>&5 | |
14710 | ac_status=$? | |
14711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14712 | test $ac_status = 0; } 2>conftest.err; then | |
14713 | soname=conftest | |
14714 | lib=conftest | |
14715 | libobjs=conftest.$ac_objext | |
14716 | deplibs= | |
14717 | wl=$lt_prog_compiler_wl_CXX | |
14718 | pic_flag=$lt_prog_compiler_pic_CXX | |
14719 | compiler_flags=-v | |
14720 | linker_flags=-v | |
14721 | verstring= | |
14722 | output_objdir=. | |
14723 | libname=conftest | |
14724 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14725 | allow_undefined_flag_CXX= | |
14726 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14727 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14728 | ac_status=$? | |
14729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14730 | test $ac_status = 0; } | |
14731 | then | |
14732 | lt_cv_archive_cmds_need_lc_CXX=no | |
14733 | else | |
14734 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14735 | fi | |
14736 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14737 | else | |
14738 | cat conftest.err 1>&5 | |
14739 | fi | |
14740 | $RM conftest* | |
14741 | ||
14742 | fi | |
14743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14744 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14745 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14746 | ;; | |
14747 | esac | |
14748 | fi | |
14749 | ;; | |
14750 | esac | |
14751 | ||
14752 | ||
14753 | ||
14754 | ||
14755 | ||
14756 | ||
14757 | ||
14758 | ||
14759 | ||
14760 | ||
14761 | ||
14762 | ||
14763 | ||
14764 | ||
14765 | ||
14766 | ||
14767 | ||
14768 | ||
14769 | ||
14770 | ||
14771 | ||
14772 | ||
14773 | ||
14774 | ||
14775 | ||
14776 | ||
14777 | ||
14778 | ||
14779 | ||
14780 | ||
14781 | ||
14782 | ||
14783 | ||
14784 | ||
14785 | ||
14786 | ||
14787 | ||
14788 | ||
14789 | ||
14790 | ||
14791 | ||
14792 | ||
14793 | ||
14794 | ||
14795 | ||
14796 | ||
14797 | ||
14798 | ||
14799 | ||
14800 | ||
14801 | ||
14802 | ||
14803 | ||
14804 | ||
14805 | ||
14806 | ||
14807 | ||
14808 | ||
14809 | ||
14810 | ||
14811 | ||
14812 | ||
14813 | ||
14814 | ||
14815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14816 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14817 | ||
14818 | library_names_spec= | |
14819 | libname_spec='lib$name' | |
14820 | soname_spec= | |
14821 | shrext_cmds=".so" | |
14822 | postinstall_cmds= | |
14823 | postuninstall_cmds= | |
14824 | finish_cmds= | |
14825 | finish_eval= | |
14826 | shlibpath_var= | |
14827 | shlibpath_overrides_runpath=unknown | |
14828 | version_type=none | |
14829 | dynamic_linker="$host_os ld.so" | |
14830 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14831 | need_lib_prefix=unknown | |
14832 | hardcode_into_libs=no | |
14833 | ||
14834 | # when you set need_version to no, make sure it does not cause -set_version | |
14835 | # flags to be left without arguments | |
14836 | need_version=unknown | |
14837 | ||
14838 | case $host_os in | |
14839 | aix3*) | |
14840 | version_type=linux | |
14841 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14842 | shlibpath_var=LIBPATH | |
14843 | ||
14844 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14845 | soname_spec='${libname}${release}${shared_ext}$major' | |
14846 | ;; | |
14847 | ||
14848 | aix[4-9]*) | |
14849 | version_type=linux | |
14850 | need_lib_prefix=no | |
14851 | need_version=no | |
14852 | hardcode_into_libs=yes | |
14853 | if test "$host_cpu" = ia64; then | |
14854 | # AIX 5 supports IA64 | |
14855 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14856 | shlibpath_var=LD_LIBRARY_PATH | |
14857 | else | |
14858 | # With GCC up to 2.95.x, collect2 would create an import file | |
14859 | # for dependence libraries. The import file would start with | |
14860 | # the line `#! .'. This would cause the generated library to | |
14861 | # depend on `.', always an invalid library. This was fixed in | |
14862 | # development snapshots of GCC prior to 3.0. | |
14863 | case $host_os in | |
14864 | aix4 | aix4.[01] | aix4.[01].*) | |
14865 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14866 | echo ' yes ' | |
14867 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14868 | : | |
14869 | else | |
14870 | can_build_shared=no | |
14871 | fi | |
14872 | ;; | |
14873 | esac | |
14874 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14875 | # soname into executable. Probably we can add versioning support to | |
14876 | # collect2, so additional links can be useful in future. | |
14877 | if test "$aix_use_runtimelinking" = yes; then | |
14878 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14879 | # instead of lib<name>.a to let people know that these are not | |
14880 | # typical AIX shared libraries. | |
14881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14882 | else | |
14883 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14884 | # and later when we are not doing run time linking. | |
14885 | library_names_spec='${libname}${release}.a $libname.a' | |
14886 | soname_spec='${libname}${release}${shared_ext}$major' | |
14887 | fi | |
14888 | shlibpath_var=LIBPATH | |
14889 | fi | |
14890 | ;; | |
14891 | ||
14892 | amigaos*) | |
14893 | case $host_cpu in | |
14894 | powerpc) | |
14895 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14896 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14898 | ;; | |
14899 | m68k) | |
14900 | library_names_spec='$libname.ixlibrary $libname.a' | |
14901 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14902 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
14903 | ;; | |
14904 | esac | |
14905 | ;; | |
14906 | ||
14907 | beos*) | |
14908 | library_names_spec='${libname}${shared_ext}' | |
14909 | dynamic_linker="$host_os ld.so" | |
14910 | shlibpath_var=LIBRARY_PATH | |
14911 | ;; | |
14912 | ||
14913 | bsdi[45]*) | |
14914 | version_type=linux | |
14915 | need_version=no | |
14916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14917 | soname_spec='${libname}${release}${shared_ext}$major' | |
14918 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14919 | shlibpath_var=LD_LIBRARY_PATH | |
14920 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14921 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14922 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14923 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14924 | # libtool to hard-code these into programs | |
14925 | ;; | |
14926 | ||
14927 | cygwin* | mingw* | pw32* | cegcc*) | |
14928 | version_type=windows | |
14929 | shrext_cmds=".dll" | |
14930 | need_version=no | |
14931 | need_lib_prefix=no | |
14932 | ||
14933 | case $GCC,$host_os in | |
14934 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
14935 | library_names_spec='$libname.dll.a' | |
14936 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14937 | postinstall_cmds='base_file=`basename \${file}`~ | |
14938 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14939 | dldir=$destdir/`dirname \$dlpath`~ | |
14940 | test -d \$dldir || mkdir -p \$dldir~ | |
14941 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14942 | chmod a+x \$dldir/$dlname~ | |
14943 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14944 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14945 | fi' | |
14946 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14947 | dlpath=$dir/\$dldll~ | |
14948 | $RM \$dlpath' | |
14949 | shlibpath_overrides_runpath=yes | |
14950 | ||
14951 | case $host_os in | |
14952 | cygwin*) | |
14953 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14954 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14955 | ||
14956 | ;; | |
14957 | mingw* | cegcc*) | |
14958 | # MinGW DLLs use traditional 'lib' prefix | |
14959 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14960 | ;; | |
14961 | pw32*) | |
14962 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14963 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14964 | ;; | |
14965 | esac | |
14966 | ;; | |
14967 | ||
14968 | *) | |
14969 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14970 | ;; | |
14971 | esac | |
14972 | dynamic_linker='Win32 ld.exe' | |
14973 | # FIXME: first we should search . and the directory the executable is in | |
14974 | shlibpath_var=PATH | |
14975 | ;; | |
14976 | ||
14977 | darwin* | rhapsody*) | |
14978 | dynamic_linker="$host_os dyld" | |
14979 | version_type=darwin | |
14980 | need_lib_prefix=no | |
14981 | need_version=no | |
14982 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14983 | soname_spec='${libname}${release}${major}$shared_ext' | |
14984 | shlibpath_overrides_runpath=yes | |
14985 | shlibpath_var=DYLD_LIBRARY_PATH | |
14986 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14987 | ||
14988 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14989 | ;; | |
14990 | ||
14991 | dgux*) | |
14992 | version_type=linux | |
14993 | need_lib_prefix=no | |
14994 | need_version=no | |
14995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14996 | soname_spec='${libname}${release}${shared_ext}$major' | |
14997 | shlibpath_var=LD_LIBRARY_PATH | |
14998 | ;; | |
14999 | ||
3cb62297 L |
15000 | freebsd* | dragonfly*) |
15001 | # DragonFly does not have aout. When/if they implement a new | |
15002 | # versioning mechanism, adjust this. | |
15003 | if test -x /usr/bin/objformat; then | |
15004 | objformat=`/usr/bin/objformat` | |
15005 | else | |
15006 | case $host_os in | |
6d2920c8 | 15007 | freebsd[23].*) objformat=aout ;; |
3cb62297 L |
15008 | *) objformat=elf ;; |
15009 | esac | |
15010 | fi | |
15011 | version_type=freebsd-$objformat | |
15012 | case $version_type in | |
15013 | freebsd-elf*) | |
15014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15015 | need_version=no | |
15016 | need_lib_prefix=no | |
15017 | ;; | |
15018 | freebsd-*) | |
15019 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15020 | need_version=yes | |
15021 | ;; | |
15022 | esac | |
15023 | shlibpath_var=LD_LIBRARY_PATH | |
15024 | case $host_os in | |
6d2920c8 | 15025 | freebsd2.*) |
3cb62297 L |
15026 | shlibpath_overrides_runpath=yes |
15027 | ;; | |
15028 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15029 | shlibpath_overrides_runpath=yes | |
15030 | hardcode_into_libs=yes | |
15031 | ;; | |
15032 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15033 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15034 | shlibpath_overrides_runpath=no | |
15035 | hardcode_into_libs=yes | |
15036 | ;; | |
15037 | *) # from 4.6 on, and DragonFly | |
15038 | shlibpath_overrides_runpath=yes | |
15039 | hardcode_into_libs=yes | |
15040 | ;; | |
15041 | esac | |
15042 | ;; | |
15043 | ||
15044 | gnu*) | |
15045 | version_type=linux | |
15046 | need_lib_prefix=no | |
15047 | need_version=no | |
15048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15049 | soname_spec='${libname}${release}${shared_ext}$major' | |
15050 | shlibpath_var=LD_LIBRARY_PATH | |
15051 | hardcode_into_libs=yes | |
15052 | ;; | |
15053 | ||
15054 | haiku*) | |
15055 | version_type=linux | |
15056 | need_lib_prefix=no | |
15057 | need_version=no | |
15058 | dynamic_linker="$host_os runtime_loader" | |
15059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15060 | soname_spec='${libname}${release}${shared_ext}$major' | |
15061 | shlibpath_var=LIBRARY_PATH | |
15062 | shlibpath_overrides_runpath=yes | |
15063 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15064 | hardcode_into_libs=yes | |
15065 | ;; | |
15066 | ||
15067 | hpux9* | hpux10* | hpux11*) | |
15068 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15069 | # link against other versions. | |
15070 | version_type=sunos | |
15071 | need_lib_prefix=no | |
15072 | need_version=no | |
15073 | case $host_cpu in | |
15074 | ia64*) | |
15075 | shrext_cmds='.so' | |
15076 | hardcode_into_libs=yes | |
15077 | dynamic_linker="$host_os dld.so" | |
15078 | shlibpath_var=LD_LIBRARY_PATH | |
15079 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15081 | soname_spec='${libname}${release}${shared_ext}$major' | |
15082 | if test "X$HPUX_IA64_MODE" = X32; then | |
15083 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15084 | else | |
15085 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15086 | fi | |
15087 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15088 | ;; | |
15089 | hppa*64*) | |
15090 | shrext_cmds='.sl' | |
15091 | hardcode_into_libs=yes | |
15092 | dynamic_linker="$host_os dld.sl" | |
15093 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15094 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15096 | soname_spec='${libname}${release}${shared_ext}$major' | |
15097 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15098 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15099 | ;; | |
15100 | *) | |
15101 | shrext_cmds='.sl' | |
15102 | dynamic_linker="$host_os dld.sl" | |
15103 | shlibpath_var=SHLIB_PATH | |
15104 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15106 | soname_spec='${libname}${release}${shared_ext}$major' | |
15107 | ;; | |
15108 | esac | |
15109 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
15110 | postinstall_cmds='chmod 555 $lib' | |
15111 | # or fails outright, so override atomically: | |
15112 | install_override_mode=555 | |
15113 | ;; | |
15114 | ||
15115 | interix[3-9]*) | |
15116 | version_type=linux | |
15117 | need_lib_prefix=no | |
15118 | need_version=no | |
15119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15120 | soname_spec='${libname}${release}${shared_ext}$major' | |
15121 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15122 | shlibpath_var=LD_LIBRARY_PATH | |
15123 | shlibpath_overrides_runpath=no | |
15124 | hardcode_into_libs=yes | |
15125 | ;; | |
15126 | ||
15127 | irix5* | irix6* | nonstopux*) | |
15128 | case $host_os in | |
15129 | nonstopux*) version_type=nonstopux ;; | |
15130 | *) | |
15131 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15132 | version_type=linux | |
15133 | else | |
15134 | version_type=irix | |
15135 | fi ;; | |
15136 | esac | |
15137 | need_lib_prefix=no | |
15138 | need_version=no | |
15139 | soname_spec='${libname}${release}${shared_ext}$major' | |
15140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15141 | case $host_os in | |
15142 | irix5* | nonstopux*) | |
15143 | libsuff= shlibsuff= | |
15144 | ;; | |
15145 | *) | |
15146 | case $LD in # libtool.m4 will add one of these switches to LD | |
15147 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15148 | libsuff= shlibsuff= libmagic=32-bit;; | |
15149 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15150 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15151 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15152 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15153 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15154 | esac | |
15155 | ;; | |
15156 | esac | |
15157 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15158 | shlibpath_overrides_runpath=no | |
15159 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15160 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15161 | hardcode_into_libs=yes | |
15162 | ;; | |
15163 | ||
15164 | # No shared lib support for Linux oldld, aout, or coff. | |
15165 | linux*oldld* | linux*aout* | linux*coff*) | |
15166 | dynamic_linker=no | |
15167 | ;; | |
15168 | ||
15169 | # This must be Linux ELF. | |
15170 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
15171 | version_type=linux | |
15172 | need_lib_prefix=no | |
15173 | need_version=no | |
15174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15175 | soname_spec='${libname}${release}${shared_ext}$major' | |
15176 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15177 | shlibpath_var=LD_LIBRARY_PATH | |
15178 | shlibpath_overrides_runpath=no | |
15179 | ||
15180 | # Some binutils ld are patched to set DT_RUNPATH | |
15181 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
15182 | $as_echo_n "(cached) " >&6 | |
15183 | else | |
15184 | lt_cv_shlibpath_overrides_runpath=no | |
15185 | save_LDFLAGS=$LDFLAGS | |
15186 | save_libdir=$libdir | |
15187 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15188 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15190 | /* end confdefs.h. */ | |
15191 | ||
15192 | int | |
15193 | main () | |
15194 | { | |
15195 | ||
15196 | ; | |
15197 | return 0; | |
15198 | } | |
15199 | _ACEOF | |
15200 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15201 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
15202 | lt_cv_shlibpath_overrides_runpath=yes | |
15203 | fi | |
15204 | fi | |
15205 | rm -f core conftest.err conftest.$ac_objext \ | |
15206 | conftest$ac_exeext conftest.$ac_ext | |
15207 | LDFLAGS=$save_LDFLAGS | |
15208 | libdir=$save_libdir | |
15209 | ||
15210 | fi | |
15211 | ||
15212 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
15213 | ||
15214 | # This implies no fast_install, which is unacceptable. | |
15215 | # Some rework will be needed to allow for fast_install | |
15216 | # before this can be enabled. | |
15217 | hardcode_into_libs=yes | |
15218 | ||
15219 | # Append ld.so.conf contents to the search path | |
15220 | if test -f /etc/ld.so.conf; then | |
15221 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
15222 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15223 | fi | |
15224 | ||
15225 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15226 | # powerpc, because MkLinux only supported shared libraries with the | |
15227 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15228 | # most powerpc-linux boxes support dynamic linking these days and | |
15229 | # people can always --disable-shared, the test was removed, and we | |
15230 | # assume the GNU/Linux dynamic linker is in use. | |
15231 | dynamic_linker='GNU/Linux ld.so' | |
15232 | ;; | |
15233 | ||
15234 | netbsd*) | |
15235 | version_type=sunos | |
15236 | need_lib_prefix=no | |
15237 | need_version=no | |
15238 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15240 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15241 | dynamic_linker='NetBSD (a.out) ld.so' | |
15242 | else | |
15243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15244 | soname_spec='${libname}${release}${shared_ext}$major' | |
15245 | dynamic_linker='NetBSD ld.elf_so' | |
15246 | fi | |
15247 | shlibpath_var=LD_LIBRARY_PATH | |
15248 | shlibpath_overrides_runpath=yes | |
15249 | hardcode_into_libs=yes | |
15250 | ;; | |
15251 | ||
15252 | newsos6) | |
15253 | version_type=linux | |
15254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15255 | shlibpath_var=LD_LIBRARY_PATH | |
15256 | shlibpath_overrides_runpath=yes | |
15257 | ;; | |
15258 | ||
15259 | *nto* | *qnx*) | |
15260 | version_type=qnx | |
15261 | need_lib_prefix=no | |
15262 | need_version=no | |
15263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15264 | soname_spec='${libname}${release}${shared_ext}$major' | |
15265 | shlibpath_var=LD_LIBRARY_PATH | |
15266 | shlibpath_overrides_runpath=no | |
15267 | hardcode_into_libs=yes | |
15268 | dynamic_linker='ldqnx.so' | |
15269 | ;; | |
15270 | ||
15271 | openbsd*) | |
15272 | version_type=sunos | |
15273 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15274 | need_lib_prefix=no | |
15275 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15276 | case $host_os in | |
15277 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15278 | *) need_version=no ;; | |
15279 | esac | |
15280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15281 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15282 | shlibpath_var=LD_LIBRARY_PATH | |
15283 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15284 | case $host_os in | |
15285 | openbsd2.[89] | openbsd2.[89].*) | |
15286 | shlibpath_overrides_runpath=no | |
15287 | ;; | |
15288 | *) | |
15289 | shlibpath_overrides_runpath=yes | |
15290 | ;; | |
15291 | esac | |
15292 | else | |
15293 | shlibpath_overrides_runpath=yes | |
15294 | fi | |
15295 | ;; | |
15296 | ||
15297 | os2*) | |
15298 | libname_spec='$name' | |
15299 | shrext_cmds=".dll" | |
15300 | need_lib_prefix=no | |
15301 | library_names_spec='$libname${shared_ext} $libname.a' | |
15302 | dynamic_linker='OS/2 ld.exe' | |
15303 | shlibpath_var=LIBPATH | |
15304 | ;; | |
15305 | ||
15306 | osf3* | osf4* | osf5*) | |
15307 | version_type=osf | |
15308 | need_lib_prefix=no | |
15309 | need_version=no | |
15310 | soname_spec='${libname}${release}${shared_ext}$major' | |
15311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15312 | shlibpath_var=LD_LIBRARY_PATH | |
15313 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15314 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15315 | ;; | |
15316 | ||
15317 | rdos*) | |
15318 | dynamic_linker=no | |
15319 | ;; | |
15320 | ||
15321 | solaris*) | |
15322 | version_type=linux | |
15323 | need_lib_prefix=no | |
15324 | need_version=no | |
15325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15326 | soname_spec='${libname}${release}${shared_ext}$major' | |
15327 | shlibpath_var=LD_LIBRARY_PATH | |
15328 | shlibpath_overrides_runpath=yes | |
15329 | hardcode_into_libs=yes | |
15330 | # ldd complains unless libraries are executable | |
15331 | postinstall_cmds='chmod +x $lib' | |
15332 | ;; | |
15333 | ||
15334 | sunos4*) | |
15335 | version_type=sunos | |
15336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15337 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15338 | shlibpath_var=LD_LIBRARY_PATH | |
15339 | shlibpath_overrides_runpath=yes | |
15340 | if test "$with_gnu_ld" = yes; then | |
15341 | need_lib_prefix=no | |
15342 | fi | |
15343 | need_version=yes | |
15344 | ;; | |
15345 | ||
15346 | sysv4 | sysv4.3*) | |
15347 | version_type=linux | |
15348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15349 | soname_spec='${libname}${release}${shared_ext}$major' | |
15350 | shlibpath_var=LD_LIBRARY_PATH | |
15351 | case $host_vendor in | |
15352 | sni) | |
15353 | shlibpath_overrides_runpath=no | |
15354 | need_lib_prefix=no | |
15355 | runpath_var=LD_RUN_PATH | |
15356 | ;; | |
15357 | siemens) | |
15358 | need_lib_prefix=no | |
15359 | ;; | |
15360 | motorola) | |
15361 | need_lib_prefix=no | |
15362 | need_version=no | |
15363 | shlibpath_overrides_runpath=no | |
15364 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15365 | ;; | |
15366 | esac | |
15367 | ;; | |
15368 | ||
15369 | sysv4*MP*) | |
15370 | if test -d /usr/nec ;then | |
15371 | version_type=linux | |
15372 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15373 | soname_spec='$libname${shared_ext}.$major' | |
15374 | shlibpath_var=LD_LIBRARY_PATH | |
15375 | fi | |
15376 | ;; | |
15377 | ||
15378 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15379 | version_type=freebsd-elf | |
15380 | need_lib_prefix=no | |
15381 | need_version=no | |
15382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15383 | soname_spec='${libname}${release}${shared_ext}$major' | |
15384 | shlibpath_var=LD_LIBRARY_PATH | |
15385 | shlibpath_overrides_runpath=yes | |
15386 | hardcode_into_libs=yes | |
15387 | if test "$with_gnu_ld" = yes; then | |
15388 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15389 | else | |
15390 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15391 | case $host_os in | |
15392 | sco3.2v5*) | |
15393 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15394 | ;; | |
15395 | esac | |
15396 | fi | |
15397 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15398 | ;; | |
15399 | ||
15400 | tpf*) | |
15401 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15402 | version_type=linux | |
15403 | need_lib_prefix=no | |
15404 | need_version=no | |
15405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15406 | shlibpath_var=LD_LIBRARY_PATH | |
15407 | shlibpath_overrides_runpath=no | |
15408 | hardcode_into_libs=yes | |
15409 | ;; | |
15410 | ||
15411 | uts4*) | |
15412 | version_type=linux | |
15413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15414 | soname_spec='${libname}${release}${shared_ext}$major' | |
15415 | shlibpath_var=LD_LIBRARY_PATH | |
15416 | ;; | |
15417 | ||
15418 | *) | |
15419 | dynamic_linker=no | |
15420 | ;; | |
15421 | esac | |
15422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15423 | $as_echo "$dynamic_linker" >&6; } | |
15424 | test "$dynamic_linker" = no && can_build_shared=no | |
15425 | ||
15426 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15427 | if test "$GCC" = yes; then | |
15428 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15429 | fi | |
15430 | ||
15431 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
15432 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15433 | fi | |
15434 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15435 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15436 | fi | |
15437 | ||
3725885a | 15438 | |
ce2cded5 | 15439 | |
ce2cded5 | 15440 | |
ce2cded5 | 15441 | |
d7040cdb | 15442 | |
ce2cded5 | 15443 | |
ce2cded5 | 15444 | |
ce2cded5 | 15445 | |
d7040cdb | 15446 | |
ce2cded5 L |
15447 | |
15448 | ||
15449 | ||
15450 | ||
15451 | ||
15452 | ||
15453 | ||
15454 | ||
15455 | ||
15456 | ||
15457 | ||
15458 | ||
15459 | ||
15460 | ||
15461 | ||
15462 | ||
ce2cded5 L |
15463 | |
15464 | ||
15465 | ||
15466 | ||
15467 | ||
15468 | ||
15469 | ||
15470 | ||
15471 | ||
15472 | ||
15473 | ||
15474 | ||
3cb62297 L |
15475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15476 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15477 | hardcode_action_CXX= | |
15478 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15479 | test -n "$runpath_var_CXX" || | |
15480 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
ce2cded5 | 15481 | |
3cb62297 L |
15482 | # We can hardcode non-existent directories. |
15483 | if test "$hardcode_direct_CXX" != no && | |
15484 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15485 | # have to relink, otherwise we might link with an installed library | |
15486 | # when we should be linking with a yet-to-be-installed one | |
15487 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15488 | test "$hardcode_minus_L_CXX" != no; then | |
15489 | # Linking always hardcodes the temporary library directory. | |
15490 | hardcode_action_CXX=relink | |
15491 | else | |
15492 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15493 | hardcode_action_CXX=immediate | |
15494 | fi | |
15495 | else | |
15496 | # We cannot hardcode anything, or else we can only hardcode existing | |
15497 | # directories. | |
15498 | hardcode_action_CXX=unsupported | |
15499 | fi | |
15500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15501 | $as_echo "$hardcode_action_CXX" >&6; } | |
ce2cded5 | 15502 | |
3cb62297 L |
15503 | if test "$hardcode_action_CXX" = relink || |
15504 | test "$inherit_rpath_CXX" = yes; then | |
15505 | # Fast installation is not supported | |
15506 | enable_fast_install=no | |
15507 | elif test "$shlibpath_overrides_runpath" = yes || | |
15508 | test "$enable_shared" = no; then | |
15509 | # Fast installation is not necessary | |
15510 | enable_fast_install=needless | |
15511 | fi | |
ce2cded5 | 15512 | |
ce2cded5 | 15513 | |
ce2cded5 L |
15514 | |
15515 | ||
15516 | ||
d7040cdb | 15517 | |
3cb62297 L |
15518 | |
15519 | fi # test -n "$compiler" | |
15520 | ||
15521 | CC=$lt_save_CC | |
15522 | LDCXX=$LD | |
15523 | LD=$lt_save_LD | |
15524 | GCC=$lt_save_GCC | |
15525 | with_gnu_ld=$lt_save_with_gnu_ld | |
15526 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15527 | lt_cv_path_LD=$lt_save_path_LD | |
15528 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15529 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15530 | fi # test "$_lt_caught_CXX_error" != yes | |
15531 | ||
d7040cdb SE |
15532 | ac_ext=c |
15533 | ac_cpp='$CPP $CPPFLAGS' | |
15534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15537 | ||
67310ccd AM |
15538 | |
15539 | ||
d7040cdb SE |
15540 | |
15541 | ||
d7040cdb | 15542 | |
d7040cdb | 15543 | |
d7040cdb | 15544 | |
ce2cded5 L |
15545 | |
15546 | ||
15547 | ||
15548 | ||
15549 | ||
81ecdfbb | 15550 | ac_config_commands="$ac_config_commands libtool" |
ce2cded5 L |
15551 | |
15552 | ||
15553 | ||
15554 | ||
15555 | # Only expand once: | |
15556 | ||
d7040cdb SE |
15557 | |
15558 | ||
3e4fe8ac | 15559 | ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk" |
d7040cdb SE |
15560 | # If we haven't got the data from the intl directory, |
15561 | # assume NLS is disabled. | |
15562 | USE_NLS=no | |
15563 | LIBINTL= | |
15564 | LIBINTL_DEP= | |
15565 | INCINTL= | |
15566 | XGETTEXT= | |
15567 | GMSGFMT= | |
15568 | POSUB= | |
15569 | ||
15570 | if test -f ../intl/config.intl; then | |
15571 | . ../intl/config.intl | |
15572 | fi | |
81ecdfbb RW |
15573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
15574 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 15575 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
15576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15577 | $as_echo "no" >&6; } | |
d7040cdb | 15578 | else |
81ecdfbb RW |
15579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15580 | $as_echo "yes" >&6; } | |
d7040cdb | 15581 | |
81ecdfbb | 15582 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
15583 | |
15584 | ||
81ecdfbb RW |
15585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
15586 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
15587 | # Look for .po and .gmo files in the source directory. |
15588 | CATALOGS= | |
15589 | XLINGUAS= | |
15590 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
15591 | # If there aren't any .gmo files the shell will give us the | |
15592 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
15593 | # weeded out. | |
15594 | case "$cat" in *\**) | |
15595 | continue;; | |
15596 | esac | |
15597 | # The quadruple backslash is collapsed to a double backslash | |
15598 | # by the backticks, then collapsed again by the double quotes, | |
15599 | # leaving us with one backslash in the sed expression (right | |
15600 | # before the dot that mustn't act as a wildcard). | |
15601 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
15602 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
15603 | # The user is allowed to set LINGUAS to a list of languages to | |
15604 | # install catalogs for. If it's empty that means "all of them." | |
15605 | if test "x$LINGUAS" = x; then | |
15606 | CATALOGS="$CATALOGS $cat" | |
15607 | XLINGUAS="$XLINGUAS $lang" | |
15608 | else | |
15609 | case "$LINGUAS" in *$lang*) | |
15610 | CATALOGS="$CATALOGS $cat" | |
15611 | XLINGUAS="$XLINGUAS $lang" | |
15612 | ;; | |
15613 | esac | |
15614 | fi | |
15615 | done | |
15616 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
15617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
15618 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
15619 | |
15620 | ||
15621 | DATADIRNAME=share | |
15622 | ||
15623 | INSTOBJEXT=.mo | |
15624 | ||
15625 | GENCAT=gencat | |
15626 | ||
15627 | CATOBJEXT=.gmo | |
15628 | ||
15629 | fi | |
15630 | ||
15631 | MKINSTALLDIRS= | |
15632 | if test -n "$ac_aux_dir"; then | |
15633 | case "$ac_aux_dir" in | |
15634 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
15635 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
15636 | esac | |
15637 | fi | |
15638 | if test -z "$MKINSTALLDIRS"; then | |
15639 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
15640 | fi | |
15641 | ||
15642 | ||
15643 | ||
81ecdfbb RW |
15644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
15645 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
15646 | # Check whether --enable-nls was given. | |
15647 | if test "${enable_nls+set}" = set; then : | |
15648 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
15649 | else |
15650 | USE_NLS=yes | |
81ecdfbb RW |
15651 | fi |
15652 | ||
15653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
15654 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
15655 | |
15656 | ||
15657 | ||
15658 | ||
15659 | ||
15660 | ||
15661 | # Prepare PATH_SEPARATOR. | |
15662 | # The user is always right. | |
15663 | if test "${PATH_SEPARATOR+set}" != set; then | |
15664 | echo "#! /bin/sh" >conf$$.sh | |
15665 | echo "exit 0" >>conf$$.sh | |
15666 | chmod +x conf$$.sh | |
15667 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15668 | PATH_SEPARATOR=';' | |
15669 | else | |
15670 | PATH_SEPARATOR=: | |
15671 | fi | |
15672 | rm -f conf$$.sh | |
15673 | fi | |
15674 | ||
15675 | # Find out how to test for executable files. Don't use a zero-byte file, | |
15676 | # as systems may use methods other than mode bits to determine executability. | |
15677 | cat >conf$$.file <<_ASEOF | |
15678 | #! /bin/sh | |
15679 | exit 0 | |
15680 | _ASEOF | |
15681 | chmod +x conf$$.file | |
15682 | if test -x conf$$.file >/dev/null 2>&1; then | |
15683 | ac_executable_p="test -x" | |
15684 | else | |
15685 | ac_executable_p="test -f" | |
15686 | fi | |
15687 | rm -f conf$$.file | |
15688 | ||
15689 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15690 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
15691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15692 | $as_echo_n "checking for $ac_word... " >&6; } | |
15693 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
15694 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15695 | else |
15696 | case "$MSGFMT" in | |
15697 | [\\/]* | ?:[\\/]*) | |
15698 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15699 | ;; | |
15700 | *) | |
15701 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15702 | for ac_dir in $PATH; do | |
15703 | IFS="$ac_save_IFS" | |
15704 | test -z "$ac_dir" && ac_dir=. | |
15705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15706 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15707 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
15708 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
15709 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
15710 | break 2 | |
15711 | fi | |
15712 | fi | |
15713 | done | |
15714 | done | |
15715 | IFS="$ac_save_IFS" | |
15716 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
15717 | ;; | |
15718 | esac | |
15719 | fi | |
15720 | MSGFMT="$ac_cv_path_MSGFMT" | |
15721 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
15722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
15723 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 15724 | else |
81ecdfbb RW |
15725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15726 | $as_echo "no" >&6; } | |
d7040cdb SE |
15727 | fi |
15728 | ||
15729 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
15730 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
15731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15732 | $as_echo_n "checking for $ac_word... " >&6; } | |
15733 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
15734 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15735 | else |
15736 | case $GMSGFMT in | |
15737 | [\\/]* | ?:[\\/]*) | |
15738 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
15739 | ;; | |
15740 | *) | |
15741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15742 | for as_dir in $PATH | |
15743 | do | |
15744 | IFS=$as_save_IFS | |
15745 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
15746 | for ac_exec_ext in '' $ac_executable_extensions; do |
15747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 15748 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
15750 | break 2 |
15751 | fi | |
15752 | done | |
81ecdfbb RW |
15753 | done |
15754 | IFS=$as_save_IFS | |
d7040cdb SE |
15755 | |
15756 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
15757 | ;; | |
15758 | esac | |
15759 | fi | |
15760 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 15761 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
15762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
15763 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 15764 | else |
81ecdfbb RW |
15765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15766 | $as_echo "no" >&6; } | |
20e95c23 | 15767 | fi |
42ecbf5e | 15768 | |
20e95c23 | 15769 | |
252b5132 | 15770 | |
81ecdfbb | 15771 | |
d7040cdb SE |
15772 | # Prepare PATH_SEPARATOR. |
15773 | # The user is always right. | |
15774 | if test "${PATH_SEPARATOR+set}" != set; then | |
15775 | echo "#! /bin/sh" >conf$$.sh | |
15776 | echo "exit 0" >>conf$$.sh | |
15777 | chmod +x conf$$.sh | |
15778 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15779 | PATH_SEPARATOR=';' | |
15780 | else | |
15781 | PATH_SEPARATOR=: | |
15782 | fi | |
15783 | rm -f conf$$.sh | |
20e95c23 | 15784 | fi |
252b5132 | 15785 | |
d7040cdb SE |
15786 | # Find out how to test for executable files. Don't use a zero-byte file, |
15787 | # as systems may use methods other than mode bits to determine executability. | |
15788 | cat >conf$$.file <<_ASEOF | |
15789 | #! /bin/sh | |
15790 | exit 0 | |
15791 | _ASEOF | |
15792 | chmod +x conf$$.file | |
15793 | if test -x conf$$.file >/dev/null 2>&1; then | |
15794 | ac_executable_p="test -x" | |
20e95c23 | 15795 | else |
d7040cdb SE |
15796 | ac_executable_p="test -f" |
15797 | fi | |
15798 | rm -f conf$$.file | |
20e95c23 | 15799 | |
d7040cdb SE |
15800 | # Extract the first word of "xgettext", so it can be a program name with args. |
15801 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15803 | $as_echo_n "checking for $ac_word... " >&6; } | |
15804 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
15805 | $as_echo_n "(cached) " >&6 | |
252b5132 | 15806 | else |
d7040cdb SE |
15807 | case "$XGETTEXT" in |
15808 | [\\/]* | ?:[\\/]*) | |
15809 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
15810 | ;; | |
15811 | *) | |
15812 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15813 | for ac_dir in $PATH; do | |
15814 | IFS="$ac_save_IFS" | |
15815 | test -z "$ac_dir" && ac_dir=. | |
15816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15817 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15818 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
15819 | (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 | |
15820 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
15821 | break 2 | |
15822 | fi | |
15823 | fi | |
15824 | done | |
15825 | done | |
15826 | IFS="$ac_save_IFS" | |
15827 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
15828 | ;; | |
15829 | esac | |
252b5132 | 15830 | fi |
d7040cdb SE |
15831 | XGETTEXT="$ac_cv_path_XGETTEXT" |
15832 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
15833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
15834 | $as_echo "$XGETTEXT" >&6; } | |
d5fbea21 | 15835 | else |
81ecdfbb RW |
15836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15837 | $as_echo "no" >&6; } | |
d5fbea21 DJ |
15838 | fi |
15839 | ||
d7040cdb | 15840 | rm -f messages.po |
d5fbea21 | 15841 | |
20e95c23 | 15842 | |
d7040cdb SE |
15843 | # Prepare PATH_SEPARATOR. |
15844 | # The user is always right. | |
15845 | if test "${PATH_SEPARATOR+set}" != set; then | |
15846 | echo "#! /bin/sh" >conf$$.sh | |
15847 | echo "exit 0" >>conf$$.sh | |
15848 | chmod +x conf$$.sh | |
15849 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15850 | PATH_SEPARATOR=';' | |
15851 | else | |
15852 | PATH_SEPARATOR=: | |
15853 | fi | |
15854 | rm -f conf$$.sh | |
15855 | fi | |
20e95c23 | 15856 | |
d7040cdb SE |
15857 | # Find out how to test for executable files. Don't use a zero-byte file, |
15858 | # as systems may use methods other than mode bits to determine executability. | |
15859 | cat >conf$$.file <<_ASEOF | |
15860 | #! /bin/sh | |
15861 | exit 0 | |
15862 | _ASEOF | |
15863 | chmod +x conf$$.file | |
15864 | if test -x conf$$.file >/dev/null 2>&1; then | |
15865 | ac_executable_p="test -x" | |
15866 | else | |
15867 | ac_executable_p="test -f" | |
15868 | fi | |
15869 | rm -f conf$$.file | |
20e95c23 | 15870 | |
d7040cdb SE |
15871 | # Extract the first word of "msgmerge", so it can be a program name with args. |
15872 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
15873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15874 | $as_echo_n "checking for $ac_word... " >&6; } | |
15875 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
15876 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15877 | else |
15878 | case "$MSGMERGE" in | |
15879 | [\\/]* | ?:[\\/]*) | |
15880 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
15881 | ;; | |
15882 | *) | |
15883 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15884 | for ac_dir in $PATH; do | |
15885 | IFS="$ac_save_IFS" | |
15886 | test -z "$ac_dir" && ac_dir=. | |
15887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15888 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15889 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
15890 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
15891 | break 2 | |
15892 | fi | |
15893 | fi | |
15894 | done | |
15895 | done | |
15896 | IFS="$ac_save_IFS" | |
15897 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
15898 | ;; | |
15899 | esac | |
15900 | fi | |
15901 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
15902 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
15904 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 15905 | else |
81ecdfbb RW |
15906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15907 | $as_echo "no" >&6; } | |
d7040cdb | 15908 | fi |
20e95c23 DJ |
15909 | |
15910 | ||
d7040cdb SE |
15911 | if test "$GMSGFMT" != ":"; then |
15912 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
15913 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
15914 | : ; | |
15915 | else | |
15916 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
15917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
15918 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
15919 | GMSGFMT=":" |
15920 | fi | |
15921 | fi | |
20e95c23 | 15922 | |
d7040cdb SE |
15923 | if test "$XGETTEXT" != ":"; then |
15924 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
15925 | (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 | |
15926 | : ; | |
15927 | else | |
81ecdfbb RW |
15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
15929 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
15930 | XGETTEXT=":" |
15931 | fi | |
15932 | rm -f messages.po | |
20e95c23 | 15933 | fi |
42ecbf5e | 15934 | |
81ecdfbb | 15935 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 15936 | |
42ecbf5e | 15937 | |
252b5132 | 15938 | |
42ecbf5e DJ |
15939 | |
15940 | ||
d7040cdb | 15941 | for ac_prog in 'bison -y' byacc |
20e95c23 | 15942 | do |
d7040cdb SE |
15943 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
15944 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
15945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15946 | $as_echo_n "checking for $ac_word... " >&6; } | |
15947 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
15948 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 15949 | else |
d7040cdb SE |
15950 | if test -n "$YACC"; then |
15951 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e | 15952 | else |
d7040cdb SE |
15953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15954 | for as_dir in $PATH | |
15955 | do | |
15956 | IFS=$as_save_IFS | |
15957 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
15958 | for ac_exec_ext in '' $ac_executable_extensions; do |
15959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 15960 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 15961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
15962 | break 2 |
15963 | fi | |
15964 | done | |
81ecdfbb RW |
15965 | done |
15966 | IFS=$as_save_IFS | |
42ecbf5e | 15967 | |
42ecbf5e | 15968 | fi |
e5a52504 | 15969 | fi |
d7040cdb SE |
15970 | YACC=$ac_cv_prog_YACC |
15971 | if test -n "$YACC"; then | |
81ecdfbb RW |
15972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
15973 | $as_echo "$YACC" >&6; } | |
42ecbf5e | 15974 | else |
81ecdfbb RW |
15975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15976 | $as_echo "no" >&6; } | |
42ecbf5e | 15977 | fi |
252b5132 | 15978 | |
81ecdfbb | 15979 | |
d7040cdb | 15980 | test -n "$YACC" && break |
42ecbf5e | 15981 | done |
d7040cdb | 15982 | test -n "$YACC" || YACC="yacc" |
d15b04bd | 15983 | |
d7040cdb SE |
15984 | for ac_prog in flex lex |
15985 | do | |
15986 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15987 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
15988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15989 | $as_echo_n "checking for $ac_word... " >&6; } | |
15990 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
15991 | $as_echo_n "(cached) " >&6 | |
d15b04bd | 15992 | else |
d7040cdb SE |
15993 | if test -n "$LEX"; then |
15994 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
15995 | else | |
15996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15997 | for as_dir in $PATH | |
15998 | do | |
15999 | IFS=$as_save_IFS | |
16000 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
16001 | for ac_exec_ext in '' $ac_executable_extensions; do |
16002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 16003 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 16004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16005 | break 2 |
16006 | fi | |
16007 | done | |
81ecdfbb RW |
16008 | done |
16009 | IFS=$as_save_IFS | |
d7040cdb SE |
16010 | |
16011 | fi | |
16012 | fi | |
16013 | LEX=$ac_cv_prog_LEX | |
16014 | if test -n "$LEX"; then | |
81ecdfbb RW |
16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
16016 | $as_echo "$LEX" >&6; } | |
d7040cdb | 16017 | else |
81ecdfbb RW |
16018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16019 | $as_echo "no" >&6; } | |
d15b04bd | 16020 | fi |
e5a52504 | 16021 | |
81ecdfbb | 16022 | |
d7040cdb SE |
16023 | test -n "$LEX" && break |
16024 | done | |
16025 | test -n "$LEX" || LEX=":" | |
42ecbf5e | 16026 | |
81ecdfbb RW |
16027 | if test "x$LEX" != "x:"; then |
16028 | cat >conftest.l <<_ACEOF | |
16029 | %% | |
16030 | a { ECHO; } | |
16031 | b { REJECT; } | |
16032 | c { yymore (); } | |
16033 | d { yyless (1); } | |
16034 | e { yyless (input () != 0); } | |
16035 | f { unput (yytext[0]); } | |
16036 | . { BEGIN INITIAL; } | |
16037 | %% | |
16038 | #ifdef YYTEXT_POINTER | |
16039 | extern char *yytext; | |
d7040cdb | 16040 | #endif |
42ecbf5e | 16041 | int |
81ecdfbb | 16042 | main (void) |
42ecbf5e | 16043 | { |
81ecdfbb | 16044 | return ! yylex () + ! yywrap (); |
42ecbf5e DJ |
16045 | } |
16046 | _ACEOF | |
81ecdfbb RW |
16047 | { { ac_try="$LEX conftest.l" |
16048 | case "(($ac_try" in | |
16049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16050 | *) ac_try_echo=$ac_try;; | |
16051 | esac | |
16052 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16053 | $as_echo "$ac_try_echo"; } >&5 | |
16054 | (eval "$LEX conftest.l") 2>&5 | |
42ecbf5e | 16055 | ac_status=$? |
81ecdfbb RW |
16056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16057 | test $ac_status = 0; } | |
16058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
16059 | $as_echo_n "checking lex output file root... " >&6; } | |
16060 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
16061 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 16062 | else |
42ecbf5e | 16063 | |
81ecdfbb RW |
16064 | if test -f lex.yy.c; then |
16065 | ac_cv_prog_lex_root=lex.yy | |
16066 | elif test -f lexyy.c; then | |
16067 | ac_cv_prog_lex_root=lexyy | |
16068 | else | |
16069 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
42ecbf5e | 16070 | fi |
42ecbf5e | 16071 | fi |
81ecdfbb RW |
16072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
16073 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
16074 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20e95c23 | 16075 | |
81ecdfbb RW |
16076 | if test -z "${LEXLIB+set}"; then |
16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
16078 | $as_echo_n "checking lex library... " >&6; } | |
16079 | if test "${ac_cv_lib_lex+set}" = set; then : | |
16080 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16081 | else |
20e95c23 | 16082 | |
81ecdfbb RW |
16083 | ac_save_LIBS=$LIBS |
16084 | ac_cv_lib_lex='none needed' | |
16085 | for ac_lib in '' -lfl -ll; do | |
16086 | LIBS="$ac_lib $ac_save_LIBS" | |
16087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16088 | /* end confdefs.h. */ | |
16089 | `cat $LEX_OUTPUT_ROOT.c` | |
16090 | _ACEOF | |
16091 | if ac_fn_c_try_link "$LINENO"; then : | |
16092 | ac_cv_lib_lex=$ac_lib | |
20e95c23 | 16093 | fi |
81ecdfbb RW |
16094 | rm -f core conftest.err conftest.$ac_objext \ |
16095 | conftest$ac_exeext conftest.$ac_ext | |
16096 | test "$ac_cv_lib_lex" != 'none needed' && break | |
16097 | done | |
16098 | LIBS=$ac_save_LIBS | |
20e95c23 DJ |
16099 | |
16100 | fi | |
81ecdfbb RW |
16101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
16102 | $as_echo "$ac_cv_lib_lex" >&6; } | |
16103 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb | 16104 | fi |
20e95c23 | 16105 | |
20e95c23 | 16106 | |
81ecdfbb RW |
16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
16108 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
16109 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
16110 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
16111 | else |
16112 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 16113 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
16114 | # not all implementations provide the %pointer and %array declarations. |
16115 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 16116 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
16117 | LIBS="$LEXLIB $ac_save_LIBS" |
16118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16119 | /* end confdefs.h. */ | |
16120 | #define YYTEXT_POINTER 1 | |
d7040cdb | 16121 | `cat $LEX_OUTPUT_ROOT.c` |
20e95c23 | 16122 | _ACEOF |
81ecdfbb | 16123 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 16124 | ac_cv_prog_lex_yytext_pointer=yes |
d7040cdb | 16125 | fi |
81ecdfbb RW |
16126 | rm -f core conftest.err conftest.$ac_objext \ |
16127 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 16128 | LIBS=$ac_save_LIBS |
d7040cdb SE |
16129 | |
16130 | fi | |
81ecdfbb RW |
16131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
16132 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb SE |
16133 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
16134 | ||
81ecdfbb | 16135 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
d7040cdb SE |
16136 | |
16137 | fi | |
81ecdfbb | 16138 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
d7040cdb SE |
16139 | |
16140 | fi | |
16141 | if test "$LEX" = :; then | |
16142 | LEX=${am_missing_run}flex | |
16143 | fi | |
16144 | ||
81ecdfbb RW |
16145 | |
16146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
16147 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
16148 | # Check whether --enable-maintainer-mode was given. | |
16149 | if test "${enable_maintainer_mode+set}" = set; then : | |
16150 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
252b5132 | 16151 | else |
d7040cdb | 16152 | USE_MAINTAINER_MODE=no |
81ecdfbb | 16153 | fi |
d7040cdb | 16154 | |
81ecdfbb RW |
16155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
16156 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
16157 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
16158 | MAINTAINER_MODE_TRUE= |
16159 | MAINTAINER_MODE_FALSE='#' | |
16160 | else | |
16161 | MAINTAINER_MODE_TRUE='#' | |
16162 | MAINTAINER_MODE_FALSE= | |
252b5132 | 16163 | fi |
252b5132 | 16164 | |
d7040cdb SE |
16165 | MAINT=$MAINTAINER_MODE_TRUE |
16166 | ||
16167 | ||
81ecdfbb | 16168 | if false; then |
d7040cdb SE |
16169 | GENINSRC_NEVER_TRUE= |
16170 | GENINSRC_NEVER_FALSE='#' | |
16171 | else | |
16172 | GENINSRC_NEVER_TRUE='#' | |
16173 | GENINSRC_NEVER_FALSE= | |
252b5132 RH |
16174 | fi |
16175 | ||
81ecdfbb RW |
16176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
16177 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
16178 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
16179 | $as_echo_n "(cached) " >&6 | |
eccbf555 AM |
16180 | else |
16181 | echo abfoo >t1 | |
16182 | echo cdfoo >t2 | |
16183 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
16184 | if cmp t1 t2 2 2 > /dev/null 2>&1; then | |
16185 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
16186 | : | |
16187 | else | |
16188 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
16189 | fi | |
16190 | fi | |
16191 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
16192 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
16193 | : | |
16194 | else | |
16195 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
16196 | fi | |
16197 | fi | |
16198 | rm t1 t2 | |
16199 | ||
16200 | fi | |
81ecdfbb RW |
16201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
16202 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
eccbf555 AM |
16203 | do_compare="$gcc_cv_prog_cmp_skip" |
16204 | ||
16205 | ||
d7040cdb SE |
16206 | |
16207 | . ${srcdir}/configure.host | |
16208 | ||
16209 | ||
16210 | ||
16211 | ||
252b5132 RH |
16212 | |
16213 | ||
6738cadc | 16214 | |
b27caf75 | 16215 | |
58797674 | 16216 | for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h |
81ecdfbb RW |
16217 | do : |
16218 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16219 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16220 | eval as_val=\$$as_ac_Header | |
16221 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16222 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16223 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16224 | _ACEOF |
16225 | ||
16226 | fi | |
16227 | ||
252b5132 RH |
16228 | done |
16229 | ||
5d3236ee DK |
16230 | for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h |
16231 | do : | |
16232 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16233 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16234 | eval as_val=\$$as_ac_Header | |
16235 | if test "x$as_val" = x""yes; then : | |
16236 | cat >>confdefs.h <<_ACEOF | |
16237 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16238 | _ACEOF | |
16239 | ||
16240 | fi | |
16241 | ||
16242 | done | |
16243 | ||
208a4923 NC |
16244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 |
16245 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
16246 | if test "${gcc_cv_header_string+set}" = set; then : | |
16247 | $as_echo_n "(cached) " >&6 | |
16248 | else | |
16249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16250 | /* end confdefs.h. */ | |
16251 | #include <string.h> | |
16252 | #include <strings.h> | |
16253 | int | |
16254 | main () | |
16255 | { | |
16256 | ||
16257 | ; | |
16258 | return 0; | |
16259 | } | |
16260 | _ACEOF | |
16261 | if ac_fn_c_try_compile "$LINENO"; then : | |
16262 | gcc_cv_header_string=yes | |
16263 | else | |
16264 | gcc_cv_header_string=no | |
16265 | fi | |
16266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16267 | fi | |
16268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
16269 | $as_echo "$gcc_cv_header_string" >&6; } | |
16270 | if test $gcc_cv_header_string = yes; then | |
16271 | ||
16272 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
16273 | ||
16274 | fi | |
16275 | ||
44350750 | 16276 | for ac_func in glob mkstemp realpath sbrk setlocale waitpid |
81ecdfbb RW |
16277 | do : |
16278 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16279 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16280 | eval as_val=\$$as_ac_var | |
16281 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16282 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16283 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
42ecbf5e | 16284 | _ACEOF |
252b5132 | 16285 | |
252b5132 RH |
16286 | fi |
16287 | done | |
16288 | ||
5d3236ee DK |
16289 | for ac_func in open lseek close |
16290 | do : | |
16291 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16292 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16293 | eval as_val=\$$as_ac_var | |
16294 | if test "x$as_val" = x""yes; then : | |
16295 | cat >>confdefs.h <<_ACEOF | |
16296 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16297 | _ACEOF | |
16298 | ||
16299 | fi | |
16300 | done | |
16301 | ||
252b5132 | 16302 | ac_header_dirent=no |
42ecbf5e | 16303 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
16304 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
16305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
16306 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
16307 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
16308 | $as_echo_n "(cached) " >&6 | |
16309 | else | |
16310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 16311 | /* end confdefs.h. */ |
252b5132 RH |
16312 | #include <sys/types.h> |
16313 | #include <$ac_hdr> | |
42ecbf5e DJ |
16314 | |
16315 | int | |
16316 | main () | |
16317 | { | |
16318 | if ((DIR *) 0) | |
16319 | return 0; | |
16320 | ; | |
16321 | return 0; | |
16322 | } | |
16323 | _ACEOF | |
81ecdfbb | 16324 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
16325 | eval "$as_ac_Header=yes" |
16326 | else | |
81ecdfbb | 16327 | eval "$as_ac_Header=no" |
42ecbf5e | 16328 | fi |
81ecdfbb | 16329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e | 16330 | fi |
81ecdfbb RW |
16331 | eval ac_res=\$$as_ac_Header |
16332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16333 | $as_echo "$ac_res" >&6; } | |
16334 | eval as_val=\$$as_ac_Header | |
16335 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16336 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16337 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16338 | _ACEOF |
16339 | ||
16340 | ac_header_dirent=$ac_hdr; break | |
d15b04bd | 16341 | fi |
42ecbf5e | 16342 | |
d15b04bd L |
16343 | done |
16344 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
16345 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
16346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
16347 | $as_echo_n "checking for library containing opendir... " >&6; } | |
16348 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16349 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
16350 | else |
16351 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 16352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
16353 | /* end confdefs.h. */ |
16354 | ||
81ecdfbb RW |
16355 | /* Override any GCC internal prototype to avoid an error. |
16356 | Use char because int might match the return type of a GCC | |
16357 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
16358 | #ifdef __cplusplus |
16359 | extern "C" | |
16360 | #endif | |
42ecbf5e DJ |
16361 | char opendir (); |
16362 | int | |
16363 | main () | |
16364 | { | |
81ecdfbb | 16365 | return opendir (); |
42ecbf5e DJ |
16366 | ; |
16367 | return 0; | |
16368 | } | |
16369 | _ACEOF | |
81ecdfbb RW |
16370 | for ac_lib in '' dir; do |
16371 | if test -z "$ac_lib"; then | |
16372 | ac_res="none required" | |
16373 | else | |
16374 | ac_res=-l$ac_lib | |
42ecbf5e | 16375 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
16376 | fi |
16377 | if ac_fn_c_try_link "$LINENO"; then : | |
16378 | ac_cv_search_opendir=$ac_res | |
16379 | fi | |
16380 | rm -f core conftest.err conftest.$ac_objext \ | |
16381 | conftest$ac_exeext | |
16382 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16383 | break | |
16384 | fi | |
16385 | done | |
16386 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e5a52504 | 16387 | |
42ecbf5e | 16388 | else |
81ecdfbb | 16389 | ac_cv_search_opendir=no |
252b5132 | 16390 | fi |
81ecdfbb | 16391 | rm conftest.$ac_ext |
42ecbf5e DJ |
16392 | LIBS=$ac_func_search_save_LIBS |
16393 | fi | |
81ecdfbb RW |
16394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
16395 | $as_echo "$ac_cv_search_opendir" >&6; } | |
16396 | ac_res=$ac_cv_search_opendir | |
16397 | if test "$ac_res" != no; then : | |
16398 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 16399 | |
d15b04bd | 16400 | fi |
252b5132 RH |
16401 | |
16402 | else | |
81ecdfbb RW |
16403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
16404 | $as_echo_n "checking for library containing opendir... " >&6; } | |
16405 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16406 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16407 | else |
42ecbf5e | 16408 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 16409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
16410 | /* end confdefs.h. */ |
16411 | ||
81ecdfbb RW |
16412 | /* Override any GCC internal prototype to avoid an error. |
16413 | Use char because int might match the return type of a GCC | |
16414 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
16415 | #ifdef __cplusplus |
16416 | extern "C" | |
16417 | #endif | |
42ecbf5e DJ |
16418 | char opendir (); |
16419 | int | |
16420 | main () | |
16421 | { | |
81ecdfbb | 16422 | return opendir (); |
42ecbf5e DJ |
16423 | ; |
16424 | return 0; | |
16425 | } | |
16426 | _ACEOF | |
81ecdfbb RW |
16427 | for ac_lib in '' x; do |
16428 | if test -z "$ac_lib"; then | |
16429 | ac_res="none required" | |
16430 | else | |
16431 | ac_res=-l$ac_lib | |
42ecbf5e | 16432 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
16433 | fi |
16434 | if ac_fn_c_try_link "$LINENO"; then : | |
16435 | ac_cv_search_opendir=$ac_res | |
16436 | fi | |
16437 | rm -f core conftest.err conftest.$ac_objext \ | |
16438 | conftest$ac_exeext | |
16439 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16440 | break | |
16441 | fi | |
16442 | done | |
16443 | if test "${ac_cv_search_opendir+set}" = set; then : | |
252b5132 | 16444 | |
42ecbf5e | 16445 | else |
81ecdfbb | 16446 | ac_cv_search_opendir=no |
252b5132 | 16447 | fi |
81ecdfbb | 16448 | rm conftest.$ac_ext |
42ecbf5e | 16449 | LIBS=$ac_func_search_save_LIBS |
252b5132 | 16450 | fi |
81ecdfbb RW |
16451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
16452 | $as_echo "$ac_cv_search_opendir" >&6; } | |
16453 | ac_res=$ac_cv_search_opendir | |
16454 | if test "$ac_res" != no; then : | |
16455 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 16456 | |
d15b04bd | 16457 | fi |
252b5132 RH |
16458 | |
16459 | fi | |
16460 | ||
16461 | ||
5d3236ee DK |
16462 | # Check for dlopen support and enable plugins if possible. |
16463 | enable_plugins=yes | |
16464 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
16465 | " | |
16466 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
16467 | ||
16468 | else | |
16469 | enable_plugins=no | |
16470 | fi | |
16471 | ||
16472 | ||
16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
16474 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
16475 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16476 | $as_echo_n "(cached) " >&6 | |
16477 | else | |
16478 | ac_func_search_save_LIBS=$LIBS | |
16479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16480 | /* end confdefs.h. */ | |
16481 | ||
16482 | /* Override any GCC internal prototype to avoid an error. | |
16483 | Use char because int might match the return type of a GCC | |
16484 | builtin and then its argument prototype would still apply. */ | |
16485 | #ifdef __cplusplus | |
16486 | extern "C" | |
16487 | #endif | |
16488 | char dlopen (); | |
16489 | int | |
16490 | main () | |
16491 | { | |
16492 | return dlopen (); | |
16493 | ; | |
16494 | return 0; | |
16495 | } | |
16496 | _ACEOF | |
16497 | for ac_lib in '' dl; do | |
16498 | if test -z "$ac_lib"; then | |
16499 | ac_res="none required" | |
16500 | else | |
16501 | ac_res=-l$ac_lib | |
16502 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16503 | fi | |
16504 | if ac_fn_c_try_link "$LINENO"; then : | |
16505 | ac_cv_search_dlopen=$ac_res | |
16506 | fi | |
16507 | rm -f core conftest.err conftest.$ac_objext \ | |
16508 | conftest$ac_exeext | |
16509 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16510 | break | |
16511 | fi | |
16512 | done | |
16513 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16514 | ||
16515 | else | |
16516 | ac_cv_search_dlopen=no | |
16517 | fi | |
16518 | rm conftest.$ac_ext | |
16519 | LIBS=$ac_func_search_save_LIBS | |
16520 | fi | |
16521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
16522 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
16523 | ac_res=$ac_cv_search_dlopen | |
16524 | if test "$ac_res" != no; then : | |
16525 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16526 | ||
16527 | else | |
16528 | enable_plugins=no | |
16529 | fi | |
16530 | ||
16531 | for ac_func in dlopen dlsym dlclose | |
16532 | do : | |
16533 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16534 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16535 | eval as_val=\$$as_ac_var | |
16536 | if test "x$as_val" = x""yes; then : | |
16537 | cat >>confdefs.h <<_ACEOF | |
16538 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16539 | _ACEOF | |
16540 | ||
16541 | else | |
16542 | enable_plugins=no | |
16543 | fi | |
16544 | done | |
16545 | ||
3917d5d5 DK |
16546 | # We also support plugins on Windows (MinGW). |
16547 | if test x$enable_plugins = xno ; then | |
f31d24a0 | 16548 | for ac_header in windows.h |
3917d5d5 | 16549 | do : |
f31d24a0 | 16550 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default |
3917d5d5 | 16551 | " |
f31d24a0 | 16552 | if test "x$ac_cv_header_windows_h" = x""yes; then : |
3917d5d5 DK |
16553 | cat >>confdefs.h <<_ACEOF |
16554 | #define HAVE_WINDOWS_H 1 | |
16555 | _ACEOF | |
16556 | enable_plugins=yes | |
16557 | fi | |
16558 | ||
16559 | done | |
16560 | ||
16561 | fi | |
5d3236ee DK |
16562 | if test x$enable_plugins = xyes; then |
16563 | ENABLE_PLUGINS_TRUE= | |
16564 | ENABLE_PLUGINS_FALSE='#' | |
16565 | else | |
16566 | ENABLE_PLUGINS_TRUE='#' | |
16567 | ENABLE_PLUGINS_FALSE= | |
16568 | fi | |
16569 | ||
16570 | ||
02ecc8e9 L |
16571 | # Check whether --enable-initfini-array was given. |
16572 | if test "${enable_initfini_array+set}" = set; then : | |
16573 | enableval=$enable_initfini_array; | |
16574 | else | |
16575 | ||
16576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5 | |
16577 | $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } | |
16578 | if test "${gcc_cv_initfini_array+set}" = set; then : | |
16579 | $as_echo_n "(cached) " >&6 | |
16580 | else | |
16581 | if test "x${build}" = "x${target}" ; then | |
16582 | if test "$cross_compiling" = yes; then : | |
16583 | gcc_cv_initfini_array=no | |
16584 | else | |
16585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16586 | /* end confdefs.h. */ | |
16587 | ||
16588 | static int x = -1; | |
16589 | int main (void) { return x; } | |
16590 | int foo (void) { x = 0; } | |
16591 | int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; | |
16592 | _ACEOF | |
16593 | if ac_fn_c_try_run "$LINENO"; then : | |
16594 | gcc_cv_initfini_array=yes | |
16595 | else | |
16596 | gcc_cv_initfini_array=no | |
16597 | fi | |
16598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16599 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16600 | fi | |
16601 | ||
16602 | else | |
16603 | gcc_cv_initfini_array=no | |
16604 | fi | |
16605 | fi | |
16606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5 | |
16607 | $as_echo "$gcc_cv_initfini_array" >&6; } | |
16608 | enable_initfini_array=$gcc_cv_initfini_array | |
16609 | ||
16610 | fi | |
16611 | ||
16612 | ||
16613 | if test $enable_initfini_array = yes; then | |
16614 | ||
16615 | $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h | |
16616 | ||
16617 | fi | |
16618 | ||
81ecdfbb RW |
16619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
16620 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
16621 | if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then : | |
16622 | $as_echo_n "(cached) " >&6 | |
34875e64 | 16623 | else |
81ecdfbb | 16624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 16625 | /* end confdefs.h. */ |
34875e64 | 16626 | #include <unistd.h> |
42ecbf5e DJ |
16627 | int |
16628 | main () | |
16629 | { | |
34875e64 | 16630 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
16631 | ; |
16632 | return 0; | |
16633 | } | |
16634 | _ACEOF | |
81ecdfbb | 16635 | if ac_fn_c_try_compile "$LINENO"; then : |
34875e64 NC |
16636 | ld_cv_decl_getopt_unistd_h=yes |
16637 | else | |
81ecdfbb | 16638 | ld_cv_decl_getopt_unistd_h=no |
34875e64 | 16639 | fi |
81ecdfbb | 16640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
16641 | fi |
16642 | ||
81ecdfbb RW |
16643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5 |
16644 | $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; } | |
34875e64 | 16645 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e | 16646 | |
81ecdfbb | 16647 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
34875e64 NC |
16648 | |
16649 | fi | |
42ecbf5e | 16650 | |
252b5132 RH |
16651 | |
16652 | case "${host}" in | |
a8100d5b | 16653 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e | 16654 | |
81ecdfbb | 16655 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
252b5132 RH |
16656 | ;; |
16657 | esac | |
16658 | ||
81ecdfbb RW |
16659 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" |
16660 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
16661 | ac_have_decl=1 | |
252b5132 | 16662 | else |
81ecdfbb RW |
16663 | ac_have_decl=0 |
16664 | fi | |
502bdb00 | 16665 | |
81ecdfbb RW |
16666 | cat >>confdefs.h <<_ACEOF |
16667 | #define HAVE_DECL_STRSTR $ac_have_decl | |
42ecbf5e | 16668 | _ACEOF |
81ecdfbb RW |
16669 | ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" |
16670 | if test "x$ac_cv_have_decl_free" = x""yes; then : | |
16671 | ac_have_decl=1 | |
252b5132 | 16672 | else |
81ecdfbb | 16673 | ac_have_decl=0 |
252b5132 RH |
16674 | fi |
16675 | ||
502bdb00 | 16676 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16677 | #define HAVE_DECL_FREE $ac_have_decl |
502bdb00 | 16678 | _ACEOF |
81ecdfbb RW |
16679 | ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" |
16680 | if test "x$ac_cv_have_decl_sbrk" = x""yes; then : | |
16681 | ac_have_decl=1 | |
16682 | else | |
16683 | ac_have_decl=0 | |
16684 | fi | |
42ecbf5e | 16685 | |
81ecdfbb RW |
16686 | cat >>confdefs.h <<_ACEOF |
16687 | #define HAVE_DECL_SBRK $ac_have_decl | |
16688 | _ACEOF | |
16689 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | |
16690 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : | |
16691 | ac_have_decl=1 | |
16692 | else | |
16693 | ac_have_decl=0 | |
16694 | fi | |
502bdb00 | 16695 | |
81ecdfbb RW |
16696 | cat >>confdefs.h <<_ACEOF |
16697 | #define HAVE_DECL_GETENV $ac_have_decl | |
16698 | _ACEOF | |
16699 | ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" | |
16700 | if test "x$ac_cv_have_decl_environ" = x""yes; then : | |
16701 | ac_have_decl=1 | |
502bdb00 | 16702 | else |
81ecdfbb RW |
16703 | ac_have_decl=0 |
16704 | fi | |
16705 | ||
16706 | cat >>confdefs.h <<_ACEOF | |
16707 | #define HAVE_DECL_ENVIRON $ac_have_decl | |
42ecbf5e | 16708 | _ACEOF |
252b5132 | 16709 | |
252b5132 | 16710 | |
81ecdfbb RW |
16711 | # Link in zlib if we can. This is needed only for the bootstrap tests |
16712 | # right now, since those tests use libbfd, which depends on zlib. | |
52546677 RM |
16713 | |
16714 | # See if the user specified whether he wants zlib support or not. | |
16715 | ||
16716 | # Check whether --with-zlib was given. | |
16717 | if test "${with_zlib+set}" = set; then : | |
16718 | withval=$with_zlib; | |
16719 | else | |
16720 | with_zlib=auto | |
16721 | fi | |
16722 | ||
16723 | ||
16724 | if test "$with_zlib" != "no"; then | |
16725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
81ecdfbb RW |
16726 | $as_echo_n "checking for library containing zlibVersion... " >&6; } |
16727 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
16728 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16729 | else |
81ecdfbb RW |
16730 | ac_func_search_save_LIBS=$LIBS |
16731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 16732 | /* end confdefs.h. */ |
502bdb00 | 16733 | |
81ecdfbb RW |
16734 | /* Override any GCC internal prototype to avoid an error. |
16735 | Use char because int might match the return type of a GCC | |
4474d12b | 16736 | builtin and then its argument prototype would still apply. */ |
4474d12b CS |
16737 | #ifdef __cplusplus |
16738 | extern "C" | |
16739 | #endif | |
4474d12b CS |
16740 | char zlibVersion (); |
16741 | int | |
16742 | main () | |
16743 | { | |
81ecdfbb | 16744 | return zlibVersion (); |
4474d12b CS |
16745 | ; |
16746 | return 0; | |
16747 | } | |
16748 | _ACEOF | |
81ecdfbb RW |
16749 | for ac_lib in '' z; do |
16750 | if test -z "$ac_lib"; then | |
16751 | ac_res="none required" | |
4474d12b | 16752 | else |
81ecdfbb RW |
16753 | ac_res=-l$ac_lib |
16754 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4474d12b | 16755 | fi |
81ecdfbb RW |
16756 | if ac_fn_c_try_link "$LINENO"; then : |
16757 | ac_cv_search_zlibVersion=$ac_res | |
4474d12b | 16758 | fi |
81ecdfbb RW |
16759 | rm -f core conftest.err conftest.$ac_objext \ |
16760 | conftest$ac_exeext | |
16761 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
16762 | break | |
4474d12b | 16763 | fi |
81ecdfbb RW |
16764 | done |
16765 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
4474d12b | 16766 | |
4474d12b | 16767 | else |
81ecdfbb | 16768 | ac_cv_search_zlibVersion=no |
4474d12b | 16769 | fi |
81ecdfbb RW |
16770 | rm conftest.$ac_ext |
16771 | LIBS=$ac_func_search_save_LIBS | |
4474d12b | 16772 | fi |
81ecdfbb RW |
16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
16774 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
16775 | ac_res=$ac_cv_search_zlibVersion | |
16776 | if test "$ac_res" != no; then : | |
16777 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16778 | for ac_header in zlib.h | |
16779 | do : | |
16780 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
16781 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
4474d12b | 16782 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16783 | #define HAVE_ZLIB_H 1 |
4474d12b CS |
16784 | _ACEOF |
16785 | ||
16786 | fi | |
16787 | ||
16788 | done | |
16789 | ||
16790 | fi | |
16791 | ||
52546677 RM |
16792 | if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then |
16793 | as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5 | |
16794 | fi | |
16795 | fi | |
16796 | ||
4474d12b | 16797 | |
597e2591 ILT |
16798 | # When converting linker scripts into strings for use in emulation |
16799 | # files, use astring.sed if the compiler supports ANSI string | |
16800 | # concatenation, or ostring.sed otherwise. This is to support the | |
16801 | # broken Microsoft MSVC compiler, which limits the length of string | |
16802 | # constants, while still supporting pre-ANSI compilers which do not | |
16803 | # support string concatenation. | |
81ecdfbb RW |
16804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5 |
16805 | $as_echo_n "checking whether ANSI C string concatenation works... " >&6; } | |
16806 | if test "${ld_cv_string_concatenation+set}" = set; then : | |
16807 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 16808 | else |
81ecdfbb | 16809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 16810 | /* end confdefs.h. */ |
81ecdfbb | 16811 | |
314e9a4e L |
16812 | int |
16813 | main () | |
16814 | { | |
81ecdfbb | 16815 | char *a = "a" "a"; |
314e9a4e L |
16816 | ; |
16817 | return 0; | |
16818 | } | |
16819 | _ACEOF | |
81ecdfbb RW |
16820 | if ac_fn_c_try_compile "$LINENO"; then : |
16821 | ld_cv_string_concatenation=yes | |
314e9a4e | 16822 | else |
81ecdfbb | 16823 | ld_cv_string_concatenation=no |
314e9a4e | 16824 | fi |
81ecdfbb | 16825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
314e9a4e | 16826 | fi |
81ecdfbb RW |
16827 | |
16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5 | |
16829 | $as_echo "$ld_cv_string_concatenation" >&6; } | |
16830 | if test "$ld_cv_string_concatenation" = "yes"; then | |
16831 | STRINGIFY=astring.sed | |
16832 | else | |
16833 | STRINGIFY=ostring.sed | |
314e9a4e | 16834 | fi |
81ecdfbb RW |
16835 | |
16836 | ||
16837 | # target-specific stuff: | |
16838 | ||
16839 | all_targets= | |
16840 | EMUL= | |
16841 | all_emuls= | |
16842 | all_emul_extras= | |
16843 | all_libpath= | |
16844 | ||
16845 | rm -f tdirs | |
16846 | ||
bf9ef603 RM |
16847 | # If the host is 64-bit, then we enable 64-bit targets by default. |
16848 | # This is consistent with what ../bfd/configure.in does. | |
16849 | if test x${want64} = xfalse; then | |
16850 | # The cast to long int works around a bug in the HP C Compiler | |
16851 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16852 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16853 | # This bug is HP SR number 8606223364. | |
16854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16855 | $as_echo_n "checking size of void *... " >&6; } | |
16856 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
16857 | $as_echo_n "(cached) " >&6 | |
16858 | else | |
16859 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
16860 | ||
16861 | else | |
16862 | if test "$ac_cv_type_void_p" = yes; then | |
16863 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16864 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16865 | { as_fn_set_status 77 | |
16866 | as_fn_error "cannot compute sizeof (void *) | |
16867 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16868 | else | |
16869 | ac_cv_sizeof_void_p=0 | |
16870 | fi | |
16871 | fi | |
16872 | ||
16873 | fi | |
16874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16875 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
16876 | ||
16877 | ||
16878 | ||
16879 | cat >>confdefs.h <<_ACEOF | |
16880 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16881 | _ACEOF | |
16882 | ||
16883 | ||
16884 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
16885 | want64=true | |
16886 | fi | |
16887 | fi | |
16888 | ||
81ecdfbb RW |
16889 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
16890 | do | |
16891 | if test "$targ_alias" = "all"; then | |
16892 | all_targets=true | |
16893 | else | |
16894 | # Canonicalize the secondary target names. | |
16895 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
16896 | if test -n "$result"; then | |
16897 | targ=$result | |
16898 | else | |
16899 | targ=$targ_alias | |
16900 | fi | |
16901 | ||
16902 | . ${srcdir}/configure.tgt | |
16903 | ||
16904 | if test "$targ" = "$target"; then | |
16905 | EMUL=$targ_emul | |
16906 | fi | |
16907 | ||
16908 | if test x${want64} = xfalse; then | |
16909 | . ${srcdir}/../bfd/config.bfd | |
16910 | fi | |
16911 | ||
16912 | if test x${want64} = xtrue; then | |
16913 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" | |
16914 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
16915 | fi | |
16916 | ||
16917 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do | |
16918 | case " $all_emuls " in | |
16919 | *" e${i}.o "*) ;; | |
16920 | *) | |
16921 | all_emuls="$all_emuls e${i}.o" | |
16922 | eval result=\$tdir_$i | |
16923 | test -z "$result" && result=$targ_alias | |
16924 | echo tdir_$i=$result >> tdirs | |
16925 | ;; | |
16926 | esac | |
16927 | done | |
16928 | ||
16929 | for i in $targ_emul $targ_extra_libpath; do | |
16930 | case " $all_libpath " in | |
16931 | *" ${i} "*) ;; | |
16932 | *) | |
16933 | if test -z "$all_libpath"; then | |
16934 | all_libpath=${i} | |
16935 | else | |
16936 | all_libpath="$all_libpath ${i}" | |
16937 | fi | |
16938 | ;; | |
16939 | esac | |
16940 | done | |
16941 | ||
16942 | for i in $targ_extra_ofiles; do | |
16943 | case " $all_emul_extras " in | |
16944 | *" ${i} "*) ;; | |
16945 | *) | |
16946 | all_emul_extras="$all_emul_extras ${i}" | |
16947 | ;; | |
16948 | esac | |
16949 | done | |
5063daf7 | 16950 | |
81ecdfbb RW |
16951 | fi |
16952 | done | |
16953 | ||
16954 | ||
16955 | ||
16956 | TDIRS=tdirs | |
16957 | ||
16958 | ||
16959 | if test x${all_targets} = xtrue; then | |
42ecbf5e DJ |
16960 | if test x${want64} = xtrue; then |
16961 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' | |
16962 | else | |
16963 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
16964 | fi | |
16965 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' | |
16966 | else | |
16967 | EMULATION_OFILES=$all_emuls | |
16968 | EMUL_EXTRA_OFILES=$all_emul_extras | |
16969 | fi | |
16970 | ||
16971 | ||
16972 | ||
16973 | ||
16974 | EMULATION_LIBPATH=$all_libpath | |
16975 | ||
16976 | ||
16977 | if test x${enable_static} = xno; then | |
16978 | TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" | |
16979 | else | |
16980 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
16981 | fi | |
16982 | ||
16983 | ||
16984 | target_vendor=${target_vendor=$host_vendor} | |
16985 | case "$target_vendor" in | |
16986 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
16987 | *) EXTRA_SHLIB_EXTENSION= ;; | |
16988 | esac | |
16989 | ||
16990 | case "$target_os" in | |
16991 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
16992 | esac | |
16993 | ||
16994 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
16995 | ||
16996 | cat >>confdefs.h <<_ACEOF | |
16997 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
16998 | _ACEOF | |
16999 | ||
17000 | fi | |
17001 | ||
108a6f8e CD |
17002 | |
17003 | ||
17004 | ||
17005 | ||
31dd3154 | 17006 | |
81ecdfbb | 17007 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
da594c4a | 17008 | |
42ecbf5e DJ |
17009 | cat >confcache <<\_ACEOF |
17010 | # This file is a shell script that caches the results of configure | |
17011 | # tests run on this system so they can be shared between configure | |
17012 | # scripts and configure runs, see configure's option --config-cache. | |
17013 | # It is not useful on other systems. If it contains results you don't | |
17014 | # want to keep, you may remove or edit it. | |
17015 | # | |
17016 | # config.status only pays attention to the cache file if you give it | |
17017 | # the --recheck option to rerun configure. | |
17018 | # | |
17019 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17020 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17021 | # following values. | |
17022 | ||
17023 | _ACEOF | |
17024 | ||
17025 | # The following way of writing the cache mishandles newlines in values, | |
17026 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 17027 | # So, we kill variables containing newlines. |
42ecbf5e DJ |
17028 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17029 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
17030 | ( |
17031 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17032 | eval ac_val=\$$ac_var | |
17033 | case $ac_val in #( | |
17034 | *${as_nl}*) | |
17035 | case $ac_var in #( | |
17036 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17037 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17038 | esac | |
17039 | case $ac_var in #( | |
17040 | _ | IFS | as_nl) ;; #( | |
17041 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17042 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17043 | esac ;; | |
17044 | esac | |
17045 | done | |
17046 | ||
42ecbf5e | 17047 | (set) 2>&1 | |
81ecdfbb RW |
17048 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17049 | *${as_nl}ac_space=\ *) | |
17050 | # `set' does not quote correctly, so add quotes: double-quote | |
17051 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
42ecbf5e DJ |
17052 | sed -n \ |
17053 | "s/'/'\\\\''/g; | |
17054 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 17055 | ;; #( |
42ecbf5e DJ |
17056 | *) |
17057 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 17058 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 17059 | ;; |
81ecdfbb RW |
17060 | esac | |
17061 | sort | |
17062 | ) | | |
42ecbf5e | 17063 | sed ' |
81ecdfbb | 17064 | /^ac_cv_env_/b end |
42ecbf5e | 17065 | t clear |
81ecdfbb | 17066 | :clear |
42ecbf5e DJ |
17067 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17068 | t end | |
81ecdfbb RW |
17069 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17070 | :end' >>confcache | |
17071 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17072 | if test -w "$cache_file"; then | |
17073 | test "x$cache_file" != "x/dev/null" && | |
17074 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
17075 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
42ecbf5e DJ |
17076 | cat confcache >$cache_file |
17077 | else | |
81ecdfbb RW |
17078 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17079 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
42ecbf5e DJ |
17080 | fi |
17081 | fi | |
17082 | rm -f confcache | |
17083 | ||
17084 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17085 | # Let make expand exec_prefix. | |
17086 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17087 | ||
42ecbf5e DJ |
17088 | DEFS=-DHAVE_CONFIG_H |
17089 | ||
17090 | ac_libobjs= | |
17091 | ac_ltlibobjs= | |
17092 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17093 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
17094 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17095 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17096 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17097 | # will be set to the directory where LIBOBJS objects are built. | |
17098 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17099 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
42ecbf5e DJ |
17100 | done |
17101 | LIBOBJS=$ac_libobjs | |
17102 | ||
17103 | LTLIBOBJS=$ac_ltlibobjs | |
17104 | ||
17105 | ||
17106 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
17107 | as_fn_error "conditional \"AMDEP\" was never defined. |
17108 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e DJ |
17109 | fi |
17110 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
17111 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
17112 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17113 | fi | |
17114 | if test -n "$EXEEXT"; then | |
17115 | am__EXEEXT_TRUE= | |
17116 | am__EXEEXT_FALSE='#' | |
17117 | else | |
17118 | am__EXEEXT_TRUE='#' | |
17119 | am__EXEEXT_FALSE= | |
42ecbf5e | 17120 | fi |
81ecdfbb | 17121 | |
64ac50ac RW |
17122 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
17123 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
17124 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17125 | fi | |
3cb62297 L |
17126 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
17127 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. | |
17128 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17129 | fi | |
42ecbf5e | 17130 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
17131 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
17132 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e | 17133 | fi |
d5fbea21 | 17134 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
17135 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
17136 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 17137 | fi |
5d3236ee DK |
17138 | if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then |
17139 | as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined. | |
17140 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17141 | fi | |
42ecbf5e DJ |
17142 | |
17143 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 17144 | ac_write_fail=0 |
42ecbf5e DJ |
17145 | ac_clean_files_save=$ac_clean_files |
17146 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
17147 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17148 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17149 | as_write_fail=0 | |
17150 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
42ecbf5e DJ |
17151 | #! $SHELL |
17152 | # Generated by $as_me. | |
17153 | # Run this file to recreate the current configuration. | |
17154 | # Compiler output produced by configure, useful for debugging | |
17155 | # configure, is in config.log if it exists. | |
17156 | ||
17157 | debug=false | |
17158 | ac_cs_recheck=false | |
17159 | ac_cs_silent=false | |
42ecbf5e | 17160 | |
81ecdfbb RW |
17161 | SHELL=\${CONFIG_SHELL-$SHELL} |
17162 | export SHELL | |
17163 | _ASEOF | |
17164 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17165 | ## -------------------- ## | |
17166 | ## M4sh Initialization. ## | |
17167 | ## -------------------- ## | |
42ecbf5e | 17168 | |
81ecdfbb RW |
17169 | # Be more Bourne compatible |
17170 | DUALCASE=1; export DUALCASE # for MKS sh | |
17171 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
17172 | emulate sh |
17173 | NULLCMD=: | |
81ecdfbb | 17174 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
17175 | # is contrary to our usage. Disable this feature. |
17176 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
17177 | setopt NO_GLOB_SUBST |
17178 | else | |
17179 | case `(set -o) 2>/dev/null` in #( | |
17180 | *posix*) : | |
17181 | set -o posix ;; #( | |
17182 | *) : | |
17183 | ;; | |
17184 | esac | |
42ecbf5e | 17185 | fi |
42ecbf5e | 17186 | |
81ecdfbb RW |
17187 | |
17188 | as_nl=' | |
17189 | ' | |
17190 | export as_nl | |
17191 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17192 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17193 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17194 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17195 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17196 | # but without wasting forks for bash or zsh. | |
17197 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17198 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17199 | as_echo='print -r --' | |
17200 | as_echo_n='print -rn --' | |
17201 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17202 | as_echo='printf %s\n' | |
17203 | as_echo_n='printf %s' | |
17204 | else | |
17205 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17206 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17207 | as_echo_n='/usr/ucb/echo -n' | |
17208 | else | |
17209 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17210 | as_echo_n_body='eval | |
17211 | arg=$1; | |
17212 | case $arg in #( | |
17213 | *"$as_nl"*) | |
17214 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17215 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17216 | esac; | |
17217 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17218 | ' | |
17219 | export as_echo_n_body | |
17220 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17221 | fi | |
17222 | export as_echo_body | |
17223 | as_echo='sh -c $as_echo_body as_echo' | |
17224 | fi | |
17225 | ||
17226 | # The user is always right. | |
17227 | if test "${PATH_SEPARATOR+set}" != set; then | |
17228 | PATH_SEPARATOR=: | |
17229 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17230 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17231 | PATH_SEPARATOR=';' | |
17232 | } | |
42ecbf5e DJ |
17233 | fi |
17234 | ||
17235 | ||
81ecdfbb RW |
17236 | # IFS |
17237 | # We need space, tab and new line, in precisely that order. Quoting is | |
17238 | # there to prevent editors from complaining about space-tab. | |
17239 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17240 | # splitting by setting IFS to empty value.) | |
17241 | IFS=" "" $as_nl" | |
17242 | ||
17243 | # Find who we are. Look in the path if we contain no directory separator. | |
17244 | case $0 in #(( | |
17245 | *[\\/]* ) as_myself=$0 ;; | |
17246 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17247 | for as_dir in $PATH | |
17248 | do | |
17249 | IFS=$as_save_IFS | |
17250 | test -z "$as_dir" && as_dir=. | |
17251 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17252 | done | |
17253 | IFS=$as_save_IFS | |
17254 | ||
17255 | ;; | |
17256 | esac | |
17257 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17258 | # in which case we are not to be found in the path. | |
17259 | if test "x$as_myself" = x; then | |
17260 | as_myself=$0 | |
17261 | fi | |
17262 | if test ! -f "$as_myself"; then | |
17263 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17264 | exit 1 | |
17265 | fi | |
17266 | ||
17267 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17268 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17269 | # suppresses any "Segmentation fault" message there. '((' could | |
17270 | # trigger a bug in pdksh 5.2.14. | |
17271 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17272 | do eval test x\${$as_var+set} = xset \ | |
17273 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17274 | done | |
42ecbf5e DJ |
17275 | PS1='$ ' |
17276 | PS2='> ' | |
17277 | PS4='+ ' | |
17278 | ||
17279 | # NLS nuisances. | |
81ecdfbb RW |
17280 | LC_ALL=C |
17281 | export LC_ALL | |
17282 | LANGUAGE=C | |
17283 | export LANGUAGE | |
17284 | ||
17285 | # CDPATH. | |
17286 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17287 | ||
17288 | ||
17289 | # as_fn_error ERROR [LINENO LOG_FD] | |
17290 | # --------------------------------- | |
17291 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
17292 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
17293 | # script with status $?, using 1 if that was 0. | |
17294 | as_fn_error () | |
17295 | { | |
17296 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
17297 | if test "$3"; then | |
17298 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17299 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
42ecbf5e | 17300 | fi |
81ecdfbb RW |
17301 | $as_echo "$as_me: error: $1" >&2 |
17302 | as_fn_exit $as_status | |
17303 | } # as_fn_error | |
17304 | ||
17305 | ||
17306 | # as_fn_set_status STATUS | |
17307 | # ----------------------- | |
17308 | # Set $? to STATUS, without forking. | |
17309 | as_fn_set_status () | |
17310 | { | |
17311 | return $1 | |
17312 | } # as_fn_set_status | |
17313 | ||
17314 | # as_fn_exit STATUS | |
17315 | # ----------------- | |
17316 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17317 | as_fn_exit () | |
17318 | { | |
17319 | set +e | |
17320 | as_fn_set_status $1 | |
17321 | exit $1 | |
17322 | } # as_fn_exit | |
17323 | ||
17324 | # as_fn_unset VAR | |
17325 | # --------------- | |
17326 | # Portably unset VAR. | |
17327 | as_fn_unset () | |
17328 | { | |
17329 | { eval $1=; unset $1;} | |
17330 | } | |
17331 | as_unset=as_fn_unset | |
17332 | # as_fn_append VAR VALUE | |
17333 | # ---------------------- | |
17334 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17335 | # advantage of any shell optimizations that allow amortized linear growth over | |
17336 | # repeated appends, instead of the typical quadratic growth present in naive | |
17337 | # implementations. | |
17338 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17339 | eval 'as_fn_append () | |
17340 | { | |
17341 | eval $1+=\$2 | |
17342 | }' | |
17343 | else | |
17344 | as_fn_append () | |
17345 | { | |
17346 | eval $1=\$$1\$2 | |
17347 | } | |
17348 | fi # as_fn_append | |
17349 | ||
17350 | # as_fn_arith ARG... | |
17351 | # ------------------ | |
17352 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17353 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17354 | # must be portable across $(()) and expr. | |
17355 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17356 | eval 'as_fn_arith () | |
17357 | { | |
17358 | as_val=$(( $* )) | |
17359 | }' | |
17360 | else | |
17361 | as_fn_arith () | |
17362 | { | |
17363 | as_val=`expr "$@" || test $? -eq 1` | |
17364 | } | |
17365 | fi # as_fn_arith | |
17366 | ||
42ecbf5e | 17367 | |
81ecdfbb RW |
17368 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17369 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
17370 | as_expr=expr |
17371 | else | |
17372 | as_expr=false | |
17373 | fi | |
17374 | ||
81ecdfbb | 17375 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
17376 | as_basename=basename |
17377 | else | |
17378 | as_basename=false | |
17379 | fi | |
17380 | ||
81ecdfbb RW |
17381 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17382 | as_dirname=dirname | |
17383 | else | |
17384 | as_dirname=false | |
17385 | fi | |
42ecbf5e | 17386 | |
81ecdfbb | 17387 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
17388 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
17389 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
17390 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
17391 | $as_echo X/"$0" | | |
17392 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17393 | s//\1/ | |
17394 | q | |
17395 | } | |
17396 | /^X\/\(\/\/\)$/{ | |
17397 | s//\1/ | |
17398 | q | |
17399 | } | |
17400 | /^X\/\(\/\).*/{ | |
17401 | s//\1/ | |
17402 | q | |
17403 | } | |
17404 | s/.*/./; q'` | |
42ecbf5e | 17405 | |
42ecbf5e DJ |
17406 | # Avoid depending upon Character Ranges. |
17407 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17408 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17409 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17410 | as_cr_digits='0123456789' | |
17411 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17412 | ||
81ecdfbb RW |
17413 | ECHO_C= ECHO_N= ECHO_T= |
17414 | case `echo -n x` in #((((( | |
17415 | -n*) | |
17416 | case `echo 'xy\c'` in | |
17417 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17418 | xy) ECHO_C='\c';; | |
17419 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17420 | ECHO_T=' ';; | |
17421 | esac;; | |
17422 | *) | |
17423 | ECHO_N='-n';; | |
42ecbf5e | 17424 | esac |
252b5132 | 17425 | |
81ecdfbb RW |
17426 | rm -f conf$$ conf$$.exe conf$$.file |
17427 | if test -d conf$$.dir; then | |
17428 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 17429 | else |
81ecdfbb RW |
17430 | rm -f conf$$.dir |
17431 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 17432 | fi |
81ecdfbb RW |
17433 | if (echo >conf$$.file) 2>/dev/null; then |
17434 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 17435 | as_ln_s='ln -s' |
81ecdfbb RW |
17436 | # ... but there are two gotchas: |
17437 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17438 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
17439 | # In both cases, we have to default to `cp -p'. | |
17440 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
17441 | as_ln_s='cp -p' | |
17442 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
17443 | as_ln_s=ln | |
17444 | else | |
17445 | as_ln_s='cp -p' | |
252b5132 | 17446 | fi |
e5a52504 | 17447 | else |
42ecbf5e | 17448 | as_ln_s='cp -p' |
e5a52504 | 17449 | fi |
81ecdfbb RW |
17450 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17451 | rmdir conf$$.dir 2>/dev/null | |
17452 | ||
17453 | ||
17454 | # as_fn_mkdir_p | |
17455 | # ------------- | |
17456 | # Create "$as_dir" as a directory, including parents if necessary. | |
17457 | as_fn_mkdir_p () | |
17458 | { | |
17459 | ||
17460 | case $as_dir in #( | |
17461 | -*) as_dir=./$as_dir;; | |
17462 | esac | |
17463 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17464 | as_dirs= | |
17465 | while :; do | |
17466 | case $as_dir in #( | |
17467 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17468 | *) as_qdir=$as_dir;; | |
17469 | esac | |
17470 | as_dirs="'$as_qdir' $as_dirs" | |
17471 | as_dir=`$as_dirname -- "$as_dir" || | |
17472 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17473 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17474 | X"$as_dir" : 'X\(//\)$' \| \ | |
17475 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17476 | $as_echo X"$as_dir" | | |
17477 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17478 | s//\1/ | |
17479 | q | |
17480 | } | |
17481 | /^X\(\/\/\)[^/].*/{ | |
17482 | s//\1/ | |
17483 | q | |
17484 | } | |
17485 | /^X\(\/\/\)$/{ | |
17486 | s//\1/ | |
17487 | q | |
17488 | } | |
17489 | /^X\(\/\).*/{ | |
17490 | s//\1/ | |
17491 | q | |
17492 | } | |
17493 | s/.*/./; q'` | |
17494 | test -d "$as_dir" && break | |
17495 | done | |
17496 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
17497 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
17498 | ||
252b5132 | 17499 | |
81ecdfbb | 17500 | } # as_fn_mkdir_p |
42ecbf5e | 17501 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 17502 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
17503 | else |
17504 | test -d ./-p && rmdir ./-p | |
17505 | as_mkdir_p=false | |
17506 | fi | |
252b5132 | 17507 | |
81ecdfbb RW |
17508 | if test -x / >/dev/null 2>&1; then |
17509 | as_test_x='test -x' | |
17510 | else | |
17511 | if ls -dL / >/dev/null 2>&1; then | |
17512 | as_ls_L_option=L | |
17513 | else | |
17514 | as_ls_L_option= | |
17515 | fi | |
17516 | as_test_x=' | |
17517 | eval sh -c '\'' | |
17518 | if test -d "$1"; then | |
17519 | test -d "$1/."; | |
17520 | else | |
17521 | case $1 in #( | |
17522 | -*)set "./$1";; | |
17523 | esac; | |
17524 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
17525 | ???[sx]*):;;*)false;;esac;fi | |
17526 | '\'' sh | |
17527 | ' | |
17528 | fi | |
17529 | as_executable_p=$as_test_x | |
252b5132 | 17530 | |
42ecbf5e DJ |
17531 | # Sed expression to map a string onto a valid CPP name. |
17532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 17533 | |
42ecbf5e DJ |
17534 | # Sed expression to map a string onto a valid variable name. |
17535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 17536 | |
e5a52504 | 17537 | |
42ecbf5e | 17538 | exec 6>&1 |
81ecdfbb RW |
17539 | ## ----------------------------------- ## |
17540 | ## Main body of $CONFIG_STATUS script. ## | |
17541 | ## ----------------------------------- ## | |
17542 | _ASEOF | |
17543 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
e5a52504 | 17544 | |
81ecdfbb RW |
17545 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17546 | # Save the log message, to keep $0 and so on meaningful, and to | |
42ecbf5e | 17547 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
17548 | # values after options handling. |
17549 | ac_log=" | |
42ecbf5e | 17550 | This file was extended by $as_me, which was |
81ecdfbb | 17551 | generated by GNU Autoconf 2.64. Invocation command line was |
42ecbf5e DJ |
17552 | |
17553 | CONFIG_FILES = $CONFIG_FILES | |
17554 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17555 | CONFIG_LINKS = $CONFIG_LINKS | |
17556 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17557 | $ $0 $@ | |
e5a52504 | 17558 | |
81ecdfbb RW |
17559 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17560 | " | |
17561 | ||
42ecbf5e DJ |
17562 | _ACEOF |
17563 | ||
81ecdfbb RW |
17564 | case $ac_config_files in *" |
17565 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17566 | esac | |
e5a52504 | 17567 | |
81ecdfbb RW |
17568 | case $ac_config_headers in *" |
17569 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17570 | esac | |
42ecbf5e | 17571 | |
42ecbf5e | 17572 | |
81ecdfbb RW |
17573 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17574 | # Files that config.status was made for. | |
17575 | config_files="$ac_config_files" | |
17576 | config_headers="$ac_config_headers" | |
17577 | config_commands="$ac_config_commands" | |
42ecbf5e | 17578 | |
81ecdfbb | 17579 | _ACEOF |
42ecbf5e | 17580 | |
81ecdfbb | 17581 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 17582 | ac_cs_usage="\ |
81ecdfbb RW |
17583 | \`$as_me' instantiates files and other configuration actions |
17584 | from templates according to the current configuration. Unless the files | |
17585 | and actions are specified as TAGs, all are instantiated by default. | |
42ecbf5e | 17586 | |
81ecdfbb | 17587 | Usage: $0 [OPTION]... [TAG]... |
42ecbf5e DJ |
17588 | |
17589 | -h, --help print this help, then exit | |
81ecdfbb RW |
17590 | -V, --version print version number and configuration settings, then exit |
17591 | -q, --quiet, --silent | |
17592 | do not print progress messages | |
42ecbf5e DJ |
17593 | -d, --debug don't remove temporary files |
17594 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
17595 | --file=FILE[:TEMPLATE] |
17596 | instantiate the configuration file FILE | |
17597 | --header=FILE[:TEMPLATE] | |
17598 | instantiate the configuration header FILE | |
42ecbf5e DJ |
17599 | |
17600 | Configuration files: | |
17601 | $config_files | |
17602 | ||
17603 | Configuration headers: | |
17604 | $config_headers | |
17605 | ||
17606 | Configuration commands: | |
17607 | $config_commands | |
17608 | ||
81ecdfbb | 17609 | Report bugs to the package provider." |
42ecbf5e | 17610 | |
81ecdfbb RW |
17611 | _ACEOF |
17612 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
42ecbf5e DJ |
17613 | ac_cs_version="\\ |
17614 | config.status | |
81ecdfbb RW |
17615 | configured by $0, generated by GNU Autoconf 2.64, |
17616 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
42ecbf5e | 17617 | |
81ecdfbb | 17618 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
17619 | This config.status script is free software; the Free Software Foundation |
17620 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
17621 | |
17622 | ac_pwd='$ac_pwd' | |
17623 | srcdir='$srcdir' | |
17624 | INSTALL='$INSTALL' | |
17625 | MKDIR_P='$MKDIR_P' | |
17626 | AWK='$AWK' | |
17627 | test -n "\$AWK" || AWK=awk | |
42ecbf5e DJ |
17628 | _ACEOF |
17629 | ||
81ecdfbb RW |
17630 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17631 | # The default lists apply if the user does not specify any file. | |
42ecbf5e DJ |
17632 | ac_need_defaults=: |
17633 | while test $# != 0 | |
17634 | do | |
17635 | case $1 in | |
17636 | --*=*) | |
81ecdfbb RW |
17637 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17638 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
42ecbf5e | 17639 | ac_shift=: |
252b5132 | 17640 | ;; |
81ecdfbb | 17641 | *) |
42ecbf5e DJ |
17642 | ac_option=$1 |
17643 | ac_optarg=$2 | |
17644 | ac_shift=shift | |
252b5132 | 17645 | ;; |
42ecbf5e | 17646 | esac |
252b5132 | 17647 | |
42ecbf5e DJ |
17648 | case $ac_option in |
17649 | # Handling of the options. | |
42ecbf5e DJ |
17650 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17651 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
17652 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
17653 | $as_echo "$ac_cs_version"; exit ;; | |
17654 | --debug | --debu | --deb | --de | --d | -d ) | |
42ecbf5e DJ |
17655 | debug=: ;; |
17656 | --file | --fil | --fi | --f ) | |
17657 | $ac_shift | |
81ecdfbb RW |
17658 | case $ac_optarg in |
17659 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17660 | esac | |
17661 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
42ecbf5e DJ |
17662 | ac_need_defaults=false;; |
17663 | --header | --heade | --head | --hea ) | |
17664 | $ac_shift | |
81ecdfbb RW |
17665 | case $ac_optarg in |
17666 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17667 | esac | |
17668 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
42ecbf5e | 17669 | ac_need_defaults=false;; |
81ecdfbb RW |
17670 | --he | --h) |
17671 | # Conflict between --help and --header | |
17672 | as_fn_error "ambiguous option: \`$1' | |
17673 | Try \`$0 --help' for more information.";; | |
17674 | --help | --hel | -h ) | |
17675 | $as_echo "$ac_cs_usage"; exit ;; | |
42ecbf5e DJ |
17676 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17677 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17678 | ac_cs_silent=: ;; | |
252b5132 | 17679 | |
42ecbf5e | 17680 | # This is an error. |
81ecdfbb RW |
17681 | -*) as_fn_error "unrecognized option: \`$1' |
17682 | Try \`$0 --help' for more information." ;; | |
252b5132 | 17683 | |
81ecdfbb RW |
17684 | *) as_fn_append ac_config_targets " $1" |
17685 | ac_need_defaults=false ;; | |
252b5132 | 17686 | |
42ecbf5e DJ |
17687 | esac |
17688 | shift | |
17689 | done | |
d15b04bd | 17690 | |
42ecbf5e | 17691 | ac_configure_extra_args= |
e5a52504 | 17692 | |
42ecbf5e DJ |
17693 | if $ac_cs_silent; then |
17694 | exec 6>/dev/null | |
17695 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17696 | fi | |
e5a52504 | 17697 | |
42ecbf5e | 17698 | _ACEOF |
81ecdfbb | 17699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42ecbf5e | 17700 | if \$ac_cs_recheck; then |
81ecdfbb RW |
17701 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
17702 | shift | |
17703 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17704 | CONFIG_SHELL='$SHELL' | |
17705 | export CONFIG_SHELL | |
17706 | exec "\$@" | |
42ecbf5e DJ |
17707 | fi |
17708 | ||
17709 | _ACEOF | |
81ecdfbb RW |
17710 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17711 | exec 5>>config.log | |
17712 | { | |
17713 | echo | |
17714 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17715 | ## Running $as_me. ## | |
17716 | _ASBOX | |
17717 | $as_echo "$ac_log" | |
17718 | } >&5 | |
42ecbf5e | 17719 | |
81ecdfbb RW |
17720 | _ACEOF |
17721 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
252b5132 | 17722 | # |
81ecdfbb | 17723 | # INIT-COMMANDS |
252b5132 | 17724 | # |
42ecbf5e | 17725 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
17726 | |
17727 | ||
17728 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17729 | # if CDPATH is set. | |
17730 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17731 | ||
17732 | sed_quote_subst='$sed_quote_subst' | |
17733 | double_quote_subst='$double_quote_subst' | |
17734 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
17735 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
17736 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
17737 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
17738 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
17739 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
17740 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
17741 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
17742 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
17743 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
17744 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
17745 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
17746 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
17747 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
17748 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
17749 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
17750 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
17751 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
17752 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
17753 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
17754 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
17755 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
17756 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
17757 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
17758 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
17759 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
17760 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
17761 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
17762 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
17763 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
17764 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
17765 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
17766 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
17767 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
17768 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
17769 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
17770 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
17771 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
17772 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17773 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17774 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17775 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
17776 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
17777 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
17778 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
17779 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
17780 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
17781 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
17782 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
17783 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
17784 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
17785 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
17786 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
17787 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
17788 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
17789 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
17790 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
17791 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
17792 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
17793 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
17794 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
17795 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
17796 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
17797 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
17798 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
17799 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17800 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
17801 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
17802 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17803 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17804 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
17805 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
17806 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17807 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17808 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17809 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
17810 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17811 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
17812 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17813 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17814 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17815 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
17816 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
17817 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
17818 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
17819 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
17820 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17821 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
17822 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
17823 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
17824 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
17825 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
17826 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
17827 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
17828 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
17829 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
17830 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
17831 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
17832 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
17833 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
17834 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
17835 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
17836 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17837 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
17838 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
17839 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
17840 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
17841 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
17842 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17843 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17844 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
17845 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
17846 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
17847 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
17848 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
17849 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
17850 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
17851 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
17852 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
17853 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
17854 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
3cb62297 L |
17855 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
17856 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
17857 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
17858 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
17859 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
17860 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
17861 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
17862 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17863 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17864 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17865 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
17866 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
17867 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17868 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
17869 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
17870 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
17871 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
17872 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
17873 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
17874 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17875 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17876 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
17877 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17878 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17879 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17880 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17881 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17882 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17883 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
17884 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17885 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17886 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17887 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
17888 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
17889 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
17890 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
17891 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
17892 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
17893 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
17894 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
17895 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
17896 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | |
17897 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
17898 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17899 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
17900 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
17901 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17902 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17903 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
17904 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
17905 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
17906 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
17907 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
17908 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
17909 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
17910 | |
17911 | LTCC='$LTCC' | |
17912 | LTCFLAGS='$LTCFLAGS' | |
17913 | compiler='$compiler_DEFAULT' | |
17914 | ||
3725885a RW |
17915 | # A function that is used when there is no print builtin or printf. |
17916 | func_fallback_echo () | |
17917 | { | |
17918 | eval 'cat <<_LTECHO_EOF | |
17919 | \$1 | |
17920 | _LTECHO_EOF' | |
17921 | } | |
17922 | ||
d7040cdb | 17923 | # Quote evaled strings. |
3725885a RW |
17924 | for var in SHELL \ |
17925 | ECHO \ | |
17926 | SED \ | |
d7040cdb SE |
17927 | GREP \ |
17928 | EGREP \ | |
17929 | FGREP \ | |
17930 | LD \ | |
17931 | NM \ | |
17932 | LN_S \ | |
17933 | lt_SP2NL \ | |
17934 | lt_NL2SP \ | |
17935 | reload_flag \ | |
b214d478 | 17936 | OBJDUMP \ |
d7040cdb SE |
17937 | deplibs_check_method \ |
17938 | file_magic_cmd \ | |
17939 | AR \ | |
17940 | AR_FLAGS \ | |
17941 | STRIP \ | |
17942 | RANLIB \ | |
17943 | CC \ | |
17944 | CFLAGS \ | |
17945 | compiler \ | |
17946 | lt_cv_sys_global_symbol_pipe \ | |
17947 | lt_cv_sys_global_symbol_to_cdecl \ | |
17948 | lt_cv_sys_global_symbol_to_c_name_address \ | |
b214d478 | 17949 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
17950 | lt_prog_compiler_no_builtin_flag \ |
17951 | lt_prog_compiler_wl \ | |
17952 | lt_prog_compiler_pic \ | |
17953 | lt_prog_compiler_static \ | |
17954 | lt_cv_prog_compiler_c_o \ | |
17955 | need_locks \ | |
b214d478 SE |
17956 | DSYMUTIL \ |
17957 | NMEDIT \ | |
17958 | LIPO \ | |
17959 | OTOOL \ | |
17960 | OTOOL64 \ | |
d7040cdb SE |
17961 | shrext_cmds \ |
17962 | export_dynamic_flag_spec \ | |
17963 | whole_archive_flag_spec \ | |
17964 | compiler_needs_object \ | |
17965 | with_gnu_ld \ | |
17966 | allow_undefined_flag \ | |
17967 | no_undefined_flag \ | |
17968 | hardcode_libdir_flag_spec \ | |
17969 | hardcode_libdir_flag_spec_ld \ | |
17970 | hardcode_libdir_separator \ | |
17971 | fix_srcfile_path \ | |
17972 | exclude_expsyms \ | |
17973 | include_expsyms \ | |
17974 | file_list_spec \ | |
17975 | variables_saved_for_relink \ | |
17976 | libname_spec \ | |
17977 | library_names_spec \ | |
17978 | soname_spec \ | |
3725885a | 17979 | install_override_mode \ |
d7040cdb SE |
17980 | finish_eval \ |
17981 | old_striplib \ | |
3cb62297 L |
17982 | striplib \ |
17983 | compiler_lib_search_dirs \ | |
17984 | predep_objects \ | |
17985 | postdep_objects \ | |
17986 | predeps \ | |
17987 | postdeps \ | |
17988 | compiler_lib_search_path \ | |
17989 | LD_CXX \ | |
17990 | reload_flag_CXX \ | |
17991 | compiler_CXX \ | |
17992 | lt_prog_compiler_no_builtin_flag_CXX \ | |
17993 | lt_prog_compiler_wl_CXX \ | |
17994 | lt_prog_compiler_pic_CXX \ | |
17995 | lt_prog_compiler_static_CXX \ | |
17996 | lt_cv_prog_compiler_c_o_CXX \ | |
17997 | export_dynamic_flag_spec_CXX \ | |
17998 | whole_archive_flag_spec_CXX \ | |
17999 | compiler_needs_object_CXX \ | |
18000 | with_gnu_ld_CXX \ | |
18001 | allow_undefined_flag_CXX \ | |
18002 | no_undefined_flag_CXX \ | |
18003 | hardcode_libdir_flag_spec_CXX \ | |
18004 | hardcode_libdir_flag_spec_ld_CXX \ | |
18005 | hardcode_libdir_separator_CXX \ | |
18006 | fix_srcfile_path_CXX \ | |
18007 | exclude_expsyms_CXX \ | |
18008 | include_expsyms_CXX \ | |
18009 | file_list_spec_CXX \ | |
18010 | compiler_lib_search_dirs_CXX \ | |
18011 | predep_objects_CXX \ | |
18012 | postdep_objects_CXX \ | |
18013 | predeps_CXX \ | |
18014 | postdeps_CXX \ | |
18015 | compiler_lib_search_path_CXX; do | |
3725885a | 18016 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18017 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18018 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18019 | ;; |
18020 | *) | |
18021 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18022 | ;; | |
18023 | esac | |
18024 | done | |
18025 | ||
18026 | # Double-quote double-evaled strings. | |
18027 | for var in reload_cmds \ | |
18028 | old_postinstall_cmds \ | |
18029 | old_postuninstall_cmds \ | |
18030 | old_archive_cmds \ | |
18031 | extract_expsyms_cmds \ | |
18032 | old_archive_from_new_cmds \ | |
18033 | old_archive_from_expsyms_cmds \ | |
18034 | archive_cmds \ | |
18035 | archive_expsym_cmds \ | |
18036 | module_cmds \ | |
18037 | module_expsym_cmds \ | |
18038 | export_symbols_cmds \ | |
18039 | prelink_cmds \ | |
18040 | postinstall_cmds \ | |
18041 | postuninstall_cmds \ | |
18042 | finish_cmds \ | |
18043 | sys_lib_search_path_spec \ | |
3cb62297 L |
18044 | sys_lib_dlsearch_path_spec \ |
18045 | reload_cmds_CXX \ | |
18046 | old_archive_cmds_CXX \ | |
18047 | old_archive_from_new_cmds_CXX \ | |
18048 | old_archive_from_expsyms_cmds_CXX \ | |
18049 | archive_cmds_CXX \ | |
18050 | archive_expsym_cmds_CXX \ | |
18051 | module_cmds_CXX \ | |
18052 | module_expsym_cmds_CXX \ | |
18053 | export_symbols_cmds_CXX \ | |
18054 | prelink_cmds_CXX; do | |
3725885a | 18055 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18056 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18057 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18058 | ;; |
18059 | *) | |
18060 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18061 | ;; | |
18062 | esac | |
18063 | done | |
18064 | ||
d7040cdb SE |
18065 | ac_aux_dir='$ac_aux_dir' |
18066 | xsi_shell='$xsi_shell' | |
18067 | lt_shell_append='$lt_shell_append' | |
18068 | ||
18069 | # See if we are running on zsh, and set the options which allow our | |
18070 | # commands through without removal of \ escapes INIT. | |
18071 | if test -n "\${ZSH_VERSION+set}" ; then | |
18072 | setopt NO_GLOB_SUBST | |
18073 | fi | |
18074 | ||
18075 | ||
18076 | PACKAGE='$PACKAGE' | |
18077 | VERSION='$VERSION' | |
18078 | TIMESTAMP='$TIMESTAMP' | |
18079 | RM='$RM' | |
18080 | ofile='$ofile' | |
18081 | ||
18082 | ||
18083 | ||
3cb62297 L |
18084 | |
18085 | ||
20e95c23 DJ |
18086 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
18087 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
18088 | # from automake. | |
18089 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
18090 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
18091 | LINGUAS="${LINGUAS-%UNSET%}" | |
18092 | ||
42ecbf5e DJ |
18093 | |
18094 | _ACEOF | |
18095 | ||
81ecdfbb | 18096 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 18097 | |
81ecdfbb | 18098 | # Handling of arguments. |
42ecbf5e | 18099 | for ac_config_target in $ac_config_targets |
252b5132 | 18100 | do |
81ecdfbb RW |
18101 | case $ac_config_target in |
18102 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
18103 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
18104 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
18105 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
18106 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18107 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
18108 | ||
18109 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
252b5132 RH |
18110 | esac |
18111 | done | |
18112 | ||
81ecdfbb | 18113 | |
42ecbf5e DJ |
18114 | # If the user did not use the arguments to specify the items to instantiate, |
18115 | # then the envvar interface is used. Set only those that are not. | |
18116 | # We use the long form for the default assignment because of an extremely | |
18117 | # bizarre bug on SunOS 4.1.3. | |
18118 | if $ac_need_defaults; then | |
18119 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18120 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18121 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18122 | fi | |
18123 | ||
18124 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 18125 | # simply because there is no reason against having it here, and in addition, |
42ecbf5e | 18126 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
18127 | # Hook for its removal unless debugging. |
18128 | # Note that there is a small window in which the directory will not be cleaned: | |
18129 | # after its creation but before its name has been assigned to `$tmp'. | |
42ecbf5e DJ |
18130 | $debug || |
18131 | { | |
81ecdfbb RW |
18132 | tmp= |
18133 | trap 'exit_status=$? | |
18134 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18135 | ' 0 | |
18136 | trap 'as_fn_exit 1' 1 2 13 15 | |
42ecbf5e | 18137 | } |
42ecbf5e | 18138 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 18139 | |
42ecbf5e | 18140 | { |
81ecdfbb | 18141 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
42ecbf5e DJ |
18142 | test -n "$tmp" && test -d "$tmp" |
18143 | } || | |
18144 | { | |
81ecdfbb RW |
18145 | tmp=./conf$$-$RANDOM |
18146 | (umask 077 && mkdir "$tmp") | |
18147 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
18148 | ||
18149 | # Set up the scripts for CONFIG_FILES section. | |
18150 | # No need to generate them if there are no CONFIG_FILES. | |
18151 | # This happens for instance with `./config.status config.h'. | |
18152 | if test -n "$CONFIG_FILES"; then | |
18153 | ||
18154 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
18155 | ac_cs_awk_getline=: | |
18156 | ac_cs_awk_pipe_init= | |
18157 | ac_cs_awk_read_file=' | |
18158 | while ((getline aline < (F[key])) > 0) | |
18159 | print(aline) | |
18160 | close(F[key])' | |
18161 | ac_cs_awk_pipe_fini= | |
18162 | else | |
18163 | ac_cs_awk_getline=false | |
18164 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
18165 | ac_cs_awk_read_file=' | |
18166 | print "|#_!!_#|" | |
18167 | print "cat " F[key] " &&" | |
18168 | '$ac_cs_awk_pipe_init | |
18169 | # The final `:' finishes the AND list. | |
18170 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
18171 | fi | |
18172 | ac_cr=`echo X | tr X '\015'` | |
18173 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18174 | # But we know of no other shell where ac_cr would be empty at this | |
18175 | # point, so we can use a bashism as a fallback. | |
18176 | if test "x$ac_cr" = x; then | |
18177 | eval ac_cr=\$\'\\r\' | |
18178 | fi | |
18179 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18180 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18181 | ac_cs_awk_cr='\r' | |
18182 | else | |
18183 | ac_cs_awk_cr=$ac_cr | |
18184 | fi | |
18185 | ||
18186 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
18187 | _ACEOF | |
18188 | ||
18189 | # Create commands to substitute file output variables. | |
42ecbf5e | 18190 | { |
81ecdfbb RW |
18191 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
18192 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
18193 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
18194 | echo "_ACAWK" && | |
18195 | echo "_ACEOF" | |
18196 | } >conf$$files.sh && | |
18197 | . ./conf$$files.sh || | |
18198 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18199 | rm -f conf$$files.sh | |
e5a52504 | 18200 | |
81ecdfbb RW |
18201 | { |
18202 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18203 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18204 | echo "_ACEOF" | |
18205 | } >conf$$subs.sh || | |
18206 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18207 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
18208 | ac_delim='%!_!# ' | |
18209 | for ac_last_try in false false false false false :; do | |
18210 | . ./conf$$subs.sh || | |
18211 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18212 | ||
18213 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18214 | if test $ac_delim_n = $ac_delim_num; then | |
18215 | break | |
18216 | elif $ac_last_try; then | |
18217 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18218 | else | |
18219 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18220 | fi | |
18221 | done | |
18222 | rm -f conf$$subs.sh | |
18223 | ||
18224 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18225 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18226 | _ACEOF | |
18227 | sed -n ' | |
18228 | h | |
18229 | s/^/S["/; s/!.*/"]=/ | |
18230 | p | |
18231 | g | |
18232 | s/^[^!]*!// | |
18233 | :repl | |
18234 | t repl | |
18235 | s/'"$ac_delim"'$// | |
18236 | t delim | |
18237 | :nl | |
18238 | h | |
18239 | s/\(.\{148\}\).*/\1/ | |
18240 | t more1 | |
18241 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18242 | p | |
18243 | n | |
18244 | b repl | |
18245 | :more1 | |
18246 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18247 | p | |
18248 | g | |
18249 | s/.\{148\}// | |
18250 | t nl | |
18251 | :delim | |
18252 | h | |
18253 | s/\(.\{148\}\).*/\1/ | |
18254 | t more2 | |
18255 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18256 | p | |
18257 | b | |
18258 | :more2 | |
18259 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18260 | p | |
18261 | g | |
18262 | s/.\{148\}// | |
18263 | t delim | |
18264 | ' <conf$$subs.awk | sed ' | |
18265 | /^[^""]/{ | |
18266 | N | |
18267 | s/\n// | |
18268 | } | |
18269 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18270 | rm -f conf$$subs.awk | |
18271 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18272 | _ACAWK | |
18273 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18274 | for (key in S) S_is_set[key] = 1 | |
18275 | FS = "\a" | |
18276 | \$ac_cs_awk_pipe_init | |
18277 | } | |
18278 | { | |
18279 | line = $ 0 | |
18280 | nfields = split(line, field, "@") | |
18281 | substed = 0 | |
18282 | len = length(field[1]) | |
18283 | for (i = 2; i < nfields; i++) { | |
18284 | key = field[i] | |
18285 | keylen = length(key) | |
18286 | if (S_is_set[key]) { | |
18287 | value = S[key] | |
18288 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18289 | len += length(value) + length(field[++i]) | |
18290 | substed = 1 | |
18291 | } else | |
18292 | len += 1 + keylen | |
18293 | } | |
18294 | if (nfields == 3 && !substed) { | |
18295 | key = field[2] | |
18296 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
18297 | \$ac_cs_awk_read_file | |
18298 | next | |
18299 | } | |
18300 | } | |
18301 | print line | |
18302 | } | |
18303 | \$ac_cs_awk_pipe_fini | |
18304 | _ACAWK | |
18305 | _ACEOF | |
18306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18307 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18308 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18309 | else | |
18310 | cat | |
18311 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18312 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
42ecbf5e | 18313 | _ACEOF |
d15b04bd | 18314 | |
81ecdfbb RW |
18315 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18316 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18317 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18318 | # (actually we leave an empty line to preserve line numbers). | |
18319 | if test "x$srcdir" = x.; then | |
18320 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18321 | s/:*\$(srcdir):*/:/ | |
18322 | s/:*\${srcdir}:*/:/ | |
18323 | s/:*@srcdir@:*/:/ | |
18324 | s/^\([^=]*=[ ]*\):*/\1/ | |
18325 | s/:*$// | |
18326 | s/^[^=]*=[ ]*$// | |
18327 | }' | |
18328 | fi | |
18329 | ||
18330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18331 | fi # test -n "$CONFIG_FILES" | |
42ecbf5e | 18332 | |
81ecdfbb RW |
18333 | # Set up the scripts for CONFIG_HEADERS section. |
18334 | # No need to generate them if there are no CONFIG_HEADERS. | |
18335 | # This happens for instance with `./config.status Makefile'. | |
18336 | if test -n "$CONFIG_HEADERS"; then | |
18337 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18338 | BEGIN { | |
18339 | _ACEOF | |
42ecbf5e | 18340 | |
81ecdfbb RW |
18341 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18342 | # here-document in config.status, that substitutes the proper values into | |
18343 | # config.h.in to produce config.h. | |
252b5132 | 18344 | |
81ecdfbb RW |
18345 | # Create a delimiter string that does not exist in confdefs.h, to ease |
18346 | # handling of long lines. | |
18347 | ac_delim='%!_!# ' | |
18348 | for ac_last_try in false false :; do | |
18349 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18350 | if test -z "$ac_t"; then | |
18351 | break | |
18352 | elif $ac_last_try; then | |
18353 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
18354 | else | |
18355 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18356 | fi | |
18357 | done | |
18358 | ||
18359 | # For the awk script, D is an array of macro values keyed by name, | |
18360 | # likewise P contains macro parameters if any. Preserve backslash | |
18361 | # newline sequences. | |
18362 | ||
18363 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18364 | sed -n ' | |
18365 | s/.\{148\}/&'"$ac_delim"'/g | |
18366 | t rset | |
18367 | :rset | |
18368 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18369 | t def | |
18370 | d | |
18371 | :def | |
18372 | s/\\$// | |
18373 | t bsnl | |
18374 | s/["\\]/\\&/g | |
18375 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18376 | D["\1"]=" \3"/p | |
18377 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18378 | d | |
18379 | :bsnl | |
18380 | s/["\\]/\\&/g | |
18381 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18382 | D["\1"]=" \3\\\\\\n"\\/p | |
18383 | t cont | |
18384 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18385 | t cont | |
18386 | d | |
18387 | :cont | |
18388 | n | |
18389 | s/.\{148\}/&'"$ac_delim"'/g | |
18390 | t clear | |
18391 | :clear | |
18392 | s/\\$// | |
18393 | t bsnlc | |
18394 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18395 | d | |
18396 | :bsnlc | |
18397 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18398 | b cont | |
18399 | ' <confdefs.h | sed ' | |
18400 | s/'"$ac_delim"'/"\\\ | |
18401 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18402 | ||
18403 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18404 | for (key in D) D_is_set[key] = 1 | |
18405 | FS = "\a" | |
18406 | } | |
18407 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18408 | line = \$ 0 | |
18409 | split(line, arg, " ") | |
18410 | if (arg[1] == "#") { | |
18411 | defundef = arg[2] | |
18412 | mac1 = arg[3] | |
18413 | } else { | |
18414 | defundef = substr(arg[1], 2) | |
18415 | mac1 = arg[2] | |
18416 | } | |
18417 | split(mac1, mac2, "(") #) | |
18418 | macro = mac2[1] | |
18419 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18420 | if (D_is_set[macro]) { | |
18421 | # Preserve the white space surrounding the "#". | |
18422 | print prefix "define", macro P[macro] D[macro] | |
18423 | next | |
18424 | } else { | |
18425 | # Replace #undef with comments. This is necessary, for example, | |
18426 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18427 | # on some systems where configure will not decide to define it. | |
18428 | if (defundef == "undef") { | |
18429 | print "/*", prefix defundef, macro, "*/" | |
18430 | next | |
18431 | } | |
18432 | } | |
18433 | } | |
18434 | { print } | |
18435 | _ACAWK | |
42ecbf5e | 18436 | _ACEOF |
81ecdfbb RW |
18437 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18438 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
18439 | fi # test -n "$CONFIG_HEADERS" | |
42ecbf5e | 18440 | |
81ecdfbb RW |
18441 | |
18442 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
18443 | shift | |
18444 | for ac_tag | |
18445 | do | |
18446 | case $ac_tag in | |
18447 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18448 | esac | |
18449 | case $ac_mode$ac_tag in | |
18450 | :[FHL]*:*);; | |
18451 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
18452 | :[FH]-) ac_tag=-:-;; | |
18453 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18454 | esac | |
18455 | ac_save_IFS=$IFS | |
18456 | IFS=: | |
18457 | set x $ac_tag | |
18458 | IFS=$ac_save_IFS | |
18459 | shift | |
18460 | ac_file=$1 | |
18461 | shift | |
18462 | ||
18463 | case $ac_mode in | |
18464 | :L) ac_source=$1;; | |
18465 | :[FH]) | |
18466 | ac_file_inputs= | |
18467 | for ac_f | |
18468 | do | |
18469 | case $ac_f in | |
18470 | -) ac_f="$tmp/stdin";; | |
18471 | *) # Look for the file first in the build tree, then in the source tree | |
18472 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18473 | # because $ac_f cannot contain `:'. | |
18474 | test -f "$ac_f" || | |
18475 | case $ac_f in | |
18476 | [\\/$]*) false;; | |
18477 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18478 | esac || | |
18479 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
18480 | esac | |
18481 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18482 | as_fn_append ac_file_inputs " '$ac_f'" | |
18483 | done | |
18484 | ||
18485 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18486 | # use $as_me), people would be surprised to read: | |
18487 | # /* config.h. Generated by config.status. */ | |
18488 | configure_input='Generated from '` | |
18489 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18490 | `' by configure.' | |
18491 | if test x"$ac_file" != x-; then | |
18492 | configure_input="$ac_file. $configure_input" | |
18493 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18494 | $as_echo "$as_me: creating $ac_file" >&6;} | |
252b5132 | 18495 | fi |
81ecdfbb RW |
18496 | # Neutralize special characters interpreted by sed in replacement strings. |
18497 | case $configure_input in #( | |
18498 | *\&* | *\|* | *\\* ) | |
18499 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18500 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18501 | *) ac_sed_conf_input=$configure_input;; | |
18502 | esac | |
252b5132 | 18503 | |
81ecdfbb RW |
18504 | case $ac_tag in |
18505 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
18506 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
18507 | esac | |
18508 | ;; | |
252b5132 RH |
18509 | esac |
18510 | ||
81ecdfbb | 18511 | ac_dir=`$as_dirname -- "$ac_file" || |
42ecbf5e DJ |
18512 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18513 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18514 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18515 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18516 | $as_echo X"$ac_file" | | |
18517 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18518 | s//\1/ | |
18519 | q | |
18520 | } | |
18521 | /^X\(\/\/\)[^/].*/{ | |
18522 | s//\1/ | |
18523 | q | |
18524 | } | |
18525 | /^X\(\/\/\)$/{ | |
18526 | s//\1/ | |
18527 | q | |
18528 | } | |
18529 | /^X\(\/\).*/{ | |
18530 | s//\1/ | |
18531 | q | |
18532 | } | |
18533 | s/.*/./; q'` | |
18534 | as_dir="$ac_dir"; as_fn_mkdir_p | |
42ecbf5e DJ |
18535 | ac_builddir=. |
18536 | ||
81ecdfbb RW |
18537 | case "$ac_dir" in |
18538 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18539 | *) | |
18540 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18541 | # A ".." for each directory in $ac_dir_suffix. | |
18542 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18543 | case $ac_top_builddir_sub in | |
18544 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18545 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18546 | esac ;; | |
18547 | esac | |
18548 | ac_abs_top_builddir=$ac_pwd | |
18549 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18550 | # for backward compatibility: | |
18551 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 18552 | |
42ecbf5e | 18553 | case $srcdir in |
81ecdfbb | 18554 | .) # We are building in place. |
42ecbf5e | 18555 | ac_srcdir=. |
81ecdfbb RW |
18556 | ac_top_srcdir=$ac_top_builddir_sub |
18557 | ac_abs_top_srcdir=$ac_pwd ;; | |
18558 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 18559 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
18560 | ac_top_srcdir=$srcdir |
18561 | ac_abs_top_srcdir=$srcdir ;; | |
18562 | *) # Relative name. | |
18563 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18564 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18565 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 18566 | esac |
81ecdfbb | 18567 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
42ecbf5e | 18568 | |
252b5132 | 18569 | |
81ecdfbb RW |
18570 | case $ac_mode in |
18571 | :F) | |
18572 | # | |
18573 | # CONFIG_FILE | |
18574 | # | |
e5a52504 | 18575 | |
42ecbf5e DJ |
18576 | case $INSTALL in |
18577 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
18578 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
18579 | esac | |
18580 | ac_MKDIR_P=$MKDIR_P | |
18581 | case $MKDIR_P in | |
18582 | [\\/$]* | ?:[\\/]* ) ;; | |
18583 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
d15b04bd | 18584 | esac |
81ecdfbb | 18585 | _ACEOF |
e5a52504 | 18586 | |
81ecdfbb RW |
18587 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18588 | # If the template does not know about datarootdir, expand it. | |
18589 | # FIXME: This hack should be removed a few years after 2.60. | |
18590 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18591 | ac_sed_dataroot=' | |
18592 | /datarootdir/ { | |
18593 | p | |
18594 | q | |
18595 | } | |
18596 | /@datadir@/p | |
18597 | /@docdir@/p | |
18598 | /@infodir@/p | |
18599 | /@localedir@/p | |
18600 | /@mandir@/p' | |
18601 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18602 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18603 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18605 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18606 | _ACEOF | |
18607 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18608 | ac_datarootdir_hack=' | |
18609 | s&@datadir@&$datadir&g | |
18610 | s&@docdir@&$docdir&g | |
18611 | s&@infodir@&$infodir&g | |
18612 | s&@localedir@&$localedir&g | |
18613 | s&@mandir@&$mandir&g | |
18614 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18615 | esac | |
42ecbf5e | 18616 | _ACEOF |
81ecdfbb RW |
18617 | |
18618 | # Neutralize VPATH when `$srcdir' = `.'. | |
18619 | # Shell code in configure.ac might set extrasub. | |
18620 | # FIXME: do we really want to maintain this feature? | |
18621 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18622 | ac_sed_extra="$ac_vpsub | |
42ecbf5e DJ |
18623 | $extrasub |
18624 | _ACEOF | |
81ecdfbb | 18625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e DJ |
18626 | :t |
18627 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
18628 | s|@configure_input@|$ac_sed_conf_input|;t t |
18629 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18630 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18631 | s&@srcdir@&$ac_srcdir&;t t | |
18632 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18633 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18634 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18635 | s&@builddir@&$ac_builddir&;t t | |
18636 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18637 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18638 | s&@INSTALL@&$ac_INSTALL&;t t | |
18639 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18640 | $ac_datarootdir_hack | |
18641 | " | |
18642 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
18643 | if $ac_cs_awk_getline; then | |
18644 | $AWK -f "$tmp/subs.awk" | |
18645 | else | |
18646 | $AWK -f "$tmp/subs.awk" | $SHELL | |
18647 | fi >$tmp/out \ | |
18648 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18649 | ||
18650 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
18651 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
18652 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
18653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18654 | which seems to be undefined. Please make sure it is defined." >&5 | |
18655 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18656 | which seems to be undefined. Please make sure it is defined." >&2;} | |
18657 | ||
18658 | rm -f "$tmp/stdin" | |
42ecbf5e | 18659 | case $ac_file in |
81ecdfbb RW |
18660 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
18661 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
18662 | esac \ | |
18663 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18664 | ;; | |
18665 | :H) | |
18666 | # | |
18667 | # CONFIG_HEADER | |
18668 | # | |
42ecbf5e | 18669 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
18670 | { |
18671 | $as_echo "/* $configure_input */" \ | |
18672 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
18673 | } >"$tmp/config.h" \ | |
18674 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18675 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
18676 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
18677 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
42ecbf5e | 18678 | else |
81ecdfbb RW |
18679 | rm -f "$ac_file" |
18680 | mv "$tmp/config.h" "$ac_file" \ | |
18681 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 18682 | fi |
42ecbf5e | 18683 | else |
81ecdfbb RW |
18684 | $as_echo "/* $configure_input */" \ |
18685 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
18686 | || as_fn_error "could not create -" "$LINENO" 5 | |
e5a52504 | 18687 | fi |
81ecdfbb RW |
18688 | # Compute "$ac_file"'s index in $config_headers. |
18689 | _am_arg="$ac_file" | |
42ecbf5e DJ |
18690 | _am_stamp_count=1 |
18691 | for _am_header in $config_headers :; do | |
18692 | case $_am_header in | |
81ecdfbb | 18693 | $_am_arg | $_am_arg:* ) |
42ecbf5e DJ |
18694 | break ;; |
18695 | * ) | |
18696 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18697 | esac | |
18698 | done | |
81ecdfbb RW |
18699 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
18700 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18701 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18702 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18703 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18704 | $as_echo X"$_am_arg" | | |
18705 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18706 | s//\1/ | |
18707 | q | |
18708 | } | |
18709 | /^X\(\/\/\)[^/].*/{ | |
18710 | s//\1/ | |
18711 | q | |
18712 | } | |
18713 | /^X\(\/\/\)$/{ | |
18714 | s//\1/ | |
18715 | q | |
18716 | } | |
18717 | /^X\(\/\).*/{ | |
18718 | s//\1/ | |
18719 | q | |
18720 | } | |
18721 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18722 | ;; | |
42ecbf5e | 18723 | |
81ecdfbb RW |
18724 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
18725 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18726 | ;; | |
18727 | esac | |
42ecbf5e DJ |
18728 | |
18729 | ||
81ecdfbb RW |
18730 | case $ac_file$ac_mode in |
18731 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
18732 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
18733 | # are listed without --file. Let's play safe and only enable the eval | |
18734 | # if we detect the quoting. | |
18735 | case $CONFIG_FILES in | |
18736 | *\'*) eval set x "$CONFIG_FILES" ;; | |
18737 | *) set x $CONFIG_FILES ;; | |
18738 | esac | |
18739 | shift | |
18740 | for mf | |
18741 | do | |
18742 | # Strip MF so we end up with the name of the file. | |
18743 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18744 | # Check whether this is an Automake generated Makefile or not. | |
18745 | # We used to match only the files named `Makefile.in', but | |
18746 | # some people rename them; so instead we look at the file content. | |
18747 | # Grep'ing the first line is not enough: some people post-process | |
18748 | # each Makefile.in and add a new line on top of each file to say so. | |
18749 | # Grep'ing the whole file is not good either: AIX grep has a line | |
18750 | # limit of 2048, but all sed's we know have understand at least 4000. | |
18751 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
18752 | dirpart=`$as_dirname -- "$mf" || | |
42ecbf5e DJ |
18753 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18754 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18755 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18756 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
18757 | $as_echo X"$mf" | | |
18758 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18759 | s//\1/ | |
18760 | q | |
18761 | } | |
18762 | /^X\(\/\/\)[^/].*/{ | |
18763 | s//\1/ | |
18764 | q | |
18765 | } | |
18766 | /^X\(\/\/\)$/{ | |
18767 | s//\1/ | |
18768 | q | |
18769 | } | |
18770 | /^X\(\/\).*/{ | |
18771 | s//\1/ | |
18772 | q | |
18773 | } | |
18774 | s/.*/./; q'` | |
18775 | else | |
18776 | continue | |
18777 | fi | |
18778 | # Extract the definition of DEPDIR, am__include, and am__quote | |
18779 | # from the Makefile without running `make'. | |
18780 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18781 | test -z "$DEPDIR" && continue | |
18782 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18783 | test -z "am__include" && continue | |
18784 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18785 | # When using ansi2knr, U may be empty or an underscore; expand it | |
18786 | U=`sed -n 's/^U = //p' < "$mf"` | |
18787 | # Find all dependency output files, they are included files with | |
18788 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18789 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18790 | # expansion. | |
18791 | for file in `sed -n " | |
18792 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18793 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
18794 | # Make sure the directory exists. | |
18795 | test -f "$dirpart/$file" && continue | |
18796 | fdir=`$as_dirname -- "$file" || | |
42ecbf5e DJ |
18797 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18798 | X"$file" : 'X\(//\)[^/]' \| \ | |
18799 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18800 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
18801 | $as_echo X"$file" | | |
18802 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18803 | s//\1/ | |
18804 | q | |
18805 | } | |
18806 | /^X\(\/\/\)[^/].*/{ | |
18807 | s//\1/ | |
18808 | q | |
18809 | } | |
18810 | /^X\(\/\/\)$/{ | |
18811 | s//\1/ | |
18812 | q | |
18813 | } | |
18814 | /^X\(\/\).*/{ | |
18815 | s//\1/ | |
18816 | q | |
18817 | } | |
18818 | s/.*/./; q'` | |
18819 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
18820 | # echo "creating $dirpart/$file" | |
18821 | echo '# dummy' > "$dirpart/$file" | |
42ecbf5e | 18822 | done |
42ecbf5e | 18823 | done |
81ecdfbb | 18824 | } |
d7040cdb | 18825 | ;; |
81ecdfbb | 18826 | "libtool":C) |
d7040cdb SE |
18827 | |
18828 | # See if we are running on zsh, and set the options which allow our | |
18829 | # commands through without removal of \ escapes. | |
18830 | if test -n "${ZSH_VERSION+set}" ; then | |
18831 | setopt NO_GLOB_SUBST | |
18832 | fi | |
18833 | ||
18834 | cfgfile="${ofile}T" | |
18835 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18836 | $RM "$cfgfile" | |
18837 | ||
18838 | cat <<_LT_EOF >> "$cfgfile" | |
18839 | #! $SHELL | |
18840 | ||
18841 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
b214d478 | 18842 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
18843 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18844 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18845 | # | |
b214d478 | 18846 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 18847 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
b214d478 | 18848 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 18849 | # |
b214d478 | 18850 | # This file is part of GNU Libtool. |
d7040cdb | 18851 | # |
b214d478 SE |
18852 | # GNU Libtool is free software; you can redistribute it and/or |
18853 | # modify it under the terms of the GNU General Public License as | |
18854 | # published by the Free Software Foundation; either version 2 of | |
18855 | # the License, or (at your option) any later version. | |
d7040cdb | 18856 | # |
b214d478 SE |
18857 | # As a special exception to the GNU General Public License, |
18858 | # if you distribute this file as part of a program or library that | |
18859 | # is built using GNU Libtool, you may include this file under the | |
18860 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 18861 | # |
b214d478 SE |
18862 | # GNU Libtool is distributed in the hope that it will be useful, |
18863 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18864 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18865 | # GNU General Public License for more details. | |
d7040cdb | 18866 | # |
b214d478 SE |
18867 | # You should have received a copy of the GNU General Public License |
18868 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18869 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18870 | # obtained by writing to the Free Software Foundation, Inc., | |
18871 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
18872 | |
18873 | ||
18874 | # The names of the tagged configurations supported by this script. | |
3cb62297 | 18875 | available_tags="CXX " |
d7040cdb SE |
18876 | |
18877 | # ### BEGIN LIBTOOL CONFIG | |
18878 | ||
18879 | # Which release of libtool.m4 was used? | |
18880 | macro_version=$macro_version | |
18881 | macro_revision=$macro_revision | |
18882 | ||
18883 | # Whether or not to build shared libraries. | |
18884 | build_libtool_libs=$enable_shared | |
18885 | ||
18886 | # Whether or not to build static libraries. | |
18887 | build_old_libs=$enable_static | |
18888 | ||
18889 | # What type of objects to build. | |
18890 | pic_mode=$pic_mode | |
18891 | ||
18892 | # Whether or not to optimize for fast installation. | |
18893 | fast_install=$enable_fast_install | |
18894 | ||
3725885a RW |
18895 | # Shell to use when invoking shell scripts. |
18896 | SHELL=$lt_SHELL | |
18897 | ||
18898 | # An echo program that protects backslashes. | |
18899 | ECHO=$lt_ECHO | |
18900 | ||
d7040cdb SE |
18901 | # The host system. |
18902 | host_alias=$host_alias | |
18903 | host=$host | |
18904 | host_os=$host_os | |
18905 | ||
18906 | # The build system. | |
18907 | build_alias=$build_alias | |
18908 | build=$build | |
18909 | build_os=$build_os | |
18910 | ||
18911 | # A sed program that does not truncate output. | |
18912 | SED=$lt_SED | |
18913 | ||
18914 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18915 | Xsed="\$SED -e 1s/^X//" | |
18916 | ||
18917 | # A grep program that handles long lines. | |
18918 | GREP=$lt_GREP | |
18919 | ||
18920 | # An ERE matcher. | |
18921 | EGREP=$lt_EGREP | |
18922 | ||
18923 | # A literal string matcher. | |
18924 | FGREP=$lt_FGREP | |
18925 | ||
18926 | # A BSD- or MS-compatible name lister. | |
18927 | NM=$lt_NM | |
18928 | ||
18929 | # Whether we need soft or hard links. | |
18930 | LN_S=$lt_LN_S | |
18931 | ||
18932 | # What is the maximum length of a command? | |
18933 | max_cmd_len=$max_cmd_len | |
18934 | ||
18935 | # Object file suffix (normally "o"). | |
18936 | objext=$ac_objext | |
18937 | ||
18938 | # Executable file suffix (normally ""). | |
18939 | exeext=$exeext | |
18940 | ||
18941 | # whether the shell understands "unset". | |
18942 | lt_unset=$lt_unset | |
18943 | ||
18944 | # turn spaces into newlines. | |
18945 | SP2NL=$lt_lt_SP2NL | |
18946 | ||
18947 | # turn newlines into spaces. | |
18948 | NL2SP=$lt_lt_NL2SP | |
18949 | ||
b214d478 SE |
18950 | # An object symbol dumper. |
18951 | OBJDUMP=$lt_OBJDUMP | |
18952 | ||
d7040cdb SE |
18953 | # Method to check whether dependent libraries are shared objects. |
18954 | deplibs_check_method=$lt_deplibs_check_method | |
18955 | ||
18956 | # Command to use when deplibs_check_method == "file_magic". | |
18957 | file_magic_cmd=$lt_file_magic_cmd | |
18958 | ||
18959 | # The archiver. | |
18960 | AR=$lt_AR | |
18961 | AR_FLAGS=$lt_AR_FLAGS | |
18962 | ||
18963 | # A symbol stripping program. | |
18964 | STRIP=$lt_STRIP | |
18965 | ||
18966 | # Commands used to install an old-style archive. | |
18967 | RANLIB=$lt_RANLIB | |
18968 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18969 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18970 | ||
3725885a RW |
18971 | # Whether to use a lock for old archive extraction. |
18972 | lock_old_archive_extraction=$lock_old_archive_extraction | |
18973 | ||
d7040cdb SE |
18974 | # A C compiler. |
18975 | LTCC=$lt_CC | |
18976 | ||
18977 | # LTCC compiler flags. | |
18978 | LTCFLAGS=$lt_CFLAGS | |
18979 | ||
18980 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18981 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18982 | ||
18983 | # Transform the output of nm in a proper C declaration. | |
18984 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18985 | ||
18986 | # Transform the output of nm in a C name address pair. | |
18987 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18988 | ||
b214d478 SE |
18989 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
18990 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18991 | ||
d7040cdb SE |
18992 | # The name of the directory that contains temporary libtool files. |
18993 | objdir=$objdir | |
18994 | ||
d7040cdb SE |
18995 | # Used to examine libraries when file_magic_cmd begins with "file". |
18996 | MAGIC_CMD=$MAGIC_CMD | |
18997 | ||
18998 | # Must we lock files when doing compilation? | |
18999 | need_locks=$lt_need_locks | |
19000 | ||
b214d478 SE |
19001 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19002 | DSYMUTIL=$lt_DSYMUTIL | |
19003 | ||
19004 | # Tool to change global to local symbols on Mac OS X. | |
19005 | NMEDIT=$lt_NMEDIT | |
19006 | ||
19007 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19008 | LIPO=$lt_LIPO | |
19009 | ||
19010 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19011 | OTOOL=$lt_OTOOL | |
19012 | ||
19013 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19014 | OTOOL64=$lt_OTOOL64 | |
19015 | ||
d7040cdb SE |
19016 | # Old archive suffix (normally "a"). |
19017 | libext=$libext | |
19018 | ||
19019 | # Shared library suffix (normally ".so"). | |
19020 | shrext_cmds=$lt_shrext_cmds | |
19021 | ||
19022 | # The commands to extract the exported symbol list from a shared archive. | |
19023 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19024 | ||
19025 | # Variables whose values should be saved in libtool wrapper scripts and | |
19026 | # restored at link time. | |
19027 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19028 | ||
19029 | # Do we need the "lib" prefix for modules? | |
19030 | need_lib_prefix=$need_lib_prefix | |
19031 | ||
19032 | # Do we need a version for libraries? | |
19033 | need_version=$need_version | |
19034 | ||
19035 | # Library versioning type. | |
19036 | version_type=$version_type | |
19037 | ||
19038 | # Shared library runtime path variable. | |
19039 | runpath_var=$runpath_var | |
19040 | ||
19041 | # Shared library path variable. | |
19042 | shlibpath_var=$shlibpath_var | |
19043 | ||
19044 | # Is shlibpath searched before the hard-coded library search path? | |
19045 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19046 | ||
19047 | # Format of library name prefix. | |
19048 | libname_spec=$lt_libname_spec | |
19049 | ||
19050 | # List of archive names. First name is the real one, the rest are links. | |
19051 | # The last name is the one that the linker finds with -lNAME | |
19052 | library_names_spec=$lt_library_names_spec | |
19053 | ||
19054 | # The coded name of the library, if different from the real name. | |
19055 | soname_spec=$lt_soname_spec | |
19056 | ||
3725885a RW |
19057 | # Permission mode override for installation of shared libraries. |
19058 | install_override_mode=$lt_install_override_mode | |
19059 | ||
d7040cdb SE |
19060 | # Command to use after installation of a shared archive. |
19061 | postinstall_cmds=$lt_postinstall_cmds | |
19062 | ||
19063 | # Command to use after uninstallation of a shared archive. | |
19064 | postuninstall_cmds=$lt_postuninstall_cmds | |
19065 | ||
19066 | # Commands used to finish a libtool library installation in a directory. | |
19067 | finish_cmds=$lt_finish_cmds | |
19068 | ||
19069 | # As "finish_cmds", except a single script fragment to be evaled but | |
19070 | # not shown. | |
19071 | finish_eval=$lt_finish_eval | |
19072 | ||
19073 | # Whether we should hardcode library paths into libraries. | |
19074 | hardcode_into_libs=$hardcode_into_libs | |
19075 | ||
19076 | # Compile-time system search path for libraries. | |
19077 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19078 | ||
19079 | # Run-time system search path for libraries. | |
19080 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19081 | ||
19082 | # Whether dlopen is supported. | |
19083 | dlopen_support=$enable_dlopen | |
19084 | ||
19085 | # Whether dlopen of programs is supported. | |
19086 | dlopen_self=$enable_dlopen_self | |
19087 | ||
19088 | # Whether dlopen of statically linked programs is supported. | |
19089 | dlopen_self_static=$enable_dlopen_self_static | |
19090 | ||
19091 | # Commands to strip libraries. | |
19092 | old_striplib=$lt_old_striplib | |
19093 | striplib=$lt_striplib | |
19094 | ||
19095 | ||
19096 | # The linker used to build libraries. | |
19097 | LD=$lt_LD | |
19098 | ||
3725885a RW |
19099 | # How to create reloadable object files. |
19100 | reload_flag=$lt_reload_flag | |
19101 | reload_cmds=$lt_reload_cmds | |
19102 | ||
d7040cdb SE |
19103 | # Commands used to build an old-style archive. |
19104 | old_archive_cmds=$lt_old_archive_cmds | |
19105 | ||
19106 | # A language specific compiler. | |
19107 | CC=$lt_compiler | |
19108 | ||
19109 | # Is the compiler the GNU compiler? | |
19110 | with_gcc=$GCC | |
19111 | ||
19112 | # Compiler flag to turn off builtin functions. | |
19113 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19114 | ||
19115 | # How to pass a linker flag through the compiler. | |
19116 | wl=$lt_lt_prog_compiler_wl | |
19117 | ||
19118 | # Additional compiler flags for building library objects. | |
19119 | pic_flag=$lt_lt_prog_compiler_pic | |
19120 | ||
19121 | # Compiler flag to prevent dynamic linking. | |
19122 | link_static_flag=$lt_lt_prog_compiler_static | |
19123 | ||
19124 | # Does compiler simultaneously support -c and -o options? | |
19125 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19126 | ||
19127 | # Whether or not to add -lc for building shared libraries. | |
19128 | build_libtool_need_lc=$archive_cmds_need_lc | |
19129 | ||
19130 | # Whether or not to disallow shared libs when runtime libs are static. | |
19131 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19132 | ||
19133 | # Compiler flag to allow reflexive dlopens. | |
19134 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19135 | ||
19136 | # Compiler flag to generate shared objects directly from archives. | |
19137 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19138 | ||
19139 | # Whether the compiler copes with passing no objects directly. | |
19140 | compiler_needs_object=$lt_compiler_needs_object | |
19141 | ||
19142 | # Create an old-style archive from a shared archive. | |
19143 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19144 | ||
19145 | # Create a temporary old-style archive to link instead of a shared archive. | |
19146 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19147 | ||
19148 | # Commands used to build a shared archive. | |
19149 | archive_cmds=$lt_archive_cmds | |
19150 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19151 | ||
19152 | # Commands used to build a loadable module if different from building | |
19153 | # a shared archive. | |
19154 | module_cmds=$lt_module_cmds | |
19155 | module_expsym_cmds=$lt_module_expsym_cmds | |
19156 | ||
19157 | # Whether we are building with GNU ld or not. | |
19158 | with_gnu_ld=$lt_with_gnu_ld | |
19159 | ||
19160 | # Flag that allows shared libraries with undefined symbols to be built. | |
19161 | allow_undefined_flag=$lt_allow_undefined_flag | |
19162 | ||
19163 | # Flag that enforces no undefined symbols. | |
19164 | no_undefined_flag=$lt_no_undefined_flag | |
19165 | ||
19166 | # Flag to hardcode \$libdir into a binary during linking. | |
19167 | # This must work even if \$libdir does not exist | |
19168 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19169 | ||
19170 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19171 | # during linking. This must work even if \$libdir does not exist. | |
19172 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19173 | ||
19174 | # Whether we need a single "-rpath" flag with a separated argument. | |
19175 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19176 | ||
19177 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19178 | # DIR into the resulting binary. | |
19179 | hardcode_direct=$hardcode_direct | |
19180 | ||
19181 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19182 | # DIR into the resulting binary and the resulting library dependency is | |
19183 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19184 | # library is relocated. | |
19185 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19186 | ||
19187 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19188 | # into the resulting binary. | |
19189 | hardcode_minus_L=$hardcode_minus_L | |
19190 | ||
19191 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19192 | # into the resulting binary. | |
19193 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19194 | ||
19195 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19196 | # into the library and all subsequent libraries and executables linked | |
19197 | # against it. | |
19198 | hardcode_automatic=$hardcode_automatic | |
19199 | ||
19200 | # Set to yes if linker adds runtime paths of dependent libraries | |
19201 | # to runtime path list. | |
19202 | inherit_rpath=$inherit_rpath | |
19203 | ||
19204 | # Whether libtool must link a program against all its dependency libraries. | |
19205 | link_all_deplibs=$link_all_deplibs | |
19206 | ||
19207 | # Fix the shell variable \$srcfile for the compiler. | |
19208 | fix_srcfile_path=$lt_fix_srcfile_path | |
19209 | ||
19210 | # Set to "yes" if exported symbols are required. | |
19211 | always_export_symbols=$always_export_symbols | |
19212 | ||
19213 | # The commands to list exported symbols. | |
19214 | export_symbols_cmds=$lt_export_symbols_cmds | |
19215 | ||
19216 | # Symbols that should not be listed in the preloaded symbols. | |
19217 | exclude_expsyms=$lt_exclude_expsyms | |
19218 | ||
19219 | # Symbols that must always be exported. | |
19220 | include_expsyms=$lt_include_expsyms | |
19221 | ||
19222 | # Commands necessary for linking programs (against libraries) with templates. | |
19223 | prelink_cmds=$lt_prelink_cmds | |
19224 | ||
19225 | # Specify filename containing input files. | |
19226 | file_list_spec=$lt_file_list_spec | |
19227 | ||
19228 | # How to hardcode a shared library path into an executable. | |
19229 | hardcode_action=$hardcode_action | |
19230 | ||
3cb62297 L |
19231 | # The directories searched by this compiler when creating a shared library. |
19232 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19233 | ||
19234 | # Dependencies to place before and after the objects being linked to | |
19235 | # create a shared library. | |
19236 | predep_objects=$lt_predep_objects | |
19237 | postdep_objects=$lt_postdep_objects | |
19238 | predeps=$lt_predeps | |
19239 | postdeps=$lt_postdeps | |
19240 | ||
19241 | # The library search path used internally by the compiler when linking | |
19242 | # a shared library. | |
19243 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19244 | ||
d7040cdb SE |
19245 | # ### END LIBTOOL CONFIG |
19246 | ||
19247 | _LT_EOF | |
19248 | ||
19249 | case $host_os in | |
19250 | aix3*) | |
19251 | cat <<\_LT_EOF >> "$cfgfile" | |
19252 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19253 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19254 | # vanish in a puff of smoke. | |
19255 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19256 | COLLECT_NAMES= | |
19257 | export COLLECT_NAMES | |
19258 | fi | |
19259 | _LT_EOF | |
19260 | ;; | |
19261 | esac | |
19262 | ||
19263 | ||
19264 | ltmain="$ac_aux_dir/ltmain.sh" | |
19265 | ||
19266 | ||
19267 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19268 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19269 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19270 | # is reportedly fixed, but why not run on old versions too? | |
19271 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19272 | || (rm -f "$cfgfile"; exit 1) | |
19273 | ||
19274 | case $xsi_shell in | |
19275 | yes) | |
19276 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19277 | |
d7040cdb SE |
19278 | # func_dirname file append nondir_replacement |
19279 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19280 | # otherwise set result to NONDIR_REPLACEMENT. | |
19281 | func_dirname () | |
19282 | { | |
19283 | case ${1} in | |
19284 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19285 | * ) func_dirname_result="${3}" ;; | |
19286 | esac | |
19287 | } | |
19288 | ||
19289 | # func_basename file | |
19290 | func_basename () | |
19291 | { | |
19292 | func_basename_result="${1##*/}" | |
19293 | } | |
19294 | ||
b214d478 SE |
19295 | # func_dirname_and_basename file append nondir_replacement |
19296 | # perform func_basename and func_dirname in a single function | |
19297 | # call: | |
19298 | # dirname: Compute the dirname of FILE. If nonempty, | |
19299 | # add APPEND to the result, otherwise set result | |
19300 | # to NONDIR_REPLACEMENT. | |
19301 | # value returned in "$func_dirname_result" | |
19302 | # basename: Compute filename of FILE. | |
19303 | # value retuned in "$func_basename_result" | |
19304 | # Implementation must be kept synchronized with func_dirname | |
19305 | # and func_basename. For efficiency, we do not delegate to | |
19306 | # those functions but instead duplicate the functionality here. | |
19307 | func_dirname_and_basename () | |
19308 | { | |
19309 | case ${1} in | |
19310 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19311 | * ) func_dirname_result="${3}" ;; | |
19312 | esac | |
19313 | func_basename_result="${1##*/}" | |
19314 | } | |
19315 | ||
d7040cdb SE |
19316 | # func_stripname prefix suffix name |
19317 | # strip PREFIX and SUFFIX off of NAME. | |
19318 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19319 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19320 | # dot (in which case that matches only a dot). | |
19321 | func_stripname () | |
19322 | { | |
19323 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19324 | # positional parameters, so assign one to ordinary parameter first. | |
19325 | func_stripname_result=${3} | |
19326 | func_stripname_result=${func_stripname_result#"${1}"} | |
19327 | func_stripname_result=${func_stripname_result%"${2}"} | |
19328 | } | |
19329 | ||
19330 | # func_opt_split | |
19331 | func_opt_split () | |
19332 | { | |
19333 | func_opt_split_opt=${1%%=*} | |
19334 | func_opt_split_arg=${1#*=} | |
19335 | } | |
19336 | ||
19337 | # func_lo2o object | |
19338 | func_lo2o () | |
19339 | { | |
19340 | case ${1} in | |
19341 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19342 | *) func_lo2o_result=${1} ;; | |
19343 | esac | |
19344 | } | |
b214d478 SE |
19345 | |
19346 | # func_xform libobj-or-source | |
19347 | func_xform () | |
19348 | { | |
19349 | func_xform_result=${1%.*}.lo | |
19350 | } | |
19351 | ||
19352 | # func_arith arithmetic-term... | |
19353 | func_arith () | |
19354 | { | |
19355 | func_arith_result=$(( $* )) | |
19356 | } | |
19357 | ||
19358 | # func_len string | |
19359 | # STRING may not start with a hyphen. | |
19360 | func_len () | |
19361 | { | |
19362 | func_len_result=${#1} | |
19363 | } | |
19364 | ||
d7040cdb SE |
19365 | _LT_EOF |
19366 | ;; | |
19367 | *) # Bourne compatible functions. | |
19368 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19369 | |
d7040cdb SE |
19370 | # func_dirname file append nondir_replacement |
19371 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19372 | # otherwise set result to NONDIR_REPLACEMENT. | |
19373 | func_dirname () | |
19374 | { | |
19375 | # Extract subdirectory from the argument. | |
3725885a | 19376 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
19377 | if test "X$func_dirname_result" = "X${1}"; then |
19378 | func_dirname_result="${3}" | |
19379 | else | |
19380 | func_dirname_result="$func_dirname_result${2}" | |
19381 | fi | |
19382 | } | |
19383 | ||
19384 | # func_basename file | |
19385 | func_basename () | |
19386 | { | |
3725885a | 19387 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
19388 | } |
19389 | ||
b214d478 | 19390 | |
d7040cdb SE |
19391 | # func_stripname prefix suffix name |
19392 | # strip PREFIX and SUFFIX off of NAME. | |
19393 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19394 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19395 | # dot (in which case that matches only a dot). | |
19396 | # func_strip_suffix prefix name | |
19397 | func_stripname () | |
19398 | { | |
19399 | case ${2} in | |
3725885a RW |
19400 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
19401 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
19402 | esac |
19403 | } | |
19404 | ||
19405 | # sed scripts: | |
19406 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19407 | my_sed_long_arg='1s/^-[^=]*=//' | |
19408 | ||
19409 | # func_opt_split | |
19410 | func_opt_split () | |
19411 | { | |
3725885a RW |
19412 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
19413 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
19414 | } |
19415 | ||
19416 | # func_lo2o object | |
19417 | func_lo2o () | |
19418 | { | |
3725885a | 19419 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 19420 | } |
b214d478 SE |
19421 | |
19422 | # func_xform libobj-or-source | |
19423 | func_xform () | |
19424 | { | |
3725885a | 19425 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
b214d478 SE |
19426 | } |
19427 | ||
19428 | # func_arith arithmetic-term... | |
19429 | func_arith () | |
19430 | { | |
19431 | func_arith_result=`expr "$@"` | |
19432 | } | |
19433 | ||
19434 | # func_len string | |
19435 | # STRING may not start with a hyphen. | |
19436 | func_len () | |
19437 | { | |
19438 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19439 | } | |
19440 | ||
d7040cdb SE |
19441 | _LT_EOF |
19442 | esac | |
19443 | ||
19444 | case $lt_shell_append in | |
19445 | yes) | |
19446 | cat << \_LT_EOF >> "$cfgfile" | |
19447 | ||
19448 | # func_append var value | |
19449 | # Append VALUE to the end of shell variable VAR. | |
19450 | func_append () | |
19451 | { | |
19452 | eval "$1+=\$2" | |
19453 | } | |
19454 | _LT_EOF | |
19455 | ;; | |
19456 | *) | |
19457 | cat << \_LT_EOF >> "$cfgfile" | |
19458 | ||
19459 | # func_append var value | |
19460 | # Append VALUE to the end of shell variable VAR. | |
19461 | func_append () | |
19462 | { | |
19463 | eval "$1=\$$1\$2" | |
19464 | } | |
b214d478 | 19465 | |
d7040cdb SE |
19466 | _LT_EOF |
19467 | ;; | |
19468 | esac | |
19469 | ||
19470 | ||
19471 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19472 | || (rm -f "$cfgfile"; exit 1) | |
19473 | ||
19474 | mv -f "$cfgfile" "$ofile" || | |
19475 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19476 | chmod +x "$ofile" | |
19477 | ||
3cb62297 L |
19478 | |
19479 | cat <<_LT_EOF >> "$ofile" | |
19480 | ||
19481 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
19482 | ||
19483 | # The linker used to build libraries. | |
19484 | LD=$lt_LD_CXX | |
19485 | ||
19486 | # How to create reloadable object files. | |
19487 | reload_flag=$lt_reload_flag_CXX | |
19488 | reload_cmds=$lt_reload_cmds_CXX | |
19489 | ||
19490 | # Commands used to build an old-style archive. | |
19491 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
19492 | ||
19493 | # A language specific compiler. | |
19494 | CC=$lt_compiler_CXX | |
19495 | ||
19496 | # Is the compiler the GNU compiler? | |
19497 | with_gcc=$GCC_CXX | |
19498 | ||
19499 | # Compiler flag to turn off builtin functions. | |
19500 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
19501 | ||
19502 | # How to pass a linker flag through the compiler. | |
19503 | wl=$lt_lt_prog_compiler_wl_CXX | |
19504 | ||
19505 | # Additional compiler flags for building library objects. | |
19506 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
19507 | ||
19508 | # Compiler flag to prevent dynamic linking. | |
19509 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
19510 | ||
19511 | # Does compiler simultaneously support -c and -o options? | |
19512 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
19513 | ||
19514 | # Whether or not to add -lc for building shared libraries. | |
19515 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
19516 | ||
19517 | # Whether or not to disallow shared libs when runtime libs are static. | |
19518 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
19519 | ||
19520 | # Compiler flag to allow reflexive dlopens. | |
19521 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
19522 | ||
19523 | # Compiler flag to generate shared objects directly from archives. | |
19524 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
19525 | ||
19526 | # Whether the compiler copes with passing no objects directly. | |
19527 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
19528 | ||
19529 | # Create an old-style archive from a shared archive. | |
19530 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
19531 | ||
19532 | # Create a temporary old-style archive to link instead of a shared archive. | |
19533 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
19534 | ||
19535 | # Commands used to build a shared archive. | |
19536 | archive_cmds=$lt_archive_cmds_CXX | |
19537 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
19538 | ||
19539 | # Commands used to build a loadable module if different from building | |
19540 | # a shared archive. | |
19541 | module_cmds=$lt_module_cmds_CXX | |
19542 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
19543 | ||
19544 | # Whether we are building with GNU ld or not. | |
19545 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
19546 | ||
19547 | # Flag that allows shared libraries with undefined symbols to be built. | |
19548 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
19549 | ||
19550 | # Flag that enforces no undefined symbols. | |
19551 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
19552 | ||
19553 | # Flag to hardcode \$libdir into a binary during linking. | |
19554 | # This must work even if \$libdir does not exist | |
19555 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
19556 | ||
19557 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19558 | # during linking. This must work even if \$libdir does not exist. | |
19559 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
19560 | ||
19561 | # Whether we need a single "-rpath" flag with a separated argument. | |
19562 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
19563 | ||
19564 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19565 | # DIR into the resulting binary. | |
19566 | hardcode_direct=$hardcode_direct_CXX | |
19567 | ||
19568 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19569 | # DIR into the resulting binary and the resulting library dependency is | |
19570 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19571 | # library is relocated. | |
19572 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
19573 | ||
19574 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19575 | # into the resulting binary. | |
19576 | hardcode_minus_L=$hardcode_minus_L_CXX | |
19577 | ||
19578 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19579 | # into the resulting binary. | |
19580 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
19581 | ||
19582 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19583 | # into the library and all subsequent libraries and executables linked | |
19584 | # against it. | |
19585 | hardcode_automatic=$hardcode_automatic_CXX | |
19586 | ||
19587 | # Set to yes if linker adds runtime paths of dependent libraries | |
19588 | # to runtime path list. | |
19589 | inherit_rpath=$inherit_rpath_CXX | |
19590 | ||
19591 | # Whether libtool must link a program against all its dependency libraries. | |
19592 | link_all_deplibs=$link_all_deplibs_CXX | |
19593 | ||
19594 | # Fix the shell variable \$srcfile for the compiler. | |
19595 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
19596 | ||
19597 | # Set to "yes" if exported symbols are required. | |
19598 | always_export_symbols=$always_export_symbols_CXX | |
19599 | ||
19600 | # The commands to list exported symbols. | |
19601 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
19602 | ||
19603 | # Symbols that should not be listed in the preloaded symbols. | |
19604 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
19605 | ||
19606 | # Symbols that must always be exported. | |
19607 | include_expsyms=$lt_include_expsyms_CXX | |
19608 | ||
19609 | # Commands necessary for linking programs (against libraries) with templates. | |
19610 | prelink_cmds=$lt_prelink_cmds_CXX | |
19611 | ||
19612 | # Specify filename containing input files. | |
19613 | file_list_spec=$lt_file_list_spec_CXX | |
19614 | ||
19615 | # How to hardcode a shared library path into an executable. | |
19616 | hardcode_action=$hardcode_action_CXX | |
19617 | ||
19618 | # The directories searched by this compiler when creating a shared library. | |
19619 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
19620 | ||
19621 | # Dependencies to place before and after the objects being linked to | |
19622 | # create a shared library. | |
19623 | predep_objects=$lt_predep_objects_CXX | |
19624 | postdep_objects=$lt_postdep_objects_CXX | |
19625 | predeps=$lt_predeps_CXX | |
19626 | postdeps=$lt_postdeps_CXX | |
19627 | ||
19628 | # The library search path used internally by the compiler when linking | |
19629 | # a shared library. | |
19630 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
19631 | ||
19632 | # ### END LIBTOOL TAG CONFIG: CXX | |
19633 | _LT_EOF | |
19634 | ||
42ecbf5e | 19635 | ;; |
81ecdfbb | 19636 | "default-1":C) |
20e95c23 DJ |
19637 | for ac_file in $CONFIG_FILES; do |
19638 | # Support "outfile[:infile[:infile...]]" | |
19639 | case "$ac_file" in | |
19640 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19641 | esac | |
19642 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
19643 | case "$ac_file" in */Makefile.in) | |
19644 | # Adjust a relative srcdir. | |
19645 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 19646 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
19647 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
19648 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
19649 | # In autoconf-2.50 it is called $srcdir. | |
19650 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
19651 | case "$ac_given_srcdir" in | |
19652 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
19653 | /*) top_srcdir="$ac_given_srcdir" ;; | |
19654 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
19655 | esac | |
19656 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
19657 | rm -f "$ac_dir/POTFILES" | |
19658 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
19659 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
19660 | POMAKEFILEDEPS="POTFILES.in" | |
19661 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
19662 | # on $ac_dir but don't depend on user-specified configuration | |
19663 | # parameters. | |
19664 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
19665 | # The LINGUAS file contains the set of available languages. | |
19666 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
19667 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
19668 | fi | |
19669 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
19670 | # Hide the ALL_LINGUAS assigment from automake. | |
19671 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
19672 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
19673 | else | |
19674 | # The set of available languages was given in configure.in. | |
19675 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
19676 | fi | |
19677 | case "$ac_given_srcdir" in | |
19678 | .) srcdirpre= ;; | |
19679 | *) srcdirpre='$(srcdir)/' ;; | |
19680 | esac | |
19681 | POFILES= | |
19682 | GMOFILES= | |
19683 | UPDATEPOFILES= | |
19684 | DUMMYPOFILES= | |
19685 | for lang in $ALL_LINGUAS; do | |
19686 | POFILES="$POFILES $srcdirpre$lang.po" | |
19687 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
19688 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
19689 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
19690 | done | |
19691 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
19692 | # environment variable. | |
19693 | INST_LINGUAS= | |
19694 | if test -n "$ALL_LINGUAS"; then | |
19695 | for presentlang in $ALL_LINGUAS; do | |
19696 | useit=no | |
19697 | if test "%UNSET%" != "$LINGUAS"; then | |
19698 | desiredlanguages="$LINGUAS" | |
19699 | else | |
19700 | desiredlanguages="$ALL_LINGUAS" | |
19701 | fi | |
19702 | for desiredlang in $desiredlanguages; do | |
19703 | # Use the presentlang catalog if desiredlang is | |
19704 | # a. equal to presentlang, or | |
19705 | # b. a variant of presentlang (because in this case, | |
19706 | # presentlang can be used as a fallback for messages | |
19707 | # which are not translated in the desiredlang catalog). | |
19708 | case "$desiredlang" in | |
19709 | "$presentlang"*) useit=yes;; | |
19710 | esac | |
19711 | done | |
19712 | if test $useit = yes; then | |
19713 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
19714 | fi | |
19715 | done | |
19716 | fi | |
19717 | CATALOGS= | |
19718 | if test -n "$INST_LINGUAS"; then | |
19719 | for lang in $INST_LINGUAS; do | |
19720 | CATALOGS="$CATALOGS $lang.gmo" | |
19721 | done | |
19722 | fi | |
19723 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
19724 | 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" | |
19725 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
19726 | if test -f "$f"; then | |
19727 | case "$f" in | |
19728 | *.orig | *.bak | *~) ;; | |
19729 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
19730 | esac | |
19731 | fi | |
19732 | done | |
19733 | fi | |
19734 | ;; | |
19735 | esac | |
19736 | done ;; | |
81ecdfbb | 19737 | |
42ecbf5e | 19738 | esac |
81ecdfbb | 19739 | done # for ac_tag |
42ecbf5e | 19740 | |
42ecbf5e | 19741 | |
81ecdfbb | 19742 | as_fn_exit 0 |
42ecbf5e | 19743 | _ACEOF |
42ecbf5e DJ |
19744 | ac_clean_files=$ac_clean_files_save |
19745 | ||
81ecdfbb RW |
19746 | test $ac_write_fail = 0 || |
19747 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
19748 | ||
42ecbf5e DJ |
19749 | |
19750 | # configure is writing to config.log, and then calls config.status. | |
19751 | # config.status does its own redirection, appending to config.log. | |
19752 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19753 | # by configure, so config.status won't be able to write to it; its | |
19754 | # output is simply discarded. So we exec the FD to /dev/null, | |
19755 | # effectively closing config.log, so it can be properly (re)opened and | |
19756 | # appended to by config.status. When coming back to configure, we | |
19757 | # need to make the FD available again. | |
19758 | if test "$no_create" != yes; then | |
19759 | ac_cs_success=: | |
19760 | ac_config_status_args= | |
19761 | test "$silent" = yes && | |
19762 | ac_config_status_args="$ac_config_status_args --quiet" | |
19763 | exec 5>/dev/null | |
19764 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19765 | exec 5>>config.log | |
19766 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19767 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
19768 | $ac_cs_success || as_fn_exit $? |
19769 | fi | |
19770 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19772 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
42ecbf5e | 19773 | fi |
252b5132 | 19774 |