]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
91dc4e0a | 3 | # Generated by GNU Autoconf 2.64 for ld 2.25.51. |
81ecdfbb RW |
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 [email protected] 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. | |
2e98a7bd AM |
557 | PACKAGE_NAME='ld' |
558 | PACKAGE_TARNAME='ld' | |
91dc4e0a TG |
559 | PACKAGE_VERSION='2.25.51' |
560 | PACKAGE_STRING='ld 2.25.51' | |
2e98a7bd AM |
561 | PACKAGE_BUGREPORT='' |
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 | |
b879806f AM |
644 | NO_WERROR |
645 | WARN_CFLAGS | |
646 | installed_linker | |
647 | install_as_default | |
648 | TARGET_SYSTEM_ROOT_DEFINE | |
649 | TARGET_SYSTEM_ROOT | |
650 | use_sysroot | |
3cb62297 | 651 | CXXCPP |
81ecdfbb RW |
652 | OTOOL64 |
653 | OTOOL | |
654 | LIPO | |
655 | NMEDIT | |
656 | DSYMUTIL | |
81ecdfbb RW |
657 | RANLIB |
658 | AR | |
659 | OBJDUMP | |
660 | LN_S | |
661 | NM | |
662 | ac_ct_DUMPBIN | |
663 | DUMPBIN | |
664 | LD | |
665 | FGREP | |
666 | SED | |
667 | LIBTOOL | |
b879806f AM |
668 | EGREP |
669 | GREP | |
670 | CPP | |
3cb62297 L |
671 | am__fastdepCXX_FALSE |
672 | am__fastdepCXX_TRUE | |
673 | CXXDEPMODE | |
674 | ac_ct_CXX | |
675 | CXXFLAGS | |
676 | CXX | |
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 |
b879806f AM |
774 | enable_shared |
775 | enable_static | |
776 | with_pic | |
777 | enable_fast_install | |
778 | with_gnu_ld | |
779 | enable_libtool_lock | |
780 | enable_plugins | |
781 | enable_largefile | |
81ecdfbb RW |
782 | with_lib_path |
783 | enable_targets | |
784 | enable_64_bit_bfd | |
785 | with_sysroot | |
4fda8867 | 786 | enable_gold |
81ecdfbb RW |
787 | enable_got |
788 | enable_werror | |
789 | enable_build_warnings | |
81ecdfbb | 790 | enable_nls |
02ecc8e9 | 791 | enable_initfini_array |
81ecdfbb RW |
792 | ' |
793 | ac_precious_vars='build_alias | |
794 | host_alias | |
795 | target_alias | |
796 | CC | |
797 | CFLAGS | |
798 | LDFLAGS | |
799 | LIBS | |
800 | CPPFLAGS | |
3cb62297 L |
801 | CXX |
802 | CXXFLAGS | |
803 | CCC | |
b879806f | 804 | CPP |
3cb62297 | 805 | CXXCPP |
81ecdfbb RW |
806 | YACC |
807 | YFLAGS' | |
808 | ||
252b5132 RH |
809 | |
810 | # Initialize some variables set by options. | |
42ecbf5e DJ |
811 | ac_init_help= |
812 | ac_init_version=false | |
81ecdfbb RW |
813 | ac_unrecognized_opts= |
814 | ac_unrecognized_sep= | |
252b5132 RH |
815 | # The variables have the same names as the options, with |
816 | # dashes changed to underlines. | |
42ecbf5e | 817 | cache_file=/dev/null |
252b5132 | 818 | exec_prefix=NONE |
252b5132 | 819 | no_create= |
252b5132 RH |
820 | no_recursion= |
821 | prefix=NONE | |
822 | program_prefix=NONE | |
823 | program_suffix=NONE | |
824 | program_transform_name=s,x,x, | |
825 | silent= | |
826 | site= | |
827 | srcdir= | |
252b5132 RH |
828 | verbose= |
829 | x_includes=NONE | |
830 | x_libraries=NONE | |
42ecbf5e DJ |
831 | |
832 | # Installation directory options. | |
833 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
834 | # and all the variables that are supposed to be based on exec_prefix | |
835 | # by default will actually change. | |
836 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 837 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
838 | bindir='${exec_prefix}/bin' |
839 | sbindir='${exec_prefix}/sbin' | |
840 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
841 | datarootdir='${prefix}/share' |
842 | datadir='${datarootdir}' | |
252b5132 RH |
843 | sysconfdir='${prefix}/etc' |
844 | sharedstatedir='${prefix}/com' | |
845 | localstatedir='${prefix}/var' | |
252b5132 RH |
846 | includedir='${prefix}/include' |
847 | oldincludedir='/usr/include' | |
2e98a7bd | 848 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
849 | infodir='${datarootdir}/info' |
850 | htmldir='${docdir}' | |
851 | dvidir='${docdir}' | |
852 | pdfdir='${docdir}' | |
853 | psdir='${docdir}' | |
854 | libdir='${exec_prefix}/lib' | |
855 | localedir='${datarootdir}/locale' | |
856 | mandir='${datarootdir}/man' | |
252b5132 | 857 | |
252b5132 | 858 | ac_prev= |
81ecdfbb | 859 | ac_dashdash= |
252b5132 RH |
860 | for ac_option |
861 | do | |
252b5132 RH |
862 | # If the previous option needs an argument, assign it. |
863 | if test -n "$ac_prev"; then | |
81ecdfbb | 864 | eval $ac_prev=\$ac_option |
252b5132 RH |
865 | ac_prev= |
866 | continue | |
867 | fi | |
868 | ||
81ecdfbb RW |
869 | case $ac_option in |
870 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
871 | *) ac_optarg=yes ;; | |
872 | esac | |
252b5132 RH |
873 | |
874 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
875 | ||
81ecdfbb RW |
876 | case $ac_dashdash$ac_option in |
877 | --) | |
878 | ac_dashdash=yes ;; | |
252b5132 RH |
879 | |
880 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
881 | ac_prev=bindir ;; | |
882 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 883 | bindir=$ac_optarg ;; |
252b5132 RH |
884 | |
885 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 886 | ac_prev=build_alias ;; |
252b5132 | 887 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 888 | build_alias=$ac_optarg ;; |
252b5132 RH |
889 | |
890 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
891 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
892 | ac_prev=cache_file ;; | |
893 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
894 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
895 | cache_file=$ac_optarg ;; |
896 | ||
897 | --config-cache | -C) | |
898 | cache_file=config.cache ;; | |
252b5132 | 899 | |
81ecdfbb | 900 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 901 | ac_prev=datadir ;; |
81ecdfbb | 902 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
42ecbf5e | 903 | datadir=$ac_optarg ;; |
252b5132 | 904 | |
81ecdfbb RW |
905 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
906 | | --dataroo | --dataro | --datar) | |
907 | ac_prev=datarootdir ;; | |
908 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
909 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
910 | datarootdir=$ac_optarg ;; | |
911 | ||
252b5132 | 912 | -disable-* | --disable-*) |
81ecdfbb | 913 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 914 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
915 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
916 | as_fn_error "invalid feature name: $ac_useropt" | |
917 | ac_useropt_orig=$ac_useropt | |
918 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
919 | case $ac_user_opts in | |
920 | *" | |
921 | "enable_$ac_useropt" | |
922 | "*) ;; | |
923 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
924 | ac_unrecognized_sep=', ';; | |
925 | esac | |
926 | eval enable_$ac_useropt=no ;; | |
927 | ||
928 | -docdir | --docdir | --docdi | --doc | --do) | |
929 | ac_prev=docdir ;; | |
930 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
931 | docdir=$ac_optarg ;; | |
932 | ||
933 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
934 | ac_prev=dvidir ;; | |
935 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
936 | dvidir=$ac_optarg ;; | |
252b5132 RH |
937 | |
938 | -enable-* | --enable-*) | |
81ecdfbb | 939 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 940 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
941 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
942 | as_fn_error "invalid feature name: $ac_useropt" | |
943 | ac_useropt_orig=$ac_useropt | |
944 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
945 | case $ac_user_opts in | |
946 | *" | |
947 | "enable_$ac_useropt" | |
948 | "*) ;; | |
949 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
950 | ac_unrecognized_sep=', ';; | |
252b5132 | 951 | esac |
81ecdfbb | 952 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
953 | |
954 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
955 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
956 | | --exec | --exe | --ex) | |
957 | ac_prev=exec_prefix ;; | |
958 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
959 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
960 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 961 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
962 | |
963 | -gas | --gas | --ga | --g) | |
964 | # Obsolete; use --with-gas. | |
965 | with_gas=yes ;; | |
966 | ||
42ecbf5e DJ |
967 | -help | --help | --hel | --he | -h) |
968 | ac_init_help=long ;; | |
969 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
970 | ac_init_help=recursive ;; | |
971 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
972 | ac_init_help=short ;; | |
252b5132 RH |
973 | |
974 | -host | --host | --hos | --ho) | |
42ecbf5e | 975 | ac_prev=host_alias ;; |
252b5132 | 976 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 977 | host_alias=$ac_optarg ;; |
252b5132 | 978 | |
81ecdfbb RW |
979 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
980 | ac_prev=htmldir ;; | |
981 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
982 | | --ht=*) | |
983 | htmldir=$ac_optarg ;; | |
984 | ||
252b5132 RH |
985 | -includedir | --includedir | --includedi | --included | --include \ |
986 | | --includ | --inclu | --incl | --inc) | |
987 | ac_prev=includedir ;; | |
988 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
989 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 990 | includedir=$ac_optarg ;; |
252b5132 RH |
991 | |
992 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
993 | ac_prev=infodir ;; | |
994 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 995 | infodir=$ac_optarg ;; |
252b5132 RH |
996 | |
997 | -libdir | --libdir | --libdi | --libd) | |
998 | ac_prev=libdir ;; | |
999 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 1000 | libdir=$ac_optarg ;; |
252b5132 RH |
1001 | |
1002 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1003 | | --libexe | --libex | --libe) | |
1004 | ac_prev=libexecdir ;; | |
1005 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1006 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 1007 | libexecdir=$ac_optarg ;; |
252b5132 | 1008 | |
81ecdfbb RW |
1009 | -localedir | --localedir | --localedi | --localed | --locale) |
1010 | ac_prev=localedir ;; | |
1011 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1012 | localedir=$ac_optarg ;; | |
1013 | ||
252b5132 | 1014 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1015 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1016 | ac_prev=localstatedir ;; |
1017 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1018 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
42ecbf5e | 1019 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1020 | |
1021 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1022 | ac_prev=mandir ;; | |
1023 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 1024 | mandir=$ac_optarg ;; |
252b5132 RH |
1025 | |
1026 | -nfp | --nfp | --nf) | |
1027 | # Obsolete; use --without-fp. | |
1028 | with_fp=no ;; | |
1029 | ||
1030 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 1031 | | --no-cr | --no-c | -n) |
252b5132 RH |
1032 | no_create=yes ;; |
1033 | ||
1034 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1035 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1036 | no_recursion=yes ;; | |
1037 | ||
1038 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1039 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1040 | | --oldin | --oldi | --old | --ol | --o) | |
1041 | ac_prev=oldincludedir ;; | |
1042 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1043 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1044 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 1045 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1046 | |
1047 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1048 | ac_prev=prefix ;; | |
1049 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 1050 | prefix=$ac_optarg ;; |
252b5132 RH |
1051 | |
1052 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1053 | | --program-pre | --program-pr | --program-p) | |
1054 | ac_prev=program_prefix ;; | |
1055 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1056 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 1057 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1058 | |
1059 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1060 | | --program-suf | --program-su | --program-s) | |
1061 | ac_prev=program_suffix ;; | |
1062 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1063 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 1064 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1065 | |
1066 | -program-transform-name | --program-transform-name \ | |
1067 | | --program-transform-nam | --program-transform-na \ | |
1068 | | --program-transform-n | --program-transform- \ | |
1069 | | --program-transform | --program-transfor \ | |
1070 | | --program-transfo | --program-transf \ | |
1071 | | --program-trans | --program-tran \ | |
1072 | | --progr-tra | --program-tr | --program-t) | |
1073 | ac_prev=program_transform_name ;; | |
1074 | -program-transform-name=* | --program-transform-name=* \ | |
1075 | | --program-transform-nam=* | --program-transform-na=* \ | |
1076 | | --program-transform-n=* | --program-transform-=* \ | |
1077 | | --program-transform=* | --program-transfor=* \ | |
1078 | | --program-transfo=* | --program-transf=* \ | |
1079 | | --program-trans=* | --program-tran=* \ | |
1080 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 1081 | program_transform_name=$ac_optarg ;; |
252b5132 | 1082 | |
81ecdfbb RW |
1083 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1084 | ac_prev=pdfdir ;; | |
1085 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1086 | pdfdir=$ac_optarg ;; | |
1087 | ||
1088 | -psdir | --psdir | --psdi | --psd | --ps) | |
1089 | ac_prev=psdir ;; | |
1090 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1091 | psdir=$ac_optarg ;; | |
1092 | ||
252b5132 RH |
1093 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1094 | | -silent | --silent | --silen | --sile | --sil) | |
1095 | silent=yes ;; | |
1096 | ||
1097 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1098 | ac_prev=sbindir ;; | |
1099 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1100 | | --sbi=* | --sb=*) | |
42ecbf5e | 1101 | sbindir=$ac_optarg ;; |
252b5132 RH |
1102 | |
1103 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1104 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1105 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1106 | | --sha | --sh) | |
1107 | ac_prev=sharedstatedir ;; | |
1108 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1109 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1110 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1111 | | --sha=* | --sh=*) | |
42ecbf5e | 1112 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1113 | |
1114 | -site | --site | --sit) | |
1115 | ac_prev=site ;; | |
1116 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 1117 | site=$ac_optarg ;; |
85fbca6a | 1118 | |
252b5132 RH |
1119 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1120 | ac_prev=srcdir ;; | |
1121 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 1122 | srcdir=$ac_optarg ;; |
252b5132 RH |
1123 | |
1124 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1125 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1126 | ac_prev=sysconfdir ;; | |
1127 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1128 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 1129 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1130 | |
1131 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 1132 | ac_prev=target_alias ;; |
252b5132 | 1133 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 1134 | target_alias=$ac_optarg ;; |
252b5132 RH |
1135 | |
1136 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1137 | verbose=yes ;; | |
1138 | ||
42ecbf5e DJ |
1139 | -version | --version | --versio | --versi | --vers | -V) |
1140 | ac_init_version=: ;; | |
252b5132 RH |
1141 | |
1142 | -with-* | --with-*) | |
81ecdfbb | 1143 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1144 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1145 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1146 | as_fn_error "invalid package name: $ac_useropt" | |
1147 | ac_useropt_orig=$ac_useropt | |
1148 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1149 | case $ac_user_opts in | |
1150 | *" | |
1151 | "with_$ac_useropt" | |
1152 | "*) ;; | |
1153 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1154 | ac_unrecognized_sep=', ';; | |
252b5132 | 1155 | esac |
81ecdfbb | 1156 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1157 | |
1158 | -without-* | --without-*) | |
81ecdfbb | 1159 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1160 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1161 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1162 | as_fn_error "invalid package name: $ac_useropt" | |
1163 | ac_useropt_orig=$ac_useropt | |
1164 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1165 | case $ac_user_opts in | |
1166 | *" | |
1167 | "with_$ac_useropt" | |
1168 | "*) ;; | |
1169 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1170 | ac_unrecognized_sep=', ';; | |
1171 | esac | |
1172 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1173 | |
1174 | --x) | |
1175 | # Obsolete; use --with-x. | |
1176 | with_x=yes ;; | |
1177 | ||
1178 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1179 | | --x-incl | --x-inc | --x-in | --x-i) | |
1180 | ac_prev=x_includes ;; | |
1181 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1182 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 1183 | x_includes=$ac_optarg ;; |
252b5132 RH |
1184 | |
1185 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1186 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1187 | ac_prev=x_libraries ;; | |
1188 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1189 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 1190 | x_libraries=$ac_optarg ;; |
252b5132 | 1191 | |
81ecdfbb RW |
1192 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1193 | Try \`$0 --help' for more information." | |
252b5132 RH |
1194 | ;; |
1195 | ||
42ecbf5e DJ |
1196 | *=*) |
1197 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1198 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1199 | case $ac_envvar in #( |
1200 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1201 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1202 | esac | |
1203 | eval $ac_envvar=\$ac_optarg | |
42ecbf5e DJ |
1204 | export $ac_envvar ;; |
1205 | ||
252b5132 | 1206 | *) |
42ecbf5e | 1207 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1208 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
42ecbf5e | 1209 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1210 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
42ecbf5e | 1211 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1212 | ;; |
1213 | ||
1214 | esac | |
1215 | done | |
1216 | ||
1217 | if test -n "$ac_prev"; then | |
42ecbf5e | 1218 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1219 | as_fn_error "missing argument to $ac_option" |
252b5132 | 1220 | fi |
252b5132 | 1221 | |
81ecdfbb RW |
1222 | if test -n "$ac_unrecognized_opts"; then |
1223 | case $enable_option_checking in | |
1224 | no) ;; | |
1225 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1226 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
42ecbf5e | 1227 | esac |
81ecdfbb | 1228 | fi |
252b5132 | 1229 | |
81ecdfbb RW |
1230 | # Check all directory arguments for consistency. |
1231 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1232 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1233 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1234 | libdir localedir mandir | |
252b5132 | 1235 | do |
81ecdfbb RW |
1236 | eval ac_val=\$$ac_var |
1237 | # Remove trailing slashes. | |
1238 | case $ac_val in | |
1239 | */ ) | |
1240 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1241 | eval $ac_var=\$ac_val;; | |
1242 | esac | |
1243 | # Be sure to have absolute directory names. | |
42ecbf5e | 1244 | case $ac_val in |
81ecdfbb RW |
1245 | [\\/$]* | ?:[\\/]* ) continue;; |
1246 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1247 | esac |
81ecdfbb | 1248 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1249 | done |
1250 | ||
42ecbf5e DJ |
1251 | # There might be people who depend on the old broken behavior: `$host' |
1252 | # used to hold the argument of --host etc. | |
1253 | # FIXME: To remove some day. | |
1254 | build=$build_alias | |
1255 | host=$host_alias | |
1256 | target=$target_alias | |
1257 | ||
1258 | # FIXME: To remove some day. | |
1259 | if test "x$host_alias" != x; then | |
1260 | if test "x$build_alias" = x; then | |
1261 | cross_compiling=maybe | |
81ecdfbb | 1262 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
42ecbf5e DJ |
1263 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1264 | elif test "x$build_alias" != "x$host_alias"; then | |
1265 | cross_compiling=yes | |
1266 | fi | |
1267 | fi | |
e5a52504 | 1268 | |
42ecbf5e DJ |
1269 | ac_tool_prefix= |
1270 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1271 | ||
1272 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1273 | |
252b5132 | 1274 | |
81ecdfbb RW |
1275 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1276 | ac_ls_di=`ls -di .` && | |
1277 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1278 | as_fn_error "working directory cannot be determined" | |
1279 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1280 | as_fn_error "pwd does not report name of working directory" | |
1281 | ||
1282 | ||
252b5132 RH |
1283 | # Find the source files, if location was not specified. |
1284 | if test -z "$srcdir"; then | |
1285 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1286 | # Try the directory containing this script, then the parent directory. |
1287 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1288 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1289 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1290 | X"$as_myself" : 'X\(//\)$' \| \ | |
1291 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1292 | $as_echo X"$as_myself" | | |
1293 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1294 | s//\1/ | |
1295 | q | |
1296 | } | |
1297 | /^X\(\/\/\)[^/].*/{ | |
1298 | s//\1/ | |
1299 | q | |
1300 | } | |
1301 | /^X\(\/\/\)$/{ | |
1302 | s//\1/ | |
1303 | q | |
1304 | } | |
1305 | /^X\(\/\).*/{ | |
1306 | s//\1/ | |
1307 | q | |
1308 | } | |
1309 | s/.*/./; q'` | |
252b5132 | 1310 | srcdir=$ac_confdir |
81ecdfbb | 1311 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1312 | srcdir=.. |
1313 | fi | |
1314 | else | |
1315 | ac_srcdir_defaulted=no | |
1316 | fi | |
81ecdfbb RW |
1317 | if test ! -r "$srcdir/$ac_unique_file"; then |
1318 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1319 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1320 | fi | |
1321 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1322 | ac_abs_confdir=`( | |
1323 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1324 | pwd)` | |
1325 | # When building in place, set srcdir=. | |
1326 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1327 | srcdir=. | |
1328 | fi | |
1329 | # Remove unnecessary trailing slashes from srcdir. | |
1330 | # Double slashes in file names in object file debugging info | |
1331 | # mess up M-x gdb in Emacs. | |
1332 | case $srcdir in | |
1333 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1334 | esac | |
1335 | for ac_var in $ac_precious_vars; do | |
1336 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1337 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1338 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1339 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1340 | done | |
252b5132 | 1341 | |
42ecbf5e DJ |
1342 | # |
1343 | # Report the --help message. | |
1344 | # | |
1345 | if test "$ac_init_help" = "long"; then | |
1346 | # Omit some internal or obsolete options to make the list less imposing. | |
1347 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1348 | cat <<_ACEOF | |
91dc4e0a | 1349 | \`configure' configures ld 2.25.51 to adapt to many kinds of systems. |
252b5132 | 1350 | |
42ecbf5e | 1351 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1352 | |
42ecbf5e DJ |
1353 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1354 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1355 | |
42ecbf5e | 1356 | Defaults for the options are specified in brackets. |
ac48eca1 | 1357 | |
42ecbf5e DJ |
1358 | Configuration: |
1359 | -h, --help display this help and exit | |
1360 | --help=short display options specific to this package | |
1361 | --help=recursive display the short help of all the included packages | |
1362 | -V, --version display version information and exit | |
1363 | -q, --quiet, --silent do not print \`checking...' messages | |
1364 | --cache-file=FILE cache test results in FILE [disabled] | |
1365 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1366 | -n, --no-create do not create output files | |
1367 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1368 | ||
42ecbf5e DJ |
1369 | Installation directories: |
1370 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1371 | [$ac_default_prefix] |
42ecbf5e | 1372 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1373 | [PREFIX] |
ac48eca1 | 1374 | |
42ecbf5e DJ |
1375 | By default, \`make install' will install all the files in |
1376 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1377 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1378 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1379 | |
42ecbf5e | 1380 | For better control, use the options below. |
ac48eca1 | 1381 | |
42ecbf5e | 1382 | Fine tuning of the installation directories: |
81ecdfbb RW |
1383 | --bindir=DIR user executables [EPREFIX/bin] |
1384 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1385 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1386 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1387 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1388 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1389 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1390 | --includedir=DIR C header files [PREFIX/include] | |
1391 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1392 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1393 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1394 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1395 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1396 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1397 | --docdir=DIR documentation root [DATAROOTDIR/doc/ld] |
81ecdfbb RW |
1398 | --htmldir=DIR html documentation [DOCDIR] |
1399 | --dvidir=DIR dvi documentation [DOCDIR] | |
1400 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1401 | --psdir=DIR ps documentation [DOCDIR] | |
42ecbf5e | 1402 | _ACEOF |
ac48eca1 | 1403 | |
42ecbf5e | 1404 | cat <<\_ACEOF |
252b5132 | 1405 | |
42ecbf5e DJ |
1406 | Program names: |
1407 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1408 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1409 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1410 | |
42ecbf5e DJ |
1411 | System types: |
1412 | --build=BUILD configure for building on BUILD [guessed] | |
1413 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1414 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1415 | _ACEOF | |
252b5132 | 1416 | fi |
252b5132 | 1417 | |
42ecbf5e | 1418 | if test -n "$ac_init_help"; then |
2e98a7bd | 1419 | case $ac_init_help in |
91dc4e0a | 1420 | short | recursive ) echo "Configuration of ld 2.25.51:";; |
2e98a7bd | 1421 | esac |
42ecbf5e | 1422 | cat <<\_ACEOF |
e5a52504 | 1423 | |
42ecbf5e | 1424 | Optional Features: |
81ecdfbb | 1425 | --disable-option-checking ignore unrecognized --enable/--with options |
42ecbf5e DJ |
1426 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1427 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1428 | --disable-dependency-tracking speeds up one-time build | |
1429 | --enable-dependency-tracking do not reject slow dependency extractors | |
64ac50ac RW |
1430 | --enable-maintainer-mode enable make rules and dependencies not useful |
1431 | (and sometimes confusing) to the casual installer | |
b879806f AM |
1432 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1433 | --enable-static[=PKGS] build static libraries [default=yes] | |
1434 | --enable-fast-install[=PKGS] | |
1435 | optimize for fast installation [default=yes] | |
1436 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1437 | --enable-plugins Enable support for plugins | |
1438 | --disable-largefile omit support for large files | |
ce2cded5 L |
1439 | --enable-targets alternative target configurations |
1440 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
c7791212 | 1441 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7fb9f789 NC |
1442 | --enable-got=<type> GOT handling scheme (target, single, negative, |
1443 | multigot) | |
ce2cded5 L |
1444 | --enable-werror treat compile warnings as errors |
1445 | --enable-build-warnings enable build-time compiler warnings | |
42ecbf5e | 1446 | --disable-nls do not use Native Language Support |
02ecc8e9 | 1447 | --enable-initfini-array use .init_array/.fini_array sections |
42ecbf5e DJ |
1448 | |
1449 | Optional Packages: | |
1450 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1451 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1452 | --with-pic try to use only PIC/non-PIC objects [default=use |
1453 | both] | |
1454 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
b879806f AM |
1455 | --with-lib-path=dir1:dir2... set default LIB_PATH |
1456 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
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> | |
3cb62297 L |
1466 | CXX C++ compiler command |
1467 | CXXFLAGS C++ compiler flags | |
b879806f | 1468 | CPP C preprocessor |
3cb62297 | 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 | |
91dc4e0a | 1542 | ld configure 2.25.51 |
81ecdfbb | 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 | |
b879806f AM |
1640 | # ac_fn_cxx_try_compile LINENO |
1641 | # ---------------------------- | |
1642 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1643 | ac_fn_cxx_try_compile () | |
81ecdfbb RW |
1644 | { |
1645 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b879806f AM |
1646 | rm -f conftest.$ac_objext |
1647 | if { { ac_try="$ac_compile" | |
81ecdfbb RW |
1648 | case "(($ac_try" in |
1649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1650 | *) ac_try_echo=$ac_try;; | |
1651 | esac | |
1652 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1653 | $as_echo "$ac_try_echo"; } >&5 | |
b879806f | 1654 | (eval "$ac_compile") 2>conftest.err |
81ecdfbb RW |
1655 | ac_status=$? |
1656 | if test -s conftest.err; then | |
1657 | grep -v '^ *+' conftest.err >conftest.er1 | |
1658 | cat conftest.er1 >&5 | |
1659 | mv -f conftest.er1 conftest.err | |
1660 | fi | |
1661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b879806f AM |
1662 | test $ac_status = 0; } && { |
1663 | test -z "$ac_cxx_werror_flag" || | |
81ecdfbb | 1664 | test ! -s conftest.err |
b879806f | 1665 | } && test -s conftest.$ac_objext; then : |
81ecdfbb RW |
1666 | ac_retval=0 |
1667 | else | |
1668 | $as_echo "$as_me: failed program was:" >&5 | |
1669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1670 | ||
b879806f | 1671 | ac_retval=1 |
81ecdfbb RW |
1672 | fi |
1673 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1674 | return $ac_retval | |
1675 | ||
b879806f | 1676 | } # ac_fn_cxx_try_compile |
81ecdfbb | 1677 | |
b879806f AM |
1678 | # ac_fn_c_try_cpp LINENO |
1679 | # ---------------------- | |
1680 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1681 | ac_fn_c_try_cpp () | |
3cb62297 L |
1682 | { |
1683 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b879806f | 1684 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
3cb62297 L |
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 | |
b879806f | 1691 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
3cb62297 L |
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 | |
b879806f AM |
1699 | test $ac_status = 0; } >/dev/null && { |
1700 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3cb62297 | 1701 | test ! -s conftest.err |
b879806f | 1702 | }; then : |
3cb62297 L |
1703 | ac_retval=0 |
1704 | else | |
1705 | $as_echo "$as_me: failed program was:" >&5 | |
1706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1707 | ||
b879806f | 1708 | ac_retval=1 |
3cb62297 L |
1709 | fi |
1710 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1711 | return $ac_retval | |
1712 | ||
b879806f | 1713 | } # ac_fn_c_try_cpp |
3cb62297 | 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 | ||
91dc4e0a | 2251 | It was created by ld $as_me 2.25.51, which was |
81ecdfbb RW |
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 | ||
81ecdfbb RW |
3560 | am__api_version='1.11' |
3561 | ||
e5a52504 MM |
3562 | # Find a good install program. We prefer a C program (faster), |
3563 | # so one script is as good as another. But avoid the broken or | |
3564 | # incompatible versions: | |
3565 | # SysV /etc/install, /usr/sbin/install | |
3566 | # SunOS /usr/etc/install | |
3567 | # IRIX /sbin/install | |
3568 | # AIX /bin/install | |
42ecbf5e | 3569 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5a52504 MM |
3570 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3571 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3572 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 3573 | # OS/2's system install, which has a completely different semantic |
e5a52504 | 3574 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3575 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3577 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5a52504 | 3578 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3579 | if test "${ac_cv_path_install+set}" = set; then : |
3580 | $as_echo_n "(cached) " >&6 | |
e5a52504 | 3581 | else |
42ecbf5e DJ |
3582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3583 | for as_dir in $PATH | |
3584 | do | |
3585 | IFS=$as_save_IFS | |
3586 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3587 | # Account for people who put trailing slashes in PATH elements. |
3588 | case $as_dir/ in #(( | |
3589 | ./ | .// | /[cC]/* | \ | |
42ecbf5e | 3590 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3591 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
42ecbf5e DJ |
3592 | /usr/ucb/* ) ;; |
3593 | *) | |
3594 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3595 | # Don't use installbsd from OSF since it installs stuff as root | |
3596 | # by default. | |
3597 | for ac_prog in ginstall scoinst install; do | |
3598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3599 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
252b5132 | 3600 | if test $ac_prog = install && |
42ecbf5e | 3601 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
3602 | # AIX install. It has an incompatible calling convention. |
3603 | : | |
42ecbf5e DJ |
3604 | elif test $ac_prog = install && |
3605 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3606 | # program-specific install script used by HP pwplus--don't use. | |
3607 | : | |
252b5132 | 3608 | else |
58c85be7 RW |
3609 | rm -rf conftest.one conftest.two conftest.dir |
3610 | echo one > conftest.one | |
3611 | echo two > conftest.two | |
3612 | mkdir conftest.dir | |
3613 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3614 | test -s conftest.one && test -s conftest.two && | |
3615 | test -s conftest.dir/conftest.one && | |
3616 | test -s conftest.dir/conftest.two | |
3617 | then | |
3618 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3619 | break 3 | |
3620 | fi | |
252b5132 RH |
3621 | fi |
3622 | fi | |
3623 | done | |
42ecbf5e DJ |
3624 | done |
3625 | ;; | |
3626 | esac | |
81ecdfbb RW |
3627 | |
3628 | done | |
3629 | IFS=$as_save_IFS | |
42ecbf5e | 3630 | |
58c85be7 | 3631 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3632 | |
3633 | fi | |
3634 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 3635 | INSTALL=$ac_cv_path_install |
252b5132 | 3636 | else |
58c85be7 RW |
3637 | # As a last resort, use the slow shell script. Don't cache a |
3638 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3639 | # break other packages using the cache if that directory is |
58c85be7 | 3640 | # removed, or if the value is a relative name. |
42ecbf5e | 3641 | INSTALL=$ac_install_sh |
252b5132 RH |
3642 | fi |
3643 | fi | |
81ecdfbb RW |
3644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3645 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3646 | |
3647 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3648 | # It thinks the first close brace ends the variable substitution. | |
3649 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3650 | ||
42ecbf5e | 3651 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3652 | |
3653 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3654 | ||
81ecdfbb RW |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3656 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3657 | # Just in case |
3658 | sleep 1 | |
42ecbf5e | 3659 | echo timestamp > conftest.file |
81ecdfbb RW |
3660 | # Reject unsafe characters in $srcdir or the absolute working directory |
3661 | # name. Accept space and tab only in the latter. | |
3662 | am_lf=' | |
3663 | ' | |
3664 | case `pwd` in | |
3665 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3666 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3667 | esac | |
3668 | case $srcdir in | |
3669 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3670 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3671 | esac | |
3672 | ||
252b5132 RH |
3673 | # Do `set' in a subshell so we don't clobber the current shell's |
3674 | # arguments. Must try -L first in case configure is actually a | |
3675 | # symlink; some systems play weird games with the mod time of symlinks | |
3676 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3677 | # directory). | |
3678 | if ( | |
81ecdfbb | 3679 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3680 | if test "$*" = "X"; then |
3681 | # -L didn't work. | |
81ecdfbb | 3682 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3683 | fi |
42ecbf5e DJ |
3684 | rm -f conftest.file |
3685 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3686 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3687 | |
3688 | # If neither matched, then we have a broken ls. This can happen | |
3689 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3690 | # broken ls alias from the environment. This has actually | |
3691 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3692 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3693 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3694 | fi |
3695 | ||
42ecbf5e | 3696 | test "$2" = conftest.file |
252b5132 RH |
3697 | ) |
3698 | then | |
3699 | # Ok. | |
3700 | : | |
3701 | else | |
81ecdfbb RW |
3702 | as_fn_error "newly created file is older than distributed files! |
3703 | Check your system clock" "$LINENO" 5 | |
252b5132 | 3704 | fi |
81ecdfbb RW |
3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3706 | $as_echo "yes" >&6; } | |
252b5132 | 3707 | test "$program_prefix" != NONE && |
81ecdfbb | 3708 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3709 | # Use a double $ so make ignores it. |
3710 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3711 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3712 | # Double any \ or $. | |
42ecbf5e | 3713 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3714 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3715 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
42ecbf5e DJ |
3716 | |
3717 | # expand $ac_aux_dir to an absolute path | |
3718 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3719 | ||
81ecdfbb RW |
3720 | if test x"${MISSING+set}" != xset; then |
3721 | case $am_aux_dir in | |
3722 | *\ * | *\ *) | |
3723 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3724 | *) | |
3725 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3726 | esac | |
3727 | fi | |
42ecbf5e DJ |
3728 | # Use eval to expand $SHELL |
3729 | if eval "$MISSING --run true"; then | |
3730 | am_missing_run="$MISSING --run " | |
3731 | else | |
3732 | am_missing_run= | |
81ecdfbb RW |
3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3734 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3735 | fi | |
3736 | ||
3737 | if test x"${install_sh}" != xset; then | |
3738 | case $am_aux_dir in | |
3739 | *\ * | *\ *) | |
3740 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3741 | *) | |
3742 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3743 | esac | |
3744 | fi | |
3745 | ||
3746 | # Installed binaries are usually stripped using `strip' when the user | |
3747 | # run `make install-strip'. However `strip' might not be the right | |
3748 | # tool to use in cross-compilation environments, therefore Automake | |
3749 | # will honor the `STRIP' environment variable to overrule this program. | |
3750 | if test "$cross_compiling" != no; then | |
3751 | if test -n "$ac_tool_prefix"; then | |
3752 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3753 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3755 | $as_echo_n "checking for $ac_word... " >&6; } | |
3756 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3757 | $as_echo_n "(cached) " >&6 | |
3758 | else | |
3759 | if test -n "$STRIP"; then | |
3760 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3761 | else | |
3762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3763 | for as_dir in $PATH | |
3764 | do | |
3765 | IFS=$as_save_IFS | |
3766 | test -z "$as_dir" && as_dir=. | |
3767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3769 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3771 | break 2 | |
3772 | fi | |
3773 | done | |
3774 | done | |
3775 | IFS=$as_save_IFS | |
3776 | ||
3777 | fi | |
3778 | fi | |
3779 | STRIP=$ac_cv_prog_STRIP | |
3780 | if test -n "$STRIP"; then | |
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3782 | $as_echo "$STRIP" >&6; } | |
3783 | else | |
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3785 | $as_echo "no" >&6; } | |
3786 | fi | |
3787 | ||
3788 | ||
3789 | fi | |
3790 | if test -z "$ac_cv_prog_STRIP"; then | |
3791 | ac_ct_STRIP=$STRIP | |
3792 | # Extract the first word of "strip", so it can be a program name with args. | |
3793 | set dummy strip; ac_word=$2 | |
3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3795 | $as_echo_n "checking for $ac_word... " >&6; } | |
3796 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3797 | $as_echo_n "(cached) " >&6 | |
3798 | else | |
3799 | if test -n "$ac_ct_STRIP"; then | |
3800 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3801 | else | |
3802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3803 | for as_dir in $PATH | |
3804 | do | |
3805 | IFS=$as_save_IFS | |
3806 | test -z "$as_dir" && as_dir=. | |
3807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3809 | ac_cv_prog_ac_ct_STRIP="strip" | |
3810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3811 | break 2 | |
3812 | fi | |
3813 | done | |
3814 | done | |
3815 | IFS=$as_save_IFS | |
3816 | ||
3817 | fi | |
3818 | fi | |
3819 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3820 | if test -n "$ac_ct_STRIP"; then | |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3822 | $as_echo "$ac_ct_STRIP" >&6; } | |
3823 | else | |
3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3825 | $as_echo "no" >&6; } | |
3826 | fi | |
3827 | ||
3828 | if test "x$ac_ct_STRIP" = x; then | |
3829 | STRIP=":" | |
3830 | else | |
3831 | case $cross_compiling:$ac_tool_warned in | |
3832 | yes:) | |
3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3834 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3835 | ac_tool_warned=yes ;; | |
3836 | esac | |
3837 | STRIP=$ac_ct_STRIP | |
3838 | fi | |
3839 | else | |
3840 | STRIP="$ac_cv_prog_STRIP" | |
3841 | fi | |
3842 | ||
3843 | fi | |
3844 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3845 | ||
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3847 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3848 | if test -z "$MKDIR_P"; then | |
3849 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3850 | $as_echo_n "(cached) " >&6 | |
3851 | else | |
3852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3853 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3854 | do | |
3855 | IFS=$as_save_IFS | |
3856 | test -z "$as_dir" && as_dir=. | |
3857 | for ac_prog in mkdir gmkdir; do | |
3858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3859 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3860 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3861 | 'mkdir (GNU coreutils) '* | \ | |
3862 | 'mkdir (coreutils) '* | \ | |
3863 | 'mkdir (fileutils) '4.1*) | |
3864 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3865 | break 3;; | |
3866 | esac | |
3867 | done | |
3868 | done | |
42ecbf5e | 3869 | done |
81ecdfbb RW |
3870 | IFS=$as_save_IFS |
3871 | ||
3872 | fi | |
3873 | ||
3874 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3875 | MKDIR_P="$ac_cv_path_mkdir -p" | |
42ecbf5e | 3876 | else |
81ecdfbb RW |
3877 | # As a last resort, use the slow shell script. Don't cache a |
3878 | # value for MKDIR_P within a source directory, because that will | |
3879 | # break other packages using the cache if that directory is | |
3880 | # removed, or if the value is a relative name. | |
3881 | test -d ./--version && rmdir ./--version | |
3882 | MKDIR_P="$ac_install_sh -d" | |
42ecbf5e DJ |
3883 | fi |
3884 | fi | |
81ecdfbb RW |
3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3886 | $as_echo "$MKDIR_P" >&6; } | |
3887 | ||
3888 | mkdir_p="$MKDIR_P" | |
3889 | case $mkdir_p in | |
3890 | [\\/$]* | ?:[\\/]*) ;; | |
3891 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3892 | esac | |
42ecbf5e DJ |
3893 | |
3894 | for ac_prog in gawk mawk nawk awk | |
3895 | do | |
3896 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3897 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3899 | $as_echo_n "checking for $ac_word... " >&6; } | |
3900 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3901 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3902 | else |
3903 | if test -n "$AWK"; then | |
3904 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3905 | else | |
3906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3907 | for as_dir in $PATH | |
3908 | do | |
3909 | IFS=$as_save_IFS | |
3910 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3911 | for ac_exec_ext in '' $ac_executable_extensions; do |
3912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 3913 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3915 | break 2 |
3916 | fi | |
3917 | done | |
81ecdfbb RW |
3918 | done |
3919 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3920 | |
3921 | fi | |
3922 | fi | |
3923 | AWK=$ac_cv_prog_AWK | |
3924 | if test -n "$AWK"; then | |
81ecdfbb RW |
3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3926 | $as_echo "$AWK" >&6; } | |
42ecbf5e | 3927 | else |
81ecdfbb RW |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3929 | $as_echo "no" >&6; } | |
42ecbf5e | 3930 | fi |
252b5132 | 3931 | |
81ecdfbb | 3932 | |
42ecbf5e DJ |
3933 | test -n "$AWK" && break |
3934 | done | |
252b5132 | 3935 | |
81ecdfbb RW |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3937 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3938 | set x ${MAKE-make} | |
3939 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3940 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3941 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3942 | else |
42ecbf5e | 3943 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 3944 | SHELL = /bin/sh |
252b5132 | 3945 | all: |
81ecdfbb | 3946 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
42ecbf5e | 3947 | _ACEOF |
252b5132 | 3948 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
3949 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3950 | *@@@%%%=?*=@@@%%%*) | |
3951 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3952 | *) | |
3953 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3954 | esac | |
42ecbf5e | 3955 | rm -f conftest.make |
252b5132 | 3956 | fi |
81ecdfbb RW |
3957 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3959 | $as_echo "yes" >&6; } | |
252b5132 RH |
3960 | SET_MAKE= |
3961 | else | |
81ecdfbb RW |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3963 | $as_echo "no" >&6; } | |
252b5132 RH |
3964 | SET_MAKE="MAKE=${MAKE-make}" |
3965 | fi | |
3966 | ||
42ecbf5e DJ |
3967 | rm -rf .tst 2>/dev/null |
3968 | mkdir .tst 2>/dev/null | |
3969 | if test -d .tst; then | |
3970 | am__leading_dot=. | |
3971 | else | |
3972 | am__leading_dot=_ | |
3973 | fi | |
3974 | rmdir .tst 2>/dev/null | |
3975 | ||
3976 | DEPDIR="${am__leading_dot}deps" | |
3977 | ||
81ecdfbb | 3978 | ac_config_commands="$ac_config_commands depfiles" |
42ecbf5e DJ |
3979 | |
3980 | ||
3981 | am_make=${MAKE-make} | |
3982 | cat > confinc << 'END' | |
3983 | am__doit: | |
81ecdfbb | 3984 | @echo this is the am__doit target |
42ecbf5e DJ |
3985 | .PHONY: am__doit |
3986 | END | |
3987 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3989 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
42ecbf5e DJ |
3990 | am__include="#" |
3991 | am__quote= | |
3992 | _am_result=none | |
3993 | # First try GNU make style include. | |
3994 | echo "include confinc" > confmf | |
81ecdfbb RW |
3995 | # Ignore all kinds of additional output from `make'. |
3996 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3997 | *the\ am__doit\ target*) | |
3998 | am__include=include | |
3999 | am__quote= | |
4000 | _am_result=GNU | |
4001 | ;; | |
4002 | esac | |
42ecbf5e DJ |
4003 | # Now try BSD make style include. |
4004 | if test "$am__include" = "#"; then | |
4005 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
4006 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4007 | *the\ am__doit\ target*) | |
4008 | am__include=.include | |
4009 | am__quote="\"" | |
4010 | _am_result=BSD | |
4011 | ;; | |
4012 | esac | |
42ecbf5e DJ |
4013 | fi |
4014 | ||
4015 | ||
81ecdfbb RW |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4017 | $as_echo "$_am_result" >&6; } | |
42ecbf5e DJ |
4018 | rm -f confinc confmf |
4019 | ||
81ecdfbb RW |
4020 | # Check whether --enable-dependency-tracking was given. |
4021 | if test "${enable_dependency_tracking+set}" = set; then : | |
4022 | enableval=$enable_dependency_tracking; | |
4023 | fi | |
42ecbf5e | 4024 | |
42ecbf5e DJ |
4025 | if test "x$enable_dependency_tracking" != xno; then |
4026 | am_depcomp="$ac_aux_dir/depcomp" | |
4027 | AMDEPBACKSLASH='\' | |
4028 | fi | |
81ecdfbb | 4029 | if test "x$enable_dependency_tracking" != xno; then |
42ecbf5e DJ |
4030 | AMDEP_TRUE= |
4031 | AMDEP_FALSE='#' | |
4032 | else | |
4033 | AMDEP_TRUE='#' | |
4034 | AMDEP_FALSE= | |
4035 | fi | |
4036 | ||
e5a52504 | 4037 | |
81ecdfbb RW |
4038 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4039 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4040 | # is not polluted with repeated "-I." | |
4041 | am__isrc=' -I$(srcdir)' | |
4042 | # test to see if srcdir already configured | |
4043 | if test -f $srcdir/config.status; then | |
4044 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4045 | fi | |
42ecbf5e | 4046 | fi |
252b5132 | 4047 | |
42ecbf5e DJ |
4048 | # test whether we have cygpath |
4049 | if test -z "$CYGPATH_W"; then | |
4050 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4051 | CYGPATH_W='cygpath -w' | |
4052 | else | |
4053 | CYGPATH_W=echo | |
4054 | fi | |
252b5132 | 4055 | fi |
42ecbf5e DJ |
4056 | |
4057 | ||
4058 | # Define the identity of the package. | |
2e98a7bd | 4059 | PACKAGE='ld' |
91dc4e0a | 4060 | VERSION='2.25.51' |
42ecbf5e DJ |
4061 | |
4062 | ||
4063 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 4064 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
4065 | _ACEOF |
4066 | ||
252b5132 | 4067 | |
42ecbf5e | 4068 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 4069 | #define VERSION "$VERSION" |
42ecbf5e DJ |
4070 | _ACEOF |
4071 | ||
4072 | # Some tools Automake needs. | |
4073 | ||
4074 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4075 | ||
4076 | ||
4077 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4078 | ||
4079 | ||
4080 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4081 | ||
4082 | ||
4083 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4084 | ||
e5a52504 | 4085 | |
42ecbf5e | 4086 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 4087 | |
42ecbf5e DJ |
4088 | # We need awk for the "check" target. The system "awk" is bad on |
4089 | # some platforms. | |
4090 | # Always define AMTAR for backward compatibility. | |
4091 | ||
4092 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4093 | ||
4094 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4095 | ||
4096 | ||
4097 | ||
4098 | ||
4099 | depcc="$CC" am_compiler_list= | |
4100 | ||
81ecdfbb RW |
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4102 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4103 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4104 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
4105 | else |
4106 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4107 | # We make a subdir and do the tests there. Otherwise we can end up | |
4108 | # making bogus files that we don't know about and never remove. For | |
4109 | # instance it was reported that on HP-UX the gcc test will end up | |
4110 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4111 | # in D'. | |
4112 | mkdir conftest.dir | |
4113 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4114 | # using a relative directory. | |
4115 | cp "$am_depcomp" conftest.dir | |
4116 | cd conftest.dir | |
4117 | # We will build objects and dependencies in a subdirectory because | |
4118 | # it helps to detect inapplicable dependency modes. For instance | |
4119 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4120 | # side effect of compilation, but ICC will put the dependencies in | |
4121 | # the current directory while Tru64 will put them in the object | |
4122 | # directory. | |
4123 | mkdir sub | |
4124 | ||
4125 | am_cv_CC_dependencies_compiler_type=none | |
4126 | if test "$am_compiler_list" = ""; then | |
4127 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4128 | fi | |
81ecdfbb RW |
4129 | am__universal=false |
4130 | case " $depcc " in #( | |
4131 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4132 | esac | |
4133 | ||
42ecbf5e DJ |
4134 | for depmode in $am_compiler_list; do |
4135 | # Setup a source with many dependencies, because some compilers | |
4136 | # like to wrap large dependency lists on column 80 (with \), and | |
4137 | # we should not choose a depcomp mode which is confused by this. | |
4138 | # | |
4139 | # We need to recreate these files for each test, as the compiler may | |
4140 | # overwrite some of them when testing with obscure command lines. | |
4141 | # This happens at least with the AIX C compiler. | |
4142 | : > sub/conftest.c | |
4143 | for i in 1 2 3 4 5 6; do | |
4144 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4145 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4146 | # Solaris 8's {/usr,}/bin/sh. | |
4147 | touch sub/conftst$i.h | |
4148 | done | |
4149 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4150 | ||
81ecdfbb RW |
4151 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4152 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4153 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4154 | # versions had trouble with output in subdirs | |
4155 | am__obj=sub/conftest.${OBJEXT-o} | |
4156 | am__minus_obj="-o $am__obj" | |
42ecbf5e | 4157 | case $depmode in |
81ecdfbb RW |
4158 | gcc) |
4159 | # This depmode causes a compiler race in universal mode. | |
4160 | test "$am__universal" = false || continue | |
4161 | ;; | |
42ecbf5e DJ |
4162 | nosideeffect) |
4163 | # after this tag, mechanisms are not by side-effect, so they'll | |
4164 | # only be used when explicitly requested | |
4165 | if test "x$enable_dependency_tracking" = xyes; then | |
4166 | continue | |
4167 | else | |
4168 | break | |
4169 | fi | |
4170 | ;; | |
81ecdfbb RW |
4171 | msvisualcpp | msvcmsys) |
4172 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4173 | # not run yet. These depmodes are late enough in the game, and | |
4174 | # so weak that their functioning should not be impacted. | |
4175 | am__obj=conftest.${OBJEXT-o} | |
4176 | am__minus_obj= | |
4177 | ;; | |
42ecbf5e DJ |
4178 | none) break ;; |
4179 | esac | |
42ecbf5e | 4180 | if depmode=$depmode \ |
81ecdfbb | 4181 | source=sub/conftest.c object=$am__obj \ |
42ecbf5e | 4182 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 4183 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
42ecbf5e | 4184 | >/dev/null 2>conftest.err && |
81ecdfbb | 4185 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e | 4186 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 4187 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e DJ |
4188 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4189 | # icc doesn't choke on unknown options, it will just issue warnings | |
4190 | # or remarks (even with -Werror). So we grep stderr for any message | |
4191 | # that says an option was ignored or not supported. | |
4192 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4193 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4194 | # The diagnosis changed in icc 8.0: | |
4195 | # icc: Command line remark: option '-MP' not supported | |
4196 | if (grep 'ignoring option' conftest.err || | |
4197 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4198 | am_cv_CC_dependencies_compiler_type=$depmode | |
4199 | break | |
4200 | fi | |
4201 | fi | |
4202 | done | |
2469cfa2 | 4203 | |
42ecbf5e DJ |
4204 | cd .. |
4205 | rm -rf conftest.dir | |
2469cfa2 | 4206 | else |
42ecbf5e DJ |
4207 | am_cv_CC_dependencies_compiler_type=none |
4208 | fi | |
4209 | ||
2469cfa2 | 4210 | fi |
81ecdfbb RW |
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4212 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
42ecbf5e DJ |
4213 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4214 | ||
81ecdfbb | 4215 | if |
42ecbf5e DJ |
4216 | test "x$enable_dependency_tracking" != xno \ |
4217 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4218 | am__fastdepCC_TRUE= | |
4219 | am__fastdepCC_FALSE='#' | |
2469cfa2 | 4220 | else |
42ecbf5e DJ |
4221 | am__fastdepCC_TRUE='#' |
4222 | am__fastdepCC_FALSE= | |
2469cfa2 | 4223 | fi |
2469cfa2 | 4224 | |
2469cfa2 | 4225 | |
e5a52504 | 4226 | |
42ecbf5e | 4227 | |
64ac50ac RW |
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4229 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4230 | # Check whether --enable-maintainer-mode was given. | |
4231 | if test "${enable_maintainer_mode+set}" = set; then : | |
4232 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4233 | else | |
4234 | USE_MAINTAINER_MODE=no | |
4235 | fi | |
4236 | ||
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4238 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4239 | if test $USE_MAINTAINER_MODE = yes; then | |
4240 | MAINTAINER_MODE_TRUE= | |
4241 | MAINTAINER_MODE_FALSE='#' | |
4242 | else | |
4243 | MAINTAINER_MODE_TRUE='#' | |
4244 | MAINTAINER_MODE_FALSE= | |
4245 | fi | |
4246 | ||
4247 | MAINT=$MAINTAINER_MODE_TRUE | |
4248 | ||
4249 | ||
4250 | ||
b879806f AM |
4251 | ac_ext=c |
4252 | ac_cpp='$CPP $CPPFLAGS' | |
4253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4256 | if test -n "$ac_tool_prefix"; then | |
4257 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4258 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4260 | $as_echo_n "checking for $ac_word... " >&6; } | |
4261 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4262 | $as_echo_n "(cached) " >&6 | |
4263 | else | |
4264 | if test -n "$CC"; then | |
4265 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4266 | else | |
4267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4268 | for as_dir in $PATH | |
4269 | do | |
4270 | IFS=$as_save_IFS | |
4271 | test -z "$as_dir" && as_dir=. | |
4272 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4274 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4276 | break 2 | |
4277 | fi | |
4278 | done | |
4279 | done | |
4280 | IFS=$as_save_IFS | |
d7040cdb | 4281 | |
81ecdfbb | 4282 | fi |
81ecdfbb | 4283 | fi |
b879806f AM |
4284 | CC=$ac_cv_prog_CC |
4285 | if test -n "$CC"; then | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4287 | $as_echo "$CC" >&6; } | |
2469cfa2 | 4288 | else |
b879806f AM |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4290 | $as_echo "no" >&6; } | |
81ecdfbb | 4291 | fi |
d7040cdb SE |
4292 | |
4293 | ||
b879806f AM |
4294 | fi |
4295 | if test -z "$ac_cv_prog_CC"; then | |
4296 | ac_ct_CC=$CC | |
4297 | # Extract the first word of "gcc", so it can be a program name with args. | |
4298 | set dummy gcc; ac_word=$2 | |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4300 | $as_echo_n "checking for $ac_word... " >&6; } | |
4301 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4302 | $as_echo_n "(cached) " >&6 | |
e5a52504 | 4303 | else |
b879806f AM |
4304 | if test -n "$ac_ct_CC"; then |
4305 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4306 | else | |
4307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4308 | for as_dir in $PATH | |
4309 | do | |
4310 | IFS=$as_save_IFS | |
4311 | test -z "$as_dir" && as_dir=. | |
4312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4314 | ac_cv_prog_ac_ct_CC="gcc" | |
4315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4316 | break 2 | |
4317 | fi | |
4318 | done | |
4319 | done | |
4320 | IFS=$as_save_IFS | |
d7040cdb | 4321 | |
81ecdfbb | 4322 | fi |
b879806f AM |
4323 | fi |
4324 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4325 | if test -n "$ac_ct_CC"; then | |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4327 | $as_echo "$ac_ct_CC" >&6; } | |
4fda8867 | 4328 | else |
b879806f AM |
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4330 | $as_echo "no" >&6; } | |
4fda8867 NC |
4331 | fi |
4332 | ||
b879806f AM |
4333 | if test "x$ac_ct_CC" = x; then |
4334 | CC="" | |
4335 | else | |
4336 | case $cross_compiling:$ac_tool_warned in | |
4337 | yes:) | |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4339 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4340 | ac_tool_warned=yes ;; | |
7fb9f789 | 4341 | esac |
b879806f AM |
4342 | CC=$ac_ct_CC |
4343 | fi | |
7fb9f789 | 4344 | else |
b879806f | 4345 | CC="$ac_cv_prog_CC" |
81ecdfbb RW |
4346 | fi |
4347 | ||
b879806f AM |
4348 | if test -z "$CC"; then |
4349 | if test -n "$ac_tool_prefix"; then | |
4350 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4351 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4353 | $as_echo_n "checking for $ac_word... " >&6; } | |
4354 | if test "${ac_cv_prog_CC+set}" = set; then : | |
397841b5 AM |
4355 | $as_echo_n "(cached) " >&6 |
4356 | else | |
b879806f AM |
4357 | if test -n "$CC"; then |
4358 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4359 | else | |
4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4361 | for as_dir in $PATH | |
397841b5 | 4362 | do |
b879806f AM |
4363 | IFS=$as_save_IFS |
4364 | test -z "$as_dir" && as_dir=. | |
4365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4367 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4369 | break 2 | |
4370 | fi | |
4371 | done | |
4372 | done | |
4373 | IFS=$as_save_IFS | |
d7040cdb | 4374 | |
ce2cded5 | 4375 | fi |
ce2cded5 | 4376 | fi |
b879806f AM |
4377 | CC=$ac_cv_prog_CC |
4378 | if test -n "$CC"; then | |
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4380 | $as_echo "$CC" >&6; } | |
4381 | else | |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4383 | $as_echo "no" >&6; } | |
81ecdfbb RW |
4384 | fi |
4385 | ||
d7040cdb | 4386 | |
b879806f | 4387 | fi |
ce2cded5 | 4388 | fi |
b879806f AM |
4389 | if test -z "$CC"; then |
4390 | # Extract the first word of "cc", so it can be a program name with args. | |
4391 | set dummy cc; ac_word=$2 | |
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4393 | $as_echo_n "checking for $ac_word... " >&6; } | |
4394 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4395 | $as_echo_n "(cached) " >&6 | |
397841b5 | 4396 | else |
b879806f AM |
4397 | if test -n "$CC"; then |
4398 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4399 | else | |
4400 | ac_prog_rejected=no | |
4401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4402 | for as_dir in $PATH | |
397841b5 | 4403 | do |
b879806f AM |
4404 | IFS=$as_save_IFS |
4405 | test -z "$as_dir" && as_dir=. | |
4406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4408 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4409 | ac_prog_rejected=yes | |
4410 | continue | |
4411 | fi | |
4412 | ac_cv_prog_CC="cc" | |
4413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4414 | break 2 | |
4415 | fi | |
4416 | done | |
4417 | done | |
4418 | IFS=$as_save_IFS | |
d7040cdb | 4419 | |
b879806f AM |
4420 | if test $ac_prog_rejected = yes; then |
4421 | # We found a bogon in the path, so make sure we never use it. | |
4422 | set dummy $ac_cv_prog_CC | |
4423 | shift | |
4424 | if test $# != 0; then | |
4425 | # We chose a different compiler from the bogus one. | |
4426 | # However, it has the same basename, so the bogon will be chosen | |
4427 | # first if we set CC to just the basename; use the full file name. | |
4428 | shift | |
4429 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4430 | fi | |
397841b5 | 4431 | fi |
397841b5 | 4432 | fi |
b879806f AM |
4433 | fi |
4434 | CC=$ac_cv_prog_CC | |
4435 | if test -n "$CC"; then | |
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4437 | $as_echo "$CC" >&6; } | |
397841b5 | 4438 | else |
b879806f AM |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4440 | $as_echo "no" >&6; } | |
ce2cded5 | 4441 | fi |
d7040cdb | 4442 | |
397841b5 | 4443 | |
b879806f AM |
4444 | fi |
4445 | if test -z "$CC"; then | |
4446 | if test -n "$ac_tool_prefix"; then | |
4447 | for ac_prog in cl.exe | |
4448 | do | |
4449 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4450 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4452 | $as_echo_n "checking for $ac_word... " >&6; } | |
4453 | if test "${ac_cv_prog_CC+set}" = set; then : | |
81ecdfbb | 4454 | $as_echo_n "(cached) " >&6 |
d7040cdb | 4455 | else |
b879806f AM |
4456 | if test -n "$CC"; then |
4457 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4458 | else | |
4459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4460 | for as_dir in $PATH | |
d7040cdb SE |
4461 | do |
4462 | IFS=$as_save_IFS | |
4463 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4464 | for ac_exec_ext in '' $ac_executable_extensions; do |
b879806f AM |
4465 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4466 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4468 | break 2 | |
4469 | fi | |
4470 | done | |
397841b5 AM |
4471 | done |
4472 | IFS=$as_save_IFS | |
d7040cdb | 4473 | |
252b5132 | 4474 | fi |
b879806f AM |
4475 | fi |
4476 | CC=$ac_cv_prog_CC | |
4477 | if test -n "$CC"; then | |
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4479 | $as_echo "$CC" >&6; } | |
4480 | else | |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4482 | $as_echo "no" >&6; } | |
4483 | fi | |
397841b5 AM |
4484 | |
4485 | ||
b879806f AM |
4486 | test -n "$CC" && break |
4487 | done | |
4488 | fi | |
4489 | if test -z "$CC"; then | |
4490 | ac_ct_CC=$CC | |
4491 | for ac_prog in cl.exe | |
4492 | do | |
4493 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4494 | set dummy $ac_prog; ac_word=$2 | |
4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4496 | $as_echo_n "checking for $ac_word... " >&6; } | |
4497 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
397841b5 AM |
4498 | $as_echo_n "(cached) " >&6 |
4499 | else | |
b879806f AM |
4500 | if test -n "$ac_ct_CC"; then |
4501 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4502 | else | |
4503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4504 | for as_dir in $PATH | |
397841b5 AM |
4505 | do |
4506 | IFS=$as_save_IFS | |
4507 | test -z "$as_dir" && as_dir=. | |
397841b5 | 4508 | for ac_exec_ext in '' $ac_executable_extensions; do |
b879806f AM |
4509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4510 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4512 | break 2 | |
4513 | fi | |
4514 | done | |
397841b5 AM |
4515 | done |
4516 | IFS=$as_save_IFS | |
397841b5 | 4517 | |
397841b5 | 4518 | fi |
397841b5 | 4519 | fi |
b879806f AM |
4520 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4521 | if test -n "$ac_ct_CC"; then | |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4523 | $as_echo "$ac_ct_CC" >&6; } | |
4524 | else | |
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4526 | $as_echo "no" >&6; } | |
397841b5 AM |
4527 | fi |
4528 | ||
397841b5 | 4529 | |
b879806f AM |
4530 | test -n "$ac_ct_CC" && break |
4531 | done | |
397841b5 | 4532 | |
b879806f AM |
4533 | if test "x$ac_ct_CC" = x; then |
4534 | CC="" | |
4535 | else | |
4536 | case $cross_compiling:$ac_tool_warned in | |
4537 | yes:) | |
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4539 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4540 | ac_tool_warned=yes ;; | |
397841b5 | 4541 | esac |
b879806f AM |
4542 | CC=$ac_ct_CC |
4543 | fi | |
397841b5 AM |
4544 | fi |
4545 | ||
397841b5 AM |
4546 | fi |
4547 | ||
4548 | ||
b879806f AM |
4549 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4550 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4551 | as_fn_error "no acceptable C compiler found in \$PATH | |
4552 | See \`config.log' for more details." "$LINENO" 5; } | |
397841b5 | 4553 | |
b879806f AM |
4554 | # Provide some information about the compiler. |
4555 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4556 | set X $ac_compile | |
4557 | ac_compiler=$2 | |
4558 | for ac_option in --version -v -V -qversion; do | |
4559 | { { ac_try="$ac_compiler $ac_option >&5" | |
4560 | case "(($ac_try" in | |
4561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4562 | *) ac_try_echo=$ac_try;; | |
4563 | esac | |
4564 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4565 | $as_echo "$ac_try_echo"; } >&5 | |
4566 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4567 | ac_status=$? | |
4568 | if test -s conftest.err; then | |
4569 | sed '10a\ | |
4570 | ... rest of stderr output deleted ... | |
4571 | 10q' conftest.err >conftest.er1 | |
4572 | cat conftest.er1 >&5 | |
4573 | rm -f conftest.er1 conftest.err | |
4574 | fi | |
4575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4576 | test $ac_status = 0; } | |
4577 | done | |
397841b5 | 4578 | |
b879806f AM |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4580 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4581 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
44350750 NC |
4582 | $as_echo_n "(cached) " >&6 |
4583 | else | |
4584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4585 | /* end confdefs.h. */ | |
b879806f | 4586 | |
44350750 NC |
4587 | int |
4588 | main () | |
4589 | { | |
b879806f AM |
4590 | #ifndef __GNUC__ |
4591 | choke me | |
4592 | #endif | |
4593 | ||
4594 | ; | |
44350750 NC |
4595 | return 0; |
4596 | } | |
4597 | _ACEOF | |
b879806f AM |
4598 | if ac_fn_c_try_compile "$LINENO"; then : |
4599 | ac_compiler_gnu=yes | |
44350750 | 4600 | else |
b879806f | 4601 | ac_compiler_gnu=no |
44350750 | 4602 | fi |
b879806f AM |
4603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4604 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4605 | ||
44350750 | 4606 | fi |
b879806f AM |
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4608 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4609 | if test $ac_compiler_gnu = yes; then | |
4610 | GCC=yes | |
4611 | else | |
4612 | GCC= | |
4613 | fi | |
4614 | ac_test_CFLAGS=${CFLAGS+set} | |
4615 | ac_save_CFLAGS=$CFLAGS | |
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4617 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4618 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4619 | $as_echo_n "(cached) " >&6 | |
4620 | else | |
4621 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4622 | ac_c_werror_flag=yes | |
4623 | ac_cv_prog_cc_g=no | |
4624 | CFLAGS="-g" | |
4625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4626 | /* end confdefs.h. */ | |
44350750 | 4627 | |
b879806f AM |
4628 | int |
4629 | main () | |
4630 | { | |
44350750 | 4631 | |
b879806f AM |
4632 | ; |
4633 | return 0; | |
4634 | } | |
4635 | _ACEOF | |
4636 | if ac_fn_c_try_compile "$LINENO"; then : | |
4637 | ac_cv_prog_cc_g=yes | |
4638 | else | |
4639 | CFLAGS="" | |
4640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4641 | /* end confdefs.h. */ | |
4642 | ||
4643 | int | |
4644 | main () | |
4645 | { | |
44350750 | 4646 | |
b879806f AM |
4647 | ; |
4648 | return 0; | |
4649 | } | |
4650 | _ACEOF | |
4651 | if ac_fn_c_try_compile "$LINENO"; then : | |
44350750 | 4652 | |
b879806f AM |
4653 | else |
4654 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4655 | CFLAGS="-g" | |
4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4657 | /* end confdefs.h. */ | |
397841b5 | 4658 | |
b879806f AM |
4659 | int |
4660 | main () | |
4661 | { | |
397841b5 | 4662 | |
b879806f AM |
4663 | ; |
4664 | return 0; | |
4665 | } | |
4666 | _ACEOF | |
4667 | if ac_fn_c_try_compile "$LINENO"; then : | |
4668 | ac_cv_prog_cc_g=yes | |
4669 | fi | |
4670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4671 | fi | |
4672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4673 | fi | |
4674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4675 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4676 | fi | |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4678 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4679 | if test "$ac_test_CFLAGS" = set; then | |
4680 | CFLAGS=$ac_save_CFLAGS | |
4681 | elif test $ac_cv_prog_cc_g = yes; then | |
4682 | if test "$GCC" = yes; then | |
4683 | CFLAGS="-g -O2" | |
4684 | else | |
4685 | CFLAGS="-g" | |
4686 | fi | |
4687 | else | |
4688 | if test "$GCC" = yes; then | |
4689 | CFLAGS="-O2" | |
4690 | else | |
4691 | CFLAGS= | |
4692 | fi | |
4693 | fi | |
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4695 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4696 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4697 | $as_echo_n "(cached) " >&6 | |
4698 | else | |
4699 | ac_cv_prog_cc_c89=no | |
4700 | ac_save_CC=$CC | |
4701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4702 | /* end confdefs.h. */ | |
4703 | #include <stdarg.h> | |
4704 | #include <stdio.h> | |
4705 | #include <sys/types.h> | |
4706 | #include <sys/stat.h> | |
4707 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4708 | struct buf { int x; }; | |
4709 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4710 | static char *e (p, i) | |
4711 | char **p; | |
4712 | int i; | |
4713 | { | |
4714 | return p[i]; | |
4715 | } | |
4716 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4717 | { | |
4718 | char *s; | |
4719 | va_list v; | |
4720 | va_start (v,p); | |
4721 | s = g (p, va_arg (v,int)); | |
4722 | va_end (v); | |
4723 | return s; | |
4724 | } | |
df7b86aa | 4725 | |
b879806f AM |
4726 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4727 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4728 | These don't provoke an error unfortunately, instead are silently treated | |
4729 | as 'x'. The following induces an error, until -std is added to get | |
4730 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4731 | array size at least. It's necessary to write '\x00'==0 to get something | |
4732 | that's true only with -std. */ | |
4733 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
df7b86aa | 4734 | |
b879806f AM |
4735 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4736 | inside strings and character constants. */ | |
4737 | #define FOO(x) 'x' | |
4738 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4739 | ||
4740 | int test (int i, double x); | |
4741 | struct s1 {int (*f) (int a);}; | |
4742 | struct s2 {int (*f) (double a);}; | |
4743 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4744 | int argc; | |
4745 | char **argv; | |
4746 | int | |
4747 | main () | |
4748 | { | |
4749 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4750 | ; | |
4751 | return 0; | |
4752 | } | |
4753 | _ACEOF | |
4754 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4755 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4756 | do | |
4757 | CC="$ac_save_CC $ac_arg" | |
4758 | if ac_fn_c_try_compile "$LINENO"; then : | |
4759 | ac_cv_prog_cc_c89=$ac_arg | |
397841b5 | 4760 | fi |
b879806f AM |
4761 | rm -f core conftest.err conftest.$ac_objext |
4762 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4763 | done | |
4764 | rm -f conftest.$ac_ext | |
4765 | CC=$ac_save_CC | |
4766 | ||
397841b5 | 4767 | fi |
b879806f AM |
4768 | # AC_CACHE_VAL |
4769 | case "x$ac_cv_prog_cc_c89" in | |
4770 | x) | |
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4772 | $as_echo "none needed" >&6; } ;; | |
4773 | xno) | |
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4775 | $as_echo "unsupported" >&6; } ;; | |
4776 | *) | |
4777 | CC="$CC $ac_cv_prog_cc_c89" | |
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4779 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4780 | esac | |
4781 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
397841b5 | 4782 | |
b879806f | 4783 | fi |
397841b5 AM |
4784 | |
4785 | ac_ext=c | |
4786 | ac_cpp='$CPP $CPPFLAGS' | |
4787 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4788 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4789 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b879806f AM |
4790 | |
4791 | ac_ext=cpp | |
4792 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4793 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4794 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4795 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4796 | if test -z "$CXX"; then | |
4797 | if test -n "$CCC"; then | |
4798 | CXX=$CCC | |
4799 | else | |
4800 | if test -n "$ac_tool_prefix"; then | |
4801 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4802 | do | |
4803 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4804 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
397841b5 AM |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4806 | $as_echo_n "checking for $ac_word... " >&6; } | |
b879806f | 4807 | if test "${ac_cv_prog_CXX+set}" = set; then : |
397841b5 AM |
4808 | $as_echo_n "(cached) " >&6 |
4809 | else | |
b879806f AM |
4810 | if test -n "$CXX"; then |
4811 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
397841b5 AM |
4812 | else |
4813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4814 | for as_dir in $PATH | |
4815 | do | |
4816 | IFS=$as_save_IFS | |
4817 | test -z "$as_dir" && as_dir=. | |
4818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b879806f | 4820 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
397841b5 AM |
4821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4822 | break 2 | |
4823 | fi | |
4824 | done | |
4825 | done | |
4826 | IFS=$as_save_IFS | |
4827 | ||
4828 | fi | |
4829 | fi | |
b879806f AM |
4830 | CXX=$ac_cv_prog_CXX |
4831 | if test -n "$CXX"; then | |
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4833 | $as_echo "$CXX" >&6; } | |
397841b5 AM |
4834 | else |
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4836 | $as_echo "no" >&6; } | |
4837 | fi | |
4838 | ||
4839 | ||
b879806f AM |
4840 | test -n "$CXX" && break |
4841 | done | |
397841b5 | 4842 | fi |
b879806f AM |
4843 | if test -z "$CXX"; then |
4844 | ac_ct_CXX=$CXX | |
4845 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4846 | do | |
4847 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4848 | set dummy $ac_prog; ac_word=$2 | |
397841b5 AM |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4850 | $as_echo_n "checking for $ac_word... " >&6; } | |
b879806f | 4851 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
81ecdfbb | 4852 | $as_echo_n "(cached) " >&6 |
252b5132 | 4853 | else |
b879806f AM |
4854 | if test -n "$ac_ct_CXX"; then |
4855 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
252b5132 | 4856 | else |
ce2cded5 L |
4857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4858 | for as_dir in $PATH | |
4859 | do | |
4860 | IFS=$as_save_IFS | |
4861 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4862 | for ac_exec_ext in '' $ac_executable_extensions; do |
4863 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b879806f | 4864 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4866 | break 2 |
4867 | fi | |
4868 | done | |
81ecdfbb RW |
4869 | done |
4870 | IFS=$as_save_IFS | |
4871 | ||
252b5132 RH |
4872 | fi |
4873 | fi | |
b879806f AM |
4874 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4875 | if test -n "$ac_ct_CXX"; then | |
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4877 | $as_echo "$ac_ct_CXX" >&6; } | |
d7040cdb | 4878 | else |
81ecdfbb RW |
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4880 | $as_echo "no" >&6; } | |
d7040cdb SE |
4881 | fi |
4882 | ||
81ecdfbb | 4883 | |
b879806f | 4884 | test -n "$ac_ct_CXX" && break |
d7040cdb | 4885 | done |
d7040cdb | 4886 | |
b879806f AM |
4887 | if test "x$ac_ct_CXX" = x; then |
4888 | CXX="g++" | |
81ecdfbb RW |
4889 | else |
4890 | case $cross_compiling:$ac_tool_warned in | |
4891 | yes:) | |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4893 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4894 | ac_tool_warned=yes ;; | |
4895 | esac | |
b879806f | 4896 | CXX=$ac_ct_CXX |
81ecdfbb | 4897 | fi |
d7040cdb SE |
4898 | fi |
4899 | ||
b879806f | 4900 | fi |
d7040cdb | 4901 | fi |
ce2cded5 | 4902 | # Provide some information about the compiler. |
b879806f | 4903 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
81ecdfbb RW |
4904 | set X $ac_compile |
4905 | ac_compiler=$2 | |
4906 | for ac_option in --version -v -V -qversion; do | |
4907 | { { ac_try="$ac_compiler $ac_option >&5" | |
4908 | case "(($ac_try" in | |
4909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4910 | *) ac_try_echo=$ac_try;; | |
4911 | esac | |
4912 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4913 | $as_echo "$ac_try_echo"; } >&5 | |
4914 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 4915 | ac_status=$? |
81ecdfbb RW |
4916 | if test -s conftest.err; then |
4917 | sed '10a\ | |
4918 | ... rest of stderr output deleted ... | |
4919 | 10q' conftest.err >conftest.er1 | |
4920 | cat conftest.er1 >&5 | |
4921 | rm -f conftest.er1 conftest.err | |
4922 | fi | |
4923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4924 | test $ac_status = 0; } | |
4925 | done | |
d7040cdb | 4926 | |
b879806f AM |
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4928 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4929 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
81ecdfbb | 4930 | $as_echo_n "(cached) " >&6 |
d7040cdb | 4931 | else |
81ecdfbb | 4932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4933 | /* end confdefs.h. */ |
d7040cdb | 4934 | |
ce2cded5 L |
4935 | int |
4936 | main () | |
4937 | { | |
4938 | #ifndef __GNUC__ | |
4939 | choke me | |
4940 | #endif | |
4941 | ||
4942 | ; | |
4943 | return 0; | |
4944 | } | |
4945 | _ACEOF | |
b879806f | 4946 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ce2cded5 | 4947 | ac_compiler_gnu=yes |
d7040cdb | 4948 | else |
81ecdfbb | 4949 | ac_compiler_gnu=no |
d7040cdb | 4950 | fi |
81ecdfbb | 4951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b879806f | 4952 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 4953 | |
ce2cded5 | 4954 | fi |
b879806f AM |
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4956 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
81ecdfbb | 4957 | if test $ac_compiler_gnu = yes; then |
b879806f | 4958 | GXX=yes |
81ecdfbb | 4959 | else |
b879806f | 4960 | GXX= |
81ecdfbb | 4961 | fi |
b879806f AM |
4962 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4963 | ac_save_CXXFLAGS=$CXXFLAGS | |
4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4965 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4966 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
81ecdfbb RW |
4967 | $as_echo_n "(cached) " >&6 |
4968 | else | |
b879806f AM |
4969 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4970 | ac_cxx_werror_flag=yes | |
4971 | ac_cv_prog_cxx_g=no | |
4972 | CXXFLAGS="-g" | |
81ecdfbb | 4973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4974 | /* end confdefs.h. */ |
d7040cdb | 4975 | |
ce2cded5 L |
4976 | int |
4977 | main () | |
4978 | { | |
d7040cdb | 4979 | |
ce2cded5 L |
4980 | ; |
4981 | return 0; | |
4982 | } | |
4983 | _ACEOF | |
b879806f AM |
4984 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4985 | ac_cv_prog_cxx_g=yes | |
ce2cded5 | 4986 | else |
b879806f | 4987 | CXXFLAGS="" |
81ecdfbb RW |
4988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4989 | /* end confdefs.h. */ | |
4990 | ||
4991 | int | |
4992 | main () | |
4993 | { | |
4994 | ||
4995 | ; | |
4996 | return 0; | |
4997 | } | |
4998 | _ACEOF | |
b879806f | 4999 | if ac_fn_cxx_try_compile "$LINENO"; then : |
81ecdfbb RW |
5000 | |
5001 | else | |
b879806f AM |
5002 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5003 | CXXFLAGS="-g" | |
81ecdfbb RW |
5004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5005 | /* end confdefs.h. */ | |
5006 | ||
5007 | int | |
5008 | main () | |
5009 | { | |
d7040cdb | 5010 | |
81ecdfbb RW |
5011 | ; |
5012 | return 0; | |
5013 | } | |
5014 | _ACEOF | |
b879806f AM |
5015 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5016 | ac_cv_prog_cxx_g=yes | |
81ecdfbb RW |
5017 | fi |
5018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5019 | fi | |
5020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 5021 | fi |
81ecdfbb | 5022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b879806f | 5023 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
ce2cded5 | 5024 | fi |
b879806f AM |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
5026 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5027 | if test "$ac_test_CXXFLAGS" = set; then | |
5028 | CXXFLAGS=$ac_save_CXXFLAGS | |
5029 | elif test $ac_cv_prog_cxx_g = yes; then | |
5030 | if test "$GXX" = yes; then | |
5031 | CXXFLAGS="-g -O2" | |
ce2cded5 | 5032 | else |
b879806f | 5033 | CXXFLAGS="-g" |
ce2cded5 | 5034 | fi |
d7040cdb | 5035 | else |
b879806f AM |
5036 | if test "$GXX" = yes; then |
5037 | CXXFLAGS="-O2" | |
ce2cded5 | 5038 | else |
b879806f | 5039 | CXXFLAGS= |
ce2cded5 | 5040 | fi |
d7040cdb | 5041 | fi |
b879806f AM |
5042 | ac_ext=c |
5043 | ac_cpp='$CPP $CPPFLAGS' | |
5044 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5045 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5046 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5047 | ||
5048 | depcc="$CXX" am_compiler_list= | |
5049 | ||
5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5051 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5052 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
81ecdfbb | 5053 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5054 | else |
b879806f AM |
5055 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5056 | # We make a subdir and do the tests there. Otherwise we can end up | |
5057 | # making bogus files that we don't know about and never remove. For | |
5058 | # instance it was reported that on HP-UX the gcc test will end up | |
5059 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5060 | # in D'. | |
5061 | mkdir conftest.dir | |
5062 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5063 | # using a relative directory. | |
5064 | cp "$am_depcomp" conftest.dir | |
5065 | cd conftest.dir | |
5066 | # We will build objects and dependencies in a subdirectory because | |
5067 | # it helps to detect inapplicable dependency modes. For instance | |
5068 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5069 | # side effect of compilation, but ICC will put the dependencies in | |
5070 | # the current directory while Tru64 will put them in the object | |
5071 | # directory. | |
5072 | mkdir sub | |
d7040cdb | 5073 | |
b879806f AM |
5074 | am_cv_CXX_dependencies_compiler_type=none |
5075 | if test "$am_compiler_list" = ""; then | |
5076 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5077 | fi | |
5078 | am__universal=false | |
5079 | case " $depcc " in #( | |
5080 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5081 | esac | |
d7040cdb | 5082 | |
b879806f AM |
5083 | for depmode in $am_compiler_list; do |
5084 | # Setup a source with many dependencies, because some compilers | |
5085 | # like to wrap large dependency lists on column 80 (with \), and | |
5086 | # we should not choose a depcomp mode which is confused by this. | |
5087 | # | |
5088 | # We need to recreate these files for each test, as the compiler may | |
5089 | # overwrite some of them when testing with obscure command lines. | |
5090 | # This happens at least with the AIX C compiler. | |
5091 | : > sub/conftest.c | |
5092 | for i in 1 2 3 4 5 6; do | |
5093 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5094 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5095 | # Solaris 8's {/usr,}/bin/sh. | |
5096 | touch sub/conftst$i.h | |
5097 | done | |
5098 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
81ecdfbb | 5099 | |
b879806f AM |
5100 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5101 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5102 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5103 | # versions had trouble with output in subdirs | |
5104 | am__obj=sub/conftest.${OBJEXT-o} | |
5105 | am__minus_obj="-o $am__obj" | |
5106 | case $depmode in | |
5107 | gcc) | |
5108 | # This depmode causes a compiler race in universal mode. | |
5109 | test "$am__universal" = false || continue | |
5110 | ;; | |
5111 | nosideeffect) | |
5112 | # after this tag, mechanisms are not by side-effect, so they'll | |
5113 | # only be used when explicitly requested | |
5114 | if test "x$enable_dependency_tracking" = xyes; then | |
5115 | continue | |
5116 | else | |
5117 | break | |
5118 | fi | |
5119 | ;; | |
5120 | msvisualcpp | msvcmsys) | |
5121 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5122 | # not run yet. These depmodes are late enough in the game, and | |
5123 | # so weak that their functioning should not be impacted. | |
5124 | am__obj=conftest.${OBJEXT-o} | |
5125 | am__minus_obj= | |
5126 | ;; | |
5127 | none) break ;; | |
5128 | esac | |
5129 | if depmode=$depmode \ | |
5130 | source=sub/conftest.c object=$am__obj \ | |
5131 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5132 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5133 | >/dev/null 2>conftest.err && | |
5134 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5135 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5136 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5137 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5138 | # icc doesn't choke on unknown options, it will just issue warnings | |
5139 | # or remarks (even with -Werror). So we grep stderr for any message | |
5140 | # that says an option was ignored or not supported. | |
5141 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5142 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5143 | # The diagnosis changed in icc 8.0: | |
5144 | # icc: Command line remark: option '-MP' not supported | |
5145 | if (grep 'ignoring option' conftest.err || | |
5146 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5147 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5148 | break | |
5149 | fi | |
5150 | fi | |
5151 | done | |
5152 | ||
5153 | cd .. | |
5154 | rm -rf conftest.dir | |
5155 | else | |
5156 | am_cv_CXX_dependencies_compiler_type=none | |
ce2cded5 | 5157 | fi |
d7040cdb | 5158 | |
ce2cded5 | 5159 | fi |
b879806f AM |
5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5161 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5162 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
d7040cdb | 5163 | |
b879806f AM |
5164 | if |
5165 | test "x$enable_dependency_tracking" != xno \ | |
5166 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5167 | am__fastdepCXX_TRUE= | |
5168 | am__fastdepCXX_FALSE='#' | |
5169 | else | |
5170 | am__fastdepCXX_TRUE='#' | |
5171 | am__fastdepCXX_FALSE= | |
ce2cded5 | 5172 | fi |
d7040cdb | 5173 | |
b879806f | 5174 | |
ce2cded5 L |
5175 | ac_ext=c |
5176 | ac_cpp='$CPP $CPPFLAGS' | |
5177 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5178 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5179 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b879806f AM |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5181 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5182 | # On Suns, sometimes $CPP names a directory. | |
5183 | if test -n "$CPP" && test -d "$CPP"; then | |
5184 | CPP= | |
7357c5b6 | 5185 | fi |
b879806f AM |
5186 | if test -z "$CPP"; then |
5187 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
3cb62297 L |
5188 | $as_echo_n "(cached) " >&6 |
5189 | else | |
b879806f AM |
5190 | # Double quotes because CPP needs to be expanded |
5191 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5192 | do | |
5193 | ac_preproc_ok=false | |
5194 | for ac_c_preproc_warn_flag in '' yes | |
3cb62297 | 5195 | do |
b879806f AM |
5196 | # Use a header file that comes with gcc, so configuring glibc |
5197 | # with a fresh cross-compiler works. | |
5198 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5199 | # <limits.h> exists even on freestanding compilers. | |
5200 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5201 | # not just through cpp. "Syntax error" is here to catch this case. | |
5202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5203 | /* end confdefs.h. */ | |
5204 | #ifdef __STDC__ | |
5205 | # include <limits.h> | |
5206 | #else | |
5207 | # include <assert.h> | |
5208 | #endif | |
5209 | Syntax error | |
5210 | _ACEOF | |
5211 | if ac_fn_c_try_cpp "$LINENO"; then : | |
252b5132 | 5212 | |
3cb62297 | 5213 | else |
b879806f AM |
5214 | # Broken: fails on valid input. |
5215 | continue | |
7357c5b6 | 5216 | fi |
b879806f | 5217 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 5218 | |
b879806f AM |
5219 | # OK, works on sane cases. Now check whether nonexistent headers |
5220 | # can be detected and how. | |
5221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5222 | /* end confdefs.h. */ | |
5223 | #include <ac_nonexistent.h> | |
5224 | _ACEOF | |
5225 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5226 | # Broken: success on invalid input. | |
5227 | continue | |
5228 | else | |
5229 | # Passes both tests. | |
5230 | ac_preproc_ok=: | |
5231 | break | |
5232 | fi | |
5233 | rm -f conftest.err conftest.$ac_ext | |
42ecbf5e | 5234 | |
3cb62297 | 5235 | done |
b879806f AM |
5236 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5237 | rm -f conftest.err conftest.$ac_ext | |
5238 | if $ac_preproc_ok; then : | |
5239 | break | |
7357c5b6 | 5240 | fi |
ac48eca1 | 5241 | |
b879806f AM |
5242 | done |
5243 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 5244 | |
b879806f AM |
5245 | fi |
5246 | CPP=$ac_cv_prog_CPP | |
7357c5b6 | 5247 | else |
b879806f AM |
5248 | ac_cv_prog_CPP=$CPP |
5249 | fi | |
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5251 | $as_echo "$CPP" >&6; } | |
5252 | ac_preproc_ok=false | |
5253 | for ac_c_preproc_warn_flag in '' yes | |
5254 | do | |
5255 | # Use a header file that comes with gcc, so configuring glibc | |
5256 | # with a fresh cross-compiler works. | |
5257 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5258 | # <limits.h> exists even on freestanding compilers. | |
5259 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5260 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 5262 | /* end confdefs.h. */ |
b879806f AM |
5263 | #ifdef __STDC__ |
5264 | # include <limits.h> | |
5265 | #else | |
5266 | # include <assert.h> | |
3cb62297 | 5267 | #endif |
b879806f | 5268 | Syntax error |
7357c5b6 | 5269 | _ACEOF |
b879806f AM |
5270 | if ac_fn_c_try_cpp "$LINENO"; then : |
5271 | ||
81ecdfbb | 5272 | else |
b879806f AM |
5273 | # Broken: fails on valid input. |
5274 | continue | |
7357c5b6 | 5275 | fi |
b879806f | 5276 | rm -f conftest.err conftest.$ac_ext |
81ecdfbb | 5277 | |
b879806f AM |
5278 | # OK, works on sane cases. Now check whether nonexistent headers |
5279 | # can be detected and how. | |
5280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5281 | /* end confdefs.h. */ | |
5282 | #include <ac_nonexistent.h> | |
5283 | _ACEOF | |
5284 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5285 | # Broken: success on invalid input. | |
5286 | continue | |
3cb62297 | 5287 | else |
b879806f AM |
5288 | # Passes both tests. |
5289 | ac_preproc_ok=: | |
5290 | break | |
7357c5b6 | 5291 | fi |
b879806f | 5292 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 5293 | |
b879806f AM |
5294 | done |
5295 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5296 | rm -f conftest.err conftest.$ac_ext | |
5297 | if $ac_preproc_ok; then : | |
252b5132 | 5298 | |
3cb62297 | 5299 | else |
b879806f AM |
5300 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5301 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5302 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5303 | See \`config.log' for more details." "$LINENO" 5; } | |
5304 | fi | |
42ecbf5e | 5305 | |
b879806f AM |
5306 | ac_ext=c |
5307 | ac_cpp='$CPP $CPPFLAGS' | |
5308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e DJ |
5311 | |
5312 | ||
b879806f AM |
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5314 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5315 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5316 | $as_echo_n "(cached) " >&6 | |
3cb62297 | 5317 | else |
b879806f AM |
5318 | if test -z "$GREP"; then |
5319 | ac_path_GREP_found=false | |
5320 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5322 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5323 | do | |
5324 | IFS=$as_save_IFS | |
5325 | test -z "$as_dir" && as_dir=. | |
5326 | for ac_prog in grep ggrep; do | |
5327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5328 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5329 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5330 | # Check for GNU ac_path_GREP and select it if it is found. | |
5331 | # Check for GNU $ac_path_GREP | |
5332 | case `"$ac_path_GREP" --version 2>&1` in | |
5333 | *GNU*) | |
5334 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5335 | *) | |
5336 | ac_count=0 | |
5337 | $as_echo_n 0123456789 >"conftest.in" | |
5338 | while : | |
5339 | do | |
5340 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5341 | mv "conftest.tmp" "conftest.in" | |
5342 | cp "conftest.in" "conftest.nl" | |
5343 | $as_echo 'GREP' >> "conftest.nl" | |
5344 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5345 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5346 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5347 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5348 | # Best one so far, save it but keep looking for a better one | |
5349 | ac_cv_path_GREP="$ac_path_GREP" | |
5350 | ac_path_GREP_max=$ac_count | |
5351 | fi | |
5352 | # 10*(2^10) chars as input seems more than enough | |
5353 | test $ac_count -gt 10 && break | |
5354 | done | |
5355 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5356 | esac | |
5357 | ||
5358 | $ac_path_GREP_found && break 3 | |
5359 | done | |
5360 | done | |
5361 | done | |
5362 | IFS=$as_save_IFS | |
5363 | if test -z "$ac_cv_path_GREP"; then | |
5364 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5365 | fi | |
5366 | else | |
5367 | ac_cv_path_GREP=$GREP | |
5368 | fi | |
5369 | ||
5370 | fi | |
5371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5372 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5373 | GREP="$ac_cv_path_GREP" | |
5374 | ||
5375 | ||
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5377 | $as_echo_n "checking for egrep... " >&6; } | |
5378 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5379 | $as_echo_n "(cached) " >&6 | |
5380 | else | |
5381 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5382 | then ac_cv_path_EGREP="$GREP -E" | |
5383 | else | |
5384 | if test -z "$EGREP"; then | |
5385 | ac_path_EGREP_found=false | |
5386 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5388 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5389 | do | |
5390 | IFS=$as_save_IFS | |
5391 | test -z "$as_dir" && as_dir=. | |
5392 | for ac_prog in egrep; do | |
5393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5394 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5395 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5396 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5397 | # Check for GNU $ac_path_EGREP | |
5398 | case `"$ac_path_EGREP" --version 2>&1` in | |
5399 | *GNU*) | |
5400 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5401 | *) | |
5402 | ac_count=0 | |
5403 | $as_echo_n 0123456789 >"conftest.in" | |
5404 | while : | |
5405 | do | |
5406 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5407 | mv "conftest.tmp" "conftest.in" | |
5408 | cp "conftest.in" "conftest.nl" | |
5409 | $as_echo 'EGREP' >> "conftest.nl" | |
5410 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5411 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5412 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5413 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5414 | # Best one so far, save it but keep looking for a better one | |
5415 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5416 | ac_path_EGREP_max=$ac_count | |
5417 | fi | |
5418 | # 10*(2^10) chars as input seems more than enough | |
5419 | test $ac_count -gt 10 && break | |
5420 | done | |
5421 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5422 | esac | |
5423 | ||
5424 | $ac_path_EGREP_found && break 3 | |
5425 | done | |
5426 | done | |
5427 | done | |
5428 | IFS=$as_save_IFS | |
5429 | if test -z "$ac_cv_path_EGREP"; then | |
5430 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5431 | fi | |
5432 | else | |
5433 | ac_cv_path_EGREP=$EGREP | |
5434 | fi | |
5435 | ||
5436 | fi | |
5437 | fi | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5439 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5440 | EGREP="$ac_cv_path_EGREP" | |
5441 | ||
5442 | ||
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5444 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5445 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5446 | $as_echo_n "(cached) " >&6 | |
5447 | else | |
5448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3cb62297 | 5449 | /* end confdefs.h. */ |
b879806f AM |
5450 | #include <stdlib.h> |
5451 | #include <stdarg.h> | |
5452 | #include <string.h> | |
5453 | #include <float.h> | |
42ecbf5e | 5454 | |
3cb62297 L |
5455 | int |
5456 | main () | |
5457 | { | |
42ecbf5e | 5458 | |
3cb62297 L |
5459 | ; |
5460 | return 0; | |
5461 | } | |
5462 | _ACEOF | |
b879806f AM |
5463 | if ac_fn_c_try_compile "$LINENO"; then : |
5464 | ac_cv_header_stdc=yes | |
5465 | else | |
5466 | ac_cv_header_stdc=no | |
3cb62297 L |
5467 | fi |
5468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b879806f AM |
5469 | |
5470 | if test $ac_cv_header_stdc = yes; then | |
5471 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5473 | /* end confdefs.h. */ | |
5474 | #include <string.h> | |
5475 | ||
5476 | _ACEOF | |
5477 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5478 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5479 | ||
5480 | else | |
5481 | ac_cv_header_stdc=no | |
3cb62297 | 5482 | fi |
b879806f AM |
5483 | rm -f conftest* |
5484 | ||
3cb62297 | 5485 | fi |
b879806f AM |
5486 | |
5487 | if test $ac_cv_header_stdc = yes; then | |
5488 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5490 | /* end confdefs.h. */ | |
5491 | #include <stdlib.h> | |
5492 | ||
5493 | _ACEOF | |
5494 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5495 | $EGREP "free" >/dev/null 2>&1; then : | |
5496 | ||
ce2cded5 | 5497 | else |
b879806f | 5498 | ac_cv_header_stdc=no |
ce2cded5 | 5499 | fi |
b879806f | 5500 | rm -f conftest* |
42ecbf5e | 5501 | |
b879806f | 5502 | fi |
e5a52504 | 5503 | |
b879806f AM |
5504 | if test $ac_cv_header_stdc = yes; then |
5505 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5506 | if test "$cross_compiling" = yes; then : | |
5507 | : | |
3cb62297 | 5508 | else |
b879806f AM |
5509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5510 | /* end confdefs.h. */ | |
5511 | #include <ctype.h> | |
5512 | #include <stdlib.h> | |
5513 | #if ((' ' & 0x0FF) == 0x020) | |
5514 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5515 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5516 | #else | |
5517 | # define ISLOWER(c) \ | |
5518 | (('a' <= (c) && (c) <= 'i') \ | |
5519 | || ('j' <= (c) && (c) <= 'r') \ | |
5520 | || ('s' <= (c) && (c) <= 'z')) | |
5521 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5522 | #endif | |
3cb62297 L |
5523 | |
5524 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5525 | int | |
5526 | main () | |
5527 | { | |
5528 | int i; | |
5529 | for (i = 0; i < 256; i++) | |
5530 | if (XOR (islower (i), ISLOWER (i)) | |
5531 | || toupper (i) != TOUPPER (i)) | |
5532 | return 2; | |
5533 | return 0; | |
5534 | } | |
5535 | _ACEOF | |
5536 | if ac_fn_c_try_run "$LINENO"; then : | |
5537 | ||
5538 | else | |
5539 | ac_cv_header_stdc=no | |
5540 | fi | |
5541 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5542 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5543 | fi | |
5544 | ||
5545 | fi | |
5546 | fi | |
5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5548 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5549 | if test $ac_cv_header_stdc = yes; then | |
5550 | ||
5551 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5552 | ||
5553 | fi | |
5554 | ||
5555 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5556 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5557 | inttypes.h stdint.h unistd.h | |
5558 | do : | |
5559 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5560 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5561 | " | |
5562 | eval as_val=\$$as_ac_Header | |
5563 | if test "x$as_val" = x""yes; then : | |
5564 | cat >>confdefs.h <<_ACEOF | |
5565 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5566 | _ACEOF | |
5567 | ||
5568 | fi | |
5569 | ||
5570 | done | |
5571 | ||
5572 | ||
5573 | ||
5574 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
5575 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5576 | MINIX=yes | |
5577 | else | |
5578 | MINIX= | |
5579 | fi | |
5580 | ||
5581 | ||
5582 | if test "$MINIX" = yes; then | |
5583 | ||
5584 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5585 | ||
5586 | ||
5587 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5588 | ||
5589 | ||
5590 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5591 | ||
5592 | fi | |
5593 | ||
5594 | ||
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5596 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5597 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5598 | $as_echo_n "(cached) " >&6 | |
5599 | else | |
5600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5601 | /* end confdefs.h. */ | |
5602 | ||
5603 | # define __EXTENSIONS__ 1 | |
5604 | $ac_includes_default | |
5605 | int | |
5606 | main () | |
5607 | { | |
5608 | ||
5609 | ; | |
5610 | return 0; | |
5611 | } | |
5612 | _ACEOF | |
5613 | if ac_fn_c_try_compile "$LINENO"; then : | |
5614 | ac_cv_safe_to_define___extensions__=yes | |
5615 | else | |
5616 | ac_cv_safe_to_define___extensions__=no | |
5617 | fi | |
5618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5619 | fi | |
5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5621 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5622 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5623 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5624 | ||
5625 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5626 | ||
5627 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5628 | ||
5629 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5630 | ||
5631 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5632 | ||
5633 | ||
5634 | ||
5635 | ||
5636 | ||
3cb62297 | 5637 | |
b879806f AM |
5638 | case `pwd` in |
5639 | *\ * | *\ *) | |
5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5641 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5642 | esac | |
3cb62297 L |
5643 | |
5644 | ||
da2f07f1 | 5645 | |
b879806f AM |
5646 | macro_version='2.2.7a' |
5647 | macro_revision='1.3134' | |
d7040cdb | 5648 | |
d7040cdb SE |
5649 | |
5650 | ||
d7040cdb | 5651 | |
d7040cdb | 5652 | |
42ecbf5e | 5653 | |
d7040cdb | 5654 | |
252b5132 | 5655 | |
252b5132 | 5656 | |
252b5132 | 5657 | |
252b5132 RH |
5658 | |
5659 | ||
ce2cded5 | 5660 | |
b214d478 | 5661 | ltmain="$ac_aux_dir/ltmain.sh" |
ce2cded5 | 5662 | |
3725885a RW |
5663 | # Backslashify metacharacters that are still active within |
5664 | # double-quoted strings. | |
5665 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5666 | ||
5667 | # Same as above, but do not quote variable references. | |
5668 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5669 | ||
5670 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5671 | # double_quote_subst'ed string. | |
5672 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5673 | ||
5674 | # Sed substitution to delay expansion of an escaped single quote. | |
5675 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5676 | ||
5677 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5678 | no_glob_subst='s/\*/\\\*/g' | |
5679 | ||
5680 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5681 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5682 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5683 | ||
5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5685 | $as_echo_n "checking how to print strings... " >&6; } | |
5686 | # Test print first, because it will be a builtin if present. | |
5687 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5688 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5689 | ECHO='print -r --' | |
5690 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5691 | ECHO='printf %s\n' | |
5692 | else | |
5693 | # Use this function as a fallback that always works. | |
5694 | func_fallback_echo () | |
5695 | { | |
5696 | eval 'cat <<_LTECHO_EOF | |
5697 | $1 | |
5698 | _LTECHO_EOF' | |
5699 | } | |
5700 | ECHO='func_fallback_echo' | |
5701 | fi | |
5702 | ||
5703 | # func_echo_all arg... | |
5704 | # Invoke $ECHO with all args, space-separated. | |
5705 | func_echo_all () | |
5706 | { | |
5707 | $ECHO "" | |
5708 | } | |
5709 | ||
5710 | case "$ECHO" in | |
5711 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5712 | $as_echo "printf" >&6; } ;; | |
5713 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5714 | $as_echo "print -r" >&6; } ;; | |
5715 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5716 | $as_echo "cat" >&6; } ;; | |
5717 | esac | |
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | ||
5729 | ||
5730 | ||
5731 | ||
81ecdfbb RW |
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5733 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5734 | if test "${ac_cv_path_SED+set}" = set; then : | |
5735 | $as_echo_n "(cached) " >&6 | |
5736 | else | |
5737 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5738 | for ac_i in 1 2 3 4 5 6 7; do | |
5739 | ac_script="$ac_script$as_nl$ac_script" | |
5740 | done | |
5741 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5742 | { ac_script=; unset ac_script;} | |
5743 | if test -z "$SED"; then | |
5744 | ac_path_SED_found=false | |
5745 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5747 | for as_dir in $PATH |
5748 | do | |
5749 | IFS=$as_save_IFS | |
5750 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5751 | for ac_prog in sed gsed; do |
7357c5b6 | 5752 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5753 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5754 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5755 | # Check for GNU ac_path_SED and select it if it is found. | |
5756 | # Check for GNU $ac_path_SED | |
5757 | case `"$ac_path_SED" --version 2>&1` in | |
5758 | *GNU*) | |
5759 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5760 | *) | |
5761 | ac_count=0 | |
5762 | $as_echo_n 0123456789 >"conftest.in" | |
5763 | while : | |
5764 | do | |
5765 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5766 | mv "conftest.tmp" "conftest.in" | |
5767 | cp "conftest.in" "conftest.nl" | |
5768 | $as_echo '' >> "conftest.nl" | |
5769 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5770 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5771 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5772 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5773 | # Best one so far, save it but keep looking for a better one | |
5774 | ac_cv_path_SED="$ac_path_SED" | |
5775 | ac_path_SED_max=$ac_count | |
5776 | fi | |
5777 | # 10*(2^10) chars as input seems more than enough | |
5778 | test $ac_count -gt 10 && break | |
5779 | done | |
5780 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5781 | esac | |
5782 | ||
5783 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5784 | done |
5785 | done | |
81ecdfbb | 5786 | done |
7357c5b6 | 5787 | IFS=$as_save_IFS |
81ecdfbb RW |
5788 | if test -z "$ac_cv_path_SED"; then |
5789 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
ce2cded5 | 5790 | fi |
81ecdfbb RW |
5791 | else |
5792 | ac_cv_path_SED=$SED | |
7357c5b6 | 5793 | fi |
20e95c23 | 5794 | |
81ecdfbb RW |
5795 | fi |
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5797 | $as_echo "$ac_cv_path_SED" >&6; } | |
5798 | SED="$ac_cv_path_SED" | |
5799 | rm -f conftest.sed | |
20e95c23 | 5800 | |
7357c5b6 AM |
5801 | test -z "$SED" && SED=sed |
5802 | Xsed="$SED -e 1s/^X//" | |
20e95c23 DJ |
5803 | |
5804 | ||
5805 | ||
5806 | ||
5807 | ||
5808 | ||
20e95c23 | 5809 | |
20e95c23 | 5810 | |
d7040cdb | 5811 | |
d7040cdb | 5812 | |
7357c5b6 | 5813 | |
81ecdfbb RW |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5815 | $as_echo_n "checking for fgrep... " >&6; } | |
5816 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5817 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5818 | else |
81ecdfbb RW |
5819 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5820 | then ac_cv_path_FGREP="$GREP -F" | |
5821 | else | |
5822 | if test -z "$FGREP"; then | |
5823 | ac_path_FGREP_found=false | |
5824 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5826 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5827 | do | |
5828 | IFS=$as_save_IFS | |
5829 | test -z "$as_dir" && as_dir=. | |
5830 | for ac_prog in fgrep; do | |
5831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5832 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5833 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5834 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5835 | # Check for GNU $ac_path_FGREP | |
5836 | case `"$ac_path_FGREP" --version 2>&1` in | |
5837 | *GNU*) | |
5838 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5839 | *) | |
5840 | ac_count=0 | |
5841 | $as_echo_n 0123456789 >"conftest.in" | |
5842 | while : | |
5843 | do | |
5844 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5845 | mv "conftest.tmp" "conftest.in" | |
5846 | cp "conftest.in" "conftest.nl" | |
5847 | $as_echo 'FGREP' >> "conftest.nl" | |
5848 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5849 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5850 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5851 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5852 | # Best one so far, save it but keep looking for a better one | |
5853 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5854 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5855 | fi |
81ecdfbb RW |
5856 | # 10*(2^10) chars as input seems more than enough |
5857 | test $ac_count -gt 10 && break | |
5858 | done | |
5859 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5860 | esac | |
5861 | ||
5862 | $ac_path_FGREP_found && break 3 | |
5863 | done | |
5864 | done | |
5865 | done | |
5866 | IFS=$as_save_IFS | |
5867 | if test -z "$ac_cv_path_FGREP"; then | |
5868 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5869 | fi | |
5870 | else | |
5871 | ac_cv_path_FGREP=$FGREP | |
5872 | fi | |
5873 | ||
5874 | fi | |
20e95c23 | 5875 | fi |
81ecdfbb RW |
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5877 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5878 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5879 | |
5880 | ||
5881 | test -z "$GREP" && GREP=grep | |
5882 | ||
d7040cdb SE |
5883 | |
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | ||
5893 | ||
20e95c23 | 5894 | |
ce2cded5 | 5895 | |
d7040cdb | 5896 | |
7357c5b6 AM |
5897 | |
5898 | ||
5899 | ||
5900 | ||
81ecdfbb RW |
5901 | # Check whether --with-gnu-ld was given. |
5902 | if test "${with_gnu_ld+set}" = set; then : | |
5903 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5904 | else |
5905 | with_gnu_ld=no | |
81ecdfbb RW |
5906 | fi |
5907 | ||
7357c5b6 AM |
5908 | ac_prog=ld |
5909 | if test "$GCC" = yes; then | |
5910 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5912 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
5913 | case $host in |
5914 | *-*-mingw*) | |
5915 | # gcc leaves a trailing carriage return which upsets mingw | |
5916 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5917 | *) | |
5918 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5919 | esac | |
5920 | case $ac_prog in | |
5921 | # Accept absolute paths. | |
5922 | [\\/]* | ?:[\\/]*) | |
5923 | re_direlt='/[^/][^/]*/\.\./' | |
5924 | # Canonicalize the pathname of ld | |
5925 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5926 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5927 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5928 | done | |
5929 | test -z "$LD" && LD="$ac_prog" | |
5930 | ;; | |
5931 | "") | |
5932 | # If it fails, then pretend we aren't using GCC. | |
5933 | ac_prog=ld | |
5934 | ;; | |
5935 | *) | |
5936 | # If it is relative, then search for the first ld in PATH. | |
5937 | with_gnu_ld=unknown | |
5938 | ;; | |
5939 | esac | |
5940 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5942 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357c5b6 | 5943 | else |
81ecdfbb RW |
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5945 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 5946 | fi |
81ecdfbb RW |
5947 | if test "${lt_cv_path_LD+set}" = set; then : |
5948 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5949 | else |
7357c5b6 AM |
5950 | if test -z "$LD"; then |
5951 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5952 | for ac_dir in $PATH; do | |
5953 | IFS="$lt_save_ifs" | |
5954 | test -z "$ac_dir" && ac_dir=. | |
5955 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5956 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5957 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5958 | # but apparently some variants of GNU ld only accept -v. | |
5959 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5960 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5961 | *GNU* | *'with BFD'*) | |
5962 | test "$with_gnu_ld" != no && break | |
5963 | ;; | |
5964 | *) | |
5965 | test "$with_gnu_ld" != yes && break | |
5966 | ;; | |
5967 | esac | |
5968 | fi | |
5969 | done | |
5970 | IFS="$lt_save_ifs" | |
ce2cded5 | 5971 | else |
7357c5b6 | 5972 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ce2cded5 L |
5973 | fi |
5974 | fi | |
7357c5b6 AM |
5975 | |
5976 | LD="$lt_cv_path_LD" | |
5977 | if test -n "$LD"; then | |
81ecdfbb RW |
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5979 | $as_echo "$LD" >&6; } | |
ce2cded5 | 5980 | else |
81ecdfbb RW |
5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5982 | $as_echo "no" >&6; } | |
ce2cded5 | 5983 | fi |
81ecdfbb RW |
5984 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5986 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5987 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5988 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5989 | else |
7357c5b6 AM |
5990 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5991 | case `$LD -v 2>&1 </dev/null` in | |
5992 | *GNU* | *'with BFD'*) | |
5993 | lt_cv_prog_gnu_ld=yes | |
5994 | ;; | |
5995 | *) | |
5996 | lt_cv_prog_gnu_ld=no | |
5997 | ;; | |
5998 | esac | |
ce2cded5 | 5999 | fi |
81ecdfbb RW |
6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
6001 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7357c5b6 | 6002 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
6003 | |
6004 | ||
6005 | ||
6006 | ||
6007 | ||
6008 | ||
6009 | ||
6010 | ||
6011 | ||
81ecdfbb RW |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6013 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6014 | if test "${lt_cv_path_NM+set}" = set; then : | |
6015 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6016 | else |
7357c5b6 AM |
6017 | if test -n "$NM"; then |
6018 | # Let the user override the test. | |
6019 | lt_cv_path_NM="$NM" | |
ce2cded5 | 6020 | else |
7357c5b6 AM |
6021 | lt_nm_to_check="${ac_tool_prefix}nm" |
6022 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6023 | lt_nm_to_check="$lt_nm_to_check nm" | |
20e95c23 | 6024 | fi |
7357c5b6 AM |
6025 | for lt_tmp_nm in $lt_nm_to_check; do |
6026 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6027 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6028 | IFS="$lt_save_ifs" | |
6029 | test -z "$ac_dir" && ac_dir=. | |
6030 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6031 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6032 | # Check to see if the nm accepts a BSD-compat flag. | |
6033 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6034 | # nm: unknown option "B" ignored | |
6035 | # Tru64's nm complains that /dev/null is an invalid object file | |
6036 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6037 | */dev/null* | *'Invalid file or object type'*) | |
6038 | lt_cv_path_NM="$tmp_nm -B" | |
6039 | break | |
6040 | ;; | |
6041 | *) | |
6042 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6043 | */dev/null*) | |
6044 | lt_cv_path_NM="$tmp_nm -p" | |
6045 | break | |
6046 | ;; | |
6047 | *) | |
6048 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6049 | continue # so that we can try to find one that supports BSD flags | |
6050 | ;; | |
6051 | esac | |
6052 | ;; | |
6053 | esac | |
6054 | fi | |
6055 | done | |
6056 | IFS="$lt_save_ifs" | |
6057 | done | |
6058 | : ${lt_cv_path_NM=no} | |
ce2cded5 L |
6059 | fi |
6060 | fi | |
81ecdfbb RW |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
6062 | $as_echo "$lt_cv_path_NM" >&6; } | |
7357c5b6 AM |
6063 | if test "$lt_cv_path_NM" != "no"; then |
6064 | NM="$lt_cv_path_NM" | |
ce2cded5 | 6065 | else |
7357c5b6 | 6066 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
6067 | if test -n "$DUMPBIN"; then : |
6068 | # Let the user override the test. | |
6069 | else | |
6070 | if test -n "$ac_tool_prefix"; then | |
6071 | for ac_prog in dumpbin "link -dump" | |
7357c5b6 AM |
6072 | do |
6073 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6074 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6076 | $as_echo_n "checking for $ac_word... " >&6; } | |
6077 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
6078 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6079 | else |
7357c5b6 AM |
6080 | if test -n "$DUMPBIN"; then |
6081 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6082 | else |
6083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6084 | for as_dir in $PATH | |
6085 | do | |
6086 | IFS=$as_save_IFS | |
6087 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6088 | for ac_exec_ext in '' $ac_executable_extensions; do |
6089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6090 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 6091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6092 | break 2 |
6093 | fi | |
6094 | done | |
81ecdfbb RW |
6095 | done |
6096 | IFS=$as_save_IFS | |
d7040cdb | 6097 | |
20e95c23 | 6098 | fi |
ce2cded5 | 6099 | fi |
7357c5b6 AM |
6100 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6101 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
6103 | $as_echo "$DUMPBIN" >&6; } | |
42ecbf5e | 6104 | else |
81ecdfbb RW |
6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6106 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6107 | fi |
6108 | ||
81ecdfbb | 6109 | |
7357c5b6 AM |
6110 | test -n "$DUMPBIN" && break |
6111 | done | |
ce2cded5 | 6112 | fi |
7357c5b6 AM |
6113 | if test -z "$DUMPBIN"; then |
6114 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 6115 | for ac_prog in dumpbin "link -dump" |
7357c5b6 AM |
6116 | do |
6117 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6118 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6120 | $as_echo_n "checking for $ac_word... " >&6; } | |
6121 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
6122 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 6123 | else |
7357c5b6 AM |
6124 | if test -n "$ac_ct_DUMPBIN"; then |
6125 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6126 | else |
6127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6128 | for as_dir in $PATH | |
6129 | do | |
6130 | IFS=$as_save_IFS | |
6131 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6132 | for ac_exec_ext in '' $ac_executable_extensions; do |
6133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6134 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 6135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6136 | break 2 |
6137 | fi | |
6138 | done | |
81ecdfbb RW |
6139 | done |
6140 | IFS=$as_save_IFS | |
d7040cdb | 6141 | |
ce2cded5 L |
6142 | fi |
6143 | fi | |
7357c5b6 AM |
6144 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6145 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6147 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 6148 | else |
81ecdfbb RW |
6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6150 | $as_echo "no" >&6; } | |
ce2cded5 | 6151 | fi |
d7040cdb | 6152 | |
81ecdfbb | 6153 | |
7357c5b6 | 6154 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 | 6155 | done |
d7040cdb | 6156 | |
81ecdfbb RW |
6157 | if test "x$ac_ct_DUMPBIN" = x; then |
6158 | DUMPBIN=":" | |
6159 | else | |
6160 | case $cross_compiling:$ac_tool_warned in | |
6161 | yes:) | |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6163 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6164 | ac_tool_warned=yes ;; | |
6165 | esac | |
6166 | DUMPBIN=$ac_ct_DUMPBIN | |
6167 | fi | |
ce2cded5 | 6168 | fi |
7357c5b6 | 6169 | |
3725885a RW |
6170 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6171 | *COFF*) | |
6172 | DUMPBIN="$DUMPBIN -symbols" | |
6173 | ;; | |
6174 | *) | |
6175 | DUMPBIN=: | |
6176 | ;; | |
6177 | esac | |
6178 | fi | |
7357c5b6 AM |
6179 | |
6180 | if test "$DUMPBIN" != ":"; then | |
6181 | NM="$DUMPBIN" | |
6182 | fi | |
ce2cded5 | 6183 | fi |
7357c5b6 AM |
6184 | test -z "$NM" && NM=nm |
6185 | ||
6186 | ||
6187 | ||
6188 | ||
6189 | ||
6190 | ||
81ecdfbb RW |
6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6192 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6193 | if test "${lt_cv_nm_interface+set}" = set; then : | |
6194 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6195 | else |
7357c5b6 AM |
6196 | lt_cv_nm_interface="BSD nm" |
6197 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 6198 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
7357c5b6 AM |
6199 | (eval "$ac_compile" 2>conftest.err) |
6200 | cat conftest.err >&5 | |
3725885a | 6201 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7357c5b6 AM |
6202 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6203 | cat conftest.err >&5 | |
3725885a | 6204 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
7357c5b6 AM |
6205 | cat conftest.out >&5 |
6206 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6207 | lt_cv_nm_interface="MS dumpbin" | |
6208 | fi | |
6209 | rm -f conftest* | |
20e95c23 | 6210 | fi |
81ecdfbb RW |
6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6212 | $as_echo "$lt_cv_nm_interface" >&6; } | |
20e95c23 | 6213 | |
81ecdfbb RW |
6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6215 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7357c5b6 AM |
6216 | LN_S=$as_ln_s |
6217 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6219 | $as_echo "yes" >&6; } | |
ce2cded5 | 6220 | else |
81ecdfbb RW |
6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6222 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 6223 | fi |
20e95c23 | 6224 | |
7357c5b6 | 6225 | # find the maximum length of command line arguments |
81ecdfbb RW |
6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6227 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6228 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
6229 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6230 | else |
6231 | i=0 | |
6232 | teststring="ABCD" | |
20e95c23 | 6233 | |
7357c5b6 AM |
6234 | case $build_os in |
6235 | msdosdjgpp*) | |
6236 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6237 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6238 | # during glob expansion). Even if it were fixed, the result of this | |
6239 | # check would be larger than it should be. | |
6240 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6241 | ;; | |
20e95c23 | 6242 | |
7357c5b6 AM |
6243 | gnu*) |
6244 | # Under GNU Hurd, this test is not required because there is | |
6245 | # no limit to the length of command line arguments. | |
6246 | # Libtool will interpret -1 as no limit whatsoever | |
6247 | lt_cv_sys_max_cmd_len=-1; | |
6248 | ;; | |
20e95c23 | 6249 | |
b214d478 | 6250 | cygwin* | mingw* | cegcc*) |
7357c5b6 AM |
6251 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6252 | # about 5 minutes as the teststring grows exponentially. | |
6253 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6254 | # you end up with a "frozen" computer, even though with patience | |
6255 | # the test eventually succeeds (with a max line length of 256k). | |
6256 | # Instead, let's just punt: use the minimum linelength reported by | |
6257 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6258 | lt_cv_sys_max_cmd_len=8192; | |
6259 | ;; | |
20e95c23 | 6260 | |
3725885a RW |
6261 | mint*) |
6262 | # On MiNT this can take a long time and run out of memory. | |
6263 | lt_cv_sys_max_cmd_len=8192; | |
6264 | ;; | |
6265 | ||
7357c5b6 AM |
6266 | amigaos*) |
6267 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6268 | # So we just punt and use a minimum line length of 8192. | |
6269 | lt_cv_sys_max_cmd_len=8192; | |
6270 | ;; | |
20e95c23 | 6271 | |
7357c5b6 AM |
6272 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6273 | # This has been around since 386BSD, at least. Likely further. | |
6274 | if test -x /sbin/sysctl; then | |
6275 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6276 | elif test -x /usr/sbin/sysctl; then | |
6277 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6278 | else | |
6279 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6280 | fi | |
6281 | # And add a safety zone | |
6282 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6283 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6284 | ;; | |
d7040cdb | 6285 | |
7357c5b6 AM |
6286 | interix*) |
6287 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6288 | lt_cv_sys_max_cmd_len=196608 | |
6289 | ;; | |
d7040cdb | 6290 | |
7357c5b6 AM |
6291 | osf*) |
6292 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6293 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6294 | # nice to cause kernel panics so lets avoid the loop below. | |
6295 | # First set a reasonable default. | |
6296 | lt_cv_sys_max_cmd_len=16384 | |
6297 | # | |
6298 | if test -x /sbin/sysconfig; then | |
6299 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6300 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6301 | esac | |
6302 | fi | |
6303 | ;; | |
6304 | sco3.2v5*) | |
6305 | lt_cv_sys_max_cmd_len=102400 | |
6306 | ;; | |
6307 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6308 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6309 | if test -n "$kargmax"; then | |
6310 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6311 | else | |
6312 | lt_cv_sys_max_cmd_len=32768 | |
6313 | fi | |
ce2cded5 L |
6314 | ;; |
6315 | *) | |
b214d478 SE |
6316 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6317 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7357c5b6 AM |
6318 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6319 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6320 | else | |
6321 | # Make teststring a little bigger before we do anything with it. | |
6322 | # a 1K string should be a reasonable start. | |
6323 | for i in 1 2 3 4 5 6 7 8 ; do | |
6324 | teststring=$teststring$teststring | |
6325 | done | |
6326 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6327 | # If test is not a shell built-in, we'll probably end up computing a | |
6328 | # maximum length that is only half of the actual maximum length, but | |
6329 | # we can't tell. | |
3725885a RW |
6330 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
6331 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
7357c5b6 AM |
6332 | test $i != 17 # 1/2 MB should be enough |
6333 | do | |
6334 | i=`expr $i + 1` | |
6335 | teststring=$teststring$teststring | |
6336 | done | |
6337 | # Only check the string length outside the loop. | |
6338 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6339 | teststring= | |
6340 | # Add a significant safety factor because C++ compilers can tack on | |
6341 | # massive amounts of additional arguments before passing them to the | |
6342 | # linker. It appears as though 1/2 is a usable value. | |
6343 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6344 | fi | |
ce2cded5 L |
6345 | ;; |
6346 | esac | |
d7040cdb | 6347 | |
7357c5b6 | 6348 | fi |
d7040cdb | 6349 | |
7357c5b6 | 6350 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6352 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7357c5b6 | 6353 | else |
81ecdfbb RW |
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6355 | $as_echo "none" >&6; } | |
7357c5b6 AM |
6356 | fi |
6357 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
6358 | |
6359 | ||
6360 | ||
6361 | ||
6362 | ||
d7040cdb | 6363 | |
7357c5b6 AM |
6364 | : ${CP="cp -f"} |
6365 | : ${MV="mv -f"} | |
6366 | : ${RM="rm -f"} | |
d7040cdb | 6367 | |
81ecdfbb RW |
6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6369 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7357c5b6 AM |
6370 | # Try some XSI features |
6371 | xsi_shell=no | |
6372 | ( _lt_dummy="a/b/c" | |
6373 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
b214d478 SE |
6374 | = c,a/b,, \ |
6375 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6376 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7357c5b6 | 6377 | && xsi_shell=yes |
81ecdfbb RW |
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6379 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb | 6380 | |
d7040cdb | 6381 | |
81ecdfbb RW |
6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6383 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7357c5b6 AM |
6384 | lt_shell_append=no |
6385 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6386 | >/dev/null 2>&1 \ | |
6387 | && lt_shell_append=yes | |
81ecdfbb RW |
6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6389 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
6390 | |
6391 | ||
7357c5b6 AM |
6392 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6393 | lt_unset=unset | |
6394 | else | |
6395 | lt_unset=false | |
6396 | fi | |
d7040cdb | 6397 | |
d7040cdb | 6398 | |
d7040cdb | 6399 | |
d7040cdb | 6400 | |
d7040cdb | 6401 | |
7357c5b6 AM |
6402 | # test EBCDIC or ASCII |
6403 | case `echo X|tr X '\101'` in | |
6404 | A) # ASCII based system | |
6405 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6406 | lt_SP2NL='tr \040 \012' | |
6407 | lt_NL2SP='tr \015\012 \040\040' | |
6408 | ;; | |
6409 | *) # EBCDIC based system | |
6410 | lt_SP2NL='tr \100 \n' | |
6411 | lt_NL2SP='tr \r\n \100\100' | |
6412 | ;; | |
6413 | esac | |
42ecbf5e | 6414 | |
d7040cdb SE |
6415 | |
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
d7040cdb | 6421 | |
d7040cdb | 6422 | |
81ecdfbb RW |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6424 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6425 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
6426 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6427 | else |
6428 | lt_cv_ld_reload_flag='-r' | |
6429 | fi | |
81ecdfbb RW |
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6431 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7357c5b6 AM |
6432 | reload_flag=$lt_cv_ld_reload_flag |
6433 | case $reload_flag in | |
6434 | "" | " "*) ;; | |
6435 | *) reload_flag=" $reload_flag" ;; | |
6436 | esac | |
6437 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6438 | case $host_os in | |
6439 | darwin*) | |
6440 | if test "$GCC" = yes; then | |
6441 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6442 | else | |
6443 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6444 | fi | |
6445 | ;; | |
6446 | esac | |
d7040cdb | 6447 | |
d7040cdb | 6448 | |
d7040cdb | 6449 | |
d7040cdb | 6450 | |
d7040cdb | 6451 | |
d7040cdb | 6452 | |
d7040cdb | 6453 | |
d7040cdb | 6454 | |
d7040cdb | 6455 | |
b214d478 SE |
6456 | if test -n "$ac_tool_prefix"; then |
6457 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6458 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6460 | $as_echo_n "checking for $ac_word... " >&6; } | |
6461 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
6462 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6463 | else |
6464 | if test -n "$OBJDUMP"; then | |
6465 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6466 | else | |
6467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6468 | for as_dir in $PATH | |
6469 | do | |
6470 | IFS=$as_save_IFS | |
6471 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6472 | for ac_exec_ext in '' $ac_executable_extensions; do |
6473 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6474 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 6475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6476 | break 2 |
6477 | fi | |
6478 | done | |
81ecdfbb RW |
6479 | done |
6480 | IFS=$as_save_IFS | |
b214d478 SE |
6481 | |
6482 | fi | |
6483 | fi | |
6484 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6485 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6487 | $as_echo "$OBJDUMP" >&6; } | |
b214d478 | 6488 | else |
81ecdfbb RW |
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6490 | $as_echo "no" >&6; } | |
b214d478 SE |
6491 | fi |
6492 | ||
81ecdfbb | 6493 | |
b214d478 SE |
6494 | fi |
6495 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6496 | ac_ct_OBJDUMP=$OBJDUMP | |
6497 | # Extract the first word of "objdump", so it can be a program name with args. | |
6498 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6500 | $as_echo_n "checking for $ac_word... " >&6; } | |
6501 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
6502 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6503 | else |
6504 | if test -n "$ac_ct_OBJDUMP"; then | |
6505 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6506 | else | |
6507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6508 | for as_dir in $PATH | |
6509 | do | |
6510 | IFS=$as_save_IFS | |
6511 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6512 | for ac_exec_ext in '' $ac_executable_extensions; do |
6513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6514 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 6515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6516 | break 2 |
6517 | fi | |
6518 | done | |
81ecdfbb RW |
6519 | done |
6520 | IFS=$as_save_IFS | |
b214d478 | 6521 | |
b214d478 SE |
6522 | fi |
6523 | fi | |
6524 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6525 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6527 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b214d478 | 6528 | else |
81ecdfbb RW |
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6530 | $as_echo "no" >&6; } | |
b214d478 SE |
6531 | fi |
6532 | ||
81ecdfbb RW |
6533 | if test "x$ac_ct_OBJDUMP" = x; then |
6534 | OBJDUMP="false" | |
6535 | else | |
6536 | case $cross_compiling:$ac_tool_warned in | |
6537 | yes:) | |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6539 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6540 | ac_tool_warned=yes ;; | |
6541 | esac | |
6542 | OBJDUMP=$ac_ct_OBJDUMP | |
6543 | fi | |
b214d478 SE |
6544 | else |
6545 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6546 | fi | |
6547 | ||
6548 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
d7040cdb | 6557 | |
81ecdfbb RW |
6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6559 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6560 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6561 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6562 | else |
7357c5b6 AM |
6563 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6564 | lt_cv_file_magic_test_file= | |
6565 | lt_cv_deplibs_check_method='unknown' | |
6566 | # Need to set the preceding variable on all platforms that support | |
6567 | # interlibrary dependencies. | |
6568 | # 'none' -- dependencies not supported. | |
6569 | # `unknown' -- same as none, but documents that we really don't know. | |
6570 | # 'pass_all' -- all dependencies passed with no checks. | |
6571 | # 'test_compile' -- check by making test program. | |
6572 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6573 | # which responds to the $file_magic_cmd with a given extended regex. | |
6574 | # If you have `file' or equivalent on your system and you're not sure | |
6575 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 6576 | |
ce2cded5 | 6577 | case $host_os in |
7357c5b6 AM |
6578 | aix[4-9]*) |
6579 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6580 | ;; |
7357c5b6 AM |
6581 | |
6582 | beos*) | |
6583 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6584 | ;; |
7357c5b6 AM |
6585 | |
6586 | bsdi[45]*) | |
6587 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6588 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6589 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 6590 | ;; |
7357c5b6 AM |
6591 | |
6592 | cygwin*) | |
6593 | # func_win32_libid is a shell function defined in ltmain.sh | |
6594 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6595 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 6596 | ;; |
7357c5b6 AM |
6597 | |
6598 | mingw* | pw32*) | |
6599 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6600 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6601 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
6602 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6603 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
7357c5b6 AM |
6604 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6605 | lt_cv_file_magic_cmd='func_win32_libid' | |
6606 | else | |
6607 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6608 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6609 | fi | |
ce2cded5 | 6610 | ;; |
7357c5b6 | 6611 | |
3725885a | 6612 | cegcc*) |
b214d478 SE |
6613 | # use the weaker test based on 'objdump'. See mingw*. |
6614 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6615 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6616 | ;; | |
6617 | ||
7357c5b6 AM |
6618 | darwin* | rhapsody*) |
6619 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6620 | ;; |
7357c5b6 AM |
6621 | |
6622 | freebsd* | dragonfly*) | |
6623 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6624 | case $host_cpu in | |
6625 | i*86 ) | |
6626 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6627 | # Let's accept both of them until this is cleared up. | |
6628 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6629 | lt_cv_file_magic_cmd=/usr/bin/file | |
6630 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6631 | ;; | |
6632 | esac | |
6633 | else | |
6634 | lt_cv_deplibs_check_method=pass_all | |
6635 | fi | |
ce2cded5 | 6636 | ;; |
7357c5b6 AM |
6637 | |
6638 | gnu*) | |
6639 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6640 | ;; |
7357c5b6 | 6641 | |
3725885a RW |
6642 | haiku*) |
6643 | lt_cv_deplibs_check_method=pass_all | |
6644 | ;; | |
6645 | ||
7357c5b6 AM |
6646 | hpux10.20* | hpux11*) |
6647 | lt_cv_file_magic_cmd=/usr/bin/file | |
6648 | case $host_cpu in | |
6649 | ia64*) | |
6650 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6651 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6652 | ;; | |
6653 | hppa*64*) | |
3725885a | 6654 | 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 |
6655 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6656 | ;; | |
6657 | *) | |
3725885a | 6658 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
7357c5b6 AM |
6659 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6660 | ;; | |
6661 | esac | |
ce2cded5 | 6662 | ;; |
d7040cdb | 6663 | |
7357c5b6 AM |
6664 | interix[3-9]*) |
6665 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6666 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6667 | ;; | |
d7040cdb | 6668 | |
7357c5b6 AM |
6669 | irix5* | irix6* | nonstopux*) |
6670 | case $LD in | |
6671 | *-32|*"-32 ") libmagic=32-bit;; | |
6672 | *-n32|*"-n32 ") libmagic=N32;; | |
6673 | *-64|*"-64 ") libmagic=64-bit;; | |
6674 | *) libmagic=never-match;; | |
6675 | esac | |
6676 | lt_cv_deplibs_check_method=pass_all | |
6677 | ;; | |
d7040cdb | 6678 | |
7357c5b6 | 6679 | # This must be Linux ELF. |
58e24671 | 6680 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7357c5b6 AM |
6681 | lt_cv_deplibs_check_method=pass_all |
6682 | ;; | |
d7040cdb | 6683 | |
7357c5b6 AM |
6684 | netbsd*) |
6685 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6686 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6687 | else | |
6688 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6689 | fi | |
ce2cded5 | 6690 | ;; |
d7040cdb | 6691 | |
7357c5b6 AM |
6692 | newos6*) |
6693 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6694 | lt_cv_file_magic_cmd=/usr/bin/file | |
6695 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6696 | ;; | |
d7040cdb | 6697 | |
7357c5b6 AM |
6698 | *nto* | *qnx*) |
6699 | lt_cv_deplibs_check_method=pass_all | |
6700 | ;; | |
d7040cdb | 6701 | |
7357c5b6 AM |
6702 | openbsd*) |
6703 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6704 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
ce2cded5 | 6705 | else |
7357c5b6 | 6706 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
ce2cded5 | 6707 | fi |
7357c5b6 | 6708 | ;; |
d7040cdb | 6709 | |
7357c5b6 AM |
6710 | osf3* | osf4* | osf5*) |
6711 | lt_cv_deplibs_check_method=pass_all | |
6712 | ;; | |
d7040cdb | 6713 | |
7357c5b6 AM |
6714 | rdos*) |
6715 | lt_cv_deplibs_check_method=pass_all | |
6716 | ;; | |
d7040cdb | 6717 | |
7357c5b6 AM |
6718 | solaris*) |
6719 | lt_cv_deplibs_check_method=pass_all | |
6720 | ;; | |
d7040cdb | 6721 | |
7357c5b6 AM |
6722 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6723 | lt_cv_deplibs_check_method=pass_all | |
6724 | ;; | |
d7040cdb | 6725 | |
7357c5b6 AM |
6726 | sysv4 | sysv4.3*) |
6727 | case $host_vendor in | |
6728 | motorola) | |
6729 | 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]' | |
6730 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6731 | ;; | |
6732 | ncr) | |
6733 | lt_cv_deplibs_check_method=pass_all | |
6734 | ;; | |
6735 | sequent) | |
6736 | lt_cv_file_magic_cmd='/bin/file' | |
6737 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6738 | ;; | |
6739 | sni) | |
6740 | lt_cv_file_magic_cmd='/bin/file' | |
6741 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6742 | lt_cv_file_magic_test_file=/lib/libc.so | |
6743 | ;; | |
6744 | siemens) | |
6745 | lt_cv_deplibs_check_method=pass_all | |
6746 | ;; | |
6747 | pc) | |
6748 | lt_cv_deplibs_check_method=pass_all | |
6749 | ;; | |
6750 | esac | |
6751 | ;; | |
d7040cdb | 6752 | |
7357c5b6 AM |
6753 | tpf*) |
6754 | lt_cv_deplibs_check_method=pass_all | |
6755 | ;; | |
6756 | esac | |
d7040cdb | 6757 | |
7357c5b6 | 6758 | fi |
81ecdfbb RW |
6759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6760 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7357c5b6 AM |
6761 | file_magic_cmd=$lt_cv_file_magic_cmd |
6762 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6763 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb SE |
6764 | |
6765 | ||
6766 | ||
7357c5b6 AM |
6767 | |
6768 | ||
6769 | ||
6770 | ||
6771 | ||
6772 | ||
6773 | ||
6774 | ||
6775 | ||
6776 | if test -n "$ac_tool_prefix"; then | |
6777 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6778 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6780 | $as_echo_n "checking for $ac_word... " >&6; } | |
6781 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6782 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6783 | else |
6784 | if test -n "$AR"; then | |
6785 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6786 | else | |
6787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6788 | for as_dir in $PATH | |
6789 | do | |
6790 | IFS=$as_save_IFS | |
6791 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6792 | for ac_exec_ext in '' $ac_executable_extensions; do |
6793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6794 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6796 | break 2 |
ce2cded5 L |
6797 | fi |
6798 | done | |
81ecdfbb RW |
6799 | done |
6800 | IFS=$as_save_IFS | |
d7040cdb | 6801 | |
42ecbf5e | 6802 | fi |
ce2cded5 | 6803 | fi |
7357c5b6 AM |
6804 | AR=$ac_cv_prog_AR |
6805 | if test -n "$AR"; then | |
81ecdfbb RW |
6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6807 | $as_echo "$AR" >&6; } | |
42ecbf5e | 6808 | else |
81ecdfbb RW |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6810 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6811 | fi |
6812 | ||
81ecdfbb | 6813 | |
7357c5b6 AM |
6814 | fi |
6815 | if test -z "$ac_cv_prog_AR"; then | |
6816 | ac_ct_AR=$AR | |
6817 | # Extract the first word of "ar", so it can be a program name with args. | |
6818 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6820 | $as_echo_n "checking for $ac_word... " >&6; } | |
6821 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6822 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6823 | else |
6824 | if test -n "$ac_ct_AR"; then | |
6825 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6826 | else | |
6827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6828 | for as_dir in $PATH | |
6829 | do | |
6830 | IFS=$as_save_IFS | |
6831 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6832 | for ac_exec_ext in '' $ac_executable_extensions; do |
6833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6834 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6836 | break 2 |
6837 | fi | |
6838 | done | |
81ecdfbb RW |
6839 | done |
6840 | IFS=$as_save_IFS | |
42ecbf5e | 6841 | |
7357c5b6 AM |
6842 | fi |
6843 | fi | |
6844 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6845 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6847 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 6848 | else |
81ecdfbb RW |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6850 | $as_echo "no" >&6; } | |
7357c5b6 | 6851 | fi |
d7040cdb | 6852 | |
81ecdfbb RW |
6853 | if test "x$ac_ct_AR" = x; then |
6854 | AR="false" | |
6855 | else | |
6856 | case $cross_compiling:$ac_tool_warned in | |
6857 | yes:) | |
6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6859 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6860 | ac_tool_warned=yes ;; | |
6861 | esac | |
6862 | AR=$ac_ct_AR | |
6863 | fi | |
7357c5b6 AM |
6864 | else |
6865 | AR="$ac_cv_prog_AR" | |
6866 | fi | |
d7040cdb | 6867 | |
7357c5b6 AM |
6868 | test -z "$AR" && AR=ar |
6869 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
6870 | |
6871 | ||
6872 | ||
20e95c23 | 6873 | |
d7040cdb | 6874 | |
d7040cdb SE |
6875 | |
6876 | ||
6877 | ||
6878 | ||
6879 | ||
6880 | ||
7357c5b6 AM |
6881 | if test -n "$ac_tool_prefix"; then |
6882 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6883 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6885 | $as_echo_n "checking for $ac_word... " >&6; } | |
6886 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6887 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6888 | else |
6889 | if test -n "$STRIP"; then | |
6890 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6891 | else | |
6892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6893 | for as_dir in $PATH | |
6894 | do | |
6895 | IFS=$as_save_IFS | |
6896 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6897 | for ac_exec_ext in '' $ac_executable_extensions; do |
6898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6899 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6901 | break 2 |
ce2cded5 | 6902 | fi |
7357c5b6 | 6903 | done |
81ecdfbb RW |
6904 | done |
6905 | IFS=$as_save_IFS | |
d7040cdb | 6906 | |
7357c5b6 AM |
6907 | fi |
6908 | fi | |
6909 | STRIP=$ac_cv_prog_STRIP | |
6910 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6912 | $as_echo "$STRIP" >&6; } | |
7357c5b6 | 6913 | else |
81ecdfbb RW |
6914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6915 | $as_echo "no" >&6; } | |
7357c5b6 AM |
6916 | fi |
6917 | ||
81ecdfbb | 6918 | |
7357c5b6 AM |
6919 | fi |
6920 | if test -z "$ac_cv_prog_STRIP"; then | |
6921 | ac_ct_STRIP=$STRIP | |
6922 | # Extract the first word of "strip", so it can be a program name with args. | |
6923 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6925 | $as_echo_n "checking for $ac_word... " >&6; } | |
6926 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6927 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6928 | else |
6929 | if test -n "$ac_ct_STRIP"; then | |
6930 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6931 | else | |
6932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6933 | for as_dir in $PATH | |
6934 | do | |
6935 | IFS=$as_save_IFS | |
6936 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6937 | for ac_exec_ext in '' $ac_executable_extensions; do |
6938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6939 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6941 | break 2 |
ce2cded5 | 6942 | fi |
7357c5b6 | 6943 | done |
81ecdfbb RW |
6944 | done |
6945 | IFS=$as_save_IFS | |
d7040cdb | 6946 | |
7357c5b6 AM |
6947 | fi |
6948 | fi | |
6949 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6950 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6952 | $as_echo "$ac_ct_STRIP" >&6; } | |
20e95c23 | 6953 | else |
81ecdfbb RW |
6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6955 | $as_echo "no" >&6; } | |
7357c5b6 | 6956 | fi |
d7040cdb | 6957 | |
81ecdfbb RW |
6958 | if test "x$ac_ct_STRIP" = x; then |
6959 | STRIP=":" | |
6960 | else | |
6961 | case $cross_compiling:$ac_tool_warned in | |
6962 | yes:) | |
6963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6964 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6965 | ac_tool_warned=yes ;; | |
6966 | esac | |
6967 | STRIP=$ac_ct_STRIP | |
6968 | fi | |
7357c5b6 AM |
6969 | else |
6970 | STRIP="$ac_cv_prog_STRIP" | |
6971 | fi | |
d7040cdb | 6972 | |
7357c5b6 | 6973 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6974 | |
d7040cdb SE |
6975 | |
6976 | ||
6977 | ||
d7040cdb | 6978 | |
7357c5b6 AM |
6979 | |
6980 | if test -n "$ac_tool_prefix"; then | |
6981 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6982 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6984 | $as_echo_n "checking for $ac_word... " >&6; } | |
6985 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6986 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6987 | else |
7357c5b6 AM |
6988 | if test -n "$RANLIB"; then |
6989 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6990 | else | |
6991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6992 | for as_dir in $PATH | |
ce2cded5 | 6993 | do |
7357c5b6 AM |
6994 | IFS=$as_save_IFS |
6995 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6996 | for ac_exec_ext in '' $ac_executable_extensions; do |
6997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6998 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7000 | break 2 |
ce2cded5 | 7001 | fi |
7357c5b6 | 7002 | done |
81ecdfbb RW |
7003 | done |
7004 | IFS=$as_save_IFS | |
7357c5b6 | 7005 | |
ce2cded5 | 7006 | fi |
7357c5b6 AM |
7007 | fi |
7008 | RANLIB=$ac_cv_prog_RANLIB | |
7009 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7011 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 7012 | else |
81ecdfbb RW |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7014 | $as_echo "no" >&6; } | |
ce2cded5 | 7015 | fi |
d7040cdb | 7016 | |
81ecdfbb | 7017 | |
7357c5b6 AM |
7018 | fi |
7019 | if test -z "$ac_cv_prog_RANLIB"; then | |
7020 | ac_ct_RANLIB=$RANLIB | |
7021 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7022 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7024 | $as_echo_n "checking for $ac_word... " >&6; } | |
7025 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
7026 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7027 | else |
7357c5b6 AM |
7028 | if test -n "$ac_ct_RANLIB"; then |
7029 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7030 | else | |
7031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7032 | for as_dir in $PATH | |
7033 | do | |
7034 | IFS=$as_save_IFS | |
7035 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7036 | for ac_exec_ext in '' $ac_executable_extensions; do |
7037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7038 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 7039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
7040 | break 2 |
7041 | fi | |
7042 | done | |
81ecdfbb RW |
7043 | done |
7044 | IFS=$as_save_IFS | |
7357c5b6 | 7045 | |
ce2cded5 | 7046 | fi |
7357c5b6 AM |
7047 | fi |
7048 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7049 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7051 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ce2cded5 | 7052 | else |
81ecdfbb RW |
7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7054 | $as_echo "no" >&6; } | |
ce2cded5 | 7055 | fi |
d7040cdb | 7056 | |
81ecdfbb RW |
7057 | if test "x$ac_ct_RANLIB" = x; then |
7058 | RANLIB=":" | |
7059 | else | |
7060 | case $cross_compiling:$ac_tool_warned in | |
7061 | yes:) | |
7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7063 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7064 | ac_tool_warned=yes ;; | |
7065 | esac | |
7066 | RANLIB=$ac_ct_RANLIB | |
7067 | fi | |
7357c5b6 AM |
7068 | else |
7069 | RANLIB="$ac_cv_prog_RANLIB" | |
ce2cded5 | 7070 | fi |
d7040cdb | 7071 | |
7357c5b6 | 7072 | test -z "$RANLIB" && RANLIB=: |
d7040cdb | 7073 | |
7357c5b6 AM |
7074 | |
7075 | ||
7076 | ||
7077 | ||
7078 | ||
7079 | # Determine commands to create old-style static archives. | |
b214d478 | 7080 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7357c5b6 AM |
7081 | old_postinstall_cmds='chmod 644 $oldlib' |
7082 | old_postuninstall_cmds= | |
7083 | ||
7084 | if test -n "$RANLIB"; then | |
7085 | case $host_os in | |
7086 | openbsd*) | |
7087 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7088 | ;; | |
7089 | *) | |
7090 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7091 | ;; | |
7092 | esac | |
7093 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 7094 | fi |
7357c5b6 | 7095 | |
3725885a RW |
7096 | case $host_os in |
7097 | darwin*) | |
7098 | lock_old_archive_extraction=yes ;; | |
7099 | *) | |
7100 | lock_old_archive_extraction=no ;; | |
7101 | esac | |
7102 | ||
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7357c5b6 AM |
7108 | |
7109 | ||
7110 | ||
7111 | ||
7112 | ||
7113 | ||
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | ||
7119 | ||
7120 | ||
7121 | ||
7122 | ||
7123 | ||
7124 | ||
7125 | ||
7126 | ||
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | # If no C compiler was specified, use CC. | |
7142 | LTCC=${LTCC-"$CC"} | |
7143 | ||
7144 | # If no C compiler flags were specified, use CFLAGS. | |
7145 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7146 | ||
7147 | # Allow CC to be a program name with arguments. | |
7148 | compiler=$CC | |
7149 | ||
7150 | ||
7151 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7153 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7154 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
7155 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7156 | else |
d7040cdb | 7157 | |
7357c5b6 AM |
7158 | # These are sane defaults that work on at least a few old systems. |
7159 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 7160 | |
7357c5b6 AM |
7161 | # Character class describing NM global symbol codes. |
7162 | symcode='[BCDEGRST]' | |
7163 | ||
7164 | # Regexp to match symbols that can be accessed directly from C. | |
7165 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7166 | ||
7167 | # Define system-specific variables. | |
7168 | case $host_os in | |
7169 | aix*) | |
7170 | symcode='[BCDT]' | |
7171 | ;; | |
b214d478 | 7172 | cygwin* | mingw* | pw32* | cegcc*) |
7357c5b6 AM |
7173 | symcode='[ABCDGISTW]' |
7174 | ;; | |
7175 | hpux*) | |
7176 | if test "$host_cpu" = ia64; then | |
7177 | symcode='[ABCDEGRST]' | |
ce2cded5 | 7178 | fi |
7357c5b6 AM |
7179 | ;; |
7180 | irix* | nonstopux*) | |
7181 | symcode='[BCDEGRST]' | |
7182 | ;; | |
7183 | osf*) | |
7184 | symcode='[BCDEGQRST]' | |
7185 | ;; | |
7186 | solaris*) | |
7187 | symcode='[BDRT]' | |
7188 | ;; | |
7189 | sco3.2v5*) | |
7190 | symcode='[DT]' | |
7191 | ;; | |
7192 | sysv4.2uw2*) | |
7193 | symcode='[DT]' | |
7194 | ;; | |
7195 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7196 | symcode='[ABDT]' | |
7197 | ;; | |
7198 | sysv4) | |
7199 | symcode='[DFNSTU]' | |
7200 | ;; | |
7201 | esac | |
d7040cdb | 7202 | |
7357c5b6 AM |
7203 | # If we're using GNU nm, then use its standard symbol codes. |
7204 | case `$NM -V 2>&1` in | |
7205 | *GNU* | *'with BFD'*) | |
7206 | symcode='[ABCDGIRSTW]' ;; | |
7207 | esac | |
d7040cdb | 7208 | |
7357c5b6 AM |
7209 | # Transform an extracted symbol line into a proper C declaration. |
7210 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7211 | # so use this general approach. | |
7212 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7213 | ||
7214 | # Transform an extracted symbol line into symbol name and symbol address | |
7215 | 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 | 7216 | 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 |
7217 | |
7218 | # Handle CRLF in mingw tool chain | |
7219 | opt_cr= | |
7220 | case $build_os in | |
7221 | mingw*) | |
7222 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7223 | ;; | |
7224 | esac | |
d7040cdb | 7225 | |
7357c5b6 AM |
7226 | # Try without a prefix underscore, then with it. |
7227 | for ac_symprfx in "" "_"; do | |
d7040cdb | 7228 | |
7357c5b6 AM |
7229 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7230 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 7231 | |
7357c5b6 AM |
7232 | # Write the raw and C identifiers. |
7233 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7234 | # Fake it for dumpbin and say T for any non-static function | |
7235 | # and D for any global variable. | |
7236 | # Also find C++ and __fastcall symbols from MSVC++, | |
7237 | # which start with @ or ?. | |
7238 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7239 | " {last_section=section; section=\$ 3};"\ | |
7240 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7241 | " \$ 0!~/External *\|/{next};"\ | |
7242 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7243 | " {if(hide[section]) next};"\ | |
7244 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7245 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7246 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7247 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7248 | " ' prfx=^$ac_symprfx" | |
7249 | else | |
7250 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7251 | fi | |
d7040cdb | 7252 | |
7357c5b6 AM |
7253 | # Check to see that the pipe works correctly. |
7254 | pipe_works=no | |
d7040cdb | 7255 | |
7357c5b6 AM |
7256 | rm -f conftest* |
7257 | cat > conftest.$ac_ext <<_LT_EOF | |
7258 | #ifdef __cplusplus | |
7259 | extern "C" { | |
7260 | #endif | |
7261 | char nm_test_var; | |
7262 | void nm_test_func(void); | |
7263 | void nm_test_func(void){} | |
7264 | #ifdef __cplusplus | |
20e95c23 | 7265 | } |
7357c5b6 AM |
7266 | #endif |
7267 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7268 | _LT_EOF | |
7269 | ||
81ecdfbb | 7270 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 7271 | (eval $ac_compile) 2>&5 |
20e95c23 | 7272 | ac_status=$? |
81ecdfbb RW |
7273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7274 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7275 | # Now try to grab the symbols. |
7276 | nlist=conftest.nm | |
3725885a RW |
7277 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7278 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
20e95c23 | 7279 | ac_status=$? |
81ecdfbb RW |
7280 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7281 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
7282 | # Try sorting and uniquifying the output. |
7283 | if sort "$nlist" | uniq > "$nlist"T; then | |
7284 | mv -f "$nlist"T "$nlist" | |
7285 | else | |
7286 | rm -f "$nlist"T | |
7287 | fi | |
d7040cdb | 7288 | |
7357c5b6 AM |
7289 | # Make sure that we snagged all the symbols we need. |
7290 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7291 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7292 | cat <<_LT_EOF > conftest.$ac_ext | |
7293 | #ifdef __cplusplus | |
7294 | extern "C" { | |
7295 | #endif | |
ce2cded5 | 7296 | |
7357c5b6 AM |
7297 | _LT_EOF |
7298 | # Now generate the symbol file. | |
7299 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
ce2cded5 | 7300 | |
7357c5b6 | 7301 | cat <<_LT_EOF >> conftest.$ac_ext |
42ecbf5e | 7302 | |
7357c5b6 AM |
7303 | /* The mapping between symbol names and symbols. */ |
7304 | const struct { | |
7305 | const char *name; | |
7306 | void *address; | |
7307 | } | |
7308 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7309 | { | |
7310 | { "@PROGRAM@", (void *) 0 }, | |
7311 | _LT_EOF | |
7312 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7313 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7314 | {0, (void *) 0} | |
7315 | }; | |
d7040cdb | 7316 | |
7357c5b6 AM |
7317 | /* This works around a problem in FreeBSD linker */ |
7318 | #ifdef FREEBSD_WORKAROUND | |
7319 | static const void *lt_preloaded_setup() { | |
7320 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7321 | } | |
ce2cded5 | 7322 | #endif |
42ecbf5e | 7323 | |
7357c5b6 | 7324 | #ifdef __cplusplus |
ce2cded5 | 7325 | } |
7357c5b6 AM |
7326 | #endif |
7327 | _LT_EOF | |
7328 | # Now try linking the two files. | |
7329 | mv conftest.$ac_objext conftstm.$ac_objext | |
7330 | lt_save_LIBS="$LIBS" | |
7331 | lt_save_CFLAGS="$CFLAGS" | |
7332 | LIBS="conftstm.$ac_objext" | |
7333 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 7334 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
7335 | (eval $ac_link) 2>&5 |
7336 | ac_status=$? | |
81ecdfbb RW |
7337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7338 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
7339 | pipe_works=yes |
7340 | fi | |
7341 | LIBS="$lt_save_LIBS" | |
7342 | CFLAGS="$lt_save_CFLAGS" | |
7343 | else | |
7344 | echo "cannot find nm_test_func in $nlist" >&5 | |
7345 | fi | |
7346 | else | |
7347 | echo "cannot find nm_test_var in $nlist" >&5 | |
7348 | fi | |
7349 | else | |
7350 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7351 | fi | |
7352 | else | |
7353 | echo "$progname: failed program was:" >&5 | |
7354 | cat conftest.$ac_ext >&5 | |
7355 | fi | |
b214d478 | 7356 | rm -rf conftest* conftst* |
7357c5b6 AM |
7357 | |
7358 | # Do not use the global_symbol_pipe unless it works. | |
7359 | if test "$pipe_works" = yes; then | |
7360 | break | |
7361 | else | |
7362 | lt_cv_sys_global_symbol_pipe= | |
7363 | fi | |
7364 | done | |
42ecbf5e | 7365 | |
ce2cded5 | 7366 | fi |
7357c5b6 AM |
7367 | |
7368 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7369 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 7370 | fi |
7357c5b6 | 7371 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
7372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7373 | $as_echo "failed" >&6; } | |
7357c5b6 | 7374 | else |
81ecdfbb RW |
7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7376 | $as_echo "ok" >&6; } | |
ce2cded5 | 7377 | fi |
e5a52504 | 7378 | |
d7040cdb | 7379 | |
e5a52504 | 7380 | |
d7040cdb | 7381 | |
d7040cdb | 7382 | |
d7040cdb | 7383 | |
d7040cdb | 7384 | |
d7040cdb | 7385 | |
d7040cdb | 7386 | |
d7040cdb | 7387 | |
d7040cdb | 7388 | |
d7040cdb | 7389 | |
7357c5b6 AM |
7390 | |
7391 | ||
7392 | ||
b214d478 SE |
7393 | |
7394 | ||
7395 | ||
7396 | ||
7397 | ||
7357c5b6 AM |
7398 | |
7399 | ||
81ecdfbb RW |
7400 | # Check whether --enable-libtool-lock was given. |
7401 | if test "${enable_libtool_lock+set}" = set; then : | |
7402 | enableval=$enable_libtool_lock; | |
7403 | fi | |
7357c5b6 | 7404 | |
7357c5b6 AM |
7405 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7406 | ||
7407 | # Some flags need to be propagated to the compiler or linker for good | |
7408 | # libtool support. | |
7409 | case $host in | |
7410 | ia64-*-hpux*) | |
7411 | # Find out which ABI we are using. | |
7412 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7413 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7414 | (eval $ac_compile) 2>&5 |
7415 | ac_status=$? | |
81ecdfbb RW |
7416 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7417 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7418 | case `/usr/bin/file conftest.$ac_objext` in |
7419 | *ELF-32*) | |
7420 | HPUX_IA64_MODE="32" | |
7421 | ;; | |
7422 | *ELF-64*) | |
7423 | HPUX_IA64_MODE="64" | |
7424 | ;; | |
7425 | esac | |
7426 | fi | |
7427 | rm -rf conftest* | |
7428 | ;; | |
7429 | *-*-irix6*) | |
7430 | # Find out which ABI we are using. | |
3725885a | 7431 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 7432 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7433 | (eval $ac_compile) 2>&5 |
7434 | ac_status=$? | |
81ecdfbb RW |
7435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7436 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7437 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7438 | case `/usr/bin/file conftest.$ac_objext` in | |
7439 | *32-bit*) | |
7440 | LD="${LD-ld} -melf32bsmip" | |
7441 | ;; | |
7442 | *N32*) | |
7443 | LD="${LD-ld} -melf32bmipn32" | |
7444 | ;; | |
7445 | *64-bit*) | |
7446 | LD="${LD-ld} -melf64bmip" | |
7447 | ;; | |
7448 | esac | |
7449 | else | |
7450 | case `/usr/bin/file conftest.$ac_objext` in | |
7451 | *32-bit*) | |
7452 | LD="${LD-ld} -32" | |
7453 | ;; | |
7454 | *N32*) | |
7455 | LD="${LD-ld} -n32" | |
7456 | ;; | |
7457 | *64-bit*) | |
7458 | LD="${LD-ld} -64" | |
7459 | ;; | |
7460 | esac | |
7461 | fi | |
7462 | fi | |
7463 | rm -rf conftest* | |
7464 | ;; | |
7465 | ||
cc9afea3 | 7466 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
7467 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7468 | # Find out which ABI we are using. | |
7469 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7470 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7471 | (eval $ac_compile) 2>&5 |
7472 | ac_status=$? | |
81ecdfbb RW |
7473 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7474 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7475 | case `/usr/bin/file conftest.o` in |
7476 | *32-bit*) | |
7477 | case $host in | |
7478 | x86_64-*kfreebsd*-gnu) | |
7479 | LD="${LD-ld} -m elf_i386_fbsd" | |
7480 | ;; | |
7481 | x86_64-*linux*) | |
6d2920c8 L |
7482 | case `/usr/bin/file conftest.o` in |
7483 | *x86-64*) | |
7484 | LD="${LD-ld} -m elf32_x86_64" | |
7485 | ;; | |
7486 | *) | |
7487 | LD="${LD-ld} -m elf_i386" | |
7488 | ;; | |
7489 | esac | |
7357c5b6 | 7490 | ;; |
cc9afea3 AM |
7491 | powerpc64le-*linux*) |
7492 | LD="${LD-ld} -m elf32lppclinux" | |
7493 | ;; | |
7494 | powerpc64-*linux*) | |
7357c5b6 AM |
7495 | LD="${LD-ld} -m elf32ppclinux" |
7496 | ;; | |
7497 | s390x-*linux*) | |
7498 | LD="${LD-ld} -m elf_s390" | |
7499 | ;; | |
7500 | sparc64-*linux*) | |
7501 | LD="${LD-ld} -m elf32_sparc" | |
7502 | ;; | |
7503 | esac | |
7504 | ;; | |
7505 | *64-bit*) | |
7506 | case $host in | |
7507 | x86_64-*kfreebsd*-gnu) | |
7508 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7509 | ;; | |
7510 | x86_64-*linux*) | |
7511 | LD="${LD-ld} -m elf_x86_64" | |
7512 | ;; | |
cc9afea3 AM |
7513 | powerpcle-*linux*) |
7514 | LD="${LD-ld} -m elf64lppc" | |
7515 | ;; | |
7516 | powerpc-*linux*) | |
7357c5b6 AM |
7517 | LD="${LD-ld} -m elf64ppc" |
7518 | ;; | |
7519 | s390*-*linux*|s390*-*tpf*) | |
7520 | LD="${LD-ld} -m elf64_s390" | |
7521 | ;; | |
7522 | sparc*-*linux*) | |
7523 | LD="${LD-ld} -m elf64_sparc" | |
7524 | ;; | |
7525 | esac | |
7526 | ;; | |
7527 | esac | |
7528 | fi | |
7529 | rm -rf conftest* | |
7530 | ;; | |
7531 | ||
7532 | *-*-sco3.2v5*) | |
7533 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7534 | SAVE_CFLAGS="$CFLAGS" | |
7535 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7537 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7538 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
7539 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7540 | else |
7357c5b6 AM |
7541 | ac_ext=c |
7542 | ac_cpp='$CPP $CPPFLAGS' | |
7543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7546 | ||
81ecdfbb | 7547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 7548 | /* end confdefs.h. */ |
d7040cdb | 7549 | |
7357c5b6 AM |
7550 | int |
7551 | main () | |
7552 | { | |
7553 | ||
7554 | ; | |
7555 | return 0; | |
7556 | } | |
ce2cded5 | 7557 | _ACEOF |
81ecdfbb | 7558 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7559 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 7560 | else |
81ecdfbb | 7561 | lt_cv_cc_needs_belf=no |
ce2cded5 | 7562 | fi |
81ecdfbb RW |
7563 | rm -f core conftest.err conftest.$ac_objext \ |
7564 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7565 | ac_ext=c |
7566 | ac_cpp='$CPP $CPPFLAGS' | |
7567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7570 | |
b214d478 | 7571 | fi |
81ecdfbb RW |
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7573 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
b214d478 SE |
7574 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7575 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7576 | CFLAGS="$SAVE_CFLAGS" | |
7577 | fi | |
7578 | ;; | |
7579 | sparc*-*solaris*) | |
7580 | # Find out which ABI we are using. | |
7581 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7582 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b214d478 SE |
7583 | (eval $ac_compile) 2>&5 |
7584 | ac_status=$? | |
81ecdfbb RW |
7585 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7586 | test $ac_status = 0; }; then | |
b214d478 SE |
7587 | case `/usr/bin/file conftest.o` in |
7588 | *64-bit*) | |
7589 | case $lt_cv_prog_gnu_ld in | |
7590 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7591 | *) | |
7592 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7593 | LD="${LD-ld} -64" | |
7594 | fi | |
7595 | ;; | |
7596 | esac | |
7597 | ;; | |
7598 | esac | |
7599 | fi | |
7600 | rm -rf conftest* | |
7601 | ;; | |
7602 | esac | |
7603 | ||
7604 | need_locks="$enable_libtool_lock" | |
7605 | ||
7606 | ||
7607 | case $host_os in | |
7608 | rhapsody* | darwin*) | |
7609 | if test -n "$ac_tool_prefix"; then | |
7610 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7611 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7613 | $as_echo_n "checking for $ac_word... " >&6; } | |
7614 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7615 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7616 | else |
7617 | if test -n "$DSYMUTIL"; then | |
7618 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7619 | else | |
7620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7621 | for as_dir in $PATH | |
7622 | do | |
7623 | IFS=$as_save_IFS | |
7624 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7625 | for ac_exec_ext in '' $ac_executable_extensions; do |
7626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7627 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7629 | break 2 |
7630 | fi | |
7631 | done | |
81ecdfbb RW |
7632 | done |
7633 | IFS=$as_save_IFS | |
b214d478 SE |
7634 | |
7635 | fi | |
7636 | fi | |
7637 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7638 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7640 | $as_echo "$DSYMUTIL" >&6; } | |
b214d478 | 7641 | else |
81ecdfbb RW |
7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7643 | $as_echo "no" >&6; } | |
b214d478 SE |
7644 | fi |
7645 | ||
81ecdfbb | 7646 | |
b214d478 SE |
7647 | fi |
7648 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7649 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7650 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7651 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7653 | $as_echo_n "checking for $ac_word... " >&6; } | |
7654 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7655 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7656 | else |
7657 | if test -n "$ac_ct_DSYMUTIL"; then | |
7658 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7659 | else | |
7660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7661 | for as_dir in $PATH | |
7662 | do | |
7663 | IFS=$as_save_IFS | |
7664 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7665 | for ac_exec_ext in '' $ac_executable_extensions; do |
7666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7667 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7669 | break 2 |
7670 | fi | |
7671 | done | |
81ecdfbb RW |
7672 | done |
7673 | IFS=$as_save_IFS | |
b214d478 | 7674 | |
b214d478 SE |
7675 | fi |
7676 | fi | |
7677 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7678 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7680 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b214d478 | 7681 | else |
81ecdfbb RW |
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7683 | $as_echo "no" >&6; } | |
b214d478 SE |
7684 | fi |
7685 | ||
81ecdfbb RW |
7686 | if test "x$ac_ct_DSYMUTIL" = x; then |
7687 | DSYMUTIL=":" | |
7688 | else | |
7689 | case $cross_compiling:$ac_tool_warned in | |
7690 | yes:) | |
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7692 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7693 | ac_tool_warned=yes ;; | |
7694 | esac | |
7695 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7696 | fi | |
b214d478 SE |
7697 | else |
7698 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7699 | fi | |
7700 | ||
7701 | if test -n "$ac_tool_prefix"; then | |
7702 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7703 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7705 | $as_echo_n "checking for $ac_word... " >&6; } | |
7706 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
7707 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7708 | else |
7709 | if test -n "$NMEDIT"; then | |
7710 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7711 | else | |
7712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7713 | for as_dir in $PATH | |
7714 | do | |
7715 | IFS=$as_save_IFS | |
7716 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7717 | for ac_exec_ext in '' $ac_executable_extensions; do |
7718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7719 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7721 | break 2 |
7722 | fi | |
7723 | done | |
81ecdfbb RW |
7724 | done |
7725 | IFS=$as_save_IFS | |
b214d478 SE |
7726 | |
7727 | fi | |
7728 | fi | |
7729 | NMEDIT=$ac_cv_prog_NMEDIT | |
7730 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7732 | $as_echo "$NMEDIT" >&6; } | |
b214d478 | 7733 | else |
81ecdfbb RW |
7734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7735 | $as_echo "no" >&6; } | |
b214d478 SE |
7736 | fi |
7737 | ||
81ecdfbb | 7738 | |
b214d478 SE |
7739 | fi |
7740 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7741 | ac_ct_NMEDIT=$NMEDIT | |
7742 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7743 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7745 | $as_echo_n "checking for $ac_word... " >&6; } | |
7746 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7747 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7748 | else |
7749 | if test -n "$ac_ct_NMEDIT"; then | |
7750 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7751 | else | |
7752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7753 | for as_dir in $PATH | |
7754 | do | |
7755 | IFS=$as_save_IFS | |
7756 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7757 | for ac_exec_ext in '' $ac_executable_extensions; do |
7758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7759 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7761 | break 2 |
7762 | fi | |
7763 | done | |
81ecdfbb RW |
7764 | done |
7765 | IFS=$as_save_IFS | |
b214d478 | 7766 | |
b214d478 SE |
7767 | fi |
7768 | fi | |
7769 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7770 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7772 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b214d478 | 7773 | else |
81ecdfbb RW |
7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7775 | $as_echo "no" >&6; } | |
b214d478 SE |
7776 | fi |
7777 | ||
81ecdfbb RW |
7778 | if test "x$ac_ct_NMEDIT" = x; then |
7779 | NMEDIT=":" | |
7780 | else | |
7781 | case $cross_compiling:$ac_tool_warned in | |
7782 | yes:) | |
7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7784 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7785 | ac_tool_warned=yes ;; | |
7786 | esac | |
7787 | NMEDIT=$ac_ct_NMEDIT | |
7788 | fi | |
b214d478 SE |
7789 | else |
7790 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7791 | fi | |
7792 | ||
7793 | if test -n "$ac_tool_prefix"; then | |
7794 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7795 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7797 | $as_echo_n "checking for $ac_word... " >&6; } | |
7798 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7799 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7800 | else |
7801 | if test -n "$LIPO"; then | |
7802 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7803 | else | |
7804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7805 | for as_dir in $PATH | |
7806 | do | |
7807 | IFS=$as_save_IFS | |
7808 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7809 | for ac_exec_ext in '' $ac_executable_extensions; do |
7810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7811 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7813 | break 2 |
7814 | fi | |
7815 | done | |
81ecdfbb RW |
7816 | done |
7817 | IFS=$as_save_IFS | |
b214d478 SE |
7818 | |
7819 | fi | |
7820 | fi | |
7821 | LIPO=$ac_cv_prog_LIPO | |
7822 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7824 | $as_echo "$LIPO" >&6; } | |
b214d478 | 7825 | else |
81ecdfbb RW |
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7827 | $as_echo "no" >&6; } | |
b214d478 SE |
7828 | fi |
7829 | ||
81ecdfbb | 7830 | |
b214d478 SE |
7831 | fi |
7832 | if test -z "$ac_cv_prog_LIPO"; then | |
7833 | ac_ct_LIPO=$LIPO | |
7834 | # Extract the first word of "lipo", so it can be a program name with args. | |
7835 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7837 | $as_echo_n "checking for $ac_word... " >&6; } | |
7838 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7839 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7840 | else |
7841 | if test -n "$ac_ct_LIPO"; then | |
7842 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7843 | else | |
7844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7845 | for as_dir in $PATH | |
7846 | do | |
7847 | IFS=$as_save_IFS | |
7848 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7849 | for ac_exec_ext in '' $ac_executable_extensions; do |
7850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7851 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7853 | break 2 |
7854 | fi | |
7855 | done | |
81ecdfbb RW |
7856 | done |
7857 | IFS=$as_save_IFS | |
b214d478 | 7858 | |
b214d478 SE |
7859 | fi |
7860 | fi | |
7861 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7862 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7864 | $as_echo "$ac_ct_LIPO" >&6; } | |
b214d478 | 7865 | else |
81ecdfbb RW |
7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7867 | $as_echo "no" >&6; } | |
b214d478 SE |
7868 | fi |
7869 | ||
81ecdfbb RW |
7870 | if test "x$ac_ct_LIPO" = x; then |
7871 | LIPO=":" | |
7872 | else | |
7873 | case $cross_compiling:$ac_tool_warned in | |
7874 | yes:) | |
7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7876 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7877 | ac_tool_warned=yes ;; | |
7878 | esac | |
7879 | LIPO=$ac_ct_LIPO | |
7880 | fi | |
b214d478 SE |
7881 | else |
7882 | LIPO="$ac_cv_prog_LIPO" | |
7883 | fi | |
7884 | ||
7885 | if test -n "$ac_tool_prefix"; then | |
7886 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7887 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7889 | $as_echo_n "checking for $ac_word... " >&6; } | |
7890 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7891 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7892 | else |
7893 | if test -n "$OTOOL"; then | |
7894 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7895 | else | |
7896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7897 | for as_dir in $PATH | |
7898 | do | |
7899 | IFS=$as_save_IFS | |
7900 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7901 | for ac_exec_ext in '' $ac_executable_extensions; do |
7902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7903 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7905 | break 2 |
7906 | fi | |
7907 | done | |
81ecdfbb RW |
7908 | done |
7909 | IFS=$as_save_IFS | |
b214d478 SE |
7910 | |
7911 | fi | |
7912 | fi | |
7913 | OTOOL=$ac_cv_prog_OTOOL | |
7914 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7916 | $as_echo "$OTOOL" >&6; } | |
b214d478 | 7917 | else |
81ecdfbb RW |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7919 | $as_echo "no" >&6; } | |
b214d478 SE |
7920 | fi |
7921 | ||
81ecdfbb | 7922 | |
b214d478 SE |
7923 | fi |
7924 | if test -z "$ac_cv_prog_OTOOL"; then | |
7925 | ac_ct_OTOOL=$OTOOL | |
7926 | # Extract the first word of "otool", so it can be a program name with args. | |
7927 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7929 | $as_echo_n "checking for $ac_word... " >&6; } | |
7930 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7931 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7932 | else |
7933 | if test -n "$ac_ct_OTOOL"; then | |
7934 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7935 | else | |
7936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7937 | for as_dir in $PATH | |
7938 | do | |
7939 | IFS=$as_save_IFS | |
7940 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7941 | for ac_exec_ext in '' $ac_executable_extensions; do |
7942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7943 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7945 | break 2 |
7946 | fi | |
7947 | done | |
81ecdfbb RW |
7948 | done |
7949 | IFS=$as_save_IFS | |
b214d478 | 7950 | |
b214d478 SE |
7951 | fi |
7952 | fi | |
7953 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7954 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7956 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b214d478 | 7957 | else |
81ecdfbb RW |
7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7959 | $as_echo "no" >&6; } | |
b214d478 SE |
7960 | fi |
7961 | ||
81ecdfbb RW |
7962 | if test "x$ac_ct_OTOOL" = x; then |
7963 | OTOOL=":" | |
7964 | else | |
7965 | case $cross_compiling:$ac_tool_warned in | |
7966 | yes:) | |
7967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7968 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7969 | ac_tool_warned=yes ;; | |
7970 | esac | |
7971 | OTOOL=$ac_ct_OTOOL | |
7972 | fi | |
b214d478 SE |
7973 | else |
7974 | OTOOL="$ac_cv_prog_OTOOL" | |
7975 | fi | |
7976 | ||
7977 | if test -n "$ac_tool_prefix"; then | |
7978 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7979 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7981 | $as_echo_n "checking for $ac_word... " >&6; } | |
7982 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7983 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7984 | else |
7985 | if test -n "$OTOOL64"; then | |
7986 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7987 | else | |
7988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7989 | for as_dir in $PATH | |
7990 | do | |
7991 | IFS=$as_save_IFS | |
7992 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7993 | for ac_exec_ext in '' $ac_executable_extensions; do |
7994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7995 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7997 | break 2 |
7998 | fi | |
7999 | done | |
81ecdfbb RW |
8000 | done |
8001 | IFS=$as_save_IFS | |
b214d478 SE |
8002 | |
8003 | fi | |
8004 | fi | |
8005 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8006 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8008 | $as_echo "$OTOOL64" >&6; } | |
b214d478 | 8009 | else |
81ecdfbb RW |
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8011 | $as_echo "no" >&6; } | |
b214d478 SE |
8012 | fi |
8013 | ||
81ecdfbb | 8014 | |
b214d478 SE |
8015 | fi |
8016 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8017 | ac_ct_OTOOL64=$OTOOL64 | |
8018 | # Extract the first word of "otool64", so it can be a program name with args. | |
8019 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8021 | $as_echo_n "checking for $ac_word... " >&6; } | |
8022 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
8023 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8024 | else |
8025 | if test -n "$ac_ct_OTOOL64"; then | |
8026 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8027 | else | |
8028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8029 | for as_dir in $PATH | |
8030 | do | |
8031 | IFS=$as_save_IFS | |
8032 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8033 | for ac_exec_ext in '' $ac_executable_extensions; do |
8034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8035 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 8036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8037 | break 2 |
8038 | fi | |
8039 | done | |
81ecdfbb RW |
8040 | done |
8041 | IFS=$as_save_IFS | |
b214d478 | 8042 | |
b214d478 SE |
8043 | fi |
8044 | fi | |
8045 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8046 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8048 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b214d478 | 8049 | else |
81ecdfbb RW |
8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8051 | $as_echo "no" >&6; } | |
b214d478 SE |
8052 | fi |
8053 | ||
81ecdfbb RW |
8054 | if test "x$ac_ct_OTOOL64" = x; then |
8055 | OTOOL64=":" | |
8056 | else | |
8057 | case $cross_compiling:$ac_tool_warned in | |
8058 | yes:) | |
8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8060 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8061 | ac_tool_warned=yes ;; | |
8062 | esac | |
8063 | OTOOL64=$ac_ct_OTOOL64 | |
8064 | fi | |
b214d478 SE |
8065 | else |
8066 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8067 | fi | |
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
8091 | ||
8092 | ||
8093 | ||
8094 | ||
81ecdfbb RW |
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8096 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8097 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
8098 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8099 | else |
8100 | lt_cv_apple_cc_single_mod=no | |
8101 | if test -z "${LT_MULTI_MODULE}"; then | |
8102 | # By default we will add the -single_module flag. You can override | |
8103 | # by either setting the environment variable LT_MULTI_MODULE | |
8104 | # non-empty at configure time, or by adding -multi_module to the | |
8105 | # link flags. | |
8106 | rm -rf libconftest.dylib* | |
8107 | echo "int foo(void){return 1;}" > conftest.c | |
8108 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8109 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8110 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8111 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8112 | _lt_result=$? | |
8113 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8114 | lt_cv_apple_cc_single_mod=yes | |
8115 | else | |
8116 | cat conftest.err >&5 | |
8117 | fi | |
8118 | rm -rf libconftest.dylib* | |
8119 | rm -f conftest.* | |
8120 | fi | |
8121 | fi | |
81ecdfbb RW |
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8123 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8125 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8126 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
8127 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8128 | else |
8129 | lt_cv_ld_exported_symbols_list=no | |
8130 | save_LDFLAGS=$LDFLAGS | |
8131 | echo "_main" > conftest.sym | |
8132 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 8133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b214d478 SE |
8134 | /* end confdefs.h. */ |
8135 | ||
8136 | int | |
8137 | main () | |
8138 | { | |
8139 | ||
8140 | ; | |
8141 | return 0; | |
8142 | } | |
8143 | _ACEOF | |
81ecdfbb | 8144 | if ac_fn_c_try_link "$LINENO"; then : |
b214d478 SE |
8145 | lt_cv_ld_exported_symbols_list=yes |
8146 | else | |
81ecdfbb | 8147 | lt_cv_ld_exported_symbols_list=no |
b214d478 | 8148 | fi |
81ecdfbb RW |
8149 | rm -f core conftest.err conftest.$ac_objext \ |
8150 | conftest$ac_exeext conftest.$ac_ext | |
b214d478 SE |
8151 | LDFLAGS="$save_LDFLAGS" |
8152 | ||
8153 | fi | |
81ecdfbb RW |
8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8155 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8157 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8158 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
8159 | $as_echo_n "(cached) " >&6 | |
8160 | else | |
8161 | lt_cv_ld_force_load=no | |
8162 | cat > conftest.c << _LT_EOF | |
8163 | int forced_loaded() { return 2;} | |
8164 | _LT_EOF | |
8165 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8166 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8167 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8168 | $AR cru libconftest.a conftest.o 2>&5 | |
8169 | cat > conftest.c << _LT_EOF | |
8170 | int main() { return 0;} | |
8171 | _LT_EOF | |
8172 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8173 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8174 | _lt_result=$? | |
8175 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8176 | lt_cv_ld_force_load=yes | |
8177 | else | |
8178 | cat conftest.err >&5 | |
8179 | fi | |
8180 | rm -f conftest.err libconftest.a conftest conftest.c | |
8181 | rm -rf conftest.dSYM | |
8182 | ||
8183 | fi | |
8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8185 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
b214d478 SE |
8186 | case $host_os in |
8187 | rhapsody* | darwin1.[012]) | |
8188 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8189 | darwin1.*) | |
8190 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8191 | darwin*) # darwin 5.x on | |
8192 | # if running on 10.5 or later, the deployment target defaults | |
8193 | # to the OS version, if on x86, and 10.4, the deployment | |
8194 | # target defaults to 10.4. Don't you love it? | |
8195 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8196 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8197 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6e733cce | 8198 | 10.[012][,.]*) |
b214d478 SE |
8199 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8200 | 10.*) | |
8201 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8202 | esac | |
8203 | ;; | |
8204 | esac | |
8205 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8206 | _lt_dar_single_mod='$single_module' | |
8207 | fi | |
8208 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8209 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8210 | else | |
8211 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8212 | fi | |
3725885a | 8213 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
b214d478 SE |
8214 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8215 | else | |
8216 | _lt_dsymutil= | |
8217 | fi | |
8218 | ;; | |
8219 | esac | |
8220 | ||
b214d478 | 8221 | for ac_header in dlfcn.h |
81ecdfbb RW |
8222 | do : |
8223 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8224 | " | |
8225 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
b214d478 | 8226 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 8227 | #define HAVE_DLFCN_H 1 |
b214d478 SE |
8228 | _ACEOF |
8229 | ||
8230 | fi | |
8231 | ||
8232 | done | |
8233 | ||
8234 | ||
8235 | ||
3725885a RW |
8236 | |
8237 | ||
3cb62297 | 8238 | |
b214d478 SE |
8239 | # Set options |
8240 | ||
8241 | ||
8242 | ||
8243 | enable_dlopen=no | |
8244 | ||
8245 | ||
8246 | enable_win32_dll=no | |
8247 | ||
8248 | ||
81ecdfbb RW |
8249 | # Check whether --enable-shared was given. |
8250 | if test "${enable_shared+set}" = set; then : | |
8251 | enableval=$enable_shared; p=${PACKAGE-default} | |
b214d478 SE |
8252 | case $enableval in |
8253 | yes) enable_shared=yes ;; | |
8254 | no) enable_shared=no ;; | |
8255 | *) | |
8256 | enable_shared=no | |
8257 | # Look at the argument we got. We use all the common list separators. | |
8258 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8259 | for pkg in $enableval; do | |
8260 | IFS="$lt_save_ifs" | |
8261 | if test "X$pkg" = "X$p"; then | |
8262 | enable_shared=yes | |
8263 | fi | |
8264 | done | |
8265 | IFS="$lt_save_ifs" | |
8266 | ;; | |
8267 | esac | |
8268 | else | |
8269 | enable_shared=yes | |
81ecdfbb | 8270 | fi |
b214d478 SE |
8271 | |
8272 | ||
8273 | ||
8274 | ||
8275 | ||
8276 | ||
8277 | ||
8278 | ||
81ecdfbb RW |
8279 | |
8280 | # Check whether --enable-static was given. | |
8281 | if test "${enable_static+set}" = set; then : | |
8282 | enableval=$enable_static; p=${PACKAGE-default} | |
b214d478 SE |
8283 | case $enableval in |
8284 | yes) enable_static=yes ;; | |
8285 | no) enable_static=no ;; | |
8286 | *) | |
8287 | enable_static=no | |
8288 | # Look at the argument we got. We use all the common list separators. | |
8289 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8290 | for pkg in $enableval; do | |
8291 | IFS="$lt_save_ifs" | |
8292 | if test "X$pkg" = "X$p"; then | |
8293 | enable_static=yes | |
8294 | fi | |
8295 | done | |
8296 | IFS="$lt_save_ifs" | |
8297 | ;; | |
8298 | esac | |
8299 | else | |
8300 | enable_static=yes | |
81ecdfbb | 8301 | fi |
b214d478 SE |
8302 | |
8303 | ||
8304 | ||
8305 | ||
8306 | ||
8307 | ||
8308 | ||
8309 | ||
8310 | ||
81ecdfbb RW |
8311 | |
8312 | # Check whether --with-pic was given. | |
8313 | if test "${with_pic+set}" = set; then : | |
8314 | withval=$with_pic; pic_mode="$withval" | |
b214d478 SE |
8315 | else |
8316 | pic_mode=default | |
81ecdfbb RW |
8317 | fi |
8318 | ||
b214d478 SE |
8319 | |
8320 | test -z "$pic_mode" && pic_mode=default | |
8321 | ||
8322 | ||
8323 | ||
8324 | ||
8325 | ||
8326 | ||
8327 | ||
81ecdfbb RW |
8328 | # Check whether --enable-fast-install was given. |
8329 | if test "${enable_fast_install+set}" = set; then : | |
8330 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
b214d478 SE |
8331 | case $enableval in |
8332 | yes) enable_fast_install=yes ;; | |
8333 | no) enable_fast_install=no ;; | |
8334 | *) | |
8335 | enable_fast_install=no | |
8336 | # Look at the argument we got. We use all the common list separators. | |
8337 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8338 | for pkg in $enableval; do | |
8339 | IFS="$lt_save_ifs" | |
8340 | if test "X$pkg" = "X$p"; then | |
8341 | enable_fast_install=yes | |
8342 | fi | |
8343 | done | |
8344 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
8345 | ;; |
8346 | esac | |
b214d478 SE |
8347 | else |
8348 | enable_fast_install=yes | |
81ecdfbb RW |
8349 | fi |
8350 | ||
ce2cded5 | 8351 | |
ce2cded5 L |
8352 | |
8353 | ||
ce2cded5 | 8354 | |
42ecbf5e | 8355 | |
d7040cdb | 8356 | |
d7040cdb | 8357 | |
d7040cdb | 8358 | |
d7040cdb | 8359 | |
d7040cdb | 8360 | |
ce2cded5 L |
8361 | # This can be used to rebuild libtool when needed |
8362 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 8363 | |
ce2cded5 L |
8364 | # Always use our own libtool. |
8365 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 8366 | |
d7040cdb | 8367 | |
d7040cdb | 8368 | |
d7040cdb | 8369 | |
d7040cdb | 8370 | |
d7040cdb | 8371 | |
d7040cdb | 8372 | |
d7040cdb | 8373 | |
d7040cdb | 8374 | |
d7040cdb | 8375 | |
d7040cdb | 8376 | |
d7040cdb | 8377 | |
d7040cdb | 8378 | |
d7040cdb | 8379 | |
d7040cdb | 8380 | |
d7040cdb | 8381 | |
d7040cdb SE |
8382 | |
8383 | ||
8384 | ||
8385 | ||
8386 | ||
8387 | ||
8388 | ||
3725885a | 8389 | |
d7040cdb SE |
8390 | |
8391 | ||
ce2cded5 | 8392 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
8393 | |
8394 | ||
8395 | ||
8396 | ||
8397 | ||
8398 | ||
d7040cdb SE |
8399 | |
8400 | ||
8401 | ||
8402 | ||
8403 | ||
8404 | ||
8405 | ||
8406 | ||
ce2cded5 L |
8407 | if test -n "${ZSH_VERSION+set}" ; then |
8408 | setopt NO_GLOB_SUBST | |
8409 | fi | |
d7040cdb | 8410 | |
81ecdfbb RW |
8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8412 | $as_echo_n "checking for objdir... " >&6; } | |
8413 | if test "${lt_cv_objdir+set}" = set; then : | |
8414 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8415 | else |
8416 | rm -f .libs 2>/dev/null | |
8417 | mkdir .libs 2>/dev/null | |
8418 | if test -d .libs; then | |
8419 | lt_cv_objdir=.libs | |
8420 | else | |
8421 | # MS-DOS does not allow filenames that begin with a dot. | |
8422 | lt_cv_objdir=_libs | |
8423 | fi | |
8424 | rmdir .libs 2>/dev/null | |
8425 | fi | |
81ecdfbb RW |
8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8427 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 8428 | objdir=$lt_cv_objdir |
d7040cdb SE |
8429 | |
8430 | ||
8431 | ||
8432 | ||
8433 | ||
ce2cded5 L |
8434 | cat >>confdefs.h <<_ACEOF |
8435 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8436 | _ACEOF | |
d7040cdb SE |
8437 | |
8438 | ||
8439 | ||
8440 | ||
ce2cded5 L |
8441 | case $host_os in |
8442 | aix3*) | |
8443 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8444 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8445 | # vanish in a puff of smoke. | |
8446 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8447 | COLLECT_NAMES= | |
8448 | export COLLECT_NAMES | |
8449 | fi | |
8450 | ;; | |
8451 | esac | |
d7040cdb | 8452 | |
ce2cded5 L |
8453 | # Global variables: |
8454 | ofile=libtool | |
8455 | can_build_shared=yes | |
d7040cdb | 8456 | |
ce2cded5 L |
8457 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8458 | # which needs '.lib'). | |
8459 | libext=a | |
d7040cdb | 8460 | |
ce2cded5 | 8461 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 8462 | |
ce2cded5 L |
8463 | old_CC="$CC" |
8464 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 8465 | |
ce2cded5 L |
8466 | # Set sane defaults for various variables |
8467 | test -z "$CC" && CC=cc | |
8468 | test -z "$LTCC" && LTCC=$CC | |
8469 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8470 | test -z "$LD" && LD=ld | |
8471 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 8472 | |
ce2cded5 L |
8473 | for cc_temp in $compiler""; do |
8474 | case $cc_temp in | |
8475 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8476 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8477 | \-*) ;; | |
8478 | *) break;; | |
8479 | esac | |
8480 | done | |
3725885a | 8481 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
d7040cdb SE |
8482 | |
8483 | ||
ce2cded5 L |
8484 | # Only perform the check for file, if the check method requires it |
8485 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8486 | case $deplibs_check_method in | |
8487 | file_magic*) | |
8488 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8490 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8491 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8492 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8493 | else |
8494 | case $MAGIC_CMD in | |
8495 | [\\/*] | ?:[\\/]*) | |
8496 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8497 | ;; | |
8498 | *) | |
8499 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8500 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8501 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8502 | for ac_dir in $ac_dummy; do | |
8503 | IFS="$lt_save_ifs" | |
8504 | test -z "$ac_dir" && ac_dir=. | |
8505 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8506 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8507 | if test -n "$file_magic_test_file"; then | |
8508 | case $deplibs_check_method in | |
8509 | "file_magic "*) | |
8510 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8511 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8512 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8513 | $EGREP "$file_magic_regex" > /dev/null; then | |
8514 | : | |
8515 | else | |
8516 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8517 | |
ce2cded5 L |
8518 | *** Warning: the command libtool uses to detect shared libraries, |
8519 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8520 | *** The result is that libtool may fail to recognize shared libraries | |
8521 | *** as such. This will affect the creation of libtool libraries that | |
8522 | *** depend on shared libraries, but programs linked with such libtool | |
8523 | *** libraries will work regardless of this problem. Nevertheless, you | |
8524 | *** may want to report the problem to your system manager and/or to | |
8525 | *** [email protected] | |
d7040cdb | 8526 | |
ce2cded5 L |
8527 | _LT_EOF |
8528 | fi ;; | |
8529 | esac | |
8530 | fi | |
8531 | break | |
8532 | fi | |
8533 | done | |
8534 | IFS="$lt_save_ifs" | |
8535 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8536 | ;; | |
8537 | esac | |
8538 | fi | |
d7040cdb | 8539 | |
ce2cded5 L |
8540 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8541 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8543 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8544 | else |
81ecdfbb RW |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8546 | $as_echo "no" >&6; } | |
ce2cded5 | 8547 | fi |
d7040cdb SE |
8548 | |
8549 | ||
8550 | ||
8551 | ||
8552 | ||
ce2cded5 L |
8553 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8554 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8556 | $as_echo_n "checking for file... " >&6; } | |
8557 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8558 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8559 | else |
8560 | case $MAGIC_CMD in | |
8561 | [\\/*] | ?:[\\/]*) | |
8562 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8563 | ;; | |
8564 | *) | |
8565 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8566 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8567 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8568 | for ac_dir in $ac_dummy; do | |
8569 | IFS="$lt_save_ifs" | |
8570 | test -z "$ac_dir" && ac_dir=. | |
8571 | if test -f $ac_dir/file; then | |
8572 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8573 | if test -n "$file_magic_test_file"; then | |
8574 | case $deplibs_check_method in | |
8575 | "file_magic "*) | |
8576 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8577 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8578 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8579 | $EGREP "$file_magic_regex" > /dev/null; then | |
8580 | : | |
8581 | else | |
8582 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8583 | |
ce2cded5 L |
8584 | *** Warning: the command libtool uses to detect shared libraries, |
8585 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8586 | *** The result is that libtool may fail to recognize shared libraries | |
8587 | *** as such. This will affect the creation of libtool libraries that | |
8588 | *** depend on shared libraries, but programs linked with such libtool | |
8589 | *** libraries will work regardless of this problem. Nevertheless, you | |
8590 | *** may want to report the problem to your system manager and/or to | |
8591 | *** [email protected] | |
d7040cdb | 8592 | |
ce2cded5 L |
8593 | _LT_EOF |
8594 | fi ;; | |
8595 | esac | |
8596 | fi | |
8597 | break | |
8598 | fi | |
8599 | done | |
8600 | IFS="$lt_save_ifs" | |
8601 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8602 | ;; | |
8603 | esac | |
8604 | fi | |
d7040cdb | 8605 | |
ce2cded5 L |
8606 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8607 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8609 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8610 | else |
81ecdfbb RW |
8611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8612 | $as_echo "no" >&6; } | |
ce2cded5 | 8613 | fi |
d7040cdb SE |
8614 | |
8615 | ||
ce2cded5 L |
8616 | else |
8617 | MAGIC_CMD=: | |
8618 | fi | |
8619 | fi | |
d7040cdb | 8620 | |
ce2cded5 L |
8621 | fi |
8622 | ;; | |
8623 | esac | |
d7040cdb | 8624 | |
ce2cded5 | 8625 | # Use C for the default configuration in the libtool script |
d7040cdb | 8626 | |
ce2cded5 L |
8627 | lt_save_CC="$CC" |
8628 | ac_ext=c | |
8629 | ac_cpp='$CPP $CPPFLAGS' | |
8630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
8633 | |
8634 | ||
ce2cded5 L |
8635 | # Source file extension for C test sources. |
8636 | ac_ext=c | |
d7040cdb | 8637 | |
ce2cded5 L |
8638 | # Object file extension for compiled C test sources. |
8639 | objext=o | |
8640 | objext=$objext | |
d7040cdb | 8641 | |
ce2cded5 L |
8642 | # Code to be used in simple compile tests |
8643 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 8644 | |
ce2cded5 L |
8645 | # Code to be used in simple link tests |
8646 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
8647 | |
8648 | ||
8649 | ||
8650 | ||
8651 | ||
8652 | ||
8653 | ||
ce2cded5 L |
8654 | # If no C compiler was specified, use CC. |
8655 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 8656 | |
ce2cded5 L |
8657 | # If no C compiler flags were specified, use CFLAGS. |
8658 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 8659 | |
ce2cded5 L |
8660 | # Allow CC to be a program name with arguments. |
8661 | compiler=$CC | |
d7040cdb | 8662 | |
ce2cded5 L |
8663 | # Save the default compiler, since it gets overwritten when the other |
8664 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8665 | compiler_DEFAULT=$CC | |
d7040cdb | 8666 | |
ce2cded5 L |
8667 | # save warnings/boilerplate of simple test code |
8668 | ac_outfile=conftest.$ac_objext | |
8669 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8670 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8671 | _lt_compiler_boilerplate=`cat conftest.err` | |
8672 | $RM conftest* | |
d7040cdb | 8673 | |
ce2cded5 L |
8674 | ac_outfile=conftest.$ac_objext |
8675 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8676 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8677 | _lt_linker_boilerplate=`cat conftest.err` | |
b214d478 | 8678 | $RM -r conftest* |
d7040cdb SE |
8679 | |
8680 | ||
ce2cded5 L |
8681 | ## CAVEAT EMPTOR: |
8682 | ## There is no encapsulation within the following macros, do not change | |
8683 | ## the running order or otherwise move them around unless you know exactly | |
8684 | ## what you are doing... | |
8685 | if test -n "$compiler"; then | |
d7040cdb | 8686 | |
ce2cded5 | 8687 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 8688 | |
ce2cded5 | 8689 | if test "$GCC" = yes; then |
3725885a RW |
8690 | case $cc_basename in |
8691 | nvcc*) | |
8692 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8693 | *) | |
8694 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8695 | esac | |
d7040cdb | 8696 | |
81ecdfbb RW |
8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8698 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8699 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8700 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8701 | else |
8702 | lt_cv_prog_compiler_rtti_exceptions=no | |
8703 | ac_outfile=conftest.$ac_objext | |
8704 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8705 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8706 | # Insert the option either (1) after the last *FLAGS variable, or | |
8707 | # (2) before a word containing "conftest.", or (3) at the end. | |
8708 | # Note that $ac_compile itself does not contain backslashes and begins | |
8709 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8710 | # The option is referenced via a variable to avoid confusing sed. | |
8711 | lt_compile=`echo "$ac_compile" | $SED \ | |
8712 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8713 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8714 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8715 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8716 | (eval "$lt_compile" 2>conftest.err) |
8717 | ac_status=$? | |
8718 | cat conftest.err >&5 | |
3725885a | 8719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8720 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8721 | # The compiler can only warn and ignore the option if not recognized | |
8722 | # So say no if there are warnings other than the usual output. | |
3725885a | 8723 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
8724 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8725 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8726 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8727 | fi | |
8728 | fi | |
8729 | $RM conftest* | |
d7040cdb | 8730 | |
ce2cded5 | 8731 | fi |
81ecdfbb RW |
8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8733 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb | 8734 | |
ce2cded5 L |
8735 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8736 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8737 | else | |
8738 | : | |
8739 | fi | |
d7040cdb | 8740 | |
ce2cded5 | 8741 | fi |
d7040cdb SE |
8742 | |
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | ||
ce2cded5 L |
8748 | lt_prog_compiler_wl= |
8749 | lt_prog_compiler_pic= | |
8750 | lt_prog_compiler_static= | |
d7040cdb | 8751 | |
81ecdfbb RW |
8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8753 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb | 8754 | |
ce2cded5 L |
8755 | if test "$GCC" = yes; then |
8756 | lt_prog_compiler_wl='-Wl,' | |
8757 | lt_prog_compiler_static='-static' | |
d7040cdb | 8758 | |
ce2cded5 L |
8759 | case $host_os in |
8760 | aix*) | |
8761 | # All AIX code is PIC. | |
8762 | if test "$host_cpu" = ia64; then | |
8763 | # AIX 5 now supports IA64 processor | |
8764 | lt_prog_compiler_static='-Bstatic' | |
8765 | fi | |
52204357 | 8766 | lt_prog_compiler_pic='-fPIC' |
ce2cded5 | 8767 | ;; |
d7040cdb | 8768 | |
ce2cded5 | 8769 | amigaos*) |
b214d478 SE |
8770 | case $host_cpu in |
8771 | powerpc) | |
8772 | # see comment about AmigaOS4 .so support | |
8773 | lt_prog_compiler_pic='-fPIC' | |
8774 | ;; | |
8775 | m68k) | |
8776 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8777 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8778 | # like `-m68040'. | |
8779 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8780 | ;; | |
8781 | esac | |
ce2cded5 | 8782 | ;; |
d7040cdb | 8783 | |
ce2cded5 L |
8784 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8785 | # PIC is the default for these OSes. | |
8786 | ;; | |
d7040cdb | 8787 | |
b214d478 | 8788 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8789 | # This hack is so that the source file can tell whether it is being |
8790 | # built for inclusion in a dll (and should export symbols for example). | |
8791 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8792 | # (--disable-auto-import) libraries | |
8793 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8794 | ;; | |
d7040cdb | 8795 | |
ce2cded5 L |
8796 | darwin* | rhapsody*) |
8797 | # PIC is the default on this platform | |
8798 | # Common symbols not allowed in MH_DYLIB files | |
8799 | lt_prog_compiler_pic='-fno-common' | |
8800 | ;; | |
d7040cdb | 8801 | |
3725885a RW |
8802 | haiku*) |
8803 | # PIC is the default for Haiku. | |
8804 | # The "-static" flag exists, but is broken. | |
8805 | lt_prog_compiler_static= | |
8806 | ;; | |
8807 | ||
ce2cded5 | 8808 | hpux*) |
b214d478 SE |
8809 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8810 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8811 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8812 | case $host_cpu in |
b214d478 | 8813 | hppa*64*) |
ce2cded5 L |
8814 | # +Z the default |
8815 | ;; | |
8816 | *) | |
8817 | lt_prog_compiler_pic='-fPIC' | |
8818 | ;; | |
8819 | esac | |
8820 | ;; | |
d7040cdb | 8821 | |
ce2cded5 L |
8822 | interix[3-9]*) |
8823 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8824 | # Instead, we relocate shared libraries at runtime. | |
8825 | ;; | |
d7040cdb | 8826 | |
ce2cded5 L |
8827 | msdosdjgpp*) |
8828 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8829 | # on systems that don't support them. | |
8830 | lt_prog_compiler_can_build_shared=no | |
8831 | enable_shared=no | |
8832 | ;; | |
d7040cdb | 8833 | |
ce2cded5 L |
8834 | *nto* | *qnx*) |
8835 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8836 | # it will coredump. | |
8837 | lt_prog_compiler_pic='-fPIC -shared' | |
8838 | ;; | |
d7040cdb | 8839 | |
ce2cded5 L |
8840 | sysv4*MP*) |
8841 | if test -d /usr/nec; then | |
8842 | lt_prog_compiler_pic=-Kconform_pic | |
8843 | fi | |
8844 | ;; | |
d7040cdb | 8845 | |
ce2cded5 L |
8846 | *) |
8847 | lt_prog_compiler_pic='-fPIC' | |
8848 | ;; | |
8849 | esac | |
3725885a RW |
8850 | |
8851 | case $cc_basename in | |
8852 | nvcc*) # Cuda Compiler Driver 2.2 | |
8853 | lt_prog_compiler_wl='-Xlinker ' | |
8854 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8855 | ;; | |
8856 | esac | |
ce2cded5 L |
8857 | else |
8858 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8859 | case $host_os in | |
8860 | aix*) | |
8861 | lt_prog_compiler_wl='-Wl,' | |
8862 | if test "$host_cpu" = ia64; then | |
8863 | # AIX 5 now supports IA64 processor | |
8864 | lt_prog_compiler_static='-Bstatic' | |
8865 | else | |
8866 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8867 | fi | |
8868 | ;; | |
d7040cdb | 8869 | |
b214d478 | 8870 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8871 | # This hack is so that the source file can tell whether it is being |
8872 | # built for inclusion in a dll (and should export symbols for example). | |
8873 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8874 | ;; | |
d7040cdb | 8875 | |
ce2cded5 L |
8876 | hpux9* | hpux10* | hpux11*) |
8877 | lt_prog_compiler_wl='-Wl,' | |
8878 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8879 | # not for PA HP-UX. | |
8880 | case $host_cpu in | |
8881 | hppa*64*|ia64*) | |
8882 | # +Z the default | |
8883 | ;; | |
8884 | *) | |
8885 | lt_prog_compiler_pic='+Z' | |
8886 | ;; | |
8887 | esac | |
8888 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8889 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8890 | ;; | |
d7040cdb | 8891 | |
ce2cded5 L |
8892 | irix5* | irix6* | nonstopux*) |
8893 | lt_prog_compiler_wl='-Wl,' | |
8894 | # PIC (with -KPIC) is the default. | |
8895 | lt_prog_compiler_static='-non_shared' | |
8896 | ;; | |
d7040cdb | 8897 | |
58e24671 | 8898 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8899 | case $cc_basename in |
b214d478 SE |
8900 | # old Intel for x86_64 which still supported -KPIC. |
8901 | ecc*) | |
ce2cded5 L |
8902 | lt_prog_compiler_wl='-Wl,' |
8903 | lt_prog_compiler_pic='-KPIC' | |
8904 | lt_prog_compiler_static='-static' | |
8905 | ;; | |
b214d478 SE |
8906 | # icc used to be incompatible with GCC. |
8907 | # ICC 10 doesn't accept -KPIC any more. | |
8908 | icc* | ifort*) | |
8909 | lt_prog_compiler_wl='-Wl,' | |
8910 | lt_prog_compiler_pic='-fPIC' | |
8911 | lt_prog_compiler_static='-static' | |
8912 | ;; | |
8913 | # Lahey Fortran 8.1. | |
8914 | lf95*) | |
8915 | lt_prog_compiler_wl='-Wl,' | |
8916 | lt_prog_compiler_pic='--shared' | |
8917 | lt_prog_compiler_static='--static' | |
8918 | ;; | |
3725885a | 8919 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
8920 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8921 | # which looks to be a dead project) | |
8922 | lt_prog_compiler_wl='-Wl,' | |
8923 | lt_prog_compiler_pic='-fpic' | |
8924 | lt_prog_compiler_static='-Bstatic' | |
8925 | ;; | |
8926 | ccc*) | |
8927 | lt_prog_compiler_wl='-Wl,' | |
8928 | # All Alpha code is PIC. | |
8929 | lt_prog_compiler_static='-non_shared' | |
8930 | ;; | |
3725885a RW |
8931 | xl* | bgxl* | bgf* | mpixl*) |
8932 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
b214d478 SE |
8933 | lt_prog_compiler_wl='-Wl,' |
8934 | lt_prog_compiler_pic='-qpic' | |
8935 | lt_prog_compiler_static='-qstaticlink' | |
8936 | ;; | |
ce2cded5 L |
8937 | *) |
8938 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8939 | *Sun\ F* | *Sun*Fortran*) |
8940 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
8941 | lt_prog_compiler_pic='-KPIC' |
8942 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8943 | lt_prog_compiler_wl='' |
ce2cded5 | 8944 | ;; |
3725885a RW |
8945 | *Sun\ C*) |
8946 | # Sun C 5.9 | |
ce2cded5 L |
8947 | lt_prog_compiler_pic='-KPIC' |
8948 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8949 | lt_prog_compiler_wl='-Wl,' |
ce2cded5 L |
8950 | ;; |
8951 | esac | |
8952 | ;; | |
8953 | esac | |
8954 | ;; | |
d7040cdb | 8955 | |
ce2cded5 L |
8956 | newsos6) |
8957 | lt_prog_compiler_pic='-KPIC' | |
8958 | lt_prog_compiler_static='-Bstatic' | |
8959 | ;; | |
d7040cdb | 8960 | |
ce2cded5 L |
8961 | *nto* | *qnx*) |
8962 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8963 | # it will coredump. | |
8964 | lt_prog_compiler_pic='-fPIC -shared' | |
8965 | ;; | |
d7040cdb | 8966 | |
ce2cded5 L |
8967 | osf3* | osf4* | osf5*) |
8968 | lt_prog_compiler_wl='-Wl,' | |
8969 | # All OSF/1 code is PIC. | |
8970 | lt_prog_compiler_static='-non_shared' | |
8971 | ;; | |
d7040cdb | 8972 | |
ce2cded5 L |
8973 | rdos*) |
8974 | lt_prog_compiler_static='-non_shared' | |
8975 | ;; | |
d7040cdb | 8976 | |
ce2cded5 L |
8977 | solaris*) |
8978 | lt_prog_compiler_pic='-KPIC' | |
8979 | lt_prog_compiler_static='-Bstatic' | |
8980 | case $cc_basename in | |
8981 | f77* | f90* | f95*) | |
8982 | lt_prog_compiler_wl='-Qoption ld ';; | |
8983 | *) | |
8984 | lt_prog_compiler_wl='-Wl,';; | |
8985 | esac | |
8986 | ;; | |
d7040cdb | 8987 | |
ce2cded5 L |
8988 | sunos4*) |
8989 | lt_prog_compiler_wl='-Qoption ld ' | |
8990 | lt_prog_compiler_pic='-PIC' | |
8991 | lt_prog_compiler_static='-Bstatic' | |
8992 | ;; | |
d7040cdb | 8993 | |
ce2cded5 L |
8994 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8995 | lt_prog_compiler_wl='-Wl,' | |
8996 | lt_prog_compiler_pic='-KPIC' | |
8997 | lt_prog_compiler_static='-Bstatic' | |
8998 | ;; | |
d7040cdb | 8999 | |
ce2cded5 L |
9000 | sysv4*MP*) |
9001 | if test -d /usr/nec ;then | |
9002 | lt_prog_compiler_pic='-Kconform_pic' | |
9003 | lt_prog_compiler_static='-Bstatic' | |
9004 | fi | |
9005 | ;; | |
d7040cdb | 9006 | |
ce2cded5 L |
9007 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9008 | lt_prog_compiler_wl='-Wl,' | |
9009 | lt_prog_compiler_pic='-KPIC' | |
9010 | lt_prog_compiler_static='-Bstatic' | |
9011 | ;; | |
d7040cdb | 9012 | |
ce2cded5 L |
9013 | unicos*) |
9014 | lt_prog_compiler_wl='-Wl,' | |
9015 | lt_prog_compiler_can_build_shared=no | |
9016 | ;; | |
d7040cdb | 9017 | |
ce2cded5 L |
9018 | uts4*) |
9019 | lt_prog_compiler_pic='-pic' | |
9020 | lt_prog_compiler_static='-Bstatic' | |
9021 | ;; | |
d7040cdb | 9022 | |
ce2cded5 L |
9023 | *) |
9024 | lt_prog_compiler_can_build_shared=no | |
9025 | ;; | |
9026 | esac | |
9027 | fi | |
d7040cdb | 9028 | |
ce2cded5 L |
9029 | case $host_os in |
9030 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9031 | *djgpp*) | |
9032 | lt_prog_compiler_pic= | |
9033 | ;; | |
9034 | *) | |
9035 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9036 | ;; | |
9037 | esac | |
81ecdfbb RW |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
9039 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
9040 | |
9041 | ||
9042 | ||
9043 | ||
9044 | ||
9045 | ||
ce2cded5 L |
9046 | # |
9047 | # Check to make sure the PIC flag actually works. | |
9048 | # | |
9049 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
9051 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9052 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
9053 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 9054 | else |
b214d478 | 9055 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
9056 | ac_outfile=conftest.$ac_objext |
9057 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9058 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9059 | # Insert the option either (1) after the last *FLAGS variable, or | |
9060 | # (2) before a word containing "conftest.", or (3) at the end. | |
9061 | # Note that $ac_compile itself does not contain backslashes and begins | |
9062 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9063 | # The option is referenced via a variable to avoid confusing sed. | |
9064 | lt_compile=`echo "$ac_compile" | $SED \ | |
9065 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9066 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9067 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9068 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9069 | (eval "$lt_compile" 2>conftest.err) |
9070 | ac_status=$? | |
9071 | cat conftest.err >&5 | |
3725885a | 9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9073 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9074 | # The compiler can only warn and ignore the option if not recognized | |
9075 | # So say no if there are warnings other than the usual output. | |
3725885a | 9076 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
9077 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9078 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9079 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
9080 | fi |
9081 | fi | |
9082 | $RM conftest* | |
d7040cdb | 9083 | |
ce2cded5 | 9084 | fi |
81ecdfbb RW |
9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9086 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
ce2cded5 | 9087 | |
b214d478 | 9088 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
9089 | case $lt_prog_compiler_pic in |
9090 | "" | " "*) ;; | |
9091 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9092 | esac | |
9093 | else | |
9094 | lt_prog_compiler_pic= | |
9095 | lt_prog_compiler_can_build_shared=no | |
9096 | fi | |
9097 | ||
9098 | fi | |
d7040cdb SE |
9099 | |
9100 | ||
9101 | ||
9102 | ||
9103 | ||
9104 | ||
ce2cded5 L |
9105 | # |
9106 | # Check to make sure the static flag actually works. | |
9107 | # | |
9108 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
9109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9110 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9111 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
9112 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 9113 | else |
b214d478 | 9114 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
9115 | save_LDFLAGS="$LDFLAGS" |
9116 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9117 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9118 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9119 | # The linker can only warn and ignore the option if not recognized | |
9120 | # So say no if there are warnings | |
9121 | if test -s conftest.err; then | |
9122 | # Append any errors to the config.log. | |
9123 | cat conftest.err 1>&5 | |
3725885a | 9124 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
9125 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9126 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9127 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9128 | fi |
9129 | else | |
b214d478 | 9130 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9131 | fi |
9132 | fi | |
b214d478 | 9133 | $RM -r conftest* |
ce2cded5 | 9134 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 9135 | |
ce2cded5 | 9136 | fi |
81ecdfbb RW |
9137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9138 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 9139 | |
b214d478 | 9140 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
9141 | : |
9142 | else | |
9143 | lt_prog_compiler_static= | |
9144 | fi | |
d7040cdb SE |
9145 | |
9146 | ||
9147 | ||
9148 | ||
9149 | ||
9150 | ||
9151 | ||
81ecdfbb RW |
9152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9153 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9154 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9155 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9156 | else |
9157 | lt_cv_prog_compiler_c_o=no | |
9158 | $RM -r conftest 2>/dev/null | |
9159 | mkdir conftest | |
9160 | cd conftest | |
9161 | mkdir out | |
9162 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9163 | |
ce2cded5 L |
9164 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9165 | # Insert the option either (1) after the last *FLAGS variable, or | |
9166 | # (2) before a word containing "conftest.", or (3) at the end. | |
9167 | # Note that $ac_compile itself does not contain backslashes and begins | |
9168 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9169 | lt_compile=`echo "$ac_compile" | $SED \ | |
9170 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9171 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9172 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9173 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9174 | (eval "$lt_compile" 2>out/conftest.err) |
9175 | ac_status=$? | |
9176 | cat out/conftest.err >&5 | |
3725885a | 9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9178 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9179 | then | |
9180 | # The compiler can only warn and ignore the option if not recognized | |
9181 | # So say no if there are warnings | |
3725885a | 9182 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9183 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9184 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9185 | lt_cv_prog_compiler_c_o=yes | |
9186 | fi | |
9187 | fi | |
9188 | chmod u+w . 2>&5 | |
9189 | $RM conftest* | |
9190 | # SGI C++ compiler will create directory out/ii_files/ for | |
9191 | # template instantiation | |
9192 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9193 | $RM out/* && rmdir out | |
9194 | cd .. | |
9195 | $RM -r conftest | |
9196 | $RM conftest* | |
d7040cdb | 9197 | |
ce2cded5 | 9198 | fi |
81ecdfbb RW |
9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9200 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
9201 | |
9202 | ||
9203 | ||
9204 | ||
9205 | ||
9206 | ||
81ecdfbb RW |
9207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9208 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9209 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9210 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9211 | else |
9212 | lt_cv_prog_compiler_c_o=no | |
9213 | $RM -r conftest 2>/dev/null | |
9214 | mkdir conftest | |
9215 | cd conftest | |
9216 | mkdir out | |
9217 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9218 | |
ce2cded5 L |
9219 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9220 | # Insert the option either (1) after the last *FLAGS variable, or | |
9221 | # (2) before a word containing "conftest.", or (3) at the end. | |
9222 | # Note that $ac_compile itself does not contain backslashes and begins | |
9223 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9224 | lt_compile=`echo "$ac_compile" | $SED \ | |
9225 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9226 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9227 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9228 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9229 | (eval "$lt_compile" 2>out/conftest.err) |
9230 | ac_status=$? | |
9231 | cat out/conftest.err >&5 | |
3725885a | 9232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9233 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9234 | then | |
9235 | # The compiler can only warn and ignore the option if not recognized | |
9236 | # So say no if there are warnings | |
3725885a | 9237 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9238 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9239 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9240 | lt_cv_prog_compiler_c_o=yes | |
9241 | fi | |
9242 | fi | |
9243 | chmod u+w . 2>&5 | |
9244 | $RM conftest* | |
9245 | # SGI C++ compiler will create directory out/ii_files/ for | |
9246 | # template instantiation | |
9247 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9248 | $RM out/* && rmdir out | |
9249 | cd .. | |
9250 | $RM -r conftest | |
9251 | $RM conftest* | |
9252 | ||
9253 | fi | |
81ecdfbb RW |
9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9255 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ce2cded5 L |
9256 | |
9257 | ||
9258 | ||
9259 | ||
9260 | hard_links="nottested" | |
9261 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9262 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9264 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
9265 | hard_links=yes |
9266 | $RM conftest* | |
9267 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9268 | touch conftest.a | |
9269 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9270 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
9271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9272 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 9273 | if test "$hard_links" = no; then |
81ecdfbb RW |
9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9275 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 | 9276 | need_locks=warn |
d7040cdb | 9277 | fi |
d7040cdb | 9278 | else |
ce2cded5 | 9279 | need_locks=no |
d7040cdb | 9280 | fi |
d7040cdb | 9281 | |
d7040cdb | 9282 | |
d7040cdb | 9283 | |
d7040cdb | 9284 | |
d7040cdb | 9285 | |
d7040cdb | 9286 | |
81ecdfbb RW |
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9288 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 9289 | |
ce2cded5 L |
9290 | runpath_var= |
9291 | allow_undefined_flag= | |
9292 | always_export_symbols=no | |
9293 | archive_cmds= | |
9294 | archive_expsym_cmds= | |
9295 | compiler_needs_object=no | |
9296 | enable_shared_with_static_runtimes=no | |
9297 | export_dynamic_flag_spec= | |
9298 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9299 | hardcode_automatic=no | |
9300 | hardcode_direct=no | |
9301 | hardcode_direct_absolute=no | |
9302 | hardcode_libdir_flag_spec= | |
9303 | hardcode_libdir_flag_spec_ld= | |
9304 | hardcode_libdir_separator= | |
9305 | hardcode_minus_L=no | |
9306 | hardcode_shlibpath_var=unsupported | |
9307 | inherit_rpath=no | |
9308 | link_all_deplibs=unknown | |
9309 | module_cmds= | |
9310 | module_expsym_cmds= | |
9311 | old_archive_from_new_cmds= | |
9312 | old_archive_from_expsyms_cmds= | |
9313 | thread_safe_flag_spec= | |
9314 | whole_archive_flag_spec= | |
9315 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9316 | # included in the symbol list | |
9317 | include_expsyms= | |
9318 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9319 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9320 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9321 | # as well as any symbol that contains `d'. | |
b214d478 | 9322 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
9323 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9324 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9325 | # the symbol is explicitly referenced. Since portable code cannot | |
9326 | # rely on this symbol name, it's probably fine to never include it in | |
9327 | # preloaded symbol tables. | |
b214d478 | 9328 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 9329 | extract_expsyms_cmds= |
d7040cdb | 9330 | |
ce2cded5 | 9331 | case $host_os in |
b214d478 | 9332 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9333 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9334 | # When not using gcc, we currently assume that we are using | |
9335 | # Microsoft Visual C++. | |
9336 | if test "$GCC" != yes; then | |
9337 | with_gnu_ld=no | |
9338 | fi | |
d7040cdb | 9339 | ;; |
ce2cded5 L |
9340 | interix*) |
9341 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9342 | with_gnu_ld=yes | |
9343 | ;; | |
9344 | openbsd*) | |
9345 | with_gnu_ld=no | |
d7040cdb SE |
9346 | ;; |
9347 | esac | |
d7040cdb | 9348 | |
ce2cded5 | 9349 | ld_shlibs=yes |
3725885a RW |
9350 | |
9351 | # On some targets, GNU ld is compatible enough with the native linker | |
9352 | # that we're better off using the native interface for both. | |
9353 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 9354 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
9355 | case $host_os in |
9356 | aix*) | |
9357 | # The AIX port of GNU ld has always aspired to compatibility | |
9358 | # with the native linker. However, as the warning in the GNU ld | |
9359 | # block says, versions before 2.19.5* couldn't really create working | |
9360 | # shared libraries, regardless of the interface used. | |
9361 | case `$LD -v 2>&1` in | |
9362 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9363 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9364 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9365 | *) | |
9366 | lt_use_gnu_ld_interface=yes | |
9367 | ;; | |
9368 | esac | |
9369 | ;; | |
9370 | *) | |
9371 | lt_use_gnu_ld_interface=yes | |
9372 | ;; | |
9373 | esac | |
9374 | fi | |
9375 | ||
9376 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
9377 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9378 | wlarc='${wl}' | |
d7040cdb | 9379 | |
ce2cded5 L |
9380 | # Set some defaults for GNU ld with shared library support. These |
9381 | # are reset later if shared libraries are not supported. Putting them | |
9382 | # here allows them to be overridden if necessary. | |
9383 | runpath_var=LD_RUN_PATH | |
9384 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9385 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9386 | # ancient GNU ld didn't support --whole-archive et. al. | |
9387 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9388 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9389 | else | |
9390 | whole_archive_flag_spec= | |
9391 | fi | |
9392 | supports_anon_versioning=no | |
9393 | case `$LD -v 2>&1` in | |
3725885a | 9394 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
9395 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9396 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9397 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9398 | *\ 2.11.*) ;; # other 2.11 versions | |
9399 | *) supports_anon_versioning=yes ;; | |
9400 | esac | |
d7040cdb | 9401 | |
ce2cded5 L |
9402 | # See if GNU ld supports shared libraries. |
9403 | case $host_os in | |
50e7d84b | 9404 | aix[3-9]*) |
ce2cded5 L |
9405 | # On AIX/PPC, the GNU linker is very broken |
9406 | if test "$host_cpu" != ia64; then | |
9407 | ld_shlibs=no | |
9408 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9409 | |
3725885a | 9410 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
9411 | *** to be unable to reliably create shared libraries on AIX. |
9412 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
9413 | *** really care for shared libraries, you may want to install binutils |
9414 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9415 | *** You will then need to restart the configuration process. | |
d7040cdb | 9416 | |
ce2cded5 L |
9417 | _LT_EOF |
9418 | fi | |
d7040cdb | 9419 | ;; |
d7040cdb | 9420 | |
ce2cded5 | 9421 | amigaos*) |
b214d478 SE |
9422 | case $host_cpu in |
9423 | powerpc) | |
9424 | # see comment about AmigaOS4 .so support | |
9425 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9426 | archive_expsym_cmds='' | |
9427 | ;; | |
9428 | m68k) | |
9429 | 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)' | |
9430 | hardcode_libdir_flag_spec='-L$libdir' | |
9431 | hardcode_minus_L=yes | |
9432 | ;; | |
9433 | esac | |
ce2cded5 | 9434 | ;; |
d7040cdb | 9435 | |
ce2cded5 L |
9436 | beos*) |
9437 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9438 | allow_undefined_flag=unsupported | |
9439 | # Joseph Beckenbach <[email protected]> says some releases of gcc | |
9440 | # support --undefined. This deserves some investigation. FIXME | |
9441 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9442 | else | |
9443 | ld_shlibs=no | |
9444 | fi | |
9445 | ;; | |
d7040cdb | 9446 | |
b214d478 | 9447 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9448 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9449 | # as there is no search path for DLLs. | |
9450 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 9451 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
9452 | allow_undefined_flag=unsupported |
9453 | always_export_symbols=no | |
9454 | enable_shared_with_static_runtimes=yes | |
9455 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9456 | ||
9457 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9458 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9459 | # If the export-symbols file already is a .def file (1st line | |
9460 | # is EXPORTS), use it as is; otherwise, prepend... | |
9461 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9462 | cp $export_symbols $output_objdir/$soname.def; | |
d7040cdb | 9463 | else |
ce2cded5 L |
9464 | echo EXPORTS > $output_objdir/$soname.def; |
9465 | cat $export_symbols >> $output_objdir/$soname.def; | |
9466 | fi~ | |
9467 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9468 | else | |
9469 | ld_shlibs=no | |
9470 | fi | |
9471 | ;; | |
d7040cdb | 9472 | |
3725885a RW |
9473 | haiku*) |
9474 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9475 | link_all_deplibs=yes | |
9476 | ;; | |
9477 | ||
ce2cded5 L |
9478 | interix[3-9]*) |
9479 | hardcode_direct=no | |
9480 | hardcode_shlibpath_var=no | |
9481 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9482 | export_dynamic_flag_spec='${wl}-E' | |
9483 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9484 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9485 | # default) and relocated if they conflict, which is a slow very memory | |
9486 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9487 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9488 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9489 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9490 | 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' | |
9491 | ;; | |
d7040cdb | 9492 | |
58e24671 | 9493 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
9494 | tmp_diet=no |
9495 | if test "$host_os" = linux-dietlibc; then | |
9496 | case $cc_basename in | |
9497 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9498 | esac | |
9499 | fi | |
9500 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9501 | && test "$tmp_diet" = no | |
9502 | then | |
6e733cce | 9503 | tmp_addflag=' $pic_flag' |
b214d478 | 9504 | tmp_sharedflag='-shared' |
ce2cded5 L |
9505 | case $cc_basename,$host_cpu in |
9506 | pgcc*) # Portland Group C compiler | |
3725885a | 9507 | 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 |
9508 | tmp_addflag=' $pic_flag' |
9509 | ;; | |
3725885a RW |
9510 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9511 | # Portland Group f77 and f90 compilers | |
9512 | 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 |
9513 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9514 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9515 | tmp_addflag=' -i_dynamic' ;; | |
9516 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9517 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9518 | ifc* | ifort*) # Intel Fortran compiler | |
9519 | tmp_addflag=' -nofor_main' ;; | |
b214d478 SE |
9520 | lf95*) # Lahey Fortran 8.1 |
9521 | whole_archive_flag_spec= | |
9522 | tmp_sharedflag='--shared' ;; | |
3725885a | 9523 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
b214d478 SE |
9524 | tmp_sharedflag='-qmkshrobj' |
9525 | tmp_addflag= ;; | |
3725885a RW |
9526 | nvcc*) # Cuda Compiler Driver 2.2 |
9527 | 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' | |
9528 | compiler_needs_object=yes | |
9529 | ;; | |
ce2cded5 L |
9530 | esac |
9531 | case `$CC -V 2>&1 | sed 5q` in | |
9532 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 9533 | 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 |
9534 | compiler_needs_object=yes |
9535 | tmp_sharedflag='-G' ;; | |
9536 | *Sun\ F*) # Sun Fortran 8.3 | |
9537 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
9538 | esac |
9539 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 9540 | |
ce2cded5 L |
9541 | if test "x$supports_anon_versioning" = xyes; then |
9542 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9543 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9544 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9545 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9546 | fi | |
b214d478 SE |
9547 | |
9548 | case $cc_basename in | |
3725885a | 9549 | xlf* | bgf* | bgxlf* | mpixlf*) |
b214d478 SE |
9550 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9551 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9552 | hardcode_libdir_flag_spec= | |
9553 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9554 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9555 | if test "x$supports_anon_versioning" = xyes; then | |
9556 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9557 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9558 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9559 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9560 | fi | |
9561 | ;; | |
9562 | esac | |
ce2cded5 L |
9563 | else |
9564 | ld_shlibs=no | |
9565 | fi | |
9566 | ;; | |
d7040cdb | 9567 | |
ce2cded5 L |
9568 | netbsd*) |
9569 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9570 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9571 | wlarc= | |
9572 | else | |
9573 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9574 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9575 | fi | |
9576 | ;; | |
9577 | ||
9578 | solaris*) | |
9579 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9580 | ld_shlibs=no | |
9581 | cat <<_LT_EOF 1>&2 | |
9582 | ||
9583 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9584 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9585 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9586 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9587 | *** your PATH or compiler configuration so that the native linker is | |
9588 | *** used, and then restart. | |
9589 | ||
9590 | _LT_EOF | |
9591 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9592 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9593 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9594 | else | |
9595 | ld_shlibs=no | |
9596 | fi | |
9597 | ;; | |
9598 | ||
9599 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9600 | case `$LD -v 2>&1` in | |
9601 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9602 | ld_shlibs=no | |
9603 | cat <<_LT_EOF 1>&2 | |
9604 | ||
9605 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9606 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9607 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9608 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9609 | *** your PATH or compiler configuration so that the native linker is | |
9610 | *** used, and then restart. | |
9611 | ||
9612 | _LT_EOF | |
9613 | ;; | |
9614 | *) | |
9615 | # For security reasons, it is highly recommended that you always | |
9616 | # use absolute paths for naming shared libraries, and exclude the | |
9617 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9618 | # requires that you compile everything twice, which is a pain. | |
9619 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9620 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9621 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9622 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9623 | else | |
9624 | ld_shlibs=no | |
9625 | fi | |
9626 | ;; | |
9627 | esac | |
9628 | ;; | |
9629 | ||
9630 | sunos4*) | |
9631 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9632 | wlarc= | |
9633 | hardcode_direct=yes | |
9634 | hardcode_shlibpath_var=no | |
9635 | ;; | |
9636 | ||
9637 | *) | |
9638 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9639 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9640 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9641 | else | |
9642 | ld_shlibs=no | |
9643 | fi | |
9644 | ;; | |
9645 | esac | |
9646 | ||
9647 | if test "$ld_shlibs" = no; then | |
9648 | runpath_var= | |
9649 | hardcode_libdir_flag_spec= | |
9650 | export_dynamic_flag_spec= | |
9651 | whole_archive_flag_spec= | |
9652 | fi | |
9653 | else | |
9654 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9655 | case $host_os in | |
9656 | aix3*) | |
9657 | allow_undefined_flag=unsupported | |
9658 | always_export_symbols=yes | |
9659 | 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' | |
9660 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9661 | # are no directories specified by -L. | |
9662 | hardcode_minus_L=yes | |
9663 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9664 | # Neither direct hardcoding nor static linking is supported with a | |
9665 | # broken collect2. | |
9666 | hardcode_direct=unsupported | |
9667 | fi | |
9668 | ;; | |
9669 | ||
50e7d84b | 9670 | aix[4-9]*) |
ce2cded5 L |
9671 | if test "$host_cpu" = ia64; then |
9672 | # On IA64, the linker does run time linking by default, so we don't | |
9673 | # have to do anything special. | |
9674 | aix_use_runtimelinking=no | |
9675 | exp_sym_flag='-Bexport' | |
9676 | no_entry_flag="" | |
9677 | else | |
9678 | # If we're using GNU nm, then we don't want the "-C" option. | |
9679 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
9680 | # Also, AIX nm treats weak defined symbols like other global |
9681 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 9682 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 9683 | 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 |
9684 | else |
9685 | 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' | |
9686 | fi | |
9687 | aix_use_runtimelinking=no | |
9688 | ||
9689 | # Test if we are trying to use run time linking or normal | |
9690 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9691 | # need to do runtime linking. | |
50e7d84b | 9692 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
9693 | for ld_flag in $LDFLAGS; do |
9694 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9695 | aix_use_runtimelinking=yes | |
9696 | break | |
9697 | fi | |
9698 | done | |
9699 | ;; | |
9700 | esac | |
9701 | ||
9702 | exp_sym_flag='-bexport' | |
9703 | no_entry_flag='-bnoentry' | |
9704 | fi | |
9705 | ||
9706 | # When large executables or shared objects are built, AIX ld can | |
9707 | # have problems creating the table of contents. If linking a library | |
9708 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9709 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9710 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9711 | ||
9712 | archive_cmds='' | |
9713 | hardcode_direct=yes | |
9714 | hardcode_direct_absolute=yes | |
9715 | hardcode_libdir_separator=':' | |
9716 | link_all_deplibs=yes | |
9717 | file_list_spec='${wl}-f,' | |
9718 | ||
9719 | if test "$GCC" = yes; then | |
9720 | case $host_os in aix4.[012]|aix4.[012].*) | |
9721 | # We only want to do this on AIX 4.2 and lower, the check | |
9722 | # below for broken collect2 doesn't work under 4.3+ | |
9723 | collect2name=`${CC} -print-prog-name=collect2` | |
9724 | if test -f "$collect2name" && | |
9725 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9726 | then | |
9727 | # We have reworked collect2 | |
9728 | : | |
9729 | else | |
9730 | # We have old collect2 | |
9731 | hardcode_direct=unsupported | |
9732 | # It fails to find uninstalled libraries when the uninstalled | |
9733 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9734 | # to unsupported forces relinking | |
9735 | hardcode_minus_L=yes | |
9736 | hardcode_libdir_flag_spec='-L$libdir' | |
9737 | hardcode_libdir_separator= | |
9738 | fi | |
9739 | ;; | |
9740 | esac | |
9741 | shared_flag='-shared' | |
9742 | if test "$aix_use_runtimelinking" = yes; then | |
9743 | shared_flag="$shared_flag "'${wl}-G' | |
9744 | fi | |
9745 | else | |
9746 | # not using gcc | |
9747 | if test "$host_cpu" = ia64; then | |
9748 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9749 | # chokes on -Wl,-G. The following line is correct: | |
9750 | shared_flag='-G' | |
9751 | else | |
9752 | if test "$aix_use_runtimelinking" = yes; then | |
9753 | shared_flag='${wl}-G' | |
9754 | else | |
9755 | shared_flag='${wl}-bM:SRE' | |
9756 | fi | |
9757 | fi | |
9758 | fi | |
9759 | ||
b214d478 | 9760 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
9761 | # It seems that -bexpall does not export symbols beginning with |
9762 | # underscore (_), so it is better to generate a list of symbols to export. | |
9763 | always_export_symbols=yes | |
9764 | if test "$aix_use_runtimelinking" = yes; then | |
9765 | # Warning - without using the other runtime loading flags (-brtl), | |
9766 | # -berok will link without error, but may produce a broken library. | |
9767 | allow_undefined_flag='-berok' | |
9768 | # Determine the default libpath from the value encoded in an | |
9769 | # empty executable. | |
81ecdfbb | 9770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
9771 | /* end confdefs.h. */ |
9772 | ||
9773 | int | |
9774 | main () | |
9775 | { | |
9776 | ||
9777 | ; | |
9778 | return 0; | |
9779 | } | |
9780 | _ACEOF | |
81ecdfbb | 9781 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9782 | |
ce2cded5 L |
9783 | lt_aix_libpath_sed=' |
9784 | /Import File Strings/,/^$/ { | |
9785 | /^0/ { | |
9786 | s/^0 *\(.*\)$/\1/ | |
9787 | p | |
9788 | } | |
9789 | }' | |
9790 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9791 | # Check for a 64-bit object if we didn't find anything. | |
9792 | if test -z "$aix_libpath"; then | |
9793 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9794 | fi | |
d7040cdb | 9795 | fi |
81ecdfbb RW |
9796 | rm -f core conftest.err conftest.$ac_objext \ |
9797 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9798 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9799 | |
ce2cded5 | 9800 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 9801 | 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 |
9802 | else |
9803 | if test "$host_cpu" = ia64; then | |
9804 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9805 | allow_undefined_flag="-z nodefs" | |
9806 | 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" | |
9807 | else | |
9808 | # Determine the default libpath from the value encoded in an | |
9809 | # empty executable. | |
81ecdfbb | 9810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9811 | /* end confdefs.h. */ |
d7040cdb | 9812 | |
ce2cded5 L |
9813 | int |
9814 | main () | |
9815 | { | |
d7040cdb | 9816 | |
ce2cded5 L |
9817 | ; |
9818 | return 0; | |
9819 | } | |
9820 | _ACEOF | |
81ecdfbb | 9821 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9822 | |
ce2cded5 L |
9823 | lt_aix_libpath_sed=' |
9824 | /Import File Strings/,/^$/ { | |
9825 | /^0/ { | |
9826 | s/^0 *\(.*\)$/\1/ | |
9827 | p | |
9828 | } | |
9829 | }' | |
9830 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9831 | # Check for a 64-bit object if we didn't find anything. | |
9832 | if test -z "$aix_libpath"; then | |
9833 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9834 | fi | |
ce2cded5 | 9835 | fi |
81ecdfbb RW |
9836 | rm -f core conftest.err conftest.$ac_objext \ |
9837 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9838 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9839 | |
ce2cded5 L |
9840 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9841 | # Warning - without using the other run time loading flags, | |
9842 | # -berok will link without error, but may produce a broken library. | |
9843 | no_undefined_flag=' ${wl}-bernotok' | |
9844 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
9845 | if test "$with_gnu_ld" = yes; then |
9846 | # We only use this code for GNU lds that support --whole-archive. | |
9847 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9848 | else | |
9849 | # Exported symbols can be pulled into shared objects from archives | |
9850 | whole_archive_flag_spec='$convenience' | |
9851 | fi | |
ce2cded5 L |
9852 | archive_cmds_need_lc=yes |
9853 | # This is similar to how AIX traditionally builds its shared libraries. | |
9854 | 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' | |
9855 | fi | |
9856 | fi | |
9857 | ;; | |
d7040cdb | 9858 | |
ce2cded5 | 9859 | amigaos*) |
b214d478 SE |
9860 | case $host_cpu in |
9861 | powerpc) | |
9862 | # see comment about AmigaOS4 .so support | |
9863 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9864 | archive_expsym_cmds='' | |
9865 | ;; | |
9866 | m68k) | |
9867 | 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)' | |
9868 | hardcode_libdir_flag_spec='-L$libdir' | |
9869 | hardcode_minus_L=yes | |
9870 | ;; | |
9871 | esac | |
ce2cded5 L |
9872 | ;; |
9873 | ||
9874 | bsdi[45]*) | |
9875 | export_dynamic_flag_spec=-rdynamic | |
9876 | ;; | |
9877 | ||
b214d478 | 9878 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9879 | # When not using gcc, we currently assume that we are using |
9880 | # Microsoft Visual C++. | |
9881 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9882 | # no search path for DLLs. | |
9883 | hardcode_libdir_flag_spec=' ' | |
9884 | allow_undefined_flag=unsupported | |
9885 | # Tell ltmain to make .lib files, not .a files. | |
9886 | libext=lib | |
9887 | # Tell ltmain to make .dll files, not .so files. | |
9888 | shrext_cmds=".dll" | |
9889 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 9890 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
ce2cded5 L |
9891 | # The linker will automatically build a .lib file if we build a DLL. |
9892 | old_archive_from_new_cmds='true' | |
9893 | # FIXME: Should let the user specify the lib program. | |
9894 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9895 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9896 | enable_shared_with_static_runtimes=yes | |
9897 | ;; | |
9898 | ||
9899 | darwin* | rhapsody*) | |
d7040cdb | 9900 | |
b214d478 SE |
9901 | |
9902 | archive_cmds_need_lc=no | |
9903 | hardcode_direct=no | |
9904 | hardcode_automatic=yes | |
9905 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9906 | if test "$lt_cv_ld_force_load" = "yes"; then |
9907 | 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\"`' | |
9908 | else | |
9909 | whole_archive_flag_spec='' | |
9910 | fi | |
b214d478 SE |
9911 | link_all_deplibs=yes |
9912 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9913 | case $cc_basename in | |
9914 | ifort*) _lt_dar_can_shared=yes ;; | |
9915 | *) _lt_dar_can_shared=$GCC ;; | |
9916 | esac | |
9917 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9918 | output_verbose_link_cmd=func_echo_all |
b214d478 SE |
9919 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9920 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9921 | 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}" | |
9922 | 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}" | |
9923 | ||
9924 | else | |
9925 | ld_shlibs=no | |
9926 | fi | |
9927 | ||
ce2cded5 | 9928 | ;; |
d7040cdb | 9929 | |
ce2cded5 L |
9930 | dgux*) |
9931 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9932 | hardcode_libdir_flag_spec='-L$libdir' | |
9933 | hardcode_shlibpath_var=no | |
9934 | ;; | |
d7040cdb | 9935 | |
ce2cded5 L |
9936 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9937 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9938 | # does not break anything, and helps significantly (at the cost of a little | |
9939 | # extra space). | |
9940 | freebsd2.2*) | |
9941 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9942 | hardcode_libdir_flag_spec='-R$libdir' | |
9943 | hardcode_direct=yes | |
9944 | hardcode_shlibpath_var=no | |
d7040cdb | 9945 | ;; |
d7040cdb | 9946 | |
ce2cded5 | 9947 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 9948 | freebsd2.*) |
ce2cded5 L |
9949 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9950 | hardcode_direct=yes | |
9951 | hardcode_minus_L=yes | |
9952 | hardcode_shlibpath_var=no | |
9953 | ;; | |
d7040cdb | 9954 | |
ce2cded5 L |
9955 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9956 | freebsd* | dragonfly*) | |
9957 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9958 | hardcode_libdir_flag_spec='-R$libdir' | |
9959 | hardcode_direct=yes | |
9960 | hardcode_shlibpath_var=no | |
9961 | ;; | |
d7040cdb | 9962 | |
ce2cded5 L |
9963 | hpux9*) |
9964 | if test "$GCC" = yes; then | |
9965 | 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' | |
9966 | else | |
9967 | 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' | |
9968 | fi | |
9969 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9970 | hardcode_libdir_separator=: | |
9971 | hardcode_direct=yes | |
d7040cdb | 9972 | |
ce2cded5 L |
9973 | # hardcode_minus_L: Not really in the search PATH, |
9974 | # but as the default location of the library. | |
9975 | hardcode_minus_L=yes | |
9976 | export_dynamic_flag_spec='${wl}-E' | |
9977 | ;; | |
d7040cdb | 9978 | |
ce2cded5 | 9979 | hpux10*) |
3725885a | 9980 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
9981 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9982 | else | |
9983 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9984 | fi | |
9985 | if test "$with_gnu_ld" = no; then | |
9986 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9987 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9988 | hardcode_libdir_separator=: | |
9989 | hardcode_direct=yes | |
9990 | hardcode_direct_absolute=yes | |
9991 | export_dynamic_flag_spec='${wl}-E' | |
9992 | # hardcode_minus_L: Not really in the search PATH, | |
9993 | # but as the default location of the library. | |
9994 | hardcode_minus_L=yes | |
9995 | fi | |
9996 | ;; | |
d7040cdb | 9997 | |
ce2cded5 | 9998 | hpux11*) |
3725885a | 9999 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
10000 | case $host_cpu in |
10001 | hppa*64*) | |
10002 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10003 | ;; | |
10004 | ia64*) | |
b214d478 | 10005 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
10006 | ;; |
10007 | *) | |
10008 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10009 | ;; | |
10010 | esac | |
10011 | else | |
10012 | case $host_cpu in | |
10013 | hppa*64*) | |
10014 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10015 | ;; | |
10016 | ia64*) | |
10017 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10018 | ;; | |
10019 | *) | |
3725885a RW |
10020 | |
10021 | # Older versions of the 11.00 compiler do not understand -b yet | |
10022 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10024 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10025 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
10026 | $as_echo_n "(cached) " >&6 | |
10027 | else | |
10028 | lt_cv_prog_compiler__b=no | |
10029 | save_LDFLAGS="$LDFLAGS" | |
10030 | LDFLAGS="$LDFLAGS -b" | |
10031 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10032 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10033 | # The linker can only warn and ignore the option if not recognized | |
10034 | # So say no if there are warnings | |
10035 | if test -s conftest.err; then | |
10036 | # Append any errors to the config.log. | |
10037 | cat conftest.err 1>&5 | |
10038 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10039 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10040 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10041 | lt_cv_prog_compiler__b=yes | |
10042 | fi | |
10043 | else | |
10044 | lt_cv_prog_compiler__b=yes | |
10045 | fi | |
10046 | fi | |
10047 | $RM -r conftest* | |
10048 | LDFLAGS="$save_LDFLAGS" | |
10049 | ||
10050 | fi | |
10051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10052 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10053 | ||
10054 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10055 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10056 | else | |
10057 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10058 | fi | |
10059 | ||
ce2cded5 L |
10060 | ;; |
10061 | esac | |
10062 | fi | |
10063 | if test "$with_gnu_ld" = no; then | |
10064 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10065 | hardcode_libdir_separator=: | |
d7040cdb | 10066 | |
ce2cded5 L |
10067 | case $host_cpu in |
10068 | hppa*64*|ia64*) | |
10069 | hardcode_direct=no | |
10070 | hardcode_shlibpath_var=no | |
10071 | ;; | |
10072 | *) | |
10073 | hardcode_direct=yes | |
10074 | hardcode_direct_absolute=yes | |
10075 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 10076 | |
ce2cded5 L |
10077 | # hardcode_minus_L: Not really in the search PATH, |
10078 | # but as the default location of the library. | |
10079 | hardcode_minus_L=yes | |
10080 | ;; | |
10081 | esac | |
10082 | fi | |
10083 | ;; | |
d7040cdb | 10084 | |
ce2cded5 L |
10085 | irix5* | irix6* | nonstopux*) |
10086 | if test "$GCC" = yes; then | |
3725885a | 10087 | 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 |
10088 | # Try to use the -exported_symbol ld option, if it does not |
10089 | # work, assume that -exports_file does not work either and | |
10090 | # implicitly export all symbols. | |
10091 | save_LDFLAGS="$LDFLAGS" | |
10092 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
10093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10094 | /* end confdefs.h. */ | |
ce2cded5 L |
10095 | int foo(void) {} |
10096 | _ACEOF | |
81ecdfbb | 10097 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 10098 | 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 | 10099 | |
ce2cded5 | 10100 | fi |
81ecdfbb RW |
10101 | rm -f core conftest.err conftest.$ac_objext \ |
10102 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10103 | LDFLAGS="$save_LDFLAGS" |
10104 | else | |
3725885a RW |
10105 | 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' |
10106 | 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 |
10107 | fi |
10108 | archive_cmds_need_lc='no' | |
10109 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10110 | hardcode_libdir_separator=: | |
10111 | inherit_rpath=yes | |
10112 | link_all_deplibs=yes | |
10113 | ;; | |
d7040cdb | 10114 | |
ce2cded5 L |
10115 | netbsd*) |
10116 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10117 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10118 | else | |
10119 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10120 | fi | |
10121 | hardcode_libdir_flag_spec='-R$libdir' | |
10122 | hardcode_direct=yes | |
10123 | hardcode_shlibpath_var=no | |
10124 | ;; | |
d7040cdb | 10125 | |
ce2cded5 L |
10126 | newsos6) |
10127 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10128 | hardcode_direct=yes | |
10129 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10130 | hardcode_libdir_separator=: | |
10131 | hardcode_shlibpath_var=no | |
10132 | ;; | |
d7040cdb | 10133 | |
ce2cded5 L |
10134 | *nto* | *qnx*) |
10135 | ;; | |
d7040cdb | 10136 | |
ce2cded5 | 10137 | openbsd*) |
b214d478 SE |
10138 | if test -f /usr/libexec/ld.so; then |
10139 | hardcode_direct=yes | |
10140 | hardcode_shlibpath_var=no | |
10141 | hardcode_direct_absolute=yes | |
10142 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 10143 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
b214d478 | 10144 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 10145 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
b214d478 SE |
10146 | export_dynamic_flag_spec='${wl}-E' |
10147 | else | |
10148 | case $host_os in | |
10149 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10150 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10151 | hardcode_libdir_flag_spec='-R$libdir' | |
10152 | ;; | |
10153 | *) | |
10154 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10155 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10156 | ;; | |
10157 | esac | |
10158 | fi | |
10159 | else | |
10160 | ld_shlibs=no | |
ce2cded5 L |
10161 | fi |
10162 | ;; | |
d7040cdb | 10163 | |
ce2cded5 L |
10164 | os2*) |
10165 | hardcode_libdir_flag_spec='-L$libdir' | |
10166 | hardcode_minus_L=yes | |
10167 | allow_undefined_flag=unsupported | |
3725885a | 10168 | 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 |
10169 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10170 | ;; | |
d7040cdb | 10171 | |
ce2cded5 L |
10172 | osf3*) |
10173 | if test "$GCC" = yes; then | |
10174 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10175 | 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 |
10176 | else |
10177 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10178 | 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 |
10179 | fi |
10180 | archive_cmds_need_lc='no' | |
10181 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10182 | hardcode_libdir_separator=: | |
10183 | ;; | |
d7040cdb | 10184 | |
ce2cded5 L |
10185 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10186 | if test "$GCC" = yes; then | |
10187 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10188 | 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 |
10189 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10190 | else | |
10191 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10192 | 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 | 10193 | 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 | 10194 | $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 | 10195 | |
ce2cded5 L |
10196 | # Both c and cxx compiler support -rpath directly |
10197 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10198 | fi | |
10199 | archive_cmds_need_lc='no' | |
10200 | hardcode_libdir_separator=: | |
10201 | ;; | |
d7040cdb | 10202 | |
ce2cded5 L |
10203 | solaris*) |
10204 | no_undefined_flag=' -z defs' | |
10205 | if test "$GCC" = yes; then | |
10206 | wlarc='${wl}' | |
10207 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10208 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10209 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10210 | else | |
10211 | case `$CC -V 2>&1` in | |
10212 | *"Compilers 5.0"*) | |
10213 | wlarc='' | |
10214 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10215 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10216 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10217 | ;; | |
10218 | *) | |
10219 | wlarc='${wl}' | |
10220 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10221 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10222 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10223 | ;; | |
10224 | esac | |
10225 | fi | |
10226 | hardcode_libdir_flag_spec='-R$libdir' | |
10227 | hardcode_shlibpath_var=no | |
10228 | case $host_os in | |
10229 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10230 | *) | |
10231 | # The compiler driver will combine and reorder linker options, | |
10232 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10233 | # but is careful enough not to reorder. | |
10234 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10235 | if test "$GCC" = yes; then | |
10236 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10237 | else | |
10238 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10239 | fi | |
10240 | ;; | |
10241 | esac | |
10242 | link_all_deplibs=yes | |
10243 | ;; | |
d7040cdb | 10244 | |
ce2cded5 L |
10245 | sunos4*) |
10246 | if test "x$host_vendor" = xsequent; then | |
10247 | # Use $CC to link under sequent, because it throws in some extra .o | |
10248 | # files that make .init and .fini sections work. | |
10249 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10250 | else | |
10251 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10252 | fi | |
10253 | hardcode_libdir_flag_spec='-L$libdir' | |
10254 | hardcode_direct=yes | |
10255 | hardcode_minus_L=yes | |
10256 | hardcode_shlibpath_var=no | |
10257 | ;; | |
d7040cdb | 10258 | |
ce2cded5 L |
10259 | sysv4) |
10260 | case $host_vendor in | |
10261 | sni) | |
10262 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10263 | hardcode_direct=yes # is this really true??? | |
10264 | ;; | |
10265 | siemens) | |
10266 | ## LD is ld it makes a PLAMLIB | |
10267 | ## CC just makes a GrossModule. | |
10268 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10269 | reload_cmds='$CC -r -o $output$reload_objs' | |
10270 | hardcode_direct=no | |
10271 | ;; | |
10272 | motorola) | |
10273 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10274 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10275 | ;; | |
10276 | esac | |
10277 | runpath_var='LD_RUN_PATH' | |
10278 | hardcode_shlibpath_var=no | |
10279 | ;; | |
d7040cdb | 10280 | |
ce2cded5 L |
10281 | sysv4.3*) |
10282 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10283 | hardcode_shlibpath_var=no | |
10284 | export_dynamic_flag_spec='-Bexport' | |
10285 | ;; | |
d7040cdb | 10286 | |
ce2cded5 L |
10287 | sysv4*MP*) |
10288 | if test -d /usr/nec; then | |
10289 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10290 | hardcode_shlibpath_var=no | |
10291 | runpath_var=LD_RUN_PATH | |
10292 | hardcode_runpath_var=yes | |
10293 | ld_shlibs=yes | |
10294 | fi | |
10295 | ;; | |
d7040cdb | 10296 | |
ce2cded5 L |
10297 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10298 | no_undefined_flag='${wl}-z,text' | |
10299 | archive_cmds_need_lc=no | |
10300 | hardcode_shlibpath_var=no | |
10301 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10302 | |
ce2cded5 L |
10303 | if test "$GCC" = yes; then |
10304 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10305 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10306 | else | |
10307 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10308 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10309 | fi | |
10310 | ;; | |
d7040cdb | 10311 | |
ce2cded5 L |
10312 | sysv5* | sco3.2v5* | sco5v6*) |
10313 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10314 | # link with -lc, and that would cause any symbols used from libc to | |
10315 | # always be unresolved, which means just about no library would | |
10316 | # ever link correctly. If we're not using GNU ld we use -z text | |
10317 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10318 | # as -z defs. | |
10319 | no_undefined_flag='${wl}-z,text' | |
10320 | allow_undefined_flag='${wl}-z,nodefs' | |
10321 | archive_cmds_need_lc=no | |
10322 | hardcode_shlibpath_var=no | |
10323 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10324 | hardcode_libdir_separator=':' | |
10325 | link_all_deplibs=yes | |
10326 | export_dynamic_flag_spec='${wl}-Bexport' | |
10327 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10328 | |
ce2cded5 L |
10329 | if test "$GCC" = yes; then |
10330 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10331 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10332 | else | |
10333 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10334 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10335 | fi | |
10336 | ;; | |
d7040cdb | 10337 | |
ce2cded5 L |
10338 | uts4*) |
10339 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10340 | hardcode_libdir_flag_spec='-L$libdir' | |
10341 | hardcode_shlibpath_var=no | |
10342 | ;; | |
d7040cdb | 10343 | |
ce2cded5 L |
10344 | *) |
10345 | ld_shlibs=no | |
10346 | ;; | |
10347 | esac | |
d7040cdb | 10348 | |
ce2cded5 L |
10349 | if test x$host_vendor = xsni; then |
10350 | case $host in | |
10351 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10352 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10353 | ;; | |
10354 | esac | |
10355 | fi | |
10356 | fi | |
d7040cdb | 10357 | |
81ecdfbb RW |
10358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10359 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 10360 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 10361 | |
ce2cded5 | 10362 | with_gnu_ld=$with_gnu_ld |
d7040cdb SE |
10363 | |
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
ce2cded5 L |
10378 | # |
10379 | # Do we need to explicitly link libc? | |
10380 | # | |
10381 | case "x$archive_cmds_need_lc" in | |
10382 | x|xyes) | |
10383 | # Assume -lc should be added | |
10384 | archive_cmds_need_lc=yes | |
d7040cdb | 10385 | |
ce2cded5 L |
10386 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10387 | case $archive_cmds in | |
10388 | *'~'*) | |
10389 | # FIXME: we may have to deal with multi-command sequences. | |
10390 | ;; | |
10391 | '$CC '*) | |
10392 | # Test whether the compiler implicitly links with -lc since on some | |
10393 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10394 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
10395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10396 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10397 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
10398 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10399 | else |
10400 | $RM conftest* | |
10401 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 10402 | |
81ecdfbb | 10403 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
10404 | (eval $ac_compile) 2>&5 |
10405 | ac_status=$? | |
81ecdfbb RW |
10406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10407 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
10408 | soname=conftest |
10409 | lib=conftest | |
10410 | libobjs=conftest.$ac_objext | |
10411 | deplibs= | |
10412 | wl=$lt_prog_compiler_wl | |
10413 | pic_flag=$lt_prog_compiler_pic | |
10414 | compiler_flags=-v | |
10415 | linker_flags=-v | |
10416 | verstring= | |
10417 | output_objdir=. | |
10418 | libname=conftest | |
10419 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10420 | allow_undefined_flag= | |
81ecdfbb | 10421 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
10422 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10423 | ac_status=$? | |
81ecdfbb RW |
10424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10425 | test $ac_status = 0; } | |
39144654 RW |
10426 | then |
10427 | lt_cv_archive_cmds_need_lc=no | |
10428 | else | |
10429 | lt_cv_archive_cmds_need_lc=yes | |
10430 | fi | |
10431 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10432 | else | |
10433 | cat conftest.err 1>&5 | |
10434 | fi | |
10435 | $RM conftest* | |
10436 | ||
10437 | fi | |
81ecdfbb RW |
10438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10439 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 10440 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
10441 | ;; |
10442 | esac | |
10443 | fi | |
10444 | ;; | |
10445 | esac | |
d7040cdb SE |
10446 | |
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
d7040cdb | 10473 | |
d7040cdb | 10474 | |
d7040cdb SE |
10475 | |
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
d7040cdb | 10481 | |
d7040cdb | 10482 | |
d7040cdb | 10483 | |
d7040cdb | 10484 | |
d7040cdb | 10485 | |
d7040cdb | 10486 | |
d7040cdb | 10487 | |
d7040cdb | 10488 | |
d7040cdb | 10489 | |
d7040cdb | 10490 | |
d7040cdb | 10491 | |
d7040cdb | 10492 | |
d7040cdb | 10493 | |
d7040cdb | 10494 | |
d7040cdb | 10495 | |
d7040cdb | 10496 | |
d7040cdb | 10497 | |
d7040cdb | 10498 | |
d7040cdb | 10499 | |
d7040cdb | 10500 | |
d7040cdb | 10501 | |
d7040cdb | 10502 | |
d7040cdb | 10503 | |
d7040cdb | 10504 | |
d7040cdb | 10505 | |
d7040cdb | 10506 | |
d7040cdb | 10507 | |
d7040cdb | 10508 | |
ce2cded5 L |
10509 | |
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | ||
10515 | ||
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | ||
10525 | ||
10526 | ||
10527 | ||
10528 | ||
10529 | ||
10530 | ||
10531 | ||
10532 | ||
10533 | ||
10534 | ||
10535 | ||
10536 | ||
10537 | ||
10538 | ||
10539 | ||
10540 | ||
10541 | ||
10542 | ||
10543 | ||
10544 | ||
10545 | ||
10546 | ||
10547 | ||
10548 | ||
10549 | ||
10550 | ||
10551 | ||
10552 | ||
10553 | ||
10554 | ||
10555 | ||
10556 | ||
10557 | ||
10558 | ||
10559 | ||
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | ||
10565 | ||
10566 | ||
10567 | ||
10568 | ||
10569 | ||
10570 | ||
10571 | ||
10572 | ||
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | ||
81ecdfbb RW |
10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10604 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
b214d478 SE |
10605 | |
10606 | if test "$GCC" = yes; then | |
ce2cded5 L |
10607 | case $host_os in |
10608 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10609 | *) lt_awk_arg="/^libraries:/" ;; | |
10610 | esac | |
3725885a RW |
10611 | case $host_os in |
10612 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10613 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10614 | esac | |
10615 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10616 | case $lt_search_path_spec in | |
10617 | *\;*) | |
ce2cded5 L |
10618 | # if the path contains ";" then we assume it to be the separator |
10619 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10620 | # assumed that no part of a normal pathname contains ";" but that should | |
10621 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
10622 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10623 | ;; | |
10624 | *) | |
10625 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10626 | ;; | |
10627 | esac | |
ce2cded5 L |
10628 | # Ok, now we have the path, separated by spaces, we can step through it |
10629 | # and add multilib dir if necessary. | |
10630 | lt_tmp_lt_search_path_spec= | |
10631 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10632 | for lt_sys_path in $lt_search_path_spec; do | |
10633 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10634 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10635 | else | |
10636 | test -d "$lt_sys_path" && \ | |
10637 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10638 | fi | |
10639 | done | |
3725885a | 10640 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
10641 | BEGIN {RS=" "; FS="/|\n";} { |
10642 | lt_foo=""; | |
10643 | lt_count=0; | |
10644 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10645 | if ($lt_i != "" && $lt_i != ".") { | |
10646 | if ($lt_i == "..") { | |
10647 | lt_count++; | |
10648 | } else { | |
10649 | if (lt_count == 0) { | |
10650 | lt_foo="/" $lt_i lt_foo; | |
10651 | } else { | |
10652 | lt_count--; | |
10653 | } | |
10654 | } | |
10655 | } | |
10656 | } | |
10657 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10658 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10659 | }'` | |
3725885a RW |
10660 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10661 | # for these hosts. | |
10662 | case $host_os in | |
10663 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10664 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10665 | esac | |
10666 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 10667 | else |
ce2cded5 L |
10668 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10669 | fi | |
10670 | library_names_spec= | |
10671 | libname_spec='lib$name' | |
10672 | soname_spec= | |
10673 | shrext_cmds=".so" | |
10674 | postinstall_cmds= | |
10675 | postuninstall_cmds= | |
10676 | finish_cmds= | |
10677 | finish_eval= | |
10678 | shlibpath_var= | |
10679 | shlibpath_overrides_runpath=unknown | |
10680 | version_type=none | |
10681 | dynamic_linker="$host_os ld.so" | |
10682 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10683 | need_lib_prefix=unknown | |
10684 | hardcode_into_libs=no | |
10685 | ||
10686 | # when you set need_version to no, make sure it does not cause -set_version | |
10687 | # flags to be left without arguments | |
10688 | need_version=unknown | |
10689 | ||
10690 | case $host_os in | |
10691 | aix3*) | |
10692 | version_type=linux | |
10693 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10694 | shlibpath_var=LIBPATH | |
10695 | ||
10696 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10697 | soname_spec='${libname}${release}${shared_ext}$major' | |
10698 | ;; | |
10699 | ||
50e7d84b | 10700 | aix[4-9]*) |
ce2cded5 L |
10701 | version_type=linux |
10702 | need_lib_prefix=no | |
10703 | need_version=no | |
10704 | hardcode_into_libs=yes | |
10705 | if test "$host_cpu" = ia64; then | |
10706 | # AIX 5 supports IA64 | |
10707 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10708 | shlibpath_var=LD_LIBRARY_PATH | |
10709 | else | |
10710 | # With GCC up to 2.95.x, collect2 would create an import file | |
10711 | # for dependence libraries. The import file would start with | |
10712 | # the line `#! .'. This would cause the generated library to | |
10713 | # depend on `.', always an invalid library. This was fixed in | |
10714 | # development snapshots of GCC prior to 3.0. | |
10715 | case $host_os in | |
10716 | aix4 | aix4.[01] | aix4.[01].*) | |
10717 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10718 | echo ' yes ' | |
10719 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10720 | : | |
10721 | else | |
10722 | can_build_shared=no | |
10723 | fi | |
10724 | ;; | |
10725 | esac | |
10726 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10727 | # soname into executable. Probably we can add versioning support to | |
10728 | # collect2, so additional links can be useful in future. | |
10729 | if test "$aix_use_runtimelinking" = yes; then | |
10730 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10731 | # instead of lib<name>.a to let people know that these are not | |
10732 | # typical AIX shared libraries. | |
10733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10734 | else | |
10735 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10736 | # and later when we are not doing run time linking. | |
10737 | library_names_spec='${libname}${release}.a $libname.a' | |
10738 | soname_spec='${libname}${release}${shared_ext}$major' | |
10739 | fi | |
10740 | shlibpath_var=LIBPATH | |
10741 | fi | |
10742 | ;; | |
10743 | ||
10744 | amigaos*) | |
b214d478 SE |
10745 | case $host_cpu in |
10746 | powerpc) | |
10747 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10748 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10750 | ;; | |
10751 | m68k) | |
ce2cded5 L |
10752 | library_names_spec='$libname.ixlibrary $libname.a' |
10753 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 10754 | 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 |
10755 | ;; |
10756 | esac | |
ce2cded5 L |
10757 | ;; |
10758 | ||
10759 | beos*) | |
10760 | library_names_spec='${libname}${shared_ext}' | |
10761 | dynamic_linker="$host_os ld.so" | |
10762 | shlibpath_var=LIBRARY_PATH | |
10763 | ;; | |
10764 | ||
10765 | bsdi[45]*) | |
10766 | version_type=linux | |
10767 | need_version=no | |
10768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10769 | soname_spec='${libname}${release}${shared_ext}$major' | |
10770 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10771 | shlibpath_var=LD_LIBRARY_PATH | |
10772 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10773 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10774 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10775 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10776 | # libtool to hard-code these into programs | |
10777 | ;; | |
10778 | ||
b214d478 | 10779 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10780 | version_type=windows |
10781 | shrext_cmds=".dll" | |
10782 | need_version=no | |
10783 | need_lib_prefix=no | |
10784 | ||
b214d478 SE |
10785 | case $GCC,$host_os in |
10786 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10787 | library_names_spec='$libname.dll.a' |
10788 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10789 | postinstall_cmds='base_file=`basename \${file}`~ | |
10790 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10791 | dldir=$destdir/`dirname \$dlpath`~ | |
10792 | test -d \$dldir || mkdir -p \$dldir~ | |
10793 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10794 | chmod a+x \$dldir/$dlname~ | |
10795 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10796 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10797 | fi' | |
10798 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10799 | dlpath=$dir/\$dldll~ | |
10800 | $RM \$dlpath' | |
10801 | shlibpath_overrides_runpath=yes | |
10802 | ||
10803 | case $host_os in | |
10804 | cygwin*) | |
10805 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10806 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
10807 | |
10808 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 10809 | ;; |
b214d478 | 10810 | mingw* | cegcc*) |
ce2cded5 L |
10811 | # MinGW DLLs use traditional 'lib' prefix |
10812 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
10813 | ;; |
10814 | pw32*) | |
10815 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10816 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10817 | ;; | |
10818 | esac | |
10819 | ;; | |
10820 | ||
10821 | *) | |
10822 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10823 | ;; | |
10824 | esac | |
10825 | dynamic_linker='Win32 ld.exe' | |
10826 | # FIXME: first we should search . and the directory the executable is in | |
10827 | shlibpath_var=PATH | |
10828 | ;; | |
10829 | ||
10830 | darwin* | rhapsody*) | |
10831 | dynamic_linker="$host_os dyld" | |
10832 | version_type=darwin | |
10833 | need_lib_prefix=no | |
10834 | need_version=no | |
10835 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10836 | soname_spec='${libname}${release}${major}$shared_ext' | |
10837 | shlibpath_overrides_runpath=yes | |
10838 | shlibpath_var=DYLD_LIBRARY_PATH | |
10839 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10840 | ||
10841 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10842 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10843 | ;; | |
10844 | ||
10845 | dgux*) | |
10846 | version_type=linux | |
10847 | need_lib_prefix=no | |
10848 | need_version=no | |
10849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10850 | soname_spec='${libname}${release}${shared_ext}$major' | |
10851 | shlibpath_var=LD_LIBRARY_PATH | |
10852 | ;; | |
10853 | ||
ce2cded5 L |
10854 | freebsd* | dragonfly*) |
10855 | # DragonFly does not have aout. When/if they implement a new | |
10856 | # versioning mechanism, adjust this. | |
10857 | if test -x /usr/bin/objformat; then | |
10858 | objformat=`/usr/bin/objformat` | |
10859 | else | |
10860 | case $host_os in | |
6d2920c8 | 10861 | freebsd[23].*) objformat=aout ;; |
ce2cded5 L |
10862 | *) objformat=elf ;; |
10863 | esac | |
10864 | fi | |
10865 | version_type=freebsd-$objformat | |
10866 | case $version_type in | |
10867 | freebsd-elf*) | |
10868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10869 | need_version=no | |
10870 | need_lib_prefix=no | |
10871 | ;; | |
10872 | freebsd-*) | |
10873 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10874 | need_version=yes | |
10875 | ;; | |
10876 | esac | |
10877 | shlibpath_var=LD_LIBRARY_PATH | |
10878 | case $host_os in | |
6d2920c8 | 10879 | freebsd2.*) |
ce2cded5 L |
10880 | shlibpath_overrides_runpath=yes |
10881 | ;; | |
10882 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10883 | shlibpath_overrides_runpath=yes | |
10884 | hardcode_into_libs=yes | |
10885 | ;; | |
10886 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10887 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10888 | shlibpath_overrides_runpath=no | |
10889 | hardcode_into_libs=yes | |
10890 | ;; | |
10891 | *) # from 4.6 on, and DragonFly | |
10892 | shlibpath_overrides_runpath=yes | |
10893 | hardcode_into_libs=yes | |
10894 | ;; | |
10895 | esac | |
10896 | ;; | |
10897 | ||
10898 | gnu*) | |
10899 | version_type=linux | |
10900 | need_lib_prefix=no | |
10901 | need_version=no | |
10902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10903 | soname_spec='${libname}${release}${shared_ext}$major' | |
10904 | shlibpath_var=LD_LIBRARY_PATH | |
10905 | hardcode_into_libs=yes | |
10906 | ;; | |
10907 | ||
3725885a RW |
10908 | haiku*) |
10909 | version_type=linux | |
10910 | need_lib_prefix=no | |
10911 | need_version=no | |
10912 | dynamic_linker="$host_os runtime_loader" | |
10913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10914 | soname_spec='${libname}${release}${shared_ext}$major' | |
10915 | shlibpath_var=LIBRARY_PATH | |
10916 | shlibpath_overrides_runpath=yes | |
10917 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10918 | hardcode_into_libs=yes | |
10919 | ;; | |
10920 | ||
ce2cded5 L |
10921 | hpux9* | hpux10* | hpux11*) |
10922 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10923 | # link against other versions. | |
10924 | version_type=sunos | |
10925 | need_lib_prefix=no | |
10926 | need_version=no | |
10927 | case $host_cpu in | |
10928 | ia64*) | |
10929 | shrext_cmds='.so' | |
10930 | hardcode_into_libs=yes | |
10931 | dynamic_linker="$host_os dld.so" | |
10932 | shlibpath_var=LD_LIBRARY_PATH | |
10933 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10935 | soname_spec='${libname}${release}${shared_ext}$major' | |
10936 | if test "X$HPUX_IA64_MODE" = X32; then | |
10937 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10938 | else | |
10939 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10940 | fi | |
10941 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10942 | ;; | |
10943 | hppa*64*) | |
10944 | shrext_cmds='.sl' | |
10945 | hardcode_into_libs=yes | |
10946 | dynamic_linker="$host_os dld.sl" | |
10947 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10948 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10950 | soname_spec='${libname}${release}${shared_ext}$major' | |
10951 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10952 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10953 | ;; | |
10954 | *) | |
10955 | shrext_cmds='.sl' | |
10956 | dynamic_linker="$host_os dld.sl" | |
10957 | shlibpath_var=SHLIB_PATH | |
10958 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10960 | soname_spec='${libname}${release}${shared_ext}$major' | |
10961 | ;; | |
10962 | esac | |
3725885a | 10963 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 10964 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10965 | # or fails outright, so override atomically: |
10966 | install_override_mode=555 | |
ce2cded5 L |
10967 | ;; |
10968 | ||
10969 | interix[3-9]*) | |
10970 | version_type=linux | |
10971 | need_lib_prefix=no | |
10972 | need_version=no | |
10973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10974 | soname_spec='${libname}${release}${shared_ext}$major' | |
10975 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10976 | shlibpath_var=LD_LIBRARY_PATH | |
10977 | shlibpath_overrides_runpath=no | |
10978 | hardcode_into_libs=yes | |
10979 | ;; | |
10980 | ||
10981 | irix5* | irix6* | nonstopux*) | |
10982 | case $host_os in | |
10983 | nonstopux*) version_type=nonstopux ;; | |
10984 | *) | |
10985 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10986 | version_type=linux | |
10987 | else | |
10988 | version_type=irix | |
10989 | fi ;; | |
10990 | esac | |
10991 | need_lib_prefix=no | |
10992 | need_version=no | |
10993 | soname_spec='${libname}${release}${shared_ext}$major' | |
10994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10995 | case $host_os in | |
10996 | irix5* | nonstopux*) | |
10997 | libsuff= shlibsuff= | |
10998 | ;; | |
10999 | *) | |
11000 | case $LD in # libtool.m4 will add one of these switches to LD | |
11001 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11002 | libsuff= shlibsuff= libmagic=32-bit;; | |
11003 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11004 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11005 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11006 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11007 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11008 | esac | |
11009 | ;; | |
11010 | esac | |
11011 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11012 | shlibpath_overrides_runpath=no | |
11013 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11014 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11015 | hardcode_into_libs=yes | |
11016 | ;; | |
11017 | ||
11018 | # No shared lib support for Linux oldld, aout, or coff. | |
11019 | linux*oldld* | linux*aout* | linux*coff*) | |
11020 | dynamic_linker=no | |
11021 | ;; | |
11022 | ||
11023 | # This must be Linux ELF. | |
58e24671 | 11024 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
11025 | version_type=linux |
11026 | need_lib_prefix=no | |
11027 | need_version=no | |
11028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11029 | soname_spec='${libname}${release}${shared_ext}$major' | |
11030 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11031 | shlibpath_var=LD_LIBRARY_PATH | |
11032 | shlibpath_overrides_runpath=no | |
39144654 | 11033 | |
ce2cded5 | 11034 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
11035 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
11036 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
11037 | else |
11038 | lt_cv_shlibpath_overrides_runpath=no | |
11039 | save_LDFLAGS=$LDFLAGS | |
11040 | save_libdir=$libdir | |
11041 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11042 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 11043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11044 | /* end confdefs.h. */ |
11045 | ||
d7040cdb SE |
11046 | int |
11047 | main () | |
11048 | { | |
ce2cded5 | 11049 | |
d7040cdb SE |
11050 | ; |
11051 | return 0; | |
11052 | } | |
11053 | _ACEOF | |
81ecdfbb RW |
11054 | if ac_fn_c_try_link "$LINENO"; then : |
11055 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 11056 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 11057 | fi |
d7040cdb | 11058 | fi |
81ecdfbb RW |
11059 | rm -f core conftest.err conftest.$ac_objext \ |
11060 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
11061 | LDFLAGS=$save_LDFLAGS |
11062 | libdir=$save_libdir | |
11063 | ||
11064 | fi | |
11065 | ||
11066 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb | 11067 | |
ce2cded5 L |
11068 | # This implies no fast_install, which is unacceptable. |
11069 | # Some rework will be needed to allow for fast_install | |
11070 | # before this can be enabled. | |
11071 | hardcode_into_libs=yes | |
d7040cdb | 11072 | |
ce2cded5 L |
11073 | # Append ld.so.conf contents to the search path |
11074 | if test -f /etc/ld.so.conf; then | |
3725885a | 11075 | 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 |
11076 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11077 | fi | |
d7040cdb | 11078 | |
ce2cded5 L |
11079 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11080 | # powerpc, because MkLinux only supported shared libraries with the | |
11081 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11082 | # most powerpc-linux boxes support dynamic linking these days and | |
11083 | # people can always --disable-shared, the test was removed, and we | |
11084 | # assume the GNU/Linux dynamic linker is in use. | |
11085 | dynamic_linker='GNU/Linux ld.so' | |
11086 | ;; | |
d7040cdb | 11087 | |
ce2cded5 L |
11088 | netbsd*) |
11089 | version_type=sunos | |
11090 | need_lib_prefix=no | |
11091 | need_version=no | |
11092 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11094 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11095 | dynamic_linker='NetBSD (a.out) ld.so' | |
11096 | else | |
11097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11098 | soname_spec='${libname}${release}${shared_ext}$major' | |
11099 | dynamic_linker='NetBSD ld.elf_so' | |
11100 | fi | |
11101 | shlibpath_var=LD_LIBRARY_PATH | |
11102 | shlibpath_overrides_runpath=yes | |
11103 | hardcode_into_libs=yes | |
11104 | ;; | |
d7040cdb | 11105 | |
ce2cded5 L |
11106 | newsos6) |
11107 | version_type=linux | |
11108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11109 | shlibpath_var=LD_LIBRARY_PATH | |
11110 | shlibpath_overrides_runpath=yes | |
11111 | ;; | |
d7040cdb | 11112 | |
ce2cded5 L |
11113 | *nto* | *qnx*) |
11114 | version_type=qnx | |
11115 | need_lib_prefix=no | |
11116 | need_version=no | |
11117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11118 | soname_spec='${libname}${release}${shared_ext}$major' | |
11119 | shlibpath_var=LD_LIBRARY_PATH | |
11120 | shlibpath_overrides_runpath=no | |
11121 | hardcode_into_libs=yes | |
11122 | dynamic_linker='ldqnx.so' | |
11123 | ;; | |
d7040cdb | 11124 | |
ce2cded5 L |
11125 | openbsd*) |
11126 | version_type=sunos | |
11127 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11128 | need_lib_prefix=no | |
11129 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11130 | case $host_os in | |
11131 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11132 | *) need_version=no ;; | |
11133 | esac | |
11134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11135 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11136 | shlibpath_var=LD_LIBRARY_PATH | |
11137 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11138 | case $host_os in | |
11139 | openbsd2.[89] | openbsd2.[89].*) | |
11140 | shlibpath_overrides_runpath=no | |
11141 | ;; | |
11142 | *) | |
11143 | shlibpath_overrides_runpath=yes | |
11144 | ;; | |
11145 | esac | |
11146 | else | |
11147 | shlibpath_overrides_runpath=yes | |
11148 | fi | |
11149 | ;; | |
d7040cdb | 11150 | |
ce2cded5 L |
11151 | os2*) |
11152 | libname_spec='$name' | |
11153 | shrext_cmds=".dll" | |
11154 | need_lib_prefix=no | |
11155 | library_names_spec='$libname${shared_ext} $libname.a' | |
11156 | dynamic_linker='OS/2 ld.exe' | |
11157 | shlibpath_var=LIBPATH | |
11158 | ;; | |
d7040cdb | 11159 | |
ce2cded5 L |
11160 | osf3* | osf4* | osf5*) |
11161 | version_type=osf | |
11162 | need_lib_prefix=no | |
11163 | need_version=no | |
11164 | soname_spec='${libname}${release}${shared_ext}$major' | |
11165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11166 | shlibpath_var=LD_LIBRARY_PATH | |
11167 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11168 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11169 | ;; | |
d7040cdb | 11170 | |
ce2cded5 L |
11171 | rdos*) |
11172 | dynamic_linker=no | |
11173 | ;; | |
d7040cdb | 11174 | |
ce2cded5 L |
11175 | solaris*) |
11176 | version_type=linux | |
11177 | need_lib_prefix=no | |
11178 | need_version=no | |
11179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11180 | soname_spec='${libname}${release}${shared_ext}$major' | |
11181 | shlibpath_var=LD_LIBRARY_PATH | |
11182 | shlibpath_overrides_runpath=yes | |
11183 | hardcode_into_libs=yes | |
11184 | # ldd complains unless libraries are executable | |
11185 | postinstall_cmds='chmod +x $lib' | |
11186 | ;; | |
d7040cdb | 11187 | |
ce2cded5 L |
11188 | sunos4*) |
11189 | version_type=sunos | |
11190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11191 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11192 | shlibpath_var=LD_LIBRARY_PATH | |
11193 | shlibpath_overrides_runpath=yes | |
11194 | if test "$with_gnu_ld" = yes; then | |
11195 | need_lib_prefix=no | |
11196 | fi | |
11197 | need_version=yes | |
11198 | ;; | |
d7040cdb | 11199 | |
ce2cded5 L |
11200 | sysv4 | sysv4.3*) |
11201 | version_type=linux | |
11202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11203 | soname_spec='${libname}${release}${shared_ext}$major' | |
11204 | shlibpath_var=LD_LIBRARY_PATH | |
11205 | case $host_vendor in | |
11206 | sni) | |
11207 | shlibpath_overrides_runpath=no | |
11208 | need_lib_prefix=no | |
11209 | runpath_var=LD_RUN_PATH | |
11210 | ;; | |
11211 | siemens) | |
11212 | need_lib_prefix=no | |
11213 | ;; | |
11214 | motorola) | |
11215 | need_lib_prefix=no | |
11216 | need_version=no | |
11217 | shlibpath_overrides_runpath=no | |
11218 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11219 | ;; | |
11220 | esac | |
11221 | ;; | |
d7040cdb | 11222 | |
ce2cded5 L |
11223 | sysv4*MP*) |
11224 | if test -d /usr/nec ;then | |
11225 | version_type=linux | |
11226 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11227 | soname_spec='$libname${shared_ext}.$major' | |
11228 | shlibpath_var=LD_LIBRARY_PATH | |
11229 | fi | |
11230 | ;; | |
d7040cdb | 11231 | |
ce2cded5 L |
11232 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11233 | version_type=freebsd-elf | |
11234 | need_lib_prefix=no | |
11235 | need_version=no | |
11236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11237 | soname_spec='${libname}${release}${shared_ext}$major' | |
11238 | shlibpath_var=LD_LIBRARY_PATH | |
11239 | shlibpath_overrides_runpath=yes | |
11240 | hardcode_into_libs=yes | |
11241 | if test "$with_gnu_ld" = yes; then | |
11242 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11243 | else | |
11244 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11245 | case $host_os in | |
11246 | sco3.2v5*) | |
11247 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11248 | ;; | |
11249 | esac | |
11250 | fi | |
11251 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11252 | ;; | |
d7040cdb | 11253 | |
ce2cded5 L |
11254 | tpf*) |
11255 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11256 | version_type=linux | |
11257 | need_lib_prefix=no | |
11258 | need_version=no | |
b214d478 | 11259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
11260 | shlibpath_var=LD_LIBRARY_PATH |
11261 | shlibpath_overrides_runpath=no | |
11262 | hardcode_into_libs=yes | |
11263 | ;; | |
d7040cdb | 11264 | |
ce2cded5 L |
11265 | uts4*) |
11266 | version_type=linux | |
11267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11268 | soname_spec='${libname}${release}${shared_ext}$major' | |
11269 | shlibpath_var=LD_LIBRARY_PATH | |
11270 | ;; | |
d7040cdb | 11271 | |
ce2cded5 L |
11272 | *) |
11273 | dynamic_linker=no | |
11274 | ;; | |
11275 | esac | |
81ecdfbb RW |
11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11277 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
11278 | test "$dynamic_linker" = no && can_build_shared=no |
11279 | ||
11280 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11281 | if test "$GCC" = yes; then | |
11282 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb SE |
11283 | fi |
11284 | ||
b214d478 SE |
11285 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11286 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11287 | fi | |
11288 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11289 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11290 | fi | |
11291 | ||
d7040cdb SE |
11292 | |
11293 | ||
11294 | ||
11295 | ||
11296 | ||
11297 | ||
11298 | ||
11299 | ||
11300 | ||
11301 | ||
11302 | ||
d7040cdb | 11303 | |
d7040cdb | 11304 | |
d7040cdb | 11305 | |
d7040cdb | 11306 | |
d7040cdb SE |
11307 | |
11308 | ||
11309 | ||
11310 | ||
d7040cdb | 11311 | |
d7040cdb SE |
11312 | |
11313 | ||
11314 | ||
11315 | ||
11316 | ||
11317 | ||
11318 | ||
11319 | ||
11320 | ||
11321 | ||
11322 | ||
11323 | ||
11324 | ||
d7040cdb SE |
11325 | |
11326 | ||
11327 | ||
11328 | ||
d7040cdb SE |
11329 | |
11330 | ||
11331 | ||
11332 | ||
d7040cdb | 11333 | |
d7040cdb | 11334 | |
d7040cdb | 11335 | |
d7040cdb | 11336 | |
d7040cdb | 11337 | |
d7040cdb | 11338 | |
d7040cdb | 11339 | |
d7040cdb SE |
11340 | |
11341 | ||
11342 | ||
11343 | ||
11344 | ||
d7040cdb | 11345 | |
d7040cdb | 11346 | |
d7040cdb | 11347 | |
d7040cdb | 11348 | |
d7040cdb | 11349 | |
d7040cdb | 11350 | |
d7040cdb SE |
11351 | |
11352 | ||
11353 | ||
11354 | ||
11355 | ||
d7040cdb SE |
11356 | |
11357 | ||
d7040cdb | 11358 | |
d7040cdb | 11359 | |
d7040cdb | 11360 | |
d7040cdb | 11361 | |
ce2cded5 L |
11362 | |
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
3725885a RW |
11372 | |
11373 | ||
11374 | ||
11375 | ||
11376 | ||
ce2cded5 L |
11377 | |
11378 | ||
11379 | ||
11380 | ||
11381 | ||
11382 | ||
81ecdfbb RW |
11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11384 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
11385 | hardcode_action= |
11386 | if test -n "$hardcode_libdir_flag_spec" || | |
11387 | test -n "$runpath_var" || | |
11388 | test "X$hardcode_automatic" = "Xyes" ; then | |
11389 | ||
11390 | # We can hardcode non-existent directories. | |
11391 | if test "$hardcode_direct" != no && | |
11392 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11393 | # have to relink, otherwise we might link with an installed library | |
11394 | # when we should be linking with a yet-to-be-installed one | |
11395 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11396 | test "$hardcode_minus_L" != no; then | |
11397 | # Linking always hardcodes the temporary library directory. | |
11398 | hardcode_action=relink | |
11399 | else | |
11400 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11401 | hardcode_action=immediate | |
d7040cdb | 11402 | fi |
d7040cdb | 11403 | else |
ce2cded5 L |
11404 | # We cannot hardcode anything, or else we can only hardcode existing |
11405 | # directories. | |
11406 | hardcode_action=unsupported | |
d7040cdb | 11407 | fi |
81ecdfbb RW |
11408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11409 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb | 11410 | |
ce2cded5 L |
11411 | if test "$hardcode_action" = relink || |
11412 | test "$inherit_rpath" = yes; then | |
11413 | # Fast installation is not supported | |
11414 | enable_fast_install=no | |
11415 | elif test "$shlibpath_overrides_runpath" = yes || | |
11416 | test "$enable_shared" = no; then | |
11417 | # Fast installation is not necessary | |
11418 | enable_fast_install=needless | |
d7040cdb SE |
11419 | fi |
11420 | ||
d7040cdb | 11421 | |
d7040cdb | 11422 | |
d7040cdb | 11423 | |
d7040cdb | 11424 | |
d7040cdb | 11425 | |
ce2cded5 L |
11426 | if test "x$enable_dlopen" != xyes; then |
11427 | enable_dlopen=unknown | |
11428 | enable_dlopen_self=unknown | |
11429 | enable_dlopen_self_static=unknown | |
d7040cdb | 11430 | else |
ce2cded5 L |
11431 | lt_cv_dlopen=no |
11432 | lt_cv_dlopen_libs= | |
d7040cdb | 11433 | |
ce2cded5 L |
11434 | case $host_os in |
11435 | beos*) | |
11436 | lt_cv_dlopen="load_add_on" | |
11437 | lt_cv_dlopen_libs= | |
11438 | lt_cv_dlopen_self=yes | |
11439 | ;; | |
d7040cdb | 11440 | |
b214d478 | 11441 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11442 | lt_cv_dlopen="LoadLibrary" |
11443 | lt_cv_dlopen_libs= | |
11444 | ;; | |
11445 | ||
11446 | cygwin*) | |
11447 | lt_cv_dlopen="dlopen" | |
11448 | lt_cv_dlopen_libs= | |
11449 | ;; | |
11450 | ||
11451 | darwin*) | |
11452 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
11453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11454 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11455 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11456 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11457 | else |
ce2cded5 L |
11458 | ac_check_lib_save_LIBS=$LIBS |
11459 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11461 | /* end confdefs.h. */ |
11462 | ||
81ecdfbb RW |
11463 | /* Override any GCC internal prototype to avoid an error. |
11464 | Use char because int might match the return type of a GCC | |
11465 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11466 | #ifdef __cplusplus |
11467 | extern "C" | |
11468 | #endif | |
ce2cded5 L |
11469 | char dlopen (); |
11470 | int | |
11471 | main () | |
11472 | { | |
81ecdfbb | 11473 | return dlopen (); |
ce2cded5 L |
11474 | ; |
11475 | return 0; | |
11476 | } | |
11477 | _ACEOF | |
81ecdfbb | 11478 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11479 | ac_cv_lib_dl_dlopen=yes |
11480 | else | |
81ecdfbb | 11481 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11482 | fi |
81ecdfbb RW |
11483 | rm -f core conftest.err conftest.$ac_objext \ |
11484 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11485 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11486 | fi |
81ecdfbb RW |
11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11488 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11489 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11490 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11491 | else |
d7040cdb | 11492 | |
ce2cded5 L |
11493 | lt_cv_dlopen="dyld" |
11494 | lt_cv_dlopen_libs= | |
11495 | lt_cv_dlopen_self=yes | |
11496 | ||
d7040cdb | 11497 | fi |
ce2cded5 L |
11498 | |
11499 | ;; | |
11500 | ||
11501 | *) | |
81ecdfbb RW |
11502 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11503 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
11504 | lt_cv_dlopen="shl_load" |
11505 | else | |
81ecdfbb RW |
11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11507 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11508 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
11509 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11510 | else |
11511 | ac_check_lib_save_LIBS=$LIBS | |
11512 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11514 | /* end confdefs.h. */ |
d7040cdb | 11515 | |
81ecdfbb RW |
11516 | /* Override any GCC internal prototype to avoid an error. |
11517 | Use char because int might match the return type of a GCC | |
11518 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11519 | #ifdef __cplusplus |
11520 | extern "C" | |
11521 | #endif | |
ce2cded5 L |
11522 | char shl_load (); |
11523 | int | |
11524 | main () | |
11525 | { | |
81ecdfbb | 11526 | return shl_load (); |
ce2cded5 L |
11527 | ; |
11528 | return 0; | |
11529 | } | |
11530 | _ACEOF | |
81ecdfbb | 11531 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11532 | ac_cv_lib_dld_shl_load=yes |
11533 | else | |
81ecdfbb | 11534 | ac_cv_lib_dld_shl_load=no |
ce2cded5 | 11535 | fi |
81ecdfbb RW |
11536 | rm -f core conftest.err conftest.$ac_objext \ |
11537 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11538 | LIBS=$ac_check_lib_save_LIBS |
11539 | fi | |
81ecdfbb RW |
11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11541 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11542 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
b214d478 | 11543 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 11544 | else |
81ecdfbb RW |
11545 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11546 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
11547 | lt_cv_dlopen="dlopen" |
11548 | else | |
81ecdfbb RW |
11549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11550 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11551 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11552 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11553 | else |
ce2cded5 L |
11554 | ac_check_lib_save_LIBS=$LIBS |
11555 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11557 | /* end confdefs.h. */ |
11558 | ||
81ecdfbb RW |
11559 | /* Override any GCC internal prototype to avoid an error. |
11560 | Use char because int might match the return type of a GCC | |
11561 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11562 | #ifdef __cplusplus |
11563 | extern "C" | |
11564 | #endif | |
ce2cded5 | 11565 | char dlopen (); |
d7040cdb SE |
11566 | int |
11567 | main () | |
11568 | { | |
81ecdfbb | 11569 | return dlopen (); |
d7040cdb SE |
11570 | ; |
11571 | return 0; | |
11572 | } | |
11573 | _ACEOF | |
81ecdfbb | 11574 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11575 | ac_cv_lib_dl_dlopen=yes |
d7040cdb | 11576 | else |
81ecdfbb | 11577 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11578 | fi |
81ecdfbb RW |
11579 | rm -f core conftest.err conftest.$ac_objext \ |
11580 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11581 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11582 | fi |
81ecdfbb RW |
11583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11584 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11585 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11586 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11587 | else |
81ecdfbb RW |
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11589 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11590 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
11591 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11592 | else |
ce2cded5 L |
11593 | ac_check_lib_save_LIBS=$LIBS |
11594 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 11595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 11596 | /* end confdefs.h. */ |
d7040cdb | 11597 | |
81ecdfbb RW |
11598 | /* Override any GCC internal prototype to avoid an error. |
11599 | Use char because int might match the return type of a GCC | |
11600 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11601 | #ifdef __cplusplus |
11602 | extern "C" | |
11603 | #endif | |
ce2cded5 | 11604 | char dlopen (); |
d7040cdb SE |
11605 | int |
11606 | main () | |
11607 | { | |
81ecdfbb | 11608 | return dlopen (); |
d7040cdb SE |
11609 | ; |
11610 | return 0; | |
11611 | } | |
11612 | _ACEOF | |
81ecdfbb | 11613 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11614 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 11615 | else |
81ecdfbb | 11616 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 11617 | fi |
81ecdfbb RW |
11618 | rm -f core conftest.err conftest.$ac_objext \ |
11619 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11620 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11621 | fi |
81ecdfbb RW |
11622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11623 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11624 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
11625 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11626 | else | |
81ecdfbb RW |
11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11628 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11629 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11630 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11631 | else |
11632 | ac_check_lib_save_LIBS=$LIBS | |
11633 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11635 | /* end confdefs.h. */ |
11636 | ||
81ecdfbb RW |
11637 | /* Override any GCC internal prototype to avoid an error. |
11638 | Use char because int might match the return type of a GCC | |
11639 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11640 | #ifdef __cplusplus |
11641 | extern "C" | |
11642 | #endif | |
ce2cded5 | 11643 | char dld_link (); |
d7040cdb SE |
11644 | int |
11645 | main () | |
11646 | { | |
81ecdfbb | 11647 | return dld_link (); |
d7040cdb SE |
11648 | ; |
11649 | return 0; | |
11650 | } | |
11651 | _ACEOF | |
81ecdfbb | 11652 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11653 | ac_cv_lib_dld_dld_link=yes |
d7040cdb | 11654 | else |
81ecdfbb | 11655 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 11656 | fi |
81ecdfbb RW |
11657 | rm -f core conftest.err conftest.$ac_objext \ |
11658 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11659 | LIBS=$ac_check_lib_save_LIBS |
11660 | fi | |
81ecdfbb RW |
11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11662 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11663 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
b214d478 | 11664 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
11665 | fi |
11666 | ||
11667 | ||
11668 | fi | |
11669 | ||
11670 | ||
11671 | fi | |
11672 | ||
11673 | ||
11674 | fi | |
11675 | ||
11676 | ||
11677 | fi | |
11678 | ||
11679 | ||
11680 | fi | |
11681 | ||
11682 | ;; | |
11683 | esac | |
11684 | ||
11685 | if test "x$lt_cv_dlopen" != xno; then | |
11686 | enable_dlopen=yes | |
11687 | else | |
11688 | enable_dlopen=no | |
11689 | fi | |
11690 | ||
11691 | case $lt_cv_dlopen in | |
11692 | dlopen) | |
11693 | save_CPPFLAGS="$CPPFLAGS" | |
11694 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11695 | ||
11696 | save_LDFLAGS="$LDFLAGS" | |
11697 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11698 | ||
11699 | save_LIBS="$LIBS" | |
11700 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11701 | ||
81ecdfbb RW |
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11703 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11704 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11705 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11706 | else |
11707 | if test "$cross_compiling" = yes; then : | |
11708 | lt_cv_dlopen_self=cross | |
11709 | else | |
11710 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11711 | lt_status=$lt_dlunknown | |
11712 | cat > conftest.$ac_ext <<_LT_EOF | |
f24173eb | 11713 | #line 11713 "configure" |
ce2cded5 L |
11714 | #include "confdefs.h" |
11715 | ||
11716 | #if HAVE_DLFCN_H | |
11717 | #include <dlfcn.h> | |
11718 | #endif | |
11719 | ||
11720 | #include <stdio.h> | |
11721 | ||
11722 | #ifdef RTLD_GLOBAL | |
11723 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11724 | #else | |
11725 | # ifdef DL_GLOBAL | |
11726 | # define LT_DLGLOBAL DL_GLOBAL | |
11727 | # else | |
11728 | # define LT_DLGLOBAL 0 | |
11729 | # endif | |
11730 | #endif | |
11731 | ||
11732 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11733 | find out it does not work in some platform. */ | |
11734 | #ifndef LT_DLLAZY_OR_NOW | |
11735 | # ifdef RTLD_LAZY | |
11736 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11737 | # else | |
11738 | # ifdef DL_LAZY | |
11739 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11740 | # else | |
11741 | # ifdef RTLD_NOW | |
11742 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11743 | # else | |
11744 | # ifdef DL_NOW | |
11745 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11746 | # else | |
11747 | # define LT_DLLAZY_OR_NOW 0 | |
11748 | # endif | |
11749 | # endif | |
11750 | # endif | |
11751 | # endif | |
11752 | #endif | |
11753 | ||
3725885a RW |
11754 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11755 | correspondingly for the symbols needed. */ | |
11756 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11757 | void fnord () __attribute__((visibility("default"))); | |
11758 | #endif | |
11759 | ||
11760 | void fnord () { int i=42; } | |
ce2cded5 | 11761 | int main () |
d7040cdb | 11762 | { |
ce2cded5 L |
11763 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11764 | int status = $lt_dlunknown; | |
11765 | ||
11766 | if (self) | |
11767 | { | |
11768 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11769 | else |
11770 | { | |
11771 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11772 | else puts (dlerror ()); | |
11773 | } | |
ce2cded5 L |
11774 | /* dlclose (self); */ |
11775 | } | |
11776 | else | |
11777 | puts (dlerror ()); | |
11778 | ||
b214d478 | 11779 | return status; |
d7040cdb | 11780 | } |
ce2cded5 | 11781 | _LT_EOF |
81ecdfbb | 11782 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 11783 | (eval $ac_link) 2>&5 |
d7040cdb | 11784 | ac_status=$? |
81ecdfbb RW |
11785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11786 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11787 | (./conftest; exit; ) >&5 2>/dev/null |
11788 | lt_status=$? | |
11789 | case x$lt_status in | |
11790 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11791 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11792 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11793 | esac | |
11794 | else : | |
11795 | # compilation failed | |
11796 | lt_cv_dlopen_self=no | |
11797 | fi | |
11798 | fi | |
11799 | rm -fr conftest* | |
11800 | ||
11801 | ||
11802 | fi | |
81ecdfbb RW |
11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11804 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
11805 | |
11806 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11807 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11809 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11810 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11811 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11812 | else |
11813 | if test "$cross_compiling" = yes; then : | |
11814 | lt_cv_dlopen_self_static=cross | |
11815 | else | |
11816 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11817 | lt_status=$lt_dlunknown | |
11818 | cat > conftest.$ac_ext <<_LT_EOF | |
f24173eb | 11819 | #line 11819 "configure" |
ce2cded5 L |
11820 | #include "confdefs.h" |
11821 | ||
11822 | #if HAVE_DLFCN_H | |
11823 | #include <dlfcn.h> | |
11824 | #endif | |
11825 | ||
11826 | #include <stdio.h> | |
11827 | ||
11828 | #ifdef RTLD_GLOBAL | |
11829 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11830 | #else | |
11831 | # ifdef DL_GLOBAL | |
11832 | # define LT_DLGLOBAL DL_GLOBAL | |
11833 | # else | |
11834 | # define LT_DLGLOBAL 0 | |
11835 | # endif | |
11836 | #endif | |
11837 | ||
11838 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11839 | find out it does not work in some platform. */ | |
11840 | #ifndef LT_DLLAZY_OR_NOW | |
11841 | # ifdef RTLD_LAZY | |
11842 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11843 | # else | |
11844 | # ifdef DL_LAZY | |
11845 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11846 | # else | |
11847 | # ifdef RTLD_NOW | |
11848 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11849 | # else | |
11850 | # ifdef DL_NOW | |
11851 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11852 | # else | |
11853 | # define LT_DLLAZY_OR_NOW 0 | |
11854 | # endif | |
11855 | # endif | |
11856 | # endif | |
11857 | # endif | |
11858 | #endif | |
11859 | ||
3cb62297 L |
11860 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11861 | correspondingly for the symbols needed. */ | |
11862 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11863 | void fnord () __attribute__((visibility("default"))); | |
11864 | #endif | |
11865 | ||
11866 | void fnord () { int i=42; } | |
11867 | int main () | |
11868 | { | |
11869 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11870 | int status = $lt_dlunknown; | |
11871 | ||
11872 | if (self) | |
11873 | { | |
11874 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11875 | else | |
11876 | { | |
11877 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11878 | else puts (dlerror ()); | |
11879 | } | |
11880 | /* dlclose (self); */ | |
11881 | } | |
11882 | else | |
11883 | puts (dlerror ()); | |
11884 | ||
11885 | return status; | |
11886 | } | |
11887 | _LT_EOF | |
11888 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11889 | (eval $ac_link) 2>&5 | |
11890 | ac_status=$? | |
11891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11892 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11893 | (./conftest; exit; ) >&5 2>/dev/null | |
11894 | lt_status=$? | |
11895 | case x$lt_status in | |
11896 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11897 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11898 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11899 | esac | |
11900 | else : | |
11901 | # compilation failed | |
11902 | lt_cv_dlopen_self_static=no | |
11903 | fi | |
11904 | fi | |
11905 | rm -fr conftest* | |
11906 | ||
11907 | ||
11908 | fi | |
11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11910 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11911 | fi | |
11912 | ||
11913 | CPPFLAGS="$save_CPPFLAGS" | |
11914 | LDFLAGS="$save_LDFLAGS" | |
11915 | LIBS="$save_LIBS" | |
11916 | ;; | |
11917 | esac | |
11918 | ||
11919 | case $lt_cv_dlopen_self in | |
11920 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11921 | *) enable_dlopen_self=unknown ;; | |
11922 | esac | |
11923 | ||
11924 | case $lt_cv_dlopen_self_static in | |
11925 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11926 | *) enable_dlopen_self_static=unknown ;; | |
11927 | esac | |
11928 | fi | |
11929 | ||
11930 | ||
11931 | ||
11932 | ||
11933 | ||
11934 | ||
11935 | ||
11936 | ||
11937 | ||
11938 | ||
11939 | ||
11940 | ||
11941 | ||
11942 | ||
11943 | ||
11944 | ||
11945 | ||
11946 | striplib= | |
11947 | old_striplib= | |
11948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11949 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11950 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11951 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11952 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11954 | $as_echo "yes" >&6; } | |
11955 | else | |
11956 | # FIXME - insert some real tests, host_os isn't really good enough | |
11957 | case $host_os in | |
11958 | darwin*) | |
11959 | if test -n "$STRIP" ; then | |
11960 | striplib="$STRIP -x" | |
11961 | old_striplib="$STRIP -S" | |
11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11963 | $as_echo "yes" >&6; } | |
11964 | else | |
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11966 | $as_echo "no" >&6; } | |
11967 | fi | |
11968 | ;; | |
11969 | *) | |
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11971 | $as_echo "no" >&6; } | |
11972 | ;; | |
11973 | esac | |
11974 | fi | |
11975 | ||
11976 | ||
11977 | ||
11978 | ||
11979 | ||
11980 | ||
11981 | ||
11982 | ||
11983 | ||
11984 | ||
11985 | ||
11986 | ||
11987 | # Report which library types will actually be built | |
11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11989 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11991 | $as_echo "$can_build_shared" >&6; } | |
11992 | ||
11993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11994 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11995 | test "$can_build_shared" = "no" && enable_shared=no | |
11996 | ||
11997 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11998 | # are all built from PIC. | |
11999 | case $host_os in | |
12000 | aix3*) | |
12001 | test "$enable_shared" = yes && enable_static=no | |
12002 | if test -n "$RANLIB"; then | |
12003 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12004 | postinstall_cmds='$RANLIB $lib' | |
12005 | fi | |
12006 | ;; | |
12007 | ||
12008 | aix[4-9]*) | |
12009 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12010 | test "$enable_shared" = yes && enable_static=no | |
12011 | fi | |
12012 | ;; | |
12013 | esac | |
12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12015 | $as_echo "$enable_shared" >&6; } | |
12016 | ||
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12018 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12019 | # Make sure either enable_shared or enable_static is yes. | |
12020 | test "$enable_shared" = yes || enable_static=yes | |
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12022 | $as_echo "$enable_static" >&6; } | |
12023 | ||
12024 | ||
12025 | ||
12026 | ||
12027 | fi | |
12028 | ac_ext=c | |
12029 | ac_cpp='$CPP $CPPFLAGS' | |
12030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12033 | ||
12034 | CC="$lt_save_CC" | |
12035 | ||
12036 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12037 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12038 | (test "X$CXX" != "Xg++"))) ; then | |
12039 | ac_ext=cpp | |
12040 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12041 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12042 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12043 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12045 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12046 | if test -z "$CXXCPP"; then | |
12047 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
12048 | $as_echo_n "(cached) " >&6 | |
12049 | else | |
12050 | # Double quotes because CXXCPP needs to be expanded | |
12051 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12052 | do | |
12053 | ac_preproc_ok=false | |
12054 | for ac_cxx_preproc_warn_flag in '' yes | |
12055 | do | |
12056 | # Use a header file that comes with gcc, so configuring glibc | |
12057 | # with a fresh cross-compiler works. | |
12058 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12059 | # <limits.h> exists even on freestanding compilers. | |
12060 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12061 | # not just through cpp. "Syntax error" is here to catch this case. | |
12062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12063 | /* end confdefs.h. */ | |
12064 | #ifdef __STDC__ | |
12065 | # include <limits.h> | |
12066 | #else | |
12067 | # include <assert.h> | |
12068 | #endif | |
12069 | Syntax error | |
12070 | _ACEOF | |
12071 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12072 | ||
12073 | else | |
12074 | # Broken: fails on valid input. | |
12075 | continue | |
12076 | fi | |
12077 | rm -f conftest.err conftest.$ac_ext | |
12078 | ||
12079 | # OK, works on sane cases. Now check whether nonexistent headers | |
12080 | # can be detected and how. | |
12081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12082 | /* end confdefs.h. */ | |
12083 | #include <ac_nonexistent.h> | |
12084 | _ACEOF | |
12085 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12086 | # Broken: success on invalid input. | |
12087 | continue | |
12088 | else | |
12089 | # Passes both tests. | |
12090 | ac_preproc_ok=: | |
12091 | break | |
12092 | fi | |
12093 | rm -f conftest.err conftest.$ac_ext | |
12094 | ||
12095 | done | |
12096 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12097 | rm -f conftest.err conftest.$ac_ext | |
12098 | if $ac_preproc_ok; then : | |
12099 | break | |
12100 | fi | |
12101 | ||
12102 | done | |
12103 | ac_cv_prog_CXXCPP=$CXXCPP | |
12104 | ||
12105 | fi | |
12106 | CXXCPP=$ac_cv_prog_CXXCPP | |
12107 | else | |
12108 | ac_cv_prog_CXXCPP=$CXXCPP | |
12109 | fi | |
12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12111 | $as_echo "$CXXCPP" >&6; } | |
12112 | ac_preproc_ok=false | |
12113 | for ac_cxx_preproc_warn_flag in '' yes | |
12114 | do | |
12115 | # Use a header file that comes with gcc, so configuring glibc | |
12116 | # with a fresh cross-compiler works. | |
12117 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12118 | # <limits.h> exists even on freestanding compilers. | |
12119 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12120 | # not just through cpp. "Syntax error" is here to catch this case. | |
12121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12122 | /* end confdefs.h. */ | |
12123 | #ifdef __STDC__ | |
12124 | # include <limits.h> | |
12125 | #else | |
12126 | # include <assert.h> | |
12127 | #endif | |
12128 | Syntax error | |
12129 | _ACEOF | |
12130 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12131 | ||
12132 | else | |
12133 | # Broken: fails on valid input. | |
12134 | continue | |
12135 | fi | |
12136 | rm -f conftest.err conftest.$ac_ext | |
12137 | ||
12138 | # OK, works on sane cases. Now check whether nonexistent headers | |
12139 | # can be detected and how. | |
12140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12141 | /* end confdefs.h. */ | |
12142 | #include <ac_nonexistent.h> | |
12143 | _ACEOF | |
12144 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12145 | # Broken: success on invalid input. | |
12146 | continue | |
12147 | else | |
12148 | # Passes both tests. | |
12149 | ac_preproc_ok=: | |
12150 | break | |
12151 | fi | |
12152 | rm -f conftest.err conftest.$ac_ext | |
12153 | ||
12154 | done | |
12155 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12156 | rm -f conftest.err conftest.$ac_ext | |
12157 | if $ac_preproc_ok; then : | |
12158 | ||
12159 | else | |
12160 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12161 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12162 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
12163 | See \`config.log' for more details." "$LINENO" 5; } | |
12164 | fi | |
12165 | ||
12166 | ac_ext=c | |
12167 | ac_cpp='$CPP $CPPFLAGS' | |
12168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12171 | ||
12172 | else | |
12173 | _lt_caught_CXX_error=yes | |
12174 | fi | |
12175 | ||
12176 | ac_ext=cpp | |
12177 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12178 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12179 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12180 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12181 | ||
12182 | archive_cmds_need_lc_CXX=no | |
12183 | allow_undefined_flag_CXX= | |
12184 | always_export_symbols_CXX=no | |
12185 | archive_expsym_cmds_CXX= | |
12186 | compiler_needs_object_CXX=no | |
12187 | export_dynamic_flag_spec_CXX= | |
12188 | hardcode_direct_CXX=no | |
12189 | hardcode_direct_absolute_CXX=no | |
12190 | hardcode_libdir_flag_spec_CXX= | |
12191 | hardcode_libdir_flag_spec_ld_CXX= | |
12192 | hardcode_libdir_separator_CXX= | |
12193 | hardcode_minus_L_CXX=no | |
12194 | hardcode_shlibpath_var_CXX=unsupported | |
12195 | hardcode_automatic_CXX=no | |
12196 | inherit_rpath_CXX=no | |
12197 | module_cmds_CXX= | |
12198 | module_expsym_cmds_CXX= | |
12199 | link_all_deplibs_CXX=unknown | |
12200 | old_archive_cmds_CXX=$old_archive_cmds | |
12201 | reload_flag_CXX=$reload_flag | |
12202 | reload_cmds_CXX=$reload_cmds | |
12203 | no_undefined_flag_CXX= | |
12204 | whole_archive_flag_spec_CXX= | |
12205 | enable_shared_with_static_runtimes_CXX=no | |
12206 | ||
12207 | # Source file extension for C++ test sources. | |
12208 | ac_ext=cpp | |
12209 | ||
12210 | # Object file extension for compiled C++ test sources. | |
12211 | objext=o | |
12212 | objext_CXX=$objext | |
12213 | ||
12214 | # No sense in running all these tests if we already determined that | |
12215 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12216 | # are currently assumed to apply to all compilers on this platform, | |
12217 | # and will be corrupted by setting them based on a non-working compiler. | |
12218 | if test "$_lt_caught_CXX_error" != yes; then | |
12219 | # Code to be used in simple compile tests | |
12220 | lt_simple_compile_test_code="int some_variable = 0;" | |
12221 | ||
12222 | # Code to be used in simple link tests | |
12223 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12224 | ||
12225 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12226 | ||
12227 | ||
12228 | ||
12229 | ||
12230 | ||
12231 | ||
12232 | # If no C compiler was specified, use CC. | |
12233 | LTCC=${LTCC-"$CC"} | |
12234 | ||
12235 | # If no C compiler flags were specified, use CFLAGS. | |
12236 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12237 | ||
12238 | # Allow CC to be a program name with arguments. | |
12239 | compiler=$CC | |
12240 | ||
12241 | ||
12242 | # save warnings/boilerplate of simple test code | |
12243 | ac_outfile=conftest.$ac_objext | |
12244 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12245 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12246 | _lt_compiler_boilerplate=`cat conftest.err` | |
12247 | $RM conftest* | |
12248 | ||
12249 | ac_outfile=conftest.$ac_objext | |
12250 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12251 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12252 | _lt_linker_boilerplate=`cat conftest.err` | |
12253 | $RM -r conftest* | |
12254 | ||
12255 | ||
12256 | # Allow CC to be a program name with arguments. | |
12257 | lt_save_CC=$CC | |
12258 | lt_save_LD=$LD | |
12259 | lt_save_GCC=$GCC | |
12260 | GCC=$GXX | |
12261 | lt_save_with_gnu_ld=$with_gnu_ld | |
12262 | lt_save_path_LD=$lt_cv_path_LD | |
12263 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12264 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12265 | else | |
12266 | $as_unset lt_cv_prog_gnu_ld | |
12267 | fi | |
12268 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12269 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12270 | else | |
12271 | $as_unset lt_cv_path_LD | |
12272 | fi | |
12273 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12274 | CC=${CXX-"c++"} | |
12275 | compiler=$CC | |
12276 | compiler_CXX=$CC | |
12277 | for cc_temp in $compiler""; do | |
12278 | case $cc_temp in | |
12279 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12280 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12281 | \-*) ;; | |
12282 | *) break;; | |
12283 | esac | |
12284 | done | |
12285 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12286 | ||
12287 | ||
12288 | if test -n "$compiler"; then | |
12289 | # We don't want -fno-exception when compiling C++ code, so set the | |
12290 | # no_builtin_flag separately | |
12291 | if test "$GXX" = yes; then | |
12292 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12293 | else | |
12294 | lt_prog_compiler_no_builtin_flag_CXX= | |
12295 | fi | |
12296 | ||
12297 | if test "$GXX" = yes; then | |
12298 | # Set up default GNU C++ configuration | |
12299 | ||
12300 | ||
12301 | ||
12302 | # Check whether --with-gnu-ld was given. | |
12303 | if test "${with_gnu_ld+set}" = set; then : | |
12304 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12305 | else | |
12306 | with_gnu_ld=no | |
12307 | fi | |
12308 | ||
12309 | ac_prog=ld | |
12310 | if test "$GCC" = yes; then | |
12311 | # Check if gcc -print-prog-name=ld gives a path. | |
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12313 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12314 | case $host in | |
12315 | *-*-mingw*) | |
12316 | # gcc leaves a trailing carriage return which upsets mingw | |
12317 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12318 | *) | |
12319 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12320 | esac | |
12321 | case $ac_prog in | |
12322 | # Accept absolute paths. | |
12323 | [\\/]* | ?:[\\/]*) | |
12324 | re_direlt='/[^/][^/]*/\.\./' | |
12325 | # Canonicalize the pathname of ld | |
12326 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12327 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12328 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12329 | done | |
12330 | test -z "$LD" && LD="$ac_prog" | |
12331 | ;; | |
12332 | "") | |
12333 | # If it fails, then pretend we aren't using GCC. | |
12334 | ac_prog=ld | |
12335 | ;; | |
12336 | *) | |
12337 | # If it is relative, then search for the first ld in PATH. | |
12338 | with_gnu_ld=unknown | |
12339 | ;; | |
12340 | esac | |
12341 | elif test "$with_gnu_ld" = yes; then | |
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12343 | $as_echo_n "checking for GNU ld... " >&6; } | |
12344 | else | |
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12346 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
12347 | fi | |
12348 | if test "${lt_cv_path_LD+set}" = set; then : | |
12349 | $as_echo_n "(cached) " >&6 | |
12350 | else | |
12351 | if test -z "$LD"; then | |
12352 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12353 | for ac_dir in $PATH; do | |
12354 | IFS="$lt_save_ifs" | |
12355 | test -z "$ac_dir" && ac_dir=. | |
12356 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12357 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12358 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12359 | # but apparently some variants of GNU ld only accept -v. | |
12360 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12361 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12362 | *GNU* | *'with BFD'*) | |
12363 | test "$with_gnu_ld" != no && break | |
12364 | ;; | |
12365 | *) | |
12366 | test "$with_gnu_ld" != yes && break | |
12367 | ;; | |
12368 | esac | |
12369 | fi | |
12370 | done | |
12371 | IFS="$lt_save_ifs" | |
12372 | else | |
12373 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12374 | fi | |
12375 | fi | |
12376 | ||
12377 | LD="$lt_cv_path_LD" | |
12378 | if test -n "$LD"; then | |
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12380 | $as_echo "$LD" >&6; } | |
12381 | else | |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12383 | $as_echo "no" >&6; } | |
12384 | fi | |
12385 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
12387 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
12388 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
12389 | $as_echo_n "(cached) " >&6 | |
12390 | else | |
12391 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12392 | case `$LD -v 2>&1 </dev/null` in | |
12393 | *GNU* | *'with BFD'*) | |
12394 | lt_cv_prog_gnu_ld=yes | |
12395 | ;; | |
12396 | *) | |
12397 | lt_cv_prog_gnu_ld=no | |
12398 | ;; | |
12399 | esac | |
12400 | fi | |
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12402 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12403 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12404 | ||
12405 | ||
12406 | ||
12407 | ||
12408 | ||
12409 | ||
12410 | ||
12411 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12412 | # archiving commands below assume that GNU ld is being used. | |
12413 | if test "$with_gnu_ld" = yes; then | |
6e733cce L |
12414 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
12415 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
3cb62297 L |
12416 | |
12417 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12418 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12419 | ||
12420 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12421 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12422 | # investigate it a little bit more. (MM) | |
12423 | wlarc='${wl}' | |
12424 | ||
12425 | # ancient GNU ld didn't support --whole-archive et. al. | |
12426 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12427 | $GREP 'no-whole-archive' > /dev/null; then | |
12428 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12429 | else | |
12430 | whole_archive_flag_spec_CXX= | |
12431 | fi | |
12432 | else | |
12433 | with_gnu_ld=no | |
12434 | wlarc= | |
12435 | ||
12436 | # A generic and very simple default shared library creation | |
12437 | # command for GNU C++ for the case where it uses the native | |
12438 | # linker, instead of GNU ld. If possible, this setting should | |
12439 | # overridden to take advantage of the native linker features on | |
12440 | # the platform it is being used on. | |
12441 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12442 | fi | |
12443 | ||
12444 | # Commands to make compiler produce verbose output that lists | |
12445 | # what "hidden" libraries, object files and flags are used when | |
12446 | # linking a shared library. | |
12447 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12448 | ||
12449 | else | |
12450 | GXX=no | |
12451 | with_gnu_ld=no | |
12452 | wlarc= | |
12453 | fi | |
12454 | ||
12455 | # PORTME: fill in a description of your system's C++ link characteristics | |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12457 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12458 | ld_shlibs_CXX=yes | |
12459 | case $host_os in | |
12460 | aix3*) | |
12461 | # FIXME: insert proper C++ library support | |
12462 | ld_shlibs_CXX=no | |
12463 | ;; | |
12464 | aix[4-9]*) | |
12465 | if test "$host_cpu" = ia64; then | |
12466 | # On IA64, the linker does run time linking by default, so we don't | |
12467 | # have to do anything special. | |
12468 | aix_use_runtimelinking=no | |
12469 | exp_sym_flag='-Bexport' | |
12470 | no_entry_flag="" | |
12471 | else | |
12472 | aix_use_runtimelinking=no | |
12473 | ||
12474 | # Test if we are trying to use run time linking or normal | |
12475 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12476 | # need to do runtime linking. | |
12477 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12478 | for ld_flag in $LDFLAGS; do | |
12479 | case $ld_flag in | |
12480 | *-brtl*) | |
12481 | aix_use_runtimelinking=yes | |
12482 | break | |
12483 | ;; | |
12484 | esac | |
12485 | done | |
12486 | ;; | |
12487 | esac | |
12488 | ||
12489 | exp_sym_flag='-bexport' | |
12490 | no_entry_flag='-bnoentry' | |
12491 | fi | |
12492 | ||
12493 | # When large executables or shared objects are built, AIX ld can | |
12494 | # have problems creating the table of contents. If linking a library | |
12495 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12496 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12497 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12498 | ||
12499 | archive_cmds_CXX='' | |
12500 | hardcode_direct_CXX=yes | |
12501 | hardcode_direct_absolute_CXX=yes | |
12502 | hardcode_libdir_separator_CXX=':' | |
12503 | link_all_deplibs_CXX=yes | |
12504 | file_list_spec_CXX='${wl}-f,' | |
12505 | ||
12506 | if test "$GXX" = yes; then | |
12507 | case $host_os in aix4.[012]|aix4.[012].*) | |
12508 | # We only want to do this on AIX 4.2 and lower, the check | |
12509 | # below for broken collect2 doesn't work under 4.3+ | |
12510 | collect2name=`${CC} -print-prog-name=collect2` | |
12511 | if test -f "$collect2name" && | |
12512 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12513 | then | |
12514 | # We have reworked collect2 | |
12515 | : | |
12516 | else | |
12517 | # We have old collect2 | |
12518 | hardcode_direct_CXX=unsupported | |
12519 | # It fails to find uninstalled libraries when the uninstalled | |
12520 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12521 | # to unsupported forces relinking | |
12522 | hardcode_minus_L_CXX=yes | |
12523 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12524 | hardcode_libdir_separator_CXX= | |
12525 | fi | |
12526 | esac | |
12527 | shared_flag='-shared' | |
12528 | if test "$aix_use_runtimelinking" = yes; then | |
12529 | shared_flag="$shared_flag "'${wl}-G' | |
12530 | fi | |
12531 | else | |
12532 | # not using gcc | |
12533 | if test "$host_cpu" = ia64; then | |
12534 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12535 | # chokes on -Wl,-G. The following line is correct: | |
12536 | shared_flag='-G' | |
12537 | else | |
12538 | if test "$aix_use_runtimelinking" = yes; then | |
12539 | shared_flag='${wl}-G' | |
12540 | else | |
12541 | shared_flag='${wl}-bM:SRE' | |
12542 | fi | |
12543 | fi | |
12544 | fi | |
12545 | ||
12546 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
12547 | # It seems that -bexpall does not export symbols beginning with | |
12548 | # underscore (_), so it is better to generate a list of symbols to | |
12549 | # export. | |
12550 | always_export_symbols_CXX=yes | |
12551 | if test "$aix_use_runtimelinking" = yes; then | |
12552 | # Warning - without using the other runtime loading flags (-brtl), | |
12553 | # -berok will link without error, but may produce a broken library. | |
12554 | allow_undefined_flag_CXX='-berok' | |
12555 | # Determine the default libpath from the value encoded in an empty | |
12556 | # executable. | |
12557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12558 | /* end confdefs.h. */ | |
12559 | ||
12560 | int | |
12561 | main () | |
12562 | { | |
12563 | ||
12564 | ; | |
12565 | return 0; | |
12566 | } | |
12567 | _ACEOF | |
12568 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12569 | ||
12570 | lt_aix_libpath_sed=' | |
12571 | /Import File Strings/,/^$/ { | |
12572 | /^0/ { | |
12573 | s/^0 *\(.*\)$/\1/ | |
12574 | p | |
12575 | } | |
12576 | }' | |
12577 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12578 | # Check for a 64-bit object if we didn't find anything. | |
12579 | if test -z "$aix_libpath"; then | |
12580 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12581 | fi | |
12582 | fi | |
12583 | rm -f core conftest.err conftest.$ac_objext \ | |
12584 | conftest$ac_exeext conftest.$ac_ext | |
12585 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12586 | ||
12587 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12588 | ||
12589 | 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" | |
12590 | else | |
12591 | if test "$host_cpu" = ia64; then | |
12592 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12593 | allow_undefined_flag_CXX="-z nodefs" | |
12594 | 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" | |
12595 | else | |
12596 | # Determine the default libpath from the value encoded in an | |
12597 | # empty executable. | |
12598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12599 | /* end confdefs.h. */ | |
12600 | ||
12601 | int | |
12602 | main () | |
12603 | { | |
12604 | ||
12605 | ; | |
12606 | return 0; | |
12607 | } | |
12608 | _ACEOF | |
12609 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12610 | ||
12611 | lt_aix_libpath_sed=' | |
12612 | /Import File Strings/,/^$/ { | |
12613 | /^0/ { | |
12614 | s/^0 *\(.*\)$/\1/ | |
12615 | p | |
12616 | } | |
12617 | }' | |
12618 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12619 | # Check for a 64-bit object if we didn't find anything. | |
12620 | if test -z "$aix_libpath"; then | |
12621 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12622 | fi | |
12623 | fi | |
12624 | rm -f core conftest.err conftest.$ac_objext \ | |
12625 | conftest$ac_exeext conftest.$ac_ext | |
12626 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12627 | ||
12628 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12629 | # Warning - without using the other run time loading flags, | |
12630 | # -berok will link without error, but may produce a broken library. | |
12631 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
12632 | allow_undefined_flag_CXX=' ${wl}-berok' | |
12633 | if test "$with_gnu_ld" = yes; then | |
12634 | # We only use this code for GNU lds that support --whole-archive. | |
12635 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12636 | else | |
12637 | # Exported symbols can be pulled into shared objects from archives | |
12638 | whole_archive_flag_spec_CXX='$convenience' | |
12639 | fi | |
12640 | archive_cmds_need_lc_CXX=yes | |
12641 | # This is similar to how AIX traditionally builds its shared | |
12642 | # libraries. | |
12643 | 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' | |
12644 | fi | |
12645 | fi | |
12646 | ;; | |
12647 | ||
12648 | beos*) | |
12649 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12650 | allow_undefined_flag_CXX=unsupported | |
12651 | # Joseph Beckenbach <[email protected]> says some releases of gcc | |
12652 | # support --undefined. This deserves some investigation. FIXME | |
12653 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12654 | else | |
12655 | ld_shlibs_CXX=no | |
12656 | fi | |
12657 | ;; | |
12658 | ||
12659 | chorus*) | |
12660 | case $cc_basename in | |
12661 | *) | |
12662 | # FIXME: insert proper C++ library support | |
12663 | ld_shlibs_CXX=no | |
12664 | ;; | |
12665 | esac | |
12666 | ;; | |
12667 | ||
12668 | cygwin* | mingw* | pw32* | cegcc*) | |
12669 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12670 | # as there is no search path for DLLs. | |
12671 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12672 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
12673 | allow_undefined_flag_CXX=unsupported | |
12674 | always_export_symbols_CXX=no | |
12675 | enable_shared_with_static_runtimes_CXX=yes | |
12676 | ||
12677 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12678 | 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' | |
12679 | # If the export-symbols file already is a .def file (1st line | |
12680 | # is EXPORTS), use it as is; otherwise, prepend... | |
12681 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12682 | cp $export_symbols $output_objdir/$soname.def; | |
12683 | else | |
12684 | echo EXPORTS > $output_objdir/$soname.def; | |
12685 | cat $export_symbols >> $output_objdir/$soname.def; | |
12686 | fi~ | |
12687 | $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' | |
12688 | else | |
12689 | ld_shlibs_CXX=no | |
12690 | fi | |
12691 | ;; | |
12692 | darwin* | rhapsody*) | |
12693 | ||
12694 | ||
12695 | archive_cmds_need_lc_CXX=no | |
12696 | hardcode_direct_CXX=no | |
12697 | hardcode_automatic_CXX=yes | |
12698 | hardcode_shlibpath_var_CXX=unsupported | |
12699 | if test "$lt_cv_ld_force_load" = "yes"; then | |
12700 | 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\"`' | |
12701 | else | |
12702 | whole_archive_flag_spec_CXX='' | |
12703 | fi | |
12704 | link_all_deplibs_CXX=yes | |
12705 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
12706 | case $cc_basename in | |
12707 | ifort*) _lt_dar_can_shared=yes ;; | |
12708 | *) _lt_dar_can_shared=$GCC ;; | |
12709 | esac | |
12710 | if test "$_lt_dar_can_shared" = "yes"; then | |
12711 | output_verbose_link_cmd=func_echo_all | |
12712 | 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}" | |
12713 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
12714 | 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}" | |
12715 | 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}" | |
12716 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
12717 | 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}" | |
12718 | 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}" | |
12719 | fi | |
12720 | ||
12721 | else | |
12722 | ld_shlibs_CXX=no | |
12723 | fi | |
12724 | ||
12725 | ;; | |
12726 | ||
12727 | dgux*) | |
12728 | case $cc_basename in | |
12729 | ec++*) | |
12730 | # FIXME: insert proper C++ library support | |
12731 | ld_shlibs_CXX=no | |
12732 | ;; | |
12733 | ghcx*) | |
12734 | # Green Hills C++ Compiler | |
12735 | # FIXME: insert proper C++ library support | |
12736 | ld_shlibs_CXX=no | |
12737 | ;; | |
12738 | *) | |
12739 | # FIXME: insert proper C++ library support | |
12740 | ld_shlibs_CXX=no | |
12741 | ;; | |
12742 | esac | |
12743 | ;; | |
12744 | ||
6d2920c8 | 12745 | freebsd2.*) |
3cb62297 L |
12746 | # C++ shared libraries reported to be fairly broken before |
12747 | # switch to ELF | |
12748 | ld_shlibs_CXX=no | |
12749 | ;; | |
12750 | ||
12751 | freebsd-elf*) | |
12752 | archive_cmds_need_lc_CXX=no | |
12753 | ;; | |
12754 | ||
12755 | freebsd* | dragonfly*) | |
12756 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
12757 | # conventions | |
12758 | ld_shlibs_CXX=yes | |
12759 | ;; | |
12760 | ||
12761 | gnu*) | |
12762 | ;; | |
12763 | ||
12764 | haiku*) | |
12765 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12766 | link_all_deplibs_CXX=yes | |
12767 | ;; | |
12768 | ||
12769 | hpux9*) | |
12770 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12771 | hardcode_libdir_separator_CXX=: | |
12772 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12773 | hardcode_direct_CXX=yes | |
12774 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12775 | # but as the default | |
12776 | # location of the library. | |
12777 | ||
12778 | case $cc_basename in | |
12779 | CC*) | |
12780 | # FIXME: insert proper C++ library support | |
12781 | ld_shlibs_CXX=no | |
12782 | ;; | |
12783 | aCC*) | |
12784 | 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' | |
12785 | # Commands to make compiler produce verbose output that lists | |
12786 | # what "hidden" libraries, object files and flags are used when | |
12787 | # linking a shared library. | |
12788 | # | |
12789 | # There doesn't appear to be a way to prevent this compiler from | |
12790 | # explicitly linking system object files so we need to strip them | |
12791 | # from the output so that they don't get included in the library | |
12792 | # dependencies. | |
12793 | 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"' | |
12794 | ;; | |
12795 | *) | |
12796 | if test "$GXX" = yes; then | |
12797 | 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' | |
12798 | else | |
12799 | # FIXME: insert proper C++ library support | |
12800 | ld_shlibs_CXX=no | |
12801 | fi | |
12802 | ;; | |
12803 | esac | |
12804 | ;; | |
12805 | ||
12806 | hpux10*|hpux11*) | |
12807 | if test $with_gnu_ld = no; then | |
12808 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12809 | hardcode_libdir_separator_CXX=: | |
12810 | ||
12811 | case $host_cpu in | |
12812 | hppa*64*|ia64*) | |
12813 | ;; | |
12814 | *) | |
12815 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12816 | ;; | |
12817 | esac | |
12818 | fi | |
12819 | case $host_cpu in | |
12820 | hppa*64*|ia64*) | |
12821 | hardcode_direct_CXX=no | |
12822 | hardcode_shlibpath_var_CXX=no | |
12823 | ;; | |
12824 | *) | |
12825 | hardcode_direct_CXX=yes | |
12826 | hardcode_direct_absolute_CXX=yes | |
12827 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12828 | # but as the default | |
12829 | # location of the library. | |
12830 | ;; | |
12831 | esac | |
12832 | ||
12833 | case $cc_basename in | |
12834 | CC*) | |
12835 | # FIXME: insert proper C++ library support | |
12836 | ld_shlibs_CXX=no | |
12837 | ;; | |
12838 | aCC*) | |
12839 | case $host_cpu in | |
12840 | hppa*64*) | |
12841 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12842 | ;; | |
12843 | ia64*) | |
12844 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12845 | ;; | |
12846 | *) | |
12847 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12848 | ;; | |
12849 | esac | |
12850 | # Commands to make compiler produce verbose output that lists | |
12851 | # what "hidden" libraries, object files and flags are used when | |
12852 | # linking a shared library. | |
12853 | # | |
12854 | # There doesn't appear to be a way to prevent this compiler from | |
12855 | # explicitly linking system object files so we need to strip them | |
12856 | # from the output so that they don't get included in the library | |
12857 | # dependencies. | |
12858 | 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"' | |
12859 | ;; | |
12860 | *) | |
12861 | if test "$GXX" = yes; then | |
12862 | if test $with_gnu_ld = no; then | |
12863 | case $host_cpu in | |
12864 | hppa*64*) | |
12865 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12866 | ;; | |
12867 | ia64*) | |
12868 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12869 | ;; | |
12870 | *) | |
12871 | 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' | |
12872 | ;; | |
12873 | esac | |
12874 | fi | |
12875 | else | |
12876 | # FIXME: insert proper C++ library support | |
12877 | ld_shlibs_CXX=no | |
12878 | fi | |
12879 | ;; | |
12880 | esac | |
12881 | ;; | |
12882 | ||
12883 | interix[3-9]*) | |
12884 | hardcode_direct_CXX=no | |
12885 | hardcode_shlibpath_var_CXX=no | |
12886 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12887 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12888 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12889 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12890 | # default) and relocated if they conflict, which is a slow very memory | |
12891 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12892 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12893 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12894 | 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' | |
12895 | 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' | |
12896 | ;; | |
12897 | irix5* | irix6*) | |
12898 | case $cc_basename in | |
12899 | CC*) | |
12900 | # SGI C++ | |
12901 | 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' | |
12902 | ||
12903 | # Archives containing C++ object files must be created using | |
12904 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12905 | # necessary to make sure instantiated templates are included | |
12906 | # in the archive. | |
12907 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12908 | ;; | |
12909 | *) | |
12910 | if test "$GXX" = yes; then | |
12911 | if test "$with_gnu_ld" = no; then | |
12912 | 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' | |
12913 | else | |
12914 | 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' | |
12915 | fi | |
12916 | fi | |
12917 | link_all_deplibs_CXX=yes | |
12918 | ;; | |
12919 | esac | |
12920 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12921 | hardcode_libdir_separator_CXX=: | |
12922 | inherit_rpath_CXX=yes | |
12923 | ;; | |
12924 | ||
12925 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12926 | case $cc_basename in | |
12927 | KCC*) | |
12928 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12929 | ||
12930 | # KCC will only create a shared library if the output file | |
12931 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12932 | # to its proper name (with version) after linking. | |
12933 | 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' | |
12934 | 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' | |
12935 | # Commands to make compiler produce verbose output that lists | |
12936 | # what "hidden" libraries, object files and flags are used when | |
12937 | # linking a shared library. | |
12938 | # | |
12939 | # There doesn't appear to be a way to prevent this compiler from | |
12940 | # explicitly linking system object files so we need to strip them | |
12941 | # from the output so that they don't get included in the library | |
12942 | # dependencies. | |
12943 | 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"' | |
12944 | ||
12945 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12946 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12947 | ||
12948 | # Archives containing C++ object files must be created using | |
12949 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12950 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12951 | ;; | |
12952 | icpc* | ecpc* ) | |
12953 | # Intel C++ | |
12954 | with_gnu_ld=yes | |
12955 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12956 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12957 | # earlier do not add the objects themselves. | |
12958 | case `$CC -V 2>&1` in | |
12959 | *"Version 7."*) | |
12960 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12961 | 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' | |
12962 | ;; | |
12963 | *) # Version 8.0 or newer | |
12964 | tmp_idyn= | |
12965 | case $host_cpu in | |
12966 | ia64*) tmp_idyn=' -i_dynamic';; | |
12967 | esac | |
12968 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12969 | 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' | |
12970 | ;; | |
12971 | esac | |
12972 | archive_cmds_need_lc_CXX=no | |
12973 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12974 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12975 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12976 | ;; | |
12977 | pgCC* | pgcpp*) | |
12978 | # Portland Group C++ compiler | |
12979 | case `$CC -V` in | |
12980 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
12981 | prelink_cmds_CXX='tpldir=Template.dir~ | |
12982 | rm -rf $tpldir~ | |
12983 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12984 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
12985 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
12986 | rm -rf $tpldir~ | |
12987 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12988 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
12989 | $RANLIB $oldlib' | |
12990 | archive_cmds_CXX='tpldir=Template.dir~ | |
12991 | rm -rf $tpldir~ | |
12992 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12993 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12994 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12995 | rm -rf $tpldir~ | |
12996 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12997 | $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' | |
12998 | ;; | |
12999 | *) # Version 6 and above use weak symbols | |
13000 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13001 | 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' | |
13002 | ;; | |
13003 | esac | |
13004 | ||
13005 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13006 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13007 | 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' | |
13008 | ;; | |
13009 | cxx*) | |
13010 | # Compaq C++ | |
13011 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13012 | 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' | |
13013 | ||
13014 | runpath_var=LD_RUN_PATH | |
13015 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13016 | hardcode_libdir_separator_CXX=: | |
13017 | ||
13018 | # Commands to make compiler produce verbose output that lists | |
13019 | # what "hidden" libraries, object files and flags are used when | |
13020 | # linking a shared library. | |
13021 | # | |
13022 | # There doesn't appear to be a way to prevent this compiler from | |
13023 | # explicitly linking system object files so we need to strip them | |
13024 | # from the output so that they don't get included in the library | |
13025 | # dependencies. | |
13026 | 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' | |
13027 | ;; | |
13028 | xl* | mpixl* | bgxl*) | |
13029 | # IBM XL 8.0 on PPC, with GNU ld | |
13030 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13031 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13032 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13033 | if test "x$supports_anon_versioning" = xyes; then | |
13034 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13035 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13036 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13037 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13038 | fi | |
13039 | ;; | |
13040 | *) | |
13041 | case `$CC -V 2>&1 | sed 5q` in | |
13042 | *Sun\ C*) | |
13043 | # Sun C++ 5.9 | |
13044 | no_undefined_flag_CXX=' -zdefs' | |
13045 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13046 | 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' | |
13047 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13048 | 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' | |
13049 | compiler_needs_object_CXX=yes | |
13050 | ||
13051 | # Not sure whether something based on | |
13052 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13053 | # would be better. | |
13054 | output_verbose_link_cmd='func_echo_all' | |
13055 | ||
13056 | # Archives containing C++ object files must be created using | |
13057 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13058 | # necessary to make sure instantiated templates are included | |
13059 | # in the archive. | |
13060 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13061 | ;; | |
13062 | esac | |
13063 | ;; | |
13064 | esac | |
13065 | ;; | |
13066 | ||
13067 | lynxos*) | |
13068 | # FIXME: insert proper C++ library support | |
13069 | ld_shlibs_CXX=no | |
13070 | ;; | |
13071 | ||
13072 | m88k*) | |
13073 | # FIXME: insert proper C++ library support | |
13074 | ld_shlibs_CXX=no | |
13075 | ;; | |
13076 | ||
13077 | mvs*) | |
13078 | case $cc_basename in | |
13079 | cxx*) | |
13080 | # FIXME: insert proper C++ library support | |
13081 | ld_shlibs_CXX=no | |
13082 | ;; | |
13083 | *) | |
13084 | # FIXME: insert proper C++ library support | |
13085 | ld_shlibs_CXX=no | |
13086 | ;; | |
13087 | esac | |
13088 | ;; | |
13089 | ||
13090 | netbsd*) | |
13091 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13092 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13093 | wlarc= | |
13094 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13095 | hardcode_direct_CXX=yes | |
13096 | hardcode_shlibpath_var_CXX=no | |
13097 | fi | |
13098 | # Workaround some broken pre-1.5 toolchains | |
13099 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13100 | ;; | |
13101 | ||
13102 | *nto* | *qnx*) | |
13103 | ld_shlibs_CXX=yes | |
13104 | ;; | |
13105 | ||
13106 | openbsd2*) | |
13107 | # C++ shared libraries are fairly broken | |
13108 | ld_shlibs_CXX=no | |
13109 | ;; | |
13110 | ||
13111 | openbsd*) | |
13112 | if test -f /usr/libexec/ld.so; then | |
13113 | hardcode_direct_CXX=yes | |
13114 | hardcode_shlibpath_var_CXX=no | |
13115 | hardcode_direct_absolute_CXX=yes | |
13116 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13117 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13118 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13119 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13120 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13121 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13122 | fi | |
13123 | output_verbose_link_cmd=func_echo_all | |
13124 | else | |
13125 | ld_shlibs_CXX=no | |
13126 | fi | |
13127 | ;; | |
13128 | ||
13129 | osf3* | osf4* | osf5*) | |
13130 | case $cc_basename in | |
13131 | KCC*) | |
13132 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13133 | ||
13134 | # KCC will only create a shared library if the output file | |
13135 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13136 | # to its proper name (with version) after linking. | |
13137 | 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' | |
13138 | ||
13139 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13140 | hardcode_libdir_separator_CXX=: | |
13141 | ||
13142 | # Archives containing C++ object files must be created using | |
13143 | # the KAI C++ compiler. | |
13144 | case $host in | |
13145 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13146 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13147 | esac | |
13148 | ;; | |
13149 | RCC*) | |
13150 | # Rational C++ 2.4.1 | |
13151 | # FIXME: insert proper C++ library support | |
13152 | ld_shlibs_CXX=no | |
13153 | ;; | |
13154 | cxx*) | |
13155 | case $host in | |
13156 | osf3*) | |
13157 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13158 | 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' | |
13159 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13160 | ;; | |
13161 | *) | |
13162 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13163 | 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' | |
13164 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13165 | echo "-hidden">> $lib.exp~ | |
13166 | $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~ | |
13167 | $RM $lib.exp' | |
13168 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13169 | ;; | |
13170 | esac | |
13171 | ||
13172 | hardcode_libdir_separator_CXX=: | |
13173 | ||
13174 | # Commands to make compiler produce verbose output that lists | |
13175 | # what "hidden" libraries, object files and flags are used when | |
13176 | # linking a shared library. | |
13177 | # | |
13178 | # There doesn't appear to be a way to prevent this compiler from | |
13179 | # explicitly linking system object files so we need to strip them | |
13180 | # from the output so that they don't get included in the library | |
13181 | # dependencies. | |
13182 | 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"' | |
13183 | ;; | |
13184 | *) | |
13185 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13186 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13187 | case $host in | |
13188 | osf3*) | |
13189 | 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' | |
13190 | ;; | |
13191 | *) | |
13192 | 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' | |
13193 | ;; | |
13194 | esac | |
13195 | ||
13196 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13197 | hardcode_libdir_separator_CXX=: | |
13198 | ||
13199 | # Commands to make compiler produce verbose output that lists | |
13200 | # what "hidden" libraries, object files and flags are used when | |
13201 | # linking a shared library. | |
13202 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13203 | ||
13204 | else | |
13205 | # FIXME: insert proper C++ library support | |
13206 | ld_shlibs_CXX=no | |
13207 | fi | |
13208 | ;; | |
13209 | esac | |
13210 | ;; | |
13211 | ||
13212 | psos*) | |
13213 | # FIXME: insert proper C++ library support | |
13214 | ld_shlibs_CXX=no | |
13215 | ;; | |
13216 | ||
13217 | sunos4*) | |
13218 | case $cc_basename in | |
13219 | CC*) | |
13220 | # Sun C++ 4.x | |
13221 | # FIXME: insert proper C++ library support | |
13222 | ld_shlibs_CXX=no | |
13223 | ;; | |
13224 | lcc*) | |
13225 | # Lucid | |
13226 | # FIXME: insert proper C++ library support | |
13227 | ld_shlibs_CXX=no | |
13228 | ;; | |
13229 | *) | |
13230 | # FIXME: insert proper C++ library support | |
13231 | ld_shlibs_CXX=no | |
13232 | ;; | |
13233 | esac | |
13234 | ;; | |
13235 | ||
13236 | solaris*) | |
13237 | case $cc_basename in | |
13238 | CC*) | |
13239 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13240 | archive_cmds_need_lc_CXX=yes | |
13241 | no_undefined_flag_CXX=' -zdefs' | |
13242 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13243 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13244 | $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' | |
13245 | ||
13246 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13247 | hardcode_shlibpath_var_CXX=no | |
13248 | case $host_os in | |
13249 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13250 | *) | |
13251 | # The compiler driver will combine and reorder linker options, | |
13252 | # but understands `-z linker_flag'. | |
13253 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13254 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13255 | ;; | |
13256 | esac | |
13257 | link_all_deplibs_CXX=yes | |
13258 | ||
13259 | output_verbose_link_cmd='func_echo_all' | |
13260 | ||
13261 | # Archives containing C++ object files must be created using | |
13262 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13263 | # necessary to make sure instantiated templates are included | |
13264 | # in the archive. | |
13265 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13266 | ;; | |
13267 | gcx*) | |
13268 | # Green Hills C++ Compiler | |
13269 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13270 | ||
13271 | # The C++ compiler must be used to create the archive. | |
13272 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13273 | ;; | |
13274 | *) | |
13275 | # GNU C++ compiler with Solaris linker | |
13276 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13277 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13278 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13279 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13280 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13281 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13282 | ||
13283 | # Commands to make compiler produce verbose output that lists | |
13284 | # what "hidden" libraries, object files and flags are used when | |
13285 | # linking a shared library. | |
13286 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13287 | else | |
13288 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13289 | # platform. | |
13290 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13291 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13292 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13293 | ||
13294 | # Commands to make compiler produce verbose output that lists | |
13295 | # what "hidden" libraries, object files and flags are used when | |
13296 | # linking a shared library. | |
13297 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13298 | fi | |
13299 | ||
13300 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13301 | case $host_os in | |
13302 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13303 | *) | |
13304 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13305 | ;; | |
13306 | esac | |
13307 | fi | |
13308 | ;; | |
13309 | esac | |
13310 | ;; | |
13311 | ||
13312 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13313 | no_undefined_flag_CXX='${wl}-z,text' | |
13314 | archive_cmds_need_lc_CXX=no | |
13315 | hardcode_shlibpath_var_CXX=no | |
13316 | runpath_var='LD_RUN_PATH' | |
13317 | ||
13318 | case $cc_basename in | |
13319 | CC*) | |
13320 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13321 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13322 | ;; | |
13323 | *) | |
13324 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13325 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13326 | ;; | |
13327 | esac | |
13328 | ;; | |
13329 | ||
13330 | sysv5* | sco3.2v5* | sco5v6*) | |
13331 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13332 | # link with -lc, and that would cause any symbols used from libc to | |
13333 | # always be unresolved, which means just about no library would | |
13334 | # ever link correctly. If we're not using GNU ld we use -z text | |
13335 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13336 | # as -z defs. | |
13337 | no_undefined_flag_CXX='${wl}-z,text' | |
13338 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13339 | archive_cmds_need_lc_CXX=no | |
13340 | hardcode_shlibpath_var_CXX=no | |
13341 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13342 | hardcode_libdir_separator_CXX=':' | |
13343 | link_all_deplibs_CXX=yes | |
13344 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13345 | runpath_var='LD_RUN_PATH' | |
13346 | ||
13347 | case $cc_basename in | |
13348 | CC*) | |
13349 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13350 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13351 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13352 | '"$old_archive_cmds_CXX" | |
13353 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13354 | '"$reload_cmds_CXX" | |
13355 | ;; | |
13356 | *) | |
13357 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13358 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13359 | ;; | |
13360 | esac | |
13361 | ;; | |
13362 | ||
13363 | tandem*) | |
13364 | case $cc_basename in | |
13365 | NCC*) | |
13366 | # NonStop-UX NCC 3.20 | |
13367 | # FIXME: insert proper C++ library support | |
13368 | ld_shlibs_CXX=no | |
13369 | ;; | |
13370 | *) | |
13371 | # FIXME: insert proper C++ library support | |
13372 | ld_shlibs_CXX=no | |
13373 | ;; | |
13374 | esac | |
13375 | ;; | |
13376 | ||
13377 | vxworks*) | |
13378 | # FIXME: insert proper C++ library support | |
13379 | ld_shlibs_CXX=no | |
13380 | ;; | |
13381 | ||
13382 | *) | |
13383 | # FIXME: insert proper C++ library support | |
13384 | ld_shlibs_CXX=no | |
13385 | ;; | |
13386 | esac | |
13387 | ||
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13389 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13390 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13391 | ||
13392 | GCC_CXX="$GXX" | |
13393 | LD_CXX="$LD" | |
13394 | ||
13395 | ## CAVEAT EMPTOR: | |
13396 | ## There is no encapsulation within the following macros, do not change | |
13397 | ## the running order or otherwise move them around unless you know exactly | |
13398 | ## what you are doing... | |
13399 | # Dependencies to place before and after the object being linked: | |
13400 | predep_objects_CXX= | |
13401 | postdep_objects_CXX= | |
13402 | predeps_CXX= | |
13403 | postdeps_CXX= | |
13404 | compiler_lib_search_path_CXX= | |
13405 | ||
13406 | cat > conftest.$ac_ext <<_LT_EOF | |
13407 | class Foo | |
13408 | { | |
13409 | public: | |
13410 | Foo (void) { a = 0; } | |
13411 | private: | |
13412 | int a; | |
13413 | }; | |
13414 | _LT_EOF | |
13415 | ||
13416 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13417 | (eval $ac_compile) 2>&5 | |
13418 | ac_status=$? | |
13419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13420 | test $ac_status = 0; }; then | |
13421 | # Parse the compiler output and extract the necessary | |
13422 | # objects, libraries and library flags. | |
13423 | ||
13424 | # Sentinel used to keep track of whether or not we are before | |
13425 | # the conftest object file. | |
13426 | pre_test_object_deps_done=no | |
13427 | ||
13428 | for p in `eval "$output_verbose_link_cmd"`; do | |
13429 | case $p in | |
13430 | ||
13431 | -L* | -R* | -l*) | |
13432 | # Some compilers place space between "-{L,R}" and the path. | |
13433 | # Remove the space. | |
13434 | if test $p = "-L" || | |
13435 | test $p = "-R"; then | |
13436 | prev=$p | |
13437 | continue | |
13438 | else | |
13439 | prev= | |
13440 | fi | |
13441 | ||
13442 | if test "$pre_test_object_deps_done" = no; then | |
13443 | case $p in | |
13444 | -L* | -R*) | |
13445 | # Internal compiler library paths should come after those | |
13446 | # provided the user. The postdeps already come after the | |
13447 | # user supplied libs so there is no need to process them. | |
13448 | if test -z "$compiler_lib_search_path_CXX"; then | |
13449 | compiler_lib_search_path_CXX="${prev}${p}" | |
13450 | else | |
13451 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13452 | fi | |
13453 | ;; | |
13454 | # The "-l" case would never come before the object being | |
13455 | # linked, so don't bother handling this case. | |
13456 | esac | |
13457 | else | |
13458 | if test -z "$postdeps_CXX"; then | |
13459 | postdeps_CXX="${prev}${p}" | |
13460 | else | |
13461 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13462 | fi | |
13463 | fi | |
13464 | ;; | |
13465 | ||
13466 | *.$objext) | |
13467 | # This assumes that the test object file only shows up | |
13468 | # once in the compiler output. | |
13469 | if test "$p" = "conftest.$objext"; then | |
13470 | pre_test_object_deps_done=yes | |
13471 | continue | |
13472 | fi | |
13473 | ||
13474 | if test "$pre_test_object_deps_done" = no; then | |
13475 | if test -z "$predep_objects_CXX"; then | |
13476 | predep_objects_CXX="$p" | |
13477 | else | |
13478 | predep_objects_CXX="$predep_objects_CXX $p" | |
13479 | fi | |
13480 | else | |
13481 | if test -z "$postdep_objects_CXX"; then | |
13482 | postdep_objects_CXX="$p" | |
13483 | else | |
13484 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13485 | fi | |
13486 | fi | |
13487 | ;; | |
13488 | ||
13489 | *) ;; # Ignore the rest. | |
13490 | ||
13491 | esac | |
13492 | done | |
13493 | ||
13494 | # Clean up. | |
13495 | rm -f a.out a.exe | |
13496 | else | |
13497 | echo "libtool.m4: error: problem compiling CXX test program" | |
13498 | fi | |
13499 | ||
13500 | $RM -f confest.$objext | |
13501 | ||
13502 | # PORTME: override above test on systems where it is broken | |
13503 | case $host_os in | |
13504 | interix[3-9]*) | |
13505 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13506 | # hack all around it, let's just trust "g++" to DTRT. | |
13507 | predep_objects_CXX= | |
13508 | postdep_objects_CXX= | |
13509 | postdeps_CXX= | |
13510 | ;; | |
13511 | ||
13512 | linux*) | |
13513 | case `$CC -V 2>&1 | sed 5q` in | |
13514 | *Sun\ C*) | |
13515 | # Sun C++ 5.9 | |
13516 | ||
13517 | # The more standards-conforming stlport4 library is | |
13518 | # incompatible with the Cstd library. Avoid specifying | |
13519 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13520 | # -library=stlport4 depends on it. | |
13521 | case " $CXX $CXXFLAGS " in | |
13522 | *" -library=stlport4 "*) | |
13523 | solaris_use_stlport4=yes | |
13524 | ;; | |
13525 | esac | |
13526 | ||
13527 | if test "$solaris_use_stlport4" != yes; then | |
13528 | postdeps_CXX='-library=Cstd -library=Crun' | |
13529 | fi | |
13530 | ;; | |
13531 | esac | |
13532 | ;; | |
13533 | ||
13534 | solaris*) | |
13535 | case $cc_basename in | |
13536 | CC*) | |
13537 | # The more standards-conforming stlport4 library is | |
13538 | # incompatible with the Cstd library. Avoid specifying | |
13539 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13540 | # -library=stlport4 depends on it. | |
13541 | case " $CXX $CXXFLAGS " in | |
13542 | *" -library=stlport4 "*) | |
13543 | solaris_use_stlport4=yes | |
13544 | ;; | |
13545 | esac | |
13546 | ||
13547 | # Adding this requires a known-good setup of shared libraries for | |
13548 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13549 | # archive will be linked into the output, leading to subtle bugs. | |
13550 | if test "$solaris_use_stlport4" != yes; then | |
13551 | postdeps_CXX='-library=Cstd -library=Crun' | |
13552 | fi | |
13553 | ;; | |
13554 | esac | |
13555 | ;; | |
13556 | esac | |
13557 | ||
13558 | ||
13559 | case " $postdeps_CXX " in | |
13560 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13561 | esac | |
13562 | compiler_lib_search_dirs_CXX= | |
13563 | if test -n "${compiler_lib_search_path_CXX}"; then | |
13564 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13565 | fi | |
13566 | ||
13567 | ||
13568 | ||
13569 | ||
13570 | ||
13571 | ||
13572 | ||
13573 | ||
13574 | ||
13575 | ||
13576 | ||
13577 | ||
13578 | ||
13579 | ||
13580 | ||
13581 | ||
13582 | ||
13583 | ||
13584 | ||
13585 | ||
13586 | ||
13587 | ||
13588 | ||
13589 | ||
13590 | ||
13591 | ||
13592 | ||
13593 | ||
13594 | ||
13595 | ||
13596 | ||
13597 | lt_prog_compiler_wl_CXX= | |
13598 | lt_prog_compiler_pic_CXX= | |
13599 | lt_prog_compiler_static_CXX= | |
13600 | ||
13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
13602 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
13603 | ||
13604 | # C++ specific cases for pic, static, wl, etc. | |
13605 | if test "$GXX" = yes; then | |
13606 | lt_prog_compiler_wl_CXX='-Wl,' | |
13607 | lt_prog_compiler_static_CXX='-static' | |
13608 | ||
13609 | case $host_os in | |
13610 | aix*) | |
13611 | # All AIX code is PIC. | |
13612 | if test "$host_cpu" = ia64; then | |
13613 | # AIX 5 now supports IA64 processor | |
13614 | lt_prog_compiler_static_CXX='-Bstatic' | |
13615 | fi | |
52204357 | 13616 | lt_prog_compiler_pic_CXX='-fPIC' |
3cb62297 L |
13617 | ;; |
13618 | ||
13619 | amigaos*) | |
13620 | case $host_cpu in | |
13621 | powerpc) | |
13622 | # see comment about AmigaOS4 .so support | |
13623 | lt_prog_compiler_pic_CXX='-fPIC' | |
13624 | ;; | |
13625 | m68k) | |
13626 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13627 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13628 | # like `-m68040'. | |
13629 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13630 | ;; | |
13631 | esac | |
13632 | ;; | |
13633 | ||
13634 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13635 | # PIC is the default for these OSes. | |
13636 | ;; | |
13637 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13638 | # This hack is so that the source file can tell whether it is being | |
13639 | # built for inclusion in a dll (and should export symbols for example). | |
13640 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13641 | # (--disable-auto-import) libraries | |
13642 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13643 | ;; | |
13644 | darwin* | rhapsody*) | |
13645 | # PIC is the default on this platform | |
13646 | # Common symbols not allowed in MH_DYLIB files | |
13647 | lt_prog_compiler_pic_CXX='-fno-common' | |
13648 | ;; | |
13649 | *djgpp*) | |
13650 | # DJGPP does not support shared libraries at all | |
13651 | lt_prog_compiler_pic_CXX= | |
13652 | ;; | |
13653 | haiku*) | |
13654 | # PIC is the default for Haiku. | |
13655 | # The "-static" flag exists, but is broken. | |
13656 | lt_prog_compiler_static_CXX= | |
13657 | ;; | |
13658 | interix[3-9]*) | |
13659 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13660 | # Instead, we relocate shared libraries at runtime. | |
13661 | ;; | |
13662 | sysv4*MP*) | |
13663 | if test -d /usr/nec; then | |
13664 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13665 | fi | |
13666 | ;; | |
13667 | hpux*) | |
13668 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
13669 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13670 | # sets the default TLS model and affects inlining. | |
13671 | case $host_cpu in | |
13672 | hppa*64*) | |
13673 | ;; | |
13674 | *) | |
13675 | lt_prog_compiler_pic_CXX='-fPIC' | |
13676 | ;; | |
13677 | esac | |
13678 | ;; | |
13679 | *qnx* | *nto*) | |
13680 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13681 | # it will coredump. | |
13682 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13683 | ;; | |
13684 | *) | |
13685 | lt_prog_compiler_pic_CXX='-fPIC' | |
13686 | ;; | |
13687 | esac | |
13688 | else | |
13689 | case $host_os in | |
13690 | aix[4-9]*) | |
13691 | # All AIX code is PIC. | |
13692 | if test "$host_cpu" = ia64; then | |
13693 | # AIX 5 now supports IA64 processor | |
13694 | lt_prog_compiler_static_CXX='-Bstatic' | |
13695 | else | |
13696 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
13697 | fi | |
13698 | ;; | |
13699 | chorus*) | |
13700 | case $cc_basename in | |
13701 | cxch68*) | |
13702 | # Green Hills C++ Compiler | |
13703 | # _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" | |
13704 | ;; | |
13705 | esac | |
13706 | ;; | |
13707 | dgux*) | |
13708 | case $cc_basename in | |
13709 | ec++*) | |
13710 | lt_prog_compiler_pic_CXX='-KPIC' | |
13711 | ;; | |
13712 | ghcx*) | |
13713 | # Green Hills C++ Compiler | |
13714 | lt_prog_compiler_pic_CXX='-pic' | |
13715 | ;; | |
13716 | *) | |
13717 | ;; | |
13718 | esac | |
13719 | ;; | |
13720 | freebsd* | dragonfly*) | |
13721 | # FreeBSD uses GNU C++ | |
13722 | ;; | |
13723 | hpux9* | hpux10* | hpux11*) | |
13724 | case $cc_basename in | |
13725 | CC*) | |
13726 | lt_prog_compiler_wl_CXX='-Wl,' | |
13727 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13728 | if test "$host_cpu" != ia64; then | |
13729 | lt_prog_compiler_pic_CXX='+Z' | |
13730 | fi | |
13731 | ;; | |
13732 | aCC*) | |
13733 | lt_prog_compiler_wl_CXX='-Wl,' | |
13734 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13735 | case $host_cpu in | |
13736 | hppa*64*|ia64*) | |
13737 | # +Z the default | |
13738 | ;; | |
13739 | *) | |
13740 | lt_prog_compiler_pic_CXX='+Z' | |
13741 | ;; | |
13742 | esac | |
13743 | ;; | |
13744 | *) | |
13745 | ;; | |
13746 | esac | |
13747 | ;; | |
13748 | interix*) | |
13749 | # This is c89, which is MS Visual C++ (no shared libs) | |
13750 | # Anyone wants to do a port? | |
13751 | ;; | |
13752 | irix5* | irix6* | nonstopux*) | |
13753 | case $cc_basename in | |
13754 | CC*) | |
13755 | lt_prog_compiler_wl_CXX='-Wl,' | |
13756 | lt_prog_compiler_static_CXX='-non_shared' | |
13757 | # CC pic flag -KPIC is the default. | |
13758 | ;; | |
13759 | *) | |
13760 | ;; | |
13761 | esac | |
13762 | ;; | |
13763 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13764 | case $cc_basename in | |
13765 | KCC*) | |
13766 | # KAI C++ Compiler | |
13767 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13768 | lt_prog_compiler_pic_CXX='-fPIC' | |
13769 | ;; | |
13770 | ecpc* ) | |
13771 | # old Intel C++ for x86_64 which still supported -KPIC. | |
13772 | lt_prog_compiler_wl_CXX='-Wl,' | |
13773 | lt_prog_compiler_pic_CXX='-KPIC' | |
13774 | lt_prog_compiler_static_CXX='-static' | |
13775 | ;; | |
13776 | icpc* ) | |
13777 | # Intel C++, used to be incompatible with GCC. | |
13778 | # ICC 10 doesn't accept -KPIC any more. | |
13779 | lt_prog_compiler_wl_CXX='-Wl,' | |
13780 | lt_prog_compiler_pic_CXX='-fPIC' | |
13781 | lt_prog_compiler_static_CXX='-static' | |
13782 | ;; | |
13783 | pgCC* | pgcpp*) | |
13784 | # Portland Group C++ compiler | |
13785 | lt_prog_compiler_wl_CXX='-Wl,' | |
13786 | lt_prog_compiler_pic_CXX='-fpic' | |
13787 | lt_prog_compiler_static_CXX='-Bstatic' | |
13788 | ;; | |
13789 | cxx*) | |
13790 | # Compaq C++ | |
13791 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13792 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13793 | lt_prog_compiler_pic_CXX= | |
13794 | lt_prog_compiler_static_CXX='-non_shared' | |
13795 | ;; | |
13796 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
13797 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
13798 | lt_prog_compiler_wl_CXX='-Wl,' | |
13799 | lt_prog_compiler_pic_CXX='-qpic' | |
13800 | lt_prog_compiler_static_CXX='-qstaticlink' | |
13801 | ;; | |
13802 | *) | |
13803 | case `$CC -V 2>&1 | sed 5q` in | |
13804 | *Sun\ C*) | |
13805 | # Sun C++ 5.9 | |
13806 | lt_prog_compiler_pic_CXX='-KPIC' | |
13807 | lt_prog_compiler_static_CXX='-Bstatic' | |
13808 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13809 | ;; | |
13810 | esac | |
13811 | ;; | |
13812 | esac | |
13813 | ;; | |
13814 | lynxos*) | |
13815 | ;; | |
13816 | m88k*) | |
13817 | ;; | |
13818 | mvs*) | |
13819 | case $cc_basename in | |
13820 | cxx*) | |
13821 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
13822 | ;; | |
13823 | *) | |
13824 | ;; | |
13825 | esac | |
13826 | ;; | |
13827 | netbsd*) | |
13828 | ;; | |
13829 | *qnx* | *nto*) | |
13830 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13831 | # it will coredump. | |
13832 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13833 | ;; | |
13834 | osf3* | osf4* | osf5*) | |
13835 | case $cc_basename in | |
13836 | KCC*) | |
13837 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13838 | ;; | |
13839 | RCC*) | |
13840 | # Rational C++ 2.4.1 | |
13841 | lt_prog_compiler_pic_CXX='-pic' | |
13842 | ;; | |
13843 | cxx*) | |
13844 | # Digital/Compaq C++ | |
13845 | lt_prog_compiler_wl_CXX='-Wl,' | |
13846 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13847 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13848 | lt_prog_compiler_pic_CXX= | |
13849 | lt_prog_compiler_static_CXX='-non_shared' | |
13850 | ;; | |
13851 | *) | |
13852 | ;; | |
13853 | esac | |
13854 | ;; | |
13855 | psos*) | |
13856 | ;; | |
13857 | solaris*) | |
13858 | case $cc_basename in | |
13859 | CC*) | |
13860 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13861 | lt_prog_compiler_pic_CXX='-KPIC' | |
13862 | lt_prog_compiler_static_CXX='-Bstatic' | |
13863 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13864 | ;; | |
13865 | gcx*) | |
13866 | # Green Hills C++ Compiler | |
13867 | lt_prog_compiler_pic_CXX='-PIC' | |
13868 | ;; | |
13869 | *) | |
13870 | ;; | |
13871 | esac | |
13872 | ;; | |
13873 | sunos4*) | |
13874 | case $cc_basename in | |
13875 | CC*) | |
13876 | # Sun C++ 4.x | |
13877 | lt_prog_compiler_pic_CXX='-pic' | |
13878 | lt_prog_compiler_static_CXX='-Bstatic' | |
13879 | ;; | |
13880 | lcc*) | |
13881 | # Lucid | |
13882 | lt_prog_compiler_pic_CXX='-pic' | |
13883 | ;; | |
13884 | *) | |
13885 | ;; | |
13886 | esac | |
13887 | ;; | |
13888 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13889 | case $cc_basename in | |
13890 | CC*) | |
13891 | lt_prog_compiler_wl_CXX='-Wl,' | |
13892 | lt_prog_compiler_pic_CXX='-KPIC' | |
13893 | lt_prog_compiler_static_CXX='-Bstatic' | |
13894 | ;; | |
13895 | esac | |
13896 | ;; | |
13897 | tandem*) | |
13898 | case $cc_basename in | |
13899 | NCC*) | |
13900 | # NonStop-UX NCC 3.20 | |
13901 | lt_prog_compiler_pic_CXX='-KPIC' | |
13902 | ;; | |
13903 | *) | |
13904 | ;; | |
13905 | esac | |
13906 | ;; | |
13907 | vxworks*) | |
13908 | ;; | |
13909 | *) | |
13910 | lt_prog_compiler_can_build_shared_CXX=no | |
13911 | ;; | |
13912 | esac | |
13913 | fi | |
13914 | ||
13915 | case $host_os in | |
13916 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13917 | *djgpp*) | |
13918 | lt_prog_compiler_pic_CXX= | |
13919 | ;; | |
13920 | *) | |
13921 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13922 | ;; | |
13923 | esac | |
13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
13925 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
13926 | ||
13927 | ||
13928 | ||
13929 | # | |
13930 | # Check to make sure the PIC flag actually works. | |
13931 | # | |
13932 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13934 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
13935 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
13936 | $as_echo_n "(cached) " >&6 | |
13937 | else | |
13938 | lt_cv_prog_compiler_pic_works_CXX=no | |
13939 | ac_outfile=conftest.$ac_objext | |
13940 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13941 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13942 | # Insert the option either (1) after the last *FLAGS variable, or | |
13943 | # (2) before a word containing "conftest.", or (3) at the end. | |
13944 | # Note that $ac_compile itself does not contain backslashes and begins | |
13945 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13946 | # The option is referenced via a variable to avoid confusing sed. | |
13947 | lt_compile=`echo "$ac_compile" | $SED \ | |
13948 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13949 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13950 | -e 's:$: $lt_compiler_flag:'` | |
13951 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
13952 | (eval "$lt_compile" 2>conftest.err) | |
13953 | ac_status=$? | |
13954 | cat conftest.err >&5 | |
13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13956 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
13957 | # The compiler can only warn and ignore the option if not recognized | |
13958 | # So say no if there are warnings other than the usual output. | |
13959 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
13960 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13961 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13962 | lt_cv_prog_compiler_pic_works_CXX=yes | |
13963 | fi | |
13964 | fi | |
13965 | $RM conftest* | |
13966 | ||
13967 | fi | |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
13969 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
13970 | ||
13971 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
13972 | case $lt_prog_compiler_pic_CXX in | |
13973 | "" | " "*) ;; | |
13974 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13975 | esac | |
13976 | else | |
13977 | lt_prog_compiler_pic_CXX= | |
13978 | lt_prog_compiler_can_build_shared_CXX=no | |
13979 | fi | |
13980 | ||
13981 | fi | |
13982 | ||
13983 | ||
13984 | ||
13985 | # | |
13986 | # Check to make sure the static flag actually works. | |
13987 | # | |
13988 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13990 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13991 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
13992 | $as_echo_n "(cached) " >&6 | |
13993 | else | |
13994 | lt_cv_prog_compiler_static_works_CXX=no | |
13995 | save_LDFLAGS="$LDFLAGS" | |
13996 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13997 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13998 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13999 | # The linker can only warn and ignore the option if not recognized | |
14000 | # So say no if there are warnings | |
14001 | if test -s conftest.err; then | |
14002 | # Append any errors to the config.log. | |
14003 | cat conftest.err 1>&5 | |
14004 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14005 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14006 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14007 | lt_cv_prog_compiler_static_works_CXX=yes | |
14008 | fi | |
14009 | else | |
14010 | lt_cv_prog_compiler_static_works_CXX=yes | |
14011 | fi | |
14012 | fi | |
14013 | $RM -r conftest* | |
14014 | LDFLAGS="$save_LDFLAGS" | |
14015 | ||
14016 | fi | |
14017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14018 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14019 | ||
14020 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14021 | : | |
14022 | else | |
14023 | lt_prog_compiler_static_CXX= | |
14024 | fi | |
14025 | ||
14026 | ||
14027 | ||
14028 | ||
14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14030 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14031 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14032 | $as_echo_n "(cached) " >&6 | |
14033 | else | |
14034 | lt_cv_prog_compiler_c_o_CXX=no | |
14035 | $RM -r conftest 2>/dev/null | |
14036 | mkdir conftest | |
14037 | cd conftest | |
14038 | mkdir out | |
14039 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14040 | ||
14041 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14042 | # Insert the option either (1) after the last *FLAGS variable, or | |
14043 | # (2) before a word containing "conftest.", or (3) at the end. | |
14044 | # Note that $ac_compile itself does not contain backslashes and begins | |
14045 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14046 | lt_compile=`echo "$ac_compile" | $SED \ | |
14047 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14048 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14049 | -e 's:$: $lt_compiler_flag:'` | |
14050 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14051 | (eval "$lt_compile" 2>out/conftest.err) | |
14052 | ac_status=$? | |
14053 | cat out/conftest.err >&5 | |
14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14055 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14056 | then | |
14057 | # The compiler can only warn and ignore the option if not recognized | |
14058 | # So say no if there are warnings | |
14059 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14060 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14061 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14062 | lt_cv_prog_compiler_c_o_CXX=yes | |
14063 | fi | |
14064 | fi | |
14065 | chmod u+w . 2>&5 | |
14066 | $RM conftest* | |
14067 | # SGI C++ compiler will create directory out/ii_files/ for | |
14068 | # template instantiation | |
14069 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14070 | $RM out/* && rmdir out | |
14071 | cd .. | |
14072 | $RM -r conftest | |
14073 | $RM conftest* | |
14074 | ||
14075 | fi | |
14076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14077 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14078 | ||
14079 | ||
14080 | ||
14081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14082 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14083 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14084 | $as_echo_n "(cached) " >&6 | |
14085 | else | |
14086 | lt_cv_prog_compiler_c_o_CXX=no | |
14087 | $RM -r conftest 2>/dev/null | |
14088 | mkdir conftest | |
14089 | cd conftest | |
14090 | mkdir out | |
14091 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14092 | ||
14093 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14094 | # Insert the option either (1) after the last *FLAGS variable, or | |
14095 | # (2) before a word containing "conftest.", or (3) at the end. | |
14096 | # Note that $ac_compile itself does not contain backslashes and begins | |
14097 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14098 | lt_compile=`echo "$ac_compile" | $SED \ | |
14099 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14100 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14101 | -e 's:$: $lt_compiler_flag:'` | |
14102 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14103 | (eval "$lt_compile" 2>out/conftest.err) | |
14104 | ac_status=$? | |
14105 | cat out/conftest.err >&5 | |
14106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14107 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14108 | then | |
14109 | # The compiler can only warn and ignore the option if not recognized | |
14110 | # So say no if there are warnings | |
14111 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14112 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14113 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14114 | lt_cv_prog_compiler_c_o_CXX=yes | |
14115 | fi | |
14116 | fi | |
14117 | chmod u+w . 2>&5 | |
14118 | $RM conftest* | |
14119 | # SGI C++ compiler will create directory out/ii_files/ for | |
14120 | # template instantiation | |
14121 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14122 | $RM out/* && rmdir out | |
14123 | cd .. | |
14124 | $RM -r conftest | |
14125 | $RM conftest* | |
14126 | ||
14127 | fi | |
14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14129 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14130 | ||
14131 | ||
14132 | ||
14133 | ||
14134 | hard_links="nottested" | |
14135 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14136 | # do not overwrite the value of need_locks provided by the user | |
14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14138 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14139 | hard_links=yes | |
14140 | $RM conftest* | |
14141 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14142 | touch conftest.a | |
14143 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14144 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14146 | $as_echo "$hard_links" >&6; } | |
14147 | if test "$hard_links" = no; then | |
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14149 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14150 | need_locks=warn | |
14151 | fi | |
14152 | else | |
14153 | need_locks=no | |
14154 | fi | |
14155 | ||
14156 | ||
14157 | ||
14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14159 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14160 | ||
14161 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14162 | case $host_os in | |
14163 | aix[4-9]*) | |
14164 | # If we're using GNU nm, then we don't want the "-C" option. | |
14165 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14166 | # Also, AIX nm treats weak defined symbols like other global defined | |
14167 | # symbols, whereas GNU nm marks them as "W". | |
14168 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14169 | 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' | |
14170 | else | |
14171 | 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' | |
14172 | fi | |
14173 | ;; | |
14174 | pw32*) | |
14175 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14176 | ;; | |
14177 | cygwin* | mingw* | cegcc*) | |
14178 | 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' | |
14179 | ;; | |
14180 | *) | |
14181 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14182 | ;; | |
14183 | esac | |
14184 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
14185 | ||
14186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14187 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14188 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14189 | ||
14190 | with_gnu_ld_CXX=$with_gnu_ld | |
14191 | ||
14192 | ||
14193 | ||
14194 | ||
14195 | ||
14196 | ||
14197 | # | |
14198 | # Do we need to explicitly link libc? | |
14199 | # | |
14200 | case "x$archive_cmds_need_lc_CXX" in | |
14201 | x|xyes) | |
14202 | # Assume -lc should be added | |
14203 | archive_cmds_need_lc_CXX=yes | |
14204 | ||
14205 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14206 | case $archive_cmds_CXX in | |
14207 | *'~'*) | |
14208 | # FIXME: we may have to deal with multi-command sequences. | |
14209 | ;; | |
14210 | '$CC '*) | |
14211 | # Test whether the compiler implicitly links with -lc since on some | |
14212 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14213 | # to ld, don't add -lc before -lgcc. | |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14215 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
14216 | if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : | |
14217 | $as_echo_n "(cached) " >&6 | |
14218 | else | |
14219 | $RM conftest* | |
14220 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14221 | ||
14222 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14223 | (eval $ac_compile) 2>&5 | |
14224 | ac_status=$? | |
14225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14226 | test $ac_status = 0; } 2>conftest.err; then | |
14227 | soname=conftest | |
14228 | lib=conftest | |
14229 | libobjs=conftest.$ac_objext | |
14230 | deplibs= | |
14231 | wl=$lt_prog_compiler_wl_CXX | |
14232 | pic_flag=$lt_prog_compiler_pic_CXX | |
14233 | compiler_flags=-v | |
14234 | linker_flags=-v | |
14235 | verstring= | |
14236 | output_objdir=. | |
14237 | libname=conftest | |
14238 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14239 | allow_undefined_flag_CXX= | |
14240 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14241 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14242 | ac_status=$? | |
14243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14244 | test $ac_status = 0; } | |
14245 | then | |
14246 | lt_cv_archive_cmds_need_lc_CXX=no | |
14247 | else | |
14248 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14249 | fi | |
14250 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14251 | else | |
14252 | cat conftest.err 1>&5 | |
14253 | fi | |
14254 | $RM conftest* | |
14255 | ||
14256 | fi | |
14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14258 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14259 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14260 | ;; | |
14261 | esac | |
14262 | fi | |
14263 | ;; | |
14264 | esac | |
14265 | ||
14266 | ||
14267 | ||
14268 | ||
14269 | ||
14270 | ||
14271 | ||
14272 | ||
14273 | ||
14274 | ||
14275 | ||
14276 | ||
14277 | ||
14278 | ||
14279 | ||
14280 | ||
14281 | ||
14282 | ||
14283 | ||
14284 | ||
14285 | ||
14286 | ||
14287 | ||
14288 | ||
14289 | ||
14290 | ||
14291 | ||
14292 | ||
14293 | ||
14294 | ||
14295 | ||
14296 | ||
14297 | ||
14298 | ||
14299 | ||
14300 | ||
14301 | ||
14302 | ||
14303 | ||
14304 | ||
14305 | ||
14306 | ||
14307 | ||
14308 | ||
14309 | ||
14310 | ||
14311 | ||
14312 | ||
14313 | ||
14314 | ||
14315 | ||
14316 | ||
14317 | ||
14318 | ||
14319 | ||
14320 | ||
14321 | ||
14322 | ||
14323 | ||
14324 | ||
14325 | ||
14326 | ||
14327 | ||
14328 | ||
14329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14330 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14331 | ||
14332 | library_names_spec= | |
14333 | libname_spec='lib$name' | |
14334 | soname_spec= | |
14335 | shrext_cmds=".so" | |
14336 | postinstall_cmds= | |
14337 | postuninstall_cmds= | |
14338 | finish_cmds= | |
14339 | finish_eval= | |
14340 | shlibpath_var= | |
14341 | shlibpath_overrides_runpath=unknown | |
14342 | version_type=none | |
14343 | dynamic_linker="$host_os ld.so" | |
14344 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14345 | need_lib_prefix=unknown | |
14346 | hardcode_into_libs=no | |
14347 | ||
14348 | # when you set need_version to no, make sure it does not cause -set_version | |
14349 | # flags to be left without arguments | |
14350 | need_version=unknown | |
14351 | ||
14352 | case $host_os in | |
14353 | aix3*) | |
14354 | version_type=linux | |
14355 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14356 | shlibpath_var=LIBPATH | |
14357 | ||
14358 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14359 | soname_spec='${libname}${release}${shared_ext}$major' | |
14360 | ;; | |
14361 | ||
14362 | aix[4-9]*) | |
14363 | version_type=linux | |
14364 | need_lib_prefix=no | |
14365 | need_version=no | |
14366 | hardcode_into_libs=yes | |
14367 | if test "$host_cpu" = ia64; then | |
14368 | # AIX 5 supports IA64 | |
14369 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14370 | shlibpath_var=LD_LIBRARY_PATH | |
14371 | else | |
14372 | # With GCC up to 2.95.x, collect2 would create an import file | |
14373 | # for dependence libraries. The import file would start with | |
14374 | # the line `#! .'. This would cause the generated library to | |
14375 | # depend on `.', always an invalid library. This was fixed in | |
14376 | # development snapshots of GCC prior to 3.0. | |
14377 | case $host_os in | |
14378 | aix4 | aix4.[01] | aix4.[01].*) | |
14379 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14380 | echo ' yes ' | |
14381 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14382 | : | |
14383 | else | |
14384 | can_build_shared=no | |
14385 | fi | |
14386 | ;; | |
14387 | esac | |
14388 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14389 | # soname into executable. Probably we can add versioning support to | |
14390 | # collect2, so additional links can be useful in future. | |
14391 | if test "$aix_use_runtimelinking" = yes; then | |
14392 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14393 | # instead of lib<name>.a to let people know that these are not | |
14394 | # typical AIX shared libraries. | |
14395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14396 | else | |
14397 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14398 | # and later when we are not doing run time linking. | |
14399 | library_names_spec='${libname}${release}.a $libname.a' | |
14400 | soname_spec='${libname}${release}${shared_ext}$major' | |
14401 | fi | |
14402 | shlibpath_var=LIBPATH | |
14403 | fi | |
14404 | ;; | |
14405 | ||
14406 | amigaos*) | |
14407 | case $host_cpu in | |
14408 | powerpc) | |
14409 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14410 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14412 | ;; | |
14413 | m68k) | |
14414 | library_names_spec='$libname.ixlibrary $libname.a' | |
14415 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14416 | 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' | |
14417 | ;; | |
14418 | esac | |
14419 | ;; | |
14420 | ||
14421 | beos*) | |
14422 | library_names_spec='${libname}${shared_ext}' | |
14423 | dynamic_linker="$host_os ld.so" | |
14424 | shlibpath_var=LIBRARY_PATH | |
14425 | ;; | |
14426 | ||
14427 | bsdi[45]*) | |
14428 | version_type=linux | |
14429 | need_version=no | |
14430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14431 | soname_spec='${libname}${release}${shared_ext}$major' | |
14432 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14433 | shlibpath_var=LD_LIBRARY_PATH | |
14434 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14435 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14436 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14437 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14438 | # libtool to hard-code these into programs | |
14439 | ;; | |
14440 | ||
14441 | cygwin* | mingw* | pw32* | cegcc*) | |
14442 | version_type=windows | |
14443 | shrext_cmds=".dll" | |
14444 | need_version=no | |
14445 | need_lib_prefix=no | |
14446 | ||
14447 | case $GCC,$host_os in | |
14448 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
14449 | library_names_spec='$libname.dll.a' | |
14450 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14451 | postinstall_cmds='base_file=`basename \${file}`~ | |
14452 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14453 | dldir=$destdir/`dirname \$dlpath`~ | |
14454 | test -d \$dldir || mkdir -p \$dldir~ | |
14455 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14456 | chmod a+x \$dldir/$dlname~ | |
14457 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14458 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14459 | fi' | |
14460 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14461 | dlpath=$dir/\$dldll~ | |
14462 | $RM \$dlpath' | |
14463 | shlibpath_overrides_runpath=yes | |
14464 | ||
14465 | case $host_os in | |
14466 | cygwin*) | |
14467 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14468 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14469 | ||
14470 | ;; | |
14471 | mingw* | cegcc*) | |
14472 | # MinGW DLLs use traditional 'lib' prefix | |
14473 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14474 | ;; | |
14475 | pw32*) | |
14476 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14477 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14478 | ;; | |
14479 | esac | |
14480 | ;; | |
14481 | ||
14482 | *) | |
14483 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14484 | ;; | |
14485 | esac | |
14486 | dynamic_linker='Win32 ld.exe' | |
14487 | # FIXME: first we should search . and the directory the executable is in | |
14488 | shlibpath_var=PATH | |
14489 | ;; | |
14490 | ||
14491 | darwin* | rhapsody*) | |
14492 | dynamic_linker="$host_os dyld" | |
14493 | version_type=darwin | |
14494 | need_lib_prefix=no | |
14495 | need_version=no | |
14496 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14497 | soname_spec='${libname}${release}${major}$shared_ext' | |
14498 | shlibpath_overrides_runpath=yes | |
14499 | shlibpath_var=DYLD_LIBRARY_PATH | |
14500 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14501 | ||
14502 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14503 | ;; | |
14504 | ||
14505 | dgux*) | |
14506 | version_type=linux | |
14507 | need_lib_prefix=no | |
14508 | need_version=no | |
14509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14510 | soname_spec='${libname}${release}${shared_ext}$major' | |
14511 | shlibpath_var=LD_LIBRARY_PATH | |
14512 | ;; | |
14513 | ||
3cb62297 L |
14514 | freebsd* | dragonfly*) |
14515 | # DragonFly does not have aout. When/if they implement a new | |
14516 | # versioning mechanism, adjust this. | |
14517 | if test -x /usr/bin/objformat; then | |
14518 | objformat=`/usr/bin/objformat` | |
14519 | else | |
14520 | case $host_os in | |
6d2920c8 | 14521 | freebsd[23].*) objformat=aout ;; |
3cb62297 L |
14522 | *) objformat=elf ;; |
14523 | esac | |
14524 | fi | |
14525 | version_type=freebsd-$objformat | |
14526 | case $version_type in | |
14527 | freebsd-elf*) | |
14528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14529 | need_version=no | |
14530 | need_lib_prefix=no | |
14531 | ;; | |
14532 | freebsd-*) | |
14533 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14534 | need_version=yes | |
14535 | ;; | |
14536 | esac | |
14537 | shlibpath_var=LD_LIBRARY_PATH | |
14538 | case $host_os in | |
6d2920c8 | 14539 | freebsd2.*) |
3cb62297 L |
14540 | shlibpath_overrides_runpath=yes |
14541 | ;; | |
14542 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14543 | shlibpath_overrides_runpath=yes | |
14544 | hardcode_into_libs=yes | |
14545 | ;; | |
14546 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14547 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14548 | shlibpath_overrides_runpath=no | |
14549 | hardcode_into_libs=yes | |
14550 | ;; | |
14551 | *) # from 4.6 on, and DragonFly | |
14552 | shlibpath_overrides_runpath=yes | |
14553 | hardcode_into_libs=yes | |
14554 | ;; | |
14555 | esac | |
14556 | ;; | |
14557 | ||
14558 | gnu*) | |
14559 | version_type=linux | |
14560 | need_lib_prefix=no | |
14561 | need_version=no | |
14562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14563 | soname_spec='${libname}${release}${shared_ext}$major' | |
14564 | shlibpath_var=LD_LIBRARY_PATH | |
14565 | hardcode_into_libs=yes | |
14566 | ;; | |
14567 | ||
14568 | haiku*) | |
14569 | version_type=linux | |
14570 | need_lib_prefix=no | |
14571 | need_version=no | |
14572 | dynamic_linker="$host_os runtime_loader" | |
14573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14574 | soname_spec='${libname}${release}${shared_ext}$major' | |
14575 | shlibpath_var=LIBRARY_PATH | |
14576 | shlibpath_overrides_runpath=yes | |
14577 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
14578 | hardcode_into_libs=yes | |
14579 | ;; | |
14580 | ||
14581 | hpux9* | hpux10* | hpux11*) | |
14582 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14583 | # link against other versions. | |
14584 | version_type=sunos | |
14585 | need_lib_prefix=no | |
14586 | need_version=no | |
14587 | case $host_cpu in | |
14588 | ia64*) | |
14589 | shrext_cmds='.so' | |
14590 | hardcode_into_libs=yes | |
14591 | dynamic_linker="$host_os dld.so" | |
14592 | shlibpath_var=LD_LIBRARY_PATH | |
14593 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14595 | soname_spec='${libname}${release}${shared_ext}$major' | |
14596 | if test "X$HPUX_IA64_MODE" = X32; then | |
14597 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14598 | else | |
14599 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14600 | fi | |
14601 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14602 | ;; | |
14603 | hppa*64*) | |
14604 | shrext_cmds='.sl' | |
14605 | hardcode_into_libs=yes | |
14606 | dynamic_linker="$host_os dld.sl" | |
14607 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14608 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14609 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14610 | soname_spec='${libname}${release}${shared_ext}$major' | |
14611 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14612 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14613 | ;; | |
14614 | *) | |
14615 | shrext_cmds='.sl' | |
14616 | dynamic_linker="$host_os dld.sl" | |
14617 | shlibpath_var=SHLIB_PATH | |
14618 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14620 | soname_spec='${libname}${release}${shared_ext}$major' | |
14621 | ;; | |
14622 | esac | |
14623 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
14624 | postinstall_cmds='chmod 555 $lib' | |
14625 | # or fails outright, so override atomically: | |
14626 | install_override_mode=555 | |
14627 | ;; | |
14628 | ||
14629 | interix[3-9]*) | |
14630 | version_type=linux | |
14631 | need_lib_prefix=no | |
14632 | need_version=no | |
14633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14634 | soname_spec='${libname}${release}${shared_ext}$major' | |
14635 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14636 | shlibpath_var=LD_LIBRARY_PATH | |
14637 | shlibpath_overrides_runpath=no | |
14638 | hardcode_into_libs=yes | |
14639 | ;; | |
14640 | ||
14641 | irix5* | irix6* | nonstopux*) | |
14642 | case $host_os in | |
14643 | nonstopux*) version_type=nonstopux ;; | |
14644 | *) | |
14645 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14646 | version_type=linux | |
14647 | else | |
14648 | version_type=irix | |
14649 | fi ;; | |
14650 | esac | |
14651 | need_lib_prefix=no | |
14652 | need_version=no | |
14653 | soname_spec='${libname}${release}${shared_ext}$major' | |
14654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14655 | case $host_os in | |
14656 | irix5* | nonstopux*) | |
14657 | libsuff= shlibsuff= | |
14658 | ;; | |
14659 | *) | |
14660 | case $LD in # libtool.m4 will add one of these switches to LD | |
14661 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14662 | libsuff= shlibsuff= libmagic=32-bit;; | |
14663 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14664 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14665 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14666 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14667 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14668 | esac | |
14669 | ;; | |
14670 | esac | |
14671 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14672 | shlibpath_overrides_runpath=no | |
14673 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14674 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14675 | hardcode_into_libs=yes | |
14676 | ;; | |
14677 | ||
14678 | # No shared lib support for Linux oldld, aout, or coff. | |
14679 | linux*oldld* | linux*aout* | linux*coff*) | |
14680 | dynamic_linker=no | |
14681 | ;; | |
14682 | ||
14683 | # This must be Linux ELF. | |
14684 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14685 | version_type=linux | |
14686 | need_lib_prefix=no | |
14687 | need_version=no | |
14688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14689 | soname_spec='${libname}${release}${shared_ext}$major' | |
14690 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14691 | shlibpath_var=LD_LIBRARY_PATH | |
14692 | shlibpath_overrides_runpath=no | |
14693 | ||
14694 | # Some binutils ld are patched to set DT_RUNPATH | |
14695 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
14696 | $as_echo_n "(cached) " >&6 | |
14697 | else | |
14698 | lt_cv_shlibpath_overrides_runpath=no | |
14699 | save_LDFLAGS=$LDFLAGS | |
14700 | save_libdir=$libdir | |
14701 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
14702 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
14703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14704 | /* end confdefs.h. */ | |
14705 | ||
14706 | int | |
14707 | main () | |
14708 | { | |
14709 | ||
14710 | ; | |
14711 | return 0; | |
14712 | } | |
14713 | _ACEOF | |
14714 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14715 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
14716 | lt_cv_shlibpath_overrides_runpath=yes | |
14717 | fi | |
14718 | fi | |
14719 | rm -f core conftest.err conftest.$ac_objext \ | |
14720 | conftest$ac_exeext conftest.$ac_ext | |
14721 | LDFLAGS=$save_LDFLAGS | |
14722 | libdir=$save_libdir | |
14723 | ||
14724 | fi | |
14725 | ||
14726 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
14727 | ||
14728 | # This implies no fast_install, which is unacceptable. | |
14729 | # Some rework will be needed to allow for fast_install | |
14730 | # before this can be enabled. | |
14731 | hardcode_into_libs=yes | |
14732 | ||
14733 | # Append ld.so.conf contents to the search path | |
14734 | if test -f /etc/ld.so.conf; then | |
14735 | 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' ' '` | |
14736 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
14737 | fi | |
14738 | ||
14739 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14740 | # powerpc, because MkLinux only supported shared libraries with the | |
14741 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14742 | # most powerpc-linux boxes support dynamic linking these days and | |
14743 | # people can always --disable-shared, the test was removed, and we | |
14744 | # assume the GNU/Linux dynamic linker is in use. | |
14745 | dynamic_linker='GNU/Linux ld.so' | |
14746 | ;; | |
14747 | ||
14748 | netbsd*) | |
14749 | version_type=sunos | |
14750 | need_lib_prefix=no | |
14751 | need_version=no | |
14752 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14754 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14755 | dynamic_linker='NetBSD (a.out) ld.so' | |
14756 | else | |
14757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14758 | soname_spec='${libname}${release}${shared_ext}$major' | |
14759 | dynamic_linker='NetBSD ld.elf_so' | |
14760 | fi | |
14761 | shlibpath_var=LD_LIBRARY_PATH | |
14762 | shlibpath_overrides_runpath=yes | |
14763 | hardcode_into_libs=yes | |
14764 | ;; | |
14765 | ||
14766 | newsos6) | |
14767 | version_type=linux | |
14768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14769 | shlibpath_var=LD_LIBRARY_PATH | |
14770 | shlibpath_overrides_runpath=yes | |
14771 | ;; | |
14772 | ||
14773 | *nto* | *qnx*) | |
14774 | version_type=qnx | |
14775 | need_lib_prefix=no | |
14776 | need_version=no | |
14777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14778 | soname_spec='${libname}${release}${shared_ext}$major' | |
14779 | shlibpath_var=LD_LIBRARY_PATH | |
14780 | shlibpath_overrides_runpath=no | |
14781 | hardcode_into_libs=yes | |
14782 | dynamic_linker='ldqnx.so' | |
14783 | ;; | |
14784 | ||
14785 | openbsd*) | |
14786 | version_type=sunos | |
14787 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14788 | need_lib_prefix=no | |
14789 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14790 | case $host_os in | |
14791 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14792 | *) need_version=no ;; | |
14793 | esac | |
14794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14795 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14796 | shlibpath_var=LD_LIBRARY_PATH | |
14797 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14798 | case $host_os in | |
14799 | openbsd2.[89] | openbsd2.[89].*) | |
14800 | shlibpath_overrides_runpath=no | |
14801 | ;; | |
14802 | *) | |
14803 | shlibpath_overrides_runpath=yes | |
14804 | ;; | |
14805 | esac | |
14806 | else | |
14807 | shlibpath_overrides_runpath=yes | |
14808 | fi | |
14809 | ;; | |
14810 | ||
14811 | os2*) | |
14812 | libname_spec='$name' | |
14813 | shrext_cmds=".dll" | |
14814 | need_lib_prefix=no | |
14815 | library_names_spec='$libname${shared_ext} $libname.a' | |
14816 | dynamic_linker='OS/2 ld.exe' | |
14817 | shlibpath_var=LIBPATH | |
14818 | ;; | |
14819 | ||
14820 | osf3* | osf4* | osf5*) | |
14821 | version_type=osf | |
14822 | need_lib_prefix=no | |
14823 | need_version=no | |
14824 | soname_spec='${libname}${release}${shared_ext}$major' | |
14825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14826 | shlibpath_var=LD_LIBRARY_PATH | |
14827 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14828 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14829 | ;; | |
14830 | ||
14831 | rdos*) | |
14832 | dynamic_linker=no | |
14833 | ;; | |
14834 | ||
14835 | solaris*) | |
14836 | version_type=linux | |
14837 | need_lib_prefix=no | |
14838 | need_version=no | |
14839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14840 | soname_spec='${libname}${release}${shared_ext}$major' | |
14841 | shlibpath_var=LD_LIBRARY_PATH | |
14842 | shlibpath_overrides_runpath=yes | |
14843 | hardcode_into_libs=yes | |
14844 | # ldd complains unless libraries are executable | |
14845 | postinstall_cmds='chmod +x $lib' | |
14846 | ;; | |
14847 | ||
14848 | sunos4*) | |
14849 | version_type=sunos | |
14850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14851 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14852 | shlibpath_var=LD_LIBRARY_PATH | |
14853 | shlibpath_overrides_runpath=yes | |
14854 | if test "$with_gnu_ld" = yes; then | |
14855 | need_lib_prefix=no | |
14856 | fi | |
14857 | need_version=yes | |
14858 | ;; | |
14859 | ||
14860 | sysv4 | sysv4.3*) | |
14861 | version_type=linux | |
14862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14863 | soname_spec='${libname}${release}${shared_ext}$major' | |
14864 | shlibpath_var=LD_LIBRARY_PATH | |
14865 | case $host_vendor in | |
14866 | sni) | |
14867 | shlibpath_overrides_runpath=no | |
14868 | need_lib_prefix=no | |
14869 | runpath_var=LD_RUN_PATH | |
14870 | ;; | |
14871 | siemens) | |
14872 | need_lib_prefix=no | |
14873 | ;; | |
14874 | motorola) | |
14875 | need_lib_prefix=no | |
14876 | need_version=no | |
14877 | shlibpath_overrides_runpath=no | |
14878 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14879 | ;; | |
14880 | esac | |
14881 | ;; | |
14882 | ||
14883 | sysv4*MP*) | |
14884 | if test -d /usr/nec ;then | |
14885 | version_type=linux | |
14886 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14887 | soname_spec='$libname${shared_ext}.$major' | |
14888 | shlibpath_var=LD_LIBRARY_PATH | |
14889 | fi | |
14890 | ;; | |
14891 | ||
14892 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14893 | version_type=freebsd-elf | |
14894 | need_lib_prefix=no | |
14895 | need_version=no | |
14896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14897 | soname_spec='${libname}${release}${shared_ext}$major' | |
14898 | shlibpath_var=LD_LIBRARY_PATH | |
14899 | shlibpath_overrides_runpath=yes | |
14900 | hardcode_into_libs=yes | |
14901 | if test "$with_gnu_ld" = yes; then | |
14902 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14903 | else | |
14904 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14905 | case $host_os in | |
14906 | sco3.2v5*) | |
14907 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14908 | ;; | |
14909 | esac | |
14910 | fi | |
14911 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14912 | ;; | |
14913 | ||
14914 | tpf*) | |
14915 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14916 | version_type=linux | |
14917 | need_lib_prefix=no | |
14918 | need_version=no | |
14919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14920 | shlibpath_var=LD_LIBRARY_PATH | |
14921 | shlibpath_overrides_runpath=no | |
14922 | hardcode_into_libs=yes | |
14923 | ;; | |
14924 | ||
14925 | uts4*) | |
14926 | version_type=linux | |
14927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14928 | soname_spec='${libname}${release}${shared_ext}$major' | |
14929 | shlibpath_var=LD_LIBRARY_PATH | |
14930 | ;; | |
14931 | ||
14932 | *) | |
14933 | dynamic_linker=no | |
14934 | ;; | |
14935 | esac | |
14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
14937 | $as_echo "$dynamic_linker" >&6; } | |
14938 | test "$dynamic_linker" = no && can_build_shared=no | |
14939 | ||
14940 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14941 | if test "$GCC" = yes; then | |
14942 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14943 | fi | |
14944 | ||
14945 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
14946 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14947 | fi | |
14948 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14949 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
14950 | fi | |
14951 | ||
3725885a | 14952 | |
ce2cded5 | 14953 | |
ce2cded5 | 14954 | |
ce2cded5 | 14955 | |
d7040cdb | 14956 | |
ce2cded5 | 14957 | |
ce2cded5 | 14958 | |
ce2cded5 | 14959 | |
d7040cdb | 14960 | |
ce2cded5 L |
14961 | |
14962 | ||
14963 | ||
14964 | ||
14965 | ||
14966 | ||
14967 | ||
14968 | ||
14969 | ||
14970 | ||
14971 | ||
14972 | ||
14973 | ||
14974 | ||
14975 | ||
14976 | ||
ce2cded5 L |
14977 | |
14978 | ||
14979 | ||
14980 | ||
14981 | ||
14982 | ||
14983 | ||
14984 | ||
14985 | ||
14986 | ||
14987 | ||
14988 | ||
b879806f AM |
14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
14990 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14991 | hardcode_action_CXX= | |
14992 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14993 | test -n "$runpath_var_CXX" || | |
14994 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14995 | ||
14996 | # We can hardcode non-existent directories. | |
14997 | if test "$hardcode_direct_CXX" != no && | |
14998 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14999 | # have to relink, otherwise we might link with an installed library | |
15000 | # when we should be linking with a yet-to-be-installed one | |
15001 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15002 | test "$hardcode_minus_L_CXX" != no; then | |
15003 | # Linking always hardcodes the temporary library directory. | |
15004 | hardcode_action_CXX=relink | |
15005 | else | |
15006 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15007 | hardcode_action_CXX=immediate | |
15008 | fi | |
15009 | else | |
15010 | # We cannot hardcode anything, or else we can only hardcode existing | |
15011 | # directories. | |
15012 | hardcode_action_CXX=unsupported | |
15013 | fi | |
15014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15015 | $as_echo "$hardcode_action_CXX" >&6; } | |
15016 | ||
15017 | if test "$hardcode_action_CXX" = relink || | |
15018 | test "$inherit_rpath_CXX" = yes; then | |
15019 | # Fast installation is not supported | |
15020 | enable_fast_install=no | |
15021 | elif test "$shlibpath_overrides_runpath" = yes || | |
15022 | test "$enable_shared" = no; then | |
15023 | # Fast installation is not necessary | |
15024 | enable_fast_install=needless | |
15025 | fi | |
15026 | ||
15027 | ||
15028 | ||
15029 | ||
15030 | ||
15031 | ||
15032 | ||
15033 | fi # test -n "$compiler" | |
15034 | ||
15035 | CC=$lt_save_CC | |
15036 | LDCXX=$LD | |
15037 | LD=$lt_save_LD | |
15038 | GCC=$lt_save_GCC | |
15039 | with_gnu_ld=$lt_save_with_gnu_ld | |
15040 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15041 | lt_cv_path_LD=$lt_save_path_LD | |
15042 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15043 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15044 | fi # test "$_lt_caught_CXX_error" != yes | |
15045 | ||
15046 | ac_ext=c | |
15047 | ac_cpp='$CPP $CPPFLAGS' | |
15048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15051 | ||
15052 | ||
15053 | ||
15054 | ||
15055 | ||
15056 | ||
15057 | ||
15058 | ||
15059 | ||
15060 | ||
15061 | ||
15062 | ||
15063 | ||
15064 | ac_config_commands="$ac_config_commands libtool" | |
15065 | ||
15066 | ||
15067 | ||
15068 | ||
15069 | # Only expand once: | |
15070 | ||
15071 | ||
15072 | ||
15073 | # The tests for host and target for $enable_largefile require | |
15074 | # canonical names. | |
15075 | ||
15076 | ||
15077 | ||
15078 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
15079 | # even in directories otherwise not depending on the $plugins option. | |
15080 | ||
15081 | ||
15082 | maybe_plugins=no | |
15083 | for ac_header in dlfcn.h | |
15084 | do : | |
15085 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
15086 | " | |
15087 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
15088 | cat >>confdefs.h <<_ACEOF | |
15089 | #define HAVE_DLFCN_H 1 | |
15090 | _ACEOF | |
15091 | maybe_plugins=yes | |
15092 | fi | |
15093 | ||
15094 | done | |
15095 | ||
15096 | for ac_header in windows.h | |
15097 | do : | |
15098 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
15099 | " | |
15100 | if test "x$ac_cv_header_windows_h" = x""yes; then : | |
15101 | cat >>confdefs.h <<_ACEOF | |
15102 | #define HAVE_WINDOWS_H 1 | |
15103 | _ACEOF | |
15104 | maybe_plugins=yes | |
15105 | fi | |
15106 | ||
15107 | done | |
15108 | ||
15109 | ||
15110 | # Check whether --enable-plugins was given. | |
15111 | if test "${enable_plugins+set}" = set; then : | |
15112 | enableval=$enable_plugins; case "${enableval}" in | |
15113 | no) plugins=no ;; | |
15114 | *) plugins=yes | |
15115 | if test "$maybe_plugins" != "yes" ; then | |
15116 | as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 | |
15117 | fi ;; | |
15118 | esac | |
15119 | else | |
15120 | plugins=$maybe_plugins | |
15121 | ||
15122 | fi | |
15123 | ||
2974be62 AM |
15124 | if test "$plugins" = "yes"; then |
15125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
15126 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
15127 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
15128 | $as_echo_n "(cached) " >&6 | |
15129 | else | |
15130 | ac_func_search_save_LIBS=$LIBS | |
15131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15132 | /* end confdefs.h. */ | |
15133 | ||
15134 | /* Override any GCC internal prototype to avoid an error. | |
15135 | Use char because int might match the return type of a GCC | |
15136 | builtin and then its argument prototype would still apply. */ | |
15137 | #ifdef __cplusplus | |
15138 | extern "C" | |
15139 | #endif | |
15140 | char dlopen (); | |
15141 | int | |
15142 | main () | |
15143 | { | |
15144 | return dlopen (); | |
15145 | ; | |
15146 | return 0; | |
15147 | } | |
15148 | _ACEOF | |
15149 | for ac_lib in '' dl; do | |
15150 | if test -z "$ac_lib"; then | |
15151 | ac_res="none required" | |
15152 | else | |
15153 | ac_res=-l$ac_lib | |
15154 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15155 | fi | |
15156 | if ac_fn_c_try_link "$LINENO"; then : | |
15157 | ac_cv_search_dlopen=$ac_res | |
15158 | fi | |
15159 | rm -f core conftest.err conftest.$ac_objext \ | |
15160 | conftest$ac_exeext | |
15161 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
15162 | break | |
15163 | fi | |
15164 | done | |
15165 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
15166 | ||
15167 | else | |
15168 | ac_cv_search_dlopen=no | |
15169 | fi | |
15170 | rm conftest.$ac_ext | |
15171 | LIBS=$ac_func_search_save_LIBS | |
15172 | fi | |
15173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
15174 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
15175 | ac_res=$ac_cv_search_dlopen | |
15176 | if test "$ac_res" != no; then : | |
15177 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15178 | ||
15179 | fi | |
15180 | ||
15181 | fi | |
b879806f AM |
15182 | |
15183 | ||
15184 | case "${host}" in | |
15185 | sparc-*-solaris*|i[3-7]86-*-solaris*) | |
15186 | # On native 32bit sparc and ia32 solaris, large-file and procfs support | |
15187 | # are mutually exclusive; and without procfs support, the bfd/ elf module | |
15188 | # cannot provide certain routines such as elfcore_write_prpsinfo | |
15189 | # or elfcore_write_prstatus. So unless the user explicitly requested | |
15190 | # large-file support through the --enable-largefile switch, disable | |
15191 | # large-file support in favor of procfs support. | |
15192 | test "${target}" = "${host}" -a "x$plugins" = xno \ | |
15193 | && : ${enable_largefile="no"} | |
15194 | ;; | |
15195 | esac | |
15196 | ||
15197 | # Check whether --enable-largefile was given. | |
15198 | if test "${enable_largefile+set}" = set; then : | |
15199 | enableval=$enable_largefile; | |
15200 | fi | |
15201 | ||
15202 | if test "$enable_largefile" != no; then | |
15203 | ||
15204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
15205 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
15206 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
15207 | $as_echo_n "(cached) " >&6 | |
15208 | else | |
15209 | ac_cv_sys_largefile_CC=no | |
15210 | if test "$GCC" != yes; then | |
15211 | ac_save_CC=$CC | |
15212 | while :; do | |
15213 | # IRIX 6.2 and later do not support large files by default, | |
15214 | # so use the C compiler's -n32 option if that helps. | |
15215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15216 | /* end confdefs.h. */ | |
15217 | #include <sys/types.h> | |
15218 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15219 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15220 | since some C++ compilers masquerading as C compilers | |
15221 | incorrectly reject 9223372036854775807. */ | |
15222 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15223 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15224 | && LARGE_OFF_T % 2147483647 == 1) | |
15225 | ? 1 : -1]; | |
15226 | int | |
15227 | main () | |
15228 | { | |
15229 | ||
15230 | ; | |
15231 | return 0; | |
15232 | } | |
15233 | _ACEOF | |
15234 | if ac_fn_c_try_compile "$LINENO"; then : | |
15235 | break | |
15236 | fi | |
15237 | rm -f core conftest.err conftest.$ac_objext | |
15238 | CC="$CC -n32" | |
15239 | if ac_fn_c_try_compile "$LINENO"; then : | |
15240 | ac_cv_sys_largefile_CC=' -n32'; break | |
15241 | fi | |
15242 | rm -f core conftest.err conftest.$ac_objext | |
15243 | break | |
15244 | done | |
15245 | CC=$ac_save_CC | |
15246 | rm -f conftest.$ac_ext | |
15247 | fi | |
15248 | fi | |
15249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
15250 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
15251 | if test "$ac_cv_sys_largefile_CC" != no; then | |
15252 | CC=$CC$ac_cv_sys_largefile_CC | |
15253 | fi | |
15254 | ||
15255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
15256 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
15257 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
15258 | $as_echo_n "(cached) " >&6 | |
15259 | else | |
15260 | while :; do | |
15261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15262 | /* end confdefs.h. */ | |
15263 | #include <sys/types.h> | |
15264 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15265 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15266 | since some C++ compilers masquerading as C compilers | |
15267 | incorrectly reject 9223372036854775807. */ | |
15268 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15269 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15270 | && LARGE_OFF_T % 2147483647 == 1) | |
15271 | ? 1 : -1]; | |
15272 | int | |
15273 | main () | |
15274 | { | |
15275 | ||
15276 | ; | |
15277 | return 0; | |
15278 | } | |
15279 | _ACEOF | |
15280 | if ac_fn_c_try_compile "$LINENO"; then : | |
15281 | ac_cv_sys_file_offset_bits=no; break | |
15282 | fi | |
15283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15285 | /* end confdefs.h. */ | |
15286 | #define _FILE_OFFSET_BITS 64 | |
15287 | #include <sys/types.h> | |
15288 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15289 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15290 | since some C++ compilers masquerading as C compilers | |
15291 | incorrectly reject 9223372036854775807. */ | |
15292 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15293 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15294 | && LARGE_OFF_T % 2147483647 == 1) | |
15295 | ? 1 : -1]; | |
15296 | int | |
15297 | main () | |
15298 | { | |
15299 | ||
15300 | ; | |
15301 | return 0; | |
15302 | } | |
15303 | _ACEOF | |
15304 | if ac_fn_c_try_compile "$LINENO"; then : | |
15305 | ac_cv_sys_file_offset_bits=64; break | |
15306 | fi | |
15307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15308 | ac_cv_sys_file_offset_bits=unknown | |
15309 | break | |
15310 | done | |
15311 | fi | |
15312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
15313 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
15314 | case $ac_cv_sys_file_offset_bits in #( | |
15315 | no | unknown) ;; | |
15316 | *) | |
15317 | cat >>confdefs.h <<_ACEOF | |
15318 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
15319 | _ACEOF | |
15320 | ;; | |
15321 | esac | |
15322 | rm -rf conftest* | |
15323 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
15324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
15325 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
15326 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
15327 | $as_echo_n "(cached) " >&6 | |
15328 | else | |
15329 | while :; do | |
15330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15331 | /* end confdefs.h. */ | |
15332 | #include <sys/types.h> | |
15333 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15334 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15335 | since some C++ compilers masquerading as C compilers | |
15336 | incorrectly reject 9223372036854775807. */ | |
15337 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15338 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15339 | && LARGE_OFF_T % 2147483647 == 1) | |
15340 | ? 1 : -1]; | |
15341 | int | |
15342 | main () | |
15343 | { | |
15344 | ||
15345 | ; | |
15346 | return 0; | |
15347 | } | |
15348 | _ACEOF | |
15349 | if ac_fn_c_try_compile "$LINENO"; then : | |
15350 | ac_cv_sys_large_files=no; break | |
15351 | fi | |
15352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15354 | /* end confdefs.h. */ | |
15355 | #define _LARGE_FILES 1 | |
15356 | #include <sys/types.h> | |
15357 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15358 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15359 | since some C++ compilers masquerading as C compilers | |
15360 | incorrectly reject 9223372036854775807. */ | |
15361 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15362 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15363 | && LARGE_OFF_T % 2147483647 == 1) | |
15364 | ? 1 : -1]; | |
15365 | int | |
15366 | main () | |
15367 | { | |
15368 | ||
15369 | ; | |
15370 | return 0; | |
15371 | } | |
15372 | _ACEOF | |
15373 | if ac_fn_c_try_compile "$LINENO"; then : | |
15374 | ac_cv_sys_large_files=1; break | |
15375 | fi | |
15376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15377 | ac_cv_sys_large_files=unknown | |
15378 | break | |
15379 | done | |
15380 | fi | |
15381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
15382 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
15383 | case $ac_cv_sys_large_files in #( | |
15384 | no | unknown) ;; | |
15385 | *) | |
15386 | cat >>confdefs.h <<_ACEOF | |
15387 | #define _LARGE_FILES $ac_cv_sys_large_files | |
15388 | _ACEOF | |
15389 | ;; | |
15390 | esac | |
15391 | rm -rf conftest* | |
15392 | fi | |
15393 | fi | |
15394 | ||
15395 | ||
15396 | ||
15397 | ||
15398 | # Check whether --with-lib-path was given. | |
15399 | if test "${with_lib_path+set}" = set; then : | |
15400 | withval=$with_lib_path; LIB_PATH=$withval | |
15401 | fi | |
15402 | ||
15403 | # Check whether --enable-targets was given. | |
15404 | if test "${enable_targets+set}" = set; then : | |
15405 | enableval=$enable_targets; case "${enableval}" in | |
15406 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
15407 | ;; | |
15408 | no) enable_targets= ;; | |
15409 | *) enable_targets=$enableval ;; | |
15410 | esac | |
15411 | fi | |
15412 | # Check whether --enable-64-bit-bfd was given. | |
15413 | if test "${enable_64_bit_bfd+set}" = set; then : | |
15414 | enableval=$enable_64_bit_bfd; case "${enableval}" in | |
15415 | yes) want64=true ;; | |
15416 | no) want64=false ;; | |
15417 | *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; | |
15418 | esac | |
15419 | else | |
15420 | want64=false | |
15421 | fi | |
15422 | ||
15423 | ||
15424 | # Check whether --with-sysroot was given. | |
15425 | if test "${with_sysroot+set}" = set; then : | |
15426 | withval=$with_sysroot; | |
15427 | case ${with_sysroot} in | |
15428 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
15429 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
15430 | esac | |
15431 | ||
15432 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
15433 | use_sysroot=yes | |
15434 | ||
15435 | if test "x$prefix" = xNONE; then | |
15436 | test_prefix=/usr/local | |
15437 | else | |
15438 | test_prefix=$prefix | |
15439 | fi | |
15440 | if test "x$exec_prefix" = xNONE; then | |
15441 | test_exec_prefix=$test_prefix | |
15442 | else | |
15443 | test_exec_prefix=$exec_prefix | |
15444 | fi | |
15445 | case ${TARGET_SYSTEM_ROOT} in | |
15446 | "${test_prefix}"|"${test_prefix}/"*|\ | |
15447 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
15448 | '${prefix}'|'${prefix}/'*|\ | |
15449 | '${exec_prefix}'|'${exec_prefix}/'*) | |
15450 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" | |
15451 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
15452 | ;; | |
15453 | esac | |
15454 | ||
15455 | else | |
15456 | ||
15457 | use_sysroot=no | |
15458 | TARGET_SYSTEM_ROOT= | |
15459 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
15460 | ||
15461 | fi | |
15462 | ||
15463 | ||
15464 | ||
15465 | ||
15466 | ||
15467 | # Check whether --enable-gold was given. | |
15468 | if test "${enable_gold+set}" = set; then : | |
15469 | enableval=$enable_gold; case "${enableval}" in | |
15470 | default) | |
15471 | install_as_default=no | |
15472 | installed_linker=ld.bfd | |
15473 | ;; | |
15474 | yes|no) | |
15475 | install_as_default=yes | |
15476 | installed_linker=ld.bfd | |
15477 | ;; | |
15478 | *) | |
15479 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
15480 | ;; | |
15481 | esac | |
15482 | else | |
15483 | install_as_default=yes | |
15484 | installed_linker=ld.bfd | |
15485 | fi | |
15486 | ||
15487 | ||
15488 | ||
15489 | ||
15490 | # Check whether --enable-got was given. | |
15491 | if test "${enable_got+set}" = set; then : | |
15492 | enableval=$enable_got; case "${enableval}" in | |
15493 | target | single | negative | multigot) got_handling=$enableval ;; | |
15494 | *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;; | |
15495 | esac | |
15496 | else | |
15497 | got_handling=target | |
15498 | fi | |
15499 | ||
15500 | ||
15501 | case "${got_handling}" in | |
15502 | target) | |
15503 | ||
15504 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h | |
15505 | ;; | |
15506 | single) | |
15507 | ||
15508 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h | |
15509 | ;; | |
15510 | negative) | |
15511 | ||
15512 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h | |
15513 | ;; | |
15514 | multigot) | |
15515 | ||
15516 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h | |
15517 | ;; | |
15518 | *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; | |
15519 | esac | |
15520 | ||
15521 | ||
15522 | # Set the 'development' global. | |
15523 | . $srcdir/../bfd/development.sh | |
15524 | ||
15525 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
15526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15527 | /* end confdefs.h. */ | |
15528 | __GNUC__ | |
15529 | _ACEOF | |
15530 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15531 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
ce2cded5 | 15532 | |
3cb62297 | 15533 | else |
b879806f | 15534 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" |
3cb62297 | 15535 | fi |
b879806f | 15536 | rm -f conftest* |
ce2cded5 | 15537 | |
ce2cded5 | 15538 | |
b879806f AM |
15539 | # Check whether --enable-werror was given. |
15540 | if test "${enable_werror+set}" = set; then : | |
15541 | enableval=$enable_werror; case "${enableval}" in | |
15542 | yes | y) ERROR_ON_WARNING="yes" ;; | |
15543 | no | n) ERROR_ON_WARNING="no" ;; | |
15544 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
15545 | esac | |
15546 | fi | |
ce2cded5 L |
15547 | |
15548 | ||
b879806f AM |
15549 | # Disable -Wformat by default when using gcc on mingw |
15550 | case "${host}" in | |
15551 | *-*-mingw32*) | |
15552 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
15553 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
15554 | fi | |
15555 | ;; | |
15556 | *) ;; | |
15557 | esac | |
ce2cded5 | 15558 | |
b879806f AM |
15559 | # Enable -Werror by default when using gcc. Turn it off for releases. |
15560 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
15561 | ERROR_ON_WARNING=yes | |
15562 | fi | |
d7040cdb | 15563 | |
b879806f AM |
15564 | NO_WERROR= |
15565 | if test "${ERROR_ON_WARNING}" = yes ; then | |
15566 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
15567 | NO_WERROR="-Wno-error" | |
15568 | fi | |
3cb62297 | 15569 | |
b879806f AM |
15570 | if test "${GCC}" = yes ; then |
15571 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
15572 | fi | |
67310ccd | 15573 | |
b879806f AM |
15574 | # Check whether --enable-build-warnings was given. |
15575 | if test "${enable_build_warnings+set}" = set; then : | |
15576 | enableval=$enable_build_warnings; case "${enableval}" in | |
15577 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
15578 | no) if test "${GCC}" = yes ; then | |
15579 | WARN_CFLAGS="-w" | |
15580 | fi;; | |
15581 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
15582 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
15583 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
15584 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
15585 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
15586 | esac | |
15587 | fi | |
67310ccd | 15588 | |
d7040cdb | 15589 | |
b879806f AM |
15590 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
15591 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
15592 | fi | |
d7040cdb | 15593 | |
d7040cdb | 15594 | |
d7040cdb | 15595 | |
d7040cdb | 15596 | |
ce2cded5 L |
15597 | |
15598 | ||
b879806f AM |
15599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
15600 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
15601 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
15602 | $as_echo_n "(cached) " >&6 | |
15603 | else | |
15604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15605 | /* end confdefs.h. */ | |
15606 | #include <locale.h> | |
15607 | int | |
15608 | main () | |
15609 | { | |
15610 | return LC_MESSAGES | |
15611 | ; | |
15612 | return 0; | |
15613 | } | |
15614 | _ACEOF | |
15615 | if ac_fn_c_try_link "$LINENO"; then : | |
15616 | am_cv_val_LC_MESSAGES=yes | |
15617 | else | |
15618 | am_cv_val_LC_MESSAGES=no | |
15619 | fi | |
15620 | rm -f core conftest.err conftest.$ac_objext \ | |
15621 | conftest$ac_exeext conftest.$ac_ext | |
15622 | fi | |
15623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
15624 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
15625 | if test $am_cv_val_LC_MESSAGES = yes; then | |
ce2cded5 | 15626 | |
b879806f | 15627 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
ce2cded5 | 15628 | |
b879806f | 15629 | fi |
ce2cded5 | 15630 | |
ce2cded5 | 15631 | |
b879806f | 15632 | ac_config_headers="$ac_config_headers config.h:config.in" |
ce2cded5 L |
15633 | |
15634 | ||
b879806f | 15635 | # PR 14072 |
ce2cded5 | 15636 | |
ce2cded5 | 15637 | |
b879806f AM |
15638 | if test -z "$target" ; then |
15639 | as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 | |
15640 | fi | |
15641 | if test -z "$host" ; then | |
15642 | as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5 | |
15643 | fi | |
d7040cdb | 15644 | |
b879806f | 15645 | # host-specific stuff: |
d7040cdb | 15646 | |
3e4fe8ac | 15647 | ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk" |
d7040cdb SE |
15648 | # If we haven't got the data from the intl directory, |
15649 | # assume NLS is disabled. | |
15650 | USE_NLS=no | |
15651 | LIBINTL= | |
15652 | LIBINTL_DEP= | |
15653 | INCINTL= | |
15654 | XGETTEXT= | |
15655 | GMSGFMT= | |
15656 | POSUB= | |
15657 | ||
15658 | if test -f ../intl/config.intl; then | |
15659 | . ../intl/config.intl | |
15660 | fi | |
81ecdfbb RW |
15661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
15662 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 15663 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
15664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15665 | $as_echo "no" >&6; } | |
d7040cdb | 15666 | else |
81ecdfbb RW |
15667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15668 | $as_echo "yes" >&6; } | |
d7040cdb | 15669 | |
81ecdfbb | 15670 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
15671 | |
15672 | ||
81ecdfbb RW |
15673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
15674 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
15675 | # Look for .po and .gmo files in the source directory. |
15676 | CATALOGS= | |
15677 | XLINGUAS= | |
15678 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
15679 | # If there aren't any .gmo files the shell will give us the | |
15680 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
15681 | # weeded out. | |
15682 | case "$cat" in *\**) | |
15683 | continue;; | |
15684 | esac | |
15685 | # The quadruple backslash is collapsed to a double backslash | |
15686 | # by the backticks, then collapsed again by the double quotes, | |
15687 | # leaving us with one backslash in the sed expression (right | |
15688 | # before the dot that mustn't act as a wildcard). | |
15689 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
15690 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
15691 | # The user is allowed to set LINGUAS to a list of languages to | |
15692 | # install catalogs for. If it's empty that means "all of them." | |
15693 | if test "x$LINGUAS" = x; then | |
15694 | CATALOGS="$CATALOGS $cat" | |
15695 | XLINGUAS="$XLINGUAS $lang" | |
15696 | else | |
15697 | case "$LINGUAS" in *$lang*) | |
15698 | CATALOGS="$CATALOGS $cat" | |
15699 | XLINGUAS="$XLINGUAS $lang" | |
15700 | ;; | |
15701 | esac | |
15702 | fi | |
15703 | done | |
15704 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
15705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
15706 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
15707 | |
15708 | ||
15709 | DATADIRNAME=share | |
15710 | ||
15711 | INSTOBJEXT=.mo | |
15712 | ||
15713 | GENCAT=gencat | |
15714 | ||
15715 | CATOBJEXT=.gmo | |
15716 | ||
15717 | fi | |
15718 | ||
15719 | MKINSTALLDIRS= | |
15720 | if test -n "$ac_aux_dir"; then | |
15721 | case "$ac_aux_dir" in | |
15722 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
15723 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
15724 | esac | |
15725 | fi | |
15726 | if test -z "$MKINSTALLDIRS"; then | |
15727 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
15728 | fi | |
15729 | ||
15730 | ||
15731 | ||
81ecdfbb RW |
15732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
15733 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
15734 | # Check whether --enable-nls was given. | |
15735 | if test "${enable_nls+set}" = set; then : | |
15736 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
15737 | else |
15738 | USE_NLS=yes | |
81ecdfbb RW |
15739 | fi |
15740 | ||
15741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
15742 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
15743 | |
15744 | ||
15745 | ||
15746 | ||
15747 | ||
15748 | ||
15749 | # Prepare PATH_SEPARATOR. | |
15750 | # The user is always right. | |
15751 | if test "${PATH_SEPARATOR+set}" != set; then | |
15752 | echo "#! /bin/sh" >conf$$.sh | |
15753 | echo "exit 0" >>conf$$.sh | |
15754 | chmod +x conf$$.sh | |
15755 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15756 | PATH_SEPARATOR=';' | |
15757 | else | |
15758 | PATH_SEPARATOR=: | |
15759 | fi | |
15760 | rm -f conf$$.sh | |
15761 | fi | |
15762 | ||
15763 | # Find out how to test for executable files. Don't use a zero-byte file, | |
15764 | # as systems may use methods other than mode bits to determine executability. | |
15765 | cat >conf$$.file <<_ASEOF | |
15766 | #! /bin/sh | |
15767 | exit 0 | |
15768 | _ASEOF | |
15769 | chmod +x conf$$.file | |
15770 | if test -x conf$$.file >/dev/null 2>&1; then | |
15771 | ac_executable_p="test -x" | |
15772 | else | |
15773 | ac_executable_p="test -f" | |
15774 | fi | |
15775 | rm -f conf$$.file | |
15776 | ||
15777 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15778 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
15779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15780 | $as_echo_n "checking for $ac_word... " >&6; } | |
15781 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
15782 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15783 | else |
15784 | case "$MSGFMT" in | |
15785 | [\\/]* | ?:[\\/]*) | |
15786 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15787 | ;; | |
15788 | *) | |
15789 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15790 | for ac_dir in $PATH; do | |
15791 | IFS="$ac_save_IFS" | |
15792 | test -z "$ac_dir" && ac_dir=. | |
15793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15794 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15795 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
15796 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
15797 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
15798 | break 2 | |
15799 | fi | |
15800 | fi | |
15801 | done | |
15802 | done | |
15803 | IFS="$ac_save_IFS" | |
15804 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
15805 | ;; | |
15806 | esac | |
15807 | fi | |
15808 | MSGFMT="$ac_cv_path_MSGFMT" | |
15809 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
15810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
15811 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 15812 | else |
81ecdfbb RW |
15813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15814 | $as_echo "no" >&6; } | |
d7040cdb SE |
15815 | fi |
15816 | ||
15817 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
15818 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
15819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15820 | $as_echo_n "checking for $ac_word... " >&6; } | |
15821 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
15822 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15823 | else |
15824 | case $GMSGFMT in | |
15825 | [\\/]* | ?:[\\/]*) | |
15826 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
15827 | ;; | |
15828 | *) | |
15829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15830 | for as_dir in $PATH | |
15831 | do | |
15832 | IFS=$as_save_IFS | |
15833 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
15834 | for ac_exec_ext in '' $ac_executable_extensions; do |
15835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 15836 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
15838 | break 2 |
15839 | fi | |
15840 | done | |
81ecdfbb RW |
15841 | done |
15842 | IFS=$as_save_IFS | |
d7040cdb SE |
15843 | |
15844 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
15845 | ;; | |
15846 | esac | |
15847 | fi | |
15848 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 15849 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
15850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
15851 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 15852 | else |
81ecdfbb RW |
15853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15854 | $as_echo "no" >&6; } | |
20e95c23 | 15855 | fi |
42ecbf5e | 15856 | |
20e95c23 | 15857 | |
252b5132 | 15858 | |
81ecdfbb | 15859 | |
d7040cdb SE |
15860 | # Prepare PATH_SEPARATOR. |
15861 | # The user is always right. | |
15862 | if test "${PATH_SEPARATOR+set}" != set; then | |
15863 | echo "#! /bin/sh" >conf$$.sh | |
15864 | echo "exit 0" >>conf$$.sh | |
15865 | chmod +x conf$$.sh | |
15866 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15867 | PATH_SEPARATOR=';' | |
15868 | else | |
15869 | PATH_SEPARATOR=: | |
15870 | fi | |
15871 | rm -f conf$$.sh | |
20e95c23 | 15872 | fi |
252b5132 | 15873 | |
d7040cdb SE |
15874 | # Find out how to test for executable files. Don't use a zero-byte file, |
15875 | # as systems may use methods other than mode bits to determine executability. | |
15876 | cat >conf$$.file <<_ASEOF | |
15877 | #! /bin/sh | |
15878 | exit 0 | |
15879 | _ASEOF | |
15880 | chmod +x conf$$.file | |
15881 | if test -x conf$$.file >/dev/null 2>&1; then | |
15882 | ac_executable_p="test -x" | |
20e95c23 | 15883 | else |
d7040cdb SE |
15884 | ac_executable_p="test -f" |
15885 | fi | |
15886 | rm -f conf$$.file | |
20e95c23 | 15887 | |
d7040cdb SE |
15888 | # Extract the first word of "xgettext", so it can be a program name with args. |
15889 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
15890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15891 | $as_echo_n "checking for $ac_word... " >&6; } | |
15892 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
15893 | $as_echo_n "(cached) " >&6 | |
252b5132 | 15894 | else |
d7040cdb SE |
15895 | case "$XGETTEXT" in |
15896 | [\\/]* | ?:[\\/]*) | |
15897 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
15898 | ;; | |
15899 | *) | |
15900 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15901 | for ac_dir in $PATH; do | |
15902 | IFS="$ac_save_IFS" | |
15903 | test -z "$ac_dir" && ac_dir=. | |
15904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15905 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15906 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
15907 | (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 | |
15908 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
15909 | break 2 | |
15910 | fi | |
15911 | fi | |
15912 | done | |
15913 | done | |
15914 | IFS="$ac_save_IFS" | |
15915 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
15916 | ;; | |
15917 | esac | |
252b5132 | 15918 | fi |
d7040cdb SE |
15919 | XGETTEXT="$ac_cv_path_XGETTEXT" |
15920 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
15921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
15922 | $as_echo "$XGETTEXT" >&6; } | |
d5fbea21 | 15923 | else |
81ecdfbb RW |
15924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15925 | $as_echo "no" >&6; } | |
d5fbea21 DJ |
15926 | fi |
15927 | ||
d7040cdb | 15928 | rm -f messages.po |
d5fbea21 | 15929 | |
20e95c23 | 15930 | |
d7040cdb SE |
15931 | # Prepare PATH_SEPARATOR. |
15932 | # The user is always right. | |
15933 | if test "${PATH_SEPARATOR+set}" != set; then | |
15934 | echo "#! /bin/sh" >conf$$.sh | |
15935 | echo "exit 0" >>conf$$.sh | |
15936 | chmod +x conf$$.sh | |
15937 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15938 | PATH_SEPARATOR=';' | |
15939 | else | |
15940 | PATH_SEPARATOR=: | |
15941 | fi | |
15942 | rm -f conf$$.sh | |
15943 | fi | |
20e95c23 | 15944 | |
d7040cdb SE |
15945 | # Find out how to test for executable files. Don't use a zero-byte file, |
15946 | # as systems may use methods other than mode bits to determine executability. | |
15947 | cat >conf$$.file <<_ASEOF | |
15948 | #! /bin/sh | |
15949 | exit 0 | |
15950 | _ASEOF | |
15951 | chmod +x conf$$.file | |
15952 | if test -x conf$$.file >/dev/null 2>&1; then | |
15953 | ac_executable_p="test -x" | |
15954 | else | |
15955 | ac_executable_p="test -f" | |
15956 | fi | |
15957 | rm -f conf$$.file | |
20e95c23 | 15958 | |
d7040cdb SE |
15959 | # Extract the first word of "msgmerge", so it can be a program name with args. |
15960 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
15961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15962 | $as_echo_n "checking for $ac_word... " >&6; } | |
15963 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
15964 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15965 | else |
15966 | case "$MSGMERGE" in | |
15967 | [\\/]* | ?:[\\/]*) | |
15968 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
15969 | ;; | |
15970 | *) | |
15971 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15972 | for ac_dir in $PATH; do | |
15973 | IFS="$ac_save_IFS" | |
15974 | test -z "$ac_dir" && ac_dir=. | |
15975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15976 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15977 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
15978 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
15979 | break 2 | |
15980 | fi | |
15981 | fi | |
15982 | done | |
15983 | done | |
15984 | IFS="$ac_save_IFS" | |
15985 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
15986 | ;; | |
15987 | esac | |
15988 | fi | |
15989 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
15990 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
15991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
15992 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 15993 | else |
81ecdfbb RW |
15994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15995 | $as_echo "no" >&6; } | |
d7040cdb | 15996 | fi |
20e95c23 DJ |
15997 | |
15998 | ||
d7040cdb SE |
15999 | if test "$GMSGFMT" != ":"; then |
16000 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
16001 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
16002 | : ; | |
16003 | else | |
16004 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
16005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
16006 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
16007 | GMSGFMT=":" |
16008 | fi | |
16009 | fi | |
20e95c23 | 16010 | |
d7040cdb SE |
16011 | if test "$XGETTEXT" != ":"; then |
16012 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
16013 | (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 | |
16014 | : ; | |
16015 | else | |
81ecdfbb RW |
16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
16017 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
16018 | XGETTEXT=":" |
16019 | fi | |
16020 | rm -f messages.po | |
20e95c23 | 16021 | fi |
42ecbf5e | 16022 | |
81ecdfbb | 16023 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 16024 | |
42ecbf5e | 16025 | |
252b5132 | 16026 | |
42ecbf5e DJ |
16027 | |
16028 | ||
d7040cdb | 16029 | for ac_prog in 'bison -y' byacc |
20e95c23 | 16030 | do |
d7040cdb SE |
16031 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
16032 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
16033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16034 | $as_echo_n "checking for $ac_word... " >&6; } | |
16035 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
16036 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 16037 | else |
d7040cdb SE |
16038 | if test -n "$YACC"; then |
16039 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e | 16040 | else |
d7040cdb SE |
16041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16042 | for as_dir in $PATH | |
16043 | do | |
16044 | IFS=$as_save_IFS | |
16045 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
16046 | for ac_exec_ext in '' $ac_executable_extensions; do |
16047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 16048 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 16049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16050 | break 2 |
16051 | fi | |
16052 | done | |
81ecdfbb RW |
16053 | done |
16054 | IFS=$as_save_IFS | |
42ecbf5e | 16055 | |
42ecbf5e | 16056 | fi |
e5a52504 | 16057 | fi |
d7040cdb SE |
16058 | YACC=$ac_cv_prog_YACC |
16059 | if test -n "$YACC"; then | |
81ecdfbb RW |
16060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
16061 | $as_echo "$YACC" >&6; } | |
42ecbf5e | 16062 | else |
81ecdfbb RW |
16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16064 | $as_echo "no" >&6; } | |
42ecbf5e | 16065 | fi |
252b5132 | 16066 | |
81ecdfbb | 16067 | |
d7040cdb | 16068 | test -n "$YACC" && break |
42ecbf5e | 16069 | done |
d7040cdb | 16070 | test -n "$YACC" || YACC="yacc" |
d15b04bd | 16071 | |
d7040cdb SE |
16072 | for ac_prog in flex lex |
16073 | do | |
16074 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16075 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
16076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16077 | $as_echo_n "checking for $ac_word... " >&6; } | |
16078 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
16079 | $as_echo_n "(cached) " >&6 | |
d15b04bd | 16080 | else |
d7040cdb SE |
16081 | if test -n "$LEX"; then |
16082 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
16083 | else | |
16084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16085 | for as_dir in $PATH | |
16086 | do | |
16087 | IFS=$as_save_IFS | |
16088 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
16089 | for ac_exec_ext in '' $ac_executable_extensions; do |
16090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 16091 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 16092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16093 | break 2 |
16094 | fi | |
16095 | done | |
81ecdfbb RW |
16096 | done |
16097 | IFS=$as_save_IFS | |
d7040cdb SE |
16098 | |
16099 | fi | |
16100 | fi | |
16101 | LEX=$ac_cv_prog_LEX | |
16102 | if test -n "$LEX"; then | |
81ecdfbb RW |
16103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
16104 | $as_echo "$LEX" >&6; } | |
d7040cdb | 16105 | else |
81ecdfbb RW |
16106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16107 | $as_echo "no" >&6; } | |
d15b04bd | 16108 | fi |
e5a52504 | 16109 | |
81ecdfbb | 16110 | |
d7040cdb SE |
16111 | test -n "$LEX" && break |
16112 | done | |
16113 | test -n "$LEX" || LEX=":" | |
42ecbf5e | 16114 | |
81ecdfbb RW |
16115 | if test "x$LEX" != "x:"; then |
16116 | cat >conftest.l <<_ACEOF | |
16117 | %% | |
16118 | a { ECHO; } | |
16119 | b { REJECT; } | |
16120 | c { yymore (); } | |
16121 | d { yyless (1); } | |
16122 | e { yyless (input () != 0); } | |
16123 | f { unput (yytext[0]); } | |
16124 | . { BEGIN INITIAL; } | |
16125 | %% | |
16126 | #ifdef YYTEXT_POINTER | |
16127 | extern char *yytext; | |
d7040cdb | 16128 | #endif |
42ecbf5e | 16129 | int |
81ecdfbb | 16130 | main (void) |
42ecbf5e | 16131 | { |
81ecdfbb | 16132 | return ! yylex () + ! yywrap (); |
42ecbf5e DJ |
16133 | } |
16134 | _ACEOF | |
81ecdfbb RW |
16135 | { { ac_try="$LEX conftest.l" |
16136 | case "(($ac_try" in | |
16137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16138 | *) ac_try_echo=$ac_try;; | |
16139 | esac | |
16140 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16141 | $as_echo "$ac_try_echo"; } >&5 | |
16142 | (eval "$LEX conftest.l") 2>&5 | |
42ecbf5e | 16143 | ac_status=$? |
81ecdfbb RW |
16144 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16145 | test $ac_status = 0; } | |
16146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
16147 | $as_echo_n "checking lex output file root... " >&6; } | |
16148 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
16149 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 16150 | else |
42ecbf5e | 16151 | |
81ecdfbb RW |
16152 | if test -f lex.yy.c; then |
16153 | ac_cv_prog_lex_root=lex.yy | |
16154 | elif test -f lexyy.c; then | |
16155 | ac_cv_prog_lex_root=lexyy | |
16156 | else | |
16157 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
42ecbf5e | 16158 | fi |
42ecbf5e | 16159 | fi |
81ecdfbb RW |
16160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
16161 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
16162 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20e95c23 | 16163 | |
81ecdfbb RW |
16164 | if test -z "${LEXLIB+set}"; then |
16165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
16166 | $as_echo_n "checking lex library... " >&6; } | |
16167 | if test "${ac_cv_lib_lex+set}" = set; then : | |
16168 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16169 | else |
20e95c23 | 16170 | |
81ecdfbb RW |
16171 | ac_save_LIBS=$LIBS |
16172 | ac_cv_lib_lex='none needed' | |
16173 | for ac_lib in '' -lfl -ll; do | |
16174 | LIBS="$ac_lib $ac_save_LIBS" | |
16175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16176 | /* end confdefs.h. */ | |
16177 | `cat $LEX_OUTPUT_ROOT.c` | |
16178 | _ACEOF | |
16179 | if ac_fn_c_try_link "$LINENO"; then : | |
16180 | ac_cv_lib_lex=$ac_lib | |
20e95c23 | 16181 | fi |
81ecdfbb RW |
16182 | rm -f core conftest.err conftest.$ac_objext \ |
16183 | conftest$ac_exeext conftest.$ac_ext | |
16184 | test "$ac_cv_lib_lex" != 'none needed' && break | |
16185 | done | |
16186 | LIBS=$ac_save_LIBS | |
20e95c23 DJ |
16187 | |
16188 | fi | |
81ecdfbb RW |
16189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
16190 | $as_echo "$ac_cv_lib_lex" >&6; } | |
16191 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb | 16192 | fi |
20e95c23 | 16193 | |
20e95c23 | 16194 | |
81ecdfbb RW |
16195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
16196 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
16197 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
16198 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
16199 | else |
16200 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 16201 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
16202 | # not all implementations provide the %pointer and %array declarations. |
16203 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 16204 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
16205 | LIBS="$LEXLIB $ac_save_LIBS" |
16206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16207 | /* end confdefs.h. */ | |
16208 | #define YYTEXT_POINTER 1 | |
d7040cdb | 16209 | `cat $LEX_OUTPUT_ROOT.c` |
20e95c23 | 16210 | _ACEOF |
81ecdfbb | 16211 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 16212 | ac_cv_prog_lex_yytext_pointer=yes |
d7040cdb | 16213 | fi |
81ecdfbb RW |
16214 | rm -f core conftest.err conftest.$ac_objext \ |
16215 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 16216 | LIBS=$ac_save_LIBS |
d7040cdb SE |
16217 | |
16218 | fi | |
81ecdfbb RW |
16219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
16220 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb SE |
16221 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
16222 | ||
81ecdfbb | 16223 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
d7040cdb SE |
16224 | |
16225 | fi | |
81ecdfbb | 16226 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
d7040cdb SE |
16227 | |
16228 | fi | |
16229 | if test "$LEX" = :; then | |
16230 | LEX=${am_missing_run}flex | |
16231 | fi | |
16232 | ||
81ecdfbb RW |
16233 | |
16234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
16235 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
16236 | # Check whether --enable-maintainer-mode was given. | |
16237 | if test "${enable_maintainer_mode+set}" = set; then : | |
16238 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
252b5132 | 16239 | else |
d7040cdb | 16240 | USE_MAINTAINER_MODE=no |
81ecdfbb | 16241 | fi |
d7040cdb | 16242 | |
81ecdfbb RW |
16243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
16244 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
16245 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
16246 | MAINTAINER_MODE_TRUE= |
16247 | MAINTAINER_MODE_FALSE='#' | |
16248 | else | |
16249 | MAINTAINER_MODE_TRUE='#' | |
16250 | MAINTAINER_MODE_FALSE= | |
252b5132 | 16251 | fi |
252b5132 | 16252 | |
d7040cdb SE |
16253 | MAINT=$MAINTAINER_MODE_TRUE |
16254 | ||
16255 | ||
81ecdfbb | 16256 | if false; then |
d7040cdb SE |
16257 | GENINSRC_NEVER_TRUE= |
16258 | GENINSRC_NEVER_FALSE='#' | |
16259 | else | |
16260 | GENINSRC_NEVER_TRUE='#' | |
16261 | GENINSRC_NEVER_FALSE= | |
252b5132 RH |
16262 | fi |
16263 | ||
81ecdfbb RW |
16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
16265 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
16266 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
16267 | $as_echo_n "(cached) " >&6 | |
eccbf555 AM |
16268 | else |
16269 | echo abfoo >t1 | |
16270 | echo cdfoo >t2 | |
16271 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
16272 | if cmp t1 t2 2 2 > /dev/null 2>&1; then | |
16273 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
16274 | : | |
16275 | else | |
16276 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
16277 | fi | |
16278 | fi | |
16279 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
16280 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
16281 | : | |
16282 | else | |
16283 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
16284 | fi | |
16285 | fi | |
16286 | rm t1 t2 | |
16287 | ||
16288 | fi | |
81ecdfbb RW |
16289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
16290 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
eccbf555 AM |
16291 | do_compare="$gcc_cv_prog_cmp_skip" |
16292 | ||
16293 | ||
d7040cdb SE |
16294 | |
16295 | . ${srcdir}/configure.host | |
16296 | ||
16297 | ||
16298 | ||
16299 | ||
252b5132 RH |
16300 | |
16301 | ||
6738cadc | 16302 | |
b27caf75 | 16303 | |
58797674 | 16304 | for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h |
81ecdfbb RW |
16305 | do : |
16306 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16307 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16308 | eval as_val=\$$as_ac_Header | |
16309 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16310 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16311 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16312 | _ACEOF |
16313 | ||
16314 | fi | |
16315 | ||
252b5132 RH |
16316 | done |
16317 | ||
5d3236ee DK |
16318 | for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h |
16319 | do : | |
16320 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16321 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16322 | eval as_val=\$$as_ac_Header | |
16323 | if test "x$as_val" = x""yes; then : | |
16324 | cat >>confdefs.h <<_ACEOF | |
16325 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16326 | _ACEOF | |
16327 | ||
16328 | fi | |
16329 | ||
16330 | done | |
16331 | ||
208a4923 NC |
16332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 |
16333 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
16334 | if test "${gcc_cv_header_string+set}" = set; then : | |
16335 | $as_echo_n "(cached) " >&6 | |
16336 | else | |
16337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16338 | /* end confdefs.h. */ | |
16339 | #include <string.h> | |
16340 | #include <strings.h> | |
16341 | int | |
16342 | main () | |
16343 | { | |
16344 | ||
16345 | ; | |
16346 | return 0; | |
16347 | } | |
16348 | _ACEOF | |
16349 | if ac_fn_c_try_compile "$LINENO"; then : | |
16350 | gcc_cv_header_string=yes | |
16351 | else | |
16352 | gcc_cv_header_string=no | |
16353 | fi | |
16354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16355 | fi | |
16356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
16357 | $as_echo "$gcc_cv_header_string" >&6; } | |
16358 | if test $gcc_cv_header_string = yes; then | |
16359 | ||
16360 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
16361 | ||
16362 | fi | |
16363 | ||
44350750 | 16364 | for ac_func in glob mkstemp realpath sbrk setlocale waitpid |
81ecdfbb RW |
16365 | do : |
16366 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16367 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16368 | eval as_val=\$$as_ac_var | |
16369 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16370 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16371 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
42ecbf5e | 16372 | _ACEOF |
252b5132 | 16373 | |
252b5132 RH |
16374 | fi |
16375 | done | |
16376 | ||
5d3236ee DK |
16377 | for ac_func in open lseek close |
16378 | do : | |
16379 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16380 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16381 | eval as_val=\$$as_ac_var | |
16382 | if test "x$as_val" = x""yes; then : | |
16383 | cat >>confdefs.h <<_ACEOF | |
16384 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16385 | _ACEOF | |
16386 | ||
16387 | fi | |
16388 | done | |
16389 | ||
252b5132 | 16390 | ac_header_dirent=no |
42ecbf5e | 16391 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
16392 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
16393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
16394 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
16395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
16396 | $as_echo_n "(cached) " >&6 | |
16397 | else | |
16398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 16399 | /* end confdefs.h. */ |
252b5132 RH |
16400 | #include <sys/types.h> |
16401 | #include <$ac_hdr> | |
42ecbf5e DJ |
16402 | |
16403 | int | |
16404 | main () | |
16405 | { | |
16406 | if ((DIR *) 0) | |
16407 | return 0; | |
16408 | ; | |
16409 | return 0; | |
16410 | } | |
16411 | _ACEOF | |
81ecdfbb | 16412 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
16413 | eval "$as_ac_Header=yes" |
16414 | else | |
81ecdfbb | 16415 | eval "$as_ac_Header=no" |
42ecbf5e | 16416 | fi |
81ecdfbb | 16417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e | 16418 | fi |
81ecdfbb RW |
16419 | eval ac_res=\$$as_ac_Header |
16420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16421 | $as_echo "$ac_res" >&6; } | |
16422 | eval as_val=\$$as_ac_Header | |
16423 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16424 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16425 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16426 | _ACEOF |
16427 | ||
16428 | ac_header_dirent=$ac_hdr; break | |
d15b04bd | 16429 | fi |
42ecbf5e | 16430 | |
d15b04bd L |
16431 | done |
16432 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
16433 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
16434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
16435 | $as_echo_n "checking for library containing opendir... " >&6; } | |
16436 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16437 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
16438 | else |
16439 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 16440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
16441 | /* end confdefs.h. */ |
16442 | ||
81ecdfbb RW |
16443 | /* Override any GCC internal prototype to avoid an error. |
16444 | Use char because int might match the return type of a GCC | |
16445 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
16446 | #ifdef __cplusplus |
16447 | extern "C" | |
16448 | #endif | |
42ecbf5e DJ |
16449 | char opendir (); |
16450 | int | |
16451 | main () | |
16452 | { | |
81ecdfbb | 16453 | return opendir (); |
42ecbf5e DJ |
16454 | ; |
16455 | return 0; | |
16456 | } | |
16457 | _ACEOF | |
81ecdfbb RW |
16458 | for ac_lib in '' dir; do |
16459 | if test -z "$ac_lib"; then | |
16460 | ac_res="none required" | |
16461 | else | |
16462 | ac_res=-l$ac_lib | |
42ecbf5e | 16463 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
16464 | fi |
16465 | if ac_fn_c_try_link "$LINENO"; then : | |
16466 | ac_cv_search_opendir=$ac_res | |
16467 | fi | |
16468 | rm -f core conftest.err conftest.$ac_objext \ | |
16469 | conftest$ac_exeext | |
16470 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16471 | break | |
16472 | fi | |
16473 | done | |
16474 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e5a52504 | 16475 | |
42ecbf5e | 16476 | else |
81ecdfbb | 16477 | ac_cv_search_opendir=no |
252b5132 | 16478 | fi |
81ecdfbb | 16479 | rm conftest.$ac_ext |
42ecbf5e DJ |
16480 | LIBS=$ac_func_search_save_LIBS |
16481 | fi | |
81ecdfbb RW |
16482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
16483 | $as_echo "$ac_cv_search_opendir" >&6; } | |
16484 | ac_res=$ac_cv_search_opendir | |
16485 | if test "$ac_res" != no; then : | |
16486 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 16487 | |
d15b04bd | 16488 | fi |
252b5132 RH |
16489 | |
16490 | else | |
81ecdfbb RW |
16491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
16492 | $as_echo_n "checking for library containing opendir... " >&6; } | |
16493 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16494 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16495 | else |
42ecbf5e | 16496 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 16497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
16498 | /* end confdefs.h. */ |
16499 | ||
81ecdfbb RW |
16500 | /* Override any GCC internal prototype to avoid an error. |
16501 | Use char because int might match the return type of a GCC | |
16502 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
16503 | #ifdef __cplusplus |
16504 | extern "C" | |
16505 | #endif | |
42ecbf5e DJ |
16506 | char opendir (); |
16507 | int | |
16508 | main () | |
16509 | { | |
81ecdfbb | 16510 | return opendir (); |
42ecbf5e DJ |
16511 | ; |
16512 | return 0; | |
16513 | } | |
16514 | _ACEOF | |
81ecdfbb RW |
16515 | for ac_lib in '' x; do |
16516 | if test -z "$ac_lib"; then | |
16517 | ac_res="none required" | |
16518 | else | |
16519 | ac_res=-l$ac_lib | |
42ecbf5e | 16520 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
16521 | fi |
16522 | if ac_fn_c_try_link "$LINENO"; then : | |
16523 | ac_cv_search_opendir=$ac_res | |
16524 | fi | |
16525 | rm -f core conftest.err conftest.$ac_objext \ | |
16526 | conftest$ac_exeext | |
16527 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16528 | break | |
16529 | fi | |
16530 | done | |
16531 | if test "${ac_cv_search_opendir+set}" = set; then : | |
252b5132 | 16532 | |
42ecbf5e | 16533 | else |
81ecdfbb | 16534 | ac_cv_search_opendir=no |
252b5132 | 16535 | fi |
81ecdfbb | 16536 | rm conftest.$ac_ext |
42ecbf5e | 16537 | LIBS=$ac_func_search_save_LIBS |
252b5132 | 16538 | fi |
81ecdfbb RW |
16539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
16540 | $as_echo "$ac_cv_search_opendir" >&6; } | |
16541 | ac_res=$ac_cv_search_opendir | |
16542 | if test "$ac_res" != no; then : | |
16543 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 16544 | |
d15b04bd | 16545 | fi |
252b5132 RH |
16546 | |
16547 | fi | |
16548 | ||
16549 | ||
2aec968d L |
16550 | for ac_header in stdlib.h unistd.h |
16551 | do : | |
16552 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16553 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16554 | eval as_val=\$$as_ac_Header | |
16555 | if test "x$as_val" = x""yes; then : | |
16556 | cat >>confdefs.h <<_ACEOF | |
16557 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16558 | _ACEOF | |
16559 | ||
16560 | fi | |
16561 | ||
16562 | done | |
16563 | ||
16564 | for ac_func in getpagesize | |
16565 | do : | |
16566 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
16567 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
16568 | cat >>confdefs.h <<_ACEOF | |
16569 | #define HAVE_GETPAGESIZE 1 | |
16570 | _ACEOF | |
16571 | ||
16572 | fi | |
16573 | done | |
16574 | ||
16575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
16576 | $as_echo_n "checking for working mmap... " >&6; } | |
16577 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
16578 | $as_echo_n "(cached) " >&6 | |
16579 | else | |
16580 | if test "$cross_compiling" = yes; then : | |
16581 | ac_cv_func_mmap_fixed_mapped=no | |
16582 | else | |
16583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16584 | /* end confdefs.h. */ | |
16585 | $ac_includes_default | |
16586 | /* malloc might have been renamed as rpl_malloc. */ | |
16587 | #undef malloc | |
16588 | ||
16589 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
16590 | Here is a matrix of mmap possibilities: | |
16591 | mmap private not fixed | |
16592 | mmap private fixed at somewhere currently unmapped | |
16593 | mmap private fixed at somewhere already mapped | |
16594 | mmap shared not fixed | |
16595 | mmap shared fixed at somewhere currently unmapped | |
16596 | mmap shared fixed at somewhere already mapped | |
16597 | For private mappings, we should verify that changes cannot be read() | |
16598 | back from the file, nor mmap's back from the file at a different | |
16599 | address. (There have been systems where private was not correctly | |
16600 | implemented like the infamous i386 svr4.0, and systems where the | |
16601 | VM page cache was not coherent with the file system buffer cache | |
16602 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16603 | For shared mappings, we should conversely verify that changes get | |
16604 | propagated back to all the places they're supposed to be. | |
16605 | ||
16606 | Grep wants private fixed already mapped. | |
16607 | The main things grep needs to know about mmap are: | |
16608 | * does it exist and is it safe to write into the mmap'd area | |
16609 | * how to use it (BSD variants) */ | |
16610 | ||
16611 | #include <fcntl.h> | |
16612 | #include <sys/mman.h> | |
16613 | ||
16614 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
16615 | char *malloc (); | |
16616 | #endif | |
16617 | ||
16618 | /* This mess was copied from the GNU getpagesize.h. */ | |
16619 | #ifndef HAVE_GETPAGESIZE | |
16620 | /* Assume that all systems that can run configure have sys/param.h. */ | |
16621 | # ifndef HAVE_SYS_PARAM_H | |
16622 | # define HAVE_SYS_PARAM_H 1 | |
16623 | # endif | |
16624 | ||
16625 | # ifdef _SC_PAGESIZE | |
16626 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16627 | # else /* no _SC_PAGESIZE */ | |
16628 | # ifdef HAVE_SYS_PARAM_H | |
16629 | # include <sys/param.h> | |
16630 | # ifdef EXEC_PAGESIZE | |
16631 | # define getpagesize() EXEC_PAGESIZE | |
16632 | # else /* no EXEC_PAGESIZE */ | |
16633 | # ifdef NBPG | |
16634 | # define getpagesize() NBPG * CLSIZE | |
16635 | # ifndef CLSIZE | |
16636 | # define CLSIZE 1 | |
16637 | # endif /* no CLSIZE */ | |
16638 | # else /* no NBPG */ | |
16639 | # ifdef NBPC | |
16640 | # define getpagesize() NBPC | |
16641 | # else /* no NBPC */ | |
16642 | # ifdef PAGESIZE | |
16643 | # define getpagesize() PAGESIZE | |
16644 | # endif /* PAGESIZE */ | |
16645 | # endif /* no NBPC */ | |
16646 | # endif /* no NBPG */ | |
16647 | # endif /* no EXEC_PAGESIZE */ | |
16648 | # else /* no HAVE_SYS_PARAM_H */ | |
16649 | # define getpagesize() 8192 /* punt totally */ | |
16650 | # endif /* no HAVE_SYS_PARAM_H */ | |
16651 | # endif /* no _SC_PAGESIZE */ | |
16652 | ||
16653 | #endif /* no HAVE_GETPAGESIZE */ | |
16654 | ||
16655 | int | |
16656 | main () | |
16657 | { | |
16658 | char *data, *data2, *data3; | |
16659 | int i, pagesize; | |
16660 | int fd; | |
16661 | ||
16662 | pagesize = getpagesize (); | |
16663 | ||
16664 | /* First, make a file with some known garbage in it. */ | |
16665 | data = (char *) malloc (pagesize); | |
16666 | if (!data) | |
16667 | return 1; | |
16668 | for (i = 0; i < pagesize; ++i) | |
16669 | *(data + i) = rand (); | |
16670 | umask (0); | |
16671 | fd = creat ("conftest.mmap", 0600); | |
16672 | if (fd < 0) | |
16673 | return 1; | |
16674 | if (write (fd, data, pagesize) != pagesize) | |
16675 | return 1; | |
16676 | close (fd); | |
16677 | ||
16678 | /* Next, try to mmap the file at a fixed address which already has | |
16679 | something else allocated at it. If we can, also make sure that | |
16680 | we see the same garbage. */ | |
16681 | fd = open ("conftest.mmap", O_RDWR); | |
16682 | if (fd < 0) | |
16683 | return 1; | |
16684 | data2 = (char *) malloc (2 * pagesize); | |
16685 | if (!data2) | |
16686 | return 1; | |
16687 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
16688 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
16689 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
16690 | return 1; | |
16691 | for (i = 0; i < pagesize; ++i) | |
16692 | if (*(data + i) != *(data2 + i)) | |
16693 | return 1; | |
16694 | ||
16695 | /* Finally, make sure that changes to the mapped area do not | |
16696 | percolate back to the file as seen by read(). (This is a bug on | |
16697 | some variants of i386 svr4.0.) */ | |
16698 | for (i = 0; i < pagesize; ++i) | |
16699 | *(data2 + i) = *(data2 + i) + 1; | |
16700 | data3 = (char *) malloc (pagesize); | |
16701 | if (!data3) | |
16702 | return 1; | |
16703 | if (read (fd, data3, pagesize) != pagesize) | |
16704 | return 1; | |
16705 | for (i = 0; i < pagesize; ++i) | |
16706 | if (*(data + i) != *(data3 + i)) | |
16707 | return 1; | |
16708 | close (fd); | |
16709 | return 0; | |
16710 | } | |
16711 | _ACEOF | |
16712 | if ac_fn_c_try_run "$LINENO"; then : | |
16713 | ac_cv_func_mmap_fixed_mapped=yes | |
16714 | else | |
16715 | ac_cv_func_mmap_fixed_mapped=no | |
16716 | fi | |
16717 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16718 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16719 | fi | |
16720 | ||
16721 | fi | |
16722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
16723 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
16724 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
16725 | ||
16726 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | |
16727 | ||
16728 | fi | |
16729 | rm -f conftest.mmap | |
16730 | ||
16731 | ||
5d3236ee DK |
16732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
16733 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
16734 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16735 | $as_echo_n "(cached) " >&6 | |
16736 | else | |
16737 | ac_func_search_save_LIBS=$LIBS | |
16738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16739 | /* end confdefs.h. */ | |
16740 | ||
16741 | /* Override any GCC internal prototype to avoid an error. | |
16742 | Use char because int might match the return type of a GCC | |
16743 | builtin and then its argument prototype would still apply. */ | |
16744 | #ifdef __cplusplus | |
16745 | extern "C" | |
16746 | #endif | |
16747 | char dlopen (); | |
16748 | int | |
16749 | main () | |
16750 | { | |
16751 | return dlopen (); | |
16752 | ; | |
16753 | return 0; | |
16754 | } | |
16755 | _ACEOF | |
16756 | for ac_lib in '' dl; do | |
16757 | if test -z "$ac_lib"; then | |
16758 | ac_res="none required" | |
16759 | else | |
16760 | ac_res=-l$ac_lib | |
16761 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16762 | fi | |
16763 | if ac_fn_c_try_link "$LINENO"; then : | |
16764 | ac_cv_search_dlopen=$ac_res | |
16765 | fi | |
16766 | rm -f core conftest.err conftest.$ac_objext \ | |
16767 | conftest$ac_exeext | |
16768 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16769 | break | |
16770 | fi | |
16771 | done | |
16772 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16773 | ||
16774 | else | |
16775 | ac_cv_search_dlopen=no | |
16776 | fi | |
16777 | rm conftest.$ac_ext | |
16778 | LIBS=$ac_func_search_save_LIBS | |
16779 | fi | |
16780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
16781 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
16782 | ac_res=$ac_cv_search_dlopen | |
16783 | if test "$ac_res" != no; then : | |
16784 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16785 | ||
3917d5d5 DK |
16786 | fi |
16787 | ||
b879806f | 16788 | if test x$plugins = xyes; then |
5d3236ee DK |
16789 | ENABLE_PLUGINS_TRUE= |
16790 | ENABLE_PLUGINS_FALSE='#' | |
16791 | else | |
16792 | ENABLE_PLUGINS_TRUE='#' | |
16793 | ENABLE_PLUGINS_FALSE= | |
16794 | fi | |
16795 | ||
16796 | ||
02ecc8e9 L |
16797 | # Check whether --enable-initfini-array was given. |
16798 | if test "${enable_initfini_array+set}" = set; then : | |
16799 | enableval=$enable_initfini_array; | |
16800 | else | |
16801 | ||
16802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5 | |
16803 | $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } | |
16804 | if test "${gcc_cv_initfini_array+set}" = set; then : | |
16805 | $as_echo_n "(cached) " >&6 | |
16806 | else | |
16807 | if test "x${build}" = "x${target}" ; then | |
16808 | if test "$cross_compiling" = yes; then : | |
16809 | gcc_cv_initfini_array=no | |
16810 | else | |
16811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16812 | /* end confdefs.h. */ | |
16813 | ||
16814 | static int x = -1; | |
16815 | int main (void) { return x; } | |
16816 | int foo (void) { x = 0; } | |
16817 | int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; | |
16818 | _ACEOF | |
16819 | if ac_fn_c_try_run "$LINENO"; then : | |
16820 | gcc_cv_initfini_array=yes | |
16821 | else | |
16822 | gcc_cv_initfini_array=no | |
16823 | fi | |
16824 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16825 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16826 | fi | |
16827 | ||
16828 | else | |
16829 | gcc_cv_initfini_array=no | |
16830 | fi | |
16831 | fi | |
16832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5 | |
16833 | $as_echo "$gcc_cv_initfini_array" >&6; } | |
16834 | enable_initfini_array=$gcc_cv_initfini_array | |
16835 | ||
16836 | fi | |
16837 | ||
16838 | ||
16839 | if test $enable_initfini_array = yes; then | |
16840 | ||
16841 | $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h | |
16842 | ||
16843 | fi | |
16844 | ||
81ecdfbb RW |
16845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
16846 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
16847 | if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then : | |
16848 | $as_echo_n "(cached) " >&6 | |
34875e64 | 16849 | else |
81ecdfbb | 16850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 16851 | /* end confdefs.h. */ |
34875e64 | 16852 | #include <unistd.h> |
42ecbf5e DJ |
16853 | int |
16854 | main () | |
16855 | { | |
34875e64 | 16856 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
16857 | ; |
16858 | return 0; | |
16859 | } | |
16860 | _ACEOF | |
81ecdfbb | 16861 | if ac_fn_c_try_compile "$LINENO"; then : |
34875e64 NC |
16862 | ld_cv_decl_getopt_unistd_h=yes |
16863 | else | |
81ecdfbb | 16864 | ld_cv_decl_getopt_unistd_h=no |
34875e64 | 16865 | fi |
81ecdfbb | 16866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
16867 | fi |
16868 | ||
81ecdfbb RW |
16869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5 |
16870 | $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; } | |
34875e64 | 16871 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e | 16872 | |
81ecdfbb | 16873 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
34875e64 NC |
16874 | |
16875 | fi | |
42ecbf5e | 16876 | |
252b5132 RH |
16877 | |
16878 | case "${host}" in | |
a8100d5b | 16879 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e | 16880 | |
81ecdfbb | 16881 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
252b5132 RH |
16882 | ;; |
16883 | esac | |
16884 | ||
81ecdfbb RW |
16885 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" |
16886 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
16887 | ac_have_decl=1 | |
252b5132 | 16888 | else |
81ecdfbb RW |
16889 | ac_have_decl=0 |
16890 | fi | |
502bdb00 | 16891 | |
81ecdfbb RW |
16892 | cat >>confdefs.h <<_ACEOF |
16893 | #define HAVE_DECL_STRSTR $ac_have_decl | |
42ecbf5e | 16894 | _ACEOF |
81ecdfbb RW |
16895 | ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" |
16896 | if test "x$ac_cv_have_decl_free" = x""yes; then : | |
16897 | ac_have_decl=1 | |
252b5132 | 16898 | else |
81ecdfbb | 16899 | ac_have_decl=0 |
252b5132 RH |
16900 | fi |
16901 | ||
502bdb00 | 16902 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16903 | #define HAVE_DECL_FREE $ac_have_decl |
502bdb00 | 16904 | _ACEOF |
81ecdfbb RW |
16905 | ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" |
16906 | if test "x$ac_cv_have_decl_sbrk" = x""yes; then : | |
16907 | ac_have_decl=1 | |
16908 | else | |
16909 | ac_have_decl=0 | |
16910 | fi | |
42ecbf5e | 16911 | |
81ecdfbb RW |
16912 | cat >>confdefs.h <<_ACEOF |
16913 | #define HAVE_DECL_SBRK $ac_have_decl | |
16914 | _ACEOF | |
16915 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | |
16916 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : | |
16917 | ac_have_decl=1 | |
16918 | else | |
16919 | ac_have_decl=0 | |
16920 | fi | |
502bdb00 | 16921 | |
81ecdfbb RW |
16922 | cat >>confdefs.h <<_ACEOF |
16923 | #define HAVE_DECL_GETENV $ac_have_decl | |
16924 | _ACEOF | |
16925 | ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" | |
16926 | if test "x$ac_cv_have_decl_environ" = x""yes; then : | |
16927 | ac_have_decl=1 | |
502bdb00 | 16928 | else |
81ecdfbb RW |
16929 | ac_have_decl=0 |
16930 | fi | |
16931 | ||
16932 | cat >>confdefs.h <<_ACEOF | |
16933 | #define HAVE_DECL_ENVIRON $ac_have_decl | |
42ecbf5e | 16934 | _ACEOF |
252b5132 | 16935 | |
252b5132 | 16936 | |
597e2591 ILT |
16937 | # When converting linker scripts into strings for use in emulation |
16938 | # files, use astring.sed if the compiler supports ANSI string | |
16939 | # concatenation, or ostring.sed otherwise. This is to support the | |
16940 | # broken Microsoft MSVC compiler, which limits the length of string | |
16941 | # constants, while still supporting pre-ANSI compilers which do not | |
16942 | # support string concatenation. | |
81ecdfbb RW |
16943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5 |
16944 | $as_echo_n "checking whether ANSI C string concatenation works... " >&6; } | |
16945 | if test "${ld_cv_string_concatenation+set}" = set; then : | |
16946 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 16947 | else |
81ecdfbb | 16948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 16949 | /* end confdefs.h. */ |
81ecdfbb | 16950 | |
314e9a4e L |
16951 | int |
16952 | main () | |
16953 | { | |
81ecdfbb | 16954 | char *a = "a" "a"; |
314e9a4e L |
16955 | ; |
16956 | return 0; | |
16957 | } | |
16958 | _ACEOF | |
81ecdfbb RW |
16959 | if ac_fn_c_try_compile "$LINENO"; then : |
16960 | ld_cv_string_concatenation=yes | |
314e9a4e | 16961 | else |
81ecdfbb | 16962 | ld_cv_string_concatenation=no |
314e9a4e | 16963 | fi |
81ecdfbb | 16964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
314e9a4e | 16965 | fi |
81ecdfbb RW |
16966 | |
16967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5 | |
16968 | $as_echo "$ld_cv_string_concatenation" >&6; } | |
16969 | if test "$ld_cv_string_concatenation" = "yes"; then | |
16970 | STRINGIFY=astring.sed | |
16971 | else | |
16972 | STRINGIFY=ostring.sed | |
314e9a4e | 16973 | fi |
81ecdfbb RW |
16974 | |
16975 | ||
16976 | # target-specific stuff: | |
16977 | ||
16978 | all_targets= | |
16979 | EMUL= | |
16980 | all_emuls= | |
16981 | all_emul_extras= | |
16982 | all_libpath= | |
16983 | ||
16984 | rm -f tdirs | |
16985 | ||
bf9ef603 | 16986 | # If the host is 64-bit, then we enable 64-bit targets by default. |
1110793a | 16987 | # This is consistent with what ../bfd/configure.ac does. |
bf9ef603 RM |
16988 | if test x${want64} = xfalse; then |
16989 | # The cast to long int works around a bug in the HP C Compiler | |
16990 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16991 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16992 | # This bug is HP SR number 8606223364. | |
16993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16994 | $as_echo_n "checking size of void *... " >&6; } | |
16995 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
16996 | $as_echo_n "(cached) " >&6 | |
16997 | else | |
16998 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
16999 | ||
17000 | else | |
17001 | if test "$ac_cv_type_void_p" = yes; then | |
17002 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
17003 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17004 | { as_fn_set_status 77 | |
17005 | as_fn_error "cannot compute sizeof (void *) | |
17006 | See \`config.log' for more details." "$LINENO" 5; }; } | |
17007 | else | |
17008 | ac_cv_sizeof_void_p=0 | |
17009 | fi | |
17010 | fi | |
17011 | ||
17012 | fi | |
17013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
17014 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
17015 | ||
17016 | ||
17017 | ||
17018 | cat >>confdefs.h <<_ACEOF | |
17019 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
17020 | _ACEOF | |
17021 | ||
17022 | ||
17023 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
17024 | want64=true | |
17025 | fi | |
17026 | fi | |
17027 | ||
81ecdfbb RW |
17028 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
17029 | do | |
17030 | if test "$targ_alias" = "all"; then | |
17031 | all_targets=true | |
17032 | else | |
17033 | # Canonicalize the secondary target names. | |
17034 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
17035 | if test -n "$result"; then | |
17036 | targ=$result | |
17037 | else | |
17038 | targ=$targ_alias | |
17039 | fi | |
17040 | ||
17041 | . ${srcdir}/configure.tgt | |
17042 | ||
17043 | if test "$targ" = "$target"; then | |
17044 | EMUL=$targ_emul | |
17045 | fi | |
17046 | ||
17047 | if test x${want64} = xfalse; then | |
17048 | . ${srcdir}/../bfd/config.bfd | |
17049 | fi | |
17050 | ||
17051 | if test x${want64} = xtrue; then | |
17052 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" | |
17053 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
17054 | fi | |
17055 | ||
17056 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do | |
17057 | case " $all_emuls " in | |
17058 | *" e${i}.o "*) ;; | |
17059 | *) | |
17060 | all_emuls="$all_emuls e${i}.o" | |
17061 | eval result=\$tdir_$i | |
17062 | test -z "$result" && result=$targ_alias | |
17063 | echo tdir_$i=$result >> tdirs | |
17064 | ;; | |
17065 | esac | |
17066 | done | |
17067 | ||
17068 | for i in $targ_emul $targ_extra_libpath; do | |
17069 | case " $all_libpath " in | |
17070 | *" ${i} "*) ;; | |
17071 | *) | |
17072 | if test -z "$all_libpath"; then | |
17073 | all_libpath=${i} | |
17074 | else | |
17075 | all_libpath="$all_libpath ${i}" | |
17076 | fi | |
17077 | ;; | |
17078 | esac | |
17079 | done | |
17080 | ||
17081 | for i in $targ_extra_ofiles; do | |
17082 | case " $all_emul_extras " in | |
17083 | *" ${i} "*) ;; | |
17084 | *) | |
17085 | all_emul_extras="$all_emul_extras ${i}" | |
17086 | ;; | |
17087 | esac | |
17088 | done | |
5063daf7 | 17089 | |
81ecdfbb RW |
17090 | fi |
17091 | done | |
17092 | ||
17093 | ||
17094 | ||
17095 | TDIRS=tdirs | |
17096 | ||
17097 | ||
17098 | if test x${all_targets} = xtrue; then | |
42ecbf5e DJ |
17099 | if test x${want64} = xtrue; then |
17100 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' | |
9d069ac3 | 17101 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)' |
42ecbf5e DJ |
17102 | else |
17103 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
9d069ac3 | 17104 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' |
42ecbf5e | 17105 | fi |
42ecbf5e DJ |
17106 | else |
17107 | EMULATION_OFILES=$all_emuls | |
17108 | EMUL_EXTRA_OFILES=$all_emul_extras | |
17109 | fi | |
17110 | ||
17111 | ||
17112 | ||
17113 | ||
17114 | EMULATION_LIBPATH=$all_libpath | |
17115 | ||
17116 | ||
17117 | if test x${enable_static} = xno; then | |
17118 | TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" | |
17119 | else | |
17120 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
17121 | fi | |
17122 | ||
17123 | ||
17124 | target_vendor=${target_vendor=$host_vendor} | |
17125 | case "$target_vendor" in | |
17126 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
17127 | *) EXTRA_SHLIB_EXTENSION= ;; | |
17128 | esac | |
17129 | ||
17130 | case "$target_os" in | |
17131 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
17132 | esac | |
17133 | ||
17134 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
17135 | ||
17136 | cat >>confdefs.h <<_ACEOF | |
17137 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
17138 | _ACEOF | |
17139 | ||
17140 | fi | |
17141 | ||
108a6f8e CD |
17142 | |
17143 | ||
17144 | ||
17145 | ||
31dd3154 | 17146 | |
81ecdfbb | 17147 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
da594c4a | 17148 | |
42ecbf5e DJ |
17149 | cat >confcache <<\_ACEOF |
17150 | # This file is a shell script that caches the results of configure | |
17151 | # tests run on this system so they can be shared between configure | |
17152 | # scripts and configure runs, see configure's option --config-cache. | |
17153 | # It is not useful on other systems. If it contains results you don't | |
17154 | # want to keep, you may remove or edit it. | |
17155 | # | |
17156 | # config.status only pays attention to the cache file if you give it | |
17157 | # the --recheck option to rerun configure. | |
17158 | # | |
17159 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17160 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17161 | # following values. | |
17162 | ||
17163 | _ACEOF | |
17164 | ||
17165 | # The following way of writing the cache mishandles newlines in values, | |
17166 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 17167 | # So, we kill variables containing newlines. |
42ecbf5e DJ |
17168 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17169 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
17170 | ( |
17171 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17172 | eval ac_val=\$$ac_var | |
17173 | case $ac_val in #( | |
17174 | *${as_nl}*) | |
17175 | case $ac_var in #( | |
17176 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17177 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17178 | esac | |
17179 | case $ac_var in #( | |
17180 | _ | IFS | as_nl) ;; #( | |
17181 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17182 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17183 | esac ;; | |
17184 | esac | |
17185 | done | |
17186 | ||
42ecbf5e | 17187 | (set) 2>&1 | |
81ecdfbb RW |
17188 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17189 | *${as_nl}ac_space=\ *) | |
17190 | # `set' does not quote correctly, so add quotes: double-quote | |
17191 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
42ecbf5e DJ |
17192 | sed -n \ |
17193 | "s/'/'\\\\''/g; | |
17194 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 17195 | ;; #( |
42ecbf5e DJ |
17196 | *) |
17197 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 17198 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 17199 | ;; |
81ecdfbb RW |
17200 | esac | |
17201 | sort | |
17202 | ) | | |
42ecbf5e | 17203 | sed ' |
81ecdfbb | 17204 | /^ac_cv_env_/b end |
42ecbf5e | 17205 | t clear |
81ecdfbb | 17206 | :clear |
42ecbf5e DJ |
17207 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17208 | t end | |
81ecdfbb RW |
17209 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17210 | :end' >>confcache | |
17211 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17212 | if test -w "$cache_file"; then | |
17213 | test "x$cache_file" != "x/dev/null" && | |
17214 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
17215 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
42ecbf5e DJ |
17216 | cat confcache >$cache_file |
17217 | else | |
81ecdfbb RW |
17218 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17219 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
42ecbf5e DJ |
17220 | fi |
17221 | fi | |
17222 | rm -f confcache | |
17223 | ||
17224 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17225 | # Let make expand exec_prefix. | |
17226 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17227 | ||
42ecbf5e DJ |
17228 | DEFS=-DHAVE_CONFIG_H |
17229 | ||
17230 | ac_libobjs= | |
17231 | ac_ltlibobjs= | |
17232 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17233 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
17234 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17235 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17236 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17237 | # will be set to the directory where LIBOBJS objects are built. | |
17238 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17239 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
42ecbf5e DJ |
17240 | done |
17241 | LIBOBJS=$ac_libobjs | |
17242 | ||
17243 | LTLIBOBJS=$ac_ltlibobjs | |
17244 | ||
17245 | ||
17246 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
17247 | as_fn_error "conditional \"AMDEP\" was never defined. |
17248 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e DJ |
17249 | fi |
17250 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
17251 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
17252 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17253 | fi | |
17254 | if test -n "$EXEEXT"; then | |
17255 | am__EXEEXT_TRUE= | |
17256 | am__EXEEXT_FALSE='#' | |
17257 | else | |
17258 | am__EXEEXT_TRUE='#' | |
17259 | am__EXEEXT_FALSE= | |
42ecbf5e | 17260 | fi |
81ecdfbb | 17261 | |
64ac50ac RW |
17262 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
17263 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
17264 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17265 | fi | |
3cb62297 L |
17266 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
17267 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. | |
17268 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17269 | fi | |
42ecbf5e | 17270 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
17271 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
17272 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e | 17273 | fi |
d5fbea21 | 17274 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
17275 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
17276 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 17277 | fi |
5d3236ee DK |
17278 | if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then |
17279 | as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined. | |
17280 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17281 | fi | |
42ecbf5e DJ |
17282 | |
17283 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 17284 | ac_write_fail=0 |
42ecbf5e DJ |
17285 | ac_clean_files_save=$ac_clean_files |
17286 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
17287 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17288 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17289 | as_write_fail=0 | |
17290 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
42ecbf5e DJ |
17291 | #! $SHELL |
17292 | # Generated by $as_me. | |
17293 | # Run this file to recreate the current configuration. | |
17294 | # Compiler output produced by configure, useful for debugging | |
17295 | # configure, is in config.log if it exists. | |
17296 | ||
17297 | debug=false | |
17298 | ac_cs_recheck=false | |
17299 | ac_cs_silent=false | |
42ecbf5e | 17300 | |
81ecdfbb RW |
17301 | SHELL=\${CONFIG_SHELL-$SHELL} |
17302 | export SHELL | |
17303 | _ASEOF | |
17304 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17305 | ## -------------------- ## | |
17306 | ## M4sh Initialization. ## | |
17307 | ## -------------------- ## | |
42ecbf5e | 17308 | |
81ecdfbb RW |
17309 | # Be more Bourne compatible |
17310 | DUALCASE=1; export DUALCASE # for MKS sh | |
17311 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
17312 | emulate sh |
17313 | NULLCMD=: | |
81ecdfbb | 17314 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
17315 | # is contrary to our usage. Disable this feature. |
17316 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
17317 | setopt NO_GLOB_SUBST |
17318 | else | |
17319 | case `(set -o) 2>/dev/null` in #( | |
17320 | *posix*) : | |
17321 | set -o posix ;; #( | |
17322 | *) : | |
17323 | ;; | |
17324 | esac | |
42ecbf5e | 17325 | fi |
42ecbf5e | 17326 | |
81ecdfbb RW |
17327 | |
17328 | as_nl=' | |
17329 | ' | |
17330 | export as_nl | |
17331 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17332 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17333 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17334 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17335 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17336 | # but without wasting forks for bash or zsh. | |
17337 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17338 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17339 | as_echo='print -r --' | |
17340 | as_echo_n='print -rn --' | |
17341 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17342 | as_echo='printf %s\n' | |
17343 | as_echo_n='printf %s' | |
17344 | else | |
17345 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17346 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17347 | as_echo_n='/usr/ucb/echo -n' | |
17348 | else | |
17349 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17350 | as_echo_n_body='eval | |
17351 | arg=$1; | |
17352 | case $arg in #( | |
17353 | *"$as_nl"*) | |
17354 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17355 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17356 | esac; | |
17357 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17358 | ' | |
17359 | export as_echo_n_body | |
17360 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17361 | fi | |
17362 | export as_echo_body | |
17363 | as_echo='sh -c $as_echo_body as_echo' | |
17364 | fi | |
17365 | ||
17366 | # The user is always right. | |
17367 | if test "${PATH_SEPARATOR+set}" != set; then | |
17368 | PATH_SEPARATOR=: | |
17369 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17370 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17371 | PATH_SEPARATOR=';' | |
17372 | } | |
42ecbf5e DJ |
17373 | fi |
17374 | ||
17375 | ||
81ecdfbb RW |
17376 | # IFS |
17377 | # We need space, tab and new line, in precisely that order. Quoting is | |
17378 | # there to prevent editors from complaining about space-tab. | |
17379 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17380 | # splitting by setting IFS to empty value.) | |
17381 | IFS=" "" $as_nl" | |
17382 | ||
17383 | # Find who we are. Look in the path if we contain no directory separator. | |
17384 | case $0 in #(( | |
17385 | *[\\/]* ) as_myself=$0 ;; | |
17386 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17387 | for as_dir in $PATH | |
17388 | do | |
17389 | IFS=$as_save_IFS | |
17390 | test -z "$as_dir" && as_dir=. | |
17391 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17392 | done | |
17393 | IFS=$as_save_IFS | |
17394 | ||
17395 | ;; | |
17396 | esac | |
17397 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17398 | # in which case we are not to be found in the path. | |
17399 | if test "x$as_myself" = x; then | |
17400 | as_myself=$0 | |
17401 | fi | |
17402 | if test ! -f "$as_myself"; then | |
17403 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17404 | exit 1 | |
17405 | fi | |
17406 | ||
17407 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17408 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17409 | # suppresses any "Segmentation fault" message there. '((' could | |
17410 | # trigger a bug in pdksh 5.2.14. | |
17411 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17412 | do eval test x\${$as_var+set} = xset \ | |
17413 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17414 | done | |
42ecbf5e DJ |
17415 | PS1='$ ' |
17416 | PS2='> ' | |
17417 | PS4='+ ' | |
17418 | ||
17419 | # NLS nuisances. | |
81ecdfbb RW |
17420 | LC_ALL=C |
17421 | export LC_ALL | |
17422 | LANGUAGE=C | |
17423 | export LANGUAGE | |
17424 | ||
17425 | # CDPATH. | |
17426 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17427 | ||
17428 | ||
17429 | # as_fn_error ERROR [LINENO LOG_FD] | |
17430 | # --------------------------------- | |
17431 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
17432 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
17433 | # script with status $?, using 1 if that was 0. | |
17434 | as_fn_error () | |
17435 | { | |
17436 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
17437 | if test "$3"; then | |
17438 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17439 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
42ecbf5e | 17440 | fi |
81ecdfbb RW |
17441 | $as_echo "$as_me: error: $1" >&2 |
17442 | as_fn_exit $as_status | |
17443 | } # as_fn_error | |
17444 | ||
17445 | ||
17446 | # as_fn_set_status STATUS | |
17447 | # ----------------------- | |
17448 | # Set $? to STATUS, without forking. | |
17449 | as_fn_set_status () | |
17450 | { | |
17451 | return $1 | |
17452 | } # as_fn_set_status | |
17453 | ||
17454 | # as_fn_exit STATUS | |
17455 | # ----------------- | |
17456 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17457 | as_fn_exit () | |
17458 | { | |
17459 | set +e | |
17460 | as_fn_set_status $1 | |
17461 | exit $1 | |
17462 | } # as_fn_exit | |
17463 | ||
17464 | # as_fn_unset VAR | |
17465 | # --------------- | |
17466 | # Portably unset VAR. | |
17467 | as_fn_unset () | |
17468 | { | |
17469 | { eval $1=; unset $1;} | |
17470 | } | |
17471 | as_unset=as_fn_unset | |
17472 | # as_fn_append VAR VALUE | |
17473 | # ---------------------- | |
17474 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17475 | # advantage of any shell optimizations that allow amortized linear growth over | |
17476 | # repeated appends, instead of the typical quadratic growth present in naive | |
17477 | # implementations. | |
17478 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17479 | eval 'as_fn_append () | |
17480 | { | |
17481 | eval $1+=\$2 | |
17482 | }' | |
17483 | else | |
17484 | as_fn_append () | |
17485 | { | |
17486 | eval $1=\$$1\$2 | |
17487 | } | |
17488 | fi # as_fn_append | |
17489 | ||
17490 | # as_fn_arith ARG... | |
17491 | # ------------------ | |
17492 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17493 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17494 | # must be portable across $(()) and expr. | |
17495 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17496 | eval 'as_fn_arith () | |
17497 | { | |
17498 | as_val=$(( $* )) | |
17499 | }' | |
17500 | else | |
17501 | as_fn_arith () | |
17502 | { | |
17503 | as_val=`expr "$@" || test $? -eq 1` | |
17504 | } | |
17505 | fi # as_fn_arith | |
17506 | ||
42ecbf5e | 17507 | |
81ecdfbb RW |
17508 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17509 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
17510 | as_expr=expr |
17511 | else | |
17512 | as_expr=false | |
17513 | fi | |
17514 | ||
81ecdfbb | 17515 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
17516 | as_basename=basename |
17517 | else | |
17518 | as_basename=false | |
17519 | fi | |
17520 | ||
81ecdfbb RW |
17521 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17522 | as_dirname=dirname | |
17523 | else | |
17524 | as_dirname=false | |
17525 | fi | |
42ecbf5e | 17526 | |
81ecdfbb | 17527 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
17528 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
17529 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
17530 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
17531 | $as_echo X/"$0" | | |
17532 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17533 | s//\1/ | |
17534 | q | |
17535 | } | |
17536 | /^X\/\(\/\/\)$/{ | |
17537 | s//\1/ | |
17538 | q | |
17539 | } | |
17540 | /^X\/\(\/\).*/{ | |
17541 | s//\1/ | |
17542 | q | |
17543 | } | |
17544 | s/.*/./; q'` | |
42ecbf5e | 17545 | |
42ecbf5e DJ |
17546 | # Avoid depending upon Character Ranges. |
17547 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17548 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17549 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17550 | as_cr_digits='0123456789' | |
17551 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17552 | ||
81ecdfbb RW |
17553 | ECHO_C= ECHO_N= ECHO_T= |
17554 | case `echo -n x` in #((((( | |
17555 | -n*) | |
17556 | case `echo 'xy\c'` in | |
17557 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17558 | xy) ECHO_C='\c';; | |
17559 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17560 | ECHO_T=' ';; | |
17561 | esac;; | |
17562 | *) | |
17563 | ECHO_N='-n';; | |
42ecbf5e | 17564 | esac |
252b5132 | 17565 | |
81ecdfbb RW |
17566 | rm -f conf$$ conf$$.exe conf$$.file |
17567 | if test -d conf$$.dir; then | |
17568 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 17569 | else |
81ecdfbb RW |
17570 | rm -f conf$$.dir |
17571 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 17572 | fi |
81ecdfbb RW |
17573 | if (echo >conf$$.file) 2>/dev/null; then |
17574 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 17575 | as_ln_s='ln -s' |
81ecdfbb RW |
17576 | # ... but there are two gotchas: |
17577 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17578 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
17579 | # In both cases, we have to default to `cp -p'. | |
17580 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
17581 | as_ln_s='cp -p' | |
17582 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
17583 | as_ln_s=ln | |
17584 | else | |
17585 | as_ln_s='cp -p' | |
252b5132 | 17586 | fi |
e5a52504 | 17587 | else |
42ecbf5e | 17588 | as_ln_s='cp -p' |
e5a52504 | 17589 | fi |
81ecdfbb RW |
17590 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17591 | rmdir conf$$.dir 2>/dev/null | |
17592 | ||
17593 | ||
17594 | # as_fn_mkdir_p | |
17595 | # ------------- | |
17596 | # Create "$as_dir" as a directory, including parents if necessary. | |
17597 | as_fn_mkdir_p () | |
17598 | { | |
17599 | ||
17600 | case $as_dir in #( | |
17601 | -*) as_dir=./$as_dir;; | |
17602 | esac | |
17603 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17604 | as_dirs= | |
17605 | while :; do | |
17606 | case $as_dir in #( | |
17607 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17608 | *) as_qdir=$as_dir;; | |
17609 | esac | |
17610 | as_dirs="'$as_qdir' $as_dirs" | |
17611 | as_dir=`$as_dirname -- "$as_dir" || | |
17612 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17613 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17614 | X"$as_dir" : 'X\(//\)$' \| \ | |
17615 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17616 | $as_echo X"$as_dir" | | |
17617 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17618 | s//\1/ | |
17619 | q | |
17620 | } | |
17621 | /^X\(\/\/\)[^/].*/{ | |
17622 | s//\1/ | |
17623 | q | |
17624 | } | |
17625 | /^X\(\/\/\)$/{ | |
17626 | s//\1/ | |
17627 | q | |
17628 | } | |
17629 | /^X\(\/\).*/{ | |
17630 | s//\1/ | |
17631 | q | |
17632 | } | |
17633 | s/.*/./; q'` | |
17634 | test -d "$as_dir" && break | |
17635 | done | |
17636 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
17637 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
17638 | ||
252b5132 | 17639 | |
81ecdfbb | 17640 | } # as_fn_mkdir_p |
42ecbf5e | 17641 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 17642 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
17643 | else |
17644 | test -d ./-p && rmdir ./-p | |
17645 | as_mkdir_p=false | |
17646 | fi | |
252b5132 | 17647 | |
81ecdfbb RW |
17648 | if test -x / >/dev/null 2>&1; then |
17649 | as_test_x='test -x' | |
17650 | else | |
17651 | if ls -dL / >/dev/null 2>&1; then | |
17652 | as_ls_L_option=L | |
17653 | else | |
17654 | as_ls_L_option= | |
17655 | fi | |
17656 | as_test_x=' | |
17657 | eval sh -c '\'' | |
17658 | if test -d "$1"; then | |
17659 | test -d "$1/."; | |
17660 | else | |
17661 | case $1 in #( | |
17662 | -*)set "./$1";; | |
17663 | esac; | |
17664 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
17665 | ???[sx]*):;;*)false;;esac;fi | |
17666 | '\'' sh | |
17667 | ' | |
17668 | fi | |
17669 | as_executable_p=$as_test_x | |
252b5132 | 17670 | |
42ecbf5e DJ |
17671 | # Sed expression to map a string onto a valid CPP name. |
17672 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 17673 | |
42ecbf5e DJ |
17674 | # Sed expression to map a string onto a valid variable name. |
17675 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 17676 | |
e5a52504 | 17677 | |
42ecbf5e | 17678 | exec 6>&1 |
81ecdfbb RW |
17679 | ## ----------------------------------- ## |
17680 | ## Main body of $CONFIG_STATUS script. ## | |
17681 | ## ----------------------------------- ## | |
17682 | _ASEOF | |
17683 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
e5a52504 | 17684 | |
81ecdfbb RW |
17685 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17686 | # Save the log message, to keep $0 and so on meaningful, and to | |
42ecbf5e | 17687 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
17688 | # values after options handling. |
17689 | ac_log=" | |
91dc4e0a | 17690 | This file was extended by ld $as_me 2.25.51, which was |
81ecdfbb | 17691 | generated by GNU Autoconf 2.64. Invocation command line was |
42ecbf5e DJ |
17692 | |
17693 | CONFIG_FILES = $CONFIG_FILES | |
17694 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17695 | CONFIG_LINKS = $CONFIG_LINKS | |
17696 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17697 | $ $0 $@ | |
e5a52504 | 17698 | |
81ecdfbb RW |
17699 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17700 | " | |
17701 | ||
42ecbf5e DJ |
17702 | _ACEOF |
17703 | ||
81ecdfbb RW |
17704 | case $ac_config_files in *" |
17705 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17706 | esac | |
e5a52504 | 17707 | |
81ecdfbb RW |
17708 | case $ac_config_headers in *" |
17709 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17710 | esac | |
42ecbf5e | 17711 | |
42ecbf5e | 17712 | |
81ecdfbb RW |
17713 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17714 | # Files that config.status was made for. | |
17715 | config_files="$ac_config_files" | |
17716 | config_headers="$ac_config_headers" | |
17717 | config_commands="$ac_config_commands" | |
42ecbf5e | 17718 | |
81ecdfbb | 17719 | _ACEOF |
42ecbf5e | 17720 | |
81ecdfbb | 17721 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 17722 | ac_cs_usage="\ |
81ecdfbb RW |
17723 | \`$as_me' instantiates files and other configuration actions |
17724 | from templates according to the current configuration. Unless the files | |
17725 | and actions are specified as TAGs, all are instantiated by default. | |
42ecbf5e | 17726 | |
81ecdfbb | 17727 | Usage: $0 [OPTION]... [TAG]... |
42ecbf5e DJ |
17728 | |
17729 | -h, --help print this help, then exit | |
81ecdfbb RW |
17730 | -V, --version print version number and configuration settings, then exit |
17731 | -q, --quiet, --silent | |
17732 | do not print progress messages | |
42ecbf5e DJ |
17733 | -d, --debug don't remove temporary files |
17734 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
17735 | --file=FILE[:TEMPLATE] |
17736 | instantiate the configuration file FILE | |
17737 | --header=FILE[:TEMPLATE] | |
17738 | instantiate the configuration header FILE | |
42ecbf5e DJ |
17739 | |
17740 | Configuration files: | |
17741 | $config_files | |
17742 | ||
17743 | Configuration headers: | |
17744 | $config_headers | |
17745 | ||
17746 | Configuration commands: | |
17747 | $config_commands | |
17748 | ||
81ecdfbb | 17749 | Report bugs to the package provider." |
42ecbf5e | 17750 | |
81ecdfbb RW |
17751 | _ACEOF |
17752 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
42ecbf5e | 17753 | ac_cs_version="\\ |
91dc4e0a | 17754 | ld config.status 2.25.51 |
81ecdfbb RW |
17755 | configured by $0, generated by GNU Autoconf 2.64, |
17756 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
42ecbf5e | 17757 | |
81ecdfbb | 17758 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
17759 | This config.status script is free software; the Free Software Foundation |
17760 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
17761 | |
17762 | ac_pwd='$ac_pwd' | |
17763 | srcdir='$srcdir' | |
17764 | INSTALL='$INSTALL' | |
17765 | MKDIR_P='$MKDIR_P' | |
17766 | AWK='$AWK' | |
17767 | test -n "\$AWK" || AWK=awk | |
42ecbf5e DJ |
17768 | _ACEOF |
17769 | ||
81ecdfbb RW |
17770 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17771 | # The default lists apply if the user does not specify any file. | |
42ecbf5e DJ |
17772 | ac_need_defaults=: |
17773 | while test $# != 0 | |
17774 | do | |
17775 | case $1 in | |
17776 | --*=*) | |
81ecdfbb RW |
17777 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17778 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
42ecbf5e | 17779 | ac_shift=: |
252b5132 | 17780 | ;; |
81ecdfbb | 17781 | *) |
42ecbf5e DJ |
17782 | ac_option=$1 |
17783 | ac_optarg=$2 | |
17784 | ac_shift=shift | |
252b5132 | 17785 | ;; |
42ecbf5e | 17786 | esac |
252b5132 | 17787 | |
42ecbf5e DJ |
17788 | case $ac_option in |
17789 | # Handling of the options. | |
42ecbf5e DJ |
17790 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17791 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
17792 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
17793 | $as_echo "$ac_cs_version"; exit ;; | |
17794 | --debug | --debu | --deb | --de | --d | -d ) | |
42ecbf5e DJ |
17795 | debug=: ;; |
17796 | --file | --fil | --fi | --f ) | |
17797 | $ac_shift | |
81ecdfbb RW |
17798 | case $ac_optarg in |
17799 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17800 | esac | |
17801 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
42ecbf5e DJ |
17802 | ac_need_defaults=false;; |
17803 | --header | --heade | --head | --hea ) | |
17804 | $ac_shift | |
81ecdfbb RW |
17805 | case $ac_optarg in |
17806 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17807 | esac | |
17808 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
42ecbf5e | 17809 | ac_need_defaults=false;; |
81ecdfbb RW |
17810 | --he | --h) |
17811 | # Conflict between --help and --header | |
17812 | as_fn_error "ambiguous option: \`$1' | |
17813 | Try \`$0 --help' for more information.";; | |
17814 | --help | --hel | -h ) | |
17815 | $as_echo "$ac_cs_usage"; exit ;; | |
42ecbf5e DJ |
17816 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17817 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17818 | ac_cs_silent=: ;; | |
252b5132 | 17819 | |
42ecbf5e | 17820 | # This is an error. |
81ecdfbb RW |
17821 | -*) as_fn_error "unrecognized option: \`$1' |
17822 | Try \`$0 --help' for more information." ;; | |
252b5132 | 17823 | |
81ecdfbb RW |
17824 | *) as_fn_append ac_config_targets " $1" |
17825 | ac_need_defaults=false ;; | |
252b5132 | 17826 | |
42ecbf5e DJ |
17827 | esac |
17828 | shift | |
17829 | done | |
d15b04bd | 17830 | |
42ecbf5e | 17831 | ac_configure_extra_args= |
e5a52504 | 17832 | |
42ecbf5e DJ |
17833 | if $ac_cs_silent; then |
17834 | exec 6>/dev/null | |
17835 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17836 | fi | |
e5a52504 | 17837 | |
42ecbf5e | 17838 | _ACEOF |
81ecdfbb | 17839 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42ecbf5e | 17840 | if \$ac_cs_recheck; then |
81ecdfbb RW |
17841 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
17842 | shift | |
17843 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17844 | CONFIG_SHELL='$SHELL' | |
17845 | export CONFIG_SHELL | |
17846 | exec "\$@" | |
42ecbf5e DJ |
17847 | fi |
17848 | ||
17849 | _ACEOF | |
81ecdfbb RW |
17850 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17851 | exec 5>>config.log | |
17852 | { | |
17853 | echo | |
17854 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17855 | ## Running $as_me. ## | |
17856 | _ASBOX | |
17857 | $as_echo "$ac_log" | |
17858 | } >&5 | |
42ecbf5e | 17859 | |
81ecdfbb RW |
17860 | _ACEOF |
17861 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
252b5132 | 17862 | # |
81ecdfbb | 17863 | # INIT-COMMANDS |
252b5132 | 17864 | # |
42ecbf5e | 17865 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
17866 | |
17867 | ||
17868 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17869 | # if CDPATH is set. | |
17870 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17871 | ||
17872 | sed_quote_subst='$sed_quote_subst' | |
17873 | double_quote_subst='$double_quote_subst' | |
17874 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
17875 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
17876 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
17877 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
17878 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
17879 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
17880 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
17881 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
17882 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
17883 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
17884 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
17885 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
17886 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
17887 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
17888 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
17889 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
17890 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
17891 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
17892 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
17893 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
17894 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
17895 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
17896 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
17897 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
17898 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
17899 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
17900 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
17901 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
17902 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
17903 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
17904 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
17905 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
17906 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
17907 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
17908 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
17909 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
17910 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
17911 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
17912 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17913 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17914 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17915 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
17916 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
17917 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
17918 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
17919 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
17920 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
17921 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
17922 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
17923 | 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"`' | |
17924 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
17925 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
17926 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
17927 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
17928 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
17929 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
17930 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
17931 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
17932 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
17933 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
17934 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
17935 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
17936 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
17937 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
17938 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
17939 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17940 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
17941 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
17942 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17943 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17944 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
17945 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
17946 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17947 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17948 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17949 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
17950 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17951 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
17952 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17953 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17954 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17955 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
17956 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
17957 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
17958 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
17959 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
17960 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17961 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
17962 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
17963 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
17964 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
17965 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
17966 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
17967 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
17968 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
17969 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
17970 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
17971 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
17972 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
17973 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
17974 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
17975 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
17976 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17977 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
17978 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
17979 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
17980 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
17981 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
17982 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17983 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17984 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
17985 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
17986 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
17987 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
17988 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
17989 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
17990 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
17991 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
17992 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
17993 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
17994 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
3cb62297 L |
17995 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
17996 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
17997 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
17998 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
17999 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18000 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18001 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
18002 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18003 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18004 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18005 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
18006 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
18007 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18008 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
18009 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
18010 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
18011 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
18012 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
18013 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
18014 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18015 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18016 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
18017 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18018 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18019 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18020 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18021 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18022 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18023 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18024 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18025 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18026 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18027 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18028 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
18029 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
18030 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
18031 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
18032 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
18033 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
18034 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
18035 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
18036 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18037 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
18038 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18039 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18040 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18041 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18042 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18043 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
18044 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
18045 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18046 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18047 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18048 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18049 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
18050 | |
18051 | LTCC='$LTCC' | |
18052 | LTCFLAGS='$LTCFLAGS' | |
18053 | compiler='$compiler_DEFAULT' | |
18054 | ||
3725885a RW |
18055 | # A function that is used when there is no print builtin or printf. |
18056 | func_fallback_echo () | |
18057 | { | |
18058 | eval 'cat <<_LTECHO_EOF | |
18059 | \$1 | |
18060 | _LTECHO_EOF' | |
18061 | } | |
18062 | ||
d7040cdb | 18063 | # Quote evaled strings. |
3725885a RW |
18064 | for var in SHELL \ |
18065 | ECHO \ | |
18066 | SED \ | |
d7040cdb SE |
18067 | GREP \ |
18068 | EGREP \ | |
18069 | FGREP \ | |
18070 | LD \ | |
18071 | NM \ | |
18072 | LN_S \ | |
18073 | lt_SP2NL \ | |
18074 | lt_NL2SP \ | |
18075 | reload_flag \ | |
b214d478 | 18076 | OBJDUMP \ |
d7040cdb SE |
18077 | deplibs_check_method \ |
18078 | file_magic_cmd \ | |
18079 | AR \ | |
18080 | AR_FLAGS \ | |
18081 | STRIP \ | |
18082 | RANLIB \ | |
18083 | CC \ | |
18084 | CFLAGS \ | |
18085 | compiler \ | |
18086 | lt_cv_sys_global_symbol_pipe \ | |
18087 | lt_cv_sys_global_symbol_to_cdecl \ | |
18088 | lt_cv_sys_global_symbol_to_c_name_address \ | |
b214d478 | 18089 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
18090 | lt_prog_compiler_no_builtin_flag \ |
18091 | lt_prog_compiler_wl \ | |
18092 | lt_prog_compiler_pic \ | |
18093 | lt_prog_compiler_static \ | |
18094 | lt_cv_prog_compiler_c_o \ | |
18095 | need_locks \ | |
b214d478 SE |
18096 | DSYMUTIL \ |
18097 | NMEDIT \ | |
18098 | LIPO \ | |
18099 | OTOOL \ | |
18100 | OTOOL64 \ | |
d7040cdb SE |
18101 | shrext_cmds \ |
18102 | export_dynamic_flag_spec \ | |
18103 | whole_archive_flag_spec \ | |
18104 | compiler_needs_object \ | |
18105 | with_gnu_ld \ | |
18106 | allow_undefined_flag \ | |
18107 | no_undefined_flag \ | |
18108 | hardcode_libdir_flag_spec \ | |
18109 | hardcode_libdir_flag_spec_ld \ | |
18110 | hardcode_libdir_separator \ | |
18111 | fix_srcfile_path \ | |
18112 | exclude_expsyms \ | |
18113 | include_expsyms \ | |
18114 | file_list_spec \ | |
18115 | variables_saved_for_relink \ | |
18116 | libname_spec \ | |
18117 | library_names_spec \ | |
18118 | soname_spec \ | |
3725885a | 18119 | install_override_mode \ |
d7040cdb SE |
18120 | finish_eval \ |
18121 | old_striplib \ | |
3cb62297 L |
18122 | striplib \ |
18123 | compiler_lib_search_dirs \ | |
18124 | predep_objects \ | |
18125 | postdep_objects \ | |
18126 | predeps \ | |
18127 | postdeps \ | |
18128 | compiler_lib_search_path \ | |
18129 | LD_CXX \ | |
18130 | reload_flag_CXX \ | |
18131 | compiler_CXX \ | |
18132 | lt_prog_compiler_no_builtin_flag_CXX \ | |
18133 | lt_prog_compiler_wl_CXX \ | |
18134 | lt_prog_compiler_pic_CXX \ | |
18135 | lt_prog_compiler_static_CXX \ | |
18136 | lt_cv_prog_compiler_c_o_CXX \ | |
18137 | export_dynamic_flag_spec_CXX \ | |
18138 | whole_archive_flag_spec_CXX \ | |
18139 | compiler_needs_object_CXX \ | |
18140 | with_gnu_ld_CXX \ | |
18141 | allow_undefined_flag_CXX \ | |
18142 | no_undefined_flag_CXX \ | |
18143 | hardcode_libdir_flag_spec_CXX \ | |
18144 | hardcode_libdir_flag_spec_ld_CXX \ | |
18145 | hardcode_libdir_separator_CXX \ | |
18146 | fix_srcfile_path_CXX \ | |
18147 | exclude_expsyms_CXX \ | |
18148 | include_expsyms_CXX \ | |
18149 | file_list_spec_CXX \ | |
18150 | compiler_lib_search_dirs_CXX \ | |
18151 | predep_objects_CXX \ | |
18152 | postdep_objects_CXX \ | |
18153 | predeps_CXX \ | |
18154 | postdeps_CXX \ | |
18155 | compiler_lib_search_path_CXX; do | |
3725885a | 18156 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18157 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18158 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18159 | ;; |
18160 | *) | |
18161 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18162 | ;; | |
18163 | esac | |
18164 | done | |
18165 | ||
18166 | # Double-quote double-evaled strings. | |
18167 | for var in reload_cmds \ | |
18168 | old_postinstall_cmds \ | |
18169 | old_postuninstall_cmds \ | |
18170 | old_archive_cmds \ | |
18171 | extract_expsyms_cmds \ | |
18172 | old_archive_from_new_cmds \ | |
18173 | old_archive_from_expsyms_cmds \ | |
18174 | archive_cmds \ | |
18175 | archive_expsym_cmds \ | |
18176 | module_cmds \ | |
18177 | module_expsym_cmds \ | |
18178 | export_symbols_cmds \ | |
18179 | prelink_cmds \ | |
18180 | postinstall_cmds \ | |
18181 | postuninstall_cmds \ | |
18182 | finish_cmds \ | |
18183 | sys_lib_search_path_spec \ | |
3cb62297 L |
18184 | sys_lib_dlsearch_path_spec \ |
18185 | reload_cmds_CXX \ | |
18186 | old_archive_cmds_CXX \ | |
18187 | old_archive_from_new_cmds_CXX \ | |
18188 | old_archive_from_expsyms_cmds_CXX \ | |
18189 | archive_cmds_CXX \ | |
18190 | archive_expsym_cmds_CXX \ | |
18191 | module_cmds_CXX \ | |
18192 | module_expsym_cmds_CXX \ | |
18193 | export_symbols_cmds_CXX \ | |
18194 | prelink_cmds_CXX; do | |
3725885a | 18195 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18196 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18197 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18198 | ;; |
18199 | *) | |
18200 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18201 | ;; | |
18202 | esac | |
18203 | done | |
18204 | ||
d7040cdb SE |
18205 | ac_aux_dir='$ac_aux_dir' |
18206 | xsi_shell='$xsi_shell' | |
18207 | lt_shell_append='$lt_shell_append' | |
18208 | ||
18209 | # See if we are running on zsh, and set the options which allow our | |
18210 | # commands through without removal of \ escapes INIT. | |
18211 | if test -n "\${ZSH_VERSION+set}" ; then | |
18212 | setopt NO_GLOB_SUBST | |
18213 | fi | |
18214 | ||
18215 | ||
18216 | PACKAGE='$PACKAGE' | |
18217 | VERSION='$VERSION' | |
18218 | TIMESTAMP='$TIMESTAMP' | |
18219 | RM='$RM' | |
18220 | ofile='$ofile' | |
18221 | ||
18222 | ||
18223 | ||
3cb62297 L |
18224 | |
18225 | ||
20e95c23 DJ |
18226 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
18227 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
18228 | # from automake. | |
18229 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
18230 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
18231 | LINGUAS="${LINGUAS-%UNSET%}" | |
18232 | ||
42ecbf5e DJ |
18233 | |
18234 | _ACEOF | |
18235 | ||
81ecdfbb | 18236 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 18237 | |
81ecdfbb | 18238 | # Handling of arguments. |
42ecbf5e | 18239 | for ac_config_target in $ac_config_targets |
252b5132 | 18240 | do |
81ecdfbb RW |
18241 | case $ac_config_target in |
18242 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
81ecdfbb | 18243 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
b879806f | 18244 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
81ecdfbb RW |
18245 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
18246 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18247 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
18248 | ||
18249 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
252b5132 RH |
18250 | esac |
18251 | done | |
18252 | ||
81ecdfbb | 18253 | |
42ecbf5e DJ |
18254 | # If the user did not use the arguments to specify the items to instantiate, |
18255 | # then the envvar interface is used. Set only those that are not. | |
18256 | # We use the long form for the default assignment because of an extremely | |
18257 | # bizarre bug on SunOS 4.1.3. | |
18258 | if $ac_need_defaults; then | |
18259 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18260 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18261 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18262 | fi | |
18263 | ||
18264 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 18265 | # simply because there is no reason against having it here, and in addition, |
42ecbf5e | 18266 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
18267 | # Hook for its removal unless debugging. |
18268 | # Note that there is a small window in which the directory will not be cleaned: | |
18269 | # after its creation but before its name has been assigned to `$tmp'. | |
42ecbf5e DJ |
18270 | $debug || |
18271 | { | |
81ecdfbb RW |
18272 | tmp= |
18273 | trap 'exit_status=$? | |
18274 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18275 | ' 0 | |
18276 | trap 'as_fn_exit 1' 1 2 13 15 | |
42ecbf5e | 18277 | } |
42ecbf5e | 18278 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 18279 | |
42ecbf5e | 18280 | { |
81ecdfbb | 18281 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
42ecbf5e DJ |
18282 | test -n "$tmp" && test -d "$tmp" |
18283 | } || | |
18284 | { | |
81ecdfbb RW |
18285 | tmp=./conf$$-$RANDOM |
18286 | (umask 077 && mkdir "$tmp") | |
18287 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
18288 | ||
18289 | # Set up the scripts for CONFIG_FILES section. | |
18290 | # No need to generate them if there are no CONFIG_FILES. | |
18291 | # This happens for instance with `./config.status config.h'. | |
18292 | if test -n "$CONFIG_FILES"; then | |
18293 | ||
18294 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
18295 | ac_cs_awk_getline=: | |
18296 | ac_cs_awk_pipe_init= | |
18297 | ac_cs_awk_read_file=' | |
18298 | while ((getline aline < (F[key])) > 0) | |
18299 | print(aline) | |
18300 | close(F[key])' | |
18301 | ac_cs_awk_pipe_fini= | |
18302 | else | |
18303 | ac_cs_awk_getline=false | |
18304 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
18305 | ac_cs_awk_read_file=' | |
18306 | print "|#_!!_#|" | |
18307 | print "cat " F[key] " &&" | |
18308 | '$ac_cs_awk_pipe_init | |
18309 | # The final `:' finishes the AND list. | |
18310 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
18311 | fi | |
18312 | ac_cr=`echo X | tr X '\015'` | |
18313 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18314 | # But we know of no other shell where ac_cr would be empty at this | |
18315 | # point, so we can use a bashism as a fallback. | |
18316 | if test "x$ac_cr" = x; then | |
18317 | eval ac_cr=\$\'\\r\' | |
18318 | fi | |
18319 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18320 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18321 | ac_cs_awk_cr='\r' | |
18322 | else | |
18323 | ac_cs_awk_cr=$ac_cr | |
18324 | fi | |
18325 | ||
18326 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
18327 | _ACEOF | |
18328 | ||
18329 | # Create commands to substitute file output variables. | |
42ecbf5e | 18330 | { |
81ecdfbb RW |
18331 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
18332 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
18333 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
18334 | echo "_ACAWK" && | |
18335 | echo "_ACEOF" | |
18336 | } >conf$$files.sh && | |
18337 | . ./conf$$files.sh || | |
18338 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18339 | rm -f conf$$files.sh | |
e5a52504 | 18340 | |
81ecdfbb RW |
18341 | { |
18342 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18343 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18344 | echo "_ACEOF" | |
18345 | } >conf$$subs.sh || | |
18346 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18347 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
18348 | ac_delim='%!_!# ' | |
18349 | for ac_last_try in false false false false false :; do | |
18350 | . ./conf$$subs.sh || | |
18351 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18352 | ||
18353 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18354 | if test $ac_delim_n = $ac_delim_num; then | |
18355 | break | |
18356 | elif $ac_last_try; then | |
18357 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18358 | else | |
18359 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18360 | fi | |
18361 | done | |
18362 | rm -f conf$$subs.sh | |
18363 | ||
18364 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18365 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18366 | _ACEOF | |
18367 | sed -n ' | |
18368 | h | |
18369 | s/^/S["/; s/!.*/"]=/ | |
18370 | p | |
18371 | g | |
18372 | s/^[^!]*!// | |
18373 | :repl | |
18374 | t repl | |
18375 | s/'"$ac_delim"'$// | |
18376 | t delim | |
18377 | :nl | |
18378 | h | |
18379 | s/\(.\{148\}\).*/\1/ | |
18380 | t more1 | |
18381 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18382 | p | |
18383 | n | |
18384 | b repl | |
18385 | :more1 | |
18386 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18387 | p | |
18388 | g | |
18389 | s/.\{148\}// | |
18390 | t nl | |
18391 | :delim | |
18392 | h | |
18393 | s/\(.\{148\}\).*/\1/ | |
18394 | t more2 | |
18395 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18396 | p | |
18397 | b | |
18398 | :more2 | |
18399 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18400 | p | |
18401 | g | |
18402 | s/.\{148\}// | |
18403 | t delim | |
18404 | ' <conf$$subs.awk | sed ' | |
18405 | /^[^""]/{ | |
18406 | N | |
18407 | s/\n// | |
18408 | } | |
18409 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18410 | rm -f conf$$subs.awk | |
18411 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18412 | _ACAWK | |
18413 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18414 | for (key in S) S_is_set[key] = 1 | |
18415 | FS = "\a" | |
18416 | \$ac_cs_awk_pipe_init | |
18417 | } | |
18418 | { | |
18419 | line = $ 0 | |
18420 | nfields = split(line, field, "@") | |
18421 | substed = 0 | |
18422 | len = length(field[1]) | |
18423 | for (i = 2; i < nfields; i++) { | |
18424 | key = field[i] | |
18425 | keylen = length(key) | |
18426 | if (S_is_set[key]) { | |
18427 | value = S[key] | |
18428 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18429 | len += length(value) + length(field[++i]) | |
18430 | substed = 1 | |
18431 | } else | |
18432 | len += 1 + keylen | |
18433 | } | |
18434 | if (nfields == 3 && !substed) { | |
18435 | key = field[2] | |
18436 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
18437 | \$ac_cs_awk_read_file | |
18438 | next | |
18439 | } | |
18440 | } | |
18441 | print line | |
18442 | } | |
18443 | \$ac_cs_awk_pipe_fini | |
18444 | _ACAWK | |
18445 | _ACEOF | |
18446 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18447 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18448 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18449 | else | |
18450 | cat | |
18451 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18452 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
42ecbf5e | 18453 | _ACEOF |
d15b04bd | 18454 | |
81ecdfbb RW |
18455 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18456 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18457 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18458 | # (actually we leave an empty line to preserve line numbers). | |
18459 | if test "x$srcdir" = x.; then | |
18460 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18461 | s/:*\$(srcdir):*/:/ | |
18462 | s/:*\${srcdir}:*/:/ | |
18463 | s/:*@srcdir@:*/:/ | |
18464 | s/^\([^=]*=[ ]*\):*/\1/ | |
18465 | s/:*$// | |
18466 | s/^[^=]*=[ ]*$// | |
18467 | }' | |
18468 | fi | |
18469 | ||
18470 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18471 | fi # test -n "$CONFIG_FILES" | |
42ecbf5e | 18472 | |
81ecdfbb RW |
18473 | # Set up the scripts for CONFIG_HEADERS section. |
18474 | # No need to generate them if there are no CONFIG_HEADERS. | |
18475 | # This happens for instance with `./config.status Makefile'. | |
18476 | if test -n "$CONFIG_HEADERS"; then | |
18477 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18478 | BEGIN { | |
18479 | _ACEOF | |
42ecbf5e | 18480 | |
81ecdfbb RW |
18481 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18482 | # here-document in config.status, that substitutes the proper values into | |
18483 | # config.h.in to produce config.h. | |
252b5132 | 18484 | |
81ecdfbb RW |
18485 | # Create a delimiter string that does not exist in confdefs.h, to ease |
18486 | # handling of long lines. | |
18487 | ac_delim='%!_!# ' | |
18488 | for ac_last_try in false false :; do | |
18489 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18490 | if test -z "$ac_t"; then | |
18491 | break | |
18492 | elif $ac_last_try; then | |
18493 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
18494 | else | |
18495 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18496 | fi | |
18497 | done | |
18498 | ||
18499 | # For the awk script, D is an array of macro values keyed by name, | |
18500 | # likewise P contains macro parameters if any. Preserve backslash | |
18501 | # newline sequences. | |
18502 | ||
18503 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18504 | sed -n ' | |
18505 | s/.\{148\}/&'"$ac_delim"'/g | |
18506 | t rset | |
18507 | :rset | |
18508 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18509 | t def | |
18510 | d | |
18511 | :def | |
18512 | s/\\$// | |
18513 | t bsnl | |
18514 | s/["\\]/\\&/g | |
18515 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18516 | D["\1"]=" \3"/p | |
18517 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18518 | d | |
18519 | :bsnl | |
18520 | s/["\\]/\\&/g | |
18521 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18522 | D["\1"]=" \3\\\\\\n"\\/p | |
18523 | t cont | |
18524 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18525 | t cont | |
18526 | d | |
18527 | :cont | |
18528 | n | |
18529 | s/.\{148\}/&'"$ac_delim"'/g | |
18530 | t clear | |
18531 | :clear | |
18532 | s/\\$// | |
18533 | t bsnlc | |
18534 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18535 | d | |
18536 | :bsnlc | |
18537 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18538 | b cont | |
18539 | ' <confdefs.h | sed ' | |
18540 | s/'"$ac_delim"'/"\\\ | |
18541 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18542 | ||
18543 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18544 | for (key in D) D_is_set[key] = 1 | |
18545 | FS = "\a" | |
18546 | } | |
18547 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18548 | line = \$ 0 | |
18549 | split(line, arg, " ") | |
18550 | if (arg[1] == "#") { | |
18551 | defundef = arg[2] | |
18552 | mac1 = arg[3] | |
18553 | } else { | |
18554 | defundef = substr(arg[1], 2) | |
18555 | mac1 = arg[2] | |
18556 | } | |
18557 | split(mac1, mac2, "(") #) | |
18558 | macro = mac2[1] | |
18559 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18560 | if (D_is_set[macro]) { | |
18561 | # Preserve the white space surrounding the "#". | |
18562 | print prefix "define", macro P[macro] D[macro] | |
18563 | next | |
18564 | } else { | |
18565 | # Replace #undef with comments. This is necessary, for example, | |
18566 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18567 | # on some systems where configure will not decide to define it. | |
18568 | if (defundef == "undef") { | |
18569 | print "/*", prefix defundef, macro, "*/" | |
18570 | next | |
18571 | } | |
18572 | } | |
18573 | } | |
18574 | { print } | |
18575 | _ACAWK | |
42ecbf5e | 18576 | _ACEOF |
81ecdfbb RW |
18577 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18578 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
18579 | fi # test -n "$CONFIG_HEADERS" | |
42ecbf5e | 18580 | |
81ecdfbb RW |
18581 | |
18582 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
18583 | shift | |
18584 | for ac_tag | |
18585 | do | |
18586 | case $ac_tag in | |
18587 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18588 | esac | |
18589 | case $ac_mode$ac_tag in | |
18590 | :[FHL]*:*);; | |
18591 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
18592 | :[FH]-) ac_tag=-:-;; | |
18593 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18594 | esac | |
18595 | ac_save_IFS=$IFS | |
18596 | IFS=: | |
18597 | set x $ac_tag | |
18598 | IFS=$ac_save_IFS | |
18599 | shift | |
18600 | ac_file=$1 | |
18601 | shift | |
18602 | ||
18603 | case $ac_mode in | |
18604 | :L) ac_source=$1;; | |
18605 | :[FH]) | |
18606 | ac_file_inputs= | |
18607 | for ac_f | |
18608 | do | |
18609 | case $ac_f in | |
18610 | -) ac_f="$tmp/stdin";; | |
18611 | *) # Look for the file first in the build tree, then in the source tree | |
18612 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18613 | # because $ac_f cannot contain `:'. | |
18614 | test -f "$ac_f" || | |
18615 | case $ac_f in | |
18616 | [\\/$]*) false;; | |
18617 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18618 | esac || | |
18619 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
18620 | esac | |
18621 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18622 | as_fn_append ac_file_inputs " '$ac_f'" | |
18623 | done | |
18624 | ||
18625 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18626 | # use $as_me), people would be surprised to read: | |
18627 | # /* config.h. Generated by config.status. */ | |
18628 | configure_input='Generated from '` | |
18629 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18630 | `' by configure.' | |
18631 | if test x"$ac_file" != x-; then | |
18632 | configure_input="$ac_file. $configure_input" | |
18633 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18634 | $as_echo "$as_me: creating $ac_file" >&6;} | |
252b5132 | 18635 | fi |
81ecdfbb RW |
18636 | # Neutralize special characters interpreted by sed in replacement strings. |
18637 | case $configure_input in #( | |
18638 | *\&* | *\|* | *\\* ) | |
18639 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18640 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18641 | *) ac_sed_conf_input=$configure_input;; | |
18642 | esac | |
252b5132 | 18643 | |
81ecdfbb RW |
18644 | case $ac_tag in |
18645 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
18646 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
18647 | esac | |
18648 | ;; | |
252b5132 RH |
18649 | esac |
18650 | ||
81ecdfbb | 18651 | ac_dir=`$as_dirname -- "$ac_file" || |
42ecbf5e DJ |
18652 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18653 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18654 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18655 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18656 | $as_echo X"$ac_file" | | |
18657 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18658 | s//\1/ | |
18659 | q | |
18660 | } | |
18661 | /^X\(\/\/\)[^/].*/{ | |
18662 | s//\1/ | |
18663 | q | |
18664 | } | |
18665 | /^X\(\/\/\)$/{ | |
18666 | s//\1/ | |
18667 | q | |
18668 | } | |
18669 | /^X\(\/\).*/{ | |
18670 | s//\1/ | |
18671 | q | |
18672 | } | |
18673 | s/.*/./; q'` | |
18674 | as_dir="$ac_dir"; as_fn_mkdir_p | |
42ecbf5e DJ |
18675 | ac_builddir=. |
18676 | ||
81ecdfbb RW |
18677 | case "$ac_dir" in |
18678 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18679 | *) | |
18680 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18681 | # A ".." for each directory in $ac_dir_suffix. | |
18682 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18683 | case $ac_top_builddir_sub in | |
18684 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18685 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18686 | esac ;; | |
18687 | esac | |
18688 | ac_abs_top_builddir=$ac_pwd | |
18689 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18690 | # for backward compatibility: | |
18691 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 18692 | |
42ecbf5e | 18693 | case $srcdir in |
81ecdfbb | 18694 | .) # We are building in place. |
42ecbf5e | 18695 | ac_srcdir=. |
81ecdfbb RW |
18696 | ac_top_srcdir=$ac_top_builddir_sub |
18697 | ac_abs_top_srcdir=$ac_pwd ;; | |
18698 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 18699 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
18700 | ac_top_srcdir=$srcdir |
18701 | ac_abs_top_srcdir=$srcdir ;; | |
18702 | *) # Relative name. | |
18703 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18704 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18705 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 18706 | esac |
81ecdfbb | 18707 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
42ecbf5e | 18708 | |
252b5132 | 18709 | |
81ecdfbb RW |
18710 | case $ac_mode in |
18711 | :F) | |
18712 | # | |
18713 | # CONFIG_FILE | |
18714 | # | |
e5a52504 | 18715 | |
42ecbf5e DJ |
18716 | case $INSTALL in |
18717 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
18718 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
18719 | esac | |
18720 | ac_MKDIR_P=$MKDIR_P | |
18721 | case $MKDIR_P in | |
18722 | [\\/$]* | ?:[\\/]* ) ;; | |
18723 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
d15b04bd | 18724 | esac |
81ecdfbb | 18725 | _ACEOF |
e5a52504 | 18726 | |
81ecdfbb RW |
18727 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18728 | # If the template does not know about datarootdir, expand it. | |
18729 | # FIXME: This hack should be removed a few years after 2.60. | |
18730 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18731 | ac_sed_dataroot=' | |
18732 | /datarootdir/ { | |
18733 | p | |
18734 | q | |
18735 | } | |
18736 | /@datadir@/p | |
18737 | /@docdir@/p | |
18738 | /@infodir@/p | |
18739 | /@localedir@/p | |
18740 | /@mandir@/p' | |
18741 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18742 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18743 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18745 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18746 | _ACEOF | |
18747 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18748 | ac_datarootdir_hack=' | |
18749 | s&@datadir@&$datadir&g | |
18750 | s&@docdir@&$docdir&g | |
18751 | s&@infodir@&$infodir&g | |
18752 | s&@localedir@&$localedir&g | |
18753 | s&@mandir@&$mandir&g | |
18754 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18755 | esac | |
42ecbf5e | 18756 | _ACEOF |
81ecdfbb RW |
18757 | |
18758 | # Neutralize VPATH when `$srcdir' = `.'. | |
18759 | # Shell code in configure.ac might set extrasub. | |
18760 | # FIXME: do we really want to maintain this feature? | |
18761 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18762 | ac_sed_extra="$ac_vpsub | |
42ecbf5e DJ |
18763 | $extrasub |
18764 | _ACEOF | |
81ecdfbb | 18765 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e DJ |
18766 | :t |
18767 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
18768 | s|@configure_input@|$ac_sed_conf_input|;t t |
18769 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18770 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18771 | s&@srcdir@&$ac_srcdir&;t t | |
18772 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18773 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18774 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18775 | s&@builddir@&$ac_builddir&;t t | |
18776 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18777 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18778 | s&@INSTALL@&$ac_INSTALL&;t t | |
18779 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18780 | $ac_datarootdir_hack | |
18781 | " | |
18782 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
18783 | if $ac_cs_awk_getline; then | |
18784 | $AWK -f "$tmp/subs.awk" | |
18785 | else | |
18786 | $AWK -f "$tmp/subs.awk" | $SHELL | |
18787 | fi >$tmp/out \ | |
18788 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18789 | ||
18790 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
18791 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
18792 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
18793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18794 | which seems to be undefined. Please make sure it is defined." >&5 | |
18795 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18796 | which seems to be undefined. Please make sure it is defined." >&2;} | |
18797 | ||
18798 | rm -f "$tmp/stdin" | |
42ecbf5e | 18799 | case $ac_file in |
81ecdfbb RW |
18800 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
18801 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
18802 | esac \ | |
18803 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18804 | ;; | |
18805 | :H) | |
18806 | # | |
18807 | # CONFIG_HEADER | |
18808 | # | |
42ecbf5e | 18809 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
18810 | { |
18811 | $as_echo "/* $configure_input */" \ | |
18812 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
18813 | } >"$tmp/config.h" \ | |
18814 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18815 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
18816 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
18817 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
42ecbf5e | 18818 | else |
81ecdfbb RW |
18819 | rm -f "$ac_file" |
18820 | mv "$tmp/config.h" "$ac_file" \ | |
18821 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 18822 | fi |
42ecbf5e | 18823 | else |
81ecdfbb RW |
18824 | $as_echo "/* $configure_input */" \ |
18825 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
18826 | || as_fn_error "could not create -" "$LINENO" 5 | |
e5a52504 | 18827 | fi |
81ecdfbb RW |
18828 | # Compute "$ac_file"'s index in $config_headers. |
18829 | _am_arg="$ac_file" | |
42ecbf5e DJ |
18830 | _am_stamp_count=1 |
18831 | for _am_header in $config_headers :; do | |
18832 | case $_am_header in | |
81ecdfbb | 18833 | $_am_arg | $_am_arg:* ) |
42ecbf5e DJ |
18834 | break ;; |
18835 | * ) | |
18836 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18837 | esac | |
18838 | done | |
81ecdfbb RW |
18839 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
18840 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18841 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18842 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18843 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18844 | $as_echo X"$_am_arg" | | |
18845 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18846 | s//\1/ | |
18847 | q | |
18848 | } | |
18849 | /^X\(\/\/\)[^/].*/{ | |
18850 | s//\1/ | |
18851 | q | |
18852 | } | |
18853 | /^X\(\/\/\)$/{ | |
18854 | s//\1/ | |
18855 | q | |
18856 | } | |
18857 | /^X\(\/\).*/{ | |
18858 | s//\1/ | |
18859 | q | |
18860 | } | |
18861 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18862 | ;; | |
42ecbf5e | 18863 | |
81ecdfbb RW |
18864 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
18865 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18866 | ;; | |
18867 | esac | |
42ecbf5e DJ |
18868 | |
18869 | ||
81ecdfbb RW |
18870 | case $ac_file$ac_mode in |
18871 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
18872 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
18873 | # are listed without --file. Let's play safe and only enable the eval | |
18874 | # if we detect the quoting. | |
18875 | case $CONFIG_FILES in | |
18876 | *\'*) eval set x "$CONFIG_FILES" ;; | |
18877 | *) set x $CONFIG_FILES ;; | |
18878 | esac | |
18879 | shift | |
18880 | for mf | |
18881 | do | |
18882 | # Strip MF so we end up with the name of the file. | |
18883 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18884 | # Check whether this is an Automake generated Makefile or not. | |
18885 | # We used to match only the files named `Makefile.in', but | |
18886 | # some people rename them; so instead we look at the file content. | |
18887 | # Grep'ing the first line is not enough: some people post-process | |
18888 | # each Makefile.in and add a new line on top of each file to say so. | |
18889 | # Grep'ing the whole file is not good either: AIX grep has a line | |
18890 | # limit of 2048, but all sed's we know have understand at least 4000. | |
18891 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
18892 | dirpart=`$as_dirname -- "$mf" || | |
42ecbf5e DJ |
18893 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18894 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18895 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18896 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
18897 | $as_echo X"$mf" | | |
18898 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18899 | s//\1/ | |
18900 | q | |
18901 | } | |
18902 | /^X\(\/\/\)[^/].*/{ | |
18903 | s//\1/ | |
18904 | q | |
18905 | } | |
18906 | /^X\(\/\/\)$/{ | |
18907 | s//\1/ | |
18908 | q | |
18909 | } | |
18910 | /^X\(\/\).*/{ | |
18911 | s//\1/ | |
18912 | q | |
18913 | } | |
18914 | s/.*/./; q'` | |
18915 | else | |
18916 | continue | |
18917 | fi | |
18918 | # Extract the definition of DEPDIR, am__include, and am__quote | |
18919 | # from the Makefile without running `make'. | |
18920 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18921 | test -z "$DEPDIR" && continue | |
18922 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18923 | test -z "am__include" && continue | |
18924 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18925 | # When using ansi2knr, U may be empty or an underscore; expand it | |
18926 | U=`sed -n 's/^U = //p' < "$mf"` | |
18927 | # Find all dependency output files, they are included files with | |
18928 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18929 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18930 | # expansion. | |
18931 | for file in `sed -n " | |
18932 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18933 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
18934 | # Make sure the directory exists. | |
18935 | test -f "$dirpart/$file" && continue | |
18936 | fdir=`$as_dirname -- "$file" || | |
42ecbf5e DJ |
18937 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18938 | X"$file" : 'X\(//\)[^/]' \| \ | |
18939 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18940 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
18941 | $as_echo X"$file" | | |
18942 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18943 | s//\1/ | |
18944 | q | |
18945 | } | |
18946 | /^X\(\/\/\)[^/].*/{ | |
18947 | s//\1/ | |
18948 | q | |
18949 | } | |
18950 | /^X\(\/\/\)$/{ | |
18951 | s//\1/ | |
18952 | q | |
18953 | } | |
18954 | /^X\(\/\).*/{ | |
18955 | s//\1/ | |
18956 | q | |
18957 | } | |
18958 | s/.*/./; q'` | |
18959 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
18960 | # echo "creating $dirpart/$file" | |
18961 | echo '# dummy' > "$dirpart/$file" | |
42ecbf5e | 18962 | done |
42ecbf5e | 18963 | done |
81ecdfbb | 18964 | } |
d7040cdb | 18965 | ;; |
81ecdfbb | 18966 | "libtool":C) |
d7040cdb SE |
18967 | |
18968 | # See if we are running on zsh, and set the options which allow our | |
18969 | # commands through without removal of \ escapes. | |
18970 | if test -n "${ZSH_VERSION+set}" ; then | |
18971 | setopt NO_GLOB_SUBST | |
18972 | fi | |
18973 | ||
18974 | cfgfile="${ofile}T" | |
18975 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18976 | $RM "$cfgfile" | |
18977 | ||
18978 | cat <<_LT_EOF >> "$cfgfile" | |
18979 | #! $SHELL | |
18980 | ||
18981 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
b214d478 | 18982 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
18983 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18984 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18985 | # | |
b214d478 | 18986 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 18987 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
b214d478 | 18988 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 18989 | # |
b214d478 | 18990 | # This file is part of GNU Libtool. |
d7040cdb | 18991 | # |
b214d478 SE |
18992 | # GNU Libtool is free software; you can redistribute it and/or |
18993 | # modify it under the terms of the GNU General Public License as | |
18994 | # published by the Free Software Foundation; either version 2 of | |
18995 | # the License, or (at your option) any later version. | |
d7040cdb | 18996 | # |
b214d478 SE |
18997 | # As a special exception to the GNU General Public License, |
18998 | # if you distribute this file as part of a program or library that | |
18999 | # is built using GNU Libtool, you may include this file under the | |
19000 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 19001 | # |
b214d478 SE |
19002 | # GNU Libtool is distributed in the hope that it will be useful, |
19003 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19004 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19005 | # GNU General Public License for more details. | |
d7040cdb | 19006 | # |
b214d478 SE |
19007 | # You should have received a copy of the GNU General Public License |
19008 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19009 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19010 | # obtained by writing to the Free Software Foundation, Inc., | |
19011 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
19012 | |
19013 | ||
19014 | # The names of the tagged configurations supported by this script. | |
3cb62297 | 19015 | available_tags="CXX " |
d7040cdb SE |
19016 | |
19017 | # ### BEGIN LIBTOOL CONFIG | |
19018 | ||
19019 | # Which release of libtool.m4 was used? | |
19020 | macro_version=$macro_version | |
19021 | macro_revision=$macro_revision | |
19022 | ||
19023 | # Whether or not to build shared libraries. | |
19024 | build_libtool_libs=$enable_shared | |
19025 | ||
19026 | # Whether or not to build static libraries. | |
19027 | build_old_libs=$enable_static | |
19028 | ||
19029 | # What type of objects to build. | |
19030 | pic_mode=$pic_mode | |
19031 | ||
19032 | # Whether or not to optimize for fast installation. | |
19033 | fast_install=$enable_fast_install | |
19034 | ||
3725885a RW |
19035 | # Shell to use when invoking shell scripts. |
19036 | SHELL=$lt_SHELL | |
19037 | ||
19038 | # An echo program that protects backslashes. | |
19039 | ECHO=$lt_ECHO | |
19040 | ||
d7040cdb SE |
19041 | # The host system. |
19042 | host_alias=$host_alias | |
19043 | host=$host | |
19044 | host_os=$host_os | |
19045 | ||
19046 | # The build system. | |
19047 | build_alias=$build_alias | |
19048 | build=$build | |
19049 | build_os=$build_os | |
19050 | ||
19051 | # A sed program that does not truncate output. | |
19052 | SED=$lt_SED | |
19053 | ||
19054 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19055 | Xsed="\$SED -e 1s/^X//" | |
19056 | ||
19057 | # A grep program that handles long lines. | |
19058 | GREP=$lt_GREP | |
19059 | ||
19060 | # An ERE matcher. | |
19061 | EGREP=$lt_EGREP | |
19062 | ||
19063 | # A literal string matcher. | |
19064 | FGREP=$lt_FGREP | |
19065 | ||
19066 | # A BSD- or MS-compatible name lister. | |
19067 | NM=$lt_NM | |
19068 | ||
19069 | # Whether we need soft or hard links. | |
19070 | LN_S=$lt_LN_S | |
19071 | ||
19072 | # What is the maximum length of a command? | |
19073 | max_cmd_len=$max_cmd_len | |
19074 | ||
19075 | # Object file suffix (normally "o"). | |
19076 | objext=$ac_objext | |
19077 | ||
19078 | # Executable file suffix (normally ""). | |
19079 | exeext=$exeext | |
19080 | ||
19081 | # whether the shell understands "unset". | |
19082 | lt_unset=$lt_unset | |
19083 | ||
19084 | # turn spaces into newlines. | |
19085 | SP2NL=$lt_lt_SP2NL | |
19086 | ||
19087 | # turn newlines into spaces. | |
19088 | NL2SP=$lt_lt_NL2SP | |
19089 | ||
b214d478 SE |
19090 | # An object symbol dumper. |
19091 | OBJDUMP=$lt_OBJDUMP | |
19092 | ||
d7040cdb SE |
19093 | # Method to check whether dependent libraries are shared objects. |
19094 | deplibs_check_method=$lt_deplibs_check_method | |
19095 | ||
19096 | # Command to use when deplibs_check_method == "file_magic". | |
19097 | file_magic_cmd=$lt_file_magic_cmd | |
19098 | ||
19099 | # The archiver. | |
19100 | AR=$lt_AR | |
19101 | AR_FLAGS=$lt_AR_FLAGS | |
19102 | ||
19103 | # A symbol stripping program. | |
19104 | STRIP=$lt_STRIP | |
19105 | ||
19106 | # Commands used to install an old-style archive. | |
19107 | RANLIB=$lt_RANLIB | |
19108 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19109 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19110 | ||
3725885a RW |
19111 | # Whether to use a lock for old archive extraction. |
19112 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19113 | ||
d7040cdb SE |
19114 | # A C compiler. |
19115 | LTCC=$lt_CC | |
19116 | ||
19117 | # LTCC compiler flags. | |
19118 | LTCFLAGS=$lt_CFLAGS | |
19119 | ||
19120 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19121 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19122 | ||
19123 | # Transform the output of nm in a proper C declaration. | |
19124 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19125 | ||
19126 | # Transform the output of nm in a C name address pair. | |
19127 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19128 | ||
b214d478 SE |
19129 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
19130 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19131 | ||
d7040cdb SE |
19132 | # The name of the directory that contains temporary libtool files. |
19133 | objdir=$objdir | |
19134 | ||
d7040cdb SE |
19135 | # Used to examine libraries when file_magic_cmd begins with "file". |
19136 | MAGIC_CMD=$MAGIC_CMD | |
19137 | ||
19138 | # Must we lock files when doing compilation? | |
19139 | need_locks=$lt_need_locks | |
19140 | ||
b214d478 SE |
19141 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19142 | DSYMUTIL=$lt_DSYMUTIL | |
19143 | ||
19144 | # Tool to change global to local symbols on Mac OS X. | |
19145 | NMEDIT=$lt_NMEDIT | |
19146 | ||
19147 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19148 | LIPO=$lt_LIPO | |
19149 | ||
19150 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19151 | OTOOL=$lt_OTOOL | |
19152 | ||
19153 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19154 | OTOOL64=$lt_OTOOL64 | |
19155 | ||
d7040cdb SE |
19156 | # Old archive suffix (normally "a"). |
19157 | libext=$libext | |
19158 | ||
19159 | # Shared library suffix (normally ".so"). | |
19160 | shrext_cmds=$lt_shrext_cmds | |
19161 | ||
19162 | # The commands to extract the exported symbol list from a shared archive. | |
19163 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19164 | ||
19165 | # Variables whose values should be saved in libtool wrapper scripts and | |
19166 | # restored at link time. | |
19167 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19168 | ||
19169 | # Do we need the "lib" prefix for modules? | |
19170 | need_lib_prefix=$need_lib_prefix | |
19171 | ||
19172 | # Do we need a version for libraries? | |
19173 | need_version=$need_version | |
19174 | ||
19175 | # Library versioning type. | |
19176 | version_type=$version_type | |
19177 | ||
19178 | # Shared library runtime path variable. | |
19179 | runpath_var=$runpath_var | |
19180 | ||
19181 | # Shared library path variable. | |
19182 | shlibpath_var=$shlibpath_var | |
19183 | ||
19184 | # Is shlibpath searched before the hard-coded library search path? | |
19185 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19186 | ||
19187 | # Format of library name prefix. | |
19188 | libname_spec=$lt_libname_spec | |
19189 | ||
19190 | # List of archive names. First name is the real one, the rest are links. | |
19191 | # The last name is the one that the linker finds with -lNAME | |
19192 | library_names_spec=$lt_library_names_spec | |
19193 | ||
19194 | # The coded name of the library, if different from the real name. | |
19195 | soname_spec=$lt_soname_spec | |
19196 | ||
3725885a RW |
19197 | # Permission mode override for installation of shared libraries. |
19198 | install_override_mode=$lt_install_override_mode | |
19199 | ||
d7040cdb SE |
19200 | # Command to use after installation of a shared archive. |
19201 | postinstall_cmds=$lt_postinstall_cmds | |
19202 | ||
19203 | # Command to use after uninstallation of a shared archive. | |
19204 | postuninstall_cmds=$lt_postuninstall_cmds | |
19205 | ||
19206 | # Commands used to finish a libtool library installation in a directory. | |
19207 | finish_cmds=$lt_finish_cmds | |
19208 | ||
19209 | # As "finish_cmds", except a single script fragment to be evaled but | |
19210 | # not shown. | |
19211 | finish_eval=$lt_finish_eval | |
19212 | ||
19213 | # Whether we should hardcode library paths into libraries. | |
19214 | hardcode_into_libs=$hardcode_into_libs | |
19215 | ||
19216 | # Compile-time system search path for libraries. | |
19217 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19218 | ||
19219 | # Run-time system search path for libraries. | |
19220 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19221 | ||
19222 | # Whether dlopen is supported. | |
19223 | dlopen_support=$enable_dlopen | |
19224 | ||
19225 | # Whether dlopen of programs is supported. | |
19226 | dlopen_self=$enable_dlopen_self | |
19227 | ||
19228 | # Whether dlopen of statically linked programs is supported. | |
19229 | dlopen_self_static=$enable_dlopen_self_static | |
19230 | ||
19231 | # Commands to strip libraries. | |
19232 | old_striplib=$lt_old_striplib | |
19233 | striplib=$lt_striplib | |
19234 | ||
19235 | ||
19236 | # The linker used to build libraries. | |
19237 | LD=$lt_LD | |
19238 | ||
3725885a RW |
19239 | # How to create reloadable object files. |
19240 | reload_flag=$lt_reload_flag | |
19241 | reload_cmds=$lt_reload_cmds | |
19242 | ||
d7040cdb SE |
19243 | # Commands used to build an old-style archive. |
19244 | old_archive_cmds=$lt_old_archive_cmds | |
19245 | ||
19246 | # A language specific compiler. | |
19247 | CC=$lt_compiler | |
19248 | ||
19249 | # Is the compiler the GNU compiler? | |
19250 | with_gcc=$GCC | |
19251 | ||
19252 | # Compiler flag to turn off builtin functions. | |
19253 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19254 | ||
19255 | # How to pass a linker flag through the compiler. | |
19256 | wl=$lt_lt_prog_compiler_wl | |
19257 | ||
19258 | # Additional compiler flags for building library objects. | |
19259 | pic_flag=$lt_lt_prog_compiler_pic | |
19260 | ||
19261 | # Compiler flag to prevent dynamic linking. | |
19262 | link_static_flag=$lt_lt_prog_compiler_static | |
19263 | ||
19264 | # Does compiler simultaneously support -c and -o options? | |
19265 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19266 | ||
19267 | # Whether or not to add -lc for building shared libraries. | |
19268 | build_libtool_need_lc=$archive_cmds_need_lc | |
19269 | ||
19270 | # Whether or not to disallow shared libs when runtime libs are static. | |
19271 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19272 | ||
19273 | # Compiler flag to allow reflexive dlopens. | |
19274 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19275 | ||
19276 | # Compiler flag to generate shared objects directly from archives. | |
19277 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19278 | ||
19279 | # Whether the compiler copes with passing no objects directly. | |
19280 | compiler_needs_object=$lt_compiler_needs_object | |
19281 | ||
19282 | # Create an old-style archive from a shared archive. | |
19283 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19284 | ||
19285 | # Create a temporary old-style archive to link instead of a shared archive. | |
19286 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19287 | ||
19288 | # Commands used to build a shared archive. | |
19289 | archive_cmds=$lt_archive_cmds | |
19290 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19291 | ||
19292 | # Commands used to build a loadable module if different from building | |
19293 | # a shared archive. | |
19294 | module_cmds=$lt_module_cmds | |
19295 | module_expsym_cmds=$lt_module_expsym_cmds | |
19296 | ||
19297 | # Whether we are building with GNU ld or not. | |
19298 | with_gnu_ld=$lt_with_gnu_ld | |
19299 | ||
19300 | # Flag that allows shared libraries with undefined symbols to be built. | |
19301 | allow_undefined_flag=$lt_allow_undefined_flag | |
19302 | ||
19303 | # Flag that enforces no undefined symbols. | |
19304 | no_undefined_flag=$lt_no_undefined_flag | |
19305 | ||
19306 | # Flag to hardcode \$libdir into a binary during linking. | |
19307 | # This must work even if \$libdir does not exist | |
19308 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19309 | ||
19310 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19311 | # during linking. This must work even if \$libdir does not exist. | |
19312 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19313 | ||
19314 | # Whether we need a single "-rpath" flag with a separated argument. | |
19315 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19316 | ||
19317 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19318 | # DIR into the resulting binary. | |
19319 | hardcode_direct=$hardcode_direct | |
19320 | ||
19321 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19322 | # DIR into the resulting binary and the resulting library dependency is | |
19323 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19324 | # library is relocated. | |
19325 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19326 | ||
19327 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19328 | # into the resulting binary. | |
19329 | hardcode_minus_L=$hardcode_minus_L | |
19330 | ||
19331 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19332 | # into the resulting binary. | |
19333 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19334 | ||
19335 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19336 | # into the library and all subsequent libraries and executables linked | |
19337 | # against it. | |
19338 | hardcode_automatic=$hardcode_automatic | |
19339 | ||
19340 | # Set to yes if linker adds runtime paths of dependent libraries | |
19341 | # to runtime path list. | |
19342 | inherit_rpath=$inherit_rpath | |
19343 | ||
19344 | # Whether libtool must link a program against all its dependency libraries. | |
19345 | link_all_deplibs=$link_all_deplibs | |
19346 | ||
19347 | # Fix the shell variable \$srcfile for the compiler. | |
19348 | fix_srcfile_path=$lt_fix_srcfile_path | |
19349 | ||
19350 | # Set to "yes" if exported symbols are required. | |
19351 | always_export_symbols=$always_export_symbols | |
19352 | ||
19353 | # The commands to list exported symbols. | |
19354 | export_symbols_cmds=$lt_export_symbols_cmds | |
19355 | ||
19356 | # Symbols that should not be listed in the preloaded symbols. | |
19357 | exclude_expsyms=$lt_exclude_expsyms | |
19358 | ||
19359 | # Symbols that must always be exported. | |
19360 | include_expsyms=$lt_include_expsyms | |
19361 | ||
19362 | # Commands necessary for linking programs (against libraries) with templates. | |
19363 | prelink_cmds=$lt_prelink_cmds | |
19364 | ||
19365 | # Specify filename containing input files. | |
19366 | file_list_spec=$lt_file_list_spec | |
19367 | ||
19368 | # How to hardcode a shared library path into an executable. | |
19369 | hardcode_action=$hardcode_action | |
19370 | ||
3cb62297 L |
19371 | # The directories searched by this compiler when creating a shared library. |
19372 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19373 | ||
19374 | # Dependencies to place before and after the objects being linked to | |
19375 | # create a shared library. | |
19376 | predep_objects=$lt_predep_objects | |
19377 | postdep_objects=$lt_postdep_objects | |
19378 | predeps=$lt_predeps | |
19379 | postdeps=$lt_postdeps | |
19380 | ||
19381 | # The library search path used internally by the compiler when linking | |
19382 | # a shared library. | |
19383 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19384 | ||
d7040cdb SE |
19385 | # ### END LIBTOOL CONFIG |
19386 | ||
19387 | _LT_EOF | |
19388 | ||
19389 | case $host_os in | |
19390 | aix3*) | |
19391 | cat <<\_LT_EOF >> "$cfgfile" | |
19392 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19393 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19394 | # vanish in a puff of smoke. | |
19395 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19396 | COLLECT_NAMES= | |
19397 | export COLLECT_NAMES | |
19398 | fi | |
19399 | _LT_EOF | |
19400 | ;; | |
19401 | esac | |
19402 | ||
19403 | ||
19404 | ltmain="$ac_aux_dir/ltmain.sh" | |
19405 | ||
19406 | ||
19407 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19408 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19409 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19410 | # is reportedly fixed, but why not run on old versions too? | |
19411 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19412 | || (rm -f "$cfgfile"; exit 1) | |
19413 | ||
19414 | case $xsi_shell in | |
19415 | yes) | |
19416 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19417 | |
d7040cdb SE |
19418 | # func_dirname file append nondir_replacement |
19419 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19420 | # otherwise set result to NONDIR_REPLACEMENT. | |
19421 | func_dirname () | |
19422 | { | |
19423 | case ${1} in | |
19424 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19425 | * ) func_dirname_result="${3}" ;; | |
19426 | esac | |
19427 | } | |
19428 | ||
19429 | # func_basename file | |
19430 | func_basename () | |
19431 | { | |
19432 | func_basename_result="${1##*/}" | |
19433 | } | |
19434 | ||
b214d478 SE |
19435 | # func_dirname_and_basename file append nondir_replacement |
19436 | # perform func_basename and func_dirname in a single function | |
19437 | # call: | |
19438 | # dirname: Compute the dirname of FILE. If nonempty, | |
19439 | # add APPEND to the result, otherwise set result | |
19440 | # to NONDIR_REPLACEMENT. | |
19441 | # value returned in "$func_dirname_result" | |
19442 | # basename: Compute filename of FILE. | |
19443 | # value retuned in "$func_basename_result" | |
19444 | # Implementation must be kept synchronized with func_dirname | |
19445 | # and func_basename. For efficiency, we do not delegate to | |
19446 | # those functions but instead duplicate the functionality here. | |
19447 | func_dirname_and_basename () | |
19448 | { | |
19449 | case ${1} in | |
19450 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19451 | * ) func_dirname_result="${3}" ;; | |
19452 | esac | |
19453 | func_basename_result="${1##*/}" | |
19454 | } | |
19455 | ||
d7040cdb SE |
19456 | # func_stripname prefix suffix name |
19457 | # strip PREFIX and SUFFIX off of NAME. | |
19458 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19459 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19460 | # dot (in which case that matches only a dot). | |
19461 | func_stripname () | |
19462 | { | |
19463 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19464 | # positional parameters, so assign one to ordinary parameter first. | |
19465 | func_stripname_result=${3} | |
19466 | func_stripname_result=${func_stripname_result#"${1}"} | |
19467 | func_stripname_result=${func_stripname_result%"${2}"} | |
19468 | } | |
19469 | ||
19470 | # func_opt_split | |
19471 | func_opt_split () | |
19472 | { | |
19473 | func_opt_split_opt=${1%%=*} | |
19474 | func_opt_split_arg=${1#*=} | |
19475 | } | |
19476 | ||
19477 | # func_lo2o object | |
19478 | func_lo2o () | |
19479 | { | |
19480 | case ${1} in | |
19481 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19482 | *) func_lo2o_result=${1} ;; | |
19483 | esac | |
19484 | } | |
b214d478 SE |
19485 | |
19486 | # func_xform libobj-or-source | |
19487 | func_xform () | |
19488 | { | |
19489 | func_xform_result=${1%.*}.lo | |
19490 | } | |
19491 | ||
19492 | # func_arith arithmetic-term... | |
19493 | func_arith () | |
19494 | { | |
19495 | func_arith_result=$(( $* )) | |
19496 | } | |
19497 | ||
19498 | # func_len string | |
19499 | # STRING may not start with a hyphen. | |
19500 | func_len () | |
19501 | { | |
19502 | func_len_result=${#1} | |
19503 | } | |
19504 | ||
d7040cdb SE |
19505 | _LT_EOF |
19506 | ;; | |
19507 | *) # Bourne compatible functions. | |
19508 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19509 | |
d7040cdb SE |
19510 | # func_dirname file append nondir_replacement |
19511 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19512 | # otherwise set result to NONDIR_REPLACEMENT. | |
19513 | func_dirname () | |
19514 | { | |
19515 | # Extract subdirectory from the argument. | |
3725885a | 19516 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
19517 | if test "X$func_dirname_result" = "X${1}"; then |
19518 | func_dirname_result="${3}" | |
19519 | else | |
19520 | func_dirname_result="$func_dirname_result${2}" | |
19521 | fi | |
19522 | } | |
19523 | ||
19524 | # func_basename file | |
19525 | func_basename () | |
19526 | { | |
3725885a | 19527 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
19528 | } |
19529 | ||
b214d478 | 19530 | |
d7040cdb SE |
19531 | # func_stripname prefix suffix name |
19532 | # strip PREFIX and SUFFIX off of NAME. | |
19533 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19534 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19535 | # dot (in which case that matches only a dot). | |
19536 | # func_strip_suffix prefix name | |
19537 | func_stripname () | |
19538 | { | |
19539 | case ${2} in | |
3725885a RW |
19540 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
19541 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
19542 | esac |
19543 | } | |
19544 | ||
19545 | # sed scripts: | |
19546 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19547 | my_sed_long_arg='1s/^-[^=]*=//' | |
19548 | ||
19549 | # func_opt_split | |
19550 | func_opt_split () | |
19551 | { | |
3725885a RW |
19552 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
19553 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
19554 | } |
19555 | ||
19556 | # func_lo2o object | |
19557 | func_lo2o () | |
19558 | { | |
3725885a | 19559 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 19560 | } |
b214d478 SE |
19561 | |
19562 | # func_xform libobj-or-source | |
19563 | func_xform () | |
19564 | { | |
3725885a | 19565 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
b214d478 SE |
19566 | } |
19567 | ||
19568 | # func_arith arithmetic-term... | |
19569 | func_arith () | |
19570 | { | |
19571 | func_arith_result=`expr "$@"` | |
19572 | } | |
19573 | ||
19574 | # func_len string | |
19575 | # STRING may not start with a hyphen. | |
19576 | func_len () | |
19577 | { | |
19578 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19579 | } | |
19580 | ||
d7040cdb SE |
19581 | _LT_EOF |
19582 | esac | |
19583 | ||
19584 | case $lt_shell_append in | |
19585 | yes) | |
19586 | cat << \_LT_EOF >> "$cfgfile" | |
19587 | ||
19588 | # func_append var value | |
19589 | # Append VALUE to the end of shell variable VAR. | |
19590 | func_append () | |
19591 | { | |
19592 | eval "$1+=\$2" | |
19593 | } | |
19594 | _LT_EOF | |
19595 | ;; | |
19596 | *) | |
19597 | cat << \_LT_EOF >> "$cfgfile" | |
19598 | ||
19599 | # func_append var value | |
19600 | # Append VALUE to the end of shell variable VAR. | |
19601 | func_append () | |
19602 | { | |
19603 | eval "$1=\$$1\$2" | |
19604 | } | |
b214d478 | 19605 | |
d7040cdb SE |
19606 | _LT_EOF |
19607 | ;; | |
19608 | esac | |
19609 | ||
19610 | ||
19611 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19612 | || (rm -f "$cfgfile"; exit 1) | |
19613 | ||
19614 | mv -f "$cfgfile" "$ofile" || | |
19615 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19616 | chmod +x "$ofile" | |
19617 | ||
3cb62297 L |
19618 | |
19619 | cat <<_LT_EOF >> "$ofile" | |
19620 | ||
19621 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
19622 | ||
19623 | # The linker used to build libraries. | |
19624 | LD=$lt_LD_CXX | |
19625 | ||
19626 | # How to create reloadable object files. | |
19627 | reload_flag=$lt_reload_flag_CXX | |
19628 | reload_cmds=$lt_reload_cmds_CXX | |
19629 | ||
19630 | # Commands used to build an old-style archive. | |
19631 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
19632 | ||
19633 | # A language specific compiler. | |
19634 | CC=$lt_compiler_CXX | |
19635 | ||
19636 | # Is the compiler the GNU compiler? | |
19637 | with_gcc=$GCC_CXX | |
19638 | ||
19639 | # Compiler flag to turn off builtin functions. | |
19640 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
19641 | ||
19642 | # How to pass a linker flag through the compiler. | |
19643 | wl=$lt_lt_prog_compiler_wl_CXX | |
19644 | ||
19645 | # Additional compiler flags for building library objects. | |
19646 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
19647 | ||
19648 | # Compiler flag to prevent dynamic linking. | |
19649 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
19650 | ||
19651 | # Does compiler simultaneously support -c and -o options? | |
19652 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
19653 | ||
19654 | # Whether or not to add -lc for building shared libraries. | |
19655 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
19656 | ||
19657 | # Whether or not to disallow shared libs when runtime libs are static. | |
19658 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
19659 | ||
19660 | # Compiler flag to allow reflexive dlopens. | |
19661 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
19662 | ||
19663 | # Compiler flag to generate shared objects directly from archives. | |
19664 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
19665 | ||
19666 | # Whether the compiler copes with passing no objects directly. | |
19667 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
19668 | ||
19669 | # Create an old-style archive from a shared archive. | |
19670 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
19671 | ||
19672 | # Create a temporary old-style archive to link instead of a shared archive. | |
19673 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
19674 | ||
19675 | # Commands used to build a shared archive. | |
19676 | archive_cmds=$lt_archive_cmds_CXX | |
19677 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
19678 | ||
19679 | # Commands used to build a loadable module if different from building | |
19680 | # a shared archive. | |
19681 | module_cmds=$lt_module_cmds_CXX | |
19682 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
19683 | ||
19684 | # Whether we are building with GNU ld or not. | |
19685 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
19686 | ||
19687 | # Flag that allows shared libraries with undefined symbols to be built. | |
19688 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
19689 | ||
19690 | # Flag that enforces no undefined symbols. | |
19691 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
19692 | ||
19693 | # Flag to hardcode \$libdir into a binary during linking. | |
19694 | # This must work even if \$libdir does not exist | |
19695 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
19696 | ||
19697 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19698 | # during linking. This must work even if \$libdir does not exist. | |
19699 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
19700 | ||
19701 | # Whether we need a single "-rpath" flag with a separated argument. | |
19702 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
19703 | ||
19704 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19705 | # DIR into the resulting binary. | |
19706 | hardcode_direct=$hardcode_direct_CXX | |
19707 | ||
19708 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19709 | # DIR into the resulting binary and the resulting library dependency is | |
19710 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19711 | # library is relocated. | |
19712 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
19713 | ||
19714 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19715 | # into the resulting binary. | |
19716 | hardcode_minus_L=$hardcode_minus_L_CXX | |
19717 | ||
19718 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19719 | # into the resulting binary. | |
19720 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
19721 | ||
19722 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19723 | # into the library and all subsequent libraries and executables linked | |
19724 | # against it. | |
19725 | hardcode_automatic=$hardcode_automatic_CXX | |
19726 | ||
19727 | # Set to yes if linker adds runtime paths of dependent libraries | |
19728 | # to runtime path list. | |
19729 | inherit_rpath=$inherit_rpath_CXX | |
19730 | ||
19731 | # Whether libtool must link a program against all its dependency libraries. | |
19732 | link_all_deplibs=$link_all_deplibs_CXX | |
19733 | ||
19734 | # Fix the shell variable \$srcfile for the compiler. | |
19735 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
19736 | ||
19737 | # Set to "yes" if exported symbols are required. | |
19738 | always_export_symbols=$always_export_symbols_CXX | |
19739 | ||
19740 | # The commands to list exported symbols. | |
19741 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
19742 | ||
19743 | # Symbols that should not be listed in the preloaded symbols. | |
19744 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
19745 | ||
19746 | # Symbols that must always be exported. | |
19747 | include_expsyms=$lt_include_expsyms_CXX | |
19748 | ||
19749 | # Commands necessary for linking programs (against libraries) with templates. | |
19750 | prelink_cmds=$lt_prelink_cmds_CXX | |
19751 | ||
19752 | # Specify filename containing input files. | |
19753 | file_list_spec=$lt_file_list_spec_CXX | |
19754 | ||
19755 | # How to hardcode a shared library path into an executable. | |
19756 | hardcode_action=$hardcode_action_CXX | |
19757 | ||
19758 | # The directories searched by this compiler when creating a shared library. | |
19759 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
19760 | ||
19761 | # Dependencies to place before and after the objects being linked to | |
19762 | # create a shared library. | |
19763 | predep_objects=$lt_predep_objects_CXX | |
19764 | postdep_objects=$lt_postdep_objects_CXX | |
19765 | predeps=$lt_predeps_CXX | |
19766 | postdeps=$lt_postdeps_CXX | |
19767 | ||
19768 | # The library search path used internally by the compiler when linking | |
19769 | # a shared library. | |
19770 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
19771 | ||
19772 | # ### END LIBTOOL TAG CONFIG: CXX | |
19773 | _LT_EOF | |
19774 | ||
42ecbf5e | 19775 | ;; |
81ecdfbb | 19776 | "default-1":C) |
20e95c23 DJ |
19777 | for ac_file in $CONFIG_FILES; do |
19778 | # Support "outfile[:infile[:infile...]]" | |
19779 | case "$ac_file" in | |
19780 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19781 | esac | |
19782 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
19783 | case "$ac_file" in */Makefile.in) | |
19784 | # Adjust a relative srcdir. | |
19785 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 19786 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
19787 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
19788 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
19789 | # In autoconf-2.50 it is called $srcdir. | |
19790 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
19791 | case "$ac_given_srcdir" in | |
19792 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
19793 | /*) top_srcdir="$ac_given_srcdir" ;; | |
19794 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
19795 | esac | |
19796 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
19797 | rm -f "$ac_dir/POTFILES" | |
19798 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
19799 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
19800 | POMAKEFILEDEPS="POTFILES.in" | |
19801 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
19802 | # on $ac_dir but don't depend on user-specified configuration | |
19803 | # parameters. | |
19804 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
19805 | # The LINGUAS file contains the set of available languages. | |
19806 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
19807 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
19808 | fi | |
19809 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
19810 | # Hide the ALL_LINGUAS assigment from automake. | |
19811 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
19812 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
19813 | else | |
19814 | # The set of available languages was given in configure.in. | |
19815 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
19816 | fi | |
19817 | case "$ac_given_srcdir" in | |
19818 | .) srcdirpre= ;; | |
19819 | *) srcdirpre='$(srcdir)/' ;; | |
19820 | esac | |
19821 | POFILES= | |
19822 | GMOFILES= | |
19823 | UPDATEPOFILES= | |
19824 | DUMMYPOFILES= | |
19825 | for lang in $ALL_LINGUAS; do | |
19826 | POFILES="$POFILES $srcdirpre$lang.po" | |
19827 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
19828 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
19829 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
19830 | done | |
19831 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
19832 | # environment variable. | |
19833 | INST_LINGUAS= | |
19834 | if test -n "$ALL_LINGUAS"; then | |
19835 | for presentlang in $ALL_LINGUAS; do | |
19836 | useit=no | |
19837 | if test "%UNSET%" != "$LINGUAS"; then | |
19838 | desiredlanguages="$LINGUAS" | |
19839 | else | |
19840 | desiredlanguages="$ALL_LINGUAS" | |
19841 | fi | |
19842 | for desiredlang in $desiredlanguages; do | |
19843 | # Use the presentlang catalog if desiredlang is | |
19844 | # a. equal to presentlang, or | |
19845 | # b. a variant of presentlang (because in this case, | |
19846 | # presentlang can be used as a fallback for messages | |
19847 | # which are not translated in the desiredlang catalog). | |
19848 | case "$desiredlang" in | |
19849 | "$presentlang"*) useit=yes;; | |
19850 | esac | |
19851 | done | |
19852 | if test $useit = yes; then | |
19853 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
19854 | fi | |
19855 | done | |
19856 | fi | |
19857 | CATALOGS= | |
19858 | if test -n "$INST_LINGUAS"; then | |
19859 | for lang in $INST_LINGUAS; do | |
19860 | CATALOGS="$CATALOGS $lang.gmo" | |
19861 | done | |
19862 | fi | |
19863 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
19864 | 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" | |
19865 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
19866 | if test -f "$f"; then | |
19867 | case "$f" in | |
19868 | *.orig | *.bak | *~) ;; | |
19869 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
19870 | esac | |
19871 | fi | |
19872 | done | |
19873 | fi | |
19874 | ;; | |
19875 | esac | |
19876 | done ;; | |
81ecdfbb | 19877 | |
42ecbf5e | 19878 | esac |
81ecdfbb | 19879 | done # for ac_tag |
42ecbf5e | 19880 | |
42ecbf5e | 19881 | |
81ecdfbb | 19882 | as_fn_exit 0 |
42ecbf5e | 19883 | _ACEOF |
42ecbf5e DJ |
19884 | ac_clean_files=$ac_clean_files_save |
19885 | ||
81ecdfbb RW |
19886 | test $ac_write_fail = 0 || |
19887 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
19888 | ||
42ecbf5e DJ |
19889 | |
19890 | # configure is writing to config.log, and then calls config.status. | |
19891 | # config.status does its own redirection, appending to config.log. | |
19892 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19893 | # by configure, so config.status won't be able to write to it; its | |
19894 | # output is simply discarded. So we exec the FD to /dev/null, | |
19895 | # effectively closing config.log, so it can be properly (re)opened and | |
19896 | # appended to by config.status. When coming back to configure, we | |
19897 | # need to make the FD available again. | |
19898 | if test "$no_create" != yes; then | |
19899 | ac_cs_success=: | |
19900 | ac_config_status_args= | |
19901 | test "$silent" = yes && | |
19902 | ac_config_status_args="$ac_config_status_args --quiet" | |
19903 | exec 5>/dev/null | |
19904 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19905 | exec 5>>config.log | |
19906 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19907 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
19908 | $ac_cs_success || as_fn_exit $? |
19909 | fi | |
19910 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19912 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
42ecbf5e | 19913 | fi |
252b5132 | 19914 |