Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
346d80ef | 3 | # Generated by GNU Autoconf 2.69 for gas 2.37.50. |
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 | ## -------------------- ## | |
13b2be9c | 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 : | |
13b2be9c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13b2be9c 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 | |
13b2be9c DJ |
31 | fi |
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 | } | |
13b2be9c 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 | |
13b2be9c 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 | |
13b2be9c | 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." | |
13b2be9c | 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." | |
13b2be9c | 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 | ||
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 | |
13b2be9c | 426 | |
81ecdfbb RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c 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 |
13b2be9c 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 | |
13b2be9c | 445 | |
81ecdfbb | 446 | as_me=`$as_basename -- "$0" || |
13b2be9c 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'` | |
13b2be9c | 464 | |
13b2be9c 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 | ||
13b2be9c | 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 | | |
13b2be9c | 482 | sed ' |
81ecdfbb RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
13b2be9c | 487 | N |
81ecdfbb RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
13b2be9c | 490 | t loop |
81ecdfbb | 491 | s/-\n.*// |
13b2be9c | 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; } | |
13b2be9c | 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 | |
13b2be9c 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" | |
13b2be9c 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';; | |
13b2be9c 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 | |
13b2be9c | 524 | else |
81ecdfbb RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
13b2be9c | 527 | fi |
81ecdfbb RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 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' |
13b2be9c | 541 | fi |
13b2be9c | 542 | else |
d0ac1c44 | 543 | as_ln_s='cp -pR' |
13b2be9c | 544 | fi |
81ecdfbb RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
13b2be9c DJ |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
13b2be9c | 550 | else |
ab509236 | 551 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
552 | as_mkdir_p=false |
553 | fi | |
554 | ||
d0ac1c44 SM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
13b2be9c DJ |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
ab509236 | 559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
560 | |
561 | # Sed expression to map a string onto a valid variable name. | |
ab509236 | 562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c | 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 | |
13b2be9c | 570 | # Name of the host. |
d0ac1c44 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
13b2be9c DJ |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 574 | |
13b2be9c DJ |
575 | # |
576 | # Initializations. | |
577 | # | |
252b5132 | 578 | ac_default_prefix=/usr/local |
81ecdfbb | 579 | ac_clean_files= |
13b2be9c | 580 | ac_config_libobj_dir=. |
81ecdfbb | 581 | LIBOBJS= |
13b2be9c DJ |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
13b2be9c DJ |
586 | |
587 | # Identity of this package. | |
2e98a7bd AM |
588 | PACKAGE_NAME='gas' |
589 | PACKAGE_TARNAME='gas' | |
346d80ef NC |
590 | PACKAGE_VERSION='2.37.50' |
591 | PACKAGE_STRING='gas 2.37.50' | |
2e98a7bd AM |
592 | PACKAGE_BUGREPORT='' |
593 | PACKAGE_URL='' | |
13b2be9c DJ |
594 | |
595 | ac_unique_file="as.h" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
81ecdfbb | 599 | #ifdef HAVE_SYS_TYPES_H |
13b2be9c DJ |
600 | # include <sys/types.h> |
601 | #endif | |
81ecdfbb | 602 | #ifdef HAVE_SYS_STAT_H |
13b2be9c DJ |
603 | # include <sys/stat.h> |
604 | #endif | |
81ecdfbb | 605 | #ifdef STDC_HEADERS |
13b2be9c DJ |
606 | # include <stdlib.h> |
607 | # include <stddef.h> | |
608 | #else | |
81ecdfbb | 609 | # ifdef HAVE_STDLIB_H |
13b2be9c 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 | |
13b2be9c DJ |
615 | # include <memory.h> |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
81ecdfbb | 619 | #ifdef HAVE_STRINGS_H |
13b2be9c DJ |
620 | # include <strings.h> |
621 | #endif | |
81ecdfbb | 622 | #ifdef HAVE_INTTYPES_H |
13b2be9c | 623 | # include <inttypes.h> |
13b2be9c | 624 | #endif |
81ecdfbb RW |
625 | #ifdef HAVE_STDINT_H |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
13b2be9c DJ |
629 | # include <unistd.h> |
630 | #endif" | |
631 | ||
81ecdfbb RW |
632 | ac_subst_vars='am__EXEEXT_FALSE |
633 | am__EXEEXT_TRUE | |
634 | LTLIBOBJS | |
635 | LIBOBJS | |
0138187e | 636 | zlibinc |
543b7933 | 637 | zlibdir |
81ecdfbb | 638 | LIBM |
81ecdfbb RW |
639 | GENINSRC_NEVER_FALSE |
640 | GENINSRC_NEVER_TRUE | |
641 | MAINT | |
642 | MAINTAINER_MODE_FALSE | |
643 | MAINTAINER_MODE_TRUE | |
644 | MSGMERGE | |
645 | MSGFMT | |
646 | MKINSTALLDIRS | |
647 | CATOBJEXT | |
648 | GENCAT | |
649 | INSTOBJEXT | |
650 | DATADIRNAME | |
651 | CATALOGS | |
652 | POSUB | |
653 | GMSGFMT | |
654 | XGETTEXT | |
655 | INCINTL | |
656 | LIBINTL_DEP | |
657 | LIBINTL | |
658 | USE_NLS | |
659 | LEXLIB | |
660 | LEX_OUTPUT_ROOT | |
661 | LEX | |
662 | YFLAGS | |
663 | YACC | |
664 | OPCODES_LIB | |
665 | atof | |
666 | install_tooldir | |
667 | te_file | |
668 | obj_format | |
669 | target_cpu_type | |
670 | extra_objects | |
671 | cgen_cpu_prefix | |
672 | GDBINIT | |
6757cf57 | 673 | WARN_WRITE_STRINGS |
81ecdfbb | 674 | NO_WERROR |
c5da1932 | 675 | WARN_CFLAGS_FOR_BUILD |
81ecdfbb | 676 | WARN_CFLAGS |
2d7f2507 | 677 | do_compare |
c8693053 | 678 | LARGEFILE_CPPFLAGS |
81ecdfbb RW |
679 | OTOOL64 |
680 | OTOOL | |
681 | LIPO | |
682 | NMEDIT | |
683 | DSYMUTIL | |
81ecdfbb RW |
684 | RANLIB |
685 | AR | |
686 | OBJDUMP | |
687 | LN_S | |
688 | NM | |
689 | ac_ct_DUMPBIN | |
690 | DUMPBIN | |
691 | LD | |
692 | FGREP | |
693 | SED | |
694 | LIBTOOL | |
695 | EGREP | |
696 | GREP | |
697 | CPP | |
698 | am__fastdepCC_FALSE | |
699 | am__fastdepCC_TRUE | |
700 | CCDEPMODE | |
6eb7d830 | 701 | am__nodep |
81ecdfbb RW |
702 | AMDEPBACKSLASH |
703 | AMDEP_FALSE | |
704 | AMDEP_TRUE | |
705 | am__quote | |
706 | am__include | |
707 | DEPDIR | |
23d61380 AM |
708 | OBJEXT |
709 | EXEEXT | |
710 | ac_ct_CC | |
711 | CPPFLAGS | |
712 | LDFLAGS | |
713 | CFLAGS | |
714 | CC | |
715 | AM_BACKSLASH | |
716 | AM_DEFAULT_VERBOSITY | |
717 | AM_DEFAULT_V | |
718 | AM_V | |
81ecdfbb RW |
719 | am__untar |
720 | am__tar | |
721 | AMTAR | |
722 | am__leading_dot | |
723 | SET_MAKE | |
724 | AWK | |
725 | mkdir_p | |
726 | MKDIR_P | |
727 | INSTALL_STRIP_PROGRAM | |
728 | STRIP | |
729 | install_sh | |
730 | MAKEINFO | |
731 | AUTOHEADER | |
732 | AUTOMAKE | |
733 | AUTOCONF | |
734 | ACLOCAL | |
735 | VERSION | |
736 | PACKAGE | |
737 | CYGPATH_W | |
738 | am__isrc | |
739 | INSTALL_DATA | |
740 | INSTALL_SCRIPT | |
741 | INSTALL_PROGRAM | |
81ecdfbb RW |
742 | target_os |
743 | target_vendor | |
744 | target_cpu | |
745 | target | |
746 | host_os | |
747 | host_vendor | |
748 | host_cpu | |
749 | host | |
750 | build_os | |
751 | build_vendor | |
752 | build_cpu | |
753 | build | |
754 | target_alias | |
755 | host_alias | |
756 | build_alias | |
757 | LIBS | |
758 | ECHO_T | |
759 | ECHO_N | |
760 | ECHO_C | |
761 | DEFS | |
762 | mandir | |
763 | localedir | |
764 | libdir | |
765 | psdir | |
766 | pdfdir | |
767 | dvidir | |
768 | htmldir | |
769 | infodir | |
770 | docdir | |
771 | oldincludedir | |
772 | includedir | |
773 | localstatedir | |
774 | sharedstatedir | |
775 | sysconfdir | |
776 | datadir | |
777 | datarootdir | |
778 | libexecdir | |
779 | sbindir | |
780 | bindir | |
781 | program_transform_name | |
782 | prefix | |
783 | exec_prefix | |
784 | PACKAGE_URL | |
785 | PACKAGE_BUGREPORT | |
786 | PACKAGE_STRING | |
787 | PACKAGE_VERSION | |
788 | PACKAGE_TARNAME | |
789 | PACKAGE_NAME | |
790 | PATH_SEPARATOR | |
791 | SHELL' | |
13b2be9c | 792 | ac_subst_files='' |
81ecdfbb RW |
793 | ac_user_opts=' |
794 | enable_option_checking | |
d0ac1c44 | 795 | enable_silent_rules |
23d61380 | 796 | enable_dependency_tracking |
81ecdfbb RW |
797 | enable_shared |
798 | enable_static | |
799 | with_pic | |
800 | enable_fast_install | |
801 | with_gnu_ld | |
802 | enable_libtool_lock | |
b879806f AM |
803 | enable_plugins |
804 | enable_largefile | |
81ecdfbb RW |
805 | enable_targets |
806 | enable_checking | |
6c3bc0f8 | 807 | enable_compressed_debug_sections |
0cb4071e | 808 | enable_x86_relax_relocations |
b8871f35 | 809 | enable_elf_stt_common |
0df8ad28 | 810 | enable_generate_build_notes |
6f2117ba | 811 | enable_mips_fix_loongson3_llsc |
b4a3a7b4 | 812 | enable_x86_used_note |
2dc8dd17 | 813 | enable_default_riscv_attribute |
81ecdfbb RW |
814 | enable_werror |
815 | enable_build_warnings | |
9004b6bd | 816 | with_cpu |
81ecdfbb RW |
817 | enable_nls |
818 | enable_maintainer_mode | |
0138187e | 819 | with_system_zlib |
81ecdfbb RW |
820 | ' |
821 | ac_precious_vars='build_alias | |
822 | host_alias | |
823 | target_alias | |
824 | CC | |
825 | CFLAGS | |
826 | LDFLAGS | |
827 | LIBS | |
828 | CPPFLAGS | |
829 | CPP | |
830 | YACC | |
831 | YFLAGS' | |
832 | ||
252b5132 RH |
833 | |
834 | # Initialize some variables set by options. | |
13b2be9c DJ |
835 | ac_init_help= |
836 | ac_init_version=false | |
81ecdfbb RW |
837 | ac_unrecognized_opts= |
838 | ac_unrecognized_sep= | |
252b5132 RH |
839 | # The variables have the same names as the options, with |
840 | # dashes changed to underlines. | |
13b2be9c | 841 | cache_file=/dev/null |
252b5132 | 842 | exec_prefix=NONE |
252b5132 | 843 | no_create= |
252b5132 RH |
844 | no_recursion= |
845 | prefix=NONE | |
846 | program_prefix=NONE | |
847 | program_suffix=NONE | |
848 | program_transform_name=s,x,x, | |
849 | silent= | |
850 | site= | |
851 | srcdir= | |
252b5132 RH |
852 | verbose= |
853 | x_includes=NONE | |
854 | x_libraries=NONE | |
13b2be9c DJ |
855 | |
856 | # Installation directory options. | |
857 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
858 | # and all the variables that are supposed to be based on exec_prefix | |
859 | # by default will actually change. | |
860 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 861 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
862 | bindir='${exec_prefix}/bin' |
863 | sbindir='${exec_prefix}/sbin' | |
864 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
865 | datarootdir='${prefix}/share' |
866 | datadir='${datarootdir}' | |
252b5132 RH |
867 | sysconfdir='${prefix}/etc' |
868 | sharedstatedir='${prefix}/com' | |
869 | localstatedir='${prefix}/var' | |
252b5132 RH |
870 | includedir='${prefix}/include' |
871 | oldincludedir='/usr/include' | |
2e98a7bd | 872 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
873 | infodir='${datarootdir}/info' |
874 | htmldir='${docdir}' | |
875 | dvidir='${docdir}' | |
876 | pdfdir='${docdir}' | |
877 | psdir='${docdir}' | |
878 | libdir='${exec_prefix}/lib' | |
879 | localedir='${datarootdir}/locale' | |
880 | mandir='${datarootdir}/man' | |
252b5132 | 881 | |
252b5132 | 882 | ac_prev= |
81ecdfbb | 883 | ac_dashdash= |
252b5132 RH |
884 | for ac_option |
885 | do | |
252b5132 RH |
886 | # If the previous option needs an argument, assign it. |
887 | if test -n "$ac_prev"; then | |
81ecdfbb | 888 | eval $ac_prev=\$ac_option |
252b5132 RH |
889 | ac_prev= |
890 | continue | |
891 | fi | |
892 | ||
81ecdfbb | 893 | case $ac_option in |
d0ac1c44 SM |
894 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
895 | *=) ac_optarg= ;; | |
896 | *) ac_optarg=yes ;; | |
81ecdfbb | 897 | esac |
252b5132 RH |
898 | |
899 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
900 | ||
81ecdfbb RW |
901 | case $ac_dashdash$ac_option in |
902 | --) | |
903 | ac_dashdash=yes ;; | |
252b5132 RH |
904 | |
905 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
906 | ac_prev=bindir ;; | |
907 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
13b2be9c | 908 | bindir=$ac_optarg ;; |
252b5132 RH |
909 | |
910 | -build | --build | --buil | --bui | --bu) | |
13b2be9c | 911 | ac_prev=build_alias ;; |
252b5132 | 912 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
13b2be9c | 913 | build_alias=$ac_optarg ;; |
252b5132 RH |
914 | |
915 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
916 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
917 | ac_prev=cache_file ;; | |
918 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
919 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
13b2be9c DJ |
920 | cache_file=$ac_optarg ;; |
921 | ||
922 | --config-cache | -C) | |
923 | cache_file=config.cache ;; | |
252b5132 | 924 | |
81ecdfbb | 925 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 926 | ac_prev=datadir ;; |
81ecdfbb | 927 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
13b2be9c | 928 | datadir=$ac_optarg ;; |
252b5132 | 929 | |
81ecdfbb RW |
930 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
931 | | --dataroo | --dataro | --datar) | |
932 | ac_prev=datarootdir ;; | |
933 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
934 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
935 | datarootdir=$ac_optarg ;; | |
936 | ||
252b5132 | 937 | -disable-* | --disable-*) |
81ecdfbb | 938 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 939 | # Reject names that are not valid shell variable names. |
81ecdfbb | 940 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 941 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
942 | ac_useropt_orig=$ac_useropt |
943 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
944 | case $ac_user_opts in | |
945 | *" | |
946 | "enable_$ac_useropt" | |
947 | "*) ;; | |
948 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
949 | ac_unrecognized_sep=', ';; | |
950 | esac | |
951 | eval enable_$ac_useropt=no ;; | |
952 | ||
953 | -docdir | --docdir | --docdi | --doc | --do) | |
954 | ac_prev=docdir ;; | |
955 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
956 | docdir=$ac_optarg ;; | |
957 | ||
958 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
959 | ac_prev=dvidir ;; | |
960 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
961 | dvidir=$ac_optarg ;; | |
252b5132 RH |
962 | |
963 | -enable-* | --enable-*) | |
81ecdfbb | 964 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 965 | # Reject names that are not valid shell variable names. |
81ecdfbb | 966 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 967 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
968 | ac_useropt_orig=$ac_useropt |
969 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
970 | case $ac_user_opts in | |
971 | *" | |
972 | "enable_$ac_useropt" | |
973 | "*) ;; | |
974 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
975 | ac_unrecognized_sep=', ';; | |
252b5132 | 976 | esac |
81ecdfbb | 977 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
978 | |
979 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
980 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
981 | | --exec | --exe | --ex) | |
982 | ac_prev=exec_prefix ;; | |
983 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
984 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
985 | | --exec=* | --exe=* | --ex=*) | |
13b2be9c | 986 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
987 | |
988 | -gas | --gas | --ga | --g) | |
989 | # Obsolete; use --with-gas. | |
990 | with_gas=yes ;; | |
991 | ||
13b2be9c DJ |
992 | -help | --help | --hel | --he | -h) |
993 | ac_init_help=long ;; | |
994 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
995 | ac_init_help=recursive ;; | |
996 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
997 | ac_init_help=short ;; | |
252b5132 RH |
998 | |
999 | -host | --host | --hos | --ho) | |
13b2be9c | 1000 | ac_prev=host_alias ;; |
252b5132 | 1001 | -host=* | --host=* | --hos=* | --ho=*) |
13b2be9c | 1002 | host_alias=$ac_optarg ;; |
252b5132 | 1003 | |
81ecdfbb RW |
1004 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1005 | ac_prev=htmldir ;; | |
1006 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1007 | | --ht=*) | |
1008 | htmldir=$ac_optarg ;; | |
1009 | ||
252b5132 RH |
1010 | -includedir | --includedir | --includedi | --included | --include \ |
1011 | | --includ | --inclu | --incl | --inc) | |
1012 | ac_prev=includedir ;; | |
1013 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1014 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
13b2be9c | 1015 | includedir=$ac_optarg ;; |
252b5132 RH |
1016 | |
1017 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1018 | ac_prev=infodir ;; | |
1019 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
13b2be9c | 1020 | infodir=$ac_optarg ;; |
252b5132 RH |
1021 | |
1022 | -libdir | --libdir | --libdi | --libd) | |
1023 | ac_prev=libdir ;; | |
1024 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
13b2be9c | 1025 | libdir=$ac_optarg ;; |
252b5132 RH |
1026 | |
1027 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1028 | | --libexe | --libex | --libe) | |
1029 | ac_prev=libexecdir ;; | |
1030 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1031 | | --libexe=* | --libex=* | --libe=*) | |
13b2be9c | 1032 | libexecdir=$ac_optarg ;; |
252b5132 | 1033 | |
81ecdfbb RW |
1034 | -localedir | --localedir | --localedi | --localed | --locale) |
1035 | ac_prev=localedir ;; | |
1036 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1037 | localedir=$ac_optarg ;; | |
1038 | ||
252b5132 | 1039 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1040 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1041 | ac_prev=localstatedir ;; |
1042 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1043 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
13b2be9c | 1044 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1045 | |
1046 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1047 | ac_prev=mandir ;; | |
1048 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
13b2be9c | 1049 | mandir=$ac_optarg ;; |
252b5132 RH |
1050 | |
1051 | -nfp | --nfp | --nf) | |
1052 | # Obsolete; use --without-fp. | |
1053 | with_fp=no ;; | |
1054 | ||
1055 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
13b2be9c | 1056 | | --no-cr | --no-c | -n) |
252b5132 RH |
1057 | no_create=yes ;; |
1058 | ||
1059 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1060 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1061 | no_recursion=yes ;; | |
1062 | ||
1063 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1064 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1065 | | --oldin | --oldi | --old | --ol | --o) | |
1066 | ac_prev=oldincludedir ;; | |
1067 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1068 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1069 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
13b2be9c | 1070 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1071 | |
1072 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1073 | ac_prev=prefix ;; | |
1074 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13b2be9c | 1075 | prefix=$ac_optarg ;; |
252b5132 RH |
1076 | |
1077 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1078 | | --program-pre | --program-pr | --program-p) | |
1079 | ac_prev=program_prefix ;; | |
1080 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1081 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
13b2be9c | 1082 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1083 | |
1084 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1085 | | --program-suf | --program-su | --program-s) | |
1086 | ac_prev=program_suffix ;; | |
1087 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1088 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
13b2be9c | 1089 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1090 | |
1091 | -program-transform-name | --program-transform-name \ | |
1092 | | --program-transform-nam | --program-transform-na \ | |
1093 | | --program-transform-n | --program-transform- \ | |
1094 | | --program-transform | --program-transfor \ | |
1095 | | --program-transfo | --program-transf \ | |
1096 | | --program-trans | --program-tran \ | |
1097 | | --progr-tra | --program-tr | --program-t) | |
1098 | ac_prev=program_transform_name ;; | |
1099 | -program-transform-name=* | --program-transform-name=* \ | |
1100 | | --program-transform-nam=* | --program-transform-na=* \ | |
1101 | | --program-transform-n=* | --program-transform-=* \ | |
1102 | | --program-transform=* | --program-transfor=* \ | |
1103 | | --program-transfo=* | --program-transf=* \ | |
1104 | | --program-trans=* | --program-tran=* \ | |
1105 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
13b2be9c | 1106 | program_transform_name=$ac_optarg ;; |
252b5132 | 1107 | |
81ecdfbb RW |
1108 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1109 | ac_prev=pdfdir ;; | |
1110 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1111 | pdfdir=$ac_optarg ;; | |
1112 | ||
1113 | -psdir | --psdir | --psdi | --psd | --ps) | |
1114 | ac_prev=psdir ;; | |
1115 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1116 | psdir=$ac_optarg ;; | |
1117 | ||
252b5132 RH |
1118 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1119 | | -silent | --silent | --silen | --sile | --sil) | |
1120 | silent=yes ;; | |
1121 | ||
1122 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1123 | ac_prev=sbindir ;; | |
1124 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1125 | | --sbi=* | --sb=*) | |
13b2be9c | 1126 | sbindir=$ac_optarg ;; |
252b5132 RH |
1127 | |
1128 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1129 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1130 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1131 | | --sha | --sh) | |
1132 | ac_prev=sharedstatedir ;; | |
1133 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1134 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1135 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1136 | | --sha=* | --sh=*) | |
13b2be9c | 1137 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1138 | |
1139 | -site | --site | --sit) | |
1140 | ac_prev=site ;; | |
1141 | -site=* | --site=* | --sit=*) | |
13b2be9c | 1142 | site=$ac_optarg ;; |
76bff705 | 1143 | |
252b5132 RH |
1144 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1145 | ac_prev=srcdir ;; | |
1146 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13b2be9c | 1147 | srcdir=$ac_optarg ;; |
252b5132 RH |
1148 | |
1149 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1150 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1151 | ac_prev=sysconfdir ;; | |
1152 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1153 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
13b2be9c | 1154 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1155 | |
1156 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
13b2be9c | 1157 | ac_prev=target_alias ;; |
252b5132 | 1158 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
13b2be9c | 1159 | target_alias=$ac_optarg ;; |
252b5132 RH |
1160 | |
1161 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1162 | verbose=yes ;; | |
1163 | ||
13b2be9c DJ |
1164 | -version | --version | --versio | --versi | --vers | -V) |
1165 | ac_init_version=: ;; | |
252b5132 RH |
1166 | |
1167 | -with-* | --with-*) | |
81ecdfbb | 1168 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1169 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1170 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1171 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1172 | ac_useropt_orig=$ac_useropt |
1173 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1174 | case $ac_user_opts in | |
1175 | *" | |
1176 | "with_$ac_useropt" | |
1177 | "*) ;; | |
1178 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1179 | ac_unrecognized_sep=', ';; | |
252b5132 | 1180 | esac |
81ecdfbb | 1181 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1182 | |
1183 | -without-* | --without-*) | |
81ecdfbb | 1184 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1185 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1186 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1187 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1188 | ac_useropt_orig=$ac_useropt |
1189 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1190 | case $ac_user_opts in | |
1191 | *" | |
1192 | "with_$ac_useropt" | |
1193 | "*) ;; | |
1194 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1195 | ac_unrecognized_sep=', ';; | |
1196 | esac | |
1197 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1198 | |
1199 | --x) | |
1200 | # Obsolete; use --with-x. | |
1201 | with_x=yes ;; | |
1202 | ||
1203 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1204 | | --x-incl | --x-inc | --x-in | --x-i) | |
1205 | ac_prev=x_includes ;; | |
1206 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1207 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
13b2be9c | 1208 | x_includes=$ac_optarg ;; |
252b5132 RH |
1209 | |
1210 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1211 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1212 | ac_prev=x_libraries ;; | |
1213 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1214 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
13b2be9c | 1215 | x_libraries=$ac_optarg ;; |
252b5132 | 1216 | |
d0ac1c44 SM |
1217 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1218 | Try \`$0 --help' for more information" | |
252b5132 RH |
1219 | ;; |
1220 | ||
13b2be9c DJ |
1221 | *=*) |
1222 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1223 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1224 | case $ac_envvar in #( |
1225 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1226 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1227 | esac |
1228 | eval $ac_envvar=\$ac_optarg | |
13b2be9c DJ |
1229 | export $ac_envvar ;; |
1230 | ||
252b5132 | 1231 | *) |
13b2be9c | 1232 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1233 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
13b2be9c | 1234 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1235 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1236 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
252b5132 RH |
1237 | ;; |
1238 | ||
1239 | esac | |
1240 | done | |
1241 | ||
1242 | if test -n "$ac_prev"; then | |
13b2be9c | 1243 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1244 | as_fn_error $? "missing argument to $ac_option" |
c8615825 | 1245 | fi |
c8615825 | 1246 | |
81ecdfbb RW |
1247 | if test -n "$ac_unrecognized_opts"; then |
1248 | case $enable_option_checking in | |
1249 | no) ;; | |
d0ac1c44 | 1250 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1251 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
13b2be9c | 1252 | esac |
81ecdfbb | 1253 | fi |
252b5132 | 1254 | |
81ecdfbb RW |
1255 | # Check all directory arguments for consistency. |
1256 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1257 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1258 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e0b2a78c | 1259 | libdir localedir mandir |
252b5132 | 1260 | do |
81ecdfbb RW |
1261 | eval ac_val=\$$ac_var |
1262 | # Remove trailing slashes. | |
1263 | case $ac_val in | |
1264 | */ ) | |
1265 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1266 | eval $ac_var=\$ac_val;; | |
1267 | esac | |
1268 | # Be sure to have absolute directory names. | |
13b2be9c | 1269 | case $ac_val in |
81ecdfbb RW |
1270 | [\\/$]* | ?:[\\/]* ) continue;; |
1271 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1272 | esac |
d0ac1c44 | 1273 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1274 | done |
1275 | ||
13b2be9c DJ |
1276 | # There might be people who depend on the old broken behavior: `$host' |
1277 | # used to hold the argument of --host etc. | |
1278 | # FIXME: To remove some day. | |
1279 | build=$build_alias | |
1280 | host=$host_alias | |
1281 | target=$target_alias | |
1282 | ||
1283 | # FIXME: To remove some day. | |
1284 | if test "x$host_alias" != x; then | |
1285 | if test "x$build_alias" = x; then | |
1286 | cross_compiling=maybe | |
13b2be9c DJ |
1287 | elif test "x$build_alias" != "x$host_alias"; then |
1288 | cross_compiling=yes | |
1289 | fi | |
1290 | fi | |
9b2b7d69 | 1291 | |
13b2be9c DJ |
1292 | ac_tool_prefix= |
1293 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1294 | ||
1295 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1296 | |
252b5132 | 1297 | |
81ecdfbb RW |
1298 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1299 | ac_ls_di=`ls -di .` && | |
1300 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1301 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1302 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1303 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1304 | |
1305 | ||
252b5132 RH |
1306 | # Find the source files, if location was not specified. |
1307 | if test -z "$srcdir"; then | |
1308 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1309 | # Try the directory containing this script, then the parent directory. |
1310 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1311 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1312 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1313 | X"$as_myself" : 'X\(//\)$' \| \ | |
1314 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1315 | $as_echo X"$as_myself" | | |
1316 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1317 | s//\1/ | |
1318 | q | |
1319 | } | |
1320 | /^X\(\/\/\)[^/].*/{ | |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | /^X\(\/\/\)$/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\).*/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | s/.*/./; q'` | |
252b5132 | 1333 | srcdir=$ac_confdir |
81ecdfbb | 1334 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1335 | srcdir=.. |
1336 | fi | |
1337 | else | |
1338 | ac_srcdir_defaulted=no | |
1339 | fi | |
81ecdfbb RW |
1340 | if test ! -r "$srcdir/$ac_unique_file"; then |
1341 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1342 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1343 | fi |
1344 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1345 | ac_abs_confdir=`( | |
d0ac1c44 | 1346 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1347 | pwd)` |
1348 | # When building in place, set srcdir=. | |
1349 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1350 | srcdir=. | |
1351 | fi | |
1352 | # Remove unnecessary trailing slashes from srcdir. | |
1353 | # Double slashes in file names in object file debugging info | |
1354 | # mess up M-x gdb in Emacs. | |
1355 | case $srcdir in | |
1356 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1357 | esac | |
1358 | for ac_var in $ac_precious_vars; do | |
1359 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1360 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1361 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1362 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1363 | done | |
d6d788bd | 1364 | |
13b2be9c DJ |
1365 | # |
1366 | # Report the --help message. | |
1367 | # | |
1368 | if test "$ac_init_help" = "long"; then | |
1369 | # Omit some internal or obsolete options to make the list less imposing. | |
1370 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1371 | cat <<_ACEOF | |
346d80ef | 1372 | \`configure' configures gas 2.37.50 to adapt to many kinds of systems. |
9b2b7d69 | 1373 | |
13b2be9c | 1374 | Usage: $0 [OPTION]... [VAR=VALUE]... |
9b2b7d69 | 1375 | |
13b2be9c DJ |
1376 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1377 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
9b2b7d69 | 1378 | |
13b2be9c | 1379 | Defaults for the options are specified in brackets. |
9b2b7d69 | 1380 | |
13b2be9c DJ |
1381 | Configuration: |
1382 | -h, --help display this help and exit | |
1383 | --help=short display options specific to this package | |
1384 | --help=recursive display the short help of all the included packages | |
1385 | -V, --version display version information and exit | |
d0ac1c44 | 1386 | -q, --quiet, --silent do not print \`checking ...' messages |
13b2be9c DJ |
1387 | --cache-file=FILE cache test results in FILE [disabled] |
1388 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1389 | -n, --no-create do not create output files | |
1390 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1391 | ||
13b2be9c DJ |
1392 | Installation directories: |
1393 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1394 | [$ac_default_prefix] |
13b2be9c | 1395 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1396 | [PREFIX] |
9b2b7d69 | 1397 | |
13b2be9c DJ |
1398 | By default, \`make install' will install all the files in |
1399 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1400 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1401 | for instance \`--prefix=\$HOME'. | |
9b2b7d69 | 1402 | |
13b2be9c | 1403 | For better control, use the options below. |
9b2b7d69 | 1404 | |
13b2be9c | 1405 | Fine tuning of the installation directories: |
81ecdfbb RW |
1406 | --bindir=DIR user executables [EPREFIX/bin] |
1407 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1408 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1409 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1410 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1411 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1412 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1413 | --includedir=DIR C header files [PREFIX/include] | |
1414 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1415 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1416 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1417 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1418 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1419 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1420 | --docdir=DIR documentation root [DATAROOTDIR/doc/gas] |
81ecdfbb RW |
1421 | --htmldir=DIR html documentation [DOCDIR] |
1422 | --dvidir=DIR dvi documentation [DOCDIR] | |
1423 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1424 | --psdir=DIR ps documentation [DOCDIR] | |
13b2be9c | 1425 | _ACEOF |
9b2b7d69 | 1426 | |
13b2be9c | 1427 | cat <<\_ACEOF |
9b2b7d69 | 1428 | |
13b2be9c DJ |
1429 | Program names: |
1430 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1431 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1432 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
9b2b7d69 | 1433 | |
13b2be9c DJ |
1434 | System types: |
1435 | --build=BUILD configure for building on BUILD [guessed] | |
1436 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1437 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1438 | _ACEOF | |
9b2b7d69 | 1439 | fi |
9b2b7d69 | 1440 | |
13b2be9c | 1441 | if test -n "$ac_init_help"; then |
2e98a7bd | 1442 | case $ac_init_help in |
346d80ef | 1443 | short | recursive ) echo "Configuration of gas 2.37.50:";; |
2e98a7bd | 1444 | esac |
13b2be9c | 1445 | cat <<\_ACEOF |
9b2b7d69 | 1446 | |
13b2be9c | 1447 | Optional Features: |
81ecdfbb | 1448 | --disable-option-checking ignore unrecognized --enable/--with options |
13b2be9c DJ |
1449 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1450 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
23d61380 AM |
1451 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1452 | --disable-silent-rules verbose build output (undo: "make V=0") | |
d0ac1c44 SM |
1453 | --enable-dependency-tracking |
1454 | do not reject slow dependency extractors | |
1455 | --disable-dependency-tracking | |
1456 | speeds up one-time build | |
81ecdfbb RW |
1457 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1458 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1459 | --enable-fast-install[=PKGS] |
1460 | optimize for fast installation [default=yes] | |
13b2be9c | 1461 | --disable-libtool-lock avoid locking (might break parallel builds) |
b879806f AM |
1462 | --enable-plugins Enable support for plugins |
1463 | --disable-largefile omit support for large files | |
241a6c40 | 1464 | --enable-targets alternative target configurations besides the primary |
c43a438d | 1465 | --enable-checking enable run-time checks |
4894d80b | 1466 | --enable-compressed-debug-sections={all,gas,none} |
27ba7c94 | 1467 | compress debug sections by default |
0cb4071e L |
1468 | --enable-x86-relax-relocations |
1469 | generate x86 relax relocations by default | |
b8871f35 L |
1470 | --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by |
1471 | default | |
0df8ad28 NC |
1472 | --enable-generate-build-notes |
1473 | generate GNU Build notes if none are provided by the | |
1474 | input | |
6f2117ba PH |
1475 | --enable-mips-fix-loongson3-llsc |
1476 | enable MIPS fix Loongson3 LLSC errata | |
b4a3a7b4 | 1477 | --enable-x86-used-note generate GNU x86 used ISA and feature properties |
2dc8dd17 JW |
1478 | --enable-default-riscv-attribute |
1479 | generate RISC-V arch attribute by default | |
241a6c40 AM |
1480 | --enable-werror treat compile warnings as errors |
1481 | --enable-build-warnings enable build-time compiler warnings | |
13b2be9c | 1482 | --disable-nls do not use Native Language Support |
d0ac1c44 SM |
1483 | --enable-maintainer-mode |
1484 | enable make rules and dependencies not useful (and | |
1485 | sometimes confusing) to the casual installer | |
9b2b7d69 | 1486 | |
13b2be9c DJ |
1487 | Optional Packages: |
1488 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1489 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1490 | --with-pic try to use only PIC/non-PIC objects [default=use |
1491 | both] | |
1492 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
9004b6bd AB |
1493 | --with-cpu=CPU default cpu variant is CPU (currently only supported |
1494 | on ARC) | |
0138187e | 1495 | --with-system-zlib use installed libz |
9b2b7d69 | 1496 | |
13b2be9c DJ |
1497 | Some influential environment variables: |
1498 | CC C compiler command | |
1499 | CFLAGS C compiler flags | |
1500 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1501 | nonstandard directory <lib dir> | |
81ecdfbb | 1502 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1503 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1504 | you have headers in a nonstandard directory <include dir> |
13b2be9c | 1505 | CPP C preprocessor |
d0ac1c44 SM |
1506 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1507 | Defaults to the first program found out of: `bison -y', `byacc', | |
1508 | `yacc'. | |
81ecdfbb RW |
1509 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1510 | This script will default YFLAGS to the empty string to avoid a | |
1511 | default value of `-d' given by some make applications. | |
13b2be9c DJ |
1512 | |
1513 | Use these variables to override the choices made by `configure' or to help | |
1514 | it to find libraries and programs with nonstandard names/locations. | |
1515 | ||
81ecdfbb | 1516 | Report bugs to the package provider. |
13b2be9c | 1517 | _ACEOF |
81ecdfbb | 1518 | ac_status=$? |
9b2b7d69 | 1519 | fi |
9b2b7d69 | 1520 | |
13b2be9c DJ |
1521 | if test "$ac_init_help" = "recursive"; then |
1522 | # If there are subdirs, report their specific --help. | |
13b2be9c | 1523 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1524 | test -d "$ac_dir" || |
1525 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1526 | continue | |
13b2be9c DJ |
1527 | ac_builddir=. |
1528 | ||
81ecdfbb RW |
1529 | case "$ac_dir" in |
1530 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1531 | *) | |
1532 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1533 | # A ".." for each directory in $ac_dir_suffix. | |
1534 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1535 | case $ac_top_builddir_sub in | |
1536 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1537 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1538 | esac ;; | |
1539 | esac | |
1540 | ac_abs_top_builddir=$ac_pwd | |
1541 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1542 | # for backward compatibility: | |
1543 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 1544 | |
13b2be9c | 1545 | case $srcdir in |
81ecdfbb | 1546 | .) # We are building in place. |
13b2be9c | 1547 | ac_srcdir=. |
81ecdfbb RW |
1548 | ac_top_srcdir=$ac_top_builddir_sub |
1549 | ac_abs_top_srcdir=$ac_pwd ;; | |
1550 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 1551 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1552 | ac_top_srcdir=$srcdir |
1553 | ac_abs_top_srcdir=$srcdir ;; | |
1554 | *) # Relative name. | |
1555 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1556 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1557 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ab509236 | 1558 | esac |
81ecdfbb RW |
1559 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1560 | ||
1561 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1562 | # Check for guested configure. | |
1563 | if test -f "$ac_srcdir/configure.gnu"; then | |
1564 | echo && | |
1565 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1566 | elif test -f "$ac_srcdir/configure"; then | |
1567 | echo && | |
1568 | $SHELL "$ac_srcdir/configure" --help=recursive | |
13b2be9c | 1569 | else |
81ecdfbb RW |
1570 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1571 | fi || ac_status=$? | |
1572 | cd "$ac_pwd" || { ac_status=$?; break; } | |
13b2be9c DJ |
1573 | done |
1574 | fi | |
6840198f | 1575 | |
81ecdfbb | 1576 | test -n "$ac_init_help" && exit $ac_status |
13b2be9c DJ |
1577 | if $ac_init_version; then |
1578 | cat <<\_ACEOF | |
346d80ef | 1579 | gas configure 2.37.50 |
d0ac1c44 | 1580 | generated by GNU Autoconf 2.69 |
c8615825 | 1581 | |
d0ac1c44 | 1582 | Copyright (C) 2012 Free Software Foundation, Inc. |
13b2be9c DJ |
1583 | This configure script is free software; the Free Software Foundation |
1584 | gives unlimited permission to copy, distribute and modify it. | |
1585 | _ACEOF | |
81ecdfbb | 1586 | exit |
13b2be9c | 1587 | fi |
c8615825 | 1588 | |
81ecdfbb RW |
1589 | ## ------------------------ ## |
1590 | ## Autoconf initialization. ## | |
1591 | ## ------------------------ ## | |
c8615825 | 1592 | |
81ecdfbb RW |
1593 | # ac_fn_c_try_compile LINENO |
1594 | # -------------------------- | |
1595 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1596 | ac_fn_c_try_compile () | |
13b2be9c | 1597 | { |
81ecdfbb RW |
1598 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1599 | rm -f conftest.$ac_objext | |
1600 | if { { ac_try="$ac_compile" | |
1601 | case "(($ac_try" in | |
1602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1603 | *) ac_try_echo=$ac_try;; | |
1604 | esac | |
1605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1606 | $as_echo "$ac_try_echo"; } >&5 | |
1607 | (eval "$ac_compile") 2>conftest.err | |
1608 | ac_status=$? | |
1609 | if test -s conftest.err; then | |
1610 | grep -v '^ *+' conftest.err >conftest.er1 | |
1611 | cat conftest.er1 >&5 | |
1612 | mv -f conftest.er1 conftest.err | |
1613 | fi | |
1614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1615 | test $ac_status = 0; } && { | |
1616 | test -z "$ac_c_werror_flag" || | |
1617 | test ! -s conftest.err | |
1618 | } && test -s conftest.$ac_objext; then : | |
1619 | ac_retval=0 | |
1620 | else | |
1621 | $as_echo "$as_me: failed program was:" >&5 | |
1622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13b2be9c | 1623 | |
81ecdfbb RW |
1624 | ac_retval=1 |
1625 | fi | |
d0ac1c44 SM |
1626 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1627 | as_fn_set_status $ac_retval | |
13b2be9c | 1628 | |
81ecdfbb | 1629 | } # ac_fn_c_try_compile |
13b2be9c | 1630 | |
81ecdfbb RW |
1631 | # ac_fn_c_try_cpp LINENO |
1632 | # ---------------------- | |
1633 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1634 | ac_fn_c_try_cpp () | |
1635 | { | |
1636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1637 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1638 | case "(($ac_try" in | |
1639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1640 | *) ac_try_echo=$ac_try;; | |
1641 | esac | |
1642 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1643 | $as_echo "$ac_try_echo"; } >&5 | |
1644 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1645 | ac_status=$? | |
1646 | if test -s conftest.err; then | |
1647 | grep -v '^ *+' conftest.err >conftest.er1 | |
1648 | cat conftest.er1 >&5 | |
1649 | mv -f conftest.er1 conftest.err | |
1650 | fi | |
1651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1652 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1653 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1654 | test ! -s conftest.err | |
1655 | }; then : | |
1656 | ac_retval=0 | |
1657 | else | |
1658 | $as_echo "$as_me: failed program was:" >&5 | |
1659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1660 | ||
1661 | ac_retval=1 | |
1662 | fi | |
d0ac1c44 SM |
1663 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1664 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1665 | |
1666 | } # ac_fn_c_try_cpp | |
1667 | ||
1668 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1669 | # ------------------------------------------------------- | |
1670 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1671 | # the include files in INCLUDES and setting the cache variable VAR | |
1672 | # accordingly. | |
1673 | ac_fn_c_check_header_mongrel () | |
1674 | { | |
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1676 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1678 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1679 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1680 | $as_echo_n "(cached) " >&6 |
1681 | fi | |
1682 | eval ac_res=\$$3 | |
1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1684 | $as_echo "$ac_res" >&6; } | |
1685 | else | |
1686 | # Is the header compilable? | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1688 | $as_echo_n "checking $2 usability... " >&6; } | |
1689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1690 | /* end confdefs.h. */ | |
1691 | $4 | |
1692 | #include <$2> | |
1693 | _ACEOF | |
1694 | if ac_fn_c_try_compile "$LINENO"; then : | |
1695 | ac_header_compiler=yes | |
1696 | else | |
1697 | ac_header_compiler=no | |
1698 | fi | |
1699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1701 | $as_echo "$ac_header_compiler" >&6; } | |
1702 | ||
1703 | # Is the header present? | |
1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1705 | $as_echo_n "checking $2 presence... " >&6; } | |
1706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1707 | /* end confdefs.h. */ | |
1708 | #include <$2> | |
1709 | _ACEOF | |
1710 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1711 | ac_header_preproc=yes | |
1712 | else | |
1713 | ac_header_preproc=no | |
1714 | fi | |
d0ac1c44 | 1715 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1717 | $as_echo "$ac_header_preproc" >&6; } | |
1718 | ||
1719 | # So? What about this header? | |
1720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1721 | yes:no: ) | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1723 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1725 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1726 | ;; | |
1727 | no:yes:* ) | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1729 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1731 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1733 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1735 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1737 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1738 | ;; | |
1739 | esac | |
1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1741 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1742 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1743 | $as_echo_n "(cached) " >&6 |
1744 | else | |
1745 | eval "$3=\$ac_header_compiler" | |
1746 | fi | |
1747 | eval ac_res=\$$3 | |
1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1749 | $as_echo "$ac_res" >&6; } | |
1750 | fi | |
d0ac1c44 | 1751 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1752 | |
1753 | } # ac_fn_c_check_header_mongrel | |
1754 | ||
1755 | # ac_fn_c_try_run LINENO | |
1756 | # ---------------------- | |
1757 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1758 | # that executables *can* be run. | |
1759 | ac_fn_c_try_run () | |
1760 | { | |
1761 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1762 | if { { ac_try="$ac_link" | |
1763 | case "(($ac_try" in | |
1764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1765 | *) ac_try_echo=$ac_try;; | |
1766 | esac | |
1767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1768 | $as_echo "$ac_try_echo"; } >&5 | |
1769 | (eval "$ac_link") 2>&5 | |
1770 | ac_status=$? | |
1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1772 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1773 | { { case "(($ac_try" in | |
1774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1775 | *) ac_try_echo=$ac_try;; | |
1776 | esac | |
1777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1778 | $as_echo "$ac_try_echo"; } >&5 | |
1779 | (eval "$ac_try") 2>&5 | |
1780 | ac_status=$? | |
1781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1782 | test $ac_status = 0; }; }; then : | |
1783 | ac_retval=0 | |
1784 | else | |
1785 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1786 | $as_echo "$as_me: failed program was:" >&5 | |
1787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1788 | ||
1789 | ac_retval=$ac_status | |
1790 | fi | |
1791 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1792 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1793 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1794 | |
1795 | } # ac_fn_c_try_run | |
1796 | ||
1797 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1798 | # ------------------------------------------------------- | |
1799 | # Tests whether HEADER exists and can be compiled using the include files in | |
1800 | # INCLUDES, setting the cache variable VAR accordingly. | |
1801 | ac_fn_c_check_header_compile () | |
1802 | { | |
1803 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1805 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1806 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1807 | $as_echo_n "(cached) " >&6 |
1808 | else | |
1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1810 | /* end confdefs.h. */ | |
1811 | $4 | |
1812 | #include <$2> | |
1813 | _ACEOF | |
1814 | if ac_fn_c_try_compile "$LINENO"; then : | |
1815 | eval "$3=yes" | |
1816 | else | |
1817 | eval "$3=no" | |
1818 | fi | |
1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1820 | fi | |
1821 | eval ac_res=\$$3 | |
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1823 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1824 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1825 | |
1826 | } # ac_fn_c_check_header_compile | |
1827 | ||
23d61380 AM |
1828 | # ac_fn_c_try_link LINENO |
1829 | # ----------------------- | |
1830 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1831 | ac_fn_c_try_link () | |
1832 | { | |
1833 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1835 | if { { ac_try="$ac_link" | |
1836 | case "(($ac_try" in | |
1837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1838 | *) ac_try_echo=$ac_try;; | |
1839 | esac | |
1840 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1841 | $as_echo "$ac_try_echo"; } >&5 | |
1842 | (eval "$ac_link") 2>conftest.err | |
1843 | ac_status=$? | |
1844 | if test -s conftest.err; then | |
1845 | grep -v '^ *+' conftest.err >conftest.er1 | |
1846 | cat conftest.er1 >&5 | |
1847 | mv -f conftest.er1 conftest.err | |
1848 | fi | |
1849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1850 | test $ac_status = 0; } && { | |
1851 | test -z "$ac_c_werror_flag" || | |
1852 | test ! -s conftest.err | |
1853 | } && test -s conftest$ac_exeext && { | |
1854 | test "$cross_compiling" = yes || | |
1855 | test -x conftest$ac_exeext | |
1856 | }; then : | |
1857 | ac_retval=0 | |
1858 | else | |
1859 | $as_echo "$as_me: failed program was:" >&5 | |
1860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1861 | ||
1862 | ac_retval=1 | |
1863 | fi | |
1864 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1865 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1866 | # interfere with the next link command; also delete a directory that is | |
1867 | # left behind by Apple's compiler. We do this before executing the actions. | |
1868 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1869 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1870 | as_fn_set_status $ac_retval | |
1871 | ||
1872 | } # ac_fn_c_try_link | |
1873 | ||
81ecdfbb RW |
1874 | # ac_fn_c_check_func LINENO FUNC VAR |
1875 | # ---------------------------------- | |
1876 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1877 | ac_fn_c_check_func () | |
1878 | { | |
1879 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1881 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1882 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1883 | $as_echo_n "(cached) " >&6 |
1884 | else | |
1885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1886 | /* end confdefs.h. */ | |
1887 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1889 | #define $2 innocuous_$2 | |
1890 | ||
1891 | /* System header to define __stub macros and hopefully few prototypes, | |
1892 | which can conflict with char $2 (); below. | |
1893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1894 | <limits.h> exists even on freestanding compilers. */ | |
1895 | ||
1896 | #ifdef __STDC__ | |
1897 | # include <limits.h> | |
1898 | #else | |
1899 | # include <assert.h> | |
1900 | #endif | |
1901 | ||
1902 | #undef $2 | |
1903 | ||
1904 | /* Override any GCC internal prototype to avoid an error. | |
1905 | Use char because int might match the return type of a GCC | |
1906 | builtin and then its argument prototype would still apply. */ | |
1907 | #ifdef __cplusplus | |
1908 | extern "C" | |
1909 | #endif | |
1910 | char $2 (); | |
1911 | /* The GNU C library defines this for functions which it implements | |
1912 | to always fail with ENOSYS. Some functions are actually named | |
1913 | something starting with __ and the normal name is an alias. */ | |
1914 | #if defined __stub_$2 || defined __stub___$2 | |
1915 | choke me | |
1916 | #endif | |
1917 | ||
1918 | int | |
1919 | main () | |
1920 | { | |
1921 | return $2 (); | |
1922 | ; | |
1923 | return 0; | |
1924 | } | |
1925 | _ACEOF | |
1926 | if ac_fn_c_try_link "$LINENO"; then : | |
1927 | eval "$3=yes" | |
1928 | else | |
1929 | eval "$3=no" | |
1930 | fi | |
1931 | rm -f core conftest.err conftest.$ac_objext \ | |
1932 | conftest$ac_exeext conftest.$ac_ext | |
1933 | fi | |
1934 | eval ac_res=\$$3 | |
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1936 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1937 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1938 | |
1939 | } # ac_fn_c_check_func | |
1940 | ||
d0ac1c44 SM |
1941 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1942 | # --------------------------------------------- | |
1943 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1944 | # accordingly. | |
81ecdfbb RW |
1945 | ac_fn_c_check_decl () |
1946 | { | |
1947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
1948 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1949 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1951 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d0ac1c44 | 1952 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1953 | $as_echo_n "(cached) " >&6 |
1954 | else | |
1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1956 | /* end confdefs.h. */ | |
1957 | $4 | |
1958 | int | |
1959 | main () | |
1960 | { | |
360cfc9c AM |
1961 | #ifndef $as_decl_name |
1962 | #ifdef __cplusplus | |
1963 | (void) $as_decl_use; | |
1964 | #else | |
1965 | (void) $as_decl_name; | |
1966 | #endif | |
81ecdfbb RW |
1967 | #endif |
1968 | ||
1969 | ; | |
1970 | return 0; | |
1971 | } | |
1972 | _ACEOF | |
1973 | if ac_fn_c_try_compile "$LINENO"; then : | |
1974 | eval "$3=yes" | |
1975 | else | |
1976 | eval "$3=no" | |
1977 | fi | |
1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1979 | fi | |
1980 | eval ac_res=\$$3 | |
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1982 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1983 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1984 | |
1985 | } # ac_fn_c_check_decl | |
1986 | cat >config.log <<_ACEOF | |
1987 | This file contains any messages produced by compilers while | |
1988 | running configure, to aid debugging if configure makes a mistake. | |
1989 | ||
346d80ef | 1990 | It was created by gas $as_me 2.37.50, which was |
d0ac1c44 | 1991 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
1992 | |
1993 | $ $0 $@ | |
1994 | ||
1995 | _ACEOF | |
1996 | exec 5>>config.log | |
1997 | { | |
1998 | cat <<_ASUNAME | |
1999 | ## --------- ## | |
2000 | ## Platform. ## | |
2001 | ## --------- ## | |
2002 | ||
2003 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2004 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2005 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2006 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2007 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2008 | ||
2009 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2010 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2011 | ||
2012 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
13b2be9c DJ |
2013 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2014 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2015 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
13b2be9c DJ |
2016 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2017 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2018 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2019 | ||
2020 | _ASUNAME | |
2021 | ||
2022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2023 | for as_dir in $PATH | |
2024 | do | |
2025 | IFS=$as_save_IFS | |
2026 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2027 | $as_echo "PATH: $as_dir" |
2028 | done | |
2029 | IFS=$as_save_IFS | |
9b2b7d69 | 2030 | |
13b2be9c | 2031 | } >&5 |
6840198f | 2032 | |
13b2be9c | 2033 | cat >&5 <<_ACEOF |
c8615825 | 2034 | |
9b2b7d69 | 2035 | |
13b2be9c DJ |
2036 | ## ----------- ## |
2037 | ## Core tests. ## | |
2038 | ## ----------- ## | |
87ccc1b0 | 2039 | |
13b2be9c | 2040 | _ACEOF |
9b2b7d69 | 2041 | |
13b2be9c DJ |
2042 | |
2043 | # Keep a trace of the command line. | |
2044 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2045 | # Strip out --silent because we don't want to record it for future runs. | |
2046 | # Also quote any args containing shell meta-characters. | |
2047 | # Make two passes to allow for proper duplicate-argument suppression. | |
2048 | ac_configure_args= | |
2049 | ac_configure_args0= | |
2050 | ac_configure_args1= | |
13b2be9c DJ |
2051 | ac_must_keep_next=false |
2052 | for ac_pass in 1 2 | |
2053 | do | |
2054 | for ac_arg | |
2055 | do | |
2056 | case $ac_arg in | |
2057 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2058 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2059 | | -silent | --silent | --silen | --sile | --sil) | |
2060 | continue ;; | |
81ecdfbb RW |
2061 | *\'*) |
2062 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13b2be9c DJ |
2063 | esac |
2064 | case $ac_pass in | |
81ecdfbb | 2065 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
13b2be9c | 2066 | 2) |
81ecdfbb | 2067 | as_fn_append ac_configure_args1 " '$ac_arg'" |
13b2be9c | 2068 | if test $ac_must_keep_next = true; then |
ab509236 | 2069 | ac_must_keep_next=false # Got value, back to normal. |
13b2be9c | 2070 | else |
ab509236 L |
2071 | case $ac_arg in |
2072 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2073 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2074 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2075 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2076 | case "$ac_configure_args0 " in | |
2077 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2078 | esac | |
2079 | ;; | |
2080 | -* ) ac_must_keep_next=true ;; | |
2081 | esac | |
13b2be9c | 2082 | fi |
81ecdfbb | 2083 | as_fn_append ac_configure_args " '$ac_arg'" |
c8615825 AM |
2084 | ;; |
2085 | esac | |
2086 | done | |
13b2be9c | 2087 | done |
81ecdfbb RW |
2088 | { ac_configure_args0=; unset ac_configure_args0;} |
2089 | { ac_configure_args1=; unset ac_configure_args1;} | |
13b2be9c DJ |
2090 | |
2091 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2092 | # config.log. We remove comments because anyway the quotes in there | |
2093 | # would cause problems or look ugly. | |
81ecdfbb RW |
2094 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2095 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
13b2be9c DJ |
2096 | trap 'exit_status=$? |
2097 | # Save into config.log some information that might help in debugging. | |
2098 | { | |
2099 | echo | |
2100 | ||
d0ac1c44 | 2101 | $as_echo "## ---------------- ## |
13b2be9c | 2102 | ## Cache variables. ## |
d0ac1c44 | 2103 | ## ---------------- ##" |
13b2be9c DJ |
2104 | echo |
2105 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2106 | ( |
2107 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2108 | eval ac_val=\$$ac_var | |
2109 | case $ac_val in #( | |
2110 | *${as_nl}*) | |
2111 | case $ac_var in #( | |
2112 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2113 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2114 | esac | |
2115 | case $ac_var in #( | |
2116 | _ | IFS | as_nl) ;; #( | |
2117 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2118 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2119 | esac ;; | |
2120 | esac | |
2121 | done | |
13b2be9c | 2122 | (set) 2>&1 | |
81ecdfbb RW |
2123 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2124 | *${as_nl}ac_space=\ *) | |
13b2be9c | 2125 | sed -n \ |
81ecdfbb RW |
2126 | "s/'\''/'\''\\\\'\'''\''/g; |
2127 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2128 | ;; #( | |
13b2be9c | 2129 | *) |
81ecdfbb | 2130 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 2131 | ;; |
81ecdfbb RW |
2132 | esac | |
2133 | sort | |
2134 | ) | |
13b2be9c DJ |
2135 | echo |
2136 | ||
d0ac1c44 | 2137 | $as_echo "## ----------------- ## |
13b2be9c | 2138 | ## Output variables. ## |
d0ac1c44 | 2139 | ## ----------------- ##" |
13b2be9c DJ |
2140 | echo |
2141 | for ac_var in $ac_subst_vars | |
2142 | do | |
81ecdfbb RW |
2143 | eval ac_val=\$$ac_var |
2144 | case $ac_val in | |
2145 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2146 | esac | |
2147 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2148 | done | sort |
2149 | echo | |
2150 | ||
2151 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2152 | $as_echo "## ------------------- ## |
81ecdfbb | 2153 | ## File substitutions. ## |
d0ac1c44 | 2154 | ## ------------------- ##" |
13b2be9c DJ |
2155 | echo |
2156 | for ac_var in $ac_subst_files | |
2157 | do | |
81ecdfbb RW |
2158 | eval ac_val=\$$ac_var |
2159 | case $ac_val in | |
2160 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2161 | esac | |
2162 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2163 | done | sort |
2164 | echo | |
2165 | fi | |
2166 | ||
2167 | if test -s confdefs.h; then | |
d0ac1c44 | 2168 | $as_echo "## ----------- ## |
13b2be9c | 2169 | ## confdefs.h. ## |
d0ac1c44 | 2170 | ## ----------- ##" |
13b2be9c | 2171 | echo |
81ecdfbb | 2172 | cat confdefs.h |
13b2be9c DJ |
2173 | echo |
2174 | fi | |
2175 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2176 | $as_echo "$as_me: caught signal $ac_signal" |
2177 | $as_echo "$as_me: exit $exit_status" | |
13b2be9c | 2178 | } >&5 |
81ecdfbb RW |
2179 | rm -f core *.core core.conftest.* && |
2180 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
13b2be9c | 2181 | exit $exit_status |
81ecdfbb | 2182 | ' 0 |
13b2be9c | 2183 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2184 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
13b2be9c DJ |
2185 | done |
2186 | ac_signal=0 | |
2187 | ||
2188 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2189 | rm -f -r conftest* confdefs.h |
2190 | ||
2191 | $as_echo "/* confdefs.h */" > confdefs.h | |
13b2be9c DJ |
2192 | |
2193 | # Predefined preprocessor variables. | |
2194 | ||
2195 | cat >>confdefs.h <<_ACEOF | |
2196 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2197 | _ACEOF | |
2198 | ||
13b2be9c DJ |
2199 | cat >>confdefs.h <<_ACEOF |
2200 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2201 | _ACEOF | |
2202 | ||
13b2be9c DJ |
2203 | cat >>confdefs.h <<_ACEOF |
2204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2205 | _ACEOF | |
2206 | ||
13b2be9c DJ |
2207 | cat >>confdefs.h <<_ACEOF |
2208 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2209 | _ACEOF | |
2210 | ||
13b2be9c DJ |
2211 | cat >>confdefs.h <<_ACEOF |
2212 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2213 | _ACEOF | |
2214 | ||
81ecdfbb RW |
2215 | cat >>confdefs.h <<_ACEOF |
2216 | #define PACKAGE_URL "$PACKAGE_URL" | |
2217 | _ACEOF | |
2218 | ||
13b2be9c DJ |
2219 | |
2220 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2221 | # Prefer an explicitly selected file to automatically selected ones. |
2222 | ac_site_file1=NONE | |
2223 | ac_site_file2=NONE | |
2224 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2225 | # We do not want a PATH search for config.site. |
2226 | case $CONFIG_SITE in #(( | |
2227 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2228 | */*) ac_site_file1=$CONFIG_SITE;; | |
2229 | *) ac_site_file1=./$CONFIG_SITE;; | |
2230 | esac | |
81ecdfbb RW |
2231 | elif test "x$prefix" != xNONE; then |
2232 | ac_site_file1=$prefix/share/config.site | |
2233 | ac_site_file2=$prefix/etc/config.site | |
2234 | else | |
2235 | ac_site_file1=$ac_default_prefix/share/config.site | |
2236 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2237 | fi | |
2238 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2239 | do | |
2240 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2241 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2243 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
13b2be9c | 2244 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2245 | . "$ac_site_file" \ |
2246 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2247 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2248 | as_fn_error $? "failed to load site script $ac_site_file | |
2249 | See \`config.log' for more details" "$LINENO" 5; } | |
13b2be9c DJ |
2250 | fi |
2251 | done | |
2252 | ||
2253 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2254 | # Some versions of bash will fail to source /dev/null (special files |
2255 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2256 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2258 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
13b2be9c | 2259 | case $cache_file in |
81ecdfbb RW |
2260 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2261 | *) . "./$cache_file";; | |
13b2be9c DJ |
2262 | esac |
2263 | fi | |
2264 | else | |
81ecdfbb RW |
2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2266 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
13b2be9c DJ |
2267 | >$cache_file |
2268 | fi | |
2269 | ||
2270 | # Check that the precious variables saved in the cache have kept the same | |
2271 | # value. | |
2272 | ac_cache_corrupted=false | |
81ecdfbb | 2273 | for ac_var in $ac_precious_vars; do |
13b2be9c DJ |
2274 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2275 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2276 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2277 | eval ac_new_val=\$ac_env_${ac_var}_value | |
13b2be9c DJ |
2278 | case $ac_old_set,$ac_new_set in |
2279 | set,) | |
81ecdfbb RW |
2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2281 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
13b2be9c DJ |
2282 | ac_cache_corrupted=: ;; |
2283 | ,set) | |
81ecdfbb RW |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2285 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
13b2be9c DJ |
2286 | ac_cache_corrupted=: ;; |
2287 | ,);; | |
2288 | *) | |
2289 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2290 | # differences in whitespace do not lead to failure. |
2291 | ac_old_val_w=`echo x $ac_old_val` | |
2292 | ac_new_val_w=`echo x $ac_new_val` | |
2293 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2295 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2296 | ac_cache_corrupted=: | |
2297 | else | |
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2299 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2300 | eval $ac_var=\$ac_old_val | |
2301 | fi | |
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2303 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2305 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
13b2be9c DJ |
2306 | fi;; |
2307 | esac | |
2308 | # Pass precious variables to config.status. | |
2309 | if test "$ac_new_set" = set; then | |
2310 | case $ac_new_val in | |
81ecdfbb | 2311 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
13b2be9c DJ |
2312 | *) ac_arg=$ac_var=$ac_new_val ;; |
2313 | esac | |
2314 | case " $ac_configure_args " in | |
2315 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2316 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
13b2be9c DJ |
2317 | esac |
2318 | fi | |
2319 | done | |
2320 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2322 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2324 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2325 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
13b2be9c | 2326 | fi |
81ecdfbb RW |
2327 | ## -------------------- ## |
2328 | ## Main body of script. ## | |
2329 | ## -------------------- ## | |
13b2be9c DJ |
2330 | |
2331 | ac_ext=c | |
2332 | ac_cpp='$CPP $CPPFLAGS' | |
2333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2336 | ||
2337 | ||
2338 | ||
13b2be9c | 2339 | |
da594c4a | 2340 | |
13b2be9c DJ |
2341 | |
2342 | ||
2343 | ac_aux_dir= | |
81ecdfbb | 2344 | for ac_dir in .. "$srcdir"/..; do |
d0ac1c44 SM |
2345 | if test -f "$ac_dir/install-sh"; then |
2346 | ac_aux_dir=$ac_dir | |
2347 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2348 | break | |
2349 | elif test -f "$ac_dir/install.sh"; then | |
2350 | ac_aux_dir=$ac_dir | |
2351 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2352 | break | |
2353 | elif test -f "$ac_dir/shtool"; then | |
2354 | ac_aux_dir=$ac_dir | |
2355 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2356 | break | |
2357 | fi | |
13b2be9c DJ |
2358 | done |
2359 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2360 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 |
13b2be9c | 2361 | fi |
81ecdfbb RW |
2362 | |
2363 | # These three variables are undocumented and unsupported, | |
2364 | # and are intended to be withdrawn in a future Autoconf release. | |
2365 | # They can cause serious problems if a builder's source tree is in a directory | |
2366 | # whose full name contains unusual characters. | |
2367 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2368 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2369 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2370 | ||
13b2be9c DJ |
2371 | |
2372 | # Make sure we can run config.sub. | |
81ecdfbb | 2373 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2374 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2375 | |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2377 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2378 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2379 | $as_echo_n "(cached) " >&6 |
2380 | else | |
2381 | ac_build_alias=$build_alias | |
2382 | test "x$ac_build_alias" = x && | |
2383 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2384 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2385 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2386 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2387 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2388 | |
2389 | fi | |
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2391 | $as_echo "$ac_cv_build" >&6; } | |
2392 | case $ac_cv_build in | |
2393 | *-*-*) ;; | |
d0ac1c44 | 2394 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2395 | esac |
13b2be9c | 2396 | build=$ac_cv_build |
81ecdfbb RW |
2397 | ac_save_IFS=$IFS; IFS='-' |
2398 | set x $ac_cv_build | |
2399 | shift | |
2400 | build_cpu=$1 | |
2401 | build_vendor=$2 | |
2402 | shift; shift | |
2403 | # Remember, the first character of IFS is used to create $*, | |
2404 | # except with old shells: | |
2405 | build_os=$* | |
2406 | IFS=$ac_save_IFS | |
2407 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2408 | |
2409 | ||
81ecdfbb RW |
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2411 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2412 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2413 | $as_echo_n "(cached) " >&6 |
13b2be9c | 2414 | else |
81ecdfbb RW |
2415 | if test "x$host_alias" = x; then |
2416 | ac_cv_host=$ac_cv_build | |
2417 | else | |
2418 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2419 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2420 | fi |
13b2be9c DJ |
2421 | |
2422 | fi | |
81ecdfbb RW |
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2424 | $as_echo "$ac_cv_host" >&6; } | |
2425 | case $ac_cv_host in | |
2426 | *-*-*) ;; | |
d0ac1c44 | 2427 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2428 | esac |
13b2be9c | 2429 | host=$ac_cv_host |
81ecdfbb RW |
2430 | ac_save_IFS=$IFS; IFS='-' |
2431 | set x $ac_cv_host | |
2432 | shift | |
2433 | host_cpu=$1 | |
2434 | host_vendor=$2 | |
2435 | shift; shift | |
2436 | # Remember, the first character of IFS is used to create $*, | |
2437 | # except with old shells: | |
2438 | host_os=$* | |
2439 | IFS=$ac_save_IFS | |
2440 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2441 | |
2442 | ||
81ecdfbb RW |
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2444 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2445 | if ${ac_cv_target+:} false; then : |
81ecdfbb RW |
2446 | $as_echo_n "(cached) " >&6 |
2447 | else | |
2448 | if test "x$target_alias" = x; then | |
2449 | ac_cv_target=$ac_cv_host | |
13b2be9c | 2450 | else |
81ecdfbb | 2451 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
d0ac1c44 | 2452 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2453 | fi |
13b2be9c DJ |
2454 | |
2455 | fi | |
81ecdfbb RW |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2457 | $as_echo "$ac_cv_target" >&6; } | |
2458 | case $ac_cv_target in | |
2459 | *-*-*) ;; | |
d0ac1c44 | 2460 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2461 | esac |
13b2be9c | 2462 | target=$ac_cv_target |
81ecdfbb RW |
2463 | ac_save_IFS=$IFS; IFS='-' |
2464 | set x $ac_cv_target | |
2465 | shift | |
2466 | target_cpu=$1 | |
2467 | target_vendor=$2 | |
2468 | shift; shift | |
2469 | # Remember, the first character of IFS is used to create $*, | |
2470 | # except with old shells: | |
2471 | target_os=$* | |
2472 | IFS=$ac_save_IFS | |
2473 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2474 | |
2475 | ||
2476 | # The aliases save the names the user supplied, while $host etc. | |
2477 | # will get canonicalized. | |
2478 | test -n "$target_alias" && | |
2479 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2480 | NONENONEs,x,x, && | |
2481 | program_prefix=${target_alias}- | |
d0ac1c44 | 2482 | |
23d61380 AM |
2483 | am__api_version='1.15' |
2484 | ||
2485 | # Find a good install program. We prefer a C program (faster), | |
2486 | # so one script is as good as another. But avoid the broken or | |
2487 | # incompatible versions: | |
2488 | # SysV /etc/install, /usr/sbin/install | |
2489 | # SunOS /usr/etc/install | |
2490 | # IRIX /sbin/install | |
2491 | # AIX /bin/install | |
2492 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2493 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2494 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2495 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2496 | # OS/2's system install, which has a completely different semantic | |
2497 | # ./install, which can be erroneously created by make from ./install.sh. | |
2498 | # Reject install programs that cannot install multiple files. | |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2500 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2501 | if test -z "$INSTALL"; then | |
2502 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 2503 | $as_echo_n "(cached) " >&6 |
13b2be9c | 2504 | else |
23d61380 | 2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13b2be9c DJ |
2506 | for as_dir in $PATH |
2507 | do | |
2508 | IFS=$as_save_IFS | |
2509 | test -z "$as_dir" && as_dir=. | |
23d61380 AM |
2510 | # Account for people who put trailing slashes in PATH elements. |
2511 | case $as_dir/ in #(( | |
2512 | ./ | .// | /[cC]/* | \ | |
2513 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2514 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2515 | /usr/ucb/* ) ;; | |
2516 | *) | |
2517 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2518 | # Don't use installbsd from OSF since it installs stuff as root | |
2519 | # by default. | |
2520 | for ac_prog in ginstall scoinst install; do | |
2521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2522 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2523 | if test $ac_prog = install && | |
2524 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2525 | # AIX install. It has an incompatible calling convention. | |
2526 | : | |
2527 | elif test $ac_prog = install && | |
2528 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2529 | # program-specific install script used by HP pwplus--don't use. | |
2530 | : | |
2531 | else | |
2532 | rm -rf conftest.one conftest.two conftest.dir | |
2533 | echo one > conftest.one | |
2534 | echo two > conftest.two | |
2535 | mkdir conftest.dir | |
2536 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2537 | test -s conftest.one && test -s conftest.two && | |
2538 | test -s conftest.dir/conftest.one && | |
2539 | test -s conftest.dir/conftest.two | |
2540 | then | |
2541 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2542 | break 3 | |
2543 | fi | |
2544 | fi | |
2545 | fi | |
2546 | done | |
2547 | done | |
2548 | ;; | |
2549 | esac | |
2550 | ||
81ecdfbb RW |
2551 | done |
2552 | IFS=$as_save_IFS | |
13b2be9c | 2553 | |
23d61380 AM |
2554 | rm -rf conftest.one conftest.two conftest.dir |
2555 | ||
252b5132 RH |
2556 | fi |
2557 | if test "${ac_cv_path_install+set}" = set; then | |
13b2be9c | 2558 | INSTALL=$ac_cv_path_install |
252b5132 | 2559 | else |
58c85be7 RW |
2560 | # As a last resort, use the slow shell script. Don't cache a |
2561 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2562 | # break other packages using the cache if that directory is |
58c85be7 | 2563 | # removed, or if the value is a relative name. |
13b2be9c | 2564 | INSTALL=$ac_install_sh |
252b5132 RH |
2565 | fi |
2566 | fi | |
81ecdfbb RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2568 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
2569 | |
2570 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2571 | # It thinks the first close brace ends the variable substitution. | |
2572 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2573 | ||
13b2be9c | 2574 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2575 | |
2576 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2577 | ||
81ecdfbb RW |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2579 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
81ecdfbb RW |
2580 | # Reject unsafe characters in $srcdir or the absolute working directory |
2581 | # name. Accept space and tab only in the latter. | |
2582 | am_lf=' | |
2583 | ' | |
2584 | case `pwd` in | |
2585 | *[\\\"\#\$\&\'\`$am_lf]*) | |
d0ac1c44 | 2586 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
81ecdfbb RW |
2587 | esac |
2588 | case $srcdir in | |
2589 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
d0ac1c44 | 2590 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
81ecdfbb RW |
2591 | esac |
2592 | ||
d0ac1c44 | 2593 | # Do 'set' in a subshell so we don't clobber the current shell's |
252b5132 RH |
2594 | # arguments. Must try -L first in case configure is actually a |
2595 | # symlink; some systems play weird games with the mod time of symlinks | |
2596 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2597 | # directory). | |
2598 | if ( | |
d0ac1c44 SM |
2599 | am_has_slept=no |
2600 | for am_try in 1 2; do | |
2601 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2602 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2603 | if test "$*" = "X"; then | |
2604 | # -L didn't work. | |
2605 | set X `ls -t "$srcdir/configure" conftest.file` | |
2606 | fi | |
2607 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2608 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2609 | ||
2610 | # If neither matched, then we have a broken ls. This can happen | |
2611 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2612 | # broken ls alias from the environment. This has actually | |
2613 | # happened. Such a system could not be considered "sane". | |
2614 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2615 | alias in your environment" "$LINENO" 5 | |
2616 | fi | |
2617 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2618 | break | |
2619 | fi | |
2620 | # Just in case. | |
2621 | sleep 1 | |
2622 | am_has_slept=yes | |
2623 | done | |
13b2be9c DJ |
2624 | test "$2" = conftest.file |
2625 | ) | |
2626 | then | |
2627 | # Ok. | |
2628 | : | |
2629 | else | |
d0ac1c44 | 2630 | as_fn_error $? "newly created file is older than distributed files! |
81ecdfbb | 2631 | Check your system clock" "$LINENO" 5 |
13b2be9c | 2632 | fi |
81ecdfbb RW |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2634 | $as_echo "yes" >&6; } | |
d0ac1c44 SM |
2635 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2636 | # generated files are strictly newer. | |
2637 | am_sleep_pid= | |
2638 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2639 | ( sleep 1 ) & | |
2640 | am_sleep_pid=$! | |
2641 | fi | |
2642 | ||
2643 | rm -f conftest.file | |
2644 | ||
13b2be9c | 2645 | test "$program_prefix" != NONE && |
81ecdfbb | 2646 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
13b2be9c DJ |
2647 | # Use a double $ so make ignores it. |
2648 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2649 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2650 | # Double any \ or $. | |
13b2be9c | 2651 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2652 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2653 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
13b2be9c | 2654 | |
23d61380 AM |
2655 | # Expand $ac_aux_dir to an absolute path. |
2656 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2657 | ||
81ecdfbb RW |
2658 | if test x"${MISSING+set}" != xset; then |
2659 | case $am_aux_dir in | |
2660 | *\ * | *\ *) | |
2661 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2662 | *) | |
2663 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2664 | esac | |
2665 | fi | |
13b2be9c | 2666 | # Use eval to expand $SHELL |
d0ac1c44 SM |
2667 | if eval "$MISSING --is-lightweight"; then |
2668 | am_missing_run="$MISSING " | |
13b2be9c DJ |
2669 | else |
2670 | am_missing_run= | |
d0ac1c44 SM |
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2672 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
ab509236 L |
2673 | fi |
2674 | ||
d0ac1c44 | 2675 | if test x"${install_sh+set}" != xset; then |
81ecdfbb RW |
2676 | case $am_aux_dir in |
2677 | *\ * | *\ *) | |
2678 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2679 | *) | |
2680 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2681 | esac | |
2682 | fi | |
2683 | ||
d0ac1c44 SM |
2684 | # Installed binaries are usually stripped using 'strip' when the user |
2685 | # run "make install-strip". However 'strip' might not be the right | |
81ecdfbb | 2686 | # tool to use in cross-compilation environments, therefore Automake |
d0ac1c44 | 2687 | # will honor the 'STRIP' environment variable to overrule this program. |
81ecdfbb RW |
2688 | if test "$cross_compiling" != no; then |
2689 | if test -n "$ac_tool_prefix"; then | |
2690 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2691 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2693 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2694 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 2695 | $as_echo_n "(cached) " >&6 |
13b2be9c | 2696 | else |
81ecdfbb RW |
2697 | if test -n "$STRIP"; then |
2698 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13b2be9c DJ |
2699 | else |
2700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2701 | for as_dir in $PATH | |
2702 | do | |
2703 | IFS=$as_save_IFS | |
2704 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2705 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2706 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2707 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13b2be9c DJ |
2709 | break 2 |
2710 | fi | |
2711 | done | |
81ecdfbb RW |
2712 | done |
2713 | IFS=$as_save_IFS | |
13b2be9c DJ |
2714 | |
2715 | fi | |
2716 | fi | |
81ecdfbb RW |
2717 | STRIP=$ac_cv_prog_STRIP |
2718 | if test -n "$STRIP"; then | |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2720 | $as_echo "$STRIP" >&6; } | |
13b2be9c | 2721 | else |
81ecdfbb RW |
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2723 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2724 | fi |
2725 | ||
13b2be9c | 2726 | |
81ecdfbb RW |
2727 | fi |
2728 | if test -z "$ac_cv_prog_STRIP"; then | |
2729 | ac_ct_STRIP=$STRIP | |
2730 | # Extract the first word of "strip", so it can be a program name with args. | |
2731 | set dummy strip; ac_word=$2 | |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2733 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2734 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 2735 | $as_echo_n "(cached) " >&6 |
13b2be9c | 2736 | else |
81ecdfbb RW |
2737 | if test -n "$ac_ct_STRIP"; then |
2738 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
13b2be9c | 2739 | else |
81ecdfbb RW |
2740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2741 | for as_dir in $PATH | |
2742 | do | |
2743 | IFS=$as_save_IFS | |
2744 | test -z "$as_dir" && as_dir=. | |
2745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2747 | ac_cv_prog_ac_ct_STRIP="strip" |
2748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2749 | break 2 | |
2750 | fi | |
2751 | done | |
2752 | done | |
2753 | IFS=$as_save_IFS | |
2754 | ||
2755 | fi | |
2756 | fi | |
2757 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2758 | if test -n "$ac_ct_STRIP"; then | |
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2760 | $as_echo "$ac_ct_STRIP" >&6; } | |
2761 | else | |
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2763 | $as_echo "no" >&6; } | |
2764 | fi | |
2765 | ||
2766 | if test "x$ac_ct_STRIP" = x; then | |
2767 | STRIP=":" | |
2768 | else | |
2769 | case $cross_compiling:$ac_tool_warned in | |
2770 | yes:) | |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2772 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2773 | ac_tool_warned=yes ;; | |
2774 | esac | |
2775 | STRIP=$ac_ct_STRIP | |
2776 | fi | |
2777 | else | |
2778 | STRIP="$ac_cv_prog_STRIP" | |
2779 | fi | |
2780 | ||
2781 | fi | |
2782 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2783 | ||
2784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2785 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2786 | if test -z "$MKDIR_P"; then | |
d0ac1c44 | 2787 | if ${ac_cv_path_mkdir+:} false; then : |
81ecdfbb RW |
2788 | $as_echo_n "(cached) " >&6 |
2789 | else | |
2790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2791 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2792 | do | |
2793 | IFS=$as_save_IFS | |
2794 | test -z "$as_dir" && as_dir=. | |
2795 | for ac_prog in mkdir gmkdir; do | |
2796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2797 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
81ecdfbb RW |
2798 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2799 | 'mkdir (GNU coreutils) '* | \ | |
2800 | 'mkdir (coreutils) '* | \ | |
2801 | 'mkdir (fileutils) '4.1*) | |
2802 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2803 | break 3;; | |
2804 | esac | |
2805 | done | |
2806 | done | |
2807 | done | |
2808 | IFS=$as_save_IFS | |
2809 | ||
2810 | fi | |
2811 | ||
d0ac1c44 | 2812 | test -d ./--version && rmdir ./--version |
81ecdfbb RW |
2813 | if test "${ac_cv_path_mkdir+set}" = set; then |
2814 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2815 | else | |
2816 | # As a last resort, use the slow shell script. Don't cache a | |
2817 | # value for MKDIR_P within a source directory, because that will | |
2818 | # break other packages using the cache if that directory is | |
2819 | # removed, or if the value is a relative name. | |
81ecdfbb RW |
2820 | MKDIR_P="$ac_install_sh -d" |
2821 | fi | |
2822 | fi | |
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2824 | $as_echo "$MKDIR_P" >&6; } | |
2825 | ||
81ecdfbb RW |
2826 | for ac_prog in gawk mawk nawk awk |
2827 | do | |
2828 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2829 | set dummy $ac_prog; ac_word=$2 | |
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2831 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2832 | if ${ac_cv_prog_AWK+:} false; then : |
81ecdfbb RW |
2833 | $as_echo_n "(cached) " >&6 |
2834 | else | |
2835 | if test -n "$AWK"; then | |
2836 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2837 | else | |
2838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2839 | for as_dir in $PATH | |
2840 | do | |
2841 | IFS=$as_save_IFS | |
2842 | test -z "$as_dir" && as_dir=. | |
2843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2845 | ac_cv_prog_AWK="$ac_prog" |
2846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2847 | break 2 | |
2848 | fi | |
2849 | done | |
2850 | done | |
2851 | IFS=$as_save_IFS | |
2852 | ||
2853 | fi | |
2854 | fi | |
2855 | AWK=$ac_cv_prog_AWK | |
2856 | if test -n "$AWK"; then | |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2858 | $as_echo "$AWK" >&6; } | |
2859 | else | |
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2861 | $as_echo "no" >&6; } | |
13b2be9c | 2862 | fi |
81ecdfbb RW |
2863 | |
2864 | ||
2865 | test -n "$AWK" && break | |
2866 | done | |
2867 | ||
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2869 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2870 | set x ${MAKE-make} | |
2871 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0ac1c44 | 2872 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb RW |
2873 | $as_echo_n "(cached) " >&6 |
2874 | else | |
2875 | cat >conftest.make <<\_ACEOF | |
2876 | SHELL = /bin/sh | |
2877 | all: | |
2878 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2879 | _ACEOF | |
d0ac1c44 | 2880 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
2881 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2882 | *@@@%%%=?*=@@@%%%*) | |
2883 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2884 | *) | |
2885 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2886 | esac | |
13b2be9c DJ |
2887 | rm -f conftest.make |
2888 | fi | |
81ecdfbb RW |
2889 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2891 | $as_echo "yes" >&6; } | |
13b2be9c DJ |
2892 | SET_MAKE= |
2893 | else | |
81ecdfbb RW |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2895 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2896 | SET_MAKE="MAKE=${MAKE-make}" |
2897 | fi | |
2898 | ||
2899 | rm -rf .tst 2>/dev/null | |
2900 | mkdir .tst 2>/dev/null | |
2901 | if test -d .tst; then | |
2902 | am__leading_dot=. | |
2903 | else | |
2904 | am__leading_dot=_ | |
2905 | fi | |
2906 | rmdir .tst 2>/dev/null | |
2907 | ||
d0ac1c44 SM |
2908 | # Check whether --enable-silent-rules was given. |
2909 | if test "${enable_silent_rules+set}" = set; then : | |
2910 | enableval=$enable_silent_rules; | |
2911 | fi | |
2912 | ||
2913 | case $enable_silent_rules in # ((( | |
2914 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2915 | no) AM_DEFAULT_VERBOSITY=1;; | |
2916 | *) AM_DEFAULT_VERBOSITY=1;; | |
2917 | esac | |
2918 | am_make=${MAKE-make} | |
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2920 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2921 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2922 | $as_echo_n "(cached) " >&6 | |
2923 | else | |
2924 | if $as_echo 'TRUE=$(BAR$(V)) | |
2925 | BAR0=false | |
2926 | BAR1=true | |
2927 | V=1 | |
2928 | am__doit: | |
2929 | @$(TRUE) | |
2930 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2931 | am_cv_make_support_nested_variables=yes | |
2932 | else | |
2933 | am_cv_make_support_nested_variables=no | |
2934 | fi | |
2935 | fi | |
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2937 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2938 | if test $am_cv_make_support_nested_variables = yes; then | |
2939 | AM_V='$(V)' | |
2940 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2941 | else | |
2942 | AM_V=$AM_DEFAULT_VERBOSITY | |
2943 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2944 | fi | |
2945 | AM_BACKSLASH='\' | |
2946 | ||
81ecdfbb RW |
2947 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2948 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2949 | # is not polluted with repeated "-I." | |
2950 | am__isrc=' -I$(srcdir)' | |
2951 | # test to see if srcdir already configured | |
2952 | if test -f $srcdir/config.status; then | |
d0ac1c44 | 2953 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
81ecdfbb | 2954 | fi |
13b2be9c DJ |
2955 | fi |
2956 | ||
2957 | # test whether we have cygpath | |
2958 | if test -z "$CYGPATH_W"; then | |
2959 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2960 | CYGPATH_W='cygpath -w' | |
2961 | else | |
2962 | CYGPATH_W=echo | |
2963 | fi | |
2964 | fi | |
2965 | ||
2966 | ||
2967 | # Define the identity of the package. | |
2e98a7bd | 2968 | PACKAGE='gas' |
346d80ef | 2969 | VERSION='2.37.50' |
13b2be9c DJ |
2970 | |
2971 | ||
2972 | cat >>confdefs.h <<_ACEOF | |
2973 | #define PACKAGE "$PACKAGE" | |
2974 | _ACEOF | |
2975 | ||
2976 | ||
2977 | cat >>confdefs.h <<_ACEOF | |
2978 | #define VERSION "$VERSION" | |
2979 | _ACEOF | |
2980 | ||
2981 | # Some tools Automake needs. | |
2982 | ||
2983 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2984 | ||
2985 | ||
2986 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2987 | ||
2988 | ||
2989 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2990 | ||
2991 | ||
2992 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2993 | ||
2994 | ||
2995 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2996 | ||
d0ac1c44 SM |
2997 | # For better backward compatibility. To be removed once Automake 1.9.x |
2998 | # dies out for good. For more background, see: | |
2999 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3000 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3001 | mkdir_p='$(MKDIR_P)' | |
3002 | ||
3003 | # We need awk for the "check" target (and possibly the TAP driver). The | |
23d61380 AM |
3004 | # system "awk" is bad on some platforms. |
3005 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3006 | # in the wild :-( We should find a proper way to deprecate it ... | |
3007 | AMTAR='$${TAR-tar}' | |
3008 | ||
3009 | ||
3010 | # We'll loop over all known methods to create a tar archive until one works. | |
3011 | _am_tools='gnutar pax cpio none' | |
3012 | ||
3013 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
252b5132 | 3014 | |
252b5132 | 3015 | |
252b5132 | 3016 | |
252b5132 | 3017 | |
d6d788bd L |
3018 | |
3019 | ||
d0ac1c44 SM |
3020 | # POSIX will say in a future version that running "rm -f" with no argument |
3021 | # is OK; and we want to be able to make that assumption in our Makefile | |
3022 | # recipes. So use an aggressive probe to check that the usage we want is | |
3023 | # actually supported "in the wild" to an acceptable degree. | |
3024 | # See automake bug#10828. | |
3025 | # To make any issue more visible, cause the running configure to be aborted | |
3026 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3027 | # user can still override this though. | |
3028 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3029 | cat >&2 <<'END' | |
3030 | Oops! | |
3031 | ||
3032 | Your 'rm' program seems unable to run without file operands specified | |
3033 | on the command line, even when the '-f' option is present. This is contrary | |
3034 | to the behaviour of most rm programs out there, and not conforming with | |
3035 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3036 | ||
3037 | Please tell bug-automake@gnu.org about your system, including the value | |
3038 | of your $PATH and any error possibly output before this message. This | |
3039 | can help us improve future automake versions. | |
3040 | ||
3041 | END | |
3042 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3043 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3044 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3045 | echo >&2 | |
3046 | else | |
3047 | cat >&2 <<'END' | |
3048 | Aborting the configuration process, to ensure you take notice of the issue. | |
3049 | ||
3050 | You can download and install GNU coreutils to get an 'rm' implementation | |
3051 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3052 | ||
3053 | If you want to complete the configuration process using your problematic | |
3054 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3055 | to "yes", and re-run configure. | |
3056 | ||
3057 | END | |
3058 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3059 | fi | |
3060 | fi | |
3061 | ||
13b2be9c | 3062 | |
ce2cded5 L |
3063 | ac_ext=c |
3064 | ac_cpp='$CPP $CPPFLAGS' | |
3065 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3066 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3067 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3068 | if test -n "$ac_tool_prefix"; then | |
3069 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3070 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3072 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3073 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3074 | $as_echo_n "(cached) " >&6 |
252b5132 | 3075 | else |
ce2cded5 L |
3076 | if test -n "$CC"; then |
3077 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3078 | else |
ce2cded5 L |
3079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3080 | for as_dir in $PATH | |
3081 | do | |
3082 | IFS=$as_save_IFS | |
3083 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3084 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3086 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3088 | break 2 |
3089 | fi | |
3090 | done | |
81ecdfbb RW |
3091 | done |
3092 | IFS=$as_save_IFS | |
d7040cdb | 3093 | |
ce2cded5 L |
3094 | fi |
3095 | fi | |
3096 | CC=$ac_cv_prog_CC | |
3097 | if test -n "$CC"; then | |
81ecdfbb RW |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3099 | $as_echo "$CC" >&6; } | |
bedf545c | 3100 | else |
81ecdfbb RW |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3102 | $as_echo "no" >&6; } | |
ce2cded5 | 3103 | fi |
d7040cdb | 3104 | |
81ecdfbb | 3105 | |
ce2cded5 L |
3106 | fi |
3107 | if test -z "$ac_cv_prog_CC"; then | |
3108 | ac_ct_CC=$CC | |
3109 | # Extract the first word of "gcc", so it can be a program name with args. | |
3110 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3112 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3113 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3114 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3115 | else |
ce2cded5 L |
3116 | if test -n "$ac_ct_CC"; then |
3117 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3118 | else | |
d7040cdb SE |
3119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3120 | for as_dir in $PATH | |
3121 | do | |
3122 | IFS=$as_save_IFS | |
3123 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3124 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3126 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 3128 | break 2 |
d7040cdb | 3129 | fi |
ce2cded5 | 3130 | done |
81ecdfbb RW |
3131 | done |
3132 | IFS=$as_save_IFS | |
d7040cdb | 3133 | |
ce2cded5 L |
3134 | fi |
3135 | fi | |
3136 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3137 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3139 | $as_echo "$ac_ct_CC" >&6; } | |
ce2cded5 | 3140 | else |
81ecdfbb RW |
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3142 | $as_echo "no" >&6; } | |
d7040cdb SE |
3143 | fi |
3144 | ||
81ecdfbb RW |
3145 | if test "x$ac_ct_CC" = x; then |
3146 | CC="" | |
3147 | else | |
3148 | case $cross_compiling:$ac_tool_warned in | |
3149 | yes:) | |
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3151 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3152 | ac_tool_warned=yes ;; | |
3153 | esac | |
3154 | CC=$ac_ct_CC | |
3155 | fi | |
ce2cded5 L |
3156 | else |
3157 | CC="$ac_cv_prog_CC" | |
3158 | fi | |
d7040cdb | 3159 | |
ce2cded5 | 3160 | if test -z "$CC"; then |
81ecdfbb RW |
3161 | if test -n "$ac_tool_prefix"; then |
3162 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 3163 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3165 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3166 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3167 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3168 | else |
ce2cded5 L |
3169 | if test -n "$CC"; then |
3170 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3171 | else |
ce2cded5 L |
3172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3173 | for as_dir in $PATH | |
3174 | do | |
3175 | IFS=$as_save_IFS | |
3176 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3177 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3178 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3179 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3181 | break 2 |
3182 | fi | |
3183 | done | |
81ecdfbb RW |
3184 | done |
3185 | IFS=$as_save_IFS | |
d7040cdb | 3186 | |
252b5132 RH |
3187 | fi |
3188 | fi | |
ce2cded5 L |
3189 | CC=$ac_cv_prog_CC |
3190 | if test -n "$CC"; then | |
81ecdfbb RW |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3192 | $as_echo "$CC" >&6; } | |
ce2cded5 | 3193 | else |
81ecdfbb RW |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3195 | $as_echo "no" >&6; } | |
d7040cdb | 3196 | fi |
f9c19112 | 3197 | |
ce2cded5 | 3198 | |
81ecdfbb | 3199 | fi |
ce2cded5 L |
3200 | fi |
3201 | if test -z "$CC"; then | |
3202 | # Extract the first word of "cc", so it can be a program name with args. | |
3203 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3205 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3206 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3207 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
3208 | else |
3209 | if test -n "$CC"; then | |
3210 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3211 | else | |
3212 | ac_prog_rejected=no | |
3213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3214 | for as_dir in $PATH | |
3215 | do | |
3216 | IFS=$as_save_IFS | |
3217 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3218 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 L |
3220 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3221 | ac_prog_rejected=yes | |
3222 | continue | |
3223 | fi | |
3224 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3226 | break 2 |
3227 | fi | |
3228 | done | |
81ecdfbb RW |
3229 | done |
3230 | IFS=$as_save_IFS | |
ce2cded5 L |
3231 | |
3232 | if test $ac_prog_rejected = yes; then | |
3233 | # We found a bogon in the path, so make sure we never use it. | |
3234 | set dummy $ac_cv_prog_CC | |
3235 | shift | |
3236 | if test $# != 0; then | |
3237 | # We chose a different compiler from the bogus one. | |
3238 | # However, it has the same basename, so the bogon will be chosen | |
3239 | # first if we set CC to just the basename; use the full file name. | |
3240 | shift | |
3241 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3242 | fi | |
3243 | fi | |
3244 | fi | |
3245 | fi | |
3246 | CC=$ac_cv_prog_CC | |
3247 | if test -n "$CC"; then | |
81ecdfbb RW |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3249 | $as_echo "$CC" >&6; } | |
ce2cded5 | 3250 | else |
81ecdfbb RW |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3252 | $as_echo "no" >&6; } | |
ce2cded5 L |
3253 | fi |
3254 | ||
81ecdfbb | 3255 | |
ce2cded5 L |
3256 | fi |
3257 | if test -z "$CC"; then | |
3258 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3259 | for ac_prog in cl.exe |
ce2cded5 L |
3260 | do |
3261 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3262 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3264 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3265 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3266 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
3267 | else |
3268 | if test -n "$CC"; then | |
3269 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3270 | else | |
3271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3272 | for as_dir in $PATH | |
3273 | do | |
3274 | IFS=$as_save_IFS | |
3275 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3276 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3278 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3280 | break 2 |
3281 | fi | |
3282 | done | |
81ecdfbb RW |
3283 | done |
3284 | IFS=$as_save_IFS | |
ce2cded5 L |
3285 | |
3286 | fi | |
3287 | fi | |
3288 | CC=$ac_cv_prog_CC | |
3289 | if test -n "$CC"; then | |
81ecdfbb RW |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3291 | $as_echo "$CC" >&6; } | |
ce2cded5 | 3292 | else |
81ecdfbb RW |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3294 | $as_echo "no" >&6; } | |
ce2cded5 L |
3295 | fi |
3296 | ||
81ecdfbb | 3297 | |
ce2cded5 | 3298 | test -n "$CC" && break |
d7040cdb SE |
3299 | done |
3300 | fi | |
ce2cded5 L |
3301 | if test -z "$CC"; then |
3302 | ac_ct_CC=$CC | |
81ecdfbb | 3303 | for ac_prog in cl.exe |
d7040cdb SE |
3304 | do |
3305 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3306 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3308 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3309 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3310 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3311 | else |
ce2cded5 L |
3312 | if test -n "$ac_ct_CC"; then |
3313 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3314 | else |
3315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3316 | for as_dir in $PATH | |
3317 | do | |
3318 | IFS=$as_save_IFS | |
3319 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3320 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3322 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 3324 | break 2 |
ac48eca1 | 3325 | fi |
d7040cdb | 3326 | done |
81ecdfbb RW |
3327 | done |
3328 | IFS=$as_save_IFS | |
ac48eca1 | 3329 | |
d7040cdb SE |
3330 | fi |
3331 | fi | |
ce2cded5 L |
3332 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3333 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3335 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 3336 | else |
81ecdfbb RW |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3338 | $as_echo "no" >&6; } | |
d7040cdb | 3339 | fi |
ac48eca1 | 3340 | |
81ecdfbb | 3341 | |
ce2cded5 | 3342 | test -n "$ac_ct_CC" && break |
d7040cdb | 3343 | done |
ac48eca1 | 3344 | |
81ecdfbb RW |
3345 | if test "x$ac_ct_CC" = x; then |
3346 | CC="" | |
3347 | else | |
3348 | case $cross_compiling:$ac_tool_warned in | |
3349 | yes:) | |
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3351 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3352 | ac_tool_warned=yes ;; | |
3353 | esac | |
3354 | CC=$ac_ct_CC | |
3355 | fi | |
d7040cdb | 3356 | fi |
ac48eca1 | 3357 | |
d7040cdb | 3358 | fi |
ac48eca1 | 3359 | |
ac48eca1 | 3360 | |
81ecdfbb RW |
3361 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3362 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3363 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3364 | See \`config.log' for more details" "$LINENO" 5; } | |
6be7c12c | 3365 | |
ce2cded5 | 3366 | # Provide some information about the compiler. |
81ecdfbb RW |
3367 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3368 | set X $ac_compile | |
3369 | ac_compiler=$2 | |
3370 | for ac_option in --version -v -V -qversion; do | |
3371 | { { ac_try="$ac_compiler $ac_option >&5" | |
3372 | case "(($ac_try" in | |
3373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3374 | *) ac_try_echo=$ac_try;; | |
3375 | esac | |
3376 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3377 | $as_echo "$ac_try_echo"; } >&5 | |
3378 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 3379 | ac_status=$? |
81ecdfbb RW |
3380 | if test -s conftest.err; then |
3381 | sed '10a\ | |
3382 | ... rest of stderr output deleted ... | |
3383 | 10q' conftest.err >conftest.er1 | |
3384 | cat conftest.er1 >&5 | |
81ecdfbb | 3385 | fi |
d0ac1c44 | 3386 | rm -f conftest.er1 conftest.err |
81ecdfbb | 3387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
23d61380 AM |
3388 | test $ac_status = 0; } |
3389 | done | |
3390 | ||
3391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3392 | /* end confdefs.h. */ | |
3393 | ||
3394 | int | |
3395 | main () | |
3396 | { | |
3397 | ||
3398 | ; | |
3399 | return 0; | |
3400 | } | |
3401 | _ACEOF | |
3402 | ac_clean_files_save=$ac_clean_files | |
3403 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3404 | # Try to create an executable without -o first, disregard a.out. | |
3405 | # It will help us diagnose broken compilers, and finding out an intuition | |
3406 | # of exeext. | |
3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3408 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3409 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3410 | ||
3411 | # The possible output files: | |
3412 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3413 | ||
3414 | ac_rmfiles= | |
3415 | for ac_file in $ac_files | |
3416 | do | |
3417 | case $ac_file in | |
3418 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3419 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3420 | esac | |
3421 | done | |
3422 | rm -f $ac_rmfiles | |
3423 | ||
3424 | if { { ac_try="$ac_link_default" | |
3425 | case "(($ac_try" in | |
3426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3427 | *) ac_try_echo=$ac_try;; | |
3428 | esac | |
3429 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3430 | $as_echo "$ac_try_echo"; } >&5 | |
3431 | (eval "$ac_link_default") 2>&5 | |
3432 | ac_status=$? | |
3433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3434 | test $ac_status = 0; }; then : | |
3435 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3436 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3437 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3438 | # so that the user can short-circuit this test for compilers unknown to | |
3439 | # Autoconf. | |
3440 | for ac_file in $ac_files '' | |
3441 | do | |
3442 | test -f "$ac_file" || continue | |
3443 | case $ac_file in | |
3444 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3445 | ;; | |
3446 | [ab].out ) | |
3447 | # We found the default executable, but exeext='' is most | |
3448 | # certainly right. | |
3449 | break;; | |
3450 | *.* ) | |
3451 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3452 | then :; else | |
3453 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3454 | fi | |
3455 | # We set ac_cv_exeext here because the later test for it is not | |
3456 | # safe: cross compilers may not add the suffix if given an `-o' | |
3457 | # argument, so we may need to know it at that point already. | |
3458 | # Even if this section looks crufty: it has the advantage of | |
3459 | # actually working. | |
3460 | break;; | |
3461 | * ) | |
3462 | break;; | |
3463 | esac | |
3464 | done | |
3465 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3466 | ||
3467 | else | |
3468 | ac_file='' | |
3469 | fi | |
3470 | if test -z "$ac_file"; then : | |
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3472 | $as_echo "no" >&6; } | |
3473 | $as_echo "$as_me: failed program was:" >&5 | |
3474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3475 | ||
3476 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3477 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3478 | as_fn_error 77 "C compiler cannot create executables | |
3479 | See \`config.log' for more details" "$LINENO" 5; } | |
3480 | else | |
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3482 | $as_echo "yes" >&6; } | |
3483 | fi | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3485 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3487 | $as_echo "$ac_file" >&6; } | |
3488 | ac_exeext=$ac_cv_exeext | |
3489 | ||
3490 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3491 | ac_clean_files=$ac_clean_files_save | |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3493 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3494 | if { { ac_try="$ac_link" | |
3495 | case "(($ac_try" in | |
3496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3497 | *) ac_try_echo=$ac_try;; | |
3498 | esac | |
3499 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3500 | $as_echo "$ac_try_echo"; } >&5 | |
3501 | (eval "$ac_link") 2>&5 | |
3502 | ac_status=$? | |
3503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3504 | test $ac_status = 0; }; then : | |
3505 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3506 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3507 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3508 | # `rm'. | |
3509 | for ac_file in conftest.exe conftest conftest.*; do | |
3510 | test -f "$ac_file" || continue | |
3511 | case $ac_file in | |
3512 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3513 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3514 | break;; | |
3515 | * ) break;; | |
3516 | esac | |
3517 | done | |
3518 | else | |
3519 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3520 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3521 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3522 | See \`config.log' for more details" "$LINENO" 5; } | |
3523 | fi | |
3524 | rm -f conftest conftest$ac_cv_exeext | |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3526 | $as_echo "$ac_cv_exeext" >&6; } | |
3527 | ||
3528 | rm -f conftest.$ac_ext | |
3529 | EXEEXT=$ac_cv_exeext | |
3530 | ac_exeext=$EXEEXT | |
3531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3532 | /* end confdefs.h. */ | |
3533 | #include <stdio.h> | |
3534 | int | |
3535 | main () | |
3536 | { | |
3537 | FILE *f = fopen ("conftest.out", "w"); | |
3538 | return ferror (f) || fclose (f) != 0; | |
3539 | ||
3540 | ; | |
3541 | return 0; | |
3542 | } | |
3543 | _ACEOF | |
3544 | ac_clean_files="$ac_clean_files conftest.out" | |
3545 | # Check that the compiler produces executables we can run. If not, either | |
3546 | # the compiler is broken, or we cross compile. | |
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3548 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3549 | if test "$cross_compiling" != yes; then | |
3550 | { { ac_try="$ac_link" | |
3551 | case "(($ac_try" in | |
3552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3553 | *) ac_try_echo=$ac_try;; | |
3554 | esac | |
3555 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3556 | $as_echo "$ac_try_echo"; } >&5 | |
3557 | (eval "$ac_link") 2>&5 | |
3558 | ac_status=$? | |
3559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3560 | test $ac_status = 0; } | |
3561 | if { ac_try='./conftest$ac_cv_exeext' | |
3562 | { { case "(($ac_try" in | |
3563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3564 | *) ac_try_echo=$ac_try;; | |
3565 | esac | |
3566 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3567 | $as_echo "$ac_try_echo"; } >&5 | |
3568 | (eval "$ac_try") 2>&5 | |
3569 | ac_status=$? | |
3570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3571 | test $ac_status = 0; }; }; then | |
3572 | cross_compiling=no | |
3573 | else | |
3574 | if test "$cross_compiling" = maybe; then | |
3575 | cross_compiling=yes | |
3576 | else | |
3577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3579 | as_fn_error $? "cannot run C compiled programs. | |
3580 | If you meant to cross compile, use \`--host'. | |
3581 | See \`config.log' for more details" "$LINENO" 5; } | |
3582 | fi | |
3583 | fi | |
3584 | fi | |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3586 | $as_echo "$cross_compiling" >&6; } | |
3587 | ||
3588 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3589 | ac_clean_files=$ac_clean_files_save | |
3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3591 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3592 | if ${ac_cv_objext+:} false; then : | |
3593 | $as_echo_n "(cached) " >&6 | |
3594 | else | |
3595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3596 | /* end confdefs.h. */ | |
3597 | ||
3598 | int | |
3599 | main () | |
3600 | { | |
3601 | ||
3602 | ; | |
3603 | return 0; | |
3604 | } | |
3605 | _ACEOF | |
3606 | rm -f conftest.o conftest.obj | |
3607 | if { { ac_try="$ac_compile" | |
3608 | case "(($ac_try" in | |
3609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3610 | *) ac_try_echo=$ac_try;; | |
3611 | esac | |
3612 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3613 | $as_echo "$ac_try_echo"; } >&5 | |
3614 | (eval "$ac_compile") 2>&5 | |
3615 | ac_status=$? | |
3616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3617 | test $ac_status = 0; }; then : | |
3618 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3619 | test -f "$ac_file" || continue; | |
3620 | case $ac_file in | |
3621 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3622 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3623 | break;; | |
3624 | esac | |
81ecdfbb | 3625 | done |
23d61380 AM |
3626 | else |
3627 | $as_echo "$as_me: failed program was:" >&5 | |
3628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ac48eca1 | 3629 | |
23d61380 AM |
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 $? "cannot compute suffix of object files: cannot compile | |
3633 | See \`config.log' for more details" "$LINENO" 5; } | |
3634 | fi | |
3635 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3636 | fi | |
3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3638 | $as_echo "$ac_cv_objext" >&6; } | |
3639 | OBJEXT=$ac_cv_objext | |
3640 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3642 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3643 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3644 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3645 | else |
81ecdfbb | 3646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 3647 | /* end confdefs.h. */ |
c8615825 | 3648 | |
ce2cded5 L |
3649 | int |
3650 | main () | |
3651 | { | |
3652 | #ifndef __GNUC__ | |
3653 | choke me | |
3654 | #endif | |
3655 | ||
3656 | ; | |
3657 | return 0; | |
3658 | } | |
3659 | _ACEOF | |
81ecdfbb | 3660 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 3661 | ac_compiler_gnu=yes |
d7040cdb | 3662 | else |
81ecdfbb | 3663 | ac_compiler_gnu=no |
d7040cdb | 3664 | fi |
81ecdfbb | 3665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 3666 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
ac48eca1 | 3667 | |
ce2cded5 | 3668 | fi |
81ecdfbb RW |
3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3670 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3671 | if test $ac_compiler_gnu = yes; then | |
3672 | GCC=yes | |
3673 | else | |
3674 | GCC= | |
3675 | fi | |
ce2cded5 L |
3676 | ac_test_CFLAGS=${CFLAGS+set} |
3677 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3679 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3680 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
3681 | $as_echo_n "(cached) " >&6 |
3682 | else | |
3683 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3684 | ac_c_werror_flag=yes | |
3685 | ac_cv_prog_cc_g=no | |
3686 | CFLAGS="-g" | |
3687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 3688 | /* end confdefs.h. */ |
d7040cdb | 3689 | |
ce2cded5 L |
3690 | int |
3691 | main () | |
3692 | { | |
d7040cdb | 3693 | |
ce2cded5 L |
3694 | ; |
3695 | return 0; | |
3696 | } | |
3697 | _ACEOF | |
81ecdfbb | 3698 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
3699 | ac_cv_prog_cc_g=yes |
3700 | else | |
81ecdfbb RW |
3701 | CFLAGS="" |
3702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3703 | /* end confdefs.h. */ | |
3704 | ||
3705 | int | |
3706 | main () | |
3707 | { | |
3708 | ||
3709 | ; | |
3710 | return 0; | |
3711 | } | |
3712 | _ACEOF | |
3713 | if ac_fn_c_try_compile "$LINENO"; then : | |
3714 | ||
3715 | else | |
3716 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3717 | CFLAGS="-g" | |
3718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3719 | /* end confdefs.h. */ | |
d70c5fc7 | 3720 | |
81ecdfbb RW |
3721 | int |
3722 | main () | |
3723 | { | |
3724 | ||
3725 | ; | |
3726 | return 0; | |
3727 | } | |
3728 | _ACEOF | |
3729 | if ac_fn_c_try_compile "$LINENO"; then : | |
3730 | ac_cv_prog_cc_g=yes | |
3731 | fi | |
3732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d70c5fc7 | 3733 | fi |
81ecdfbb | 3734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d70c5fc7 | 3735 | fi |
81ecdfbb RW |
3736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3737 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3738 | fi | |
3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3740 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ce2cded5 L |
3741 | if test "$ac_test_CFLAGS" = set; then |
3742 | CFLAGS=$ac_save_CFLAGS | |
3743 | elif test $ac_cv_prog_cc_g = yes; then | |
3744 | if test "$GCC" = yes; then | |
3745 | CFLAGS="-g -O2" | |
3746 | else | |
3747 | CFLAGS="-g" | |
3748 | fi | |
ac48eca1 | 3749 | else |
ce2cded5 L |
3750 | if test "$GCC" = yes; then |
3751 | CFLAGS="-O2" | |
3752 | else | |
3753 | CFLAGS= | |
3754 | fi | |
ac48eca1 | 3755 | fi |
81ecdfbb RW |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3757 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3758 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3759 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 3760 | else |
81ecdfbb | 3761 | ac_cv_prog_cc_c89=no |
ce2cded5 | 3762 | ac_save_CC=$CC |
81ecdfbb | 3763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
3764 | /* end confdefs.h. */ |
3765 | #include <stdarg.h> | |
3766 | #include <stdio.h> | |
d0ac1c44 | 3767 | struct stat; |
ce2cded5 L |
3768 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3769 | struct buf { int x; }; | |
3770 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3771 | static char *e (p, i) | |
3772 | char **p; | |
3773 | int i; | |
3774 | { | |
3775 | return p[i]; | |
3776 | } | |
3777 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3778 | { | |
3779 | char *s; | |
3780 | va_list v; | |
3781 | va_start (v,p); | |
3782 | s = g (p, va_arg (v,int)); | |
3783 | va_end (v); | |
3784 | return s; | |
3785 | } | |
3786 | ||
3787 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3788 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3789 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3790 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
3791 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3792 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3793 | that's true only with -std. */ |
ce2cded5 L |
3794 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3795 | ||
81ecdfbb RW |
3796 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3797 | inside strings and character constants. */ | |
3798 | #define FOO(x) 'x' | |
3799 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3800 | ||
ce2cded5 L |
3801 | int test (int i, double x); |
3802 | struct s1 {int (*f) (int a);}; | |
3803 | struct s2 {int (*f) (double a);}; | |
3804 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3805 | int argc; | |
3806 | char **argv; | |
3807 | int | |
3808 | main () | |
3809 | { | |
3810 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3811 | ; | |
3812 | return 0; | |
3813 | } | |
3814 | _ACEOF | |
81ecdfbb RW |
3815 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3816 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
3817 | do |
3818 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3819 | if ac_fn_c_try_compile "$LINENO"; then : |
3820 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 3821 | fi |
81ecdfbb RW |
3822 | rm -f core conftest.err conftest.$ac_objext |
3823 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 3824 | done |
81ecdfbb | 3825 | rm -f conftest.$ac_ext |
ce2cded5 L |
3826 | CC=$ac_save_CC |
3827 | ||
3828 | fi | |
81ecdfbb RW |
3829 | # AC_CACHE_VAL |
3830 | case "x$ac_cv_prog_cc_c89" in | |
3831 | x) | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3833 | $as_echo "none needed" >&6; } ;; | |
3834 | xno) | |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3836 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 3837 | *) |
81ecdfbb RW |
3838 | CC="$CC $ac_cv_prog_cc_c89" |
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3840 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d7040cdb | 3841 | esac |
81ecdfbb | 3842 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 3843 | |
ce2cded5 | 3844 | fi |
d7040cdb | 3845 | |
23d61380 AM |
3846 | ac_ext=c |
3847 | ac_cpp='$CPP $CPPFLAGS' | |
3848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3851 | ||
3852 | ac_ext=c | |
3853 | ac_cpp='$CPP $CPPFLAGS' | |
3854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3858 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3859 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3860 | $as_echo_n "(cached) " >&6 | |
3861 | else | |
3862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3863 | /* end confdefs.h. */ | |
3864 | ||
3865 | int | |
3866 | main () | |
3867 | { | |
3868 | ||
3869 | ; | |
3870 | return 0; | |
3871 | } | |
3872 | _ACEOF | |
3873 | # Make sure it works both with $CC and with simple cc. | |
3874 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3875 | # compilers refuse to overwrite an existing .o file with -o, | |
3876 | # though they will create one. | |
3877 | am_cv_prog_cc_c_o=yes | |
3878 | for am_i in 1 2; do | |
3879 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3880 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3881 | ac_status=$? | |
3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3883 | (exit $ac_status); } \ | |
3884 | && test -f conftest2.$ac_objext; then | |
3885 | : OK | |
3886 | else | |
3887 | am_cv_prog_cc_c_o=no | |
3888 | break | |
3889 | fi | |
3890 | done | |
3891 | rm -f core conftest* | |
3892 | unset am_i | |
3893 | fi | |
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3895 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3896 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3897 | # Losing compiler, so override with the script. | |
3898 | # FIXME: It is wrong to rewrite CC. | |
3899 | # But if we don't then we get into trouble of one sort or another. | |
3900 | # A longer-term fix would be to have automake use am__CC in this case, | |
3901 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3902 | CC="$am_aux_dir/compile $CC" | |
3903 | fi | |
3904 | ac_ext=c | |
3905 | ac_cpp='$CPP $CPPFLAGS' | |
3906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3909 | ||
3910 | DEPDIR="${am__leading_dot}deps" | |
3911 | ||
3912 | ac_config_commands="$ac_config_commands depfiles" | |
3913 | ||
3914 | ||
3915 | am_make=${MAKE-make} | |
3916 | cat > confinc << 'END' | |
3917 | am__doit: | |
3918 | @echo this is the am__doit target | |
3919 | .PHONY: am__doit | |
3920 | END | |
3921 | # If we don't find an include directive, just comment out the code. | |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3923 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3924 | am__include="#" | |
3925 | am__quote= | |
3926 | _am_result=none | |
3927 | # First try GNU make style include. | |
3928 | echo "include confinc" > confmf | |
3929 | # Ignore all kinds of additional output from 'make'. | |
3930 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3931 | *the\ am__doit\ target*) | |
3932 | am__include=include | |
3933 | am__quote= | |
3934 | _am_result=GNU | |
3935 | ;; | |
3936 | esac | |
3937 | # Now try BSD make style include. | |
3938 | if test "$am__include" = "#"; then | |
3939 | echo '.include "confinc"' > confmf | |
3940 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3941 | *the\ am__doit\ target*) | |
3942 | am__include=.include | |
3943 | am__quote="\"" | |
3944 | _am_result=BSD | |
3945 | ;; | |
3946 | esac | |
3947 | fi | |
3948 | ||
3949 | ||
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3951 | $as_echo "$_am_result" >&6; } | |
3952 | rm -f confinc confmf | |
3953 | ||
3954 | # Check whether --enable-dependency-tracking was given. | |
3955 | if test "${enable_dependency_tracking+set}" = set; then : | |
3956 | enableval=$enable_dependency_tracking; | |
3957 | fi | |
3958 | ||
3959 | if test "x$enable_dependency_tracking" != xno; then | |
3960 | am_depcomp="$ac_aux_dir/depcomp" | |
3961 | AMDEPBACKSLASH='\' | |
3962 | am__nodep='_no' | |
3963 | fi | |
3964 | if test "x$enable_dependency_tracking" != xno; then | |
3965 | AMDEP_TRUE= | |
3966 | AMDEP_FALSE='#' | |
3967 | else | |
3968 | AMDEP_TRUE='#' | |
3969 | AMDEP_FALSE= | |
3970 | fi | |
3971 | ||
3972 | ||
3973 | ||
3974 | depcc="$CC" am_compiler_list= | |
3975 | ||
3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3977 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3978 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3979 | $as_echo_n "(cached) " >&6 | |
3980 | else | |
3981 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3982 | # We make a subdir and do the tests there. Otherwise we can end up | |
3983 | # making bogus files that we don't know about and never remove. For | |
3984 | # instance it was reported that on HP-UX the gcc test will end up | |
3985 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
3986 | # in D". | |
3987 | rm -rf conftest.dir | |
3988 | mkdir conftest.dir | |
3989 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3990 | # using a relative directory. | |
3991 | cp "$am_depcomp" conftest.dir | |
3992 | cd conftest.dir | |
3993 | # We will build objects and dependencies in a subdirectory because | |
3994 | # it helps to detect inapplicable dependency modes. For instance | |
3995 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3996 | # side effect of compilation, but ICC will put the dependencies in | |
3997 | # the current directory while Tru64 will put them in the object | |
3998 | # directory. | |
3999 | mkdir sub | |
4000 | ||
4001 | am_cv_CC_dependencies_compiler_type=none | |
4002 | if test "$am_compiler_list" = ""; then | |
4003 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4004 | fi | |
4005 | am__universal=false | |
4006 | case " $depcc " in #( | |
4007 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4008 | esac | |
4009 | ||
4010 | for depmode in $am_compiler_list; do | |
4011 | # Setup a source with many dependencies, because some compilers | |
4012 | # like to wrap large dependency lists on column 80 (with \), and | |
4013 | # we should not choose a depcomp mode which is confused by this. | |
4014 | # | |
4015 | # We need to recreate these files for each test, as the compiler may | |
4016 | # overwrite some of them when testing with obscure command lines. | |
4017 | # This happens at least with the AIX C compiler. | |
4018 | : > sub/conftest.c | |
4019 | for i in 1 2 3 4 5 6; do | |
4020 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4021 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4022 | # Solaris 10 /bin/sh. | |
4023 | echo '/* dummy */' > sub/conftst$i.h | |
4024 | done | |
4025 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4026 | ||
4027 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4028 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4029 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4030 | # versions had trouble with output in subdirs. | |
4031 | am__obj=sub/conftest.${OBJEXT-o} | |
4032 | am__minus_obj="-o $am__obj" | |
4033 | case $depmode in | |
4034 | gcc) | |
4035 | # This depmode causes a compiler race in universal mode. | |
4036 | test "$am__universal" = false || continue | |
4037 | ;; | |
4038 | nosideeffect) | |
4039 | # After this tag, mechanisms are not by side-effect, so they'll | |
4040 | # only be used when explicitly requested. | |
4041 | if test "x$enable_dependency_tracking" = xyes; then | |
4042 | continue | |
4043 | else | |
4044 | break | |
4045 | fi | |
4046 | ;; | |
4047 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4048 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4049 | # not run yet. These depmodes are late enough in the game, and | |
4050 | # so weak that their functioning should not be impacted. | |
4051 | am__obj=conftest.${OBJEXT-o} | |
4052 | am__minus_obj= | |
4053 | ;; | |
4054 | none) break ;; | |
4055 | esac | |
4056 | if depmode=$depmode \ | |
4057 | source=sub/conftest.c object=$am__obj \ | |
4058 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4059 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4060 | >/dev/null 2>conftest.err && | |
4061 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4062 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4063 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4064 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4065 | # icc doesn't choke on unknown options, it will just issue warnings | |
4066 | # or remarks (even with -Werror). So we grep stderr for any message | |
4067 | # that says an option was ignored or not supported. | |
4068 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4069 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4070 | # The diagnosis changed in icc 8.0: | |
4071 | # icc: Command line remark: option '-MP' not supported | |
4072 | if (grep 'ignoring option' conftest.err || | |
4073 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4074 | am_cv_CC_dependencies_compiler_type=$depmode | |
4075 | break | |
4076 | fi | |
4077 | fi | |
4078 | done | |
4079 | ||
4080 | cd .. | |
4081 | rm -rf conftest.dir | |
4082 | else | |
4083 | am_cv_CC_dependencies_compiler_type=none | |
4084 | fi | |
4085 | ||
4086 | fi | |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4088 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4089 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
d7040cdb | 4090 | |
23d61380 AM |
4091 | if |
4092 | test "x$enable_dependency_tracking" != xno \ | |
4093 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4094 | am__fastdepCC_TRUE= | |
4095 | am__fastdepCC_FALSE='#' | |
d0ac1c44 | 4096 | else |
23d61380 AM |
4097 | am__fastdepCC_TRUE='#' |
4098 | am__fastdepCC_FALSE= | |
d0ac1c44 | 4099 | fi |
23d61380 | 4100 | |
d0ac1c44 SM |
4101 | |
4102 | ||
7357c5b6 AM |
4103 | ac_ext=c |
4104 | ac_cpp='$CPP $CPPFLAGS' | |
4105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4109 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4110 | # On Suns, sometimes $CPP names a directory. |
4111 | if test -n "$CPP" && test -d "$CPP"; then | |
4112 | CPP= | |
4113 | fi | |
4114 | if test -z "$CPP"; then | |
d0ac1c44 | 4115 | if ${ac_cv_prog_CPP+:} false; then : |
81ecdfbb | 4116 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4117 | else |
4118 | # Double quotes because CPP needs to be expanded | |
4119 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4120 | do | |
4121 | ac_preproc_ok=false | |
4122 | for ac_c_preproc_warn_flag in '' yes | |
4123 | do | |
4124 | # Use a header file that comes with gcc, so configuring glibc | |
4125 | # with a fresh cross-compiler works. | |
4126 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4127 | # <limits.h> exists even on freestanding compilers. | |
4128 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4129 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4131 | /* end confdefs.h. */ |
4132 | #ifdef __STDC__ | |
4133 | # include <limits.h> | |
4134 | #else | |
4135 | # include <assert.h> | |
4136 | #endif | |
4137 | Syntax error | |
4138 | _ACEOF | |
81ecdfbb | 4139 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4140 | |
81ecdfbb | 4141 | else |
7357c5b6 AM |
4142 | # Broken: fails on valid input. |
4143 | continue | |
4144 | fi | |
d0ac1c44 | 4145 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4146 | |
81ecdfbb | 4147 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4148 | # can be detected and how. |
81ecdfbb | 4149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4150 | /* end confdefs.h. */ |
4151 | #include <ac_nonexistent.h> | |
4152 | _ACEOF | |
81ecdfbb | 4153 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4154 | # Broken: success on invalid input. |
4155 | continue | |
4156 | else | |
7357c5b6 AM |
4157 | # Passes both tests. |
4158 | ac_preproc_ok=: | |
4159 | break | |
4160 | fi | |
d0ac1c44 | 4161 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4162 | |
7357c5b6 AM |
4163 | done |
4164 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4165 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb | 4166 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4167 | break |
4168 | fi | |
d7040cdb | 4169 | |
7357c5b6 AM |
4170 | done |
4171 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4172 | |
7357c5b6 AM |
4173 | fi |
4174 | CPP=$ac_cv_prog_CPP | |
4175 | else | |
4176 | ac_cv_prog_CPP=$CPP | |
4177 | fi | |
81ecdfbb RW |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4179 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4180 | ac_preproc_ok=false |
4181 | for ac_c_preproc_warn_flag in '' yes | |
4182 | do | |
4183 | # Use a header file that comes with gcc, so configuring glibc | |
4184 | # with a fresh cross-compiler works. | |
4185 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4186 | # <limits.h> exists even on freestanding compilers. | |
4187 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4188 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4190 | /* end confdefs.h. */ |
4191 | #ifdef __STDC__ | |
4192 | # include <limits.h> | |
4193 | #else | |
4194 | # include <assert.h> | |
4195 | #endif | |
4196 | Syntax error | |
4197 | _ACEOF | |
81ecdfbb | 4198 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4199 | |
81ecdfbb | 4200 | else |
7357c5b6 AM |
4201 | # Broken: fails on valid input. |
4202 | continue | |
4203 | fi | |
d0ac1c44 | 4204 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4205 | |
81ecdfbb | 4206 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4207 | # can be detected and how. |
81ecdfbb | 4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4209 | /* end confdefs.h. */ |
4210 | #include <ac_nonexistent.h> | |
4211 | _ACEOF | |
81ecdfbb | 4212 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4213 | # Broken: success on invalid input. |
4214 | continue | |
4215 | else | |
7357c5b6 AM |
4216 | # Passes both tests. |
4217 | ac_preproc_ok=: | |
4218 | break | |
4219 | fi | |
d0ac1c44 | 4220 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4221 | |
7357c5b6 AM |
4222 | done |
4223 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4224 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb RW |
4225 | if $ac_preproc_ok; then : |
4226 | ||
7357c5b6 | 4227 | else |
81ecdfbb RW |
4228 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4229 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4230 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4231 | See \`config.log' for more details" "$LINENO" 5; } | |
7357c5b6 | 4232 | fi |
ac48eca1 | 4233 | |
7357c5b6 AM |
4234 | ac_ext=c |
4235 | ac_cpp='$CPP $CPPFLAGS' | |
4236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4239 | |
ac48eca1 | 4240 | |
81ecdfbb RW |
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4242 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 4243 | if ${ac_cv_path_GREP+:} false; then : |
81ecdfbb | 4244 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4245 | else |
81ecdfbb RW |
4246 | if test -z "$GREP"; then |
4247 | ac_path_GREP_found=false | |
4248 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4250 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4251 | do | |
4252 | IFS=$as_save_IFS | |
4253 | test -z "$as_dir" && as_dir=. | |
4254 | for ac_prog in grep ggrep; do | |
4255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4256 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4257 | as_fn_executable_p "$ac_path_GREP" || continue |
81ecdfbb RW |
4258 | # Check for GNU ac_path_GREP and select it if it is found. |
4259 | # Check for GNU $ac_path_GREP | |
4260 | case `"$ac_path_GREP" --version 2>&1` in | |
4261 | *GNU*) | |
4262 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4263 | *) | |
4264 | ac_count=0 | |
4265 | $as_echo_n 0123456789 >"conftest.in" | |
4266 | while : | |
4267 | do | |
4268 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4269 | mv "conftest.tmp" "conftest.in" | |
4270 | cp "conftest.in" "conftest.nl" | |
4271 | $as_echo 'GREP' >> "conftest.nl" | |
4272 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4273 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4274 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4275 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4276 | # Best one so far, save it but keep looking for a better one | |
4277 | ac_cv_path_GREP="$ac_path_GREP" | |
4278 | ac_path_GREP_max=$ac_count | |
7357c5b6 | 4279 | fi |
81ecdfbb RW |
4280 | # 10*(2^10) chars as input seems more than enough |
4281 | test $ac_count -gt 10 && break | |
4282 | done | |
4283 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4284 | esac | |
4285 | ||
4286 | $ac_path_GREP_found && break 3 | |
4287 | done | |
4288 | done | |
4289 | done | |
4290 | IFS=$as_save_IFS | |
4291 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 4292 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4293 | fi |
4294 | else | |
4295 | ac_cv_path_GREP=$GREP | |
7357c5b6 | 4296 | fi |
81ecdfbb RW |
4297 | |
4298 | fi | |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4300 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4301 | GREP="$ac_cv_path_GREP" | |
ac48eca1 | 4302 | |
d7040cdb | 4303 | |
81ecdfbb RW |
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4305 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 4306 | if ${ac_cv_path_EGREP+:} false; then : |
81ecdfbb | 4307 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4308 | else |
81ecdfbb RW |
4309 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4310 | then ac_cv_path_EGREP="$GREP -E" | |
4311 | else | |
4312 | if test -z "$EGREP"; then | |
4313 | ac_path_EGREP_found=false | |
4314 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4316 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4317 | do | |
4318 | IFS=$as_save_IFS | |
4319 | test -z "$as_dir" && as_dir=. | |
4320 | for ac_prog in egrep; do | |
4321 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4322 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4323 | as_fn_executable_p "$ac_path_EGREP" || continue |
81ecdfbb RW |
4324 | # Check for GNU ac_path_EGREP and select it if it is found. |
4325 | # Check for GNU $ac_path_EGREP | |
4326 | case `"$ac_path_EGREP" --version 2>&1` in | |
4327 | *GNU*) | |
4328 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4329 | *) | |
4330 | ac_count=0 | |
4331 | $as_echo_n 0123456789 >"conftest.in" | |
4332 | while : | |
4333 | do | |
4334 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4335 | mv "conftest.tmp" "conftest.in" | |
4336 | cp "conftest.in" "conftest.nl" | |
4337 | $as_echo 'EGREP' >> "conftest.nl" | |
4338 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4339 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4340 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4341 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4342 | # Best one so far, save it but keep looking for a better one | |
4343 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4344 | ac_path_EGREP_max=$ac_count | |
4345 | fi | |
4346 | # 10*(2^10) chars as input seems more than enough | |
4347 | test $ac_count -gt 10 && break | |
4348 | done | |
4349 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4350 | esac | |
4351 | ||
4352 | $ac_path_EGREP_found && break 3 | |
4353 | done | |
4354 | done | |
4355 | done | |
4356 | IFS=$as_save_IFS | |
4357 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 4358 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4359 | fi |
4360 | else | |
4361 | ac_cv_path_EGREP=$EGREP | |
4362 | fi | |
4363 | ||
4364 | fi | |
4365 | fi | |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4367 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4368 | EGREP="$ac_cv_path_EGREP" | |
4369 | ||
4370 | ||
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4372 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 4373 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb RW |
4374 | $as_echo_n "(cached) " >&6 |
4375 | else | |
4376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7357c5b6 AM |
4377 | /* end confdefs.h. */ |
4378 | #include <stdlib.h> | |
4379 | #include <stdarg.h> | |
4380 | #include <string.h> | |
4381 | #include <float.h> | |
d7040cdb | 4382 | |
7357c5b6 AM |
4383 | int |
4384 | main () | |
4385 | { | |
d7040cdb | 4386 | |
7357c5b6 AM |
4387 | ; |
4388 | return 0; | |
4389 | } | |
4390 | _ACEOF | |
81ecdfbb | 4391 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4392 | ac_cv_header_stdc=yes |
4393 | else | |
81ecdfbb | 4394 | ac_cv_header_stdc=no |
7357c5b6 | 4395 | fi |
81ecdfbb | 4396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4397 | |
7357c5b6 AM |
4398 | if test $ac_cv_header_stdc = yes; then |
4399 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4401 | /* end confdefs.h. */ |
4402 | #include <string.h> | |
d7040cdb | 4403 | |
7357c5b6 AM |
4404 | _ACEOF |
4405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4406 | $EGREP "memchr" >/dev/null 2>&1; then : |
4407 | ||
ce2cded5 | 4408 | else |
7357c5b6 AM |
4409 | ac_cv_header_stdc=no |
4410 | fi | |
4411 | rm -f conftest* | |
d7040cdb | 4412 | |
7357c5b6 | 4413 | fi |
d7040cdb | 4414 | |
7357c5b6 AM |
4415 | if test $ac_cv_header_stdc = yes; then |
4416 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4418 | /* end confdefs.h. */ |
4419 | #include <stdlib.h> | |
ac48eca1 | 4420 | |
7357c5b6 AM |
4421 | _ACEOF |
4422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4423 | $EGREP "free" >/dev/null 2>&1; then : |
4424 | ||
7357c5b6 AM |
4425 | else |
4426 | ac_cv_header_stdc=no | |
4427 | fi | |
4428 | rm -f conftest* | |
d7040cdb | 4429 | |
7357c5b6 | 4430 | fi |
d7040cdb | 4431 | |
7357c5b6 AM |
4432 | if test $ac_cv_header_stdc = yes; then |
4433 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4434 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4435 | : |
4436 | else | |
81ecdfbb | 4437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4438 | /* end confdefs.h. */ |
4439 | #include <ctype.h> | |
81ecdfbb | 4440 | #include <stdlib.h> |
7357c5b6 AM |
4441 | #if ((' ' & 0x0FF) == 0x020) |
4442 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4443 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4444 | #else | |
4445 | # define ISLOWER(c) \ | |
4446 | (('a' <= (c) && (c) <= 'i') \ | |
4447 | || ('j' <= (c) && (c) <= 'r') \ | |
4448 | || ('s' <= (c) && (c) <= 'z')) | |
4449 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4450 | #endif | |
d7040cdb | 4451 | |
7357c5b6 AM |
4452 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4453 | int | |
4454 | main () | |
4455 | { | |
4456 | int i; | |
4457 | for (i = 0; i < 256; i++) | |
4458 | if (XOR (islower (i), ISLOWER (i)) | |
4459 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4460 | return 2; |
4461 | return 0; | |
7357c5b6 AM |
4462 | } |
4463 | _ACEOF | |
81ecdfbb | 4464 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4465 | |
81ecdfbb RW |
4466 | else |
4467 | ac_cv_header_stdc=no | |
7357c5b6 | 4468 | fi |
81ecdfbb RW |
4469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4470 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4471 | fi |
81ecdfbb | 4472 | |
7357c5b6 AM |
4473 | fi |
4474 | fi | |
81ecdfbb RW |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4476 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4477 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4478 | |
81ecdfbb | 4479 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4480 | |
7357c5b6 | 4481 | fi |
d7040cdb | 4482 | |
7357c5b6 | 4483 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4484 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4485 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4486 | do : |
4487 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4488 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4489 | " | |
d0ac1c44 | 4490 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7357c5b6 | 4491 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4492 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4493 | _ACEOF |
ce2cded5 | 4494 | |
7357c5b6 | 4495 | fi |
ce2cded5 | 4496 | |
7357c5b6 | 4497 | done |
ce2cded5 L |
4498 | |
4499 | ||
4500 | ||
81ecdfbb | 4501 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
d0ac1c44 | 4502 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7357c5b6 AM |
4503 | MINIX=yes |
4504 | else | |
4505 | MINIX= | |
4506 | fi | |
d7040cdb SE |
4507 | |
4508 | ||
7357c5b6 | 4509 | if test "$MINIX" = yes; then |
d7040cdb | 4510 | |
81ecdfbb | 4511 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb SE |
4512 | |
4513 | ||
81ecdfbb | 4514 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4515 | |
4516 | ||
81ecdfbb | 4517 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4518 | |
7357c5b6 | 4519 | fi |
d7040cdb SE |
4520 | |
4521 | ||
81ecdfbb RW |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4523 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 4524 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
81ecdfbb | 4525 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 4526 | else |
81ecdfbb | 4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4528 | /* end confdefs.h. */ |
ac48eca1 | 4529 | |
d0ac1c44 SM |
4530 | # define __EXTENSIONS__ 1 |
4531 | $ac_includes_default | |
7357c5b6 AM |
4532 | int |
4533 | main () | |
4534 | { | |
13b2be9c | 4535 | |
7357c5b6 AM |
4536 | ; |
4537 | return 0; | |
4538 | } | |
4539 | _ACEOF | |
81ecdfbb | 4540 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 | 4541 | ac_cv_safe_to_define___extensions__=yes |
d6d788bd | 4542 | else |
81ecdfbb | 4543 | ac_cv_safe_to_define___extensions__=no |
d6d788bd | 4544 | fi |
81ecdfbb | 4545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 4546 | fi |
81ecdfbb RW |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4548 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 4549 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4550 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
d6d788bd | 4551 | |
81ecdfbb | 4552 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d6d788bd | 4553 | |
81ecdfbb | 4554 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
252b5132 | 4555 | |
81ecdfbb | 4556 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
252b5132 | 4557 | |
81ecdfbb | 4558 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
d6d788bd | 4559 | |
a74801ba | 4560 | |
d053aef8 | 4561 | |
81ecdfbb | 4562 | |
da2f07f1 | 4563 | |
718a6fd8 SE |
4564 | case `pwd` in |
4565 | *\ * | *\ *) | |
81ecdfbb RW |
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4567 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
718a6fd8 | 4568 | esac |
13b2be9c | 4569 | |
252b5132 | 4570 | |
7357c5b6 | 4571 | |
f2c621e4 AS |
4572 | macro_version='2.2.7a' |
4573 | macro_revision='1.3134' | |
7357c5b6 AM |
4574 | |
4575 | ||
4576 | ||
4577 | ||
4578 | ||
4579 | ||
7357c5b6 AM |
4580 | |
4581 | ||
4582 | ||
4583 | ||
4584 | ||
4585 | ||
4586 | ||
718a6fd8 | 4587 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 4588 | |
3725885a RW |
4589 | # Backslashify metacharacters that are still active within |
4590 | # double-quoted strings. | |
4591 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4592 | ||
4593 | # Same as above, but do not quote variable references. | |
4594 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4595 | ||
4596 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4597 | # double_quote_subst'ed string. | |
4598 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4599 | ||
4600 | # Sed substitution to delay expansion of an escaped single quote. | |
4601 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4602 | ||
4603 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4604 | no_glob_subst='s/\*/\\\*/g' | |
4605 | ||
4606 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4607 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4608 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4609 | ||
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4611 | $as_echo_n "checking how to print strings... " >&6; } | |
4612 | # Test print first, because it will be a builtin if present. | |
f2c621e4 | 4613 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ |
3725885a RW |
4614 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4615 | ECHO='print -r --' | |
4616 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4617 | ECHO='printf %s\n' | |
4618 | else | |
4619 | # Use this function as a fallback that always works. | |
4620 | func_fallback_echo () | |
4621 | { | |
4622 | eval 'cat <<_LTECHO_EOF | |
4623 | $1 | |
4624 | _LTECHO_EOF' | |
4625 | } | |
4626 | ECHO='func_fallback_echo' | |
4627 | fi | |
4628 | ||
4629 | # func_echo_all arg... | |
4630 | # Invoke $ECHO with all args, space-separated. | |
4631 | func_echo_all () | |
4632 | { | |
4633 | $ECHO "" | |
4634 | } | |
4635 | ||
4636 | case "$ECHO" in | |
4637 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4638 | $as_echo "printf" >&6; } ;; | |
4639 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4640 | $as_echo "print -r" >&6; } ;; | |
4641 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4642 | $as_echo "cat" >&6; } ;; | |
4643 | esac | |
4644 | ||
4645 | ||
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | ||
4651 | ||
4652 | ||
4653 | ||
4654 | ||
4655 | ||
4656 | ||
4657 | ||
81ecdfbb RW |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4659 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 4660 | if ${ac_cv_path_SED+:} false; then : |
81ecdfbb RW |
4661 | $as_echo_n "(cached) " >&6 |
4662 | else | |
4663 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4664 | for ac_i in 1 2 3 4 5 6 7; do | |
4665 | ac_script="$ac_script$as_nl$ac_script" | |
4666 | done | |
4667 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4668 | { ac_script=; unset ac_script;} | |
4669 | if test -z "$SED"; then | |
4670 | ac_path_SED_found=false | |
4671 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
4673 | for as_dir in $PATH |
4674 | do | |
4675 | IFS=$as_save_IFS | |
4676 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4677 | for ac_prog in sed gsed; do |
7357c5b6 | 4678 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb | 4679 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
d0ac1c44 | 4680 | as_fn_executable_p "$ac_path_SED" || continue |
81ecdfbb RW |
4681 | # Check for GNU ac_path_SED and select it if it is found. |
4682 | # Check for GNU $ac_path_SED | |
4683 | case `"$ac_path_SED" --version 2>&1` in | |
4684 | *GNU*) | |
4685 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4686 | *) | |
4687 | ac_count=0 | |
4688 | $as_echo_n 0123456789 >"conftest.in" | |
4689 | while : | |
4690 | do | |
4691 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4692 | mv "conftest.tmp" "conftest.in" | |
4693 | cp "conftest.in" "conftest.nl" | |
4694 | $as_echo '' >> "conftest.nl" | |
4695 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4696 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4697 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4698 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4699 | # Best one so far, save it but keep looking for a better one | |
4700 | ac_cv_path_SED="$ac_path_SED" | |
4701 | ac_path_SED_max=$ac_count | |
4702 | fi | |
4703 | # 10*(2^10) chars as input seems more than enough | |
4704 | test $ac_count -gt 10 && break | |
4705 | done | |
4706 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4707 | esac | |
4708 | ||
4709 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
4710 | done |
4711 | done | |
81ecdfbb | 4712 | done |
7357c5b6 | 4713 | IFS=$as_save_IFS |
81ecdfbb | 4714 | if test -z "$ac_cv_path_SED"; then |
d0ac1c44 | 4715 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
7357c5b6 | 4716 | fi |
81ecdfbb RW |
4717 | else |
4718 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
4719 | fi |
4720 | ||
81ecdfbb RW |
4721 | fi |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4723 | $as_echo "$ac_cv_path_SED" >&6; } | |
4724 | SED="$ac_cv_path_SED" | |
4725 | rm -f conftest.sed | |
7357c5b6 AM |
4726 | |
4727 | test -z "$SED" && SED=sed | |
4728 | Xsed="$SED -e 1s/^X//" | |
4729 | ||
4730 | ||
4731 | ||
4732 | ||
4733 | ||
4734 | ||
4735 | ||
4736 | ||
4737 | ||
4738 | ||
4739 | ||
81ecdfbb RW |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4741 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 4742 | if ${ac_cv_path_FGREP+:} false; then : |
81ecdfbb | 4743 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4744 | else |
81ecdfbb RW |
4745 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4746 | then ac_cv_path_FGREP="$GREP -F" | |
4747 | else | |
4748 | if test -z "$FGREP"; then | |
4749 | ac_path_FGREP_found=false | |
4750 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4752 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4753 | do | |
4754 | IFS=$as_save_IFS | |
4755 | test -z "$as_dir" && as_dir=. | |
4756 | for ac_prog in fgrep; do | |
4757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4758 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4759 | as_fn_executable_p "$ac_path_FGREP" || continue |
81ecdfbb RW |
4760 | # Check for GNU ac_path_FGREP and select it if it is found. |
4761 | # Check for GNU $ac_path_FGREP | |
4762 | case `"$ac_path_FGREP" --version 2>&1` in | |
4763 | *GNU*) | |
4764 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4765 | *) | |
4766 | ac_count=0 | |
4767 | $as_echo_n 0123456789 >"conftest.in" | |
4768 | while : | |
4769 | do | |
4770 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4771 | mv "conftest.tmp" "conftest.in" | |
4772 | cp "conftest.in" "conftest.nl" | |
4773 | $as_echo 'FGREP' >> "conftest.nl" | |
4774 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4775 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4776 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4777 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4778 | # Best one so far, save it but keep looking for a better one | |
4779 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4780 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 4781 | fi |
81ecdfbb RW |
4782 | # 10*(2^10) chars as input seems more than enough |
4783 | test $ac_count -gt 10 && break | |
4784 | done | |
4785 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4786 | esac | |
4787 | ||
4788 | $ac_path_FGREP_found && break 3 | |
4789 | done | |
4790 | done | |
4791 | done | |
4792 | IFS=$as_save_IFS | |
4793 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 4794 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4795 | fi |
4796 | else | |
4797 | ac_cv_path_FGREP=$FGREP | |
7357c5b6 | 4798 | fi |
81ecdfbb RW |
4799 | |
4800 | fi | |
4801 | fi | |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4803 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4804 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
4805 | |
4806 | ||
4807 | test -z "$GREP" && GREP=grep | |
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | ||
4818 | ||
4819 | ||
4820 | ||
4821 | ||
4822 | ||
4823 | ||
4824 | ||
4825 | ||
4826 | ||
81ecdfbb RW |
4827 | # Check whether --with-gnu-ld was given. |
4828 | if test "${with_gnu_ld+set}" = set; then : | |
4829 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
4830 | else |
4831 | with_gnu_ld=no | |
81ecdfbb RW |
4832 | fi |
4833 | ||
ce2cded5 L |
4834 | ac_prog=ld |
4835 | if test "$GCC" = yes; then | |
4836 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4838 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
ce2cded5 L |
4839 | case $host in |
4840 | *-*-mingw*) | |
4841 | # gcc leaves a trailing carriage return which upsets mingw | |
4842 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4843 | *) | |
4844 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4845 | esac | |
4846 | case $ac_prog in | |
4847 | # Accept absolute paths. | |
4848 | [\\/]* | ?:[\\/]*) | |
4849 | re_direlt='/[^/][^/]*/\.\./' | |
4850 | # Canonicalize the pathname of ld | |
4851 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4852 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4853 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4854 | done | |
4855 | test -z "$LD" && LD="$ac_prog" | |
4856 | ;; | |
4857 | "") | |
4858 | # If it fails, then pretend we aren't using GCC. | |
4859 | ac_prog=ld | |
4860 | ;; | |
4861 | *) | |
4862 | # If it is relative, then search for the first ld in PATH. | |
4863 | with_gnu_ld=unknown | |
4864 | ;; | |
4865 | esac | |
4866 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4868 | $as_echo_n "checking for GNU ld... " >&6; } | |
ce2cded5 | 4869 | else |
81ecdfbb RW |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4871 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 4872 | fi |
d0ac1c44 | 4873 | if ${lt_cv_path_LD+:} false; then : |
81ecdfbb | 4874 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
4875 | else |
4876 | if test -z "$LD"; then | |
4877 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4878 | for ac_dir in $PATH; do | |
4879 | IFS="$lt_save_ifs" | |
4880 | test -z "$ac_dir" && ac_dir=. | |
4881 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4882 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4883 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4884 | # but apparently some variants of GNU ld only accept -v. | |
4885 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4886 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4887 | *GNU* | *'with BFD'*) | |
4888 | test "$with_gnu_ld" != no && break | |
4889 | ;; | |
4890 | *) | |
4891 | test "$with_gnu_ld" != yes && break | |
4892 | ;; | |
4893 | esac | |
4894 | fi | |
4895 | done | |
4896 | IFS="$lt_save_ifs" | |
4897 | else | |
4898 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4899 | fi | |
4900 | fi | |
4901 | ||
4902 | LD="$lt_cv_path_LD" | |
4903 | if test -n "$LD"; then | |
81ecdfbb RW |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4905 | $as_echo "$LD" >&6; } | |
ce2cded5 | 4906 | else |
81ecdfbb RW |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4908 | $as_echo "no" >&6; } | |
ce2cded5 | 4909 | fi |
d0ac1c44 | 4910 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
81ecdfbb RW |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4912 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 4913 | if ${lt_cv_prog_gnu_ld+:} false; then : |
81ecdfbb | 4914 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
4915 | else |
4916 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4917 | case `$LD -v 2>&1 </dev/null` in | |
4918 | *GNU* | *'with BFD'*) | |
4919 | lt_cv_prog_gnu_ld=yes | |
4920 | ;; | |
4921 | *) | |
4922 | lt_cv_prog_gnu_ld=no | |
4923 | ;; | |
4924 | esac | |
4925 | fi | |
81ecdfbb RW |
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4927 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
ce2cded5 L |
4928 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4929 | ||
4930 | ||
4931 | ||
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
81ecdfbb RW |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4939 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 4940 | if ${lt_cv_path_NM+:} false; then : |
81ecdfbb | 4941 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
4942 | else |
4943 | if test -n "$NM"; then | |
4944 | # Let the user override the test. | |
4945 | lt_cv_path_NM="$NM" | |
4946 | else | |
4947 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4948 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4949 | lt_nm_to_check="$lt_nm_to_check nm" | |
4950 | fi | |
4951 | for lt_tmp_nm in $lt_nm_to_check; do | |
4952 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4953 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4954 | IFS="$lt_save_ifs" | |
4955 | test -z "$ac_dir" && ac_dir=. | |
4956 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4957 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4958 | # Check to see if the nm accepts a BSD-compat flag. | |
4959 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4960 | # nm: unknown option "B" ignored | |
4961 | # Tru64's nm complains that /dev/null is an invalid object file | |
4962 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4963 | */dev/null* | *'Invalid file or object type'*) | |
4964 | lt_cv_path_NM="$tmp_nm -B" | |
4965 | break | |
4966 | ;; | |
4967 | *) | |
4968 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4969 | */dev/null*) | |
4970 | lt_cv_path_NM="$tmp_nm -p" | |
4971 | break | |
4972 | ;; | |
4973 | *) | |
4974 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4975 | continue # so that we can try to find one that supports BSD flags | |
4976 | ;; | |
4977 | esac | |
4978 | ;; | |
4979 | esac | |
4980 | fi | |
4981 | done | |
4982 | IFS="$lt_save_ifs" | |
4983 | done | |
4984 | : ${lt_cv_path_NM=no} | |
4985 | fi | |
4986 | fi | |
81ecdfbb RW |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
4988 | $as_echo "$lt_cv_path_NM" >&6; } | |
ce2cded5 L |
4989 | if test "$lt_cv_path_NM" != "no"; then |
4990 | NM="$lt_cv_path_NM" | |
4991 | else | |
4992 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3725885a RW |
4993 | if test -n "$DUMPBIN"; then : |
4994 | # Let the user override the test. | |
4995 | else | |
4996 | if test -n "$ac_tool_prefix"; then | |
4997 | for ac_prog in dumpbin "link -dump" | |
ce2cded5 L |
4998 | do |
4999 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5000 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5002 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5003 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
81ecdfbb | 5004 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5005 | else |
ce2cded5 L |
5006 | if test -n "$DUMPBIN"; then |
5007 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5008 | else |
5009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5010 | for as_dir in $PATH | |
5011 | do | |
5012 | IFS=$as_save_IFS | |
5013 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5014 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5016 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5018 | break 2 |
d70c5fc7 | 5019 | fi |
d7040cdb | 5020 | done |
81ecdfbb RW |
5021 | done |
5022 | IFS=$as_save_IFS | |
d70c5fc7 | 5023 | |
d7040cdb SE |
5024 | fi |
5025 | fi | |
ce2cded5 L |
5026 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5027 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5029 | $as_echo "$DUMPBIN" >&6; } | |
bedf545c | 5030 | else |
81ecdfbb RW |
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5032 | $as_echo "no" >&6; } | |
d7040cdb | 5033 | fi |
13b2be9c | 5034 | |
81ecdfbb | 5035 | |
ce2cded5 L |
5036 | test -n "$DUMPBIN" && break |
5037 | done | |
5038 | fi | |
5039 | if test -z "$DUMPBIN"; then | |
5040 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 5041 | for ac_prog in dumpbin "link -dump" |
ce2cded5 L |
5042 | do |
5043 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5044 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5046 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5047 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
81ecdfbb | 5048 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5049 | else |
ce2cded5 L |
5050 | if test -n "$ac_ct_DUMPBIN"; then |
5051 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5052 | else | |
5053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5054 | for as_dir in $PATH | |
5055 | do | |
5056 | IFS=$as_save_IFS | |
5057 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5058 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5060 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5062 | break 2 |
5063 | fi | |
5064 | done | |
81ecdfbb RW |
5065 | done |
5066 | IFS=$as_save_IFS | |
ce2cded5 L |
5067 | |
5068 | fi | |
5069 | fi | |
5070 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5071 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5073 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 5074 | else |
81ecdfbb RW |
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5076 | $as_echo "no" >&6; } | |
d7040cdb SE |
5077 | fi |
5078 | ||
81ecdfbb | 5079 | |
ce2cded5 L |
5080 | test -n "$ac_ct_DUMPBIN" && break |
5081 | done | |
13b2be9c | 5082 | |
81ecdfbb RW |
5083 | if test "x$ac_ct_DUMPBIN" = x; then |
5084 | DUMPBIN=":" | |
5085 | else | |
5086 | case $cross_compiling:$ac_tool_warned in | |
5087 | yes:) | |
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5089 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5090 | ac_tool_warned=yes ;; | |
5091 | esac | |
5092 | DUMPBIN=$ac_ct_DUMPBIN | |
5093 | fi | |
ce2cded5 | 5094 | fi |
13b2be9c | 5095 | |
3725885a RW |
5096 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5097 | *COFF*) | |
5098 | DUMPBIN="$DUMPBIN -symbols" | |
5099 | ;; | |
5100 | *) | |
5101 | DUMPBIN=: | |
5102 | ;; | |
5103 | esac | |
5104 | fi | |
bedf545c | 5105 | |
ce2cded5 L |
5106 | if test "$DUMPBIN" != ":"; then |
5107 | NM="$DUMPBIN" | |
5108 | fi | |
5109 | fi | |
5110 | test -z "$NM" && NM=nm | |
6840198f | 5111 | |
13b2be9c | 5112 | |
ac48eca1 | 5113 | |
d7040cdb | 5114 | |
ce2cded5 L |
5115 | |
5116 | ||
81ecdfbb RW |
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5118 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 5119 | if ${lt_cv_nm_interface+:} false; then : |
81ecdfbb | 5120 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5121 | else |
5122 | lt_cv_nm_interface="BSD nm" | |
5123 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 5124 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
ce2cded5 L |
5125 | (eval "$ac_compile" 2>conftest.err) |
5126 | cat conftest.err >&5 | |
3725885a | 5127 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
ce2cded5 L |
5128 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5129 | cat conftest.err >&5 | |
3725885a | 5130 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
ce2cded5 L |
5131 | cat conftest.out >&5 |
5132 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5133 | lt_cv_nm_interface="MS dumpbin" | |
5134 | fi | |
5135 | rm -f conftest* | |
5136 | fi | |
81ecdfbb RW |
5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5138 | $as_echo "$lt_cv_nm_interface" >&6; } | |
ce2cded5 | 5139 | |
81ecdfbb RW |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5141 | $as_echo_n "checking whether ln -s works... " >&6; } | |
ce2cded5 L |
5142 | LN_S=$as_ln_s |
5143 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5145 | $as_echo "yes" >&6; } | |
ce2cded5 | 5146 | else |
81ecdfbb RW |
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5148 | $as_echo "no, using $LN_S" >&6; } | |
ce2cded5 L |
5149 | fi |
5150 | ||
5151 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5153 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 5154 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
81ecdfbb | 5155 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5156 | else |
5157 | i=0 | |
5158 | teststring="ABCD" | |
5159 | ||
5160 | case $build_os in | |
5161 | msdosdjgpp*) | |
5162 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5163 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5164 | # during glob expansion). Even if it were fixed, the result of this | |
5165 | # check would be larger than it should be. | |
5166 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5167 | ;; | |
5168 | ||
5169 | gnu*) | |
5170 | # Under GNU Hurd, this test is not required because there is | |
5171 | # no limit to the length of command line arguments. | |
5172 | # Libtool will interpret -1 as no limit whatsoever | |
5173 | lt_cv_sys_max_cmd_len=-1; | |
5174 | ;; | |
5175 | ||
718a6fd8 | 5176 | cygwin* | mingw* | cegcc*) |
ce2cded5 L |
5177 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5178 | # about 5 minutes as the teststring grows exponentially. | |
5179 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5180 | # you end up with a "frozen" computer, even though with patience | |
5181 | # the test eventually succeeds (with a max line length of 256k). | |
5182 | # Instead, let's just punt: use the minimum linelength reported by | |
5183 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5184 | lt_cv_sys_max_cmd_len=8192; | |
5185 | ;; | |
5186 | ||
3725885a RW |
5187 | mint*) |
5188 | # On MiNT this can take a long time and run out of memory. | |
5189 | lt_cv_sys_max_cmd_len=8192; | |
5190 | ;; | |
5191 | ||
ce2cded5 L |
5192 | amigaos*) |
5193 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5194 | # So we just punt and use a minimum line length of 8192. | |
5195 | lt_cv_sys_max_cmd_len=8192; | |
5196 | ;; | |
5197 | ||
5198 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5199 | # This has been around since 386BSD, at least. Likely further. | |
5200 | if test -x /sbin/sysctl; then | |
5201 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5202 | elif test -x /usr/sbin/sysctl; then | |
5203 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5204 | else | |
5205 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5206 | fi | |
5207 | # And add a safety zone | |
5208 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5209 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5210 | ;; | |
5211 | ||
5212 | interix*) | |
5213 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5214 | lt_cv_sys_max_cmd_len=196608 | |
5215 | ;; | |
5216 | ||
5217 | osf*) | |
5218 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5219 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5220 | # nice to cause kernel panics so lets avoid the loop below. | |
5221 | # First set a reasonable default. | |
5222 | lt_cv_sys_max_cmd_len=16384 | |
5223 | # | |
5224 | if test -x /sbin/sysconfig; then | |
5225 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5226 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5227 | esac | |
5228 | fi | |
5229 | ;; | |
5230 | sco3.2v5*) | |
5231 | lt_cv_sys_max_cmd_len=102400 | |
5232 | ;; | |
5233 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5234 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5235 | if test -n "$kargmax"; then | |
5236 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5237 | else | |
5238 | lt_cv_sys_max_cmd_len=32768 | |
5239 | fi | |
d7040cdb SE |
5240 | ;; |
5241 | *) | |
718a6fd8 SE |
5242 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5243 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
ce2cded5 L |
5244 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5245 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5246 | else | |
5247 | # Make teststring a little bigger before we do anything with it. | |
5248 | # a 1K string should be a reasonable start. | |
5249 | for i in 1 2 3 4 5 6 7 8 ; do | |
5250 | teststring=$teststring$teststring | |
5251 | done | |
5252 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5253 | # If test is not a shell built-in, we'll probably end up computing a | |
5254 | # maximum length that is only half of the actual maximum length, but | |
5255 | # we can't tell. | |
3725885a RW |
5256 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5257 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
ce2cded5 L |
5258 | test $i != 17 # 1/2 MB should be enough |
5259 | do | |
5260 | i=`expr $i + 1` | |
5261 | teststring=$teststring$teststring | |
5262 | done | |
5263 | # Only check the string length outside the loop. | |
5264 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5265 | teststring= | |
5266 | # Add a significant safety factor because C++ compilers can tack on | |
5267 | # massive amounts of additional arguments before passing them to the | |
5268 | # linker. It appears as though 1/2 is a usable value. | |
5269 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5270 | fi | |
d7040cdb SE |
5271 | ;; |
5272 | esac | |
252b5132 | 5273 | |
ce2cded5 | 5274 | fi |
d6d788bd | 5275 | |
ce2cded5 | 5276 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5278 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
ce2cded5 | 5279 | else |
81ecdfbb RW |
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5281 | $as_echo "none" >&6; } | |
ce2cded5 L |
5282 | fi |
5283 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5284 | |
d6d788bd | 5285 | |
13b2be9c | 5286 | |
13b2be9c | 5287 | |
bedf545c | 5288 | |
252b5132 | 5289 | |
ce2cded5 L |
5290 | : ${CP="cp -f"} |
5291 | : ${MV="mv -f"} | |
5292 | : ${RM="rm -f"} | |
d6d788bd | 5293 | |
81ecdfbb RW |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5295 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
ce2cded5 L |
5296 | # Try some XSI features |
5297 | xsi_shell=no | |
5298 | ( _lt_dummy="a/b/c" | |
f2c621e4 AS |
5299 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
5300 | = c,a/b,, \ | |
718a6fd8 SE |
5301 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
5302 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
ce2cded5 | 5303 | && xsi_shell=yes |
81ecdfbb RW |
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5305 | $as_echo "$xsi_shell" >&6; } | |
bedf545c | 5306 | |
bedf545c | 5307 | |
81ecdfbb RW |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5309 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
ce2cded5 L |
5310 | lt_shell_append=no |
5311 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5312 | >/dev/null 2>&1 \ | |
5313 | && lt_shell_append=yes | |
81ecdfbb RW |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5315 | $as_echo "$lt_shell_append" >&6; } | |
252b5132 | 5316 | |
d6d788bd | 5317 | |
ce2cded5 L |
5318 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5319 | lt_unset=unset | |
5320 | else | |
5321 | lt_unset=false | |
5322 | fi | |
13b2be9c DJ |
5323 | |
5324 | ||
5325 | ||
5326 | ||
d6d788bd | 5327 | |
ce2cded5 L |
5328 | # test EBCDIC or ASCII |
5329 | case `echo X|tr X '\101'` in | |
5330 | A) # ASCII based system | |
5331 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5332 | lt_SP2NL='tr \040 \012' | |
5333 | lt_NL2SP='tr \015\012 \040\040' | |
5334 | ;; | |
5335 | *) # EBCDIC based system | |
5336 | lt_SP2NL='tr \100 \n' | |
5337 | lt_NL2SP='tr \r\n \100\100' | |
5338 | ;; | |
5339 | esac | |
c43a438d | 5340 | |
c43a438d | 5341 | |
c43a438d | 5342 | |
252b5132 | 5343 | |
ad22bfe8 | 5344 | |
1ad12f97 | 5345 | |
1ad12f97 | 5346 | |
9e9b66a9 | 5347 | |
1ad12f97 | 5348 | |
81ecdfbb RW |
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5350 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 5351 | if ${lt_cv_ld_reload_flag+:} false; then : |
81ecdfbb | 5352 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5353 | else |
5354 | lt_cv_ld_reload_flag='-r' | |
5355 | fi | |
81ecdfbb RW |
5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5357 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
ce2cded5 L |
5358 | reload_flag=$lt_cv_ld_reload_flag |
5359 | case $reload_flag in | |
5360 | "" | " "*) ;; | |
5361 | *) reload_flag=" $reload_flag" ;; | |
5362 | esac | |
5363 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5364 | case $host_os in | |
5365 | darwin*) | |
5366 | if test "$GCC" = yes; then | |
5367 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5368 | else | |
5369 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5370 | fi | |
5371 | ;; | |
5372 | esac | |
a541e3ce | 5373 | |
9e9b66a9 | 5374 | |
a2d91340 | 5375 | |
d6d788bd | 5376 | |
9e9b66a9 AM |
5377 | |
5378 | ||
5379 | ||
d6d788bd | 5380 | |
252b5132 | 5381 | |
718a6fd8 SE |
5382 | if test -n "$ac_tool_prefix"; then |
5383 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5384 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5386 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5387 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 5388 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
5389 | else |
5390 | if test -n "$OBJDUMP"; then | |
5391 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5392 | else | |
5393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5394 | for as_dir in $PATH | |
5395 | do | |
5396 | IFS=$as_save_IFS | |
5397 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5398 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5399 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 5400 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5402 | break 2 |
5403 | fi | |
5404 | done | |
81ecdfbb RW |
5405 | done |
5406 | IFS=$as_save_IFS | |
718a6fd8 SE |
5407 | |
5408 | fi | |
5409 | fi | |
5410 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5411 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5413 | $as_echo "$OBJDUMP" >&6; } | |
718a6fd8 | 5414 | else |
81ecdfbb RW |
5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5416 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5417 | fi |
5418 | ||
81ecdfbb | 5419 | |
718a6fd8 SE |
5420 | fi |
5421 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5422 | ac_ct_OBJDUMP=$OBJDUMP | |
5423 | # Extract the first word of "objdump", so it can be a program name with args. | |
5424 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5426 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5427 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
81ecdfbb | 5428 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
5429 | else |
5430 | if test -n "$ac_ct_OBJDUMP"; then | |
5431 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5432 | else | |
5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5434 | for as_dir in $PATH | |
5435 | do | |
5436 | IFS=$as_save_IFS | |
5437 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5438 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5439 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 5440 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5442 | break 2 |
5443 | fi | |
5444 | done | |
81ecdfbb RW |
5445 | done |
5446 | IFS=$as_save_IFS | |
718a6fd8 | 5447 | |
718a6fd8 SE |
5448 | fi |
5449 | fi | |
5450 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5451 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5453 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
718a6fd8 | 5454 | else |
81ecdfbb RW |
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5456 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5457 | fi |
5458 | ||
81ecdfbb RW |
5459 | if test "x$ac_ct_OBJDUMP" = x; then |
5460 | OBJDUMP="false" | |
5461 | else | |
5462 | case $cross_compiling:$ac_tool_warned in | |
5463 | yes:) | |
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5465 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5466 | ac_tool_warned=yes ;; | |
5467 | esac | |
5468 | OBJDUMP=$ac_ct_OBJDUMP | |
5469 | fi | |
718a6fd8 SE |
5470 | else |
5471 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5472 | fi | |
5473 | ||
5474 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | ||
5481 | ||
5482 | ||
13b2be9c | 5483 | |
81ecdfbb RW |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5485 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 5486 | if ${lt_cv_deplibs_check_method+:} false; then : |
81ecdfbb | 5487 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5488 | else |
ce2cded5 L |
5489 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5490 | lt_cv_file_magic_test_file= | |
5491 | lt_cv_deplibs_check_method='unknown' | |
5492 | # Need to set the preceding variable on all platforms that support | |
5493 | # interlibrary dependencies. | |
5494 | # 'none' -- dependencies not supported. | |
5495 | # `unknown' -- same as none, but documents that we really don't know. | |
5496 | # 'pass_all' -- all dependencies passed with no checks. | |
5497 | # 'test_compile' -- check by making test program. | |
5498 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5499 | # which responds to the $file_magic_cmd with a given extended regex. | |
5500 | # If you have `file' or equivalent on your system and you're not sure | |
5501 | # whether `pass_all' will *always* work, you probably want this one. | |
13b2be9c | 5502 | |
ce2cded5 | 5503 | case $host_os in |
50e7d84b | 5504 | aix[4-9]*) |
ce2cded5 L |
5505 | lt_cv_deplibs_check_method=pass_all |
5506 | ;; | |
d7040cdb | 5507 | |
ce2cded5 L |
5508 | beos*) |
5509 | lt_cv_deplibs_check_method=pass_all | |
5510 | ;; | |
d7040cdb | 5511 | |
ce2cded5 L |
5512 | bsdi[45]*) |
5513 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5514 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5515 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5516 | ;; | |
d7040cdb | 5517 | |
ce2cded5 L |
5518 | cygwin*) |
5519 | # func_win32_libid is a shell function defined in ltmain.sh | |
5520 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5521 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 5522 | ;; |
ce2cded5 L |
5523 | |
5524 | mingw* | pw32*) | |
5525 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5526 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5527 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
5528 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5529 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
ce2cded5 L |
5530 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5531 | lt_cv_file_magic_cmd='func_win32_libid' | |
5532 | else | |
f2c621e4 | 5533 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
ce2cded5 L |
5534 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5535 | fi | |
d7040cdb | 5536 | ;; |
ce2cded5 | 5537 | |
3725885a | 5538 | cegcc*) |
718a6fd8 SE |
5539 | # use the weaker test based on 'objdump'. See mingw*. |
5540 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5541 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5542 | ;; | |
5543 | ||
ce2cded5 L |
5544 | darwin* | rhapsody*) |
5545 | lt_cv_deplibs_check_method=pass_all | |
5546 | ;; | |
5547 | ||
5548 | freebsd* | dragonfly*) | |
5549 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5550 | case $host_cpu in | |
5551 | i*86 ) | |
5552 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5553 | # Let's accept both of them until this is cleared up. | |
5554 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5555 | lt_cv_file_magic_cmd=/usr/bin/file | |
5556 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5557 | ;; | |
5558 | esac | |
5559 | else | |
5560 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
5561 | fi |
5562 | ;; | |
ce2cded5 L |
5563 | |
5564 | gnu*) | |
5565 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5566 | ;; |
ce2cded5 | 5567 | |
3725885a RW |
5568 | haiku*) |
5569 | lt_cv_deplibs_check_method=pass_all | |
5570 | ;; | |
5571 | ||
ce2cded5 L |
5572 | hpux10.20* | hpux11*) |
5573 | lt_cv_file_magic_cmd=/usr/bin/file | |
5574 | case $host_cpu in | |
5575 | ia64*) | |
5576 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5577 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5578 | ;; | |
5579 | hppa*64*) | |
3725885a | 5580 | 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]' |
ce2cded5 L |
5581 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5582 | ;; | |
5583 | *) | |
3725885a | 5584 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
ce2cded5 L |
5585 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5586 | ;; | |
5587 | esac | |
d7040cdb | 5588 | ;; |
ce2cded5 L |
5589 | |
5590 | interix[3-9]*) | |
5591 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5592 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
d7040cdb | 5593 | ;; |
ce2cded5 L |
5594 | |
5595 | irix5* | irix6* | nonstopux*) | |
5596 | case $LD in | |
5597 | *-32|*"-32 ") libmagic=32-bit;; | |
5598 | *-n32|*"-n32 ") libmagic=N32;; | |
5599 | *-64|*"-64 ") libmagic=64-bit;; | |
5600 | *) libmagic=never-match;; | |
5601 | esac | |
5602 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5603 | ;; |
ce2cded5 L |
5604 | |
5605 | # This must be Linux ELF. | |
58e24671 | 5606 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 5607 | lt_cv_deplibs_check_method=pass_all |
d7040cdb | 5608 | ;; |
ce2cded5 L |
5609 | |
5610 | netbsd*) | |
5611 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5612 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5613 | else | |
5614 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5615 | fi | |
d7040cdb | 5616 | ;; |
ce2cded5 L |
5617 | |
5618 | newos6*) | |
5619 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5620 | lt_cv_file_magic_cmd=/usr/bin/file | |
5621 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
d7040cdb | 5622 | ;; |
76a27922 | 5623 | |
ce2cded5 L |
5624 | *nto* | *qnx*) |
5625 | lt_cv_deplibs_check_method=pass_all | |
5626 | ;; | |
d6d788bd | 5627 | |
ce2cded5 L |
5628 | openbsd*) |
5629 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5630 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5631 | else | |
5632 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5633 | fi | |
5634 | ;; | |
44f2f9d2 | 5635 | |
ce2cded5 L |
5636 | osf3* | osf4* | osf5*) |
5637 | lt_cv_deplibs_check_method=pass_all | |
5638 | ;; | |
44f2f9d2 | 5639 | |
ce2cded5 L |
5640 | rdos*) |
5641 | lt_cv_deplibs_check_method=pass_all | |
5642 | ;; | |
5643 | ||
5644 | solaris*) | |
5645 | lt_cv_deplibs_check_method=pass_all | |
5646 | ;; | |
5647 | ||
5648 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5649 | lt_cv_deplibs_check_method=pass_all | |
5650 | ;; | |
5651 | ||
5652 | sysv4 | sysv4.3*) | |
5653 | case $host_vendor in | |
5654 | motorola) | |
5655 | 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]' | |
5656 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5657 | ;; | |
5658 | ncr) | |
5659 | lt_cv_deplibs_check_method=pass_all | |
5660 | ;; | |
5661 | sequent) | |
5662 | lt_cv_file_magic_cmd='/bin/file' | |
5663 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5664 | ;; | |
5665 | sni) | |
5666 | lt_cv_file_magic_cmd='/bin/file' | |
5667 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5668 | lt_cv_file_magic_test_file=/lib/libc.so | |
5669 | ;; | |
5670 | siemens) | |
5671 | lt_cv_deplibs_check_method=pass_all | |
5672 | ;; | |
5673 | pc) | |
5674 | lt_cv_deplibs_check_method=pass_all | |
5675 | ;; | |
5676 | esac | |
5677 | ;; | |
5678 | ||
5679 | tpf*) | |
5680 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
5681 | ;; |
5682 | esac | |
5683 | ||
ce2cded5 | 5684 | fi |
81ecdfbb RW |
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5686 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
ce2cded5 L |
5687 | file_magic_cmd=$lt_cv_file_magic_cmd |
5688 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5689 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 5690 | |
d7040cdb | 5691 | |
d7040cdb | 5692 | |
d7040cdb | 5693 | |
d7040cdb | 5694 | |
44f2f9d2 | 5695 | |
d7040cdb | 5696 | |
d7040cdb | 5697 | |
d7040cdb | 5698 | |
d7040cdb | 5699 | |
44f2f9d2 | 5700 | |
d7040cdb | 5701 | |
a4966cd9 L |
5702 | plugin_option= |
5703 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
5704 | for plugin in $plugin_names; do | |
5705 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
5706 | if test x$plugin_so = x$plugin; then | |
5707 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
5708 | fi | |
5709 | if test x$plugin_so != x$plugin; then | |
5710 | plugin_option="--plugin $plugin_so" | |
5711 | break | |
5712 | fi | |
5713 | done | |
5714 | ||
ce2cded5 | 5715 | if test -n "$ac_tool_prefix"; then |
f2c621e4 AS |
5716 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5717 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5719 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5720 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 5721 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5722 | else |
5723 | if test -n "$AR"; then | |
5724 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5725 | else | |
5726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5727 | for as_dir in $PATH | |
5728 | do | |
5729 | IFS=$as_save_IFS | |
5730 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5731 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f2c621e4 | 5733 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 5734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 5735 | break 2 |
d7040cdb SE |
5736 | fi |
5737 | done | |
81ecdfbb RW |
5738 | done |
5739 | IFS=$as_save_IFS | |
44f2f9d2 | 5740 | |
ce2cded5 L |
5741 | fi |
5742 | fi | |
5743 | AR=$ac_cv_prog_AR | |
5744 | if test -n "$AR"; then | |
81ecdfbb RW |
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5746 | $as_echo "$AR" >&6; } | |
ce2cded5 | 5747 | else |
81ecdfbb RW |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5749 | $as_echo "no" >&6; } | |
44f2f9d2 | 5750 | fi |
d7040cdb | 5751 | |
81ecdfbb | 5752 | |
d7040cdb | 5753 | fi |
f2c621e4 | 5754 | if test -z "$ac_cv_prog_AR"; then |
ce2cded5 | 5755 | ac_ct_AR=$AR |
f2c621e4 AS |
5756 | # Extract the first word of "ar", so it can be a program name with args. |
5757 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5759 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5760 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 5761 | $as_echo_n "(cached) " >&6 |
44f2f9d2 | 5762 | else |
ce2cded5 L |
5763 | if test -n "$ac_ct_AR"; then |
5764 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5765 | else | |
5766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5767 | for as_dir in $PATH | |
5768 | do | |
5769 | IFS=$as_save_IFS | |
5770 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5771 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f2c621e4 | 5773 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 5774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5775 | break 2 |
5776 | fi | |
5777 | done | |
81ecdfbb RW |
5778 | done |
5779 | IFS=$as_save_IFS | |
ce2cded5 | 5780 | |
ce2cded5 L |
5781 | fi |
5782 | fi | |
5783 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5784 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5786 | $as_echo "$ac_ct_AR" >&6; } | |
ce2cded5 | 5787 | else |
81ecdfbb RW |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5789 | $as_echo "no" >&6; } | |
d7040cdb | 5790 | fi |
44f2f9d2 | 5791 | |
81ecdfbb RW |
5792 | if test "x$ac_ct_AR" = x; then |
5793 | AR="false" | |
5794 | else | |
5795 | case $cross_compiling:$ac_tool_warned in | |
5796 | yes:) | |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5798 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5799 | ac_tool_warned=yes ;; | |
5800 | esac | |
5801 | AR=$ac_ct_AR | |
5802 | fi | |
df7b86aa | 5803 | else |
f2c621e4 AS |
5804 | AR="$ac_cv_prog_AR" |
5805 | fi | |
df7b86aa | 5806 | |
f2c621e4 | 5807 | test -z "$AR" && AR=ar |
a4966cd9 L |
5808 | if test -n "$plugin_option"; then |
5809 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
83b33c6c L |
5810 | touch conftest.c |
5811 | $AR $plugin_option rc conftest.a conftest.c | |
5812 | if test "$?" != 0; then | |
5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
5814 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
5815 | else | |
5816 | AR="$AR $plugin_option" | |
5817 | fi | |
5818 | rm -f conftest.* | |
a4966cd9 L |
5819 | fi |
5820 | fi | |
f2c621e4 | 5821 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
df7b86aa | 5822 | |
df7b86aa | 5823 | |
df7b86aa | 5824 | |
df7b86aa | 5825 | |
df7b86aa NC |
5826 | |
5827 | ||
5828 | ||
5829 | ||
5830 | ||
5831 | ||
d7040cdb | 5832 | |
ce2cded5 L |
5833 | if test -n "$ac_tool_prefix"; then |
5834 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5835 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5837 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5838 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 5839 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5840 | else |
5841 | if test -n "$STRIP"; then | |
5842 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5843 | else | |
5844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5845 | for as_dir in $PATH | |
5846 | do | |
5847 | IFS=$as_save_IFS | |
5848 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5849 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5851 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 5852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5853 | break 2 |
5854 | fi | |
5855 | done | |
81ecdfbb RW |
5856 | done |
5857 | IFS=$as_save_IFS | |
d7040cdb | 5858 | |
ce2cded5 L |
5859 | fi |
5860 | fi | |
5861 | STRIP=$ac_cv_prog_STRIP | |
5862 | if test -n "$STRIP"; then | |
81ecdfbb RW |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
5864 | $as_echo "$STRIP" >&6; } | |
ce2cded5 | 5865 | else |
81ecdfbb RW |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5867 | $as_echo "no" >&6; } | |
ce2cded5 | 5868 | fi |
d7040cdb | 5869 | |
81ecdfbb | 5870 | |
ce2cded5 L |
5871 | fi |
5872 | if test -z "$ac_cv_prog_STRIP"; then | |
5873 | ac_ct_STRIP=$STRIP | |
5874 | # Extract the first word of "strip", so it can be a program name with args. | |
5875 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5877 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5878 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 5879 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5880 | else |
5881 | if test -n "$ac_ct_STRIP"; then | |
5882 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5883 | else | |
5884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5885 | for as_dir in $PATH | |
5886 | do | |
5887 | IFS=$as_save_IFS | |
5888 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5889 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5891 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 5892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5893 | break 2 |
5894 | fi | |
5895 | done | |
81ecdfbb RW |
5896 | done |
5897 | IFS=$as_save_IFS | |
d7040cdb | 5898 | |
ce2cded5 L |
5899 | fi |
5900 | fi | |
5901 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5902 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
5904 | $as_echo "$ac_ct_STRIP" >&6; } | |
ce2cded5 | 5905 | else |
81ecdfbb RW |
5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5907 | $as_echo "no" >&6; } | |
ce2cded5 | 5908 | fi |
d7040cdb | 5909 | |
81ecdfbb RW |
5910 | if test "x$ac_ct_STRIP" = x; then |
5911 | STRIP=":" | |
5912 | else | |
5913 | case $cross_compiling:$ac_tool_warned in | |
5914 | yes:) | |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5916 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5917 | ac_tool_warned=yes ;; | |
5918 | esac | |
5919 | STRIP=$ac_ct_STRIP | |
5920 | fi | |
ce2cded5 L |
5921 | else |
5922 | STRIP="$ac_cv_prog_STRIP" | |
5923 | fi | |
d7040cdb | 5924 | |
ce2cded5 | 5925 | test -z "$STRIP" && STRIP=: |
d7040cdb | 5926 | |
d7040cdb | 5927 | |
d7040cdb | 5928 | |
d7040cdb | 5929 | |
d7040cdb | 5930 | |
d7040cdb | 5931 | |
ce2cded5 L |
5932 | if test -n "$ac_tool_prefix"; then |
5933 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5934 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5936 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5937 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 5938 | $as_echo_n "(cached) " >&6 |
44f2f9d2 | 5939 | else |
ce2cded5 L |
5940 | if test -n "$RANLIB"; then |
5941 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5942 | else | |
5943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5944 | for as_dir in $PATH | |
5945 | do | |
5946 | IFS=$as_save_IFS | |
5947 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5948 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5950 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 5951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5952 | break 2 |
5953 | fi | |
5954 | done | |
81ecdfbb RW |
5955 | done |
5956 | IFS=$as_save_IFS | |
44f2f9d2 | 5957 | |
d7040cdb | 5958 | fi |
44f2f9d2 | 5959 | fi |
ce2cded5 L |
5960 | RANLIB=$ac_cv_prog_RANLIB |
5961 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5963 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 5964 | else |
81ecdfbb RW |
5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5966 | $as_echo "no" >&6; } | |
ce2cded5 | 5967 | fi |
d7040cdb | 5968 | |
81ecdfbb | 5969 | |
d7040cdb | 5970 | fi |
ce2cded5 L |
5971 | if test -z "$ac_cv_prog_RANLIB"; then |
5972 | ac_ct_RANLIB=$RANLIB | |
5973 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5974 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5976 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5977 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 5978 | $as_echo_n "(cached) " >&6 |
44f2f9d2 | 5979 | else |
ce2cded5 L |
5980 | if test -n "$ac_ct_RANLIB"; then |
5981 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5982 | else | |
5983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5984 | for as_dir in $PATH | |
d7040cdb | 5985 | do |
ce2cded5 L |
5986 | IFS=$as_save_IFS |
5987 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5988 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5989 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5990 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 5991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 5992 | break 2 |
d7040cdb | 5993 | fi |
ce2cded5 | 5994 | done |
81ecdfbb RW |
5995 | done |
5996 | IFS=$as_save_IFS | |
ce2cded5 | 5997 | |
d7040cdb | 5998 | fi |
ce2cded5 L |
5999 | fi |
6000 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6001 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6003 | $as_echo "$ac_ct_RANLIB" >&6; } | |
d7040cdb | 6004 | else |
81ecdfbb RW |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6006 | $as_echo "no" >&6; } | |
44f2f9d2 | 6007 | fi |
44f2f9d2 | 6008 | |
81ecdfbb RW |
6009 | if test "x$ac_ct_RANLIB" = x; then |
6010 | RANLIB=":" | |
6011 | else | |
6012 | case $cross_compiling:$ac_tool_warned in | |
6013 | yes:) | |
6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6015 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6016 | ac_tool_warned=yes ;; | |
6017 | esac | |
6018 | RANLIB=$ac_ct_RANLIB | |
6019 | fi | |
d7040cdb | 6020 | else |
ce2cded5 | 6021 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6022 | fi |
252b5132 | 6023 | |
ce2cded5 | 6024 | test -z "$RANLIB" && RANLIB=: |
a4966cd9 L |
6025 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
6026 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6027 | RANLIB="$RANLIB $plugin_option" | |
6028 | fi | |
6029 | fi | |
252b5132 | 6030 | |
252b5132 | 6031 | |
ae57792d | 6032 | |
252b5132 | 6033 | |
13b2be9c | 6034 | |
14ee9f48 | 6035 | |
ce2cded5 | 6036 | # Determine commands to create old-style static archives. |
718a6fd8 | 6037 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
ce2cded5 L |
6038 | old_postinstall_cmds='chmod 644 $oldlib' |
6039 | old_postuninstall_cmds= | |
14ee9f48 | 6040 | |
ce2cded5 L |
6041 | if test -n "$RANLIB"; then |
6042 | case $host_os in | |
6043 | openbsd*) | |
6044 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6045 | ;; | |
6046 | *) | |
6047 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6048 | ;; | |
6049 | esac | |
6050 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb | 6051 | fi |
14ee9f48 | 6052 | |
3725885a RW |
6053 | case $host_os in |
6054 | darwin*) | |
6055 | lock_old_archive_extraction=yes ;; | |
6056 | *) | |
6057 | lock_old_archive_extraction=no ;; | |
6058 | esac | |
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | ||
f8fc3443 | 6065 | |
f8fc3443 | 6066 | |
252b5132 | 6067 | |
85fbca6a | 6068 | |
85fbca6a | 6069 | |
13b2be9c | 6070 | |
13b2be9c | 6071 | |
d7040cdb | 6072 | |
d7040cdb SE |
6073 | |
6074 | ||
6075 | ||
252b5132 | 6076 | |
93fbbb04 | 6077 | |
93fbbb04 | 6078 | |
d70c5fc7 | 6079 | |
e0001a05 | 6080 | |
252b5132 | 6081 | |
252b5132 | 6082 | |
252b5132 | 6083 | |
252b5132 | 6084 | |
252b5132 | 6085 | |
3bcbcc3d | 6086 | |
252b5132 | 6087 | |
252b5132 | 6088 | |
252b5132 | 6089 | |
15886821 | 6090 | |
252b5132 | 6091 | |
252b5132 | 6092 | |
13b2be9c DJ |
6093 | |
6094 | ||
252b5132 | 6095 | |
252b5132 | 6096 | |
d6d788bd | 6097 | |
ce2cded5 L |
6098 | # If no C compiler was specified, use CC. |
6099 | LTCC=${LTCC-"$CC"} | |
252b5132 | 6100 | |
ce2cded5 L |
6101 | # If no C compiler flags were specified, use CFLAGS. |
6102 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
252b5132 | 6103 | |
ce2cded5 L |
6104 | # Allow CC to be a program name with arguments. |
6105 | compiler=$CC | |
252b5132 | 6106 | |
252b5132 | 6107 | |
ce2cded5 | 6108 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6110 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 6111 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
81ecdfbb | 6112 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6113 | else |
252b5132 | 6114 | |
ce2cded5 L |
6115 | # These are sane defaults that work on at least a few old systems. |
6116 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
252b5132 | 6117 | |
ce2cded5 L |
6118 | # Character class describing NM global symbol codes. |
6119 | symcode='[BCDEGRST]' | |
252b5132 | 6120 | |
ce2cded5 L |
6121 | # Regexp to match symbols that can be accessed directly from C. |
6122 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
13b2be9c | 6123 | |
ce2cded5 L |
6124 | # Define system-specific variables. |
6125 | case $host_os in | |
6126 | aix*) | |
6127 | symcode='[BCDT]' | |
6128 | ;; | |
718a6fd8 | 6129 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
6130 | symcode='[ABCDGISTW]' |
6131 | ;; | |
6132 | hpux*) | |
6133 | if test "$host_cpu" = ia64; then | |
6134 | symcode='[ABCDEGRST]' | |
6135 | fi | |
6136 | ;; | |
6137 | irix* | nonstopux*) | |
6138 | symcode='[BCDEGRST]' | |
6139 | ;; | |
6140 | osf*) | |
6141 | symcode='[BCDEGQRST]' | |
6142 | ;; | |
6143 | solaris*) | |
6144 | symcode='[BDRT]' | |
6145 | ;; | |
6146 | sco3.2v5*) | |
6147 | symcode='[DT]' | |
6148 | ;; | |
6149 | sysv4.2uw2*) | |
6150 | symcode='[DT]' | |
6151 | ;; | |
6152 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6153 | symcode='[ABDT]' | |
6154 | ;; | |
6155 | sysv4) | |
6156 | symcode='[DFNSTU]' | |
6157 | ;; | |
6158 | esac | |
6159 | ||
6160 | # If we're using GNU nm, then use its standard symbol codes. | |
6161 | case `$NM -V 2>&1` in | |
6162 | *GNU* | *'with BFD'*) | |
6163 | symcode='[ABCDGIRSTW]' ;; | |
6164 | esac | |
252b5132 | 6165 | |
ce2cded5 L |
6166 | # Transform an extracted symbol line into a proper C declaration. |
6167 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6168 | # so use this general approach. | |
6169 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
13b2be9c | 6170 | |
ce2cded5 | 6171 | # Transform an extracted symbol line into symbol name and symbol address |
f2c621e4 AS |
6172 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6173 | 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 | 6174 | |
7357c5b6 AM |
6175 | # Handle CRLF in mingw tool chain |
6176 | opt_cr= | |
6177 | case $build_os in | |
6178 | mingw*) | |
6179 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6180 | ;; | |
6181 | esac | |
d7040cdb | 6182 | |
7357c5b6 AM |
6183 | # Try without a prefix underscore, then with it. |
6184 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6185 | |
7357c5b6 AM |
6186 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6187 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6188 | |
7357c5b6 AM |
6189 | # Write the raw and C identifiers. |
6190 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6191 | # Fake it for dumpbin and say T for any non-static function | |
6192 | # and D for any global variable. | |
6193 | # Also find C++ and __fastcall symbols from MSVC++, | |
6194 | # which start with @ or ?. | |
6195 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6196 | " {last_section=section; section=\$ 3};"\ | |
6197 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6198 | " \$ 0!~/External *\|/{next};"\ | |
6199 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6200 | " {if(hide[section]) next};"\ | |
6201 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6202 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6203 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6204 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6205 | " ' prfx=^$ac_symprfx" | |
6206 | else | |
6207 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6208 | fi | |
d7040cdb | 6209 | |
7357c5b6 AM |
6210 | # Check to see that the pipe works correctly. |
6211 | pipe_works=no | |
d7040cdb | 6212 | |
7357c5b6 AM |
6213 | rm -f conftest* |
6214 | cat > conftest.$ac_ext <<_LT_EOF | |
6215 | #ifdef __cplusplus | |
6216 | extern "C" { | |
6217 | #endif | |
6218 | char nm_test_var; | |
6219 | void nm_test_func(void); | |
6220 | void nm_test_func(void){} | |
6221 | #ifdef __cplusplus | |
ce2cded5 | 6222 | } |
7357c5b6 AM |
6223 | #endif |
6224 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6225 | _LT_EOF | |
6226 | ||
81ecdfbb | 6227 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6228 | (eval $ac_compile) 2>&5 |
ce2cded5 | 6229 | ac_status=$? |
81ecdfbb RW |
6230 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6231 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6232 | # Now try to grab the symbols. |
6233 | nlist=conftest.nm | |
3725885a RW |
6234 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6235 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
ce2cded5 | 6236 | ac_status=$? |
81ecdfbb RW |
6237 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6238 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6239 | # Try sorting and uniquifying the output. |
6240 | if sort "$nlist" | uniq > "$nlist"T; then | |
6241 | mv -f "$nlist"T "$nlist" | |
6242 | else | |
6243 | rm -f "$nlist"T | |
6244 | fi | |
13b2be9c | 6245 | |
7357c5b6 AM |
6246 | # Make sure that we snagged all the symbols we need. |
6247 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6248 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6249 | cat <<_LT_EOF > conftest.$ac_ext | |
6250 | #ifdef __cplusplus | |
6251 | extern "C" { | |
6252 | #endif | |
13b2be9c | 6253 | |
7357c5b6 AM |
6254 | _LT_EOF |
6255 | # Now generate the symbol file. | |
6256 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
13b2be9c | 6257 | |
7357c5b6 | 6258 | cat <<_LT_EOF >> conftest.$ac_ext |
c8615825 | 6259 | |
7357c5b6 | 6260 | /* The mapping between symbol names and symbols. */ |
f2c621e4 | 6261 | const struct { |
7357c5b6 AM |
6262 | const char *name; |
6263 | void *address; | |
6264 | } | |
6265 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6266 | { | |
6267 | { "@PROGRAM@", (void *) 0 }, | |
6268 | _LT_EOF | |
6269 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6270 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6271 | {0, (void *) 0} | |
6272 | }; | |
d7040cdb | 6273 | |
7357c5b6 AM |
6274 | /* This works around a problem in FreeBSD linker */ |
6275 | #ifdef FREEBSD_WORKAROUND | |
6276 | static const void *lt_preloaded_setup() { | |
6277 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6278 | } | |
ce2cded5 | 6279 | #endif |
d7040cdb | 6280 | |
7357c5b6 | 6281 | #ifdef __cplusplus |
ce2cded5 | 6282 | } |
7357c5b6 AM |
6283 | #endif |
6284 | _LT_EOF | |
6285 | # Now try linking the two files. | |
6286 | mv conftest.$ac_objext conftstm.$ac_objext | |
f2c621e4 AS |
6287 | lt_save_LIBS="$LIBS" |
6288 | lt_save_CFLAGS="$CFLAGS" | |
7357c5b6 AM |
6289 | LIBS="conftstm.$ac_objext" |
6290 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6291 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
6292 | (eval $ac_link) 2>&5 |
6293 | ac_status=$? | |
81ecdfbb RW |
6294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6295 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6296 | pipe_works=yes |
6297 | fi | |
f2c621e4 AS |
6298 | LIBS="$lt_save_LIBS" |
6299 | CFLAGS="$lt_save_CFLAGS" | |
7357c5b6 AM |
6300 | else |
6301 | echo "cannot find nm_test_func in $nlist" >&5 | |
6302 | fi | |
6303 | else | |
6304 | echo "cannot find nm_test_var in $nlist" >&5 | |
6305 | fi | |
6306 | else | |
6307 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6308 | fi | |
6309 | else | |
6310 | echo "$progname: failed program was:" >&5 | |
6311 | cat conftest.$ac_ext >&5 | |
6312 | fi | |
718a6fd8 | 6313 | rm -rf conftest* conftst* |
7357c5b6 AM |
6314 | |
6315 | # Do not use the global_symbol_pipe unless it works. | |
6316 | if test "$pipe_works" = yes; then | |
6317 | break | |
6318 | else | |
6319 | lt_cv_sys_global_symbol_pipe= | |
6320 | fi | |
6321 | done | |
d7040cdb | 6322 | |
ce2cded5 | 6323 | fi |
7357c5b6 AM |
6324 | |
6325 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6326 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 6327 | fi |
7357c5b6 | 6328 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6330 | $as_echo "failed" >&6; } | |
7357c5b6 | 6331 | else |
81ecdfbb RW |
6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6333 | $as_echo "ok" >&6; } | |
ce2cded5 | 6334 | fi |
d7040cdb | 6335 | |
df7b86aa NC |
6336 | |
6337 | ||
6338 | ||
d7040cdb | 6339 | |
d7040cdb | 6340 | |
d7040cdb | 6341 | |
d7040cdb | 6342 | |
d7040cdb | 6343 | |
d7040cdb | 6344 | |
d7040cdb | 6345 | |
d7040cdb | 6346 | |
d7040cdb | 6347 | |
d7040cdb | 6348 | |
d7040cdb | 6349 | |
7357c5b6 AM |
6350 | |
6351 | ||
718a6fd8 SE |
6352 | |
6353 | ||
6354 | ||
7357c5b6 AM |
6355 | |
6356 | ||
81ecdfbb RW |
6357 | # Check whether --enable-libtool-lock was given. |
6358 | if test "${enable_libtool_lock+set}" = set; then : | |
6359 | enableval=$enable_libtool_lock; | |
6360 | fi | |
7357c5b6 | 6361 | |
7357c5b6 AM |
6362 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6363 | ||
6364 | # Some flags need to be propagated to the compiler or linker for good | |
6365 | # libtool support. | |
6366 | case $host in | |
6367 | ia64-*-hpux*) | |
6368 | # Find out which ABI we are using. | |
6369 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6370 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6371 | (eval $ac_compile) 2>&5 |
6372 | ac_status=$? | |
81ecdfbb RW |
6373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6374 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6375 | case `/usr/bin/file conftest.$ac_objext` in |
6376 | *ELF-32*) | |
6377 | HPUX_IA64_MODE="32" | |
6378 | ;; | |
6379 | *ELF-64*) | |
6380 | HPUX_IA64_MODE="64" | |
6381 | ;; | |
6382 | esac | |
6383 | fi | |
6384 | rm -rf conftest* | |
6385 | ;; | |
6386 | *-*-irix6*) | |
6387 | # Find out which ABI we are using. | |
3725885a | 6388 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 6389 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6390 | (eval $ac_compile) 2>&5 |
6391 | ac_status=$? | |
81ecdfbb RW |
6392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6393 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6394 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6395 | case `/usr/bin/file conftest.$ac_objext` in | |
6396 | *32-bit*) | |
6397 | LD="${LD-ld} -melf32bsmip" | |
6398 | ;; | |
6399 | *N32*) | |
6400 | LD="${LD-ld} -melf32bmipn32" | |
6401 | ;; | |
6402 | *64-bit*) | |
6403 | LD="${LD-ld} -melf64bmip" | |
6404 | ;; | |
6405 | esac | |
6406 | else | |
6407 | case `/usr/bin/file conftest.$ac_objext` in | |
6408 | *32-bit*) | |
6409 | LD="${LD-ld} -32" | |
6410 | ;; | |
6411 | *N32*) | |
6412 | LD="${LD-ld} -n32" | |
6413 | ;; | |
6414 | *64-bit*) | |
6415 | LD="${LD-ld} -64" | |
6416 | ;; | |
6417 | esac | |
6418 | fi | |
6419 | fi | |
6420 | rm -rf conftest* | |
6421 | ;; | |
6422 | ||
cc9afea3 | 6423 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
6424 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6425 | # Find out which ABI we are using. | |
6426 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6427 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6428 | (eval $ac_compile) 2>&5 |
6429 | ac_status=$? | |
81ecdfbb RW |
6430 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6431 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6432 | case `/usr/bin/file conftest.o` in |
6433 | *32-bit*) | |
6434 | case $host in | |
6435 | x86_64-*kfreebsd*-gnu) | |
6436 | LD="${LD-ld} -m elf_i386_fbsd" | |
6437 | ;; | |
6438 | x86_64-*linux*) | |
6d2920c8 L |
6439 | case `/usr/bin/file conftest.o` in |
6440 | *x86-64*) | |
6441 | LD="${LD-ld} -m elf32_x86_64" | |
6442 | ;; | |
6443 | *) | |
6444 | LD="${LD-ld} -m elf_i386" | |
6445 | ;; | |
6446 | esac | |
7357c5b6 | 6447 | ;; |
cc9afea3 AM |
6448 | powerpc64le-*linux*) |
6449 | LD="${LD-ld} -m elf32lppclinux" | |
6450 | ;; | |
6451 | powerpc64-*linux*) | |
7357c5b6 AM |
6452 | LD="${LD-ld} -m elf32ppclinux" |
6453 | ;; | |
6454 | s390x-*linux*) | |
6455 | LD="${LD-ld} -m elf_s390" | |
6456 | ;; | |
6457 | sparc64-*linux*) | |
6458 | LD="${LD-ld} -m elf32_sparc" | |
6459 | ;; | |
6460 | esac | |
6461 | ;; | |
6462 | *64-bit*) | |
6463 | case $host in | |
6464 | x86_64-*kfreebsd*-gnu) | |
6465 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6466 | ;; | |
6467 | x86_64-*linux*) | |
6468 | LD="${LD-ld} -m elf_x86_64" | |
6469 | ;; | |
cc9afea3 AM |
6470 | powerpcle-*linux*) |
6471 | LD="${LD-ld} -m elf64lppc" | |
6472 | ;; | |
6473 | powerpc-*linux*) | |
7357c5b6 AM |
6474 | LD="${LD-ld} -m elf64ppc" |
6475 | ;; | |
6476 | s390*-*linux*|s390*-*tpf*) | |
6477 | LD="${LD-ld} -m elf64_s390" | |
6478 | ;; | |
6479 | sparc*-*linux*) | |
6480 | LD="${LD-ld} -m elf64_sparc" | |
6481 | ;; | |
6482 | esac | |
6483 | ;; | |
6484 | esac | |
6485 | fi | |
6486 | rm -rf conftest* | |
6487 | ;; | |
6488 | ||
6489 | *-*-sco3.2v5*) | |
6490 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6491 | SAVE_CFLAGS="$CFLAGS" | |
6492 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6494 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 6495 | if ${lt_cv_cc_needs_belf+:} false; then : |
81ecdfbb | 6496 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6497 | else |
7357c5b6 AM |
6498 | ac_ext=c |
6499 | ac_cpp='$CPP $CPPFLAGS' | |
6500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6503 | ||
81ecdfbb | 6504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 6505 | /* end confdefs.h. */ |
d7040cdb | 6506 | |
7357c5b6 AM |
6507 | int |
6508 | main () | |
6509 | { | |
6510 | ||
6511 | ; | |
6512 | return 0; | |
6513 | } | |
ce2cded5 | 6514 | _ACEOF |
81ecdfbb | 6515 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 6516 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 6517 | else |
81ecdfbb | 6518 | lt_cv_cc_needs_belf=no |
ce2cded5 | 6519 | fi |
81ecdfbb RW |
6520 | rm -f core conftest.err conftest.$ac_objext \ |
6521 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
6522 | ac_ext=c |
6523 | ac_cpp='$CPP $CPPFLAGS' | |
6524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6527 | |
ce2cded5 | 6528 | fi |
81ecdfbb RW |
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6530 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
6531 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6532 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6533 | CFLAGS="$SAVE_CFLAGS" | |
6534 | fi | |
6535 | ;; | |
6536 | sparc*-*solaris*) | |
6537 | # Find out which ABI we are using. | |
6538 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6539 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6540 | (eval $ac_compile) 2>&5 |
6541 | ac_status=$? | |
81ecdfbb RW |
6542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6543 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6544 | case `/usr/bin/file conftest.o` in |
6545 | *64-bit*) | |
6546 | case $lt_cv_prog_gnu_ld in | |
6547 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
718a6fd8 SE |
6548 | *) |
6549 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6550 | LD="${LD-ld} -64" | |
6551 | fi | |
6552 | ;; | |
7357c5b6 AM |
6553 | esac |
6554 | ;; | |
6555 | esac | |
6556 | fi | |
6557 | rm -rf conftest* | |
6558 | ;; | |
6559 | esac | |
d7040cdb | 6560 | |
df7b86aa NC |
6561 | need_locks="$enable_libtool_lock" |
6562 | ||
718a6fd8 SE |
6563 | |
6564 | case $host_os in | |
6565 | rhapsody* | darwin*) | |
6566 | if test -n "$ac_tool_prefix"; then | |
6567 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6568 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6570 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6571 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
81ecdfbb | 6572 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6573 | else |
6574 | if test -n "$DSYMUTIL"; then | |
6575 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6576 | else | |
6577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6578 | for as_dir in $PATH | |
6579 | do | |
6580 | IFS=$as_save_IFS | |
6581 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6582 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6583 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6584 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 6585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6586 | break 2 |
6587 | fi | |
6588 | done | |
81ecdfbb RW |
6589 | done |
6590 | IFS=$as_save_IFS | |
718a6fd8 SE |
6591 | |
6592 | fi | |
6593 | fi | |
6594 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6595 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6597 | $as_echo "$DSYMUTIL" >&6; } | |
718a6fd8 | 6598 | else |
81ecdfbb RW |
6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6600 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6601 | fi |
6602 | ||
81ecdfbb | 6603 | |
718a6fd8 SE |
6604 | fi |
6605 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6606 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6607 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6608 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6610 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6611 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
81ecdfbb | 6612 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6613 | else |
6614 | if test -n "$ac_ct_DSYMUTIL"; then | |
6615 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6616 | else | |
6617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6618 | for as_dir in $PATH | |
6619 | do | |
6620 | IFS=$as_save_IFS | |
6621 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6622 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6623 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6624 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 6625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6626 | break 2 |
6627 | fi | |
6628 | done | |
81ecdfbb RW |
6629 | done |
6630 | IFS=$as_save_IFS | |
718a6fd8 | 6631 | |
718a6fd8 SE |
6632 | fi |
6633 | fi | |
6634 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6635 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6637 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
718a6fd8 | 6638 | else |
81ecdfbb RW |
6639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6640 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6641 | fi |
6642 | ||
81ecdfbb RW |
6643 | if test "x$ac_ct_DSYMUTIL" = x; then |
6644 | DSYMUTIL=":" | |
6645 | else | |
6646 | case $cross_compiling:$ac_tool_warned in | |
6647 | yes:) | |
6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6649 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6650 | ac_tool_warned=yes ;; | |
6651 | esac | |
6652 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6653 | fi | |
718a6fd8 SE |
6654 | else |
6655 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6656 | fi | |
6657 | ||
6658 | if test -n "$ac_tool_prefix"; then | |
6659 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6660 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6662 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6663 | if ${ac_cv_prog_NMEDIT+:} false; then : |
81ecdfbb | 6664 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6665 | else |
6666 | if test -n "$NMEDIT"; then | |
6667 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6668 | else | |
6669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6670 | for as_dir in $PATH | |
6671 | do | |
6672 | IFS=$as_save_IFS | |
6673 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6674 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6675 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6676 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 6677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6678 | break 2 |
6679 | fi | |
6680 | done | |
81ecdfbb RW |
6681 | done |
6682 | IFS=$as_save_IFS | |
718a6fd8 SE |
6683 | |
6684 | fi | |
6685 | fi | |
6686 | NMEDIT=$ac_cv_prog_NMEDIT | |
6687 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
6689 | $as_echo "$NMEDIT" >&6; } | |
718a6fd8 | 6690 | else |
81ecdfbb RW |
6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6692 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6693 | fi |
6694 | ||
81ecdfbb | 6695 | |
718a6fd8 SE |
6696 | fi |
6697 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6698 | ac_ct_NMEDIT=$NMEDIT | |
6699 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6700 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6702 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6703 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
81ecdfbb | 6704 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6705 | else |
6706 | if test -n "$ac_ct_NMEDIT"; then | |
6707 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6708 | else | |
6709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6710 | for as_dir in $PATH | |
6711 | do | |
6712 | IFS=$as_save_IFS | |
6713 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6714 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6716 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 6717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6718 | break 2 |
6719 | fi | |
6720 | done | |
81ecdfbb RW |
6721 | done |
6722 | IFS=$as_save_IFS | |
718a6fd8 | 6723 | |
718a6fd8 SE |
6724 | fi |
6725 | fi | |
6726 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6727 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
6729 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
718a6fd8 | 6730 | else |
81ecdfbb RW |
6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6732 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6733 | fi |
6734 | ||
81ecdfbb RW |
6735 | if test "x$ac_ct_NMEDIT" = x; then |
6736 | NMEDIT=":" | |
6737 | else | |
6738 | case $cross_compiling:$ac_tool_warned in | |
6739 | yes:) | |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6741 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6742 | ac_tool_warned=yes ;; | |
6743 | esac | |
6744 | NMEDIT=$ac_ct_NMEDIT | |
6745 | fi | |
718a6fd8 SE |
6746 | else |
6747 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6748 | fi | |
6749 | ||
6750 | if test -n "$ac_tool_prefix"; then | |
6751 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6752 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6754 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6755 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 6756 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6757 | else |
6758 | if test -n "$LIPO"; then | |
6759 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6760 | else | |
6761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6762 | for as_dir in $PATH | |
6763 | do | |
6764 | IFS=$as_save_IFS | |
6765 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6766 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6768 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 6769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6770 | break 2 |
6771 | fi | |
6772 | done | |
81ecdfbb RW |
6773 | done |
6774 | IFS=$as_save_IFS | |
718a6fd8 SE |
6775 | |
6776 | fi | |
6777 | fi | |
6778 | LIPO=$ac_cv_prog_LIPO | |
6779 | if test -n "$LIPO"; then | |
81ecdfbb RW |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
6781 | $as_echo "$LIPO" >&6; } | |
718a6fd8 | 6782 | else |
81ecdfbb RW |
6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6784 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6785 | fi |
6786 | ||
81ecdfbb | 6787 | |
718a6fd8 SE |
6788 | fi |
6789 | if test -z "$ac_cv_prog_LIPO"; then | |
6790 | ac_ct_LIPO=$LIPO | |
6791 | # Extract the first word of "lipo", so it can be a program name with args. | |
6792 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6794 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6795 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
81ecdfbb | 6796 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6797 | else |
6798 | if test -n "$ac_ct_LIPO"; then | |
6799 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6800 | else | |
6801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6802 | for as_dir in $PATH | |
6803 | do | |
6804 | IFS=$as_save_IFS | |
6805 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6806 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6808 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 6809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6810 | break 2 |
6811 | fi | |
6812 | done | |
81ecdfbb RW |
6813 | done |
6814 | IFS=$as_save_IFS | |
718a6fd8 | 6815 | |
718a6fd8 SE |
6816 | fi |
6817 | fi | |
6818 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6819 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
6821 | $as_echo "$ac_ct_LIPO" >&6; } | |
718a6fd8 | 6822 | else |
81ecdfbb RW |
6823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6824 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6825 | fi |
6826 | ||
81ecdfbb RW |
6827 | if test "x$ac_ct_LIPO" = x; then |
6828 | LIPO=":" | |
6829 | else | |
6830 | case $cross_compiling:$ac_tool_warned in | |
6831 | yes:) | |
6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6833 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6834 | ac_tool_warned=yes ;; | |
6835 | esac | |
6836 | LIPO=$ac_ct_LIPO | |
6837 | fi | |
718a6fd8 SE |
6838 | else |
6839 | LIPO="$ac_cv_prog_LIPO" | |
6840 | fi | |
6841 | ||
6842 | if test -n "$ac_tool_prefix"; then | |
6843 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6844 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6846 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6847 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 6848 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6849 | else |
6850 | if test -n "$OTOOL"; then | |
6851 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6852 | else | |
6853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6854 | for as_dir in $PATH | |
6855 | do | |
6856 | IFS=$as_save_IFS | |
6857 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6858 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6859 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6860 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 6861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6862 | break 2 |
6863 | fi | |
6864 | done | |
81ecdfbb RW |
6865 | done |
6866 | IFS=$as_save_IFS | |
718a6fd8 SE |
6867 | |
6868 | fi | |
6869 | fi | |
6870 | OTOOL=$ac_cv_prog_OTOOL | |
6871 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
6873 | $as_echo "$OTOOL" >&6; } | |
718a6fd8 | 6874 | else |
81ecdfbb RW |
6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6876 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6877 | fi |
6878 | ||
81ecdfbb | 6879 | |
718a6fd8 SE |
6880 | fi |
6881 | if test -z "$ac_cv_prog_OTOOL"; then | |
6882 | ac_ct_OTOOL=$OTOOL | |
6883 | # Extract the first word of "otool", so it can be a program name with args. | |
6884 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6886 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6887 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
81ecdfbb | 6888 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6889 | else |
6890 | if test -n "$ac_ct_OTOOL"; then | |
6891 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6892 | else | |
6893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6894 | for as_dir in $PATH | |
6895 | do | |
6896 | IFS=$as_save_IFS | |
6897 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6898 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6900 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 6901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6902 | break 2 |
6903 | fi | |
6904 | done | |
81ecdfbb RW |
6905 | done |
6906 | IFS=$as_save_IFS | |
718a6fd8 | 6907 | |
718a6fd8 SE |
6908 | fi |
6909 | fi | |
6910 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6911 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
6913 | $as_echo "$ac_ct_OTOOL" >&6; } | |
718a6fd8 | 6914 | else |
81ecdfbb RW |
6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6916 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6917 | fi |
6918 | ||
81ecdfbb RW |
6919 | if test "x$ac_ct_OTOOL" = x; then |
6920 | OTOOL=":" | |
6921 | else | |
6922 | case $cross_compiling:$ac_tool_warned in | |
6923 | yes:) | |
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6925 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6926 | ac_tool_warned=yes ;; | |
6927 | esac | |
6928 | OTOOL=$ac_ct_OTOOL | |
6929 | fi | |
718a6fd8 SE |
6930 | else |
6931 | OTOOL="$ac_cv_prog_OTOOL" | |
6932 | fi | |
6933 | ||
6934 | if test -n "$ac_tool_prefix"; then | |
6935 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6936 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6938 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6939 | if ${ac_cv_prog_OTOOL64+:} false; then : |
81ecdfbb | 6940 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6941 | else |
6942 | if test -n "$OTOOL64"; then | |
6943 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6944 | else | |
6945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6946 | for as_dir in $PATH | |
6947 | do | |
6948 | IFS=$as_save_IFS | |
6949 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6950 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6952 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 6953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6954 | break 2 |
6955 | fi | |
6956 | done | |
81ecdfbb RW |
6957 | done |
6958 | IFS=$as_save_IFS | |
718a6fd8 SE |
6959 | |
6960 | fi | |
6961 | fi | |
6962 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6963 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
6965 | $as_echo "$OTOOL64" >&6; } | |
718a6fd8 | 6966 | else |
81ecdfbb RW |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6968 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6969 | fi |
6970 | ||
81ecdfbb | 6971 | |
718a6fd8 SE |
6972 | fi |
6973 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6974 | ac_ct_OTOOL64=$OTOOL64 | |
6975 | # Extract the first word of "otool64", so it can be a program name with args. | |
6976 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6978 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6979 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
81ecdfbb | 6980 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6981 | else |
6982 | if test -n "$ac_ct_OTOOL64"; then | |
6983 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6984 | else | |
6985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6986 | for as_dir in $PATH | |
6987 | do | |
6988 | IFS=$as_save_IFS | |
6989 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6990 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6992 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 6993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6994 | break 2 |
6995 | fi | |
6996 | done | |
81ecdfbb RW |
6997 | done |
6998 | IFS=$as_save_IFS | |
718a6fd8 | 6999 | |
718a6fd8 SE |
7000 | fi |
7001 | fi | |
7002 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7003 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7005 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
718a6fd8 | 7006 | else |
81ecdfbb RW |
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7008 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7009 | fi |
7010 | ||
81ecdfbb RW |
7011 | if test "x$ac_ct_OTOOL64" = x; then |
7012 | OTOOL64=":" | |
7013 | else | |
7014 | case $cross_compiling:$ac_tool_warned in | |
7015 | yes:) | |
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7017 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7018 | ac_tool_warned=yes ;; | |
7019 | esac | |
7020 | OTOOL64=$ac_ct_OTOOL64 | |
7021 | fi | |
718a6fd8 SE |
7022 | else |
7023 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7024 | fi | |
7025 | ||
7026 | ||
7027 | ||
7028 | ||
7029 | ||
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | ||
7036 | ||
7037 | ||
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
7044 | ||
7045 | ||
7046 | ||
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | ||
81ecdfbb RW |
7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7053 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 7054 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
81ecdfbb | 7055 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7056 | else |
7057 | lt_cv_apple_cc_single_mod=no | |
7058 | if test -z "${LT_MULTI_MODULE}"; then | |
7059 | # By default we will add the -single_module flag. You can override | |
7060 | # by either setting the environment variable LT_MULTI_MODULE | |
7061 | # non-empty at configure time, or by adding -multi_module to the | |
7062 | # link flags. | |
7063 | rm -rf libconftest.dylib* | |
7064 | echo "int foo(void){return 1;}" > conftest.c | |
7065 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7066 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7067 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7068 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7069 | _lt_result=$? | |
7070 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7071 | lt_cv_apple_cc_single_mod=yes | |
7072 | else | |
7073 | cat conftest.err >&5 | |
7074 | fi | |
7075 | rm -rf libconftest.dylib* | |
7076 | rm -f conftest.* | |
7077 | fi | |
7078 | fi | |
81ecdfbb RW |
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7080 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7082 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 7083 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
81ecdfbb | 7084 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7085 | else |
7086 | lt_cv_ld_exported_symbols_list=no | |
7087 | save_LDFLAGS=$LDFLAGS | |
7088 | echo "_main" > conftest.sym | |
7089 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
718a6fd8 SE |
7091 | /* end confdefs.h. */ |
7092 | ||
7093 | int | |
7094 | main () | |
7095 | { | |
7096 | ||
7097 | ; | |
7098 | return 0; | |
7099 | } | |
7100 | _ACEOF | |
81ecdfbb | 7101 | if ac_fn_c_try_link "$LINENO"; then : |
718a6fd8 SE |
7102 | lt_cv_ld_exported_symbols_list=yes |
7103 | else | |
81ecdfbb | 7104 | lt_cv_ld_exported_symbols_list=no |
718a6fd8 | 7105 | fi |
81ecdfbb RW |
7106 | rm -f core conftest.err conftest.$ac_objext \ |
7107 | conftest$ac_exeext conftest.$ac_ext | |
718a6fd8 SE |
7108 | LDFLAGS="$save_LDFLAGS" |
7109 | ||
7110 | fi | |
81ecdfbb RW |
7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7112 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
7113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7114 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 7115 | if ${lt_cv_ld_force_load+:} false; then : |
3725885a RW |
7116 | $as_echo_n "(cached) " >&6 |
7117 | else | |
7118 | lt_cv_ld_force_load=no | |
7119 | cat > conftest.c << _LT_EOF | |
7120 | int forced_loaded() { return 2;} | |
7121 | _LT_EOF | |
7122 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7123 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7124 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7125 | $AR cru libconftest.a conftest.o 2>&5 | |
7126 | cat > conftest.c << _LT_EOF | |
7127 | int main() { return 0;} | |
7128 | _LT_EOF | |
7129 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7130 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7131 | _lt_result=$? | |
7132 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7133 | lt_cv_ld_force_load=yes | |
7134 | else | |
7135 | cat conftest.err >&5 | |
7136 | fi | |
7137 | rm -f conftest.err libconftest.a conftest conftest.c | |
7138 | rm -rf conftest.dSYM | |
7139 | ||
7140 | fi | |
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7142 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
718a6fd8 SE |
7143 | case $host_os in |
7144 | rhapsody* | darwin1.[012]) | |
7145 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7146 | darwin1.*) | |
7147 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7148 | darwin*) # darwin 5.x on | |
7149 | # if running on 10.5 or later, the deployment target defaults | |
7150 | # to the OS version, if on x86, and 10.4, the deployment | |
7151 | # target defaults to 10.4. Don't you love it? | |
7152 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7153 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7154 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6e733cce | 7155 | 10.[012][,.]*) |
718a6fd8 SE |
7156 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7157 | 10.*) | |
7158 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7159 | esac | |
7160 | ;; | |
7161 | esac | |
7162 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7163 | _lt_dar_single_mod='$single_module' | |
7164 | fi | |
7165 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7166 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7167 | else | |
7168 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7169 | fi | |
3725885a | 7170 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
718a6fd8 SE |
7171 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7172 | else | |
7173 | _lt_dsymutil= | |
7174 | fi | |
7175 | ;; | |
7176 | esac | |
7177 | ||
718a6fd8 | 7178 | for ac_header in dlfcn.h |
81ecdfbb RW |
7179 | do : |
7180 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7181 | " | |
d0ac1c44 | 7182 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
718a6fd8 | 7183 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7184 | #define HAVE_DLFCN_H 1 |
718a6fd8 SE |
7185 | _ACEOF |
7186 | ||
7187 | fi | |
7188 | ||
7189 | done | |
7190 | ||
7191 | ||
7192 | ||
3725885a RW |
7193 | |
7194 | ||
718a6fd8 SE |
7195 | # Set options |
7196 | ||
7197 | ||
7198 | ||
7199 | enable_dlopen=no | |
7200 | ||
7201 | ||
7202 | enable_win32_dll=no | |
7203 | ||
7204 | ||
81ecdfbb RW |
7205 | # Check whether --enable-shared was given. |
7206 | if test "${enable_shared+set}" = set; then : | |
7207 | enableval=$enable_shared; p=${PACKAGE-default} | |
718a6fd8 SE |
7208 | case $enableval in |
7209 | yes) enable_shared=yes ;; | |
7210 | no) enable_shared=no ;; | |
7211 | *) | |
7212 | enable_shared=no | |
7213 | # Look at the argument we got. We use all the common list separators. | |
7214 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7215 | for pkg in $enableval; do | |
7216 | IFS="$lt_save_ifs" | |
7217 | if test "X$pkg" = "X$p"; then | |
7218 | enable_shared=yes | |
7219 | fi | |
7220 | done | |
7221 | IFS="$lt_save_ifs" | |
7222 | ;; | |
7223 | esac | |
7224 | else | |
7225 | enable_shared=yes | |
81ecdfbb RW |
7226 | fi |
7227 | ||
718a6fd8 SE |
7228 | |
7229 | ||
7230 | ||
7231 | ||
7232 | ||
7233 | ||
7234 | ||
7235 | ||
81ecdfbb RW |
7236 | # Check whether --enable-static was given. |
7237 | if test "${enable_static+set}" = set; then : | |
7238 | enableval=$enable_static; p=${PACKAGE-default} | |
718a6fd8 SE |
7239 | case $enableval in |
7240 | yes) enable_static=yes ;; | |
7241 | no) enable_static=no ;; | |
7242 | *) | |
7243 | enable_static=no | |
7244 | # Look at the argument we got. We use all the common list separators. | |
7245 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7246 | for pkg in $enableval; do | |
7247 | IFS="$lt_save_ifs" | |
7248 | if test "X$pkg" = "X$p"; then | |
7249 | enable_static=yes | |
7250 | fi | |
7251 | done | |
7252 | IFS="$lt_save_ifs" | |
7253 | ;; | |
7254 | esac | |
7255 | else | |
7256 | enable_static=yes | |
81ecdfbb RW |
7257 | fi |
7258 | ||
718a6fd8 SE |
7259 | |
7260 | ||
d7040cdb | 7261 | |
d7040cdb | 7262 | |
718a6fd8 SE |
7263 | |
7264 | ||
7265 | ||
7266 | ||
7267 | ||
81ecdfbb RW |
7268 | # Check whether --with-pic was given. |
7269 | if test "${with_pic+set}" = set; then : | |
7270 | withval=$with_pic; pic_mode="$withval" | |
ce2cded5 | 7271 | else |
718a6fd8 | 7272 | pic_mode=default |
81ecdfbb RW |
7273 | fi |
7274 | ||
d7040cdb | 7275 | |
718a6fd8 SE |
7276 | test -z "$pic_mode" && pic_mode=default |
7277 | ||
7278 | ||
7279 | ||
7280 | ||
7281 | ||
7282 | ||
7283 | ||
81ecdfbb RW |
7284 | # Check whether --enable-fast-install was given. |
7285 | if test "${enable_fast_install+set}" = set; then : | |
7286 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
718a6fd8 SE |
7287 | case $enableval in |
7288 | yes) enable_fast_install=yes ;; | |
7289 | no) enable_fast_install=no ;; | |
7290 | *) | |
7291 | enable_fast_install=no | |
7292 | # Look at the argument we got. We use all the common list separators. | |
7293 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7294 | for pkg in $enableval; do | |
7295 | IFS="$lt_save_ifs" | |
7296 | if test "X$pkg" = "X$p"; then | |
7297 | enable_fast_install=yes | |
7298 | fi | |
7299 | done | |
7300 | IFS="$lt_save_ifs" | |
7301 | ;; | |
7302 | esac | |
ce2cded5 | 7303 | else |
718a6fd8 | 7304 | enable_fast_install=yes |
81ecdfbb RW |
7305 | fi |
7306 | ||
718a6fd8 SE |
7307 | |
7308 | ||
7309 | ||
7310 | ||
d7040cdb | 7311 | |
d7040cdb | 7312 | |
d7040cdb | 7313 | |
d7040cdb | 7314 | |
d7040cdb | 7315 | |
d7040cdb | 7316 | |
ce2cded5 L |
7317 | # This can be used to rebuild libtool when needed |
7318 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7319 | |
ce2cded5 L |
7320 | # Always use our own libtool. |
7321 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7322 | |
d7040cdb | 7323 | |
d7040cdb | 7324 | |
d7040cdb SE |
7325 | |
7326 | ||
7327 | ||
7328 | ||
7329 | ||
7330 | ||
d7040cdb | 7331 | |
d7040cdb | 7332 | |
ab509236 | 7333 | |
ab509236 | 7334 | |
d7040cdb SE |
7335 | |
7336 | ||
7337 | ||
7338 | ||
7339 | ||
13b2be9c | 7340 | |
13b2be9c | 7341 | |
13b2be9c | 7342 | |
13b2be9c | 7343 | |
d7040cdb | 7344 | |
3725885a | 7345 | |
d7040cdb SE |
7346 | |
7347 | ||
ce2cded5 | 7348 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7349 | |
7350 | ||
d7040cdb | 7351 | |
d7040cdb | 7352 | |
d7040cdb SE |
7353 | |
7354 | ||
7355 | ||
7356 | ||
7357 | ||
7358 | ||
ce2cded5 L |
7359 | |
7360 | ||
7361 | ||
7362 | ||
7363 | if test -n "${ZSH_VERSION+set}" ; then | |
7364 | setopt NO_GLOB_SUBST | |
7365 | fi | |
7366 | ||
81ecdfbb RW |
7367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7368 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 7369 | if ${lt_cv_objdir+:} false; then : |
81ecdfbb | 7370 | $as_echo_n "(cached) " >&6 |
d7040cdb | 7371 | else |
ce2cded5 L |
7372 | rm -f .libs 2>/dev/null |
7373 | mkdir .libs 2>/dev/null | |
7374 | if test -d .libs; then | |
7375 | lt_cv_objdir=.libs | |
7376 | else | |
7377 | # MS-DOS does not allow filenames that begin with a dot. | |
7378 | lt_cv_objdir=_libs | |
d7040cdb | 7379 | fi |
ce2cded5 L |
7380 | rmdir .libs 2>/dev/null |
7381 | fi | |
81ecdfbb RW |
7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7383 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 7384 | objdir=$lt_cv_objdir |
d7040cdb SE |
7385 | |
7386 | ||
7387 | ||
7388 | ||
d7040cdb | 7389 | |
ce2cded5 L |
7390 | cat >>confdefs.h <<_ACEOF |
7391 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7392 | _ACEOF | |
d7040cdb SE |
7393 | |
7394 | ||
7395 | ||
7396 | ||
ce2cded5 L |
7397 | case $host_os in |
7398 | aix3*) | |
7399 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7400 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7401 | # vanish in a puff of smoke. | |
7402 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7403 | COLLECT_NAMES= | |
7404 | export COLLECT_NAMES | |
7405 | fi | |
7406 | ;; | |
7407 | esac | |
d7040cdb | 7408 | |
ce2cded5 L |
7409 | # Global variables: |
7410 | ofile=libtool | |
7411 | can_build_shared=yes | |
d7040cdb | 7412 | |
ce2cded5 L |
7413 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7414 | # which needs '.lib'). | |
7415 | libext=a | |
d7040cdb | 7416 | |
ce2cded5 | 7417 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7418 | |
ce2cded5 L |
7419 | old_CC="$CC" |
7420 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7421 | |
ce2cded5 L |
7422 | # Set sane defaults for various variables |
7423 | test -z "$CC" && CC=cc | |
7424 | test -z "$LTCC" && LTCC=$CC | |
7425 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7426 | test -z "$LD" && LD=ld | |
7427 | test -z "$ac_objext" && ac_objext=o | |
7428 | ||
7429 | for cc_temp in $compiler""; do | |
7430 | case $cc_temp in | |
7431 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7432 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7433 | \-*) ;; | |
7434 | *) break;; | |
7435 | esac | |
7436 | done | |
3725885a | 7437 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
ce2cded5 L |
7438 | |
7439 | ||
7440 | # Only perform the check for file, if the check method requires it | |
7441 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7442 | case $deplibs_check_method in | |
7443 | file_magic*) | |
7444 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7446 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 7447 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7448 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
7449 | else |
7450 | case $MAGIC_CMD in | |
7451 | [\\/*] | ?:[\\/]*) | |
7452 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7453 | ;; | |
7454 | *) | |
7455 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7456 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7457 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7458 | for ac_dir in $ac_dummy; do | |
7459 | IFS="$lt_save_ifs" | |
7460 | test -z "$ac_dir" && ac_dir=. | |
7461 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7462 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7463 | if test -n "$file_magic_test_file"; then | |
7464 | case $deplibs_check_method in | |
7465 | "file_magic "*) | |
7466 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7467 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7468 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7469 | $EGREP "$file_magic_regex" > /dev/null; then | |
7470 | : | |
d7040cdb | 7471 | else |
ce2cded5 | 7472 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7473 | |
ce2cded5 L |
7474 | *** Warning: the command libtool uses to detect shared libraries, |
7475 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7476 | *** The result is that libtool may fail to recognize shared libraries | |
7477 | *** as such. This will affect the creation of libtool libraries that | |
7478 | *** depend on shared libraries, but programs linked with such libtool | |
7479 | *** libraries will work regardless of this problem. Nevertheless, you | |
7480 | *** may want to report the problem to your system manager and/or to | |
7481 | *** bug-libtool@gnu.org | |
d7040cdb | 7482 | |
ce2cded5 L |
7483 | _LT_EOF |
7484 | fi ;; | |
7485 | esac | |
d7040cdb | 7486 | fi |
ce2cded5 | 7487 | break |
d7040cdb | 7488 | fi |
ce2cded5 L |
7489 | done |
7490 | IFS="$lt_save_ifs" | |
7491 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7492 | ;; | |
7493 | esac | |
7494 | fi | |
d7040cdb | 7495 | |
ce2cded5 L |
7496 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7497 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7499 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 7500 | else |
81ecdfbb RW |
7501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7502 | $as_echo "no" >&6; } | |
ce2cded5 | 7503 | fi |
d7040cdb | 7504 | |
d7040cdb | 7505 | |
d7040cdb | 7506 | |
d7040cdb | 7507 | |
d7040cdb | 7508 | |
ce2cded5 L |
7509 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7510 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7512 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 7513 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7514 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
7515 | else |
7516 | case $MAGIC_CMD in | |
7517 | [\\/*] | ?:[\\/]*) | |
7518 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7519 | ;; | |
7520 | *) | |
7521 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7522 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7523 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7524 | for ac_dir in $ac_dummy; do | |
7525 | IFS="$lt_save_ifs" | |
7526 | test -z "$ac_dir" && ac_dir=. | |
7527 | if test -f $ac_dir/file; then | |
7528 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7529 | if test -n "$file_magic_test_file"; then | |
7530 | case $deplibs_check_method in | |
7531 | "file_magic "*) | |
7532 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7533 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7534 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7535 | $EGREP "$file_magic_regex" > /dev/null; then | |
7536 | : | |
d7040cdb | 7537 | else |
ce2cded5 L |
7538 | cat <<_LT_EOF 1>&2 |
7539 | ||
7540 | *** Warning: the command libtool uses to detect shared libraries, | |
7541 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7542 | *** The result is that libtool may fail to recognize shared libraries | |
7543 | *** as such. This will affect the creation of libtool libraries that | |
7544 | *** depend on shared libraries, but programs linked with such libtool | |
7545 | *** libraries will work regardless of this problem. Nevertheless, you | |
7546 | *** may want to report the problem to your system manager and/or to | |
7547 | *** bug-libtool@gnu.org | |
7548 | ||
7549 | _LT_EOF | |
7550 | fi ;; | |
d7040cdb | 7551 | esac |
d7040cdb | 7552 | fi |
ce2cded5 L |
7553 | break |
7554 | fi | |
7555 | done | |
7556 | IFS="$lt_save_ifs" | |
7557 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7558 | ;; | |
7559 | esac | |
7560 | fi | |
d7040cdb | 7561 | |
ce2cded5 L |
7562 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7563 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7565 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 7566 | else |
81ecdfbb RW |
7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7568 | $as_echo "no" >&6; } | |
ce2cded5 | 7569 | fi |
d7040cdb | 7570 | |
d7040cdb | 7571 | |
ce2cded5 L |
7572 | else |
7573 | MAGIC_CMD=: | |
7574 | fi | |
d7040cdb | 7575 | fi |
d7040cdb | 7576 | |
ce2cded5 L |
7577 | fi |
7578 | ;; | |
7579 | esac | |
d7040cdb | 7580 | |
ce2cded5 | 7581 | # Use C for the default configuration in the libtool script |
d7040cdb | 7582 | |
ce2cded5 L |
7583 | lt_save_CC="$CC" |
7584 | ac_ext=c | |
7585 | ac_cpp='$CPP $CPPFLAGS' | |
7586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7589 | |
d7040cdb | 7590 | |
ce2cded5 L |
7591 | # Source file extension for C test sources. |
7592 | ac_ext=c | |
d7040cdb | 7593 | |
ce2cded5 L |
7594 | # Object file extension for compiled C test sources. |
7595 | objext=o | |
7596 | objext=$objext | |
d7040cdb | 7597 | |
ce2cded5 L |
7598 | # Code to be used in simple compile tests |
7599 | lt_simple_compile_test_code="int some_variable = 0;" | |
7600 | ||
7601 | # Code to be used in simple link tests | |
7602 | lt_simple_link_test_code='int main(){return(0);}' | |
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | # If no C compiler was specified, use CC. | |
7611 | LTCC=${LTCC-"$CC"} | |
7612 | ||
7613 | # If no C compiler flags were specified, use CFLAGS. | |
7614 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7615 | ||
7616 | # Allow CC to be a program name with arguments. | |
7617 | compiler=$CC | |
7618 | ||
7619 | # Save the default compiler, since it gets overwritten when the other | |
7620 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7621 | compiler_DEFAULT=$CC | |
7622 | ||
7623 | # save warnings/boilerplate of simple test code | |
7624 | ac_outfile=conftest.$ac_objext | |
7625 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7626 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7627 | _lt_compiler_boilerplate=`cat conftest.err` | |
7628 | $RM conftest* | |
7629 | ||
7630 | ac_outfile=conftest.$ac_objext | |
7631 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7632 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7633 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 7634 | $RM -r conftest* |
ce2cded5 L |
7635 | |
7636 | ||
f2c621e4 AS |
7637 | ## CAVEAT EMPTOR: |
7638 | ## There is no encapsulation within the following macros, do not change | |
7639 | ## the running order or otherwise move them around unless you know exactly | |
7640 | ## what you are doing... | |
ce2cded5 L |
7641 | if test -n "$compiler"; then |
7642 | ||
7643 | lt_prog_compiler_no_builtin_flag= | |
7644 | ||
7645 | if test "$GCC" = yes; then | |
3725885a RW |
7646 | case $cc_basename in |
7647 | nvcc*) | |
7648 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7649 | *) | |
7650 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7651 | esac | |
ce2cded5 | 7652 | |
81ecdfbb RW |
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7654 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 7655 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
81ecdfbb | 7656 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
7657 | else |
7658 | lt_cv_prog_compiler_rtti_exceptions=no | |
7659 | ac_outfile=conftest.$ac_objext | |
7660 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7661 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7662 | # Insert the option either (1) after the last *FLAGS variable, or | |
7663 | # (2) before a word containing "conftest.", or (3) at the end. | |
7664 | # Note that $ac_compile itself does not contain backslashes and begins | |
7665 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7666 | # The option is referenced via a variable to avoid confusing sed. | |
7667 | lt_compile=`echo "$ac_compile" | $SED \ | |
7668 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7669 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7670 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 7671 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
7672 | (eval "$lt_compile" 2>conftest.err) |
7673 | ac_status=$? | |
7674 | cat conftest.err >&5 | |
3725885a | 7675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
7676 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7677 | # The compiler can only warn and ignore the option if not recognized | |
7678 | # So say no if there are warnings other than the usual output. | |
3725885a | 7679 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
7680 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7681 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7682 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7683 | fi | |
7684 | fi | |
7685 | $RM conftest* | |
7686 | ||
7687 | fi | |
81ecdfbb RW |
7688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7689 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
ce2cded5 L |
7690 | |
7691 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7692 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7693 | else | |
7694 | : | |
7695 | fi | |
7696 | ||
7697 | fi | |
7698 | ||
7699 | ||
7700 | ||
7701 | ||
7702 | ||
7703 | ||
7704 | lt_prog_compiler_wl= | |
7705 | lt_prog_compiler_pic= | |
7706 | lt_prog_compiler_static= | |
7707 | ||
f2c621e4 AS |
7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
7709 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
ce2cded5 L |
7710 | |
7711 | if test "$GCC" = yes; then | |
7712 | lt_prog_compiler_wl='-Wl,' | |
7713 | lt_prog_compiler_static='-static' | |
7714 | ||
7715 | case $host_os in | |
7716 | aix*) | |
7717 | # All AIX code is PIC. | |
7718 | if test "$host_cpu" = ia64; then | |
7719 | # AIX 5 now supports IA64 processor | |
7720 | lt_prog_compiler_static='-Bstatic' | |
7721 | fi | |
6c9c0a50 | 7722 | lt_prog_compiler_pic='-fPIC' |
ce2cded5 | 7723 | ;; |
d7040cdb SE |
7724 | |
7725 | amigaos*) | |
718a6fd8 SE |
7726 | case $host_cpu in |
7727 | powerpc) | |
7728 | # see comment about AmigaOS4 .so support | |
7729 | lt_prog_compiler_pic='-fPIC' | |
7730 | ;; | |
7731 | m68k) | |
7732 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7733 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7734 | # like `-m68040'. | |
7735 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7736 | ;; | |
7737 | esac | |
d7040cdb SE |
7738 | ;; |
7739 | ||
ce2cded5 L |
7740 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7741 | # PIC is the default for these OSes. | |
d7040cdb SE |
7742 | ;; |
7743 | ||
718a6fd8 | 7744 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
7745 | # This hack is so that the source file can tell whether it is being |
7746 | # built for inclusion in a dll (and should export symbols for example). | |
7747 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7748 | # (--disable-auto-import) libraries | |
7749 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
7750 | ;; |
7751 | ||
7752 | darwin* | rhapsody*) | |
ce2cded5 L |
7753 | # PIC is the default on this platform |
7754 | # Common symbols not allowed in MH_DYLIB files | |
7755 | lt_prog_compiler_pic='-fno-common' | |
7756 | ;; | |
7757 | ||
3725885a RW |
7758 | haiku*) |
7759 | # PIC is the default for Haiku. | |
7760 | # The "-static" flag exists, but is broken. | |
7761 | lt_prog_compiler_static= | |
7762 | ;; | |
7763 | ||
ce2cded5 | 7764 | hpux*) |
718a6fd8 SE |
7765 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
7766 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7767 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 7768 | case $host_cpu in |
718a6fd8 | 7769 | hppa*64*) |
ce2cded5 | 7770 | # +Z the default |
d7040cdb | 7771 | ;; |
ce2cded5 L |
7772 | *) |
7773 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
7774 | ;; |
7775 | esac | |
ce2cded5 | 7776 | ;; |
d7040cdb | 7777 | |
ce2cded5 L |
7778 | interix[3-9]*) |
7779 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7780 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
7781 | ;; |
7782 | ||
ce2cded5 L |
7783 | msdosdjgpp*) |
7784 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7785 | # on systems that don't support them. | |
7786 | lt_prog_compiler_can_build_shared=no | |
7787 | enable_shared=no | |
d7040cdb SE |
7788 | ;; |
7789 | ||
ce2cded5 L |
7790 | *nto* | *qnx*) |
7791 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7792 | # it will coredump. | |
7793 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
7794 | ;; |
7795 | ||
ce2cded5 L |
7796 | sysv4*MP*) |
7797 | if test -d /usr/nec; then | |
7798 | lt_prog_compiler_pic=-Kconform_pic | |
7799 | fi | |
d7040cdb SE |
7800 | ;; |
7801 | ||
ce2cded5 L |
7802 | *) |
7803 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 7804 | ;; |
ce2cded5 | 7805 | esac |
3725885a RW |
7806 | |
7807 | case $cc_basename in | |
7808 | nvcc*) # Cuda Compiler Driver 2.2 | |
7809 | lt_prog_compiler_wl='-Xlinker ' | |
7810 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
7811 | ;; | |
7812 | esac | |
ce2cded5 L |
7813 | else |
7814 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7815 | case $host_os in | |
7816 | aix*) | |
7817 | lt_prog_compiler_wl='-Wl,' | |
7818 | if test "$host_cpu" = ia64; then | |
7819 | # AIX 5 now supports IA64 processor | |
7820 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 7821 | else |
ce2cded5 | 7822 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 7823 | fi |
ce2cded5 | 7824 | ;; |
d7040cdb | 7825 | |
718a6fd8 | 7826 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
7827 | # This hack is so that the source file can tell whether it is being |
7828 | # built for inclusion in a dll (and should export symbols for example). | |
7829 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
7830 | ;; |
7831 | ||
ce2cded5 L |
7832 | hpux9* | hpux10* | hpux11*) |
7833 | lt_prog_compiler_wl='-Wl,' | |
7834 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7835 | # not for PA HP-UX. | |
7836 | case $host_cpu in | |
7837 | hppa*64*|ia64*) | |
7838 | # +Z the default | |
7839 | ;; | |
7840 | *) | |
7841 | lt_prog_compiler_pic='+Z' | |
7842 | ;; | |
7843 | esac | |
7844 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7845 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
7846 | ;; |
7847 | ||
ce2cded5 L |
7848 | irix5* | irix6* | nonstopux*) |
7849 | lt_prog_compiler_wl='-Wl,' | |
7850 | # PIC (with -KPIC) is the default. | |
7851 | lt_prog_compiler_static='-non_shared' | |
7852 | ;; | |
d7040cdb | 7853 | |
58e24671 | 7854 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 7855 | case $cc_basename in |
718a6fd8 SE |
7856 | # old Intel for x86_64 which still supported -KPIC. |
7857 | ecc*) | |
ce2cded5 L |
7858 | lt_prog_compiler_wl='-Wl,' |
7859 | lt_prog_compiler_pic='-KPIC' | |
7860 | lt_prog_compiler_static='-static' | |
7861 | ;; | |
718a6fd8 SE |
7862 | # icc used to be incompatible with GCC. |
7863 | # ICC 10 doesn't accept -KPIC any more. | |
7864 | icc* | ifort*) | |
7865 | lt_prog_compiler_wl='-Wl,' | |
7866 | lt_prog_compiler_pic='-fPIC' | |
7867 | lt_prog_compiler_static='-static' | |
7868 | ;; | |
7869 | # Lahey Fortran 8.1. | |
7870 | lf95*) | |
7871 | lt_prog_compiler_wl='-Wl,' | |
7872 | lt_prog_compiler_pic='--shared' | |
7873 | lt_prog_compiler_static='--static' | |
7874 | ;; | |
3725885a | 7875 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
7876 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7877 | # which looks to be a dead project) | |
7878 | lt_prog_compiler_wl='-Wl,' | |
7879 | lt_prog_compiler_pic='-fpic' | |
7880 | lt_prog_compiler_static='-Bstatic' | |
7881 | ;; | |
7882 | ccc*) | |
7883 | lt_prog_compiler_wl='-Wl,' | |
7884 | # All Alpha code is PIC. | |
7885 | lt_prog_compiler_static='-non_shared' | |
7886 | ;; | |
3725885a RW |
7887 | xl* | bgxl* | bgf* | mpixl*) |
7888 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
718a6fd8 SE |
7889 | lt_prog_compiler_wl='-Wl,' |
7890 | lt_prog_compiler_pic='-qpic' | |
7891 | lt_prog_compiler_static='-qstaticlink' | |
7892 | ;; | |
ce2cded5 L |
7893 | *) |
7894 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
7895 | *Sun\ F* | *Sun*Fortran*) |
7896 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
7897 | lt_prog_compiler_pic='-KPIC' |
7898 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 7899 | lt_prog_compiler_wl='' |
d7040cdb | 7900 | ;; |
3725885a RW |
7901 | *Sun\ C*) |
7902 | # Sun C 5.9 | |
ce2cded5 L |
7903 | lt_prog_compiler_pic='-KPIC' |
7904 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 7905 | lt_prog_compiler_wl='-Wl,' |
d7040cdb SE |
7906 | ;; |
7907 | esac | |
ce2cded5 L |
7908 | ;; |
7909 | esac | |
d7040cdb SE |
7910 | ;; |
7911 | ||
ce2cded5 L |
7912 | newsos6) |
7913 | lt_prog_compiler_pic='-KPIC' | |
7914 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7915 | ;; |
7916 | ||
ce2cded5 L |
7917 | *nto* | *qnx*) |
7918 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7919 | # it will coredump. | |
7920 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
7921 | ;; |
7922 | ||
ce2cded5 L |
7923 | osf3* | osf4* | osf5*) |
7924 | lt_prog_compiler_wl='-Wl,' | |
7925 | # All OSF/1 code is PIC. | |
7926 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
7927 | ;; |
7928 | ||
ce2cded5 L |
7929 | rdos*) |
7930 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
7931 | ;; |
7932 | ||
7933 | solaris*) | |
ce2cded5 L |
7934 | lt_prog_compiler_pic='-KPIC' |
7935 | lt_prog_compiler_static='-Bstatic' | |
7936 | case $cc_basename in | |
f2c621e4 | 7937 | f77* | f90* | f95*) |
ce2cded5 | 7938 | lt_prog_compiler_wl='-Qoption ld ';; |
d7040cdb | 7939 | *) |
ce2cded5 | 7940 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 7941 | esac |
d7040cdb SE |
7942 | ;; |
7943 | ||
7944 | sunos4*) | |
ce2cded5 L |
7945 | lt_prog_compiler_wl='-Qoption ld ' |
7946 | lt_prog_compiler_pic='-PIC' | |
7947 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7948 | ;; |
7949 | ||
ce2cded5 L |
7950 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7951 | lt_prog_compiler_wl='-Wl,' | |
7952 | lt_prog_compiler_pic='-KPIC' | |
7953 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7954 | ;; |
7955 | ||
7956 | sysv4*MP*) | |
ce2cded5 L |
7957 | if test -d /usr/nec ;then |
7958 | lt_prog_compiler_pic='-Kconform_pic' | |
7959 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7960 | fi |
7961 | ;; | |
7962 | ||
ce2cded5 L |
7963 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7964 | lt_prog_compiler_wl='-Wl,' | |
7965 | lt_prog_compiler_pic='-KPIC' | |
7966 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7967 | ;; |
7968 | ||
ce2cded5 L |
7969 | unicos*) |
7970 | lt_prog_compiler_wl='-Wl,' | |
7971 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
7972 | ;; |
7973 | ||
7974 | uts4*) | |
ce2cded5 L |
7975 | lt_prog_compiler_pic='-pic' |
7976 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7977 | ;; |
7978 | ||
7979 | *) | |
ce2cded5 | 7980 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
7981 | ;; |
7982 | esac | |
d7040cdb SE |
7983 | fi |
7984 | ||
ce2cded5 L |
7985 | case $host_os in |
7986 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7987 | *djgpp*) | |
7988 | lt_prog_compiler_pic= | |
7989 | ;; | |
7990 | *) | |
7991 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7992 | ;; | |
7993 | esac | |
f2c621e4 AS |
7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
7995 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7996 | ||
7997 | ||
7998 | ||
7999 | ||
d7040cdb SE |
8000 | |
8001 | ||
8002 | # | |
ce2cded5 | 8003 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8004 | # |
ce2cded5 | 8005 | if test -n "$lt_prog_compiler_pic"; then |
81ecdfbb RW |
8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8007 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 8008 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
81ecdfbb | 8009 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 8010 | else |
718a6fd8 | 8011 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8012 | ac_outfile=conftest.$ac_objext |
8013 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8014 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8015 | # Insert the option either (1) after the last *FLAGS variable, or | |
8016 | # (2) before a word containing "conftest.", or (3) at the end. | |
8017 | # Note that $ac_compile itself does not contain backslashes and begins | |
8018 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8019 | # The option is referenced via a variable to avoid confusing sed. | |
8020 | lt_compile=`echo "$ac_compile" | $SED \ | |
8021 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8022 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8023 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8024 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8025 | (eval "$lt_compile" 2>conftest.err) |
8026 | ac_status=$? | |
8027 | cat conftest.err >&5 | |
3725885a | 8028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8029 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8030 | # The compiler can only warn and ignore the option if not recognized | |
8031 | # So say no if there are warnings other than the usual output. | |
3725885a | 8032 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
8033 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8034 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8035 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
8036 | fi |
8037 | fi | |
8038 | $RM conftest* | |
d7040cdb | 8039 | |
ce2cded5 | 8040 | fi |
81ecdfbb RW |
8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8042 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8043 | |
718a6fd8 | 8044 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
8045 | case $lt_prog_compiler_pic in |
8046 | "" | " "*) ;; | |
8047 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8048 | esac | |
8049 | else | |
8050 | lt_prog_compiler_pic= | |
8051 | lt_prog_compiler_can_build_shared=no | |
8052 | fi | |
d7040cdb | 8053 | |
ce2cded5 | 8054 | fi |
d7040cdb SE |
8055 | |
8056 | ||
8057 | ||
8058 | ||
8059 | ||
8060 | ||
ce2cded5 L |
8061 | # |
8062 | # Check to make sure the static flag actually works. | |
8063 | # | |
8064 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8066 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 8067 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
81ecdfbb | 8068 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 8069 | else |
718a6fd8 | 8070 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
8071 | save_LDFLAGS="$LDFLAGS" |
8072 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8073 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8074 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8075 | # The linker can only warn and ignore the option if not recognized | |
8076 | # So say no if there are warnings | |
8077 | if test -s conftest.err; then | |
8078 | # Append any errors to the config.log. | |
8079 | cat conftest.err 1>&5 | |
3725885a | 8080 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
8081 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8082 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8083 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8084 | fi |
8085 | else | |
718a6fd8 | 8086 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8087 | fi |
8088 | fi | |
718a6fd8 | 8089 | $RM -r conftest* |
ce2cded5 | 8090 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8091 | |
ce2cded5 | 8092 | fi |
81ecdfbb RW |
8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8094 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8095 | |
718a6fd8 | 8096 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
8097 | : |
8098 | else | |
8099 | lt_prog_compiler_static= | |
8100 | fi | |
d7040cdb SE |
8101 | |
8102 | ||
8103 | ||
8104 | ||
8105 | ||
8106 | ||
8107 | ||
81ecdfbb RW |
8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8109 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8110 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8111 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8112 | else |
8113 | lt_cv_prog_compiler_c_o=no | |
8114 | $RM -r conftest 2>/dev/null | |
8115 | mkdir conftest | |
8116 | cd conftest | |
8117 | mkdir out | |
8118 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8119 | |
ce2cded5 L |
8120 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8121 | # Insert the option either (1) after the last *FLAGS variable, or | |
8122 | # (2) before a word containing "conftest.", or (3) at the end. | |
8123 | # Note that $ac_compile itself does not contain backslashes and begins | |
8124 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8125 | lt_compile=`echo "$ac_compile" | $SED \ | |
8126 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8127 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8128 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8129 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8130 | (eval "$lt_compile" 2>out/conftest.err) |
8131 | ac_status=$? | |
8132 | cat out/conftest.err >&5 | |
3725885a | 8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8134 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8135 | then | |
8136 | # The compiler can only warn and ignore the option if not recognized | |
8137 | # So say no if there are warnings | |
3725885a | 8138 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
8139 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8140 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8141 | lt_cv_prog_compiler_c_o=yes | |
8142 | fi | |
8143 | fi | |
8144 | chmod u+w . 2>&5 | |
8145 | $RM conftest* | |
8146 | # SGI C++ compiler will create directory out/ii_files/ for | |
8147 | # template instantiation | |
8148 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8149 | $RM out/* && rmdir out | |
8150 | cd .. | |
8151 | $RM -r conftest | |
8152 | $RM conftest* | |
d7040cdb | 8153 | |
ce2cded5 | 8154 | fi |
81ecdfbb RW |
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8156 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8157 | |
8158 | ||
8159 | ||
8160 | ||
8161 | ||
8162 | ||
81ecdfbb RW |
8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8164 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8165 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8166 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8167 | else |
8168 | lt_cv_prog_compiler_c_o=no | |
8169 | $RM -r conftest 2>/dev/null | |
8170 | mkdir conftest | |
8171 | cd conftest | |
8172 | mkdir out | |
8173 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8174 | |
ce2cded5 L |
8175 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
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 | lt_compile=`echo "$ac_compile" | $SED \ | |
8181 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8182 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8183 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8184 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8185 | (eval "$lt_compile" 2>out/conftest.err) |
8186 | ac_status=$? | |
8187 | cat out/conftest.err >&5 | |
3725885a | 8188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8189 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8190 | then | |
8191 | # The compiler can only warn and ignore the option if not recognized | |
8192 | # So say no if there are warnings | |
3725885a | 8193 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
8194 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8195 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8196 | lt_cv_prog_compiler_c_o=yes | |
8197 | fi | |
8198 | fi | |
8199 | chmod u+w . 2>&5 | |
8200 | $RM conftest* | |
8201 | # SGI C++ compiler will create directory out/ii_files/ for | |
8202 | # template instantiation | |
8203 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8204 | $RM out/* && rmdir out | |
8205 | cd .. | |
8206 | $RM -r conftest | |
8207 | $RM conftest* | |
d7040cdb | 8208 | |
ce2cded5 | 8209 | fi |
81ecdfbb RW |
8210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8211 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8212 | |
8213 | ||
8214 | ||
8215 | ||
ce2cded5 L |
8216 | hard_links="nottested" |
8217 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8218 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8220 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
8221 | hard_links=yes |
8222 | $RM conftest* | |
8223 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8224 | touch conftest.a | |
8225 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8226 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8228 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 8229 | if test "$hard_links" = no; then |
81ecdfbb RW |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8231 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 L |
8232 | need_locks=warn |
8233 | fi | |
8234 | else | |
8235 | need_locks=no | |
8236 | fi | |
d7040cdb SE |
8237 | |
8238 | ||
8239 | ||
8240 | ||
8241 | ||
8242 | ||
81ecdfbb RW |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8244 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8245 | |
ce2cded5 L |
8246 | runpath_var= |
8247 | allow_undefined_flag= | |
8248 | always_export_symbols=no | |
8249 | archive_cmds= | |
8250 | archive_expsym_cmds= | |
8251 | compiler_needs_object=no | |
8252 | enable_shared_with_static_runtimes=no | |
8253 | export_dynamic_flag_spec= | |
8254 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8255 | hardcode_automatic=no | |
8256 | hardcode_direct=no | |
8257 | hardcode_direct_absolute=no | |
8258 | hardcode_libdir_flag_spec= | |
8259 | hardcode_libdir_flag_spec_ld= | |
8260 | hardcode_libdir_separator= | |
8261 | hardcode_minus_L=no | |
8262 | hardcode_shlibpath_var=unsupported | |
8263 | inherit_rpath=no | |
8264 | link_all_deplibs=unknown | |
8265 | module_cmds= | |
8266 | module_expsym_cmds= | |
8267 | old_archive_from_new_cmds= | |
8268 | old_archive_from_expsyms_cmds= | |
8269 | thread_safe_flag_spec= | |
8270 | whole_archive_flag_spec= | |
8271 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8272 | # included in the symbol list | |
8273 | include_expsyms= | |
8274 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8275 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8276 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8277 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8278 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
8279 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8280 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8281 | # the symbol is explicitly referenced. Since portable code cannot | |
8282 | # rely on this symbol name, it's probably fine to never include it in | |
8283 | # preloaded symbol tables. | |
718a6fd8 | 8284 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 8285 | extract_expsyms_cmds= |
d7040cdb | 8286 | |
ce2cded5 | 8287 | case $host_os in |
718a6fd8 | 8288 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8289 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8290 | # When not using gcc, we currently assume that we are using | |
8291 | # Microsoft Visual C++. | |
8292 | if test "$GCC" != yes; then | |
8293 | with_gnu_ld=no | |
8294 | fi | |
8295 | ;; | |
8296 | interix*) | |
8297 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8298 | with_gnu_ld=yes | |
8299 | ;; | |
8300 | openbsd*) | |
8301 | with_gnu_ld=no | |
8302 | ;; | |
8303 | esac | |
d7040cdb | 8304 | |
ce2cded5 | 8305 | ld_shlibs=yes |
3725885a RW |
8306 | |
8307 | # On some targets, GNU ld is compatible enough with the native linker | |
8308 | # that we're better off using the native interface for both. | |
8309 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 8310 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
8311 | case $host_os in |
8312 | aix*) | |
8313 | # The AIX port of GNU ld has always aspired to compatibility | |
8314 | # with the native linker. However, as the warning in the GNU ld | |
8315 | # block says, versions before 2.19.5* couldn't really create working | |
8316 | # shared libraries, regardless of the interface used. | |
8317 | case `$LD -v 2>&1` in | |
8318 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8319 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8320 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8321 | *) | |
8322 | lt_use_gnu_ld_interface=yes | |
8323 | ;; | |
8324 | esac | |
8325 | ;; | |
8326 | *) | |
8327 | lt_use_gnu_ld_interface=yes | |
8328 | ;; | |
8329 | esac | |
8330 | fi | |
8331 | ||
8332 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
8333 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8334 | wlarc='${wl}' | |
d7040cdb | 8335 | |
ce2cded5 L |
8336 | # Set some defaults for GNU ld with shared library support. These |
8337 | # are reset later if shared libraries are not supported. Putting them | |
8338 | # here allows them to be overridden if necessary. | |
8339 | runpath_var=LD_RUN_PATH | |
8340 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8341 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8342 | # ancient GNU ld didn't support --whole-archive et. al. | |
8343 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8344 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8345 | else | |
8346 | whole_archive_flag_spec= | |
8347 | fi | |
8348 | supports_anon_versioning=no | |
8349 | case `$LD -v 2>&1` in | |
3725885a | 8350 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
8351 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8352 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8353 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8354 | *\ 2.11.*) ;; # other 2.11 versions | |
8355 | *) supports_anon_versioning=yes ;; | |
8356 | esac | |
d7040cdb | 8357 | |
ce2cded5 L |
8358 | # See if GNU ld supports shared libraries. |
8359 | case $host_os in | |
50e7d84b | 8360 | aix[3-9]*) |
ce2cded5 L |
8361 | # On AIX/PPC, the GNU linker is very broken |
8362 | if test "$host_cpu" != ia64; then | |
8363 | ld_shlibs=no | |
8364 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8365 | |
3725885a | 8366 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
8367 | *** to be unable to reliably create shared libraries on AIX. |
8368 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
8369 | *** really care for shared libraries, you may want to install binutils |
8370 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8371 | *** You will then need to restart the configuration process. | |
d7040cdb | 8372 | |
ce2cded5 L |
8373 | _LT_EOF |
8374 | fi | |
8375 | ;; | |
d7040cdb | 8376 | |
ce2cded5 | 8377 | amigaos*) |
718a6fd8 SE |
8378 | case $host_cpu in |
8379 | powerpc) | |
8380 | # see comment about AmigaOS4 .so support | |
8381 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8382 | archive_expsym_cmds='' | |
8383 | ;; | |
8384 | m68k) | |
8385 | 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)' | |
8386 | hardcode_libdir_flag_spec='-L$libdir' | |
8387 | hardcode_minus_L=yes | |
8388 | ;; | |
8389 | esac | |
ce2cded5 | 8390 | ;; |
d7040cdb | 8391 | |
ce2cded5 L |
8392 | beos*) |
8393 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8394 | allow_undefined_flag=unsupported | |
8395 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8396 | # support --undefined. This deserves some investigation. FIXME | |
8397 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8398 | else | |
8399 | ld_shlibs=no | |
8400 | fi | |
8401 | ;; | |
d7040cdb | 8402 | |
718a6fd8 | 8403 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8404 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8405 | # as there is no search path for DLLs. | |
8406 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 8407 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
8408 | allow_undefined_flag=unsupported |
8409 | always_export_symbols=no | |
8410 | enable_shared_with_static_runtimes=yes | |
f2c621e4 | 8411 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d7040cdb | 8412 | |
ce2cded5 L |
8413 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8414 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8415 | # If the export-symbols file already is a .def file (1st line | |
8416 | # is EXPORTS), use it as is; otherwise, prepend... | |
8417 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8418 | cp $export_symbols $output_objdir/$soname.def; | |
8419 | else | |
8420 | echo EXPORTS > $output_objdir/$soname.def; | |
8421 | cat $export_symbols >> $output_objdir/$soname.def; | |
8422 | fi~ | |
8423 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8424 | else | |
8425 | ld_shlibs=no | |
8426 | fi | |
8427 | ;; | |
d7040cdb | 8428 | |
3725885a RW |
8429 | haiku*) |
8430 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8431 | link_all_deplibs=yes | |
8432 | ;; | |
8433 | ||
ce2cded5 L |
8434 | interix[3-9]*) |
8435 | hardcode_direct=no | |
8436 | hardcode_shlibpath_var=no | |
8437 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8438 | export_dynamic_flag_spec='${wl}-E' | |
8439 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8440 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8441 | # default) and relocated if they conflict, which is a slow very memory | |
8442 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8443 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8444 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8445 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8446 | 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' | |
8447 | ;; | |
d7040cdb | 8448 | |
58e24671 | 8449 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
8450 | tmp_diet=no |
8451 | if test "$host_os" = linux-dietlibc; then | |
8452 | case $cc_basename in | |
8453 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8454 | esac | |
8455 | fi | |
8456 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8457 | && test "$tmp_diet" = no | |
8458 | then | |
6e733cce | 8459 | tmp_addflag=' $pic_flag' |
718a6fd8 | 8460 | tmp_sharedflag='-shared' |
ce2cded5 L |
8461 | case $cc_basename,$host_cpu in |
8462 | pgcc*) # Portland Group C compiler | |
3725885a | 8463 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
ce2cded5 L |
8464 | tmp_addflag=' $pic_flag' |
8465 | ;; | |
3725885a RW |
8466 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8467 | # Portland Group f77 and f90 compilers | |
8468 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
ce2cded5 L |
8469 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8470 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8471 | tmp_addflag=' -i_dynamic' ;; | |
8472 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8473 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8474 | ifc* | ifort*) # Intel Fortran compiler | |
8475 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8476 | lf95*) # Lahey Fortran 8.1 |
8477 | whole_archive_flag_spec= | |
8478 | tmp_sharedflag='--shared' ;; | |
3725885a | 8479 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
718a6fd8 SE |
8480 | tmp_sharedflag='-qmkshrobj' |
8481 | tmp_addflag= ;; | |
3725885a RW |
8482 | nvcc*) # Cuda Compiler Driver 2.2 |
8483 | 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' | |
8484 | compiler_needs_object=yes | |
8485 | ;; | |
ce2cded5 L |
8486 | esac |
8487 | case `$CC -V 2>&1 | sed 5q` in | |
8488 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 8489 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
ce2cded5 L |
8490 | compiler_needs_object=yes |
8491 | tmp_sharedflag='-G' ;; | |
8492 | *Sun\ F*) # Sun Fortran 8.3 | |
8493 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
8494 | esac |
8495 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8496 | |
ce2cded5 L |
8497 | if test "x$supports_anon_versioning" = xyes; then |
8498 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8499 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8500 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8501 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8502 | fi | |
718a6fd8 SE |
8503 | |
8504 | case $cc_basename in | |
3725885a | 8505 | xlf* | bgf* | bgxlf* | mpixlf*) |
718a6fd8 SE |
8506 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8507 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8508 | hardcode_libdir_flag_spec= | |
8509 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
f2c621e4 | 8510 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
718a6fd8 SE |
8511 | if test "x$supports_anon_versioning" = xyes; then |
8512 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8513 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8514 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
f2c621e4 | 8515 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
718a6fd8 SE |
8516 | fi |
8517 | ;; | |
8518 | esac | |
ce2cded5 L |
8519 | else |
8520 | ld_shlibs=no | |
8521 | fi | |
8522 | ;; | |
d7040cdb | 8523 | |
ce2cded5 L |
8524 | netbsd*) |
8525 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8526 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8527 | wlarc= | |
8528 | else | |
f2c621e4 AS |
8529 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8530 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
ce2cded5 L |
8531 | fi |
8532 | ;; | |
d7040cdb | 8533 | |
ce2cded5 L |
8534 | solaris*) |
8535 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8536 | ld_shlibs=no | |
8537 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8538 | |
ce2cded5 L |
8539 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8540 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8541 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8542 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8543 | *** your PATH or compiler configuration so that the native linker is | |
8544 | *** used, and then restart. | |
d7040cdb | 8545 | |
ce2cded5 L |
8546 | _LT_EOF |
8547 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
f2c621e4 AS |
8548 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8549 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
ce2cded5 L |
8550 | else |
8551 | ld_shlibs=no | |
8552 | fi | |
8553 | ;; | |
d7040cdb | 8554 | |
ce2cded5 L |
8555 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8556 | case `$LD -v 2>&1` in | |
8557 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8558 | ld_shlibs=no | |
8559 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8560 | |
ce2cded5 L |
8561 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8562 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8563 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8564 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8565 | *** your PATH or compiler configuration so that the native linker is | |
8566 | *** used, and then restart. | |
d7040cdb | 8567 | |
ce2cded5 L |
8568 | _LT_EOF |
8569 | ;; | |
8570 | *) | |
8571 | # For security reasons, it is highly recommended that you always | |
8572 | # use absolute paths for naming shared libraries, and exclude the | |
8573 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8574 | # requires that you compile everything twice, which is a pain. | |
8575 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8576 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8577 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8578 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8579 | else | |
8580 | ld_shlibs=no | |
8581 | fi | |
8582 | ;; | |
8583 | esac | |
8584 | ;; | |
d7040cdb | 8585 | |
ce2cded5 L |
8586 | sunos4*) |
8587 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8588 | wlarc= | |
8589 | hardcode_direct=yes | |
8590 | hardcode_shlibpath_var=no | |
8591 | ;; | |
d7040cdb | 8592 | |
ce2cded5 L |
8593 | *) |
8594 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
f2c621e4 AS |
8595 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8596 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
ce2cded5 L |
8597 | else |
8598 | ld_shlibs=no | |
8599 | fi | |
8600 | ;; | |
8601 | esac | |
d7040cdb | 8602 | |
ce2cded5 L |
8603 | if test "$ld_shlibs" = no; then |
8604 | runpath_var= | |
8605 | hardcode_libdir_flag_spec= | |
8606 | export_dynamic_flag_spec= | |
8607 | whole_archive_flag_spec= | |
8608 | fi | |
8609 | else | |
8610 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8611 | case $host_os in | |
8612 | aix3*) | |
8613 | allow_undefined_flag=unsupported | |
8614 | always_export_symbols=yes | |
8615 | 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' | |
8616 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8617 | # are no directories specified by -L. | |
8618 | hardcode_minus_L=yes | |
8619 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8620 | # Neither direct hardcoding nor static linking is supported with a | |
8621 | # broken collect2. | |
8622 | hardcode_direct=unsupported | |
8623 | fi | |
8624 | ;; | |
d7040cdb | 8625 | |
50e7d84b | 8626 | aix[4-9]*) |
ce2cded5 L |
8627 | if test "$host_cpu" = ia64; then |
8628 | # On IA64, the linker does run time linking by default, so we don't | |
8629 | # have to do anything special. | |
8630 | aix_use_runtimelinking=no | |
8631 | exp_sym_flag='-Bexport' | |
8632 | no_entry_flag="" | |
8633 | else | |
8634 | # If we're using GNU nm, then we don't want the "-C" option. | |
8635 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
8636 | # Also, AIX nm treats weak defined symbols like other global |
8637 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 8638 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 8639 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
ce2cded5 | 8640 | else |
5c14705f | 8641 | 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' |
ce2cded5 L |
8642 | fi |
8643 | aix_use_runtimelinking=no | |
d7040cdb | 8644 | |
ce2cded5 L |
8645 | # Test if we are trying to use run time linking or normal |
8646 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8647 | # need to do runtime linking. | |
50e7d84b | 8648 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
8649 | for ld_flag in $LDFLAGS; do |
8650 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8651 | aix_use_runtimelinking=yes | |
8652 | break | |
8653 | fi | |
8654 | done | |
8655 | ;; | |
8656 | esac | |
d7040cdb | 8657 | |
ce2cded5 L |
8658 | exp_sym_flag='-bexport' |
8659 | no_entry_flag='-bnoentry' | |
8660 | fi | |
d7040cdb | 8661 | |
ce2cded5 L |
8662 | # When large executables or shared objects are built, AIX ld can |
8663 | # have problems creating the table of contents. If linking a library | |
8664 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8665 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8666 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 8667 | |
ce2cded5 L |
8668 | archive_cmds='' |
8669 | hardcode_direct=yes | |
8670 | hardcode_direct_absolute=yes | |
8671 | hardcode_libdir_separator=':' | |
8672 | link_all_deplibs=yes | |
8673 | file_list_spec='${wl}-f,' | |
d7040cdb | 8674 | |
ce2cded5 L |
8675 | if test "$GCC" = yes; then |
8676 | case $host_os in aix4.[012]|aix4.[012].*) | |
8677 | # We only want to do this on AIX 4.2 and lower, the check | |
8678 | # below for broken collect2 doesn't work under 4.3+ | |
8679 | collect2name=`${CC} -print-prog-name=collect2` | |
8680 | if test -f "$collect2name" && | |
8681 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8682 | then | |
8683 | # We have reworked collect2 | |
8684 | : | |
8685 | else | |
8686 | # We have old collect2 | |
8687 | hardcode_direct=unsupported | |
8688 | # It fails to find uninstalled libraries when the uninstalled | |
8689 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8690 | # to unsupported forces relinking | |
8691 | hardcode_minus_L=yes | |
8692 | hardcode_libdir_flag_spec='-L$libdir' | |
8693 | hardcode_libdir_separator= | |
8694 | fi | |
8695 | ;; | |
8696 | esac | |
8697 | shared_flag='-shared' | |
8698 | if test "$aix_use_runtimelinking" = yes; then | |
8699 | shared_flag="$shared_flag "'${wl}-G' | |
8700 | fi | |
8701 | else | |
8702 | # not using gcc | |
8703 | if test "$host_cpu" = ia64; then | |
8704 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8705 | # chokes on -Wl,-G. The following line is correct: | |
8706 | shared_flag='-G' | |
8707 | else | |
8708 | if test "$aix_use_runtimelinking" = yes; then | |
8709 | shared_flag='${wl}-G' | |
8710 | else | |
8711 | shared_flag='${wl}-bM:SRE' | |
8712 | fi | |
8713 | fi | |
8714 | fi | |
d7040cdb | 8715 | |
718a6fd8 | 8716 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
8717 | # It seems that -bexpall does not export symbols beginning with |
8718 | # underscore (_), so it is better to generate a list of symbols to export. | |
8719 | always_export_symbols=yes | |
8720 | if test "$aix_use_runtimelinking" = yes; then | |
8721 | # Warning - without using the other runtime loading flags (-brtl), | |
8722 | # -berok will link without error, but may produce a broken library. | |
8723 | allow_undefined_flag='-berok' | |
8724 | # Determine the default libpath from the value encoded in an | |
8725 | # empty executable. | |
f2c621e4 | 8726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 8727 | /* end confdefs.h. */ |
d7040cdb | 8728 | |
ce2cded5 L |
8729 | int |
8730 | main () | |
8731 | { | |
d7040cdb | 8732 | |
ce2cded5 L |
8733 | ; |
8734 | return 0; | |
8735 | } | |
8736 | _ACEOF | |
81ecdfbb | 8737 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 8738 | |
f2c621e4 AS |
8739 | lt_aix_libpath_sed=' |
8740 | /Import File Strings/,/^$/ { | |
8741 | /^0/ { | |
8742 | s/^0 *\(.*\)$/\1/ | |
8743 | p | |
8744 | } | |
8745 | }' | |
8746 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8747 | # Check for a 64-bit object if we didn't find anything. | |
8748 | if test -z "$aix_libpath"; then | |
8749 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8750 | fi | |
ce2cded5 | 8751 | fi |
81ecdfbb RW |
8752 | rm -f core conftest.err conftest.$ac_objext \ |
8753 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 8754 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 8755 | |
ce2cded5 | 8756 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 8757 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
ce2cded5 L |
8758 | else |
8759 | if test "$host_cpu" = ia64; then | |
8760 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8761 | allow_undefined_flag="-z nodefs" | |
8762 | 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" | |
8763 | else | |
8764 | # Determine the default libpath from the value encoded in an | |
8765 | # empty executable. | |
f2c621e4 | 8766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 8767 | /* end confdefs.h. */ |
d7040cdb | 8768 | |
ce2cded5 L |
8769 | int |
8770 | main () | |
8771 | { | |
d7040cdb | 8772 | |
ce2cded5 L |
8773 | ; |
8774 | return 0; | |
8775 | } | |
8776 | _ACEOF | |
81ecdfbb | 8777 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 8778 | |
f2c621e4 AS |
8779 | lt_aix_libpath_sed=' |
8780 | /Import File Strings/,/^$/ { | |
8781 | /^0/ { | |
8782 | s/^0 *\(.*\)$/\1/ | |
8783 | p | |
8784 | } | |
8785 | }' | |
8786 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8787 | # Check for a 64-bit object if we didn't find anything. | |
8788 | if test -z "$aix_libpath"; then | |
8789 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8790 | fi | |
ce2cded5 | 8791 | fi |
81ecdfbb RW |
8792 | rm -f core conftest.err conftest.$ac_objext \ |
8793 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 8794 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 8795 | |
ce2cded5 L |
8796 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8797 | # Warning - without using the other run time loading flags, | |
8798 | # -berok will link without error, but may produce a broken library. | |
8799 | no_undefined_flag=' ${wl}-bernotok' | |
8800 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
8801 | if test "$with_gnu_ld" = yes; then |
8802 | # We only use this code for GNU lds that support --whole-archive. | |
8803 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
8804 | else | |
8805 | # Exported symbols can be pulled into shared objects from archives | |
8806 | whole_archive_flag_spec='$convenience' | |
8807 | fi | |
ce2cded5 L |
8808 | archive_cmds_need_lc=yes |
8809 | # This is similar to how AIX traditionally builds its shared libraries. | |
8810 | 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' | |
8811 | fi | |
8812 | fi | |
8813 | ;; | |
d7040cdb | 8814 | |
ce2cded5 | 8815 | amigaos*) |
718a6fd8 SE |
8816 | case $host_cpu in |
8817 | powerpc) | |
8818 | # see comment about AmigaOS4 .so support | |
8819 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8820 | archive_expsym_cmds='' | |
8821 | ;; | |
8822 | m68k) | |
8823 | 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)' | |
8824 | hardcode_libdir_flag_spec='-L$libdir' | |
8825 | hardcode_minus_L=yes | |
8826 | ;; | |
8827 | esac | |
ce2cded5 | 8828 | ;; |
d7040cdb | 8829 | |
ce2cded5 L |
8830 | bsdi[45]*) |
8831 | export_dynamic_flag_spec=-rdynamic | |
8832 | ;; | |
d7040cdb | 8833 | |
718a6fd8 | 8834 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8835 | # When not using gcc, we currently assume that we are using |
8836 | # Microsoft Visual C++. | |
8837 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8838 | # no search path for DLLs. | |
f2c621e4 AS |
8839 | hardcode_libdir_flag_spec=' ' |
8840 | allow_undefined_flag=unsupported | |
8841 | # Tell ltmain to make .lib files, not .a files. | |
8842 | libext=lib | |
8843 | # Tell ltmain to make .dll files, not .so files. | |
8844 | shrext_cmds=".dll" | |
8845 | # FIXME: Setting linknames here is a bad hack. | |
8846 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8847 | # The linker will automatically build a .lib file if we build a DLL. | |
8848 | old_archive_from_new_cmds='true' | |
8849 | # FIXME: Should let the user specify the lib program. | |
8850 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8851 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8852 | enable_shared_with_static_runtimes=yes | |
ce2cded5 | 8853 | ;; |
d7040cdb | 8854 | |
ce2cded5 | 8855 | darwin* | rhapsody*) |
d7040cdb | 8856 | |
718a6fd8 SE |
8857 | |
8858 | archive_cmds_need_lc=no | |
8859 | hardcode_direct=no | |
8860 | hardcode_automatic=yes | |
8861 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
8862 | if test "$lt_cv_ld_force_load" = "yes"; then |
8863 | 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\"`' | |
8864 | else | |
8865 | whole_archive_flag_spec='' | |
8866 | fi | |
718a6fd8 SE |
8867 | link_all_deplibs=yes |
8868 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8869 | case $cc_basename in | |
8870 | ifort*) _lt_dar_can_shared=yes ;; | |
8871 | *) _lt_dar_can_shared=$GCC ;; | |
8872 | esac | |
8873 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 8874 | output_verbose_link_cmd=func_echo_all |
718a6fd8 SE |
8875 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
8876 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8877 | 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}" | |
8878 | 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}" | |
8879 | ||
8880 | else | |
8881 | ld_shlibs=no | |
8882 | fi | |
8883 | ||
ce2cded5 | 8884 | ;; |
d7040cdb | 8885 | |
ce2cded5 L |
8886 | dgux*) |
8887 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8888 | hardcode_libdir_flag_spec='-L$libdir' | |
8889 | hardcode_shlibpath_var=no | |
8890 | ;; | |
d7040cdb | 8891 | |
ce2cded5 L |
8892 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8893 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8894 | # does not break anything, and helps significantly (at the cost of a little | |
8895 | # extra space). | |
8896 | freebsd2.2*) | |
8897 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8898 | hardcode_libdir_flag_spec='-R$libdir' | |
8899 | hardcode_direct=yes | |
8900 | hardcode_shlibpath_var=no | |
8901 | ;; | |
d7040cdb | 8902 | |
ce2cded5 | 8903 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 8904 | freebsd2.*) |
ce2cded5 L |
8905 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8906 | hardcode_direct=yes | |
8907 | hardcode_minus_L=yes | |
8908 | hardcode_shlibpath_var=no | |
8909 | ;; | |
d7040cdb | 8910 | |
ce2cded5 L |
8911 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8912 | freebsd* | dragonfly*) | |
f2c621e4 | 8913 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
8914 | hardcode_libdir_flag_spec='-R$libdir' |
8915 | hardcode_direct=yes | |
8916 | hardcode_shlibpath_var=no | |
8917 | ;; | |
d7040cdb | 8918 | |
ce2cded5 L |
8919 | hpux9*) |
8920 | if test "$GCC" = yes; then | |
f2c621e4 | 8921 | 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' |
ce2cded5 L |
8922 | else |
8923 | 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' | |
8924 | fi | |
8925 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8926 | hardcode_libdir_separator=: | |
8927 | hardcode_direct=yes | |
d7040cdb | 8928 | |
ce2cded5 L |
8929 | # hardcode_minus_L: Not really in the search PATH, |
8930 | # but as the default location of the library. | |
8931 | hardcode_minus_L=yes | |
8932 | export_dynamic_flag_spec='${wl}-E' | |
8933 | ;; | |
d7040cdb | 8934 | |
ce2cded5 | 8935 | hpux10*) |
3725885a | 8936 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
f2c621e4 | 8937 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
8938 | else |
8939 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8940 | fi | |
8941 | if test "$with_gnu_ld" = no; then | |
8942 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8943 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8944 | hardcode_libdir_separator=: | |
8945 | hardcode_direct=yes | |
8946 | hardcode_direct_absolute=yes | |
8947 | export_dynamic_flag_spec='${wl}-E' | |
8948 | # hardcode_minus_L: Not really in the search PATH, | |
8949 | # but as the default location of the library. | |
8950 | hardcode_minus_L=yes | |
8951 | fi | |
8952 | ;; | |
d7040cdb | 8953 | |
ce2cded5 | 8954 | hpux11*) |
3725885a | 8955 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
8956 | case $host_cpu in |
8957 | hppa*64*) | |
8958 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8959 | ;; | |
8960 | ia64*) | |
f2c621e4 | 8961 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
8962 | ;; |
8963 | *) | |
f2c621e4 | 8964 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
8965 | ;; |
8966 | esac | |
8967 | else | |
8968 | case $host_cpu in | |
8969 | hppa*64*) | |
8970 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8971 | ;; | |
8972 | ia64*) | |
8973 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8974 | ;; | |
8975 | *) | |
3725885a RW |
8976 | |
8977 | # Older versions of the 11.00 compiler do not understand -b yet | |
8978 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
8980 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 8981 | if ${lt_cv_prog_compiler__b+:} false; then : |
3725885a RW |
8982 | $as_echo_n "(cached) " >&6 |
8983 | else | |
8984 | lt_cv_prog_compiler__b=no | |
8985 | save_LDFLAGS="$LDFLAGS" | |
8986 | LDFLAGS="$LDFLAGS -b" | |
8987 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8988 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8989 | # The linker can only warn and ignore the option if not recognized | |
8990 | # So say no if there are warnings | |
8991 | if test -s conftest.err; then | |
8992 | # Append any errors to the config.log. | |
8993 | cat conftest.err 1>&5 | |
8994 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8995 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8996 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8997 | lt_cv_prog_compiler__b=yes | |
8998 | fi | |
8999 | else | |
9000 | lt_cv_prog_compiler__b=yes | |
9001 | fi | |
9002 | fi | |
9003 | $RM -r conftest* | |
9004 | LDFLAGS="$save_LDFLAGS" | |
9005 | ||
9006 | fi | |
9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9008 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9009 | ||
9010 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9011 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9012 | else | |
9013 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9014 | fi | |
9015 | ||
ce2cded5 L |
9016 | ;; |
9017 | esac | |
9018 | fi | |
9019 | if test "$with_gnu_ld" = no; then | |
9020 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9021 | hardcode_libdir_separator=: | |
d7040cdb | 9022 | |
ce2cded5 L |
9023 | case $host_cpu in |
9024 | hppa*64*|ia64*) | |
9025 | hardcode_direct=no | |
9026 | hardcode_shlibpath_var=no | |
9027 | ;; | |
9028 | *) | |
9029 | hardcode_direct=yes | |
9030 | hardcode_direct_absolute=yes | |
9031 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9032 | |
ce2cded5 L |
9033 | # hardcode_minus_L: Not really in the search PATH, |
9034 | # but as the default location of the library. | |
9035 | hardcode_minus_L=yes | |
9036 | ;; | |
9037 | esac | |
9038 | fi | |
9039 | ;; | |
9040 | ||
9041 | irix5* | irix6* | nonstopux*) | |
9042 | if test "$GCC" = yes; then | |
f2c621e4 | 9043 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
9044 | # Try to use the -exported_symbol ld option, if it does not |
9045 | # work, assume that -exports_file does not work either and | |
9046 | # implicitly export all symbols. | |
f2c621e4 AS |
9047 | save_LDFLAGS="$LDFLAGS" |
9048 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
81ecdfbb | 9050 | /* end confdefs.h. */ |
f2c621e4 | 9051 | int foo(void) {} |
ce2cded5 | 9052 | _ACEOF |
81ecdfbb | 9053 | if ac_fn_c_try_link "$LINENO"; then : |
f2c621e4 AS |
9054 | 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' |
9055 | ||
d7040cdb | 9056 | fi |
81ecdfbb RW |
9057 | rm -f core conftest.err conftest.$ac_objext \ |
9058 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 9059 | LDFLAGS="$save_LDFLAGS" |
ce2cded5 | 9060 | else |
3725885a RW |
9061 | 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' |
9062 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
ce2cded5 L |
9063 | fi |
9064 | archive_cmds_need_lc='no' | |
9065 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9066 | hardcode_libdir_separator=: | |
9067 | inherit_rpath=yes | |
9068 | link_all_deplibs=yes | |
9069 | ;; | |
d7040cdb | 9070 | |
ce2cded5 L |
9071 | netbsd*) |
9072 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9073 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9074 | else | |
9075 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9076 | fi | |
9077 | hardcode_libdir_flag_spec='-R$libdir' | |
9078 | hardcode_direct=yes | |
9079 | hardcode_shlibpath_var=no | |
9080 | ;; | |
d7040cdb | 9081 | |
ce2cded5 L |
9082 | newsos6) |
9083 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9084 | hardcode_direct=yes | |
9085 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9086 | hardcode_libdir_separator=: | |
9087 | hardcode_shlibpath_var=no | |
9088 | ;; | |
d7040cdb | 9089 | |
ce2cded5 L |
9090 | *nto* | *qnx*) |
9091 | ;; | |
d7040cdb | 9092 | |
ce2cded5 | 9093 | openbsd*) |
718a6fd8 SE |
9094 | if test -f /usr/libexec/ld.so; then |
9095 | hardcode_direct=yes | |
9096 | hardcode_shlibpath_var=no | |
9097 | hardcode_direct_absolute=yes | |
9098 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 9099 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9100 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 9101 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9102 | export_dynamic_flag_spec='${wl}-E' |
9103 | else | |
9104 | case $host_os in | |
9105 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9106 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9107 | hardcode_libdir_flag_spec='-R$libdir' | |
9108 | ;; | |
9109 | *) | |
9110 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9111 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9112 | ;; | |
9113 | esac | |
9114 | fi | |
9115 | else | |
9116 | ld_shlibs=no | |
d7040cdb SE |
9117 | fi |
9118 | ;; | |
d7040cdb | 9119 | |
ce2cded5 L |
9120 | os2*) |
9121 | hardcode_libdir_flag_spec='-L$libdir' | |
9122 | hardcode_minus_L=yes | |
9123 | allow_undefined_flag=unsupported | |
3725885a | 9124 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
ce2cded5 L |
9125 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9126 | ;; | |
d7040cdb | 9127 | |
ce2cded5 L |
9128 | osf3*) |
9129 | if test "$GCC" = yes; then | |
9130 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9131 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
9132 | else |
9133 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9134 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
9135 | fi |
9136 | archive_cmds_need_lc='no' | |
9137 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9138 | hardcode_libdir_separator=: | |
9139 | ;; | |
d7040cdb | 9140 | |
ce2cded5 L |
9141 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9142 | if test "$GCC" = yes; then | |
9143 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
f2c621e4 | 9144 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
9145 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9146 | else | |
9147 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9148 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
ce2cded5 | 9149 | 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 | 9150 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
d7040cdb | 9151 | |
ce2cded5 L |
9152 | # Both c and cxx compiler support -rpath directly |
9153 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9154 | fi | |
9155 | archive_cmds_need_lc='no' | |
9156 | hardcode_libdir_separator=: | |
9157 | ;; | |
d7040cdb | 9158 | |
ce2cded5 L |
9159 | solaris*) |
9160 | no_undefined_flag=' -z defs' | |
9161 | if test "$GCC" = yes; then | |
9162 | wlarc='${wl}' | |
f2c621e4 | 9163 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 | 9164 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
f2c621e4 | 9165 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
ce2cded5 L |
9166 | else |
9167 | case `$CC -V 2>&1` in | |
9168 | *"Compilers 5.0"*) | |
9169 | wlarc='' | |
9170 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9171 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9172 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9173 | ;; | |
9174 | *) | |
9175 | wlarc='${wl}' | |
9176 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9177 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9178 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9179 | ;; | |
9180 | esac | |
9181 | fi | |
9182 | hardcode_libdir_flag_spec='-R$libdir' | |
9183 | hardcode_shlibpath_var=no | |
9184 | case $host_os in | |
9185 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9186 | *) | |
9187 | # The compiler driver will combine and reorder linker options, | |
9188 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9189 | # but is careful enough not to reorder. | |
9190 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9191 | if test "$GCC" = yes; then | |
9192 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9193 | else | |
9194 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9195 | fi | |
9196 | ;; | |
9197 | esac | |
9198 | link_all_deplibs=yes | |
d7040cdb | 9199 | ;; |
ce2cded5 L |
9200 | |
9201 | sunos4*) | |
9202 | if test "x$host_vendor" = xsequent; then | |
9203 | # Use $CC to link under sequent, because it throws in some extra .o | |
9204 | # files that make .init and .fini sections work. | |
9205 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9206 | else |
ce2cded5 | 9207 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9208 | fi |
ce2cded5 L |
9209 | hardcode_libdir_flag_spec='-L$libdir' |
9210 | hardcode_direct=yes | |
9211 | hardcode_minus_L=yes | |
9212 | hardcode_shlibpath_var=no | |
d7040cdb | 9213 | ;; |
ce2cded5 L |
9214 | |
9215 | sysv4) | |
9216 | case $host_vendor in | |
9217 | sni) | |
9218 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9219 | hardcode_direct=yes # is this really true??? | |
9220 | ;; | |
9221 | siemens) | |
9222 | ## LD is ld it makes a PLAMLIB | |
9223 | ## CC just makes a GrossModule. | |
9224 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9225 | reload_cmds='$CC -r -o $output$reload_objs' | |
9226 | hardcode_direct=no | |
9227 | ;; | |
9228 | motorola) | |
9229 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9230 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9231 | ;; | |
9232 | esac | |
9233 | runpath_var='LD_RUN_PATH' | |
9234 | hardcode_shlibpath_var=no | |
d7040cdb | 9235 | ;; |
d7040cdb | 9236 | |
ce2cded5 L |
9237 | sysv4.3*) |
9238 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9239 | hardcode_shlibpath_var=no | |
9240 | export_dynamic_flag_spec='-Bexport' | |
9241 | ;; | |
d7040cdb | 9242 | |
ce2cded5 L |
9243 | sysv4*MP*) |
9244 | if test -d /usr/nec; then | |
9245 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9246 | hardcode_shlibpath_var=no | |
9247 | runpath_var=LD_RUN_PATH | |
9248 | hardcode_runpath_var=yes | |
9249 | ld_shlibs=yes | |
9250 | fi | |
9251 | ;; | |
d7040cdb | 9252 | |
ce2cded5 L |
9253 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9254 | no_undefined_flag='${wl}-z,text' | |
9255 | archive_cmds_need_lc=no | |
9256 | hardcode_shlibpath_var=no | |
9257 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9258 | |
ce2cded5 L |
9259 | if test "$GCC" = yes; then |
9260 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9261 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9262 | else | |
9263 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9264 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9265 | fi | |
9266 | ;; | |
d7040cdb | 9267 | |
ce2cded5 L |
9268 | sysv5* | sco3.2v5* | sco5v6*) |
9269 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9270 | # link with -lc, and that would cause any symbols used from libc to | |
9271 | # always be unresolved, which means just about no library would | |
9272 | # ever link correctly. If we're not using GNU ld we use -z text | |
9273 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9274 | # as -z defs. | |
9275 | no_undefined_flag='${wl}-z,text' | |
9276 | allow_undefined_flag='${wl}-z,nodefs' | |
9277 | archive_cmds_need_lc=no | |
9278 | hardcode_shlibpath_var=no | |
9279 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9280 | hardcode_libdir_separator=':' | |
9281 | link_all_deplibs=yes | |
9282 | export_dynamic_flag_spec='${wl}-Bexport' | |
9283 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9284 | |
ce2cded5 L |
9285 | if test "$GCC" = yes; then |
9286 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9287 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9288 | else | |
9289 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9290 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9291 | fi | |
d7040cdb | 9292 | ;; |
d7040cdb | 9293 | |
ce2cded5 L |
9294 | uts4*) |
9295 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9296 | hardcode_libdir_flag_spec='-L$libdir' | |
9297 | hardcode_shlibpath_var=no | |
9298 | ;; | |
d7040cdb | 9299 | |
ce2cded5 L |
9300 | *) |
9301 | ld_shlibs=no | |
9302 | ;; | |
9303 | esac | |
9304 | ||
9305 | if test x$host_vendor = xsni; then | |
9306 | case $host in | |
9307 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9308 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9309 | ;; | |
9310 | esac | |
d7040cdb | 9311 | fi |
ce2cded5 | 9312 | fi |
d7040cdb | 9313 | |
81ecdfbb RW |
9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9315 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 9316 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 9317 | |
ce2cded5 | 9318 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9319 | |
d7040cdb | 9320 | |
d7040cdb | 9321 | |
d7040cdb | 9322 | |
d7040cdb | 9323 | |
d7040cdb | 9324 | |
d7040cdb | 9325 | |
d7040cdb | 9326 | |
d7040cdb | 9327 | |
d7040cdb | 9328 | |
d7040cdb | 9329 | |
d7040cdb | 9330 | |
d7040cdb | 9331 | |
d7040cdb | 9332 | |
d7040cdb | 9333 | |
ce2cded5 L |
9334 | # |
9335 | # Do we need to explicitly link libc? | |
9336 | # | |
9337 | case "x$archive_cmds_need_lc" in | |
9338 | x|xyes) | |
9339 | # Assume -lc should be added | |
9340 | archive_cmds_need_lc=yes | |
d7040cdb | 9341 | |
ce2cded5 L |
9342 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9343 | case $archive_cmds in | |
9344 | *'~'*) | |
9345 | # FIXME: we may have to deal with multi-command sequences. | |
9346 | ;; | |
9347 | '$CC '*) | |
9348 | # Test whether the compiler implicitly links with -lc since on some | |
9349 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9350 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9352 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 9353 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
81ecdfbb | 9354 | $as_echo_n "(cached) " >&6 |
39144654 RW |
9355 | else |
9356 | $RM conftest* | |
9357 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9358 | |
81ecdfbb | 9359 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
9360 | (eval $ac_compile) 2>&5 |
9361 | ac_status=$? | |
81ecdfbb RW |
9362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9363 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9364 | soname=conftest |
9365 | lib=conftest | |
9366 | libobjs=conftest.$ac_objext | |
9367 | deplibs= | |
9368 | wl=$lt_prog_compiler_wl | |
9369 | pic_flag=$lt_prog_compiler_pic | |
9370 | compiler_flags=-v | |
9371 | linker_flags=-v | |
9372 | verstring= | |
9373 | output_objdir=. | |
9374 | libname=conftest | |
9375 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9376 | allow_undefined_flag= | |
81ecdfbb | 9377 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
9378 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9379 | ac_status=$? | |
81ecdfbb RW |
9380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9381 | test $ac_status = 0; } | |
39144654 RW |
9382 | then |
9383 | lt_cv_archive_cmds_need_lc=no | |
9384 | else | |
9385 | lt_cv_archive_cmds_need_lc=yes | |
9386 | fi | |
9387 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9388 | else | |
9389 | cat conftest.err 1>&5 | |
9390 | fi | |
9391 | $RM conftest* | |
9392 | ||
9393 | fi | |
81ecdfbb RW |
9394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9395 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9396 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
9397 | ;; |
9398 | esac | |
d7040cdb | 9399 | fi |
d7040cdb | 9400 | ;; |
ce2cded5 | 9401 | esac |
d7040cdb | 9402 | |
d7040cdb | 9403 | |
d7040cdb | 9404 | |
d7040cdb | 9405 | |
d7040cdb | 9406 | |
d7040cdb | 9407 | |
d7040cdb | 9408 | |
d7040cdb SE |
9409 | |
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | ||
9452 | ||
9453 | ||
9454 | ||
9455 | ||
9456 | ||
9457 | ||
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9468 | ||
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9481 | ||
9482 | ||
9483 | ||
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | ||
9495 | ||
d7040cdb | 9496 | |
d7040cdb | 9497 | |
d7040cdb SE |
9498 | |
9499 | ||
9500 | ||
9501 | ||
9502 | ||
9503 | ||
d7040cdb | 9504 | |
d7040cdb | 9505 | |
d7040cdb | 9506 | |
d7040cdb | 9507 | |
d7040cdb | 9508 | |
d7040cdb | 9509 | |
d7040cdb | 9510 | |
d7040cdb | 9511 | |
d7040cdb | 9512 | |
d7040cdb | 9513 | |
d7040cdb | 9514 | |
d7040cdb | 9515 | |
d7040cdb | 9516 | |
d7040cdb | 9517 | |
d7040cdb | 9518 | |
d7040cdb | 9519 | |
d7040cdb | 9520 | |
d7040cdb | 9521 | |
d7040cdb | 9522 | |
d7040cdb | 9523 | |
d7040cdb | 9524 | |
d7040cdb | 9525 | |
d7040cdb | 9526 | |
ce2cded5 L |
9527 | |
9528 | ||
9529 | ||
9530 | ||
9531 | ||
9532 | ||
9533 | ||
9534 | ||
9535 | ||
9536 | ||
9537 | ||
9538 | ||
9539 | ||
9540 | ||
9541 | ||
9542 | ||
9543 | ||
9544 | ||
9545 | ||
9546 | ||
9547 | ||
9548 | ||
9549 | ||
9550 | ||
9551 | ||
9552 | ||
9553 | ||
9554 | ||
9555 | ||
9556 | ||
9557 | ||
9558 | ||
81ecdfbb RW |
9559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9560 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
718a6fd8 SE |
9561 | |
9562 | if test "$GCC" = yes; then | |
ce2cded5 L |
9563 | case $host_os in |
9564 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9565 | *) lt_awk_arg="/^libraries:/" ;; | |
9566 | esac | |
3725885a RW |
9567 | case $host_os in |
9568 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9569 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9570 | esac | |
9571 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9572 | case $lt_search_path_spec in | |
9573 | *\;*) | |
ce2cded5 L |
9574 | # if the path contains ";" then we assume it to be the separator |
9575 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9576 | # assumed that no part of a normal pathname contains ";" but that should | |
9577 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
9578 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9579 | ;; | |
9580 | *) | |
9581 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9582 | ;; | |
9583 | esac | |
ce2cded5 L |
9584 | # Ok, now we have the path, separated by spaces, we can step through it |
9585 | # and add multilib dir if necessary. | |
9586 | lt_tmp_lt_search_path_spec= | |
9587 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9588 | for lt_sys_path in $lt_search_path_spec; do | |
9589 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9590 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9591 | else | |
9592 | test -d "$lt_sys_path" && \ | |
9593 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9594 | fi | |
9595 | done | |
3725885a | 9596 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
9597 | BEGIN {RS=" "; FS="/|\n";} { |
9598 | lt_foo=""; | |
9599 | lt_count=0; | |
9600 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9601 | if ($lt_i != "" && $lt_i != ".") { | |
9602 | if ($lt_i == "..") { | |
9603 | lt_count++; | |
9604 | } else { | |
9605 | if (lt_count == 0) { | |
9606 | lt_foo="/" $lt_i lt_foo; | |
9607 | } else { | |
9608 | lt_count--; | |
9609 | } | |
9610 | } | |
9611 | } | |
9612 | } | |
9613 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9614 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9615 | }'` | |
3725885a RW |
9616 | # AWK program above erroneously prepends '/' to C:/dos/paths |
9617 | # for these hosts. | |
9618 | case $host_os in | |
9619 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9620 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9621 | esac | |
9622 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 9623 | else |
ce2cded5 L |
9624 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
9625 | fi | |
9626 | library_names_spec= | |
9627 | libname_spec='lib$name' | |
9628 | soname_spec= | |
9629 | shrext_cmds=".so" | |
9630 | postinstall_cmds= | |
9631 | postuninstall_cmds= | |
9632 | finish_cmds= | |
9633 | finish_eval= | |
9634 | shlibpath_var= | |
9635 | shlibpath_overrides_runpath=unknown | |
9636 | version_type=none | |
9637 | dynamic_linker="$host_os ld.so" | |
9638 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9639 | need_lib_prefix=unknown | |
9640 | hardcode_into_libs=no | |
9641 | ||
9642 | # when you set need_version to no, make sure it does not cause -set_version | |
9643 | # flags to be left without arguments | |
9644 | need_version=unknown | |
9645 | ||
9646 | case $host_os in | |
9647 | aix3*) | |
9648 | version_type=linux | |
9649 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9650 | shlibpath_var=LIBPATH | |
9651 | ||
9652 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9653 | soname_spec='${libname}${release}${shared_ext}$major' | |
9654 | ;; | |
9655 | ||
50e7d84b | 9656 | aix[4-9]*) |
ce2cded5 L |
9657 | version_type=linux |
9658 | need_lib_prefix=no | |
9659 | need_version=no | |
9660 | hardcode_into_libs=yes | |
9661 | if test "$host_cpu" = ia64; then | |
9662 | # AIX 5 supports IA64 | |
9663 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9664 | shlibpath_var=LD_LIBRARY_PATH | |
9665 | else | |
9666 | # With GCC up to 2.95.x, collect2 would create an import file | |
9667 | # for dependence libraries. The import file would start with | |
9668 | # the line `#! .'. This would cause the generated library to | |
9669 | # depend on `.', always an invalid library. This was fixed in | |
9670 | # development snapshots of GCC prior to 3.0. | |
9671 | case $host_os in | |
9672 | aix4 | aix4.[01] | aix4.[01].*) | |
9673 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9674 | echo ' yes ' | |
9675 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9676 | : | |
9677 | else | |
9678 | can_build_shared=no | |
9679 | fi | |
9680 | ;; | |
9681 | esac | |
9682 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9683 | # soname into executable. Probably we can add versioning support to | |
9684 | # collect2, so additional links can be useful in future. | |
9685 | if test "$aix_use_runtimelinking" = yes; then | |
9686 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9687 | # instead of lib<name>.a to let people know that these are not | |
9688 | # typical AIX shared libraries. | |
9689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9690 | else | |
9691 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9692 | # and later when we are not doing run time linking. | |
9693 | library_names_spec='${libname}${release}.a $libname.a' | |
9694 | soname_spec='${libname}${release}${shared_ext}$major' | |
9695 | fi | |
9696 | shlibpath_var=LIBPATH | |
9697 | fi | |
9698 | ;; | |
9699 | ||
9700 | amigaos*) | |
718a6fd8 SE |
9701 | case $host_cpu in |
9702 | powerpc) | |
9703 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9704 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9706 | ;; | |
9707 | m68k) | |
ce2cded5 L |
9708 | library_names_spec='$libname.ixlibrary $libname.a' |
9709 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 9710 | 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 |
9711 | ;; |
9712 | esac | |
ce2cded5 L |
9713 | ;; |
9714 | ||
9715 | beos*) | |
9716 | library_names_spec='${libname}${shared_ext}' | |
9717 | dynamic_linker="$host_os ld.so" | |
9718 | shlibpath_var=LIBRARY_PATH | |
9719 | ;; | |
9720 | ||
9721 | bsdi[45]*) | |
9722 | version_type=linux | |
9723 | need_version=no | |
9724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9725 | soname_spec='${libname}${release}${shared_ext}$major' | |
9726 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9727 | shlibpath_var=LD_LIBRARY_PATH | |
9728 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9729 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9730 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9731 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9732 | # libtool to hard-code these into programs | |
9733 | ;; | |
9734 | ||
718a6fd8 | 9735 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9736 | version_type=windows |
9737 | shrext_cmds=".dll" | |
9738 | need_version=no | |
9739 | need_lib_prefix=no | |
9740 | ||
f2c621e4 AS |
9741 | case $GCC,$host_os in |
9742 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
9743 | library_names_spec='$libname.dll.a' |
9744 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9745 | postinstall_cmds='base_file=`basename \${file}`~ | |
9746 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9747 | dldir=$destdir/`dirname \$dlpath`~ | |
9748 | test -d \$dldir || mkdir -p \$dldir~ | |
9749 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9750 | chmod a+x \$dldir/$dlname~ | |
9751 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9752 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9753 | fi' | |
9754 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9755 | dlpath=$dir/\$dldll~ | |
9756 | $RM \$dlpath' | |
9757 | shlibpath_overrides_runpath=yes | |
9758 | ||
9759 | case $host_os in | |
9760 | cygwin*) | |
9761 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9762 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
9763 | |
9764 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 9765 | ;; |
718a6fd8 | 9766 | mingw* | cegcc*) |
ce2cded5 L |
9767 | # MinGW DLLs use traditional 'lib' prefix |
9768 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
9769 | ;; |
9770 | pw32*) | |
9771 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9772 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9773 | ;; | |
9774 | esac | |
9775 | ;; | |
9776 | ||
9777 | *) | |
9778 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9779 | ;; | |
9780 | esac | |
f2c621e4 | 9781 | dynamic_linker='Win32 ld.exe' |
ce2cded5 L |
9782 | # FIXME: first we should search . and the directory the executable is in |
9783 | shlibpath_var=PATH | |
9784 | ;; | |
9785 | ||
9786 | darwin* | rhapsody*) | |
9787 | dynamic_linker="$host_os dyld" | |
9788 | version_type=darwin | |
9789 | need_lib_prefix=no | |
9790 | need_version=no | |
9791 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9792 | soname_spec='${libname}${release}${major}$shared_ext' | |
9793 | shlibpath_overrides_runpath=yes | |
9794 | shlibpath_var=DYLD_LIBRARY_PATH | |
9795 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9796 | ||
9797 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9798 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9799 | ;; | |
9800 | ||
9801 | dgux*) | |
9802 | version_type=linux | |
9803 | need_lib_prefix=no | |
9804 | need_version=no | |
9805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9806 | soname_spec='${libname}${release}${shared_ext}$major' | |
9807 | shlibpath_var=LD_LIBRARY_PATH | |
9808 | ;; | |
9809 | ||
ce2cded5 L |
9810 | freebsd* | dragonfly*) |
9811 | # DragonFly does not have aout. When/if they implement a new | |
9812 | # versioning mechanism, adjust this. | |
9813 | if test -x /usr/bin/objformat; then | |
9814 | objformat=`/usr/bin/objformat` | |
9815 | else | |
9816 | case $host_os in | |
6d2920c8 | 9817 | freebsd[23].*) objformat=aout ;; |
ce2cded5 L |
9818 | *) objformat=elf ;; |
9819 | esac | |
9820 | fi | |
9821 | version_type=freebsd-$objformat | |
9822 | case $version_type in | |
9823 | freebsd-elf*) | |
9824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9825 | need_version=no | |
9826 | need_lib_prefix=no | |
9827 | ;; | |
9828 | freebsd-*) | |
9829 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9830 | need_version=yes | |
9831 | ;; | |
9832 | esac | |
9833 | shlibpath_var=LD_LIBRARY_PATH | |
9834 | case $host_os in | |
6d2920c8 | 9835 | freebsd2.*) |
ce2cded5 L |
9836 | shlibpath_overrides_runpath=yes |
9837 | ;; | |
9838 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9839 | shlibpath_overrides_runpath=yes | |
9840 | hardcode_into_libs=yes | |
9841 | ;; | |
9842 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9843 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9844 | shlibpath_overrides_runpath=no | |
9845 | hardcode_into_libs=yes | |
9846 | ;; | |
9847 | *) # from 4.6 on, and DragonFly | |
9848 | shlibpath_overrides_runpath=yes | |
9849 | hardcode_into_libs=yes | |
9850 | ;; | |
9851 | esac | |
9852 | ;; | |
9853 | ||
3725885a RW |
9854 | haiku*) |
9855 | version_type=linux | |
9856 | need_lib_prefix=no | |
9857 | need_version=no | |
9858 | dynamic_linker="$host_os runtime_loader" | |
9859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9860 | soname_spec='${libname}${release}${shared_ext}$major' | |
9861 | shlibpath_var=LIBRARY_PATH | |
9862 | shlibpath_overrides_runpath=yes | |
f2c621e4 | 9863 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' |
3725885a RW |
9864 | hardcode_into_libs=yes |
9865 | ;; | |
9866 | ||
ce2cded5 L |
9867 | hpux9* | hpux10* | hpux11*) |
9868 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9869 | # link against other versions. | |
9870 | version_type=sunos | |
9871 | need_lib_prefix=no | |
9872 | need_version=no | |
9873 | case $host_cpu in | |
9874 | ia64*) | |
9875 | shrext_cmds='.so' | |
9876 | hardcode_into_libs=yes | |
9877 | dynamic_linker="$host_os dld.so" | |
9878 | shlibpath_var=LD_LIBRARY_PATH | |
9879 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9881 | soname_spec='${libname}${release}${shared_ext}$major' | |
9882 | if test "X$HPUX_IA64_MODE" = X32; then | |
9883 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9884 | else | |
9885 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9886 | fi | |
9887 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9888 | ;; | |
9889 | hppa*64*) | |
9890 | shrext_cmds='.sl' | |
9891 | hardcode_into_libs=yes | |
9892 | dynamic_linker="$host_os dld.sl" | |
9893 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9894 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9896 | soname_spec='${libname}${release}${shared_ext}$major' | |
9897 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9898 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9899 | ;; | |
9900 | *) | |
9901 | shrext_cmds='.sl' | |
9902 | dynamic_linker="$host_os dld.sl" | |
9903 | shlibpath_var=SHLIB_PATH | |
9904 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9906 | soname_spec='${libname}${release}${shared_ext}$major' | |
9907 | ;; | |
9908 | esac | |
3725885a | 9909 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 9910 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
9911 | # or fails outright, so override atomically: |
9912 | install_override_mode=555 | |
ce2cded5 L |
9913 | ;; |
9914 | ||
9915 | interix[3-9]*) | |
9916 | version_type=linux | |
9917 | need_lib_prefix=no | |
9918 | need_version=no | |
9919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9920 | soname_spec='${libname}${release}${shared_ext}$major' | |
9921 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9922 | shlibpath_var=LD_LIBRARY_PATH | |
9923 | shlibpath_overrides_runpath=no | |
9924 | hardcode_into_libs=yes | |
9925 | ;; | |
9926 | ||
9927 | irix5* | irix6* | nonstopux*) | |
9928 | case $host_os in | |
9929 | nonstopux*) version_type=nonstopux ;; | |
9930 | *) | |
9931 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9932 | version_type=linux | |
9933 | else | |
9934 | version_type=irix | |
9935 | fi ;; | |
9936 | esac | |
9937 | need_lib_prefix=no | |
9938 | need_version=no | |
9939 | soname_spec='${libname}${release}${shared_ext}$major' | |
9940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9941 | case $host_os in | |
9942 | irix5* | nonstopux*) | |
9943 | libsuff= shlibsuff= | |
9944 | ;; | |
9945 | *) | |
9946 | case $LD in # libtool.m4 will add one of these switches to LD | |
9947 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9948 | libsuff= shlibsuff= libmagic=32-bit;; | |
9949 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9950 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9951 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9952 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9953 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9954 | esac | |
9955 | ;; | |
9956 | esac | |
9957 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9958 | shlibpath_overrides_runpath=no | |
9959 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9960 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9961 | hardcode_into_libs=yes | |
9962 | ;; | |
d7040cdb | 9963 | |
ce2cded5 L |
9964 | # No shared lib support for Linux oldld, aout, or coff. |
9965 | linux*oldld* | linux*aout* | linux*coff*) | |
9966 | dynamic_linker=no | |
9967 | ;; | |
9968 | ||
9969 | # This must be Linux ELF. | |
f4782128 | 9970 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
ce2cded5 L |
9971 | version_type=linux |
9972 | need_lib_prefix=no | |
9973 | need_version=no | |
9974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9975 | soname_spec='${libname}${release}${shared_ext}$major' | |
9976 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9977 | shlibpath_var=LD_LIBRARY_PATH | |
9978 | shlibpath_overrides_runpath=no | |
39144654 | 9979 | |
ce2cded5 | 9980 | # Some binutils ld are patched to set DT_RUNPATH |
d0ac1c44 | 9981 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
81ecdfbb | 9982 | $as_echo_n "(cached) " >&6 |
39144654 RW |
9983 | else |
9984 | lt_cv_shlibpath_overrides_runpath=no | |
9985 | save_LDFLAGS=$LDFLAGS | |
9986 | save_libdir=$libdir | |
9987 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9988 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 9989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
9990 | /* end confdefs.h. */ |
9991 | ||
d7040cdb SE |
9992 | int |
9993 | main () | |
9994 | { | |
ce2cded5 | 9995 | |
d7040cdb SE |
9996 | ; |
9997 | return 0; | |
9998 | } | |
9999 | _ACEOF | |
81ecdfbb RW |
10000 | if ac_fn_c_try_link "$LINENO"; then : |
10001 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10002 | lt_cv_shlibpath_overrides_runpath=yes |
ce2cded5 | 10003 | fi |
ce2cded5 | 10004 | fi |
81ecdfbb RW |
10005 | rm -f core conftest.err conftest.$ac_objext \ |
10006 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10007 | LDFLAGS=$save_LDFLAGS |
10008 | libdir=$save_libdir | |
10009 | ||
10010 | fi | |
10011 | ||
10012 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
ce2cded5 L |
10013 | |
10014 | # This implies no fast_install, which is unacceptable. | |
10015 | # Some rework will be needed to allow for fast_install | |
10016 | # before this can be enabled. | |
10017 | hardcode_into_libs=yes | |
10018 | ||
10019 | # Append ld.so.conf contents to the search path | |
10020 | if test -f /etc/ld.so.conf; then | |
3725885a | 10021 | 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 | 10022 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
ce2cded5 L |
10023 | fi |
10024 | ||
10025 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10026 | # powerpc, because MkLinux only supported shared libraries with the | |
10027 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10028 | # most powerpc-linux boxes support dynamic linking these days and | |
10029 | # people can always --disable-shared, the test was removed, and we | |
10030 | # assume the GNU/Linux dynamic linker is in use. | |
10031 | dynamic_linker='GNU/Linux ld.so' | |
10032 | ;; | |
10033 | ||
10034 | netbsd*) | |
10035 | version_type=sunos | |
10036 | need_lib_prefix=no | |
10037 | need_version=no | |
10038 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10040 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10041 | dynamic_linker='NetBSD (a.out) ld.so' | |
10042 | else | |
10043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10044 | soname_spec='${libname}${release}${shared_ext}$major' | |
10045 | dynamic_linker='NetBSD ld.elf_so' | |
10046 | fi | |
10047 | shlibpath_var=LD_LIBRARY_PATH | |
10048 | shlibpath_overrides_runpath=yes | |
10049 | hardcode_into_libs=yes | |
10050 | ;; | |
10051 | ||
10052 | newsos6) | |
10053 | version_type=linux | |
10054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10055 | shlibpath_var=LD_LIBRARY_PATH | |
10056 | shlibpath_overrides_runpath=yes | |
10057 | ;; | |
10058 | ||
10059 | *nto* | *qnx*) | |
10060 | version_type=qnx | |
10061 | need_lib_prefix=no | |
10062 | need_version=no | |
10063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10064 | soname_spec='${libname}${release}${shared_ext}$major' | |
10065 | shlibpath_var=LD_LIBRARY_PATH | |
10066 | shlibpath_overrides_runpath=no | |
10067 | hardcode_into_libs=yes | |
10068 | dynamic_linker='ldqnx.so' | |
10069 | ;; | |
10070 | ||
10071 | openbsd*) | |
10072 | version_type=sunos | |
10073 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10074 | need_lib_prefix=no | |
10075 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10076 | case $host_os in | |
10077 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10078 | *) need_version=no ;; | |
10079 | esac | |
10080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10081 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10082 | shlibpath_var=LD_LIBRARY_PATH | |
10083 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10084 | case $host_os in | |
10085 | openbsd2.[89] | openbsd2.[89].*) | |
10086 | shlibpath_overrides_runpath=no | |
10087 | ;; | |
10088 | *) | |
10089 | shlibpath_overrides_runpath=yes | |
10090 | ;; | |
10091 | esac | |
10092 | else | |
10093 | shlibpath_overrides_runpath=yes | |
10094 | fi | |
10095 | ;; | |
10096 | ||
10097 | os2*) | |
10098 | libname_spec='$name' | |
10099 | shrext_cmds=".dll" | |
10100 | need_lib_prefix=no | |
10101 | library_names_spec='$libname${shared_ext} $libname.a' | |
10102 | dynamic_linker='OS/2 ld.exe' | |
10103 | shlibpath_var=LIBPATH | |
10104 | ;; | |
10105 | ||
10106 | osf3* | osf4* | osf5*) | |
10107 | version_type=osf | |
10108 | need_lib_prefix=no | |
10109 | need_version=no | |
10110 | soname_spec='${libname}${release}${shared_ext}$major' | |
10111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10112 | shlibpath_var=LD_LIBRARY_PATH | |
10113 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10114 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10115 | ;; | |
10116 | ||
10117 | rdos*) | |
10118 | dynamic_linker=no | |
10119 | ;; | |
10120 | ||
10121 | solaris*) | |
10122 | version_type=linux | |
10123 | need_lib_prefix=no | |
10124 | need_version=no | |
10125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10126 | soname_spec='${libname}${release}${shared_ext}$major' | |
10127 | shlibpath_var=LD_LIBRARY_PATH | |
10128 | shlibpath_overrides_runpath=yes | |
10129 | hardcode_into_libs=yes | |
10130 | # ldd complains unless libraries are executable | |
10131 | postinstall_cmds='chmod +x $lib' | |
10132 | ;; | |
10133 | ||
10134 | sunos4*) | |
10135 | version_type=sunos | |
10136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10137 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10138 | shlibpath_var=LD_LIBRARY_PATH | |
10139 | shlibpath_overrides_runpath=yes | |
10140 | if test "$with_gnu_ld" = yes; then | |
10141 | need_lib_prefix=no | |
10142 | fi | |
10143 | need_version=yes | |
10144 | ;; | |
10145 | ||
10146 | sysv4 | sysv4.3*) | |
10147 | version_type=linux | |
10148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10149 | soname_spec='${libname}${release}${shared_ext}$major' | |
10150 | shlibpath_var=LD_LIBRARY_PATH | |
10151 | case $host_vendor in | |
10152 | sni) | |
10153 | shlibpath_overrides_runpath=no | |
10154 | need_lib_prefix=no | |
10155 | runpath_var=LD_RUN_PATH | |
10156 | ;; | |
10157 | siemens) | |
10158 | need_lib_prefix=no | |
10159 | ;; | |
10160 | motorola) | |
10161 | need_lib_prefix=no | |
10162 | need_version=no | |
10163 | shlibpath_overrides_runpath=no | |
10164 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10165 | ;; | |
10166 | esac | |
10167 | ;; | |
10168 | ||
10169 | sysv4*MP*) | |
10170 | if test -d /usr/nec ;then | |
10171 | version_type=linux | |
10172 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10173 | soname_spec='$libname${shared_ext}.$major' | |
10174 | shlibpath_var=LD_LIBRARY_PATH | |
10175 | fi | |
10176 | ;; | |
10177 | ||
10178 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10179 | version_type=freebsd-elf | |
10180 | need_lib_prefix=no | |
10181 | need_version=no | |
10182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10183 | soname_spec='${libname}${release}${shared_ext}$major' | |
10184 | shlibpath_var=LD_LIBRARY_PATH | |
10185 | shlibpath_overrides_runpath=yes | |
10186 | hardcode_into_libs=yes | |
10187 | if test "$with_gnu_ld" = yes; then | |
10188 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10189 | else | |
10190 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10191 | case $host_os in | |
10192 | sco3.2v5*) | |
10193 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10194 | ;; | |
10195 | esac | |
10196 | fi | |
10197 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10198 | ;; | |
10199 | ||
10200 | tpf*) | |
10201 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10202 | version_type=linux | |
10203 | need_lib_prefix=no | |
10204 | need_version=no | |
718a6fd8 | 10205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
10206 | shlibpath_var=LD_LIBRARY_PATH |
10207 | shlibpath_overrides_runpath=no | |
10208 | hardcode_into_libs=yes | |
10209 | ;; | |
d7040cdb | 10210 | |
ce2cded5 L |
10211 | uts4*) |
10212 | version_type=linux | |
10213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10214 | soname_spec='${libname}${release}${shared_ext}$major' | |
10215 | shlibpath_var=LD_LIBRARY_PATH | |
10216 | ;; | |
d7040cdb | 10217 | |
ce2cded5 L |
10218 | *) |
10219 | dynamic_linker=no | |
10220 | ;; | |
10221 | esac | |
81ecdfbb RW |
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10223 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
10224 | test "$dynamic_linker" = no && can_build_shared=no |
10225 | ||
10226 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10227 | if test "$GCC" = yes; then | |
10228 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10229 | fi |
d7040cdb | 10230 | |
718a6fd8 SE |
10231 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10232 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10233 | fi | |
10234 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10235 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10236 | fi | |
10237 | ||
d7040cdb | 10238 | |
d7040cdb SE |
10239 | |
10240 | ||
d7040cdb SE |
10241 | |
10242 | ||
d7040cdb SE |
10243 | |
10244 | ||
d7040cdb SE |
10245 | |
10246 | ||
d7040cdb SE |
10247 | |
10248 | ||
d7040cdb | 10249 | |
d7040cdb | 10250 | |
d7040cdb | 10251 | |
d7040cdb | 10252 | |
d7040cdb | 10253 | |
d7040cdb | 10254 | |
d7040cdb | 10255 | |
d7040cdb | 10256 | |
d7040cdb | 10257 | |
d7040cdb | 10258 | |
d7040cdb | 10259 | |
d7040cdb | 10260 | |
d7040cdb | 10261 | |
d7040cdb | 10262 | |
d7040cdb SE |
10263 | |
10264 | ||
d7040cdb | 10265 | |
d7040cdb | 10266 | |
d7040cdb | 10267 | |
d7040cdb | 10268 | |
d7040cdb | 10269 | |
d7040cdb | 10270 | |
d7040cdb | 10271 | |
d7040cdb | 10272 | |
d7040cdb | 10273 | |
d7040cdb SE |
10274 | |
10275 | ||
d7040cdb | 10276 | |
d7040cdb | 10277 | |
d7040cdb | 10278 | |
d7040cdb SE |
10279 | |
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
d7040cdb SE |
10296 | |
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
d7040cdb | 10308 | |
d7040cdb | 10309 | |
d7040cdb | 10310 | |
d7040cdb | 10311 | |
d7040cdb SE |
10312 | |
10313 | ||
10314 | ||
10315 | ||
ce2cded5 L |
10316 | |
10317 | ||
3725885a RW |
10318 | |
10319 | ||
10320 | ||
10321 | ||
10322 | ||
ce2cded5 L |
10323 | |
10324 | ||
10325 | ||
10326 | ||
10327 | ||
10328 | ||
81ecdfbb RW |
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10330 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
10331 | hardcode_action= |
10332 | if test -n "$hardcode_libdir_flag_spec" || | |
10333 | test -n "$runpath_var" || | |
10334 | test "X$hardcode_automatic" = "Xyes" ; then | |
10335 | ||
10336 | # We can hardcode non-existent directories. | |
10337 | if test "$hardcode_direct" != no && | |
10338 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10339 | # have to relink, otherwise we might link with an installed library | |
10340 | # when we should be linking with a yet-to-be-installed one | |
10341 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10342 | test "$hardcode_minus_L" != no; then | |
10343 | # Linking always hardcodes the temporary library directory. | |
10344 | hardcode_action=relink | |
10345 | else | |
10346 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10347 | hardcode_action=immediate | |
10348 | fi | |
10349 | else | |
10350 | # We cannot hardcode anything, or else we can only hardcode existing | |
10351 | # directories. | |
10352 | hardcode_action=unsupported | |
10353 | fi | |
81ecdfbb RW |
10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10355 | $as_echo "$hardcode_action" >&6; } | |
ce2cded5 L |
10356 | |
10357 | if test "$hardcode_action" = relink || | |
10358 | test "$inherit_rpath" = yes; then | |
10359 | # Fast installation is not supported | |
10360 | enable_fast_install=no | |
10361 | elif test "$shlibpath_overrides_runpath" = yes || | |
10362 | test "$enable_shared" = no; then | |
10363 | # Fast installation is not necessary | |
10364 | enable_fast_install=needless | |
d7040cdb | 10365 | fi |
d7040cdb | 10366 | |
d7040cdb SE |
10367 | |
10368 | ||
10369 | ||
10370 | ||
10371 | ||
ce2cded5 L |
10372 | if test "x$enable_dlopen" != xyes; then |
10373 | enable_dlopen=unknown | |
10374 | enable_dlopen_self=unknown | |
10375 | enable_dlopen_self_static=unknown | |
10376 | else | |
10377 | lt_cv_dlopen=no | |
10378 | lt_cv_dlopen_libs= | |
10379 | ||
10380 | case $host_os in | |
10381 | beos*) | |
10382 | lt_cv_dlopen="load_add_on" | |
10383 | lt_cv_dlopen_libs= | |
10384 | lt_cv_dlopen_self=yes | |
10385 | ;; | |
d7040cdb | 10386 | |
718a6fd8 | 10387 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10388 | lt_cv_dlopen="LoadLibrary" |
10389 | lt_cv_dlopen_libs= | |
10390 | ;; | |
d7040cdb | 10391 | |
ce2cded5 L |
10392 | cygwin*) |
10393 | lt_cv_dlopen="dlopen" | |
10394 | lt_cv_dlopen_libs= | |
10395 | ;; | |
d7040cdb | 10396 | |
ce2cded5 L |
10397 | darwin*) |
10398 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10400 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10401 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10402 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
10403 | else |
10404 | ac_check_lib_save_LIBS=$LIBS | |
10405 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10407 | /* end confdefs.h. */ |
d7040cdb | 10408 | |
81ecdfbb RW |
10409 | /* Override any GCC internal prototype to avoid an error. |
10410 | Use char because int might match the return type of a GCC | |
10411 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10412 | #ifdef __cplusplus |
10413 | extern "C" | |
10414 | #endif | |
ce2cded5 L |
10415 | char dlopen (); |
10416 | int | |
10417 | main () | |
10418 | { | |
81ecdfbb | 10419 | return dlopen (); |
ce2cded5 L |
10420 | ; |
10421 | return 0; | |
10422 | } | |
10423 | _ACEOF | |
81ecdfbb | 10424 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10425 | ac_cv_lib_dl_dlopen=yes |
10426 | else | |
81ecdfbb | 10427 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 10428 | fi |
81ecdfbb RW |
10429 | rm -f core conftest.err conftest.$ac_objext \ |
10430 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10431 | LIBS=$ac_check_lib_save_LIBS |
10432 | fi | |
81ecdfbb RW |
10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10434 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10435 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
ce2cded5 L |
10436 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10437 | else | |
d7040cdb | 10438 | |
ce2cded5 L |
10439 | lt_cv_dlopen="dyld" |
10440 | lt_cv_dlopen_libs= | |
10441 | lt_cv_dlopen_self=yes | |
d7040cdb | 10442 | |
ce2cded5 | 10443 | fi |
d7040cdb | 10444 | |
ce2cded5 | 10445 | ;; |
d7040cdb | 10446 | |
ce2cded5 | 10447 | *) |
81ecdfbb | 10448 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
d0ac1c44 | 10449 | if test "x$ac_cv_func_shl_load" = xyes; then : |
ce2cded5 L |
10450 | lt_cv_dlopen="shl_load" |
10451 | else | |
81ecdfbb RW |
10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10453 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 10454 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
81ecdfbb | 10455 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
10456 | else |
10457 | ac_check_lib_save_LIBS=$LIBS | |
10458 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10460 | /* end confdefs.h. */ |
d7040cdb | 10461 | |
81ecdfbb RW |
10462 | /* Override any GCC internal prototype to avoid an error. |
10463 | Use char because int might match the return type of a GCC | |
10464 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10465 | #ifdef __cplusplus |
10466 | extern "C" | |
10467 | #endif | |
ce2cded5 L |
10468 | char shl_load (); |
10469 | int | |
10470 | main () | |
10471 | { | |
81ecdfbb | 10472 | return shl_load (); |
ce2cded5 L |
10473 | ; |
10474 | return 0; | |
10475 | } | |
d7040cdb | 10476 | _ACEOF |
81ecdfbb | 10477 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10478 | ac_cv_lib_dld_shl_load=yes |
10479 | else | |
81ecdfbb | 10480 | ac_cv_lib_dld_shl_load=no |
d7040cdb | 10481 | fi |
81ecdfbb RW |
10482 | rm -f core conftest.err conftest.$ac_objext \ |
10483 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10484 | LIBS=$ac_check_lib_save_LIBS |
10485 | fi | |
81ecdfbb RW |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10487 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 10488 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
718a6fd8 | 10489 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 10490 | else |
81ecdfbb | 10491 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
d0ac1c44 | 10492 | if test "x$ac_cv_func_dlopen" = xyes; then : |
ce2cded5 L |
10493 | lt_cv_dlopen="dlopen" |
10494 | else | |
81ecdfbb RW |
10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10496 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10497 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10498 | $as_echo_n "(cached) " >&6 |
d7040cdb | 10499 | else |
ce2cded5 L |
10500 | ac_check_lib_save_LIBS=$LIBS |
10501 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10503 | /* end confdefs.h. */ |
d7040cdb | 10504 | |
81ecdfbb RW |
10505 | /* Override any GCC internal prototype to avoid an error. |
10506 | Use char because int might match the return type of a GCC | |
10507 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10508 | #ifdef __cplusplus |
10509 | extern "C" | |
10510 | #endif | |
ce2cded5 | 10511 | char dlopen (); |
d7040cdb SE |
10512 | int |
10513 | main () | |
10514 | { | |
81ecdfbb | 10515 | return dlopen (); |
d7040cdb SE |
10516 | ; |
10517 | return 0; | |
10518 | } | |
10519 | _ACEOF | |
81ecdfbb | 10520 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10521 | ac_cv_lib_dl_dlopen=yes |
10522 | else | |
81ecdfbb | 10523 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 10524 | fi |
81ecdfbb RW |
10525 | rm -f core conftest.err conftest.$ac_objext \ |
10526 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10527 | LIBS=$ac_check_lib_save_LIBS |
10528 | fi | |
81ecdfbb RW |
10529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10530 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10531 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
ce2cded5 L |
10532 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10533 | else | |
81ecdfbb RW |
10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10535 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 10536 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
81ecdfbb | 10537 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
10538 | else |
10539 | ac_check_lib_save_LIBS=$LIBS | |
10540 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 10541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10542 | /* end confdefs.h. */ |
d7040cdb | 10543 | |
81ecdfbb RW |
10544 | /* Override any GCC internal prototype to avoid an error. |
10545 | Use char because int might match the return type of a GCC | |
10546 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10547 | #ifdef __cplusplus |
10548 | extern "C" | |
10549 | #endif | |
ce2cded5 | 10550 | char dlopen (); |
d7040cdb SE |
10551 | int |
10552 | main () | |
10553 | { | |
81ecdfbb | 10554 | return dlopen (); |
d7040cdb SE |
10555 | ; |
10556 | return 0; | |
10557 | } | |
10558 | _ACEOF | |
81ecdfbb | 10559 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 10560 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 10561 | else |
81ecdfbb | 10562 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 10563 | fi |
81ecdfbb RW |
10564 | rm -f core conftest.err conftest.$ac_objext \ |
10565 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10566 | LIBS=$ac_check_lib_save_LIBS |
10567 | fi | |
81ecdfbb RW |
10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10569 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 10570 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
ce2cded5 L |
10571 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10572 | else | |
81ecdfbb RW |
10573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10574 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 10575 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
81ecdfbb | 10576 | $as_echo_n "(cached) " >&6 |
d7040cdb | 10577 | else |
ce2cded5 L |
10578 | ac_check_lib_save_LIBS=$LIBS |
10579 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10581 | /* end confdefs.h. */ |
ce2cded5 | 10582 | |
81ecdfbb RW |
10583 | /* Override any GCC internal prototype to avoid an error. |
10584 | Use char because int might match the return type of a GCC | |
10585 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10586 | #ifdef __cplusplus |
10587 | extern "C" | |
10588 | #endif | |
ce2cded5 | 10589 | char dld_link (); |
d7040cdb SE |
10590 | int |
10591 | main () | |
10592 | { | |
81ecdfbb | 10593 | return dld_link (); |
d7040cdb SE |
10594 | ; |
10595 | return 0; | |
10596 | } | |
10597 | _ACEOF | |
81ecdfbb | 10598 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10599 | ac_cv_lib_dld_dld_link=yes |
10600 | else | |
81ecdfbb | 10601 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 10602 | fi |
81ecdfbb RW |
10603 | rm -f core conftest.err conftest.$ac_objext \ |
10604 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10605 | LIBS=$ac_check_lib_save_LIBS |
10606 | fi | |
81ecdfbb RW |
10607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10608 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 10609 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
718a6fd8 | 10610 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
10611 | fi |
10612 | ||
10613 | ||
10614 | fi | |
10615 | ||
10616 | ||
10617 | fi | |
10618 | ||
10619 | ||
10620 | fi | |
10621 | ||
10622 | ||
10623 | fi | |
10624 | ||
10625 | ||
10626 | fi | |
10627 | ||
10628 | ;; | |
10629 | esac | |
10630 | ||
10631 | if test "x$lt_cv_dlopen" != xno; then | |
10632 | enable_dlopen=yes | |
d7040cdb | 10633 | else |
ce2cded5 | 10634 | enable_dlopen=no |
d7040cdb | 10635 | fi |
ce2cded5 L |
10636 | |
10637 | case $lt_cv_dlopen in | |
10638 | dlopen) | |
10639 | save_CPPFLAGS="$CPPFLAGS" | |
10640 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10641 | ||
10642 | save_LDFLAGS="$LDFLAGS" | |
10643 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10644 | ||
10645 | save_LIBS="$LIBS" | |
10646 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10647 | ||
81ecdfbb RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10649 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 10650 | if ${lt_cv_dlopen_self+:} false; then : |
81ecdfbb | 10651 | $as_echo_n "(cached) " >&6 |
d7040cdb | 10652 | else |
ce2cded5 L |
10653 | if test "$cross_compiling" = yes; then : |
10654 | lt_cv_dlopen_self=cross | |
10655 | else | |
10656 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10657 | lt_status=$lt_dlunknown | |
10658 | cat > conftest.$ac_ext <<_LT_EOF | |
23d61380 | 10659 | #line 10659 "configure" |
ce2cded5 L |
10660 | #include "confdefs.h" |
10661 | ||
10662 | #if HAVE_DLFCN_H | |
10663 | #include <dlfcn.h> | |
10664 | #endif | |
10665 | ||
10666 | #include <stdio.h> | |
10667 | ||
10668 | #ifdef RTLD_GLOBAL | |
10669 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10670 | #else | |
10671 | # ifdef DL_GLOBAL | |
10672 | # define LT_DLGLOBAL DL_GLOBAL | |
10673 | # else | |
10674 | # define LT_DLGLOBAL 0 | |
10675 | # endif | |
10676 | #endif | |
10677 | ||
10678 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10679 | find out it does not work in some platform. */ | |
10680 | #ifndef LT_DLLAZY_OR_NOW | |
10681 | # ifdef RTLD_LAZY | |
10682 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10683 | # else | |
10684 | # ifdef DL_LAZY | |
10685 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10686 | # else | |
10687 | # ifdef RTLD_NOW | |
10688 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10689 | # else | |
10690 | # ifdef DL_NOW | |
10691 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10692 | # else | |
10693 | # define LT_DLLAZY_OR_NOW 0 | |
10694 | # endif | |
10695 | # endif | |
10696 | # endif | |
10697 | # endif | |
10698 | #endif | |
10699 | ||
3725885a RW |
10700 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10701 | correspondingly for the symbols needed. */ | |
10702 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
f2c621e4 | 10703 | void fnord () __attribute__((visibility("default"))); |
3725885a RW |
10704 | #endif |
10705 | ||
f2c621e4 | 10706 | void fnord () { int i=42; } |
ce2cded5 L |
10707 | int main () |
10708 | { | |
10709 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10710 | int status = $lt_dlunknown; | |
10711 | ||
10712 | if (self) | |
10713 | { | |
10714 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
10715 | else |
10716 | { | |
10717 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10718 | else puts (dlerror ()); | |
10719 | } | |
ce2cded5 L |
10720 | /* dlclose (self); */ |
10721 | } | |
10722 | else | |
10723 | puts (dlerror ()); | |
10724 | ||
718a6fd8 | 10725 | return status; |
ce2cded5 L |
10726 | } |
10727 | _LT_EOF | |
81ecdfbb | 10728 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
10729 | (eval $ac_link) 2>&5 |
10730 | ac_status=$? | |
81ecdfbb RW |
10731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10732 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
10733 | (./conftest; exit; ) >&5 2>/dev/null |
10734 | lt_status=$? | |
10735 | case x$lt_status in | |
10736 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10737 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10738 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10739 | esac | |
10740 | else : | |
10741 | # compilation failed | |
10742 | lt_cv_dlopen_self=no | |
10743 | fi | |
10744 | fi | |
10745 | rm -fr conftest* | |
10746 | ||
d7040cdb SE |
10747 | |
10748 | fi | |
81ecdfbb RW |
10749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
10750 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
10751 | |
10752 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10753 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
10755 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 10756 | if ${lt_cv_dlopen_self_static+:} false; then : |
81ecdfbb | 10757 | $as_echo_n "(cached) " >&6 |
d7040cdb | 10758 | else |
ce2cded5 L |
10759 | if test "$cross_compiling" = yes; then : |
10760 | lt_cv_dlopen_self_static=cross | |
10761 | else | |
10762 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10763 | lt_status=$lt_dlunknown | |
10764 | cat > conftest.$ac_ext <<_LT_EOF | |
23d61380 | 10765 | #line 10765 "configure" |
ce2cded5 L |
10766 | #include "confdefs.h" |
10767 | ||
10768 | #if HAVE_DLFCN_H | |
10769 | #include <dlfcn.h> | |
10770 | #endif | |
10771 | ||
10772 | #include <stdio.h> | |
10773 | ||
10774 | #ifdef RTLD_GLOBAL | |
10775 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10776 | #else | |
10777 | # ifdef DL_GLOBAL | |
10778 | # define LT_DLGLOBAL DL_GLOBAL | |
10779 | # else | |
10780 | # define LT_DLGLOBAL 0 | |
10781 | # endif | |
10782 | #endif | |
10783 | ||
10784 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10785 | find out it does not work in some platform. */ | |
10786 | #ifndef LT_DLLAZY_OR_NOW | |
10787 | # ifdef RTLD_LAZY | |
10788 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10789 | # else | |
10790 | # ifdef DL_LAZY | |
10791 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10792 | # else | |
10793 | # ifdef RTLD_NOW | |
10794 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10795 | # else | |
10796 | # ifdef DL_NOW | |
10797 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10798 | # else | |
10799 | # define LT_DLLAZY_OR_NOW 0 | |
10800 | # endif | |
10801 | # endif | |
10802 | # endif | |
10803 | # endif | |
10804 | #endif | |
10805 | ||
3725885a RW |
10806 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10807 | correspondingly for the symbols needed. */ | |
10808 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
f2c621e4 | 10809 | void fnord () __attribute__((visibility("default"))); |
3725885a RW |
10810 | #endif |
10811 | ||
f2c621e4 | 10812 | void fnord () { int i=42; } |
ce2cded5 | 10813 | int main () |
d7040cdb | 10814 | { |
ce2cded5 L |
10815 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10816 | int status = $lt_dlunknown; | |
10817 | ||
10818 | if (self) | |
10819 | { | |
10820 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
10821 | else |
10822 | { | |
10823 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10824 | else puts (dlerror ()); | |
10825 | } | |
ce2cded5 L |
10826 | /* dlclose (self); */ |
10827 | } | |
10828 | else | |
10829 | puts (dlerror ()); | |
10830 | ||
718a6fd8 | 10831 | return status; |
d7040cdb | 10832 | } |
ce2cded5 | 10833 | _LT_EOF |
81ecdfbb | 10834 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
10835 | (eval $ac_link) 2>&5 |
10836 | ac_status=$? | |
81ecdfbb RW |
10837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10838 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
10839 | (./conftest; exit; ) >&5 2>/dev/null |
10840 | lt_status=$? | |
10841 | case x$lt_status in | |
10842 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10843 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10844 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10845 | esac | |
10846 | else : | |
10847 | # compilation failed | |
10848 | lt_cv_dlopen_self_static=no | |
10849 | fi | |
d7040cdb | 10850 | fi |
ce2cded5 L |
10851 | rm -fr conftest* |
10852 | ||
10853 | ||
d7040cdb | 10854 | fi |
81ecdfbb RW |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
10856 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
ce2cded5 L |
10857 | fi |
10858 | ||
10859 | CPPFLAGS="$save_CPPFLAGS" | |
10860 | LDFLAGS="$save_LDFLAGS" | |
10861 | LIBS="$save_LIBS" | |
10862 | ;; | |
10863 | esac | |
10864 | ||
10865 | case $lt_cv_dlopen_self in | |
10866 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10867 | *) enable_dlopen_self=unknown ;; | |
10868 | esac | |
10869 | ||
10870 | case $lt_cv_dlopen_self_static in | |
10871 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10872 | *) enable_dlopen_self_static=unknown ;; | |
10873 | esac | |
d7040cdb | 10874 | fi |
d7040cdb | 10875 | |
d7040cdb SE |
10876 | |
10877 | ||
d7040cdb | 10878 | |
d7040cdb | 10879 | |
ce2cded5 L |
10880 | |
10881 | ||
10882 | ||
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
10891 | ||
10892 | striplib= | |
10893 | old_striplib= | |
81ecdfbb RW |
10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
10895 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
ce2cded5 L |
10896 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
10897 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10898 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10900 | $as_echo "yes" >&6; } | |
ce2cded5 L |
10901 | else |
10902 | # FIXME - insert some real tests, host_os isn't really good enough | |
10903 | case $host_os in | |
10904 | darwin*) | |
10905 | if test -n "$STRIP" ; then | |
10906 | striplib="$STRIP -x" | |
10907 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10909 | $as_echo "yes" >&6; } | |
ce2cded5 | 10910 | else |
81ecdfbb RW |
10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10912 | $as_echo "no" >&6; } | |
d7040cdb | 10913 | fi |
ce2cded5 L |
10914 | ;; |
10915 | *) | |
81ecdfbb RW |
10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10917 | $as_echo "no" >&6; } | |
ce2cded5 | 10918 | ;; |
d7040cdb | 10919 | esac |
d7040cdb SE |
10920 | fi |
10921 | ||
d7040cdb | 10922 | |
d7040cdb | 10923 | |
d7040cdb | 10924 | |
d7040cdb | 10925 | |
d7040cdb | 10926 | |
d7040cdb | 10927 | |
d7040cdb | 10928 | |
d7040cdb | 10929 | |
d7040cdb | 10930 | |
d7040cdb | 10931 | |
d7040cdb | 10932 | |
ce2cded5 | 10933 | # Report which library types will actually be built |
81ecdfbb RW |
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
10935 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
10936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
10937 | $as_echo "$can_build_shared" >&6; } | |
d7040cdb | 10938 | |
81ecdfbb RW |
10939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
10940 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
ce2cded5 | 10941 | test "$can_build_shared" = "no" && enable_shared=no |
d7040cdb | 10942 | |
ce2cded5 L |
10943 | # On AIX, shared libraries and static libraries use the same namespace, and |
10944 | # are all built from PIC. | |
10945 | case $host_os in | |
10946 | aix3*) | |
10947 | test "$enable_shared" = yes && enable_static=no | |
10948 | if test -n "$RANLIB"; then | |
10949 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10950 | postinstall_cmds='$RANLIB $lib' | |
10951 | fi | |
10952 | ;; | |
d7040cdb | 10953 | |
50e7d84b | 10954 | aix[4-9]*) |
ce2cded5 L |
10955 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10956 | test "$enable_shared" = yes && enable_static=no | |
10957 | fi | |
10958 | ;; | |
10959 | esac | |
81ecdfbb RW |
10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
10961 | $as_echo "$enable_shared" >&6; } | |
ce2cded5 | 10962 | |
81ecdfbb RW |
10963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
10964 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
ce2cded5 L |
10965 | # Make sure either enable_shared or enable_static is yes. |
10966 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
10968 | $as_echo "$enable_static" >&6; } | |
d7040cdb | 10969 | |
d7040cdb | 10970 | |
d7040cdb | 10971 | |
d7040cdb | 10972 | |
ce2cded5 L |
10973 | fi |
10974 | ac_ext=c | |
10975 | ac_cpp='$CPP $CPPFLAGS' | |
10976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 10979 | |
ce2cded5 | 10980 | CC="$lt_save_CC" |
d7040cdb | 10981 | |
d7040cdb | 10982 | |
d7040cdb | 10983 | |
d7040cdb | 10984 | |
d7040cdb | 10985 | |
d7040cdb | 10986 | |
d7040cdb | 10987 | |
d7040cdb | 10988 | |
d7040cdb | 10989 | |
d7040cdb SE |
10990 | |
10991 | ||
d7040cdb SE |
10992 | |
10993 | ||
81ecdfbb | 10994 | ac_config_commands="$ac_config_commands libtool" |
d7040cdb SE |
10995 | |
10996 | ||
d7040cdb | 10997 | |
d7040cdb | 10998 | |
ce2cded5 | 10999 | # Only expand once: |
d7040cdb | 11000 | |
d7040cdb | 11001 | |
d7040cdb | 11002 | |
b879806f AM |
11003 | # The tests for host and target for $enable_largefile require |
11004 | # canonical names. | |
11005 | ||
11006 | ||
11007 | ||
11008 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
11009 | # even in directories otherwise not depending on the $plugins option. | |
11010 | ||
11011 | ||
11012 | maybe_plugins=no | |
11013 | for ac_header in dlfcn.h | |
11014 | do : | |
11015 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
11016 | " | |
d0ac1c44 | 11017 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
b879806f AM |
11018 | cat >>confdefs.h <<_ACEOF |
11019 | #define HAVE_DLFCN_H 1 | |
11020 | _ACEOF | |
11021 | maybe_plugins=yes | |
11022 | fi | |
11023 | ||
11024 | done | |
11025 | ||
11026 | for ac_header in windows.h | |
11027 | do : | |
11028 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
11029 | " | |
d0ac1c44 | 11030 | if test "x$ac_cv_header_windows_h" = xyes; then : |
b879806f AM |
11031 | cat >>confdefs.h <<_ACEOF |
11032 | #define HAVE_WINDOWS_H 1 | |
11033 | _ACEOF | |
11034 | maybe_plugins=yes | |
11035 | fi | |
11036 | ||
11037 | done | |
11038 | ||
11039 | ||
11040 | # Check whether --enable-plugins was given. | |
11041 | if test "${enable_plugins+set}" = set; then : | |
11042 | enableval=$enable_plugins; case "${enableval}" in | |
11043 | no) plugins=no ;; | |
11044 | *) plugins=yes | |
11045 | if test "$maybe_plugins" != "yes" ; then | |
d0ac1c44 | 11046 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
b879806f AM |
11047 | fi ;; |
11048 | esac | |
11049 | else | |
11050 | plugins=$maybe_plugins | |
11051 | ||
11052 | fi | |
11053 | ||
2974be62 | 11054 | if test "$plugins" = "yes"; then |
3cba8b6c L |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
11056 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
d0ac1c44 | 11057 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11058 | $as_echo_n "(cached) " >&6 |
11059 | else | |
11060 | ac_func_search_save_LIBS=$LIBS | |
11061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11062 | /* end confdefs.h. */ | |
11063 | ||
11064 | /* Override any GCC internal prototype to avoid an error. | |
11065 | Use char because int might match the return type of a GCC | |
11066 | builtin and then its argument prototype would still apply. */ | |
11067 | #ifdef __cplusplus | |
11068 | extern "C" | |
11069 | #endif | |
3cba8b6c | 11070 | char dlsym (); |
2974be62 AM |
11071 | int |
11072 | main () | |
11073 | { | |
3cba8b6c | 11074 | return dlsym (); |
2974be62 AM |
11075 | ; |
11076 | return 0; | |
11077 | } | |
11078 | _ACEOF | |
11079 | for ac_lib in '' dl; do | |
11080 | if test -z "$ac_lib"; then | |
11081 | ac_res="none required" | |
11082 | else | |
11083 | ac_res=-l$ac_lib | |
11084 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11085 | fi | |
11086 | if ac_fn_c_try_link "$LINENO"; then : | |
3cba8b6c | 11087 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
11088 | fi |
11089 | rm -f core conftest.err conftest.$ac_objext \ | |
11090 | conftest$ac_exeext | |
d0ac1c44 | 11091 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11092 | break |
11093 | fi | |
11094 | done | |
d0ac1c44 | 11095 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11096 | |
11097 | else | |
3cba8b6c | 11098 | ac_cv_search_dlsym=no |
2974be62 AM |
11099 | fi |
11100 | rm conftest.$ac_ext | |
11101 | LIBS=$ac_func_search_save_LIBS | |
11102 | fi | |
3cba8b6c L |
11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
11104 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
11105 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
11106 | if test "$ac_res" != no; then : |
11107 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11108 | ||
11109 | fi | |
11110 | ||
11111 | fi | |
b879806f AM |
11112 | |
11113 | ||
11114 | case "${host}" in | |
c8693053 RO |
11115 | sparc-*-solaris*|i?86-*-solaris*) |
11116 | # On native 32-bit Solaris/SPARC and x86, large-file and procfs support | |
11117 | # were mutually exclusive until Solaris 11.3. Without procfs support, | |
11118 | # the bfd/ elf module cannot provide certain routines such as | |
11119 | # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user | |
11120 | # explicitly requested large-file support through the | |
11121 | # --enable-largefile switch, disable large-file support in favor of | |
11122 | # procfs support. | |
11123 | # | |
11124 | # Check if <sys/procfs.h> is incompatible with large-file support. | |
11125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11126 | /* end confdefs.h. */ | |
11127 | #define _FILE_OFFSET_BITS 64 | |
11128 | #define _STRUCTURED_PROC 1 | |
11129 | #include <sys/procfs.h> | |
11130 | int | |
11131 | main () | |
11132 | { | |
11133 | ||
11134 | ; | |
11135 | return 0; | |
11136 | } | |
11137 | _ACEOF | |
11138 | if ac_fn_c_try_compile "$LINENO"; then : | |
11139 | acx_cv_procfs_lfs=yes | |
11140 | else | |
11141 | acx_cv_procfs_lfs=no | |
11142 | fi | |
11143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11144 | # | |
11145 | # Forcefully disable large-file support only if necessary, gdb is in | |
11146 | # tree and enabled. | |
11147 | if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ | |
11148 | -a -d $srcdir/../gdb -a "$enable_gdb" != no; then | |
11149 | : ${enable_largefile="no"} | |
11150 | if test "$plugins" = yes; then | |
11151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
11152 | plugin support disabled; require large-file support which is incompatible with GDB." >&5 | |
11153 | $as_echo "$as_me: WARNING: | |
11154 | plugin support disabled; require large-file support which is incompatible with GDB." >&2;} | |
11155 | plugins=no | |
11156 | fi | |
11157 | fi | |
11158 | # | |
11159 | # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the | |
11160 | # benefit of g++ 9+ which predefines it on Solaris. | |
11161 | if test "$enable_largefile" = no; then | |
11162 | LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" | |
11163 | ||
11164 | fi | |
b879806f AM |
11165 | ;; |
11166 | esac | |
11167 | ||
11168 | # Check whether --enable-largefile was given. | |
11169 | if test "${enable_largefile+set}" = set; then : | |
11170 | enableval=$enable_largefile; | |
11171 | fi | |
11172 | ||
11173 | if test "$enable_largefile" != no; then | |
11174 | ||
11175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
11176 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
d0ac1c44 | 11177 | if ${ac_cv_sys_largefile_CC+:} false; then : |
b879806f AM |
11178 | $as_echo_n "(cached) " >&6 |
11179 | else | |
11180 | ac_cv_sys_largefile_CC=no | |
11181 | if test "$GCC" != yes; then | |
11182 | ac_save_CC=$CC | |
11183 | while :; do | |
11184 | # IRIX 6.2 and later do not support large files by default, | |
11185 | # so use the C compiler's -n32 option if that helps. | |
11186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11187 | /* end confdefs.h. */ | |
11188 | #include <sys/types.h> | |
11189 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11190 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11191 | since some C++ compilers masquerading as C compilers | |
11192 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11193 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11194 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11195 | && LARGE_OFF_T % 2147483647 == 1) | |
11196 | ? 1 : -1]; | |
11197 | int | |
11198 | main () | |
11199 | { | |
11200 | ||
11201 | ; | |
11202 | return 0; | |
11203 | } | |
11204 | _ACEOF | |
11205 | if ac_fn_c_try_compile "$LINENO"; then : | |
11206 | break | |
11207 | fi | |
11208 | rm -f core conftest.err conftest.$ac_objext | |
11209 | CC="$CC -n32" | |
11210 | if ac_fn_c_try_compile "$LINENO"; then : | |
11211 | ac_cv_sys_largefile_CC=' -n32'; break | |
11212 | fi | |
11213 | rm -f core conftest.err conftest.$ac_objext | |
11214 | break | |
11215 | done | |
11216 | CC=$ac_save_CC | |
11217 | rm -f conftest.$ac_ext | |
11218 | fi | |
11219 | fi | |
11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
11221 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
11222 | if test "$ac_cv_sys_largefile_CC" != no; then | |
11223 | CC=$CC$ac_cv_sys_largefile_CC | |
11224 | fi | |
11225 | ||
11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
11227 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
d0ac1c44 | 11228 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
b879806f AM |
11229 | $as_echo_n "(cached) " >&6 |
11230 | else | |
11231 | while :; do | |
11232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11233 | /* end confdefs.h. */ | |
11234 | #include <sys/types.h> | |
11235 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11236 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11237 | since some C++ compilers masquerading as C compilers | |
11238 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11239 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11240 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11241 | && LARGE_OFF_T % 2147483647 == 1) | |
11242 | ? 1 : -1]; | |
11243 | int | |
11244 | main () | |
11245 | { | |
11246 | ||
11247 | ; | |
11248 | return 0; | |
11249 | } | |
11250 | _ACEOF | |
11251 | if ac_fn_c_try_compile "$LINENO"; then : | |
11252 | ac_cv_sys_file_offset_bits=no; break | |
11253 | fi | |
11254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11256 | /* end confdefs.h. */ | |
11257 | #define _FILE_OFFSET_BITS 64 | |
11258 | #include <sys/types.h> | |
11259 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11260 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11261 | since some C++ compilers masquerading as C compilers | |
11262 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11263 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11264 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11265 | && LARGE_OFF_T % 2147483647 == 1) | |
11266 | ? 1 : -1]; | |
11267 | int | |
11268 | main () | |
11269 | { | |
11270 | ||
11271 | ; | |
11272 | return 0; | |
11273 | } | |
11274 | _ACEOF | |
11275 | if ac_fn_c_try_compile "$LINENO"; then : | |
11276 | ac_cv_sys_file_offset_bits=64; break | |
11277 | fi | |
11278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11279 | ac_cv_sys_file_offset_bits=unknown | |
11280 | break | |
11281 | done | |
11282 | fi | |
11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
11284 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
11285 | case $ac_cv_sys_file_offset_bits in #( | |
11286 | no | unknown) ;; | |
11287 | *) | |
11288 | cat >>confdefs.h <<_ACEOF | |
11289 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
11290 | _ACEOF | |
11291 | ;; | |
11292 | esac | |
11293 | rm -rf conftest* | |
11294 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
11296 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
d0ac1c44 | 11297 | if ${ac_cv_sys_large_files+:} false; then : |
b879806f AM |
11298 | $as_echo_n "(cached) " >&6 |
11299 | else | |
11300 | while :; do | |
11301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11302 | /* end confdefs.h. */ | |
11303 | #include <sys/types.h> | |
11304 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11305 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11306 | since some C++ compilers masquerading as C compilers | |
11307 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11308 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11309 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11310 | && LARGE_OFF_T % 2147483647 == 1) | |
11311 | ? 1 : -1]; | |
11312 | int | |
11313 | main () | |
11314 | { | |
11315 | ||
11316 | ; | |
11317 | return 0; | |
11318 | } | |
11319 | _ACEOF | |
11320 | if ac_fn_c_try_compile "$LINENO"; then : | |
11321 | ac_cv_sys_large_files=no; break | |
11322 | fi | |
11323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11325 | /* end confdefs.h. */ | |
11326 | #define _LARGE_FILES 1 | |
11327 | #include <sys/types.h> | |
11328 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11329 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11330 | since some C++ compilers masquerading as C compilers | |
11331 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11332 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11333 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11334 | && LARGE_OFF_T % 2147483647 == 1) | |
11335 | ? 1 : -1]; | |
11336 | int | |
11337 | main () | |
11338 | { | |
11339 | ||
11340 | ; | |
11341 | return 0; | |
11342 | } | |
11343 | _ACEOF | |
11344 | if ac_fn_c_try_compile "$LINENO"; then : | |
11345 | ac_cv_sys_large_files=1; break | |
11346 | fi | |
11347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11348 | ac_cv_sys_large_files=unknown | |
11349 | break | |
11350 | done | |
11351 | fi | |
11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
11353 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
11354 | case $ac_cv_sys_large_files in #( | |
11355 | no | unknown) ;; | |
11356 | *) | |
11357 | cat >>confdefs.h <<_ACEOF | |
11358 | #define _LARGE_FILES $ac_cv_sys_large_files | |
11359 | _ACEOF | |
11360 | ;; | |
11361 | esac | |
11362 | rm -rf conftest* | |
11363 | fi | |
d0ac1c44 SM |
11364 | |
11365 | ||
b879806f AM |
11366 | fi |
11367 | ||
11368 | ||
2d7f2507 AM |
11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
11370 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 11371 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
2d7f2507 AM |
11372 | $as_echo_n "(cached) " >&6 |
11373 | else | |
11374 | echo abfoo >t1 | |
11375 | echo cdfoo >t2 | |
da17fe9d | 11376 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
2d7f2507 AM |
11377 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
11378 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
11379 | : | |
11380 | else | |
11381 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
11382 | fi | |
11383 | fi | |
11384 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
11385 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
11386 | : | |
11387 | else | |
11388 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
11389 | fi | |
11390 | fi | |
11391 | rm t1 t2 | |
11392 | ||
11393 | fi | |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 | |
11395 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
11396 | do_compare="$gcc_cv_prog_cmp_skip" | |
11397 | ||
11398 | ||
b879806f | 11399 | |
81ecdfbb RW |
11400 | # Check whether --enable-targets was given. |
11401 | if test "${enable_targets+set}" = set; then : | |
11402 | enableval=$enable_targets; case "${enableval}" in | |
d0ac1c44 | 11403 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 |
ce2cded5 L |
11404 | ;; |
11405 | no) enable_targets= ;; | |
11406 | *) enable_targets=$enableval ;; | |
11407 | esac | |
81ecdfbb RW |
11408 | fi |
11409 | ||
e044973b AM |
11410 | ac_checking= |
11411 | . ${srcdir}/../bfd/development.sh | |
11412 | test "$development" = true && ac_checking=yes | |
81ecdfbb RW |
11413 | # Check whether --enable-checking was given. |
11414 | if test "${enable_checking+set}" = set; then : | |
11415 | enableval=$enable_checking; case "${enableval}" in | |
ce2cded5 L |
11416 | no|none) ac_checking= ;; |
11417 | *) ac_checking=yes ;; | |
11418 | esac | |
81ecdfbb RW |
11419 | fi |
11420 | if test x$ac_checking != x ; then | |
d7040cdb | 11421 | |
81ecdfbb | 11422 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h |
d7040cdb | 11423 | |
ce2cded5 | 11424 | fi |
d7040cdb | 11425 | |
6c3bc0f8 NC |
11426 | # PR gas/19109 |
11427 | # Decide the default method for compressing debug sections. | |
11428 | ac_default_compressed_debug_sections=unset | |
11429 | # Provide a configure time option to override our default. | |
11430 | # Check whether --enable-compressed_debug_sections was given. | |
11431 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
4894d80b | 11432 | enableval=$enable_compressed_debug_sections; case ,"${enableval}", in |
9b4c123c | 11433 | ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;; |
4894d80b | 11434 | ,no, | ,none,) ac_default_compressed_debug_sections=no ;; |
6c3bc0f8 NC |
11435 | *) ac_default_compressed_debug_sections=unset ;; |
11436 | esac | |
11437 | fi | |
11438 | ||
0cb4071e L |
11439 | # PR gas/19520 |
11440 | # Decide if x86 assembler should generate relax relocations. | |
11441 | ac_default_x86_relax_relocations=unset | |
11442 | # Provide a configure time option to override our default. | |
11443 | # Check whether --enable-x86_relax_relocations was given. | |
11444 | if test "${enable_x86_relax_relocations+set}" = set; then : | |
11445 | enableval=$enable_x86_relax_relocations; case "${enableval}" in | |
11446 | no) ac_default_x86_relax_relocations=0 ;; | |
11447 | esac | |
11448 | fi | |
11449 | ||
b8871f35 L |
11450 | # Decide if ELF assembler should generate common symbols with the |
11451 | # STT_COMMON type. | |
11452 | ac_default_elf_stt_common=unset | |
11453 | # Provide a configure time option to override our default. | |
11454 | # Check whether --enable-elf_stt_common was given. | |
11455 | if test "${enable_elf_stt_common+set}" = set; then : | |
11456 | enableval=$enable_elf_stt_common; case "${enableval}" in | |
11457 | yes) ac_default_elf_stt_common=1 ;; | |
11458 | esac | |
11459 | fi | |
11460 | ||
0df8ad28 NC |
11461 | |
11462 | # Decide if the ELF assembler should default to generating | |
11463 | # GNU Build notes if none are provided by the input. | |
11464 | ac_default_generate_build_notes=0 | |
11465 | # Provide a configuration option to override the default. | |
11466 | # Check whether --enable-generate_build_notes was given. | |
11467 | if test "${enable_generate_build_notes+set}" = set; then : | |
11468 | enableval=$enable_generate_build_notes; case "${enableval}" in | |
11469 | yes) ac_default_generate_build_notes=1 ;; | |
11470 | no) ac_default_generate_build_notes=0 ;; | |
11471 | esac | |
11472 | fi | |
11473 | ||
6f2117ba PH |
11474 | # Decide if the MIPS assembler should default to enable MIPS fix Loongson3 |
11475 | # LLSC errata. | |
11476 | ac_default_mips_fix_loongson3_llsc=unset | |
11477 | # Provide a configuration option to override the default. | |
11478 | # Check whether --enable-mips-fix-loongson3-llsc was given. | |
11479 | if test "${enable_mips_fix_loongson3_llsc+set}" = set; then : | |
11480 | enableval=$enable_mips_fix_loongson3_llsc; case "${enableval}" in | |
11481 | yes) ac_default_mips_fix_loongson3_llsc=1 ;; | |
11482 | no) ac_default_mips_fix_loongson3_llsc=0 ;; | |
11483 | esac | |
11484 | fi | |
0df8ad28 | 11485 | |
b4a3a7b4 L |
11486 | # Decide if the x86 ELF assembler should default to generating GNU x86 |
11487 | # used ISA and feature properties. | |
11488 | ac_default_generate_x86_used_note=unset | |
11489 | # Provide a configuration option to override the default. | |
11490 | # Check whether --enable-x86-used-note was given. | |
11491 | if test "${enable_x86_used_note+set}" = set; then : | |
11492 | enableval=$enable_x86_used_note; case "${enableval}" in | |
11493 | yes) ac_default_generate_x86_used_note=1 ;; | |
11494 | no) ac_default_generate_x86_used_note=0 ;; | |
11495 | esac | |
11496 | fi | |
11497 | ||
2dc8dd17 JW |
11498 | # Decide if the RISC-V ELF assembler should default to generating attribute. |
11499 | ac_default_generate_riscv_attr=unset | |
11500 | # Provide a configuration option to override the default. | |
11501 | # Check whether --enable-default-riscv-attribute was given. | |
11502 | if test "${enable_default_riscv_attribute+set}" = set; then : | |
11503 | enableval=$enable_default_riscv_attribute; case "${enableval}" in | |
11504 | yes) ac_default_generate_riscv_attr=1 ;; | |
11505 | no) ac_default_generate_riscv_attr=0 ;; | |
11506 | esac | |
11507 | fi | |
b4a3a7b4 | 11508 | |
ce2cded5 | 11509 | using_cgen=no |
d7040cdb | 11510 | |
d7040cdb | 11511 | |
270c9937 JB |
11512 | # Set the 'development' global. |
11513 | . $srcdir/../bfd/development.sh | |
11514 | ||
c5da1932 VZ |
11515 | # Set acp_cpp_for_build variable |
11516 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" | |
11517 | ||
9780e045 | 11518 | # Default set of GCC warnings to enable. |
397841b5 | 11519 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
c5da1932 | 11520 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
11521 | |
11522 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
397841b5 AM |
11523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11524 | /* end confdefs.h. */ | |
11525 | __GNUC__ | |
11526 | _ACEOF | |
11527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11528 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
397841b5 AM |
11529 | |
11530 | else | |
11531 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
11532 | fi | |
11533 | rm -f conftest* | |
11534 | ||
d7040cdb | 11535 | |
9780e045 NC |
11536 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
11537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11538 | /* end confdefs.h. */ | |
11539 | __GNUC__ | |
11540 | _ACEOF | |
11541 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11542 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
9780e045 NC |
11543 | |
11544 | else | |
11545 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" | |
11546 | fi | |
11547 | rm -f conftest* | |
11548 | ||
11549 | ||
6757cf57 TS |
11550 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
11551 | WARN_WRITE_STRINGS="" | |
11552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11553 | /* end confdefs.h. */ | |
11554 | __GNUC__ | |
11555 | _ACEOF | |
11556 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11557 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
6757cf57 TS |
11558 | |
11559 | else | |
11560 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
11561 | fi | |
11562 | rm -f conftest* | |
11563 | ||
9780e045 | 11564 | |
96fe4562 | 11565 | # Verify CC_FOR_BUILD to be compatible with warning flags |
c5da1932 VZ |
11566 | |
11567 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
11568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11569 | /* end confdefs.h. */ | |
11570 | __GNUC__ | |
11571 | _ACEOF | |
11572 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 11573 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
11574 | |
11575 | else | |
11576 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" | |
11577 | fi | |
11578 | rm -f conftest* | |
11579 | ||
11580 | ||
11581 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. | |
11582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11583 | /* end confdefs.h. */ | |
11584 | __GNUC__ | |
11585 | _ACEOF | |
11586 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 11587 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
11588 | |
11589 | else | |
11590 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" | |
11591 | fi | |
11592 | rm -f conftest* | |
11593 | ||
11594 | ||
81ecdfbb RW |
11595 | # Check whether --enable-werror was given. |
11596 | if test "${enable_werror+set}" = set; then : | |
11597 | enableval=$enable_werror; case "${enableval}" in | |
ce2cded5 L |
11598 | yes | y) ERROR_ON_WARNING="yes" ;; |
11599 | no | n) ERROR_ON_WARNING="no" ;; | |
d0ac1c44 | 11600 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
ce2cded5 | 11601 | esac |
81ecdfbb RW |
11602 | fi |
11603 | ||
d7040cdb | 11604 | |
397841b5 | 11605 | # Disable -Wformat by default when using gcc on mingw |
bb8541b9 L |
11606 | case "${host}" in |
11607 | *-*-mingw32*) | |
11608 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11609 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
c5da1932 | 11610 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
bb8541b9 L |
11611 | fi |
11612 | ;; | |
11613 | *) ;; | |
11614 | esac | |
11615 | ||
270c9937 JB |
11616 | # Enable -Werror by default when using gcc. Turn it off for releases. |
11617 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
ce2cded5 L |
11618 | ERROR_ON_WARNING=yes |
11619 | fi | |
11620 | ||
11621 | NO_WERROR= | |
11622 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 11623 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
c5da1932 | 11624 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
ce2cded5 L |
11625 | NO_WERROR="-Wno-error" |
11626 | fi | |
11627 | ||
11628 | if test "${GCC}" = yes ; then | |
11629 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
c5da1932 | 11630 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
ce2cded5 L |
11631 | fi |
11632 | ||
81ecdfbb RW |
11633 | # Check whether --enable-build-warnings was given. |
11634 | if test "${enable_build_warnings+set}" = set; then : | |
11635 | enableval=$enable_build_warnings; case "${enableval}" in | |
c5da1932 VZ |
11636 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
11637 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
ce2cded5 L |
11638 | no) if test "${GCC}" = yes ; then |
11639 | WARN_CFLAGS="-w" | |
c5da1932 | 11640 | WARN_CFLAGS_FOR_BUILD="-w" |
ce2cded5 L |
11641 | fi;; |
11642 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c5da1932 VZ |
11643 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
11644 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; | |
ce2cded5 | 11645 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c5da1932 VZ |
11646 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
11647 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
11648 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11649 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
ce2cded5 | 11650 | esac |
81ecdfbb RW |
11651 | fi |
11652 | ||
d7040cdb | 11653 | |
ce2cded5 L |
11654 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11655 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
11656 | fi | |
d7040cdb | 11657 | |
d7040cdb | 11658 | |
d7040cdb | 11659 | |
d7040cdb | 11660 | |
d7040cdb | 11661 | |
6757cf57 | 11662 | |
c5da1932 | 11663 | |
ce2cded5 | 11664 | # Generate a header file |
81ecdfbb | 11665 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb | 11666 | |
d7040cdb | 11667 | |
9004b6bd AB |
11668 | |
11669 | # Check whether --with-cpu was given. | |
11670 | if test "${with_cpu+set}" = set; then : | |
11671 | withval=$with_cpu; | |
11672 | cat >>confdefs.h <<_ACEOF | |
11673 | #define TARGET_WITH_CPU "${with_cpu}" | |
11674 | _ACEOF | |
11675 | ||
11676 | fi | |
11677 | ||
11678 | ||
df7b86aa NC |
11679 | # PR 14072 |
11680 | ||
11681 | ||
ce2cded5 L |
11682 | # If we are on a DOS filesystem, we must use gdb.ini rather than |
11683 | # .gdbinit. | |
11684 | case "${host}" in | |
11685 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) | |
11686 | GDBINIT="gdb.ini" | |
81ecdfbb | 11687 | ac_config_files="$ac_config_files gdb.ini:gdbinit.in" |
d7040cdb | 11688 | |
ce2cded5 L |
11689 | ;; |
11690 | *) | |
11691 | GDBINIT=".gdbinit" | |
81ecdfbb | 11692 | ac_config_files="$ac_config_files .gdbinit:gdbinit.in" |
d7040cdb | 11693 | |
ce2cded5 L |
11694 | ;; |
11695 | esac | |
d7040cdb | 11696 | |
d7040cdb | 11697 | |
a8eb42a8 | 11698 | #We need this for the host. |
81ecdfbb RW |
11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
11700 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
d0ac1c44 | 11701 | if ${ac_cv_c_bigendian+:} false; then : |
81ecdfbb RW |
11702 | $as_echo_n "(cached) " >&6 |
11703 | else | |
11704 | ac_cv_c_bigendian=unknown | |
11705 | # See if we're dealing with a universal compiler. | |
11706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11707 | /* end confdefs.h. */ | |
11708 | #ifndef __APPLE_CC__ | |
11709 | not a universal capable compiler | |
11710 | #endif | |
11711 | typedef int dummy; | |
11712 | ||
11713 | _ACEOF | |
11714 | if ac_fn_c_try_compile "$LINENO"; then : | |
11715 | ||
11716 | # Check for potential -arch flags. It is not universal unless | |
11717 | # there are at least two -arch flags with different values. | |
11718 | ac_arch= | |
11719 | ac_prev= | |
11720 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
11721 | if test -n "$ac_prev"; then | |
11722 | case $ac_word in | |
11723 | i?86 | x86_64 | ppc | ppc64) | |
11724 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
11725 | ac_arch=$ac_word | |
11726 | else | |
11727 | ac_cv_c_bigendian=universal | |
11728 | break | |
11729 | fi | |
11730 | ;; | |
11731 | esac | |
11732 | ac_prev= | |
11733 | elif test "x$ac_word" = "x-arch"; then | |
11734 | ac_prev=arch | |
11735 | fi | |
11736 | done | |
11737 | fi | |
11738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11739 | if test $ac_cv_c_bigendian = unknown; then | |
11740 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 L |
11742 | /* end confdefs.h. */ |
11743 | #include <sys/types.h> | |
81ecdfbb | 11744 | #include <sys/param.h> |
d7040cdb | 11745 | |
ce2cded5 L |
11746 | int |
11747 | main () | |
11748 | { | |
81ecdfbb RW |
11749 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
11750 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
11751 | && LITTLE_ENDIAN) | |
11752 | bogus endian macros | |
11753 | #endif | |
d7040cdb | 11754 | |
ce2cded5 L |
11755 | ; |
11756 | return 0; | |
11757 | } | |
11758 | _ACEOF | |
81ecdfbb | 11759 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 11760 | # It does; now see whether it defined to BIG_ENDIAN or not. |
81ecdfbb | 11761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11762 | /* end confdefs.h. */ |
11763 | #include <sys/types.h> | |
81ecdfbb | 11764 | #include <sys/param.h> |
d7040cdb | 11765 | |
ce2cded5 L |
11766 | int |
11767 | main () | |
11768 | { | |
11769 | #if BYTE_ORDER != BIG_ENDIAN | |
81ecdfbb RW |
11770 | not big endian |
11771 | #endif | |
d7040cdb | 11772 | |
ce2cded5 L |
11773 | ; |
11774 | return 0; | |
11775 | } | |
11776 | _ACEOF | |
81ecdfbb | 11777 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
11778 | ac_cv_c_bigendian=yes |
11779 | else | |
81ecdfbb | 11780 | ac_cv_c_bigendian=no |
ce2cded5 | 11781 | fi |
81ecdfbb RW |
11782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11783 | fi | |
11784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11785 | fi | |
11786 | if test $ac_cv_c_bigendian = unknown; then | |
11787 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
11788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11789 | /* end confdefs.h. */ | |
11790 | #include <limits.h> | |
d7040cdb | 11791 | |
81ecdfbb RW |
11792 | int |
11793 | main () | |
11794 | { | |
11795 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
11796 | bogus endian macros | |
11797 | #endif | |
11798 | ||
11799 | ; | |
11800 | return 0; | |
11801 | } | |
ce2cded5 | 11802 | _ACEOF |
81ecdfbb RW |
11803 | if ac_fn_c_try_compile "$LINENO"; then : |
11804 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
11805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 11806 | /* end confdefs.h. */ |
81ecdfbb RW |
11807 | #include <limits.h> |
11808 | ||
ce2cded5 L |
11809 | int |
11810 | main () | |
11811 | { | |
81ecdfbb RW |
11812 | #ifndef _BIG_ENDIAN |
11813 | not big endian | |
11814 | #endif | |
11815 | ||
ce2cded5 L |
11816 | ; |
11817 | return 0; | |
11818 | } | |
11819 | _ACEOF | |
81ecdfbb | 11820 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 11821 | ac_cv_c_bigendian=yes |
81ecdfbb RW |
11822 | else |
11823 | ac_cv_c_bigendian=no | |
d7040cdb | 11824 | fi |
81ecdfbb | 11825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 11826 | fi |
81ecdfbb RW |
11827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11828 | fi | |
11829 | if test $ac_cv_c_bigendian = unknown; then | |
11830 | # Compile a test program. | |
11831 | if test "$cross_compiling" = yes; then : | |
11832 | # Try to guess by grepping values from an object file. | |
11833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11834 | /* end confdefs.h. */ | |
11835 | short int ascii_mm[] = | |
11836 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
11837 | short int ascii_ii[] = | |
11838 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
11839 | int use_ascii (int i) { | |
11840 | return ascii_mm[i] + ascii_ii[i]; | |
11841 | } | |
11842 | short int ebcdic_ii[] = | |
11843 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
11844 | short int ebcdic_mm[] = | |
11845 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
11846 | int use_ebcdic (int i) { | |
11847 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
11848 | } | |
11849 | extern int foo; | |
d7040cdb | 11850 | |
81ecdfbb RW |
11851 | int |
11852 | main () | |
11853 | { | |
11854 | return use_ascii (foo) == use_ebcdic (foo); | |
11855 | ; | |
11856 | return 0; | |
11857 | } | |
11858 | _ACEOF | |
11859 | if ac_fn_c_try_compile "$LINENO"; then : | |
11860 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
11861 | ac_cv_c_bigendian=yes | |
11862 | fi | |
11863 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
11864 | if test "$ac_cv_c_bigendian" = unknown; then | |
11865 | ac_cv_c_bigendian=no | |
11866 | else | |
11867 | # finding both strings is unlikely to happen, but who knows? | |
11868 | ac_cv_c_bigendian=unknown | |
11869 | fi | |
11870 | fi | |
ce2cded5 | 11871 | fi |
81ecdfbb | 11872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 11873 | else |
81ecdfbb | 11874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11875 | /* end confdefs.h. */ |
81ecdfbb | 11876 | $ac_includes_default |
ce2cded5 L |
11877 | int |
11878 | main () | |
11879 | { | |
81ecdfbb RW |
11880 | |
11881 | /* Are we little or big endian? From Harbison&Steele. */ | |
11882 | union | |
11883 | { | |
11884 | long int l; | |
11885 | char c[sizeof (long int)]; | |
11886 | } u; | |
11887 | u.l = 1; | |
11888 | return u.c[sizeof (long int) - 1] == 1; | |
11889 | ||
11890 | ; | |
11891 | return 0; | |
ce2cded5 | 11892 | } |
d7040cdb | 11893 | _ACEOF |
81ecdfbb | 11894 | if ac_fn_c_try_run "$LINENO"; then : |
ce2cded5 L |
11895 | ac_cv_c_bigendian=no |
11896 | else | |
81ecdfbb | 11897 | ac_cv_c_bigendian=yes |
d7040cdb | 11898 | fi |
81ecdfbb RW |
11899 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
11900 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d7040cdb | 11901 | fi |
81ecdfbb RW |
11902 | |
11903 | fi | |
ce2cded5 | 11904 | fi |
81ecdfbb RW |
11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
11906 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
11907 | case $ac_cv_c_bigendian in #( | |
11908 | yes) | |
11909 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
11910 | ;; #( | |
11911 | no) | |
11912 | ;; #( | |
11913 | universal) | |
d7040cdb | 11914 | |
81ecdfbb RW |
11915 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
11916 | ||
11917 | ;; #( | |
11918 | *) | |
d0ac1c44 | 11919 | as_fn_error $? "unknown endianness |
81ecdfbb RW |
11920 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
11921 | esac | |
d7040cdb | 11922 | |
d7040cdb | 11923 | |
ce2cded5 | 11924 | te_file=generic |
d7040cdb | 11925 | |
ce2cded5 L |
11926 | # Makefile target for installing gas in $(tooldir)/bin. |
11927 | install_tooldir=install-exec-tooldir | |
d7040cdb | 11928 | |
ce2cded5 L |
11929 | canon_targets="" |
11930 | all_targets=no | |
11931 | if test -n "$enable_targets" ; then | |
11932 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | |
11933 | if test $t = "all"; then | |
11934 | all_targets=yes | |
11935 | continue | |
11936 | fi | |
11937 | result=`$ac_config_sub $t 2>/dev/null` | |
11938 | if test -n "$result" ; then | |
11939 | canon_targets="$canon_targets $result" | |
11940 | # else | |
11941 | # # Permit "all", etc. We don't support it yet though. | |
11942 | # canon_targets="$canon_targets $t" | |
11943 | fi | |
11944 | done | |
11945 | _gas_uniq_list="$canon_targets" | |
d7040cdb SE |
11946 | _gas_uniq_newlist="" |
11947 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
11948 | case $_gas_uniq_i in | |
11949 | _gas_uniq_dummy) ;; | |
11950 | *) case " $_gas_uniq_newlist " in | |
11951 | *" $_gas_uniq_i "*) ;; | |
11952 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
11953 | esac ;; | |
11954 | esac | |
11955 | done | |
ce2cded5 | 11956 | canon_targets=$_gas_uniq_newlist |
d7040cdb | 11957 | |
ce2cded5 L |
11958 | fi |
11959 | ||
11960 | emulations="" | |
11961 | ||
11962 | for this_target in $target $canon_targets ; do | |
11963 | ||
11964 | targ=${this_target} | |
11965 | . ${srcdir}/configure.tgt | |
11966 | ||
11967 | case ${target_cpu} in | |
11968 | crisv32) | |
11969 | ||
11970 | cat >>confdefs.h <<_ACEOF | |
11971 | #define DEFAULT_CRIS_ARCH $arch | |
d7040cdb | 11972 | _ACEOF |
ce2cded5 L |
11973 | |
11974 | ;; | |
11975 | esac | |
11976 | ||
11977 | if test ${this_target} = $target ; then | |
11978 | target_cpu_type=${cpu_type} | |
11979 | elif test ${target_cpu_type} != ${cpu_type} ; then | |
11980 | continue | |
11981 | fi | |
11982 | ||
11983 | generic_target=${cpu_type}-${target_vendor}-${target_os} | |
11984 | case ${generic_target} in | |
ce2cded5 L |
11985 | i386-*-msdosdjgpp* \ |
11986 | | i386-*-go32* \ | |
11987 | | i386-go32-rtems*) | |
11988 | ||
81ecdfbb | 11989 | $as_echo "#define STRICTCOFF 1" >>confdefs.h |
ce2cded5 L |
11990 | |
11991 | ;; | |
11992 | ||
939b95c7 L |
11993 | i386-*-linux-* | x86_64-*-linux-*) |
11994 | if test ${this_target} = $target \ | |
11995 | && test ${ac_default_generate_x86_used_note} = unset; then | |
11996 | ac_default_generate_x86_used_note=1 | |
11997 | fi | |
11998 | ;; | |
11999 | ||
0cb4071e L |
12000 | i386-*-solaris2 \ |
12001 | | x86_64-*-solaris2 \ | |
12002 | | i386-*-solaris2.[0-9] \ | |
12003 | | i386-*-solaris2.1[01] \ | |
12004 | | x86_64-*-solaris2.1[01]) | |
12005 | if test ${this_target} = $target \ | |
12006 | && test ${ac_default_x86_relax_relocations} = unset; then | |
12007 | ac_default_x86_relax_relocations=0 | |
12008 | fi | |
12009 | ;; | |
12010 | ||
7ba29e2a NC |
12011 | microblaze*) |
12012 | ;; | |
12013 | ||
e5231592 | 12014 | ppc-*-aix[5-9].*) |
ce2cded5 | 12015 | |
81ecdfbb | 12016 | $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h |
ce2cded5 | 12017 | |
ce2cded5 L |
12018 | ;; |
12019 | ppc-*-solaris*) | |
12020 | if test ${this_target} = $target; then | |
12021 | ||
81ecdfbb | 12022 | $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h |
ce2cded5 L |
12023 | |
12024 | fi | |
12025 | if test x${endian} = xbig; then | |
d0ac1c44 | 12026 | as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5 |
ce2cded5 L |
12027 | fi |
12028 | ;; | |
d7040cdb | 12029 | esac |
d7040cdb | 12030 | |
ce2cded5 L |
12031 | if test ${this_target} = $target ; then |
12032 | endian_def= | |
12033 | if test x${endian} = xbig; then | |
12034 | endian_def=1 | |
12035 | elif test x${endian} = xlittle; then | |
12036 | endian_def=0 | |
12037 | fi | |
12038 | if test x${endian_def} != x; then | |
12039 | ||
12040 | cat >>confdefs.h <<_ACEOF | |
12041 | #define TARGET_BYTES_BIG_ENDIAN $endian_def | |
12042 | _ACEOF | |
12043 | ||
12044 | fi | |
12045 | fi | |
12046 | ||
12047 | # Other random stuff. | |
12048 | ||
12049 | case ${cpu_type} in | |
12050 | mips) | |
12051 | # Set mips_cpu to the name of the default CPU. | |
12052 | case ${target_cpu} in | |
12053 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) | |
12054 | mips_cpu=from-abi | |
12055 | ;; | |
12056 | mipsisa32 | mipsisa32el) | |
12057 | mips_cpu=mips32 | |
12058 | ;; | |
12059 | mipsisa32r2 | mipsisa32r2el) | |
12060 | mips_cpu=mips32r2 | |
12061 | ;; | |
ae52f483 AB |
12062 | mipsisa32r3 | mipsisa32r3el) |
12063 | mips_cpu=mips32r3 | |
12064 | ;; | |
12065 | mipsisa32r5 | mipsisa32r5el) | |
12066 | mips_cpu=mips32r5 | |
12067 | ;; | |
7361da2c AB |
12068 | mipsisa32r6 | mipsisa32r6el) |
12069 | mips_cpu=mips32r6 | |
12070 | ;; | |
ce2cded5 L |
12071 | mipsisa64 | mipsisa64el) |
12072 | mips_cpu=mips64 | |
12073 | ;; | |
12074 | mipsisa64r2 | mipsisa64r2el) | |
12075 | mips_cpu=mips64r2 | |
12076 | ;; | |
ae52f483 AB |
12077 | mipsisa64r3 | mipsisa64r3el) |
12078 | mips_cpu=mips64r3 | |
12079 | ;; | |
12080 | mipsisa64r5 | mipsisa64r5el) | |
12081 | mips_cpu=mips64r5 | |
12082 | ;; | |
7361da2c AB |
12083 | mipsisa64r6 | mipsisa64r6el) |
12084 | mips_cpu=mips64r6 | |
12085 | ;; | |
ce2cded5 L |
12086 | mipstx39 | mipstx39el) |
12087 | mips_cpu=r3900 | |
12088 | ;; | |
12089 | mips64vr | mips64vrel) | |
12090 | mips_cpu=vr4100 | |
12091 | ;; | |
12092 | mipsisa32r2* | mipsisa64r2*) | |
12093 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` | |
12094 | ;; | |
7361da2c AB |
12095 | mipsisa32r6* | mipsisa64r6*) |
12096 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'` | |
12097 | ;; | |
ce2cded5 L |
12098 | mips64* | mipsisa64* | mipsisa32*) |
12099 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` | |
12100 | ;; | |
e407c74b NC |
12101 | mips*) |
12102 | mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'` | |
12103 | ;; | |
ce2cded5 | 12104 | *) |
d0ac1c44 | 12105 | as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5 |
ce2cded5 L |
12106 | ;; |
12107 | esac | |
12108 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 | |
12109 | # binaries. It's a GNU extension that some OSes don't understand. | |
ce2cded5 L |
12110 | case ${target} in |
12111 | *-*-irix*) | |
12112 | use_e_mips_abi_o32=0 | |
12113 | ;; | |
12114 | *) | |
12115 | use_e_mips_abi_o32=1 | |
12116 | ;; | |
12117 | esac | |
12118 | # Decide whether to generate 32-bit or 64-bit code by default. | |
12119 | # Used to resolve -march=from-abi when an embedded ABI is selected. | |
12120 | case ${target} in | |
12121 | mips64*-*-* | mipsisa64*-*-*) | |
12122 | mips_default_64bit=1 | |
12123 | ;; | |
12124 | *) | |
12125 | mips_default_64bit=0 | |
12126 | ;; | |
12127 | esac | |
12128 | # Decide which ABI to target by default. | |
12129 | case ${target} in | |
0984958b MR |
12130 | mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \ |
12131 | | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*) | |
ce2cded5 L |
12132 | mips_default_abi=N32_ABI |
12133 | ;; | |
aeffff67 | 12134 | mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu) |
ce2cded5 L |
12135 | mips_default_abi=O32_ABI |
12136 | ;; | |
12137 | mips64*-openbsd*) | |
12138 | mips_default_abi=N64_ABI | |
12139 | ;; | |
12140 | *) | |
12141 | mips_default_abi=NO_ABI | |
12142 | ;; | |
12143 | esac | |
12144 | ||
12145 | cat >>confdefs.h <<_ACEOF | |
12146 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu" | |
d7040cdb | 12147 | _ACEOF |
d7040cdb SE |
12148 | |
12149 | ||
12150 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12151 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 |
d7040cdb SE |
12152 | _ACEOF |
12153 | ||
12154 | ||
12155 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12156 | #define MIPS_DEFAULT_64BIT $mips_default_64bit |
d7040cdb SE |
12157 | _ACEOF |
12158 | ||
12159 | ||
ce2cded5 L |
12160 | cat >>confdefs.h <<_ACEOF |
12161 | #define MIPS_DEFAULT_ABI $mips_default_abi | |
12162 | _ACEOF | |
d7040cdb | 12163 | |
ce2cded5 L |
12164 | ;; |
12165 | esac | |
d7040cdb | 12166 | |
ce2cded5 L |
12167 | # Do we need the opcodes library? |
12168 | case ${cpu_type} in | |
12169 | vax | tic30) | |
12170 | ;; | |
d7040cdb | 12171 | |
ce2cded5 L |
12172 | *) |
12173 | need_opcodes=yes | |
d7040cdb | 12174 | |
ce2cded5 L |
12175 | case "${enable_shared}" in |
12176 | yes) shared_opcodes=true ;; | |
12177 | *opcodes*) shared_opcodes=true ;; | |
12178 | *) shared_opcodes=false ;; | |
12179 | esac | |
12180 | ;; | |
12181 | esac | |
d7040cdb | 12182 | |
ce2cded5 L |
12183 | # Any other special object files needed ? |
12184 | case ${cpu_type} in | |
d7040cdb | 12185 | |
ce2cded5 | 12186 | bfin) |
55add51e | 12187 | for f in config/bfin-parse.o config/bfin-lex-wrapper.o; do |
e11078da AM |
12188 | case " $extra_objects " in |
12189 | *" $f "*) ;; | |
12190 | *) extra_objects="$extra_objects $f" ;; | |
12191 | esac | |
12192 | done | |
12193 | ;; | |
d7040cdb | 12194 | |
f8861f5d JM |
12195 | bpf) |
12196 | if test $this_target = $target ; then | |
12197 | ||
12198 | cat >>confdefs.h <<_ACEOF | |
12199 | #define DEFAULT_ARCH "${arch}" | |
12200 | _ACEOF | |
12201 | ||
12202 | fi | |
12203 | using_cgen=yes | |
12204 | ;; | |
73589c9d | 12205 | epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k) |
ce2cded5 L |
12206 | using_cgen=yes |
12207 | ;; | |
d7040cdb | 12208 | |
ce2cded5 L |
12209 | m32c) |
12210 | using_cgen=yes | |
12211 | ;; | |
12212 | frv) | |
12213 | using_cgen=yes | |
12214 | ;; | |
12215 | m68k) | |
55add51e | 12216 | f=config/m68k-parse.o |
e11078da AM |
12217 | case " $extra_objects " in |
12218 | *" $f "*) ;; | |
12219 | *) extra_objects="$extra_objects $f" ;; | |
ce2cded5 L |
12220 | esac |
12221 | ;; | |
d7040cdb | 12222 | |
ce2cded5 L |
12223 | mep) |
12224 | using_cgen=yes | |
12225 | ;; | |
d7040cdb | 12226 | |
ce2cded5 | 12227 | mips) |
e11078da AM |
12228 | for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do |
12229 | case " $extra_objects " in | |
12230 | *" $f "*) ;; | |
12231 | *) extra_objects="$extra_objects $f" ;; | |
12232 | esac | |
12233 | done | |
ce2cded5 | 12234 | ;; |
d7040cdb | 12235 | |
ce2cded5 | 12236 | mt) |
e11078da | 12237 | using_cgen=yes |
ce2cded5 | 12238 | ;; |
d7040cdb | 12239 | |
35c08157 | 12240 | nds32) |
fbaf61ad NC |
12241 | # setup NDS32_LINUX_TOOLCHAIN definition |
12242 | if test "linux" = $em; then | |
12243 | ||
12244 | $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h | |
12245 | ||
12246 | else | |
12247 | ||
12248 | $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h | |
12249 | ||
12250 | fi | |
12251 | ||
e11078da | 12252 | # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features |
35c08157 KLC |
12253 | # based on arch_name. |
12254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5 | |
12255 | $as_echo_n "checking for default configuration of --with-arch... " >&6; } | |
12256 | if test "x${with_arch}" != x; then | |
12257 | case ${with_arch} in | |
e11078da | 12258 | v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 ) |
35c08157 KLC |
12259 | |
12260 | cat >>confdefs.h <<_ACEOF | |
12261 | #define NDS32_DEFAULT_ARCH_NAME "$with_arch" | |
12262 | _ACEOF | |
12263 | ||
e11078da | 12264 | ;; |
35c08157 | 12265 | *) |
d0ac1c44 | 12266 | as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5 |
35c08157 | 12267 | ;; |
e11078da | 12268 | esac |
35c08157 KLC |
12269 | fi |
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5 | |
12271 | $as_echo "$with_arch" >&6; } | |
12272 | ||
e11078da AM |
12273 | # Decide features one by one. |
12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5 | |
35c08157 | 12275 | $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; } |
6cd8405e | 12276 | if test "x${enable_dx_regs}" = xyes; then |
35c08157 KLC |
12277 | |
12278 | $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h | |
12279 | ||
12280 | else | |
12281 | ||
12282 | $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h | |
12283 | ||
12284 | fi | |
12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5 | |
12286 | $as_echo "$enable_dx_regs" >&6; } | |
12287 | ||
e11078da | 12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5 |
35c08157 | 12289 | $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; } |
6cd8405e | 12290 | if test "x${enable_perf_ext}" = xno; then |
35c08157 KLC |
12291 | |
12292 | $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h | |
12293 | ||
12294 | else | |
12295 | ||
12296 | $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h | |
12297 | ||
12298 | fi | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5 | |
12300 | $as_echo "$enable_perf_ext" >&6; } | |
12301 | ||
e11078da | 12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5 |
35c08157 | 12303 | $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; } |
6cd8405e | 12304 | if test "x${enable_perf_ext2}" = xno; then |
35c08157 KLC |
12305 | |
12306 | $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h | |
12307 | ||
12308 | else | |
12309 | ||
12310 | $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h | |
12311 | ||
12312 | fi | |
12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5 | |
12314 | $as_echo "$enable_perf_ext2" >&6; } | |
12315 | ||
e11078da | 12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5 |
35c08157 | 12317 | $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; } |
6cd8405e | 12318 | if test "x${enable_string_ext}" = xno; then |
35c08157 KLC |
12319 | |
12320 | $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h | |
12321 | ||
12322 | else | |
12323 | ||
12324 | $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h | |
12325 | ||
12326 | fi | |
12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5 | |
12328 | $as_echo "$enable_string_ext" >&6; } | |
12329 | ||
e11078da | 12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5 |
35c08157 | 12331 | $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; } |
6cd8405e | 12332 | if test "x${enable_audio_ext}" = xno; then |
35c08157 KLC |
12333 | |
12334 | $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h | |
12335 | ||
12336 | else | |
12337 | ||
12338 | $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h | |
12339 | ||
12340 | fi | |
12341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5 | |
12342 | $as_echo "$enable_audio_ext" >&6; } | |
fbaf61ad NC |
12343 | |
12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5 | |
12345 | $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; } | |
12346 | if test "x${enable_dsp_ext}" = xno; then | |
12347 | ||
12348 | $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h | |
12349 | ||
12350 | else | |
12351 | ||
12352 | $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h | |
12353 | ||
12354 | fi | |
12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5 | |
12356 | $as_echo "$enable_dsp_ext" >&6; } | |
12357 | ||
12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5 | |
12359 | $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; } | |
12360 | if test "x${enable_zol_ext}" = xno; then | |
12361 | ||
12362 | $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h | |
12363 | ||
12364 | else | |
12365 | ||
12366 | $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h | |
12367 | ||
12368 | fi | |
12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5 | |
12370 | $as_echo "$enable_zol_ext" >&6; } | |
35c08157 KLC |
12371 | ;; |
12372 | ||
8f595e9b | 12373 | aarch64 | i386 | s390 | sparc) |
ce2cded5 | 12374 | if test $this_target = $target ; then |
d7040cdb SE |
12375 | |
12376 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12377 | #define DEFAULT_ARCH "${arch}" |
d7040cdb SE |
12378 | _ACEOF |
12379 | ||
ce2cded5 L |
12380 | fi |
12381 | ;; | |
d7040cdb | 12382 | |
8f595e9b NC |
12383 | riscv) |
12384 | # --target=riscv[32|64]-*-*. */ | |
12385 | if test $this_target = $target ; then | |
12386 | ||
12387 | cat >>confdefs.h <<_ACEOF | |
12388 | #define DEFAULT_ARCH "${arch}" | |
12389 | _ACEOF | |
12390 | ||
12391 | fi | |
12392 | ||
12393 | # --with-arch=<value>. The syntax of <value> is same as Gas option -march. | |
12394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5 | |
12395 | $as_echo_n "checking for default configuration of --with-arch... " >&6; } | |
12396 | if test "x${with_arch}" != x; then | |
12397 | ||
12398 | cat >>confdefs.h <<_ACEOF | |
12399 | #define DEFAULT_RISCV_ARCH_WITH_EXT "$with_arch" | |
12400 | _ACEOF | |
12401 | ||
12402 | fi | |
12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5 | |
12404 | $as_echo "$with_arch" >&6; } | |
12405 | ||
12406 | # --with-isa-spec=[2.2|20190608|20191213]. | |
12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-isa-spec" >&5 | |
12408 | $as_echo_n "checking for default configuration of --with-isa-spec... " >&6; } | |
12409 | if test "x${with_isa_spec}" != x; then | |
12410 | ||
12411 | cat >>confdefs.h <<_ACEOF | |
12412 | #define DEFAULT_RISCV_ISA_SPEC "$with_isa_spec" | |
12413 | _ACEOF | |
12414 | ||
12415 | fi | |
12416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5 | |
12417 | $as_echo "$with_isa_spec" >&6; } | |
12418 | ||
12419 | # --with-priv-spec=[1.9|1.9.1|1.10|1.11]. | |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5 | |
12421 | $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; } | |
12422 | if test "x${with_priv_spec}" != x; then | |
12423 | ||
12424 | cat >>confdefs.h <<_ACEOF | |
12425 | #define DEFAULT_RISCV_PRIV_SPEC "$with_priv_spec" | |
12426 | _ACEOF | |
12427 | ||
12428 | fi | |
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_priv_spec" >&5 | |
12430 | $as_echo "$with_priv_spec" >&6; } | |
12431 | ;; | |
12432 | ||
99c513f6 | 12433 | rl78) |
55add51e | 12434 | f=config/rl78-parse.o |
e11078da AM |
12435 | case " $extra_objects " in |
12436 | *" $f "*) ;; | |
12437 | *) extra_objects="$extra_objects $f" ;; | |
12438 | esac | |
99c513f6 DD |
12439 | ;; |
12440 | ||
c7927a3c | 12441 | rx) |
55add51e | 12442 | f=config/rx-parse.o |
e11078da AM |
12443 | case " $extra_objects " in |
12444 | *" $f "*) ;; | |
12445 | *) extra_objects="$extra_objects $f" ;; | |
12446 | esac | |
c7927a3c NC |
12447 | ;; |
12448 | ||
ce2cded5 L |
12449 | xstormy16) |
12450 | using_cgen=yes | |
12451 | ;; | |
d7040cdb | 12452 | |
ce2cded5 L |
12453 | xc16x) |
12454 | using_cgen=yes | |
12455 | ;; | |
d7040cdb | 12456 | |
ce2cded5 | 12457 | xtensa) |
e11078da AM |
12458 | f=config/xtensa-relax.o |
12459 | case " $extra_objects " in | |
12460 | *" $f "*) ;; | |
12461 | *) extra_objects="$extra_objects $f" ;; | |
12462 | esac | |
ce2cded5 | 12463 | ;; |
d7040cdb | 12464 | |
ce2cded5 L |
12465 | *) |
12466 | ;; | |
12467 | esac | |
d7040cdb | 12468 | |
ce2cded5 | 12469 | if test $using_cgen = yes ; then |
e11078da AM |
12470 | f=cgen.o |
12471 | case " $extra_objects " in | |
12472 | *" $f "*) ;; | |
12473 | *) extra_objects="$extra_objects $f" ;; | |
ce2cded5 L |
12474 | esac |
12475 | fi | |
d7040cdb | 12476 | |
ce2cded5 | 12477 | # See if we really can support this configuration with the emulation code. |
d7040cdb | 12478 | |
ce2cded5 L |
12479 | if test $this_target = $target ; then |
12480 | obj_format=$fmt | |
12481 | te_file=$em | |
12482 | fi | |
d7040cdb | 12483 | |
e11078da AM |
12484 | case ${te_file} in |
12485 | vms) | |
12486 | f=config/te-vms.o | |
12487 | case " $extra_objects " in | |
12488 | *" $f "*) ;; | |
12489 | *) extra_objects="$extra_objects $f" ;; | |
12490 | esac ;; | |
12491 | esac | |
b11d79f2 | 12492 | |
ce2cded5 | 12493 | # From target name and format, produce a list of supported emulations. |
d7040cdb | 12494 | |
ce2cded5 | 12495 | case ${generic_target}-${fmt} in |
e8044f35 | 12496 | mips-*-*-*) case "$endian" in |
ce2cded5 L |
12497 | big) emulation="mipsbelf mipslelf mipself" ;; |
12498 | *) emulation="mipslelf mipsbelf mipself" ;; | |
12499 | esac ;; | |
ce2cded5 L |
12500 | # i386-pc-pe-coff != i386-pc-coff. |
12501 | i386-*-pe-coff) ;; | |
12502 | # Uncommenting the next line will turn on support for i386 AOUT | |
12503 | # for the default linux configuration | |
12504 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | |
12505 | # | |
12506 | i386-*-aout) emulation="i386aout" ;; | |
12507 | i386-*-coff) emulation="i386coff" ;; | |
12508 | i386-*-elf) emulation="i386elf" ;; | |
d7040cdb | 12509 | |
ce2cded5 L |
12510 | # Always all formats. The first stated emulation becomes the default. |
12511 | cris-*-*aout*) emulation="crisaout criself" ;; | |
12512 | cris-*-*) emulation="criself crisaout" ;; | |
12513 | esac | |
13b2be9c | 12514 | |
ce2cded5 | 12515 | emulations="$emulations $emulation" |
13b2be9c | 12516 | |
13b2be9c | 12517 | done |
13b2be9c | 12518 | |
0cb4071e L |
12519 | if test ${ac_default_x86_relax_relocations} = unset; then |
12520 | ac_default_x86_relax_relocations=1 | |
12521 | fi | |
12522 | ||
12523 | cat >>confdefs.h <<_ACEOF | |
12524 | #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations | |
12525 | _ACEOF | |
12526 | ||
12527 | ||
b8871f35 L |
12528 | if test ${ac_default_elf_stt_common} = unset; then |
12529 | ac_default_elf_stt_common=0 | |
12530 | fi | |
12531 | ||
12532 | cat >>confdefs.h <<_ACEOF | |
12533 | #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common | |
12534 | _ACEOF | |
12535 | ||
12536 | ||
0df8ad28 NC |
12537 | |
12538 | cat >>confdefs.h <<_ACEOF | |
12539 | #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes | |
12540 | _ACEOF | |
12541 | ||
12542 | ||
b4a3a7b4 L |
12543 | if test ${ac_default_generate_x86_used_note} = unset; then |
12544 | ac_default_generate_x86_used_note=0 | |
12545 | fi | |
12546 | ||
12547 | cat >>confdefs.h <<_ACEOF | |
12548 | #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note | |
12549 | _ACEOF | |
12550 | ||
12551 | ||
2dc8dd17 JW |
12552 | if test ${ac_default_generate_riscv_attr} = unset; then |
12553 | case ${target_os} in | |
12554 | elf) | |
12555 | ac_default_generate_riscv_attr=1 | |
12556 | ;; | |
12557 | *) | |
12558 | ac_default_generate_riscv_attr=0 | |
12559 | ;; | |
12560 | esac | |
12561 | fi | |
12562 | ||
12563 | ||
12564 | cat >>confdefs.h <<_ACEOF | |
12565 | #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr | |
12566 | _ACEOF | |
12567 | ||
12568 | ||
6f2117ba PH |
12569 | if test ${ac_default_mips_fix_loongson3_llsc} = unset; then |
12570 | ac_default_mips_fix_loongson3_llsc=0 | |
12571 | fi | |
12572 | ||
12573 | cat >>confdefs.h <<_ACEOF | |
12574 | #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc | |
12575 | _ACEOF | |
12576 | ||
12577 | ||
348ef89a | 12578 | if test x$ac_default_compressed_debug_sections = xyes ; then |
e12fe555 NC |
12579 | |
12580 | $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h | |
12581 | ||
6c3bc0f8 | 12582 | fi |
e12fe555 | 12583 | |
ce2cded5 L |
12584 | # Turn on all targets if possible |
12585 | if test ${all_targets} = "yes"; then | |
12586 | case ${target_cpu_type} in | |
12587 | i386) | |
12588 | case ${obj_format} in | |
12589 | aout) | |
12590 | emulations="$emulations i386coff i386elf" | |
12591 | ;; | |
12592 | coff) | |
12593 | emulations="$emulations i386aout i386elf" | |
12594 | ;; | |
12595 | elf) | |
12596 | emulations="$emulations i386aout i386coff" | |
12597 | ;; | |
12598 | esac | |
12599 | ;; | |
12600 | x86_64) | |
12601 | case ${obj_format} in | |
12602 | aout) | |
12603 | emulations="$emulations i386coff i386elf" | |
12604 | ;; | |
12605 | coff) | |
12606 | emulations="$emulations i386aout i386elf" | |
12607 | ;; | |
12608 | elf) | |
12609 | emulations="$emulations i386aout i386coff" | |
12610 | ;; | |
12611 | esac | |
12612 | ;; | |
12613 | esac | |
13b2be9c | 12614 | fi |
c8615825 | 12615 | |
39871c07 AM |
12616 | # PE code has way too many macros tweaking behaviour |
12617 | case ${te_file} in | |
12618 | pe*) emulations="" ;; | |
12619 | esac | |
12620 | ||
ce2cded5 L |
12621 | # Assign floating point type. Most processors with FP support |
12622 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
12623 | # is emulated. | |
12624 | case ${target_cpu} in | |
12625 | vax | pdp11 ) atof=vax ;; | |
12626 | *) atof=ieee ;; | |
12627 | esac | |
c8615825 | 12628 | |
ce2cded5 | 12629 | case "${obj_format}" in |
d0ac1c44 | 12630 | "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;; |
ce2cded5 | 12631 | esac |
13b2be9c | 12632 | |
ce2cded5 L |
12633 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). |
12634 | cgen_cpu_prefix="" | |
12635 | if test $using_cgen = yes ; then | |
12636 | case ${target_cpu} in | |
73589c9d CS |
12637 | or1knd) |
12638 | cgen_cpu_prefix=or1k ;; | |
ce2cded5 L |
12639 | *) cgen_cpu_prefix=${target_cpu} ;; |
12640 | esac | |
c8615825 | 12641 | |
c8615825 | 12642 | |
81ecdfbb | 12643 | $as_echo "#define USING_CGEN 1" >>confdefs.h |
d7040cdb | 12644 | |
d7040cdb | 12645 | fi |
13b2be9c | 12646 | |
ce2cded5 L |
12647 | |
12648 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then | |
d0ac1c44 | 12649 | as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5 |
13b2be9c | 12650 | fi |
ce2cded5 L |
12651 | |
12652 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | |
d0ac1c44 | 12653 | as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5 |
13b2be9c DJ |
12654 | fi |
12655 | ||
ce2cded5 L |
12656 | # Some COFF configurations want these random other flags set. |
12657 | case ${obj_format} in | |
12658 | coff) | |
12659 | case ${target_cpu_type} in | |
12660 | i386) | |
81ecdfbb | 12661 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12662 | ;; |
12663 | x86_64) | |
81ecdfbb | 12664 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12665 | ;; |
12666 | esac | |
12667 | ;; | |
12668 | esac | |
12669 | ||
12670 | # Getting this done right is going to be a bitch. Each configuration specified | |
12671 | # with --enable-targets=... should be checked for environment, format, cpu | |
12672 | # setting. | |
12673 | # | |
12674 | # For each configuration, the necessary object file support code must be linked | |
12675 | # in. This might be only one, it might be up to four. The necessary emulation | |
12676 | # code needs to be provided, too. | |
12677 | # | |
12678 | # And then there's "--enable-targets=all".... | |
12679 | # | |
e8044f35 | 12680 | # For now, just always do it for MIPS ELF configurations. Sigh. |
ce2cded5 L |
12681 | |
12682 | formats="${obj_format}" | |
12683 | emfiles="" | |
12684 | EMULATIONS="" | |
12685 | _gas_uniq_list="$emulations" | |
12686 | _gas_uniq_newlist="" | |
12687 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12688 | case $_gas_uniq_i in | |
12689 | _gas_uniq_dummy) ;; | |
12690 | *) case " $_gas_uniq_newlist " in | |
12691 | *" $_gas_uniq_i "*) ;; | |
12692 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12693 | esac ;; | |
12694 | esac | |
12695 | done | |
12696 | emulations=$_gas_uniq_newlist | |
12697 | ||
12698 | for em in . $emulations ; do | |
12699 | case $em in | |
12700 | .) continue ;; | |
12701 | mipsbelf | mipslelf | mipself) | |
12702 | fmt=elf file=mipself ;; | |
ce2cded5 L |
12703 | *coff) |
12704 | fmt=coff file=$em ;; | |
12705 | *aout) | |
12706 | fmt=aout file=$em ;; | |
12707 | *elf) | |
12708 | fmt=elf file=$em ;; | |
12709 | esac | |
12710 | formats="$formats $fmt" | |
d0ac1c44 | 12711 | emfiles="$emfiles config/e-$file.o" |
ce2cded5 L |
12712 | EMULATIONS="$EMULATIONS &$em," |
12713 | done | |
12714 | _gas_uniq_list="$formats" | |
12715 | _gas_uniq_newlist="" | |
12716 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12717 | case $_gas_uniq_i in | |
12718 | _gas_uniq_dummy) ;; | |
12719 | *) case " $_gas_uniq_newlist " in | |
12720 | *" $_gas_uniq_i "*) ;; | |
12721 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12722 | esac ;; | |
12723 | esac | |
13b2be9c | 12724 | done |
ce2cded5 | 12725 | formats=$_gas_uniq_newlist |
13b2be9c | 12726 | |
ce2cded5 L |
12727 | _gas_uniq_list="$emfiles" |
12728 | _gas_uniq_newlist="" | |
12729 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12730 | case $_gas_uniq_i in | |
12731 | _gas_uniq_dummy) ;; | |
12732 | *) case " $_gas_uniq_newlist " in | |
12733 | *" $_gas_uniq_i "*) ;; | |
12734 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12735 | esac ;; | |
12736 | esac | |
12737 | done | |
12738 | emfiles=$_gas_uniq_newlist | |
d7040cdb | 12739 | |
ce2cded5 L |
12740 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then |
12741 | for fmt in $formats ; do | |
12742 | case $fmt in | |
12743 | aout) | |
81ecdfbb | 12744 | $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h |
ce2cded5 L |
12745 | ;; |
12746 | coff) | |
81ecdfbb | 12747 | $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h |
ce2cded5 L |
12748 | ;; |
12749 | ecoff) | |
81ecdfbb | 12750 | $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h |
ce2cded5 L |
12751 | ;; |
12752 | elf) | |
81ecdfbb | 12753 | $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h |
ce2cded5 L |
12754 | ;; |
12755 | generic) | |
81ecdfbb | 12756 | $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h |
ce2cded5 L |
12757 | ;; |
12758 | som) | |
81ecdfbb | 12759 | $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h |
ce2cded5 L |
12760 | ;; |
12761 | esac | |
d0ac1c44 | 12762 | extra_objects="$extra_objects config/obj-$fmt.o" |
ce2cded5 L |
12763 | done |
12764 | obj_format=multi | |
13b2be9c | 12765 | fi |
ce2cded5 L |
12766 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then |
12767 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | |
e8044f35 | 12768 | # e-mipself has more than one emulation per file, e-i386* has just one at the |
ce2cded5 L |
12769 | # moment. If only one emulation is specified, then don't define |
12770 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | |
12771 | case "${obj_format}${emfiles}" in | |
e8044f35 | 12772 | multi* | *mipself*) |
ce2cded5 | 12773 | extra_objects="$extra_objects $emfiles" |
d7040cdb | 12774 | |
81ecdfbb | 12775 | $as_echo "#define USE_EMULATIONS 1" >>confdefs.h |
ce2cded5 L |
12776 | ;; |
12777 | esac | |
12778 | fi | |
d7040cdb | 12779 | |
13b2be9c | 12780 | |
ce2cded5 L |
12781 | cat >>confdefs.h <<_ACEOF |
12782 | #define EMULATIONS $EMULATIONS | |
13b2be9c | 12783 | _ACEOF |
d7040cdb | 12784 | |
d7040cdb | 12785 | |
ce2cded5 L |
12786 | cat >>confdefs.h <<_ACEOF |
12787 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | |
d7040cdb | 12788 | _ACEOF |
d7040cdb | 12789 | |
d7040cdb | 12790 | |
ce2cded5 | 12791 | reject_dev_configs=yes |
252b5132 | 12792 | |
ce2cded5 L |
12793 | case ${reject_dev_configs}-${dev} in |
12794 | yes-yes) # Oops. | |
d0ac1c44 | 12795 | as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5 |
ce2cded5 | 12796 | ;; |
d7040cdb SE |
12797 | esac |
12798 | ||
13b2be9c | 12799 | |
ce2cded5 L |
12800 | |
12801 | ||
12802 | ||
12803 | ||
12804 | ||
12805 | # do we need the opcodes library? | |
12806 | case "${need_opcodes}" in | |
12807 | yes) | |
12808 | OPCODES_LIB=../opcodes/libopcodes.la | |
12809 | ;; | |
12810 | esac | |
12811 | ||
12812 | ||
12813 | ||
12814 | ||
12815 | cat >>confdefs.h <<_ACEOF | |
12816 | #define TARGET_ALIAS "${target_alias}" | |
d7040cdb | 12817 | _ACEOF |
20e95c23 | 12818 | |
20e95c23 | 12819 | |
ce2cded5 L |
12820 | cat >>confdefs.h <<_ACEOF |
12821 | #define TARGET_CANONICAL "${target}" | |
12822 | _ACEOF | |
20e95c23 | 12823 | |
d6d788bd | 12824 | |
ce2cded5 L |
12825 | cat >>confdefs.h <<_ACEOF |
12826 | #define TARGET_CPU "${target_cpu}" | |
12827 | _ACEOF | |
20e95c23 | 12828 | |
ce2cded5 L |
12829 | |
12830 | cat >>confdefs.h <<_ACEOF | |
12831 | #define TARGET_VENDOR "${target_vendor}" | |
0efedc4c AM |
12832 | _ACEOF |
12833 | ||
12834 | ||
ce2cded5 L |
12835 | cat >>confdefs.h <<_ACEOF |
12836 | #define TARGET_OS "${target_os}" | |
12837 | _ACEOF | |
12838 | ||
0efedc4c | 12839 | |
d7040cdb SE |
12840 | for ac_prog in 'bison -y' byacc |
12841 | do | |
12842 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12843 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12845 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12846 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 12847 | $as_echo_n "(cached) " >&6 |
20e95c23 | 12848 | else |
d7040cdb SE |
12849 | if test -n "$YACC"; then |
12850 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
d6d788bd | 12851 | else |
d7040cdb SE |
12852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12853 | for as_dir in $PATH | |
12854 | do | |
12855 | IFS=$as_save_IFS | |
12856 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12857 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12859 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 12860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 12861 | break 2 |
20e95c23 | 12862 | fi |
d7040cdb | 12863 | done |
81ecdfbb RW |
12864 | done |
12865 | IFS=$as_save_IFS | |
20e95c23 | 12866 | |
d7040cdb SE |
12867 | fi |
12868 | fi | |
12869 | YACC=$ac_cv_prog_YACC | |
12870 | if test -n "$YACC"; then | |
81ecdfbb RW |
12871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12872 | $as_echo "$YACC" >&6; } | |
d7040cdb | 12873 | else |
81ecdfbb RW |
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12875 | $as_echo "no" >&6; } | |
d7040cdb | 12876 | fi |
20e95c23 | 12877 | |
81ecdfbb | 12878 | |
d7040cdb SE |
12879 | test -n "$YACC" && break |
12880 | done | |
12881 | test -n "$YACC" || YACC="yacc" | |
20e95c23 | 12882 | |
d7040cdb SE |
12883 | for ac_prog in flex lex |
12884 | do | |
12885 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12886 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12888 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12889 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 12890 | $as_echo_n "(cached) " >&6 |
d6d788bd | 12891 | else |
d7040cdb SE |
12892 | if test -n "$LEX"; then |
12893 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
12894 | else | |
12895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12896 | for as_dir in $PATH | |
12897 | do | |
12898 | IFS=$as_save_IFS | |
12899 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12900 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12902 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 12903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12904 | break 2 |
12905 | fi | |
12906 | done | |
81ecdfbb RW |
12907 | done |
12908 | IFS=$as_save_IFS | |
20e95c23 | 12909 | |
d7040cdb SE |
12910 | fi |
12911 | fi | |
12912 | LEX=$ac_cv_prog_LEX | |
12913 | if test -n "$LEX"; then | |
81ecdfbb RW |
12914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12915 | $as_echo "$LEX" >&6; } | |
20e95c23 | 12916 | else |
81ecdfbb RW |
12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12918 | $as_echo "no" >&6; } | |
13b2be9c DJ |
12919 | fi |
12920 | ||
81ecdfbb | 12921 | |
d7040cdb SE |
12922 | test -n "$LEX" && break |
12923 | done | |
12924 | test -n "$LEX" || LEX=":" | |
20e95c23 | 12925 | |
3d961d0d AM |
12926 | case "$LEX" in |
12927 | :|*"missing "*) ;; | |
12928 | *) cat >conftest.l <<_ACEOF | |
81ecdfbb RW |
12929 | %% |
12930 | a { ECHO; } | |
12931 | b { REJECT; } | |
12932 | c { yymore (); } | |
12933 | d { yyless (1); } | |
d0ac1c44 SM |
12934 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
12935 | yyless ((input () != 0)); } | |
81ecdfbb RW |
12936 | f { unput (yytext[0]); } |
12937 | . { BEGIN INITIAL; } | |
12938 | %% | |
12939 | #ifdef YYTEXT_POINTER | |
12940 | extern char *yytext; | |
d7040cdb | 12941 | #endif |
d7040cdb | 12942 | int |
81ecdfbb | 12943 | main (void) |
d7040cdb | 12944 | { |
81ecdfbb | 12945 | return ! yylex () + ! yywrap (); |
d7040cdb SE |
12946 | } |
12947 | _ACEOF | |
81ecdfbb RW |
12948 | { { ac_try="$LEX conftest.l" |
12949 | case "(($ac_try" in | |
12950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12951 | *) ac_try_echo=$ac_try;; | |
12952 | esac | |
12953 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
12954 | $as_echo "$ac_try_echo"; } >&5 | |
12955 | (eval "$LEX conftest.l") 2>&5 | |
d7040cdb | 12956 | ac_status=$? |
81ecdfbb RW |
12957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12958 | test $ac_status = 0; } | |
12959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
12960 | $as_echo_n "checking lex output file root... " >&6; } | |
d0ac1c44 | 12961 | if ${ac_cv_prog_lex_root+:} false; then : |
81ecdfbb | 12962 | $as_echo_n "(cached) " >&6 |
d7040cdb | 12963 | else |
d5fbea21 | 12964 | |
81ecdfbb RW |
12965 | if test -f lex.yy.c; then |
12966 | ac_cv_prog_lex_root=lex.yy | |
12967 | elif test -f lexyy.c; then | |
12968 | ac_cv_prog_lex_root=lexyy | |
12969 | else | |
d0ac1c44 | 12970 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
d6d788bd | 12971 | fi |
d7040cdb | 12972 | fi |
81ecdfbb RW |
12973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12974 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
12975 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
d7040cdb | 12976 | |
81ecdfbb RW |
12977 | if test -z "${LEXLIB+set}"; then |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
12979 | $as_echo_n "checking lex library... " >&6; } | |
d0ac1c44 | 12980 | if ${ac_cv_lib_lex+:} false; then : |
81ecdfbb | 12981 | $as_echo_n "(cached) " >&6 |
d7040cdb | 12982 | else |
d7040cdb | 12983 | |
81ecdfbb RW |
12984 | ac_save_LIBS=$LIBS |
12985 | ac_cv_lib_lex='none needed' | |
12986 | for ac_lib in '' -lfl -ll; do | |
12987 | LIBS="$ac_lib $ac_save_LIBS" | |
12988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12989 | /* end confdefs.h. */ | |
12990 | `cat $LEX_OUTPUT_ROOT.c` | |
12991 | _ACEOF | |
12992 | if ac_fn_c_try_link "$LINENO"; then : | |
12993 | ac_cv_lib_lex=$ac_lib | |
d7040cdb | 12994 | fi |
81ecdfbb RW |
12995 | rm -f core conftest.err conftest.$ac_objext \ |
12996 | conftest$ac_exeext conftest.$ac_ext | |
12997 | test "$ac_cv_lib_lex" != 'none needed' && break | |
12998 | done | |
12999 | LIBS=$ac_save_LIBS | |
d7040cdb SE |
13000 | |
13001 | fi | |
81ecdfbb RW |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
13003 | $as_echo "$ac_cv_lib_lex" >&6; } | |
13004 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb SE |
13005 | fi |
13006 | ||
13b2be9c | 13007 | |
81ecdfbb RW |
13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
13009 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
d0ac1c44 | 13010 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
81ecdfbb | 13011 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
13012 | else |
13013 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 13014 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
13015 | # not all implementations provide the %pointer and %array declarations. |
13016 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 13017 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
13018 | LIBS="$LEXLIB $ac_save_LIBS" |
13019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13020 | /* end confdefs.h. */ | |
d0ac1c44 SM |
13021 | |
13022 | #define YYTEXT_POINTER 1 | |
d7040cdb | 13023 | `cat $LEX_OUTPUT_ROOT.c` |
13b2be9c | 13024 | _ACEOF |
81ecdfbb | 13025 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13026 | ac_cv_prog_lex_yytext_pointer=yes |
13b2be9c | 13027 | fi |
81ecdfbb RW |
13028 | rm -f core conftest.err conftest.$ac_objext \ |
13029 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 13030 | LIBS=$ac_save_LIBS |
252b5132 | 13031 | |
9b2b7d69 | 13032 | fi |
81ecdfbb RW |
13033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
13034 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb | 13035 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
13b2be9c | 13036 | |
81ecdfbb | 13037 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
9b2b7d69 | 13038 | |
d6d788bd | 13039 | fi |
81ecdfbb | 13040 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
3d961d0d AM |
13041 | ;; |
13042 | esac | |
d7040cdb SE |
13043 | if test "$LEX" = :; then |
13044 | LEX=${am_missing_run}flex | |
13045 | fi | |
13046 | ||
e184813f | 13047 | ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN" |
d7040cdb SE |
13048 | # If we haven't got the data from the intl directory, |
13049 | # assume NLS is disabled. | |
13050 | USE_NLS=no | |
13051 | LIBINTL= | |
13052 | LIBINTL_DEP= | |
13053 | INCINTL= | |
13054 | XGETTEXT= | |
13055 | GMSGFMT= | |
13056 | POSUB= | |
13057 | ||
13058 | if test -f ../intl/config.intl; then | |
13059 | . ../intl/config.intl | |
13060 | fi | |
81ecdfbb RW |
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
13062 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 13063 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13065 | $as_echo "no" >&6; } | |
d7040cdb | 13066 | else |
81ecdfbb RW |
13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13068 | $as_echo "yes" >&6; } | |
d7040cdb | 13069 | |
81ecdfbb | 13070 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
13071 | |
13072 | ||
81ecdfbb RW |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
13074 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
13075 | # Look for .po and .gmo files in the source directory. |
13076 | CATALOGS= | |
13077 | XLINGUAS= | |
13078 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
13079 | # If there aren't any .gmo files the shell will give us the | |
13080 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
13081 | # weeded out. | |
13082 | case "$cat" in *\**) | |
13083 | continue;; | |
13084 | esac | |
13085 | # The quadruple backslash is collapsed to a double backslash | |
13086 | # by the backticks, then collapsed again by the double quotes, | |
13087 | # leaving us with one backslash in the sed expression (right | |
13088 | # before the dot that mustn't act as a wildcard). | |
13089 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
13090 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
13091 | # The user is allowed to set LINGUAS to a list of languages to | |
13092 | # install catalogs for. If it's empty that means "all of them." | |
13093 | if test "x$LINGUAS" = x; then | |
13094 | CATALOGS="$CATALOGS $cat" | |
13095 | XLINGUAS="$XLINGUAS $lang" | |
13096 | else | |
13097 | case "$LINGUAS" in *$lang*) | |
13098 | CATALOGS="$CATALOGS $cat" | |
13099 | XLINGUAS="$XLINGUAS $lang" | |
13100 | ;; | |
13101 | esac | |
13102 | fi | |
13103 | done | |
13104 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
13106 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
13107 | |
13108 | ||
13109 | DATADIRNAME=share | |
13110 | ||
13111 | INSTOBJEXT=.mo | |
13112 | ||
13113 | GENCAT=gencat | |
13114 | ||
13115 | CATOBJEXT=.gmo | |
13116 | ||
13117 | fi | |
13118 | ||
13119 | MKINSTALLDIRS= | |
13120 | if test -n "$ac_aux_dir"; then | |
13121 | case "$ac_aux_dir" in | |
13122 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
13123 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
13124 | esac | |
13125 | fi | |
13126 | if test -z "$MKINSTALLDIRS"; then | |
13127 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
13128 | fi | |
13129 | ||
13130 | ||
13131 | ||
81ecdfbb RW |
13132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
13133 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
13134 | # Check whether --enable-nls was given. | |
13135 | if test "${enable_nls+set}" = set; then : | |
13136 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
13137 | else |
13138 | USE_NLS=yes | |
81ecdfbb RW |
13139 | fi |
13140 | ||
13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
13142 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
13143 | |
13144 | ||
13145 | ||
13146 | ||
13147 | ||
13148 | ||
13149 | # Prepare PATH_SEPARATOR. | |
13150 | # The user is always right. | |
13151 | if test "${PATH_SEPARATOR+set}" != set; then | |
13152 | echo "#! /bin/sh" >conf$$.sh | |
13153 | echo "exit 0" >>conf$$.sh | |
13154 | chmod +x conf$$.sh | |
13155 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13156 | PATH_SEPARATOR=';' | |
13b2be9c | 13157 | else |
d7040cdb | 13158 | PATH_SEPARATOR=: |
13b2be9c | 13159 | fi |
d7040cdb | 13160 | rm -f conf$$.sh |
252b5132 | 13161 | fi |
13b2be9c | 13162 | |
d7040cdb SE |
13163 | # Find out how to test for executable files. Don't use a zero-byte file, |
13164 | # as systems may use methods other than mode bits to determine executability. | |
13165 | cat >conf$$.file <<_ASEOF | |
13166 | #! /bin/sh | |
13167 | exit 0 | |
13168 | _ASEOF | |
13169 | chmod +x conf$$.file | |
13170 | if test -x conf$$.file >/dev/null 2>&1; then | |
13171 | ac_executable_p="test -x" | |
13172 | else | |
13173 | ac_executable_p="test -f" | |
13b2be9c | 13174 | fi |
d7040cdb | 13175 | rm -f conf$$.file |
13b2be9c | 13176 | |
d7040cdb SE |
13177 | # Extract the first word of "msgfmt", so it can be a program name with args. |
13178 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13180 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13181 | if ${ac_cv_path_MSGFMT+:} false; then : |
81ecdfbb | 13182 | $as_echo_n "(cached) " >&6 |
252b5132 | 13183 | else |
d7040cdb SE |
13184 | case "$MSGFMT" in |
13185 | [\\/]* | ?:[\\/]*) | |
13186 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13187 | ;; | |
13188 | *) | |
13189 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13190 | for ac_dir in $PATH; do | |
13191 | IFS="$ac_save_IFS" | |
13192 | test -z "$ac_dir" && ac_dir=. | |
13193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13194 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13195 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
13196 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13197 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
13198 | break 2 | |
13199 | fi | |
13200 | fi | |
13201 | done | |
13202 | done | |
13203 | IFS="$ac_save_IFS" | |
13204 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
13205 | ;; | |
13206 | esac | |
252b5132 | 13207 | fi |
d7040cdb SE |
13208 | MSGFMT="$ac_cv_path_MSGFMT" |
13209 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
13211 | $as_echo "$MSGFMT" >&6; } | |
252b5132 | 13212 | else |
81ecdfbb RW |
13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13214 | $as_echo "no" >&6; } | |
252b5132 | 13215 | fi |
252b5132 | 13216 | |
d7040cdb SE |
13217 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
13218 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13220 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13221 | if ${ac_cv_path_GMSGFMT+:} false; then : |
81ecdfbb | 13222 | $as_echo_n "(cached) " >&6 |
13b2be9c | 13223 | else |
d7040cdb SE |
13224 | case $GMSGFMT in |
13225 | [\\/]* | ?:[\\/]*) | |
13226 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
13227 | ;; | |
13228 | *) | |
13229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13230 | for as_dir in $PATH | |
13231 | do | |
13232 | IFS=$as_save_IFS | |
13233 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13234 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 13236 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
13238 | break 2 |
13239 | fi | |
13240 | done | |
81ecdfbb RW |
13241 | done |
13242 | IFS=$as_save_IFS | |
252b5132 | 13243 | |
d7040cdb SE |
13244 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
13245 | ;; | |
13246 | esac | |
13247 | fi | |
13248 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 13249 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
13251 | $as_echo "$GMSGFMT" >&6; } | |
ac48eca1 | 13252 | else |
81ecdfbb RW |
13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13254 | $as_echo "no" >&6; } | |
6840198f | 13255 | fi |
6840198f | 13256 | |
13b2be9c | 13257 | |
20e95c23 | 13258 | |
81ecdfbb | 13259 | |
d7040cdb SE |
13260 | # Prepare PATH_SEPARATOR. |
13261 | # The user is always right. | |
13262 | if test "${PATH_SEPARATOR+set}" != set; then | |
13263 | echo "#! /bin/sh" >conf$$.sh | |
13264 | echo "exit 0" >>conf$$.sh | |
13265 | chmod +x conf$$.sh | |
13266 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13267 | PATH_SEPARATOR=';' | |
13268 | else | |
13269 | PATH_SEPARATOR=: | |
13270 | fi | |
13271 | rm -f conf$$.sh | |
13272 | fi | |
20e95c23 | 13273 | |
d7040cdb SE |
13274 | # Find out how to test for executable files. Don't use a zero-byte file, |
13275 | # as systems may use methods other than mode bits to determine executability. | |
13276 | cat >conf$$.file <<_ASEOF | |
13277 | #! /bin/sh | |
13278 | exit 0 | |
13279 | _ASEOF | |
13280 | chmod +x conf$$.file | |
13281 | if test -x conf$$.file >/dev/null 2>&1; then | |
13282 | ac_executable_p="test -x" | |
13b2be9c | 13283 | else |
d7040cdb | 13284 | ac_executable_p="test -f" |
13b2be9c | 13285 | fi |
d7040cdb | 13286 | rm -f conf$$.file |
20e95c23 | 13287 | |
d7040cdb SE |
13288 | # Extract the first word of "xgettext", so it can be a program name with args. |
13289 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13291 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13292 | if ${ac_cv_path_XGETTEXT+:} false; then : |
81ecdfbb | 13293 | $as_echo_n "(cached) " >&6 |
252b5132 | 13294 | else |
d7040cdb SE |
13295 | case "$XGETTEXT" in |
13296 | [\\/]* | ?:[\\/]*) | |
13297 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
13298 | ;; | |
13299 | *) | |
13300 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13301 | for ac_dir in $PATH; do | |
13302 | IFS="$ac_save_IFS" | |
13303 | test -z "$ac_dir" && ac_dir=. | |
13304 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13305 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13306 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13307 | (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 | |
13308 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
13309 | break 2 | |
13310 | fi | |
13311 | fi | |
13312 | done | |
13313 | done | |
13314 | IFS="$ac_save_IFS" | |
13315 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
13316 | ;; | |
13317 | esac | |
13b2be9c | 13318 | fi |
d7040cdb SE |
13319 | XGETTEXT="$ac_cv_path_XGETTEXT" |
13320 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
13322 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 13323 | else |
81ecdfbb RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13325 | $as_echo "no" >&6; } | |
13b2be9c | 13326 | fi |
13b2be9c | 13327 | |
d7040cdb | 13328 | rm -f messages.po |
20e95c23 | 13329 | |
13b2be9c | 13330 | |
d7040cdb SE |
13331 | # Prepare PATH_SEPARATOR. |
13332 | # The user is always right. | |
13333 | if test "${PATH_SEPARATOR+set}" != set; then | |
13334 | echo "#! /bin/sh" >conf$$.sh | |
13335 | echo "exit 0" >>conf$$.sh | |
13336 | chmod +x conf$$.sh | |
13337 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13338 | PATH_SEPARATOR=';' | |
13339 | else | |
13340 | PATH_SEPARATOR=: | |
13341 | fi | |
13342 | rm -f conf$$.sh | |
252b5132 | 13343 | fi |
20e95c23 | 13344 | |
d7040cdb SE |
13345 | # Find out how to test for executable files. Don't use a zero-byte file, |
13346 | # as systems may use methods other than mode bits to determine executability. | |
13347 | cat >conf$$.file <<_ASEOF | |
13348 | #! /bin/sh | |
13349 | exit 0 | |
13350 | _ASEOF | |
13351 | chmod +x conf$$.file | |
13352 | if test -x conf$$.file >/dev/null 2>&1; then | |
13353 | ac_executable_p="test -x" | |
252b5132 | 13354 | else |
d7040cdb SE |
13355 | ac_executable_p="test -f" |
13356 | fi | |
13357 | rm -f conf$$.file | |
20e95c23 | 13358 | |
d7040cdb SE |
13359 | # Extract the first word of "msgmerge", so it can be a program name with args. |
13360 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13362 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13363 | if ${ac_cv_path_MSGMERGE+:} false; then : |
81ecdfbb | 13364 | $as_echo_n "(cached) " >&6 |
20e95c23 | 13365 | else |
d7040cdb SE |
13366 | case "$MSGMERGE" in |
13367 | [\\/]* | ?:[\\/]*) | |
13368 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
13369 | ;; | |
13370 | *) | |
13371 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13372 | for ac_dir in $PATH; do | |
13373 | IFS="$ac_save_IFS" | |
13374 | test -z "$ac_dir" && ac_dir=. | |
13375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13376 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13377 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
13378 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
13379 | break 2 | |
13380 | fi | |
13381 | fi | |
13382 | done | |
13383 | done | |
13384 | IFS="$ac_save_IFS" | |
13385 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
13386 | ;; | |
13387 | esac | |
20e95c23 | 13388 | fi |
d7040cdb SE |
13389 | MSGMERGE="$ac_cv_path_MSGMERGE" |
13390 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
13391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
13392 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 13393 | else |
81ecdfbb RW |
13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13395 | $as_echo "no" >&6; } | |
20e95c23 | 13396 | fi |
252b5132 | 13397 | |
252b5132 | 13398 | |
d7040cdb SE |
13399 | if test "$GMSGFMT" != ":"; then |
13400 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
13401 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13402 | : ; | |
13403 | else | |
13404 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
13406 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
13407 | GMSGFMT=":" |
13408 | fi | |
13409 | fi | |
13b2be9c | 13410 | |
d7040cdb SE |
13411 | if test "$XGETTEXT" != ":"; then |
13412 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13413 | (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 | |
13414 | : ; | |
13415 | else | |
81ecdfbb RW |
13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
13417 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
13418 | XGETTEXT=":" |
13419 | fi | |
13420 | rm -f messages.po | |
13421 | fi | |
252b5132 | 13422 | |
81ecdfbb | 13423 | ac_config_commands="$ac_config_commands default-1" |
13b2be9c | 13424 | |
13b2be9c | 13425 | |
81ecdfbb RW |
13426 | |
13427 | ||
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
13429 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13430 | # Check whether --enable-maintainer-mode was given. | |
13431 | if test "${enable_maintainer_mode+set}" = set; then : | |
13432 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
9b2b7d69 | 13433 | else |
81ecdfbb | 13434 | USE_MAINTAINER_MODE=no |
13b2be9c | 13435 | fi |
13b2be9c | 13436 | |
81ecdfbb RW |
13437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
13438 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
13439 | if test $USE_MAINTAINER_MODE = yes; then | |
13440 | MAINTAINER_MODE_TRUE= | |
23d61380 AM |
13441 | MAINTAINER_MODE_FALSE='#' |
13442 | else | |
13443 | MAINTAINER_MODE_TRUE='#' | |
13444 | MAINTAINER_MODE_FALSE= | |
81ecdfbb | 13445 | fi |
13b2be9c | 13446 | |
23d61380 | 13447 | MAINT=$MAINTAINER_MODE_TRUE |
252b5132 | 13448 | |
252b5132 | 13449 | |
23d61380 AM |
13450 | if false; then |
13451 | GENINSRC_NEVER_TRUE= | |
13452 | GENINSRC_NEVER_FALSE='#' | |
252b5132 | 13453 | else |
23d61380 AM |
13454 | GENINSRC_NEVER_TRUE='#' |
13455 | GENINSRC_NEVER_FALSE= | |
252b5132 | 13456 | fi |
ab509236 | 13457 | |
252b5132 | 13458 | |
6840198f | 13459 | |
23d61380 | 13460 | for ac_header in memory.h sys/stat.h sys/types.h unistd.h |
81ecdfbb | 13461 | do : |
23d61380 AM |
13462 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13463 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
13464 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13b2be9c | 13465 | cat >>confdefs.h <<_ACEOF |
23d61380 | 13466 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13b2be9c | 13467 | _ACEOF |
23d61380 | 13468 | |
252b5132 | 13469 | fi |
23d61380 | 13470 | |
252b5132 RH |
13471 | done |
13472 | ||
23d61380 AM |
13473 | |
13474 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse | |
13475 | # people who are not cross-compiling but are compiling cross-assemblers. | |
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5 | |
13477 | $as_echo_n "checking whether compiling a cross-assembler... " >&6; } | |
13478 | if test "${host}" = "${target}"; then | |
13479 | cross_gas=no | |
13480 | else | |
13481 | cross_gas=yes | |
13482 | ||
13483 | $as_echo "#define CROSS_COMPILE 1" >>confdefs.h | |
252b5132 | 13484 | |
1ec4b9f2 | 13485 | fi |
23d61380 AM |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5 |
13487 | $as_echo "$cross_gas" >&6; } | |
1ec4b9f2 NS |
13488 | |
13489 | for ac_func in strsignal | |
13490 | do : | |
13491 | ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" | |
d0ac1c44 | 13492 | if test "x$ac_cv_func_strsignal" = xyes; then : |
1ec4b9f2 NS |
13493 | cat >>confdefs.h <<_ACEOF |
13494 | #define HAVE_STRSIGNAL 1 | |
13495 | _ACEOF | |
13496 | ||
252b5132 RH |
13497 | fi |
13498 | done | |
13499 | ||
d6d788bd | 13500 | |
44350750 NC |
13501 | |
13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
13503 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
d0ac1c44 | 13504 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
44350750 NC |
13505 | $as_echo_n "(cached) " >&6 |
13506 | else | |
13507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13508 | /* end confdefs.h. */ | |
13509 | #include <locale.h> | |
13510 | int | |
13511 | main () | |
13512 | { | |
13513 | return LC_MESSAGES | |
13514 | ; | |
13515 | return 0; | |
13516 | } | |
13517 | _ACEOF | |
13518 | if ac_fn_c_try_link "$LINENO"; then : | |
13519 | am_cv_val_LC_MESSAGES=yes | |
13520 | else | |
13521 | am_cv_val_LC_MESSAGES=no | |
13522 | fi | |
13523 | rm -f core conftest.err conftest.$ac_objext \ | |
13524 | conftest$ac_exeext conftest.$ac_ext | |
13525 | fi | |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
13527 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
13528 | if test $am_cv_val_LC_MESSAGES = yes; then | |
13529 | ||
13530 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
13531 | ||
13532 | fi | |
13533 | ||
13534 | ||
39bec121 TW |
13535 | # do we need the math library? |
13536 | case "${need_libm}" in | |
13b2be9c | 13537 | yes) |
39bec121 | 13538 | LIBM= |
f9c19112 | 13539 | case $host in |
3725885a | 13540 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
d7040cdb | 13541 | # These system don't have libm, or don't need it |
39bec121 TW |
13542 | ;; |
13543 | *-ncr-sysv4.3*) | |
81ecdfbb RW |
13544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
13545 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
d0ac1c44 | 13546 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : |
81ecdfbb | 13547 | $as_echo_n "(cached) " >&6 |
39bec121 | 13548 | else |
13b2be9c | 13549 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13550 | LIBS="-lmw $LIBS" |
81ecdfbb | 13551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13552 | /* end confdefs.h. */ |
13553 | ||
81ecdfbb RW |
13554 | /* Override any GCC internal prototype to avoid an error. |
13555 | Use char because int might match the return type of a GCC | |
13556 | builtin and then its argument prototype would still apply. */ | |
13b2be9c DJ |
13557 | #ifdef __cplusplus |
13558 | extern "C" | |
13559 | #endif | |
13b2be9c DJ |
13560 | char _mwvalidcheckl (); |
13561 | int | |
13562 | main () | |
13563 | { | |
81ecdfbb | 13564 | return _mwvalidcheckl (); |
13b2be9c DJ |
13565 | ; |
13566 | return 0; | |
13567 | } | |
13568 | _ACEOF | |
81ecdfbb | 13569 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13570 | ac_cv_lib_mw__mwvalidcheckl=yes |
13571 | else | |
81ecdfbb | 13572 | ac_cv_lib_mw__mwvalidcheckl=no |
13b2be9c | 13573 | fi |
81ecdfbb RW |
13574 | rm -f core conftest.err conftest.$ac_objext \ |
13575 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13576 | LIBS=$ac_check_lib_save_LIBS |
13577 | fi | |
81ecdfbb RW |
13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
13579 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
d0ac1c44 | 13580 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : |
39bec121 | 13581 | LIBM="-lmw" |
39bec121 TW |
13582 | fi |
13583 | ||
81ecdfbb RW |
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13585 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 13586 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 13587 | $as_echo_n "(cached) " >&6 |
39bec121 | 13588 | else |
13b2be9c | 13589 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13590 | LIBS="-lm $LIBS" |
81ecdfbb | 13591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13592 | /* end confdefs.h. */ |
39bec121 | 13593 | |
81ecdfbb RW |
13594 | /* Override any GCC internal prototype to avoid an error. |
13595 | Use char because int might match the return type of a GCC | |
13596 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
13597 | #ifdef __cplusplus |
13598 | extern "C" | |
13599 | #endif | |
d7040cdb | 13600 | char cos (); |
13b2be9c DJ |
13601 | int |
13602 | main () | |
13603 | { | |
81ecdfbb | 13604 | return cos (); |
13b2be9c DJ |
13605 | ; |
13606 | return 0; | |
13607 | } | |
13608 | _ACEOF | |
81ecdfbb | 13609 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13610 | ac_cv_lib_m_cos=yes |
13b2be9c | 13611 | else |
81ecdfbb | 13612 | ac_cv_lib_m_cos=no |
13b2be9c | 13613 | fi |
81ecdfbb RW |
13614 | rm -f core conftest.err conftest.$ac_objext \ |
13615 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13616 | LIBS=$ac_check_lib_save_LIBS |
13617 | fi | |
81ecdfbb RW |
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
13619 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 13620 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
39bec121 | 13621 | LIBM="$LIBM -lm" |
39bec121 TW |
13622 | fi |
13623 | ||
13624 | ;; | |
13625 | *) | |
81ecdfbb RW |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13627 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 13628 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 13629 | $as_echo_n "(cached) " >&6 |
39bec121 | 13630 | else |
13b2be9c | 13631 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13632 | LIBS="-lm $LIBS" |
81ecdfbb | 13633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13634 | /* end confdefs.h. */ |
39bec121 | 13635 | |
81ecdfbb RW |
13636 | /* Override any GCC internal prototype to avoid an error. |
13637 | Use char because int might match the return type of a GCC | |
13638 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
13639 | #ifdef __cplusplus |
13640 | extern "C" | |
13641 | #endif | |
d7040cdb | 13642 | char cos (); |
13b2be9c DJ |
13643 | int |
13644 | main () | |
13645 | { | |
81ecdfbb | 13646 | return cos (); |
13b2be9c DJ |
13647 | ; |
13648 | return 0; | |
13649 | } | |
13650 | _ACEOF | |
81ecdfbb | 13651 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13652 | ac_cv_lib_m_cos=yes |
13b2be9c | 13653 | else |
81ecdfbb | 13654 | ac_cv_lib_m_cos=no |
13b2be9c | 13655 | fi |
81ecdfbb RW |
13656 | rm -f core conftest.err conftest.$ac_objext \ |
13657 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13658 | LIBS=$ac_check_lib_save_LIBS |
13659 | fi | |
81ecdfbb RW |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
13661 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 13662 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
39bec121 | 13663 | LIBM="-lm" |
39bec121 TW |
13664 | fi |
13665 | ||
13666 | ;; | |
13667 | esac | |
13668 | ||
13b2be9c | 13669 | |
d7040cdb | 13670 | |
39bec121 TW |
13671 | ;; |
13672 | esac | |
13673 | ||
252b5132 RH |
13674 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
13675 | # enough, but on some of those systems, the assert macro relies on requoting | |
13676 | # working properly! | |
81ecdfbb RW |
13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5 |
13678 | $as_echo_n "checking for working assert macro... " >&6; } | |
d0ac1c44 | 13679 | if ${gas_cv_assert_ok+:} false; then : |
81ecdfbb | 13680 | $as_echo_n "(cached) " >&6 |
13b2be9c | 13681 | else |
81ecdfbb | 13682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13683 | /* end confdefs.h. */ |
252b5132 RH |
13684 | #include <assert.h> |
13685 | #include <stdio.h> | |
13b2be9c DJ |
13686 | int |
13687 | main () | |
13688 | { | |
252b5132 RH |
13689 | |
13690 | /* check for requoting problems */ | |
13691 | static int a, b, c, d; | |
13692 | static char *s; | |
13693 | assert (!strcmp(s, "foo bar baz quux")); | |
13694 | /* check for newline handling */ | |
13695 | assert (a == b | |
13696 | || c == d); | |
13697 | ||
13b2be9c DJ |
13698 | ; |
13699 | return 0; | |
81ecdfbb RW |
13700 | } |
13701 | _ACEOF | |
13702 | if ac_fn_c_try_link "$LINENO"; then : | |
252b5132 RH |
13703 | gas_cv_assert_ok=yes |
13704 | else | |
81ecdfbb | 13705 | gas_cv_assert_ok=no |
252b5132 | 13706 | fi |
81ecdfbb RW |
13707 | rm -f core conftest.err conftest.$ac_objext \ |
13708 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13709 | fi |
81ecdfbb RW |
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5 |
13711 | $as_echo "$gas_cv_assert_ok" >&6; } | |
13b2be9c | 13712 | test $gas_cv_assert_ok = yes || |
81ecdfbb | 13713 | $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h |
252b5132 | 13714 | |
d6d788bd L |
13715 | |
13716 | ||
252b5132 RH |
13717 | # On some systems, the system header files may not declare malloc, realloc, |
13718 | # and free. There are places where gas needs these functions to have been | |
13719 | # declared -- such as when taking their addresses. | |
13720 | gas_test_headers=" | |
13721 | #ifdef HAVE_MEMORY_H | |
13722 | #include <memory.h> | |
13723 | #endif | |
252b5132 | 13724 | #include <string.h> |
252b5132 | 13725 | #include <stdlib.h> |
252b5132 RH |
13726 | #ifdef HAVE_UNISTD_H |
13727 | #include <unistd.h> | |
13728 | #endif | |
13729 | " | |
13730 | ||
81ecdfbb RW |
13731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
13732 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
d0ac1c44 | 13733 | if ${gas_cv_decl_getopt_unistd_h+:} false; then : |
81ecdfbb | 13734 | $as_echo_n "(cached) " >&6 |
56f36663 | 13735 | else |
81ecdfbb | 13736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
56f36663 NC |
13737 | /* end confdefs.h. */ |
13738 | #include <unistd.h> | |
13739 | int | |
13740 | main () | |
13741 | { | |
13742 | extern int getopt (int, char *const*, const char *); | |
13743 | ; | |
13744 | return 0; | |
13745 | } | |
13746 | _ACEOF | |
81ecdfbb | 13747 | if ac_fn_c_try_compile "$LINENO"; then : |
56f36663 NC |
13748 | gas_cv_decl_getopt_unistd_h=yes |
13749 | else | |
81ecdfbb | 13750 | gas_cv_decl_getopt_unistd_h=no |
56f36663 | 13751 | fi |
81ecdfbb | 13752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
56f36663 NC |
13753 | fi |
13754 | ||
81ecdfbb RW |
13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5 |
13756 | $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; } | |
56f36663 NC |
13757 | if test $gas_cv_decl_getopt_unistd_h = yes; then |
13758 | ||
81ecdfbb | 13759 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
56f36663 NC |
13760 | |
13761 | fi | |
13762 | ||
e8a38df5 | 13763 | |
81ecdfbb RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5 |
13765 | $as_echo_n "checking whether declaration is required for environ... " >&6; } | |
d0ac1c44 | 13766 | if ${gas_cv_decl_needed_environ+:} false; then : |
81ecdfbb | 13767 | $as_echo_n "(cached) " >&6 |
13b2be9c | 13768 | else |
81ecdfbb | 13769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13770 | /* end confdefs.h. */ |
252b5132 | 13771 | $gas_test_headers |
13b2be9c DJ |
13772 | int |
13773 | main () | |
13774 | { | |
252b5132 | 13775 | |
e8a38df5 | 13776 | typedef char **f; |
252b5132 | 13777 | f x; |
e8a38df5 | 13778 | x = (f) environ; |
252b5132 | 13779 | |
13b2be9c DJ |
13780 | ; |
13781 | return 0; | |
13782 | } | |
13783 | _ACEOF | |
81ecdfbb | 13784 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13785 | gas_cv_decl_needed_environ=no |
252b5132 | 13786 | else |
81ecdfbb | 13787 | gas_cv_decl_needed_environ=yes |
252b5132 | 13788 | fi |
81ecdfbb RW |
13789 | rm -f core conftest.err conftest.$ac_objext \ |
13790 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13791 | fi |
81ecdfbb RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5 |
13793 | $as_echo "$gas_cv_decl_needed_environ" >&6; } | |
e8a38df5 | 13794 | if test $gas_cv_decl_needed_environ = yes; then |
13b2be9c | 13795 | |
81ecdfbb | 13796 | $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h |
13b2be9c DJ |
13797 | |
13798 | fi | |
13799 | ||
13800 | ||
81ecdfbb RW |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5 |
13802 | $as_echo_n "checking whether declaration is required for ffs... " >&6; } | |
d0ac1c44 | 13803 | if ${gas_cv_decl_needed_ffs+:} false; then : |
81ecdfbb | 13804 | $as_echo_n "(cached) " >&6 |
13b2be9c | 13805 | else |
81ecdfbb | 13806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13807 | /* end confdefs.h. */ |
13808 | $gas_test_headers | |
13809 | int | |
13810 | main () | |
13811 | { | |
13812 | ||
e8a38df5 | 13813 | typedef int (*f)(int); |
13b2be9c | 13814 | f x; |
e8a38df5 | 13815 | x = (f) ffs; |
13b2be9c DJ |
13816 | |
13817 | ; | |
13818 | return 0; | |
13819 | } | |
13820 | _ACEOF | |
81ecdfbb | 13821 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13822 | gas_cv_decl_needed_ffs=no |
13b2be9c | 13823 | else |
81ecdfbb | 13824 | gas_cv_decl_needed_ffs=yes |
13b2be9c | 13825 | fi |
81ecdfbb RW |
13826 | rm -f core conftest.err conftest.$ac_objext \ |
13827 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13828 | fi |
81ecdfbb RW |
13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5 |
13830 | $as_echo "$gas_cv_decl_needed_ffs" >&6; } | |
e8a38df5 | 13831 | if test $gas_cv_decl_needed_ffs = yes; then |
13b2be9c | 13832 | |
81ecdfbb | 13833 | $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h |
13b2be9c DJ |
13834 | |
13835 | fi | |
13836 | ||
13837 | ||
23d61380 AM |
13838 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
13839 | if test "x$ac_cv_have_decl_asprintf" = xyes; then : | |
4b0296ce AM |
13840 | ac_have_decl=1 |
13841 | else | |
13842 | ac_have_decl=0 | |
13843 | fi | |
13844 | ||
13845 | cat >>confdefs.h <<_ACEOF | |
23d61380 | 13846 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
4b0296ce | 13847 | _ACEOF |
0175442d | 13848 | ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default" |
d0ac1c44 | 13849 | if test "x$ac_cv_have_decl_mempcpy" = xyes; then : |
0175442d L |
13850 | ac_have_decl=1 |
13851 | else | |
13852 | ac_have_decl=0 | |
13853 | fi | |
13854 | ||
13855 | cat >>confdefs.h <<_ACEOF | |
13856 | #define HAVE_DECL_MEMPCPY $ac_have_decl | |
13857 | _ACEOF | |
4b0296ce | 13858 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" |
d0ac1c44 | 13859 | if test "x$ac_cv_have_decl_stpcpy" = xyes; then : |
4b0296ce AM |
13860 | ac_have_decl=1 |
13861 | else | |
13862 | ac_have_decl=0 | |
13863 | fi | |
13864 | ||
13865 | cat >>confdefs.h <<_ACEOF | |
13866 | #define HAVE_DECL_STPCPY $ac_have_decl | |
13867 | _ACEOF | |
6d74f28b EB |
13868 | |
13869 | ||
13b2be9c | 13870 | |
c973bc5c NC |
13871 | case "${host}" in |
13872 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | |
13873 | ||
81ecdfbb | 13874 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
c973bc5c NC |
13875 | ;; |
13876 | esac | |
13877 | ||
543b7933 L |
13878 | # Link in zlib if we can. This allows us to write compressed debug sections. |
13879 | ||
13880 | # Use the system's zlib library. | |
39f3de7c L |
13881 | zlibdir="-L\$(top_builddir)/../zlib" |
13882 | zlibinc="-I\$(top_srcdir)/../zlib" | |
0acf065b | 13883 | |
0138187e L |
13884 | # Check whether --with-system-zlib was given. |
13885 | if test "${with_system_zlib+set}" = set; then : | |
afa59b79 L |
13886 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then |
13887 | zlibdir= | |
13888 | zlibinc= | |
13889 | fi | |
0acf065b | 13890 | |
0acf065b | 13891 | fi |
0acf065b | 13892 | |
0acf065b CC |
13893 | |
13894 | ||
543b7933 L |
13895 | |
13896 | ||
b11d79f2 TG |
13897 | # Support for VMS timestamps via cross compile |
13898 | ||
13899 | if test "$ac_cv_header_time_h" = yes; then | |
13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5 | |
13901 | $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; } | |
d0ac1c44 | 13902 | if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then : |
b11d79f2 TG |
13903 | $as_echo_n "(cached) " >&6 |
13904 | else | |
13905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13906 | /* end confdefs.h. */ | |
13907 | ||
13908 | #define _BSD_SOURCE 1 | |
13909 | #include <time.h> | |
13910 | int | |
13911 | main () | |
13912 | { | |
13913 | struct tm avar; void* aref = (void*) &avar.tm_gmtoff | |
13914 | ; | |
13915 | return 0; | |
13916 | } | |
13917 | _ACEOF | |
13918 | if ac_fn_c_try_compile "$LINENO"; then : | |
13919 | gas_cv_have_time_type_member_tm_gmtoff=yes | |
13920 | else | |
13921 | gas_cv_have_time_type_member_tm_gmtoff=no | |
13922 | ||
13923 | fi | |
13924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13925 | fi | |
13926 | ||
13927 | if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then | |
13928 | ||
13929 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
13930 | ||
13931 | fi | |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5 | |
13933 | $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; } | |
13934 | ||
13935 | fi | |
13936 | ||
13937 | if test "$ac_cv_header_sys_stat_h" = yes; then | |
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5 | |
13939 | $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; } | |
d0ac1c44 | 13940 | if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then : |
b11d79f2 TG |
13941 | $as_echo_n "(cached) " >&6 |
13942 | else | |
13943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13944 | /* end confdefs.h. */ | |
13945 | ||
13946 | #define _BSD_SOURCE 1 | |
13947 | #include <sys/stat.h> | |
13948 | int | |
13949 | main () | |
13950 | { | |
13951 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec | |
13952 | ; | |
13953 | return 0; | |
13954 | } | |
13955 | _ACEOF | |
13956 | if ac_fn_c_try_compile "$LINENO"; then : | |
13957 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes | |
13958 | else | |
13959 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no | |
13960 | ||
13961 | fi | |
13962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13963 | fi | |
13964 | ||
13965 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then | |
13966 | ||
13967 | $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h | |
13968 | ||
13969 | fi | |
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5 | |
13971 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; } | |
13972 | ||
13973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5 | |
13974 | $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; } | |
d0ac1c44 | 13975 | if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then : |
b11d79f2 TG |
13976 | $as_echo_n "(cached) " >&6 |
13977 | else | |
13978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13979 | /* end confdefs.h. */ | |
13980 | ||
13981 | #define _BSD_SOURCE 1 | |
13982 | #include <sys/stat.h> | |
13983 | int | |
13984 | main () | |
13985 | { | |
13986 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec | |
13987 | ; | |
13988 | return 0; | |
13989 | } | |
13990 | _ACEOF | |
13991 | if ac_fn_c_try_compile "$LINENO"; then : | |
13992 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes | |
13993 | else | |
13994 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no | |
13995 | ||
13996 | fi | |
13997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13998 | fi | |
13999 | ||
14000 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then | |
14001 | ||
14002 | $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h | |
14003 | ||
14004 | fi | |
14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5 | |
14006 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; } | |
14007 | ||
14008 | fi | |
14009 | ||
14010 | ||
c973bc5c | 14011 | |
13b2be9c | 14012 | |
108a6f8e CD |
14013 | |
14014 | ||
14015 | ||
14016 | ||
31dd3154 | 14017 | |
81ecdfbb | 14018 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
13b2be9c | 14019 | |
81ecdfbb | 14020 | ac_config_commands="$ac_config_commands default" |
13b2be9c DJ |
14021 | |
14022 | ||
14023 | cat >confcache <<\_ACEOF | |
14024 | # This file is a shell script that caches the results of configure | |
14025 | # tests run on this system so they can be shared between configure | |
14026 | # scripts and configure runs, see configure's option --config-cache. | |
14027 | # It is not useful on other systems. If it contains results you don't | |
14028 | # want to keep, you may remove or edit it. | |
14029 | # | |
14030 | # config.status only pays attention to the cache file if you give it | |
14031 | # the --recheck option to rerun configure. | |
14032 | # | |
14033 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14034 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14035 | # following values. | |
14036 | ||
14037 | _ACEOF | |
14038 | ||
14039 | # The following way of writing the cache mishandles newlines in values, | |
14040 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14041 | # So, we kill variables containing newlines. |
13b2be9c DJ |
14042 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14043 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14044 | ( |
14045 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14046 | eval ac_val=\$$ac_var | |
14047 | case $ac_val in #( | |
14048 | *${as_nl}*) | |
14049 | case $ac_var in #( | |
14050 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14051 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14052 | esac | |
14053 | case $ac_var in #( | |
14054 | _ | IFS | as_nl) ;; #( | |
14055 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14056 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14057 | esac ;; | |
14058 | esac | |
14059 | done | |
14060 | ||
13b2be9c | 14061 | (set) 2>&1 | |
81ecdfbb RW |
14062 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14063 | *${as_nl}ac_space=\ *) | |
14064 | # `set' does not quote correctly, so add quotes: double-quote | |
14065 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
13b2be9c | 14066 | sed -n \ |
ab509236 L |
14067 | "s/'/'\\\\''/g; |
14068 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14069 | ;; #( |
13b2be9c DJ |
14070 | *) |
14071 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14072 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 14073 | ;; |
81ecdfbb RW |
14074 | esac | |
14075 | sort | |
14076 | ) | | |
13b2be9c | 14077 | sed ' |
81ecdfbb | 14078 | /^ac_cv_env_/b end |
13b2be9c | 14079 | t clear |
81ecdfbb | 14080 | :clear |
13b2be9c DJ |
14081 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14082 | t end | |
81ecdfbb RW |
14083 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14084 | :end' >>confcache | |
14085 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14086 | if test -w "$cache_file"; then | |
d0ac1c44 | 14087 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14089 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14090 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14091 | cat confcache >"$cache_file" | |
14092 | else | |
14093 | case $cache_file in #( | |
14094 | */* | ?:*) | |
14095 | mv -f confcache "$cache_file"$$ && | |
14096 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14097 | *) | |
14098 | mv -f confcache "$cache_file" ;; | |
14099 | esac | |
14100 | fi | |
14101 | fi | |
13b2be9c | 14102 | else |
81ecdfbb RW |
14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14104 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
13b2be9c DJ |
14105 | fi |
14106 | fi | |
14107 | rm -f confcache | |
14108 | ||
14109 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14110 | # Let make expand exec_prefix. | |
14111 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14112 | ||
13b2be9c DJ |
14113 | DEFS=-DHAVE_CONFIG_H |
14114 | ||
14115 | ac_libobjs= | |
14116 | ac_ltlibobjs= | |
d0ac1c44 | 14117 | U= |
13b2be9c DJ |
14118 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14119 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14120 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14121 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14122 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14123 | # will be set to the directory where LIBOBJS objects are built. | |
14124 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14125 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
13b2be9c DJ |
14126 | done |
14127 | LIBOBJS=$ac_libobjs | |
14128 | ||
14129 | LTLIBOBJS=$ac_ltlibobjs | |
14130 | ||
14131 | ||
d0ac1c44 SM |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
14133 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
14134 | if test -n "$am_sleep_pid"; then | |
14135 | # Hide warnings about reused PIDs. | |
14136 | wait $am_sleep_pid 2>/dev/null | |
14137 | fi | |
14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
14139 | $as_echo "done" >&6; } | |
81ecdfbb RW |
14140 | if test -n "$EXEEXT"; then |
14141 | am__EXEEXT_TRUE= | |
14142 | am__EXEEXT_FALSE='#' | |
14143 | else | |
14144 | am__EXEEXT_TRUE='#' | |
14145 | am__EXEEXT_FALSE= | |
13b2be9c | 14146 | fi |
81ecdfbb | 14147 | |
23d61380 AM |
14148 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14149 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
14150 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14151 | fi | |
14152 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
14153 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
14154 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14155 | fi | |
81ecdfbb | 14156 | |
13b2be9c | 14157 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 14158 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
81ecdfbb | 14159 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13b2be9c | 14160 | fi |
d5fbea21 | 14161 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
d0ac1c44 | 14162 | as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. |
81ecdfbb | 14163 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
d5fbea21 | 14164 | fi |
13b2be9c | 14165 | |
d0ac1c44 | 14166 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 14167 | ac_write_fail=0 |
13b2be9c DJ |
14168 | ac_clean_files_save=$ac_clean_files |
14169 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14170 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14171 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14172 | as_write_fail=0 | |
14173 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
13b2be9c DJ |
14174 | #! $SHELL |
14175 | # Generated by $as_me. | |
14176 | # Run this file to recreate the current configuration. | |
14177 | # Compiler output produced by configure, useful for debugging | |
14178 | # configure, is in config.log if it exists. | |
14179 | ||
14180 | debug=false | |
14181 | ac_cs_recheck=false | |
14182 | ac_cs_silent=false | |
13b2be9c | 14183 | |
81ecdfbb RW |
14184 | SHELL=\${CONFIG_SHELL-$SHELL} |
14185 | export SHELL | |
14186 | _ASEOF | |
14187 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14188 | ## -------------------- ## | |
14189 | ## M4sh Initialization. ## | |
14190 | ## -------------------- ## | |
13b2be9c | 14191 | |
81ecdfbb RW |
14192 | # Be more Bourne compatible |
14193 | DUALCASE=1; export DUALCASE # for MKS sh | |
14194 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13b2be9c DJ |
14195 | emulate sh |
14196 | NULLCMD=: | |
81ecdfbb | 14197 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13b2be9c DJ |
14198 | # is contrary to our usage. Disable this feature. |
14199 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14200 | setopt NO_GLOB_SUBST |
14201 | else | |
14202 | case `(set -o) 2>/dev/null` in #( | |
14203 | *posix*) : | |
14204 | set -o posix ;; #( | |
14205 | *) : | |
14206 | ;; | |
14207 | esac | |
13b2be9c DJ |
14208 | fi |
14209 | ||
81ecdfbb RW |
14210 | |
14211 | as_nl=' | |
14212 | ' | |
14213 | export as_nl | |
14214 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14215 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14216 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14217 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14218 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14219 | # but without wasting forks for bash or zsh. | |
14220 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14221 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14222 | as_echo='print -r --' | |
14223 | as_echo_n='print -rn --' | |
14224 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14225 | as_echo='printf %s\n' | |
14226 | as_echo_n='printf %s' | |
14227 | else | |
14228 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14229 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14230 | as_echo_n='/usr/ucb/echo -n' | |
14231 | else | |
14232 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14233 | as_echo_n_body='eval | |
14234 | arg=$1; | |
14235 | case $arg in #( | |
14236 | *"$as_nl"*) | |
14237 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14238 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14239 | esac; | |
14240 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14241 | ' | |
14242 | export as_echo_n_body | |
14243 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14244 | fi | |
14245 | export as_echo_body | |
14246 | as_echo='sh -c $as_echo_body as_echo' | |
13b2be9c DJ |
14247 | fi |
14248 | ||
81ecdfbb RW |
14249 | # The user is always right. |
14250 | if test "${PATH_SEPARATOR+set}" != set; then | |
14251 | PATH_SEPARATOR=: | |
14252 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14253 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14254 | PATH_SEPARATOR=';' | |
14255 | } | |
14256 | fi | |
14257 | ||
14258 | ||
14259 | # IFS | |
14260 | # We need space, tab and new line, in precisely that order. Quoting is | |
14261 | # there to prevent editors from complaining about space-tab. | |
14262 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14263 | # splitting by setting IFS to empty value.) | |
14264 | IFS=" "" $as_nl" | |
14265 | ||
14266 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 14267 | as_myself= |
81ecdfbb RW |
14268 | case $0 in #(( |
14269 | *[\\/]* ) as_myself=$0 ;; | |
14270 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14271 | for as_dir in $PATH | |
14272 | do | |
14273 | IFS=$as_save_IFS | |
14274 | test -z "$as_dir" && as_dir=. | |
14275 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14276 | done | |
14277 | IFS=$as_save_IFS | |
14278 | ||
14279 | ;; | |
14280 | esac | |
14281 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14282 | # in which case we are not to be found in the path. | |
14283 | if test "x$as_myself" = x; then | |
14284 | as_myself=$0 | |
14285 | fi | |
14286 | if test ! -f "$as_myself"; then | |
14287 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14288 | exit 1 | |
14289 | fi | |
13b2be9c | 14290 | |
81ecdfbb RW |
14291 | # Unset variables that we do not need and which cause bugs (e.g. in |
14292 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14293 | # suppresses any "Segmentation fault" message there. '((' could | |
14294 | # trigger a bug in pdksh 5.2.14. | |
14295 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14296 | do eval test x\${$as_var+set} = xset \ | |
14297 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14298 | done | |
13b2be9c DJ |
14299 | PS1='$ ' |
14300 | PS2='> ' | |
14301 | PS4='+ ' | |
14302 | ||
14303 | # NLS nuisances. | |
81ecdfbb RW |
14304 | LC_ALL=C |
14305 | export LC_ALL | |
14306 | LANGUAGE=C | |
14307 | export LANGUAGE | |
14308 | ||
14309 | # CDPATH. | |
14310 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14311 | ||
14312 | ||
d0ac1c44 SM |
14313 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14314 | # ---------------------------------------- | |
81ecdfbb RW |
14315 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14316 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 14317 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
14318 | as_fn_error () |
14319 | { | |
d0ac1c44 SM |
14320 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14321 | if test "$4"; then | |
14322 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14323 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
13b2be9c | 14324 | fi |
d0ac1c44 | 14325 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
14326 | as_fn_exit $as_status |
14327 | } # as_fn_error | |
14328 | ||
14329 | ||
14330 | # as_fn_set_status STATUS | |
14331 | # ----------------------- | |
14332 | # Set $? to STATUS, without forking. | |
14333 | as_fn_set_status () | |
14334 | { | |
14335 | return $1 | |
14336 | } # as_fn_set_status | |
14337 | ||
14338 | # as_fn_exit STATUS | |
14339 | # ----------------- | |
14340 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14341 | as_fn_exit () | |
14342 | { | |
14343 | set +e | |
14344 | as_fn_set_status $1 | |
14345 | exit $1 | |
14346 | } # as_fn_exit | |
14347 | ||
14348 | # as_fn_unset VAR | |
14349 | # --------------- | |
14350 | # Portably unset VAR. | |
14351 | as_fn_unset () | |
14352 | { | |
14353 | { eval $1=; unset $1;} | |
14354 | } | |
14355 | as_unset=as_fn_unset | |
14356 | # as_fn_append VAR VALUE | |
14357 | # ---------------------- | |
14358 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14359 | # advantage of any shell optimizations that allow amortized linear growth over | |
14360 | # repeated appends, instead of the typical quadratic growth present in naive | |
14361 | # implementations. | |
14362 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14363 | eval 'as_fn_append () | |
14364 | { | |
14365 | eval $1+=\$2 | |
14366 | }' | |
14367 | else | |
14368 | as_fn_append () | |
14369 | { | |
14370 | eval $1=\$$1\$2 | |
14371 | } | |
14372 | fi # as_fn_append | |
14373 | ||
14374 | # as_fn_arith ARG... | |
14375 | # ------------------ | |
14376 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14377 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14378 | # must be portable across $(()) and expr. | |
14379 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14380 | eval 'as_fn_arith () | |
14381 | { | |
14382 | as_val=$(( $* )) | |
14383 | }' | |
14384 | else | |
14385 | as_fn_arith () | |
14386 | { | |
14387 | as_val=`expr "$@" || test $? -eq 1` | |
14388 | } | |
14389 | fi # as_fn_arith | |
14390 | ||
13b2be9c | 14391 | |
81ecdfbb RW |
14392 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14393 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c DJ |
14394 | as_expr=expr |
14395 | else | |
14396 | as_expr=false | |
14397 | fi | |
14398 | ||
81ecdfbb | 14399 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13b2be9c DJ |
14400 | as_basename=basename |
14401 | else | |
14402 | as_basename=false | |
14403 | fi | |
14404 | ||
81ecdfbb RW |
14405 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14406 | as_dirname=dirname | |
14407 | else | |
14408 | as_dirname=false | |
14409 | fi | |
13b2be9c | 14410 | |
81ecdfbb | 14411 | as_me=`$as_basename -- "$0" || |
13b2be9c DJ |
14412 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14413 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14414 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14415 | $as_echo X/"$0" | | |
14416 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14417 | s//\1/ | |
14418 | q | |
14419 | } | |
14420 | /^X\/\(\/\/\)$/{ | |
14421 | s//\1/ | |
14422 | q | |
14423 | } | |
14424 | /^X\/\(\/\).*/{ | |
14425 | s//\1/ | |
14426 | q | |
14427 | } | |
14428 | s/.*/./; q'` | |
13b2be9c | 14429 | |
13b2be9c DJ |
14430 | # Avoid depending upon Character Ranges. |
14431 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14432 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14433 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14434 | as_cr_digits='0123456789' | |
14435 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14436 | ||
81ecdfbb RW |
14437 | ECHO_C= ECHO_N= ECHO_T= |
14438 | case `echo -n x` in #((((( | |
14439 | -n*) | |
14440 | case `echo 'xy\c'` in | |
14441 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14442 | xy) ECHO_C='\c';; | |
14443 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14444 | ECHO_T=' ';; | |
14445 | esac;; | |
14446 | *) | |
14447 | ECHO_N='-n';; | |
13b2be9c | 14448 | esac |
252b5132 | 14449 | |
81ecdfbb RW |
14450 | rm -f conf$$ conf$$.exe conf$$.file |
14451 | if test -d conf$$.dir; then | |
14452 | rm -f conf$$.dir/conf$$.file | |
252b5132 | 14453 | else |
81ecdfbb RW |
14454 | rm -f conf$$.dir |
14455 | mkdir conf$$.dir 2>/dev/null | |
252b5132 | 14456 | fi |
81ecdfbb RW |
14457 | if (echo >conf$$.file) 2>/dev/null; then |
14458 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 14459 | as_ln_s='ln -s' |
81ecdfbb RW |
14460 | # ... but there are two gotchas: |
14461 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14462 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 14463 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 14464 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 14465 | as_ln_s='cp -pR' |
81ecdfbb RW |
14466 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14467 | as_ln_s=ln | |
14468 | else | |
d0ac1c44 | 14469 | as_ln_s='cp -pR' |
13b2be9c | 14470 | fi |
13b2be9c | 14471 | else |
d0ac1c44 | 14472 | as_ln_s='cp -pR' |
252b5132 | 14473 | fi |
81ecdfbb RW |
14474 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14475 | rmdir conf$$.dir 2>/dev/null | |
252b5132 | 14476 | |
81ecdfbb RW |
14477 | |
14478 | # as_fn_mkdir_p | |
14479 | # ------------- | |
14480 | # Create "$as_dir" as a directory, including parents if necessary. | |
14481 | as_fn_mkdir_p () | |
14482 | { | |
14483 | ||
14484 | case $as_dir in #( | |
14485 | -*) as_dir=./$as_dir;; | |
14486 | esac | |
14487 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14488 | as_dirs= | |
14489 | while :; do | |
14490 | case $as_dir in #( | |
14491 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14492 | *) as_qdir=$as_dir;; | |
14493 | esac | |
14494 | as_dirs="'$as_qdir' $as_dirs" | |
14495 | as_dir=`$as_dirname -- "$as_dir" || | |
14496 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14497 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14498 | X"$as_dir" : 'X\(//\)$' \| \ | |
14499 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14500 | $as_echo X"$as_dir" | | |
14501 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14502 | s//\1/ | |
14503 | q | |
14504 | } | |
14505 | /^X\(\/\/\)[^/].*/{ | |
14506 | s//\1/ | |
14507 | q | |
14508 | } | |
14509 | /^X\(\/\/\)$/{ | |
14510 | s//\1/ | |
14511 | q | |
14512 | } | |
14513 | /^X\(\/\).*/{ | |
14514 | s//\1/ | |
14515 | q | |
14516 | } | |
14517 | s/.*/./; q'` | |
14518 | test -d "$as_dir" && break | |
14519 | done | |
14520 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 14521 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
14522 | |
14523 | ||
14524 | } # as_fn_mkdir_p | |
13b2be9c | 14525 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14526 | as_mkdir_p='mkdir -p "$as_dir"' |
252b5132 | 14527 | else |
ab509236 | 14528 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
14529 | as_mkdir_p=false |
14530 | fi | |
81ecdfbb | 14531 | |
d0ac1c44 SM |
14532 | |
14533 | # as_fn_executable_p FILE | |
14534 | # ----------------------- | |
14535 | # Test if FILE is an executable regular file. | |
14536 | as_fn_executable_p () | |
14537 | { | |
14538 | test -f "$1" && test -x "$1" | |
14539 | } # as_fn_executable_p | |
14540 | as_test_x='test -x' | |
14541 | as_executable_p=as_fn_executable_p | |
252b5132 | 14542 | |
13b2be9c | 14543 | # Sed expression to map a string onto a valid CPP name. |
ab509236 | 14544 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14545 | |
13b2be9c | 14546 | # Sed expression to map a string onto a valid variable name. |
ab509236 | 14547 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14548 | |
d6d788bd | 14549 | |
13b2be9c | 14550 | exec 6>&1 |
81ecdfbb RW |
14551 | ## ----------------------------------- ## |
14552 | ## Main body of $CONFIG_STATUS script. ## | |
14553 | ## ----------------------------------- ## | |
14554 | _ASEOF | |
14555 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
252b5132 | 14556 | |
81ecdfbb RW |
14557 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14558 | # Save the log message, to keep $0 and so on meaningful, and to | |
13b2be9c | 14559 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14560 | # values after options handling. |
14561 | ac_log=" | |
346d80ef | 14562 | This file was extended by gas $as_me 2.37.50, which was |
d0ac1c44 | 14563 | generated by GNU Autoconf 2.69. Invocation command line was |
d6d788bd | 14564 | |
13b2be9c DJ |
14565 | CONFIG_FILES = $CONFIG_FILES |
14566 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14567 | CONFIG_LINKS = $CONFIG_LINKS | |
14568 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14569 | $ $0 $@ | |
252b5132 | 14570 | |
81ecdfbb RW |
14571 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14572 | " | |
14573 | ||
13b2be9c | 14574 | _ACEOF |
252b5132 | 14575 | |
81ecdfbb RW |
14576 | case $ac_config_files in *" |
14577 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14578 | esac | |
13b2be9c | 14579 | |
81ecdfbb RW |
14580 | case $ac_config_headers in *" |
14581 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14582 | esac | |
252b5132 | 14583 | |
252b5132 | 14584 | |
81ecdfbb RW |
14585 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14586 | # Files that config.status was made for. | |
14587 | config_files="$ac_config_files" | |
14588 | config_headers="$ac_config_headers" | |
14589 | config_commands="$ac_config_commands" | |
d6d788bd | 14590 | |
81ecdfbb | 14591 | _ACEOF |
252b5132 | 14592 | |
81ecdfbb | 14593 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 14594 | ac_cs_usage="\ |
81ecdfbb RW |
14595 | \`$as_me' instantiates files and other configuration actions |
14596 | from templates according to the current configuration. Unless the files | |
14597 | and actions are specified as TAGs, all are instantiated by default. | |
252b5132 | 14598 | |
81ecdfbb | 14599 | Usage: $0 [OPTION]... [TAG]... |
252b5132 | 14600 | |
13b2be9c | 14601 | -h, --help print this help, then exit |
81ecdfbb | 14602 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 14603 | --config print configuration, then exit |
81ecdfbb RW |
14604 | -q, --quiet, --silent |
14605 | do not print progress messages | |
13b2be9c DJ |
14606 | -d, --debug don't remove temporary files |
14607 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14608 | --file=FILE[:TEMPLATE] |
14609 | instantiate the configuration file FILE | |
14610 | --header=FILE[:TEMPLATE] | |
14611 | instantiate the configuration header FILE | |
252b5132 | 14612 | |
13b2be9c DJ |
14613 | Configuration files: |
14614 | $config_files | |
252b5132 | 14615 | |
13b2be9c DJ |
14616 | Configuration headers: |
14617 | $config_headers | |
252b5132 | 14618 | |
13b2be9c DJ |
14619 | Configuration commands: |
14620 | $config_commands | |
252b5132 | 14621 | |
81ecdfbb | 14622 | Report bugs to the package provider." |
d6d788bd | 14623 | |
81ecdfbb RW |
14624 | _ACEOF |
14625 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 14626 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
13b2be9c | 14627 | ac_cs_version="\\ |
346d80ef | 14628 | gas config.status 2.37.50 |
d0ac1c44 SM |
14629 | configured by $0, generated by GNU Autoconf 2.69, |
14630 | with options \\"\$ac_cs_config\\" | |
d6d788bd | 14631 | |
d0ac1c44 | 14632 | Copyright (C) 2012 Free Software Foundation, Inc. |
13b2be9c DJ |
14633 | This config.status script is free software; the Free Software Foundation |
14634 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14635 | |
14636 | ac_pwd='$ac_pwd' | |
14637 | srcdir='$srcdir' | |
14638 | INSTALL='$INSTALL' | |
14639 | MKDIR_P='$MKDIR_P' | |
14640 | AWK='$AWK' | |
14641 | test -n "\$AWK" || AWK=awk | |
13b2be9c | 14642 | _ACEOF |
d6d788bd | 14643 | |
81ecdfbb RW |
14644 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14645 | # The default lists apply if the user does not specify any file. | |
13b2be9c DJ |
14646 | ac_need_defaults=: |
14647 | while test $# != 0 | |
14648 | do | |
14649 | case $1 in | |
d0ac1c44 | 14650 | --*=?*) |
81ecdfbb RW |
14651 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14652 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13b2be9c | 14653 | ac_shift=: |
c8615825 | 14654 | ;; |
d0ac1c44 SM |
14655 | --*=) |
14656 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14657 | ac_optarg= | |
14658 | ac_shift=: | |
14659 | ;; | |
81ecdfbb | 14660 | *) |
13b2be9c DJ |
14661 | ac_option=$1 |
14662 | ac_optarg=$2 | |
14663 | ac_shift=shift | |
c8615825 | 14664 | ;; |
13b2be9c | 14665 | esac |
252b5132 | 14666 | |
13b2be9c DJ |
14667 | case $ac_option in |
14668 | # Handling of the options. | |
13b2be9c DJ |
14669 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14670 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
14671 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14672 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
14673 | --config | --confi | --conf | --con | --co | --c ) |
14674 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 14675 | --debug | --debu | --deb | --de | --d | -d ) |
13b2be9c DJ |
14676 | debug=: ;; |
14677 | --file | --fil | --fi | --f ) | |
14678 | $ac_shift | |
81ecdfbb RW |
14679 | case $ac_optarg in |
14680 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 14681 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
14682 | esac |
14683 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
13b2be9c DJ |
14684 | ac_need_defaults=false;; |
14685 | --header | --heade | --head | --hea ) | |
14686 | $ac_shift | |
81ecdfbb RW |
14687 | case $ac_optarg in |
14688 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14689 | esac | |
14690 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
13b2be9c | 14691 | ac_need_defaults=false;; |
81ecdfbb RW |
14692 | --he | --h) |
14693 | # Conflict between --help and --header | |
d0ac1c44 | 14694 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
14695 | Try \`$0 --help' for more information.";; |
14696 | --help | --hel | -h ) | |
14697 | $as_echo "$ac_cs_usage"; exit ;; | |
13b2be9c DJ |
14698 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14699 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14700 | ac_cs_silent=: ;; | |
c8615825 | 14701 | |
13b2be9c | 14702 | # This is an error. |
d0ac1c44 | 14703 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 14704 | Try \`$0 --help' for more information." ;; |
252b5132 | 14705 | |
81ecdfbb RW |
14706 | *) as_fn_append ac_config_targets " $1" |
14707 | ac_need_defaults=false ;; | |
252b5132 | 14708 | |
13b2be9c DJ |
14709 | esac |
14710 | shift | |
14711 | done | |
252b5132 | 14712 | |
13b2be9c | 14713 | ac_configure_extra_args= |
d6d788bd | 14714 | |
13b2be9c DJ |
14715 | if $ac_cs_silent; then |
14716 | exec 6>/dev/null | |
14717 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14718 | fi | |
9b2b7d69 | 14719 | |
13b2be9c | 14720 | _ACEOF |
81ecdfbb | 14721 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13b2be9c | 14722 | if \$ac_cs_recheck; then |
d0ac1c44 | 14723 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
14724 | shift |
14725 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14726 | CONFIG_SHELL='$SHELL' | |
14727 | export CONFIG_SHELL | |
14728 | exec "\$@" | |
13b2be9c DJ |
14729 | fi |
14730 | ||
14731 | _ACEOF | |
81ecdfbb RW |
14732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14733 | exec 5>>config.log | |
14734 | { | |
14735 | echo | |
14736 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14737 | ## Running $as_me. ## | |
14738 | _ASBOX | |
14739 | $as_echo "$ac_log" | |
14740 | } >&5 | |
13b2be9c | 14741 | |
81ecdfbb RW |
14742 | _ACEOF |
14743 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9b2b7d69 | 14744 | # |
81ecdfbb | 14745 | # INIT-COMMANDS |
9b2b7d69 | 14746 | # |
13b2be9c | 14747 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
14748 | |
14749 | ||
14750 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
14751 | # if CDPATH is set. | |
14752 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14753 | ||
14754 | sed_quote_subst='$sed_quote_subst' | |
14755 | double_quote_subst='$double_quote_subst' | |
14756 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
14757 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
14758 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
14759 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
14760 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
14761 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
14762 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
14763 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
14764 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
14765 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
14766 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
14767 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
14768 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
14769 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
14770 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
14771 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
14772 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
14773 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
14774 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
14775 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
14776 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
14777 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
14778 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
14779 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
14780 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
14781 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
14782 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
14783 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
14784 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
14785 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
14786 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
14787 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
14788 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
14789 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
14790 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
14791 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
14792 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
14793 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
14794 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14795 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14796 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14797 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
14798 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
14799 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
14800 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
14801 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
14802 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
14803 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
14804 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
14805 | 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"`' | |
14806 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
14807 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
14808 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
df7b86aa | 14809 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
f2c621e4 | 14810 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
3725885a RW |
14811 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
14812 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
14813 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
14814 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
14815 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
14816 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
14817 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
14818 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
14819 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
14820 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
14821 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14822 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
14823 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
14824 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14825 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14826 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
14827 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
14828 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14829 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14830 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14831 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
14832 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14833 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
14834 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14835 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14836 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14837 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
14838 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
14839 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
14840 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
14841 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
14842 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14843 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
14844 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
14845 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
f2c621e4 | 14846 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' |
3725885a RW |
14847 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
14848 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
14849 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
14850 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
14851 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
14852 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
14853 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
14854 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14855 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
14856 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
14857 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
14858 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14859 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
14860 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
14861 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
14862 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
14863 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
14864 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14865 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14866 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
14867 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
14868 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
14869 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
14870 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
14871 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
14872 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
14873 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
14874 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
14875 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
14876 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
14877 | |
14878 | LTCC='$LTCC' | |
14879 | LTCFLAGS='$LTCFLAGS' | |
14880 | compiler='$compiler_DEFAULT' | |
14881 | ||
3725885a RW |
14882 | # A function that is used when there is no print builtin or printf. |
14883 | func_fallback_echo () | |
14884 | { | |
14885 | eval 'cat <<_LTECHO_EOF | |
14886 | \$1 | |
14887 | _LTECHO_EOF' | |
14888 | } | |
14889 | ||
d7040cdb | 14890 | # Quote evaled strings. |
3725885a RW |
14891 | for var in SHELL \ |
14892 | ECHO \ | |
14893 | SED \ | |
d7040cdb SE |
14894 | GREP \ |
14895 | EGREP \ | |
14896 | FGREP \ | |
14897 | LD \ | |
14898 | NM \ | |
14899 | LN_S \ | |
14900 | lt_SP2NL \ | |
14901 | lt_NL2SP \ | |
14902 | reload_flag \ | |
718a6fd8 | 14903 | OBJDUMP \ |
d7040cdb SE |
14904 | deplibs_check_method \ |
14905 | file_magic_cmd \ | |
14906 | AR \ | |
14907 | AR_FLAGS \ | |
14908 | STRIP \ | |
14909 | RANLIB \ | |
14910 | CC \ | |
14911 | CFLAGS \ | |
14912 | compiler \ | |
14913 | lt_cv_sys_global_symbol_pipe \ | |
14914 | lt_cv_sys_global_symbol_to_cdecl \ | |
14915 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 14916 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb | 14917 | lt_prog_compiler_no_builtin_flag \ |
df7b86aa | 14918 | lt_prog_compiler_wl \ |
f2c621e4 | 14919 | lt_prog_compiler_pic \ |
d7040cdb SE |
14920 | lt_prog_compiler_static \ |
14921 | lt_cv_prog_compiler_c_o \ | |
14922 | need_locks \ | |
718a6fd8 SE |
14923 | DSYMUTIL \ |
14924 | NMEDIT \ | |
14925 | LIPO \ | |
14926 | OTOOL \ | |
14927 | OTOOL64 \ | |
d7040cdb SE |
14928 | shrext_cmds \ |
14929 | export_dynamic_flag_spec \ | |
14930 | whole_archive_flag_spec \ | |
14931 | compiler_needs_object \ | |
14932 | with_gnu_ld \ | |
14933 | allow_undefined_flag \ | |
14934 | no_undefined_flag \ | |
14935 | hardcode_libdir_flag_spec \ | |
14936 | hardcode_libdir_flag_spec_ld \ | |
14937 | hardcode_libdir_separator \ | |
f2c621e4 | 14938 | fix_srcfile_path \ |
d7040cdb SE |
14939 | exclude_expsyms \ |
14940 | include_expsyms \ | |
14941 | file_list_spec \ | |
14942 | variables_saved_for_relink \ | |
14943 | libname_spec \ | |
14944 | library_names_spec \ | |
14945 | soname_spec \ | |
3725885a | 14946 | install_override_mode \ |
d7040cdb SE |
14947 | finish_eval \ |
14948 | old_striplib \ | |
14949 | striplib; do | |
3725885a | 14950 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 14951 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 14952 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
14953 | ;; |
14954 | *) | |
14955 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14956 | ;; | |
14957 | esac | |
14958 | done | |
14959 | ||
14960 | # Double-quote double-evaled strings. | |
14961 | for var in reload_cmds \ | |
14962 | old_postinstall_cmds \ | |
14963 | old_postuninstall_cmds \ | |
14964 | old_archive_cmds \ | |
14965 | extract_expsyms_cmds \ | |
14966 | old_archive_from_new_cmds \ | |
14967 | old_archive_from_expsyms_cmds \ | |
14968 | archive_cmds \ | |
14969 | archive_expsym_cmds \ | |
14970 | module_cmds \ | |
14971 | module_expsym_cmds \ | |
14972 | export_symbols_cmds \ | |
14973 | prelink_cmds \ | |
14974 | postinstall_cmds \ | |
14975 | postuninstall_cmds \ | |
14976 | finish_cmds \ | |
14977 | sys_lib_search_path_spec \ | |
14978 | sys_lib_dlsearch_path_spec; do | |
3725885a | 14979 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 14980 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 14981 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
14982 | ;; |
14983 | *) | |
14984 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14985 | ;; | |
14986 | esac | |
14987 | done | |
14988 | ||
d7040cdb SE |
14989 | ac_aux_dir='$ac_aux_dir' |
14990 | xsi_shell='$xsi_shell' | |
14991 | lt_shell_append='$lt_shell_append' | |
14992 | ||
14993 | # See if we are running on zsh, and set the options which allow our | |
14994 | # commands through without removal of \ escapes INIT. | |
14995 | if test -n "\${ZSH_VERSION+set}" ; then | |
14996 | setopt NO_GLOB_SUBST | |
14997 | fi | |
14998 | ||
14999 | ||
15000 | PACKAGE='$PACKAGE' | |
15001 | VERSION='$VERSION' | |
15002 | TIMESTAMP='$TIMESTAMP' | |
15003 | RM='$RM' | |
15004 | ofile='$ofile' | |
15005 | ||
15006 | ||
15007 | ||
20e95c23 DJ |
15008 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15009 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15010 | # from automake. | |
15011 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15012 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15013 | LINGUAS="${LINGUAS-%UNSET%}" | |
15014 | ||
13b2be9c DJ |
15015 | target_cpu_type=${target_cpu_type} |
15016 | cgen_cpu_prefix=${cgen_cpu_prefix} | |
15017 | obj_format=${obj_format} | |
15018 | te_file=${te_file} | |
15019 | ||
15020 | _ACEOF | |
15021 | ||
81ecdfbb | 15022 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 15023 | |
81ecdfbb | 15024 | # Handling of arguments. |
13b2be9c | 15025 | for ac_config_target in $ac_config_targets |
9b2b7d69 | 15026 | do |
81ecdfbb RW |
15027 | case $ac_config_target in |
15028 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
15029 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15030 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
15031 | "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; | |
15032 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
15033 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
15034 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15035 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
15036 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
15037 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
15038 | ||
d0ac1c44 | 15039 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9b2b7d69 MM |
15040 | esac |
15041 | done | |
15042 | ||
81ecdfbb | 15043 | |
13b2be9c DJ |
15044 | # If the user did not use the arguments to specify the items to instantiate, |
15045 | # then the envvar interface is used. Set only those that are not. | |
15046 | # We use the long form for the default assignment because of an extremely | |
15047 | # bizarre bug on SunOS 4.1.3. | |
15048 | if $ac_need_defaults; then | |
15049 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15050 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15051 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15052 | fi | |
15053 | ||
15054 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15055 | # simply because there is no reason against having it here, and in addition, |
13b2be9c | 15056 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15057 | # Hook for its removal unless debugging. |
15058 | # Note that there is a small window in which the directory will not be cleaned: | |
15059 | # after its creation but before its name has been assigned to `$tmp'. | |
13b2be9c DJ |
15060 | $debug || |
15061 | { | |
d0ac1c44 | 15062 | tmp= ac_tmp= |
81ecdfbb | 15063 | trap 'exit_status=$? |
d0ac1c44 SM |
15064 | : "${ac_tmp:=$tmp}" |
15065 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15066 | ' 0 |
15067 | trap 'as_fn_exit 1' 1 2 13 15 | |
13b2be9c | 15068 | } |
13b2be9c | 15069 | # Create a (secure) tmp directory for tmp files. |
9b2b7d69 | 15070 | |
13b2be9c | 15071 | { |
81ecdfbb | 15072 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15073 | test -d "$tmp" |
13b2be9c DJ |
15074 | } || |
15075 | { | |
81ecdfbb RW |
15076 | tmp=./conf$$-$RANDOM |
15077 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15078 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15079 | ac_tmp=$tmp | |
81ecdfbb RW |
15080 | |
15081 | # Set up the scripts for CONFIG_FILES section. | |
15082 | # No need to generate them if there are no CONFIG_FILES. | |
15083 | # This happens for instance with `./config.status config.h'. | |
15084 | if test -n "$CONFIG_FILES"; then | |
15085 | ||
15086 | ||
15087 | ac_cr=`echo X | tr X '\015'` | |
15088 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15089 | # But we know of no other shell where ac_cr would be empty at this | |
15090 | # point, so we can use a bashism as a fallback. | |
15091 | if test "x$ac_cr" = x; then | |
15092 | eval ac_cr=\$\'\\r\' | |
15093 | fi | |
15094 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15095 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15096 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15097 | else |
15098 | ac_cs_awk_cr=$ac_cr | |
15099 | fi | |
15100 | ||
d0ac1c44 | 15101 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15102 | _ACEOF |
15103 | ||
15104 | ||
15105 | { | |
15106 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15107 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15108 | echo "_ACEOF" | |
15109 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15110 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15111 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15112 | ac_delim='%!_!# ' |
15113 | for ac_last_try in false false false false false :; do | |
15114 | . ./conf$$subs.sh || | |
d0ac1c44 | 15115 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15116 | |
15117 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15118 | if test $ac_delim_n = $ac_delim_num; then | |
15119 | break | |
15120 | elif $ac_last_try; then | |
d0ac1c44 | 15121 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15122 | else |
15123 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15124 | fi | |
15125 | done | |
15126 | rm -f conf$$subs.sh | |
15127 | ||
15128 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15129 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
15130 | _ACEOF |
15131 | sed -n ' | |
15132 | h | |
15133 | s/^/S["/; s/!.*/"]=/ | |
15134 | p | |
15135 | g | |
15136 | s/^[^!]*!// | |
15137 | :repl | |
15138 | t repl | |
15139 | s/'"$ac_delim"'$// | |
15140 | t delim | |
15141 | :nl | |
15142 | h | |
d0ac1c44 | 15143 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15144 | t more1 |
15145 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15146 | p | |
15147 | n | |
15148 | b repl | |
15149 | :more1 | |
15150 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15151 | p | |
15152 | g | |
15153 | s/.\{148\}// | |
15154 | t nl | |
15155 | :delim | |
15156 | h | |
d0ac1c44 | 15157 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15158 | t more2 |
15159 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15160 | p | |
15161 | b | |
15162 | :more2 | |
15163 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15164 | p | |
15165 | g | |
15166 | s/.\{148\}// | |
15167 | t delim | |
15168 | ' <conf$$subs.awk | sed ' | |
15169 | /^[^""]/{ | |
15170 | N | |
15171 | s/\n// | |
15172 | } | |
15173 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15174 | rm -f conf$$subs.awk | |
15175 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15176 | _ACAWK | |
d0ac1c44 | 15177 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15178 | for (key in S) S_is_set[key] = 1 |
15179 | FS = "\a" | |
15180 | ||
15181 | } | |
13b2be9c | 15182 | { |
81ecdfbb RW |
15183 | line = $ 0 |
15184 | nfields = split(line, field, "@") | |
15185 | substed = 0 | |
15186 | len = length(field[1]) | |
15187 | for (i = 2; i < nfields; i++) { | |
15188 | key = field[i] | |
15189 | keylen = length(key) | |
15190 | if (S_is_set[key]) { | |
15191 | value = S[key] | |
15192 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15193 | len += length(value) + length(field[++i]) | |
15194 | substed = 1 | |
15195 | } else | |
15196 | len += 1 + keylen | |
15197 | } | |
15198 | ||
15199 | print line | |
13b2be9c | 15200 | } |
9b2b7d69 | 15201 | |
81ecdfbb RW |
15202 | _ACAWK |
15203 | _ACEOF | |
15204 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15205 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15206 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15207 | else | |
15208 | cat | |
d0ac1c44 SM |
15209 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15210 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
13b2be9c DJ |
15211 | _ACEOF |
15212 | ||
d0ac1c44 SM |
15213 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15214 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15215 | # trailing colons and then remove the whole line if VPATH becomes empty |
15216 | # (actually we leave an empty line to preserve line numbers). | |
15217 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15218 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15219 | h | |
15220 | s/// | |
15221 | s/^/:/ | |
15222 | s/[ ]*$/:/ | |
15223 | s/:\$(srcdir):/:/g | |
15224 | s/:\${srcdir}:/:/g | |
15225 | s/:@srcdir@:/:/g | |
15226 | s/^:*// | |
81ecdfbb | 15227 | s/:*$// |
d0ac1c44 SM |
15228 | x |
15229 | s/\(=[ ]*\).*/\1/ | |
15230 | G | |
15231 | s/\n// | |
81ecdfbb RW |
15232 | s/^[^=]*=[ ]*$// |
15233 | }' | |
15234 | fi | |
15235 | ||
15236 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15237 | fi # test -n "$CONFIG_FILES" | |
13b2be9c | 15238 | |
81ecdfbb RW |
15239 | # Set up the scripts for CONFIG_HEADERS section. |
15240 | # No need to generate them if there are no CONFIG_HEADERS. | |
15241 | # This happens for instance with `./config.status Makefile'. | |
15242 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 15243 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb RW |
15244 | BEGIN { |
15245 | _ACEOF | |
13b2be9c | 15246 | |
81ecdfbb RW |
15247 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
15248 | # here-document in config.status, that substitutes the proper values into | |
15249 | # config.h.in to produce config.h. | |
9b2b7d69 | 15250 | |
81ecdfbb RW |
15251 | # Create a delimiter string that does not exist in confdefs.h, to ease |
15252 | # handling of long lines. | |
15253 | ac_delim='%!_!# ' | |
15254 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
15255 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
15256 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
15257 | break |
15258 | elif $ac_last_try; then | |
d0ac1c44 | 15259 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
15260 | else |
15261 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15262 | fi | |
15263 | done | |
15264 | ||
15265 | # For the awk script, D is an array of macro values keyed by name, | |
15266 | # likewise P contains macro parameters if any. Preserve backslash | |
15267 | # newline sequences. | |
15268 | ||
15269 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15270 | sed -n ' | |
15271 | s/.\{148\}/&'"$ac_delim"'/g | |
15272 | t rset | |
15273 | :rset | |
15274 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15275 | t def | |
15276 | d | |
15277 | :def | |
15278 | s/\\$// | |
15279 | t bsnl | |
15280 | s/["\\]/\\&/g | |
15281 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15282 | D["\1"]=" \3"/p | |
15283 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15284 | d | |
15285 | :bsnl | |
15286 | s/["\\]/\\&/g | |
15287 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15288 | D["\1"]=" \3\\\\\\n"\\/p | |
15289 | t cont | |
15290 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15291 | t cont | |
15292 | d | |
15293 | :cont | |
15294 | n | |
15295 | s/.\{148\}/&'"$ac_delim"'/g | |
15296 | t clear | |
15297 | :clear | |
15298 | s/\\$// | |
15299 | t bsnlc | |
15300 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15301 | d | |
15302 | :bsnlc | |
15303 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15304 | b cont | |
15305 | ' <confdefs.h | sed ' | |
15306 | s/'"$ac_delim"'/"\\\ | |
15307 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15308 | ||
15309 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15310 | for (key in D) D_is_set[key] = 1 | |
15311 | FS = "\a" | |
15312 | } | |
15313 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15314 | line = \$ 0 | |
15315 | split(line, arg, " ") | |
15316 | if (arg[1] == "#") { | |
15317 | defundef = arg[2] | |
15318 | mac1 = arg[3] | |
15319 | } else { | |
15320 | defundef = substr(arg[1], 2) | |
15321 | mac1 = arg[2] | |
15322 | } | |
15323 | split(mac1, mac2, "(") #) | |
15324 | macro = mac2[1] | |
15325 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15326 | if (D_is_set[macro]) { | |
15327 | # Preserve the white space surrounding the "#". | |
15328 | print prefix "define", macro P[macro] D[macro] | |
15329 | next | |
15330 | } else { | |
15331 | # Replace #undef with comments. This is necessary, for example, | |
15332 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15333 | # on some systems where configure will not decide to define it. | |
15334 | if (defundef == "undef") { | |
15335 | print "/*", prefix defundef, macro, "*/" | |
15336 | next | |
15337 | } | |
15338 | } | |
15339 | } | |
15340 | { print } | |
15341 | _ACAWK | |
13b2be9c | 15342 | _ACEOF |
81ecdfbb | 15343 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 15344 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb | 15345 | fi # test -n "$CONFIG_HEADERS" |
13b2be9c | 15346 | |
81ecdfbb RW |
15347 | |
15348 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
15349 | shift | |
15350 | for ac_tag | |
15351 | do | |
15352 | case $ac_tag in | |
15353 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15354 | esac | |
15355 | case $ac_mode$ac_tag in | |
15356 | :[FHL]*:*);; | |
d0ac1c44 | 15357 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
15358 | :[FH]-) ac_tag=-:-;; |
15359 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15360 | esac | |
15361 | ac_save_IFS=$IFS | |
15362 | IFS=: | |
15363 | set x $ac_tag | |
15364 | IFS=$ac_save_IFS | |
15365 | shift | |
15366 | ac_file=$1 | |
15367 | shift | |
15368 | ||
15369 | case $ac_mode in | |
15370 | :L) ac_source=$1;; | |
15371 | :[FH]) | |
15372 | ac_file_inputs= | |
15373 | for ac_f | |
15374 | do | |
15375 | case $ac_f in | |
d0ac1c44 | 15376 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
15377 | *) # Look for the file first in the build tree, then in the source tree |
15378 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15379 | # because $ac_f cannot contain `:'. | |
15380 | test -f "$ac_f" || | |
15381 | case $ac_f in | |
15382 | [\\/$]*) false;; | |
15383 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15384 | esac || | |
d0ac1c44 | 15385 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
15386 | esac |
15387 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15388 | as_fn_append ac_file_inputs " '$ac_f'" | |
15389 | done | |
15390 | ||
15391 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15392 | # use $as_me), people would be surprised to read: | |
15393 | # /* config.h. Generated by config.status. */ | |
15394 | configure_input='Generated from '` | |
15395 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15396 | `' by configure.' | |
15397 | if test x"$ac_file" != x-; then | |
15398 | configure_input="$ac_file. $configure_input" | |
15399 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15400 | $as_echo "$as_me: creating $ac_file" >&6;} | |
9b2b7d69 | 15401 | fi |
81ecdfbb RW |
15402 | # Neutralize special characters interpreted by sed in replacement strings. |
15403 | case $configure_input in #( | |
15404 | *\&* | *\|* | *\\* ) | |
15405 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15406 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15407 | *) ac_sed_conf_input=$configure_input;; | |
15408 | esac | |
252b5132 | 15409 | |
81ecdfbb | 15410 | case $ac_tag in |
d0ac1c44 SM |
15411 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15412 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
15413 | esac |
15414 | ;; | |
252b5132 | 15415 | esac |
9b2b7d69 | 15416 | |
81ecdfbb | 15417 | ac_dir=`$as_dirname -- "$ac_file" || |
13b2be9c | 15418 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15419 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
15420 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15421 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15422 | $as_echo X"$ac_file" | | |
15423 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15424 | s//\1/ | |
15425 | q | |
15426 | } | |
15427 | /^X\(\/\/\)[^/].*/{ | |
15428 | s//\1/ | |
15429 | q | |
15430 | } | |
15431 | /^X\(\/\/\)$/{ | |
15432 | s//\1/ | |
15433 | q | |
15434 | } | |
15435 | /^X\(\/\).*/{ | |
15436 | s//\1/ | |
15437 | q | |
15438 | } | |
15439 | s/.*/./; q'` | |
15440 | as_dir="$ac_dir"; as_fn_mkdir_p | |
13b2be9c DJ |
15441 | ac_builddir=. |
15442 | ||
81ecdfbb RW |
15443 | case "$ac_dir" in |
15444 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15445 | *) | |
15446 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15447 | # A ".." for each directory in $ac_dir_suffix. | |
15448 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15449 | case $ac_top_builddir_sub in | |
15450 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15451 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15452 | esac ;; | |
15453 | esac | |
15454 | ac_abs_top_builddir=$ac_pwd | |
15455 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15456 | # for backward compatibility: | |
15457 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 15458 | |
13b2be9c | 15459 | case $srcdir in |
81ecdfbb | 15460 | .) # We are building in place. |
13b2be9c | 15461 | ac_srcdir=. |
81ecdfbb RW |
15462 | ac_top_srcdir=$ac_top_builddir_sub |
15463 | ac_abs_top_srcdir=$ac_pwd ;; | |
15464 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 15465 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15466 | ac_top_srcdir=$srcdir |
15467 | ac_abs_top_srcdir=$srcdir ;; | |
15468 | *) # Relative name. | |
15469 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15470 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15471 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13b2be9c | 15472 | esac |
81ecdfbb | 15473 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
ab509236 | 15474 | |
252b5132 | 15475 | |
81ecdfbb RW |
15476 | case $ac_mode in |
15477 | :F) | |
15478 | # | |
15479 | # CONFIG_FILE | |
15480 | # | |
9b2b7d69 | 15481 | |
13b2be9c DJ |
15482 | case $INSTALL in |
15483 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
15484 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
15485 | esac | |
15486 | ac_MKDIR_P=$MKDIR_P | |
15487 | case $MKDIR_P in | |
15488 | [\\/$]* | ?:[\\/]* ) ;; | |
15489 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
c8615825 | 15490 | esac |
81ecdfbb | 15491 | _ACEOF |
9b2b7d69 | 15492 | |
81ecdfbb RW |
15493 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15494 | # If the template does not know about datarootdir, expand it. | |
15495 | # FIXME: This hack should be removed a few years after 2.60. | |
15496 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15497 | ac_sed_dataroot=' | |
15498 | /datarootdir/ { | |
15499 | p | |
15500 | q | |
15501 | } | |
15502 | /@datadir@/p | |
15503 | /@docdir@/p | |
15504 | /@infodir@/p | |
15505 | /@localedir@/p | |
15506 | /@mandir@/p' | |
15507 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15508 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15509 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15511 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15512 | _ACEOF | |
15513 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15514 | ac_datarootdir_hack=' | |
15515 | s&@datadir@&$datadir&g | |
15516 | s&@docdir@&$docdir&g | |
15517 | s&@infodir@&$infodir&g | |
15518 | s&@localedir@&$localedir&g | |
15519 | s&@mandir@&$mandir&g | |
15520 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15521 | esac | |
13b2be9c | 15522 | _ACEOF |
81ecdfbb RW |
15523 | |
15524 | # Neutralize VPATH when `$srcdir' = `.'. | |
15525 | # Shell code in configure.ac might set extrasub. | |
15526 | # FIXME: do we really want to maintain this feature? | |
15527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15528 | ac_sed_extra="$ac_vpsub | |
13b2be9c DJ |
15529 | $extrasub |
15530 | _ACEOF | |
81ecdfbb | 15531 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c DJ |
15532 | :t |
15533 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15534 | s|@configure_input@|$ac_sed_conf_input|;t t |
15535 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15536 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15537 | s&@srcdir@&$ac_srcdir&;t t | |
15538 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15539 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15540 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15541 | s&@builddir@&$ac_builddir&;t t | |
15542 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15543 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15544 | s&@INSTALL@&$ac_INSTALL&;t t | |
15545 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
15546 | $ac_datarootdir_hack | |
15547 | " | |
d0ac1c44 SM |
15548 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
15549 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
15550 | |
15551 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
15552 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15553 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15554 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 15555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15556 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 15557 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15558 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 15559 | |
d0ac1c44 | 15560 | rm -f "$ac_tmp/stdin" |
13b2be9c | 15561 | case $ac_file in |
d0ac1c44 SM |
15562 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15563 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 15564 | esac \ |
d0ac1c44 | 15565 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
15566 | ;; |
15567 | :H) | |
15568 | # | |
15569 | # CONFIG_HEADER | |
15570 | # | |
13b2be9c | 15571 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
15572 | { |
15573 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
15574 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
15575 | } >"$ac_tmp/config.h" \ | |
15576 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15577 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
15578 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
15579 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13b2be9c | 15580 | else |
81ecdfbb | 15581 | rm -f "$ac_file" |
d0ac1c44 SM |
15582 | mv "$ac_tmp/config.h" "$ac_file" \ |
15583 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9b2b7d69 | 15584 | fi |
13b2be9c | 15585 | else |
81ecdfbb | 15586 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
15587 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
15588 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
9b2b7d69 | 15589 | fi |
81ecdfbb RW |
15590 | # Compute "$ac_file"'s index in $config_headers. |
15591 | _am_arg="$ac_file" | |
13b2be9c DJ |
15592 | _am_stamp_count=1 |
15593 | for _am_header in $config_headers :; do | |
15594 | case $_am_header in | |
81ecdfbb | 15595 | $_am_arg | $_am_arg:* ) |
13b2be9c DJ |
15596 | break ;; |
15597 | * ) | |
15598 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15599 | esac | |
15600 | done | |
81ecdfbb RW |
15601 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
15602 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15603 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
15604 | X"$_am_arg" : 'X\(//\)$' \| \ | |
15605 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
15606 | $as_echo X"$_am_arg" | | |
15607 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15608 | s//\1/ | |
15609 | q | |
15610 | } | |
15611 | /^X\(\/\/\)[^/].*/{ | |
15612 | s//\1/ | |
15613 | q | |
15614 | } | |
15615 | /^X\(\/\/\)$/{ | |
15616 | s//\1/ | |
15617 | q | |
15618 | } | |
15619 | /^X\(\/\).*/{ | |
15620 | s//\1/ | |
15621 | q | |
15622 | } | |
15623 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15624 | ;; | |
ab509236 | 15625 | |
81ecdfbb RW |
15626 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
15627 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
15628 | ;; | |
15629 | esac | |
13b2be9c DJ |
15630 | |
15631 | ||
81ecdfbb RW |
15632 | case $ac_file$ac_mode in |
15633 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
d0ac1c44 | 15634 | # Older Autoconf quotes --file arguments for eval, but not when files |
81ecdfbb RW |
15635 | # are listed without --file. Let's play safe and only enable the eval |
15636 | # if we detect the quoting. | |
15637 | case $CONFIG_FILES in | |
15638 | *\'*) eval set x "$CONFIG_FILES" ;; | |
15639 | *) set x $CONFIG_FILES ;; | |
15640 | esac | |
15641 | shift | |
15642 | for mf | |
15643 | do | |
15644 | # Strip MF so we end up with the name of the file. | |
15645 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
15646 | # Check whether this is an Automake generated Makefile or not. | |
d0ac1c44 | 15647 | # We used to match only the files named 'Makefile.in', but |
81ecdfbb RW |
15648 | # some people rename them; so instead we look at the file content. |
15649 | # Grep'ing the first line is not enough: some people post-process | |
15650 | # each Makefile.in and add a new line on top of each file to say so. | |
15651 | # Grep'ing the whole file is not good either: AIX grep has a line | |
15652 | # limit of 2048, but all sed's we know have understand at least 4000. | |
15653 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
15654 | dirpart=`$as_dirname -- "$mf" || | |
13b2be9c | 15655 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15656 | X"$mf" : 'X\(//\)[^/]' \| \ |
15657 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15658 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
15659 | $as_echo X"$mf" | | |
15660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15661 | s//\1/ | |
15662 | q | |
15663 | } | |
15664 | /^X\(\/\/\)[^/].*/{ | |
15665 | s//\1/ | |
15666 | q | |
15667 | } | |
15668 | /^X\(\/\/\)$/{ | |
15669 | s//\1/ | |
15670 | q | |
15671 | } | |
15672 | /^X\(\/\).*/{ | |
15673 | s//\1/ | |
15674 | q | |
15675 | } | |
15676 | s/.*/./; q'` | |
15677 | else | |
15678 | continue | |
15679 | fi | |
15680 | # Extract the definition of DEPDIR, am__include, and am__quote | |
d0ac1c44 | 15681 | # from the Makefile without running 'make'. |
81ecdfbb RW |
15682 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
15683 | test -z "$DEPDIR" && continue | |
15684 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
d0ac1c44 | 15685 | test -z "$am__include" && continue |
81ecdfbb | 15686 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
81ecdfbb RW |
15687 | # Find all dependency output files, they are included files with |
15688 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
15689 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
15690 | # expansion. | |
15691 | for file in `sed -n " | |
15692 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
d0ac1c44 | 15693 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
81ecdfbb RW |
15694 | # Make sure the directory exists. |
15695 | test -f "$dirpart/$file" && continue | |
15696 | fdir=`$as_dirname -- "$file" || | |
13b2be9c | 15697 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15698 | X"$file" : 'X\(//\)[^/]' \| \ |
15699 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15700 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
15701 | $as_echo X"$file" | | |
15702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15703 | s//\1/ | |
15704 | q | |
15705 | } | |
15706 | /^X\(\/\/\)[^/].*/{ | |
15707 | s//\1/ | |
15708 | q | |
15709 | } | |
15710 | /^X\(\/\/\)$/{ | |
15711 | s//\1/ | |
15712 | q | |
15713 | } | |
15714 | /^X\(\/\).*/{ | |
15715 | s//\1/ | |
15716 | q | |
15717 | } | |
15718 | s/.*/./; q'` | |
15719 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
15720 | # echo "creating $dirpart/$file" | |
15721 | echo '# dummy' > "$dirpart/$file" | |
13b2be9c | 15722 | done |
13b2be9c | 15723 | done |
81ecdfbb | 15724 | } |
d7040cdb | 15725 | ;; |
81ecdfbb | 15726 | "libtool":C) |
d7040cdb SE |
15727 | |
15728 | # See if we are running on zsh, and set the options which allow our | |
15729 | # commands through without removal of \ escapes. | |
15730 | if test -n "${ZSH_VERSION+set}" ; then | |
15731 | setopt NO_GLOB_SUBST | |
15732 | fi | |
15733 | ||
15734 | cfgfile="${ofile}T" | |
15735 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15736 | $RM "$cfgfile" | |
15737 | ||
15738 | cat <<_LT_EOF >> "$cfgfile" | |
15739 | #! $SHELL | |
15740 | ||
15741 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 15742 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
15743 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15744 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
15745 | # | |
718a6fd8 | 15746 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
f2c621e4 | 15747 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
718a6fd8 | 15748 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 15749 | # |
718a6fd8 | 15750 | # This file is part of GNU Libtool. |
d7040cdb | 15751 | # |
718a6fd8 SE |
15752 | # GNU Libtool is free software; you can redistribute it and/or |
15753 | # modify it under the terms of the GNU General Public License as | |
15754 | # published by the Free Software Foundation; either version 2 of | |
15755 | # the License, or (at your option) any later version. | |
d7040cdb | 15756 | # |
718a6fd8 SE |
15757 | # As a special exception to the GNU General Public License, |
15758 | # if you distribute this file as part of a program or library that | |
15759 | # is built using GNU Libtool, you may include this file under the | |
15760 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 15761 | # |
718a6fd8 SE |
15762 | # GNU Libtool is distributed in the hope that it will be useful, |
15763 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15764 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15765 | # GNU General Public License for more details. | |
d7040cdb | 15766 | # |
718a6fd8 SE |
15767 | # You should have received a copy of the GNU General Public License |
15768 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
15769 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15770 | # obtained by writing to the Free Software Foundation, Inc., | |
15771 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
15772 | |
15773 | ||
15774 | # The names of the tagged configurations supported by this script. | |
15775 | available_tags="" | |
15776 | ||
15777 | # ### BEGIN LIBTOOL CONFIG | |
15778 | ||
15779 | # Which release of libtool.m4 was used? | |
15780 | macro_version=$macro_version | |
15781 | macro_revision=$macro_revision | |
15782 | ||
15783 | # Whether or not to build shared libraries. | |
15784 | build_libtool_libs=$enable_shared | |
15785 | ||
15786 | # Whether or not to build static libraries. | |
15787 | build_old_libs=$enable_static | |
15788 | ||
15789 | # What type of objects to build. | |
15790 | pic_mode=$pic_mode | |
15791 | ||
15792 | # Whether or not to optimize for fast installation. | |
15793 | fast_install=$enable_fast_install | |
15794 | ||
3725885a RW |
15795 | # Shell to use when invoking shell scripts. |
15796 | SHELL=$lt_SHELL | |
15797 | ||
15798 | # An echo program that protects backslashes. | |
15799 | ECHO=$lt_ECHO | |
15800 | ||
d7040cdb SE |
15801 | # The host system. |
15802 | host_alias=$host_alias | |
15803 | host=$host | |
15804 | host_os=$host_os | |
15805 | ||
15806 | # The build system. | |
15807 | build_alias=$build_alias | |
15808 | build=$build | |
15809 | build_os=$build_os | |
15810 | ||
15811 | # A sed program that does not truncate output. | |
15812 | SED=$lt_SED | |
15813 | ||
15814 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
15815 | Xsed="\$SED -e 1s/^X//" | |
15816 | ||
15817 | # A grep program that handles long lines. | |
15818 | GREP=$lt_GREP | |
15819 | ||
15820 | # An ERE matcher. | |
15821 | EGREP=$lt_EGREP | |
15822 | ||
15823 | # A literal string matcher. | |
15824 | FGREP=$lt_FGREP | |
15825 | ||
15826 | # A BSD- or MS-compatible name lister. | |
15827 | NM=$lt_NM | |
15828 | ||
15829 | # Whether we need soft or hard links. | |
15830 | LN_S=$lt_LN_S | |
15831 | ||
15832 | # What is the maximum length of a command? | |
15833 | max_cmd_len=$max_cmd_len | |
15834 | ||
15835 | # Object file suffix (normally "o"). | |
15836 | objext=$ac_objext | |
15837 | ||
15838 | # Executable file suffix (normally ""). | |
15839 | exeext=$exeext | |
15840 | ||
15841 | # whether the shell understands "unset". | |
15842 | lt_unset=$lt_unset | |
15843 | ||
15844 | # turn spaces into newlines. | |
15845 | SP2NL=$lt_lt_SP2NL | |
15846 | ||
15847 | # turn newlines into spaces. | |
15848 | NL2SP=$lt_lt_NL2SP | |
15849 | ||
718a6fd8 SE |
15850 | # An object symbol dumper. |
15851 | OBJDUMP=$lt_OBJDUMP | |
15852 | ||
d7040cdb SE |
15853 | # Method to check whether dependent libraries are shared objects. |
15854 | deplibs_check_method=$lt_deplibs_check_method | |
15855 | ||
f2c621e4 | 15856 | # Command to use when deplibs_check_method == "file_magic". |
d7040cdb SE |
15857 | file_magic_cmd=$lt_file_magic_cmd |
15858 | ||
15859 | # The archiver. | |
15860 | AR=$lt_AR | |
15861 | AR_FLAGS=$lt_AR_FLAGS | |
15862 | ||
15863 | # A symbol stripping program. | |
15864 | STRIP=$lt_STRIP | |
15865 | ||
15866 | # Commands used to install an old-style archive. | |
15867 | RANLIB=$lt_RANLIB | |
15868 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15869 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15870 | ||
3725885a RW |
15871 | # Whether to use a lock for old archive extraction. |
15872 | lock_old_archive_extraction=$lock_old_archive_extraction | |
15873 | ||
d7040cdb SE |
15874 | # A C compiler. |
15875 | LTCC=$lt_CC | |
15876 | ||
15877 | # LTCC compiler flags. | |
15878 | LTCFLAGS=$lt_CFLAGS | |
15879 | ||
15880 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15881 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15882 | ||
15883 | # Transform the output of nm in a proper C declaration. | |
15884 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15885 | ||
15886 | # Transform the output of nm in a C name address pair. | |
15887 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15888 | ||
718a6fd8 SE |
15889 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
15890 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
15891 | ||
d7040cdb SE |
15892 | # The name of the directory that contains temporary libtool files. |
15893 | objdir=$objdir | |
15894 | ||
d7040cdb SE |
15895 | # Used to examine libraries when file_magic_cmd begins with "file". |
15896 | MAGIC_CMD=$MAGIC_CMD | |
15897 | ||
15898 | # Must we lock files when doing compilation? | |
15899 | need_locks=$lt_need_locks | |
15900 | ||
718a6fd8 SE |
15901 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
15902 | DSYMUTIL=$lt_DSYMUTIL | |
15903 | ||
15904 | # Tool to change global to local symbols on Mac OS X. | |
15905 | NMEDIT=$lt_NMEDIT | |
15906 | ||
15907 | # Tool to manipulate fat objects and archives on Mac OS X. | |
15908 | LIPO=$lt_LIPO | |
15909 | ||
15910 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
15911 | OTOOL=$lt_OTOOL | |
15912 | ||
15913 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
15914 | OTOOL64=$lt_OTOOL64 | |
15915 | ||
d7040cdb SE |
15916 | # Old archive suffix (normally "a"). |
15917 | libext=$libext | |
15918 | ||
15919 | # Shared library suffix (normally ".so"). | |
15920 | shrext_cmds=$lt_shrext_cmds | |
15921 | ||
15922 | # The commands to extract the exported symbol list from a shared archive. | |
15923 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15924 | ||
15925 | # Variables whose values should be saved in libtool wrapper scripts and | |
15926 | # restored at link time. | |
15927 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
15928 | ||
15929 | # Do we need the "lib" prefix for modules? | |
15930 | need_lib_prefix=$need_lib_prefix | |
15931 | ||
15932 | # Do we need a version for libraries? | |
15933 | need_version=$need_version | |
15934 | ||
15935 | # Library versioning type. | |
15936 | version_type=$version_type | |
15937 | ||
15938 | # Shared library runtime path variable. | |
15939 | runpath_var=$runpath_var | |
15940 | ||
15941 | # Shared library path variable. | |
15942 | shlibpath_var=$shlibpath_var | |
15943 | ||
15944 | # Is shlibpath searched before the hard-coded library search path? | |
15945 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15946 | ||
15947 | # Format of library name prefix. | |
15948 | libname_spec=$lt_libname_spec | |
15949 | ||
15950 | # List of archive names. First name is the real one, the rest are links. | |
15951 | # The last name is the one that the linker finds with -lNAME | |
15952 | library_names_spec=$lt_library_names_spec | |
15953 | ||
15954 | # The coded name of the library, if different from the real name. | |
15955 | soname_spec=$lt_soname_spec | |
15956 | ||
3725885a RW |
15957 | # Permission mode override for installation of shared libraries. |
15958 | install_override_mode=$lt_install_override_mode | |
15959 | ||
d7040cdb SE |
15960 | # Command to use after installation of a shared archive. |
15961 | postinstall_cmds=$lt_postinstall_cmds | |
15962 | ||
15963 | # Command to use after uninstallation of a shared archive. | |
15964 | postuninstall_cmds=$lt_postuninstall_cmds | |
15965 | ||
15966 | # Commands used to finish a libtool library installation in a directory. | |
15967 | finish_cmds=$lt_finish_cmds | |
15968 | ||
15969 | # As "finish_cmds", except a single script fragment to be evaled but | |
15970 | # not shown. | |
15971 | finish_eval=$lt_finish_eval | |
15972 | ||
15973 | # Whether we should hardcode library paths into libraries. | |
15974 | hardcode_into_libs=$hardcode_into_libs | |
15975 | ||
15976 | # Compile-time system search path for libraries. | |
15977 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15978 | ||
15979 | # Run-time system search path for libraries. | |
15980 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15981 | ||
15982 | # Whether dlopen is supported. | |
15983 | dlopen_support=$enable_dlopen | |
15984 | ||
15985 | # Whether dlopen of programs is supported. | |
15986 | dlopen_self=$enable_dlopen_self | |
15987 | ||
15988 | # Whether dlopen of statically linked programs is supported. | |
15989 | dlopen_self_static=$enable_dlopen_self_static | |
15990 | ||
15991 | # Commands to strip libraries. | |
15992 | old_striplib=$lt_old_striplib | |
15993 | striplib=$lt_striplib | |
15994 | ||
15995 | ||
15996 | # The linker used to build libraries. | |
15997 | LD=$lt_LD | |
15998 | ||
3725885a RW |
15999 | # How to create reloadable object files. |
16000 | reload_flag=$lt_reload_flag | |
16001 | reload_cmds=$lt_reload_cmds | |
16002 | ||
d7040cdb SE |
16003 | # Commands used to build an old-style archive. |
16004 | old_archive_cmds=$lt_old_archive_cmds | |
16005 | ||
16006 | # A language specific compiler. | |
16007 | CC=$lt_compiler | |
16008 | ||
16009 | # Is the compiler the GNU compiler? | |
16010 | with_gcc=$GCC | |
16011 | ||
16012 | # Compiler flag to turn off builtin functions. | |
16013 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16014 | ||
df7b86aa NC |
16015 | # How to pass a linker flag through the compiler. |
16016 | wl=$lt_lt_prog_compiler_wl | |
16017 | ||
f2c621e4 AS |
16018 | # Additional compiler flags for building library objects. |
16019 | pic_flag=$lt_lt_prog_compiler_pic | |
16020 | ||
d7040cdb SE |
16021 | # Compiler flag to prevent dynamic linking. |
16022 | link_static_flag=$lt_lt_prog_compiler_static | |
16023 | ||
16024 | # Does compiler simultaneously support -c and -o options? | |
16025 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16026 | ||
16027 | # Whether or not to add -lc for building shared libraries. | |
16028 | build_libtool_need_lc=$archive_cmds_need_lc | |
16029 | ||
16030 | # Whether or not to disallow shared libs when runtime libs are static. | |
16031 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16032 | ||
16033 | # Compiler flag to allow reflexive dlopens. | |
16034 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16035 | ||
16036 | # Compiler flag to generate shared objects directly from archives. | |
16037 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16038 | ||
16039 | # Whether the compiler copes with passing no objects directly. | |
16040 | compiler_needs_object=$lt_compiler_needs_object | |
16041 | ||
16042 | # Create an old-style archive from a shared archive. | |
16043 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16044 | ||
16045 | # Create a temporary old-style archive to link instead of a shared archive. | |
16046 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16047 | ||
16048 | # Commands used to build a shared archive. | |
16049 | archive_cmds=$lt_archive_cmds | |
16050 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
16051 | ||
16052 | # Commands used to build a loadable module if different from building | |
16053 | # a shared archive. | |
16054 | module_cmds=$lt_module_cmds | |
16055 | module_expsym_cmds=$lt_module_expsym_cmds | |
16056 | ||
16057 | # Whether we are building with GNU ld or not. | |
16058 | with_gnu_ld=$lt_with_gnu_ld | |
16059 | ||
16060 | # Flag that allows shared libraries with undefined symbols to be built. | |
16061 | allow_undefined_flag=$lt_allow_undefined_flag | |
16062 | ||
16063 | # Flag that enforces no undefined symbols. | |
16064 | no_undefined_flag=$lt_no_undefined_flag | |
16065 | ||
16066 | # Flag to hardcode \$libdir into a binary during linking. | |
16067 | # This must work even if \$libdir does not exist | |
16068 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16069 | ||
16070 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16071 | # during linking. This must work even if \$libdir does not exist. | |
16072 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16073 | ||
16074 | # Whether we need a single "-rpath" flag with a separated argument. | |
16075 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16076 | ||
16077 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16078 | # DIR into the resulting binary. | |
16079 | hardcode_direct=$hardcode_direct | |
16080 | ||
16081 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16082 | # DIR into the resulting binary and the resulting library dependency is | |
16083 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16084 | # library is relocated. | |
16085 | hardcode_direct_absolute=$hardcode_direct_absolute | |
16086 | ||
16087 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16088 | # into the resulting binary. | |
16089 | hardcode_minus_L=$hardcode_minus_L | |
16090 | ||
16091 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16092 | # into the resulting binary. | |
16093 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16094 | ||
16095 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
16096 | # into the library and all subsequent libraries and executables linked | |
16097 | # against it. | |
16098 | hardcode_automatic=$hardcode_automatic | |
16099 | ||
16100 | # Set to yes if linker adds runtime paths of dependent libraries | |
16101 | # to runtime path list. | |
16102 | inherit_rpath=$inherit_rpath | |
16103 | ||
16104 | # Whether libtool must link a program against all its dependency libraries. | |
16105 | link_all_deplibs=$link_all_deplibs | |
16106 | ||
f2c621e4 AS |
16107 | # Fix the shell variable \$srcfile for the compiler. |
16108 | fix_srcfile_path=$lt_fix_srcfile_path | |
16109 | ||
d7040cdb SE |
16110 | # Set to "yes" if exported symbols are required. |
16111 | always_export_symbols=$always_export_symbols | |
16112 | ||
16113 | # The commands to list exported symbols. | |
16114 | export_symbols_cmds=$lt_export_symbols_cmds | |
16115 | ||
16116 | # Symbols that should not be listed in the preloaded symbols. | |
16117 | exclude_expsyms=$lt_exclude_expsyms | |
16118 | ||
16119 | # Symbols that must always be exported. | |
16120 | include_expsyms=$lt_include_expsyms | |
16121 | ||
16122 | # Commands necessary for linking programs (against libraries) with templates. | |
16123 | prelink_cmds=$lt_prelink_cmds | |
16124 | ||
16125 | # Specify filename containing input files. | |
16126 | file_list_spec=$lt_file_list_spec | |
16127 | ||
16128 | # How to hardcode a shared library path into an executable. | |
16129 | hardcode_action=$hardcode_action | |
16130 | ||
16131 | # ### END LIBTOOL CONFIG | |
16132 | ||
16133 | _LT_EOF | |
16134 | ||
16135 | case $host_os in | |
16136 | aix3*) | |
16137 | cat <<\_LT_EOF >> "$cfgfile" | |
16138 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16139 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16140 | # vanish in a puff of smoke. | |
16141 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16142 | COLLECT_NAMES= | |
16143 | export COLLECT_NAMES | |
16144 | fi | |
16145 | _LT_EOF | |
16146 | ;; | |
16147 | esac | |
16148 | ||
16149 | ||
16150 | ltmain="$ac_aux_dir/ltmain.sh" | |
16151 | ||
16152 | ||
16153 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16154 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16155 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16156 | # is reportedly fixed, but why not run on old versions too? | |
f2c621e4 AS |
16157 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
16158 | || (rm -f "$cfgfile"; exit 1) | |
16159 | ||
16160 | case $xsi_shell in | |
16161 | yes) | |
16162 | cat << \_LT_EOF >> "$cfgfile" | |
16163 | ||
16164 | # func_dirname file append nondir_replacement | |
16165 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16166 | # otherwise set result to NONDIR_REPLACEMENT. | |
16167 | func_dirname () | |
16168 | { | |
16169 | case ${1} in | |
16170 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16171 | * ) func_dirname_result="${3}" ;; | |
16172 | esac | |
16173 | } | |
16174 | ||
16175 | # func_basename file | |
16176 | func_basename () | |
16177 | { | |
16178 | func_basename_result="${1##*/}" | |
16179 | } | |
16180 | ||
16181 | # func_dirname_and_basename file append nondir_replacement | |
16182 | # perform func_basename and func_dirname in a single function | |
16183 | # call: | |
16184 | # dirname: Compute the dirname of FILE. If nonempty, | |
16185 | # add APPEND to the result, otherwise set result | |
16186 | # to NONDIR_REPLACEMENT. | |
16187 | # value returned in "$func_dirname_result" | |
16188 | # basename: Compute filename of FILE. | |
16189 | # value retuned in "$func_basename_result" | |
16190 | # Implementation must be kept synchronized with func_dirname | |
16191 | # and func_basename. For efficiency, we do not delegate to | |
16192 | # those functions but instead duplicate the functionality here. | |
16193 | func_dirname_and_basename () | |
16194 | { | |
16195 | case ${1} in | |
16196 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16197 | * ) func_dirname_result="${3}" ;; | |
16198 | esac | |
16199 | func_basename_result="${1##*/}" | |
16200 | } | |
16201 | ||
16202 | # func_stripname prefix suffix name | |
16203 | # strip PREFIX and SUFFIX off of NAME. | |
16204 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16205 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16206 | # dot (in which case that matches only a dot). | |
16207 | func_stripname () | |
16208 | { | |
16209 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16210 | # positional parameters, so assign one to ordinary parameter first. | |
16211 | func_stripname_result=${3} | |
16212 | func_stripname_result=${func_stripname_result#"${1}"} | |
16213 | func_stripname_result=${func_stripname_result%"${2}"} | |
16214 | } | |
16215 | ||
16216 | # func_opt_split | |
16217 | func_opt_split () | |
16218 | { | |
16219 | func_opt_split_opt=${1%%=*} | |
16220 | func_opt_split_arg=${1#*=} | |
16221 | } | |
16222 | ||
16223 | # func_lo2o object | |
16224 | func_lo2o () | |
16225 | { | |
16226 | case ${1} in | |
16227 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16228 | *) func_lo2o_result=${1} ;; | |
16229 | esac | |
16230 | } | |
16231 | ||
16232 | # func_xform libobj-or-source | |
16233 | func_xform () | |
16234 | { | |
16235 | func_xform_result=${1%.*}.lo | |
16236 | } | |
16237 | ||
16238 | # func_arith arithmetic-term... | |
16239 | func_arith () | |
16240 | { | |
16241 | func_arith_result=$(( $* )) | |
16242 | } | |
16243 | ||
16244 | # func_len string | |
16245 | # STRING may not start with a hyphen. | |
16246 | func_len () | |
16247 | { | |
16248 | func_len_result=${#1} | |
16249 | } | |
16250 | ||
16251 | _LT_EOF | |
16252 | ;; | |
16253 | *) # Bourne compatible functions. | |
16254 | cat << \_LT_EOF >> "$cfgfile" | |
16255 | ||
16256 | # func_dirname file append nondir_replacement | |
16257 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16258 | # otherwise set result to NONDIR_REPLACEMENT. | |
16259 | func_dirname () | |
16260 | { | |
16261 | # Extract subdirectory from the argument. | |
16262 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
16263 | if test "X$func_dirname_result" = "X${1}"; then | |
16264 | func_dirname_result="${3}" | |
16265 | else | |
16266 | func_dirname_result="$func_dirname_result${2}" | |
16267 | fi | |
16268 | } | |
16269 | ||
16270 | # func_basename file | |
16271 | func_basename () | |
16272 | { | |
16273 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
16274 | } | |
16275 | ||
16276 | ||
16277 | # func_stripname prefix suffix name | |
16278 | # strip PREFIX and SUFFIX off of NAME. | |
16279 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16280 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16281 | # dot (in which case that matches only a dot). | |
16282 | # func_strip_suffix prefix name | |
16283 | func_stripname () | |
16284 | { | |
16285 | case ${2} in | |
16286 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
16287 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
16288 | esac | |
16289 | } | |
16290 | ||
16291 | # sed scripts: | |
16292 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16293 | my_sed_long_arg='1s/^-[^=]*=//' | |
16294 | ||
16295 | # func_opt_split | |
16296 | func_opt_split () | |
16297 | { | |
16298 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
16299 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
16300 | } | |
16301 | ||
16302 | # func_lo2o object | |
16303 | func_lo2o () | |
16304 | { | |
16305 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
16306 | } | |
16307 | ||
16308 | # func_xform libobj-or-source | |
16309 | func_xform () | |
16310 | { | |
16311 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
16312 | } | |
16313 | ||
16314 | # func_arith arithmetic-term... | |
16315 | func_arith () | |
16316 | { | |
16317 | func_arith_result=`expr "$@"` | |
16318 | } | |
16319 | ||
16320 | # func_len string | |
16321 | # STRING may not start with a hyphen. | |
16322 | func_len () | |
16323 | { | |
16324 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16325 | } | |
16326 | ||
16327 | _LT_EOF | |
16328 | esac | |
16329 | ||
16330 | case $lt_shell_append in | |
16331 | yes) | |
16332 | cat << \_LT_EOF >> "$cfgfile" | |
16333 | ||
16334 | # func_append var value | |
16335 | # Append VALUE to the end of shell variable VAR. | |
16336 | func_append () | |
16337 | { | |
16338 | eval "$1+=\$2" | |
16339 | } | |
16340 | _LT_EOF | |
16341 | ;; | |
16342 | *) | |
16343 | cat << \_LT_EOF >> "$cfgfile" | |
16344 | ||
16345 | # func_append var value | |
16346 | # Append VALUE to the end of shell variable VAR. | |
16347 | func_append () | |
16348 | { | |
16349 | eval "$1=\$$1\$2" | |
16350 | } | |
16351 | ||
16352 | _LT_EOF | |
16353 | ;; | |
16354 | esac | |
16355 | ||
16356 | ||
16357 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16358 | || (rm -f "$cfgfile"; exit 1) | |
16359 | ||
16360 | mv -f "$cfgfile" "$ofile" || | |
d7040cdb SE |
16361 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
16362 | chmod +x "$ofile" | |
16363 | ||
13b2be9c | 16364 | ;; |
81ecdfbb | 16365 | "default-1":C) |
20e95c23 DJ |
16366 | for ac_file in $CONFIG_FILES; do |
16367 | # Support "outfile[:infile[:infile...]]" | |
16368 | case "$ac_file" in | |
16369 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16370 | esac | |
16371 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
16372 | case "$ac_file" in */Makefile.in) | |
16373 | # Adjust a relative srcdir. | |
16374 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 16375 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
16376 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
16377 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
16378 | # In autoconf-2.50 it is called $srcdir. | |
16379 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
16380 | case "$ac_given_srcdir" in | |
16381 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
16382 | /*) top_srcdir="$ac_given_srcdir" ;; | |
16383 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16384 | esac | |
16385 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
16386 | rm -f "$ac_dir/POTFILES" | |
16387 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
16388 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
16389 | POMAKEFILEDEPS="POTFILES.in" | |
16390 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
16391 | # on $ac_dir but don't depend on user-specified configuration | |
16392 | # parameters. | |
16393 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
16394 | # The LINGUAS file contains the set of available languages. | |
16395 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 16396 | 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 |
16397 | fi |
16398 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
16399 | # Hide the ALL_LINGUAS assigment from automake. | |
16400 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
16401 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
16402 | else | |
37a42ee9 | 16403 | # The set of available languages was given in configure.ac. |
20e95c23 DJ |
16404 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
16405 | fi | |
16406 | case "$ac_given_srcdir" in | |
16407 | .) srcdirpre= ;; | |
16408 | *) srcdirpre='$(srcdir)/' ;; | |
16409 | esac | |
16410 | POFILES= | |
16411 | GMOFILES= | |
16412 | UPDATEPOFILES= | |
16413 | DUMMYPOFILES= | |
16414 | for lang in $ALL_LINGUAS; do | |
16415 | POFILES="$POFILES $srcdirpre$lang.po" | |
16416 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
16417 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
16418 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
16419 | done | |
16420 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
16421 | # environment variable. | |
16422 | INST_LINGUAS= | |
16423 | if test -n "$ALL_LINGUAS"; then | |
16424 | for presentlang in $ALL_LINGUAS; do | |
16425 | useit=no | |
16426 | if test "%UNSET%" != "$LINGUAS"; then | |
16427 | desiredlanguages="$LINGUAS" | |
16428 | else | |
16429 | desiredlanguages="$ALL_LINGUAS" | |
16430 | fi | |
16431 | for desiredlang in $desiredlanguages; do | |
16432 | # Use the presentlang catalog if desiredlang is | |
16433 | # a. equal to presentlang, or | |
16434 | # b. a variant of presentlang (because in this case, | |
16435 | # presentlang can be used as a fallback for messages | |
16436 | # which are not translated in the desiredlang catalog). | |
16437 | case "$desiredlang" in | |
16438 | "$presentlang"*) useit=yes;; | |
16439 | esac | |
16440 | done | |
16441 | if test $useit = yes; then | |
16442 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
16443 | fi | |
16444 | done | |
16445 | fi | |
16446 | CATALOGS= | |
16447 | if test -n "$INST_LINGUAS"; then | |
16448 | for lang in $INST_LINGUAS; do | |
16449 | CATALOGS="$CATALOGS $lang.gmo" | |
16450 | done | |
16451 | fi | |
16452 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
16453 | 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" | |
16454 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
16455 | if test -f "$f"; then | |
16456 | case "$f" in | |
16457 | *.orig | *.bak | *~) ;; | |
16458 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
16459 | esac | |
16460 | fi | |
16461 | done | |
16462 | fi | |
16463 | ;; | |
16464 | esac | |
16465 | done ;; | |
81ecdfbb | 16466 | "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h |
252b5132 RH |
16467 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h |
16468 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | |
16469 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | |
16470 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | |
16471 | if test "x$cgen_cpu_prefix" != x ; then | |
16472 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | |
20e95c23 | 16473 | fi ;; |
81ecdfbb | 16474 | |
13b2be9c | 16475 | esac |
81ecdfbb | 16476 | done # for ac_tag |
13b2be9c | 16477 | |
13b2be9c | 16478 | |
81ecdfbb | 16479 | as_fn_exit 0 |
13b2be9c | 16480 | _ACEOF |
13b2be9c DJ |
16481 | ac_clean_files=$ac_clean_files_save |
16482 | ||
81ecdfbb | 16483 | test $ac_write_fail = 0 || |
d0ac1c44 | 16484 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 16485 | |
13b2be9c DJ |
16486 | |
16487 | # configure is writing to config.log, and then calls config.status. | |
16488 | # config.status does its own redirection, appending to config.log. | |
16489 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16490 | # by configure, so config.status won't be able to write to it; its | |
16491 | # output is simply discarded. So we exec the FD to /dev/null, | |
16492 | # effectively closing config.log, so it can be properly (re)opened and | |
16493 | # appended to by config.status. When coming back to configure, we | |
16494 | # need to make the FD available again. | |
16495 | if test "$no_create" != yes; then | |
16496 | ac_cs_success=: | |
16497 | ac_config_status_args= | |
16498 | test "$silent" = yes && | |
16499 | ac_config_status_args="$ac_config_status_args --quiet" | |
16500 | exec 5>/dev/null | |
16501 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16502 | exec 5>>config.log | |
16503 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16504 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 16505 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
16506 | fi |
16507 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16508 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16509 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13b2be9c | 16510 | fi |
252b5132 | 16511 | |
d546b610 L |
16512 | |
16513 | ||
16514 | touch config.status.tmp | |
16515 | if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then | |
16516 | sed '/as_fn_exit 0/i \ | |
16517 | sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ | |
16518 | touch --reference=Makefile Makefile.tmp \ | |
16519 | mv Makefile.tmp Makefile \ | |
16520 | ' config.status > config.status.tmp | |
16521 | touch --reference=config.status config.status.tmp | |
16522 | mv config.status.tmp config.status | |
16523 | chmod +x config.status | |
16524 | sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp | |
16525 | touch --reference=Makefile Makefile.tmp | |
16526 | mv Makefile.tmp Makefile | |
16527 | else | |
16528 | rm -f config.status.tmp | |
16529 | fi |