]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
675b9d61 | 3 | # Generated by GNU Autoconf 2.69 for binutils 2.41. |
d0ac1c44 SM |
4 | # |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
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. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
42ecbf5e DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
3725885a RW |
199 | test \$(( 1 + 1 )) = 2 || exit 1 |
200 | ||
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42ecbf5e | 219 | do |
81ecdfbb RW |
220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
81ecdfbb RW |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
42ecbf5e | 274 | else |
81ecdfbb RW |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
42ecbf5e | 279 | fi |
81ecdfbb RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
81ecdfbb RW |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
42ecbf5e | 410 | |
d0ac1c44 SM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
81ecdfbb RW |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 415 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
416 | as_fn_error () |
417 | { | |
d0ac1c44 SM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 422 | fi |
d0ac1c44 | 423 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
81ecdfbb | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
81ecdfbb RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
42ecbf5e | 445 | |
81ecdfbb | 446 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
42ecbf5e | 464 | |
42ecbf5e DJ |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
42ecbf5e | 472 | |
81ecdfbb RW |
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
42ecbf5e | 482 | sed ' |
81ecdfbb RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
42ecbf5e | 487 | N |
81ecdfbb RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
42ecbf5e | 490 | t loop |
81ecdfbb | 491 | s/-\n.*// |
42ecbf5e | 492 | ' >$as_me.lineno && |
81ecdfbb RW |
493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
42ecbf5e | 495 | |
d0ac1c44 SM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
42ecbf5e DJ |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
42ecbf5e DJ |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
81ecdfbb RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
42ecbf5e DJ |
519 | esac |
520 | ||
81ecdfbb RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 524 | else |
81ecdfbb RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 527 | fi |
81ecdfbb RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 530 | as_ln_s='ln -s' |
81ecdfbb RW |
531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 534 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 536 | as_ln_s='cp -pR' |
81ecdfbb RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
42ecbf5e | 541 | fi |
42ecbf5e | 542 | else |
d0ac1c44 | 543 | as_ln_s='cp -pR' |
42ecbf5e | 544 | fi |
81ecdfbb RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
42ecbf5e DJ |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
d0ac1c44 SM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
42ecbf5e DJ |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
d7040cdb SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
d7040cdb | 566 | |
d0ac1c44 SM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
81ecdfbb | 569 | |
42ecbf5e | 570 | # Name of the host. |
d0ac1c44 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
42ecbf5e DJ |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 574 | |
42ecbf5e DJ |
575 | # |
576 | # Initializations. | |
577 | # | |
252b5132 | 578 | ac_default_prefix=/usr/local |
81ecdfbb | 579 | ac_clean_files= |
42ecbf5e | 580 | ac_config_libobj_dir=. |
81ecdfbb | 581 | LIBOBJS= |
42ecbf5e DJ |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
42ecbf5e DJ |
586 | |
587 | # Identity of this package. | |
2e98a7bd AM |
588 | PACKAGE_NAME='binutils' |
589 | PACKAGE_TARNAME='binutils' | |
675b9d61 NC |
590 | PACKAGE_VERSION='2.41' |
591 | PACKAGE_STRING='binutils 2.41' | |
2e98a7bd AM |
592 | PACKAGE_BUGREPORT='' |
593 | PACKAGE_URL='' | |
42ecbf5e DJ |
594 | |
595 | ac_unique_file="ar.c" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
81ecdfbb | 599 | #ifdef HAVE_SYS_TYPES_H |
42ecbf5e DJ |
600 | # include <sys/types.h> |
601 | #endif | |
81ecdfbb | 602 | #ifdef HAVE_SYS_STAT_H |
42ecbf5e DJ |
603 | # include <sys/stat.h> |
604 | #endif | |
81ecdfbb | 605 | #ifdef STDC_HEADERS |
42ecbf5e DJ |
606 | # include <stdlib.h> |
607 | # include <stddef.h> | |
608 | #else | |
81ecdfbb | 609 | # ifdef HAVE_STDLIB_H |
42ecbf5e DJ |
610 | # include <stdlib.h> |
611 | # endif | |
612 | #endif | |
81ecdfbb RW |
613 | #ifdef HAVE_STRING_H |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
42ecbf5e DJ |
615 | # include <memory.h> |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
81ecdfbb | 619 | #ifdef HAVE_STRINGS_H |
42ecbf5e DJ |
620 | # include <strings.h> |
621 | #endif | |
81ecdfbb | 622 | #ifdef HAVE_INTTYPES_H |
42ecbf5e | 623 | # include <inttypes.h> |
42ecbf5e | 624 | #endif |
81ecdfbb RW |
625 | #ifdef HAVE_STDINT_H |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
42ecbf5e DJ |
629 | # include <unistd.h> |
630 | #endif" | |
631 | ||
34156b23 | 632 | ac_header_list= |
81ecdfbb RW |
633 | ac_subst_vars='am__EXEEXT_FALSE |
634 | am__EXEEXT_TRUE | |
635 | LTLIBOBJS | |
636 | LIBOBJS | |
637 | EMULATION_VECTOR | |
638 | EMULATION | |
6abcee90 | 639 | OBJDUMP_PRIVATE_OFILES |
81ecdfbb RW |
640 | OBJDUMP_DEFS |
641 | BUILD_INSTALL_MISC | |
642 | BUILD_MISC | |
643 | BUILD_DLLWRAP | |
644 | BUILD_WINDMC | |
645 | BUILD_WINDRES | |
646 | DLLTOOL_DEFS | |
647 | BUILD_DLLTOOL | |
648 | BUILD_SRCONV | |
81ecdfbb RW |
649 | LTLIBICONV |
650 | LIBICONV | |
2952f10c SM |
651 | MSGPACK_LIBS |
652 | MSGPACK_CFLAGS | |
2cac01e3 FS |
653 | ZSTD_LIBS |
654 | ZSTD_CFLAGS | |
0ee42ecd L |
655 | zlibinc |
656 | zlibdir | |
81ecdfbb RW |
657 | DEMANGLER_NAME |
658 | EXEEXT_FOR_BUILD | |
659 | CC_FOR_BUILD | |
660 | HDEFINES | |
661 | GENINSRC_NEVER_FALSE | |
662 | GENINSRC_NEVER_TRUE | |
663 | MAINT | |
664 | MAINTAINER_MODE_FALSE | |
665 | MAINTAINER_MODE_TRUE | |
666 | MSGMERGE | |
667 | MSGFMT | |
668 | MKINSTALLDIRS | |
669 | CATOBJEXT | |
670 | GENCAT | |
671 | INSTOBJEXT | |
672 | DATADIRNAME | |
673 | CATALOGS | |
674 | POSUB | |
675 | GMSGFMT | |
676 | XGETTEXT | |
677 | INCINTL | |
678 | LIBINTL_DEP | |
679 | LIBINTL | |
680 | USE_NLS | |
681 | LEXLIB | |
682 | LEX_OUTPUT_ROOT | |
683 | LEX | |
684 | YFLAGS | |
685 | YACC | |
6757cf57 | 686 | WARN_WRITE_STRINGS |
81ecdfbb | 687 | NO_WERROR |
c5da1932 | 688 | WARN_CFLAGS_FOR_BUILD |
81ecdfbb | 689 | WARN_CFLAGS |
094e34f2 NA |
690 | ENABLE_LIBCTF_FALSE |
691 | ENABLE_LIBCTF_TRUE | |
f6720b1c AM |
692 | DEBUGINFOD_LIBS |
693 | DEBUGINFOD_CFLAGS | |
694 | PKG_CONFIG_LIBDIR | |
695 | PKG_CONFIG_PATH | |
696 | PKG_CONFIG | |
c8693053 | 697 | LARGEFILE_CPPFLAGS |
81ecdfbb RW |
698 | OTOOL64 |
699 | OTOOL | |
700 | LIPO | |
701 | NMEDIT | |
702 | DSYMUTIL | |
81ecdfbb RW |
703 | RANLIB |
704 | AR | |
705 | OBJDUMP | |
706 | LN_S | |
707 | NM | |
708 | ac_ct_DUMPBIN | |
709 | DUMPBIN | |
710 | LD | |
711 | FGREP | |
712 | SED | |
713 | LIBTOOL | |
714 | EGREP | |
715 | GREP | |
716 | CPP | |
717 | am__fastdepCC_FALSE | |
718 | am__fastdepCC_TRUE | |
719 | CCDEPMODE | |
6eb7d830 | 720 | am__nodep |
81ecdfbb RW |
721 | AMDEPBACKSLASH |
722 | AMDEP_FALSE | |
723 | AMDEP_TRUE | |
b9583093 | 724 | am__quote |
81ecdfbb RW |
725 | am__include |
726 | DEPDIR | |
87b9f255 AM |
727 | OBJEXT |
728 | EXEEXT | |
729 | ac_ct_CC | |
730 | CPPFLAGS | |
731 | LDFLAGS | |
732 | CFLAGS | |
733 | CC | |
734 | AM_BACKSLASH | |
735 | AM_DEFAULT_VERBOSITY | |
736 | AM_DEFAULT_V | |
737 | AM_V | |
81ecdfbb RW |
738 | am__untar |
739 | am__tar | |
740 | AMTAR | |
741 | am__leading_dot | |
742 | SET_MAKE | |
743 | AWK | |
744 | mkdir_p | |
745 | MKDIR_P | |
746 | INSTALL_STRIP_PROGRAM | |
747 | STRIP | |
748 | install_sh | |
749 | MAKEINFO | |
750 | AUTOHEADER | |
751 | AUTOMAKE | |
752 | AUTOCONF | |
753 | ACLOCAL | |
754 | VERSION | |
755 | PACKAGE | |
756 | CYGPATH_W | |
757 | am__isrc | |
758 | INSTALL_DATA | |
759 | INSTALL_SCRIPT | |
760 | INSTALL_PROGRAM | |
81ecdfbb RW |
761 | target_os |
762 | target_vendor | |
763 | target_cpu | |
764 | target | |
765 | host_os | |
766 | host_vendor | |
767 | host_cpu | |
768 | host | |
769 | build_os | |
770 | build_vendor | |
771 | build_cpu | |
772 | build | |
773 | target_alias | |
774 | host_alias | |
775 | build_alias | |
776 | LIBS | |
777 | ECHO_T | |
778 | ECHO_N | |
779 | ECHO_C | |
780 | DEFS | |
781 | mandir | |
782 | localedir | |
783 | libdir | |
784 | psdir | |
785 | pdfdir | |
786 | dvidir | |
787 | htmldir | |
788 | infodir | |
789 | docdir | |
790 | oldincludedir | |
791 | includedir | |
792 | localstatedir | |
793 | sharedstatedir | |
794 | sysconfdir | |
795 | datadir | |
796 | datarootdir | |
797 | libexecdir | |
798 | sbindir | |
799 | bindir | |
800 | program_transform_name | |
801 | prefix | |
802 | exec_prefix | |
803 | PACKAGE_URL | |
804 | PACKAGE_BUGREPORT | |
805 | PACKAGE_STRING | |
806 | PACKAGE_VERSION | |
807 | PACKAGE_TARNAME | |
808 | PACKAGE_NAME | |
809 | PATH_SEPARATOR | |
b9583093 | 810 | SHELL' |
42ecbf5e | 811 | ac_subst_files='' |
81ecdfbb RW |
812 | ac_user_opts=' |
813 | enable_option_checking | |
d0ac1c44 | 814 | enable_silent_rules |
87b9f255 | 815 | enable_dependency_tracking |
81ecdfbb RW |
816 | enable_shared |
817 | enable_static | |
818 | with_pic | |
819 | enable_fast_install | |
820 | with_gnu_ld | |
821 | enable_libtool_lock | |
b879806f AM |
822 | enable_plugins |
823 | enable_largefile | |
43e05cd4 | 824 | enable_checking |
81ecdfbb | 825 | enable_targets |
9cb80f72 | 826 | enable_deterministic_archives |
7fac9594 | 827 | enable_default_strings_all |
e6f6aa8d | 828 | enable_f_for_ifunc_symbols |
c46b7066 | 829 | enable_follow_debug_links |
18bf5643 | 830 | enable_colored_disassembly |
301a9420 | 831 | with_debuginfod |
094e34f2 | 832 | enable_libctf |
81ecdfbb RW |
833 | enable_werror |
834 | enable_build_warnings | |
835 | enable_nls | |
836 | enable_maintainer_mode | |
0ee42ecd | 837 | with_system_zlib |
2cac01e3 | 838 | with_zstd |
2952f10c | 839 | with_msgpack |
81ecdfbb RW |
840 | enable_rpath |
841 | with_libiconv_prefix | |
9f1528a1 | 842 | with_libiconv_type |
81ecdfbb RW |
843 | ' |
844 | ac_precious_vars='build_alias | |
845 | host_alias | |
846 | target_alias | |
847 | CC | |
848 | CFLAGS | |
849 | LDFLAGS | |
850 | LIBS | |
851 | CPPFLAGS | |
852 | CPP | |
f6720b1c AM |
853 | PKG_CONFIG |
854 | PKG_CONFIG_PATH | |
855 | PKG_CONFIG_LIBDIR | |
856 | DEBUGINFOD_CFLAGS | |
857 | DEBUGINFOD_LIBS | |
81ecdfbb | 858 | YACC |
2952f10c | 859 | YFLAGS |
2cac01e3 FS |
860 | ZSTD_CFLAGS |
861 | ZSTD_LIBS | |
2952f10c SM |
862 | MSGPACK_CFLAGS |
863 | MSGPACK_LIBS' | |
81ecdfbb | 864 | |
252b5132 RH |
865 | |
866 | # Initialize some variables set by options. | |
42ecbf5e DJ |
867 | ac_init_help= |
868 | ac_init_version=false | |
81ecdfbb RW |
869 | ac_unrecognized_opts= |
870 | ac_unrecognized_sep= | |
252b5132 RH |
871 | # The variables have the same names as the options, with |
872 | # dashes changed to underlines. | |
42ecbf5e | 873 | cache_file=/dev/null |
252b5132 | 874 | exec_prefix=NONE |
252b5132 | 875 | no_create= |
252b5132 RH |
876 | no_recursion= |
877 | prefix=NONE | |
878 | program_prefix=NONE | |
879 | program_suffix=NONE | |
880 | program_transform_name=s,x,x, | |
881 | silent= | |
882 | site= | |
883 | srcdir= | |
252b5132 RH |
884 | verbose= |
885 | x_includes=NONE | |
886 | x_libraries=NONE | |
42ecbf5e DJ |
887 | |
888 | # Installation directory options. | |
889 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
890 | # and all the variables that are supposed to be based on exec_prefix | |
891 | # by default will actually change. | |
892 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 893 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
894 | bindir='${exec_prefix}/bin' |
895 | sbindir='${exec_prefix}/sbin' | |
896 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
897 | datarootdir='${prefix}/share' |
898 | datadir='${datarootdir}' | |
252b5132 RH |
899 | sysconfdir='${prefix}/etc' |
900 | sharedstatedir='${prefix}/com' | |
901 | localstatedir='${prefix}/var' | |
252b5132 RH |
902 | includedir='${prefix}/include' |
903 | oldincludedir='/usr/include' | |
2e98a7bd | 904 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
905 | infodir='${datarootdir}/info' |
906 | htmldir='${docdir}' | |
907 | dvidir='${docdir}' | |
908 | pdfdir='${docdir}' | |
909 | psdir='${docdir}' | |
910 | libdir='${exec_prefix}/lib' | |
911 | localedir='${datarootdir}/locale' | |
912 | mandir='${datarootdir}/man' | |
252b5132 | 913 | |
252b5132 | 914 | ac_prev= |
81ecdfbb | 915 | ac_dashdash= |
252b5132 RH |
916 | for ac_option |
917 | do | |
252b5132 RH |
918 | # If the previous option needs an argument, assign it. |
919 | if test -n "$ac_prev"; then | |
81ecdfbb | 920 | eval $ac_prev=\$ac_option |
252b5132 RH |
921 | ac_prev= |
922 | continue | |
923 | fi | |
924 | ||
81ecdfbb | 925 | case $ac_option in |
d0ac1c44 SM |
926 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
927 | *=) ac_optarg= ;; | |
928 | *) ac_optarg=yes ;; | |
81ecdfbb | 929 | esac |
252b5132 RH |
930 | |
931 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
932 | ||
81ecdfbb RW |
933 | case $ac_dashdash$ac_option in |
934 | --) | |
935 | ac_dashdash=yes ;; | |
252b5132 RH |
936 | |
937 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
938 | ac_prev=bindir ;; | |
939 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 940 | bindir=$ac_optarg ;; |
252b5132 RH |
941 | |
942 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 943 | ac_prev=build_alias ;; |
252b5132 | 944 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 945 | build_alias=$ac_optarg ;; |
252b5132 RH |
946 | |
947 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
948 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
949 | ac_prev=cache_file ;; | |
950 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
951 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
952 | cache_file=$ac_optarg ;; |
953 | ||
954 | --config-cache | -C) | |
955 | cache_file=config.cache ;; | |
252b5132 | 956 | |
81ecdfbb | 957 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 958 | ac_prev=datadir ;; |
81ecdfbb | 959 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
42ecbf5e | 960 | datadir=$ac_optarg ;; |
252b5132 | 961 | |
81ecdfbb RW |
962 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
963 | | --dataroo | --dataro | --datar) | |
964 | ac_prev=datarootdir ;; | |
965 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
966 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
967 | datarootdir=$ac_optarg ;; | |
968 | ||
252b5132 | 969 | -disable-* | --disable-*) |
81ecdfbb | 970 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 971 | # Reject names that are not valid shell variable names. |
81ecdfbb | 972 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 973 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
974 | ac_useropt_orig=$ac_useropt |
975 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
976 | case $ac_user_opts in | |
977 | *" | |
978 | "enable_$ac_useropt" | |
979 | "*) ;; | |
980 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
981 | ac_unrecognized_sep=', ';; | |
982 | esac | |
983 | eval enable_$ac_useropt=no ;; | |
984 | ||
985 | -docdir | --docdir | --docdi | --doc | --do) | |
986 | ac_prev=docdir ;; | |
987 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
988 | docdir=$ac_optarg ;; | |
989 | ||
990 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
991 | ac_prev=dvidir ;; | |
992 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
993 | dvidir=$ac_optarg ;; | |
252b5132 RH |
994 | |
995 | -enable-* | --enable-*) | |
81ecdfbb | 996 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 997 | # Reject names that are not valid shell variable names. |
81ecdfbb | 998 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 999 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1000 | ac_useropt_orig=$ac_useropt |
1001 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1002 | case $ac_user_opts in | |
1003 | *" | |
1004 | "enable_$ac_useropt" | |
1005 | "*) ;; | |
1006 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1007 | ac_unrecognized_sep=', ';; | |
252b5132 | 1008 | esac |
81ecdfbb | 1009 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1010 | |
1011 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1012 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1013 | | --exec | --exe | --ex) | |
1014 | ac_prev=exec_prefix ;; | |
1015 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1016 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1017 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 1018 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
1019 | |
1020 | -gas | --gas | --ga | --g) | |
1021 | # Obsolete; use --with-gas. | |
1022 | with_gas=yes ;; | |
1023 | ||
42ecbf5e DJ |
1024 | -help | --help | --hel | --he | -h) |
1025 | ac_init_help=long ;; | |
1026 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1027 | ac_init_help=recursive ;; | |
1028 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1029 | ac_init_help=short ;; | |
252b5132 RH |
1030 | |
1031 | -host | --host | --hos | --ho) | |
42ecbf5e | 1032 | ac_prev=host_alias ;; |
252b5132 | 1033 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 1034 | host_alias=$ac_optarg ;; |
252b5132 | 1035 | |
81ecdfbb RW |
1036 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1037 | ac_prev=htmldir ;; | |
1038 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1039 | | --ht=*) | |
1040 | htmldir=$ac_optarg ;; | |
1041 | ||
252b5132 RH |
1042 | -includedir | --includedir | --includedi | --included | --include \ |
1043 | | --includ | --inclu | --incl | --inc) | |
1044 | ac_prev=includedir ;; | |
1045 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1046 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 1047 | includedir=$ac_optarg ;; |
252b5132 RH |
1048 | |
1049 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1050 | ac_prev=infodir ;; | |
1051 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 1052 | infodir=$ac_optarg ;; |
252b5132 RH |
1053 | |
1054 | -libdir | --libdir | --libdi | --libd) | |
1055 | ac_prev=libdir ;; | |
1056 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 1057 | libdir=$ac_optarg ;; |
252b5132 RH |
1058 | |
1059 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1060 | | --libexe | --libex | --libe) | |
1061 | ac_prev=libexecdir ;; | |
1062 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1063 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 1064 | libexecdir=$ac_optarg ;; |
252b5132 | 1065 | |
81ecdfbb RW |
1066 | -localedir | --localedir | --localedi | --localed | --locale) |
1067 | ac_prev=localedir ;; | |
1068 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1069 | localedir=$ac_optarg ;; | |
1070 | ||
252b5132 | 1071 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1072 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1073 | ac_prev=localstatedir ;; |
1074 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1075 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
42ecbf5e | 1076 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1077 | |
1078 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1079 | ac_prev=mandir ;; | |
1080 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 1081 | mandir=$ac_optarg ;; |
252b5132 RH |
1082 | |
1083 | -nfp | --nfp | --nf) | |
1084 | # Obsolete; use --without-fp. | |
1085 | with_fp=no ;; | |
1086 | ||
1087 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 1088 | | --no-cr | --no-c | -n) |
252b5132 RH |
1089 | no_create=yes ;; |
1090 | ||
1091 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1092 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1093 | no_recursion=yes ;; | |
1094 | ||
1095 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1096 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1097 | | --oldin | --oldi | --old | --ol | --o) | |
1098 | ac_prev=oldincludedir ;; | |
1099 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1100 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1101 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 1102 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1103 | |
1104 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1105 | ac_prev=prefix ;; | |
1106 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 1107 | prefix=$ac_optarg ;; |
252b5132 RH |
1108 | |
1109 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1110 | | --program-pre | --program-pr | --program-p) | |
1111 | ac_prev=program_prefix ;; | |
1112 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1113 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 1114 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1115 | |
1116 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1117 | | --program-suf | --program-su | --program-s) | |
1118 | ac_prev=program_suffix ;; | |
1119 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1120 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 1121 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1122 | |
1123 | -program-transform-name | --program-transform-name \ | |
1124 | | --program-transform-nam | --program-transform-na \ | |
1125 | | --program-transform-n | --program-transform- \ | |
1126 | | --program-transform | --program-transfor \ | |
1127 | | --program-transfo | --program-transf \ | |
1128 | | --program-trans | --program-tran \ | |
1129 | | --progr-tra | --program-tr | --program-t) | |
1130 | ac_prev=program_transform_name ;; | |
1131 | -program-transform-name=* | --program-transform-name=* \ | |
1132 | | --program-transform-nam=* | --program-transform-na=* \ | |
1133 | | --program-transform-n=* | --program-transform-=* \ | |
1134 | | --program-transform=* | --program-transfor=* \ | |
1135 | | --program-transfo=* | --program-transf=* \ | |
1136 | | --program-trans=* | --program-tran=* \ | |
1137 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 1138 | program_transform_name=$ac_optarg ;; |
252b5132 | 1139 | |
81ecdfbb RW |
1140 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1141 | ac_prev=pdfdir ;; | |
1142 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1143 | pdfdir=$ac_optarg ;; | |
1144 | ||
1145 | -psdir | --psdir | --psdi | --psd | --ps) | |
1146 | ac_prev=psdir ;; | |
1147 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1148 | psdir=$ac_optarg ;; | |
1149 | ||
252b5132 RH |
1150 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1151 | | -silent | --silent | --silen | --sile | --sil) | |
1152 | silent=yes ;; | |
1153 | ||
1154 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1155 | ac_prev=sbindir ;; | |
1156 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1157 | | --sbi=* | --sb=*) | |
42ecbf5e | 1158 | sbindir=$ac_optarg ;; |
252b5132 RH |
1159 | |
1160 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1161 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1162 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1163 | | --sha | --sh) | |
1164 | ac_prev=sharedstatedir ;; | |
1165 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1166 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1167 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1168 | | --sha=* | --sh=*) | |
42ecbf5e | 1169 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1170 | |
1171 | -site | --site | --sit) | |
1172 | ac_prev=site ;; | |
1173 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 1174 | site=$ac_optarg ;; |
252b5132 RH |
1175 | |
1176 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1177 | ac_prev=srcdir ;; | |
1178 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 1179 | srcdir=$ac_optarg ;; |
252b5132 RH |
1180 | |
1181 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1182 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1183 | ac_prev=sysconfdir ;; | |
1184 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1185 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 1186 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1187 | |
1188 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 1189 | ac_prev=target_alias ;; |
252b5132 | 1190 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 1191 | target_alias=$ac_optarg ;; |
252b5132 RH |
1192 | |
1193 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1194 | verbose=yes ;; | |
1195 | ||
42ecbf5e DJ |
1196 | -version | --version | --versio | --versi | --vers | -V) |
1197 | ac_init_version=: ;; | |
252b5132 RH |
1198 | |
1199 | -with-* | --with-*) | |
81ecdfbb | 1200 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1201 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1202 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1203 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1204 | ac_useropt_orig=$ac_useropt |
1205 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1206 | case $ac_user_opts in | |
1207 | *" | |
1208 | "with_$ac_useropt" | |
1209 | "*) ;; | |
1210 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1211 | ac_unrecognized_sep=', ';; | |
252b5132 | 1212 | esac |
81ecdfbb | 1213 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1214 | |
1215 | -without-* | --without-*) | |
81ecdfbb | 1216 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1217 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1218 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1219 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1220 | ac_useropt_orig=$ac_useropt |
1221 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1222 | case $ac_user_opts in | |
1223 | *" | |
1224 | "with_$ac_useropt" | |
1225 | "*) ;; | |
1226 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1227 | ac_unrecognized_sep=', ';; | |
1228 | esac | |
1229 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1230 | |
1231 | --x) | |
1232 | # Obsolete; use --with-x. | |
1233 | with_x=yes ;; | |
1234 | ||
1235 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1236 | | --x-incl | --x-inc | --x-in | --x-i) | |
1237 | ac_prev=x_includes ;; | |
1238 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1239 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 1240 | x_includes=$ac_optarg ;; |
252b5132 RH |
1241 | |
1242 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1243 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1244 | ac_prev=x_libraries ;; | |
1245 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1246 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 1247 | x_libraries=$ac_optarg ;; |
252b5132 | 1248 | |
d0ac1c44 SM |
1249 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1250 | Try \`$0 --help' for more information" | |
252b5132 RH |
1251 | ;; |
1252 | ||
42ecbf5e DJ |
1253 | *=*) |
1254 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1255 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1256 | case $ac_envvar in #( |
1257 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1258 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1259 | esac |
1260 | eval $ac_envvar=\$ac_optarg | |
42ecbf5e DJ |
1261 | export $ac_envvar ;; |
1262 | ||
252b5132 | 1263 | *) |
42ecbf5e | 1264 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1265 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
42ecbf5e | 1266 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1267 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1268 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
252b5132 RH |
1269 | ;; |
1270 | ||
1271 | esac | |
1272 | done | |
1273 | ||
1274 | if test -n "$ac_prev"; then | |
42ecbf5e | 1275 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1276 | as_fn_error $? "missing argument to $ac_option" |
252b5132 RH |
1277 | fi |
1278 | ||
81ecdfbb RW |
1279 | if test -n "$ac_unrecognized_opts"; then |
1280 | case $enable_option_checking in | |
1281 | no) ;; | |
d0ac1c44 | 1282 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1283 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
42ecbf5e | 1284 | esac |
81ecdfbb | 1285 | fi |
252b5132 | 1286 | |
81ecdfbb RW |
1287 | # Check all directory arguments for consistency. |
1288 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1289 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1290 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
31b0378d | 1291 | libdir localedir mandir |
252b5132 | 1292 | do |
81ecdfbb RW |
1293 | eval ac_val=\$$ac_var |
1294 | # Remove trailing slashes. | |
42ecbf5e | 1295 | case $ac_val in |
81ecdfbb RW |
1296 | */ ) |
1297 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1298 | eval $ac_var=\$ac_val;; | |
252b5132 | 1299 | esac |
81ecdfbb RW |
1300 | # Be sure to have absolute directory names. |
1301 | case $ac_val in | |
1302 | [\\/$]* | ?:[\\/]* ) continue;; | |
1303 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1304 | esac | |
d0ac1c44 | 1305 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1306 | done |
1307 | ||
42ecbf5e DJ |
1308 | # There might be people who depend on the old broken behavior: `$host' |
1309 | # used to hold the argument of --host etc. | |
1310 | # FIXME: To remove some day. | |
1311 | build=$build_alias | |
1312 | host=$host_alias | |
1313 | target=$target_alias | |
1314 | ||
1315 | # FIXME: To remove some day. | |
1316 | if test "x$host_alias" != x; then | |
1317 | if test "x$build_alias" = x; then | |
1318 | cross_compiling=maybe | |
42ecbf5e DJ |
1319 | elif test "x$build_alias" != "x$host_alias"; then |
1320 | cross_compiling=yes | |
1321 | fi | |
1322 | fi | |
e5a52504 | 1323 | |
42ecbf5e DJ |
1324 | ac_tool_prefix= |
1325 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1326 | ||
1327 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1328 | |
252b5132 | 1329 | |
81ecdfbb RW |
1330 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1331 | ac_ls_di=`ls -di .` && | |
1332 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1333 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1334 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1335 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1336 | |
1337 | ||
252b5132 RH |
1338 | # Find the source files, if location was not specified. |
1339 | if test -z "$srcdir"; then | |
1340 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1341 | # Try the directory containing this script, then the parent directory. |
1342 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1343 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1344 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1345 | X"$as_myself" : 'X\(//\)$' \| \ | |
1346 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1347 | $as_echo X"$as_myself" | | |
1348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1349 | s//\1/ | |
1350 | q | |
1351 | } | |
1352 | /^X\(\/\/\)[^/].*/{ | |
1353 | s//\1/ | |
1354 | q | |
1355 | } | |
1356 | /^X\(\/\/\)$/{ | |
1357 | s//\1/ | |
1358 | q | |
1359 | } | |
1360 | /^X\(\/\).*/{ | |
1361 | s//\1/ | |
1362 | q | |
1363 | } | |
1364 | s/.*/./; q'` | |
252b5132 | 1365 | srcdir=$ac_confdir |
81ecdfbb | 1366 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1367 | srcdir=.. |
1368 | fi | |
1369 | else | |
1370 | ac_srcdir_defaulted=no | |
1371 | fi | |
81ecdfbb RW |
1372 | if test ! -r "$srcdir/$ac_unique_file"; then |
1373 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1374 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1375 | fi |
1376 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1377 | ac_abs_confdir=`( | |
d0ac1c44 | 1378 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1379 | pwd)` |
1380 | # When building in place, set srcdir=. | |
1381 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1382 | srcdir=. | |
1383 | fi | |
1384 | # Remove unnecessary trailing slashes from srcdir. | |
1385 | # Double slashes in file names in object file debugging info | |
1386 | # mess up M-x gdb in Emacs. | |
1387 | case $srcdir in | |
1388 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1389 | esac | |
1390 | for ac_var in $ac_precious_vars; do | |
1391 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1392 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1393 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1394 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1395 | done | |
252b5132 | 1396 | |
42ecbf5e DJ |
1397 | # |
1398 | # Report the --help message. | |
1399 | # | |
1400 | if test "$ac_init_help" = "long"; then | |
1401 | # Omit some internal or obsolete options to make the list less imposing. | |
1402 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1403 | cat <<_ACEOF | |
675b9d61 | 1404 | \`configure' configures binutils 2.41 to adapt to many kinds of systems. |
252b5132 | 1405 | |
42ecbf5e | 1406 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1407 | |
42ecbf5e DJ |
1408 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1409 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1410 | |
42ecbf5e | 1411 | Defaults for the options are specified in brackets. |
ac48eca1 | 1412 | |
42ecbf5e DJ |
1413 | Configuration: |
1414 | -h, --help display this help and exit | |
1415 | --help=short display options specific to this package | |
1416 | --help=recursive display the short help of all the included packages | |
1417 | -V, --version display version information and exit | |
d0ac1c44 | 1418 | -q, --quiet, --silent do not print \`checking ...' messages |
42ecbf5e DJ |
1419 | --cache-file=FILE cache test results in FILE [disabled] |
1420 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1421 | -n, --no-create do not create output files | |
1422 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1423 | ||
42ecbf5e DJ |
1424 | Installation directories: |
1425 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1426 | [$ac_default_prefix] |
42ecbf5e | 1427 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1428 | [PREFIX] |
ac48eca1 | 1429 | |
42ecbf5e DJ |
1430 | By default, \`make install' will install all the files in |
1431 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1432 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1433 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1434 | |
42ecbf5e | 1435 | For better control, use the options below. |
ac48eca1 | 1436 | |
42ecbf5e | 1437 | Fine tuning of the installation directories: |
81ecdfbb RW |
1438 | --bindir=DIR user executables [EPREFIX/bin] |
1439 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1440 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1441 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1442 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1443 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1444 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1445 | --includedir=DIR C header files [PREFIX/include] | |
1446 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1447 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1448 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1449 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1450 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1451 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1452 | --docdir=DIR documentation root [DATAROOTDIR/doc/binutils] |
81ecdfbb RW |
1453 | --htmldir=DIR html documentation [DOCDIR] |
1454 | --dvidir=DIR dvi documentation [DOCDIR] | |
1455 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1456 | --psdir=DIR ps documentation [DOCDIR] | |
42ecbf5e | 1457 | _ACEOF |
ac48eca1 | 1458 | |
42ecbf5e | 1459 | cat <<\_ACEOF |
252b5132 | 1460 | |
42ecbf5e DJ |
1461 | Program names: |
1462 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1463 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1464 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1465 | |
42ecbf5e DJ |
1466 | System types: |
1467 | --build=BUILD configure for building on BUILD [guessed] | |
1468 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1469 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1470 | _ACEOF | |
252b5132 | 1471 | fi |
252b5132 | 1472 | |
42ecbf5e | 1473 | if test -n "$ac_init_help"; then |
2e98a7bd | 1474 | case $ac_init_help in |
675b9d61 | 1475 | short | recursive ) echo "Configuration of binutils 2.41:";; |
2e98a7bd | 1476 | esac |
42ecbf5e | 1477 | cat <<\_ACEOF |
252b5132 | 1478 | |
42ecbf5e | 1479 | Optional Features: |
81ecdfbb | 1480 | --disable-option-checking ignore unrecognized --enable/--with options |
42ecbf5e DJ |
1481 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1482 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
87b9f255 AM |
1483 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1484 | --disable-silent-rules verbose build output (undo: "make V=0") | |
d0ac1c44 SM |
1485 | --enable-dependency-tracking |
1486 | do not reject slow dependency extractors | |
1487 | --disable-dependency-tracking | |
1488 | speeds up one-time build | |
81ecdfbb RW |
1489 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1490 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1491 | --enable-fast-install[=PKGS] |
1492 | optimize for fast installation [default=yes] | |
42ecbf5e | 1493 | --disable-libtool-lock avoid locking (might break parallel builds) |
b879806f AM |
1494 | --enable-plugins Enable support for plugins |
1495 | --disable-largefile omit support for large files | |
43e05cd4 | 1496 | --enable-checking enable run-time checks |
42ecbf5e | 1497 | --enable-targets alternative target configurations |
9cb80f72 RM |
1498 | --enable-deterministic-archives |
1499 | ar and ranlib default to -D behavior | |
7fac9594 NC |
1500 | --disable-default-strings-all |
1501 | strings defaults to --data behavior | |
e6f6aa8d NC |
1502 | --enable-f-for-ifunc-symbols |
1503 | Have nm use F and f for global and local ifunc | |
1504 | symbols | |
c46b7066 NC |
1505 | --enable-follow-debug-links |
1506 | Have readelf and objdump follow debug links by | |
1507 | default | |
18bf5643 NC |
1508 | --enable-colored-disassembly |
1509 | Have objdump use colors in its disassembly by | |
1510 | default | |
094e34f2 | 1511 | --enable-libctf Handle .ctf type-info sections [default=yes] |
241a6c40 AM |
1512 | --enable-werror treat compile warnings as errors |
1513 | --enable-build-warnings enable build-time compiler warnings | |
42ecbf5e | 1514 | --disable-nls do not use Native Language Support |
d0ac1c44 SM |
1515 | --enable-maintainer-mode |
1516 | enable make rules and dependencies not useful (and | |
1517 | sometimes confusing) to the casual installer | |
5ba684e2 | 1518 | --disable-rpath do not hardcode runtime library paths |
42ecbf5e DJ |
1519 | |
1520 | Optional Packages: | |
1521 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1522 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1523 | --with-pic try to use only PIC/non-PIC objects [default=use |
1524 | both] | |
1525 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
301a9420 AM |
1526 | --with-debuginfod Enable debuginfo lookups with debuginfod |
1527 | (auto/yes/no) | |
0ee42ecd | 1528 | --with-system-zlib use installed libz |
2cac01e3 FS |
1529 | --with-zstd support zstd compressed debug sections |
1530 | (default=auto) | |
2952f10c | 1531 | --with-msgpack Enable msgpack support (auto/yes/no) |
5ba684e2 NC |
1532 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1533 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1534 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
9f1528a1 | 1535 | --with-libiconv-type=TYPE type of library to search for (auto/static/shared) |
252b5132 | 1536 | |
42ecbf5e DJ |
1537 | Some influential environment variables: |
1538 | CC C compiler command | |
1539 | CFLAGS C compiler flags | |
1540 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1541 | nonstandard directory <lib dir> | |
81ecdfbb | 1542 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1543 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1544 | you have headers in a nonstandard directory <include dir> |
42ecbf5e | 1545 | CPP C preprocessor |
f6720b1c AM |
1546 | PKG_CONFIG path to pkg-config utility |
1547 | PKG_CONFIG_PATH | |
1548 | directories to add to pkg-config's search path | |
1549 | PKG_CONFIG_LIBDIR | |
1550 | path overriding pkg-config's built-in search path | |
1551 | DEBUGINFOD_CFLAGS | |
1552 | C compiler flags for DEBUGINFOD, overriding pkg-config | |
1553 | DEBUGINFOD_LIBS | |
1554 | linker flags for DEBUGINFOD, overriding pkg-config | |
d0ac1c44 SM |
1555 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1556 | Defaults to the first program found out of: `bison -y', `byacc', | |
1557 | `yacc'. | |
81ecdfbb RW |
1558 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1559 | This script will default YFLAGS to the empty string to avoid a | |
1560 | default value of `-d' given by some make applications. | |
2cac01e3 FS |
1561 | ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config |
1562 | ZSTD_LIBS linker flags for ZSTD, overriding pkg-config | |
2952f10c SM |
1563 | MSGPACK_CFLAGS |
1564 | C compiler flags for MSGPACK, overriding pkg-config | |
1565 | MSGPACK_LIBS | |
1566 | linker flags for MSGPACK, overriding pkg-config | |
e5a52504 | 1567 | |
42ecbf5e DJ |
1568 | Use these variables to override the choices made by `configure' or to help |
1569 | it to find libraries and programs with nonstandard names/locations. | |
1570 | ||
81ecdfbb | 1571 | Report bugs to the package provider. |
42ecbf5e | 1572 | _ACEOF |
81ecdfbb | 1573 | ac_status=$? |
252b5132 RH |
1574 | fi |
1575 | ||
42ecbf5e DJ |
1576 | if test "$ac_init_help" = "recursive"; then |
1577 | # If there are subdirs, report their specific --help. | |
42ecbf5e | 1578 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1579 | test -d "$ac_dir" || |
1580 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1581 | continue | |
42ecbf5e DJ |
1582 | ac_builddir=. |
1583 | ||
81ecdfbb RW |
1584 | case "$ac_dir" in |
1585 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1586 | *) | |
1587 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1588 | # A ".." for each directory in $ac_dir_suffix. | |
1589 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1590 | case $ac_top_builddir_sub in | |
1591 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1592 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1593 | esac ;; | |
1594 | esac | |
1595 | ac_abs_top_builddir=$ac_pwd | |
1596 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1597 | # for backward compatibility: | |
1598 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 1599 | |
42ecbf5e | 1600 | case $srcdir in |
81ecdfbb | 1601 | .) # We are building in place. |
42ecbf5e | 1602 | ac_srcdir=. |
81ecdfbb RW |
1603 | ac_top_srcdir=$ac_top_builddir_sub |
1604 | ac_abs_top_srcdir=$ac_pwd ;; | |
1605 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 1606 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1607 | ac_top_srcdir=$srcdir |
1608 | ac_abs_top_srcdir=$srcdir ;; | |
1609 | *) # Relative name. | |
1610 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1611 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1612 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
252b5132 | 1613 | esac |
81ecdfbb RW |
1614 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1615 | ||
1616 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1617 | # Check for guested configure. | |
1618 | if test -f "$ac_srcdir/configure.gnu"; then | |
1619 | echo && | |
1620 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1621 | elif test -f "$ac_srcdir/configure"; then | |
1622 | echo && | |
1623 | $SHELL "$ac_srcdir/configure" --help=recursive | |
42ecbf5e | 1624 | else |
81ecdfbb RW |
1625 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1626 | fi || ac_status=$? | |
1627 | cd "$ac_pwd" || { ac_status=$?; break; } | |
42ecbf5e DJ |
1628 | done |
1629 | fi | |
5d64ca4e | 1630 | |
81ecdfbb | 1631 | test -n "$ac_init_help" && exit $ac_status |
42ecbf5e DJ |
1632 | if $ac_init_version; then |
1633 | cat <<\_ACEOF | |
675b9d61 | 1634 | binutils configure 2.41 |
d0ac1c44 | 1635 | generated by GNU Autoconf 2.69 |
5d64ca4e | 1636 | |
d0ac1c44 | 1637 | Copyright (C) 2012 Free Software Foundation, Inc. |
42ecbf5e DJ |
1638 | This configure script is free software; the Free Software Foundation |
1639 | gives unlimited permission to copy, distribute and modify it. | |
1640 | _ACEOF | |
81ecdfbb | 1641 | exit |
42ecbf5e | 1642 | fi |
252b5132 | 1643 | |
81ecdfbb RW |
1644 | ## ------------------------ ## |
1645 | ## Autoconf initialization. ## | |
1646 | ## ------------------------ ## | |
e5a52504 | 1647 | |
81ecdfbb RW |
1648 | # ac_fn_c_try_compile LINENO |
1649 | # -------------------------- | |
1650 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1651 | ac_fn_c_try_compile () | |
42ecbf5e | 1652 | { |
81ecdfbb RW |
1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1654 | rm -f conftest.$ac_objext | |
1655 | if { { ac_try="$ac_compile" | |
1656 | case "(($ac_try" in | |
1657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1658 | *) ac_try_echo=$ac_try;; | |
1659 | esac | |
1660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1661 | $as_echo "$ac_try_echo"; } >&5 | |
1662 | (eval "$ac_compile") 2>conftest.err | |
1663 | ac_status=$? | |
1664 | if test -s conftest.err; then | |
1665 | grep -v '^ *+' conftest.err >conftest.er1 | |
1666 | cat conftest.er1 >&5 | |
1667 | mv -f conftest.er1 conftest.err | |
1668 | fi | |
1669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1670 | test $ac_status = 0; } && { | |
1671 | test -z "$ac_c_werror_flag" || | |
1672 | test ! -s conftest.err | |
1673 | } && test -s conftest.$ac_objext; then : | |
1674 | ac_retval=0 | |
1675 | else | |
1676 | $as_echo "$as_me: failed program was:" >&5 | |
1677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 1678 | |
81ecdfbb RW |
1679 | ac_retval=1 |
1680 | fi | |
d0ac1c44 SM |
1681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1682 | as_fn_set_status $ac_retval | |
42ecbf5e | 1683 | |
81ecdfbb RW |
1684 | } # ac_fn_c_try_compile |
1685 | ||
81ecdfbb RW |
1686 | # ac_fn_c_try_cpp LINENO |
1687 | # ---------------------- | |
1688 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1689 | ac_fn_c_try_cpp () | |
1690 | { | |
1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1692 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1693 | case "(($ac_try" in | |
1694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1695 | *) ac_try_echo=$ac_try;; | |
1696 | esac | |
1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1698 | $as_echo "$ac_try_echo"; } >&5 | |
1699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1700 | ac_status=$? | |
1701 | if test -s conftest.err; then | |
1702 | grep -v '^ *+' conftest.err >conftest.er1 | |
1703 | cat conftest.er1 >&5 | |
1704 | mv -f conftest.er1 conftest.err | |
1705 | fi | |
1706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1707 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1708 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1709 | test ! -s conftest.err | |
1710 | }; then : | |
1711 | ac_retval=0 | |
1712 | else | |
1713 | $as_echo "$as_me: failed program was:" >&5 | |
1714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1715 | ||
1716 | ac_retval=1 | |
1717 | fi | |
d0ac1c44 SM |
1718 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1719 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1720 | |
1721 | } # ac_fn_c_try_cpp | |
1722 | ||
1723 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1724 | # ------------------------------------------------------- | |
1725 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1726 | # the include files in INCLUDES and setting the cache variable VAR | |
1727 | # accordingly. | |
1728 | ac_fn_c_check_header_mongrel () | |
1729 | { | |
1730 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1731 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1733 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1734 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1735 | $as_echo_n "(cached) " >&6 |
1736 | fi | |
1737 | eval ac_res=\$$3 | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1739 | $as_echo "$ac_res" >&6; } | |
1740 | else | |
1741 | # Is the header compilable? | |
1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1743 | $as_echo_n "checking $2 usability... " >&6; } | |
1744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1745 | /* end confdefs.h. */ | |
1746 | $4 | |
1747 | #include <$2> | |
1748 | _ACEOF | |
1749 | if ac_fn_c_try_compile "$LINENO"; then : | |
1750 | ac_header_compiler=yes | |
1751 | else | |
1752 | ac_header_compiler=no | |
1753 | fi | |
1754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1756 | $as_echo "$ac_header_compiler" >&6; } | |
1757 | ||
1758 | # Is the header present? | |
1759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1760 | $as_echo_n "checking $2 presence... " >&6; } | |
1761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1762 | /* end confdefs.h. */ | |
1763 | #include <$2> | |
1764 | _ACEOF | |
1765 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1766 | ac_header_preproc=yes | |
1767 | else | |
1768 | ac_header_preproc=no | |
1769 | fi | |
d0ac1c44 | 1770 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1772 | $as_echo "$ac_header_preproc" >&6; } | |
1773 | ||
1774 | # So? What about this header? | |
1775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1776 | yes:no: ) | |
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1778 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1780 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1781 | ;; | |
1782 | no:yes:* ) | |
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1784 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1786 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1788 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1790 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1792 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1793 | ;; | |
1794 | esac | |
1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1796 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1797 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1798 | $as_echo_n "(cached) " >&6 |
1799 | else | |
1800 | eval "$3=\$ac_header_compiler" | |
1801 | fi | |
1802 | eval ac_res=\$$3 | |
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1804 | $as_echo "$ac_res" >&6; } | |
1805 | fi | |
d0ac1c44 | 1806 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1807 | |
1808 | } # ac_fn_c_check_header_mongrel | |
1809 | ||
1810 | # ac_fn_c_try_run LINENO | |
1811 | # ---------------------- | |
1812 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1813 | # that executables *can* be run. | |
1814 | ac_fn_c_try_run () | |
1815 | { | |
1816 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1817 | if { { ac_try="$ac_link" | |
1818 | case "(($ac_try" in | |
1819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1820 | *) ac_try_echo=$ac_try;; | |
1821 | esac | |
1822 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1823 | $as_echo "$ac_try_echo"; } >&5 | |
1824 | (eval "$ac_link") 2>&5 | |
1825 | ac_status=$? | |
1826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1827 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1828 | { { case "(($ac_try" in | |
1829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1830 | *) ac_try_echo=$ac_try;; | |
1831 | esac | |
1832 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1833 | $as_echo "$ac_try_echo"; } >&5 | |
1834 | (eval "$ac_try") 2>&5 | |
1835 | ac_status=$? | |
1836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1837 | test $ac_status = 0; }; }; then : | |
1838 | ac_retval=0 | |
1839 | else | |
1840 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1841 | $as_echo "$as_me: failed program was:" >&5 | |
1842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1843 | ||
1844 | ac_retval=$ac_status | |
1845 | fi | |
1846 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1847 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1848 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1849 | |
1850 | } # ac_fn_c_try_run | |
1851 | ||
1852 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1853 | # ------------------------------------------------------- | |
1854 | # Tests whether HEADER exists and can be compiled using the include files in | |
1855 | # INCLUDES, setting the cache variable VAR accordingly. | |
1856 | ac_fn_c_check_header_compile () | |
1857 | { | |
1858 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1860 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1861 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1862 | $as_echo_n "(cached) " >&6 |
1863 | else | |
1864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1865 | /* end confdefs.h. */ | |
1866 | $4 | |
1867 | #include <$2> | |
1868 | _ACEOF | |
1869 | if ac_fn_c_try_compile "$LINENO"; then : | |
1870 | eval "$3=yes" | |
1871 | else | |
1872 | eval "$3=no" | |
1873 | fi | |
1874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1875 | fi | |
1876 | eval ac_res=\$$3 | |
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1878 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1879 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1880 | |
1881 | } # ac_fn_c_check_header_compile | |
1882 | ||
87b9f255 AM |
1883 | # ac_fn_c_try_link LINENO |
1884 | # ----------------------- | |
1885 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1886 | ac_fn_c_try_link () | |
1887 | { | |
1888 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1890 | if { { ac_try="$ac_link" | |
1891 | case "(($ac_try" in | |
1892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1893 | *) ac_try_echo=$ac_try;; | |
1894 | esac | |
1895 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1896 | $as_echo "$ac_try_echo"; } >&5 | |
1897 | (eval "$ac_link") 2>conftest.err | |
1898 | ac_status=$? | |
1899 | if test -s conftest.err; then | |
1900 | grep -v '^ *+' conftest.err >conftest.er1 | |
1901 | cat conftest.er1 >&5 | |
1902 | mv -f conftest.er1 conftest.err | |
1903 | fi | |
1904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1905 | test $ac_status = 0; } && { | |
1906 | test -z "$ac_c_werror_flag" || | |
1907 | test ! -s conftest.err | |
1908 | } && test -s conftest$ac_exeext && { | |
1909 | test "$cross_compiling" = yes || | |
1910 | test -x conftest$ac_exeext | |
1911 | }; then : | |
1912 | ac_retval=0 | |
1913 | else | |
1914 | $as_echo "$as_me: failed program was:" >&5 | |
1915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1916 | ||
1917 | ac_retval=1 | |
1918 | fi | |
1919 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1920 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1921 | # interfere with the next link command; also delete a directory that is | |
1922 | # left behind by Apple's compiler. We do this before executing the actions. | |
1923 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1925 | as_fn_set_status $ac_retval | |
1926 | ||
1927 | } # ac_fn_c_try_link | |
1928 | ||
81ecdfbb RW |
1929 | # ac_fn_c_check_func LINENO FUNC VAR |
1930 | # ---------------------------------- | |
1931 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1932 | ac_fn_c_check_func () | |
1933 | { | |
1934 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1936 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1937 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1938 | $as_echo_n "(cached) " >&6 |
1939 | else | |
1940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1941 | /* end confdefs.h. */ | |
1942 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1943 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1944 | #define $2 innocuous_$2 | |
1945 | ||
1946 | /* System header to define __stub macros and hopefully few prototypes, | |
1947 | which can conflict with char $2 (); below. | |
1948 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1949 | <limits.h> exists even on freestanding compilers. */ | |
1950 | ||
1951 | #ifdef __STDC__ | |
1952 | # include <limits.h> | |
1953 | #else | |
1954 | # include <assert.h> | |
1955 | #endif | |
1956 | ||
1957 | #undef $2 | |
1958 | ||
1959 | /* Override any GCC internal prototype to avoid an error. | |
1960 | Use char because int might match the return type of a GCC | |
1961 | builtin and then its argument prototype would still apply. */ | |
1962 | #ifdef __cplusplus | |
1963 | extern "C" | |
1964 | #endif | |
1965 | char $2 (); | |
1966 | /* The GNU C library defines this for functions which it implements | |
1967 | to always fail with ENOSYS. Some functions are actually named | |
1968 | something starting with __ and the normal name is an alias. */ | |
1969 | #if defined __stub_$2 || defined __stub___$2 | |
1970 | choke me | |
1971 | #endif | |
1972 | ||
1973 | int | |
1974 | main () | |
1975 | { | |
1976 | return $2 (); | |
1977 | ; | |
1978 | return 0; | |
1979 | } | |
1980 | _ACEOF | |
1981 | if ac_fn_c_try_link "$LINENO"; then : | |
1982 | eval "$3=yes" | |
1983 | else | |
1984 | eval "$3=no" | |
1985 | fi | |
1986 | rm -f core conftest.err conftest.$ac_objext \ | |
1987 | conftest$ac_exeext conftest.$ac_ext | |
1988 | fi | |
1989 | eval ac_res=\$$3 | |
1990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1991 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1992 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1993 | |
1994 | } # ac_fn_c_check_func | |
1995 | ||
985e0264 AM |
1996 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1997 | # ---------------------------------------------------- | |
1998 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1999 | # INCLUDES, setting cache variable VAR accordingly. | |
2000 | ac_fn_c_check_member () | |
2001 | { | |
2002 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2004 | $as_echo_n "checking for $2.$3... " >&6; } | |
2005 | if eval \${$4+:} false; then : | |
2006 | $as_echo_n "(cached) " >&6 | |
2007 | else | |
2008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2009 | /* end confdefs.h. */ | |
2010 | $5 | |
2011 | int | |
2012 | main () | |
2013 | { | |
2014 | static $2 ac_aggr; | |
2015 | if (ac_aggr.$3) | |
2016 | return 0; | |
2017 | ; | |
2018 | return 0; | |
2019 | } | |
2020 | _ACEOF | |
2021 | if ac_fn_c_try_compile "$LINENO"; then : | |
2022 | eval "$4=yes" | |
2023 | else | |
2024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2025 | /* end confdefs.h. */ | |
2026 | $5 | |
2027 | int | |
2028 | main () | |
2029 | { | |
2030 | static $2 ac_aggr; | |
2031 | if (sizeof ac_aggr.$3) | |
2032 | return 0; | |
2033 | ; | |
2034 | return 0; | |
2035 | } | |
2036 | _ACEOF | |
2037 | if ac_fn_c_try_compile "$LINENO"; then : | |
2038 | eval "$4=yes" | |
2039 | else | |
2040 | eval "$4=no" | |
2041 | fi | |
2042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2043 | fi | |
2044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2045 | fi | |
2046 | eval ac_res=\$$4 | |
2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2048 | $as_echo "$ac_res" >&6; } | |
2049 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2050 | ||
2051 | } # ac_fn_c_check_member | |
2052 | ||
f6720b1c AM |
2053 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2054 | # --------------------------------------------- | |
2055 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2056 | # accordingly. | |
2057 | ac_fn_c_check_decl () | |
2058 | { | |
2059 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2060 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2061 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2063 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2064 | if eval \${$3+:} false; then : | |
2065 | $as_echo_n "(cached) " >&6 | |
2066 | else | |
2067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2068 | /* end confdefs.h. */ | |
2069 | $4 | |
2070 | int | |
2071 | main () | |
2072 | { | |
2073 | #ifndef $as_decl_name | |
2074 | #ifdef __cplusplus | |
2075 | (void) $as_decl_use; | |
2076 | #else | |
2077 | (void) $as_decl_name; | |
2078 | #endif | |
2079 | #endif | |
2080 | ||
2081 | ; | |
2082 | return 0; | |
2083 | } | |
2084 | _ACEOF | |
2085 | if ac_fn_c_try_compile "$LINENO"; then : | |
2086 | eval "$3=yes" | |
2087 | else | |
2088 | eval "$3=no" | |
2089 | fi | |
2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2091 | fi | |
2092 | eval ac_res=\$$3 | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2094 | $as_echo "$ac_res" >&6; } | |
2095 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2096 | ||
2097 | } # ac_fn_c_check_decl | |
81ecdfbb RW |
2098 | cat >config.log <<_ACEOF |
2099 | This file contains any messages produced by compilers while | |
2100 | running configure, to aid debugging if configure makes a mistake. | |
2101 | ||
675b9d61 | 2102 | It was created by binutils $as_me 2.41, which was |
d0ac1c44 | 2103 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
2104 | |
2105 | $ $0 $@ | |
2106 | ||
2107 | _ACEOF | |
2108 | exec 5>>config.log | |
2109 | { | |
2110 | cat <<_ASUNAME | |
2111 | ## --------- ## | |
2112 | ## Platform. ## | |
2113 | ## --------- ## | |
2114 | ||
2115 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2116 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2117 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2118 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2119 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2120 | ||
2121 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2122 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2123 | ||
2124 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2125 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2126 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2127 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2128 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2129 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2130 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
42ecbf5e DJ |
2131 | |
2132 | _ASUNAME | |
2133 | ||
2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2135 | for as_dir in $PATH | |
2136 | do | |
2137 | IFS=$as_save_IFS | |
2138 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2139 | $as_echo "PATH: $as_dir" |
2140 | done | |
2141 | IFS=$as_save_IFS | |
e5a52504 | 2142 | |
42ecbf5e | 2143 | } >&5 |
ceae3e33 | 2144 | |
42ecbf5e | 2145 | cat >&5 <<_ACEOF |
e5a52504 | 2146 | |
42ecbf5e DJ |
2147 | |
2148 | ## ----------- ## | |
2149 | ## Core tests. ## | |
2150 | ## ----------- ## | |
2151 | ||
2152 | _ACEOF | |
2153 | ||
2154 | ||
2155 | # Keep a trace of the command line. | |
2156 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2157 | # Strip out --silent because we don't want to record it for future runs. | |
2158 | # Also quote any args containing shell meta-characters. | |
2159 | # Make two passes to allow for proper duplicate-argument suppression. | |
2160 | ac_configure_args= | |
2161 | ac_configure_args0= | |
2162 | ac_configure_args1= | |
42ecbf5e DJ |
2163 | ac_must_keep_next=false |
2164 | for ac_pass in 1 2 | |
2165 | do | |
2166 | for ac_arg | |
2167 | do | |
2168 | case $ac_arg in | |
2169 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2170 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2171 | | -silent | --silent | --silen | --sile | --sil) | |
2172 | continue ;; | |
81ecdfbb RW |
2173 | *\'*) |
2174 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42ecbf5e DJ |
2175 | esac |
2176 | case $ac_pass in | |
81ecdfbb | 2177 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
42ecbf5e | 2178 | 2) |
81ecdfbb | 2179 | as_fn_append ac_configure_args1 " '$ac_arg'" |
42ecbf5e DJ |
2180 | if test $ac_must_keep_next = true; then |
2181 | ac_must_keep_next=false # Got value, back to normal. | |
2182 | else | |
2183 | case $ac_arg in | |
2184 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2185 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2186 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2187 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2188 | case "$ac_configure_args0 " in | |
2189 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2190 | esac | |
2191 | ;; | |
2192 | -* ) ac_must_keep_next=true ;; | |
2193 | esac | |
2194 | fi | |
81ecdfbb | 2195 | as_fn_append ac_configure_args " '$ac_arg'" |
42ecbf5e DJ |
2196 | ;; |
2197 | esac | |
2198 | done | |
2199 | done | |
81ecdfbb RW |
2200 | { ac_configure_args0=; unset ac_configure_args0;} |
2201 | { ac_configure_args1=; unset ac_configure_args1;} | |
42ecbf5e DJ |
2202 | |
2203 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2204 | # config.log. We remove comments because anyway the quotes in there | |
2205 | # would cause problems or look ugly. | |
81ecdfbb RW |
2206 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2207 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
42ecbf5e DJ |
2208 | trap 'exit_status=$? |
2209 | # Save into config.log some information that might help in debugging. | |
2210 | { | |
2211 | echo | |
2212 | ||
d0ac1c44 | 2213 | $as_echo "## ---------------- ## |
42ecbf5e | 2214 | ## Cache variables. ## |
d0ac1c44 | 2215 | ## ---------------- ##" |
42ecbf5e DJ |
2216 | echo |
2217 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2218 | ( |
2219 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2220 | eval ac_val=\$$ac_var | |
2221 | case $ac_val in #( | |
2222 | *${as_nl}*) | |
2223 | case $ac_var in #( | |
2224 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2225 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2226 | esac | |
2227 | case $ac_var in #( | |
2228 | _ | IFS | as_nl) ;; #( | |
2229 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2230 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2231 | esac ;; | |
2232 | esac | |
2233 | done | |
42ecbf5e | 2234 | (set) 2>&1 | |
81ecdfbb RW |
2235 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2236 | *${as_nl}ac_space=\ *) | |
42ecbf5e | 2237 | sed -n \ |
81ecdfbb RW |
2238 | "s/'\''/'\''\\\\'\'''\''/g; |
2239 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2240 | ;; #( | |
42ecbf5e | 2241 | *) |
81ecdfbb | 2242 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 2243 | ;; |
81ecdfbb RW |
2244 | esac | |
2245 | sort | |
2246 | ) | |
42ecbf5e DJ |
2247 | echo |
2248 | ||
d0ac1c44 | 2249 | $as_echo "## ----------------- ## |
42ecbf5e | 2250 | ## Output variables. ## |
d0ac1c44 | 2251 | ## ----------------- ##" |
42ecbf5e DJ |
2252 | echo |
2253 | for ac_var in $ac_subst_vars | |
2254 | do | |
81ecdfbb RW |
2255 | eval ac_val=\$$ac_var |
2256 | case $ac_val in | |
2257 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2258 | esac | |
2259 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2260 | done | sort |
2261 | echo | |
2262 | ||
2263 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2264 | $as_echo "## ------------------- ## |
81ecdfbb | 2265 | ## File substitutions. ## |
d0ac1c44 | 2266 | ## ------------------- ##" |
42ecbf5e DJ |
2267 | echo |
2268 | for ac_var in $ac_subst_files | |
2269 | do | |
81ecdfbb RW |
2270 | eval ac_val=\$$ac_var |
2271 | case $ac_val in | |
2272 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2273 | esac | |
2274 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2275 | done | sort |
2276 | echo | |
2277 | fi | |
2278 | ||
2279 | if test -s confdefs.h; then | |
d0ac1c44 | 2280 | $as_echo "## ----------- ## |
42ecbf5e | 2281 | ## confdefs.h. ## |
d0ac1c44 | 2282 | ## ----------- ##" |
42ecbf5e | 2283 | echo |
81ecdfbb | 2284 | cat confdefs.h |
42ecbf5e DJ |
2285 | echo |
2286 | fi | |
2287 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2288 | $as_echo "$as_me: caught signal $ac_signal" |
2289 | $as_echo "$as_me: exit $exit_status" | |
42ecbf5e | 2290 | } >&5 |
81ecdfbb RW |
2291 | rm -f core *.core core.conftest.* && |
2292 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
42ecbf5e | 2293 | exit $exit_status |
81ecdfbb | 2294 | ' 0 |
42ecbf5e | 2295 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2296 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
42ecbf5e DJ |
2297 | done |
2298 | ac_signal=0 | |
2299 | ||
2300 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2301 | rm -f -r conftest* confdefs.h |
2302 | ||
2303 | $as_echo "/* confdefs.h */" > confdefs.h | |
42ecbf5e DJ |
2304 | |
2305 | # Predefined preprocessor variables. | |
2306 | ||
2307 | cat >>confdefs.h <<_ACEOF | |
2308 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2309 | _ACEOF | |
2310 | ||
42ecbf5e DJ |
2311 | cat >>confdefs.h <<_ACEOF |
2312 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2313 | _ACEOF | |
2314 | ||
42ecbf5e DJ |
2315 | cat >>confdefs.h <<_ACEOF |
2316 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2317 | _ACEOF | |
2318 | ||
42ecbf5e DJ |
2319 | cat >>confdefs.h <<_ACEOF |
2320 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2321 | _ACEOF | |
2322 | ||
42ecbf5e DJ |
2323 | cat >>confdefs.h <<_ACEOF |
2324 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2325 | _ACEOF | |
2326 | ||
81ecdfbb RW |
2327 | cat >>confdefs.h <<_ACEOF |
2328 | #define PACKAGE_URL "$PACKAGE_URL" | |
2329 | _ACEOF | |
2330 | ||
42ecbf5e DJ |
2331 | |
2332 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2333 | # Prefer an explicitly selected file to automatically selected ones. |
2334 | ac_site_file1=NONE | |
2335 | ac_site_file2=NONE | |
2336 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2337 | # We do not want a PATH search for config.site. |
2338 | case $CONFIG_SITE in #(( | |
2339 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2340 | */*) ac_site_file1=$CONFIG_SITE;; | |
2341 | *) ac_site_file1=./$CONFIG_SITE;; | |
2342 | esac | |
81ecdfbb RW |
2343 | elif test "x$prefix" != xNONE; then |
2344 | ac_site_file1=$prefix/share/config.site | |
2345 | ac_site_file2=$prefix/etc/config.site | |
2346 | else | |
2347 | ac_site_file1=$ac_default_prefix/share/config.site | |
2348 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2349 | fi | |
2350 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2351 | do | |
2352 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2353 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2355 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
42ecbf5e | 2356 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2357 | . "$ac_site_file" \ |
2358 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2359 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2360 | as_fn_error $? "failed to load site script $ac_site_file | |
2361 | See \`config.log' for more details" "$LINENO" 5; } | |
42ecbf5e DJ |
2362 | fi |
2363 | done | |
2364 | ||
2365 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2366 | # Some versions of bash will fail to source /dev/null (special files |
2367 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2368 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2370 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
42ecbf5e | 2371 | case $cache_file in |
81ecdfbb RW |
2372 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2373 | *) . "./$cache_file";; | |
42ecbf5e DJ |
2374 | esac |
2375 | fi | |
2376 | else | |
81ecdfbb RW |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2378 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
42ecbf5e DJ |
2379 | >$cache_file |
2380 | fi | |
2381 | ||
34156b23 L |
2382 | as_fn_append ac_header_list " stdlib.h" |
2383 | as_fn_append ac_header_list " unistd.h" | |
2384 | as_fn_append ac_header_list " sys/param.h" | |
42ecbf5e DJ |
2385 | # Check that the precious variables saved in the cache have kept the same |
2386 | # value. | |
2387 | ac_cache_corrupted=false | |
81ecdfbb | 2388 | for ac_var in $ac_precious_vars; do |
42ecbf5e DJ |
2389 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2390 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2391 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2392 | eval ac_new_val=\$ac_env_${ac_var}_value | |
42ecbf5e DJ |
2393 | case $ac_old_set,$ac_new_set in |
2394 | set,) | |
81ecdfbb RW |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2396 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
42ecbf5e DJ |
2397 | ac_cache_corrupted=: ;; |
2398 | ,set) | |
81ecdfbb RW |
2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2400 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
42ecbf5e DJ |
2401 | ac_cache_corrupted=: ;; |
2402 | ,);; | |
2403 | *) | |
2404 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2405 | # differences in whitespace do not lead to failure. |
2406 | ac_old_val_w=`echo x $ac_old_val` | |
2407 | ac_new_val_w=`echo x $ac_new_val` | |
2408 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2410 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2411 | ac_cache_corrupted=: | |
2412 | else | |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2414 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2415 | eval $ac_var=\$ac_old_val | |
2416 | fi | |
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2418 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2420 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
42ecbf5e DJ |
2421 | fi;; |
2422 | esac | |
2423 | # Pass precious variables to config.status. | |
2424 | if test "$ac_new_set" = set; then | |
2425 | case $ac_new_val in | |
81ecdfbb | 2426 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
42ecbf5e DJ |
2427 | *) ac_arg=$ac_var=$ac_new_val ;; |
2428 | esac | |
2429 | case " $ac_configure_args " in | |
2430 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2431 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
42ecbf5e DJ |
2432 | esac |
2433 | fi | |
2434 | done | |
2435 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2437 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2439 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2440 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
42ecbf5e | 2441 | fi |
81ecdfbb RW |
2442 | ## -------------------- ## |
2443 | ## Main body of script. ## | |
2444 | ## -------------------- ## | |
42ecbf5e DJ |
2445 | |
2446 | ac_ext=c | |
2447 | ac_cpp='$CPP $CPPFLAGS' | |
2448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2451 | ||
2452 | ||
2453 | ||
42ecbf5e | 2454 | |
da594c4a | 2455 | |
42ecbf5e DJ |
2456 | |
2457 | ||
2458 | ac_aux_dir= | |
81ecdfbb | 2459 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2460 | if test -f "$ac_dir/install-sh"; then |
2461 | ac_aux_dir=$ac_dir | |
2462 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2463 | break | |
2464 | elif test -f "$ac_dir/install.sh"; then | |
2465 | ac_aux_dir=$ac_dir | |
2466 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2467 | break | |
2468 | elif test -f "$ac_dir/shtool"; then | |
2469 | ac_aux_dir=$ac_dir | |
2470 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2471 | break | |
2472 | fi | |
42ecbf5e DJ |
2473 | done |
2474 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2475 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
42ecbf5e | 2476 | fi |
81ecdfbb RW |
2477 | |
2478 | # These three variables are undocumented and unsupported, | |
2479 | # and are intended to be withdrawn in a future Autoconf release. | |
2480 | # They can cause serious problems if a builder's source tree is in a directory | |
2481 | # whose full name contains unusual characters. | |
2482 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2483 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2484 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2485 | ||
42ecbf5e DJ |
2486 | |
2487 | # Make sure we can run config.sub. | |
81ecdfbb | 2488 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2489 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2490 | |
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2492 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2493 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2494 | $as_echo_n "(cached) " >&6 |
2495 | else | |
2496 | ac_build_alias=$build_alias | |
2497 | test "x$ac_build_alias" = x && | |
2498 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2499 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2500 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2501 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2502 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2503 | |
2504 | fi | |
2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2506 | $as_echo "$ac_cv_build" >&6; } | |
2507 | case $ac_cv_build in | |
2508 | *-*-*) ;; | |
d0ac1c44 | 2509 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2510 | esac |
42ecbf5e | 2511 | build=$ac_cv_build |
81ecdfbb RW |
2512 | ac_save_IFS=$IFS; IFS='-' |
2513 | set x $ac_cv_build | |
2514 | shift | |
2515 | build_cpu=$1 | |
2516 | build_vendor=$2 | |
2517 | shift; shift | |
2518 | # Remember, the first character of IFS is used to create $*, | |
2519 | # except with old shells: | |
2520 | build_os=$* | |
2521 | IFS=$ac_save_IFS | |
2522 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2523 | |
2524 | ||
81ecdfbb RW |
2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2526 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2527 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2528 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 2529 | else |
81ecdfbb RW |
2530 | if test "x$host_alias" = x; then |
2531 | ac_cv_host=$ac_cv_build | |
2532 | else | |
2533 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2534 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2535 | fi |
42ecbf5e DJ |
2536 | |
2537 | fi | |
81ecdfbb RW |
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2539 | $as_echo "$ac_cv_host" >&6; } | |
2540 | case $ac_cv_host in | |
2541 | *-*-*) ;; | |
d0ac1c44 | 2542 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2543 | esac |
42ecbf5e | 2544 | host=$ac_cv_host |
81ecdfbb RW |
2545 | ac_save_IFS=$IFS; IFS='-' |
2546 | set x $ac_cv_host | |
2547 | shift | |
2548 | host_cpu=$1 | |
2549 | host_vendor=$2 | |
2550 | shift; shift | |
2551 | # Remember, the first character of IFS is used to create $*, | |
2552 | # except with old shells: | |
2553 | host_os=$* | |
2554 | IFS=$ac_save_IFS | |
2555 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2556 | |
2557 | ||
81ecdfbb RW |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2559 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2560 | if ${ac_cv_target+:} false; then : |
81ecdfbb RW |
2561 | $as_echo_n "(cached) " >&6 |
2562 | else | |
2563 | if test "x$target_alias" = x; then | |
2564 | ac_cv_target=$ac_cv_host | |
42ecbf5e | 2565 | else |
81ecdfbb | 2566 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
d0ac1c44 | 2567 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2568 | fi |
42ecbf5e DJ |
2569 | |
2570 | fi | |
81ecdfbb RW |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2572 | $as_echo "$ac_cv_target" >&6; } | |
2573 | case $ac_cv_target in | |
2574 | *-*-*) ;; | |
d0ac1c44 | 2575 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2576 | esac |
42ecbf5e | 2577 | target=$ac_cv_target |
81ecdfbb RW |
2578 | ac_save_IFS=$IFS; IFS='-' |
2579 | set x $ac_cv_target | |
2580 | shift | |
2581 | target_cpu=$1 | |
2582 | target_vendor=$2 | |
2583 | shift; shift | |
2584 | # Remember, the first character of IFS is used to create $*, | |
2585 | # except with old shells: | |
2586 | target_os=$* | |
2587 | IFS=$ac_save_IFS | |
2588 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2589 | |
2590 | ||
2591 | # The aliases save the names the user supplied, while $host etc. | |
2592 | # will get canonicalized. | |
2593 | test -n "$target_alias" && | |
2594 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2595 | NONENONEs,x,x, && | |
2596 | program_prefix=${target_alias}- | |
d0ac1c44 | 2597 | |
b9583093 | 2598 | am__api_version='1.15' |
87b9f255 AM |
2599 | |
2600 | # Find a good install program. We prefer a C program (faster), | |
2601 | # so one script is as good as another. But avoid the broken or | |
2602 | # incompatible versions: | |
2603 | # SysV /etc/install, /usr/sbin/install | |
2604 | # SunOS /usr/etc/install | |
2605 | # IRIX /sbin/install | |
2606 | # AIX /bin/install | |
2607 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2608 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2609 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2610 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2611 | # OS/2's system install, which has a completely different semantic | |
2612 | # ./install, which can be erroneously created by make from ./install.sh. | |
2613 | # Reject install programs that cannot install multiple files. | |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2615 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2616 | if test -z "$INSTALL"; then | |
2617 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 2618 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 2619 | else |
87b9f255 | 2620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
42ecbf5e DJ |
2621 | for as_dir in $PATH |
2622 | do | |
2623 | IFS=$as_save_IFS | |
2624 | test -z "$as_dir" && as_dir=. | |
87b9f255 AM |
2625 | # Account for people who put trailing slashes in PATH elements. |
2626 | case $as_dir/ in #(( | |
2627 | ./ | .// | /[cC]/* | \ | |
2628 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2629 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2630 | /usr/ucb/* ) ;; | |
2631 | *) | |
2632 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2633 | # Don't use installbsd from OSF since it installs stuff as root | |
2634 | # by default. | |
2635 | for ac_prog in ginstall scoinst install; do | |
2636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2637 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2638 | if test $ac_prog = install && | |
2639 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2640 | # AIX install. It has an incompatible calling convention. | |
2641 | : | |
2642 | elif test $ac_prog = install && | |
2643 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2644 | # program-specific install script used by HP pwplus--don't use. | |
2645 | : | |
2646 | else | |
2647 | rm -rf conftest.one conftest.two conftest.dir | |
2648 | echo one > conftest.one | |
2649 | echo two > conftest.two | |
2650 | mkdir conftest.dir | |
2651 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2652 | test -s conftest.one && test -s conftest.two && | |
2653 | test -s conftest.dir/conftest.one && | |
2654 | test -s conftest.dir/conftest.two | |
2655 | then | |
2656 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2657 | break 3 | |
2658 | fi | |
2659 | fi | |
2660 | fi | |
2661 | done | |
2662 | done | |
2663 | ;; | |
2664 | esac | |
2665 | ||
81ecdfbb RW |
2666 | done |
2667 | IFS=$as_save_IFS | |
42ecbf5e | 2668 | |
87b9f255 AM |
2669 | rm -rf conftest.one conftest.two conftest.dir |
2670 | ||
252b5132 RH |
2671 | fi |
2672 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 2673 | INSTALL=$ac_cv_path_install |
252b5132 | 2674 | else |
58c85be7 RW |
2675 | # As a last resort, use the slow shell script. Don't cache a |
2676 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2677 | # break other packages using the cache if that directory is |
58c85be7 | 2678 | # removed, or if the value is a relative name. |
42ecbf5e | 2679 | INSTALL=$ac_install_sh |
252b5132 RH |
2680 | fi |
2681 | fi | |
81ecdfbb RW |
2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2683 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
2684 | |
2685 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2686 | # It thinks the first close brace ends the variable substitution. | |
2687 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2688 | ||
42ecbf5e | 2689 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2690 | |
2691 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2692 | ||
81ecdfbb RW |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2694 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
81ecdfbb RW |
2695 | # Reject unsafe characters in $srcdir or the absolute working directory |
2696 | # name. Accept space and tab only in the latter. | |
2697 | am_lf=' | |
2698 | ' | |
2699 | case `pwd` in | |
2700 | *[\\\"\#\$\&\'\`$am_lf]*) | |
d0ac1c44 | 2701 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
81ecdfbb RW |
2702 | esac |
2703 | case $srcdir in | |
2704 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
d0ac1c44 | 2705 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
81ecdfbb RW |
2706 | esac |
2707 | ||
d0ac1c44 | 2708 | # Do 'set' in a subshell so we don't clobber the current shell's |
252b5132 RH |
2709 | # arguments. Must try -L first in case configure is actually a |
2710 | # symlink; some systems play weird games with the mod time of symlinks | |
2711 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2712 | # directory). | |
2713 | if ( | |
d0ac1c44 SM |
2714 | am_has_slept=no |
2715 | for am_try in 1 2; do | |
2716 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2717 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2718 | if test "$*" = "X"; then | |
2719 | # -L didn't work. | |
2720 | set X `ls -t "$srcdir/configure" conftest.file` | |
2721 | fi | |
2722 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2723 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2724 | ||
2725 | # If neither matched, then we have a broken ls. This can happen | |
2726 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2727 | # broken ls alias from the environment. This has actually | |
2728 | # happened. Such a system could not be considered "sane". | |
2729 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2730 | alias in your environment" "$LINENO" 5 | |
2731 | fi | |
2732 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2733 | break | |
2734 | fi | |
2735 | # Just in case. | |
2736 | sleep 1 | |
2737 | am_has_slept=yes | |
2738 | done | |
42ecbf5e | 2739 | test "$2" = conftest.file |
252b5132 RH |
2740 | ) |
2741 | then | |
2742 | # Ok. | |
2743 | : | |
2744 | else | |
d0ac1c44 | 2745 | as_fn_error $? "newly created file is older than distributed files! |
81ecdfbb | 2746 | Check your system clock" "$LINENO" 5 |
42ecbf5e | 2747 | fi |
81ecdfbb RW |
2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2749 | $as_echo "yes" >&6; } | |
d0ac1c44 SM |
2750 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2751 | # generated files are strictly newer. | |
2752 | am_sleep_pid= | |
2753 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2754 | ( sleep 1 ) & | |
2755 | am_sleep_pid=$! | |
2756 | fi | |
2757 | ||
2758 | rm -f conftest.file | |
2759 | ||
42ecbf5e | 2760 | test "$program_prefix" != NONE && |
81ecdfbb | 2761 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
42ecbf5e DJ |
2762 | # Use a double $ so make ignores it. |
2763 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2764 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2765 | # Double any \ or $. | |
42ecbf5e | 2766 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2767 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2768 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
42ecbf5e | 2769 | |
87b9f255 AM |
2770 | # Expand $ac_aux_dir to an absolute path. |
2771 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2772 | ||
81ecdfbb | 2773 | if test x"${MISSING+set}" != xset; then |
b9583093 AM |
2774 | case $am_aux_dir in |
2775 | *\ * | *\ *) | |
2776 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2777 | *) | |
2778 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2779 | esac | |
81ecdfbb | 2780 | fi |
42ecbf5e | 2781 | # Use eval to expand $SHELL |
d0ac1c44 SM |
2782 | if eval "$MISSING --is-lightweight"; then |
2783 | am_missing_run="$MISSING " | |
42ecbf5e DJ |
2784 | else |
2785 | am_missing_run= | |
d0ac1c44 SM |
2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2787 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
42ecbf5e DJ |
2788 | fi |
2789 | ||
d0ac1c44 | 2790 | if test x"${install_sh+set}" != xset; then |
81ecdfbb RW |
2791 | case $am_aux_dir in |
2792 | *\ * | *\ *) | |
2793 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2794 | *) | |
2795 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2796 | esac | |
2797 | fi | |
2798 | ||
d0ac1c44 SM |
2799 | # Installed binaries are usually stripped using 'strip' when the user |
2800 | # run "make install-strip". However 'strip' might not be the right | |
81ecdfbb | 2801 | # tool to use in cross-compilation environments, therefore Automake |
d0ac1c44 | 2802 | # will honor the 'STRIP' environment variable to overrule this program. |
81ecdfbb RW |
2803 | if test "$cross_compiling" != no; then |
2804 | if test -n "$ac_tool_prefix"; then | |
2805 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2806 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2808 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2809 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 2810 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 2811 | else |
81ecdfbb RW |
2812 | if test -n "$STRIP"; then |
2813 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
42ecbf5e DJ |
2814 | else |
2815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2816 | for as_dir in $PATH | |
2817 | do | |
2818 | IFS=$as_save_IFS | |
2819 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2820 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2822 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2824 | break 2 | |
2825 | fi | |
2826 | done | |
2827 | done | |
2828 | IFS=$as_save_IFS | |
2829 | ||
2830 | fi | |
2831 | fi | |
2832 | STRIP=$ac_cv_prog_STRIP | |
2833 | if test -n "$STRIP"; then | |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2835 | $as_echo "$STRIP" >&6; } | |
2836 | else | |
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2838 | $as_echo "no" >&6; } | |
2839 | fi | |
2840 | ||
2841 | ||
2842 | fi | |
2843 | if test -z "$ac_cv_prog_STRIP"; then | |
2844 | ac_ct_STRIP=$STRIP | |
2845 | # Extract the first word of "strip", so it can be a program name with args. | |
2846 | set dummy strip; ac_word=$2 | |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2848 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2849 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb RW |
2850 | $as_echo_n "(cached) " >&6 |
2851 | else | |
2852 | if test -n "$ac_ct_STRIP"; then | |
2853 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2854 | else | |
2855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2856 | for as_dir in $PATH | |
2857 | do | |
2858 | IFS=$as_save_IFS | |
2859 | test -z "$as_dir" && as_dir=. | |
2860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2862 | ac_cv_prog_ac_ct_STRIP="strip" |
2863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42ecbf5e DJ |
2864 | break 2 |
2865 | fi | |
2866 | done | |
81ecdfbb RW |
2867 | done |
2868 | IFS=$as_save_IFS | |
2869 | ||
2870 | fi | |
2871 | fi | |
2872 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2873 | if test -n "$ac_ct_STRIP"; then | |
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2875 | $as_echo "$ac_ct_STRIP" >&6; } | |
2876 | else | |
2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2878 | $as_echo "no" >&6; } | |
2879 | fi | |
2880 | ||
2881 | if test "x$ac_ct_STRIP" = x; then | |
2882 | STRIP=":" | |
2883 | else | |
2884 | case $cross_compiling:$ac_tool_warned in | |
2885 | yes:) | |
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2887 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2888 | ac_tool_warned=yes ;; | |
2889 | esac | |
2890 | STRIP=$ac_ct_STRIP | |
2891 | fi | |
2892 | else | |
2893 | STRIP="$ac_cv_prog_STRIP" | |
2894 | fi | |
2895 | ||
2896 | fi | |
2897 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2898 | ||
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2900 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2901 | if test -z "$MKDIR_P"; then | |
d0ac1c44 | 2902 | if ${ac_cv_path_mkdir+:} false; then : |
81ecdfbb RW |
2903 | $as_echo_n "(cached) " >&6 |
2904 | else | |
2905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2906 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2907 | do | |
2908 | IFS=$as_save_IFS | |
2909 | test -z "$as_dir" && as_dir=. | |
2910 | for ac_prog in mkdir gmkdir; do | |
2911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2912 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
81ecdfbb RW |
2913 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2914 | 'mkdir (GNU coreutils) '* | \ | |
2915 | 'mkdir (coreutils) '* | \ | |
2916 | 'mkdir (fileutils) '4.1*) | |
2917 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2918 | break 3;; | |
2919 | esac | |
2920 | done | |
2921 | done | |
2922 | done | |
2923 | IFS=$as_save_IFS | |
2924 | ||
2925 | fi | |
2926 | ||
d0ac1c44 | 2927 | test -d ./--version && rmdir ./--version |
81ecdfbb RW |
2928 | if test "${ac_cv_path_mkdir+set}" = set; then |
2929 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2930 | else | |
2931 | # As a last resort, use the slow shell script. Don't cache a | |
2932 | # value for MKDIR_P within a source directory, because that will | |
2933 | # break other packages using the cache if that directory is | |
2934 | # removed, or if the value is a relative name. | |
81ecdfbb RW |
2935 | MKDIR_P="$ac_install_sh -d" |
2936 | fi | |
2937 | fi | |
2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2939 | $as_echo "$MKDIR_P" >&6; } | |
2940 | ||
81ecdfbb RW |
2941 | for ac_prog in gawk mawk nawk awk |
2942 | do | |
2943 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2944 | set dummy $ac_prog; ac_word=$2 | |
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2946 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2947 | if ${ac_cv_prog_AWK+:} false; then : |
81ecdfbb RW |
2948 | $as_echo_n "(cached) " >&6 |
2949 | else | |
2950 | if test -n "$AWK"; then | |
2951 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2952 | else | |
2953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2954 | for as_dir in $PATH | |
2955 | do | |
2956 | IFS=$as_save_IFS | |
2957 | test -z "$as_dir" && as_dir=. | |
2958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2960 | ac_cv_prog_AWK="$ac_prog" |
2961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2962 | break 2 | |
2963 | fi | |
42ecbf5e | 2964 | done |
81ecdfbb RW |
2965 | done |
2966 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2967 | |
2968 | fi | |
2969 | fi | |
2970 | AWK=$ac_cv_prog_AWK | |
2971 | if test -n "$AWK"; then | |
81ecdfbb RW |
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2973 | $as_echo "$AWK" >&6; } | |
42ecbf5e | 2974 | else |
81ecdfbb RW |
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2976 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2977 | fi |
2978 | ||
81ecdfbb | 2979 | |
42ecbf5e DJ |
2980 | test -n "$AWK" && break |
2981 | done | |
2982 | ||
81ecdfbb RW |
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2984 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2985 | set x ${MAKE-make} | |
2986 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0ac1c44 | 2987 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb | 2988 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
2989 | else |
2990 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 2991 | SHELL = /bin/sh |
42ecbf5e | 2992 | all: |
81ecdfbb | 2993 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
42ecbf5e | 2994 | _ACEOF |
d0ac1c44 | 2995 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
2996 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2997 | *@@@%%%=?*=@@@%%%*) | |
2998 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2999 | *) | |
3000 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3001 | esac | |
42ecbf5e DJ |
3002 | rm -f conftest.make |
3003 | fi | |
81ecdfbb RW |
3004 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3006 | $as_echo "yes" >&6; } | |
42ecbf5e DJ |
3007 | SET_MAKE= |
3008 | else | |
81ecdfbb RW |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3010 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
3011 | SET_MAKE="MAKE=${MAKE-make}" |
3012 | fi | |
3013 | ||
3014 | rm -rf .tst 2>/dev/null | |
3015 | mkdir .tst 2>/dev/null | |
3016 | if test -d .tst; then | |
3017 | am__leading_dot=. | |
3018 | else | |
3019 | am__leading_dot=_ | |
3020 | fi | |
3021 | rmdir .tst 2>/dev/null | |
3022 | ||
d0ac1c44 SM |
3023 | # Check whether --enable-silent-rules was given. |
3024 | if test "${enable_silent_rules+set}" = set; then : | |
3025 | enableval=$enable_silent_rules; | |
3026 | fi | |
3027 | ||
3028 | case $enable_silent_rules in # ((( | |
3029 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3030 | no) AM_DEFAULT_VERBOSITY=1;; | |
3031 | *) AM_DEFAULT_VERBOSITY=1;; | |
3032 | esac | |
3033 | am_make=${MAKE-make} | |
3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3035 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3036 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3037 | $as_echo_n "(cached) " >&6 | |
3038 | else | |
3039 | if $as_echo 'TRUE=$(BAR$(V)) | |
3040 | BAR0=false | |
3041 | BAR1=true | |
3042 | V=1 | |
3043 | am__doit: | |
3044 | @$(TRUE) | |
3045 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3046 | am_cv_make_support_nested_variables=yes | |
3047 | else | |
3048 | am_cv_make_support_nested_variables=no | |
3049 | fi | |
3050 | fi | |
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3052 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3053 | if test $am_cv_make_support_nested_variables = yes; then | |
3054 | AM_V='$(V)' | |
3055 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3056 | else | |
3057 | AM_V=$AM_DEFAULT_VERBOSITY | |
3058 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3059 | fi | |
3060 | AM_BACKSLASH='\' | |
3061 | ||
81ecdfbb RW |
3062 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3063 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3064 | # is not polluted with repeated "-I." | |
3065 | am__isrc=' -I$(srcdir)' | |
3066 | # test to see if srcdir already configured | |
3067 | if test -f $srcdir/config.status; then | |
d0ac1c44 | 3068 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
81ecdfbb | 3069 | fi |
42ecbf5e DJ |
3070 | fi |
3071 | ||
3072 | # test whether we have cygpath | |
3073 | if test -z "$CYGPATH_W"; then | |
3074 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3075 | CYGPATH_W='cygpath -w' | |
3076 | else | |
3077 | CYGPATH_W=echo | |
3078 | fi | |
3079 | fi | |
3080 | ||
3081 | ||
3082 | # Define the identity of the package. | |
2e98a7bd | 3083 | PACKAGE='binutils' |
675b9d61 | 3084 | VERSION='2.41' |
42ecbf5e DJ |
3085 | |
3086 | ||
3087 | cat >>confdefs.h <<_ACEOF | |
3088 | #define PACKAGE "$PACKAGE" | |
3089 | _ACEOF | |
3090 | ||
3091 | ||
3092 | cat >>confdefs.h <<_ACEOF | |
3093 | #define VERSION "$VERSION" | |
3094 | _ACEOF | |
3095 | ||
3096 | # Some tools Automake needs. | |
3097 | ||
3098 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3099 | ||
3100 | ||
3101 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3102 | ||
3103 | ||
3104 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3105 | ||
3106 | ||
3107 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3108 | ||
3109 | ||
3110 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3111 | ||
d0ac1c44 SM |
3112 | # For better backward compatibility. To be removed once Automake 1.9.x |
3113 | # dies out for good. For more background, see: | |
b9583093 AM |
3114 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
3115 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
d0ac1c44 SM |
3116 | mkdir_p='$(MKDIR_P)' |
3117 | ||
3118 | # We need awk for the "check" target (and possibly the TAP driver). The | |
87b9f255 AM |
3119 | # system "awk" is bad on some platforms. |
3120 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3121 | # in the wild :-( We should find a proper way to deprecate it ... | |
3122 | AMTAR='$${TAR-tar}' | |
3123 | ||
3124 | ||
3125 | # We'll loop over all known methods to create a tar archive until one works. | |
3126 | _am_tools='gnutar pax cpio none' | |
3127 | ||
3128 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
42ecbf5e | 3129 | |
252b5132 | 3130 | |
42ecbf5e | 3131 | |
252b5132 RH |
3132 | |
3133 | ||
3134 | ||
d0ac1c44 SM |
3135 | # POSIX will say in a future version that running "rm -f" with no argument |
3136 | # is OK; and we want to be able to make that assumption in our Makefile | |
3137 | # recipes. So use an aggressive probe to check that the usage we want is | |
3138 | # actually supported "in the wild" to an acceptable degree. | |
3139 | # See automake bug#10828. | |
3140 | # To make any issue more visible, cause the running configure to be aborted | |
3141 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3142 | # user can still override this though. | |
3143 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3144 | cat >&2 <<'END' | |
3145 | Oops! | |
3146 | ||
3147 | Your 'rm' program seems unable to run without file operands specified | |
3148 | on the command line, even when the '-f' option is present. This is contrary | |
3149 | to the behaviour of most rm programs out there, and not conforming with | |
3150 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3151 | ||
3152 | Please tell bug-automake@gnu.org about your system, including the value | |
3153 | of your $PATH and any error possibly output before this message. This | |
3154 | can help us improve future automake versions. | |
3155 | ||
3156 | END | |
3157 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3158 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3159 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3160 | echo >&2 | |
3161 | else | |
3162 | cat >&2 <<'END' | |
3163 | Aborting the configuration process, to ensure you take notice of the issue. | |
3164 | ||
3165 | You can download and install GNU coreutils to get an 'rm' implementation | |
b9583093 | 3166 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
d0ac1c44 SM |
3167 | |
3168 | If you want to complete the configuration process using your problematic | |
3169 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3170 | to "yes", and re-run configure. | |
3171 | ||
3172 | END | |
3173 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3174 | fi | |
3175 | fi | |
3176 | ||
d8bbdb9d MF |
3177 | # Check whether --enable-silent-rules was given. |
3178 | if test "${enable_silent_rules+set}" = set; then : | |
3179 | enableval=$enable_silent_rules; | |
3180 | fi | |
3181 | ||
3182 | case $enable_silent_rules in # ((( | |
3183 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3184 | no) AM_DEFAULT_VERBOSITY=1;; | |
3185 | *) AM_DEFAULT_VERBOSITY=0;; | |
3186 | esac | |
3187 | am_make=${MAKE-make} | |
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3189 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3190 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3191 | $as_echo_n "(cached) " >&6 | |
3192 | else | |
3193 | if $as_echo 'TRUE=$(BAR$(V)) | |
3194 | BAR0=false | |
3195 | BAR1=true | |
3196 | V=1 | |
3197 | am__doit: | |
3198 | @$(TRUE) | |
3199 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3200 | am_cv_make_support_nested_variables=yes | |
3201 | else | |
3202 | am_cv_make_support_nested_variables=no | |
3203 | fi | |
3204 | fi | |
3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3206 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3207 | if test $am_cv_make_support_nested_variables = yes; then | |
3208 | AM_V='$(V)' | |
3209 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3210 | else | |
3211 | AM_V=$AM_DEFAULT_VERBOSITY | |
3212 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3213 | fi | |
3214 | AM_BACKSLASH='\' | |
3215 | ||
42ecbf5e | 3216 | |
d45dc31f SE |
3217 | ac_ext=c |
3218 | ac_cpp='$CPP $CPPFLAGS' | |
3219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3220 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3221 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3222 | if test -n "$ac_tool_prefix"; then | |
3223 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3224 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3226 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3227 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3228 | $as_echo_n "(cached) " >&6 |
252b5132 | 3229 | else |
d45dc31f SE |
3230 | if test -n "$CC"; then |
3231 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1a09a22c | 3232 | else |
d45dc31f SE |
3233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3234 | for as_dir in $PATH | |
3235 | do | |
3236 | IFS=$as_save_IFS | |
3237 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3238 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3239 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d45dc31f | 3240 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
3242 | break 2 |
3243 | fi | |
3244 | done | |
81ecdfbb RW |
3245 | done |
3246 | IFS=$as_save_IFS | |
ceae3e33 | 3247 | |
d45dc31f SE |
3248 | fi |
3249 | fi | |
3250 | CC=$ac_cv_prog_CC | |
3251 | if test -n "$CC"; then | |
81ecdfbb RW |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3253 | $as_echo "$CC" >&6; } | |
252b5132 | 3254 | else |
81ecdfbb RW |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3256 | $as_echo "no" >&6; } | |
252b5132 | 3257 | fi |
d45dc31f | 3258 | |
81ecdfbb | 3259 | |
d45dc31f SE |
3260 | fi |
3261 | if test -z "$ac_cv_prog_CC"; then | |
3262 | ac_ct_CC=$CC | |
3263 | # Extract the first word of "gcc", so it can be a program name with args. | |
3264 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3266 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3267 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3268 | $as_echo_n "(cached) " >&6 |
252b5132 | 3269 | else |
d45dc31f SE |
3270 | if test -n "$ac_ct_CC"; then |
3271 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3272 | else |
d45dc31f SE |
3273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3274 | for as_dir in $PATH | |
3275 | do | |
3276 | IFS=$as_save_IFS | |
3277 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3278 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d45dc31f | 3280 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
3282 | break 2 |
3283 | fi | |
3284 | done | |
81ecdfbb RW |
3285 | done |
3286 | IFS=$as_save_IFS | |
d45dc31f | 3287 | |
252b5132 RH |
3288 | fi |
3289 | fi | |
d45dc31f SE |
3290 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3291 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3293 | $as_echo "$ac_ct_CC" >&6; } | |
252b5132 | 3294 | else |
81ecdfbb RW |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3296 | $as_echo "no" >&6; } | |
252b5132 | 3297 | fi |
d45dc31f | 3298 | |
81ecdfbb RW |
3299 | if test "x$ac_ct_CC" = x; then |
3300 | CC="" | |
3301 | else | |
3302 | case $cross_compiling:$ac_tool_warned in | |
3303 | yes:) | |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3305 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3306 | ac_tool_warned=yes ;; | |
3307 | esac | |
3308 | CC=$ac_ct_CC | |
3309 | fi | |
d45dc31f SE |
3310 | else |
3311 | CC="$ac_cv_prog_CC" | |
3312 | fi | |
3313 | ||
3314 | if test -z "$CC"; then | |
81ecdfbb RW |
3315 | if test -n "$ac_tool_prefix"; then |
3316 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d45dc31f | 3317 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3319 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3320 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3321 | $as_echo_n "(cached) " >&6 |
252b5132 | 3322 | else |
d45dc31f SE |
3323 | if test -n "$CC"; then |
3324 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3325 | else |
d45dc31f SE |
3326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3327 | for as_dir in $PATH | |
3328 | do | |
3329 | IFS=$as_save_IFS | |
3330 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3331 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3332 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d45dc31f | 3333 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
3335 | break 2 |
3336 | fi | |
3337 | done | |
81ecdfbb RW |
3338 | done |
3339 | IFS=$as_save_IFS | |
d45dc31f | 3340 | |
252b5132 RH |
3341 | fi |
3342 | fi | |
d45dc31f SE |
3343 | CC=$ac_cv_prog_CC |
3344 | if test -n "$CC"; then | |
81ecdfbb RW |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3346 | $as_echo "$CC" >&6; } | |
d45dc31f | 3347 | else |
81ecdfbb RW |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3349 | $as_echo "no" >&6; } | |
252b5132 RH |
3350 | fi |
3351 | ||
252b5132 | 3352 | |
81ecdfbb | 3353 | fi |
d45dc31f SE |
3354 | fi |
3355 | if test -z "$CC"; then | |
3356 | # Extract the first word of "cc", so it can be a program name with args. | |
3357 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3359 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3360 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3361 | $as_echo_n "(cached) " >&6 |
252b5132 | 3362 | else |
d45dc31f SE |
3363 | if test -n "$CC"; then |
3364 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3365 | else | |
3366 | ac_prog_rejected=no | |
3367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3368 | for as_dir in $PATH | |
3369 | do | |
3370 | IFS=$as_save_IFS | |
3371 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3372 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3373 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d45dc31f SE |
3374 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3375 | ac_prog_rejected=yes | |
3376 | continue | |
3377 | fi | |
3378 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
3380 | break 2 |
3381 | fi | |
3382 | done | |
81ecdfbb RW |
3383 | done |
3384 | IFS=$as_save_IFS | |
d45dc31f SE |
3385 | |
3386 | if test $ac_prog_rejected = yes; then | |
3387 | # We found a bogon in the path, so make sure we never use it. | |
3388 | set dummy $ac_cv_prog_CC | |
3389 | shift | |
3390 | if test $# != 0; then | |
3391 | # We chose a different compiler from the bogus one. | |
3392 | # However, it has the same basename, so the bogon will be chosen | |
3393 | # first if we set CC to just the basename; use the full file name. | |
3394 | shift | |
3395 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3396 | fi | |
3397 | fi | |
3398 | fi | |
3399 | fi | |
3400 | CC=$ac_cv_prog_CC | |
3401 | if test -n "$CC"; then | |
81ecdfbb RW |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3403 | $as_echo "$CC" >&6; } | |
d45dc31f | 3404 | else |
81ecdfbb RW |
3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3406 | $as_echo "no" >&6; } | |
252b5132 RH |
3407 | fi |
3408 | ||
81ecdfbb | 3409 | |
d45dc31f SE |
3410 | fi |
3411 | if test -z "$CC"; then | |
3412 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3413 | for ac_prog in cl.exe |
d45dc31f SE |
3414 | do |
3415 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3416 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3418 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3419 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3420 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 3421 | else |
d45dc31f SE |
3422 | if test -n "$CC"; then |
3423 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3424 | else | |
3425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3426 | for as_dir in $PATH | |
3427 | do | |
3428 | IFS=$as_save_IFS | |
3429 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3430 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d45dc31f | 3432 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
3434 | break 2 |
3435 | fi | |
3436 | done | |
81ecdfbb RW |
3437 | done |
3438 | IFS=$as_save_IFS | |
ac48eca1 | 3439 | |
d45dc31f SE |
3440 | fi |
3441 | fi | |
3442 | CC=$ac_cv_prog_CC | |
3443 | if test -n "$CC"; then | |
81ecdfbb RW |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3445 | $as_echo "$CC" >&6; } | |
d45dc31f | 3446 | else |
81ecdfbb RW |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3448 | $as_echo "no" >&6; } | |
d45dc31f | 3449 | fi |
ac48eca1 | 3450 | |
81ecdfbb | 3451 | |
d45dc31f SE |
3452 | test -n "$CC" && break |
3453 | done | |
3454 | fi | |
3455 | if test -z "$CC"; then | |
3456 | ac_ct_CC=$CC | |
81ecdfbb | 3457 | for ac_prog in cl.exe |
d45dc31f SE |
3458 | do |
3459 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3460 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3462 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3463 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3464 | $as_echo_n "(cached) " >&6 |
d45dc31f SE |
3465 | else |
3466 | if test -n "$ac_ct_CC"; then | |
3467 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3468 | else | |
3469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3470 | for as_dir in $PATH | |
3471 | do | |
3472 | IFS=$as_save_IFS | |
3473 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3474 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3475 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d45dc31f | 3476 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
3478 | break 2 |
3479 | fi | |
3480 | done | |
81ecdfbb RW |
3481 | done |
3482 | IFS=$as_save_IFS | |
ac48eca1 | 3483 | |
d45dc31f SE |
3484 | fi |
3485 | fi | |
3486 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3487 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3489 | $as_echo "$ac_ct_CC" >&6; } | |
d45dc31f | 3490 | else |
81ecdfbb RW |
3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3492 | $as_echo "no" >&6; } | |
d45dc31f | 3493 | fi |
ac48eca1 | 3494 | |
81ecdfbb | 3495 | |
d45dc31f SE |
3496 | test -n "$ac_ct_CC" && break |
3497 | done | |
ac48eca1 | 3498 | |
81ecdfbb RW |
3499 | if test "x$ac_ct_CC" = x; then |
3500 | CC="" | |
3501 | else | |
3502 | case $cross_compiling:$ac_tool_warned in | |
3503 | yes:) | |
3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3505 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3506 | ac_tool_warned=yes ;; | |
3507 | esac | |
3508 | CC=$ac_ct_CC | |
3509 | fi | |
d45dc31f | 3510 | fi |
ac48eca1 | 3511 | |
87b9f255 AM |
3512 | fi |
3513 | ||
3514 | ||
3515 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3516 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3517 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3518 | See \`config.log' for more details" "$LINENO" 5; } | |
3519 | ||
3520 | # Provide some information about the compiler. | |
3521 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3522 | set X $ac_compile | |
3523 | ac_compiler=$2 | |
3524 | for ac_option in --version -v -V -qversion; do | |
3525 | { { ac_try="$ac_compiler $ac_option >&5" | |
3526 | case "(($ac_try" in | |
3527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3528 | *) ac_try_echo=$ac_try;; | |
3529 | esac | |
3530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3531 | $as_echo "$ac_try_echo"; } >&5 | |
3532 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3533 | ac_status=$? | |
3534 | if test -s conftest.err; then | |
3535 | sed '10a\ | |
3536 | ... rest of stderr output deleted ... | |
3537 | 10q' conftest.err >conftest.er1 | |
3538 | cat conftest.er1 >&5 | |
3539 | fi | |
3540 | rm -f conftest.er1 conftest.err | |
3541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3542 | test $ac_status = 0; } | |
3543 | done | |
3544 | ||
3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3546 | /* end confdefs.h. */ | |
3547 | ||
3548 | int | |
3549 | main () | |
3550 | { | |
3551 | ||
3552 | ; | |
3553 | return 0; | |
3554 | } | |
3555 | _ACEOF | |
3556 | ac_clean_files_save=$ac_clean_files | |
3557 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3558 | # Try to create an executable without -o first, disregard a.out. | |
3559 | # It will help us diagnose broken compilers, and finding out an intuition | |
3560 | # of exeext. | |
3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3562 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3563 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3564 | ||
3565 | # The possible output files: | |
3566 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3567 | ||
3568 | ac_rmfiles= | |
3569 | for ac_file in $ac_files | |
3570 | do | |
3571 | case $ac_file in | |
3572 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3573 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3574 | esac | |
3575 | done | |
3576 | rm -f $ac_rmfiles | |
3577 | ||
3578 | if { { ac_try="$ac_link_default" | |
3579 | case "(($ac_try" in | |
3580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3581 | *) ac_try_echo=$ac_try;; | |
3582 | esac | |
3583 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3584 | $as_echo "$ac_try_echo"; } >&5 | |
3585 | (eval "$ac_link_default") 2>&5 | |
3586 | ac_status=$? | |
3587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3588 | test $ac_status = 0; }; then : | |
3589 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3590 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3591 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3592 | # so that the user can short-circuit this test for compilers unknown to | |
3593 | # Autoconf. | |
3594 | for ac_file in $ac_files '' | |
3595 | do | |
3596 | test -f "$ac_file" || continue | |
3597 | case $ac_file in | |
3598 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3599 | ;; | |
3600 | [ab].out ) | |
3601 | # We found the default executable, but exeext='' is most | |
3602 | # certainly right. | |
3603 | break;; | |
3604 | *.* ) | |
3605 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3606 | then :; else | |
3607 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3608 | fi | |
3609 | # We set ac_cv_exeext here because the later test for it is not | |
3610 | # safe: cross compilers may not add the suffix if given an `-o' | |
3611 | # argument, so we may need to know it at that point already. | |
3612 | # Even if this section looks crufty: it has the advantage of | |
3613 | # actually working. | |
3614 | break;; | |
3615 | * ) | |
3616 | break;; | |
3617 | esac | |
3618 | done | |
3619 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3620 | ||
3621 | else | |
3622 | ac_file='' | |
3623 | fi | |
3624 | if test -z "$ac_file"; then : | |
3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3626 | $as_echo "no" >&6; } | |
3627 | $as_echo "$as_me: failed program was:" >&5 | |
3628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3629 | ||
3630 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3631 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3632 | as_fn_error 77 "C compiler cannot create executables | |
3633 | See \`config.log' for more details" "$LINENO" 5; } | |
3634 | else | |
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3636 | $as_echo "yes" >&6; } | |
3637 | fi | |
3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3639 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3641 | $as_echo "$ac_file" >&6; } | |
3642 | ac_exeext=$ac_cv_exeext | |
3643 | ||
3644 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3645 | ac_clean_files=$ac_clean_files_save | |
3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3647 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3648 | if { { ac_try="$ac_link" | |
3649 | case "(($ac_try" in | |
3650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3651 | *) ac_try_echo=$ac_try;; | |
3652 | esac | |
3653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3654 | $as_echo "$ac_try_echo"; } >&5 | |
3655 | (eval "$ac_link") 2>&5 | |
3656 | ac_status=$? | |
3657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3658 | test $ac_status = 0; }; then : | |
3659 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3660 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3661 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3662 | # `rm'. | |
3663 | for ac_file in conftest.exe conftest conftest.*; do | |
3664 | test -f "$ac_file" || continue | |
3665 | case $ac_file in | |
3666 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3667 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3668 | break;; | |
3669 | * ) break;; | |
3670 | esac | |
3671 | done | |
3672 | else | |
3673 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3674 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3675 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3676 | See \`config.log' for more details" "$LINENO" 5; } | |
3677 | fi | |
3678 | rm -f conftest conftest$ac_cv_exeext | |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3680 | $as_echo "$ac_cv_exeext" >&6; } | |
3681 | ||
3682 | rm -f conftest.$ac_ext | |
3683 | EXEEXT=$ac_cv_exeext | |
3684 | ac_exeext=$EXEEXT | |
3685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3686 | /* end confdefs.h. */ | |
3687 | #include <stdio.h> | |
3688 | int | |
3689 | main () | |
3690 | { | |
3691 | FILE *f = fopen ("conftest.out", "w"); | |
3692 | return ferror (f) || fclose (f) != 0; | |
3693 | ||
3694 | ; | |
3695 | return 0; | |
3696 | } | |
3697 | _ACEOF | |
3698 | ac_clean_files="$ac_clean_files conftest.out" | |
3699 | # Check that the compiler produces executables we can run. If not, either | |
3700 | # the compiler is broken, or we cross compile. | |
3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3702 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3703 | if test "$cross_compiling" != yes; then | |
3704 | { { ac_try="$ac_link" | |
3705 | case "(($ac_try" in | |
3706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3707 | *) ac_try_echo=$ac_try;; | |
3708 | esac | |
3709 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3710 | $as_echo "$ac_try_echo"; } >&5 | |
3711 | (eval "$ac_link") 2>&5 | |
3712 | ac_status=$? | |
3713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3714 | test $ac_status = 0; } | |
3715 | if { ac_try='./conftest$ac_cv_exeext' | |
3716 | { { case "(($ac_try" in | |
3717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3718 | *) ac_try_echo=$ac_try;; | |
3719 | esac | |
3720 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3721 | $as_echo "$ac_try_echo"; } >&5 | |
3722 | (eval "$ac_try") 2>&5 | |
3723 | ac_status=$? | |
3724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3725 | test $ac_status = 0; }; }; then | |
3726 | cross_compiling=no | |
3727 | else | |
3728 | if test "$cross_compiling" = maybe; then | |
3729 | cross_compiling=yes | |
3730 | else | |
3731 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3732 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3733 | as_fn_error $? "cannot run C compiled programs. | |
3734 | If you meant to cross compile, use \`--host'. | |
3735 | See \`config.log' for more details" "$LINENO" 5; } | |
3736 | fi | |
3737 | fi | |
3738 | fi | |
3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3740 | $as_echo "$cross_compiling" >&6; } | |
3741 | ||
3742 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3743 | ac_clean_files=$ac_clean_files_save | |
3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3745 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3746 | if ${ac_cv_objext+:} false; then : | |
3747 | $as_echo_n "(cached) " >&6 | |
3748 | else | |
3749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3750 | /* end confdefs.h. */ | |
ac48eca1 | 3751 | |
87b9f255 AM |
3752 | int |
3753 | main () | |
3754 | { | |
ac48eca1 | 3755 | |
87b9f255 AM |
3756 | ; |
3757 | return 0; | |
3758 | } | |
3759 | _ACEOF | |
3760 | rm -f conftest.o conftest.obj | |
3761 | if { { ac_try="$ac_compile" | |
81ecdfbb RW |
3762 | case "(($ac_try" in |
3763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3764 | *) ac_try_echo=$ac_try;; | |
3765 | esac | |
3766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3767 | $as_echo "$ac_try_echo"; } >&5 | |
87b9f255 | 3768 | (eval "$ac_compile") 2>&5 |
d45dc31f | 3769 | ac_status=$? |
81ecdfbb | 3770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
87b9f255 AM |
3771 | test $ac_status = 0; }; then : |
3772 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3773 | test -f "$ac_file" || continue; | |
3774 | case $ac_file in | |
3775 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3776 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3777 | break;; | |
3778 | esac | |
81ecdfbb | 3779 | done |
87b9f255 AM |
3780 | else |
3781 | $as_echo "$as_me: failed program was:" >&5 | |
3782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ac48eca1 | 3783 | |
87b9f255 AM |
3784 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3785 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3786 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3787 | See \`config.log' for more details" "$LINENO" 5; } | |
3788 | fi | |
3789 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3790 | fi | |
3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3792 | $as_echo "$ac_cv_objext" >&6; } | |
3793 | OBJEXT=$ac_cv_objext | |
3794 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3796 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3797 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3798 | $as_echo_n "(cached) " >&6 |
bdcfeba5 | 3799 | else |
81ecdfbb | 3800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d45dc31f | 3801 | /* end confdefs.h. */ |
bdcfeba5 | 3802 | |
d45dc31f SE |
3803 | int |
3804 | main () | |
3805 | { | |
3806 | #ifndef __GNUC__ | |
3807 | choke me | |
3808 | #endif | |
bdcfeba5 | 3809 | |
d45dc31f SE |
3810 | ; |
3811 | return 0; | |
3812 | } | |
3813 | _ACEOF | |
81ecdfbb | 3814 | if ac_fn_c_try_compile "$LINENO"; then : |
d45dc31f SE |
3815 | ac_compiler_gnu=yes |
3816 | else | |
81ecdfbb | 3817 | ac_compiler_gnu=no |
bdcfeba5 | 3818 | fi |
81ecdfbb | 3819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d45dc31f | 3820 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
bdcfeba5 | 3821 | |
bdcfeba5 | 3822 | fi |
81ecdfbb RW |
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3824 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3825 | if test $ac_compiler_gnu = yes; then | |
3826 | GCC=yes | |
3827 | else | |
3828 | GCC= | |
3829 | fi | |
d45dc31f SE |
3830 | ac_test_CFLAGS=${CFLAGS+set} |
3831 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3833 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3834 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
3835 | $as_echo_n "(cached) " >&6 |
3836 | else | |
3837 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3838 | ac_c_werror_flag=yes | |
3839 | ac_cv_prog_cc_g=no | |
3840 | CFLAGS="-g" | |
3841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d45dc31f | 3842 | /* end confdefs.h. */ |
ac48eca1 | 3843 | |
d45dc31f SE |
3844 | int |
3845 | main () | |
3846 | { | |
ac48eca1 | 3847 | |
d45dc31f SE |
3848 | ; |
3849 | return 0; | |
3850 | } | |
3851 | _ACEOF | |
81ecdfbb | 3852 | if ac_fn_c_try_compile "$LINENO"; then : |
d45dc31f | 3853 | ac_cv_prog_cc_g=yes |
ac48eca1 | 3854 | else |
81ecdfbb RW |
3855 | CFLAGS="" |
3856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3857 | /* end confdefs.h. */ | |
3858 | ||
3859 | int | |
3860 | main () | |
3861 | { | |
3862 | ||
3863 | ; | |
3864 | return 0; | |
3865 | } | |
3866 | _ACEOF | |
3867 | if ac_fn_c_try_compile "$LINENO"; then : | |
3868 | ||
3869 | else | |
3870 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3871 | CFLAGS="-g" | |
3872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3873 | /* end confdefs.h. */ | |
3874 | ||
3875 | int | |
3876 | main () | |
3877 | { | |
ac48eca1 | 3878 | |
81ecdfbb RW |
3879 | ; |
3880 | return 0; | |
3881 | } | |
3882 | _ACEOF | |
3883 | if ac_fn_c_try_compile "$LINENO"; then : | |
3884 | ac_cv_prog_cc_g=yes | |
3885 | fi | |
3886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ac48eca1 | 3887 | fi |
81ecdfbb | 3888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ac48eca1 | 3889 | fi |
81ecdfbb RW |
3890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3891 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3892 | fi | |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3894 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d45dc31f SE |
3895 | if test "$ac_test_CFLAGS" = set; then |
3896 | CFLAGS=$ac_save_CFLAGS | |
3897 | elif test $ac_cv_prog_cc_g = yes; then | |
3898 | if test "$GCC" = yes; then | |
3899 | CFLAGS="-g -O2" | |
ac48eca1 | 3900 | else |
d45dc31f | 3901 | CFLAGS="-g" |
42ecbf5e | 3902 | fi |
ac48eca1 | 3903 | else |
d45dc31f SE |
3904 | if test "$GCC" = yes; then |
3905 | CFLAGS="-O2" | |
3906 | else | |
3907 | CFLAGS= | |
42ecbf5e | 3908 | fi |
ac48eca1 | 3909 | fi |
81ecdfbb RW |
3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3911 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3912 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3913 | $as_echo_n "(cached) " >&6 |
d45dc31f | 3914 | else |
81ecdfbb | 3915 | ac_cv_prog_cc_c89=no |
d45dc31f | 3916 | ac_save_CC=$CC |
81ecdfbb | 3917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 3918 | /* end confdefs.h. */ |
d45dc31f SE |
3919 | #include <stdarg.h> |
3920 | #include <stdio.h> | |
d0ac1c44 | 3921 | struct stat; |
d45dc31f SE |
3922 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3923 | struct buf { int x; }; | |
3924 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3925 | static char *e (p, i) | |
3926 | char **p; | |
3927 | int i; | |
3928 | { | |
3929 | return p[i]; | |
3930 | } | |
3931 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3932 | { | |
3933 | char *s; | |
3934 | va_list v; | |
3935 | va_start (v,p); | |
3936 | s = g (p, va_arg (v,int)); | |
3937 | va_end (v); | |
3938 | return s; | |
3939 | } | |
3940 | ||
3941 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3942 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3943 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3944 | as 'x'. The following induces an error, until -std is added to get |
d45dc31f SE |
3945 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3946 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3947 | that's true only with -std. */ |
d45dc31f | 3948 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
252b5132 | 3949 | |
81ecdfbb RW |
3950 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3951 | inside strings and character constants. */ | |
3952 | #define FOO(x) 'x' | |
3953 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3954 | ||
d45dc31f SE |
3955 | int test (int i, double x); |
3956 | struct s1 {int (*f) (int a);}; | |
3957 | struct s2 {int (*f) (double a);}; | |
3958 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3959 | int argc; | |
3960 | char **argv; | |
42ecbf5e DJ |
3961 | int |
3962 | main () | |
3963 | { | |
d45dc31f | 3964 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
42ecbf5e DJ |
3965 | ; |
3966 | return 0; | |
3967 | } | |
3968 | _ACEOF | |
81ecdfbb RW |
3969 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3970 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d45dc31f SE |
3971 | do |
3972 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3973 | if ac_fn_c_try_compile "$LINENO"; then : |
3974 | ac_cv_prog_cc_c89=$ac_arg | |
252b5132 | 3975 | fi |
81ecdfbb RW |
3976 | rm -f core conftest.err conftest.$ac_objext |
3977 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d45dc31f | 3978 | done |
81ecdfbb | 3979 | rm -f conftest.$ac_ext |
d45dc31f | 3980 | CC=$ac_save_CC |
ac48eca1 | 3981 | |
252b5132 | 3982 | fi |
81ecdfbb RW |
3983 | # AC_CACHE_VAL |
3984 | case "x$ac_cv_prog_cc_c89" in | |
3985 | x) | |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3987 | $as_echo "none needed" >&6; } ;; | |
3988 | xno) | |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3990 | $as_echo "unsupported" >&6; } ;; | |
d45dc31f | 3991 | *) |
81ecdfbb RW |
3992 | CC="$CC $ac_cv_prog_cc_c89" |
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3994 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
252b5132 | 3995 | esac |
81ecdfbb | 3996 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
252b5132 | 3997 | |
d45dc31f | 3998 | fi |
ac48eca1 | 3999 | |
d45dc31f SE |
4000 | ac_ext=c |
4001 | ac_cpp='$CPP $CPPFLAGS' | |
4002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e | 4005 | |
d0ac1c44 SM |
4006 | ac_ext=c |
4007 | ac_cpp='$CPP $CPPFLAGS' | |
4008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4012 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4013 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4014 | $as_echo_n "(cached) " >&6 | |
4015 | else | |
4016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4017 | /* end confdefs.h. */ | |
4018 | ||
4019 | int | |
4020 | main () | |
4021 | { | |
4022 | ||
4023 | ; | |
4024 | return 0; | |
4025 | } | |
4026 | _ACEOF | |
4027 | # Make sure it works both with $CC and with simple cc. | |
4028 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4029 | # compilers refuse to overwrite an existing .o file with -o, | |
4030 | # though they will create one. | |
4031 | am_cv_prog_cc_c_o=yes | |
4032 | for am_i in 1 2; do | |
4033 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4034 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4035 | ac_status=$? | |
4036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4037 | (exit $ac_status); } \ | |
4038 | && test -f conftest2.$ac_objext; then | |
4039 | : OK | |
4040 | else | |
4041 | am_cv_prog_cc_c_o=no | |
4042 | break | |
4043 | fi | |
4044 | done | |
4045 | rm -f core conftest* | |
4046 | unset am_i | |
4047 | fi | |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4049 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4050 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4051 | # Losing compiler, so override with the script. | |
4052 | # FIXME: It is wrong to rewrite CC. | |
4053 | # But if we don't then we get into trouble of one sort or another. | |
4054 | # A longer-term fix would be to have automake use am__CC in this case, | |
4055 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4056 | CC="$am_aux_dir/compile $CC" | |
4057 | fi | |
87b9f255 AM |
4058 | ac_ext=c |
4059 | ac_cpp='$CPP $CPPFLAGS' | |
4060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4063 | ||
4064 | DEPDIR="${am__leading_dot}deps" | |
4065 | ||
4066 | ac_config_commands="$ac_config_commands depfiles" | |
4067 | ||
b9583093 AM |
4068 | |
4069 | am_make=${MAKE-make} | |
4070 | cat > confinc << 'END' | |
87b9f255 | 4071 | am__doit: |
b9583093 | 4072 | @echo this is the am__doit target |
87b9f255 AM |
4073 | .PHONY: am__doit |
4074 | END | |
b9583093 AM |
4075 | # If we don't find an include directive, just comment out the code. |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4077 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
87b9f255 AM |
4078 | am__include="#" |
4079 | am__quote= | |
b9583093 AM |
4080 | _am_result=none |
4081 | # First try GNU make style include. | |
4082 | echo "include confinc" > confmf | |
4083 | # Ignore all kinds of additional output from 'make'. | |
4084 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4085 | *the\ am__doit\ target*) | |
4086 | am__include=include | |
4087 | am__quote= | |
4088 | _am_result=GNU | |
4089 | ;; | |
631ec08c | 4090 | esac |
b9583093 AM |
4091 | # Now try BSD make style include. |
4092 | if test "$am__include" = "#"; then | |
4093 | echo '.include "confinc"' > confmf | |
4094 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4095 | *the\ am__doit\ target*) | |
4096 | am__include=.include | |
4097 | am__quote="\"" | |
4098 | _am_result=BSD | |
4099 | ;; | |
4100 | esac | |
4101 | fi | |
4102 | ||
4103 | ||
4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4105 | $as_echo "$_am_result" >&6; } | |
4106 | rm -f confinc confmf | |
87b9f255 AM |
4107 | |
4108 | # Check whether --enable-dependency-tracking was given. | |
4109 | if test "${enable_dependency_tracking+set}" = set; then : | |
4110 | enableval=$enable_dependency_tracking; | |
4111 | fi | |
4112 | ||
4113 | if test "x$enable_dependency_tracking" != xno; then | |
4114 | am_depcomp="$ac_aux_dir/depcomp" | |
4115 | AMDEPBACKSLASH='\' | |
4116 | am__nodep='_no' | |
4117 | fi | |
4118 | if test "x$enable_dependency_tracking" != xno; then | |
4119 | AMDEP_TRUE= | |
4120 | AMDEP_FALSE='#' | |
4121 | else | |
4122 | AMDEP_TRUE='#' | |
4123 | AMDEP_FALSE= | |
4124 | fi | |
4125 | ||
4126 | ||
4127 | ||
4128 | depcc="$CC" am_compiler_list= | |
4129 | ||
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4131 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4132 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4133 | $as_echo_n "(cached) " >&6 | |
4134 | else | |
4135 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4136 | # We make a subdir and do the tests there. Otherwise we can end up | |
4137 | # making bogus files that we don't know about and never remove. For | |
4138 | # instance it was reported that on HP-UX the gcc test will end up | |
4139 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4140 | # in D". | |
4141 | rm -rf conftest.dir | |
4142 | mkdir conftest.dir | |
4143 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4144 | # using a relative directory. | |
4145 | cp "$am_depcomp" conftest.dir | |
4146 | cd conftest.dir | |
4147 | # We will build objects and dependencies in a subdirectory because | |
4148 | # it helps to detect inapplicable dependency modes. For instance | |
4149 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4150 | # side effect of compilation, but ICC will put the dependencies in | |
4151 | # the current directory while Tru64 will put them in the object | |
4152 | # directory. | |
4153 | mkdir sub | |
4154 | ||
4155 | am_cv_CC_dependencies_compiler_type=none | |
4156 | if test "$am_compiler_list" = ""; then | |
4157 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4158 | fi | |
4159 | am__universal=false | |
4160 | case " $depcc " in #( | |
4161 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4162 | esac | |
4163 | ||
4164 | for depmode in $am_compiler_list; do | |
4165 | # Setup a source with many dependencies, because some compilers | |
4166 | # like to wrap large dependency lists on column 80 (with \), and | |
4167 | # we should not choose a depcomp mode which is confused by this. | |
4168 | # | |
4169 | # We need to recreate these files for each test, as the compiler may | |
4170 | # overwrite some of them when testing with obscure command lines. | |
4171 | # This happens at least with the AIX C compiler. | |
4172 | : > sub/conftest.c | |
4173 | for i in 1 2 3 4 5 6; do | |
4174 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4175 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4176 | # Solaris 10 /bin/sh. | |
4177 | echo '/* dummy */' > sub/conftst$i.h | |
4178 | done | |
4179 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4180 | ||
4181 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4182 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4183 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4184 | # versions had trouble with output in subdirs. | |
4185 | am__obj=sub/conftest.${OBJEXT-o} | |
4186 | am__minus_obj="-o $am__obj" | |
4187 | case $depmode in | |
4188 | gcc) | |
4189 | # This depmode causes a compiler race in universal mode. | |
4190 | test "$am__universal" = false || continue | |
4191 | ;; | |
4192 | nosideeffect) | |
4193 | # After this tag, mechanisms are not by side-effect, so they'll | |
4194 | # only be used when explicitly requested. | |
4195 | if test "x$enable_dependency_tracking" = xyes; then | |
4196 | continue | |
4197 | else | |
4198 | break | |
4199 | fi | |
4200 | ;; | |
4201 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4202 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4203 | # not run yet. These depmodes are late enough in the game, and | |
4204 | # so weak that their functioning should not be impacted. | |
4205 | am__obj=conftest.${OBJEXT-o} | |
4206 | am__minus_obj= | |
4207 | ;; | |
4208 | none) break ;; | |
4209 | esac | |
4210 | if depmode=$depmode \ | |
4211 | source=sub/conftest.c object=$am__obj \ | |
4212 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4213 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4214 | >/dev/null 2>conftest.err && | |
4215 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4216 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4217 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4218 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4219 | # icc doesn't choke on unknown options, it will just issue warnings | |
4220 | # or remarks (even with -Werror). So we grep stderr for any message | |
4221 | # that says an option was ignored or not supported. | |
4222 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4223 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4224 | # The diagnosis changed in icc 8.0: | |
4225 | # icc: Command line remark: option '-MP' not supported | |
4226 | if (grep 'ignoring option' conftest.err || | |
4227 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4228 | am_cv_CC_dependencies_compiler_type=$depmode | |
4229 | break | |
4230 | fi | |
4231 | fi | |
4232 | done | |
4233 | ||
4234 | cd .. | |
4235 | rm -rf conftest.dir | |
4236 | else | |
4237 | am_cv_CC_dependencies_compiler_type=none | |
4238 | fi | |
4239 | ||
4240 | fi | |
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4242 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4243 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4244 | ||
4245 | if | |
4246 | test "x$enable_dependency_tracking" != xno \ | |
4247 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4248 | am__fastdepCC_TRUE= | |
4249 | am__fastdepCC_FALSE='#' | |
4250 | else | |
4251 | am__fastdepCC_TRUE='#' | |
4252 | am__fastdepCC_FALSE= | |
4253 | fi | |
4254 | ||
d0ac1c44 SM |
4255 | |
4256 | ||
7357c5b6 AM |
4257 | ac_ext=c |
4258 | ac_cpp='$CPP $CPPFLAGS' | |
4259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4263 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4264 | # On Suns, sometimes $CPP names a directory. |
4265 | if test -n "$CPP" && test -d "$CPP"; then | |
4266 | CPP= | |
4267 | fi | |
4268 | if test -z "$CPP"; then | |
d0ac1c44 | 4269 | if ${ac_cv_prog_CPP+:} false; then : |
81ecdfbb | 4270 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4271 | else |
4272 | # Double quotes because CPP needs to be expanded | |
4273 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4274 | do | |
4275 | ac_preproc_ok=false | |
4276 | for ac_c_preproc_warn_flag in '' yes | |
4277 | do | |
4278 | # Use a header file that comes with gcc, so configuring glibc | |
4279 | # with a fresh cross-compiler works. | |
4280 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4281 | # <limits.h> exists even on freestanding compilers. | |
4282 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4283 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4285 | /* end confdefs.h. */ |
4286 | #ifdef __STDC__ | |
4287 | # include <limits.h> | |
4288 | #else | |
4289 | # include <assert.h> | |
4290 | #endif | |
4291 | Syntax error | |
4292 | _ACEOF | |
81ecdfbb | 4293 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4294 | |
81ecdfbb | 4295 | else |
7357c5b6 AM |
4296 | # Broken: fails on valid input. |
4297 | continue | |
4298 | fi | |
d0ac1c44 | 4299 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4300 | |
81ecdfbb | 4301 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4302 | # can be detected and how. |
81ecdfbb | 4303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4304 | /* end confdefs.h. */ |
4305 | #include <ac_nonexistent.h> | |
4306 | _ACEOF | |
81ecdfbb | 4307 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4308 | # Broken: success on invalid input. |
4309 | continue | |
4310 | else | |
7357c5b6 AM |
4311 | # Passes both tests. |
4312 | ac_preproc_ok=: | |
4313 | break | |
4314 | fi | |
d0ac1c44 | 4315 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4316 | |
7357c5b6 AM |
4317 | done |
4318 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4319 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb | 4320 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4321 | break |
4322 | fi | |
d7040cdb | 4323 | |
7357c5b6 AM |
4324 | done |
4325 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4326 | |
7357c5b6 AM |
4327 | fi |
4328 | CPP=$ac_cv_prog_CPP | |
4329 | else | |
4330 | ac_cv_prog_CPP=$CPP | |
4331 | fi | |
81ecdfbb RW |
4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4333 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4334 | ac_preproc_ok=false |
4335 | for ac_c_preproc_warn_flag in '' yes | |
4336 | do | |
4337 | # Use a header file that comes with gcc, so configuring glibc | |
4338 | # with a fresh cross-compiler works. | |
4339 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4340 | # <limits.h> exists even on freestanding compilers. | |
4341 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4342 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4344 | /* end confdefs.h. */ |
4345 | #ifdef __STDC__ | |
4346 | # include <limits.h> | |
4347 | #else | |
4348 | # include <assert.h> | |
4349 | #endif | |
4350 | Syntax error | |
4351 | _ACEOF | |
81ecdfbb | 4352 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4353 | |
81ecdfbb | 4354 | else |
7357c5b6 AM |
4355 | # Broken: fails on valid input. |
4356 | continue | |
4357 | fi | |
d0ac1c44 | 4358 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4359 | |
81ecdfbb | 4360 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4361 | # can be detected and how. |
81ecdfbb | 4362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4363 | /* end confdefs.h. */ |
4364 | #include <ac_nonexistent.h> | |
4365 | _ACEOF | |
81ecdfbb | 4366 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4367 | # Broken: success on invalid input. |
4368 | continue | |
4369 | else | |
7357c5b6 AM |
4370 | # Passes both tests. |
4371 | ac_preproc_ok=: | |
4372 | break | |
4373 | fi | |
d0ac1c44 | 4374 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4375 | |
7357c5b6 AM |
4376 | done |
4377 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4378 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb RW |
4379 | if $ac_preproc_ok; then : |
4380 | ||
7357c5b6 | 4381 | else |
81ecdfbb RW |
4382 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4383 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4384 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4385 | See \`config.log' for more details" "$LINENO" 5; } | |
7357c5b6 | 4386 | fi |
d7040cdb | 4387 | |
7357c5b6 AM |
4388 | ac_ext=c |
4389 | ac_cpp='$CPP $CPPFLAGS' | |
4390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
4393 | |
4394 | ||
81ecdfbb RW |
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4396 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 4397 | if ${ac_cv_path_GREP+:} false; then : |
81ecdfbb | 4398 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4399 | else |
81ecdfbb RW |
4400 | if test -z "$GREP"; then |
4401 | ac_path_GREP_found=false | |
4402 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4404 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4405 | do | |
4406 | IFS=$as_save_IFS | |
4407 | test -z "$as_dir" && as_dir=. | |
4408 | for ac_prog in grep ggrep; do | |
4409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4410 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4411 | as_fn_executable_p "$ac_path_GREP" || continue |
81ecdfbb RW |
4412 | # Check for GNU ac_path_GREP and select it if it is found. |
4413 | # Check for GNU $ac_path_GREP | |
4414 | case `"$ac_path_GREP" --version 2>&1` in | |
4415 | *GNU*) | |
4416 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4417 | *) | |
4418 | ac_count=0 | |
4419 | $as_echo_n 0123456789 >"conftest.in" | |
4420 | while : | |
4421 | do | |
4422 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4423 | mv "conftest.tmp" "conftest.in" | |
4424 | cp "conftest.in" "conftest.nl" | |
4425 | $as_echo 'GREP' >> "conftest.nl" | |
4426 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4427 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4428 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4429 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4430 | # Best one so far, save it but keep looking for a better one | |
4431 | ac_cv_path_GREP="$ac_path_GREP" | |
4432 | ac_path_GREP_max=$ac_count | |
7357c5b6 | 4433 | fi |
81ecdfbb RW |
4434 | # 10*(2^10) chars as input seems more than enough |
4435 | test $ac_count -gt 10 && break | |
4436 | done | |
4437 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4438 | esac | |
4439 | ||
4440 | $ac_path_GREP_found && break 3 | |
4441 | done | |
4442 | done | |
4443 | done | |
4444 | IFS=$as_save_IFS | |
4445 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 4446 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4447 | fi |
4448 | else | |
4449 | ac_cv_path_GREP=$GREP | |
4450 | fi | |
4451 | ||
7357c5b6 | 4452 | fi |
81ecdfbb RW |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4454 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4455 | GREP="$ac_cv_path_GREP" | |
d7040cdb | 4456 | |
d7040cdb | 4457 | |
81ecdfbb RW |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4459 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 4460 | if ${ac_cv_path_EGREP+:} false; then : |
81ecdfbb | 4461 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4462 | else |
81ecdfbb RW |
4463 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4464 | then ac_cv_path_EGREP="$GREP -E" | |
4465 | else | |
4466 | if test -z "$EGREP"; then | |
4467 | ac_path_EGREP_found=false | |
4468 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4470 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4471 | do | |
4472 | IFS=$as_save_IFS | |
4473 | test -z "$as_dir" && as_dir=. | |
4474 | for ac_prog in egrep; do | |
4475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4476 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4477 | as_fn_executable_p "$ac_path_EGREP" || continue |
81ecdfbb RW |
4478 | # Check for GNU ac_path_EGREP and select it if it is found. |
4479 | # Check for GNU $ac_path_EGREP | |
4480 | case `"$ac_path_EGREP" --version 2>&1` in | |
4481 | *GNU*) | |
4482 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4483 | *) | |
4484 | ac_count=0 | |
4485 | $as_echo_n 0123456789 >"conftest.in" | |
4486 | while : | |
4487 | do | |
4488 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4489 | mv "conftest.tmp" "conftest.in" | |
4490 | cp "conftest.in" "conftest.nl" | |
4491 | $as_echo 'EGREP' >> "conftest.nl" | |
4492 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4493 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4494 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4495 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4496 | # Best one so far, save it but keep looking for a better one | |
4497 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4498 | ac_path_EGREP_max=$ac_count | |
4499 | fi | |
4500 | # 10*(2^10) chars as input seems more than enough | |
4501 | test $ac_count -gt 10 && break | |
4502 | done | |
4503 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4504 | esac | |
4505 | ||
4506 | $ac_path_EGREP_found && break 3 | |
4507 | done | |
4508 | done | |
4509 | done | |
4510 | IFS=$as_save_IFS | |
4511 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 4512 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4513 | fi |
4514 | else | |
4515 | ac_cv_path_EGREP=$EGREP | |
4516 | fi | |
4517 | ||
4518 | fi | |
4519 | fi | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4521 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4522 | EGREP="$ac_cv_path_EGREP" | |
4523 | ||
4524 | ||
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4526 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 4527 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb RW |
4528 | $as_echo_n "(cached) " >&6 |
4529 | else | |
4530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7357c5b6 AM |
4531 | /* end confdefs.h. */ |
4532 | #include <stdlib.h> | |
4533 | #include <stdarg.h> | |
4534 | #include <string.h> | |
4535 | #include <float.h> | |
d7040cdb | 4536 | |
7357c5b6 AM |
4537 | int |
4538 | main () | |
4539 | { | |
d7040cdb | 4540 | |
7357c5b6 AM |
4541 | ; |
4542 | return 0; | |
4543 | } | |
4544 | _ACEOF | |
81ecdfbb | 4545 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4546 | ac_cv_header_stdc=yes |
4547 | else | |
81ecdfbb | 4548 | ac_cv_header_stdc=no |
7357c5b6 | 4549 | fi |
81ecdfbb | 4550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4551 | |
7357c5b6 AM |
4552 | if test $ac_cv_header_stdc = yes; then |
4553 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4555 | /* end confdefs.h. */ |
4556 | #include <string.h> | |
d7040cdb | 4557 | |
7357c5b6 AM |
4558 | _ACEOF |
4559 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4560 | $EGREP "memchr" >/dev/null 2>&1; then : |
4561 | ||
d45dc31f | 4562 | else |
7357c5b6 AM |
4563 | ac_cv_header_stdc=no |
4564 | fi | |
4565 | rm -f conftest* | |
d7040cdb | 4566 | |
7357c5b6 | 4567 | fi |
d7040cdb | 4568 | |
7357c5b6 AM |
4569 | if test $ac_cv_header_stdc = yes; then |
4570 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4572 | /* end confdefs.h. */ |
4573 | #include <stdlib.h> | |
d7040cdb | 4574 | |
7357c5b6 AM |
4575 | _ACEOF |
4576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4577 | $EGREP "free" >/dev/null 2>&1; then : |
4578 | ||
7357c5b6 AM |
4579 | else |
4580 | ac_cv_header_stdc=no | |
4581 | fi | |
4582 | rm -f conftest* | |
d7040cdb | 4583 | |
7357c5b6 | 4584 | fi |
d7040cdb | 4585 | |
7357c5b6 AM |
4586 | if test $ac_cv_header_stdc = yes; then |
4587 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4588 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4589 | : |
4590 | else | |
81ecdfbb | 4591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4592 | /* end confdefs.h. */ |
4593 | #include <ctype.h> | |
81ecdfbb | 4594 | #include <stdlib.h> |
7357c5b6 AM |
4595 | #if ((' ' & 0x0FF) == 0x020) |
4596 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4597 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4598 | #else | |
4599 | # define ISLOWER(c) \ | |
4600 | (('a' <= (c) && (c) <= 'i') \ | |
4601 | || ('j' <= (c) && (c) <= 'r') \ | |
4602 | || ('s' <= (c) && (c) <= 'z')) | |
4603 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4604 | #endif | |
d7040cdb | 4605 | |
7357c5b6 AM |
4606 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4607 | int | |
4608 | main () | |
4609 | { | |
4610 | int i; | |
4611 | for (i = 0; i < 256; i++) | |
4612 | if (XOR (islower (i), ISLOWER (i)) | |
4613 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4614 | return 2; |
4615 | return 0; | |
7357c5b6 AM |
4616 | } |
4617 | _ACEOF | |
81ecdfbb | 4618 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4619 | |
81ecdfbb RW |
4620 | else |
4621 | ac_cv_header_stdc=no | |
7357c5b6 | 4622 | fi |
81ecdfbb RW |
4623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4624 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4625 | fi |
81ecdfbb | 4626 | |
7357c5b6 AM |
4627 | fi |
4628 | fi | |
81ecdfbb RW |
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4630 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4631 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4632 | |
81ecdfbb | 4633 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4634 | |
7357c5b6 | 4635 | fi |
d7040cdb | 4636 | |
7357c5b6 | 4637 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
81ecdfbb RW |
4638 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4639 | inttypes.h stdint.h unistd.h | |
4640 | do : | |
4641 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4642 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4643 | " | |
d0ac1c44 | 4644 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
81ecdfbb RW |
4645 | cat >>confdefs.h <<_ACEOF |
4646 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4647 | _ACEOF | |
d7040cdb | 4648 | |
81ecdfbb | 4649 | fi |
d7040cdb | 4650 | |
81ecdfbb | 4651 | done |
d7040cdb SE |
4652 | |
4653 | ||
4654 | ||
81ecdfbb | 4655 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
d0ac1c44 | 4656 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
81ecdfbb RW |
4657 | MINIX=yes |
4658 | else | |
4659 | MINIX= | |
4660 | fi | |
d7040cdb SE |
4661 | |
4662 | ||
81ecdfbb | 4663 | if test "$MINIX" = yes; then |
d7040cdb | 4664 | |
81ecdfbb | 4665 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb | 4666 | |
d7040cdb | 4667 | |
81ecdfbb | 4668 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4669 | |
4670 | ||
81ecdfbb | 4671 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4672 | |
81ecdfbb | 4673 | fi |
d7040cdb SE |
4674 | |
4675 | ||
81ecdfbb RW |
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4677 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 4678 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
81ecdfbb | 4679 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4680 | else |
81ecdfbb | 4681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4682 | /* end confdefs.h. */ |
d7040cdb | 4683 | |
d0ac1c44 SM |
4684 | # define __EXTENSIONS__ 1 |
4685 | $ac_includes_default | |
7357c5b6 AM |
4686 | int |
4687 | main () | |
4688 | { | |
d7040cdb | 4689 | |
7357c5b6 AM |
4690 | ; |
4691 | return 0; | |
4692 | } | |
4693 | _ACEOF | |
81ecdfbb | 4694 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 | 4695 | ac_cv_safe_to_define___extensions__=yes |
d7040cdb | 4696 | else |
81ecdfbb | 4697 | ac_cv_safe_to_define___extensions__=no |
d7040cdb | 4698 | fi |
81ecdfbb | 4699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 4700 | fi |
81ecdfbb RW |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4702 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 4703 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4704 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
d7040cdb | 4705 | |
81ecdfbb | 4706 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d7040cdb | 4707 | |
81ecdfbb | 4708 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
d7040cdb | 4709 | |
81ecdfbb | 4710 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
d7040cdb | 4711 | |
81ecdfbb | 4712 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
d7040cdb SE |
4713 | |
4714 | ||
e3525117 | 4715 | |
5691d22d | 4716 | |
81ecdfbb | 4717 | |
718a6fd8 SE |
4718 | case `pwd` in |
4719 | *\ * | *\ *) | |
81ecdfbb RW |
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4721 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
718a6fd8 | 4722 | esac |
d7040cdb SE |
4723 | |
4724 | ||
7357c5b6 | 4725 | |
f2c621e4 AS |
4726 | macro_version='2.2.7a' |
4727 | macro_revision='1.3134' | |
7357c5b6 AM |
4728 | |
4729 | ||
4730 | ||
4731 | ||
4732 | ||
4733 | ||
7357c5b6 AM |
4734 | |
4735 | ||
4736 | ||
4737 | ||
4738 | ||
4739 | ||
4740 | ||
718a6fd8 | 4741 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 4742 | |
3725885a RW |
4743 | # Backslashify metacharacters that are still active within |
4744 | # double-quoted strings. | |
4745 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4746 | ||
4747 | # Same as above, but do not quote variable references. | |
4748 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4749 | ||
4750 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4751 | # double_quote_subst'ed string. | |
4752 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4753 | ||
4754 | # Sed substitution to delay expansion of an escaped single quote. | |
4755 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4756 | ||
4757 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4758 | no_glob_subst='s/\*/\\\*/g' | |
4759 | ||
4760 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4761 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4762 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4763 | ||
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4765 | $as_echo_n "checking how to print strings... " >&6; } | |
4766 | # Test print first, because it will be a builtin if present. | |
f2c621e4 | 4767 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ |
3725885a RW |
4768 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4769 | ECHO='print -r --' | |
4770 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4771 | ECHO='printf %s\n' | |
4772 | else | |
4773 | # Use this function as a fallback that always works. | |
4774 | func_fallback_echo () | |
4775 | { | |
4776 | eval 'cat <<_LTECHO_EOF | |
4777 | $1 | |
4778 | _LTECHO_EOF' | |
4779 | } | |
4780 | ECHO='func_fallback_echo' | |
4781 | fi | |
4782 | ||
4783 | # func_echo_all arg... | |
4784 | # Invoke $ECHO with all args, space-separated. | |
4785 | func_echo_all () | |
4786 | { | |
4787 | $ECHO "" | |
4788 | } | |
4789 | ||
4790 | case "$ECHO" in | |
4791 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4792 | $as_echo "printf" >&6; } ;; | |
4793 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4794 | $as_echo "print -r" >&6; } ;; | |
4795 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4796 | $as_echo "cat" >&6; } ;; | |
4797 | esac | |
4798 | ||
4799 | ||
4800 | ||
4801 | ||
4802 | ||
4803 | ||
4804 | ||
4805 | ||
4806 | ||
4807 | ||
4808 | ||
4809 | ||
4810 | ||
4811 | ||
81ecdfbb RW |
4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4813 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 4814 | if ${ac_cv_path_SED+:} false; then : |
81ecdfbb | 4815 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4816 | else |
81ecdfbb RW |
4817 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4818 | for ac_i in 1 2 3 4 5 6 7; do | |
4819 | ac_script="$ac_script$as_nl$ac_script" | |
4820 | done | |
4821 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4822 | { ac_script=; unset ac_script;} | |
4823 | if test -z "$SED"; then | |
4824 | ac_path_SED_found=false | |
4825 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
4827 | for as_dir in $PATH |
4828 | do | |
4829 | IFS=$as_save_IFS | |
4830 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4831 | for ac_prog in sed gsed; do |
7357c5b6 | 4832 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb | 4833 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
d0ac1c44 | 4834 | as_fn_executable_p "$ac_path_SED" || continue |
81ecdfbb RW |
4835 | # Check for GNU ac_path_SED and select it if it is found. |
4836 | # Check for GNU $ac_path_SED | |
4837 | case `"$ac_path_SED" --version 2>&1` in | |
4838 | *GNU*) | |
4839 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4840 | *) | |
4841 | ac_count=0 | |
4842 | $as_echo_n 0123456789 >"conftest.in" | |
4843 | while : | |
4844 | do | |
4845 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4846 | mv "conftest.tmp" "conftest.in" | |
4847 | cp "conftest.in" "conftest.nl" | |
4848 | $as_echo '' >> "conftest.nl" | |
4849 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4850 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4851 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4852 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4853 | # Best one so far, save it but keep looking for a better one | |
4854 | ac_cv_path_SED="$ac_path_SED" | |
4855 | ac_path_SED_max=$ac_count | |
4856 | fi | |
4857 | # 10*(2^10) chars as input seems more than enough | |
4858 | test $ac_count -gt 10 && break | |
4859 | done | |
4860 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4861 | esac | |
4862 | ||
4863 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
4864 | done |
4865 | done | |
81ecdfbb | 4866 | done |
7357c5b6 | 4867 | IFS=$as_save_IFS |
81ecdfbb | 4868 | if test -z "$ac_cv_path_SED"; then |
d0ac1c44 | 4869 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
7357c5b6 | 4870 | fi |
81ecdfbb RW |
4871 | else |
4872 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
4873 | fi |
4874 | ||
81ecdfbb RW |
4875 | fi |
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4877 | $as_echo "$ac_cv_path_SED" >&6; } | |
4878 | SED="$ac_cv_path_SED" | |
4879 | rm -f conftest.sed | |
7357c5b6 AM |
4880 | |
4881 | test -z "$SED" && SED=sed | |
4882 | Xsed="$SED -e 1s/^X//" | |
4883 | ||
4884 | ||
4885 | ||
4886 | ||
4887 | ||
4888 | ||
4889 | ||
4890 | ||
4891 | ||
4892 | ||
4893 | ||
81ecdfbb RW |
4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4895 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 4896 | if ${ac_cv_path_FGREP+:} false; then : |
81ecdfbb | 4897 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4898 | else |
81ecdfbb RW |
4899 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4900 | then ac_cv_path_FGREP="$GREP -F" | |
4901 | else | |
4902 | if test -z "$FGREP"; then | |
4903 | ac_path_FGREP_found=false | |
4904 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4906 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4907 | do | |
4908 | IFS=$as_save_IFS | |
4909 | test -z "$as_dir" && as_dir=. | |
4910 | for ac_prog in fgrep; do | |
4911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4912 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4913 | as_fn_executable_p "$ac_path_FGREP" || continue |
81ecdfbb RW |
4914 | # Check for GNU ac_path_FGREP and select it if it is found. |
4915 | # Check for GNU $ac_path_FGREP | |
4916 | case `"$ac_path_FGREP" --version 2>&1` in | |
4917 | *GNU*) | |
4918 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4919 | *) | |
4920 | ac_count=0 | |
4921 | $as_echo_n 0123456789 >"conftest.in" | |
4922 | while : | |
4923 | do | |
4924 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4925 | mv "conftest.tmp" "conftest.in" | |
4926 | cp "conftest.in" "conftest.nl" | |
4927 | $as_echo 'FGREP' >> "conftest.nl" | |
4928 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4929 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4930 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4931 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4932 | # Best one so far, save it but keep looking for a better one | |
4933 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4934 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 4935 | fi |
81ecdfbb RW |
4936 | # 10*(2^10) chars as input seems more than enough |
4937 | test $ac_count -gt 10 && break | |
4938 | done | |
4939 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4940 | esac | |
4941 | ||
4942 | $ac_path_FGREP_found && break 3 | |
4943 | done | |
4944 | done | |
4945 | done | |
4946 | IFS=$as_save_IFS | |
4947 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 4948 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4949 | fi |
4950 | else | |
4951 | ac_cv_path_FGREP=$FGREP | |
4952 | fi | |
4953 | ||
4954 | fi | |
7357c5b6 | 4955 | fi |
81ecdfbb RW |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
4957 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4958 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
4959 | |
4960 | ||
4961 | test -z "$GREP" && GREP=grep | |
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | ||
4978 | ||
4979 | ||
4980 | ||
81ecdfbb RW |
4981 | # Check whether --with-gnu-ld was given. |
4982 | if test "${with_gnu_ld+set}" = set; then : | |
4983 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
4984 | else |
4985 | with_gnu_ld=no | |
81ecdfbb RW |
4986 | fi |
4987 | ||
7357c5b6 AM |
4988 | ac_prog=ld |
4989 | if test "$GCC" = yes; then | |
4990 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4992 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
4993 | case $host in |
4994 | *-*-mingw*) | |
d45dc31f SE |
4995 | # gcc leaves a trailing carriage return which upsets mingw |
4996 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4997 | *) | |
4998 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4999 | esac | |
5000 | case $ac_prog in | |
5001 | # Accept absolute paths. | |
d7040cdb | 5002 | [\\/]* | ?:[\\/]*) |
d45dc31f | 5003 | re_direlt='/[^/][^/]*/\.\./' |
d7040cdb SE |
5004 | # Canonicalize the pathname of ld |
5005 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5006 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5007 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d45dc31f SE |
5008 | done |
5009 | test -z "$LD" && LD="$ac_prog" | |
5010 | ;; | |
5011 | "") | |
5012 | # If it fails, then pretend we aren't using GCC. | |
5013 | ac_prog=ld | |
5014 | ;; | |
5015 | *) | |
5016 | # If it is relative, then search for the first ld in PATH. | |
5017 | with_gnu_ld=unknown | |
5018 | ;; | |
5019 | esac | |
5020 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5022 | $as_echo_n "checking for GNU ld... " >&6; } | |
d45dc31f | 5023 | else |
81ecdfbb RW |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5025 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
d45dc31f | 5026 | fi |
d0ac1c44 | 5027 | if ${lt_cv_path_LD+:} false; then : |
81ecdfbb | 5028 | $as_echo_n "(cached) " >&6 |
d45dc31f SE |
5029 | else |
5030 | if test -z "$LD"; then | |
d7040cdb | 5031 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
d45dc31f | 5032 | for ac_dir in $PATH; do |
d7040cdb | 5033 | IFS="$lt_save_ifs" |
d45dc31f SE |
5034 | test -z "$ac_dir" && ac_dir=. |
5035 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5036 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5037 | # Check to see if the program is GNU ld. I'd rather use --version, | |
d7040cdb | 5038 | # but apparently some variants of GNU ld only accept -v. |
d45dc31f | 5039 | # Break only if it was the GNU/non-GNU ld that we prefer. |
d7040cdb SE |
5040 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5041 | *GNU* | *'with BFD'*) | |
d45dc31f | 5042 | test "$with_gnu_ld" != no && break |
d7040cdb SE |
5043 | ;; |
5044 | *) | |
d45dc31f | 5045 | test "$with_gnu_ld" != yes && break |
d7040cdb SE |
5046 | ;; |
5047 | esac | |
d45dc31f SE |
5048 | fi |
5049 | done | |
d7040cdb | 5050 | IFS="$lt_save_ifs" |
d45dc31f SE |
5051 | else |
5052 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5053 | fi | |
5054 | fi | |
1ad12f97 | 5055 | |
d45dc31f SE |
5056 | LD="$lt_cv_path_LD" |
5057 | if test -n "$LD"; then | |
81ecdfbb RW |
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5059 | $as_echo "$LD" >&6; } | |
d45dc31f | 5060 | else |
81ecdfbb RW |
5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5062 | $as_echo "no" >&6; } | |
d45dc31f | 5063 | fi |
d0ac1c44 | 5064 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
81ecdfbb RW |
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5066 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 5067 | if ${lt_cv_prog_gnu_ld+:} false; then : |
81ecdfbb | 5068 | $as_echo_n "(cached) " >&6 |
d45dc31f | 5069 | else |
d7040cdb SE |
5070 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5071 | case `$LD -v 2>&1 </dev/null` in | |
5072 | *GNU* | *'with BFD'*) | |
d45dc31f | 5073 | lt_cv_prog_gnu_ld=yes |
d7040cdb SE |
5074 | ;; |
5075 | *) | |
d45dc31f | 5076 | lt_cv_prog_gnu_ld=no |
d7040cdb SE |
5077 | ;; |
5078 | esac | |
d45dc31f | 5079 | fi |
81ecdfbb RW |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5081 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
d45dc31f | 5082 | with_gnu_ld=$lt_cv_prog_gnu_ld |
569acd2c | 5083 | |
d45dc31f | 5084 | |
42ecbf5e | 5085 | |
d7040cdb SE |
5086 | |
5087 | ||
5088 | ||
5089 | ||
5090 | ||
5091 | ||
81ecdfbb RW |
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5093 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 5094 | if ${lt_cv_path_NM+:} false; then : |
81ecdfbb | 5095 | $as_echo_n "(cached) " >&6 |
d45dc31f SE |
5096 | else |
5097 | if test -n "$NM"; then | |
b9004024 NA |
5098 | # Let the user override the nm to test. |
5099 | lt_nm_to_check="$NM" | |
5100 | else | |
5101 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5102 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5103 | lt_nm_to_check="$lt_nm_to_check nm" | |
5104 | fi | |
5105 | fi | |
caf606c9 | 5106 | for lt_tmp_nm in "$lt_nm_to_check"; do |
b9004024 NA |
5107 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5108 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5109 | IFS="$lt_save_ifs" | |
5110 | test -z "$ac_dir" && ac_dir=. | |
caf606c9 NA |
5111 | # Strip out any user-provided options from the nm to test twice, |
5112 | # the first time to test to see if nm (rather than its options) has | |
5113 | # an explicit path, the second time to yield a file which can be | |
5114 | # nm'ed itself. | |
5115 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" | |
5116 | case "$tmp_nm_path" in | |
b9004024 NA |
5117 | */*|*\\*) tmp_nm="$lt_tmp_nm";; |
5118 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
5119 | esac | |
caf606c9 NA |
5120 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" |
5121 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then | |
b9004024 NA |
5122 | # Check to see if the nm accepts a BSD-compat flag. |
5123 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5124 | # nm: unknown option "B" ignored | |
caf606c9 | 5125 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
5126 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" |
5127 | break | |
5128 | ;; | |
5129 | *) | |
caf606c9 | 5130 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
5131 | *$tmp_nm*) |
5132 | lt_cv_path_NM="$tmp_nm -p" | |
5133 | break | |
5134 | ;; | |
5135 | *) | |
5136 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5137 | continue # so that we can try to find one that supports BSD flags | |
5138 | ;; | |
5139 | esac | |
5140 | ;; | |
5141 | esac | |
5142 | fi | |
5143 | done | |
5144 | IFS="$lt_save_ifs" | |
5145 | done | |
5146 | : ${lt_cv_path_NM=no} | |
a541e3ce | 5147 | fi |
81ecdfbb RW |
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5149 | $as_echo "$lt_cv_path_NM" >&6; } | |
d7040cdb SE |
5150 | if test "$lt_cv_path_NM" != "no"; then |
5151 | NM="$lt_cv_path_NM" | |
d45dc31f | 5152 | else |
d7040cdb | 5153 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
5154 | if test -n "$DUMPBIN"; then : |
5155 | # Let the user override the test. | |
5156 | else | |
5157 | if test -n "$ac_tool_prefix"; then | |
5158 | for ac_prog in dumpbin "link -dump" | |
d7040cdb SE |
5159 | do |
5160 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5161 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5163 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5164 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
81ecdfbb | 5165 | $as_echo_n "(cached) " >&6 |
d45dc31f | 5166 | else |
d7040cdb SE |
5167 | if test -n "$DUMPBIN"; then |
5168 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5169 | else | |
5170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5171 | for as_dir in $PATH | |
5172 | do | |
5173 | IFS=$as_save_IFS | |
5174 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5175 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 5177 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
5179 | break 2 |
5180 | fi | |
5181 | done | |
81ecdfbb RW |
5182 | done |
5183 | IFS=$as_save_IFS | |
398ee8f1 | 5184 | |
d7040cdb SE |
5185 | fi |
5186 | fi | |
5187 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5188 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5190 | $as_echo "$DUMPBIN" >&6; } | |
d7040cdb | 5191 | else |
81ecdfbb RW |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5193 | $as_echo "no" >&6; } | |
d7040cdb | 5194 | fi |
d15b04bd | 5195 | |
81ecdfbb | 5196 | |
d7040cdb SE |
5197 | test -n "$DUMPBIN" && break |
5198 | done | |
5199 | fi | |
5200 | if test -z "$DUMPBIN"; then | |
5201 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 5202 | for ac_prog in dumpbin "link -dump" |
d7040cdb SE |
5203 | do |
5204 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5205 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5207 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5208 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
81ecdfbb | 5209 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
5210 | else |
5211 | if test -n "$ac_ct_DUMPBIN"; then | |
5212 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5213 | else | |
5214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5215 | for as_dir in $PATH | |
5216 | do | |
5217 | IFS=$as_save_IFS | |
5218 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5219 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 5221 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5223 | break 2 |
d45dc31f | 5224 | fi |
d7040cdb | 5225 | done |
81ecdfbb RW |
5226 | done |
5227 | IFS=$as_save_IFS | |
d15b04bd | 5228 | |
d7040cdb SE |
5229 | fi |
5230 | fi | |
5231 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5232 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5234 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
d7040cdb | 5235 | else |
81ecdfbb RW |
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5237 | $as_echo "no" >&6; } | |
d7040cdb | 5238 | fi |
42ecbf5e | 5239 | |
81ecdfbb | 5240 | |
d7040cdb SE |
5241 | test -n "$ac_ct_DUMPBIN" && break |
5242 | done | |
d45dc31f | 5243 | |
81ecdfbb RW |
5244 | if test "x$ac_ct_DUMPBIN" = x; then |
5245 | DUMPBIN=":" | |
5246 | else | |
5247 | case $cross_compiling:$ac_tool_warned in | |
5248 | yes:) | |
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5251 | ac_tool_warned=yes ;; | |
5252 | esac | |
5253 | DUMPBIN=$ac_ct_DUMPBIN | |
5254 | fi | |
d7040cdb | 5255 | fi |
d45dc31f | 5256 | |
3725885a RW |
5257 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5258 | *COFF*) | |
5259 | DUMPBIN="$DUMPBIN -symbols" | |
5260 | ;; | |
5261 | *) | |
5262 | DUMPBIN=: | |
5263 | ;; | |
5264 | esac | |
5265 | fi | |
d45dc31f | 5266 | |
d7040cdb SE |
5267 | if test "$DUMPBIN" != ":"; then |
5268 | NM="$DUMPBIN" | |
42ecbf5e | 5269 | fi |
d7040cdb SE |
5270 | fi |
5271 | test -z "$NM" && NM=nm | |
d45dc31f | 5272 | |
42ecbf5e | 5273 | |
d15b04bd | 5274 | |
42ecbf5e | 5275 | |
d45dc31f | 5276 | |
42ecbf5e | 5277 | |
81ecdfbb RW |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5279 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 5280 | if ${lt_cv_nm_interface+:} false; then : |
81ecdfbb | 5281 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
5282 | else |
5283 | lt_cv_nm_interface="BSD nm" | |
5284 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 5285 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
d7040cdb SE |
5286 | (eval "$ac_compile" 2>conftest.err) |
5287 | cat conftest.err >&5 | |
3725885a | 5288 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
d7040cdb SE |
5289 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5290 | cat conftest.err >&5 | |
3725885a | 5291 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
d7040cdb SE |
5292 | cat conftest.out >&5 |
5293 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5294 | lt_cv_nm_interface="MS dumpbin" | |
5295 | fi | |
5296 | rm -f conftest* | |
42ecbf5e | 5297 | fi |
81ecdfbb RW |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5299 | $as_echo "$lt_cv_nm_interface" >&6; } | |
42ecbf5e | 5300 | |
81ecdfbb RW |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5302 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d7040cdb SE |
5303 | LN_S=$as_ln_s |
5304 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5306 | $as_echo "yes" >&6; } | |
d7040cdb | 5307 | else |
81ecdfbb RW |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5309 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 5310 | fi |
d45dc31f SE |
5311 | |
5312 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5314 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 5315 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
81ecdfbb | 5316 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 5317 | else |
d45dc31f SE |
5318 | i=0 |
5319 | teststring="ABCD" | |
5320 | ||
5321 | case $build_os in | |
5322 | msdosdjgpp*) | |
5323 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5324 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5325 | # during glob expansion). Even if it were fixed, the result of this | |
5326 | # check would be larger than it should be. | |
5327 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5328 | ;; | |
5329 | ||
d7040cdb SE |
5330 | gnu*) |
5331 | # Under GNU Hurd, this test is not required because there is | |
5332 | # no limit to the length of command line arguments. | |
5333 | # Libtool will interpret -1 as no limit whatsoever | |
5334 | lt_cv_sys_max_cmd_len=-1; | |
5335 | ;; | |
5336 | ||
718a6fd8 | 5337 | cygwin* | mingw* | cegcc*) |
d45dc31f SE |
5338 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5339 | # about 5 minutes as the teststring grows exponentially. | |
5340 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5341 | # you end up with a "frozen" computer, even though with patience | |
5342 | # the test eventually succeeds (with a max line length of 256k). | |
5343 | # Instead, let's just punt: use the minimum linelength reported by | |
5344 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5345 | lt_cv_sys_max_cmd_len=8192; | |
5346 | ;; | |
5347 | ||
3725885a RW |
5348 | mint*) |
5349 | # On MiNT this can take a long time and run out of memory. | |
5350 | lt_cv_sys_max_cmd_len=8192; | |
5351 | ;; | |
5352 | ||
d45dc31f SE |
5353 | amigaos*) |
5354 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5355 | # So we just punt and use a minimum line length of 8192. | |
5356 | lt_cv_sys_max_cmd_len=8192; | |
5357 | ;; | |
5358 | ||
5359 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5360 | # This has been around since 386BSD, at least. Likely further. | |
5361 | if test -x /sbin/sysctl; then | |
5362 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5363 | elif test -x /usr/sbin/sysctl; then | |
5364 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5365 | else | |
d7040cdb | 5366 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
d45dc31f SE |
5367 | fi |
5368 | # And add a safety zone | |
5369 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5370 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5371 | ;; | |
d7040cdb SE |
5372 | |
5373 | interix*) | |
5374 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5375 | lt_cv_sys_max_cmd_len=196608 | |
5376 | ;; | |
5377 | ||
5378 | osf*) | |
5379 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5380 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5381 | # nice to cause kernel panics so lets avoid the loop below. | |
5382 | # First set a reasonable default. | |
5383 | lt_cv_sys_max_cmd_len=16384 | |
5384 | # | |
5385 | if test -x /sbin/sysconfig; then | |
5386 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5387 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5388 | esac | |
5389 | fi | |
5390 | ;; | |
5391 | sco3.2v5*) | |
5392 | lt_cv_sys_max_cmd_len=102400 | |
5393 | ;; | |
5394 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5395 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5396 | if test -n "$kargmax"; then | |
5397 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5398 | else | |
5399 | lt_cv_sys_max_cmd_len=32768 | |
5400 | fi | |
5401 | ;; | |
5402 | *) | |
718a6fd8 SE |
5403 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5404 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5ba684e2 NC |
5405 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5406 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5407 | else | |
5408 | # Make teststring a little bigger before we do anything with it. | |
5409 | # a 1K string should be a reasonable start. | |
5410 | for i in 1 2 3 4 5 6 7 8 ; do | |
5411 | teststring=$teststring$teststring | |
5412 | done | |
5413 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5414 | # If test is not a shell built-in, we'll probably end up computing a | |
5415 | # maximum length that is only half of the actual maximum length, but | |
5416 | # we can't tell. | |
3725885a RW |
5417 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5418 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5ba684e2 NC |
5419 | test $i != 17 # 1/2 MB should be enough |
5420 | do | |
5421 | i=`expr $i + 1` | |
5422 | teststring=$teststring$teststring | |
5423 | done | |
5424 | # Only check the string length outside the loop. | |
5425 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5426 | teststring= | |
5427 | # Add a significant safety factor because C++ compilers can tack on | |
5428 | # massive amounts of additional arguments before passing them to the | |
5429 | # linker. It appears as though 1/2 is a usable value. | |
5430 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5431 | fi | |
d7040cdb | 5432 | ;; |
d45dc31f | 5433 | esac |
42ecbf5e | 5434 | |
42ecbf5e DJ |
5435 | fi |
5436 | ||
d7040cdb | 5437 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5439 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
252b5132 | 5440 | else |
81ecdfbb RW |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5442 | $as_echo "none" >&6; } | |
252b5132 | 5443 | fi |
d7040cdb | 5444 | max_cmd_len=$lt_cv_sys_max_cmd_len |
e5a52504 | 5445 | |
d45dc31f | 5446 | |
42ecbf5e | 5447 | |
d45dc31f | 5448 | |
d45dc31f | 5449 | |
d7040cdb | 5450 | |
d7040cdb SE |
5451 | : ${CP="cp -f"} |
5452 | : ${MV="mv -f"} | |
5453 | : ${RM="rm -f"} | |
5454 | ||
81ecdfbb RW |
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5456 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
d7040cdb SE |
5457 | # Try some XSI features |
5458 | xsi_shell=no | |
5459 | ( _lt_dummy="a/b/c" | |
f2c621e4 AS |
5460 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
5461 | = c,a/b,, \ | |
718a6fd8 SE |
5462 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
5463 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
d7040cdb | 5464 | && xsi_shell=yes |
81ecdfbb RW |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5466 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb SE |
5467 | |
5468 | ||
81ecdfbb RW |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5470 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
d7040cdb SE |
5471 | lt_shell_append=no |
5472 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5473 | >/dev/null 2>&1 \ | |
5474 | && lt_shell_append=yes | |
81ecdfbb RW |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5476 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
5477 | |
5478 | ||
5479 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5480 | lt_unset=unset | |
252b5132 | 5481 | else |
d7040cdb | 5482 | lt_unset=false |
252b5132 RH |
5483 | fi |
5484 | ||
d7040cdb SE |
5485 | |
5486 | ||
5487 | ||
5488 | ||
5489 | # test EBCDIC or ASCII | |
5490 | case `echo X|tr X '\101'` in | |
5491 | A) # ASCII based system | |
5492 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5493 | lt_SP2NL='tr \040 \012' | |
5494 | lt_NL2SP='tr \015\012 \040\040' | |
5495 | ;; | |
5496 | *) # EBCDIC based system | |
5497 | lt_SP2NL='tr \100 \n' | |
5498 | lt_NL2SP='tr \r\n \100\100' | |
5499 | ;; | |
5500 | esac | |
5501 | ||
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | ||
5508 | ||
5509 | ||
81ecdfbb RW |
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5511 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 5512 | if ${lt_cv_ld_reload_flag+:} false; then : |
81ecdfbb | 5513 | $as_echo_n "(cached) " >&6 |
252b5132 | 5514 | else |
d7040cdb SE |
5515 | lt_cv_ld_reload_flag='-r' |
5516 | fi | |
81ecdfbb RW |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5518 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
d7040cdb SE |
5519 | reload_flag=$lt_cv_ld_reload_flag |
5520 | case $reload_flag in | |
5521 | "" | " "*) ;; | |
5522 | *) reload_flag=" $reload_flag" ;; | |
5523 | esac | |
5524 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5525 | case $host_os in | |
5526 | darwin*) | |
5527 | if test "$GCC" = yes; then | |
5528 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5529 | else | |
5530 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5531 | fi | |
5532 | ;; | |
5533 | esac | |
5534 | ||
5535 | ||
5536 | ||
5537 | ||
5538 | ||
5539 | ||
5540 | ||
5541 | ||
5542 | ||
718a6fd8 SE |
5543 | if test -n "$ac_tool_prefix"; then |
5544 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5545 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5547 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5548 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 5549 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
5550 | else |
5551 | if test -n "$OBJDUMP"; then | |
5552 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5553 | else | |
5554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5555 | for as_dir in $PATH | |
5556 | do | |
5557 | IFS=$as_save_IFS | |
5558 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5559 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 5561 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5563 | break 2 |
5564 | fi | |
5565 | done | |
81ecdfbb RW |
5566 | done |
5567 | IFS=$as_save_IFS | |
718a6fd8 SE |
5568 | |
5569 | fi | |
5570 | fi | |
5571 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5572 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5574 | $as_echo "$OBJDUMP" >&6; } | |
718a6fd8 | 5575 | else |
81ecdfbb RW |
5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5577 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5578 | fi |
5579 | ||
81ecdfbb | 5580 | |
718a6fd8 SE |
5581 | fi |
5582 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5583 | ac_ct_OBJDUMP=$OBJDUMP | |
5584 | # Extract the first word of "objdump", so it can be a program name with args. | |
5585 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5587 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5588 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
81ecdfbb | 5589 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
5590 | else |
5591 | if test -n "$ac_ct_OBJDUMP"; then | |
5592 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5593 | else | |
5594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5595 | for as_dir in $PATH | |
5596 | do | |
5597 | IFS=$as_save_IFS | |
5598 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5599 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 5601 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5603 | break 2 |
5604 | fi | |
5605 | done | |
81ecdfbb RW |
5606 | done |
5607 | IFS=$as_save_IFS | |
718a6fd8 | 5608 | |
718a6fd8 SE |
5609 | fi |
5610 | fi | |
5611 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5612 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5614 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
718a6fd8 | 5615 | else |
81ecdfbb RW |
5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5617 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5618 | fi |
5619 | ||
81ecdfbb RW |
5620 | if test "x$ac_ct_OBJDUMP" = x; then |
5621 | OBJDUMP="false" | |
5622 | else | |
5623 | case $cross_compiling:$ac_tool_warned in | |
5624 | yes:) | |
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5626 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5627 | ac_tool_warned=yes ;; | |
5628 | esac | |
5629 | OBJDUMP=$ac_ct_OBJDUMP | |
5630 | fi | |
718a6fd8 SE |
5631 | else |
5632 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5633 | fi | |
5634 | ||
5635 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5636 | ||
5637 | ||
5638 | ||
5639 | ||
5640 | ||
5641 | ||
5642 | ||
5643 | ||
d7040cdb | 5644 | |
81ecdfbb RW |
5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5646 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 5647 | if ${lt_cv_deplibs_check_method+:} false; then : |
81ecdfbb | 5648 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
5649 | else |
5650 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5651 | lt_cv_file_magic_test_file= | |
5652 | lt_cv_deplibs_check_method='unknown' | |
5653 | # Need to set the preceding variable on all platforms that support | |
5654 | # interlibrary dependencies. | |
5655 | # 'none' -- dependencies not supported. | |
5656 | # `unknown' -- same as none, but documents that we really don't know. | |
5657 | # 'pass_all' -- all dependencies passed with no checks. | |
5658 | # 'test_compile' -- check by making test program. | |
5659 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5660 | # which responds to the $file_magic_cmd with a given extended regex. | |
5661 | # If you have `file' or equivalent on your system and you're not sure | |
5662 | # whether `pass_all' will *always* work, you probably want this one. | |
5663 | ||
5664 | case $host_os in | |
50e7d84b | 5665 | aix[4-9]*) |
d7040cdb SE |
5666 | lt_cv_deplibs_check_method=pass_all |
5667 | ;; | |
5668 | ||
5669 | beos*) | |
5670 | lt_cv_deplibs_check_method=pass_all | |
5671 | ;; | |
5672 | ||
5673 | bsdi[45]*) | |
5674 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5675 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5676 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5677 | ;; | |
5678 | ||
5679 | cygwin*) | |
5680 | # func_win32_libid is a shell function defined in ltmain.sh | |
5681 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5682 | lt_cv_file_magic_cmd='func_win32_libid' | |
5683 | ;; | |
5684 | ||
5685 | mingw* | pw32*) | |
5686 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5687 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5688 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
5689 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5690 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
d7040cdb SE |
5691 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5692 | lt_cv_file_magic_cmd='func_win32_libid' | |
5693 | else | |
f2c621e4 | 5694 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d7040cdb SE |
5695 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5696 | fi | |
5697 | ;; | |
5698 | ||
3725885a | 5699 | cegcc*) |
718a6fd8 SE |
5700 | # use the weaker test based on 'objdump'. See mingw*. |
5701 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5702 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5703 | ;; | |
5704 | ||
d7040cdb SE |
5705 | darwin* | rhapsody*) |
5706 | lt_cv_deplibs_check_method=pass_all | |
d45dc31f | 5707 | ;; |
d7040cdb SE |
5708 | |
5709 | freebsd* | dragonfly*) | |
5710 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5711 | case $host_cpu in | |
5712 | i*86 ) | |
5713 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5714 | # Let's accept both of them until this is cleared up. | |
5715 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5716 | lt_cv_file_magic_cmd=/usr/bin/file | |
5717 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5718 | ;; | |
5719 | esac | |
5720 | else | |
5721 | lt_cv_deplibs_check_method=pass_all | |
5722 | fi | |
5723 | ;; | |
5724 | ||
5725 | gnu*) | |
5726 | lt_cv_deplibs_check_method=pass_all | |
d45dc31f | 5727 | ;; |
d7040cdb | 5728 | |
3725885a RW |
5729 | haiku*) |
5730 | lt_cv_deplibs_check_method=pass_all | |
5731 | ;; | |
5732 | ||
d7040cdb SE |
5733 | hpux10.20* | hpux11*) |
5734 | lt_cv_file_magic_cmd=/usr/bin/file | |
5735 | case $host_cpu in | |
5736 | ia64*) | |
5737 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5738 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5739 | ;; | |
5740 | hppa*64*) | |
3725885a | 5741 | 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]' |
d7040cdb SE |
5742 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5743 | ;; | |
d45dc31f | 5744 | *) |
3725885a | 5745 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
d7040cdb SE |
5746 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5747 | ;; | |
5748 | esac | |
5749 | ;; | |
42ecbf5e | 5750 | |
d7040cdb SE |
5751 | interix[3-9]*) |
5752 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5753 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5754 | ;; | |
42ecbf5e | 5755 | |
d7040cdb SE |
5756 | irix5* | irix6* | nonstopux*) |
5757 | case $LD in | |
5758 | *-32|*"-32 ") libmagic=32-bit;; | |
5759 | *-n32|*"-n32 ") libmagic=N32;; | |
5760 | *-64|*"-64 ") libmagic=64-bit;; | |
5761 | *) libmagic=never-match;; | |
5762 | esac | |
5763 | lt_cv_deplibs_check_method=pass_all | |
d45dc31f | 5764 | ;; |
42ecbf5e | 5765 | |
d7040cdb | 5766 | # This must be Linux ELF. |
58e24671 | 5767 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
5768 | lt_cv_deplibs_check_method=pass_all |
5769 | ;; | |
252b5132 | 5770 | |
d7040cdb SE |
5771 | netbsd*) |
5772 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5773 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
d45dc31f | 5774 | else |
d7040cdb | 5775 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
d45dc31f | 5776 | fi |
d7040cdb SE |
5777 | ;; |
5778 | ||
5779 | newos6*) | |
5780 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5781 | lt_cv_file_magic_cmd=/usr/bin/file | |
5782 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5783 | ;; | |
5784 | ||
5785 | *nto* | *qnx*) | |
5786 | lt_cv_deplibs_check_method=pass_all | |
5787 | ;; | |
42ecbf5e | 5788 | |
d7040cdb SE |
5789 | openbsd*) |
5790 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5791 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5792 | else | |
5793 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
d45dc31f SE |
5794 | fi |
5795 | ;; | |
d7040cdb SE |
5796 | |
5797 | osf3* | osf4* | osf5*) | |
5798 | lt_cv_deplibs_check_method=pass_all | |
5799 | ;; | |
5800 | ||
5801 | rdos*) | |
5802 | lt_cv_deplibs_check_method=pass_all | |
5803 | ;; | |
5804 | ||
5805 | solaris*) | |
5806 | lt_cv_deplibs_check_method=pass_all | |
5807 | ;; | |
5808 | ||
5809 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5810 | lt_cv_deplibs_check_method=pass_all | |
5811 | ;; | |
5812 | ||
5813 | sysv4 | sysv4.3*) | |
5814 | case $host_vendor in | |
5815 | motorola) | |
5816 | 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]' | |
5817 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5818 | ;; | |
5819 | ncr) | |
5820 | lt_cv_deplibs_check_method=pass_all | |
5821 | ;; | |
5822 | sequent) | |
5823 | lt_cv_file_magic_cmd='/bin/file' | |
5824 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5825 | ;; | |
5826 | sni) | |
5827 | lt_cv_file_magic_cmd='/bin/file' | |
5828 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5829 | lt_cv_file_magic_test_file=/lib/libc.so | |
5830 | ;; | |
5831 | siemens) | |
5832 | lt_cv_deplibs_check_method=pass_all | |
5833 | ;; | |
5834 | pc) | |
5835 | lt_cv_deplibs_check_method=pass_all | |
5836 | ;; | |
5837 | esac | |
5838 | ;; | |
5839 | ||
5840 | tpf*) | |
5841 | lt_cv_deplibs_check_method=pass_all | |
5842 | ;; | |
d45dc31f | 5843 | esac |
42ecbf5e | 5844 | |
d7040cdb | 5845 | fi |
81ecdfbb RW |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5847 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
d7040cdb SE |
5848 | file_magic_cmd=$lt_cv_file_magic_cmd |
5849 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5850 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5851 | ||
5852 | ||
5853 | ||
5854 | ||
5855 | ||
5856 | ||
5857 | ||
5858 | ||
5859 | ||
5860 | ||
5861 | ||
5862 | ||
a4966cd9 L |
5863 | plugin_option= |
5864 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
5865 | for plugin in $plugin_names; do | |
5866 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
5867 | if test x$plugin_so = x$plugin; then | |
5868 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
5869 | fi | |
5870 | if test x$plugin_so != x$plugin; then | |
5871 | plugin_option="--plugin $plugin_so" | |
5872 | break | |
5873 | fi | |
5874 | done | |
5875 | ||
d45dc31f | 5876 | if test -n "$ac_tool_prefix"; then |
f2c621e4 AS |
5877 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5878 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5880 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5881 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 5882 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 5883 | else |
d7040cdb SE |
5884 | if test -n "$AR"; then |
5885 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d45dc31f SE |
5886 | else |
5887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5888 | for as_dir in $PATH | |
5889 | do | |
5890 | IFS=$as_save_IFS | |
5891 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5892 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5893 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f2c621e4 | 5894 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 5895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
5896 | break 2 |
5897 | fi | |
5898 | done | |
81ecdfbb RW |
5899 | done |
5900 | IFS=$as_save_IFS | |
42ecbf5e | 5901 | |
42ecbf5e | 5902 | fi |
d45dc31f | 5903 | fi |
d7040cdb SE |
5904 | AR=$ac_cv_prog_AR |
5905 | if test -n "$AR"; then | |
81ecdfbb RW |
5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5907 | $as_echo "$AR" >&6; } | |
d45dc31f | 5908 | else |
81ecdfbb RW |
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5910 | $as_echo "no" >&6; } | |
d45dc31f | 5911 | fi |
42ecbf5e | 5912 | |
81ecdfbb | 5913 | |
42ecbf5e | 5914 | fi |
f2c621e4 | 5915 | if test -z "$ac_cv_prog_AR"; then |
d7040cdb | 5916 | ac_ct_AR=$AR |
f2c621e4 AS |
5917 | # Extract the first word of "ar", so it can be a program name with args. |
5918 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5920 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5921 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 5922 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 5923 | else |
d7040cdb SE |
5924 | if test -n "$ac_ct_AR"; then |
5925 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
42ecbf5e | 5926 | else |
d45dc31f SE |
5927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5928 | for as_dir in $PATH | |
5929 | do | |
5930 | IFS=$as_save_IFS | |
5931 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5932 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f2c621e4 | 5934 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 5935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
5936 | break 2 |
5937 | fi | |
5938 | done | |
81ecdfbb RW |
5939 | done |
5940 | IFS=$as_save_IFS | |
42ecbf5e | 5941 | |
42ecbf5e | 5942 | fi |
42ecbf5e | 5943 | fi |
d7040cdb SE |
5944 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5945 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5947 | $as_echo "$ac_ct_AR" >&6; } | |
252b5132 | 5948 | else |
81ecdfbb RW |
5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5950 | $as_echo "no" >&6; } | |
252b5132 | 5951 | fi |
252b5132 | 5952 | |
81ecdfbb RW |
5953 | if test "x$ac_ct_AR" = x; then |
5954 | AR="false" | |
5955 | else | |
5956 | case $cross_compiling:$ac_tool_warned in | |
5957 | yes:) | |
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5959 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5960 | ac_tool_warned=yes ;; | |
5961 | esac | |
5962 | AR=$ac_ct_AR | |
5963 | fi | |
df7b86aa | 5964 | else |
f2c621e4 AS |
5965 | AR="$ac_cv_prog_AR" |
5966 | fi | |
df7b86aa | 5967 | |
f2c621e4 | 5968 | test -z "$AR" && AR=ar |
a4966cd9 L |
5969 | if test -n "$plugin_option"; then |
5970 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
83b33c6c L |
5971 | touch conftest.c |
5972 | $AR $plugin_option rc conftest.a conftest.c | |
5973 | if test "$?" != 0; then | |
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
5975 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
5976 | else | |
5977 | AR="$AR $plugin_option" | |
5978 | fi | |
5979 | rm -f conftest.* | |
a4966cd9 L |
5980 | fi |
5981 | fi | |
f2c621e4 | 5982 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
df7b86aa | 5983 | |
df7b86aa | 5984 | |
df7b86aa | 5985 | |
df7b86aa | 5986 | |
df7b86aa | 5987 | |
d7040cdb SE |
5988 | |
5989 | ||
5990 | ||
5991 | ||
5992 | ||
5993 | ||
d45dc31f SE |
5994 | if test -n "$ac_tool_prefix"; then |
5995 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5996 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5998 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5999 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 6000 | $as_echo_n "(cached) " >&6 |
d45dc31f SE |
6001 | else |
6002 | if test -n "$STRIP"; then | |
6003 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6004 | else | |
6005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6006 | for as_dir in $PATH | |
42ecbf5e | 6007 | do |
d45dc31f SE |
6008 | IFS=$as_save_IFS |
6009 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6010 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d45dc31f | 6012 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
6014 | break 2 |
6015 | fi | |
6016 | done | |
81ecdfbb RW |
6017 | done |
6018 | IFS=$as_save_IFS | |
d45dc31f SE |
6019 | |
6020 | fi | |
6021 | fi | |
6022 | STRIP=$ac_cv_prog_STRIP | |
6023 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6025 | $as_echo "$STRIP" >&6; } | |
252b5132 | 6026 | else |
81ecdfbb RW |
6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6028 | $as_echo "no" >&6; } | |
d45dc31f | 6029 | fi |
42ecbf5e | 6030 | |
81ecdfbb | 6031 | |
252b5132 | 6032 | fi |
d45dc31f SE |
6033 | if test -z "$ac_cv_prog_STRIP"; then |
6034 | ac_ct_STRIP=$STRIP | |
6035 | # Extract the first word of "strip", so it can be a program name with args. | |
6036 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6038 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6039 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 6040 | $as_echo_n "(cached) " >&6 |
d45dc31f SE |
6041 | else |
6042 | if test -n "$ac_ct_STRIP"; then | |
6043 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6044 | else | |
6045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6046 | for as_dir in $PATH | |
6047 | do | |
6048 | IFS=$as_save_IFS | |
6049 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6050 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d45dc31f | 6052 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d45dc31f SE |
6054 | break 2 |
6055 | fi | |
6056 | done | |
81ecdfbb RW |
6057 | done |
6058 | IFS=$as_save_IFS | |
42ecbf5e | 6059 | |
d45dc31f SE |
6060 | fi |
6061 | fi | |
6062 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6063 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6065 | $as_echo "$ac_ct_STRIP" >&6; } | |
d45dc31f | 6066 | else |
81ecdfbb RW |
6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6068 | $as_echo "no" >&6; } | |
252b5132 | 6069 | fi |
e5a52504 | 6070 | |
81ecdfbb RW |
6071 | if test "x$ac_ct_STRIP" = x; then |
6072 | STRIP=":" | |
6073 | else | |
6074 | case $cross_compiling:$ac_tool_warned in | |
6075 | yes:) | |
6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6078 | ac_tool_warned=yes ;; | |
6079 | esac | |
6080 | STRIP=$ac_ct_STRIP | |
6081 | fi | |
d45dc31f SE |
6082 | else |
6083 | STRIP="$ac_cv_prog_STRIP" | |
6084 | fi | |
e5a52504 | 6085 | |
d7040cdb | 6086 | test -z "$STRIP" && STRIP=: |
d45dc31f | 6087 | |
d45dc31f SE |
6088 | |
6089 | ||
d45dc31f | 6090 | |
d45dc31f SE |
6091 | |
6092 | ||
d7040cdb SE |
6093 | if test -n "$ac_tool_prefix"; then |
6094 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6095 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6097 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6098 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 6099 | $as_echo_n "(cached) " >&6 |
d45dc31f | 6100 | else |
d7040cdb SE |
6101 | if test -n "$RANLIB"; then |
6102 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6103 | else | |
6104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6105 | for as_dir in $PATH | |
6106 | do | |
6107 | IFS=$as_save_IFS | |
6108 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6109 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6110 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 6111 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 6113 | break 2 |
d45dc31f | 6114 | fi |
d7040cdb | 6115 | done |
81ecdfbb RW |
6116 | done |
6117 | IFS=$as_save_IFS | |
d45dc31f | 6118 | |
d7040cdb SE |
6119 | fi |
6120 | fi | |
6121 | RANLIB=$ac_cv_prog_RANLIB | |
6122 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6124 | $as_echo "$RANLIB" >&6; } | |
d7040cdb | 6125 | else |
81ecdfbb RW |
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6127 | $as_echo "no" >&6; } | |
d7040cdb | 6128 | fi |
d45dc31f | 6129 | |
81ecdfbb | 6130 | |
d7040cdb SE |
6131 | fi |
6132 | if test -z "$ac_cv_prog_RANLIB"; then | |
6133 | ac_ct_RANLIB=$RANLIB | |
6134 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6135 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6137 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6138 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 6139 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
6140 | else |
6141 | if test -n "$ac_ct_RANLIB"; then | |
6142 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6143 | else | |
6144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6145 | for as_dir in $PATH | |
6146 | do | |
6147 | IFS=$as_save_IFS | |
6148 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6149 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 6151 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 6153 | break 2 |
d45dc31f | 6154 | fi |
d7040cdb | 6155 | done |
81ecdfbb RW |
6156 | done |
6157 | IFS=$as_save_IFS | |
d45dc31f | 6158 | |
d7040cdb SE |
6159 | fi |
6160 | fi | |
6161 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6162 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6164 | $as_echo "$ac_ct_RANLIB" >&6; } | |
d15b04bd | 6165 | else |
81ecdfbb RW |
6166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6167 | $as_echo "no" >&6; } | |
d7040cdb | 6168 | fi |
252b5132 | 6169 | |
81ecdfbb RW |
6170 | if test "x$ac_ct_RANLIB" = x; then |
6171 | RANLIB=":" | |
6172 | else | |
6173 | case $cross_compiling:$ac_tool_warned in | |
6174 | yes:) | |
6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6176 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6177 | ac_tool_warned=yes ;; | |
6178 | esac | |
6179 | RANLIB=$ac_ct_RANLIB | |
6180 | fi | |
d7040cdb SE |
6181 | else |
6182 | RANLIB="$ac_cv_prog_RANLIB" | |
6183 | fi | |
d45dc31f | 6184 | |
d7040cdb | 6185 | test -z "$RANLIB" && RANLIB=: |
a4966cd9 L |
6186 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
6187 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6188 | RANLIB="$RANLIB $plugin_option" | |
6189 | fi | |
6190 | fi | |
d45dc31f | 6191 | |
d45dc31f | 6192 | |
d45dc31f | 6193 | |
42ecbf5e | 6194 | |
e5a52504 | 6195 | |
d7040cdb SE |
6196 | |
6197 | # Determine commands to create old-style static archives. | |
718a6fd8 | 6198 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
d7040cdb SE |
6199 | old_postinstall_cmds='chmod 644 $oldlib' |
6200 | old_postuninstall_cmds= | |
6201 | ||
6202 | if test -n "$RANLIB"; then | |
6203 | case $host_os in | |
6204 | openbsd*) | |
6205 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6206 | ;; | |
6207 | *) | |
6208 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6209 | ;; | |
6210 | esac | |
6211 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d45dc31f | 6212 | fi |
d45dc31f | 6213 | |
3725885a RW |
6214 | case $host_os in |
6215 | darwin*) | |
6216 | lock_old_archive_extraction=yes ;; | |
6217 | *) | |
6218 | lock_old_archive_extraction=no ;; | |
6219 | esac | |
6220 | ||
6221 | ||
6222 | ||
6223 | ||
6224 | ||
6225 | ||
d45dc31f | 6226 | |
d45dc31f SE |
6227 | |
6228 | ||
d15b04bd | 6229 | |
3e321448 | 6230 | |
d45dc31f | 6231 | |
d45dc31f | 6232 | |
d45dc31f SE |
6233 | |
6234 | ||
d45dc31f | 6235 | |
d45dc31f | 6236 | |
d45dc31f SE |
6237 | |
6238 | ||
6239 | ||
6240 | ||
6241 | ||
6242 | ||
6243 | ||
d45dc31f | 6244 | |
d45dc31f | 6245 | |
d45dc31f | 6246 | |
d45dc31f | 6247 | |
d45dc31f | 6248 | |
d45dc31f | 6249 | |
d45dc31f | 6250 | |
d45dc31f | 6251 | |
3e321448 L |
6252 | |
6253 | ||
d45dc31f SE |
6254 | |
6255 | ||
d45dc31f SE |
6256 | |
6257 | ||
d45dc31f | 6258 | |
d7040cdb SE |
6259 | # If no C compiler was specified, use CC. |
6260 | LTCC=${LTCC-"$CC"} | |
42ecbf5e | 6261 | |
d7040cdb SE |
6262 | # If no C compiler flags were specified, use CFLAGS. |
6263 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
e5a52504 | 6264 | |
d7040cdb SE |
6265 | # Allow CC to be a program name with arguments. |
6266 | compiler=$CC | |
d15b04bd | 6267 | |
d7040cdb SE |
6268 | |
6269 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
6270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6271 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 6272 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
81ecdfbb | 6273 | $as_echo_n "(cached) " >&6 |
d15b04bd | 6274 | else |
d7040cdb SE |
6275 | |
6276 | # These are sane defaults that work on at least a few old systems. | |
6277 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6278 | ||
6279 | # Character class describing NM global symbol codes. | |
6280 | symcode='[BCDEGRST]' | |
6281 | ||
6282 | # Regexp to match symbols that can be accessed directly from C. | |
6283 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6284 | ||
6285 | # Define system-specific variables. | |
6286 | case $host_os in | |
6287 | aix*) | |
6288 | symcode='[BCDT]' | |
6289 | ;; | |
718a6fd8 | 6290 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
6291 | symcode='[ABCDGISTW]' |
6292 | ;; | |
6293 | hpux*) | |
6294 | if test "$host_cpu" = ia64; then | |
6295 | symcode='[ABCDEGRST]' | |
42ecbf5e | 6296 | fi |
d7040cdb SE |
6297 | ;; |
6298 | irix* | nonstopux*) | |
6299 | symcode='[BCDEGRST]' | |
6300 | ;; | |
6301 | osf*) | |
6302 | symcode='[BCDEGQRST]' | |
6303 | ;; | |
6304 | solaris*) | |
b9004024 | 6305 | symcode='[BCDRT]' |
d7040cdb SE |
6306 | ;; |
6307 | sco3.2v5*) | |
6308 | symcode='[DT]' | |
6309 | ;; | |
6310 | sysv4.2uw2*) | |
6311 | symcode='[DT]' | |
6312 | ;; | |
6313 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6314 | symcode='[ABDT]' | |
6315 | ;; | |
6316 | sysv4) | |
6317 | symcode='[DFNSTU]' | |
6318 | ;; | |
6319 | esac | |
d15b04bd | 6320 | |
d7040cdb SE |
6321 | # If we're using GNU nm, then use its standard symbol codes. |
6322 | case `$NM -V 2>&1` in | |
6323 | *GNU* | *'with BFD'*) | |
6324 | symcode='[ABCDGIRSTW]' ;; | |
6325 | esac | |
e5a52504 | 6326 | |
d7040cdb SE |
6327 | # Transform an extracted symbol line into a proper C declaration. |
6328 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7357c5b6 AM |
6329 | # so use this general approach. |
6330 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d7040cdb | 6331 | |
7357c5b6 | 6332 | # Transform an extracted symbol line into symbol name and symbol address |
f2c621e4 AS |
6333 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6334 | 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'" | |
d7040cdb | 6335 | |
7357c5b6 AM |
6336 | # Handle CRLF in mingw tool chain |
6337 | opt_cr= | |
6338 | case $build_os in | |
6339 | mingw*) | |
6340 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6341 | ;; | |
6342 | esac | |
d7040cdb | 6343 | |
7357c5b6 AM |
6344 | # Try without a prefix underscore, then with it. |
6345 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6346 | |
7357c5b6 AM |
6347 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6348 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6349 | |
7357c5b6 AM |
6350 | # Write the raw and C identifiers. |
6351 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6352 | # Fake it for dumpbin and say T for any non-static function | |
6353 | # and D for any global variable. | |
6354 | # Also find C++ and __fastcall symbols from MSVC++, | |
6355 | # which start with @ or ?. | |
6356 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6357 | " {last_section=section; section=\$ 3};"\ | |
6358 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6359 | " \$ 0!~/External *\|/{next};"\ | |
6360 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6361 | " {if(hide[section]) next};"\ | |
6362 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6363 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6364 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6365 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6366 | " ' prfx=^$ac_symprfx" | |
6367 | else | |
6368 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6369 | fi | |
6370 | ||
6371 | # Check to see that the pipe works correctly. | |
6372 | pipe_works=no | |
6373 | ||
6374 | rm -f conftest* | |
6375 | cat > conftest.$ac_ext <<_LT_EOF | |
6376 | #ifdef __cplusplus | |
6377 | extern "C" { | |
6378 | #endif | |
6379 | char nm_test_var; | |
6380 | void nm_test_func(void); | |
6381 | void nm_test_func(void){} | |
6382 | #ifdef __cplusplus | |
d7040cdb | 6383 | } |
7357c5b6 AM |
6384 | #endif |
6385 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6386 | _LT_EOF | |
6387 | ||
81ecdfbb | 6388 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6389 | (eval $ac_compile) 2>&5 |
42ecbf5e | 6390 | ac_status=$? |
81ecdfbb RW |
6391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6392 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6393 | # Now try to grab the symbols. |
6394 | nlist=conftest.nm | |
3725885a RW |
6395 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6396 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
42ecbf5e | 6397 | ac_status=$? |
81ecdfbb RW |
6398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6399 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6400 | # Try sorting and uniquifying the output. |
6401 | if sort "$nlist" | uniq > "$nlist"T; then | |
6402 | mv -f "$nlist"T "$nlist" | |
6403 | else | |
6404 | rm -f "$nlist"T | |
6405 | fi | |
d7040cdb | 6406 | |
7357c5b6 AM |
6407 | # Make sure that we snagged all the symbols we need. |
6408 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6409 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6410 | cat <<_LT_EOF > conftest.$ac_ext | |
6411 | #ifdef __cplusplus | |
6412 | extern "C" { | |
6413 | #endif | |
e5a52504 | 6414 | |
7357c5b6 AM |
6415 | _LT_EOF |
6416 | # Now generate the symbol file. | |
6417 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7148cc28 | 6418 | |
7357c5b6 | 6419 | cat <<_LT_EOF >> conftest.$ac_ext |
d7040cdb | 6420 | |
7357c5b6 | 6421 | /* The mapping between symbol names and symbols. */ |
f2c621e4 | 6422 | const struct { |
7357c5b6 AM |
6423 | const char *name; |
6424 | void *address; | |
6425 | } | |
6426 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6427 | { | |
6428 | { "@PROGRAM@", (void *) 0 }, | |
6429 | _LT_EOF | |
6430 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6431 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6432 | {0, (void *) 0} | |
6433 | }; | |
d7040cdb | 6434 | |
7357c5b6 AM |
6435 | /* This works around a problem in FreeBSD linker */ |
6436 | #ifdef FREEBSD_WORKAROUND | |
6437 | static const void *lt_preloaded_setup() { | |
6438 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6439 | } | |
d7040cdb SE |
6440 | #endif |
6441 | ||
7357c5b6 | 6442 | #ifdef __cplusplus |
d7040cdb | 6443 | } |
7357c5b6 AM |
6444 | #endif |
6445 | _LT_EOF | |
6446 | # Now try linking the two files. | |
6447 | mv conftest.$ac_objext conftstm.$ac_objext | |
f2c621e4 AS |
6448 | lt_save_LIBS="$LIBS" |
6449 | lt_save_CFLAGS="$CFLAGS" | |
7357c5b6 AM |
6450 | LIBS="conftstm.$ac_objext" |
6451 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6452 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
6453 | (eval $ac_link) 2>&5 |
6454 | ac_status=$? | |
81ecdfbb RW |
6455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6456 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6457 | pipe_works=yes |
6458 | fi | |
f2c621e4 AS |
6459 | LIBS="$lt_save_LIBS" |
6460 | CFLAGS="$lt_save_CFLAGS" | |
7357c5b6 AM |
6461 | else |
6462 | echo "cannot find nm_test_func in $nlist" >&5 | |
6463 | fi | |
6464 | else | |
6465 | echo "cannot find nm_test_var in $nlist" >&5 | |
6466 | fi | |
6467 | else | |
6468 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6469 | fi | |
6470 | else | |
6471 | echo "$progname: failed program was:" >&5 | |
6472 | cat conftest.$ac_ext >&5 | |
6473 | fi | |
718a6fd8 | 6474 | rm -rf conftest* conftst* |
7357c5b6 AM |
6475 | |
6476 | # Do not use the global_symbol_pipe unless it works. | |
6477 | if test "$pipe_works" = yes; then | |
6478 | break | |
6479 | else | |
6480 | lt_cv_sys_global_symbol_pipe= | |
6481 | fi | |
6482 | done | |
d7040cdb | 6483 | |
d7040cdb | 6484 | fi |
7357c5b6 AM |
6485 | |
6486 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6487 | lt_cv_sys_global_symbol_to_cdecl= | |
d7040cdb | 6488 | fi |
7357c5b6 | 6489 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6491 | $as_echo "failed" >&6; } | |
7357c5b6 | 6492 | else |
81ecdfbb RW |
6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6494 | $as_echo "ok" >&6; } | |
d7040cdb | 6495 | fi |
20e95c23 | 6496 | |
20e95c23 | 6497 | |
20e95c23 | 6498 | |
20e95c23 | 6499 | |
20e95c23 | 6500 | |
20e95c23 | 6501 | |
20e95c23 DJ |
6502 | |
6503 | ||
7357c5b6 AM |
6504 | |
6505 | ||
6506 | ||
718a6fd8 SE |
6507 | |
6508 | ||
6509 | ||
6510 | ||
6511 | ||
7357c5b6 | 6512 | |
df7b86aa NC |
6513 | |
6514 | ||
6515 | ||
6516 | ||
7357c5b6 | 6517 | |
81ecdfbb RW |
6518 | # Check whether --enable-libtool-lock was given. |
6519 | if test "${enable_libtool_lock+set}" = set; then : | |
6520 | enableval=$enable_libtool_lock; | |
6521 | fi | |
7357c5b6 | 6522 | |
7357c5b6 AM |
6523 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6524 | ||
6525 | # Some flags need to be propagated to the compiler or linker for good | |
6526 | # libtool support. | |
6527 | case $host in | |
6528 | ia64-*-hpux*) | |
6529 | # Find out which ABI we are using. | |
6530 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6531 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6532 | (eval $ac_compile) 2>&5 |
6533 | ac_status=$? | |
81ecdfbb RW |
6534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6535 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6536 | case `/usr/bin/file conftest.$ac_objext` in |
6537 | *ELF-32*) | |
6538 | HPUX_IA64_MODE="32" | |
6539 | ;; | |
6540 | *ELF-64*) | |
6541 | HPUX_IA64_MODE="64" | |
6542 | ;; | |
6543 | esac | |
6544 | fi | |
6545 | rm -rf conftest* | |
6546 | ;; | |
6547 | *-*-irix6*) | |
6548 | # Find out which ABI we are using. | |
3725885a | 6549 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 6550 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6551 | (eval $ac_compile) 2>&5 |
6552 | ac_status=$? | |
81ecdfbb RW |
6553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6554 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6555 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6556 | case `/usr/bin/file conftest.$ac_objext` in | |
6557 | *32-bit*) | |
6558 | LD="${LD-ld} -melf32bsmip" | |
6559 | ;; | |
6560 | *N32*) | |
6561 | LD="${LD-ld} -melf32bmipn32" | |
6562 | ;; | |
6563 | *64-bit*) | |
6564 | LD="${LD-ld} -melf64bmip" | |
6565 | ;; | |
6566 | esac | |
6567 | else | |
6568 | case `/usr/bin/file conftest.$ac_objext` in | |
6569 | *32-bit*) | |
6570 | LD="${LD-ld} -32" | |
6571 | ;; | |
6572 | *N32*) | |
6573 | LD="${LD-ld} -n32" | |
6574 | ;; | |
6575 | *64-bit*) | |
6576 | LD="${LD-ld} -64" | |
6577 | ;; | |
6578 | esac | |
6579 | fi | |
6580 | fi | |
6581 | rm -rf conftest* | |
6582 | ;; | |
6583 | ||
cc9afea3 | 6584 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
6585 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6586 | # Find out which ABI we are using. | |
6587 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6588 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6589 | (eval $ac_compile) 2>&5 |
6590 | ac_status=$? | |
81ecdfbb RW |
6591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6592 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6593 | case `/usr/bin/file conftest.o` in |
6594 | *32-bit*) | |
6595 | case $host in | |
6596 | x86_64-*kfreebsd*-gnu) | |
6597 | LD="${LD-ld} -m elf_i386_fbsd" | |
6598 | ;; | |
6599 | x86_64-*linux*) | |
6d2920c8 L |
6600 | case `/usr/bin/file conftest.o` in |
6601 | *x86-64*) | |
6602 | LD="${LD-ld} -m elf32_x86_64" | |
6603 | ;; | |
6604 | *) | |
6605 | LD="${LD-ld} -m elf_i386" | |
6606 | ;; | |
6607 | esac | |
7357c5b6 | 6608 | ;; |
cc9afea3 AM |
6609 | powerpc64le-*linux*) |
6610 | LD="${LD-ld} -m elf32lppclinux" | |
6611 | ;; | |
6612 | powerpc64-*linux*) | |
7357c5b6 AM |
6613 | LD="${LD-ld} -m elf32ppclinux" |
6614 | ;; | |
6615 | s390x-*linux*) | |
6616 | LD="${LD-ld} -m elf_s390" | |
6617 | ;; | |
6618 | sparc64-*linux*) | |
6619 | LD="${LD-ld} -m elf32_sparc" | |
6620 | ;; | |
6621 | esac | |
6622 | ;; | |
6623 | *64-bit*) | |
6624 | case $host in | |
6625 | x86_64-*kfreebsd*-gnu) | |
6626 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6627 | ;; | |
6628 | x86_64-*linux*) | |
6629 | LD="${LD-ld} -m elf_x86_64" | |
6630 | ;; | |
cc9afea3 AM |
6631 | powerpcle-*linux*) |
6632 | LD="${LD-ld} -m elf64lppc" | |
6633 | ;; | |
6634 | powerpc-*linux*) | |
7357c5b6 AM |
6635 | LD="${LD-ld} -m elf64ppc" |
6636 | ;; | |
6637 | s390*-*linux*|s390*-*tpf*) | |
6638 | LD="${LD-ld} -m elf64_s390" | |
6639 | ;; | |
6640 | sparc*-*linux*) | |
6641 | LD="${LD-ld} -m elf64_sparc" | |
6642 | ;; | |
6643 | esac | |
6644 | ;; | |
6645 | esac | |
6646 | fi | |
6647 | rm -rf conftest* | |
6648 | ;; | |
6649 | ||
6650 | *-*-sco3.2v5*) | |
6651 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6652 | SAVE_CFLAGS="$CFLAGS" | |
6653 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
6654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6655 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 6656 | if ${lt_cv_cc_needs_belf+:} false; then : |
81ecdfbb | 6657 | $as_echo_n "(cached) " >&6 |
d7040cdb | 6658 | else |
7357c5b6 AM |
6659 | ac_ext=c |
6660 | ac_cpp='$CPP $CPPFLAGS' | |
6661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6664 | ||
81ecdfbb | 6665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 6666 | /* end confdefs.h. */ |
20e95c23 | 6667 | |
7357c5b6 AM |
6668 | int |
6669 | main () | |
6670 | { | |
6671 | ||
6672 | ; | |
6673 | return 0; | |
6674 | } | |
d7040cdb | 6675 | _ACEOF |
81ecdfbb | 6676 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 6677 | lt_cv_cc_needs_belf=yes |
d15b04bd | 6678 | else |
81ecdfbb | 6679 | lt_cv_cc_needs_belf=no |
d7040cdb | 6680 | fi |
81ecdfbb RW |
6681 | rm -f core conftest.err conftest.$ac_objext \ |
6682 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
6683 | ac_ext=c |
6684 | ac_cpp='$CPP $CPPFLAGS' | |
6685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 6688 | |
718a6fd8 | 6689 | fi |
81ecdfbb RW |
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6691 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
718a6fd8 SE |
6692 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6693 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6694 | CFLAGS="$SAVE_CFLAGS" | |
6695 | fi | |
6696 | ;; | |
6697 | sparc*-*solaris*) | |
6698 | # Find out which ABI we are using. | |
6699 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6700 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
718a6fd8 SE |
6701 | (eval $ac_compile) 2>&5 |
6702 | ac_status=$? | |
81ecdfbb RW |
6703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6704 | test $ac_status = 0; }; then | |
718a6fd8 SE |
6705 | case `/usr/bin/file conftest.o` in |
6706 | *64-bit*) | |
6707 | case $lt_cv_prog_gnu_ld in | |
6708 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6709 | *) | |
6710 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6711 | LD="${LD-ld} -64" | |
6712 | fi | |
6713 | ;; | |
6714 | esac | |
6715 | ;; | |
6716 | esac | |
6717 | fi | |
df7b86aa NC |
6718 | rm -rf conftest* |
6719 | ;; | |
6720 | esac | |
6721 | ||
6722 | need_locks="$enable_libtool_lock" | |
6723 | ||
718a6fd8 SE |
6724 | |
6725 | case $host_os in | |
6726 | rhapsody* | darwin*) | |
6727 | if test -n "$ac_tool_prefix"; then | |
6728 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6729 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6731 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6732 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
81ecdfbb | 6733 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6734 | else |
6735 | if test -n "$DSYMUTIL"; then | |
6736 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6737 | else | |
6738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6739 | for as_dir in $PATH | |
6740 | do | |
6741 | IFS=$as_save_IFS | |
6742 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6743 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6745 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 6746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6747 | break 2 |
6748 | fi | |
6749 | done | |
81ecdfbb RW |
6750 | done |
6751 | IFS=$as_save_IFS | |
718a6fd8 SE |
6752 | |
6753 | fi | |
6754 | fi | |
6755 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6756 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6758 | $as_echo "$DSYMUTIL" >&6; } | |
718a6fd8 | 6759 | else |
81ecdfbb RW |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6761 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6762 | fi |
6763 | ||
81ecdfbb | 6764 | |
718a6fd8 SE |
6765 | fi |
6766 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6767 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6768 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6769 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6771 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6772 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
81ecdfbb | 6773 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6774 | else |
6775 | if test -n "$ac_ct_DSYMUTIL"; then | |
6776 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6777 | else | |
6778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6779 | for as_dir in $PATH | |
6780 | do | |
6781 | IFS=$as_save_IFS | |
6782 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6783 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6785 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 6786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6787 | break 2 |
6788 | fi | |
6789 | done | |
81ecdfbb RW |
6790 | done |
6791 | IFS=$as_save_IFS | |
718a6fd8 | 6792 | |
718a6fd8 SE |
6793 | fi |
6794 | fi | |
6795 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6796 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
6797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6798 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
718a6fd8 | 6799 | else |
81ecdfbb RW |
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6801 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6802 | fi |
6803 | ||
81ecdfbb RW |
6804 | if test "x$ac_ct_DSYMUTIL" = x; then |
6805 | DSYMUTIL=":" | |
6806 | else | |
6807 | case $cross_compiling:$ac_tool_warned in | |
6808 | yes:) | |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6810 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6811 | ac_tool_warned=yes ;; | |
6812 | esac | |
6813 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6814 | fi | |
718a6fd8 SE |
6815 | else |
6816 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6817 | fi | |
6818 | ||
6819 | if test -n "$ac_tool_prefix"; then | |
6820 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6821 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6823 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6824 | if ${ac_cv_prog_NMEDIT+:} false; then : |
81ecdfbb | 6825 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6826 | else |
6827 | if test -n "$NMEDIT"; then | |
6828 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6829 | else | |
6830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6831 | for as_dir in $PATH | |
6832 | do | |
6833 | IFS=$as_save_IFS | |
6834 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6835 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6837 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 6838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6839 | break 2 |
6840 | fi | |
6841 | done | |
81ecdfbb RW |
6842 | done |
6843 | IFS=$as_save_IFS | |
718a6fd8 SE |
6844 | |
6845 | fi | |
6846 | fi | |
6847 | NMEDIT=$ac_cv_prog_NMEDIT | |
6848 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
6850 | $as_echo "$NMEDIT" >&6; } | |
718a6fd8 | 6851 | else |
81ecdfbb RW |
6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6853 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6854 | fi |
6855 | ||
81ecdfbb | 6856 | |
718a6fd8 SE |
6857 | fi |
6858 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6859 | ac_ct_NMEDIT=$NMEDIT | |
6860 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6861 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6863 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6864 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
81ecdfbb | 6865 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6866 | else |
6867 | if test -n "$ac_ct_NMEDIT"; then | |
6868 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6869 | else | |
6870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6871 | for as_dir in $PATH | |
6872 | do | |
6873 | IFS=$as_save_IFS | |
6874 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6875 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6877 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 6878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6879 | break 2 |
6880 | fi | |
6881 | done | |
81ecdfbb RW |
6882 | done |
6883 | IFS=$as_save_IFS | |
718a6fd8 | 6884 | |
718a6fd8 SE |
6885 | fi |
6886 | fi | |
6887 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6888 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
6890 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
718a6fd8 | 6891 | else |
81ecdfbb RW |
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6893 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6894 | fi |
6895 | ||
81ecdfbb RW |
6896 | if test "x$ac_ct_NMEDIT" = x; then |
6897 | NMEDIT=":" | |
6898 | else | |
6899 | case $cross_compiling:$ac_tool_warned in | |
6900 | yes:) | |
6901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6902 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6903 | ac_tool_warned=yes ;; | |
6904 | esac | |
6905 | NMEDIT=$ac_ct_NMEDIT | |
6906 | fi | |
718a6fd8 SE |
6907 | else |
6908 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6909 | fi | |
6910 | ||
6911 | if test -n "$ac_tool_prefix"; then | |
6912 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6913 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
6914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6915 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6916 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 6917 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6918 | else |
6919 | if test -n "$LIPO"; then | |
6920 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6921 | else | |
6922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6923 | for as_dir in $PATH | |
6924 | do | |
6925 | IFS=$as_save_IFS | |
6926 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6927 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6929 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 6930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6931 | break 2 |
6932 | fi | |
6933 | done | |
81ecdfbb RW |
6934 | done |
6935 | IFS=$as_save_IFS | |
718a6fd8 SE |
6936 | |
6937 | fi | |
6938 | fi | |
6939 | LIPO=$ac_cv_prog_LIPO | |
6940 | if test -n "$LIPO"; then | |
81ecdfbb RW |
6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
6942 | $as_echo "$LIPO" >&6; } | |
718a6fd8 | 6943 | else |
81ecdfbb RW |
6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6945 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6946 | fi |
6947 | ||
81ecdfbb | 6948 | |
718a6fd8 SE |
6949 | fi |
6950 | if test -z "$ac_cv_prog_LIPO"; then | |
6951 | ac_ct_LIPO=$LIPO | |
6952 | # Extract the first word of "lipo", so it can be a program name with args. | |
6953 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6955 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6956 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
81ecdfbb | 6957 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6958 | else |
6959 | if test -n "$ac_ct_LIPO"; then | |
6960 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6961 | else | |
6962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6963 | for as_dir in $PATH | |
6964 | do | |
6965 | IFS=$as_save_IFS | |
6966 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6967 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6969 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 6970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6971 | break 2 |
6972 | fi | |
6973 | done | |
81ecdfbb RW |
6974 | done |
6975 | IFS=$as_save_IFS | |
718a6fd8 | 6976 | |
718a6fd8 SE |
6977 | fi |
6978 | fi | |
6979 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6980 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
6982 | $as_echo "$ac_ct_LIPO" >&6; } | |
718a6fd8 | 6983 | else |
81ecdfbb RW |
6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6985 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6986 | fi |
6987 | ||
81ecdfbb RW |
6988 | if test "x$ac_ct_LIPO" = x; then |
6989 | LIPO=":" | |
6990 | else | |
6991 | case $cross_compiling:$ac_tool_warned in | |
6992 | yes:) | |
6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6994 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6995 | ac_tool_warned=yes ;; | |
6996 | esac | |
6997 | LIPO=$ac_ct_LIPO | |
6998 | fi | |
718a6fd8 SE |
6999 | else |
7000 | LIPO="$ac_cv_prog_LIPO" | |
7001 | fi | |
7002 | ||
7003 | if test -n "$ac_tool_prefix"; then | |
7004 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7005 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7007 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7008 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 7009 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7010 | else |
7011 | if test -n "$OTOOL"; then | |
7012 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7013 | else | |
7014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7015 | for as_dir in $PATH | |
7016 | do | |
7017 | IFS=$as_save_IFS | |
7018 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7019 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7020 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7021 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7023 | break 2 |
7024 | fi | |
7025 | done | |
81ecdfbb RW |
7026 | done |
7027 | IFS=$as_save_IFS | |
718a6fd8 SE |
7028 | |
7029 | fi | |
7030 | fi | |
7031 | OTOOL=$ac_cv_prog_OTOOL | |
7032 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7034 | $as_echo "$OTOOL" >&6; } | |
718a6fd8 | 7035 | else |
81ecdfbb RW |
7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7037 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7038 | fi |
7039 | ||
81ecdfbb | 7040 | |
718a6fd8 SE |
7041 | fi |
7042 | if test -z "$ac_cv_prog_OTOOL"; then | |
7043 | ac_ct_OTOOL=$OTOOL | |
7044 | # Extract the first word of "otool", so it can be a program name with args. | |
7045 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7047 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7048 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
81ecdfbb | 7049 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7050 | else |
7051 | if test -n "$ac_ct_OTOOL"; then | |
7052 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7053 | else | |
7054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7055 | for as_dir in $PATH | |
7056 | do | |
7057 | IFS=$as_save_IFS | |
7058 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7059 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7061 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7063 | break 2 |
7064 | fi | |
7065 | done | |
81ecdfbb RW |
7066 | done |
7067 | IFS=$as_save_IFS | |
718a6fd8 | 7068 | |
718a6fd8 SE |
7069 | fi |
7070 | fi | |
7071 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7072 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7074 | $as_echo "$ac_ct_OTOOL" >&6; } | |
718a6fd8 | 7075 | else |
81ecdfbb RW |
7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7077 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7078 | fi |
7079 | ||
81ecdfbb RW |
7080 | if test "x$ac_ct_OTOOL" = x; then |
7081 | OTOOL=":" | |
7082 | else | |
7083 | case $cross_compiling:$ac_tool_warned in | |
7084 | yes:) | |
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7086 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7087 | ac_tool_warned=yes ;; | |
7088 | esac | |
7089 | OTOOL=$ac_ct_OTOOL | |
7090 | fi | |
718a6fd8 SE |
7091 | else |
7092 | OTOOL="$ac_cv_prog_OTOOL" | |
7093 | fi | |
7094 | ||
7095 | if test -n "$ac_tool_prefix"; then | |
7096 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7097 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7099 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7100 | if ${ac_cv_prog_OTOOL64+:} false; then : |
81ecdfbb | 7101 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7102 | else |
7103 | if test -n "$OTOOL64"; then | |
7104 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7105 | else | |
7106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7107 | for as_dir in $PATH | |
7108 | do | |
7109 | IFS=$as_save_IFS | |
7110 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7111 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7113 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7115 | break 2 |
7116 | fi | |
7117 | done | |
81ecdfbb RW |
7118 | done |
7119 | IFS=$as_save_IFS | |
718a6fd8 SE |
7120 | |
7121 | fi | |
7122 | fi | |
7123 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7124 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7126 | $as_echo "$OTOOL64" >&6; } | |
718a6fd8 | 7127 | else |
81ecdfbb RW |
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7129 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7130 | fi |
7131 | ||
81ecdfbb | 7132 | |
718a6fd8 SE |
7133 | fi |
7134 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7135 | ac_ct_OTOOL64=$OTOOL64 | |
7136 | # Extract the first word of "otool64", so it can be a program name with args. | |
7137 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7139 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7140 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
81ecdfbb | 7141 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7142 | else |
7143 | if test -n "$ac_ct_OTOOL64"; then | |
7144 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7145 | else | |
7146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7147 | for as_dir in $PATH | |
7148 | do | |
7149 | IFS=$as_save_IFS | |
7150 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7151 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7153 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7155 | break 2 |
7156 | fi | |
7157 | done | |
81ecdfbb RW |
7158 | done |
7159 | IFS=$as_save_IFS | |
718a6fd8 | 7160 | |
718a6fd8 SE |
7161 | fi |
7162 | fi | |
7163 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7164 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7166 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
718a6fd8 | 7167 | else |
81ecdfbb RW |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7169 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7170 | fi |
7171 | ||
81ecdfbb RW |
7172 | if test "x$ac_ct_OTOOL64" = x; then |
7173 | OTOOL64=":" | |
7174 | else | |
7175 | case $cross_compiling:$ac_tool_warned in | |
7176 | yes:) | |
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7178 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7179 | ac_tool_warned=yes ;; | |
7180 | esac | |
7181 | OTOOL64=$ac_ct_OTOOL64 | |
7182 | fi | |
718a6fd8 SE |
7183 | else |
7184 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7185 | fi | |
7186 | ||
7187 | ||
7188 | ||
7189 | ||
7190 | ||
7191 | ||
7192 | ||
7193 | ||
7194 | ||
7195 | ||
7196 | ||
7197 | ||
7198 | ||
7199 | ||
7200 | ||
7201 | ||
7202 | ||
7203 | ||
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
81ecdfbb RW |
7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7214 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 7215 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
81ecdfbb | 7216 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7217 | else |
7218 | lt_cv_apple_cc_single_mod=no | |
7219 | if test -z "${LT_MULTI_MODULE}"; then | |
7220 | # By default we will add the -single_module flag. You can override | |
7221 | # by either setting the environment variable LT_MULTI_MODULE | |
7222 | # non-empty at configure time, or by adding -multi_module to the | |
7223 | # link flags. | |
7224 | rm -rf libconftest.dylib* | |
7225 | echo "int foo(void){return 1;}" > conftest.c | |
7226 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7227 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7228 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7229 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7230 | _lt_result=$? | |
7231 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7232 | lt_cv_apple_cc_single_mod=yes | |
7233 | else | |
7234 | cat conftest.err >&5 | |
7235 | fi | |
7236 | rm -rf libconftest.dylib* | |
7237 | rm -f conftest.* | |
7238 | fi | |
7239 | fi | |
81ecdfbb RW |
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7241 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7243 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 7244 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
81ecdfbb | 7245 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7246 | else |
7247 | lt_cv_ld_exported_symbols_list=no | |
7248 | save_LDFLAGS=$LDFLAGS | |
7249 | echo "_main" > conftest.sym | |
7250 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
718a6fd8 SE |
7252 | /* end confdefs.h. */ |
7253 | ||
7254 | int | |
7255 | main () | |
7256 | { | |
7257 | ||
7258 | ; | |
7259 | return 0; | |
7260 | } | |
7261 | _ACEOF | |
81ecdfbb | 7262 | if ac_fn_c_try_link "$LINENO"; then : |
718a6fd8 SE |
7263 | lt_cv_ld_exported_symbols_list=yes |
7264 | else | |
81ecdfbb | 7265 | lt_cv_ld_exported_symbols_list=no |
718a6fd8 | 7266 | fi |
81ecdfbb RW |
7267 | rm -f core conftest.err conftest.$ac_objext \ |
7268 | conftest$ac_exeext conftest.$ac_ext | |
718a6fd8 SE |
7269 | LDFLAGS="$save_LDFLAGS" |
7270 | ||
7271 | fi | |
81ecdfbb RW |
7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7273 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7275 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 7276 | if ${lt_cv_ld_force_load+:} false; then : |
3725885a RW |
7277 | $as_echo_n "(cached) " >&6 |
7278 | else | |
7279 | lt_cv_ld_force_load=no | |
7280 | cat > conftest.c << _LT_EOF | |
7281 | int forced_loaded() { return 2;} | |
7282 | _LT_EOF | |
7283 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7284 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7285 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7286 | $AR cru libconftest.a conftest.o 2>&5 | |
7287 | cat > conftest.c << _LT_EOF | |
7288 | int main() { return 0;} | |
7289 | _LT_EOF | |
7290 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7291 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7292 | _lt_result=$? | |
7293 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7294 | lt_cv_ld_force_load=yes | |
7295 | else | |
7296 | cat conftest.err >&5 | |
7297 | fi | |
7298 | rm -f conftest.err libconftest.a conftest conftest.c | |
7299 | rm -rf conftest.dSYM | |
7300 | ||
7301 | fi | |
7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7303 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
718a6fd8 SE |
7304 | case $host_os in |
7305 | rhapsody* | darwin1.[012]) | |
7306 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7307 | darwin1.*) | |
7308 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7309 | darwin*) # darwin 5.x on | |
7310 | # if running on 10.5 or later, the deployment target defaults | |
7311 | # to the OS version, if on x86, and 10.4, the deployment | |
7312 | # target defaults to 10.4. Don't you love it? | |
7313 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7314 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7315 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6e733cce | 7316 | 10.[012][,.]*) |
718a6fd8 SE |
7317 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7318 | 10.*) | |
7319 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7320 | esac | |
7321 | ;; | |
7322 | esac | |
7323 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7324 | _lt_dar_single_mod='$single_module' | |
7325 | fi | |
7326 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7327 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7328 | else | |
7329 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7330 | fi | |
3725885a | 7331 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
718a6fd8 SE |
7332 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7333 | else | |
7334 | _lt_dsymutil= | |
7335 | fi | |
7336 | ;; | |
7337 | esac | |
7338 | ||
718a6fd8 | 7339 | for ac_header in dlfcn.h |
81ecdfbb RW |
7340 | do : |
7341 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7342 | " | |
d0ac1c44 | 7343 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
718a6fd8 | 7344 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7345 | #define HAVE_DLFCN_H 1 |
718a6fd8 SE |
7346 | _ACEOF |
7347 | ||
7348 | fi | |
7349 | ||
7350 | done | |
7351 | ||
7352 | ||
7353 | ||
3725885a RW |
7354 | |
7355 | ||
718a6fd8 SE |
7356 | # Set options |
7357 | ||
7358 | ||
7359 | ||
7360 | enable_dlopen=no | |
7361 | ||
7362 | ||
7363 | enable_win32_dll=no | |
7364 | ||
7365 | ||
81ecdfbb RW |
7366 | # Check whether --enable-shared was given. |
7367 | if test "${enable_shared+set}" = set; then : | |
7368 | enableval=$enable_shared; p=${PACKAGE-default} | |
718a6fd8 SE |
7369 | case $enableval in |
7370 | yes) enable_shared=yes ;; | |
7371 | no) enable_shared=no ;; | |
7372 | *) | |
7373 | enable_shared=no | |
7374 | # Look at the argument we got. We use all the common list separators. | |
7375 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7376 | for pkg in $enableval; do | |
7377 | IFS="$lt_save_ifs" | |
7378 | if test "X$pkg" = "X$p"; then | |
7379 | enable_shared=yes | |
7380 | fi | |
7381 | done | |
7382 | IFS="$lt_save_ifs" | |
7383 | ;; | |
7384 | esac | |
7385 | else | |
7386 | enable_shared=yes | |
81ecdfbb | 7387 | fi |
718a6fd8 SE |
7388 | |
7389 | ||
7390 | ||
7391 | ||
7392 | ||
7393 | ||
7394 | ||
7395 | ||
81ecdfbb RW |
7396 | |
7397 | # Check whether --enable-static was given. | |
7398 | if test "${enable_static+set}" = set; then : | |
7399 | enableval=$enable_static; p=${PACKAGE-default} | |
718a6fd8 SE |
7400 | case $enableval in |
7401 | yes) enable_static=yes ;; | |
7402 | no) enable_static=no ;; | |
7403 | *) | |
7404 | enable_static=no | |
7405 | # Look at the argument we got. We use all the common list separators. | |
7406 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7407 | for pkg in $enableval; do | |
7408 | IFS="$lt_save_ifs" | |
7409 | if test "X$pkg" = "X$p"; then | |
7410 | enable_static=yes | |
7411 | fi | |
7412 | done | |
7413 | IFS="$lt_save_ifs" | |
7414 | ;; | |
7415 | esac | |
7416 | else | |
7417 | enable_static=yes | |
81ecdfbb | 7418 | fi |
718a6fd8 SE |
7419 | |
7420 | ||
7421 | ||
7422 | ||
7423 | ||
7424 | ||
7425 | ||
7426 | ||
7427 | ||
81ecdfbb RW |
7428 | |
7429 | # Check whether --with-pic was given. | |
7430 | if test "${with_pic+set}" = set; then : | |
7431 | withval=$with_pic; pic_mode="$withval" | |
718a6fd8 SE |
7432 | else |
7433 | pic_mode=default | |
81ecdfbb RW |
7434 | fi |
7435 | ||
718a6fd8 SE |
7436 | |
7437 | test -z "$pic_mode" && pic_mode=default | |
7438 | ||
7439 | ||
7440 | ||
7441 | ||
7442 | ||
7443 | ||
7444 | ||
81ecdfbb RW |
7445 | # Check whether --enable-fast-install was given. |
7446 | if test "${enable_fast_install+set}" = set; then : | |
7447 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
718a6fd8 SE |
7448 | case $enableval in |
7449 | yes) enable_fast_install=yes ;; | |
7450 | no) enable_fast_install=no ;; | |
7451 | *) | |
7452 | enable_fast_install=no | |
7453 | # Look at the argument we got. We use all the common list separators. | |
7454 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7455 | for pkg in $enableval; do | |
7456 | IFS="$lt_save_ifs" | |
7457 | if test "X$pkg" = "X$p"; then | |
7458 | enable_fast_install=yes | |
7459 | fi | |
7460 | done | |
7461 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
7462 | ;; |
7463 | esac | |
718a6fd8 SE |
7464 | else |
7465 | enable_fast_install=yes | |
81ecdfbb RW |
7466 | fi |
7467 | ||
20e95c23 | 7468 | |
20e95c23 DJ |
7469 | |
7470 | ||
42ecbf5e | 7471 | |
d7040cdb | 7472 | |
20e95c23 | 7473 | |
d7040cdb | 7474 | |
d7040cdb SE |
7475 | |
7476 | ||
7477 | ||
7478 | # This can be used to rebuild libtool when needed | |
7479 | LIBTOOL_DEPS="$ltmain" | |
7480 | ||
7481 | # Always use our own libtool. | |
7482 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7483 | ||
7484 | ||
7485 | ||
7486 | ||
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | ||
7492 | ||
7493 | ||
7494 | ||
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | ||
7501 | ||
7502 | ||
7503 | ||
7504 | ||
7505 | ||
3725885a | 7506 | |
d7040cdb SE |
7507 | |
7508 | ||
7509 | test -z "$LN_S" && LN_S="ln -s" | |
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | ||
7517 | ||
7518 | ||
7519 | ||
7520 | ||
7521 | ||
7522 | ||
7523 | ||
7524 | if test -n "${ZSH_VERSION+set}" ; then | |
7525 | setopt NO_GLOB_SUBST | |
7526 | fi | |
7527 | ||
81ecdfbb RW |
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7529 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 7530 | if ${lt_cv_objdir+:} false; then : |
81ecdfbb | 7531 | $as_echo_n "(cached) " >&6 |
20e95c23 | 7532 | else |
d7040cdb SE |
7533 | rm -f .libs 2>/dev/null |
7534 | mkdir .libs 2>/dev/null | |
7535 | if test -d .libs; then | |
7536 | lt_cv_objdir=.libs | |
42ecbf5e | 7537 | else |
d7040cdb SE |
7538 | # MS-DOS does not allow filenames that begin with a dot. |
7539 | lt_cv_objdir=_libs | |
7540 | fi | |
7541 | rmdir .libs 2>/dev/null | |
42ecbf5e | 7542 | fi |
81ecdfbb RW |
7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7544 | $as_echo "$lt_cv_objdir" >&6; } | |
d7040cdb | 7545 | objdir=$lt_cv_objdir |
42ecbf5e | 7546 | |
d7040cdb SE |
7547 | |
7548 | ||
7549 | ||
7550 | ||
7551 | cat >>confdefs.h <<_ACEOF | |
7552 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7553 | _ACEOF | |
7554 | ||
7555 | ||
7556 | ||
7557 | ||
d7040cdb SE |
7558 | case $host_os in |
7559 | aix3*) | |
7560 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7561 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7562 | # vanish in a puff of smoke. | |
7563 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7564 | COLLECT_NAMES= | |
7565 | export COLLECT_NAMES | |
7566 | fi | |
7567 | ;; | |
7568 | esac | |
7569 | ||
d7040cdb SE |
7570 | # Global variables: |
7571 | ofile=libtool | |
7572 | can_build_shared=yes | |
7573 | ||
7574 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7575 | # which needs '.lib'). | |
7576 | libext=a | |
7577 | ||
7578 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7579 | ||
7580 | old_CC="$CC" | |
7581 | old_CFLAGS="$CFLAGS" | |
7582 | ||
7583 | # Set sane defaults for various variables | |
7584 | test -z "$CC" && CC=cc | |
7585 | test -z "$LTCC" && LTCC=$CC | |
7586 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7587 | test -z "$LD" && LD=ld | |
7588 | test -z "$ac_objext" && ac_objext=o | |
7589 | ||
7590 | for cc_temp in $compiler""; do | |
7591 | case $cc_temp in | |
7592 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7593 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7594 | \-*) ;; | |
7595 | *) break;; | |
7596 | esac | |
7597 | done | |
3725885a | 7598 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
d7040cdb SE |
7599 | |
7600 | ||
7601 | # Only perform the check for file, if the check method requires it | |
7602 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7603 | case $deplibs_check_method in | |
7604 | file_magic*) | |
7605 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7607 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 7608 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7609 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 7610 | else |
d7040cdb SE |
7611 | case $MAGIC_CMD in |
7612 | [\\/*] | ?:[\\/]*) | |
7613 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
20e95c23 | 7614 | ;; |
d7040cdb SE |
7615 | *) |
7616 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7617 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7618 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7619 | for ac_dir in $ac_dummy; do | |
7620 | IFS="$lt_save_ifs" | |
7621 | test -z "$ac_dir" && ac_dir=. | |
7622 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7623 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7624 | if test -n "$file_magic_test_file"; then | |
7625 | case $deplibs_check_method in | |
7626 | "file_magic "*) | |
7627 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7628 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7629 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7630 | $EGREP "$file_magic_regex" > /dev/null; then | |
7631 | : | |
7632 | else | |
7633 | cat <<_LT_EOF 1>&2 | |
42ecbf5e | 7634 | |
d7040cdb SE |
7635 | *** Warning: the command libtool uses to detect shared libraries, |
7636 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7637 | *** The result is that libtool may fail to recognize shared libraries | |
7638 | *** as such. This will affect the creation of libtool libraries that | |
7639 | *** depend on shared libraries, but programs linked with such libtool | |
7640 | *** libraries will work regardless of this problem. Nevertheless, you | |
7641 | *** may want to report the problem to your system manager and/or to | |
7642 | *** bug-libtool@gnu.org | |
7643 | ||
7644 | _LT_EOF | |
7645 | fi ;; | |
7646 | esac | |
7647 | fi | |
7648 | break | |
7649 | fi | |
7650 | done | |
7651 | IFS="$lt_save_ifs" | |
7652 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
20e95c23 DJ |
7653 | ;; |
7654 | esac | |
42ecbf5e | 7655 | fi |
20e95c23 | 7656 | |
d7040cdb SE |
7657 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7658 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7660 | $as_echo "$MAGIC_CMD" >&6; } | |
42ecbf5e | 7661 | else |
81ecdfbb RW |
7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7663 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
7664 | fi |
7665 | ||
20e95c23 DJ |
7666 | |
7667 | ||
42ecbf5e | 7668 | |
20e95c23 | 7669 | |
d7040cdb SE |
7670 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7671 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
7672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7673 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 7674 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7675 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 7676 | else |
d7040cdb SE |
7677 | case $MAGIC_CMD in |
7678 | [\\/*] | ?:[\\/]*) | |
7679 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7680 | ;; | |
7681 | *) | |
7682 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7683 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7684 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7685 | for ac_dir in $ac_dummy; do | |
7686 | IFS="$lt_save_ifs" | |
7687 | test -z "$ac_dir" && ac_dir=. | |
7688 | if test -f $ac_dir/file; then | |
7689 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7690 | if test -n "$file_magic_test_file"; then | |
7691 | case $deplibs_check_method in | |
7692 | "file_magic "*) | |
7693 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7694 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7695 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7696 | $EGREP "$file_magic_regex" > /dev/null; then | |
7697 | : | |
7698 | else | |
7699 | cat <<_LT_EOF 1>&2 | |
7700 | ||
7701 | *** Warning: the command libtool uses to detect shared libraries, | |
7702 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7703 | *** The result is that libtool may fail to recognize shared libraries | |
7704 | *** as such. This will affect the creation of libtool libraries that | |
7705 | *** depend on shared libraries, but programs linked with such libtool | |
7706 | *** libraries will work regardless of this problem. Nevertheless, you | |
7707 | *** may want to report the problem to your system manager and/or to | |
7708 | *** bug-libtool@gnu.org | |
7709 | ||
7710 | _LT_EOF | |
7711 | fi ;; | |
7712 | esac | |
7713 | fi | |
7714 | break | |
7715 | fi | |
7716 | done | |
7717 | IFS="$lt_save_ifs" | |
7718 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7719 | ;; | |
20e95c23 DJ |
7720 | esac |
7721 | fi | |
d7040cdb SE |
7722 | |
7723 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7724 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7726 | $as_echo "$MAGIC_CMD" >&6; } | |
20e95c23 | 7727 | else |
81ecdfbb RW |
7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7729 | $as_echo "no" >&6; } | |
20e95c23 DJ |
7730 | fi |
7731 | ||
20e95c23 | 7732 | |
42ecbf5e | 7733 | else |
d7040cdb | 7734 | MAGIC_CMD=: |
42ecbf5e | 7735 | fi |
42ecbf5e | 7736 | fi |
42ecbf5e | 7737 | |
20e95c23 | 7738 | fi |
d7040cdb SE |
7739 | ;; |
7740 | esac | |
42ecbf5e | 7741 | |
d7040cdb | 7742 | # Use C for the default configuration in the libtool script |
42ecbf5e | 7743 | |
d7040cdb SE |
7744 | lt_save_CC="$CC" |
7745 | ac_ext=c | |
7746 | ac_cpp='$CPP $CPPFLAGS' | |
7747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e | 7750 | |
42ecbf5e | 7751 | |
d7040cdb SE |
7752 | # Source file extension for C test sources. |
7753 | ac_ext=c | |
42ecbf5e | 7754 | |
d7040cdb SE |
7755 | # Object file extension for compiled C test sources. |
7756 | objext=o | |
7757 | objext=$objext | |
42ecbf5e | 7758 | |
d7040cdb SE |
7759 | # Code to be used in simple compile tests |
7760 | lt_simple_compile_test_code="int some_variable = 0;" | |
42ecbf5e | 7761 | |
d7040cdb SE |
7762 | # Code to be used in simple link tests |
7763 | lt_simple_link_test_code='int main(){return(0);}' | |
42ecbf5e | 7764 | |
ac48eca1 | 7765 | |
42ecbf5e | 7766 | |
42ecbf5e | 7767 | |
d5fbea21 | 7768 | |
d5fbea21 DJ |
7769 | |
7770 | ||
d7040cdb SE |
7771 | # If no C compiler was specified, use CC. |
7772 | LTCC=${LTCC-"$CC"} | |
20e95c23 | 7773 | |
d7040cdb SE |
7774 | # If no C compiler flags were specified, use CFLAGS. |
7775 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
42ecbf5e | 7776 | |
d7040cdb SE |
7777 | # Allow CC to be a program name with arguments. |
7778 | compiler=$CC | |
252b5132 | 7779 | |
d7040cdb SE |
7780 | # Save the default compiler, since it gets overwritten when the other |
7781 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7782 | compiler_DEFAULT=$CC | |
42ecbf5e | 7783 | |
d7040cdb SE |
7784 | # save warnings/boilerplate of simple test code |
7785 | ac_outfile=conftest.$ac_objext | |
7786 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7787 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7788 | _lt_compiler_boilerplate=`cat conftest.err` | |
7789 | $RM conftest* | |
252b5132 | 7790 | |
d7040cdb SE |
7791 | ac_outfile=conftest.$ac_objext |
7792 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7793 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7794 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 7795 | $RM -r conftest* |
252b5132 | 7796 | |
42ecbf5e | 7797 | |
f2c621e4 AS |
7798 | ## CAVEAT EMPTOR: |
7799 | ## There is no encapsulation within the following macros, do not change | |
7800 | ## the running order or otherwise move them around unless you know exactly | |
7801 | ## what you are doing... | |
d7040cdb | 7802 | if test -n "$compiler"; then |
252b5132 | 7803 | |
d7040cdb | 7804 | lt_prog_compiler_no_builtin_flag= |
252b5132 | 7805 | |
d7040cdb | 7806 | if test "$GCC" = yes; then |
3725885a RW |
7807 | case $cc_basename in |
7808 | nvcc*) | |
7809 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7810 | *) | |
7811 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7812 | esac | |
d15b04bd | 7813 | |
81ecdfbb RW |
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7815 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 7816 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
81ecdfbb | 7817 | $as_echo_n "(cached) " >&6 |
252b5132 | 7818 | else |
d7040cdb SE |
7819 | lt_cv_prog_compiler_rtti_exceptions=no |
7820 | ac_outfile=conftest.$ac_objext | |
7821 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7822 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7823 | # Insert the option either (1) after the last *FLAGS variable, or | |
7824 | # (2) before a word containing "conftest.", or (3) at the end. | |
7825 | # Note that $ac_compile itself does not contain backslashes and begins | |
7826 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7827 | # The option is referenced via a variable to avoid confusing sed. | |
7828 | lt_compile=`echo "$ac_compile" | $SED \ | |
7829 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7830 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7831 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 7832 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d7040cdb SE |
7833 | (eval "$lt_compile" 2>conftest.err) |
7834 | ac_status=$? | |
7835 | cat conftest.err >&5 | |
3725885a | 7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
7837 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7838 | # The compiler can only warn and ignore the option if not recognized | |
7839 | # So say no if there are warnings other than the usual output. | |
3725885a | 7840 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
d7040cdb SE |
7841 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7842 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7843 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7844 | fi | |
7845 | fi | |
7846 | $RM conftest* | |
42ecbf5e | 7847 | |
252b5132 | 7848 | fi |
81ecdfbb RW |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7850 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb SE |
7851 | |
7852 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7853 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
20e95c23 | 7854 | else |
d7040cdb | 7855 | : |
252b5132 | 7856 | fi |
252b5132 RH |
7857 | |
7858 | fi | |
d7040cdb SE |
7859 | |
7860 | ||
7861 | ||
7862 | ||
7863 | ||
7864 | ||
7865 | lt_prog_compiler_wl= | |
7866 | lt_prog_compiler_pic= | |
7867 | lt_prog_compiler_static= | |
7868 | ||
f2c621e4 AS |
7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
7870 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb SE |
7871 | |
7872 | if test "$GCC" = yes; then | |
7873 | lt_prog_compiler_wl='-Wl,' | |
7874 | lt_prog_compiler_static='-static' | |
7875 | ||
7876 | case $host_os in | |
7877 | aix*) | |
7878 | # All AIX code is PIC. | |
7879 | if test "$host_cpu" = ia64; then | |
7880 | # AIX 5 now supports IA64 processor | |
7881 | lt_prog_compiler_static='-Bstatic' | |
7882 | fi | |
6c9c0a50 | 7883 | lt_prog_compiler_pic='-fPIC' |
d7040cdb SE |
7884 | ;; |
7885 | ||
7886 | amigaos*) | |
718a6fd8 SE |
7887 | case $host_cpu in |
7888 | powerpc) | |
7889 | # see comment about AmigaOS4 .so support | |
7890 | lt_prog_compiler_pic='-fPIC' | |
7891 | ;; | |
7892 | m68k) | |
7893 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7894 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7895 | # like `-m68040'. | |
7896 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7897 | ;; | |
7898 | esac | |
d7040cdb SE |
7899 | ;; |
7900 | ||
7901 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7902 | # PIC is the default for these OSes. | |
7903 | ;; | |
7904 | ||
718a6fd8 | 7905 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d7040cdb SE |
7906 | # This hack is so that the source file can tell whether it is being |
7907 | # built for inclusion in a dll (and should export symbols for example). | |
7908 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7909 | # (--disable-auto-import) libraries | |
7910 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7911 | ;; | |
7912 | ||
7913 | darwin* | rhapsody*) | |
7914 | # PIC is the default on this platform | |
7915 | # Common symbols not allowed in MH_DYLIB files | |
7916 | lt_prog_compiler_pic='-fno-common' | |
7917 | ;; | |
7918 | ||
3725885a RW |
7919 | haiku*) |
7920 | # PIC is the default for Haiku. | |
7921 | # The "-static" flag exists, but is broken. | |
7922 | lt_prog_compiler_static= | |
7923 | ;; | |
7924 | ||
d7040cdb | 7925 | hpux*) |
718a6fd8 SE |
7926 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
7927 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7928 | # sets the default TLS model and affects inlining. | |
d7040cdb | 7929 | case $host_cpu in |
718a6fd8 | 7930 | hppa*64*) |
d7040cdb SE |
7931 | # +Z the default |
7932 | ;; | |
7933 | *) | |
7934 | lt_prog_compiler_pic='-fPIC' | |
7935 | ;; | |
7936 | esac | |
7937 | ;; | |
7938 | ||
7939 | interix[3-9]*) | |
7940 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7941 | # Instead, we relocate shared libraries at runtime. | |
7942 | ;; | |
7943 | ||
7944 | msdosdjgpp*) | |
7945 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7946 | # on systems that don't support them. | |
7947 | lt_prog_compiler_can_build_shared=no | |
7948 | enable_shared=no | |
7949 | ;; | |
7950 | ||
7951 | *nto* | *qnx*) | |
7952 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7953 | # it will coredump. | |
7954 | lt_prog_compiler_pic='-fPIC -shared' | |
7955 | ;; | |
7956 | ||
7957 | sysv4*MP*) | |
7958 | if test -d /usr/nec; then | |
7959 | lt_prog_compiler_pic=-Kconform_pic | |
7960 | fi | |
7961 | ;; | |
7962 | ||
7963 | *) | |
7964 | lt_prog_compiler_pic='-fPIC' | |
7965 | ;; | |
7966 | esac | |
3725885a RW |
7967 | |
7968 | case $cc_basename in | |
7969 | nvcc*) # Cuda Compiler Driver 2.2 | |
7970 | lt_prog_compiler_wl='-Xlinker ' | |
7971 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
7972 | ;; | |
7973 | esac | |
d7040cdb SE |
7974 | else |
7975 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7976 | case $host_os in | |
7977 | aix*) | |
7978 | lt_prog_compiler_wl='-Wl,' | |
7979 | if test "$host_cpu" = ia64; then | |
7980 | # AIX 5 now supports IA64 processor | |
7981 | lt_prog_compiler_static='-Bstatic' | |
7982 | else | |
7983 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7984 | fi | |
7985 | ;; | |
d7040cdb | 7986 | |
718a6fd8 | 7987 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d7040cdb SE |
7988 | # This hack is so that the source file can tell whether it is being |
7989 | # built for inclusion in a dll (and should export symbols for example). | |
7990 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7991 | ;; | |
7992 | ||
7993 | hpux9* | hpux10* | hpux11*) | |
7994 | lt_prog_compiler_wl='-Wl,' | |
7995 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7996 | # not for PA HP-UX. | |
7997 | case $host_cpu in | |
7998 | hppa*64*|ia64*) | |
7999 | # +Z the default | |
8000 | ;; | |
8001 | *) | |
8002 | lt_prog_compiler_pic='+Z' | |
8003 | ;; | |
8004 | esac | |
8005 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8006 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8007 | ;; | |
8008 | ||
8009 | irix5* | irix6* | nonstopux*) | |
8010 | lt_prog_compiler_wl='-Wl,' | |
8011 | # PIC (with -KPIC) is the default. | |
8012 | lt_prog_compiler_static='-non_shared' | |
8013 | ;; | |
8014 | ||
58e24671 | 8015 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb | 8016 | case $cc_basename in |
718a6fd8 SE |
8017 | # old Intel for x86_64 which still supported -KPIC. |
8018 | ecc*) | |
d7040cdb SE |
8019 | lt_prog_compiler_wl='-Wl,' |
8020 | lt_prog_compiler_pic='-KPIC' | |
8021 | lt_prog_compiler_static='-static' | |
8022 | ;; | |
718a6fd8 SE |
8023 | # icc used to be incompatible with GCC. |
8024 | # ICC 10 doesn't accept -KPIC any more. | |
8025 | icc* | ifort*) | |
8026 | lt_prog_compiler_wl='-Wl,' | |
8027 | lt_prog_compiler_pic='-fPIC' | |
8028 | lt_prog_compiler_static='-static' | |
8029 | ;; | |
8030 | # Lahey Fortran 8.1. | |
8031 | lf95*) | |
8032 | lt_prog_compiler_wl='-Wl,' | |
8033 | lt_prog_compiler_pic='--shared' | |
8034 | lt_prog_compiler_static='--static' | |
8035 | ;; | |
3725885a | 8036 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
d7040cdb SE |
8037 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8038 | # which looks to be a dead project) | |
8039 | lt_prog_compiler_wl='-Wl,' | |
8040 | lt_prog_compiler_pic='-fpic' | |
8041 | lt_prog_compiler_static='-Bstatic' | |
8042 | ;; | |
8043 | ccc*) | |
8044 | lt_prog_compiler_wl='-Wl,' | |
8045 | # All Alpha code is PIC. | |
8046 | lt_prog_compiler_static='-non_shared' | |
8047 | ;; | |
3725885a RW |
8048 | xl* | bgxl* | bgf* | mpixl*) |
8049 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
718a6fd8 SE |
8050 | lt_prog_compiler_wl='-Wl,' |
8051 | lt_prog_compiler_pic='-qpic' | |
8052 | lt_prog_compiler_static='-qstaticlink' | |
8053 | ;; | |
d7040cdb SE |
8054 | *) |
8055 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8056 | *Sun\ F* | *Sun*Fortran*) |
8057 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
d7040cdb SE |
8058 | lt_prog_compiler_pic='-KPIC' |
8059 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8060 | lt_prog_compiler_wl='' |
d7040cdb | 8061 | ;; |
3725885a RW |
8062 | *Sun\ C*) |
8063 | # Sun C 5.9 | |
d7040cdb SE |
8064 | lt_prog_compiler_pic='-KPIC' |
8065 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8066 | lt_prog_compiler_wl='-Wl,' |
d7040cdb SE |
8067 | ;; |
8068 | esac | |
8069 | ;; | |
8070 | esac | |
8071 | ;; | |
8072 | ||
8073 | newsos6) | |
8074 | lt_prog_compiler_pic='-KPIC' | |
8075 | lt_prog_compiler_static='-Bstatic' | |
8076 | ;; | |
8077 | ||
8078 | *nto* | *qnx*) | |
8079 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8080 | # it will coredump. | |
8081 | lt_prog_compiler_pic='-fPIC -shared' | |
8082 | ;; | |
8083 | ||
8084 | osf3* | osf4* | osf5*) | |
8085 | lt_prog_compiler_wl='-Wl,' | |
8086 | # All OSF/1 code is PIC. | |
8087 | lt_prog_compiler_static='-non_shared' | |
8088 | ;; | |
8089 | ||
8090 | rdos*) | |
8091 | lt_prog_compiler_static='-non_shared' | |
8092 | ;; | |
8093 | ||
8094 | solaris*) | |
8095 | lt_prog_compiler_pic='-KPIC' | |
8096 | lt_prog_compiler_static='-Bstatic' | |
8097 | case $cc_basename in | |
f2c621e4 | 8098 | f77* | f90* | f95*) |
d7040cdb SE |
8099 | lt_prog_compiler_wl='-Qoption ld ';; |
8100 | *) | |
8101 | lt_prog_compiler_wl='-Wl,';; | |
8102 | esac | |
8103 | ;; | |
8104 | ||
8105 | sunos4*) | |
8106 | lt_prog_compiler_wl='-Qoption ld ' | |
8107 | lt_prog_compiler_pic='-PIC' | |
8108 | lt_prog_compiler_static='-Bstatic' | |
8109 | ;; | |
8110 | ||
8111 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8112 | lt_prog_compiler_wl='-Wl,' | |
8113 | lt_prog_compiler_pic='-KPIC' | |
8114 | lt_prog_compiler_static='-Bstatic' | |
8115 | ;; | |
8116 | ||
8117 | sysv4*MP*) | |
8118 | if test -d /usr/nec ;then | |
8119 | lt_prog_compiler_pic='-Kconform_pic' | |
8120 | lt_prog_compiler_static='-Bstatic' | |
8121 | fi | |
8122 | ;; | |
8123 | ||
8124 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8125 | lt_prog_compiler_wl='-Wl,' | |
8126 | lt_prog_compiler_pic='-KPIC' | |
8127 | lt_prog_compiler_static='-Bstatic' | |
8128 | ;; | |
8129 | ||
8130 | unicos*) | |
8131 | lt_prog_compiler_wl='-Wl,' | |
8132 | lt_prog_compiler_can_build_shared=no | |
8133 | ;; | |
8134 | ||
8135 | uts4*) | |
8136 | lt_prog_compiler_pic='-pic' | |
8137 | lt_prog_compiler_static='-Bstatic' | |
8138 | ;; | |
8139 | ||
8140 | *) | |
8141 | lt_prog_compiler_can_build_shared=no | |
8142 | ;; | |
8143 | esac | |
8144 | fi | |
8145 | ||
8146 | case $host_os in | |
8147 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8148 | *djgpp*) | |
8149 | lt_prog_compiler_pic= | |
8150 | ;; | |
8151 | *) | |
8152 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8153 | ;; | |
8154 | esac | |
f2c621e4 AS |
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8156 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8157 | ||
8158 | ||
8159 | ||
8160 | ||
d7040cdb SE |
8161 | |
8162 | ||
8163 | # | |
8164 | # Check to make sure the PIC flag actually works. | |
8165 | # | |
8166 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8168 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 8169 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
81ecdfbb | 8170 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 8171 | else |
718a6fd8 | 8172 | lt_cv_prog_compiler_pic_works=no |
d7040cdb SE |
8173 | ac_outfile=conftest.$ac_objext |
8174 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8175 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8176 | # Insert the option either (1) after the last *FLAGS variable, or | |
8177 | # (2) before a word containing "conftest.", or (3) at the end. | |
8178 | # Note that $ac_compile itself does not contain backslashes and begins | |
8179 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8180 | # The option is referenced via a variable to avoid confusing sed. | |
8181 | lt_compile=`echo "$ac_compile" | $SED \ | |
8182 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8183 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8184 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8185 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d7040cdb SE |
8186 | (eval "$lt_compile" 2>conftest.err) |
8187 | ac_status=$? | |
8188 | cat conftest.err >&5 | |
3725885a | 8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
8190 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8191 | # The compiler can only warn and ignore the option if not recognized | |
8192 | # So say no if there are warnings other than the usual output. | |
3725885a | 8193 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
d7040cdb SE |
8194 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8195 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8196 | lt_cv_prog_compiler_pic_works=yes |
d7040cdb SE |
8197 | fi |
8198 | fi | |
8199 | $RM conftest* | |
42ecbf5e | 8200 | |
252b5132 | 8201 | fi |
81ecdfbb RW |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8203 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8204 | |
718a6fd8 | 8205 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
d7040cdb SE |
8206 | case $lt_prog_compiler_pic in |
8207 | "" | " "*) ;; | |
8208 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8209 | esac | |
252b5132 | 8210 | else |
d7040cdb SE |
8211 | lt_prog_compiler_pic= |
8212 | lt_prog_compiler_can_build_shared=no | |
252b5132 | 8213 | fi |
252b5132 RH |
8214 | |
8215 | fi | |
42ecbf5e | 8216 | |
d7040cdb SE |
8217 | |
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | # | |
8223 | # Check to make sure the static flag actually works. | |
8224 | # | |
8225 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8227 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 8228 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
81ecdfbb | 8229 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 8230 | else |
718a6fd8 | 8231 | lt_cv_prog_compiler_static_works=no |
d7040cdb SE |
8232 | save_LDFLAGS="$LDFLAGS" |
8233 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8234 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8235 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8236 | # The linker can only warn and ignore the option if not recognized | |
8237 | # So say no if there are warnings | |
8238 | if test -s conftest.err; then | |
8239 | # Append any errors to the config.log. | |
8240 | cat conftest.err 1>&5 | |
3725885a | 8241 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
d7040cdb SE |
8242 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8243 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8244 | lt_cv_prog_compiler_static_works=yes |
d7040cdb SE |
8245 | fi |
8246 | else | |
718a6fd8 | 8247 | lt_cv_prog_compiler_static_works=yes |
d7040cdb SE |
8248 | fi |
8249 | fi | |
718a6fd8 | 8250 | $RM -r conftest* |
d7040cdb | 8251 | LDFLAGS="$save_LDFLAGS" |
42ecbf5e | 8252 | |
42ecbf5e | 8253 | fi |
81ecdfbb RW |
8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8255 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8256 | |
718a6fd8 | 8257 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
d7040cdb SE |
8258 | : |
8259 | else | |
8260 | lt_prog_compiler_static= | |
42ecbf5e | 8261 | fi |
42ecbf5e | 8262 | |
252b5132 | 8263 | |
252b5132 | 8264 | |
42ecbf5e | 8265 | |
252b5132 | 8266 | |
20e95c23 | 8267 | |
d7040cdb | 8268 | |
81ecdfbb RW |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8270 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8271 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8272 | $as_echo_n "(cached) " >&6 |
252b5132 | 8273 | else |
d7040cdb SE |
8274 | lt_cv_prog_compiler_c_o=no |
8275 | $RM -r conftest 2>/dev/null | |
8276 | mkdir conftest | |
8277 | cd conftest | |
8278 | mkdir out | |
8279 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8280 | ||
8281 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8282 | # Insert the option either (1) after the last *FLAGS variable, or | |
8283 | # (2) before a word containing "conftest.", or (3) at the end. | |
8284 | # Note that $ac_compile itself does not contain backslashes and begins | |
8285 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8286 | lt_compile=`echo "$ac_compile" | $SED \ | |
8287 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8288 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8289 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8290 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d7040cdb SE |
8291 | (eval "$lt_compile" 2>out/conftest.err) |
8292 | ac_status=$? | |
8293 | cat out/conftest.err >&5 | |
3725885a | 8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
8295 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8296 | then | |
8297 | # The compiler can only warn and ignore the option if not recognized | |
8298 | # So say no if there are warnings | |
3725885a | 8299 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
d7040cdb SE |
8300 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8301 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8302 | lt_cv_prog_compiler_c_o=yes | |
8303 | fi | |
8304 | fi | |
8305 | chmod u+w . 2>&5 | |
8306 | $RM conftest* | |
8307 | # SGI C++ compiler will create directory out/ii_files/ for | |
8308 | # template instantiation | |
8309 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8310 | $RM out/* && rmdir out | |
8311 | cd .. | |
8312 | $RM -r conftest | |
8313 | $RM conftest* | |
8314 | ||
252b5132 | 8315 | fi |
81ecdfbb RW |
8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8317 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
42ecbf5e | 8318 | |
20e95c23 | 8319 | |
20e95c23 DJ |
8320 | |
8321 | ||
d7040cdb SE |
8322 | |
8323 | ||
81ecdfbb RW |
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8325 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8326 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8327 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 8328 | else |
d7040cdb SE |
8329 | lt_cv_prog_compiler_c_o=no |
8330 | $RM -r conftest 2>/dev/null | |
8331 | mkdir conftest | |
8332 | cd conftest | |
8333 | mkdir out | |
8334 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8335 | ||
8336 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8337 | # Insert the option either (1) after the last *FLAGS variable, or | |
8338 | # (2) before a word containing "conftest.", or (3) at the end. | |
8339 | # Note that $ac_compile itself does not contain backslashes and begins | |
8340 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8341 | lt_compile=`echo "$ac_compile" | $SED \ | |
8342 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8343 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8344 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8345 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d7040cdb SE |
8346 | (eval "$lt_compile" 2>out/conftest.err) |
8347 | ac_status=$? | |
8348 | cat out/conftest.err >&5 | |
3725885a | 8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
8350 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8351 | then | |
8352 | # The compiler can only warn and ignore the option if not recognized | |
8353 | # So say no if there are warnings | |
3725885a | 8354 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
d7040cdb SE |
8355 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8356 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8357 | lt_cv_prog_compiler_c_o=yes | |
8358 | fi | |
8359 | fi | |
8360 | chmod u+w . 2>&5 | |
8361 | $RM conftest* | |
8362 | # SGI C++ compiler will create directory out/ii_files/ for | |
8363 | # template instantiation | |
8364 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8365 | $RM out/* && rmdir out | |
8366 | cd .. | |
8367 | $RM -r conftest | |
8368 | $RM conftest* | |
8369 | ||
8370 | fi | |
81ecdfbb RW |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8372 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8373 | |
8374 | ||
8375 | ||
8376 | ||
8377 | hard_links="nottested" | |
8378 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8379 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8381 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
d7040cdb SE |
8382 | hard_links=yes |
8383 | $RM conftest* | |
8384 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8385 | touch conftest.a | |
8386 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8387 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8389 | $as_echo "$hard_links" >&6; } | |
d7040cdb | 8390 | if test "$hard_links" = no; then |
81ecdfbb RW |
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8392 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
d7040cdb SE |
8393 | need_locks=warn |
8394 | fi | |
8395 | else | |
8396 | need_locks=no | |
8397 | fi | |
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | ||
8403 | ||
81ecdfbb RW |
8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8405 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb SE |
8406 | |
8407 | runpath_var= | |
8408 | allow_undefined_flag= | |
8409 | always_export_symbols=no | |
8410 | archive_cmds= | |
8411 | archive_expsym_cmds= | |
8412 | compiler_needs_object=no | |
8413 | enable_shared_with_static_runtimes=no | |
8414 | export_dynamic_flag_spec= | |
8415 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8416 | hardcode_automatic=no | |
8417 | hardcode_direct=no | |
8418 | hardcode_direct_absolute=no | |
8419 | hardcode_libdir_flag_spec= | |
8420 | hardcode_libdir_flag_spec_ld= | |
8421 | hardcode_libdir_separator= | |
8422 | hardcode_minus_L=no | |
8423 | hardcode_shlibpath_var=unsupported | |
8424 | inherit_rpath=no | |
8425 | link_all_deplibs=unknown | |
8426 | module_cmds= | |
8427 | module_expsym_cmds= | |
8428 | old_archive_from_new_cmds= | |
8429 | old_archive_from_expsyms_cmds= | |
8430 | thread_safe_flag_spec= | |
8431 | whole_archive_flag_spec= | |
8432 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8433 | # included in the symbol list | |
8434 | include_expsyms= | |
8435 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8436 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8437 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8438 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8439 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
d7040cdb SE |
8440 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8441 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8442 | # the symbol is explicitly referenced. Since portable code cannot | |
8443 | # rely on this symbol name, it's probably fine to never include it in | |
8444 | # preloaded symbol tables. | |
718a6fd8 | 8445 | # Exclude shared library initialization/finalization symbols. |
d7040cdb SE |
8446 | extract_expsyms_cmds= |
8447 | ||
8448 | case $host_os in | |
718a6fd8 | 8449 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
8450 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8451 | # When not using gcc, we currently assume that we are using | |
8452 | # Microsoft Visual C++. | |
8453 | if test "$GCC" != yes; then | |
8454 | with_gnu_ld=no | |
8455 | fi | |
8456 | ;; | |
8457 | interix*) | |
8458 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8459 | with_gnu_ld=yes | |
8460 | ;; | |
8461 | openbsd*) | |
8462 | with_gnu_ld=no | |
8463 | ;; | |
8464 | esac | |
8465 | ||
8466 | ld_shlibs=yes | |
3725885a RW |
8467 | |
8468 | # On some targets, GNU ld is compatible enough with the native linker | |
8469 | # that we're better off using the native interface for both. | |
8470 | lt_use_gnu_ld_interface=no | |
d7040cdb | 8471 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
8472 | case $host_os in |
8473 | aix*) | |
8474 | # The AIX port of GNU ld has always aspired to compatibility | |
8475 | # with the native linker. However, as the warning in the GNU ld | |
8476 | # block says, versions before 2.19.5* couldn't really create working | |
8477 | # shared libraries, regardless of the interface used. | |
8478 | case `$LD -v 2>&1` in | |
8479 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8480 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8481 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8482 | *) | |
8483 | lt_use_gnu_ld_interface=yes | |
8484 | ;; | |
8485 | esac | |
8486 | ;; | |
8487 | *) | |
8488 | lt_use_gnu_ld_interface=yes | |
8489 | ;; | |
8490 | esac | |
8491 | fi | |
8492 | ||
8493 | if test "$lt_use_gnu_ld_interface" = yes; then | |
d7040cdb SE |
8494 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8495 | wlarc='${wl}' | |
8496 | ||
8497 | # Set some defaults for GNU ld with shared library support. These | |
8498 | # are reset later if shared libraries are not supported. Putting them | |
8499 | # here allows them to be overridden if necessary. | |
8500 | runpath_var=LD_RUN_PATH | |
8501 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8502 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8503 | # ancient GNU ld didn't support --whole-archive et. al. | |
8504 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8505 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8506 | else | |
8507 | whole_archive_flag_spec= | |
8508 | fi | |
8509 | supports_anon_versioning=no | |
8510 | case `$LD -v 2>&1` in | |
3725885a | 8511 | *GNU\ gold*) supports_anon_versioning=yes ;; |
d7040cdb SE |
8512 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8513 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8514 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8515 | *\ 2.11.*) ;; # other 2.11 versions | |
8516 | *) supports_anon_versioning=yes ;; | |
8517 | esac | |
8518 | ||
8519 | # See if GNU ld supports shared libraries. | |
8520 | case $host_os in | |
50e7d84b | 8521 | aix[3-9]*) |
d7040cdb SE |
8522 | # On AIX/PPC, the GNU linker is very broken |
8523 | if test "$host_cpu" != ia64; then | |
8524 | ld_shlibs=no | |
8525 | cat <<_LT_EOF 1>&2 | |
8526 | ||
3725885a | 8527 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
d7040cdb SE |
8528 | *** to be unable to reliably create shared libraries on AIX. |
8529 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
8530 | *** really care for shared libraries, you may want to install binutils |
8531 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8532 | *** You will then need to restart the configuration process. | |
d7040cdb SE |
8533 | |
8534 | _LT_EOF | |
8535 | fi | |
8536 | ;; | |
8537 | ||
8538 | amigaos*) | |
718a6fd8 SE |
8539 | case $host_cpu in |
8540 | powerpc) | |
8541 | # see comment about AmigaOS4 .so support | |
8542 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8543 | archive_expsym_cmds='' | |
8544 | ;; | |
8545 | m68k) | |
8546 | 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)' | |
8547 | hardcode_libdir_flag_spec='-L$libdir' | |
8548 | hardcode_minus_L=yes | |
8549 | ;; | |
8550 | esac | |
d7040cdb SE |
8551 | ;; |
8552 | ||
8553 | beos*) | |
8554 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8555 | allow_undefined_flag=unsupported | |
8556 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8557 | # support --undefined. This deserves some investigation. FIXME | |
8558 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8559 | else | |
8560 | ld_shlibs=no | |
8561 | fi | |
8562 | ;; | |
8563 | ||
718a6fd8 | 8564 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
8565 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8566 | # as there is no search path for DLLs. | |
8567 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 8568 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
d7040cdb SE |
8569 | allow_undefined_flag=unsupported |
8570 | always_export_symbols=no | |
8571 | enable_shared_with_static_runtimes=yes | |
f2c621e4 | 8572 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d7040cdb SE |
8573 | |
8574 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8575 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8576 | # If the export-symbols file already is a .def file (1st line | |
8577 | # is EXPORTS), use it as is; otherwise, prepend... | |
8578 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8579 | cp $export_symbols $output_objdir/$soname.def; | |
8580 | else | |
8581 | echo EXPORTS > $output_objdir/$soname.def; | |
8582 | cat $export_symbols >> $output_objdir/$soname.def; | |
8583 | fi~ | |
8584 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8585 | else | |
8586 | ld_shlibs=no | |
8587 | fi | |
8588 | ;; | |
8589 | ||
3725885a RW |
8590 | haiku*) |
8591 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8592 | link_all_deplibs=yes | |
8593 | ;; | |
8594 | ||
d7040cdb SE |
8595 | interix[3-9]*) |
8596 | hardcode_direct=no | |
8597 | hardcode_shlibpath_var=no | |
8598 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8599 | export_dynamic_flag_spec='${wl}-E' | |
8600 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8601 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8602 | # default) and relocated if they conflict, which is a slow very memory | |
8603 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8604 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8605 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8606 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8607 | 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' | |
8608 | ;; | |
8609 | ||
58e24671 | 8610 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
8611 | tmp_diet=no |
8612 | if test "$host_os" = linux-dietlibc; then | |
8613 | case $cc_basename in | |
8614 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8615 | esac | |
8616 | fi | |
8617 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8618 | && test "$tmp_diet" = no | |
8619 | then | |
6e733cce | 8620 | tmp_addflag=' $pic_flag' |
718a6fd8 | 8621 | tmp_sharedflag='-shared' |
d7040cdb SE |
8622 | case $cc_basename,$host_cpu in |
8623 | pgcc*) # Portland Group C compiler | |
3725885a | 8624 | 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' |
d7040cdb SE |
8625 | tmp_addflag=' $pic_flag' |
8626 | ;; | |
3725885a RW |
8627 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8628 | # Portland Group f77 and f90 compilers | |
8629 | 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' | |
d7040cdb SE |
8630 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8631 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8632 | tmp_addflag=' -i_dynamic' ;; | |
8633 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8634 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8635 | ifc* | ifort*) # Intel Fortran compiler | |
8636 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8637 | lf95*) # Lahey Fortran 8.1 |
8638 | whole_archive_flag_spec= | |
8639 | tmp_sharedflag='--shared' ;; | |
3725885a | 8640 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
718a6fd8 SE |
8641 | tmp_sharedflag='-qmkshrobj' |
8642 | tmp_addflag= ;; | |
3725885a RW |
8643 | nvcc*) # Cuda Compiler Driver 2.2 |
8644 | 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' | |
8645 | compiler_needs_object=yes | |
8646 | ;; | |
d7040cdb SE |
8647 | esac |
8648 | case `$CC -V 2>&1 | sed 5q` in | |
8649 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 8650 | 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' |
d7040cdb SE |
8651 | compiler_needs_object=yes |
8652 | tmp_sharedflag='-G' ;; | |
8653 | *Sun\ F*) # Sun Fortran 8.3 | |
8654 | tmp_sharedflag='-G' ;; | |
d7040cdb SE |
8655 | esac |
8656 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8657 | ||
8658 | if test "x$supports_anon_versioning" = xyes; then | |
8659 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8660 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8661 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8662 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8663 | fi | |
718a6fd8 SE |
8664 | |
8665 | case $cc_basename in | |
3725885a | 8666 | xlf* | bgf* | bgxlf* | mpixlf*) |
718a6fd8 SE |
8667 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8668 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8669 | hardcode_libdir_flag_spec= | |
8670 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
f2c621e4 | 8671 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
718a6fd8 SE |
8672 | if test "x$supports_anon_versioning" = xyes; then |
8673 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8674 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8675 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
f2c621e4 | 8676 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
718a6fd8 SE |
8677 | fi |
8678 | ;; | |
8679 | esac | |
d7040cdb SE |
8680 | else |
8681 | ld_shlibs=no | |
8682 | fi | |
8683 | ;; | |
8684 | ||
8685 | netbsd*) | |
8686 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8687 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8688 | wlarc= | |
8689 | else | |
f2c621e4 AS |
8690 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8691 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d7040cdb SE |
8692 | fi |
8693 | ;; | |
8694 | ||
8695 | solaris*) | |
8696 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8697 | ld_shlibs=no | |
8698 | cat <<_LT_EOF 1>&2 | |
8699 | ||
8700 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8701 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8702 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8703 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8704 | *** your PATH or compiler configuration so that the native linker is | |
8705 | *** used, and then restart. | |
8706 | ||
8707 | _LT_EOF | |
8708 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
f2c621e4 AS |
8709 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8710 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d7040cdb SE |
8711 | else |
8712 | ld_shlibs=no | |
8713 | fi | |
8714 | ;; | |
8715 | ||
8716 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8717 | case `$LD -v 2>&1` in | |
8718 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8719 | ld_shlibs=no | |
8720 | cat <<_LT_EOF 1>&2 | |
8721 | ||
8722 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8723 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8724 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8725 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8726 | *** your PATH or compiler configuration so that the native linker is | |
8727 | *** used, and then restart. | |
8728 | ||
8729 | _LT_EOF | |
8730 | ;; | |
8731 | *) | |
8732 | # For security reasons, it is highly recommended that you always | |
8733 | # use absolute paths for naming shared libraries, and exclude the | |
8734 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8735 | # requires that you compile everything twice, which is a pain. | |
8736 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8737 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8738 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8739 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8740 | else | |
8741 | ld_shlibs=no | |
8742 | fi | |
8743 | ;; | |
8744 | esac | |
8745 | ;; | |
8746 | ||
8747 | sunos4*) | |
8748 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8749 | wlarc= | |
8750 | hardcode_direct=yes | |
8751 | hardcode_shlibpath_var=no | |
8752 | ;; | |
8753 | ||
8754 | *) | |
8755 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
f2c621e4 AS |
8756 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8757 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d7040cdb SE |
8758 | else |
8759 | ld_shlibs=no | |
8760 | fi | |
8761 | ;; | |
8762 | esac | |
8763 | ||
8764 | if test "$ld_shlibs" = no; then | |
8765 | runpath_var= | |
8766 | hardcode_libdir_flag_spec= | |
8767 | export_dynamic_flag_spec= | |
8768 | whole_archive_flag_spec= | |
8769 | fi | |
8770 | else | |
8771 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8772 | case $host_os in | |
8773 | aix3*) | |
8774 | allow_undefined_flag=unsupported | |
8775 | always_export_symbols=yes | |
8776 | 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' | |
8777 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8778 | # are no directories specified by -L. | |
8779 | hardcode_minus_L=yes | |
8780 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8781 | # Neither direct hardcoding nor static linking is supported with a | |
8782 | # broken collect2. | |
8783 | hardcode_direct=unsupported | |
8784 | fi | |
8785 | ;; | |
8786 | ||
50e7d84b | 8787 | aix[4-9]*) |
d7040cdb SE |
8788 | if test "$host_cpu" = ia64; then |
8789 | # On IA64, the linker does run time linking by default, so we don't | |
8790 | # have to do anything special. | |
8791 | aix_use_runtimelinking=no | |
8792 | exp_sym_flag='-Bexport' | |
8793 | no_entry_flag="" | |
8794 | else | |
8795 | # If we're using GNU nm, then we don't want the "-C" option. | |
8796 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
8797 | # Also, AIX nm treats weak defined symbols like other global |
8798 | # defined symbols, whereas GNU nm marks them as "W". | |
d7040cdb | 8799 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 8800 | 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' |
d7040cdb | 8801 | else |
5c14705f | 8802 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
d7040cdb SE |
8803 | fi |
8804 | aix_use_runtimelinking=no | |
8805 | ||
8806 | # Test if we are trying to use run time linking or normal | |
8807 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8808 | # need to do runtime linking. | |
50e7d84b | 8809 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
d7040cdb SE |
8810 | for ld_flag in $LDFLAGS; do |
8811 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8812 | aix_use_runtimelinking=yes | |
8813 | break | |
8814 | fi | |
8815 | done | |
8816 | ;; | |
8817 | esac | |
8818 | ||
8819 | exp_sym_flag='-bexport' | |
8820 | no_entry_flag='-bnoentry' | |
8821 | fi | |
8822 | ||
8823 | # When large executables or shared objects are built, AIX ld can | |
8824 | # have problems creating the table of contents. If linking a library | |
8825 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8826 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8827 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8828 | ||
8829 | archive_cmds='' | |
8830 | hardcode_direct=yes | |
8831 | hardcode_direct_absolute=yes | |
8832 | hardcode_libdir_separator=':' | |
8833 | link_all_deplibs=yes | |
8834 | file_list_spec='${wl}-f,' | |
8835 | ||
8836 | if test "$GCC" = yes; then | |
8837 | case $host_os in aix4.[012]|aix4.[012].*) | |
8838 | # We only want to do this on AIX 4.2 and lower, the check | |
8839 | # below for broken collect2 doesn't work under 4.3+ | |
8840 | collect2name=`${CC} -print-prog-name=collect2` | |
8841 | if test -f "$collect2name" && | |
8842 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8843 | then | |
8844 | # We have reworked collect2 | |
8845 | : | |
8846 | else | |
8847 | # We have old collect2 | |
8848 | hardcode_direct=unsupported | |
8849 | # It fails to find uninstalled libraries when the uninstalled | |
8850 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8851 | # to unsupported forces relinking | |
8852 | hardcode_minus_L=yes | |
8853 | hardcode_libdir_flag_spec='-L$libdir' | |
8854 | hardcode_libdir_separator= | |
8855 | fi | |
8856 | ;; | |
8857 | esac | |
8858 | shared_flag='-shared' | |
8859 | if test "$aix_use_runtimelinking" = yes; then | |
8860 | shared_flag="$shared_flag "'${wl}-G' | |
8861 | fi | |
8862 | else | |
8863 | # not using gcc | |
8864 | if test "$host_cpu" = ia64; then | |
8865 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8866 | # chokes on -Wl,-G. The following line is correct: | |
8867 | shared_flag='-G' | |
8868 | else | |
8869 | if test "$aix_use_runtimelinking" = yes; then | |
8870 | shared_flag='${wl}-G' | |
8871 | else | |
8872 | shared_flag='${wl}-bM:SRE' | |
8873 | fi | |
8874 | fi | |
8875 | fi | |
8876 | ||
718a6fd8 | 8877 | export_dynamic_flag_spec='${wl}-bexpall' |
d7040cdb SE |
8878 | # It seems that -bexpall does not export symbols beginning with |
8879 | # underscore (_), so it is better to generate a list of symbols to export. | |
8880 | always_export_symbols=yes | |
8881 | if test "$aix_use_runtimelinking" = yes; then | |
8882 | # Warning - without using the other runtime loading flags (-brtl), | |
8883 | # -berok will link without error, but may produce a broken library. | |
8884 | allow_undefined_flag='-berok' | |
8885 | # Determine the default libpath from the value encoded in an | |
8886 | # empty executable. | |
f2c621e4 | 8887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 8888 | /* end confdefs.h. */ |
d7040cdb SE |
8889 | |
8890 | int | |
8891 | main () | |
8892 | { | |
8893 | ||
8894 | ; | |
8895 | return 0; | |
8896 | } | |
42ecbf5e | 8897 | _ACEOF |
81ecdfbb | 8898 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 8899 | |
f2c621e4 AS |
8900 | lt_aix_libpath_sed=' |
8901 | /Import File Strings/,/^$/ { | |
8902 | /^0/ { | |
8903 | s/^0 *\(.*\)$/\1/ | |
8904 | p | |
8905 | } | |
8906 | }' | |
8907 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8908 | # Check for a 64-bit object if we didn't find anything. | |
8909 | if test -z "$aix_libpath"; then | |
8910 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8911 | fi | |
252b5132 | 8912 | fi |
81ecdfbb RW |
8913 | rm -f core conftest.err conftest.$ac_objext \ |
8914 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 8915 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
252b5132 | 8916 | |
d7040cdb | 8917 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 8918 | 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" |
d7040cdb SE |
8919 | else |
8920 | if test "$host_cpu" = ia64; then | |
8921 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8922 | allow_undefined_flag="-z nodefs" | |
8923 | 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" | |
8924 | else | |
8925 | # Determine the default libpath from the value encoded in an | |
8926 | # empty executable. | |
f2c621e4 | 8927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 8928 | /* end confdefs.h. */ |
d7040cdb SE |
8929 | |
8930 | int | |
8931 | main () | |
8932 | { | |
8933 | ||
8934 | ; | |
8935 | return 0; | |
8936 | } | |
42ecbf5e | 8937 | _ACEOF |
81ecdfbb | 8938 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 8939 | |
f2c621e4 AS |
8940 | lt_aix_libpath_sed=' |
8941 | /Import File Strings/,/^$/ { | |
8942 | /^0/ { | |
8943 | s/^0 *\(.*\)$/\1/ | |
8944 | p | |
8945 | } | |
8946 | }' | |
8947 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8948 | # Check for a 64-bit object if we didn't find anything. | |
8949 | if test -z "$aix_libpath"; then | |
8950 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8951 | fi | |
252b5132 | 8952 | fi |
81ecdfbb RW |
8953 | rm -f core conftest.err conftest.$ac_objext \ |
8954 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 8955 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb SE |
8956 | |
8957 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8958 | # Warning - without using the other run time loading flags, | |
8959 | # -berok will link without error, but may produce a broken library. | |
8960 | no_undefined_flag=' ${wl}-bernotok' | |
8961 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
8962 | if test "$with_gnu_ld" = yes; then |
8963 | # We only use this code for GNU lds that support --whole-archive. | |
8964 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
8965 | else | |
8966 | # Exported symbols can be pulled into shared objects from archives | |
8967 | whole_archive_flag_spec='$convenience' | |
8968 | fi | |
d7040cdb SE |
8969 | archive_cmds_need_lc=yes |
8970 | # This is similar to how AIX traditionally builds its shared libraries. | |
8971 | 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' | |
8972 | fi | |
8973 | fi | |
8974 | ;; | |
42ecbf5e | 8975 | |
d7040cdb | 8976 | amigaos*) |
718a6fd8 SE |
8977 | case $host_cpu in |
8978 | powerpc) | |
8979 | # see comment about AmigaOS4 .so support | |
8980 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8981 | archive_expsym_cmds='' | |
8982 | ;; | |
8983 | m68k) | |
8984 | 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)' | |
8985 | hardcode_libdir_flag_spec='-L$libdir' | |
8986 | hardcode_minus_L=yes | |
8987 | ;; | |
8988 | esac | |
d7040cdb | 8989 | ;; |
252b5132 | 8990 | |
d7040cdb SE |
8991 | bsdi[45]*) |
8992 | export_dynamic_flag_spec=-rdynamic | |
8993 | ;; | |
252b5132 | 8994 | |
718a6fd8 | 8995 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
8996 | # When not using gcc, we currently assume that we are using |
8997 | # Microsoft Visual C++. | |
8998 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8999 | # no search path for DLLs. | |
f2c621e4 AS |
9000 | hardcode_libdir_flag_spec=' ' |
9001 | allow_undefined_flag=unsupported | |
9002 | # Tell ltmain to make .lib files, not .a files. | |
9003 | libext=lib | |
9004 | # Tell ltmain to make .dll files, not .so files. | |
9005 | shrext_cmds=".dll" | |
9006 | # FIXME: Setting linknames here is a bad hack. | |
9007 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9008 | # The linker will automatically build a .lib file if we build a DLL. | |
9009 | old_archive_from_new_cmds='true' | |
9010 | # FIXME: Should let the user specify the lib program. | |
9011 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9012 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9013 | enable_shared_with_static_runtimes=yes | |
d7040cdb | 9014 | ;; |
252b5132 | 9015 | |
d7040cdb | 9016 | darwin* | rhapsody*) |
c46f8c51 | 9017 | |
718a6fd8 SE |
9018 | |
9019 | archive_cmds_need_lc=no | |
9020 | hardcode_direct=no | |
9021 | hardcode_automatic=yes | |
9022 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9023 | if test "$lt_cv_ld_force_load" = "yes"; then |
9024 | 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\"`' | |
9025 | else | |
9026 | whole_archive_flag_spec='' | |
9027 | fi | |
718a6fd8 SE |
9028 | link_all_deplibs=yes |
9029 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9030 | case $cc_basename in | |
9031 | ifort*) _lt_dar_can_shared=yes ;; | |
9032 | *) _lt_dar_can_shared=$GCC ;; | |
9033 | esac | |
9034 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9035 | output_verbose_link_cmd=func_echo_all |
718a6fd8 SE |
9036 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9037 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9038 | 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}" | |
9039 | 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}" | |
9040 | ||
9041 | else | |
9042 | ld_shlibs=no | |
9043 | fi | |
9044 | ||
d7040cdb | 9045 | ;; |
42ecbf5e | 9046 | |
d7040cdb SE |
9047 | dgux*) |
9048 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9049 | hardcode_libdir_flag_spec='-L$libdir' | |
9050 | hardcode_shlibpath_var=no | |
9051 | ;; | |
252b5132 | 9052 | |
d7040cdb SE |
9053 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9054 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9055 | # does not break anything, and helps significantly (at the cost of a little | |
9056 | # extra space). | |
9057 | freebsd2.2*) | |
9058 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9059 | hardcode_libdir_flag_spec='-R$libdir' | |
9060 | hardcode_direct=yes | |
9061 | hardcode_shlibpath_var=no | |
9062 | ;; | |
252b5132 | 9063 | |
d7040cdb | 9064 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 9065 | freebsd2.*) |
d7040cdb SE |
9066 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9067 | hardcode_direct=yes | |
9068 | hardcode_minus_L=yes | |
9069 | hardcode_shlibpath_var=no | |
9070 | ;; | |
42ecbf5e | 9071 | |
d7040cdb SE |
9072 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9073 | freebsd* | dragonfly*) | |
f2c621e4 | 9074 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
d7040cdb SE |
9075 | hardcode_libdir_flag_spec='-R$libdir' |
9076 | hardcode_direct=yes | |
9077 | hardcode_shlibpath_var=no | |
9078 | ;; | |
252b5132 | 9079 | |
d7040cdb SE |
9080 | hpux9*) |
9081 | if test "$GCC" = yes; then | |
f2c621e4 | 9082 | 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' |
d7040cdb SE |
9083 | else |
9084 | 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' | |
9085 | fi | |
9086 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9087 | hardcode_libdir_separator=: | |
9088 | hardcode_direct=yes | |
9089 | ||
9090 | # hardcode_minus_L: Not really in the search PATH, | |
9091 | # but as the default location of the library. | |
9092 | hardcode_minus_L=yes | |
9093 | export_dynamic_flag_spec='${wl}-E' | |
9094 | ;; | |
20e95c23 | 9095 | |
d7040cdb | 9096 | hpux10*) |
3725885a | 9097 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
f2c621e4 | 9098 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
d7040cdb SE |
9099 | else |
9100 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9101 | fi | |
9102 | if test "$with_gnu_ld" = no; then | |
9103 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9104 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9105 | hardcode_libdir_separator=: | |
9106 | hardcode_direct=yes | |
9107 | hardcode_direct_absolute=yes | |
9108 | export_dynamic_flag_spec='${wl}-E' | |
9109 | # hardcode_minus_L: Not really in the search PATH, | |
9110 | # but as the default location of the library. | |
9111 | hardcode_minus_L=yes | |
9112 | fi | |
9113 | ;; | |
20e95c23 | 9114 | |
d7040cdb | 9115 | hpux11*) |
3725885a | 9116 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
d7040cdb SE |
9117 | case $host_cpu in |
9118 | hppa*64*) | |
9119 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9120 | ;; | |
9121 | ia64*) | |
f2c621e4 | 9122 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
d7040cdb SE |
9123 | ;; |
9124 | *) | |
f2c621e4 | 9125 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
d7040cdb SE |
9126 | ;; |
9127 | esac | |
9128 | else | |
9129 | case $host_cpu in | |
9130 | hppa*64*) | |
9131 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9132 | ;; | |
9133 | ia64*) | |
9134 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9135 | ;; | |
9136 | *) | |
3725885a RW |
9137 | |
9138 | # Older versions of the 11.00 compiler do not understand -b yet | |
9139 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9141 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 9142 | if ${lt_cv_prog_compiler__b+:} false; then : |
3725885a RW |
9143 | $as_echo_n "(cached) " >&6 |
9144 | else | |
9145 | lt_cv_prog_compiler__b=no | |
9146 | save_LDFLAGS="$LDFLAGS" | |
9147 | LDFLAGS="$LDFLAGS -b" | |
9148 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9149 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9150 | # The linker can only warn and ignore the option if not recognized | |
9151 | # So say no if there are warnings | |
9152 | if test -s conftest.err; then | |
9153 | # Append any errors to the config.log. | |
9154 | cat conftest.err 1>&5 | |
9155 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9156 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9157 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9158 | lt_cv_prog_compiler__b=yes | |
9159 | fi | |
9160 | else | |
9161 | lt_cv_prog_compiler__b=yes | |
9162 | fi | |
9163 | fi | |
9164 | $RM -r conftest* | |
9165 | LDFLAGS="$save_LDFLAGS" | |
9166 | ||
9167 | fi | |
9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9169 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9170 | ||
9171 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9172 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9173 | else | |
9174 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9175 | fi | |
9176 | ||
d7040cdb SE |
9177 | ;; |
9178 | esac | |
9179 | fi | |
9180 | if test "$with_gnu_ld" = no; then | |
9181 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9182 | hardcode_libdir_separator=: | |
9183 | ||
9184 | case $host_cpu in | |
9185 | hppa*64*|ia64*) | |
9186 | hardcode_direct=no | |
9187 | hardcode_shlibpath_var=no | |
9188 | ;; | |
9189 | *) | |
9190 | hardcode_direct=yes | |
9191 | hardcode_direct_absolute=yes | |
9192 | export_dynamic_flag_spec='${wl}-E' | |
9193 | ||
9194 | # hardcode_minus_L: Not really in the search PATH, | |
9195 | # but as the default location of the library. | |
9196 | hardcode_minus_L=yes | |
9197 | ;; | |
9198 | esac | |
9199 | fi | |
9200 | ;; | |
9201 | ||
9202 | irix5* | irix6* | nonstopux*) | |
9203 | if test "$GCC" = yes; then | |
f2c621e4 | 9204 | 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' |
d7040cdb SE |
9205 | # Try to use the -exported_symbol ld option, if it does not |
9206 | # work, assume that -exports_file does not work either and | |
9207 | # implicitly export all symbols. | |
f2c621e4 AS |
9208 | save_LDFLAGS="$LDFLAGS" |
9209 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
81ecdfbb | 9211 | /* end confdefs.h. */ |
f2c621e4 | 9212 | int foo(void) {} |
42ecbf5e | 9213 | _ACEOF |
81ecdfbb | 9214 | if ac_fn_c_try_link "$LINENO"; then : |
f2c621e4 AS |
9215 | 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' |
9216 | ||
42ecbf5e | 9217 | fi |
81ecdfbb RW |
9218 | rm -f core conftest.err conftest.$ac_objext \ |
9219 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 9220 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 9221 | else |
3725885a RW |
9222 | 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' |
9223 | 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' | |
d7040cdb SE |
9224 | fi |
9225 | archive_cmds_need_lc='no' | |
9226 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9227 | hardcode_libdir_separator=: | |
9228 | inherit_rpath=yes | |
9229 | link_all_deplibs=yes | |
9230 | ;; | |
42ecbf5e | 9231 | |
d7040cdb SE |
9232 | netbsd*) |
9233 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9234 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9235 | else | |
9236 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9237 | fi | |
9238 | hardcode_libdir_flag_spec='-R$libdir' | |
9239 | hardcode_direct=yes | |
9240 | hardcode_shlibpath_var=no | |
9241 | ;; | |
42ecbf5e | 9242 | |
d7040cdb SE |
9243 | newsos6) |
9244 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9245 | hardcode_direct=yes | |
9246 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9247 | hardcode_libdir_separator=: | |
9248 | hardcode_shlibpath_var=no | |
9249 | ;; | |
42ecbf5e | 9250 | |
d7040cdb SE |
9251 | *nto* | *qnx*) |
9252 | ;; | |
252b5132 | 9253 | |
d7040cdb | 9254 | openbsd*) |
718a6fd8 SE |
9255 | if test -f /usr/libexec/ld.so; then |
9256 | hardcode_direct=yes | |
9257 | hardcode_shlibpath_var=no | |
9258 | hardcode_direct_absolute=yes | |
9259 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
d7040cdb | 9260 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9261 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
d7040cdb | 9262 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9263 | export_dynamic_flag_spec='${wl}-E' |
9264 | else | |
9265 | case $host_os in | |
9266 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9267 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9268 | hardcode_libdir_flag_spec='-R$libdir' | |
9269 | ;; | |
9270 | *) | |
9271 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9272 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9273 | ;; | |
9274 | esac | |
9275 | fi | |
9276 | else | |
9277 | ld_shlibs=no | |
d7040cdb SE |
9278 | fi |
9279 | ;; | |
252b5132 | 9280 | |
d7040cdb SE |
9281 | os2*) |
9282 | hardcode_libdir_flag_spec='-L$libdir' | |
9283 | hardcode_minus_L=yes | |
9284 | allow_undefined_flag=unsupported | |
3725885a | 9285 | 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' |
d7040cdb SE |
9286 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9287 | ;; | |
2481e6a2 | 9288 | |
d7040cdb SE |
9289 | osf3*) |
9290 | if test "$GCC" = yes; then | |
9291 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9292 | 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' |
d7040cdb SE |
9293 | else |
9294 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9295 | 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' |
d7040cdb SE |
9296 | fi |
9297 | archive_cmds_need_lc='no' | |
9298 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9299 | hardcode_libdir_separator=: | |
9300 | ;; | |
42ecbf5e | 9301 | |
d7040cdb SE |
9302 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9303 | if test "$GCC" = yes; then | |
9304 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
f2c621e4 | 9305 | 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' |
d7040cdb SE |
9306 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9307 | else | |
9308 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9309 | 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' |
d7040cdb | 9310 | 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 | 9311 | $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' |
42ecbf5e | 9312 | |
d7040cdb SE |
9313 | # Both c and cxx compiler support -rpath directly |
9314 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9315 | fi | |
9316 | archive_cmds_need_lc='no' | |
9317 | hardcode_libdir_separator=: | |
9318 | ;; | |
9319 | ||
9320 | solaris*) | |
9321 | no_undefined_flag=' -z defs' | |
9322 | if test "$GCC" = yes; then | |
9323 | wlarc='${wl}' | |
f2c621e4 | 9324 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
d7040cdb | 9325 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
f2c621e4 | 9326 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
d7040cdb SE |
9327 | else |
9328 | case `$CC -V 2>&1` in | |
9329 | *"Compilers 5.0"*) | |
9330 | wlarc='' | |
9331 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9332 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9333 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9334 | ;; | |
9335 | *) | |
9336 | wlarc='${wl}' | |
9337 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9338 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9339 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9340 | ;; | |
9341 | esac | |
9342 | fi | |
9343 | hardcode_libdir_flag_spec='-R$libdir' | |
9344 | hardcode_shlibpath_var=no | |
9345 | case $host_os in | |
9346 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9347 | *) | |
9348 | # The compiler driver will combine and reorder linker options, | |
9349 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9350 | # but is careful enough not to reorder. | |
9351 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9352 | if test "$GCC" = yes; then | |
9353 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9354 | else | |
9355 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9356 | fi | |
9357 | ;; | |
9358 | esac | |
9359 | link_all_deplibs=yes | |
9360 | ;; | |
9361 | ||
9362 | sunos4*) | |
9363 | if test "x$host_vendor" = xsequent; then | |
9364 | # Use $CC to link under sequent, because it throws in some extra .o | |
9365 | # files that make .init and .fini sections work. | |
9366 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9367 | else | |
9368 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9369 | fi | |
9370 | hardcode_libdir_flag_spec='-L$libdir' | |
9371 | hardcode_direct=yes | |
9372 | hardcode_minus_L=yes | |
9373 | hardcode_shlibpath_var=no | |
9374 | ;; | |
9375 | ||
9376 | sysv4) | |
9377 | case $host_vendor in | |
9378 | sni) | |
9379 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9380 | hardcode_direct=yes # is this really true??? | |
9381 | ;; | |
9382 | siemens) | |
9383 | ## LD is ld it makes a PLAMLIB | |
9384 | ## CC just makes a GrossModule. | |
9385 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9386 | reload_cmds='$CC -r -o $output$reload_objs' | |
9387 | hardcode_direct=no | |
9388 | ;; | |
9389 | motorola) | |
9390 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9391 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9392 | ;; | |
9393 | esac | |
9394 | runpath_var='LD_RUN_PATH' | |
9395 | hardcode_shlibpath_var=no | |
9396 | ;; | |
9397 | ||
9398 | sysv4.3*) | |
9399 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9400 | hardcode_shlibpath_var=no | |
9401 | export_dynamic_flag_spec='-Bexport' | |
9402 | ;; | |
9403 | ||
9404 | sysv4*MP*) | |
9405 | if test -d /usr/nec; then | |
9406 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9407 | hardcode_shlibpath_var=no | |
9408 | runpath_var=LD_RUN_PATH | |
9409 | hardcode_runpath_var=yes | |
9410 | ld_shlibs=yes | |
9411 | fi | |
9412 | ;; | |
9413 | ||
9414 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9415 | no_undefined_flag='${wl}-z,text' | |
9416 | archive_cmds_need_lc=no | |
9417 | hardcode_shlibpath_var=no | |
9418 | runpath_var='LD_RUN_PATH' | |
9419 | ||
9420 | if test "$GCC" = yes; then | |
9421 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9422 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9423 | else | |
9424 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9425 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9426 | fi | |
9427 | ;; | |
9428 | ||
9429 | sysv5* | sco3.2v5* | sco5v6*) | |
9430 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9431 | # link with -lc, and that would cause any symbols used from libc to | |
9432 | # always be unresolved, which means just about no library would | |
9433 | # ever link correctly. If we're not using GNU ld we use -z text | |
9434 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9435 | # as -z defs. | |
9436 | no_undefined_flag='${wl}-z,text' | |
9437 | allow_undefined_flag='${wl}-z,nodefs' | |
9438 | archive_cmds_need_lc=no | |
9439 | hardcode_shlibpath_var=no | |
9440 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9441 | hardcode_libdir_separator=':' | |
9442 | link_all_deplibs=yes | |
9443 | export_dynamic_flag_spec='${wl}-Bexport' | |
9444 | runpath_var='LD_RUN_PATH' | |
9445 | ||
9446 | if test "$GCC" = yes; then | |
9447 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9448 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9449 | else | |
9450 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9451 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9452 | fi | |
9453 | ;; | |
9454 | ||
9455 | uts4*) | |
9456 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9457 | hardcode_libdir_flag_spec='-L$libdir' | |
9458 | hardcode_shlibpath_var=no | |
9459 | ;; | |
9460 | ||
9461 | *) | |
9462 | ld_shlibs=no | |
9463 | ;; | |
9464 | esac | |
9465 | ||
9466 | if test x$host_vendor = xsni; then | |
9467 | case $host in | |
9468 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9469 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9470 | ;; | |
9471 | esac | |
9472 | fi | |
9473 | fi | |
9474 | ||
81ecdfbb RW |
9475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9476 | $as_echo "$ld_shlibs" >&6; } | |
d7040cdb SE |
9477 | test "$ld_shlibs" = no && can_build_shared=no |
9478 | ||
9479 | with_gnu_ld=$with_gnu_ld | |
9480 | ||
9481 | ||
9482 | ||
9483 | ||
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | ||
9495 | # | |
9496 | # Do we need to explicitly link libc? | |
9497 | # | |
9498 | case "x$archive_cmds_need_lc" in | |
9499 | x|xyes) | |
9500 | # Assume -lc should be added | |
9501 | archive_cmds_need_lc=yes | |
9502 | ||
9503 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9504 | case $archive_cmds in | |
9505 | *'~'*) | |
9506 | # FIXME: we may have to deal with multi-command sequences. | |
9507 | ;; | |
9508 | '$CC '*) | |
9509 | # Test whether the compiler implicitly links with -lc since on some | |
9510 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9511 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9513 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 9514 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
81ecdfbb | 9515 | $as_echo_n "(cached) " >&6 |
39144654 RW |
9516 | else |
9517 | $RM conftest* | |
9518 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9519 | |
81ecdfbb | 9520 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d7040cdb | 9521 | (eval $ac_compile) 2>&5 |
20e95c23 | 9522 | ac_status=$? |
81ecdfbb RW |
9523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9524 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9525 | soname=conftest |
9526 | lib=conftest | |
9527 | libobjs=conftest.$ac_objext | |
9528 | deplibs= | |
9529 | wl=$lt_prog_compiler_wl | |
9530 | pic_flag=$lt_prog_compiler_pic | |
9531 | compiler_flags=-v | |
9532 | linker_flags=-v | |
9533 | verstring= | |
9534 | output_objdir=. | |
9535 | libname=conftest | |
9536 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9537 | allow_undefined_flag= | |
81ecdfbb | 9538 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
d7040cdb | 9539 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
20e95c23 | 9540 | ac_status=$? |
81ecdfbb RW |
9541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9542 | test $ac_status = 0; } | |
39144654 RW |
9543 | then |
9544 | lt_cv_archive_cmds_need_lc=no | |
9545 | else | |
9546 | lt_cv_archive_cmds_need_lc=yes | |
9547 | fi | |
9548 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9549 | else | |
9550 | cat conftest.err 1>&5 | |
9551 | fi | |
9552 | $RM conftest* | |
9553 | ||
9554 | fi | |
81ecdfbb RW |
9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9556 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9557 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
d7040cdb SE |
9558 | ;; |
9559 | esac | |
9560 | fi | |
9561 | ;; | |
9562 | esac | |
9563 | ||
9564 | ||
9565 | ||
9566 | ||
9567 | ||
9568 | ||
9569 | ||
9570 | ||
9571 | ||
9572 | ||
9573 | ||
9574 | ||
9575 | ||
9576 | ||
9577 | ||
9578 | ||
9579 | ||
9580 | ||
9581 | ||
9582 | ||
9583 | ||
9584 | ||
9585 | ||
9586 | ||
9587 | ||
9588 | ||
9589 | ||
9590 | ||
9591 | ||
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | ||
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | ||
9608 | ||
9609 | ||
9610 | ||
9611 | ||
9612 | ||
9613 | ||
9614 | ||
9615 | ||
9616 | ||
9617 | ||
9618 | ||
9619 | ||
9620 | ||
9621 | ||
9622 | ||
9623 | ||
9624 | ||
9625 | ||
9626 | ||
9627 | ||
9628 | ||
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | ||
9634 | ||
9635 | ||
9636 | ||
9637 | ||
9638 | ||
9639 | ||
9640 | ||
9641 | ||
9642 | ||
9643 | ||
9644 | ||
9645 | ||
9646 | ||
9647 | ||
9648 | ||
9649 | ||
9650 | ||
9651 | ||
9652 | ||
9653 | ||
9654 | ||
9655 | ||
9656 | ||
9657 | ||
9658 | ||
9659 | ||
9660 | ||
9661 | ||
9662 | ||
9663 | ||
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | ||
9669 | ||
9670 | ||
9671 | ||
9672 | ||
9673 | ||
9674 | ||
9675 | ||
9676 | ||
9677 | ||
9678 | ||
9679 | ||
9680 | ||
9681 | ||
9682 | ||
9683 | ||
9684 | ||
9685 | ||
9686 | ||
9687 | ||
9688 | ||
9689 | ||
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | ||
9695 | ||
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | ||
9713 | ||
9714 | ||
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | ||
81ecdfbb RW |
9720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9721 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
718a6fd8 SE |
9722 | |
9723 | if test "$GCC" = yes; then | |
d7040cdb SE |
9724 | case $host_os in |
9725 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9726 | *) lt_awk_arg="/^libraries:/" ;; | |
9727 | esac | |
3725885a RW |
9728 | case $host_os in |
9729 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9730 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9731 | esac | |
9732 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9733 | case $lt_search_path_spec in | |
9734 | *\;*) | |
d7040cdb SE |
9735 | # if the path contains ";" then we assume it to be the separator |
9736 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9737 | # assumed that no part of a normal pathname contains ";" but that should | |
9738 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
9739 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9740 | ;; | |
9741 | *) | |
9742 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9743 | ;; | |
9744 | esac | |
d7040cdb SE |
9745 | # Ok, now we have the path, separated by spaces, we can step through it |
9746 | # and add multilib dir if necessary. | |
9747 | lt_tmp_lt_search_path_spec= | |
9748 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9749 | for lt_sys_path in $lt_search_path_spec; do | |
9750 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9751 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9752 | else | |
9753 | test -d "$lt_sys_path" && \ | |
9754 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9755 | fi | |
9756 | done | |
3725885a | 9757 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d7040cdb SE |
9758 | BEGIN {RS=" "; FS="/|\n";} { |
9759 | lt_foo=""; | |
9760 | lt_count=0; | |
9761 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9762 | if ($lt_i != "" && $lt_i != ".") { | |
9763 | if ($lt_i == "..") { | |
9764 | lt_count++; | |
9765 | } else { | |
9766 | if (lt_count == 0) { | |
9767 | lt_foo="/" $lt_i lt_foo; | |
9768 | } else { | |
9769 | lt_count--; | |
9770 | } | |
9771 | } | |
9772 | } | |
9773 | } | |
9774 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9775 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9776 | }'` | |
3725885a RW |
9777 | # AWK program above erroneously prepends '/' to C:/dos/paths |
9778 | # for these hosts. | |
9779 | case $host_os in | |
9780 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9781 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9782 | esac | |
9783 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb SE |
9784 | else |
9785 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9786 | fi | |
9787 | library_names_spec= | |
9788 | libname_spec='lib$name' | |
9789 | soname_spec= | |
9790 | shrext_cmds=".so" | |
9791 | postinstall_cmds= | |
9792 | postuninstall_cmds= | |
9793 | finish_cmds= | |
9794 | finish_eval= | |
9795 | shlibpath_var= | |
9796 | shlibpath_overrides_runpath=unknown | |
9797 | version_type=none | |
9798 | dynamic_linker="$host_os ld.so" | |
9799 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9800 | need_lib_prefix=unknown | |
9801 | hardcode_into_libs=no | |
9802 | ||
9803 | # when you set need_version to no, make sure it does not cause -set_version | |
9804 | # flags to be left without arguments | |
9805 | need_version=unknown | |
9806 | ||
9807 | case $host_os in | |
9808 | aix3*) | |
9809 | version_type=linux | |
9810 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9811 | shlibpath_var=LIBPATH | |
9812 | ||
9813 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9814 | soname_spec='${libname}${release}${shared_ext}$major' | |
9815 | ;; | |
9816 | ||
50e7d84b | 9817 | aix[4-9]*) |
d7040cdb SE |
9818 | version_type=linux |
9819 | need_lib_prefix=no | |
9820 | need_version=no | |
9821 | hardcode_into_libs=yes | |
9822 | if test "$host_cpu" = ia64; then | |
9823 | # AIX 5 supports IA64 | |
9824 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9825 | shlibpath_var=LD_LIBRARY_PATH | |
9826 | else | |
9827 | # With GCC up to 2.95.x, collect2 would create an import file | |
9828 | # for dependence libraries. The import file would start with | |
9829 | # the line `#! .'. This would cause the generated library to | |
9830 | # depend on `.', always an invalid library. This was fixed in | |
9831 | # development snapshots of GCC prior to 3.0. | |
9832 | case $host_os in | |
9833 | aix4 | aix4.[01] | aix4.[01].*) | |
9834 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9835 | echo ' yes ' | |
9836 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9837 | : | |
9838 | else | |
9839 | can_build_shared=no | |
9840 | fi | |
9841 | ;; | |
9842 | esac | |
9843 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9844 | # soname into executable. Probably we can add versioning support to | |
9845 | # collect2, so additional links can be useful in future. | |
9846 | if test "$aix_use_runtimelinking" = yes; then | |
9847 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9848 | # instead of lib<name>.a to let people know that these are not | |
9849 | # typical AIX shared libraries. | |
9850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9851 | else | |
9852 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9853 | # and later when we are not doing run time linking. | |
9854 | library_names_spec='${libname}${release}.a $libname.a' | |
9855 | soname_spec='${libname}${release}${shared_ext}$major' | |
9856 | fi | |
9857 | shlibpath_var=LIBPATH | |
9858 | fi | |
9859 | ;; | |
9860 | ||
9861 | amigaos*) | |
718a6fd8 SE |
9862 | case $host_cpu in |
9863 | powerpc) | |
9864 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9865 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9867 | ;; | |
9868 | m68k) | |
d7040cdb SE |
9869 | library_names_spec='$libname.ixlibrary $libname.a' |
9870 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 9871 | 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' |
718a6fd8 SE |
9872 | ;; |
9873 | esac | |
d7040cdb SE |
9874 | ;; |
9875 | ||
9876 | beos*) | |
9877 | library_names_spec='${libname}${shared_ext}' | |
9878 | dynamic_linker="$host_os ld.so" | |
9879 | shlibpath_var=LIBRARY_PATH | |
9880 | ;; | |
9881 | ||
9882 | bsdi[45]*) | |
9883 | version_type=linux | |
9884 | need_version=no | |
9885 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9886 | soname_spec='${libname}${release}${shared_ext}$major' | |
9887 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9888 | shlibpath_var=LD_LIBRARY_PATH | |
9889 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9890 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9891 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9892 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9893 | # libtool to hard-code these into programs | |
9894 | ;; | |
9895 | ||
718a6fd8 | 9896 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
9897 | version_type=windows |
9898 | shrext_cmds=".dll" | |
9899 | need_version=no | |
9900 | need_lib_prefix=no | |
9901 | ||
f2c621e4 AS |
9902 | case $GCC,$host_os in |
9903 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
d7040cdb SE |
9904 | library_names_spec='$libname.dll.a' |
9905 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9906 | postinstall_cmds='base_file=`basename \${file}`~ | |
9907 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9908 | dldir=$destdir/`dirname \$dlpath`~ | |
9909 | test -d \$dldir || mkdir -p \$dldir~ | |
9910 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9911 | chmod a+x \$dldir/$dlname~ | |
9912 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9913 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9914 | fi' | |
9915 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9916 | dlpath=$dir/\$dldll~ | |
9917 | $RM \$dlpath' | |
9918 | shlibpath_overrides_runpath=yes | |
9919 | ||
9920 | case $host_os in | |
9921 | cygwin*) | |
9922 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9923 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
9924 | |
9925 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d7040cdb | 9926 | ;; |
718a6fd8 | 9927 | mingw* | cegcc*) |
d7040cdb SE |
9928 | # MinGW DLLs use traditional 'lib' prefix |
9929 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
d7040cdb SE |
9930 | ;; |
9931 | pw32*) | |
9932 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9933 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9934 | ;; | |
9935 | esac | |
9936 | ;; | |
9937 | ||
9938 | *) | |
9939 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9940 | ;; | |
9941 | esac | |
f2c621e4 | 9942 | dynamic_linker='Win32 ld.exe' |
d7040cdb SE |
9943 | # FIXME: first we should search . and the directory the executable is in |
9944 | shlibpath_var=PATH | |
9945 | ;; | |
9946 | ||
9947 | darwin* | rhapsody*) | |
9948 | dynamic_linker="$host_os dyld" | |
9949 | version_type=darwin | |
9950 | need_lib_prefix=no | |
9951 | need_version=no | |
9952 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9953 | soname_spec='${libname}${release}${major}$shared_ext' | |
9954 | shlibpath_overrides_runpath=yes | |
9955 | shlibpath_var=DYLD_LIBRARY_PATH | |
9956 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9957 | ||
9958 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9959 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9960 | ;; | |
9961 | ||
9962 | dgux*) | |
9963 | version_type=linux | |
9964 | need_lib_prefix=no | |
9965 | need_version=no | |
9966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9967 | soname_spec='${libname}${release}${shared_ext}$major' | |
9968 | shlibpath_var=LD_LIBRARY_PATH | |
9969 | ;; | |
9970 | ||
d7040cdb SE |
9971 | freebsd* | dragonfly*) |
9972 | # DragonFly does not have aout. When/if they implement a new | |
9973 | # versioning mechanism, adjust this. | |
9974 | if test -x /usr/bin/objformat; then | |
9975 | objformat=`/usr/bin/objformat` | |
9976 | else | |
9977 | case $host_os in | |
6d2920c8 | 9978 | freebsd[23].*) objformat=aout ;; |
d7040cdb SE |
9979 | *) objformat=elf ;; |
9980 | esac | |
9981 | fi | |
9982 | version_type=freebsd-$objformat | |
9983 | case $version_type in | |
9984 | freebsd-elf*) | |
9985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9986 | need_version=no | |
9987 | need_lib_prefix=no | |
9988 | ;; | |
9989 | freebsd-*) | |
9990 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9991 | need_version=yes | |
9992 | ;; | |
9993 | esac | |
9994 | shlibpath_var=LD_LIBRARY_PATH | |
9995 | case $host_os in | |
6d2920c8 | 9996 | freebsd2.*) |
d7040cdb SE |
9997 | shlibpath_overrides_runpath=yes |
9998 | ;; | |
9999 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10000 | shlibpath_overrides_runpath=yes | |
10001 | hardcode_into_libs=yes | |
10002 | ;; | |
10003 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10004 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10005 | shlibpath_overrides_runpath=no | |
10006 | hardcode_into_libs=yes | |
10007 | ;; | |
10008 | *) # from 4.6 on, and DragonFly | |
10009 | shlibpath_overrides_runpath=yes | |
10010 | hardcode_into_libs=yes | |
10011 | ;; | |
10012 | esac | |
10013 | ;; | |
10014 | ||
3725885a RW |
10015 | haiku*) |
10016 | version_type=linux | |
10017 | need_lib_prefix=no | |
10018 | need_version=no | |
10019 | dynamic_linker="$host_os runtime_loader" | |
10020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10021 | soname_spec='${libname}${release}${shared_ext}$major' | |
10022 | shlibpath_var=LIBRARY_PATH | |
10023 | shlibpath_overrides_runpath=yes | |
d85e70a3 | 10024 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
3725885a RW |
10025 | hardcode_into_libs=yes |
10026 | ;; | |
10027 | ||
d7040cdb SE |
10028 | hpux9* | hpux10* | hpux11*) |
10029 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10030 | # link against other versions. | |
10031 | version_type=sunos | |
10032 | need_lib_prefix=no | |
10033 | need_version=no | |
10034 | case $host_cpu in | |
10035 | ia64*) | |
10036 | shrext_cmds='.so' | |
10037 | hardcode_into_libs=yes | |
10038 | dynamic_linker="$host_os dld.so" | |
10039 | shlibpath_var=LD_LIBRARY_PATH | |
10040 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10041 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10042 | soname_spec='${libname}${release}${shared_ext}$major' | |
10043 | if test "X$HPUX_IA64_MODE" = X32; then | |
10044 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10045 | else | |
10046 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10047 | fi | |
10048 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10049 | ;; | |
10050 | hppa*64*) | |
10051 | shrext_cmds='.sl' | |
10052 | hardcode_into_libs=yes | |
10053 | dynamic_linker="$host_os dld.sl" | |
10054 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10055 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10057 | soname_spec='${libname}${release}${shared_ext}$major' | |
10058 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10059 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10060 | ;; | |
10061 | *) | |
10062 | shrext_cmds='.sl' | |
10063 | dynamic_linker="$host_os dld.sl" | |
10064 | shlibpath_var=SHLIB_PATH | |
10065 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10067 | soname_spec='${libname}${release}${shared_ext}$major' | |
10068 | ;; | |
10069 | esac | |
3725885a | 10070 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d7040cdb | 10071 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10072 | # or fails outright, so override atomically: |
10073 | install_override_mode=555 | |
d7040cdb SE |
10074 | ;; |
10075 | ||
10076 | interix[3-9]*) | |
10077 | version_type=linux | |
10078 | need_lib_prefix=no | |
10079 | need_version=no | |
10080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10081 | soname_spec='${libname}${release}${shared_ext}$major' | |
10082 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10083 | shlibpath_var=LD_LIBRARY_PATH | |
10084 | shlibpath_overrides_runpath=no | |
10085 | hardcode_into_libs=yes | |
10086 | ;; | |
10087 | ||
10088 | irix5* | irix6* | nonstopux*) | |
10089 | case $host_os in | |
10090 | nonstopux*) version_type=nonstopux ;; | |
10091 | *) | |
10092 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10093 | version_type=linux | |
10094 | else | |
10095 | version_type=irix | |
10096 | fi ;; | |
10097 | esac | |
10098 | need_lib_prefix=no | |
10099 | need_version=no | |
10100 | soname_spec='${libname}${release}${shared_ext}$major' | |
10101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10102 | case $host_os in | |
10103 | irix5* | nonstopux*) | |
10104 | libsuff= shlibsuff= | |
10105 | ;; | |
10106 | *) | |
10107 | case $LD in # libtool.m4 will add one of these switches to LD | |
10108 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10109 | libsuff= shlibsuff= libmagic=32-bit;; | |
10110 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10111 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10112 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10113 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10114 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10115 | esac | |
10116 | ;; | |
10117 | esac | |
10118 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10119 | shlibpath_overrides_runpath=no | |
10120 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10121 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10122 | hardcode_into_libs=yes | |
10123 | ;; | |
10124 | ||
10125 | # No shared lib support for Linux oldld, aout, or coff. | |
10126 | linux*oldld* | linux*aout* | linux*coff*) | |
10127 | dynamic_linker=no | |
10128 | ;; | |
10129 | ||
10130 | # This must be Linux ELF. | |
f4782128 | 10131 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
d7040cdb SE |
10132 | version_type=linux |
10133 | need_lib_prefix=no | |
10134 | need_version=no | |
10135 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10136 | soname_spec='${libname}${release}${shared_ext}$major' | |
10137 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10138 | shlibpath_var=LD_LIBRARY_PATH | |
10139 | shlibpath_overrides_runpath=no | |
39144654 | 10140 | |
d7040cdb | 10141 | # Some binutils ld are patched to set DT_RUNPATH |
d0ac1c44 | 10142 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
81ecdfbb | 10143 | $as_echo_n "(cached) " >&6 |
39144654 RW |
10144 | else |
10145 | lt_cv_shlibpath_overrides_runpath=no | |
10146 | save_LDFLAGS=$LDFLAGS | |
10147 | save_libdir=$libdir | |
10148 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10149 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10151 | /* end confdefs.h. */ |
10152 | ||
10153 | int | |
10154 | main () | |
10155 | { | |
10156 | ||
10157 | ; | |
10158 | return 0; | |
10159 | } | |
10160 | _ACEOF | |
81ecdfbb RW |
10161 | if ac_fn_c_try_link "$LINENO"; then : |
10162 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10163 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 10164 | fi |
d7040cdb | 10165 | fi |
81ecdfbb RW |
10166 | rm -f core conftest.err conftest.$ac_objext \ |
10167 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10168 | LDFLAGS=$save_LDFLAGS |
10169 | libdir=$save_libdir | |
10170 | ||
10171 | fi | |
10172 | ||
10173 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb SE |
10174 | |
10175 | # This implies no fast_install, which is unacceptable. | |
10176 | # Some rework will be needed to allow for fast_install | |
10177 | # before this can be enabled. | |
10178 | hardcode_into_libs=yes | |
10179 | ||
10180 | # Append ld.so.conf contents to the search path | |
10181 | if test -f /etc/ld.so.conf; then | |
3725885a | 10182 | 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' ' '` |
f2c621e4 | 10183 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
d7040cdb SE |
10184 | fi |
10185 | ||
10186 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10187 | # powerpc, because MkLinux only supported shared libraries with the | |
10188 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10189 | # most powerpc-linux boxes support dynamic linking these days and | |
10190 | # people can always --disable-shared, the test was removed, and we | |
10191 | # assume the GNU/Linux dynamic linker is in use. | |
10192 | dynamic_linker='GNU/Linux ld.so' | |
10193 | ;; | |
10194 | ||
10195 | netbsd*) | |
10196 | version_type=sunos | |
10197 | need_lib_prefix=no | |
10198 | need_version=no | |
10199 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10201 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10202 | dynamic_linker='NetBSD (a.out) ld.so' | |
10203 | else | |
10204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10205 | soname_spec='${libname}${release}${shared_ext}$major' | |
10206 | dynamic_linker='NetBSD ld.elf_so' | |
10207 | fi | |
10208 | shlibpath_var=LD_LIBRARY_PATH | |
10209 | shlibpath_overrides_runpath=yes | |
10210 | hardcode_into_libs=yes | |
10211 | ;; | |
10212 | ||
10213 | newsos6) | |
10214 | version_type=linux | |
10215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10216 | shlibpath_var=LD_LIBRARY_PATH | |
10217 | shlibpath_overrides_runpath=yes | |
10218 | ;; | |
10219 | ||
10220 | *nto* | *qnx*) | |
10221 | version_type=qnx | |
10222 | need_lib_prefix=no | |
10223 | need_version=no | |
10224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10225 | soname_spec='${libname}${release}${shared_ext}$major' | |
10226 | shlibpath_var=LD_LIBRARY_PATH | |
10227 | shlibpath_overrides_runpath=no | |
10228 | hardcode_into_libs=yes | |
10229 | dynamic_linker='ldqnx.so' | |
10230 | ;; | |
10231 | ||
10232 | openbsd*) | |
10233 | version_type=sunos | |
10234 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10235 | need_lib_prefix=no | |
10236 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10237 | case $host_os in | |
10238 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10239 | *) need_version=no ;; | |
10240 | esac | |
10241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10242 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10243 | shlibpath_var=LD_LIBRARY_PATH | |
10244 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10245 | case $host_os in | |
10246 | openbsd2.[89] | openbsd2.[89].*) | |
10247 | shlibpath_overrides_runpath=no | |
10248 | ;; | |
10249 | *) | |
10250 | shlibpath_overrides_runpath=yes | |
10251 | ;; | |
10252 | esac | |
10253 | else | |
10254 | shlibpath_overrides_runpath=yes | |
10255 | fi | |
10256 | ;; | |
10257 | ||
10258 | os2*) | |
10259 | libname_spec='$name' | |
10260 | shrext_cmds=".dll" | |
10261 | need_lib_prefix=no | |
10262 | library_names_spec='$libname${shared_ext} $libname.a' | |
10263 | dynamic_linker='OS/2 ld.exe' | |
10264 | shlibpath_var=LIBPATH | |
10265 | ;; | |
10266 | ||
10267 | osf3* | osf4* | osf5*) | |
10268 | version_type=osf | |
10269 | need_lib_prefix=no | |
10270 | need_version=no | |
10271 | soname_spec='${libname}${release}${shared_ext}$major' | |
10272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10273 | shlibpath_var=LD_LIBRARY_PATH | |
10274 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10275 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10276 | ;; | |
10277 | ||
10278 | rdos*) | |
10279 | dynamic_linker=no | |
10280 | ;; | |
10281 | ||
10282 | solaris*) | |
10283 | version_type=linux | |
10284 | need_lib_prefix=no | |
10285 | need_version=no | |
10286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10287 | soname_spec='${libname}${release}${shared_ext}$major' | |
10288 | shlibpath_var=LD_LIBRARY_PATH | |
10289 | shlibpath_overrides_runpath=yes | |
10290 | hardcode_into_libs=yes | |
10291 | # ldd complains unless libraries are executable | |
10292 | postinstall_cmds='chmod +x $lib' | |
10293 | ;; | |
10294 | ||
10295 | sunos4*) | |
10296 | version_type=sunos | |
10297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10298 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10299 | shlibpath_var=LD_LIBRARY_PATH | |
10300 | shlibpath_overrides_runpath=yes | |
10301 | if test "$with_gnu_ld" = yes; then | |
10302 | need_lib_prefix=no | |
10303 | fi | |
10304 | need_version=yes | |
10305 | ;; | |
10306 | ||
10307 | sysv4 | sysv4.3*) | |
10308 | version_type=linux | |
10309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10310 | soname_spec='${libname}${release}${shared_ext}$major' | |
10311 | shlibpath_var=LD_LIBRARY_PATH | |
10312 | case $host_vendor in | |
10313 | sni) | |
10314 | shlibpath_overrides_runpath=no | |
10315 | need_lib_prefix=no | |
10316 | runpath_var=LD_RUN_PATH | |
10317 | ;; | |
10318 | siemens) | |
10319 | need_lib_prefix=no | |
10320 | ;; | |
10321 | motorola) | |
10322 | need_lib_prefix=no | |
10323 | need_version=no | |
10324 | shlibpath_overrides_runpath=no | |
10325 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10326 | ;; | |
10327 | esac | |
10328 | ;; | |
10329 | ||
10330 | sysv4*MP*) | |
10331 | if test -d /usr/nec ;then | |
10332 | version_type=linux | |
10333 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10334 | soname_spec='$libname${shared_ext}.$major' | |
10335 | shlibpath_var=LD_LIBRARY_PATH | |
10336 | fi | |
10337 | ;; | |
10338 | ||
10339 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10340 | version_type=freebsd-elf | |
10341 | need_lib_prefix=no | |
10342 | need_version=no | |
10343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10344 | soname_spec='${libname}${release}${shared_ext}$major' | |
10345 | shlibpath_var=LD_LIBRARY_PATH | |
10346 | shlibpath_overrides_runpath=yes | |
10347 | hardcode_into_libs=yes | |
10348 | if test "$with_gnu_ld" = yes; then | |
10349 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10350 | else | |
10351 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10352 | case $host_os in | |
10353 | sco3.2v5*) | |
10354 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10355 | ;; | |
10356 | esac | |
10357 | fi | |
10358 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10359 | ;; | |
10360 | ||
10361 | tpf*) | |
10362 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10363 | version_type=linux | |
10364 | need_lib_prefix=no | |
10365 | need_version=no | |
718a6fd8 | 10366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
d7040cdb SE |
10367 | shlibpath_var=LD_LIBRARY_PATH |
10368 | shlibpath_overrides_runpath=no | |
10369 | hardcode_into_libs=yes | |
10370 | ;; | |
10371 | ||
10372 | uts4*) | |
10373 | version_type=linux | |
10374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10375 | soname_spec='${libname}${release}${shared_ext}$major' | |
10376 | shlibpath_var=LD_LIBRARY_PATH | |
10377 | ;; | |
10378 | ||
10379 | *) | |
10380 | dynamic_linker=no | |
10381 | ;; | |
10382 | esac | |
81ecdfbb RW |
10383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10384 | $as_echo "$dynamic_linker" >&6; } | |
d7040cdb SE |
10385 | test "$dynamic_linker" = no && can_build_shared=no |
10386 | ||
10387 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10388 | if test "$GCC" = yes; then | |
10389 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10390 | fi | |
10391 | ||
718a6fd8 SE |
10392 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10393 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10394 | fi | |
10395 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10396 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10397 | fi | |
10398 | ||
d7040cdb SE |
10399 | |
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | ||
10417 | ||
10418 | ||
10419 | ||
10420 | ||
10421 | ||
10422 | ||
10423 | ||
10424 | ||
10425 | ||
10426 | ||
10427 | ||
10428 | ||
10429 | ||
10430 | ||
10431 | ||
10432 | ||
10433 | ||
10434 | ||
10435 | ||
10436 | ||
10437 | ||
10438 | ||
10439 | ||
10440 | ||
10441 | ||
10442 | ||
10443 | ||
10444 | ||
10445 | ||
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 | ||
10473 | ||
10474 | ||
10475 | ||
10476 | ||
10477 | ||
10478 | ||
3725885a RW |
10479 | |
10480 | ||
10481 | ||
10482 | ||
10483 | ||
d7040cdb SE |
10484 | |
10485 | ||
10486 | ||
10487 | ||
10488 | ||
10489 | ||
81ecdfbb RW |
10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10491 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
d7040cdb SE |
10492 | hardcode_action= |
10493 | if test -n "$hardcode_libdir_flag_spec" || | |
10494 | test -n "$runpath_var" || | |
10495 | test "X$hardcode_automatic" = "Xyes" ; then | |
10496 | ||
10497 | # We can hardcode non-existent directories. | |
10498 | if test "$hardcode_direct" != no && | |
10499 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10500 | # have to relink, otherwise we might link with an installed library | |
10501 | # when we should be linking with a yet-to-be-installed one | |
10502 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10503 | test "$hardcode_minus_L" != no; then | |
10504 | # Linking always hardcodes the temporary library directory. | |
10505 | hardcode_action=relink | |
10506 | else | |
10507 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10508 | hardcode_action=immediate | |
10509 | fi | |
10510 | else | |
10511 | # We cannot hardcode anything, or else we can only hardcode existing | |
10512 | # directories. | |
10513 | hardcode_action=unsupported | |
10514 | fi | |
81ecdfbb RW |
10515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10516 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb SE |
10517 | |
10518 | if test "$hardcode_action" = relink || | |
10519 | test "$inherit_rpath" = yes; then | |
10520 | # Fast installation is not supported | |
10521 | enable_fast_install=no | |
10522 | elif test "$shlibpath_overrides_runpath" = yes || | |
10523 | test "$enable_shared" = no; then | |
10524 | # Fast installation is not necessary | |
10525 | enable_fast_install=needless | |
10526 | fi | |
10527 | ||
10528 | ||
10529 | ||
10530 | ||
10531 | ||
10532 | ||
10533 | if test "x$enable_dlopen" != xyes; then | |
10534 | enable_dlopen=unknown | |
10535 | enable_dlopen_self=unknown | |
10536 | enable_dlopen_self_static=unknown | |
10537 | else | |
10538 | lt_cv_dlopen=no | |
10539 | lt_cv_dlopen_libs= | |
10540 | ||
10541 | case $host_os in | |
10542 | beos*) | |
10543 | lt_cv_dlopen="load_add_on" | |
10544 | lt_cv_dlopen_libs= | |
10545 | lt_cv_dlopen_self=yes | |
10546 | ;; | |
10547 | ||
718a6fd8 | 10548 | mingw* | pw32* | cegcc*) |
d7040cdb SE |
10549 | lt_cv_dlopen="LoadLibrary" |
10550 | lt_cv_dlopen_libs= | |
10551 | ;; | |
10552 | ||
10553 | cygwin*) | |
10554 | lt_cv_dlopen="dlopen" | |
10555 | lt_cv_dlopen_libs= | |
10556 | ;; | |
10557 | ||
10558 | darwin*) | |
10559 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10561 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10562 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10563 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10564 | else |
10565 | ac_check_lib_save_LIBS=$LIBS | |
10566 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10568 | /* end confdefs.h. */ |
10569 | ||
81ecdfbb RW |
10570 | /* Override any GCC internal prototype to avoid an error. |
10571 | Use char because int might match the return type of a GCC | |
10572 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10573 | #ifdef __cplusplus |
10574 | extern "C" | |
10575 | #endif | |
d7040cdb SE |
10576 | char dlopen (); |
10577 | int | |
10578 | main () | |
10579 | { | |
81ecdfbb | 10580 | return dlopen (); |
d7040cdb SE |
10581 | ; |
10582 | return 0; | |
10583 | } | |
10584 | _ACEOF | |
81ecdfbb | 10585 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
10586 | ac_cv_lib_dl_dlopen=yes |
10587 | else | |
81ecdfbb | 10588 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10589 | fi |
81ecdfbb RW |
10590 | rm -f core conftest.err conftest.$ac_objext \ |
10591 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
10592 | LIBS=$ac_check_lib_save_LIBS |
10593 | fi | |
81ecdfbb RW |
10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10595 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10596 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d7040cdb SE |
10597 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10598 | else | |
10599 | ||
10600 | lt_cv_dlopen="dyld" | |
10601 | lt_cv_dlopen_libs= | |
10602 | lt_cv_dlopen_self=yes | |
10603 | ||
10604 | fi | |
10605 | ||
10606 | ;; | |
10607 | ||
10608 | *) | |
81ecdfbb | 10609 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
d0ac1c44 | 10610 | if test "x$ac_cv_func_shl_load" = xyes; then : |
d7040cdb SE |
10611 | lt_cv_dlopen="shl_load" |
10612 | else | |
81ecdfbb RW |
10613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10614 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 10615 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
81ecdfbb | 10616 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10617 | else |
10618 | ac_check_lib_save_LIBS=$LIBS | |
10619 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10621 | /* end confdefs.h. */ |
10622 | ||
81ecdfbb RW |
10623 | /* Override any GCC internal prototype to avoid an error. |
10624 | Use char because int might match the return type of a GCC | |
10625 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10626 | #ifdef __cplusplus |
10627 | extern "C" | |
10628 | #endif | |
d7040cdb SE |
10629 | char shl_load (); |
10630 | int | |
10631 | main () | |
10632 | { | |
81ecdfbb | 10633 | return shl_load (); |
d7040cdb SE |
10634 | ; |
10635 | return 0; | |
10636 | } | |
10637 | _ACEOF | |
81ecdfbb | 10638 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
10639 | ac_cv_lib_dld_shl_load=yes |
10640 | else | |
81ecdfbb | 10641 | ac_cv_lib_dld_shl_load=no |
d7040cdb | 10642 | fi |
81ecdfbb RW |
10643 | rm -f core conftest.err conftest.$ac_objext \ |
10644 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
10645 | LIBS=$ac_check_lib_save_LIBS |
10646 | fi | |
81ecdfbb RW |
10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10648 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 10649 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
718a6fd8 | 10650 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
d7040cdb | 10651 | else |
81ecdfbb | 10652 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
d0ac1c44 | 10653 | if test "x$ac_cv_func_dlopen" = xyes; then : |
81ecdfbb | 10654 | lt_cv_dlopen="dlopen" |
d7040cdb | 10655 | else |
81ecdfbb RW |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10657 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10658 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb RW |
10659 | $as_echo_n "(cached) " >&6 |
10660 | else | |
10661 | ac_check_lib_save_LIBS=$LIBS | |
10662 | LIBS="-ldl $LIBS" | |
10663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d7040cdb | 10664 | /* end confdefs.h. */ |
d7040cdb | 10665 | |
81ecdfbb RW |
10666 | /* Override any GCC internal prototype to avoid an error. |
10667 | Use char because int might match the return type of a GCC | |
10668 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10669 | #ifdef __cplusplus |
10670 | extern "C" | |
d7040cdb | 10671 | #endif |
d7040cdb | 10672 | char dlopen (); |
d7040cdb SE |
10673 | int |
10674 | main () | |
10675 | { | |
81ecdfbb | 10676 | return dlopen (); |
d7040cdb SE |
10677 | ; |
10678 | return 0; | |
10679 | } | |
10680 | _ACEOF | |
81ecdfbb RW |
10681 | if ac_fn_c_try_link "$LINENO"; then : |
10682 | ac_cv_lib_dl_dlopen=yes | |
d7040cdb | 10683 | else |
81ecdfbb | 10684 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10685 | fi |
81ecdfbb RW |
10686 | rm -f core conftest.err conftest.$ac_objext \ |
10687 | conftest$ac_exeext conftest.$ac_ext | |
10688 | LIBS=$ac_check_lib_save_LIBS | |
d7040cdb | 10689 | fi |
81ecdfbb RW |
10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10691 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10692 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
81ecdfbb | 10693 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 10694 | else |
81ecdfbb RW |
10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10696 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 10697 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
81ecdfbb | 10698 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10699 | else |
10700 | ac_check_lib_save_LIBS=$LIBS | |
81ecdfbb RW |
10701 | LIBS="-lsvld $LIBS" |
10702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d7040cdb SE |
10703 | /* end confdefs.h. */ |
10704 | ||
81ecdfbb RW |
10705 | /* Override any GCC internal prototype to avoid an error. |
10706 | Use char because int might match the return type of a GCC | |
10707 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10708 | #ifdef __cplusplus |
10709 | extern "C" | |
10710 | #endif | |
d7040cdb SE |
10711 | char dlopen (); |
10712 | int | |
10713 | main () | |
10714 | { | |
81ecdfbb | 10715 | return dlopen (); |
d7040cdb SE |
10716 | ; |
10717 | return 0; | |
10718 | } | |
10719 | _ACEOF | |
81ecdfbb RW |
10720 | if ac_fn_c_try_link "$LINENO"; then : |
10721 | ac_cv_lib_svld_dlopen=yes | |
d7040cdb | 10722 | else |
81ecdfbb | 10723 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 10724 | fi |
81ecdfbb RW |
10725 | rm -f core conftest.err conftest.$ac_objext \ |
10726 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
10727 | LIBS=$ac_check_lib_save_LIBS |
10728 | fi | |
81ecdfbb RW |
10729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10730 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 10731 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
81ecdfbb | 10732 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
d7040cdb | 10733 | else |
81ecdfbb RW |
10734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10735 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 10736 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
81ecdfbb | 10737 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10738 | else |
10739 | ac_check_lib_save_LIBS=$LIBS | |
81ecdfbb RW |
10740 | LIBS="-ldld $LIBS" |
10741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d7040cdb SE |
10742 | /* end confdefs.h. */ |
10743 | ||
81ecdfbb RW |
10744 | /* Override any GCC internal prototype to avoid an error. |
10745 | Use char because int might match the return type of a GCC | |
10746 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10747 | #ifdef __cplusplus |
10748 | extern "C" | |
10749 | #endif | |
81ecdfbb | 10750 | char dld_link (); |
d7040cdb SE |
10751 | int |
10752 | main () | |
10753 | { | |
81ecdfbb | 10754 | return dld_link (); |
d7040cdb SE |
10755 | ; |
10756 | return 0; | |
10757 | } | |
10758 | _ACEOF | |
81ecdfbb | 10759 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
10760 | ac_cv_lib_dld_dld_link=yes |
10761 | else | |
81ecdfbb | 10762 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 10763 | fi |
81ecdfbb RW |
10764 | rm -f core conftest.err conftest.$ac_objext \ |
10765 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
10766 | LIBS=$ac_check_lib_save_LIBS |
10767 | fi | |
81ecdfbb RW |
10768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10769 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 10770 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
718a6fd8 | 10771 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
10772 | fi |
10773 | ||
10774 | ||
10775 | fi | |
10776 | ||
10777 | ||
10778 | fi | |
10779 | ||
10780 | ||
10781 | fi | |
10782 | ||
10783 | ||
10784 | fi | |
10785 | ||
10786 | ||
10787 | fi | |
10788 | ||
10789 | ;; | |
10790 | esac | |
10791 | ||
10792 | if test "x$lt_cv_dlopen" != xno; then | |
10793 | enable_dlopen=yes | |
10794 | else | |
10795 | enable_dlopen=no | |
10796 | fi | |
10797 | ||
10798 | case $lt_cv_dlopen in | |
10799 | dlopen) | |
10800 | save_CPPFLAGS="$CPPFLAGS" | |
10801 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10802 | ||
10803 | save_LDFLAGS="$LDFLAGS" | |
10804 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10805 | ||
10806 | save_LIBS="$LIBS" | |
10807 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10808 | ||
81ecdfbb RW |
10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10810 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 10811 | if ${lt_cv_dlopen_self+:} false; then : |
81ecdfbb | 10812 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10813 | else |
10814 | if test "$cross_compiling" = yes; then : | |
10815 | lt_cv_dlopen_self=cross | |
10816 | else | |
10817 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10818 | lt_status=$lt_dlunknown | |
10819 | cat > conftest.$ac_ext <<_LT_EOF | |
18bf5643 | 10820 | #line 10820 "configure" |
d7040cdb SE |
10821 | #include "confdefs.h" |
10822 | ||
10823 | #if HAVE_DLFCN_H | |
10824 | #include <dlfcn.h> | |
10825 | #endif | |
10826 | ||
10827 | #include <stdio.h> | |
10828 | ||
10829 | #ifdef RTLD_GLOBAL | |
10830 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10831 | #else | |
10832 | # ifdef DL_GLOBAL | |
10833 | # define LT_DLGLOBAL DL_GLOBAL | |
10834 | # else | |
10835 | # define LT_DLGLOBAL 0 | |
10836 | # endif | |
10837 | #endif | |
10838 | ||
10839 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10840 | find out it does not work in some platform. */ | |
10841 | #ifndef LT_DLLAZY_OR_NOW | |
10842 | # ifdef RTLD_LAZY | |
10843 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10844 | # else | |
10845 | # ifdef DL_LAZY | |
10846 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10847 | # else | |
10848 | # ifdef RTLD_NOW | |
10849 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10850 | # else | |
10851 | # ifdef DL_NOW | |
10852 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10853 | # else | |
10854 | # define LT_DLLAZY_OR_NOW 0 | |
10855 | # endif | |
10856 | # endif | |
10857 | # endif | |
10858 | # endif | |
10859 | #endif | |
10860 | ||
3725885a RW |
10861 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10862 | correspondingly for the symbols needed. */ | |
10863 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
f2c621e4 | 10864 | void fnord () __attribute__((visibility("default"))); |
3725885a RW |
10865 | #endif |
10866 | ||
f2c621e4 | 10867 | void fnord () { int i=42; } |
d7040cdb SE |
10868 | int main () |
10869 | { | |
10870 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10871 | int status = $lt_dlunknown; | |
10872 | ||
10873 | if (self) | |
10874 | { | |
10875 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
10876 | else |
10877 | { | |
10878 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10879 | else puts (dlerror ()); | |
10880 | } | |
d7040cdb SE |
10881 | /* dlclose (self); */ |
10882 | } | |
10883 | else | |
10884 | puts (dlerror ()); | |
10885 | ||
718a6fd8 | 10886 | return status; |
d7040cdb SE |
10887 | } |
10888 | _LT_EOF | |
81ecdfbb | 10889 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
10890 | (eval $ac_link) 2>&5 |
10891 | ac_status=$? | |
81ecdfbb RW |
10892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10893 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
d7040cdb SE |
10894 | (./conftest; exit; ) >&5 2>/dev/null |
10895 | lt_status=$? | |
10896 | case x$lt_status in | |
10897 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10898 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10899 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10900 | esac | |
10901 | else : | |
10902 | # compilation failed | |
10903 | lt_cv_dlopen_self=no | |
10904 | fi | |
10905 | fi | |
10906 | rm -fr conftest* | |
10907 | ||
10908 | ||
10909 | fi | |
81ecdfbb RW |
10910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
10911 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d7040cdb SE |
10912 | |
10913 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10914 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
10915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
10916 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 10917 | if ${lt_cv_dlopen_self_static+:} false; then : |
81ecdfbb | 10918 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10919 | else |
10920 | if test "$cross_compiling" = yes; then : | |
10921 | lt_cv_dlopen_self_static=cross | |
10922 | else | |
10923 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10924 | lt_status=$lt_dlunknown | |
10925 | cat > conftest.$ac_ext <<_LT_EOF | |
18bf5643 | 10926 | #line 10926 "configure" |
d7040cdb SE |
10927 | #include "confdefs.h" |
10928 | ||
10929 | #if HAVE_DLFCN_H | |
10930 | #include <dlfcn.h> | |
10931 | #endif | |
10932 | ||
10933 | #include <stdio.h> | |
10934 | ||
10935 | #ifdef RTLD_GLOBAL | |
10936 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10937 | #else | |
10938 | # ifdef DL_GLOBAL | |
10939 | # define LT_DLGLOBAL DL_GLOBAL | |
10940 | # else | |
10941 | # define LT_DLGLOBAL 0 | |
10942 | # endif | |
10943 | #endif | |
10944 | ||
10945 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10946 | find out it does not work in some platform. */ | |
10947 | #ifndef LT_DLLAZY_OR_NOW | |
10948 | # ifdef RTLD_LAZY | |
10949 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10950 | # else | |
10951 | # ifdef DL_LAZY | |
10952 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10953 | # else | |
10954 | # ifdef RTLD_NOW | |
10955 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10956 | # else | |
10957 | # ifdef DL_NOW | |
10958 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10959 | # else | |
10960 | # define LT_DLLAZY_OR_NOW 0 | |
10961 | # endif | |
10962 | # endif | |
10963 | # endif | |
10964 | # endif | |
10965 | #endif | |
10966 | ||
3725885a RW |
10967 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10968 | correspondingly for the symbols needed. */ | |
10969 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
f2c621e4 | 10970 | void fnord () __attribute__((visibility("default"))); |
3725885a RW |
10971 | #endif |
10972 | ||
f2c621e4 | 10973 | void fnord () { int i=42; } |
d7040cdb SE |
10974 | int main () |
10975 | { | |
10976 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10977 | int status = $lt_dlunknown; | |
10978 | ||
10979 | if (self) | |
10980 | { | |
10981 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
10982 | else |
10983 | { | |
10984 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10985 | else puts (dlerror ()); | |
10986 | } | |
d7040cdb SE |
10987 | /* dlclose (self); */ |
10988 | } | |
10989 | else | |
10990 | puts (dlerror ()); | |
10991 | ||
718a6fd8 | 10992 | return status; |
d7040cdb SE |
10993 | } |
10994 | _LT_EOF | |
81ecdfbb | 10995 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
10996 | (eval $ac_link) 2>&5 |
10997 | ac_status=$? | |
81ecdfbb RW |
10998 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10999 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
d7040cdb SE |
11000 | (./conftest; exit; ) >&5 2>/dev/null |
11001 | lt_status=$? | |
11002 | case x$lt_status in | |
11003 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11004 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11005 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11006 | esac | |
11007 | else : | |
11008 | # compilation failed | |
11009 | lt_cv_dlopen_self_static=no | |
11010 | fi | |
11011 | fi | |
11012 | rm -fr conftest* | |
11013 | ||
11014 | ||
11015 | fi | |
81ecdfbb RW |
11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11017 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
d7040cdb SE |
11018 | fi |
11019 | ||
11020 | CPPFLAGS="$save_CPPFLAGS" | |
11021 | LDFLAGS="$save_LDFLAGS" | |
11022 | LIBS="$save_LIBS" | |
11023 | ;; | |
11024 | esac | |
11025 | ||
11026 | case $lt_cv_dlopen_self in | |
11027 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11028 | *) enable_dlopen_self=unknown ;; | |
11029 | esac | |
11030 | ||
11031 | case $lt_cv_dlopen_self_static in | |
11032 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11033 | *) enable_dlopen_self_static=unknown ;; | |
11034 | esac | |
11035 | fi | |
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | striplib= | |
11054 | old_striplib= | |
81ecdfbb RW |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11056 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
d7040cdb SE |
11057 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11058 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11059 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11061 | $as_echo "yes" >&6; } | |
d7040cdb SE |
11062 | else |
11063 | # FIXME - insert some real tests, host_os isn't really good enough | |
11064 | case $host_os in | |
11065 | darwin*) | |
11066 | if test -n "$STRIP" ; then | |
11067 | striplib="$STRIP -x" | |
11068 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11070 | $as_echo "yes" >&6; } | |
d7040cdb | 11071 | else |
81ecdfbb RW |
11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11073 | $as_echo "no" >&6; } | |
d7040cdb SE |
11074 | fi |
11075 | ;; | |
11076 | *) | |
81ecdfbb RW |
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11078 | $as_echo "no" >&6; } | |
d7040cdb SE |
11079 | ;; |
11080 | esac | |
11081 | fi | |
11082 | ||
11083 | ||
11084 | ||
11085 | ||
11086 | ||
11087 | ||
11088 | ||
11089 | ||
11090 | ||
11091 | ||
11092 | ||
11093 | ||
11094 | # Report which library types will actually be built | |
81ecdfbb RW |
11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11096 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11098 | $as_echo "$can_build_shared" >&6; } | |
d7040cdb | 11099 | |
81ecdfbb RW |
11100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11101 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
d7040cdb SE |
11102 | test "$can_build_shared" = "no" && enable_shared=no |
11103 | ||
11104 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11105 | # are all built from PIC. | |
11106 | case $host_os in | |
11107 | aix3*) | |
11108 | test "$enable_shared" = yes && enable_static=no | |
11109 | if test -n "$RANLIB"; then | |
11110 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11111 | postinstall_cmds='$RANLIB $lib' | |
11112 | fi | |
11113 | ;; | |
11114 | ||
50e7d84b | 11115 | aix[4-9]*) |
d7040cdb SE |
11116 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11117 | test "$enable_shared" = yes && enable_static=no | |
11118 | fi | |
11119 | ;; | |
11120 | esac | |
81ecdfbb RW |
11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11122 | $as_echo "$enable_shared" >&6; } | |
d7040cdb | 11123 | |
81ecdfbb RW |
11124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11125 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
d7040cdb SE |
11126 | # Make sure either enable_shared or enable_static is yes. |
11127 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11129 | $as_echo "$enable_static" >&6; } | |
d7040cdb SE |
11130 | |
11131 | ||
11132 | ||
11133 | ||
11134 | fi | |
11135 | ac_ext=c | |
11136 | ac_cpp='$CPP $CPPFLAGS' | |
11137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11140 | ||
11141 | CC="$lt_save_CC" | |
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | ||
11147 | ||
11148 | ||
11149 | ||
11150 | ||
11151 | ||
11152 | ||
11153 | ||
11154 | ||
81ecdfbb | 11155 | ac_config_commands="$ac_config_commands libtool" |
d7040cdb SE |
11156 | |
11157 | ||
11158 | ||
11159 | ||
11160 | # Only expand once: | |
11161 | ||
11162 | ||
11163 | ||
b879806f AM |
11164 | # The tests for host and target for $enable_largefile require |
11165 | # canonical names. | |
11166 | ||
11167 | ||
11168 | ||
11169 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
11170 | # even in directories otherwise not depending on the $plugins option. | |
11171 | ||
11172 | ||
11173 | maybe_plugins=no | |
11174 | for ac_header in dlfcn.h | |
11175 | do : | |
11176 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
11177 | " | |
d0ac1c44 | 11178 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
b879806f AM |
11179 | cat >>confdefs.h <<_ACEOF |
11180 | #define HAVE_DLFCN_H 1 | |
11181 | _ACEOF | |
11182 | maybe_plugins=yes | |
11183 | fi | |
11184 | ||
11185 | done | |
11186 | ||
11187 | for ac_header in windows.h | |
11188 | do : | |
11189 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
11190 | " | |
d0ac1c44 | 11191 | if test "x$ac_cv_header_windows_h" = xyes; then : |
b879806f AM |
11192 | cat >>confdefs.h <<_ACEOF |
11193 | #define HAVE_WINDOWS_H 1 | |
11194 | _ACEOF | |
11195 | maybe_plugins=yes | |
11196 | fi | |
11197 | ||
11198 | done | |
11199 | ||
11200 | ||
11201 | # Check whether --enable-plugins was given. | |
11202 | if test "${enable_plugins+set}" = set; then : | |
11203 | enableval=$enable_plugins; case "${enableval}" in | |
11204 | no) plugins=no ;; | |
11205 | *) plugins=yes | |
11206 | if test "$maybe_plugins" != "yes" ; then | |
d0ac1c44 | 11207 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
b879806f AM |
11208 | fi ;; |
11209 | esac | |
11210 | else | |
11211 | plugins=$maybe_plugins | |
11212 | ||
11213 | fi | |
11214 | ||
2974be62 | 11215 | if test "$plugins" = "yes"; then |
3cba8b6c L |
11216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
11217 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
d0ac1c44 | 11218 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11219 | $as_echo_n "(cached) " >&6 |
11220 | else | |
11221 | ac_func_search_save_LIBS=$LIBS | |
11222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11223 | /* end confdefs.h. */ | |
11224 | ||
11225 | /* Override any GCC internal prototype to avoid an error. | |
11226 | Use char because int might match the return type of a GCC | |
11227 | builtin and then its argument prototype would still apply. */ | |
11228 | #ifdef __cplusplus | |
11229 | extern "C" | |
11230 | #endif | |
3cba8b6c | 11231 | char dlsym (); |
2974be62 AM |
11232 | int |
11233 | main () | |
11234 | { | |
3cba8b6c | 11235 | return dlsym (); |
2974be62 AM |
11236 | ; |
11237 | return 0; | |
11238 | } | |
11239 | _ACEOF | |
11240 | for ac_lib in '' dl; do | |
11241 | if test -z "$ac_lib"; then | |
11242 | ac_res="none required" | |
11243 | else | |
11244 | ac_res=-l$ac_lib | |
11245 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11246 | fi | |
11247 | if ac_fn_c_try_link "$LINENO"; then : | |
3cba8b6c | 11248 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
11249 | fi |
11250 | rm -f core conftest.err conftest.$ac_objext \ | |
11251 | conftest$ac_exeext | |
d0ac1c44 | 11252 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11253 | break |
11254 | fi | |
11255 | done | |
d0ac1c44 | 11256 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11257 | |
11258 | else | |
3cba8b6c | 11259 | ac_cv_search_dlsym=no |
2974be62 AM |
11260 | fi |
11261 | rm conftest.$ac_ext | |
11262 | LIBS=$ac_func_search_save_LIBS | |
11263 | fi | |
3cba8b6c L |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
11265 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
11266 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
11267 | if test "$ac_res" != no; then : |
11268 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11269 | ||
11270 | fi | |
11271 | ||
11272 | fi | |
b879806f AM |
11273 | |
11274 | ||
11275 | case "${host}" in | |
c8693053 RO |
11276 | sparc-*-solaris*|i?86-*-solaris*) |
11277 | # On native 32-bit Solaris/SPARC and x86, large-file and procfs support | |
11278 | # were mutually exclusive until Solaris 11.3. Without procfs support, | |
11279 | # the bfd/ elf module cannot provide certain routines such as | |
11280 | # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user | |
11281 | # explicitly requested large-file support through the | |
11282 | # --enable-largefile switch, disable large-file support in favor of | |
11283 | # procfs support. | |
11284 | # | |
11285 | # Check if <sys/procfs.h> is incompatible with large-file support. | |
11286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11287 | /* end confdefs.h. */ | |
11288 | #define _FILE_OFFSET_BITS 64 | |
11289 | #define _STRUCTURED_PROC 1 | |
11290 | #include <sys/procfs.h> | |
11291 | int | |
11292 | main () | |
11293 | { | |
11294 | ||
11295 | ; | |
11296 | return 0; | |
11297 | } | |
11298 | _ACEOF | |
11299 | if ac_fn_c_try_compile "$LINENO"; then : | |
11300 | acx_cv_procfs_lfs=yes | |
11301 | else | |
11302 | acx_cv_procfs_lfs=no | |
11303 | fi | |
11304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11305 | # | |
11306 | # Forcefully disable large-file support only if necessary, gdb is in | |
11307 | # tree and enabled. | |
11308 | if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ | |
11309 | -a -d $srcdir/../gdb -a "$enable_gdb" != no; then | |
11310 | : ${enable_largefile="no"} | |
11311 | if test "$plugins" = yes; then | |
11312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
11313 | plugin support disabled; require large-file support which is incompatible with GDB." >&5 | |
11314 | $as_echo "$as_me: WARNING: | |
11315 | plugin support disabled; require large-file support which is incompatible with GDB." >&2;} | |
11316 | plugins=no | |
11317 | fi | |
11318 | fi | |
11319 | # | |
11320 | # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the | |
11321 | # benefit of g++ 9+ which predefines it on Solaris. | |
11322 | if test "$enable_largefile" = no; then | |
11323 | LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" | |
11324 | ||
11325 | fi | |
b879806f AM |
11326 | ;; |
11327 | esac | |
11328 | ||
11329 | # Check whether --enable-largefile was given. | |
11330 | if test "${enable_largefile+set}" = set; then : | |
11331 | enableval=$enable_largefile; | |
11332 | fi | |
11333 | ||
11334 | if test "$enable_largefile" != no; then | |
11335 | ||
11336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
11337 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
d0ac1c44 | 11338 | if ${ac_cv_sys_largefile_CC+:} false; then : |
b879806f AM |
11339 | $as_echo_n "(cached) " >&6 |
11340 | else | |
11341 | ac_cv_sys_largefile_CC=no | |
11342 | if test "$GCC" != yes; then | |
11343 | ac_save_CC=$CC | |
11344 | while :; do | |
11345 | # IRIX 6.2 and later do not support large files by default, | |
11346 | # so use the C compiler's -n32 option if that helps. | |
11347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11348 | /* end confdefs.h. */ | |
11349 | #include <sys/types.h> | |
11350 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11351 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11352 | since some C++ compilers masquerading as C compilers | |
11353 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11354 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11355 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11356 | && LARGE_OFF_T % 2147483647 == 1) | |
11357 | ? 1 : -1]; | |
11358 | int | |
11359 | main () | |
11360 | { | |
11361 | ||
11362 | ; | |
11363 | return 0; | |
11364 | } | |
11365 | _ACEOF | |
11366 | if ac_fn_c_try_compile "$LINENO"; then : | |
11367 | break | |
11368 | fi | |
11369 | rm -f core conftest.err conftest.$ac_objext | |
11370 | CC="$CC -n32" | |
11371 | if ac_fn_c_try_compile "$LINENO"; then : | |
11372 | ac_cv_sys_largefile_CC=' -n32'; break | |
11373 | fi | |
11374 | rm -f core conftest.err conftest.$ac_objext | |
11375 | break | |
11376 | done | |
11377 | CC=$ac_save_CC | |
11378 | rm -f conftest.$ac_ext | |
11379 | fi | |
11380 | fi | |
11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
11382 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
11383 | if test "$ac_cv_sys_largefile_CC" != no; then | |
11384 | CC=$CC$ac_cv_sys_largefile_CC | |
11385 | fi | |
11386 | ||
11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
11388 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
d0ac1c44 | 11389 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
b879806f AM |
11390 | $as_echo_n "(cached) " >&6 |
11391 | else | |
11392 | while :; do | |
11393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11394 | /* end confdefs.h. */ | |
11395 | #include <sys/types.h> | |
11396 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11397 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11398 | since some C++ compilers masquerading as C compilers | |
11399 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11400 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11401 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11402 | && LARGE_OFF_T % 2147483647 == 1) | |
11403 | ? 1 : -1]; | |
11404 | int | |
11405 | main () | |
11406 | { | |
11407 | ||
11408 | ; | |
11409 | return 0; | |
11410 | } | |
11411 | _ACEOF | |
11412 | if ac_fn_c_try_compile "$LINENO"; then : | |
11413 | ac_cv_sys_file_offset_bits=no; break | |
11414 | fi | |
11415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11417 | /* end confdefs.h. */ | |
11418 | #define _FILE_OFFSET_BITS 64 | |
11419 | #include <sys/types.h> | |
11420 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11421 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11422 | since some C++ compilers masquerading as C compilers | |
11423 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11424 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11425 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11426 | && LARGE_OFF_T % 2147483647 == 1) | |
11427 | ? 1 : -1]; | |
11428 | int | |
11429 | main () | |
11430 | { | |
11431 | ||
11432 | ; | |
11433 | return 0; | |
11434 | } | |
11435 | _ACEOF | |
11436 | if ac_fn_c_try_compile "$LINENO"; then : | |
11437 | ac_cv_sys_file_offset_bits=64; break | |
11438 | fi | |
11439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11440 | ac_cv_sys_file_offset_bits=unknown | |
11441 | break | |
11442 | done | |
11443 | fi | |
11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
11445 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
11446 | case $ac_cv_sys_file_offset_bits in #( | |
11447 | no | unknown) ;; | |
11448 | *) | |
11449 | cat >>confdefs.h <<_ACEOF | |
11450 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
11451 | _ACEOF | |
11452 | ;; | |
11453 | esac | |
11454 | rm -rf conftest* | |
11455 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
11457 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
d0ac1c44 | 11458 | if ${ac_cv_sys_large_files+:} false; then : |
b879806f AM |
11459 | $as_echo_n "(cached) " >&6 |
11460 | else | |
11461 | while :; do | |
11462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11463 | /* end confdefs.h. */ | |
11464 | #include <sys/types.h> | |
11465 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11466 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11467 | since some C++ compilers masquerading as C compilers | |
11468 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11469 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11470 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11471 | && LARGE_OFF_T % 2147483647 == 1) | |
11472 | ? 1 : -1]; | |
11473 | int | |
11474 | main () | |
11475 | { | |
11476 | ||
11477 | ; | |
11478 | return 0; | |
11479 | } | |
11480 | _ACEOF | |
11481 | if ac_fn_c_try_compile "$LINENO"; then : | |
11482 | ac_cv_sys_large_files=no; break | |
11483 | fi | |
11484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11486 | /* end confdefs.h. */ | |
11487 | #define _LARGE_FILES 1 | |
11488 | #include <sys/types.h> | |
11489 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11490 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11491 | since some C++ compilers masquerading as C compilers | |
11492 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11493 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11494 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11495 | && LARGE_OFF_T % 2147483647 == 1) | |
11496 | ? 1 : -1]; | |
11497 | int | |
11498 | main () | |
11499 | { | |
11500 | ||
11501 | ; | |
11502 | return 0; | |
11503 | } | |
11504 | _ACEOF | |
11505 | if ac_fn_c_try_compile "$LINENO"; then : | |
11506 | ac_cv_sys_large_files=1; break | |
11507 | fi | |
11508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11509 | ac_cv_sys_large_files=unknown | |
11510 | break | |
11511 | done | |
11512 | fi | |
11513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
11514 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
11515 | case $ac_cv_sys_large_files in #( | |
11516 | no | unknown) ;; | |
11517 | *) | |
11518 | cat >>confdefs.h <<_ACEOF | |
11519 | #define _LARGE_FILES $ac_cv_sys_large_files | |
11520 | _ACEOF | |
11521 | ;; | |
11522 | esac | |
11523 | rm -rf conftest* | |
11524 | fi | |
d0ac1c44 SM |
11525 | |
11526 | ||
b879806f AM |
11527 | fi |
11528 | ||
11529 | ||
11530 | ||
43e05cd4 AM |
11531 | ac_checking= |
11532 | . ${srcdir}/../bfd/development.sh | |
11533 | test "$development" = true && ac_checking=yes | |
11534 | # Check whether --enable-checking was given. | |
11535 | if test "${enable_checking+set}" = set; then : | |
11536 | enableval=$enable_checking; case "${enableval}" in | |
11537 | no|none) ac_checking= ;; | |
11538 | *) ac_checking=yes ;; | |
11539 | esac | |
11540 | fi | |
11541 | if test x$ac_checking != x ; then | |
11542 | ||
11543 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h | |
11544 | ||
11545 | fi | |
11546 | ||
81ecdfbb RW |
11547 | # Check whether --enable-targets was given. |
11548 | if test "${enable_targets+set}" = set; then : | |
11549 | enableval=$enable_targets; case "${enableval}" in | |
d0ac1c44 | 11550 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 |
d7040cdb SE |
11551 | ;; |
11552 | no) enable_targets= ;; | |
11553 | *) enable_targets=$enableval ;; | |
11554 | esac | |
81ecdfbb RW |
11555 | fi |
11556 | ||
e6f6aa8d | 11557 | |
9cb80f72 RM |
11558 | # Check whether --enable-deterministic-archives was given. |
11559 | if test "${enable_deterministic_archives+set}" = set; then : | |
11560 | enableval=$enable_deterministic_archives; | |
11561 | if test "${enableval}" = no; then | |
11562 | default_ar_deterministic=0 | |
11563 | else | |
11564 | default_ar_deterministic=1 | |
11565 | fi | |
11566 | else | |
11567 | default_ar_deterministic=0 | |
11568 | fi | |
11569 | ||
11570 | ||
11571 | ||
11572 | cat >>confdefs.h <<_ACEOF | |
11573 | #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic | |
11574 | _ACEOF | |
11575 | ||
11576 | ||
e6f6aa8d | 11577 | |
7fac9594 NC |
11578 | # Check whether --enable-default-strings-all was given. |
11579 | if test "${enable_default_strings_all+set}" = set; then : | |
11580 | enableval=$enable_default_strings_all; | |
11581 | if test "${enableval}" = no; then | |
11582 | default_strings_all=0 | |
11583 | else | |
11584 | default_strings_all=1 | |
11585 | fi | |
11586 | else | |
11587 | default_strings_all=1 | |
11588 | fi | |
11589 | ||
11590 | ||
11591 | ||
e6f6aa8d NC |
11592 | cat >>confdefs.h <<_ACEOF |
11593 | #define DEFAULT_STRINGS_ALL $default_strings_all | |
11594 | _ACEOF | |
11595 | ||
11596 | ||
11597 | ||
11598 | # Check whether --enable-f-for-ifunc-symbols was given. | |
11599 | if test "${enable_f_for_ifunc_symbols+set}" = set; then : | |
11600 | enableval=$enable_f_for_ifunc_symbols; | |
11601 | if test "${enableval}" = no; then | |
11602 | default_f_for_ifunc=0 | |
11603 | else | |
11604 | default_f_for_ifunc=1 | |
11605 | fi | |
11606 | else | |
11607 | default_f_for_ifunc=0 | |
11608 | fi | |
11609 | ||
11610 | ||
11611 | ||
11612 | cat >>confdefs.h <<_ACEOF | |
11613 | #define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc | |
11614 | _ACEOF | |
11615 | ||
11616 | ||
11617 | ||
c46b7066 NC |
11618 | # Check whether --enable-follow-debug-links was given. |
11619 | if test "${enable_follow_debug_links+set}" = set; then : | |
11620 | enableval=$enable_follow_debug_links; | |
11621 | if test "${enableval}" = no; then | |
11622 | default_for_follow_links=0 | |
11623 | else | |
11624 | default_for_follow_links=1 | |
11625 | fi | |
11626 | else | |
11627 | default_for_follow_links=1 | |
11628 | fi | |
11629 | ||
11630 | ||
11631 | ||
11632 | cat >>confdefs.h <<_ACEOF | |
11633 | #define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links | |
11634 | _ACEOF | |
11635 | ||
11636 | ||
11637 | ||
11638 | ||
f6720b1c | 11639 | |
18bf5643 NC |
11640 | # Check whether --enable-colored-disassembly was given. |
11641 | if test "${enable_colored_disassembly+set}" = set; then : | |
11642 | enableval=$enable_colored_disassembly; | |
11643 | if test "${enableval}" = no; then | |
11644 | default_for_colored_disassembly=0 | |
11645 | else | |
11646 | default_for_colored_disassembly=1 | |
11647 | fi | |
11648 | else | |
11649 | default_for_colored_disassembly=0 | |
11650 | fi | |
11651 | ||
11652 | ||
11653 | ||
11654 | cat >>confdefs.h <<_ACEOF | |
11655 | #define DEFAULT_FOR_COLORED_DISASSEMBLY $default_for_colored_disassembly | |
11656 | _ACEOF | |
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
f6720b1c AM |
11662 | |
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11668 | if test -n "$ac_tool_prefix"; then | |
11669 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11670 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11672 | $as_echo_n "checking for $ac_word... " >&6; } | |
11673 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
11674 | $as_echo_n "(cached) " >&6 | |
11675 | else | |
11676 | case $PKG_CONFIG in | |
11677 | [\\/]* | ?:[\\/]*) | |
11678 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11679 | ;; | |
11680 | *) | |
11681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11682 | for as_dir in $PATH | |
11683 | do | |
11684 | IFS=$as_save_IFS | |
11685 | test -z "$as_dir" && as_dir=. | |
11686 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11688 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11690 | break 2 | |
11691 | fi | |
11692 | done | |
11693 | done | |
11694 | IFS=$as_save_IFS | |
11695 | ||
11696 | ;; | |
11697 | esac | |
11698 | fi | |
11699 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11700 | if test -n "$PKG_CONFIG"; then | |
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11702 | $as_echo "$PKG_CONFIG" >&6; } | |
11703 | else | |
11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11705 | $as_echo "no" >&6; } | |
11706 | fi | |
11707 | ||
11708 | ||
11709 | fi | |
11710 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11711 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11712 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11713 | set dummy pkg-config; ac_word=$2 | |
11714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11715 | $as_echo_n "checking for $ac_word... " >&6; } | |
11716 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
11717 | $as_echo_n "(cached) " >&6 | |
11718 | else | |
11719 | case $ac_pt_PKG_CONFIG in | |
11720 | [\\/]* | ?:[\\/]*) | |
11721 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11722 | ;; | |
11723 | *) | |
11724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11725 | for as_dir in $PATH | |
11726 | do | |
11727 | IFS=$as_save_IFS | |
11728 | test -z "$as_dir" && as_dir=. | |
11729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11731 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11733 | break 2 | |
11734 | fi | |
11735 | done | |
11736 | done | |
11737 | IFS=$as_save_IFS | |
11738 | ||
11739 | ;; | |
11740 | esac | |
11741 | fi | |
11742 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11743 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
11745 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
11746 | else | |
11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11748 | $as_echo "no" >&6; } | |
11749 | fi | |
11750 | ||
11751 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11752 | PKG_CONFIG="" | |
11753 | else | |
11754 | case $cross_compiling:$ac_tool_warned in | |
11755 | yes:) | |
11756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11757 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11758 | ac_tool_warned=yes ;; | |
11759 | esac | |
11760 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11761 | fi | |
11762 | else | |
11763 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11764 | fi | |
11765 | ||
11766 | fi | |
11767 | if test -n "$PKG_CONFIG"; then | |
11768 | _pkg_min_version=0.9.0 | |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11770 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11771 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11773 | $as_echo "yes" >&6; } | |
11774 | else | |
11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11776 | $as_echo "no" >&6; } | |
11777 | PKG_CONFIG="" | |
11778 | fi | |
11779 | fi | |
11780 | ||
11781 | # Handle optional debuginfod support | |
301a9420 AM |
11782 | |
11783 | # Check whether --with-debuginfod was given. | |
11784 | if test "${with_debuginfod+set}" = set; then : | |
11785 | withval=$with_debuginfod; | |
11786 | else | |
11787 | with_debuginfod=auto | |
11788 | fi | |
11789 | ||
11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5 | |
11791 | $as_echo_n "checking whether to use debuginfod... " >&6; } | |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5 | |
11793 | $as_echo "$with_debuginfod" >&6; } | |
11794 | ||
f6720b1c | 11795 | if test "x$with_debuginfod" != xno; then |
301a9420 | 11796 | |
f6720b1c AM |
11797 | pkg_failed=no |
11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5 | |
11799 | $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; } | |
11800 | ||
11801 | if test -n "$DEBUGINFOD_CFLAGS"; then | |
11802 | pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS" | |
11803 | elif test -n "$PKG_CONFIG"; then | |
11804 | if test -n "$PKG_CONFIG" && \ | |
11805 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5 | |
11806 | ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5 | |
11807 | ac_status=$? | |
11808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11809 | test $ac_status = 0; }; then | |
11810 | pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null` | |
11811 | test "x$?" != "x0" && pkg_failed=yes | |
301a9420 | 11812 | else |
f6720b1c | 11813 | pkg_failed=yes |
301a9420 | 11814 | fi |
f6720b1c AM |
11815 | else |
11816 | pkg_failed=untried | |
301a9420 | 11817 | fi |
f6720b1c AM |
11818 | if test -n "$DEBUGINFOD_LIBS"; then |
11819 | pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS" | |
11820 | elif test -n "$PKG_CONFIG"; then | |
11821 | if test -n "$PKG_CONFIG" && \ | |
11822 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5 | |
11823 | ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5 | |
11824 | ac_status=$? | |
11825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11826 | test $ac_status = 0; }; then | |
11827 | pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null` | |
11828 | test "x$?" != "x0" && pkg_failed=yes | |
11829 | else | |
11830 | pkg_failed=yes | |
301a9420 | 11831 | fi |
f6720b1c AM |
11832 | else |
11833 | pkg_failed=untried | |
301a9420 AM |
11834 | fi |
11835 | ||
377170fa L |
11836 | if test $pkg_failed = no; then |
11837 | pkg_save_LDFLAGS="$LDFLAGS" | |
11838 | LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS" | |
11839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d70f978b L |
11840 | /* end confdefs.h. */ |
11841 | ||
11842 | int | |
11843 | main () | |
11844 | { | |
377170fa | 11845 | |
d70f978b L |
11846 | ; |
11847 | return 0; | |
11848 | } | |
11849 | _ACEOF | |
11850 | if ac_fn_c_try_link "$LINENO"; then : | |
377170fa | 11851 | |
d70f978b L |
11852 | else |
11853 | pkg_failed=yes | |
11854 | fi | |
11855 | rm -f core conftest.err conftest.$ac_objext \ | |
11856 | conftest$ac_exeext conftest.$ac_ext | |
377170fa L |
11857 | LDFLAGS=$pkg_save_LDFLAGS |
11858 | fi | |
d70f978b | 11859 | |
301a9420 | 11860 | |
301a9420 | 11861 | |
f6720b1c AM |
11862 | if test $pkg_failed = yes; then |
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11864 | $as_echo "no" >&6; } | |
301a9420 | 11865 | |
f6720b1c AM |
11866 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
11867 | _pkg_short_errors_supported=yes | |
11868 | else | |
11869 | _pkg_short_errors_supported=no | |
11870 | fi | |
11871 | if test $_pkg_short_errors_supported = yes; then | |
11872 | DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1` | |
11873 | else | |
11874 | DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1` | |
11875 | fi | |
11876 | # Put the nasty error message in config.log where it belongs | |
11877 | echo "$DEBUGINFOD_PKG_ERRORS" >&5 | |
301a9420 | 11878 | |
f6720b1c AM |
11879 | if test "x$with_debuginfod" = xyes; then |
11880 | as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5 | |
11881 | else | |
11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5 | |
11883 | $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;} | |
11884 | fi | |
11885 | elif test $pkg_failed = untried; then | |
11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11887 | $as_echo "no" >&6; } | |
11888 | if test "x$with_debuginfod" = xyes; then | |
11889 | as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5 | |
11890 | else | |
11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5 | |
11892 | $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;} | |
11893 | fi | |
11894 | else | |
11895 | DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS | |
11896 | DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS | |
11897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11898 | $as_echo "yes" >&6; } | |
11899 | ||
11900 | $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h | |
11901 | ||
11902 | fi | |
11903 | else | |
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5 | |
11905 | $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;} | |
301a9420 AM |
11906 | fi |
11907 | ||
11908 | ||
094e34f2 NA |
11909 | # Check whether --enable-libctf was given. |
11910 | if test "${enable_libctf+set}" = set; then : | |
11911 | enableval=$enable_libctf; | |
11912 | case "$enableval" in | |
11913 | yes|no) ;; | |
11914 | *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;; | |
11915 | esac | |
11916 | ||
11917 | else | |
11918 | enable_libctf=yes | |
11919 | fi | |
11920 | ||
11921 | ||
11922 | if test "${enable_libctf}" = yes; then | |
11923 | ||
11924 | $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h | |
11925 | ||
11926 | fi | |
11927 | if test "${enable_libctf}" = yes; then | |
11928 | ENABLE_LIBCTF_TRUE= | |
11929 | ENABLE_LIBCTF_FALSE='#' | |
11930 | else | |
11931 | ENABLE_LIBCTF_TRUE='#' | |
11932 | ENABLE_LIBCTF_FALSE= | |
11933 | fi | |
11934 | ||
11935 | ||
d7040cdb | 11936 | |
270c9937 JB |
11937 | # Set the 'development' global. |
11938 | . $srcdir/../bfd/development.sh | |
11939 | ||
c5da1932 VZ |
11940 | # Set acp_cpp_for_build variable |
11941 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" | |
11942 | ||
9780e045 | 11943 | # Default set of GCC warnings to enable. |
397841b5 | 11944 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
c5da1932 | 11945 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
11946 | |
11947 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
397841b5 AM |
11948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11949 | /* end confdefs.h. */ | |
11950 | __GNUC__ | |
11951 | _ACEOF | |
11952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11953 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
397841b5 AM |
11954 | |
11955 | else | |
11956 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
11957 | fi | |
11958 | rm -f conftest* | |
11959 | ||
d7040cdb | 11960 | |
9780e045 NC |
11961 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
11962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11963 | /* end confdefs.h. */ | |
11964 | __GNUC__ | |
11965 | _ACEOF | |
11966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11967 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
9780e045 NC |
11968 | |
11969 | else | |
491cf317 TO |
11970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11971 | /* end confdefs.h. */ | |
11972 | __clang__ | |
11973 | _ACEOF | |
11974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11975 | $EGREP "^__clang__$" >/dev/null 2>&1; then : | |
9780e045 NC |
11976 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" |
11977 | fi | |
11978 | rm -f conftest* | |
11979 | ||
491cf317 TO |
11980 | fi |
11981 | rm -f conftest* | |
11982 | ||
9780e045 | 11983 | |
6757cf57 TS |
11984 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
11985 | WARN_WRITE_STRINGS="" | |
11986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11987 | /* end confdefs.h. */ | |
11988 | __GNUC__ | |
11989 | _ACEOF | |
11990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11991 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
6757cf57 TS |
11992 | |
11993 | else | |
11994 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
11995 | fi | |
11996 | rm -f conftest* | |
11997 | ||
9780e045 | 11998 | |
96fe4562 | 11999 | # Verify CC_FOR_BUILD to be compatible with warning flags |
c5da1932 VZ |
12000 | |
12001 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
12002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12003 | /* end confdefs.h. */ | |
12004 | __GNUC__ | |
12005 | _ACEOF | |
12006 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 12007 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
12008 | |
12009 | else | |
12010 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" | |
12011 | fi | |
12012 | rm -f conftest* | |
12013 | ||
12014 | ||
12015 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. | |
12016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12017 | /* end confdefs.h. */ | |
12018 | __GNUC__ | |
12019 | _ACEOF | |
12020 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 12021 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
12022 | |
12023 | else | |
491cf317 TO |
12024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12025 | /* end confdefs.h. */ | |
12026 | __clang__ | |
12027 | _ACEOF | |
12028 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
12029 | $EGREP "^__clang__$" >/dev/null 2>&1; then : | |
c5da1932 VZ |
12030 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" |
12031 | fi | |
12032 | rm -f conftest* | |
12033 | ||
491cf317 TO |
12034 | fi |
12035 | rm -f conftest* | |
12036 | ||
c5da1932 | 12037 | |
81ecdfbb RW |
12038 | # Check whether --enable-werror was given. |
12039 | if test "${enable_werror+set}" = set; then : | |
12040 | enableval=$enable_werror; case "${enableval}" in | |
d7040cdb SE |
12041 | yes | y) ERROR_ON_WARNING="yes" ;; |
12042 | no | n) ERROR_ON_WARNING="no" ;; | |
d0ac1c44 | 12043 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
d7040cdb | 12044 | esac |
81ecdfbb RW |
12045 | fi |
12046 | ||
d7040cdb | 12047 | |
397841b5 | 12048 | # Disable -Wformat by default when using gcc on mingw |
bb8541b9 L |
12049 | case "${host}" in |
12050 | *-*-mingw32*) | |
12051 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
12052 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
c5da1932 | 12053 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
bb8541b9 L |
12054 | fi |
12055 | ;; | |
12056 | *) ;; | |
12057 | esac | |
12058 | ||
270c9937 JB |
12059 | # Enable -Werror by default when using gcc. Turn it off for releases. |
12060 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
d7040cdb SE |
12061 | ERROR_ON_WARNING=yes |
12062 | fi | |
12063 | ||
12064 | NO_WERROR= | |
12065 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 12066 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
c5da1932 | 12067 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
d7040cdb SE |
12068 | NO_WERROR="-Wno-error" |
12069 | fi | |
12070 | ||
12071 | if test "${GCC}" = yes ; then | |
12072 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
c5da1932 | 12073 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
d7040cdb SE |
12074 | fi |
12075 | ||
81ecdfbb RW |
12076 | # Check whether --enable-build-warnings was given. |
12077 | if test "${enable_build_warnings+set}" = set; then : | |
12078 | enableval=$enable_build_warnings; case "${enableval}" in | |
c5da1932 VZ |
12079 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
12080 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
d7040cdb SE |
12081 | no) if test "${GCC}" = yes ; then |
12082 | WARN_CFLAGS="-w" | |
c5da1932 | 12083 | WARN_CFLAGS_FOR_BUILD="-w" |
d7040cdb SE |
12084 | fi;; |
12085 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c5da1932 VZ |
12086 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
12087 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; | |
d7040cdb | 12088 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c5da1932 VZ |
12089 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
12090 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
12091 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` | |
12092 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
d7040cdb | 12093 | esac |
81ecdfbb RW |
12094 | fi |
12095 | ||
d7040cdb SE |
12096 | |
12097 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
12098 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
12099 | fi | |
12100 | ||
12101 | ||
12102 | ||
12103 | ||
12104 | ||
6757cf57 | 12105 | |
c5da1932 | 12106 | |
81ecdfbb | 12107 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb SE |
12108 | |
12109 | ||
df7b86aa NC |
12110 | |
12111 | ||
d7040cdb | 12112 | if test -z "$target" ; then |
d0ac1c44 | 12113 | as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
d7040cdb SE |
12114 | fi |
12115 | if test -z "$host" ; then | |
d0ac1c44 | 12116 | as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5 |
d7040cdb SE |
12117 | fi |
12118 | ||
12119 | for ac_prog in 'bison -y' byacc | |
12120 | do | |
12121 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12122 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12124 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12125 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 12126 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12127 | else |
12128 | if test -n "$YACC"; then | |
12129 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
12130 | else | |
12131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12132 | for as_dir in $PATH | |
12133 | do | |
12134 | IFS=$as_save_IFS | |
12135 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12136 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12138 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 12139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12140 | break 2 |
12141 | fi | |
12142 | done | |
81ecdfbb RW |
12143 | done |
12144 | IFS=$as_save_IFS | |
d7040cdb SE |
12145 | |
12146 | fi | |
12147 | fi | |
12148 | YACC=$ac_cv_prog_YACC | |
12149 | if test -n "$YACC"; then | |
81ecdfbb RW |
12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12151 | $as_echo "$YACC" >&6; } | |
d7040cdb | 12152 | else |
81ecdfbb RW |
12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12154 | $as_echo "no" >&6; } | |
d7040cdb SE |
12155 | fi |
12156 | ||
81ecdfbb | 12157 | |
d7040cdb SE |
12158 | test -n "$YACC" && break |
12159 | done | |
12160 | test -n "$YACC" || YACC="yacc" | |
12161 | ||
12162 | for ac_prog in flex lex | |
12163 | do | |
12164 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12165 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12167 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12168 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 12169 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12170 | else |
12171 | if test -n "$LEX"; then | |
12172 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
12173 | else | |
12174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12175 | for as_dir in $PATH | |
12176 | do | |
12177 | IFS=$as_save_IFS | |
12178 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12179 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12181 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 12182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12183 | break 2 |
12184 | fi | |
12185 | done | |
81ecdfbb RW |
12186 | done |
12187 | IFS=$as_save_IFS | |
d7040cdb SE |
12188 | |
12189 | fi | |
12190 | fi | |
12191 | LEX=$ac_cv_prog_LEX | |
12192 | if test -n "$LEX"; then | |
81ecdfbb RW |
12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12194 | $as_echo "$LEX" >&6; } | |
d7040cdb | 12195 | else |
81ecdfbb RW |
12196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12197 | $as_echo "no" >&6; } | |
d7040cdb SE |
12198 | fi |
12199 | ||
81ecdfbb | 12200 | |
d7040cdb SE |
12201 | test -n "$LEX" && break |
12202 | done | |
12203 | test -n "$LEX" || LEX=":" | |
12204 | ||
3d961d0d AM |
12205 | case "$LEX" in |
12206 | :|*"missing "*) ;; | |
12207 | *) cat >conftest.l <<_ACEOF | |
81ecdfbb RW |
12208 | %% |
12209 | a { ECHO; } | |
12210 | b { REJECT; } | |
12211 | c { yymore (); } | |
12212 | d { yyless (1); } | |
d0ac1c44 SM |
12213 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
12214 | yyless ((input () != 0)); } | |
81ecdfbb RW |
12215 | f { unput (yytext[0]); } |
12216 | . { BEGIN INITIAL; } | |
12217 | %% | |
12218 | #ifdef YYTEXT_POINTER | |
12219 | extern char *yytext; | |
d7040cdb | 12220 | #endif |
d7040cdb | 12221 | int |
81ecdfbb | 12222 | main (void) |
d7040cdb | 12223 | { |
81ecdfbb | 12224 | return ! yylex () + ! yywrap (); |
d7040cdb SE |
12225 | } |
12226 | _ACEOF | |
81ecdfbb RW |
12227 | { { ac_try="$LEX conftest.l" |
12228 | case "(($ac_try" in | |
12229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12230 | *) ac_try_echo=$ac_try;; | |
12231 | esac | |
12232 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
12233 | $as_echo "$ac_try_echo"; } >&5 | |
12234 | (eval "$LEX conftest.l") 2>&5 | |
d7040cdb | 12235 | ac_status=$? |
81ecdfbb RW |
12236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12237 | test $ac_status = 0; } | |
12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
12239 | $as_echo_n "checking lex output file root... " >&6; } | |
d0ac1c44 | 12240 | if ${ac_cv_prog_lex_root+:} false; then : |
81ecdfbb | 12241 | $as_echo_n "(cached) " >&6 |
d7040cdb | 12242 | else |
d7040cdb | 12243 | |
81ecdfbb RW |
12244 | if test -f lex.yy.c; then |
12245 | ac_cv_prog_lex_root=lex.yy | |
12246 | elif test -f lexyy.c; then | |
12247 | ac_cv_prog_lex_root=lexyy | |
12248 | else | |
d0ac1c44 | 12249 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
d7040cdb | 12250 | fi |
d7040cdb | 12251 | fi |
81ecdfbb RW |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12253 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
12254 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
d7040cdb | 12255 | |
81ecdfbb RW |
12256 | if test -z "${LEXLIB+set}"; then |
12257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
12258 | $as_echo_n "checking lex library... " >&6; } | |
d0ac1c44 | 12259 | if ${ac_cv_lib_lex+:} false; then : |
81ecdfbb | 12260 | $as_echo_n "(cached) " >&6 |
d7040cdb | 12261 | else |
d7040cdb | 12262 | |
81ecdfbb RW |
12263 | ac_save_LIBS=$LIBS |
12264 | ac_cv_lib_lex='none needed' | |
12265 | for ac_lib in '' -lfl -ll; do | |
12266 | LIBS="$ac_lib $ac_save_LIBS" | |
12267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12268 | /* end confdefs.h. */ | |
12269 | `cat $LEX_OUTPUT_ROOT.c` | |
12270 | _ACEOF | |
12271 | if ac_fn_c_try_link "$LINENO"; then : | |
12272 | ac_cv_lib_lex=$ac_lib | |
d7040cdb | 12273 | fi |
81ecdfbb RW |
12274 | rm -f core conftest.err conftest.$ac_objext \ |
12275 | conftest$ac_exeext conftest.$ac_ext | |
12276 | test "$ac_cv_lib_lex" != 'none needed' && break | |
12277 | done | |
12278 | LIBS=$ac_save_LIBS | |
d7040cdb SE |
12279 | |
12280 | fi | |
81ecdfbb RW |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12282 | $as_echo "$ac_cv_lib_lex" >&6; } | |
12283 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb SE |
12284 | fi |
12285 | ||
d7040cdb | 12286 | |
81ecdfbb RW |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
12288 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
d0ac1c44 | 12289 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
81ecdfbb | 12290 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12291 | else |
12292 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 12293 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
12294 | # not all implementations provide the %pointer and %array declarations. |
12295 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 12296 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
12297 | LIBS="$LEXLIB $ac_save_LIBS" |
12298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12299 | /* end confdefs.h. */ | |
d0ac1c44 SM |
12300 | |
12301 | #define YYTEXT_POINTER 1 | |
d7040cdb SE |
12302 | `cat $LEX_OUTPUT_ROOT.c` |
12303 | _ACEOF | |
81ecdfbb | 12304 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 12305 | ac_cv_prog_lex_yytext_pointer=yes |
d7040cdb | 12306 | fi |
81ecdfbb RW |
12307 | rm -f core conftest.err conftest.$ac_objext \ |
12308 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 12309 | LIBS=$ac_save_LIBS |
d7040cdb SE |
12310 | |
12311 | fi | |
81ecdfbb RW |
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12313 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb SE |
12314 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
12315 | ||
81ecdfbb | 12316 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
d7040cdb SE |
12317 | |
12318 | fi | |
81ecdfbb | 12319 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
3d961d0d AM |
12320 | ;; |
12321 | esac | |
d7040cdb SE |
12322 | if test "$LEX" = :; then |
12323 | LEX=${am_missing_run}flex | |
12324 | fi | |
12325 | ||
e184813f | 12326 | ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW" |
d7040cdb SE |
12327 | # If we haven't got the data from the intl directory, |
12328 | # assume NLS is disabled. | |
12329 | USE_NLS=no | |
12330 | LIBINTL= | |
12331 | LIBINTL_DEP= | |
12332 | INCINTL= | |
12333 | XGETTEXT= | |
12334 | GMSGFMT= | |
12335 | POSUB= | |
12336 | ||
12337 | if test -f ../intl/config.intl; then | |
12338 | . ../intl/config.intl | |
12339 | fi | |
81ecdfbb RW |
12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
12341 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 12342 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12344 | $as_echo "no" >&6; } | |
d7040cdb | 12345 | else |
81ecdfbb RW |
12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12347 | $as_echo "yes" >&6; } | |
d7040cdb | 12348 | |
81ecdfbb | 12349 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
12350 | |
12351 | ||
81ecdfbb RW |
12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
12353 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
12354 | # Look for .po and .gmo files in the source directory. |
12355 | CATALOGS= | |
12356 | XLINGUAS= | |
12357 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
12358 | # If there aren't any .gmo files the shell will give us the | |
12359 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
12360 | # weeded out. | |
12361 | case "$cat" in *\**) | |
12362 | continue;; | |
12363 | esac | |
12364 | # The quadruple backslash is collapsed to a double backslash | |
12365 | # by the backticks, then collapsed again by the double quotes, | |
12366 | # leaving us with one backslash in the sed expression (right | |
12367 | # before the dot that mustn't act as a wildcard). | |
12368 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
12369 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
12370 | # The user is allowed to set LINGUAS to a list of languages to | |
12371 | # install catalogs for. If it's empty that means "all of them." | |
12372 | if test "x$LINGUAS" = x; then | |
12373 | CATALOGS="$CATALOGS $cat" | |
12374 | XLINGUAS="$XLINGUAS $lang" | |
12375 | else | |
12376 | case "$LINGUAS" in *$lang*) | |
12377 | CATALOGS="$CATALOGS $cat" | |
12378 | XLINGUAS="$XLINGUAS $lang" | |
12379 | ;; | |
12380 | esac | |
12381 | fi | |
12382 | done | |
12383 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
12385 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
12386 | |
12387 | ||
12388 | DATADIRNAME=share | |
12389 | ||
12390 | INSTOBJEXT=.mo | |
12391 | ||
12392 | GENCAT=gencat | |
12393 | ||
12394 | CATOBJEXT=.gmo | |
12395 | ||
12396 | fi | |
12397 | ||
12398 | MKINSTALLDIRS= | |
12399 | if test -n "$ac_aux_dir"; then | |
12400 | case "$ac_aux_dir" in | |
12401 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
12402 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
12403 | esac | |
12404 | fi | |
12405 | if test -z "$MKINSTALLDIRS"; then | |
12406 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
12407 | fi | |
12408 | ||
12409 | ||
12410 | ||
81ecdfbb RW |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
12412 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
12413 | # Check whether --enable-nls was given. | |
12414 | if test "${enable_nls+set}" = set; then : | |
12415 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
12416 | else |
12417 | USE_NLS=yes | |
81ecdfbb RW |
12418 | fi |
12419 | ||
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
12421 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
12422 | |
12423 | ||
12424 | ||
12425 | ||
12426 | ||
12427 | ||
12428 | # Prepare PATH_SEPARATOR. | |
12429 | # The user is always right. | |
12430 | if test "${PATH_SEPARATOR+set}" != set; then | |
12431 | echo "#! /bin/sh" >conf$$.sh | |
12432 | echo "exit 0" >>conf$$.sh | |
12433 | chmod +x conf$$.sh | |
12434 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12435 | PATH_SEPARATOR=';' | |
12436 | else | |
12437 | PATH_SEPARATOR=: | |
12438 | fi | |
12439 | rm -f conf$$.sh | |
12440 | fi | |
12441 | ||
12442 | # Find out how to test for executable files. Don't use a zero-byte file, | |
12443 | # as systems may use methods other than mode bits to determine executability. | |
12444 | cat >conf$$.file <<_ASEOF | |
12445 | #! /bin/sh | |
12446 | exit 0 | |
12447 | _ASEOF | |
12448 | chmod +x conf$$.file | |
12449 | if test -x conf$$.file >/dev/null 2>&1; then | |
12450 | ac_executable_p="test -x" | |
12451 | else | |
12452 | ac_executable_p="test -f" | |
12453 | fi | |
12454 | rm -f conf$$.file | |
12455 | ||
12456 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
12457 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12459 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12460 | if ${ac_cv_path_MSGFMT+:} false; then : |
81ecdfbb | 12461 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12462 | else |
12463 | case "$MSGFMT" in | |
12464 | [\\/]* | ?:[\\/]*) | |
12465 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
12466 | ;; | |
12467 | *) | |
12468 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12469 | for ac_dir in $PATH; do | |
12470 | IFS="$ac_save_IFS" | |
12471 | test -z "$ac_dir" && ac_dir=. | |
12472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12473 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12474 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
12475 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12476 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
12477 | break 2 | |
12478 | fi | |
12479 | fi | |
12480 | done | |
12481 | done | |
12482 | IFS="$ac_save_IFS" | |
12483 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
12484 | ;; | |
12485 | esac | |
12486 | fi | |
12487 | MSGFMT="$ac_cv_path_MSGFMT" | |
12488 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
12490 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 12491 | else |
81ecdfbb RW |
12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12493 | $as_echo "no" >&6; } | |
d7040cdb SE |
12494 | fi |
12495 | ||
12496 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
12497 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12499 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12500 | if ${ac_cv_path_GMSGFMT+:} false; then : |
81ecdfbb | 12501 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12502 | else |
12503 | case $GMSGFMT in | |
12504 | [\\/]* | ?:[\\/]*) | |
12505 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
12506 | ;; | |
12507 | *) | |
12508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12509 | for as_dir in $PATH | |
12510 | do | |
12511 | IFS=$as_save_IFS | |
12512 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12513 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12515 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12517 | break 2 |
12518 | fi | |
12519 | done | |
81ecdfbb RW |
12520 | done |
12521 | IFS=$as_save_IFS | |
d7040cdb SE |
12522 | |
12523 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
12524 | ;; | |
12525 | esac | |
12526 | fi | |
12527 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 12528 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
12530 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 12531 | else |
81ecdfbb RW |
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12533 | $as_echo "no" >&6; } | |
d7040cdb SE |
12534 | fi |
12535 | ||
12536 | ||
12537 | ||
81ecdfbb | 12538 | |
d7040cdb SE |
12539 | # Prepare PATH_SEPARATOR. |
12540 | # The user is always right. | |
12541 | if test "${PATH_SEPARATOR+set}" != set; then | |
12542 | echo "#! /bin/sh" >conf$$.sh | |
12543 | echo "exit 0" >>conf$$.sh | |
12544 | chmod +x conf$$.sh | |
12545 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12546 | PATH_SEPARATOR=';' | |
12547 | else | |
12548 | PATH_SEPARATOR=: | |
12549 | fi | |
12550 | rm -f conf$$.sh | |
12551 | fi | |
12552 | ||
12553 | # Find out how to test for executable files. Don't use a zero-byte file, | |
12554 | # as systems may use methods other than mode bits to determine executability. | |
12555 | cat >conf$$.file <<_ASEOF | |
12556 | #! /bin/sh | |
12557 | exit 0 | |
12558 | _ASEOF | |
12559 | chmod +x conf$$.file | |
12560 | if test -x conf$$.file >/dev/null 2>&1; then | |
12561 | ac_executable_p="test -x" | |
12562 | else | |
12563 | ac_executable_p="test -f" | |
12564 | fi | |
12565 | rm -f conf$$.file | |
12566 | ||
12567 | # Extract the first word of "xgettext", so it can be a program name with args. | |
12568 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
12569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12570 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12571 | if ${ac_cv_path_XGETTEXT+:} false; then : |
81ecdfbb | 12572 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12573 | else |
12574 | case "$XGETTEXT" in | |
12575 | [\\/]* | ?:[\\/]*) | |
12576 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
12577 | ;; | |
12578 | *) | |
12579 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12580 | for ac_dir in $PATH; do | |
12581 | IFS="$ac_save_IFS" | |
12582 | test -z "$ac_dir" && ac_dir=. | |
12583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12584 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12585 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12586 | (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 | |
12587 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
12588 | break 2 | |
12589 | fi | |
12590 | fi | |
12591 | done | |
12592 | done | |
12593 | IFS="$ac_save_IFS" | |
12594 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
12595 | ;; | |
12596 | esac | |
12597 | fi | |
12598 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
12599 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
12601 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 12602 | else |
81ecdfbb RW |
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12604 | $as_echo "no" >&6; } | |
d7040cdb SE |
12605 | fi |
12606 | ||
12607 | rm -f messages.po | |
12608 | ||
12609 | ||
12610 | # Prepare PATH_SEPARATOR. | |
12611 | # The user is always right. | |
12612 | if test "${PATH_SEPARATOR+set}" != set; then | |
12613 | echo "#! /bin/sh" >conf$$.sh | |
12614 | echo "exit 0" >>conf$$.sh | |
12615 | chmod +x conf$$.sh | |
12616 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12617 | PATH_SEPARATOR=';' | |
12618 | else | |
12619 | PATH_SEPARATOR=: | |
12620 | fi | |
12621 | rm -f conf$$.sh | |
12622 | fi | |
12623 | ||
12624 | # Find out how to test for executable files. Don't use a zero-byte file, | |
12625 | # as systems may use methods other than mode bits to determine executability. | |
12626 | cat >conf$$.file <<_ASEOF | |
12627 | #! /bin/sh | |
12628 | exit 0 | |
12629 | _ASEOF | |
12630 | chmod +x conf$$.file | |
12631 | if test -x conf$$.file >/dev/null 2>&1; then | |
12632 | ac_executable_p="test -x" | |
12633 | else | |
12634 | ac_executable_p="test -f" | |
12635 | fi | |
12636 | rm -f conf$$.file | |
12637 | ||
12638 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
12639 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12641 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12642 | if ${ac_cv_path_MSGMERGE+:} false; then : |
81ecdfbb | 12643 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12644 | else |
12645 | case "$MSGMERGE" in | |
12646 | [\\/]* | ?:[\\/]*) | |
12647 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
12648 | ;; | |
12649 | *) | |
12650 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12651 | for ac_dir in $PATH; do | |
12652 | IFS="$ac_save_IFS" | |
12653 | test -z "$ac_dir" && ac_dir=. | |
12654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12655 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12656 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
12657 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
12658 | break 2 | |
12659 | fi | |
12660 | fi | |
12661 | done | |
12662 | done | |
12663 | IFS="$ac_save_IFS" | |
12664 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
12665 | ;; | |
12666 | esac | |
12667 | fi | |
12668 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
12669 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
12671 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 12672 | else |
81ecdfbb RW |
12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12674 | $as_echo "no" >&6; } | |
d7040cdb SE |
12675 | fi |
12676 | ||
12677 | ||
12678 | if test "$GMSGFMT" != ":"; then | |
12679 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12680 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12681 | : ; | |
12682 | else | |
12683 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
12685 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
12686 | GMSGFMT=":" |
12687 | fi | |
12688 | fi | |
12689 | ||
12690 | if test "$XGETTEXT" != ":"; then | |
12691 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12692 | (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 | |
12693 | : ; | |
12694 | else | |
81ecdfbb RW |
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
12696 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
12697 | XGETTEXT=":" |
12698 | fi | |
12699 | rm -f messages.po | |
12700 | fi | |
12701 | ||
81ecdfbb | 12702 | ac_config_commands="$ac_config_commands default-1" |
d7040cdb SE |
12703 | |
12704 | ||
12705 | ||
81ecdfbb RW |
12706 | |
12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
12708 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
12709 | # Check whether --enable-maintainer-mode was given. | |
12710 | if test "${enable_maintainer_mode+set}" = set; then : | |
12711 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
42ecbf5e | 12712 | else |
d7040cdb | 12713 | USE_MAINTAINER_MODE=no |
81ecdfbb | 12714 | fi |
d7040cdb | 12715 | |
81ecdfbb RW |
12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
12717 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
12718 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
12719 | MAINTAINER_MODE_TRUE= |
12720 | MAINTAINER_MODE_FALSE='#' | |
12721 | else | |
12722 | MAINTAINER_MODE_TRUE='#' | |
12723 | MAINTAINER_MODE_FALSE= | |
42ecbf5e | 12724 | fi |
d7040cdb SE |
12725 | |
12726 | MAINT=$MAINTAINER_MODE_TRUE | |
12727 | ||
12728 | ||
81ecdfbb | 12729 | if false; then |
d7040cdb SE |
12730 | GENINSRC_NEVER_TRUE= |
12731 | GENINSRC_NEVER_FALSE='#' | |
12732 | else | |
12733 | GENINSRC_NEVER_TRUE='#' | |
12734 | GENINSRC_NEVER_FALSE= | |
42ecbf5e | 12735 | fi |
d7040cdb SE |
12736 | |
12737 | ||
12738 | if test -n "$EXEEXT"; then | |
20e95c23 | 12739 | |
81ecdfbb | 12740 | $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h |
42ecbf5e | 12741 | |
252b5132 RH |
12742 | fi |
12743 | ||
d7040cdb SE |
12744 | cat >>confdefs.h <<_ACEOF |
12745 | #define EXECUTABLE_SUFFIX "${EXEEXT}" | |
12746 | _ACEOF | |
42ecbf5e | 12747 | |
252b5132 | 12748 | |
d7040cdb | 12749 | # host-specific stuff: |
252b5132 | 12750 | |
d7040cdb | 12751 | HDEFINES= |
252b5132 | 12752 | |
d7040cdb | 12753 | . ${srcdir}/../bfd/configure.host |
252b5132 | 12754 | |
252b5132 | 12755 | |
d7040cdb | 12756 | AR=${AR-ar} |
252b5132 | 12757 | |
d7040cdb SE |
12758 | if test -n "$ac_tool_prefix"; then |
12759 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12760 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12762 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12763 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 12764 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12765 | else |
12766 | if test -n "$RANLIB"; then | |
12767 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12768 | else | |
12769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12770 | for as_dir in $PATH | |
12771 | do | |
12772 | IFS=$as_save_IFS | |
12773 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12774 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12775 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12776 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 12777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12778 | break 2 |
12779 | fi | |
12780 | done | |
81ecdfbb RW |
12781 | done |
12782 | IFS=$as_save_IFS | |
252b5132 | 12783 | |
d7040cdb SE |
12784 | fi |
12785 | fi | |
12786 | RANLIB=$ac_cv_prog_RANLIB | |
12787 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
12788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
12789 | $as_echo "$RANLIB" >&6; } | |
d7040cdb | 12790 | else |
81ecdfbb RW |
12791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12792 | $as_echo "no" >&6; } | |
d7040cdb | 12793 | fi |
20e95c23 | 12794 | |
81ecdfbb | 12795 | |
d7040cdb SE |
12796 | fi |
12797 | if test -z "$ac_cv_prog_RANLIB"; then | |
12798 | ac_ct_RANLIB=$RANLIB | |
12799 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12800 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12802 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12803 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 12804 | $as_echo_n "(cached) " >&6 |
252b5132 | 12805 | else |
d7040cdb SE |
12806 | if test -n "$ac_ct_RANLIB"; then |
12807 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12808 | else | |
12809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12810 | for as_dir in $PATH | |
12811 | do | |
12812 | IFS=$as_save_IFS | |
12813 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12814 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12816 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 12817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12818 | break 2 |
12819 | fi | |
12820 | done | |
81ecdfbb RW |
12821 | done |
12822 | IFS=$as_save_IFS | |
20e95c23 | 12823 | |
d7040cdb SE |
12824 | fi |
12825 | fi | |
12826 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12827 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
12829 | $as_echo "$ac_ct_RANLIB" >&6; } | |
d7040cdb | 12830 | else |
81ecdfbb RW |
12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12832 | $as_echo "no" >&6; } | |
d7040cdb SE |
12833 | fi |
12834 | ||
81ecdfbb RW |
12835 | if test "x$ac_ct_RANLIB" = x; then |
12836 | RANLIB=":" | |
d7040cdb | 12837 | else |
81ecdfbb RW |
12838 | case $cross_compiling:$ac_tool_warned in |
12839 | yes:) | |
12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12841 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12842 | ac_tool_warned=yes ;; | |
12843 | esac | |
12844 | RANLIB=$ac_ct_RANLIB | |
d7040cdb | 12845 | fi |
81ecdfbb RW |
12846 | else |
12847 | RANLIB="$ac_cv_prog_RANLIB" | |
d7040cdb | 12848 | fi |
d7040cdb | 12849 | |
d7040cdb SE |
12850 | |
12851 | ||
12852 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
12853 | if test -z "$CC_FOR_BUILD"; then | |
12854 | if test "x$cross_compiling" = "xno"; then | |
12855 | CC_FOR_BUILD='$(CC)' | |
12856 | else | |
12857 | CC_FOR_BUILD=gcc | |
12858 | fi | |
12859 | fi | |
20e95c23 | 12860 | |
d7040cdb SE |
12861 | # Also set EXEEXT_FOR_BUILD. |
12862 | if test "x$cross_compiling" = "xno"; then | |
12863 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
12864 | else | |
81ecdfbb RW |
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 |
12866 | $as_echo_n "checking for build system executable suffix... " >&6; } | |
d0ac1c44 | 12867 | if ${bfd_cv_build_exeext+:} false; then : |
81ecdfbb | 12868 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12869 | else |
12870 | rm -f conftest* | |
12871 | echo 'int main () { return 0; }' > conftest.c | |
12872 | bfd_cv_build_exeext= | |
12873 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
12874 | for file in conftest.*; do | |
12875 | case $file in | |
12876 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
12877 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
12878 | esac | |
12879 | done | |
12880 | rm -f conftest* | |
12881 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 12882 | fi |
81ecdfbb RW |
12883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 |
12884 | $as_echo "$bfd_cv_build_exeext" >&6; } | |
d7040cdb SE |
12885 | EXEEXT_FOR_BUILD="" |
12886 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
252b5132 RH |
12887 | fi |
12888 | ||
12889 | ||
d7040cdb SE |
12890 | DEMANGLER_NAME=c++filt |
12891 | case "${host}" in | |
12892 | *-*-go32* | *-*-msdos*) | |
12893 | DEMANGLER_NAME=cxxfilt | |
12894 | esac | |
8a965946 ILT |
12895 | |
12896 | ||
87b9f255 AM |
12897 | # We use headers from include/ that check various HAVE_*_H macros, thus |
12898 | # should ensure they are set by configure. This is true even when C99 | |
12899 | # guarantees they are available. | |
12900 | # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H | |
12901 | # Besides those, we need to check anything used in binutils/ not in C99. | |
13acb58d | 12902 | for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \ |
985e0264 | 12903 | sys/stat.h sys/time.h sys/types.h unistd.h |
81ecdfbb RW |
12904 | do : |
12905 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12906 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 12907 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
81ecdfbb RW |
12908 | cat >>confdefs.h <<_ACEOF |
12909 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12910 | _ACEOF | |
42ecbf5e | 12911 | |
81ecdfbb | 12912 | fi |
42ecbf5e | 12913 | |
81ecdfbb | 12914 | done |
42ecbf5e | 12915 | |
81ecdfbb RW |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
12917 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
d0ac1c44 | 12918 | if ${ac_cv_header_sys_wait_h+:} false; then : |
81ecdfbb | 12919 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 12920 | else |
81ecdfbb | 12921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 12922 | /* end confdefs.h. */ |
252b5132 RH |
12923 | #include <sys/types.h> |
12924 | #include <sys/wait.h> | |
12925 | #ifndef WEXITSTATUS | |
81ecdfbb | 12926 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
252b5132 RH |
12927 | #endif |
12928 | #ifndef WIFEXITED | |
42ecbf5e | 12929 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
252b5132 | 12930 | #endif |
42ecbf5e DJ |
12931 | |
12932 | int | |
12933 | main () | |
12934 | { | |
12935 | int s; | |
12936 | wait (&s); | |
12937 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
12938 | ; | |
12939 | return 0; | |
12940 | } | |
12941 | _ACEOF | |
81ecdfbb | 12942 | if ac_fn_c_try_compile "$LINENO"; then : |
252b5132 RH |
12943 | ac_cv_header_sys_wait_h=yes |
12944 | else | |
81ecdfbb | 12945 | ac_cv_header_sys_wait_h=no |
252b5132 | 12946 | fi |
81ecdfbb | 12947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 12948 | fi |
81ecdfbb RW |
12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
12950 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
d15b04bd | 12951 | if test $ac_cv_header_sys_wait_h = yes; then |
42ecbf5e | 12952 | |
81ecdfbb | 12953 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
252b5132 | 12954 | |
252b5132 RH |
12955 | fi |
12956 | ||
34156b23 L |
12957 | |
12958 | ||
12959 | ||
12960 | for ac_header in $ac_header_list | |
12961 | do : | |
12962 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12963 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
12964 | " | |
12965 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
12966 | cat >>confdefs.h <<_ACEOF | |
12967 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12968 | _ACEOF | |
12969 | ||
12970 | fi | |
12971 | ||
12972 | done | |
12973 | ||
12974 | ||
12975 | ||
12976 | ||
12977 | ||
12978 | ||
12979 | ||
12980 | ||
12981 | for ac_func in getpagesize | |
12982 | do : | |
12983 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
12984 | if test "x$ac_cv_func_getpagesize" = xyes; then : | |
12985 | cat >>confdefs.h <<_ACEOF | |
12986 | #define HAVE_GETPAGESIZE 1 | |
12987 | _ACEOF | |
12988 | ||
12989 | fi | |
12990 | done | |
12991 | ||
12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
12993 | $as_echo_n "checking for working mmap... " >&6; } | |
12994 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : | |
12995 | $as_echo_n "(cached) " >&6 | |
12996 | else | |
12997 | if test "$cross_compiling" = yes; then : | |
12998 | ac_cv_func_mmap_fixed_mapped=no | |
12999 | else | |
13000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13001 | /* end confdefs.h. */ | |
13002 | $ac_includes_default | |
13003 | /* malloc might have been renamed as rpl_malloc. */ | |
13004 | #undef malloc | |
13005 | ||
13006 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
13007 | Here is a matrix of mmap possibilities: | |
13008 | mmap private not fixed | |
13009 | mmap private fixed at somewhere currently unmapped | |
13010 | mmap private fixed at somewhere already mapped | |
13011 | mmap shared not fixed | |
13012 | mmap shared fixed at somewhere currently unmapped | |
13013 | mmap shared fixed at somewhere already mapped | |
13014 | For private mappings, we should verify that changes cannot be read() | |
13015 | back from the file, nor mmap's back from the file at a different | |
13016 | address. (There have been systems where private was not correctly | |
13017 | implemented like the infamous i386 svr4.0, and systems where the | |
13018 | VM page cache was not coherent with the file system buffer cache | |
13019 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
13020 | For shared mappings, we should conversely verify that changes get | |
13021 | propagated back to all the places they're supposed to be. | |
13022 | ||
13023 | Grep wants private fixed already mapped. | |
13024 | The main things grep needs to know about mmap are: | |
13025 | * does it exist and is it safe to write into the mmap'd area | |
13026 | * how to use it (BSD variants) */ | |
13027 | ||
13028 | #include <fcntl.h> | |
13029 | #include <sys/mman.h> | |
13030 | ||
13031 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
13032 | char *malloc (); | |
13033 | #endif | |
13034 | ||
13035 | /* This mess was copied from the GNU getpagesize.h. */ | |
13036 | #ifndef HAVE_GETPAGESIZE | |
13037 | # ifdef _SC_PAGESIZE | |
13038 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
13039 | # else /* no _SC_PAGESIZE */ | |
13040 | # ifdef HAVE_SYS_PARAM_H | |
13041 | # include <sys/param.h> | |
13042 | # ifdef EXEC_PAGESIZE | |
13043 | # define getpagesize() EXEC_PAGESIZE | |
13044 | # else /* no EXEC_PAGESIZE */ | |
13045 | # ifdef NBPG | |
13046 | # define getpagesize() NBPG * CLSIZE | |
13047 | # ifndef CLSIZE | |
13048 | # define CLSIZE 1 | |
13049 | # endif /* no CLSIZE */ | |
13050 | # else /* no NBPG */ | |
13051 | # ifdef NBPC | |
13052 | # define getpagesize() NBPC | |
13053 | # else /* no NBPC */ | |
13054 | # ifdef PAGESIZE | |
13055 | # define getpagesize() PAGESIZE | |
13056 | # endif /* PAGESIZE */ | |
13057 | # endif /* no NBPC */ | |
13058 | # endif /* no NBPG */ | |
13059 | # endif /* no EXEC_PAGESIZE */ | |
13060 | # else /* no HAVE_SYS_PARAM_H */ | |
13061 | # define getpagesize() 8192 /* punt totally */ | |
13062 | # endif /* no HAVE_SYS_PARAM_H */ | |
13063 | # endif /* no _SC_PAGESIZE */ | |
13064 | ||
13065 | #endif /* no HAVE_GETPAGESIZE */ | |
13066 | ||
13067 | int | |
13068 | main () | |
13069 | { | |
13070 | char *data, *data2, *data3; | |
13071 | const char *cdata2; | |
13072 | int i, pagesize; | |
13073 | int fd, fd2; | |
13074 | ||
13075 | pagesize = getpagesize (); | |
13076 | ||
13077 | /* First, make a file with some known garbage in it. */ | |
13078 | data = (char *) malloc (pagesize); | |
13079 | if (!data) | |
13080 | return 1; | |
13081 | for (i = 0; i < pagesize; ++i) | |
13082 | *(data + i) = rand (); | |
13083 | umask (0); | |
13084 | fd = creat ("conftest.mmap", 0600); | |
13085 | if (fd < 0) | |
13086 | return 2; | |
13087 | if (write (fd, data, pagesize) != pagesize) | |
13088 | return 3; | |
13089 | close (fd); | |
13090 | ||
13091 | /* Next, check that the tail of a page is zero-filled. File must have | |
13092 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
13093 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
13094 | if (fd2 < 0) | |
13095 | return 4; | |
13096 | cdata2 = ""; | |
13097 | if (write (fd2, cdata2, 1) != 1) | |
13098 | return 5; | |
13099 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
13100 | if (data2 == MAP_FAILED) | |
13101 | return 6; | |
13102 | for (i = 0; i < pagesize; ++i) | |
13103 | if (*(data2 + i)) | |
13104 | return 7; | |
13105 | close (fd2); | |
13106 | if (munmap (data2, pagesize)) | |
13107 | return 8; | |
13108 | ||
13109 | /* Next, try to mmap the file at a fixed address which already has | |
13110 | something else allocated at it. If we can, also make sure that | |
13111 | we see the same garbage. */ | |
13112 | fd = open ("conftest.mmap", O_RDWR); | |
13113 | if (fd < 0) | |
13114 | return 9; | |
13115 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
13116 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
13117 | return 10; | |
13118 | for (i = 0; i < pagesize; ++i) | |
13119 | if (*(data + i) != *(data2 + i)) | |
13120 | return 11; | |
13121 | ||
13122 | /* Finally, make sure that changes to the mapped area do not | |
13123 | percolate back to the file as seen by read(). (This is a bug on | |
13124 | some variants of i386 svr4.0.) */ | |
13125 | for (i = 0; i < pagesize; ++i) | |
13126 | *(data2 + i) = *(data2 + i) + 1; | |
13127 | data3 = (char *) malloc (pagesize); | |
13128 | if (!data3) | |
13129 | return 12; | |
13130 | if (read (fd, data3, pagesize) != pagesize) | |
13131 | return 13; | |
13132 | for (i = 0; i < pagesize; ++i) | |
13133 | if (*(data + i) != *(data3 + i)) | |
13134 | return 14; | |
13135 | close (fd); | |
13136 | return 0; | |
13137 | } | |
13138 | _ACEOF | |
13139 | if ac_fn_c_try_run "$LINENO"; then : | |
13140 | ac_cv_func_mmap_fixed_mapped=yes | |
13141 | else | |
13142 | ac_cv_func_mmap_fixed_mapped=no | |
13143 | fi | |
13144 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13145 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13146 | fi | |
13147 | ||
13148 | fi | |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
13150 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
13151 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
13152 | ||
13153 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | |
13154 | ||
13155 | fi | |
13156 | rm -f conftest.mmap conftest.txt | |
13157 | ||
d7229d6a | 13158 | for ac_func in fseeko fseeko64 getc_unlocked mkdtemp mkstemp utimensat utimes |
81ecdfbb RW |
13159 | do : |
13160 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13161 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 13162 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
13163 | cat >>confdefs.h <<_ACEOF |
13164 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13165 | _ACEOF | |
42ecbf5e | 13166 | |
81ecdfbb RW |
13167 | fi |
13168 | done | |
42ecbf5e | 13169 | |
42ecbf5e | 13170 | |
985e0264 | 13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
3bfcb652 | 13172 | $as_echo_n "checking for mbstate_t... " >&6; } |
985e0264 | 13173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3bfcb652 NC |
13174 | /* end confdefs.h. */ |
13175 | #include <wchar.h> | |
13176 | int | |
13177 | main () | |
13178 | { | |
13179 | mbstate_t teststate; | |
13180 | ; | |
13181 | return 0; | |
13182 | } | |
13183 | _ACEOF | |
13184 | if ac_fn_c_try_compile "$LINENO"; then : | |
13185 | have_mbstate_t=yes | |
13186 | else | |
13187 | have_mbstate_t=no | |
13188 | fi | |
13189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
985e0264 | 13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5 |
3bfcb652 | 13191 | $as_echo "$have_mbstate_t" >&6; } |
985e0264 | 13192 | if test x"$have_mbstate_t" = xyes; then |
3bfcb652 NC |
13193 | |
13194 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h | |
13195 | ||
985e0264 AM |
13196 | fi |
13197 | ||
13198 | # Copied from gnulib stat-time.m4. | |
13199 | # We should just switch over to using gnulib. | |
13200 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h> | |
13201 | #include <sys/stat.h> | |
13202 | " | |
13203 | if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : | |
13204 | ||
13205 | cat >>confdefs.h <<_ACEOF | |
13206 | #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 | |
13207 | _ACEOF | |
13208 | ||
13209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 | |
13210 | $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } | |
13211 | if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then : | |
13212 | $as_echo_n "(cached) " >&6 | |
13213 | else | |
13214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13215 | /* end confdefs.h. */ | |
13216 | ||
13217 | #include <sys/types.h> | |
13218 | #include <sys/stat.h> | |
13219 | #if HAVE_SYS_TIME_H | |
13220 | # include <sys/time.h> | |
13221 | #endif | |
13222 | #include <time.h> | |
13223 | struct timespec ts; | |
13224 | struct stat st; | |
13225 | ||
13226 | int | |
13227 | main () | |
13228 | { | |
13229 | ||
13230 | st.st_atim = ts; | |
13231 | ||
13232 | ; | |
13233 | return 0; | |
13234 | } | |
13235 | _ACEOF | |
13236 | if ac_fn_c_try_compile "$LINENO"; then : | |
13237 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes | |
13238 | else | |
13239 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no | |
13240 | fi | |
13241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13242 | fi | |
13243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 | |
13244 | $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } | |
13245 | if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then | |
13246 | ||
13247 | $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h | |
13248 | ||
13249 | fi | |
13250 | else | |
13251 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h> | |
13252 | #include <sys/stat.h> | |
13253 | " | |
13254 | if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then : | |
13255 | ||
13256 | cat >>confdefs.h <<_ACEOF | |
13257 | #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 | |
13258 | _ACEOF | |
13259 | ||
13260 | ||
13261 | else | |
13262 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> | |
13263 | #include <sys/stat.h> | |
13264 | " | |
13265 | if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : | |
13266 | ||
13267 | cat >>confdefs.h <<_ACEOF | |
13268 | #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 | |
13269 | _ACEOF | |
13270 | ||
13271 | ||
13272 | else | |
13273 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h> | |
13274 | #include <sys/stat.h> | |
13275 | " | |
13276 | if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then : | |
13277 | ||
13278 | cat >>confdefs.h <<_ACEOF | |
13279 | #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 | |
13280 | _ACEOF | |
13281 | ||
13282 | ||
13283 | fi | |
13284 | ||
13285 | fi | |
13286 | ||
13287 | fi | |
13288 | ||
13289 | fi | |
13290 | ||
d15b04bd | 13291 | |
81ecdfbb RW |
13292 | # Some systems have frexp only in -lm, not in -lc. |
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5 | |
13294 | $as_echo_n "checking for library containing frexp... " >&6; } | |
d0ac1c44 | 13295 | if ${ac_cv_search_frexp+:} false; then : |
81ecdfbb | 13296 | $as_echo_n "(cached) " >&6 |
f9c026a8 | 13297 | else |
81ecdfbb RW |
13298 | ac_func_search_save_LIBS=$LIBS |
13299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f9c026a8 | 13300 | /* end confdefs.h. */ |
f9c026a8 | 13301 | |
81ecdfbb RW |
13302 | /* Override any GCC internal prototype to avoid an error. |
13303 | Use char because int might match the return type of a GCC | |
f9c026a8 | 13304 | builtin and then its argument prototype would still apply. */ |
42ecbf5e DJ |
13305 | #ifdef __cplusplus |
13306 | extern "C" | |
13307 | #endif | |
42ecbf5e DJ |
13308 | char frexp (); |
13309 | int | |
13310 | main () | |
13311 | { | |
81ecdfbb | 13312 | return frexp (); |
42ecbf5e DJ |
13313 | ; |
13314 | return 0; | |
13315 | } | |
13316 | _ACEOF | |
81ecdfbb RW |
13317 | for ac_lib in '' m; do |
13318 | if test -z "$ac_lib"; then | |
13319 | ac_res="none required" | |
13320 | else | |
13321 | ac_res=-l$ac_lib | |
42ecbf5e | 13322 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
13323 | fi |
13324 | if ac_fn_c_try_link "$LINENO"; then : | |
13325 | ac_cv_search_frexp=$ac_res | |
13326 | fi | |
13327 | rm -f core conftest.err conftest.$ac_objext \ | |
13328 | conftest$ac_exeext | |
d0ac1c44 | 13329 | if ${ac_cv_search_frexp+:} false; then : |
81ecdfbb RW |
13330 | break |
13331 | fi | |
13332 | done | |
d0ac1c44 | 13333 | if ${ac_cv_search_frexp+:} false; then : |
42ecbf5e | 13334 | |
f353eb8a | 13335 | else |
81ecdfbb | 13336 | ac_cv_search_frexp=no |
e5a52504 | 13337 | fi |
81ecdfbb | 13338 | rm conftest.$ac_ext |
42ecbf5e DJ |
13339 | LIBS=$ac_func_search_save_LIBS |
13340 | fi | |
81ecdfbb RW |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5 |
13342 | $as_echo "$ac_cv_search_frexp" >&6; } | |
13343 | ac_res=$ac_cv_search_frexp | |
13344 | if test "$ac_res" != no; then : | |
13345 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 13346 | |
f353eb8a ILT |
13347 | fi |
13348 | ||
42ecbf5e | 13349 | |
44350750 NC |
13350 | |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
13352 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
d0ac1c44 | 13353 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
44350750 NC |
13354 | $as_echo_n "(cached) " >&6 |
13355 | else | |
13356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13357 | /* end confdefs.h. */ | |
13358 | #include <locale.h> | |
13359 | int | |
13360 | main () | |
13361 | { | |
13362 | return LC_MESSAGES | |
13363 | ; | |
13364 | return 0; | |
13365 | } | |
13366 | _ACEOF | |
13367 | if ac_fn_c_try_link "$LINENO"; then : | |
13368 | am_cv_val_LC_MESSAGES=yes | |
13369 | else | |
13370 | am_cv_val_LC_MESSAGES=no | |
13371 | fi | |
13372 | rm -f core conftest.err conftest.$ac_objext \ | |
13373 | conftest$ac_exeext conftest.$ac_ext | |
13374 | fi | |
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
13376 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
13377 | if test $am_cv_val_LC_MESSAGES = yes; then | |
13378 | ||
13379 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
13380 | ||
13381 | fi | |
13382 | ||
13383 | ||
81ecdfbb RW |
13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
13385 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
d0ac1c44 | 13386 | if ${bu_cv_decl_getopt_unistd_h+:} false; then : |
81ecdfbb | 13387 | $as_echo_n "(cached) " >&6 |
e46eba98 | 13388 | else |
81ecdfbb | 13389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 13390 | /* end confdefs.h. */ |
e46eba98 | 13391 | #include <unistd.h> |
42ecbf5e DJ |
13392 | int |
13393 | main () | |
13394 | { | |
e46eba98 | 13395 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
13396 | ; |
13397 | return 0; | |
13398 | } | |
13399 | _ACEOF | |
81ecdfbb | 13400 | if ac_fn_c_try_compile "$LINENO"; then : |
e46eba98 NC |
13401 | bu_cv_decl_getopt_unistd_h=yes |
13402 | else | |
81ecdfbb | 13403 | bu_cv_decl_getopt_unistd_h=no |
e46eba98 | 13404 | fi |
81ecdfbb | 13405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e46eba98 NC |
13406 | fi |
13407 | ||
81ecdfbb RW |
13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5 |
13409 | $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; } | |
e46eba98 | 13410 | if test $bu_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e | 13411 | |
81ecdfbb | 13412 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
e46eba98 NC |
13413 | |
13414 | fi | |
13415 | ||
252b5132 RH |
13416 | # Under Next 3.2 <utime.h> apparently does not define struct utimbuf |
13417 | # by default. | |
81ecdfbb RW |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5 |
13419 | $as_echo_n "checking for utime.h... " >&6; } | |
d0ac1c44 | 13420 | if ${bu_cv_header_utime_h+:} false; then : |
81ecdfbb | 13421 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 13422 | else |
81ecdfbb | 13423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 13424 | /* end confdefs.h. */ |
252b5132 RH |
13425 | #include <sys/types.h> |
13426 | #ifdef HAVE_TIME_H | |
13427 | #include <time.h> | |
13428 | #endif | |
13429 | #include <utime.h> | |
42ecbf5e DJ |
13430 | int |
13431 | main () | |
13432 | { | |
252b5132 | 13433 | struct utimbuf s; |
42ecbf5e DJ |
13434 | ; |
13435 | return 0; | |
13436 | } | |
13437 | _ACEOF | |
81ecdfbb | 13438 | if ac_fn_c_try_compile "$LINENO"; then : |
252b5132 RH |
13439 | bu_cv_header_utime_h=yes |
13440 | else | |
81ecdfbb | 13441 | bu_cv_header_utime_h=no |
252b5132 | 13442 | fi |
81ecdfbb | 13443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
13444 | fi |
13445 | ||
81ecdfbb RW |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5 |
13447 | $as_echo "$bu_cv_header_utime_h" >&6; } | |
252b5132 | 13448 | if test $bu_cv_header_utime_h = yes; then |
42ecbf5e | 13449 | |
81ecdfbb | 13450 | $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h |
252b5132 RH |
13451 | |
13452 | fi | |
13453 | ||
1f5345a6 | 13454 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
d0ac1c44 | 13455 | if test "x$ac_cv_have_decl_asprintf" = xyes; then : |
1f5345a6 ST |
13456 | ac_have_decl=1 |
13457 | else | |
13458 | ac_have_decl=0 | |
13459 | fi | |
13460 | ||
13461 | cat >>confdefs.h <<_ACEOF | |
13462 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
13463 | _ACEOF | |
952781e8 | 13464 | ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" |
d0ac1c44 | 13465 | if test "x$ac_cv_have_decl_environ" = xyes; then : |
952781e8 AM |
13466 | ac_have_decl=1 |
13467 | else | |
13468 | ac_have_decl=0 | |
13469 | fi | |
13470 | ||
13471 | cat >>confdefs.h <<_ACEOF | |
13472 | #define HAVE_DECL_ENVIRON $ac_have_decl | |
13473 | _ACEOF | |
952781e8 | 13474 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" |
d0ac1c44 | 13475 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : |
81ecdfbb | 13476 | ac_have_decl=1 |
252b5132 | 13477 | else |
81ecdfbb | 13478 | ac_have_decl=0 |
252b5132 | 13479 | fi |
252b5132 | 13480 | |
398ee8f1 | 13481 | cat >>confdefs.h <<_ACEOF |
952781e8 | 13482 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
398ee8f1 | 13483 | _ACEOF |
952781e8 | 13484 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" |
d0ac1c44 | 13485 | if test "x$ac_cv_have_decl_stpcpy" = xyes; then : |
81ecdfbb | 13486 | ac_have_decl=1 |
398ee8f1 | 13487 | else |
81ecdfbb | 13488 | ac_have_decl=0 |
398ee8f1 | 13489 | fi |
252b5132 | 13490 | |
398ee8f1 | 13491 | cat >>confdefs.h <<_ACEOF |
952781e8 | 13492 | #define HAVE_DECL_STPCPY $ac_have_decl |
b7d4af3a | 13493 | _ACEOF |
b737d304 RO |
13494 | ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" |
13495 | if test "x$ac_cv_have_decl_strnlen" = xyes; then : | |
13496 | ac_have_decl=1 | |
13497 | else | |
13498 | ac_have_decl=0 | |
13499 | fi | |
13500 | ||
13501 | cat >>confdefs.h <<_ACEOF | |
13502 | #define HAVE_DECL_STRNLEN $ac_have_decl | |
13503 | _ACEOF | |
db50c840 EB |
13504 | |
13505 | ||
2cac01e3 | 13506 | # Link in zlib/zstd if we can. This allows us to read compressed debug |
ed2b5077 L |
13507 | # sections. This is used only by readelf.c (objdump uses bfd for |
13508 | # reading compressed sections). | |
13509 | ||
13510 | # Use the system's zlib library. | |
39f3de7c L |
13511 | zlibdir="-L\$(top_builddir)/../zlib" |
13512 | zlibinc="-I\$(top_srcdir)/../zlib" | |
52546677 | 13513 | |
0ee42ecd L |
13514 | # Check whether --with-system-zlib was given. |
13515 | if test "${with_system_zlib+set}" = set; then : | |
afa59b79 L |
13516 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then |
13517 | zlibdir= | |
13518 | zlibinc= | |
13519 | fi | |
52546677 | 13520 | |
52546677 RM |
13521 | fi |
13522 | ||
13523 | ||
52546677 | 13524 | |
1b315056 | 13525 | |
252b5132 | 13526 | |
ed2b5077 | 13527 | |
2cac01e3 FS |
13528 | # Check whether --with-zstd was given. |
13529 | if test "${with_zstd+set}" = set; then : | |
13530 | withval=$with_zstd; | |
13531 | else | |
13532 | with_zstd=auto | |
13533 | fi | |
13534 | ||
13535 | ||
13536 | if test "$with_zstd" != no; then : | |
13537 | ||
13538 | pkg_failed=no | |
200164d4 CL |
13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5 |
13540 | $as_echo_n "checking for libzstd >= 1.4.0... " >&6; } | |
2cac01e3 FS |
13541 | |
13542 | if test -n "$ZSTD_CFLAGS"; then | |
13543 | pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS" | |
13544 | elif test -n "$PKG_CONFIG"; then | |
13545 | if test -n "$PKG_CONFIG" && \ | |
200164d4 CL |
13546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 |
13547 | ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 | |
2cac01e3 FS |
13548 | ac_status=$? |
13549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13550 | test $ac_status = 0; }; then | |
200164d4 | 13551 | pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null` |
2cac01e3 FS |
13552 | test "x$?" != "x0" && pkg_failed=yes |
13553 | else | |
13554 | pkg_failed=yes | |
13555 | fi | |
13556 | else | |
13557 | pkg_failed=untried | |
13558 | fi | |
13559 | if test -n "$ZSTD_LIBS"; then | |
13560 | pkg_cv_ZSTD_LIBS="$ZSTD_LIBS" | |
13561 | elif test -n "$PKG_CONFIG"; then | |
13562 | if test -n "$PKG_CONFIG" && \ | |
200164d4 CL |
13563 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 |
13564 | ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 | |
2cac01e3 FS |
13565 | ac_status=$? |
13566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13567 | test $ac_status = 0; }; then | |
200164d4 | 13568 | pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null` |
2cac01e3 FS |
13569 | test "x$?" != "x0" && pkg_failed=yes |
13570 | else | |
13571 | pkg_failed=yes | |
13572 | fi | |
13573 | else | |
13574 | pkg_failed=untried | |
13575 | fi | |
13576 | ||
13577 | if test $pkg_failed = no; then | |
13578 | pkg_save_LDFLAGS="$LDFLAGS" | |
13579 | LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS" | |
13580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13581 | /* end confdefs.h. */ | |
13582 | ||
13583 | int | |
13584 | main () | |
13585 | { | |
13586 | ||
13587 | ; | |
13588 | return 0; | |
13589 | } | |
13590 | _ACEOF | |
13591 | if ac_fn_c_try_link "$LINENO"; then : | |
13592 | ||
13593 | else | |
13594 | pkg_failed=yes | |
13595 | fi | |
13596 | rm -f core conftest.err conftest.$ac_objext \ | |
13597 | conftest$ac_exeext conftest.$ac_ext | |
13598 | LDFLAGS=$pkg_save_LDFLAGS | |
13599 | fi | |
13600 | ||
13601 | ||
13602 | ||
13603 | if test $pkg_failed = yes; then | |
13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13605 | $as_echo "no" >&6; } | |
13606 | ||
13607 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13608 | _pkg_short_errors_supported=yes | |
13609 | else | |
13610 | _pkg_short_errors_supported=no | |
13611 | fi | |
13612 | if test $_pkg_short_errors_supported = yes; then | |
200164d4 | 13613 | ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` |
2cac01e3 | 13614 | else |
200164d4 | 13615 | ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` |
2cac01e3 FS |
13616 | fi |
13617 | # Put the nasty error message in config.log where it belongs | |
13618 | echo "$ZSTD_PKG_ERRORS" >&5 | |
13619 | ||
13620 | ||
13621 | if test "$with_zstd" = yes; then | |
13622 | as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 | |
13623 | fi | |
13624 | ||
13625 | elif test $pkg_failed = untried; then | |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13627 | $as_echo "no" >&6; } | |
13628 | ||
13629 | if test "$with_zstd" = yes; then | |
13630 | as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 | |
13631 | fi | |
13632 | ||
13633 | else | |
13634 | ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS | |
13635 | ZSTD_LIBS=$pkg_cv_ZSTD_LIBS | |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13637 | $as_echo "yes" >&6; } | |
13638 | ||
13639 | ||
13640 | $as_echo "#define HAVE_ZSTD 1" >>confdefs.h | |
13641 | ||
13642 | ||
13643 | fi | |
13644 | ||
13645 | fi | |
13646 | ||
13647 | ||
13648 | ||
252b5132 | 13649 | case "${host}" in |
8a965946 | 13650 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e | 13651 | |
81ecdfbb | 13652 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
252b5132 RH |
13653 | ;; |
13654 | esac | |
13655 | ||
2952f10c SM |
13656 | # Support for the msgpack C library. |
13657 | ||
13658 | # Check whether --with-msgpack was given. | |
13659 | if test "${with_msgpack+set}" = set; then : | |
13660 | withval=$with_msgpack; | |
13661 | else | |
13662 | with_msgpack=auto | |
13663 | fi | |
13664 | ||
13665 | ||
544c5619 | 13666 | if test "$with_msgpack" != no; then : |
2952f10c SM |
13667 | |
13668 | pkg_failed=no | |
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5 | |
13670 | $as_echo_n "checking for msgpack... " >&6; } | |
13671 | ||
13672 | if test -n "$MSGPACK_CFLAGS"; then | |
13673 | pkg_cv_MSGPACK_CFLAGS="$MSGPACK_CFLAGS" | |
13674 | elif test -n "$PKG_CONFIG"; then | |
13675 | if test -n "$PKG_CONFIG" && \ | |
13676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5 | |
13677 | ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5 | |
13678 | ac_status=$? | |
13679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13680 | test $ac_status = 0; }; then | |
13681 | pkg_cv_MSGPACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null` | |
13682 | test "x$?" != "x0" && pkg_failed=yes | |
13683 | else | |
13684 | pkg_failed=yes | |
13685 | fi | |
13686 | else | |
13687 | pkg_failed=untried | |
13688 | fi | |
13689 | if test -n "$MSGPACK_LIBS"; then | |
13690 | pkg_cv_MSGPACK_LIBS="$MSGPACK_LIBS" | |
13691 | elif test -n "$PKG_CONFIG"; then | |
13692 | if test -n "$PKG_CONFIG" && \ | |
13693 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5 | |
13694 | ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5 | |
13695 | ac_status=$? | |
13696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13697 | test $ac_status = 0; }; then | |
13698 | pkg_cv_MSGPACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null` | |
13699 | test "x$?" != "x0" && pkg_failed=yes | |
13700 | else | |
13701 | pkg_failed=yes | |
13702 | fi | |
13703 | else | |
13704 | pkg_failed=untried | |
13705 | fi | |
13706 | ||
13707 | if test $pkg_failed = no; then | |
13708 | pkg_save_LDFLAGS="$LDFLAGS" | |
13709 | LDFLAGS="$LDFLAGS $pkg_cv_MSGPACK_LIBS" | |
13710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13711 | /* end confdefs.h. */ | |
13712 | ||
13713 | int | |
13714 | main () | |
13715 | { | |
13716 | ||
13717 | ; | |
13718 | return 0; | |
13719 | } | |
13720 | _ACEOF | |
13721 | if ac_fn_c_try_link "$LINENO"; then : | |
13722 | ||
13723 | else | |
13724 | pkg_failed=yes | |
13725 | fi | |
13726 | rm -f core conftest.err conftest.$ac_objext \ | |
13727 | conftest$ac_exeext conftest.$ac_ext | |
13728 | LDFLAGS=$pkg_save_LDFLAGS | |
13729 | fi | |
13730 | ||
13731 | ||
13732 | ||
13733 | if test $pkg_failed = yes; then | |
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13735 | $as_echo "no" >&6; } | |
13736 | ||
13737 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13738 | _pkg_short_errors_supported=yes | |
13739 | else | |
13740 | _pkg_short_errors_supported=no | |
13741 | fi | |
13742 | if test $_pkg_short_errors_supported = yes; then | |
13743 | MSGPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1` | |
13744 | else | |
13745 | MSGPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1` | |
13746 | fi | |
13747 | # Put the nasty error message in config.log where it belongs | |
13748 | echo "$MSGPACK_PKG_ERRORS" >&5 | |
13749 | ||
544c5619 AM |
13750 | if test "$with_msgpack" = yes; then : |
13751 | as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5 | |
13752 | fi | |
2952f10c SM |
13753 | elif test $pkg_failed = untried; then |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13755 | $as_echo "no" >&6; } | |
544c5619 AM |
13756 | if test "$with_msgpack" = yes; then : |
13757 | as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5 | |
13758 | fi | |
2952f10c SM |
13759 | else |
13760 | MSGPACK_CFLAGS=$pkg_cv_MSGPACK_CFLAGS | |
13761 | MSGPACK_LIBS=$pkg_cv_MSGPACK_LIBS | |
13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13763 | $as_echo "yes" >&6; } | |
13764 | ||
2952f10c SM |
13765 | $as_echo "#define HAVE_MSGPACK 1" >>confdefs.h |
13766 | ||
2952f10c SM |
13767 | fi |
13768 | fi | |
13769 | ||
252b5132 RH |
13770 | # target-specific stuff: |
13771 | ||
13772 | # Canonicalize the secondary target names. | |
13773 | if test -n "$enable_targets"; then | |
13774 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
13775 | do | |
6d83c84b | 13776 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
13777 | if test -n "$result"; then |
13778 | canon_targets="$canon_targets $result" | |
13779 | else | |
13780 | # Allow targets that config.sub doesn't recognize, like "all". | |
13781 | canon_targets="$canon_targets $targ" | |
13782 | fi | |
13783 | done | |
13784 | fi | |
13785 | ||
81ecdfbb | 13786 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" |
d0ac1c44 | 13787 | if test "x$ac_cv_header_iconv_h" = xyes; then : |
5ba684e2 NC |
13788 | |
13789 | fi | |
13790 | ||
13791 | ||
13792 | ||
13793 | if test "X$prefix" = "XNONE"; then | |
13794 | acl_final_prefix="$ac_default_prefix" | |
13795 | else | |
13796 | acl_final_prefix="$prefix" | |
13797 | fi | |
13798 | if test "X$exec_prefix" = "XNONE"; then | |
13799 | acl_final_exec_prefix='${prefix}' | |
13800 | else | |
13801 | acl_final_exec_prefix="$exec_prefix" | |
13802 | fi | |
13803 | acl_save_prefix="$prefix" | |
13804 | prefix="$acl_final_prefix" | |
13805 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
13806 | prefix="$acl_save_prefix" | |
13807 | ||
13808 | ||
81ecdfbb RW |
13809 | # Check whether --with-gnu-ld was given. |
13810 | if test "${with_gnu_ld+set}" = set; then : | |
13811 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5ba684e2 NC |
13812 | else |
13813 | with_gnu_ld=no | |
81ecdfbb RW |
13814 | fi |
13815 | ||
5ba684e2 NC |
13816 | # Prepare PATH_SEPARATOR. |
13817 | # The user is always right. | |
13818 | if test "${PATH_SEPARATOR+set}" != set; then | |
13819 | echo "#! /bin/sh" >conf$$.sh | |
13820 | echo "exit 0" >>conf$$.sh | |
13821 | chmod +x conf$$.sh | |
13822 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13823 | PATH_SEPARATOR=';' | |
13824 | else | |
13825 | PATH_SEPARATOR=: | |
13826 | fi | |
13827 | rm -f conf$$.sh | |
13828 | fi | |
13829 | ac_prog=ld | |
13830 | if test "$GCC" = yes; then | |
13831 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
13833 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
5ba684e2 NC |
13834 | case $host in |
13835 | *-*-mingw*) | |
13836 | # gcc leaves a trailing carriage return which upsets mingw | |
13837 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
13838 | *) | |
13839 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13840 | esac | |
13841 | case $ac_prog in | |
13842 | # Accept absolute paths. | |
13843 | [\\/]* | [A-Za-z]:[\\/]*) | |
13844 | re_direlt='/[^/][^/]*/\.\./' | |
13845 | # Canonicalize the path of ld | |
13846 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
13847 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
13848 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
13849 | done | |
13850 | test -z "$LD" && LD="$ac_prog" | |
13851 | ;; | |
13852 | "") | |
13853 | # If it fails, then pretend we aren't using GCC. | |
13854 | ac_prog=ld | |
13855 | ;; | |
13856 | *) | |
13857 | # If it is relative, then search for the first ld in PATH. | |
13858 | with_gnu_ld=unknown | |
13859 | ;; | |
13860 | esac | |
13861 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
13863 | $as_echo_n "checking for GNU ld... " >&6; } | |
5ba684e2 | 13864 | else |
81ecdfbb RW |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
13866 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5ba684e2 | 13867 | fi |
d0ac1c44 | 13868 | if ${acl_cv_path_LD+:} false; then : |
81ecdfbb | 13869 | $as_echo_n "(cached) " >&6 |
5ba684e2 NC |
13870 | else |
13871 | if test -z "$LD"; then | |
13872 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
13873 | for ac_dir in $PATH; do | |
13874 | test -z "$ac_dir" && ac_dir=. | |
13875 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
13876 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
13877 | # Check to see if the program is GNU ld. I'd rather use --version, | |
13878 | # but apparently some GNU ld's only accept -v. | |
13879 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
67d1991b | 13880 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then |
5ba684e2 NC |
13881 | test "$with_gnu_ld" != no && break |
13882 | else | |
13883 | test "$with_gnu_ld" != yes && break | |
13884 | fi | |
13885 | fi | |
13886 | done | |
13887 | IFS="$ac_save_ifs" | |
13888 | else | |
13889 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
13890 | fi | |
13891 | fi | |
13892 | ||
13893 | LD="$acl_cv_path_LD" | |
13894 | if test -n "$LD"; then | |
81ecdfbb RW |
13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
13896 | $as_echo "$LD" >&6; } | |
5ba684e2 | 13897 | else |
81ecdfbb RW |
13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13899 | $as_echo "no" >&6; } | |
5ba684e2 | 13900 | fi |
d0ac1c44 | 13901 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
81ecdfbb RW |
13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
13903 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 13904 | if ${acl_cv_prog_gnu_ld+:} false; then : |
81ecdfbb | 13905 | $as_echo_n "(cached) " >&6 |
5ba684e2 NC |
13906 | else |
13907 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
67d1991b | 13908 | if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then |
5ba684e2 NC |
13909 | acl_cv_prog_gnu_ld=yes |
13910 | else | |
13911 | acl_cv_prog_gnu_ld=no | |
13912 | fi | |
13913 | fi | |
81ecdfbb RW |
13914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
13915 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
5ba684e2 NC |
13916 | with_gnu_ld=$acl_cv_prog_gnu_ld |
13917 | ||
13918 | ||
13919 | ||
81ecdfbb RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
13921 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
d0ac1c44 | 13922 | if ${acl_cv_rpath+:} false; then : |
81ecdfbb | 13923 | $as_echo_n "(cached) " >&6 |
5ba684e2 NC |
13924 | else |
13925 | ||
13926 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
13927 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
13928 | . ./conftest.sh | |
13929 | rm -f ./conftest.sh | |
13930 | acl_cv_rpath=done | |
13931 | ||
13932 | fi | |
81ecdfbb RW |
13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
13934 | $as_echo "$acl_cv_rpath" >&6; } | |
5ba684e2 NC |
13935 | wl="$acl_cv_wl" |
13936 | libext="$acl_cv_libext" | |
13937 | shlibext="$acl_cv_shlibext" | |
13938 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
13939 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
13940 | hardcode_direct="$acl_cv_hardcode_direct" | |
13941 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
81ecdfbb RW |
13942 | # Check whether --enable-rpath was given. |
13943 | if test "${enable_rpath+set}" = set; then : | |
13944 | enableval=$enable_rpath; : | |
5ba684e2 NC |
13945 | else |
13946 | enable_rpath=yes | |
81ecdfbb RW |
13947 | fi |
13948 | ||
5ba684e2 NC |
13949 | |
13950 | ||
13951 | ||
13952 | ||
13953 | ||
13954 | ||
13955 | ||
13956 | use_additional=yes | |
13957 | ||
13958 | acl_save_prefix="$prefix" | |
13959 | prefix="$acl_final_prefix" | |
13960 | acl_save_exec_prefix="$exec_prefix" | |
13961 | exec_prefix="$acl_final_exec_prefix" | |
13962 | ||
13963 | eval additional_includedir=\"$includedir\" | |
13964 | eval additional_libdir=\"$libdir\" | |
13965 | ||
13966 | exec_prefix="$acl_save_exec_prefix" | |
13967 | prefix="$acl_save_prefix" | |
13968 | ||
13969 | ||
81ecdfbb RW |
13970 | # Check whether --with-libiconv-prefix was given. |
13971 | if test "${with_libiconv_prefix+set}" = set; then : | |
13972 | withval=$with_libiconv_prefix; | |
5ba684e2 NC |
13973 | if test "X$withval" = "Xno"; then |
13974 | use_additional=no | |
13975 | else | |
13976 | if test "X$withval" = "X"; then | |
13977 | ||
13978 | acl_save_prefix="$prefix" | |
13979 | prefix="$acl_final_prefix" | |
13980 | acl_save_exec_prefix="$exec_prefix" | |
13981 | exec_prefix="$acl_final_exec_prefix" | |
13982 | ||
13983 | eval additional_includedir=\"$includedir\" | |
13984 | eval additional_libdir=\"$libdir\" | |
13985 | ||
13986 | exec_prefix="$acl_save_exec_prefix" | |
13987 | prefix="$acl_save_prefix" | |
13988 | ||
13989 | else | |
13990 | additional_includedir="$withval/include" | |
13991 | additional_libdir="$withval/lib" | |
13992 | fi | |
13993 | fi | |
13994 | ||
81ecdfbb RW |
13995 | fi |
13996 | ||
9f1528a1 AB |
13997 | |
13998 | # Check whether --with-libiconv-type was given. | |
13999 | if test "${with_libiconv_type+set}" = set; then : | |
14000 | withval=$with_libiconv_type; with_libiconv_type=$withval | |
14001 | else | |
14002 | with_libiconv_type=auto | |
14003 | fi | |
14004 | ||
14005 | lib_type=`eval echo \$with_libiconv_type` | |
14006 | ||
5ba684e2 NC |
14007 | LIBICONV= |
14008 | LTLIBICONV= | |
14009 | INCICONV= | |
14010 | rpathdirs= | |
14011 | ltrpathdirs= | |
14012 | names_already_handled= | |
14013 | names_next_round='iconv ' | |
14014 | while test -n "$names_next_round"; do | |
14015 | names_this_round="$names_next_round" | |
14016 | names_next_round= | |
14017 | for name in $names_this_round; do | |
14018 | already_handled= | |
14019 | for n in $names_already_handled; do | |
14020 | if test "$n" = "$name"; then | |
14021 | already_handled=yes | |
14022 | break | |
14023 | fi | |
14024 | done | |
14025 | if test -z "$already_handled"; then | |
14026 | names_already_handled="$names_already_handled $name" | |
14027 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
14028 | eval value=\"\$HAVE_LIB$uppername\" | |
14029 | if test -n "$value"; then | |
14030 | if test "$value" = yes; then | |
14031 | eval value=\"\$LIB$uppername\" | |
14032 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
14033 | eval value=\"\$LTLIB$uppername\" | |
14034 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
14035 | else | |
14036 | : | |
14037 | fi | |
14038 | else | |
14039 | found_dir= | |
14040 | found_la= | |
14041 | found_so= | |
14042 | found_a= | |
14043 | if test $use_additional = yes; then | |
9f1528a1 | 14044 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
5ba684e2 NC |
14045 | found_dir="$additional_libdir" |
14046 | found_so="$additional_libdir/lib$name.$shlibext" | |
14047 | if test -f "$additional_libdir/lib$name.la"; then | |
14048 | found_la="$additional_libdir/lib$name.la" | |
14049 | fi | |
9f1528a1 | 14050 | elif test x$lib_type != xshared; then |
5ba684e2 NC |
14051 | if test -f "$additional_libdir/lib$name.$libext"; then |
14052 | found_dir="$additional_libdir" | |
14053 | found_a="$additional_libdir/lib$name.$libext" | |
14054 | if test -f "$additional_libdir/lib$name.la"; then | |
14055 | found_la="$additional_libdir/lib$name.la" | |
14056 | fi | |
14057 | fi | |
14058 | fi | |
14059 | fi | |
14060 | if test "X$found_dir" = "X"; then | |
14061 | for x in $LDFLAGS $LTLIBICONV; do | |
14062 | ||
14063 | acl_save_prefix="$prefix" | |
14064 | prefix="$acl_final_prefix" | |
14065 | acl_save_exec_prefix="$exec_prefix" | |
14066 | exec_prefix="$acl_final_exec_prefix" | |
14067 | eval x=\"$x\" | |
14068 | exec_prefix="$acl_save_exec_prefix" | |
14069 | prefix="$acl_save_prefix" | |
14070 | ||
14071 | case "$x" in | |
14072 | -L*) | |
14073 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9f1528a1 | 14074 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
5ba684e2 NC |
14075 | found_dir="$dir" |
14076 | found_so="$dir/lib$name.$shlibext" | |
14077 | if test -f "$dir/lib$name.la"; then | |
14078 | found_la="$dir/lib$name.la" | |
14079 | fi | |
9f1528a1 | 14080 | elif test x$lib_type != xshared; then |
5ba684e2 NC |
14081 | if test -f "$dir/lib$name.$libext"; then |
14082 | found_dir="$dir" | |
14083 | found_a="$dir/lib$name.$libext" | |
14084 | if test -f "$dir/lib$name.la"; then | |
14085 | found_la="$dir/lib$name.la" | |
14086 | fi | |
14087 | fi | |
14088 | fi | |
14089 | ;; | |
14090 | esac | |
14091 | if test "X$found_dir" != "X"; then | |
14092 | break | |
14093 | fi | |
14094 | done | |
14095 | fi | |
14096 | if test "X$found_dir" != "X"; then | |
14097 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
14098 | if test "X$found_so" != "X"; then | |
14099 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
14100 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14101 | else | |
14102 | haveit= | |
14103 | for x in $ltrpathdirs; do | |
14104 | if test "X$x" = "X$found_dir"; then | |
14105 | haveit=yes | |
14106 | break | |
14107 | fi | |
14108 | done | |
14109 | if test -z "$haveit"; then | |
14110 | ltrpathdirs="$ltrpathdirs $found_dir" | |
14111 | fi | |
14112 | if test "$hardcode_direct" = yes; then | |
14113 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14114 | else | |
14115 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
14116 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14117 | haveit= | |
14118 | for x in $rpathdirs; do | |
14119 | if test "X$x" = "X$found_dir"; then | |
14120 | haveit=yes | |
14121 | break | |
14122 | fi | |
14123 | done | |
14124 | if test -z "$haveit"; then | |
14125 | rpathdirs="$rpathdirs $found_dir" | |
14126 | fi | |
14127 | else | |
14128 | haveit= | |
14129 | for x in $LDFLAGS $LIBICONV; do | |
14130 | ||
14131 | acl_save_prefix="$prefix" | |
14132 | prefix="$acl_final_prefix" | |
14133 | acl_save_exec_prefix="$exec_prefix" | |
14134 | exec_prefix="$acl_final_exec_prefix" | |
14135 | eval x=\"$x\" | |
14136 | exec_prefix="$acl_save_exec_prefix" | |
14137 | prefix="$acl_save_prefix" | |
14138 | ||
14139 | if test "X$x" = "X-L$found_dir"; then | |
14140 | haveit=yes | |
14141 | break | |
14142 | fi | |
14143 | done | |
14144 | if test -z "$haveit"; then | |
14145 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
14146 | fi | |
14147 | if test "$hardcode_minus_L" != no; then | |
14148 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14149 | else | |
14150 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
14151 | fi | |
14152 | fi | |
14153 | fi | |
14154 | fi | |
14155 | else | |
14156 | if test "X$found_a" != "X"; then | |
14157 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
14158 | else | |
14159 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
14160 | fi | |
14161 | fi | |
14162 | additional_includedir= | |
14163 | case "$found_dir" in | |
14164 | */lib | */lib/) | |
14165 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
14166 | additional_includedir="$basedir/include" | |
14167 | ;; | |
14168 | esac | |
14169 | if test "X$additional_includedir" != "X"; then | |
14170 | if test "X$additional_includedir" != "X/usr/include"; then | |
14171 | haveit= | |
14172 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
14173 | if test -n "$GCC"; then | |
14174 | case $host_os in | |
14175 | linux*) haveit=yes;; | |
14176 | esac | |
14177 | fi | |
14178 | fi | |
14179 | if test -z "$haveit"; then | |
14180 | for x in $CPPFLAGS $INCICONV; do | |
14181 | ||
14182 | acl_save_prefix="$prefix" | |
14183 | prefix="$acl_final_prefix" | |
14184 | acl_save_exec_prefix="$exec_prefix" | |
14185 | exec_prefix="$acl_final_exec_prefix" | |
14186 | eval x=\"$x\" | |
14187 | exec_prefix="$acl_save_exec_prefix" | |
14188 | prefix="$acl_save_prefix" | |
14189 | ||
14190 | if test "X$x" = "X-I$additional_includedir"; then | |
14191 | haveit=yes | |
14192 | break | |
14193 | fi | |
14194 | done | |
14195 | if test -z "$haveit"; then | |
14196 | if test -d "$additional_includedir"; then | |
14197 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
14198 | fi | |
14199 | fi | |
14200 | fi | |
14201 | fi | |
14202 | fi | |
14203 | if test -n "$found_la"; then | |
14204 | save_libdir="$libdir" | |
14205 | case "$found_la" in | |
14206 | */* | *\\*) . "$found_la" ;; | |
14207 | *) . "./$found_la" ;; | |
14208 | esac | |
14209 | libdir="$save_libdir" | |
14210 | for dep in $dependency_libs; do | |
14211 | case "$dep" in | |
14212 | -L*) | |
14213 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
14214 | if test "X$additional_libdir" != "X/usr/lib"; then | |
14215 | haveit= | |
14216 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
14217 | if test -n "$GCC"; then | |
14218 | case $host_os in | |
14219 | linux*) haveit=yes;; | |
14220 | esac | |
14221 | fi | |
14222 | fi | |
14223 | if test -z "$haveit"; then | |
14224 | haveit= | |
14225 | for x in $LDFLAGS $LIBICONV; do | |
14226 | ||
14227 | acl_save_prefix="$prefix" | |
14228 | prefix="$acl_final_prefix" | |
14229 | acl_save_exec_prefix="$exec_prefix" | |
14230 | exec_prefix="$acl_final_exec_prefix" | |
14231 | eval x=\"$x\" | |
14232 | exec_prefix="$acl_save_exec_prefix" | |
14233 | prefix="$acl_save_prefix" | |
14234 | ||
14235 | if test "X$x" = "X-L$additional_libdir"; then | |
14236 | haveit=yes | |
14237 | break | |
14238 | fi | |
14239 | done | |
14240 | if test -z "$haveit"; then | |
14241 | if test -d "$additional_libdir"; then | |
14242 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
14243 | fi | |
14244 | fi | |
14245 | haveit= | |
14246 | for x in $LDFLAGS $LTLIBICONV; do | |
14247 | ||
14248 | acl_save_prefix="$prefix" | |
14249 | prefix="$acl_final_prefix" | |
14250 | acl_save_exec_prefix="$exec_prefix" | |
14251 | exec_prefix="$acl_final_exec_prefix" | |
14252 | eval x=\"$x\" | |
14253 | exec_prefix="$acl_save_exec_prefix" | |
14254 | prefix="$acl_save_prefix" | |
14255 | ||
14256 | if test "X$x" = "X-L$additional_libdir"; then | |
14257 | haveit=yes | |
14258 | break | |
14259 | fi | |
14260 | done | |
14261 | if test -z "$haveit"; then | |
14262 | if test -d "$additional_libdir"; then | |
14263 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
14264 | fi | |
14265 | fi | |
14266 | fi | |
14267 | fi | |
14268 | ;; | |
14269 | -R*) | |
14270 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
14271 | if test "$enable_rpath" != no; then | |
14272 | haveit= | |
14273 | for x in $rpathdirs; do | |
14274 | if test "X$x" = "X$dir"; then | |
14275 | haveit=yes | |
14276 | break | |
14277 | fi | |
14278 | done | |
14279 | if test -z "$haveit"; then | |
14280 | rpathdirs="$rpathdirs $dir" | |
14281 | fi | |
14282 | haveit= | |
14283 | for x in $ltrpathdirs; do | |
14284 | if test "X$x" = "X$dir"; then | |
14285 | haveit=yes | |
14286 | break | |
14287 | fi | |
14288 | done | |
14289 | if test -z "$haveit"; then | |
14290 | ltrpathdirs="$ltrpathdirs $dir" | |
14291 | fi | |
14292 | fi | |
14293 | ;; | |
14294 | -l*) | |
14295 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
14296 | ;; | |
14297 | *.la) | |
14298 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
14299 | ;; | |
14300 | *) | |
14301 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
14302 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
14303 | ;; | |
14304 | esac | |
14305 | done | |
14306 | fi | |
14307 | else | |
9f1528a1 AB |
14308 | if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then |
14309 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
14310 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
14311 | else | |
14312 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" | |
14313 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" | |
14314 | fi | |
5ba684e2 NC |
14315 | fi |
14316 | fi | |
14317 | fi | |
14318 | done | |
14319 | done | |
14320 | if test "X$rpathdirs" != "X"; then | |
14321 | if test -n "$hardcode_libdir_separator"; then | |
14322 | alldirs= | |
14323 | for found_dir in $rpathdirs; do | |
14324 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
14325 | done | |
14326 | acl_save_libdir="$libdir" | |
14327 | libdir="$alldirs" | |
14328 | eval flag=\"$hardcode_libdir_flag_spec\" | |
14329 | libdir="$acl_save_libdir" | |
14330 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
14331 | else | |
14332 | for found_dir in $rpathdirs; do | |
14333 | acl_save_libdir="$libdir" | |
14334 | libdir="$found_dir" | |
14335 | eval flag=\"$hardcode_libdir_flag_spec\" | |
14336 | libdir="$acl_save_libdir" | |
14337 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
14338 | done | |
14339 | fi | |
14340 | fi | |
14341 | if test "X$ltrpathdirs" != "X"; then | |
14342 | for found_dir in $ltrpathdirs; do | |
14343 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
14344 | done | |
14345 | fi | |
14346 | ||
14347 | ||
14348 | ||
14349 | ||
14350 | ||
14351 | ||
14352 | ||
81ecdfbb RW |
14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
14354 | $as_echo_n "checking for iconv... " >&6; } | |
d0ac1c44 | 14355 | if ${am_cv_func_iconv+:} false; then : |
81ecdfbb | 14356 | $as_echo_n "(cached) " >&6 |
5ba684e2 NC |
14357 | else |
14358 | ||
14359 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
14360 | am_cv_lib_iconv=no | |
cfe101c6 YS |
14361 | am_save_CPPFLAGS="$CPPFLAGS" |
14362 | CPPFLAGS="$CPPFLAGS $INCICONV" | |
81ecdfbb | 14363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5ba684e2 NC |
14364 | /* end confdefs.h. */ |
14365 | #include <stdlib.h> | |
14366 | #include <iconv.h> | |
14367 | int | |
14368 | main () | |
14369 | { | |
14370 | iconv_t cd = iconv_open("",""); | |
14371 | iconv(cd,NULL,NULL,NULL,NULL); | |
14372 | iconv_close(cd); | |
14373 | ; | |
14374 | return 0; | |
14375 | } | |
14376 | _ACEOF | |
81ecdfbb | 14377 | if ac_fn_c_try_link "$LINENO"; then : |
5ba684e2 | 14378 | am_cv_func_iconv=yes |
5ba684e2 | 14379 | fi |
81ecdfbb RW |
14380 | rm -f core conftest.err conftest.$ac_objext \ |
14381 | conftest$ac_exeext conftest.$ac_ext | |
cfe101c6 YS |
14382 | CPPFLAGS="$am_save_CPPFLAGS" |
14383 | ||
14384 | if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then | |
14385 | for _libs in .libs _libs; do | |
14386 | am_save_CPPFLAGS="$CPPFLAGS" | |
14387 | am_save_LIBS="$LIBS" | |
14388 | CPPFLAGS="$CPPFLAGS -I../libiconv/include" | |
14389 | LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" | |
14390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14391 | /* end confdefs.h. */ | |
14392 | #include <stdlib.h> | |
14393 | #include <iconv.h> | |
14394 | int | |
14395 | main () | |
14396 | { | |
14397 | iconv_t cd = iconv_open("",""); | |
14398 | iconv(cd,NULL,NULL,NULL,NULL); | |
14399 | iconv_close(cd); | |
14400 | ; | |
14401 | return 0; | |
14402 | } | |
14403 | _ACEOF | |
14404 | if ac_fn_c_try_link "$LINENO"; then : | |
14405 | INCICONV="-I../libiconv/include" | |
14406 | LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a | |
14407 | LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la | |
14408 | am_cv_lib_iconv=yes | |
14409 | am_cv_func_iconv=yes | |
14410 | fi | |
14411 | rm -f core conftest.err conftest.$ac_objext \ | |
14412 | conftest$ac_exeext conftest.$ac_ext | |
14413 | CPPFLAGS="$am_save_CPPFLAGS" | |
14414 | LIBS="$am_save_LIBS" | |
14415 | if test "$am_cv_func_iconv" = "yes"; then | |
14416 | break | |
14417 | fi | |
14418 | done | |
14419 | fi | |
14420 | ||
5ba684e2 | 14421 | if test "$am_cv_func_iconv" != yes; then |
cfe101c6 | 14422 | am_save_CPPFLAGS="$CPPFLAGS" |
5ba684e2 | 14423 | am_save_LIBS="$LIBS" |
5d762de0 | 14424 | CPPFLAGS="$CPPFLAGS $INCICONV" |
5ba684e2 | 14425 | LIBS="$LIBS $LIBICONV" |
81ecdfbb | 14426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5ba684e2 NC |
14427 | /* end confdefs.h. */ |
14428 | #include <stdlib.h> | |
14429 | #include <iconv.h> | |
14430 | int | |
14431 | main () | |
14432 | { | |
14433 | iconv_t cd = iconv_open("",""); | |
14434 | iconv(cd,NULL,NULL,NULL,NULL); | |
14435 | iconv_close(cd); | |
14436 | ; | |
14437 | return 0; | |
14438 | } | |
14439 | _ACEOF | |
81ecdfbb | 14440 | if ac_fn_c_try_link "$LINENO"; then : |
5ba684e2 NC |
14441 | am_cv_lib_iconv=yes |
14442 | am_cv_func_iconv=yes | |
5ba684e2 | 14443 | fi |
81ecdfbb RW |
14444 | rm -f core conftest.err conftest.$ac_objext \ |
14445 | conftest$ac_exeext conftest.$ac_ext | |
cfe101c6 | 14446 | CPPFLAGS="$am_save_CPPFLAGS" |
5ba684e2 NC |
14447 | LIBS="$am_save_LIBS" |
14448 | fi | |
14449 | ||
14450 | fi | |
81ecdfbb RW |
14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
14452 | $as_echo "$am_cv_func_iconv" >&6; } | |
5ba684e2 NC |
14453 | if test "$am_cv_func_iconv" = yes; then |
14454 | ||
81ecdfbb | 14455 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
5ba684e2 NC |
14456 | |
14457 | fi | |
14458 | if test "$am_cv_lib_iconv" = yes; then | |
cfe101c6 YS |
14459 | |
14460 | for element in $INCICONV; do | |
14461 | haveit= | |
14462 | for x in $CPPFLAGS; do | |
14463 | ||
14464 | acl_save_prefix="$prefix" | |
14465 | prefix="$acl_final_prefix" | |
14466 | acl_save_exec_prefix="$exec_prefix" | |
14467 | exec_prefix="$acl_final_exec_prefix" | |
14468 | eval x=\"$x\" | |
14469 | exec_prefix="$acl_save_exec_prefix" | |
14470 | prefix="$acl_save_prefix" | |
14471 | ||
14472 | if test "X$x" = "X$element"; then | |
14473 | haveit=yes | |
14474 | break | |
14475 | fi | |
14476 | done | |
14477 | if test -z "$haveit"; then | |
14478 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
14479 | fi | |
14480 | done | |
14481 | ||
81ecdfbb RW |
14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
14483 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
14484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
14485 | $as_echo "$LIBICONV" >&6; } | |
5ba684e2 | 14486 | else |
5ba684e2 NC |
14487 | LIBICONV= |
14488 | LTLIBICONV= | |
14489 | fi | |
14490 | ||
14491 | ||
14492 | ||
14493 | if test "$am_cv_func_iconv" = yes; then | |
81ecdfbb RW |
14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
14495 | $as_echo_n "checking for iconv declaration... " >&6; } | |
d0ac1c44 | 14496 | if ${am_cv_proto_iconv+:} false; then : |
81ecdfbb | 14497 | $as_echo_n "(cached) " >&6 |
5ba684e2 NC |
14498 | else |
14499 | ||
81ecdfbb | 14500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5ba684e2 NC |
14501 | /* end confdefs.h. */ |
14502 | ||
14503 | #include <stdlib.h> | |
14504 | #include <iconv.h> | |
14505 | extern | |
14506 | #ifdef __cplusplus | |
14507 | "C" | |
14508 | #endif | |
14509 | #if defined(__STDC__) || defined(__cplusplus) | |
14510 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
14511 | #else | |
14512 | size_t iconv(); | |
14513 | #endif | |
14514 | ||
14515 | int | |
14516 | main () | |
14517 | { | |
14518 | ||
14519 | ; | |
14520 | return 0; | |
14521 | } | |
14522 | _ACEOF | |
81ecdfbb | 14523 | if ac_fn_c_try_compile "$LINENO"; then : |
5ba684e2 NC |
14524 | am_cv_proto_iconv_arg1="" |
14525 | else | |
81ecdfbb | 14526 | am_cv_proto_iconv_arg1="const" |
5ba684e2 | 14527 | fi |
81ecdfbb | 14528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5ba684e2 NC |
14529 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
14530 | fi | |
14531 | ||
14532 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
81ecdfbb | 14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
5ba684e2 | 14534 | }$am_cv_proto_iconv" >&5 |
81ecdfbb RW |
14535 | $as_echo "${ac_t:- |
14536 | }$am_cv_proto_iconv" >&6; } | |
5ba684e2 NC |
14537 | |
14538 | cat >>confdefs.h <<_ACEOF | |
14539 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
14540 | _ACEOF | |
14541 | ||
14542 | fi | |
14543 | ||
14544 | ||
675b9d61 | 14545 | all_targets=false |
252b5132 RH |
14546 | BUILD_SRCONV= |
14547 | BUILD_DLLTOOL= | |
14548 | DLLTOOL_DEFS= | |
7aad4c3d | 14549 | DLLTOOL_DEFAULT= |
252b5132 | 14550 | BUILD_WINDRES= |
692ed3e7 | 14551 | BUILD_WINDMC= |
252b5132 RH |
14552 | BUILD_DLLWRAP= |
14553 | BUILD_MISC= | |
1d97d67f | 14554 | BUILD_INSTALL_MISC= |
8b1e6df3 | 14555 | OBJDUMP_DEFS= |
6abcee90 TG |
14556 | OBJDUMP_PRIVATE_VECTORS= |
14557 | OBJDUMP_PRIVATE_OFILES= | |
14558 | od_vectors= | |
252b5132 RH |
14559 | |
14560 | for targ in $target $canon_targets | |
14561 | do | |
675b9d61 NC |
14562 | if test "x$targ" = "xall"; then |
14563 | all_targets=true | |
252b5132 | 14564 | BUILD_SRCONV='$(SRCONV_PROG)' |
675b9d61 | 14565 | BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' |
b7bf7f1b AM |
14566 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
14567 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
b7bf7f1b AM |
14568 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
14569 | if test -z "$DLLTOOL_DEFAULT"; then | |
675b9d61 | 14570 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" |
b7bf7f1b AM |
14571 | fi |
14572 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
b7bf7f1b | 14573 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' |
675b9d61 NC |
14574 | od_vectors="$od_vectors objdump_private_desc_xcoff objdump_private_desc_pe" |
14575 | else | |
14576 | case $targ in | |
14577 | *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; | |
14578 | esac | |
14579 | ||
14580 | case $targ in | |
14581 | aarch64-*-mingw*) | |
14582 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
14583 | if test -z "$DLLTOOL_DEFAULT"; then | |
14584 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_AARCH64" | |
14585 | fi | |
14586 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_AARCH64" | |
14587 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
14588 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
14589 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' | |
14590 | ;; | |
14591 | arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*) | |
14592 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
14593 | if test -z "$DLLTOOL_DEFAULT"; then | |
14594 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE" | |
14595 | fi | |
14596 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM" | |
14597 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
14598 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
14599 | ;; | |
14600 | arm-*-pe*) | |
14601 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
14602 | if test -z "$DLLTOOL_DEFAULT"; then | |
14603 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM" | |
14604 | fi | |
14605 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" | |
14606 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
14607 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
14608 | ;; | |
14609 | x86_64-*-mingw* | x86_64-*-cygwin*) | |
14610 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
14611 | if test -z "$DLLTOOL_DEFAULT"; then | |
14612 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64" | |
14613 | fi | |
14614 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64" | |
14615 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
14616 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
14617 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' | |
14618 | ;; | |
14619 | i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32**) | |
14620 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
14621 | if test -z "$DLLTOOL_DEFAULT"; then | |
7aad4c3d | 14622 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" |
675b9d61 NC |
14623 | fi |
14624 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
14625 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
14626 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
14627 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' | |
14628 | ;; | |
14629 | i[3-7]86-*-interix) | |
14630 | BUILD_DLLTOOL='$(DLLTOOL_PROG)' | |
14631 | if test -z "$DLLTOOL_DEFAULT"; then | |
14632 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" | |
14633 | fi | |
14634 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
14635 | ;; | |
14636 | powerpc*-aix5.[01]) | |
14637 | ;; | |
14638 | powerpc*-aix[5-9].*) | |
14639 | OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT" | |
14640 | ;; | |
14641 | powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*) | |
14642 | case "$BUILD_INSTALL_MISC" in | |
14643 | *embedspu*) ;; | |
14644 | *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu" | |
14645 | esac | |
14646 | ;; | |
14647 | sh*-*-pe) | |
14648 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
14649 | if test -z "$DLLTOOL_DEFAULT"; then | |
14650 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH" | |
14651 | fi | |
14652 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" | |
14653 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
14654 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
14655 | ;; | |
14656 | spu-*-*) | |
14657 | BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' | |
14658 | ;; | |
14659 | mcore-*-pe) | |
14660 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
14661 | if test -z "$DLLTOOL_DEFAULT"; then | |
7aad4c3d | 14662 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE" |
675b9d61 NC |
14663 | fi |
14664 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE" | |
14665 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
14666 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
14667 | ;; | |
14668 | mcore-*-elf) | |
14669 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
14670 | if test -z "$DLLTOOL_DEFAULT"; then | |
7aad4c3d | 14671 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF" |
675b9d61 NC |
14672 | fi |
14673 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" | |
14674 | ;; | |
14675 | mep-*) | |
14676 | OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0" | |
14677 | ;; | |
14678 | esac | |
6abcee90 | 14679 | |
675b9d61 NC |
14680 | # Add objdump private vectors. |
14681 | case $targ in | |
14682 | avr-*-*) | |
14683 | od_vectors="$od_vectors objdump_private_desc_elf32_avr" | |
14684 | ;; | |
14685 | powerpc*-*-aix* | rs6000-*-aix*) | |
14686 | od_vectors="$od_vectors objdump_private_desc_xcoff" | |
14687 | ;; | |
14688 | *-*-pe* | *-*-cygwin* | *-*-mingw*) | |
14689 | od_vectors="$od_vectors objdump_private_desc_pe" | |
14690 | ;; | |
14691 | *-*-darwin*) | |
14692 | od_vectors="$od_vectors objdump_private_desc_mach_o" | |
14693 | ;; | |
14694 | esac | |
14695 | fi | |
252b5132 RH |
14696 | done |
14697 | ||
6abcee90 TG |
14698 | # Uniq objdump private vector, build objdump target ofiles. |
14699 | od_files= | |
14700 | f="" | |
14701 | for i in $od_vectors ; do | |
14702 | case " $f " in | |
14703 | *" $i "*) ;; | |
14704 | *) | |
14705 | f="$f $i" | |
14706 | OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i," | |
14707 | case $i in | |
6d0cfb9c DC |
14708 | objdump_private_desc_elf32_avr) |
14709 | od_files="$od_files od-elf32_avr" ;; | |
6abcee90 TG |
14710 | objdump_private_desc_xcoff) |
14711 | od_files="$od_files od-xcoff" ;; | |
45b8517a NC |
14712 | objdump_private_desc_pe) |
14713 | od_files="$od_files od-pe" ;; | |
c5012cd8 TG |
14714 | objdump_private_desc_mach_o) |
14715 | od_files="$od_files od-macho" ;; | |
d0ac1c44 | 14716 | *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;; |
6abcee90 TG |
14717 | esac |
14718 | ;; | |
14719 | esac | |
14720 | done | |
14721 | ||
14722 | # Uniq objdump target ofiles | |
14723 | f="" | |
14724 | for i in $od_files ; do | |
14725 | case " $f " in | |
14726 | *" $i "*) ;; | |
14727 | *) | |
14728 | f="$f $i" | |
14729 | OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext" | |
14730 | ;; | |
14731 | esac | |
14732 | done | |
14733 | ||
7aad4c3d L |
14734 | DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT" |
14735 | ||
42ecbf5e DJ |
14736 | if test "${with_windres+set}" = set; then |
14737 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
14738 | fi | |
14739 | ||
692ed3e7 NC |
14740 | if test "${with_windmc+set}" = set; then |
14741 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
14742 | fi | |
14743 | ||
6abcee90 TG |
14744 | OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\"" |
14745 | ||
14746 | ||
692ed3e7 | 14747 | |
42ecbf5e DJ |
14748 | |
14749 | ||
14750 | ||
14751 | ||
14752 | ||
14753 | ||
14754 | ||
14755 | ||
14756 | ||
14757 | ||
42ecbf5e DJ |
14758 | cat >>confdefs.h <<_ACEOF |
14759 | #define TARGET "${target}" | |
14760 | _ACEOF | |
14761 | ||
14762 | ||
14763 | targ=$target | |
14764 | . $srcdir/../bfd/config.bfd | |
14765 | if test "x$targ_underscore" = "xyes"; then | |
14766 | UNDERSCORE=1 | |
14767 | else | |
14768 | UNDERSCORE=0 | |
14769 | fi | |
14770 | ||
14771 | cat >>confdefs.h <<_ACEOF | |
14772 | #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE | |
14773 | _ACEOF | |
14774 | ||
14775 | ||
14776 | # Emulation | |
52fbfb5d AM |
14777 | targ=$target |
14778 | . ${srcdir}/configure.tgt | |
14779 | EMULATION=$targ_emul | |
14780 | EMULATION_VECTOR=$targ_emul_vector | |
42ecbf5e DJ |
14781 | |
14782 | ||
14783 | ||
14784 | ||
108a6f8e CD |
14785 | # Required for html and install-html |
14786 | ||
14787 | ||
14788 | ||
14789 | ||
31dd3154 | 14790 | |
45c06bb7 | 14791 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
da594c4a | 14792 | |
42ecbf5e DJ |
14793 | cat >confcache <<\_ACEOF |
14794 | # This file is a shell script that caches the results of configure | |
14795 | # tests run on this system so they can be shared between configure | |
14796 | # scripts and configure runs, see configure's option --config-cache. | |
14797 | # It is not useful on other systems. If it contains results you don't | |
14798 | # want to keep, you may remove or edit it. | |
14799 | # | |
14800 | # config.status only pays attention to the cache file if you give it | |
14801 | # the --recheck option to rerun configure. | |
14802 | # | |
14803 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14804 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14805 | # following values. | |
14806 | ||
14807 | _ACEOF | |
14808 | ||
14809 | # The following way of writing the cache mishandles newlines in values, | |
14810 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14811 | # So, we kill variables containing newlines. |
42ecbf5e DJ |
14812 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14813 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14814 | ( |
14815 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14816 | eval ac_val=\$$ac_var | |
14817 | case $ac_val in #( | |
14818 | *${as_nl}*) | |
14819 | case $ac_var in #( | |
14820 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14821 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14822 | esac | |
14823 | case $ac_var in #( | |
14824 | _ | IFS | as_nl) ;; #( | |
14825 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14826 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14827 | esac ;; | |
14828 | esac | |
14829 | done | |
14830 | ||
42ecbf5e | 14831 | (set) 2>&1 | |
81ecdfbb RW |
14832 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14833 | *${as_nl}ac_space=\ *) | |
14834 | # `set' does not quote correctly, so add quotes: double-quote | |
14835 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
42ecbf5e DJ |
14836 | sed -n \ |
14837 | "s/'/'\\\\''/g; | |
14838 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14839 | ;; #( |
42ecbf5e DJ |
14840 | *) |
14841 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14842 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 14843 | ;; |
81ecdfbb RW |
14844 | esac | |
14845 | sort | |
14846 | ) | | |
42ecbf5e | 14847 | sed ' |
81ecdfbb | 14848 | /^ac_cv_env_/b end |
42ecbf5e | 14849 | t clear |
81ecdfbb | 14850 | :clear |
42ecbf5e DJ |
14851 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14852 | t end | |
81ecdfbb RW |
14853 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14854 | :end' >>confcache | |
14855 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14856 | if test -w "$cache_file"; then | |
d0ac1c44 | 14857 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14859 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14860 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14861 | cat confcache >"$cache_file" | |
14862 | else | |
14863 | case $cache_file in #( | |
14864 | */* | ?:*) | |
14865 | mv -f confcache "$cache_file"$$ && | |
14866 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14867 | *) | |
14868 | mv -f confcache "$cache_file" ;; | |
14869 | esac | |
14870 | fi | |
14871 | fi | |
42ecbf5e | 14872 | else |
81ecdfbb RW |
14873 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14874 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
42ecbf5e DJ |
14875 | fi |
14876 | fi | |
14877 | rm -f confcache | |
14878 | ||
14879 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14880 | # Let make expand exec_prefix. | |
14881 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14882 | ||
42ecbf5e DJ |
14883 | DEFS=-DHAVE_CONFIG_H |
14884 | ||
14885 | ac_libobjs= | |
14886 | ac_ltlibobjs= | |
d0ac1c44 | 14887 | U= |
42ecbf5e DJ |
14888 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14889 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14890 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14891 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14892 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14893 | # will be set to the directory where LIBOBJS objects are built. | |
14894 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14895 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
42ecbf5e DJ |
14896 | done |
14897 | LIBOBJS=$ac_libobjs | |
14898 | ||
14899 | LTLIBOBJS=$ac_ltlibobjs | |
14900 | ||
14901 | ||
d0ac1c44 SM |
14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
14903 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
14904 | if test -n "$am_sleep_pid"; then | |
14905 | # Hide warnings about reused PIDs. | |
14906 | wait $am_sleep_pid 2>/dev/null | |
14907 | fi | |
14908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
14909 | $as_echo "done" >&6; } | |
81ecdfbb RW |
14910 | if test -n "$EXEEXT"; then |
14911 | am__EXEEXT_TRUE= | |
14912 | am__EXEEXT_FALSE='#' | |
14913 | else | |
14914 | am__EXEEXT_TRUE='#' | |
14915 | am__EXEEXT_FALSE= | |
42ecbf5e | 14916 | fi |
81ecdfbb | 14917 | |
87b9f255 AM |
14918 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14919 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
14920 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14921 | fi | |
14922 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
14923 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
14924 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14925 | fi | |
094e34f2 NA |
14926 | if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then |
14927 | as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined. | |
14928 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14929 | fi | |
42ecbf5e | 14930 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 14931 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
81ecdfbb | 14932 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
42ecbf5e | 14933 | fi |
d5fbea21 | 14934 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
d0ac1c44 | 14935 | as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. |
81ecdfbb | 14936 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
d5fbea21 | 14937 | fi |
42ecbf5e | 14938 | |
d0ac1c44 | 14939 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 14940 | ac_write_fail=0 |
42ecbf5e DJ |
14941 | ac_clean_files_save=$ac_clean_files |
14942 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14943 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14944 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14945 | as_write_fail=0 | |
14946 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
42ecbf5e DJ |
14947 | #! $SHELL |
14948 | # Generated by $as_me. | |
14949 | # Run this file to recreate the current configuration. | |
14950 | # Compiler output produced by configure, useful for debugging | |
14951 | # configure, is in config.log if it exists. | |
14952 | ||
14953 | debug=false | |
14954 | ac_cs_recheck=false | |
14955 | ac_cs_silent=false | |
252b5132 | 14956 | |
81ecdfbb RW |
14957 | SHELL=\${CONFIG_SHELL-$SHELL} |
14958 | export SHELL | |
14959 | _ASEOF | |
14960 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14961 | ## -------------------- ## | |
14962 | ## M4sh Initialization. ## | |
14963 | ## -------------------- ## | |
252b5132 | 14964 | |
81ecdfbb RW |
14965 | # Be more Bourne compatible |
14966 | DUALCASE=1; export DUALCASE # for MKS sh | |
14967 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
14968 | emulate sh |
14969 | NULLCMD=: | |
81ecdfbb | 14970 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
14971 | # is contrary to our usage. Disable this feature. |
14972 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14973 | setopt NO_GLOB_SUBST |
14974 | else | |
14975 | case `(set -o) 2>/dev/null` in #( | |
14976 | *posix*) : | |
14977 | set -o posix ;; #( | |
14978 | *) : | |
14979 | ;; | |
14980 | esac | |
42ecbf5e | 14981 | fi |
252b5132 | 14982 | |
81ecdfbb RW |
14983 | |
14984 | as_nl=' | |
14985 | ' | |
14986 | export as_nl | |
14987 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14988 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14989 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14990 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14991 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14992 | # but without wasting forks for bash or zsh. | |
14993 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14994 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14995 | as_echo='print -r --' | |
14996 | as_echo_n='print -rn --' | |
14997 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14998 | as_echo='printf %s\n' | |
14999 | as_echo_n='printf %s' | |
15000 | else | |
15001 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15002 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15003 | as_echo_n='/usr/ucb/echo -n' | |
15004 | else | |
15005 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15006 | as_echo_n_body='eval | |
15007 | arg=$1; | |
15008 | case $arg in #( | |
15009 | *"$as_nl"*) | |
15010 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15011 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15012 | esac; | |
15013 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15014 | ' | |
15015 | export as_echo_n_body | |
15016 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15017 | fi | |
15018 | export as_echo_body | |
15019 | as_echo='sh -c $as_echo_body as_echo' | |
15020 | fi | |
15021 | ||
15022 | # The user is always right. | |
15023 | if test "${PATH_SEPARATOR+set}" != set; then | |
15024 | PATH_SEPARATOR=: | |
15025 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15026 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15027 | PATH_SEPARATOR=';' | |
15028 | } | |
42ecbf5e | 15029 | fi |
252b5132 RH |
15030 | |
15031 | ||
81ecdfbb RW |
15032 | # IFS |
15033 | # We need space, tab and new line, in precisely that order. Quoting is | |
15034 | # there to prevent editors from complaining about space-tab. | |
15035 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15036 | # splitting by setting IFS to empty value.) | |
15037 | IFS=" "" $as_nl" | |
15038 | ||
15039 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 15040 | as_myself= |
81ecdfbb RW |
15041 | case $0 in #(( |
15042 | *[\\/]* ) as_myself=$0 ;; | |
15043 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15044 | for as_dir in $PATH | |
15045 | do | |
15046 | IFS=$as_save_IFS | |
15047 | test -z "$as_dir" && as_dir=. | |
15048 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15049 | done | |
15050 | IFS=$as_save_IFS | |
15051 | ||
15052 | ;; | |
15053 | esac | |
15054 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15055 | # in which case we are not to be found in the path. | |
15056 | if test "x$as_myself" = x; then | |
15057 | as_myself=$0 | |
15058 | fi | |
15059 | if test ! -f "$as_myself"; then | |
15060 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15061 | exit 1 | |
15062 | fi | |
15063 | ||
15064 | # Unset variables that we do not need and which cause bugs (e.g. in | |
15065 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15066 | # suppresses any "Segmentation fault" message there. '((' could | |
15067 | # trigger a bug in pdksh 5.2.14. | |
15068 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15069 | do eval test x\${$as_var+set} = xset \ | |
15070 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15071 | done | |
42ecbf5e DJ |
15072 | PS1='$ ' |
15073 | PS2='> ' | |
15074 | PS4='+ ' | |
252b5132 | 15075 | |
42ecbf5e | 15076 | # NLS nuisances. |
81ecdfbb RW |
15077 | LC_ALL=C |
15078 | export LC_ALL | |
15079 | LANGUAGE=C | |
15080 | export LANGUAGE | |
15081 | ||
15082 | # CDPATH. | |
15083 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15084 | ||
15085 | ||
d0ac1c44 SM |
15086 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15087 | # ---------------------------------------- | |
81ecdfbb RW |
15088 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15089 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 15090 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
15091 | as_fn_error () |
15092 | { | |
d0ac1c44 SM |
15093 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15094 | if test "$4"; then | |
15095 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15096 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
42ecbf5e | 15097 | fi |
d0ac1c44 | 15098 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
15099 | as_fn_exit $as_status |
15100 | } # as_fn_error | |
15101 | ||
15102 | ||
15103 | # as_fn_set_status STATUS | |
15104 | # ----------------------- | |
15105 | # Set $? to STATUS, without forking. | |
15106 | as_fn_set_status () | |
15107 | { | |
15108 | return $1 | |
15109 | } # as_fn_set_status | |
15110 | ||
15111 | # as_fn_exit STATUS | |
15112 | # ----------------- | |
15113 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15114 | as_fn_exit () | |
15115 | { | |
15116 | set +e | |
15117 | as_fn_set_status $1 | |
15118 | exit $1 | |
15119 | } # as_fn_exit | |
15120 | ||
15121 | # as_fn_unset VAR | |
15122 | # --------------- | |
15123 | # Portably unset VAR. | |
15124 | as_fn_unset () | |
15125 | { | |
15126 | { eval $1=; unset $1;} | |
15127 | } | |
15128 | as_unset=as_fn_unset | |
15129 | # as_fn_append VAR VALUE | |
15130 | # ---------------------- | |
15131 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15132 | # advantage of any shell optimizations that allow amortized linear growth over | |
15133 | # repeated appends, instead of the typical quadratic growth present in naive | |
15134 | # implementations. | |
15135 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15136 | eval 'as_fn_append () | |
15137 | { | |
15138 | eval $1+=\$2 | |
15139 | }' | |
15140 | else | |
15141 | as_fn_append () | |
15142 | { | |
15143 | eval $1=\$$1\$2 | |
15144 | } | |
15145 | fi # as_fn_append | |
15146 | ||
15147 | # as_fn_arith ARG... | |
15148 | # ------------------ | |
15149 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15150 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15151 | # must be portable across $(()) and expr. | |
15152 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15153 | eval 'as_fn_arith () | |
15154 | { | |
15155 | as_val=$(( $* )) | |
15156 | }' | |
15157 | else | |
15158 | as_fn_arith () | |
15159 | { | |
15160 | as_val=`expr "$@" || test $? -eq 1` | |
15161 | } | |
15162 | fi # as_fn_arith | |
15163 | ||
252b5132 | 15164 | |
81ecdfbb RW |
15165 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15166 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
15167 | as_expr=expr |
15168 | else | |
15169 | as_expr=false | |
15170 | fi | |
252b5132 | 15171 | |
81ecdfbb | 15172 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
15173 | as_basename=basename |
15174 | else | |
15175 | as_basename=false | |
15176 | fi | |
252b5132 | 15177 | |
81ecdfbb RW |
15178 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15179 | as_dirname=dirname | |
15180 | else | |
15181 | as_dirname=false | |
15182 | fi | |
8b1e6df3 | 15183 | |
81ecdfbb | 15184 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
15185 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15186 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15187 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15188 | $as_echo X/"$0" | | |
15189 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15190 | s//\1/ | |
15191 | q | |
15192 | } | |
15193 | /^X\/\(\/\/\)$/{ | |
15194 | s//\1/ | |
15195 | q | |
15196 | } | |
15197 | /^X\/\(\/\).*/{ | |
15198 | s//\1/ | |
15199 | q | |
15200 | } | |
15201 | s/.*/./; q'` | |
0218d1e4 | 15202 | |
42ecbf5e DJ |
15203 | # Avoid depending upon Character Ranges. |
15204 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15205 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15206 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15207 | as_cr_digits='0123456789' | |
15208 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
252b5132 | 15209 | |
81ecdfbb RW |
15210 | ECHO_C= ECHO_N= ECHO_T= |
15211 | case `echo -n x` in #((((( | |
15212 | -n*) | |
15213 | case `echo 'xy\c'` in | |
15214 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15215 | xy) ECHO_C='\c';; | |
15216 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15217 | ECHO_T=' ';; | |
15218 | esac;; | |
15219 | *) | |
15220 | ECHO_N='-n';; | |
42ecbf5e | 15221 | esac |
eb1e0e80 | 15222 | |
81ecdfbb RW |
15223 | rm -f conf$$ conf$$.exe conf$$.file |
15224 | if test -d conf$$.dir; then | |
15225 | rm -f conf$$.dir/conf$$.file | |
d15b04bd | 15226 | else |
81ecdfbb RW |
15227 | rm -f conf$$.dir |
15228 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 15229 | fi |
81ecdfbb RW |
15230 | if (echo >conf$$.file) 2>/dev/null; then |
15231 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 15232 | as_ln_s='ln -s' |
81ecdfbb RW |
15233 | # ... but there are two gotchas: |
15234 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15235 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15236 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15237 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15238 | as_ln_s='cp -pR' |
81ecdfbb RW |
15239 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15240 | as_ln_s=ln | |
15241 | else | |
d0ac1c44 | 15242 | as_ln_s='cp -pR' |
252b5132 | 15243 | fi |
42ecbf5e | 15244 | else |
d0ac1c44 | 15245 | as_ln_s='cp -pR' |
252b5132 | 15246 | fi |
81ecdfbb RW |
15247 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15248 | rmdir conf$$.dir 2>/dev/null | |
15249 | ||
15250 | ||
15251 | # as_fn_mkdir_p | |
15252 | # ------------- | |
15253 | # Create "$as_dir" as a directory, including parents if necessary. | |
15254 | as_fn_mkdir_p () | |
15255 | { | |
15256 | ||
15257 | case $as_dir in #( | |
15258 | -*) as_dir=./$as_dir;; | |
15259 | esac | |
15260 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15261 | as_dirs= | |
15262 | while :; do | |
15263 | case $as_dir in #( | |
15264 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15265 | *) as_qdir=$as_dir;; | |
15266 | esac | |
15267 | as_dirs="'$as_qdir' $as_dirs" | |
15268 | as_dir=`$as_dirname -- "$as_dir" || | |
15269 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15270 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15271 | X"$as_dir" : 'X\(//\)$' \| \ | |
15272 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15273 | $as_echo X"$as_dir" | | |
15274 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15275 | s//\1/ | |
15276 | q | |
15277 | } | |
15278 | /^X\(\/\/\)[^/].*/{ | |
15279 | s//\1/ | |
15280 | q | |
15281 | } | |
15282 | /^X\(\/\/\)$/{ | |
15283 | s//\1/ | |
15284 | q | |
15285 | } | |
15286 | /^X\(\/\).*/{ | |
15287 | s//\1/ | |
15288 | q | |
15289 | } | |
15290 | s/.*/./; q'` | |
15291 | test -d "$as_dir" && break | |
15292 | done | |
15293 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15294 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 15295 | |
252b5132 | 15296 | |
81ecdfbb | 15297 | } # as_fn_mkdir_p |
42ecbf5e | 15298 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15299 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
15300 | else |
15301 | test -d ./-p && rmdir ./-p | |
15302 | as_mkdir_p=false | |
15303 | fi | |
81ecdfbb | 15304 | |
d0ac1c44 SM |
15305 | |
15306 | # as_fn_executable_p FILE | |
15307 | # ----------------------- | |
15308 | # Test if FILE is an executable regular file. | |
15309 | as_fn_executable_p () | |
15310 | { | |
15311 | test -f "$1" && test -x "$1" | |
15312 | } # as_fn_executable_p | |
15313 | as_test_x='test -x' | |
15314 | as_executable_p=as_fn_executable_p | |
252b5132 | 15315 | |
42ecbf5e DJ |
15316 | # Sed expression to map a string onto a valid CPP name. |
15317 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15318 | ||
15319 | # Sed expression to map a string onto a valid variable name. | |
15320 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15321 | ||
15322 | ||
42ecbf5e | 15323 | exec 6>&1 |
81ecdfbb RW |
15324 | ## ----------------------------------- ## |
15325 | ## Main body of $CONFIG_STATUS script. ## | |
15326 | ## ----------------------------------- ## | |
15327 | _ASEOF | |
15328 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
42ecbf5e | 15329 | |
81ecdfbb RW |
15330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15331 | # Save the log message, to keep $0 and so on meaningful, and to | |
42ecbf5e | 15332 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15333 | # values after options handling. |
15334 | ac_log=" | |
675b9d61 | 15335 | This file was extended by binutils $as_me 2.41, which was |
d0ac1c44 | 15336 | generated by GNU Autoconf 2.69. Invocation command line was |
42ecbf5e DJ |
15337 | |
15338 | CONFIG_FILES = $CONFIG_FILES | |
15339 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15340 | CONFIG_LINKS = $CONFIG_LINKS | |
15341 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15342 | $ $0 $@ | |
15343 | ||
81ecdfbb RW |
15344 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15345 | " | |
15346 | ||
42ecbf5e DJ |
15347 | _ACEOF |
15348 | ||
81ecdfbb RW |
15349 | case $ac_config_files in *" |
15350 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15351 | esac | |
252b5132 | 15352 | |
81ecdfbb RW |
15353 | case $ac_config_headers in *" |
15354 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15355 | esac | |
e5a52504 MM |
15356 | |
15357 | ||
81ecdfbb RW |
15358 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15359 | # Files that config.status was made for. | |
15360 | config_files="$ac_config_files" | |
15361 | config_headers="$ac_config_headers" | |
15362 | config_commands="$ac_config_commands" | |
d15b04bd | 15363 | |
81ecdfbb | 15364 | _ACEOF |
42ecbf5e | 15365 | |
81ecdfbb | 15366 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 15367 | ac_cs_usage="\ |
81ecdfbb RW |
15368 | \`$as_me' instantiates files and other configuration actions |
15369 | from templates according to the current configuration. Unless the files | |
15370 | and actions are specified as TAGs, all are instantiated by default. | |
42ecbf5e | 15371 | |
81ecdfbb | 15372 | Usage: $0 [OPTION]... [TAG]... |
42ecbf5e DJ |
15373 | |
15374 | -h, --help print this help, then exit | |
81ecdfbb | 15375 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15376 | --config print configuration, then exit |
81ecdfbb RW |
15377 | -q, --quiet, --silent |
15378 | do not print progress messages | |
42ecbf5e DJ |
15379 | -d, --debug don't remove temporary files |
15380 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15381 | --file=FILE[:TEMPLATE] |
15382 | instantiate the configuration file FILE | |
15383 | --header=FILE[:TEMPLATE] | |
15384 | instantiate the configuration header FILE | |
42ecbf5e DJ |
15385 | |
15386 | Configuration files: | |
15387 | $config_files | |
15388 | ||
15389 | Configuration headers: | |
15390 | $config_headers | |
15391 | ||
15392 | Configuration commands: | |
15393 | $config_commands | |
15394 | ||
81ecdfbb | 15395 | Report bugs to the package provider." |
42ecbf5e | 15396 | |
81ecdfbb RW |
15397 | _ACEOF |
15398 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15399 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
42ecbf5e | 15400 | ac_cs_version="\\ |
675b9d61 | 15401 | binutils config.status 2.41 |
d0ac1c44 SM |
15402 | configured by $0, generated by GNU Autoconf 2.69, |
15403 | with options \\"\$ac_cs_config\\" | |
42ecbf5e | 15404 | |
d0ac1c44 | 15405 | Copyright (C) 2012 Free Software Foundation, Inc. |
42ecbf5e DJ |
15406 | This config.status script is free software; the Free Software Foundation |
15407 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15408 | |
15409 | ac_pwd='$ac_pwd' | |
15410 | srcdir='$srcdir' | |
15411 | INSTALL='$INSTALL' | |
15412 | MKDIR_P='$MKDIR_P' | |
15413 | AWK='$AWK' | |
15414 | test -n "\$AWK" || AWK=awk | |
42ecbf5e DJ |
15415 | _ACEOF |
15416 | ||
81ecdfbb RW |
15417 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15418 | # The default lists apply if the user does not specify any file. | |
42ecbf5e DJ |
15419 | ac_need_defaults=: |
15420 | while test $# != 0 | |
15421 | do | |
15422 | case $1 in | |
d0ac1c44 | 15423 | --*=?*) |
81ecdfbb RW |
15424 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15425 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
42ecbf5e DJ |
15426 | ac_shift=: |
15427 | ;; | |
d0ac1c44 SM |
15428 | --*=) |
15429 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15430 | ac_optarg= | |
15431 | ac_shift=: | |
15432 | ;; | |
81ecdfbb | 15433 | *) |
42ecbf5e DJ |
15434 | ac_option=$1 |
15435 | ac_optarg=$2 | |
15436 | ac_shift=shift | |
15437 | ;; | |
42ecbf5e DJ |
15438 | esac |
15439 | ||
15440 | case $ac_option in | |
15441 | # Handling of the options. | |
42ecbf5e DJ |
15442 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15443 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
15444 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15445 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
15446 | --config | --confi | --conf | --con | --co | --c ) |
15447 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 15448 | --debug | --debu | --deb | --de | --d | -d ) |
42ecbf5e DJ |
15449 | debug=: ;; |
15450 | --file | --fil | --fi | --f ) | |
15451 | $ac_shift | |
81ecdfbb RW |
15452 | case $ac_optarg in |
15453 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 15454 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
15455 | esac |
15456 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
42ecbf5e DJ |
15457 | ac_need_defaults=false;; |
15458 | --header | --heade | --head | --hea ) | |
15459 | $ac_shift | |
81ecdfbb RW |
15460 | case $ac_optarg in |
15461 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15462 | esac | |
15463 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
42ecbf5e | 15464 | ac_need_defaults=false;; |
81ecdfbb RW |
15465 | --he | --h) |
15466 | # Conflict between --help and --header | |
d0ac1c44 | 15467 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
15468 | Try \`$0 --help' for more information.";; |
15469 | --help | --hel | -h ) | |
15470 | $as_echo "$ac_cs_usage"; exit ;; | |
42ecbf5e DJ |
15471 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15472 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15473 | ac_cs_silent=: ;; | |
15474 | ||
15475 | # This is an error. | |
d0ac1c44 | 15476 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 15477 | Try \`$0 --help' for more information." ;; |
42ecbf5e | 15478 | |
81ecdfbb RW |
15479 | *) as_fn_append ac_config_targets " $1" |
15480 | ac_need_defaults=false ;; | |
42ecbf5e DJ |
15481 | |
15482 | esac | |
15483 | shift | |
15484 | done | |
15485 | ||
15486 | ac_configure_extra_args= | |
15487 | ||
15488 | if $ac_cs_silent; then | |
15489 | exec 6>/dev/null | |
15490 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15491 | fi | |
15492 | ||
15493 | _ACEOF | |
81ecdfbb | 15494 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42ecbf5e | 15495 | if \$ac_cs_recheck; then |
d0ac1c44 | 15496 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
15497 | shift |
15498 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15499 | CONFIG_SHELL='$SHELL' | |
15500 | export CONFIG_SHELL | |
15501 | exec "\$@" | |
42ecbf5e DJ |
15502 | fi |
15503 | ||
15504 | _ACEOF | |
81ecdfbb RW |
15505 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15506 | exec 5>>config.log | |
15507 | { | |
15508 | echo | |
15509 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15510 | ## Running $as_me. ## | |
15511 | _ASBOX | |
15512 | $as_echo "$ac_log" | |
15513 | } >&5 | |
42ecbf5e | 15514 | |
81ecdfbb RW |
15515 | _ACEOF |
15516 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d15b04bd | 15517 | # |
81ecdfbb | 15518 | # INIT-COMMANDS |
d15b04bd | 15519 | # |
b9583093 | 15520 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
15521 | |
15522 | ||
15523 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
15524 | # if CDPATH is set. | |
15525 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15526 | ||
15527 | sed_quote_subst='$sed_quote_subst' | |
15528 | double_quote_subst='$double_quote_subst' | |
15529 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
15530 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
15531 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
15532 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
15533 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
15534 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
15535 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
15536 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
15537 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
15538 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
15539 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
15540 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
15541 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
15542 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
15543 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
15544 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
15545 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
15546 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
15547 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
15548 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
15549 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
15550 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
15551 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
15552 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
15553 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
15554 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
15555 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
15556 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
15557 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
15558 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
15559 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
15560 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
15561 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
15562 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
15563 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
15564 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
15565 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
15566 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
15567 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15568 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15569 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15570 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
15571 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
15572 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
15573 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
15574 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
15575 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
15576 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
15577 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
15578 | 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"`' | |
15579 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
15580 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
15581 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
df7b86aa | 15582 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
f2c621e4 | 15583 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
3725885a RW |
15584 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
15585 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
15586 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
15587 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
15588 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
15589 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
15590 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
15591 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
15592 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
15593 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
15594 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15595 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
15596 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
15597 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15598 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15599 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
15600 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
15601 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15602 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15603 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15604 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
15605 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15606 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
15607 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15608 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15609 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15610 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
15611 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
15612 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
15613 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
15614 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
15615 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15616 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
15617 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
15618 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
f2c621e4 | 15619 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' |
3725885a RW |
15620 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
15621 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
15622 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
15623 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
15624 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
15625 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
15626 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
15627 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
15628 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
15629 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
15630 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
15631 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15632 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
15633 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
15634 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
15635 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
15636 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
15637 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15638 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15639 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
15640 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
15641 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
15642 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
15643 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
15644 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
15645 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
15646 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
15647 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
15648 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
15649 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
15650 | |
15651 | LTCC='$LTCC' | |
15652 | LTCFLAGS='$LTCFLAGS' | |
15653 | compiler='$compiler_DEFAULT' | |
15654 | ||
3725885a RW |
15655 | # A function that is used when there is no print builtin or printf. |
15656 | func_fallback_echo () | |
15657 | { | |
15658 | eval 'cat <<_LTECHO_EOF | |
15659 | \$1 | |
15660 | _LTECHO_EOF' | |
15661 | } | |
15662 | ||
d7040cdb | 15663 | # Quote evaled strings. |
3725885a RW |
15664 | for var in SHELL \ |
15665 | ECHO \ | |
15666 | SED \ | |
d7040cdb SE |
15667 | GREP \ |
15668 | EGREP \ | |
15669 | FGREP \ | |
15670 | LD \ | |
15671 | NM \ | |
15672 | LN_S \ | |
15673 | lt_SP2NL \ | |
15674 | lt_NL2SP \ | |
15675 | reload_flag \ | |
718a6fd8 | 15676 | OBJDUMP \ |
d7040cdb SE |
15677 | deplibs_check_method \ |
15678 | file_magic_cmd \ | |
15679 | AR \ | |
15680 | AR_FLAGS \ | |
15681 | STRIP \ | |
15682 | RANLIB \ | |
15683 | CC \ | |
15684 | CFLAGS \ | |
15685 | compiler \ | |
15686 | lt_cv_sys_global_symbol_pipe \ | |
15687 | lt_cv_sys_global_symbol_to_cdecl \ | |
15688 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 15689 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb | 15690 | lt_prog_compiler_no_builtin_flag \ |
df7b86aa | 15691 | lt_prog_compiler_wl \ |
f2c621e4 | 15692 | lt_prog_compiler_pic \ |
d7040cdb SE |
15693 | lt_prog_compiler_static \ |
15694 | lt_cv_prog_compiler_c_o \ | |
15695 | need_locks \ | |
718a6fd8 SE |
15696 | DSYMUTIL \ |
15697 | NMEDIT \ | |
15698 | LIPO \ | |
15699 | OTOOL \ | |
15700 | OTOOL64 \ | |
d7040cdb SE |
15701 | shrext_cmds \ |
15702 | export_dynamic_flag_spec \ | |
15703 | whole_archive_flag_spec \ | |
15704 | compiler_needs_object \ | |
15705 | with_gnu_ld \ | |
15706 | allow_undefined_flag \ | |
15707 | no_undefined_flag \ | |
15708 | hardcode_libdir_flag_spec \ | |
15709 | hardcode_libdir_flag_spec_ld \ | |
15710 | hardcode_libdir_separator \ | |
f2c621e4 | 15711 | fix_srcfile_path \ |
d7040cdb SE |
15712 | exclude_expsyms \ |
15713 | include_expsyms \ | |
15714 | file_list_spec \ | |
15715 | variables_saved_for_relink \ | |
15716 | libname_spec \ | |
15717 | library_names_spec \ | |
15718 | soname_spec \ | |
3725885a | 15719 | install_override_mode \ |
d7040cdb SE |
15720 | finish_eval \ |
15721 | old_striplib \ | |
15722 | striplib; do | |
3725885a | 15723 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15724 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15725 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15726 | ;; |
15727 | *) | |
15728 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15729 | ;; | |
15730 | esac | |
15731 | done | |
15732 | ||
15733 | # Double-quote double-evaled strings. | |
15734 | for var in reload_cmds \ | |
15735 | old_postinstall_cmds \ | |
15736 | old_postuninstall_cmds \ | |
15737 | old_archive_cmds \ | |
15738 | extract_expsyms_cmds \ | |
15739 | old_archive_from_new_cmds \ | |
15740 | old_archive_from_expsyms_cmds \ | |
15741 | archive_cmds \ | |
15742 | archive_expsym_cmds \ | |
15743 | module_cmds \ | |
15744 | module_expsym_cmds \ | |
15745 | export_symbols_cmds \ | |
15746 | prelink_cmds \ | |
15747 | postinstall_cmds \ | |
15748 | postuninstall_cmds \ | |
15749 | finish_cmds \ | |
15750 | sys_lib_search_path_spec \ | |
15751 | sys_lib_dlsearch_path_spec; do | |
3725885a | 15752 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15753 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15754 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15755 | ;; |
15756 | *) | |
15757 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15758 | ;; | |
15759 | esac | |
15760 | done | |
15761 | ||
d7040cdb SE |
15762 | ac_aux_dir='$ac_aux_dir' |
15763 | xsi_shell='$xsi_shell' | |
15764 | lt_shell_append='$lt_shell_append' | |
15765 | ||
15766 | # See if we are running on zsh, and set the options which allow our | |
15767 | # commands through without removal of \ escapes INIT. | |
15768 | if test -n "\${ZSH_VERSION+set}" ; then | |
15769 | setopt NO_GLOB_SUBST | |
15770 | fi | |
15771 | ||
15772 | ||
15773 | PACKAGE='$PACKAGE' | |
15774 | VERSION='$VERSION' | |
15775 | TIMESTAMP='$TIMESTAMP' | |
15776 | RM='$RM' | |
15777 | ofile='$ofile' | |
15778 | ||
15779 | ||
15780 | ||
20e95c23 DJ |
15781 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15782 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15783 | # from automake. | |
15784 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15785 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15786 | LINGUAS="${LINGUAS-%UNSET%}" | |
15787 | ||
42ecbf5e DJ |
15788 | |
15789 | _ACEOF | |
15790 | ||
81ecdfbb | 15791 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 15792 | |
81ecdfbb | 15793 | # Handling of arguments. |
42ecbf5e | 15794 | for ac_config_target in $ac_config_targets |
252b5132 | 15795 | do |
81ecdfbb RW |
15796 | case $ac_config_target in |
15797 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
15798 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15799 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
15800 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
15801 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
81ecdfbb RW |
15802 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; |
15803 | ||
d0ac1c44 | 15804 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
d15b04bd | 15805 | esac |
252b5132 RH |
15806 | done |
15807 | ||
81ecdfbb | 15808 | |
42ecbf5e DJ |
15809 | # If the user did not use the arguments to specify the items to instantiate, |
15810 | # then the envvar interface is used. Set only those that are not. | |
15811 | # We use the long form for the default assignment because of an extremely | |
15812 | # bizarre bug on SunOS 4.1.3. | |
15813 | if $ac_need_defaults; then | |
15814 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15815 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15816 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15817 | fi | |
15818 | ||
15819 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15820 | # simply because there is no reason against having it here, and in addition, |
42ecbf5e | 15821 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15822 | # Hook for its removal unless debugging. |
15823 | # Note that there is a small window in which the directory will not be cleaned: | |
15824 | # after its creation but before its name has been assigned to `$tmp'. | |
42ecbf5e DJ |
15825 | $debug || |
15826 | { | |
d0ac1c44 | 15827 | tmp= ac_tmp= |
81ecdfbb | 15828 | trap 'exit_status=$? |
d0ac1c44 SM |
15829 | : "${ac_tmp:=$tmp}" |
15830 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15831 | ' 0 |
15832 | trap 'as_fn_exit 1' 1 2 13 15 | |
42ecbf5e | 15833 | } |
42ecbf5e | 15834 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 15835 | |
42ecbf5e | 15836 | { |
81ecdfbb | 15837 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15838 | test -d "$tmp" |
42ecbf5e DJ |
15839 | } || |
15840 | { | |
81ecdfbb RW |
15841 | tmp=./conf$$-$RANDOM |
15842 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15843 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15844 | ac_tmp=$tmp | |
81ecdfbb RW |
15845 | |
15846 | # Set up the scripts for CONFIG_FILES section. | |
15847 | # No need to generate them if there are no CONFIG_FILES. | |
15848 | # This happens for instance with `./config.status config.h'. | |
15849 | if test -n "$CONFIG_FILES"; then | |
15850 | ||
15851 | ||
15852 | ac_cr=`echo X | tr X '\015'` | |
15853 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15854 | # But we know of no other shell where ac_cr would be empty at this | |
15855 | # point, so we can use a bashism as a fallback. | |
15856 | if test "x$ac_cr" = x; then | |
15857 | eval ac_cr=\$\'\\r\' | |
15858 | fi | |
15859 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15860 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15861 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15862 | else |
15863 | ac_cs_awk_cr=$ac_cr | |
15864 | fi | |
15865 | ||
d0ac1c44 | 15866 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15867 | _ACEOF |
15868 | ||
15869 | ||
15870 | { | |
15871 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15872 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15873 | echo "_ACEOF" | |
15874 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15875 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15876 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15877 | ac_delim='%!_!# ' |
15878 | for ac_last_try in false false false false false :; do | |
15879 | . ./conf$$subs.sh || | |
d0ac1c44 | 15880 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15881 | |
15882 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15883 | if test $ac_delim_n = $ac_delim_num; then | |
15884 | break | |
15885 | elif $ac_last_try; then | |
d0ac1c44 | 15886 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15887 | else |
15888 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15889 | fi | |
15890 | done | |
15891 | rm -f conf$$subs.sh | |
15892 | ||
15893 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15894 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
15895 | _ACEOF |
15896 | sed -n ' | |
15897 | h | |
15898 | s/^/S["/; s/!.*/"]=/ | |
15899 | p | |
15900 | g | |
15901 | s/^[^!]*!// | |
15902 | :repl | |
15903 | t repl | |
15904 | s/'"$ac_delim"'$// | |
15905 | t delim | |
15906 | :nl | |
15907 | h | |
d0ac1c44 | 15908 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15909 | t more1 |
15910 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15911 | p | |
15912 | n | |
15913 | b repl | |
15914 | :more1 | |
15915 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15916 | p | |
15917 | g | |
15918 | s/.\{148\}// | |
15919 | t nl | |
15920 | :delim | |
15921 | h | |
d0ac1c44 | 15922 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15923 | t more2 |
15924 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15925 | p | |
15926 | b | |
15927 | :more2 | |
15928 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15929 | p | |
15930 | g | |
15931 | s/.\{148\}// | |
15932 | t delim | |
15933 | ' <conf$$subs.awk | sed ' | |
15934 | /^[^""]/{ | |
15935 | N | |
15936 | s/\n// | |
15937 | } | |
15938 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15939 | rm -f conf$$subs.awk | |
15940 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15941 | _ACAWK | |
d0ac1c44 | 15942 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15943 | for (key in S) S_is_set[key] = 1 |
15944 | FS = "\a" | |
15945 | ||
15946 | } | |
42ecbf5e | 15947 | { |
81ecdfbb RW |
15948 | line = $ 0 |
15949 | nfields = split(line, field, "@") | |
15950 | substed = 0 | |
15951 | len = length(field[1]) | |
15952 | for (i = 2; i < nfields; i++) { | |
15953 | key = field[i] | |
15954 | keylen = length(key) | |
15955 | if (S_is_set[key]) { | |
15956 | value = S[key] | |
15957 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15958 | len += length(value) + length(field[++i]) | |
15959 | substed = 1 | |
15960 | } else | |
15961 | len += 1 + keylen | |
15962 | } | |
15963 | ||
15964 | print line | |
42ecbf5e DJ |
15965 | } |
15966 | ||
81ecdfbb RW |
15967 | _ACAWK |
15968 | _ACEOF | |
15969 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15970 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15971 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15972 | else | |
15973 | cat | |
d0ac1c44 SM |
15974 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15975 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
42ecbf5e DJ |
15976 | _ACEOF |
15977 | ||
d0ac1c44 SM |
15978 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15979 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15980 | # trailing colons and then remove the whole line if VPATH becomes empty |
15981 | # (actually we leave an empty line to preserve line numbers). | |
15982 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15983 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15984 | h | |
15985 | s/// | |
15986 | s/^/:/ | |
15987 | s/[ ]*$/:/ | |
15988 | s/:\$(srcdir):/:/g | |
15989 | s/:\${srcdir}:/:/g | |
15990 | s/:@srcdir@:/:/g | |
15991 | s/^:*// | |
81ecdfbb | 15992 | s/:*$// |
d0ac1c44 SM |
15993 | x |
15994 | s/\(=[ ]*\).*/\1/ | |
15995 | G | |
15996 | s/\n// | |
81ecdfbb RW |
15997 | s/^[^=]*=[ ]*$// |
15998 | }' | |
15999 | fi | |
e5a52504 | 16000 | |
81ecdfbb RW |
16001 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16002 | fi # test -n "$CONFIG_FILES" | |
252b5132 | 16003 | |
81ecdfbb RW |
16004 | # Set up the scripts for CONFIG_HEADERS section. |
16005 | # No need to generate them if there are no CONFIG_HEADERS. | |
16006 | # This happens for instance with `./config.status Makefile'. | |
16007 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 16008 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb | 16009 | BEGIN { |
42ecbf5e DJ |
16010 | _ACEOF |
16011 | ||
81ecdfbb RW |
16012 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
16013 | # here-document in config.status, that substitutes the proper values into | |
16014 | # config.h.in to produce config.h. | |
16015 | ||
16016 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16017 | # handling of long lines. | |
16018 | ac_delim='%!_!# ' | |
16019 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
16020 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
16021 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
16022 | break |
16023 | elif $ac_last_try; then | |
d0ac1c44 | 16024 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
16025 | else |
16026 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
252b5132 | 16027 | fi |
81ecdfbb | 16028 | done |
252b5132 | 16029 | |
81ecdfbb RW |
16030 | # For the awk script, D is an array of macro values keyed by name, |
16031 | # likewise P contains macro parameters if any. Preserve backslash | |
16032 | # newline sequences. | |
16033 | ||
16034 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16035 | sed -n ' | |
16036 | s/.\{148\}/&'"$ac_delim"'/g | |
16037 | t rset | |
16038 | :rset | |
16039 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16040 | t def | |
16041 | d | |
16042 | :def | |
16043 | s/\\$// | |
16044 | t bsnl | |
16045 | s/["\\]/\\&/g | |
16046 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16047 | D["\1"]=" \3"/p | |
16048 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16049 | d | |
16050 | :bsnl | |
16051 | s/["\\]/\\&/g | |
16052 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16053 | D["\1"]=" \3\\\\\\n"\\/p | |
16054 | t cont | |
16055 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16056 | t cont | |
16057 | d | |
16058 | :cont | |
16059 | n | |
16060 | s/.\{148\}/&'"$ac_delim"'/g | |
16061 | t clear | |
16062 | :clear | |
16063 | s/\\$// | |
16064 | t bsnlc | |
16065 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16066 | d | |
16067 | :bsnlc | |
16068 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16069 | b cont | |
16070 | ' <confdefs.h | sed ' | |
16071 | s/'"$ac_delim"'/"\\\ | |
16072 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16073 | ||
16074 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16075 | for (key in D) D_is_set[key] = 1 | |
16076 | FS = "\a" | |
16077 | } | |
16078 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16079 | line = \$ 0 | |
16080 | split(line, arg, " ") | |
16081 | if (arg[1] == "#") { | |
16082 | defundef = arg[2] | |
16083 | mac1 = arg[3] | |
16084 | } else { | |
16085 | defundef = substr(arg[1], 2) | |
16086 | mac1 = arg[2] | |
16087 | } | |
16088 | split(mac1, mac2, "(") #) | |
16089 | macro = mac2[1] | |
16090 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16091 | if (D_is_set[macro]) { | |
16092 | # Preserve the white space surrounding the "#". | |
16093 | print prefix "define", macro P[macro] D[macro] | |
16094 | next | |
16095 | } else { | |
16096 | # Replace #undef with comments. This is necessary, for example, | |
16097 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16098 | # on some systems where configure will not decide to define it. | |
16099 | if (defundef == "undef") { | |
16100 | print "/*", prefix defundef, macro, "*/" | |
16101 | next | |
16102 | } | |
16103 | } | |
16104 | } | |
16105 | { print } | |
16106 | _ACAWK | |
42ecbf5e | 16107 | _ACEOF |
81ecdfbb | 16108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 16109 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb RW |
16110 | fi # test -n "$CONFIG_HEADERS" |
16111 | ||
16112 | ||
16113 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
16114 | shift | |
16115 | for ac_tag | |
16116 | do | |
16117 | case $ac_tag in | |
16118 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16119 | esac | |
16120 | case $ac_mode$ac_tag in | |
16121 | :[FHL]*:*);; | |
d0ac1c44 | 16122 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
16123 | :[FH]-) ac_tag=-:-;; |
16124 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16125 | esac | |
16126 | ac_save_IFS=$IFS | |
16127 | IFS=: | |
16128 | set x $ac_tag | |
16129 | IFS=$ac_save_IFS | |
16130 | shift | |
16131 | ac_file=$1 | |
16132 | shift | |
16133 | ||
16134 | case $ac_mode in | |
16135 | :L) ac_source=$1;; | |
16136 | :[FH]) | |
16137 | ac_file_inputs= | |
16138 | for ac_f | |
16139 | do | |
16140 | case $ac_f in | |
d0ac1c44 | 16141 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
16142 | *) # Look for the file first in the build tree, then in the source tree |
16143 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16144 | # because $ac_f cannot contain `:'. | |
16145 | test -f "$ac_f" || | |
16146 | case $ac_f in | |
16147 | [\\/$]*) false;; | |
16148 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16149 | esac || | |
d0ac1c44 | 16150 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
16151 | esac |
16152 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16153 | as_fn_append ac_file_inputs " '$ac_f'" | |
16154 | done | |
16155 | ||
16156 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16157 | # use $as_me), people would be surprised to read: | |
16158 | # /* config.h. Generated by config.status. */ | |
16159 | configure_input='Generated from '` | |
16160 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16161 | `' by configure.' | |
16162 | if test x"$ac_file" != x-; then | |
16163 | configure_input="$ac_file. $configure_input" | |
16164 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16165 | $as_echo "$as_me: creating $ac_file" >&6;} | |
16166 | fi | |
16167 | # Neutralize special characters interpreted by sed in replacement strings. | |
16168 | case $configure_input in #( | |
16169 | *\&* | *\|* | *\\* ) | |
16170 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16171 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16172 | *) ac_sed_conf_input=$configure_input;; | |
16173 | esac | |
16174 | ||
16175 | case $ac_tag in | |
d0ac1c44 SM |
16176 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16177 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
16178 | esac |
16179 | ;; | |
252b5132 RH |
16180 | esac |
16181 | ||
81ecdfbb | 16182 | ac_dir=`$as_dirname -- "$ac_file" || |
42ecbf5e DJ |
16183 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16184 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16185 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16186 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16187 | $as_echo X"$ac_file" | | |
16188 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16189 | s//\1/ | |
16190 | q | |
16191 | } | |
16192 | /^X\(\/\/\)[^/].*/{ | |
16193 | s//\1/ | |
16194 | q | |
16195 | } | |
16196 | /^X\(\/\/\)$/{ | |
16197 | s//\1/ | |
16198 | q | |
16199 | } | |
16200 | /^X\(\/\).*/{ | |
16201 | s//\1/ | |
16202 | q | |
16203 | } | |
16204 | s/.*/./; q'` | |
16205 | as_dir="$ac_dir"; as_fn_mkdir_p | |
42ecbf5e | 16206 | ac_builddir=. |
e5a52504 | 16207 | |
81ecdfbb RW |
16208 | case "$ac_dir" in |
16209 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16210 | *) | |
16211 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16212 | # A ".." for each directory in $ac_dir_suffix. | |
16213 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16214 | case $ac_top_builddir_sub in | |
16215 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16216 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16217 | esac ;; | |
16218 | esac | |
16219 | ac_abs_top_builddir=$ac_pwd | |
16220 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16221 | # for backward compatibility: | |
16222 | ac_top_builddir=$ac_top_build_prefix | |
42ecbf5e DJ |
16223 | |
16224 | case $srcdir in | |
81ecdfbb | 16225 | .) # We are building in place. |
42ecbf5e | 16226 | ac_srcdir=. |
81ecdfbb RW |
16227 | ac_top_srcdir=$ac_top_builddir_sub |
16228 | ac_abs_top_srcdir=$ac_pwd ;; | |
16229 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 16230 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
16231 | ac_top_srcdir=$srcdir |
16232 | ac_abs_top_srcdir=$srcdir ;; | |
16233 | *) # Relative name. | |
16234 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16235 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16236 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 16237 | esac |
81ecdfbb | 16238 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 16239 | |
e5a52504 | 16240 | |
81ecdfbb RW |
16241 | case $ac_mode in |
16242 | :F) | |
16243 | # | |
16244 | # CONFIG_FILE | |
16245 | # | |
42ecbf5e DJ |
16246 | |
16247 | case $INSTALL in | |
16248 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
16249 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
16250 | esac | |
16251 | ac_MKDIR_P=$MKDIR_P | |
16252 | case $MKDIR_P in | |
16253 | [\\/$]* | ?:[\\/]* ) ;; | |
16254 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
d15b04bd | 16255 | esac |
81ecdfbb | 16256 | _ACEOF |
e5a52504 | 16257 | |
81ecdfbb RW |
16258 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16259 | # If the template does not know about datarootdir, expand it. | |
16260 | # FIXME: This hack should be removed a few years after 2.60. | |
16261 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16262 | ac_sed_dataroot=' | |
16263 | /datarootdir/ { | |
16264 | p | |
16265 | q | |
16266 | } | |
16267 | /@datadir@/p | |
16268 | /@docdir@/p | |
16269 | /@infodir@/p | |
16270 | /@localedir@/p | |
16271 | /@mandir@/p' | |
16272 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16273 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16274 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16276 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
16277 | _ACEOF | |
16278 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16279 | ac_datarootdir_hack=' | |
16280 | s&@datadir@&$datadir&g | |
16281 | s&@docdir@&$docdir&g | |
16282 | s&@infodir@&$infodir&g | |
16283 | s&@localedir@&$localedir&g | |
16284 | s&@mandir@&$mandir&g | |
16285 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16286 | esac | |
42ecbf5e | 16287 | _ACEOF |
81ecdfbb RW |
16288 | |
16289 | # Neutralize VPATH when `$srcdir' = `.'. | |
16290 | # Shell code in configure.ac might set extrasub. | |
16291 | # FIXME: do we really want to maintain this feature? | |
16292 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16293 | ac_sed_extra="$ac_vpsub | |
42ecbf5e DJ |
16294 | $extrasub |
16295 | _ACEOF | |
81ecdfbb | 16296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e DJ |
16297 | :t |
16298 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
16299 | s|@configure_input@|$ac_sed_conf_input|;t t |
16300 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16301 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16302 | s&@srcdir@&$ac_srcdir&;t t | |
16303 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16304 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16305 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16306 | s&@builddir@&$ac_builddir&;t t | |
16307 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16308 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16309 | s&@INSTALL@&$ac_INSTALL&;t t | |
16310 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16311 | $ac_datarootdir_hack | |
16312 | " | |
d0ac1c44 SM |
16313 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
16314 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
16315 | |
16316 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
16317 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16318 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16319 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 16320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16321 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 16322 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16323 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 16324 | |
d0ac1c44 | 16325 | rm -f "$ac_tmp/stdin" |
42ecbf5e | 16326 | case $ac_file in |
d0ac1c44 SM |
16327 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16328 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 16329 | esac \ |
d0ac1c44 | 16330 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
16331 | ;; |
16332 | :H) | |
16333 | # | |
16334 | # CONFIG_HEADER | |
16335 | # | |
42ecbf5e | 16336 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
16337 | { |
16338 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
16339 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16340 | } >"$ac_tmp/config.h" \ | |
16341 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16342 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
16343 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16344 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
42ecbf5e | 16345 | else |
81ecdfbb | 16346 | rm -f "$ac_file" |
d0ac1c44 SM |
16347 | mv "$ac_tmp/config.h" "$ac_file" \ |
16348 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 16349 | fi |
42ecbf5e | 16350 | else |
81ecdfbb | 16351 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
16352 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16353 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
252b5132 | 16354 | fi |
81ecdfbb RW |
16355 | # Compute "$ac_file"'s index in $config_headers. |
16356 | _am_arg="$ac_file" | |
42ecbf5e DJ |
16357 | _am_stamp_count=1 |
16358 | for _am_header in $config_headers :; do | |
16359 | case $_am_header in | |
81ecdfbb | 16360 | $_am_arg | $_am_arg:* ) |
42ecbf5e DJ |
16361 | break ;; |
16362 | * ) | |
16363 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
16364 | esac | |
16365 | done | |
81ecdfbb RW |
16366 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
16367 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16368 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
16369 | X"$_am_arg" : 'X\(//\)$' \| \ | |
16370 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
16371 | $as_echo X"$_am_arg" | | |
16372 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16373 | s//\1/ | |
16374 | q | |
16375 | } | |
16376 | /^X\(\/\/\)[^/].*/{ | |
16377 | s//\1/ | |
16378 | q | |
16379 | } | |
16380 | /^X\(\/\/\)$/{ | |
16381 | s//\1/ | |
16382 | q | |
16383 | } | |
16384 | /^X\(\/\).*/{ | |
16385 | s//\1/ | |
16386 | q | |
16387 | } | |
16388 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
16389 | ;; | |
42ecbf5e | 16390 | |
81ecdfbb RW |
16391 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16392 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
16393 | ;; | |
16394 | esac | |
e5a52504 | 16395 | |
42ecbf5e | 16396 | |
81ecdfbb RW |
16397 | case $ac_file$ac_mode in |
16398 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
d0ac1c44 | 16399 | # Older Autoconf quotes --file arguments for eval, but not when files |
81ecdfbb RW |
16400 | # are listed without --file. Let's play safe and only enable the eval |
16401 | # if we detect the quoting. | |
b9583093 AM |
16402 | case $CONFIG_FILES in |
16403 | *\'*) eval set x "$CONFIG_FILES" ;; | |
16404 | *) set x $CONFIG_FILES ;; | |
16405 | esac | |
81ecdfbb | 16406 | shift |
b9583093 | 16407 | for mf |
81ecdfbb RW |
16408 | do |
16409 | # Strip MF so we end up with the name of the file. | |
b9583093 AM |
16410 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
16411 | # Check whether this is an Automake generated Makefile or not. | |
16412 | # We used to match only the files named 'Makefile.in', but | |
16413 | # some people rename them; so instead we look at the file content. | |
16414 | # Grep'ing the first line is not enough: some people post-process | |
16415 | # each Makefile.in and add a new line on top of each file to say so. | |
16416 | # Grep'ing the whole file is not good either: AIX grep has a line | |
81ecdfbb | 16417 | # limit of 2048, but all sed's we know have understand at least 4000. |
b9583093 AM |
16418 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
16419 | dirpart=`$as_dirname -- "$mf" || | |
16420 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16421 | X"$mf" : 'X\(//\)[^/]' \| \ | |
16422 | X"$mf" : 'X\(//\)$' \| \ | |
16423 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
16424 | $as_echo X"$mf" | | |
81ecdfbb RW |
16425 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16426 | s//\1/ | |
16427 | q | |
16428 | } | |
16429 | /^X\(\/\/\)[^/].*/{ | |
16430 | s//\1/ | |
16431 | q | |
16432 | } | |
16433 | /^X\(\/\/\)$/{ | |
16434 | s//\1/ | |
16435 | q | |
16436 | } | |
16437 | /^X\(\/\).*/{ | |
16438 | s//\1/ | |
16439 | q | |
16440 | } | |
16441 | s/.*/./; q'` | |
b9583093 AM |
16442 | else |
16443 | continue | |
16444 | fi | |
16445 | # Extract the definition of DEPDIR, am__include, and am__quote | |
16446 | # from the Makefile without running 'make'. | |
16447 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
16448 | test -z "$DEPDIR" && continue | |
16449 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
16450 | test -z "$am__include" && continue | |
16451 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
16452 | # Find all dependency output files, they are included files with | |
16453 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
16454 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
16455 | # expansion. | |
16456 | for file in `sed -n " | |
16457 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
16458 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
16459 | # Make sure the directory exists. | |
16460 | test -f "$dirpart/$file" && continue | |
16461 | fdir=`$as_dirname -- "$file" || | |
16462 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16463 | X"$file" : 'X\(//\)[^/]' \| \ | |
16464 | X"$file" : 'X\(//\)$' \| \ | |
16465 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
16466 | $as_echo X"$file" | | |
16467 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
81ecdfbb RW |
16468 | s//\1/ |
16469 | q | |
16470 | } | |
b9583093 | 16471 | /^X\(\/\/\)[^/].*/{ |
81ecdfbb RW |
16472 | s//\1/ |
16473 | q | |
16474 | } | |
b9583093 AM |
16475 | /^X\(\/\/\)$/{ |
16476 | s//\1/ | |
16477 | q | |
16478 | } | |
16479 | /^X\(\/\).*/{ | |
81ecdfbb RW |
16480 | s//\1/ |
16481 | q | |
16482 | } | |
16483 | s/.*/./; q'` | |
b9583093 AM |
16484 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
16485 | # echo "creating $dirpart/$file" | |
16486 | echo '# dummy' > "$dirpart/$file" | |
16487 | done | |
42ecbf5e | 16488 | done |
81ecdfbb | 16489 | } |
d7040cdb | 16490 | ;; |
81ecdfbb | 16491 | "libtool":C) |
d7040cdb SE |
16492 | |
16493 | # See if we are running on zsh, and set the options which allow our | |
16494 | # commands through without removal of \ escapes. | |
16495 | if test -n "${ZSH_VERSION+set}" ; then | |
16496 | setopt NO_GLOB_SUBST | |
16497 | fi | |
16498 | ||
16499 | cfgfile="${ofile}T" | |
16500 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
16501 | $RM "$cfgfile" | |
16502 | ||
16503 | cat <<_LT_EOF >> "$cfgfile" | |
16504 | #! $SHELL | |
16505 | ||
16506 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 16507 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
16508 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16509 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
16510 | # | |
718a6fd8 | 16511 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
f2c621e4 | 16512 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
718a6fd8 | 16513 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 16514 | # |
718a6fd8 | 16515 | # This file is part of GNU Libtool. |
d7040cdb | 16516 | # |
718a6fd8 SE |
16517 | # GNU Libtool is free software; you can redistribute it and/or |
16518 | # modify it under the terms of the GNU General Public License as | |
16519 | # published by the Free Software Foundation; either version 2 of | |
16520 | # the License, or (at your option) any later version. | |
d7040cdb | 16521 | # |
718a6fd8 SE |
16522 | # As a special exception to the GNU General Public License, |
16523 | # if you distribute this file as part of a program or library that | |
16524 | # is built using GNU Libtool, you may include this file under the | |
16525 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 16526 | # |
718a6fd8 SE |
16527 | # GNU Libtool is distributed in the hope that it will be useful, |
16528 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16529 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16530 | # GNU General Public License for more details. | |
d7040cdb | 16531 | # |
718a6fd8 SE |
16532 | # You should have received a copy of the GNU General Public License |
16533 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
16534 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
16535 | # obtained by writing to the Free Software Foundation, Inc., | |
16536 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
16537 | |
16538 | ||
16539 | # The names of the tagged configurations supported by this script. | |
16540 | available_tags="" | |
16541 | ||
16542 | # ### BEGIN LIBTOOL CONFIG | |
16543 | ||
16544 | # Which release of libtool.m4 was used? | |
16545 | macro_version=$macro_version | |
16546 | macro_revision=$macro_revision | |
16547 | ||
16548 | # Whether or not to build shared libraries. | |
16549 | build_libtool_libs=$enable_shared | |
16550 | ||
16551 | # Whether or not to build static libraries. | |
16552 | build_old_libs=$enable_static | |
16553 | ||
16554 | # What type of objects to build. | |
16555 | pic_mode=$pic_mode | |
16556 | ||
16557 | # Whether or not to optimize for fast installation. | |
16558 | fast_install=$enable_fast_install | |
16559 | ||
3725885a RW |
16560 | # Shell to use when invoking shell scripts. |
16561 | SHELL=$lt_SHELL | |
16562 | ||
16563 | # An echo program that protects backslashes. | |
16564 | ECHO=$lt_ECHO | |
16565 | ||
d7040cdb SE |
16566 | # The host system. |
16567 | host_alias=$host_alias | |
16568 | host=$host | |
16569 | host_os=$host_os | |
16570 | ||
16571 | # The build system. | |
16572 | build_alias=$build_alias | |
16573 | build=$build | |
16574 | build_os=$build_os | |
16575 | ||
16576 | # A sed program that does not truncate output. | |
16577 | SED=$lt_SED | |
16578 | ||
16579 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
16580 | Xsed="\$SED -e 1s/^X//" | |
16581 | ||
16582 | # A grep program that handles long lines. | |
16583 | GREP=$lt_GREP | |
16584 | ||
16585 | # An ERE matcher. | |
16586 | EGREP=$lt_EGREP | |
16587 | ||
16588 | # A literal string matcher. | |
16589 | FGREP=$lt_FGREP | |
16590 | ||
16591 | # A BSD- or MS-compatible name lister. | |
16592 | NM=$lt_NM | |
16593 | ||
16594 | # Whether we need soft or hard links. | |
16595 | LN_S=$lt_LN_S | |
16596 | ||
16597 | # What is the maximum length of a command? | |
16598 | max_cmd_len=$max_cmd_len | |
16599 | ||
16600 | # Object file suffix (normally "o"). | |
16601 | objext=$ac_objext | |
16602 | ||
16603 | # Executable file suffix (normally ""). | |
16604 | exeext=$exeext | |
16605 | ||
16606 | # whether the shell understands "unset". | |
16607 | lt_unset=$lt_unset | |
16608 | ||
16609 | # turn spaces into newlines. | |
16610 | SP2NL=$lt_lt_SP2NL | |
16611 | ||
16612 | # turn newlines into spaces. | |
16613 | NL2SP=$lt_lt_NL2SP | |
16614 | ||
718a6fd8 SE |
16615 | # An object symbol dumper. |
16616 | OBJDUMP=$lt_OBJDUMP | |
16617 | ||
d7040cdb SE |
16618 | # Method to check whether dependent libraries are shared objects. |
16619 | deplibs_check_method=$lt_deplibs_check_method | |
16620 | ||
f2c621e4 | 16621 | # Command to use when deplibs_check_method == "file_magic". |
d7040cdb SE |
16622 | file_magic_cmd=$lt_file_magic_cmd |
16623 | ||
16624 | # The archiver. | |
16625 | AR=$lt_AR | |
16626 | AR_FLAGS=$lt_AR_FLAGS | |
16627 | ||
16628 | # A symbol stripping program. | |
16629 | STRIP=$lt_STRIP | |
16630 | ||
16631 | # Commands used to install an old-style archive. | |
16632 | RANLIB=$lt_RANLIB | |
16633 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
16634 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
16635 | ||
3725885a RW |
16636 | # Whether to use a lock for old archive extraction. |
16637 | lock_old_archive_extraction=$lock_old_archive_extraction | |
16638 | ||
d7040cdb SE |
16639 | # A C compiler. |
16640 | LTCC=$lt_CC | |
16641 | ||
16642 | # LTCC compiler flags. | |
16643 | LTCFLAGS=$lt_CFLAGS | |
16644 | ||
16645 | # Take the output of nm and produce a listing of raw symbols and C names. | |
16646 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16647 | ||
16648 | # Transform the output of nm in a proper C declaration. | |
16649 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16650 | ||
16651 | # Transform the output of nm in a C name address pair. | |
16652 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16653 | ||
718a6fd8 SE |
16654 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
16655 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
16656 | ||
d7040cdb SE |
16657 | # The name of the directory that contains temporary libtool files. |
16658 | objdir=$objdir | |
16659 | ||
d7040cdb SE |
16660 | # Used to examine libraries when file_magic_cmd begins with "file". |
16661 | MAGIC_CMD=$MAGIC_CMD | |
16662 | ||
16663 | # Must we lock files when doing compilation? | |
16664 | need_locks=$lt_need_locks | |
16665 | ||
718a6fd8 SE |
16666 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16667 | DSYMUTIL=$lt_DSYMUTIL | |
16668 | ||
16669 | # Tool to change global to local symbols on Mac OS X. | |
16670 | NMEDIT=$lt_NMEDIT | |
16671 | ||
16672 | # Tool to manipulate fat objects and archives on Mac OS X. | |
16673 | LIPO=$lt_LIPO | |
16674 | ||
16675 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
16676 | OTOOL=$lt_OTOOL | |
16677 | ||
16678 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
16679 | OTOOL64=$lt_OTOOL64 | |
16680 | ||
d7040cdb SE |
16681 | # Old archive suffix (normally "a"). |
16682 | libext=$libext | |
16683 | ||
16684 | # Shared library suffix (normally ".so"). | |
16685 | shrext_cmds=$lt_shrext_cmds | |
16686 | ||
16687 | # The commands to extract the exported symbol list from a shared archive. | |
16688 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16689 | ||
16690 | # Variables whose values should be saved in libtool wrapper scripts and | |
16691 | # restored at link time. | |
16692 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
16693 | ||
16694 | # Do we need the "lib" prefix for modules? | |
16695 | need_lib_prefix=$need_lib_prefix | |
16696 | ||
16697 | # Do we need a version for libraries? | |
16698 | need_version=$need_version | |
16699 | ||
16700 | # Library versioning type. | |
16701 | version_type=$version_type | |
16702 | ||
16703 | # Shared library runtime path variable. | |
16704 | runpath_var=$runpath_var | |
16705 | ||
16706 | # Shared library path variable. | |
16707 | shlibpath_var=$shlibpath_var | |
16708 | ||
16709 | # Is shlibpath searched before the hard-coded library search path? | |
16710 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16711 | ||
16712 | # Format of library name prefix. | |
16713 | libname_spec=$lt_libname_spec | |
16714 | ||
16715 | # List of archive names. First name is the real one, the rest are links. | |
16716 | # The last name is the one that the linker finds with -lNAME | |
16717 | library_names_spec=$lt_library_names_spec | |
16718 | ||
16719 | # The coded name of the library, if different from the real name. | |
16720 | soname_spec=$lt_soname_spec | |
16721 | ||
3725885a RW |
16722 | # Permission mode override for installation of shared libraries. |
16723 | install_override_mode=$lt_install_override_mode | |
16724 | ||
d7040cdb SE |
16725 | # Command to use after installation of a shared archive. |
16726 | postinstall_cmds=$lt_postinstall_cmds | |
16727 | ||
16728 | # Command to use after uninstallation of a shared archive. | |
16729 | postuninstall_cmds=$lt_postuninstall_cmds | |
16730 | ||
16731 | # Commands used to finish a libtool library installation in a directory. | |
16732 | finish_cmds=$lt_finish_cmds | |
16733 | ||
16734 | # As "finish_cmds", except a single script fragment to be evaled but | |
16735 | # not shown. | |
16736 | finish_eval=$lt_finish_eval | |
16737 | ||
16738 | # Whether we should hardcode library paths into libraries. | |
16739 | hardcode_into_libs=$hardcode_into_libs | |
16740 | ||
16741 | # Compile-time system search path for libraries. | |
16742 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16743 | ||
16744 | # Run-time system search path for libraries. | |
16745 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16746 | ||
16747 | # Whether dlopen is supported. | |
16748 | dlopen_support=$enable_dlopen | |
16749 | ||
16750 | # Whether dlopen of programs is supported. | |
16751 | dlopen_self=$enable_dlopen_self | |
16752 | ||
16753 | # Whether dlopen of statically linked programs is supported. | |
16754 | dlopen_self_static=$enable_dlopen_self_static | |
16755 | ||
16756 | # Commands to strip libraries. | |
16757 | old_striplib=$lt_old_striplib | |
16758 | striplib=$lt_striplib | |
16759 | ||
16760 | ||
16761 | # The linker used to build libraries. | |
16762 | LD=$lt_LD | |
16763 | ||
3725885a RW |
16764 | # How to create reloadable object files. |
16765 | reload_flag=$lt_reload_flag | |
16766 | reload_cmds=$lt_reload_cmds | |
16767 | ||
d7040cdb SE |
16768 | # Commands used to build an old-style archive. |
16769 | old_archive_cmds=$lt_old_archive_cmds | |
16770 | ||
16771 | # A language specific compiler. | |
16772 | CC=$lt_compiler | |
16773 | ||
16774 | # Is the compiler the GNU compiler? | |
16775 | with_gcc=$GCC | |
16776 | ||
16777 | # Compiler flag to turn off builtin functions. | |
16778 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16779 | ||
df7b86aa NC |
16780 | # How to pass a linker flag through the compiler. |
16781 | wl=$lt_lt_prog_compiler_wl | |
16782 | ||
f2c621e4 AS |
16783 | # Additional compiler flags for building library objects. |
16784 | pic_flag=$lt_lt_prog_compiler_pic | |
16785 | ||
d7040cdb SE |
16786 | # Compiler flag to prevent dynamic linking. |
16787 | link_static_flag=$lt_lt_prog_compiler_static | |
16788 | ||
16789 | # Does compiler simultaneously support -c and -o options? | |
16790 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16791 | ||
16792 | # Whether or not to add -lc for building shared libraries. | |
16793 | build_libtool_need_lc=$archive_cmds_need_lc | |
16794 | ||
16795 | # Whether or not to disallow shared libs when runtime libs are static. | |
16796 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16797 | ||
16798 | # Compiler flag to allow reflexive dlopens. | |
16799 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16800 | ||
16801 | # Compiler flag to generate shared objects directly from archives. | |
16802 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16803 | ||
16804 | # Whether the compiler copes with passing no objects directly. | |
16805 | compiler_needs_object=$lt_compiler_needs_object | |
16806 | ||
16807 | # Create an old-style archive from a shared archive. | |
16808 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16809 | ||
16810 | # Create a temporary old-style archive to link instead of a shared archive. | |
16811 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16812 | ||
16813 | # Commands used to build a shared archive. | |
16814 | archive_cmds=$lt_archive_cmds | |
16815 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
16816 | ||
16817 | # Commands used to build a loadable module if different from building | |
16818 | # a shared archive. | |
16819 | module_cmds=$lt_module_cmds | |
16820 | module_expsym_cmds=$lt_module_expsym_cmds | |
16821 | ||
16822 | # Whether we are building with GNU ld or not. | |
16823 | with_gnu_ld=$lt_with_gnu_ld | |
16824 | ||
16825 | # Flag that allows shared libraries with undefined symbols to be built. | |
16826 | allow_undefined_flag=$lt_allow_undefined_flag | |
16827 | ||
16828 | # Flag that enforces no undefined symbols. | |
16829 | no_undefined_flag=$lt_no_undefined_flag | |
16830 | ||
16831 | # Flag to hardcode \$libdir into a binary during linking. | |
16832 | # This must work even if \$libdir does not exist | |
16833 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16834 | ||
16835 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16836 | # during linking. This must work even if \$libdir does not exist. | |
16837 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16838 | ||
16839 | # Whether we need a single "-rpath" flag with a separated argument. | |
16840 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16841 | ||
16842 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16843 | # DIR into the resulting binary. | |
16844 | hardcode_direct=$hardcode_direct | |
16845 | ||
16846 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16847 | # DIR into the resulting binary and the resulting library dependency is | |
16848 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16849 | # library is relocated. | |
16850 | hardcode_direct_absolute=$hardcode_direct_absolute | |
16851 | ||
16852 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16853 | # into the resulting binary. | |
16854 | hardcode_minus_L=$hardcode_minus_L | |
16855 | ||
16856 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16857 | # into the resulting binary. | |
16858 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16859 | ||
16860 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
16861 | # into the library and all subsequent libraries and executables linked | |
16862 | # against it. | |
16863 | hardcode_automatic=$hardcode_automatic | |
16864 | ||
16865 | # Set to yes if linker adds runtime paths of dependent libraries | |
16866 | # to runtime path list. | |
16867 | inherit_rpath=$inherit_rpath | |
16868 | ||
16869 | # Whether libtool must link a program against all its dependency libraries. | |
16870 | link_all_deplibs=$link_all_deplibs | |
16871 | ||
f2c621e4 AS |
16872 | # Fix the shell variable \$srcfile for the compiler. |
16873 | fix_srcfile_path=$lt_fix_srcfile_path | |
16874 | ||
d7040cdb SE |
16875 | # Set to "yes" if exported symbols are required. |
16876 | always_export_symbols=$always_export_symbols | |
16877 | ||
16878 | # The commands to list exported symbols. | |
16879 | export_symbols_cmds=$lt_export_symbols_cmds | |
16880 | ||
16881 | # Symbols that should not be listed in the preloaded symbols. | |
16882 | exclude_expsyms=$lt_exclude_expsyms | |
16883 | ||
16884 | # Symbols that must always be exported. | |
16885 | include_expsyms=$lt_include_expsyms | |
16886 | ||
16887 | # Commands necessary for linking programs (against libraries) with templates. | |
16888 | prelink_cmds=$lt_prelink_cmds | |
16889 | ||
16890 | # Specify filename containing input files. | |
16891 | file_list_spec=$lt_file_list_spec | |
16892 | ||
16893 | # How to hardcode a shared library path into an executable. | |
16894 | hardcode_action=$hardcode_action | |
16895 | ||
16896 | # ### END LIBTOOL CONFIG | |
16897 | ||
16898 | _LT_EOF | |
16899 | ||
16900 | case $host_os in | |
16901 | aix3*) | |
16902 | cat <<\_LT_EOF >> "$cfgfile" | |
16903 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16904 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16905 | # vanish in a puff of smoke. | |
16906 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16907 | COLLECT_NAMES= | |
16908 | export COLLECT_NAMES | |
16909 | fi | |
16910 | _LT_EOF | |
16911 | ;; | |
16912 | esac | |
16913 | ||
16914 | ||
16915 | ltmain="$ac_aux_dir/ltmain.sh" | |
16916 | ||
16917 | ||
16918 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16919 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16920 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16921 | # is reportedly fixed, but why not run on old versions too? | |
f2c621e4 AS |
16922 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
16923 | || (rm -f "$cfgfile"; exit 1) | |
16924 | ||
16925 | case $xsi_shell in | |
16926 | yes) | |
16927 | cat << \_LT_EOF >> "$cfgfile" | |
16928 | ||
16929 | # func_dirname file append nondir_replacement | |
16930 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16931 | # otherwise set result to NONDIR_REPLACEMENT. | |
16932 | func_dirname () | |
16933 | { | |
16934 | case ${1} in | |
16935 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16936 | * ) func_dirname_result="${3}" ;; | |
16937 | esac | |
16938 | } | |
16939 | ||
16940 | # func_basename file | |
16941 | func_basename () | |
16942 | { | |
16943 | func_basename_result="${1##*/}" | |
16944 | } | |
16945 | ||
16946 | # func_dirname_and_basename file append nondir_replacement | |
16947 | # perform func_basename and func_dirname in a single function | |
16948 | # call: | |
16949 | # dirname: Compute the dirname of FILE. If nonempty, | |
16950 | # add APPEND to the result, otherwise set result | |
16951 | # to NONDIR_REPLACEMENT. | |
16952 | # value returned in "$func_dirname_result" | |
16953 | # basename: Compute filename of FILE. | |
16954 | # value retuned in "$func_basename_result" | |
16955 | # Implementation must be kept synchronized with func_dirname | |
16956 | # and func_basename. For efficiency, we do not delegate to | |
16957 | # those functions but instead duplicate the functionality here. | |
16958 | func_dirname_and_basename () | |
16959 | { | |
16960 | case ${1} in | |
16961 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16962 | * ) func_dirname_result="${3}" ;; | |
16963 | esac | |
16964 | func_basename_result="${1##*/}" | |
16965 | } | |
16966 | ||
16967 | # func_stripname prefix suffix name | |
16968 | # strip PREFIX and SUFFIX off of NAME. | |
16969 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16970 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16971 | # dot (in which case that matches only a dot). | |
16972 | func_stripname () | |
16973 | { | |
16974 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16975 | # positional parameters, so assign one to ordinary parameter first. | |
16976 | func_stripname_result=${3} | |
16977 | func_stripname_result=${func_stripname_result#"${1}"} | |
16978 | func_stripname_result=${func_stripname_result%"${2}"} | |
16979 | } | |
16980 | ||
16981 | # func_opt_split | |
16982 | func_opt_split () | |
16983 | { | |
16984 | func_opt_split_opt=${1%%=*} | |
16985 | func_opt_split_arg=${1#*=} | |
16986 | } | |
16987 | ||
16988 | # func_lo2o object | |
16989 | func_lo2o () | |
16990 | { | |
16991 | case ${1} in | |
16992 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16993 | *) func_lo2o_result=${1} ;; | |
16994 | esac | |
16995 | } | |
16996 | ||
16997 | # func_xform libobj-or-source | |
16998 | func_xform () | |
16999 | { | |
17000 | func_xform_result=${1%.*}.lo | |
17001 | } | |
17002 | ||
17003 | # func_arith arithmetic-term... | |
17004 | func_arith () | |
17005 | { | |
17006 | func_arith_result=$(( $* )) | |
17007 | } | |
17008 | ||
17009 | # func_len string | |
17010 | # STRING may not start with a hyphen. | |
17011 | func_len () | |
17012 | { | |
17013 | func_len_result=${#1} | |
17014 | } | |
17015 | ||
17016 | _LT_EOF | |
17017 | ;; | |
17018 | *) # Bourne compatible functions. | |
17019 | cat << \_LT_EOF >> "$cfgfile" | |
17020 | ||
17021 | # func_dirname file append nondir_replacement | |
17022 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17023 | # otherwise set result to NONDIR_REPLACEMENT. | |
17024 | func_dirname () | |
17025 | { | |
17026 | # Extract subdirectory from the argument. | |
17027 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
17028 | if test "X$func_dirname_result" = "X${1}"; then | |
17029 | func_dirname_result="${3}" | |
17030 | else | |
17031 | func_dirname_result="$func_dirname_result${2}" | |
17032 | fi | |
17033 | } | |
17034 | ||
17035 | # func_basename file | |
17036 | func_basename () | |
17037 | { | |
17038 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
17039 | } | |
17040 | ||
17041 | ||
17042 | # func_stripname prefix suffix name | |
17043 | # strip PREFIX and SUFFIX off of NAME. | |
17044 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17045 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17046 | # dot (in which case that matches only a dot). | |
17047 | # func_strip_suffix prefix name | |
17048 | func_stripname () | |
17049 | { | |
17050 | case ${2} in | |
17051 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
17052 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
17053 | esac | |
17054 | } | |
17055 | ||
17056 | # sed scripts: | |
17057 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
17058 | my_sed_long_arg='1s/^-[^=]*=//' | |
17059 | ||
17060 | # func_opt_split | |
17061 | func_opt_split () | |
17062 | { | |
17063 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
17064 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
17065 | } | |
17066 | ||
17067 | # func_lo2o object | |
17068 | func_lo2o () | |
17069 | { | |
17070 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
17071 | } | |
17072 | ||
17073 | # func_xform libobj-or-source | |
17074 | func_xform () | |
17075 | { | |
17076 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
17077 | } | |
17078 | ||
17079 | # func_arith arithmetic-term... | |
17080 | func_arith () | |
17081 | { | |
17082 | func_arith_result=`expr "$@"` | |
17083 | } | |
17084 | ||
17085 | # func_len string | |
17086 | # STRING may not start with a hyphen. | |
17087 | func_len () | |
17088 | { | |
17089 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
17090 | } | |
17091 | ||
17092 | _LT_EOF | |
17093 | esac | |
17094 | ||
17095 | case $lt_shell_append in | |
17096 | yes) | |
17097 | cat << \_LT_EOF >> "$cfgfile" | |
17098 | ||
17099 | # func_append var value | |
17100 | # Append VALUE to the end of shell variable VAR. | |
17101 | func_append () | |
17102 | { | |
17103 | eval "$1+=\$2" | |
17104 | } | |
17105 | _LT_EOF | |
17106 | ;; | |
17107 | *) | |
17108 | cat << \_LT_EOF >> "$cfgfile" | |
17109 | ||
17110 | # func_append var value | |
17111 | # Append VALUE to the end of shell variable VAR. | |
17112 | func_append () | |
17113 | { | |
17114 | eval "$1=\$$1\$2" | |
17115 | } | |
17116 | ||
17117 | _LT_EOF | |
17118 | ;; | |
17119 | esac | |
17120 | ||
17121 | ||
17122 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
17123 | || (rm -f "$cfgfile"; exit 1) | |
17124 | ||
17125 | mv -f "$cfgfile" "$ofile" || | |
d7040cdb SE |
17126 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
17127 | chmod +x "$ofile" | |
17128 | ||
42ecbf5e | 17129 | ;; |
81ecdfbb | 17130 | "default-1":C) |
20e95c23 DJ |
17131 | for ac_file in $CONFIG_FILES; do |
17132 | # Support "outfile[:infile[:infile...]]" | |
17133 | case "$ac_file" in | |
17134 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17135 | esac | |
17136 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
17137 | case "$ac_file" in */Makefile.in) | |
17138 | # Adjust a relative srcdir. | |
17139 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 17140 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
17141 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
17142 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
17143 | # In autoconf-2.50 it is called $srcdir. | |
17144 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
17145 | case "$ac_given_srcdir" in | |
17146 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
17147 | /*) top_srcdir="$ac_given_srcdir" ;; | |
17148 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17149 | esac | |
17150 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
17151 | rm -f "$ac_dir/POTFILES" | |
17152 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
17153 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
17154 | POMAKEFILEDEPS="POTFILES.in" | |
17155 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
17156 | # on $ac_dir but don't depend on user-specified configuration | |
17157 | # parameters. | |
17158 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
17159 | # The LINGUAS file contains the set of available languages. | |
17160 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 17161 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" |
20e95c23 DJ |
17162 | fi |
17163 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
17164 | # Hide the ALL_LINGUAS assigment from automake. | |
17165 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
17166 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
17167 | else | |
37a42ee9 | 17168 | # The set of available languages was given in configure.ac. |
20e95c23 DJ |
17169 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
17170 | fi | |
17171 | case "$ac_given_srcdir" in | |
17172 | .) srcdirpre= ;; | |
17173 | *) srcdirpre='$(srcdir)/' ;; | |
17174 | esac | |
17175 | POFILES= | |
17176 | GMOFILES= | |
17177 | UPDATEPOFILES= | |
17178 | DUMMYPOFILES= | |
17179 | for lang in $ALL_LINGUAS; do | |
17180 | POFILES="$POFILES $srcdirpre$lang.po" | |
17181 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
17182 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
17183 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
17184 | done | |
17185 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
17186 | # environment variable. | |
17187 | INST_LINGUAS= | |
17188 | if test -n "$ALL_LINGUAS"; then | |
17189 | for presentlang in $ALL_LINGUAS; do | |
17190 | useit=no | |
17191 | if test "%UNSET%" != "$LINGUAS"; then | |
17192 | desiredlanguages="$LINGUAS" | |
17193 | else | |
17194 | desiredlanguages="$ALL_LINGUAS" | |
17195 | fi | |
17196 | for desiredlang in $desiredlanguages; do | |
17197 | # Use the presentlang catalog if desiredlang is | |
17198 | # a. equal to presentlang, or | |
17199 | # b. a variant of presentlang (because in this case, | |
17200 | # presentlang can be used as a fallback for messages | |
17201 | # which are not translated in the desiredlang catalog). | |
17202 | case "$desiredlang" in | |
17203 | "$presentlang"*) useit=yes;; | |
17204 | esac | |
17205 | done | |
17206 | if test $useit = yes; then | |
17207 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17208 | fi | |
17209 | done | |
17210 | fi | |
17211 | CATALOGS= | |
17212 | if test -n "$INST_LINGUAS"; then | |
17213 | for lang in $INST_LINGUAS; do | |
17214 | CATALOGS="$CATALOGS $lang.gmo" | |
17215 | done | |
17216 | fi | |
17217 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
17218 | 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" | |
17219 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
17220 | if test -f "$f"; then | |
17221 | case "$f" in | |
17222 | *.orig | *.bak | *~) ;; | |
17223 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17224 | esac | |
17225 | fi | |
17226 | done | |
17227 | fi | |
17228 | ;; | |
17229 | esac | |
17230 | done ;; | |
81ecdfbb | 17231 | |
42ecbf5e | 17232 | esac |
81ecdfbb | 17233 | done # for ac_tag |
e5a52504 | 17234 | |
42ecbf5e | 17235 | |
81ecdfbb | 17236 | as_fn_exit 0 |
42ecbf5e | 17237 | _ACEOF |
42ecbf5e DJ |
17238 | ac_clean_files=$ac_clean_files_save |
17239 | ||
81ecdfbb | 17240 | test $ac_write_fail = 0 || |
d0ac1c44 | 17241 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 17242 | |
42ecbf5e DJ |
17243 | |
17244 | # configure is writing to config.log, and then calls config.status. | |
17245 | # config.status does its own redirection, appending to config.log. | |
17246 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17247 | # by configure, so config.status won't be able to write to it; its | |
17248 | # output is simply discarded. So we exec the FD to /dev/null, | |
17249 | # effectively closing config.log, so it can be properly (re)opened and | |
17250 | # appended to by config.status. When coming back to configure, we | |
17251 | # need to make the FD available again. | |
17252 | if test "$no_create" != yes; then | |
17253 | ac_cs_success=: | |
17254 | ac_config_status_args= | |
17255 | test "$silent" = yes && | |
17256 | ac_config_status_args="$ac_config_status_args --quiet" | |
17257 | exec 5>/dev/null | |
17258 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17259 | exec 5>>config.log | |
17260 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17261 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 17262 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
17263 | fi |
17264 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17265 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17266 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
42ecbf5e | 17267 | fi |
252b5132 | 17268 | |
d546b610 L |
17269 | |
17270 | ||
17271 | touch config.status.tmp | |
17272 | if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then | |
17273 | sed '/as_fn_exit 0/i \ | |
17274 | sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ | |
17275 | touch --reference=Makefile Makefile.tmp \ | |
17276 | mv Makefile.tmp Makefile \ | |
17277 | ' config.status > config.status.tmp | |
17278 | touch --reference=config.status config.status.tmp | |
17279 | mv config.status.tmp config.status | |
17280 | chmod +x config.status | |
17281 | sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp | |
17282 | touch --reference=Makefile Makefile.tmp | |
17283 | mv Makefile.tmp Makefile | |
17284 | else | |
17285 | rm -f config.status.tmp | |
17286 | fi |