]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
e775d3a9 | 3 | # Generated by GNU Autoconf 2.69 for opcodes 2.42.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 | ## -------------------- ## | |
979273e3 | 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 : | |
979273e3 NN |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
979273e3 NN |
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 | |
979273e3 | 31 | fi |
979273e3 | 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 | } | |
979273e3 NN |
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 | |
979273e3 NN |
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 | |
979273e3 | 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." | |
979273e3 | 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." | |
979273e3 | 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 | |
979273e3 | 426 | |
81ecdfbb RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
979273e3 NN |
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 |
979273e3 NN |
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 | |
979273e3 | 445 | |
81ecdfbb | 446 | as_me=`$as_basename -- "$0" || |
979273e3 NN |
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'` | |
979273e3 | 464 | |
979273e3 NN |
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 | ||
979273e3 | 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 | | |
979273e3 | 482 | sed ' |
81ecdfbb RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
979273e3 | 487 | N |
81ecdfbb RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
979273e3 | 490 | t loop |
81ecdfbb | 491 | s/-\n.*// |
979273e3 | 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; } | |
979273e3 | 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 | |
979273e3 NN |
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" | |
979273e3 NN |
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';; | |
979273e3 NN |
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 | |
979273e3 | 524 | else |
81ecdfbb RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
979273e3 | 527 | fi |
81ecdfbb RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
979273e3 | 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' |
979273e3 | 541 | fi |
979273e3 | 542 | else |
d0ac1c44 | 543 | as_ln_s='cp -pR' |
979273e3 | 544 | fi |
81ecdfbb RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
979273e3 NN |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
979273e3 NN |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
d0ac1c44 SM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
979273e3 NN |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
d7040cdb SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
d7040cdb | 566 | |
d0ac1c44 SM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
81ecdfbb | 569 | |
979273e3 | 570 | # Name of the host. |
d0ac1c44 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
979273e3 NN |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 574 | |
979273e3 NN |
575 | # |
576 | # Initializations. | |
577 | # | |
252b5132 | 578 | ac_default_prefix=/usr/local |
81ecdfbb | 579 | ac_clean_files= |
979273e3 | 580 | ac_config_libobj_dir=. |
81ecdfbb | 581 | LIBOBJS= |
979273e3 NN |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
979273e3 NN |
586 | |
587 | # Identity of this package. | |
2e98a7bd AM |
588 | PACKAGE_NAME='opcodes' |
589 | PACKAGE_TARNAME='opcodes' | |
e775d3a9 NC |
590 | PACKAGE_VERSION='2.42.50' |
591 | PACKAGE_STRING='opcodes 2.42.50' | |
2e98a7bd AM |
592 | PACKAGE_BUGREPORT='' |
593 | PACKAGE_URL='' | |
979273e3 NN |
594 | |
595 | ac_unique_file="z8k-dis.c" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
81ecdfbb | 599 | #ifdef HAVE_SYS_TYPES_H |
979273e3 NN |
600 | # include <sys/types.h> |
601 | #endif | |
81ecdfbb | 602 | #ifdef HAVE_SYS_STAT_H |
979273e3 NN |
603 | # include <sys/stat.h> |
604 | #endif | |
81ecdfbb | 605 | #ifdef STDC_HEADERS |
979273e3 NN |
606 | # include <stdlib.h> |
607 | # include <stddef.h> | |
608 | #else | |
81ecdfbb | 609 | # ifdef HAVE_STDLIB_H |
979273e3 NN |
610 | # include <stdlib.h> |
611 | # endif | |
612 | #endif | |
81ecdfbb RW |
613 | #ifdef HAVE_STRING_H |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
979273e3 NN |
615 | # include <memory.h> |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
81ecdfbb | 619 | #ifdef HAVE_STRINGS_H |
979273e3 NN |
620 | # include <strings.h> |
621 | #endif | |
81ecdfbb | 622 | #ifdef HAVE_INTTYPES_H |
979273e3 | 623 | # include <inttypes.h> |
979273e3 | 624 | #endif |
81ecdfbb RW |
625 | #ifdef HAVE_STDINT_H |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
979273e3 NN |
629 | # include <unistd.h> |
630 | #endif" | |
631 | ||
862776f2 | 632 | gt_needs= |
81ecdfbb RW |
633 | ac_subst_vars='am__EXEEXT_FALSE |
634 | am__EXEEXT_TRUE | |
635 | LTLIBOBJS | |
636 | LIBOBJS | |
637 | BFD_MACHINES | |
638 | archdefs | |
639 | SHARED_DEPENDENCIES | |
640 | SHARED_LIBADD | |
641 | SHARED_LDFLAGS | |
2eee5593 AM |
642 | BUILD_LIB_DEPS |
643 | BUILD_LIBS | |
81ecdfbb RW |
644 | LIBM |
645 | cgendir | |
646 | CGEN_MAINT_FALSE | |
647 | CGEN_MAINT_TRUE | |
648 | HDEFINES | |
1d5269c9 MF |
649 | ENABLE_BFD_64_BIT_FALSE |
650 | ENABLE_BFD_64_BIT_TRUE | |
81ecdfbb RW |
651 | EXEEXT_FOR_BUILD |
652 | CC_FOR_BUILD | |
81ecdfbb RW |
653 | CATOBJEXT |
654 | GENCAT | |
655 | INSTOBJEXT | |
656 | DATADIRNAME | |
657 | CATALOGS | |
81ecdfbb RW |
658 | INCINTL |
659 | LIBINTL_DEP | |
862776f2 AA |
660 | POSUB |
661 | LTLIBINTL | |
81ecdfbb | 662 | LIBINTL |
862776f2 AA |
663 | INTLLIBS |
664 | LTLIBICONV | |
665 | LIBICONV | |
666 | INTL_MACOSX_LIBS | |
667 | MSGMERGE | |
668 | XGETTEXT | |
669 | GMSGFMT | |
670 | MSGFMT | |
81ecdfbb | 671 | USE_NLS |
862776f2 | 672 | MKINSTALLDIRS |
81ecdfbb RW |
673 | bfdincludedir |
674 | bfdlibdir | |
675 | target_noncanonical | |
676 | host_noncanonical | |
677 | INSTALL_LIBBFD_FALSE | |
678 | INSTALL_LIBBFD_TRUE | |
679 | MAINT | |
680 | MAINTAINER_MODE_FALSE | |
681 | MAINTAINER_MODE_TRUE | |
6757cf57 | 682 | WARN_WRITE_STRINGS |
81ecdfbb | 683 | NO_WERROR |
c5da1932 | 684 | WARN_CFLAGS_FOR_BUILD |
81ecdfbb RW |
685 | WARN_CFLAGS |
686 | OTOOL64 | |
687 | OTOOL | |
688 | LIPO | |
689 | NMEDIT | |
690 | DSYMUTIL | |
81ecdfbb RW |
691 | OBJDUMP |
692 | LN_S | |
693 | NM | |
694 | ac_ct_DUMPBIN | |
695 | DUMPBIN | |
696 | LD | |
697 | FGREP | |
698 | SED | |
699 | LIBTOOL | |
700 | RANLIB | |
701 | AR | |
702 | EGREP | |
703 | GREP | |
704 | CPP | |
705 | am__fastdepCC_FALSE | |
706 | am__fastdepCC_TRUE | |
707 | CCDEPMODE | |
6eb7d830 | 708 | am__nodep |
81ecdfbb RW |
709 | AMDEPBACKSLASH |
710 | AMDEP_FALSE | |
711 | AMDEP_TRUE | |
b9583093 | 712 | am__quote |
81ecdfbb RW |
713 | am__include |
714 | DEPDIR | |
ab2af25e AM |
715 | OBJEXT |
716 | EXEEXT | |
717 | ac_ct_CC | |
718 | CPPFLAGS | |
719 | LDFLAGS | |
720 | CFLAGS | |
721 | CC | |
722 | AM_BACKSLASH | |
723 | AM_DEFAULT_VERBOSITY | |
724 | AM_DEFAULT_V | |
725 | AM_V | |
81ecdfbb RW |
726 | am__untar |
727 | am__tar | |
728 | AMTAR | |
729 | am__leading_dot | |
730 | SET_MAKE | |
731 | AWK | |
732 | mkdir_p | |
733 | MKDIR_P | |
734 | INSTALL_STRIP_PROGRAM | |
735 | STRIP | |
736 | install_sh | |
737 | MAKEINFO | |
738 | AUTOHEADER | |
739 | AUTOMAKE | |
740 | AUTOCONF | |
741 | ACLOCAL | |
742 | VERSION | |
743 | PACKAGE | |
744 | CYGPATH_W | |
745 | am__isrc | |
746 | INSTALL_DATA | |
747 | INSTALL_SCRIPT | |
748 | INSTALL_PROGRAM | |
81ecdfbb RW |
749 | target_os |
750 | target_vendor | |
751 | target_cpu | |
752 | target | |
753 | host_os | |
754 | host_vendor | |
755 | host_cpu | |
756 | host | |
757 | build_os | |
758 | build_vendor | |
759 | build_cpu | |
760 | build | |
761 | target_alias | |
762 | host_alias | |
763 | build_alias | |
764 | LIBS | |
765 | ECHO_T | |
766 | ECHO_N | |
767 | ECHO_C | |
768 | DEFS | |
769 | mandir | |
770 | localedir | |
771 | libdir | |
772 | psdir | |
773 | pdfdir | |
774 | dvidir | |
775 | htmldir | |
776 | infodir | |
777 | docdir | |
778 | oldincludedir | |
779 | includedir | |
780 | localstatedir | |
781 | sharedstatedir | |
782 | sysconfdir | |
783 | datadir | |
784 | datarootdir | |
785 | libexecdir | |
786 | sbindir | |
787 | bindir | |
788 | program_transform_name | |
789 | prefix | |
790 | exec_prefix | |
791 | PACKAGE_URL | |
792 | PACKAGE_BUGREPORT | |
793 | PACKAGE_STRING | |
794 | PACKAGE_VERSION | |
795 | PACKAGE_TARNAME | |
796 | PACKAGE_NAME | |
797 | PATH_SEPARATOR | |
b9583093 | 798 | SHELL' |
979273e3 | 799 | ac_subst_files='' |
81ecdfbb RW |
800 | ac_user_opts=' |
801 | enable_option_checking | |
d0ac1c44 | 802 | enable_silent_rules |
ab2af25e | 803 | enable_dependency_tracking |
81ecdfbb RW |
804 | enable_shared |
805 | enable_static | |
806 | with_pic | |
807 | enable_fast_install | |
808 | with_gnu_ld | |
809 | enable_libtool_lock | |
43e05cd4 | 810 | enable_checking |
81ecdfbb RW |
811 | enable_targets |
812 | enable_werror | |
813 | enable_build_warnings | |
814 | enable_maintainer_mode | |
815 | enable_install_libbfd | |
816 | enable_nls | |
862776f2 AA |
817 | enable_rpath |
818 | with_libiconv_prefix | |
819 | with_libiconv_type | |
820 | with_libintl_prefix | |
821 | with_libintl_type | |
1d5269c9 | 822 | enable_64_bit_bfd |
81ecdfbb RW |
823 | enable_cgen_maint |
824 | ' | |
825 | ac_precious_vars='build_alias | |
826 | host_alias | |
827 | target_alias | |
828 | CC | |
829 | CFLAGS | |
830 | LDFLAGS | |
831 | LIBS | |
832 | CPPFLAGS | |
833 | CPP' | |
834 | ||
252b5132 RH |
835 | |
836 | # Initialize some variables set by options. | |
979273e3 NN |
837 | ac_init_help= |
838 | ac_init_version=false | |
81ecdfbb RW |
839 | ac_unrecognized_opts= |
840 | ac_unrecognized_sep= | |
252b5132 RH |
841 | # The variables have the same names as the options, with |
842 | # dashes changed to underlines. | |
979273e3 | 843 | cache_file=/dev/null |
252b5132 | 844 | exec_prefix=NONE |
252b5132 | 845 | no_create= |
252b5132 RH |
846 | no_recursion= |
847 | prefix=NONE | |
848 | program_prefix=NONE | |
849 | program_suffix=NONE | |
850 | program_transform_name=s,x,x, | |
851 | silent= | |
852 | site= | |
853 | srcdir= | |
252b5132 RH |
854 | verbose= |
855 | x_includes=NONE | |
856 | x_libraries=NONE | |
979273e3 NN |
857 | |
858 | # Installation directory options. | |
859 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
860 | # and all the variables that are supposed to be based on exec_prefix | |
861 | # by default will actually change. | |
862 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 863 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
864 | bindir='${exec_prefix}/bin' |
865 | sbindir='${exec_prefix}/sbin' | |
866 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
867 | datarootdir='${prefix}/share' |
868 | datadir='${datarootdir}' | |
252b5132 RH |
869 | sysconfdir='${prefix}/etc' |
870 | sharedstatedir='${prefix}/com' | |
871 | localstatedir='${prefix}/var' | |
252b5132 RH |
872 | includedir='${prefix}/include' |
873 | oldincludedir='/usr/include' | |
2e98a7bd | 874 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
875 | infodir='${datarootdir}/info' |
876 | htmldir='${docdir}' | |
877 | dvidir='${docdir}' | |
878 | pdfdir='${docdir}' | |
879 | psdir='${docdir}' | |
880 | libdir='${exec_prefix}/lib' | |
881 | localedir='${datarootdir}/locale' | |
882 | mandir='${datarootdir}/man' | |
252b5132 | 883 | |
252b5132 | 884 | ac_prev= |
81ecdfbb | 885 | ac_dashdash= |
252b5132 RH |
886 | for ac_option |
887 | do | |
252b5132 RH |
888 | # If the previous option needs an argument, assign it. |
889 | if test -n "$ac_prev"; then | |
81ecdfbb | 890 | eval $ac_prev=\$ac_option |
252b5132 RH |
891 | ac_prev= |
892 | continue | |
893 | fi | |
894 | ||
81ecdfbb | 895 | case $ac_option in |
d0ac1c44 SM |
896 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
897 | *=) ac_optarg= ;; | |
898 | *) ac_optarg=yes ;; | |
81ecdfbb | 899 | esac |
252b5132 RH |
900 | |
901 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
902 | ||
81ecdfbb RW |
903 | case $ac_dashdash$ac_option in |
904 | --) | |
905 | ac_dashdash=yes ;; | |
252b5132 RH |
906 | |
907 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
908 | ac_prev=bindir ;; | |
909 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
979273e3 | 910 | bindir=$ac_optarg ;; |
252b5132 RH |
911 | |
912 | -build | --build | --buil | --bui | --bu) | |
979273e3 | 913 | ac_prev=build_alias ;; |
252b5132 | 914 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
979273e3 | 915 | build_alias=$ac_optarg ;; |
252b5132 RH |
916 | |
917 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
918 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
919 | ac_prev=cache_file ;; | |
920 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
921 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
979273e3 NN |
922 | cache_file=$ac_optarg ;; |
923 | ||
924 | --config-cache | -C) | |
925 | cache_file=config.cache ;; | |
252b5132 | 926 | |
81ecdfbb | 927 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 928 | ac_prev=datadir ;; |
81ecdfbb | 929 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
979273e3 | 930 | datadir=$ac_optarg ;; |
252b5132 | 931 | |
81ecdfbb RW |
932 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
933 | | --dataroo | --dataro | --datar) | |
934 | ac_prev=datarootdir ;; | |
935 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
936 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
937 | datarootdir=$ac_optarg ;; | |
938 | ||
252b5132 | 939 | -disable-* | --disable-*) |
81ecdfbb | 940 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 941 | # Reject names that are not valid shell variable names. |
81ecdfbb | 942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 943 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
944 | ac_useropt_orig=$ac_useropt |
945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
946 | case $ac_user_opts in | |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
952 | esac | |
953 | eval enable_$ac_useropt=no ;; | |
954 | ||
955 | -docdir | --docdir | --docdi | --doc | --do) | |
956 | ac_prev=docdir ;; | |
957 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
958 | docdir=$ac_optarg ;; | |
959 | ||
960 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
961 | ac_prev=dvidir ;; | |
962 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
963 | dvidir=$ac_optarg ;; | |
252b5132 RH |
964 | |
965 | -enable-* | --enable-*) | |
81ecdfbb | 966 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 967 | # Reject names that are not valid shell variable names. |
81ecdfbb | 968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 969 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
970 | ac_useropt_orig=$ac_useropt |
971 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
972 | case $ac_user_opts in | |
973 | *" | |
974 | "enable_$ac_useropt" | |
975 | "*) ;; | |
976 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
977 | ac_unrecognized_sep=', ';; | |
252b5132 | 978 | esac |
81ecdfbb | 979 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
980 | |
981 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
982 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
983 | | --exec | --exe | --ex) | |
984 | ac_prev=exec_prefix ;; | |
985 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
986 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
987 | | --exec=* | --exe=* | --ex=*) | |
979273e3 | 988 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
989 | |
990 | -gas | --gas | --ga | --g) | |
991 | # Obsolete; use --with-gas. | |
992 | with_gas=yes ;; | |
993 | ||
979273e3 NN |
994 | -help | --help | --hel | --he | -h) |
995 | ac_init_help=long ;; | |
996 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
997 | ac_init_help=recursive ;; | |
998 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
999 | ac_init_help=short ;; | |
252b5132 RH |
1000 | |
1001 | -host | --host | --hos | --ho) | |
979273e3 | 1002 | ac_prev=host_alias ;; |
252b5132 | 1003 | -host=* | --host=* | --hos=* | --ho=*) |
979273e3 | 1004 | host_alias=$ac_optarg ;; |
252b5132 | 1005 | |
81ecdfbb RW |
1006 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1007 | ac_prev=htmldir ;; | |
1008 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1009 | | --ht=*) | |
1010 | htmldir=$ac_optarg ;; | |
1011 | ||
252b5132 RH |
1012 | -includedir | --includedir | --includedi | --included | --include \ |
1013 | | --includ | --inclu | --incl | --inc) | |
1014 | ac_prev=includedir ;; | |
1015 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1016 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
979273e3 | 1017 | includedir=$ac_optarg ;; |
252b5132 RH |
1018 | |
1019 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1020 | ac_prev=infodir ;; | |
1021 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
979273e3 | 1022 | infodir=$ac_optarg ;; |
252b5132 RH |
1023 | |
1024 | -libdir | --libdir | --libdi | --libd) | |
1025 | ac_prev=libdir ;; | |
1026 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
979273e3 | 1027 | libdir=$ac_optarg ;; |
252b5132 RH |
1028 | |
1029 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1030 | | --libexe | --libex | --libe) | |
1031 | ac_prev=libexecdir ;; | |
1032 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1033 | | --libexe=* | --libex=* | --libe=*) | |
979273e3 | 1034 | libexecdir=$ac_optarg ;; |
252b5132 | 1035 | |
81ecdfbb RW |
1036 | -localedir | --localedir | --localedi | --localed | --locale) |
1037 | ac_prev=localedir ;; | |
1038 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1039 | localedir=$ac_optarg ;; | |
1040 | ||
252b5132 | 1041 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1042 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1043 | ac_prev=localstatedir ;; |
1044 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1045 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
979273e3 | 1046 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1047 | |
1048 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1049 | ac_prev=mandir ;; | |
1050 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
979273e3 | 1051 | mandir=$ac_optarg ;; |
252b5132 RH |
1052 | |
1053 | -nfp | --nfp | --nf) | |
1054 | # Obsolete; use --without-fp. | |
1055 | with_fp=no ;; | |
1056 | ||
1057 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
979273e3 | 1058 | | --no-cr | --no-c | -n) |
252b5132 RH |
1059 | no_create=yes ;; |
1060 | ||
1061 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1062 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1063 | no_recursion=yes ;; | |
1064 | ||
1065 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1066 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1067 | | --oldin | --oldi | --old | --ol | --o) | |
1068 | ac_prev=oldincludedir ;; | |
1069 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1070 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1071 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
979273e3 | 1072 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1073 | |
1074 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1075 | ac_prev=prefix ;; | |
1076 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
979273e3 | 1077 | prefix=$ac_optarg ;; |
252b5132 RH |
1078 | |
1079 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1080 | | --program-pre | --program-pr | --program-p) | |
1081 | ac_prev=program_prefix ;; | |
1082 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1083 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
979273e3 | 1084 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1085 | |
1086 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1087 | | --program-suf | --program-su | --program-s) | |
1088 | ac_prev=program_suffix ;; | |
1089 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1090 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
979273e3 | 1091 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1092 | |
1093 | -program-transform-name | --program-transform-name \ | |
1094 | | --program-transform-nam | --program-transform-na \ | |
1095 | | --program-transform-n | --program-transform- \ | |
1096 | | --program-transform | --program-transfor \ | |
1097 | | --program-transfo | --program-transf \ | |
1098 | | --program-trans | --program-tran \ | |
1099 | | --progr-tra | --program-tr | --program-t) | |
1100 | ac_prev=program_transform_name ;; | |
1101 | -program-transform-name=* | --program-transform-name=* \ | |
1102 | | --program-transform-nam=* | --program-transform-na=* \ | |
1103 | | --program-transform-n=* | --program-transform-=* \ | |
1104 | | --program-transform=* | --program-transfor=* \ | |
1105 | | --program-transfo=* | --program-transf=* \ | |
1106 | | --program-trans=* | --program-tran=* \ | |
1107 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
979273e3 | 1108 | program_transform_name=$ac_optarg ;; |
252b5132 | 1109 | |
81ecdfbb RW |
1110 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1111 | ac_prev=pdfdir ;; | |
1112 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1113 | pdfdir=$ac_optarg ;; | |
1114 | ||
1115 | -psdir | --psdir | --psdi | --psd | --ps) | |
1116 | ac_prev=psdir ;; | |
1117 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1118 | psdir=$ac_optarg ;; | |
1119 | ||
252b5132 RH |
1120 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1121 | | -silent | --silent | --silen | --sile | --sil) | |
1122 | silent=yes ;; | |
1123 | ||
1124 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1125 | ac_prev=sbindir ;; | |
1126 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1127 | | --sbi=* | --sb=*) | |
979273e3 | 1128 | sbindir=$ac_optarg ;; |
252b5132 RH |
1129 | |
1130 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1131 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1132 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1133 | | --sha | --sh) | |
1134 | ac_prev=sharedstatedir ;; | |
1135 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1136 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1137 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1138 | | --sha=* | --sh=*) | |
979273e3 | 1139 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1140 | |
1141 | -site | --site | --sit) | |
1142 | ac_prev=site ;; | |
1143 | -site=* | --site=* | --sit=*) | |
979273e3 | 1144 | site=$ac_optarg ;; |
1fe1f39c | 1145 | |
252b5132 RH |
1146 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1147 | ac_prev=srcdir ;; | |
1148 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
979273e3 | 1149 | srcdir=$ac_optarg ;; |
252b5132 RH |
1150 | |
1151 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1152 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1153 | ac_prev=sysconfdir ;; | |
1154 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1155 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
979273e3 | 1156 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1157 | |
1158 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
979273e3 | 1159 | ac_prev=target_alias ;; |
252b5132 | 1160 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
979273e3 | 1161 | target_alias=$ac_optarg ;; |
252b5132 RH |
1162 | |
1163 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1164 | verbose=yes ;; | |
1165 | ||
979273e3 NN |
1166 | -version | --version | --versio | --versi | --vers | -V) |
1167 | ac_init_version=: ;; | |
252b5132 RH |
1168 | |
1169 | -with-* | --with-*) | |
81ecdfbb | 1170 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1171 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1173 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1174 | ac_useropt_orig=$ac_useropt |
1175 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1176 | case $ac_user_opts in | |
1177 | *" | |
1178 | "with_$ac_useropt" | |
1179 | "*) ;; | |
1180 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1181 | ac_unrecognized_sep=', ';; | |
252b5132 | 1182 | esac |
81ecdfbb | 1183 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1184 | |
1185 | -without-* | --without-*) | |
81ecdfbb | 1186 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1187 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1188 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1189 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1190 | ac_useropt_orig=$ac_useropt |
1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1192 | case $ac_user_opts in | |
1193 | *" | |
1194 | "with_$ac_useropt" | |
1195 | "*) ;; | |
1196 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1197 | ac_unrecognized_sep=', ';; | |
1198 | esac | |
1199 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1200 | |
1201 | --x) | |
1202 | # Obsolete; use --with-x. | |
1203 | with_x=yes ;; | |
1204 | ||
1205 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1206 | | --x-incl | --x-inc | --x-in | --x-i) | |
1207 | ac_prev=x_includes ;; | |
1208 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1209 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
979273e3 | 1210 | x_includes=$ac_optarg ;; |
252b5132 RH |
1211 | |
1212 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1213 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1214 | ac_prev=x_libraries ;; | |
1215 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1216 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
979273e3 | 1217 | x_libraries=$ac_optarg ;; |
252b5132 | 1218 | |
d0ac1c44 SM |
1219 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1220 | Try \`$0 --help' for more information" | |
252b5132 RH |
1221 | ;; |
1222 | ||
979273e3 NN |
1223 | *=*) |
1224 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1225 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1226 | case $ac_envvar in #( |
1227 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1228 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1229 | esac |
1230 | eval $ac_envvar=\$ac_optarg | |
979273e3 NN |
1231 | export $ac_envvar ;; |
1232 | ||
252b5132 | 1233 | *) |
979273e3 | 1234 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1235 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
979273e3 | 1236 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1237 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1238 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
252b5132 RH |
1239 | ;; |
1240 | ||
1241 | esac | |
1242 | done | |
1243 | ||
1244 | if test -n "$ac_prev"; then | |
979273e3 | 1245 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1246 | as_fn_error $? "missing argument to $ac_option" |
252b5132 | 1247 | fi |
252b5132 | 1248 | |
81ecdfbb RW |
1249 | if test -n "$ac_unrecognized_opts"; then |
1250 | case $enable_option_checking in | |
1251 | no) ;; | |
d0ac1c44 | 1252 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1253 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
979273e3 | 1254 | esac |
81ecdfbb | 1255 | fi |
252b5132 | 1256 | |
81ecdfbb RW |
1257 | # Check all directory arguments for consistency. |
1258 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1259 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1260 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
31b0378d | 1261 | libdir localedir mandir |
252b5132 | 1262 | do |
81ecdfbb RW |
1263 | eval ac_val=\$$ac_var |
1264 | # Remove trailing slashes. | |
1265 | case $ac_val in | |
1266 | */ ) | |
1267 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1268 | eval $ac_var=\$ac_val;; | |
1269 | esac | |
1270 | # Be sure to have absolute directory names. | |
979273e3 | 1271 | case $ac_val in |
81ecdfbb RW |
1272 | [\\/$]* | ?:[\\/]* ) continue;; |
1273 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1274 | esac |
d0ac1c44 | 1275 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1276 | done |
1277 | ||
979273e3 NN |
1278 | # There might be people who depend on the old broken behavior: `$host' |
1279 | # used to hold the argument of --host etc. | |
1280 | # FIXME: To remove some day. | |
1281 | build=$build_alias | |
1282 | host=$host_alias | |
1283 | target=$target_alias | |
1284 | ||
1285 | # FIXME: To remove some day. | |
1286 | if test "x$host_alias" != x; then | |
1287 | if test "x$build_alias" = x; then | |
1288 | cross_compiling=maybe | |
979273e3 NN |
1289 | elif test "x$build_alias" != "x$host_alias"; then |
1290 | cross_compiling=yes | |
1291 | fi | |
1292 | fi | |
252b5132 | 1293 | |
979273e3 NN |
1294 | ac_tool_prefix= |
1295 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1296 | ||
1297 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1298 | |
252b5132 | 1299 | |
81ecdfbb RW |
1300 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1301 | ac_ls_di=`ls -di .` && | |
1302 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1303 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1304 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1305 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1306 | |
1307 | ||
252b5132 RH |
1308 | # Find the source files, if location was not specified. |
1309 | if test -z "$srcdir"; then | |
1310 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1311 | # Try the directory containing this script, then the parent directory. |
1312 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1313 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1314 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1315 | X"$as_myself" : 'X\(//\)$' \| \ | |
1316 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1317 | $as_echo X"$as_myself" | | |
1318 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1319 | s//\1/ | |
1320 | q | |
1321 | } | |
1322 | /^X\(\/\/\)[^/].*/{ | |
1323 | s//\1/ | |
1324 | q | |
1325 | } | |
1326 | /^X\(\/\/\)$/{ | |
1327 | s//\1/ | |
1328 | q | |
1329 | } | |
1330 | /^X\(\/\).*/{ | |
1331 | s//\1/ | |
1332 | q | |
1333 | } | |
1334 | s/.*/./; q'` | |
252b5132 | 1335 | srcdir=$ac_confdir |
81ecdfbb | 1336 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1337 | srcdir=.. |
1338 | fi | |
1339 | else | |
1340 | ac_srcdir_defaulted=no | |
1341 | fi | |
81ecdfbb RW |
1342 | if test ! -r "$srcdir/$ac_unique_file"; then |
1343 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1344 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1345 | fi |
1346 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1347 | ac_abs_confdir=`( | |
d0ac1c44 | 1348 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1349 | pwd)` |
1350 | # When building in place, set srcdir=. | |
1351 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1352 | srcdir=. | |
1353 | fi | |
1354 | # Remove unnecessary trailing slashes from srcdir. | |
1355 | # Double slashes in file names in object file debugging info | |
1356 | # mess up M-x gdb in Emacs. | |
1357 | case $srcdir in | |
1358 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1359 | esac | |
1360 | for ac_var in $ac_precious_vars; do | |
1361 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1362 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1363 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1364 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1365 | done | |
252b5132 | 1366 | |
979273e3 NN |
1367 | # |
1368 | # Report the --help message. | |
1369 | # | |
1370 | if test "$ac_init_help" = "long"; then | |
1371 | # Omit some internal or obsolete options to make the list less imposing. | |
1372 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1373 | cat <<_ACEOF | |
e775d3a9 | 1374 | \`configure' configures opcodes 2.42.50 to adapt to many kinds of systems. |
252b5132 | 1375 | |
979273e3 | 1376 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1377 | |
979273e3 NN |
1378 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1379 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1380 | |
979273e3 | 1381 | Defaults for the options are specified in brackets. |
ac48eca1 | 1382 | |
979273e3 NN |
1383 | Configuration: |
1384 | -h, --help display this help and exit | |
1385 | --help=short display options specific to this package | |
1386 | --help=recursive display the short help of all the included packages | |
1387 | -V, --version display version information and exit | |
d0ac1c44 | 1388 | -q, --quiet, --silent do not print \`checking ...' messages |
979273e3 NN |
1389 | --cache-file=FILE cache test results in FILE [disabled] |
1390 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1391 | -n, --no-create do not create output files | |
1392 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1393 | ||
979273e3 NN |
1394 | Installation directories: |
1395 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1396 | [$ac_default_prefix] |
979273e3 | 1397 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1398 | [PREFIX] |
ac48eca1 | 1399 | |
979273e3 NN |
1400 | By default, \`make install' will install all the files in |
1401 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1402 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1403 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1404 | |
979273e3 | 1405 | For better control, use the options below. |
ac48eca1 | 1406 | |
979273e3 | 1407 | Fine tuning of the installation directories: |
81ecdfbb RW |
1408 | --bindir=DIR user executables [EPREFIX/bin] |
1409 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1410 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1411 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1412 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1413 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1414 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1415 | --includedir=DIR C header files [PREFIX/include] | |
1416 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1417 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1418 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1419 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1420 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1421 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1422 | --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes] |
81ecdfbb RW |
1423 | --htmldir=DIR html documentation [DOCDIR] |
1424 | --dvidir=DIR dvi documentation [DOCDIR] | |
1425 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1426 | --psdir=DIR ps documentation [DOCDIR] | |
979273e3 | 1427 | _ACEOF |
ac48eca1 | 1428 | |
979273e3 | 1429 | cat <<\_ACEOF |
252b5132 | 1430 | |
979273e3 NN |
1431 | Program names: |
1432 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1433 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1434 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1435 | |
979273e3 NN |
1436 | System types: |
1437 | --build=BUILD configure for building on BUILD [guessed] | |
1438 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1439 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1440 | _ACEOF | |
252b5132 | 1441 | fi |
252b5132 | 1442 | |
979273e3 | 1443 | if test -n "$ac_init_help"; then |
2e98a7bd | 1444 | case $ac_init_help in |
e775d3a9 | 1445 | short | recursive ) echo "Configuration of opcodes 2.42.50:";; |
2e98a7bd | 1446 | esac |
979273e3 | 1447 | cat <<\_ACEOF |
252b5132 | 1448 | |
979273e3 | 1449 | Optional Features: |
81ecdfbb | 1450 | --disable-option-checking ignore unrecognized --enable/--with options |
979273e3 NN |
1451 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1452 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ab2af25e AM |
1453 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1454 | --disable-silent-rules verbose build output (undo: "make V=0") | |
d0ac1c44 SM |
1455 | --enable-dependency-tracking |
1456 | do not reject slow dependency extractors | |
1457 | --disable-dependency-tracking | |
1458 | speeds up one-time build | |
81ecdfbb RW |
1459 | --enable-shared[=PKGS] build shared libraries [default=no] |
1460 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1461 | --enable-fast-install[=PKGS] |
1462 | optimize for fast installation [default=yes] | |
979273e3 | 1463 | --disable-libtool-lock avoid locking (might break parallel builds) |
43e05cd4 | 1464 | --enable-checking enable run-time checks |
979273e3 | 1465 | --enable-targets alternative target configurations |
241a6c40 AM |
1466 | --enable-werror treat compile warnings as errors |
1467 | --enable-build-warnings enable build-time compiler warnings | |
d0ac1c44 SM |
1468 | --enable-maintainer-mode |
1469 | enable make rules and dependencies not useful (and | |
1470 | sometimes confusing) to the casual installer | |
979273e3 NN |
1471 | --enable-install-libbfd controls installation of libbfd and related headers |
1472 | --disable-nls do not use Native Language Support | |
862776f2 | 1473 | --disable-rpath do not hardcode runtime library paths |
1d5269c9 | 1474 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) |
979273e3 NN |
1475 | --enable-cgen-maint=dir build cgen generated files |
1476 | ||
1477 | Optional Packages: | |
1478 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1479 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1480 | --with-pic try to use only PIC/non-PIC objects [default=use |
1481 | both] | |
1482 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
862776f2 AA |
1483 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1484 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1485 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1486 | --with-libiconv-type=TYPE type of library to search for (auto/static/shared) | |
1487 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1488 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
1489 | --with-libintl-type=TYPE type of library to search for (auto/static/shared) | |
252b5132 | 1490 | |
979273e3 NN |
1491 | Some influential environment variables: |
1492 | CC C compiler command | |
1493 | CFLAGS C compiler flags | |
1494 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1495 | nonstandard directory <lib dir> | |
81ecdfbb | 1496 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1497 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1498 | you have headers in a nonstandard directory <include dir> |
979273e3 | 1499 | CPP C preprocessor |
a2d91340 | 1500 | |
979273e3 NN |
1501 | Use these variables to override the choices made by `configure' or to help |
1502 | it to find libraries and programs with nonstandard names/locations. | |
1503 | ||
81ecdfbb | 1504 | Report bugs to the package provider. |
979273e3 | 1505 | _ACEOF |
81ecdfbb | 1506 | ac_status=$? |
a2d91340 AC |
1507 | fi |
1508 | ||
979273e3 NN |
1509 | if test "$ac_init_help" = "recursive"; then |
1510 | # If there are subdirs, report their specific --help. | |
979273e3 | 1511 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1512 | test -d "$ac_dir" || |
1513 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1514 | continue | |
979273e3 NN |
1515 | ac_builddir=. |
1516 | ||
81ecdfbb RW |
1517 | case "$ac_dir" in |
1518 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1519 | *) | |
1520 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1521 | # A ".." for each directory in $ac_dir_suffix. | |
1522 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1523 | case $ac_top_builddir_sub in | |
1524 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1525 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1526 | esac ;; | |
1527 | esac | |
1528 | ac_abs_top_builddir=$ac_pwd | |
1529 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1530 | # for backward compatibility: | |
1531 | ac_top_builddir=$ac_top_build_prefix | |
a2d91340 | 1532 | |
979273e3 | 1533 | case $srcdir in |
81ecdfbb | 1534 | .) # We are building in place. |
979273e3 | 1535 | ac_srcdir=. |
81ecdfbb RW |
1536 | ac_top_srcdir=$ac_top_builddir_sub |
1537 | ac_abs_top_srcdir=$ac_pwd ;; | |
1538 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
979273e3 | 1539 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1540 | ac_top_srcdir=$srcdir |
1541 | ac_abs_top_srcdir=$srcdir ;; | |
1542 | *) # Relative name. | |
1543 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1544 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1545 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a2d91340 | 1546 | esac |
81ecdfbb RW |
1547 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1548 | ||
1549 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1550 | # Check for guested configure. | |
1551 | if test -f "$ac_srcdir/configure.gnu"; then | |
1552 | echo && | |
1553 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1554 | elif test -f "$ac_srcdir/configure"; then | |
1555 | echo && | |
1556 | $SHELL "$ac_srcdir/configure" --help=recursive | |
979273e3 | 1557 | else |
81ecdfbb RW |
1558 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1559 | fi || ac_status=$? | |
1560 | cd "$ac_pwd" || { ac_status=$?; break; } | |
979273e3 NN |
1561 | done |
1562 | fi | |
a2d91340 | 1563 | |
81ecdfbb | 1564 | test -n "$ac_init_help" && exit $ac_status |
979273e3 NN |
1565 | if $ac_init_version; then |
1566 | cat <<\_ACEOF | |
e775d3a9 | 1567 | opcodes configure 2.42.50 |
d0ac1c44 | 1568 | generated by GNU Autoconf 2.69 |
252b5132 | 1569 | |
d0ac1c44 | 1570 | Copyright (C) 2012 Free Software Foundation, Inc. |
979273e3 NN |
1571 | This configure script is free software; the Free Software Foundation |
1572 | gives unlimited permission to copy, distribute and modify it. | |
1573 | _ACEOF | |
81ecdfbb | 1574 | exit |
979273e3 | 1575 | fi |
2c73f9d8 | 1576 | |
81ecdfbb RW |
1577 | ## ------------------------ ## |
1578 | ## Autoconf initialization. ## | |
1579 | ## ------------------------ ## | |
252b5132 | 1580 | |
81ecdfbb RW |
1581 | # ac_fn_c_try_compile LINENO |
1582 | # -------------------------- | |
1583 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1584 | ac_fn_c_try_compile () | |
1585 | { | |
1586 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1587 | rm -f conftest.$ac_objext | |
1588 | if { { ac_try="$ac_compile" | |
1589 | case "(($ac_try" in | |
1590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1591 | *) ac_try_echo=$ac_try;; | |
1592 | esac | |
1593 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1594 | $as_echo "$ac_try_echo"; } >&5 | |
1595 | (eval "$ac_compile") 2>conftest.err | |
1596 | ac_status=$? | |
1597 | if test -s conftest.err; then | |
1598 | grep -v '^ *+' conftest.err >conftest.er1 | |
1599 | cat conftest.er1 >&5 | |
1600 | mv -f conftest.er1 conftest.err | |
1601 | fi | |
1602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1603 | test $ac_status = 0; } && { | |
1604 | test -z "$ac_c_werror_flag" || | |
1605 | test ! -s conftest.err | |
1606 | } && test -s conftest.$ac_objext; then : | |
1607 | ac_retval=0 | |
1608 | else | |
1609 | $as_echo "$as_me: failed program was:" >&5 | |
1610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 1611 | |
81ecdfbb RW |
1612 | ac_retval=1 |
1613 | fi | |
d0ac1c44 SM |
1614 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1615 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1616 | |
1617 | } # ac_fn_c_try_compile | |
1618 | ||
81ecdfbb RW |
1619 | # ac_fn_c_try_cpp LINENO |
1620 | # ---------------------- | |
1621 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1622 | ac_fn_c_try_cpp () | |
1623 | { | |
1624 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1625 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1626 | case "(($ac_try" in | |
1627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1628 | *) ac_try_echo=$ac_try;; | |
1629 | esac | |
1630 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1631 | $as_echo "$ac_try_echo"; } >&5 | |
1632 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1633 | ac_status=$? | |
1634 | if test -s conftest.err; then | |
1635 | grep -v '^ *+' conftest.err >conftest.er1 | |
1636 | cat conftest.er1 >&5 | |
1637 | mv -f conftest.er1 conftest.err | |
1638 | fi | |
1639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1640 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1641 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1642 | test ! -s conftest.err | |
1643 | }; then : | |
1644 | ac_retval=0 | |
1645 | else | |
1646 | $as_echo "$as_me: failed program was:" >&5 | |
1647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1648 | ||
1649 | ac_retval=1 | |
1650 | fi | |
d0ac1c44 SM |
1651 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1652 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1653 | |
1654 | } # ac_fn_c_try_cpp | |
1655 | ||
1656 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1657 | # ------------------------------------------------------- | |
1658 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1659 | # the include files in INCLUDES and setting the cache variable VAR | |
1660 | # accordingly. | |
1661 | ac_fn_c_check_header_mongrel () | |
1662 | { | |
1663 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1664 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1666 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1667 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1668 | $as_echo_n "(cached) " >&6 |
1669 | fi | |
1670 | eval ac_res=\$$3 | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1672 | $as_echo "$ac_res" >&6; } | |
1673 | else | |
1674 | # Is the header compilable? | |
1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1676 | $as_echo_n "checking $2 usability... " >&6; } | |
1677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1678 | /* end confdefs.h. */ | |
1679 | $4 | |
1680 | #include <$2> | |
1681 | _ACEOF | |
1682 | if ac_fn_c_try_compile "$LINENO"; then : | |
1683 | ac_header_compiler=yes | |
1684 | else | |
1685 | ac_header_compiler=no | |
1686 | fi | |
1687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1689 | $as_echo "$ac_header_compiler" >&6; } | |
1690 | ||
1691 | # Is the header present? | |
1692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1693 | $as_echo_n "checking $2 presence... " >&6; } | |
1694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1695 | /* end confdefs.h. */ | |
1696 | #include <$2> | |
1697 | _ACEOF | |
1698 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1699 | ac_header_preproc=yes | |
1700 | else | |
1701 | ac_header_preproc=no | |
1702 | fi | |
d0ac1c44 | 1703 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1705 | $as_echo "$ac_header_preproc" >&6; } | |
1706 | ||
1707 | # So? What about this header? | |
1708 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1709 | yes:no: ) | |
1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1711 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1713 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1714 | ;; | |
1715 | no:yes:* ) | |
1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1717 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1719 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1721 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1723 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 | esac | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1729 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1730 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1731 | $as_echo_n "(cached) " >&6 |
1732 | else | |
1733 | eval "$3=\$ac_header_compiler" | |
1734 | fi | |
1735 | eval ac_res=\$$3 | |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1737 | $as_echo "$ac_res" >&6; } | |
1738 | fi | |
d0ac1c44 | 1739 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1740 | |
1741 | } # ac_fn_c_check_header_mongrel | |
1742 | ||
1743 | # ac_fn_c_try_run LINENO | |
1744 | # ---------------------- | |
1745 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1746 | # that executables *can* be run. | |
1747 | ac_fn_c_try_run () | |
1748 | { | |
1749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1750 | if { { ac_try="$ac_link" | |
1751 | case "(($ac_try" in | |
1752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1753 | *) ac_try_echo=$ac_try;; | |
1754 | esac | |
1755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1756 | $as_echo "$ac_try_echo"; } >&5 | |
1757 | (eval "$ac_link") 2>&5 | |
1758 | ac_status=$? | |
1759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1760 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1761 | { { case "(($ac_try" in | |
1762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1763 | *) ac_try_echo=$ac_try;; | |
1764 | esac | |
1765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1766 | $as_echo "$ac_try_echo"; } >&5 | |
1767 | (eval "$ac_try") 2>&5 | |
1768 | ac_status=$? | |
1769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1770 | test $ac_status = 0; }; }; then : | |
1771 | ac_retval=0 | |
1772 | else | |
1773 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1774 | $as_echo "$as_me: failed program was:" >&5 | |
1775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1776 | ||
1777 | ac_retval=$ac_status | |
1778 | fi | |
1779 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1780 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1781 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1782 | |
1783 | } # ac_fn_c_try_run | |
1784 | ||
1785 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1786 | # ------------------------------------------------------- | |
1787 | # Tests whether HEADER exists and can be compiled using the include files in | |
1788 | # INCLUDES, setting the cache variable VAR accordingly. | |
1789 | ac_fn_c_check_header_compile () | |
1790 | { | |
1791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1793 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1794 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1795 | $as_echo_n "(cached) " >&6 |
1796 | else | |
1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1798 | /* end confdefs.h. */ | |
1799 | $4 | |
1800 | #include <$2> | |
1801 | _ACEOF | |
1802 | if ac_fn_c_try_compile "$LINENO"; then : | |
1803 | eval "$3=yes" | |
1804 | else | |
1805 | eval "$3=no" | |
1806 | fi | |
1807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1808 | fi | |
1809 | eval ac_res=\$$3 | |
1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1811 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1812 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1813 | |
1814 | } # ac_fn_c_check_header_compile | |
1815 | ||
ab2af25e AM |
1816 | # ac_fn_c_try_link LINENO |
1817 | # ----------------------- | |
1818 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1819 | ac_fn_c_try_link () | |
1820 | { | |
1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1823 | if { { ac_try="$ac_link" | |
1824 | case "(($ac_try" in | |
1825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1826 | *) ac_try_echo=$ac_try;; | |
1827 | esac | |
1828 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1829 | $as_echo "$ac_try_echo"; } >&5 | |
1830 | (eval "$ac_link") 2>conftest.err | |
1831 | ac_status=$? | |
1832 | if test -s conftest.err; then | |
1833 | grep -v '^ *+' conftest.err >conftest.er1 | |
1834 | cat conftest.er1 >&5 | |
1835 | mv -f conftest.er1 conftest.err | |
1836 | fi | |
1837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1838 | test $ac_status = 0; } && { | |
1839 | test -z "$ac_c_werror_flag" || | |
1840 | test ! -s conftest.err | |
1841 | } && test -s conftest$ac_exeext && { | |
1842 | test "$cross_compiling" = yes || | |
1843 | test -x conftest$ac_exeext | |
1844 | }; then : | |
1845 | ac_retval=0 | |
1846 | else | |
1847 | $as_echo "$as_me: failed program was:" >&5 | |
1848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1849 | ||
1850 | ac_retval=1 | |
1851 | fi | |
1852 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1853 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1854 | # interfere with the next link command; also delete a directory that is | |
1855 | # left behind by Apple's compiler. We do this before executing the actions. | |
1856 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1857 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1858 | as_fn_set_status $ac_retval | |
1859 | ||
1860 | } # ac_fn_c_try_link | |
1861 | ||
81ecdfbb RW |
1862 | # ac_fn_c_check_func LINENO FUNC VAR |
1863 | # ---------------------------------- | |
1864 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1865 | ac_fn_c_check_func () | |
1866 | { | |
1867 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1869 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1870 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1871 | $as_echo_n "(cached) " >&6 |
1872 | else | |
1873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1874 | /* end confdefs.h. */ | |
1875 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1876 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1877 | #define $2 innocuous_$2 | |
1878 | ||
1879 | /* System header to define __stub macros and hopefully few prototypes, | |
1880 | which can conflict with char $2 (); below. | |
1881 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1882 | <limits.h> exists even on freestanding compilers. */ | |
1883 | ||
1884 | #ifdef __STDC__ | |
1885 | # include <limits.h> | |
1886 | #else | |
1887 | # include <assert.h> | |
1888 | #endif | |
1889 | ||
1890 | #undef $2 | |
1891 | ||
1892 | /* Override any GCC internal prototype to avoid an error. | |
1893 | Use char because int might match the return type of a GCC | |
1894 | builtin and then its argument prototype would still apply. */ | |
1895 | #ifdef __cplusplus | |
1896 | extern "C" | |
1897 | #endif | |
1898 | char $2 (); | |
1899 | /* The GNU C library defines this for functions which it implements | |
1900 | to always fail with ENOSYS. Some functions are actually named | |
1901 | something starting with __ and the normal name is an alias. */ | |
1902 | #if defined __stub_$2 || defined __stub___$2 | |
1903 | choke me | |
1904 | #endif | |
1905 | ||
1906 | int | |
1907 | main () | |
1908 | { | |
1909 | return $2 (); | |
1910 | ; | |
1911 | return 0; | |
1912 | } | |
1913 | _ACEOF | |
1914 | if ac_fn_c_try_link "$LINENO"; then : | |
1915 | eval "$3=yes" | |
1916 | else | |
1917 | eval "$3=no" | |
1918 | fi | |
1919 | rm -f core conftest.err conftest.$ac_objext \ | |
1920 | conftest$ac_exeext conftest.$ac_ext | |
1921 | fi | |
1922 | eval ac_res=\$$3 | |
1923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1924 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1925 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1926 | |
1927 | } # ac_fn_c_check_func | |
1928 | ||
1d5269c9 MF |
1929 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1930 | # -------------------------------------------- | |
1931 | # Tries to find the compile-time value of EXPR in a program that includes | |
1932 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1933 | # computed | |
1934 | ac_fn_c_compute_int () | |
1935 | { | |
1936 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1937 | if test "$cross_compiling" = yes; then | |
1938 | # Depending upon the size, compute the lo and hi bounds. | |
1939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1940 | /* end confdefs.h. */ | |
1941 | $4 | |
1942 | int | |
1943 | main () | |
1944 | { | |
1945 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1946 | test_array [0] = 0; | |
1947 | return test_array [0]; | |
1948 | ||
1949 | ; | |
1950 | return 0; | |
1951 | } | |
1952 | _ACEOF | |
1953 | if ac_fn_c_try_compile "$LINENO"; then : | |
1954 | ac_lo=0 ac_mid=0 | |
1955 | while :; do | |
1956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1957 | /* end confdefs.h. */ | |
1958 | $4 | |
1959 | int | |
1960 | main () | |
1961 | { | |
1962 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1963 | test_array [0] = 0; | |
1964 | return test_array [0]; | |
1965 | ||
1966 | ; | |
1967 | return 0; | |
1968 | } | |
1969 | _ACEOF | |
1970 | if ac_fn_c_try_compile "$LINENO"; then : | |
1971 | ac_hi=$ac_mid; break | |
1972 | else | |
1973 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1974 | if test $ac_lo -le $ac_mid; then | |
1975 | ac_lo= ac_hi= | |
1976 | break | |
1977 | fi | |
1978 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1979 | fi | |
1980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1981 | done | |
1982 | else | |
1983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1984 | /* end confdefs.h. */ | |
1985 | $4 | |
1986 | int | |
1987 | main () | |
1988 | { | |
1989 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1990 | test_array [0] = 0; | |
1991 | return test_array [0]; | |
1992 | ||
1993 | ; | |
1994 | return 0; | |
1995 | } | |
1996 | _ACEOF | |
1997 | if ac_fn_c_try_compile "$LINENO"; then : | |
1998 | ac_hi=-1 ac_mid=-1 | |
1999 | while :; do | |
2000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2001 | /* end confdefs.h. */ | |
2002 | $4 | |
2003 | int | |
2004 | main () | |
2005 | { | |
2006 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2007 | test_array [0] = 0; | |
2008 | return test_array [0]; | |
2009 | ||
2010 | ; | |
2011 | return 0; | |
2012 | } | |
2013 | _ACEOF | |
2014 | if ac_fn_c_try_compile "$LINENO"; then : | |
2015 | ac_lo=$ac_mid; break | |
2016 | else | |
2017 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2018 | if test $ac_mid -le $ac_hi; then | |
2019 | ac_lo= ac_hi= | |
2020 | break | |
2021 | fi | |
2022 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2023 | fi | |
2024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2025 | done | |
2026 | else | |
2027 | ac_lo= ac_hi= | |
2028 | fi | |
2029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2030 | fi | |
2031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2032 | # Binary search between lo and hi bounds. | |
2033 | while test "x$ac_lo" != "x$ac_hi"; do | |
2034 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2036 | /* end confdefs.h. */ | |
2037 | $4 | |
2038 | int | |
2039 | main () | |
2040 | { | |
2041 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2042 | test_array [0] = 0; | |
2043 | return test_array [0]; | |
2044 | ||
2045 | ; | |
2046 | return 0; | |
2047 | } | |
2048 | _ACEOF | |
2049 | if ac_fn_c_try_compile "$LINENO"; then : | |
2050 | ac_hi=$ac_mid | |
2051 | else | |
2052 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2053 | fi | |
2054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2055 | done | |
2056 | case $ac_lo in #(( | |
2057 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2058 | '') ac_retval=1 ;; | |
2059 | esac | |
2060 | else | |
2061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2062 | /* end confdefs.h. */ | |
2063 | $4 | |
2064 | static long int longval () { return $2; } | |
2065 | static unsigned long int ulongval () { return $2; } | |
2066 | #include <stdio.h> | |
2067 | #include <stdlib.h> | |
2068 | int | |
2069 | main () | |
2070 | { | |
2071 | ||
2072 | FILE *f = fopen ("conftest.val", "w"); | |
2073 | if (! f) | |
2074 | return 1; | |
2075 | if (($2) < 0) | |
2076 | { | |
2077 | long int i = longval (); | |
2078 | if (i != ($2)) | |
2079 | return 1; | |
2080 | fprintf (f, "%ld", i); | |
2081 | } | |
2082 | else | |
2083 | { | |
2084 | unsigned long int i = ulongval (); | |
2085 | if (i != ($2)) | |
2086 | return 1; | |
2087 | fprintf (f, "%lu", i); | |
2088 | } | |
2089 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2090 | on some platforms. */ | |
2091 | return ferror (f) || fclose (f) != 0; | |
2092 | ||
2093 | ; | |
2094 | return 0; | |
2095 | } | |
2096 | _ACEOF | |
2097 | if ac_fn_c_try_run "$LINENO"; then : | |
2098 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2099 | else | |
2100 | ac_retval=1 | |
2101 | fi | |
2102 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2103 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2104 | rm -f conftest.val | |
2105 | ||
2106 | fi | |
2107 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2108 | as_fn_set_status $ac_retval | |
2109 | ||
2110 | } # ac_fn_c_compute_int | |
2111 | ||
d0ac1c44 SM |
2112 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2113 | # --------------------------------------------- | |
2114 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2115 | # accordingly. | |
81ecdfbb RW |
2116 | ac_fn_c_check_decl () |
2117 | { | |
2118 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
2119 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2120 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2122 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d0ac1c44 | 2123 | if eval \${$3+:} false; then : |
81ecdfbb RW |
2124 | $as_echo_n "(cached) " >&6 |
2125 | else | |
2126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2127 | /* end confdefs.h. */ | |
2128 | $4 | |
2129 | int | |
2130 | main () | |
2131 | { | |
360cfc9c AM |
2132 | #ifndef $as_decl_name |
2133 | #ifdef __cplusplus | |
2134 | (void) $as_decl_use; | |
2135 | #else | |
2136 | (void) $as_decl_name; | |
2137 | #endif | |
81ecdfbb RW |
2138 | #endif |
2139 | ||
2140 | ; | |
2141 | return 0; | |
2142 | } | |
2143 | _ACEOF | |
2144 | if ac_fn_c_try_compile "$LINENO"; then : | |
2145 | eval "$3=yes" | |
2146 | else | |
2147 | eval "$3=no" | |
2148 | fi | |
2149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2150 | fi | |
2151 | eval ac_res=\$$3 | |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2153 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 2154 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
2155 | |
2156 | } # ac_fn_c_check_decl | |
2157 | cat >config.log <<_ACEOF | |
2158 | This file contains any messages produced by compilers while | |
2159 | running configure, to aid debugging if configure makes a mistake. | |
2160 | ||
e775d3a9 | 2161 | It was created by opcodes $as_me 2.42.50, which was |
d0ac1c44 | 2162 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
2163 | |
2164 | $ $0 $@ | |
2165 | ||
2166 | _ACEOF | |
2167 | exec 5>>config.log | |
2168 | { | |
2169 | cat <<_ASUNAME | |
2170 | ## --------- ## | |
2171 | ## Platform. ## | |
2172 | ## --------- ## | |
2173 | ||
2174 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2175 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2176 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2177 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2178 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2179 | ||
2180 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2181 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
979273e3 NN |
2182 | |
2183 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2184 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2185 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2186 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
979273e3 NN |
2187 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2188 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2189 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2190 | ||
2191 | _ASUNAME | |
2192 | ||
2193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2194 | for as_dir in $PATH | |
2195 | do | |
2196 | IFS=$as_save_IFS | |
2197 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2198 | $as_echo "PATH: $as_dir" |
2199 | done | |
2200 | IFS=$as_save_IFS | |
252b5132 | 2201 | |
979273e3 | 2202 | } >&5 |
75798298 | 2203 | |
979273e3 | 2204 | cat >&5 <<_ACEOF |
252b5132 | 2205 | |
252b5132 | 2206 | |
979273e3 NN |
2207 | ## ----------- ## |
2208 | ## Core tests. ## | |
2209 | ## ----------- ## | |
2210 | ||
2211 | _ACEOF | |
2212 | ||
2213 | ||
2214 | # Keep a trace of the command line. | |
2215 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2216 | # Strip out --silent because we don't want to record it for future runs. | |
2217 | # Also quote any args containing shell meta-characters. | |
2218 | # Make two passes to allow for proper duplicate-argument suppression. | |
2219 | ac_configure_args= | |
2220 | ac_configure_args0= | |
2221 | ac_configure_args1= | |
979273e3 NN |
2222 | ac_must_keep_next=false |
2223 | for ac_pass in 1 2 | |
2224 | do | |
2225 | for ac_arg | |
2226 | do | |
2227 | case $ac_arg in | |
2228 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2229 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2230 | | -silent | --silent | --silen | --sile | --sil) | |
2231 | continue ;; | |
81ecdfbb RW |
2232 | *\'*) |
2233 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
979273e3 NN |
2234 | esac |
2235 | case $ac_pass in | |
81ecdfbb | 2236 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
979273e3 | 2237 | 2) |
81ecdfbb | 2238 | as_fn_append ac_configure_args1 " '$ac_arg'" |
979273e3 NN |
2239 | if test $ac_must_keep_next = true; then |
2240 | ac_must_keep_next=false # Got value, back to normal. | |
2241 | else | |
2242 | case $ac_arg in | |
2243 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2244 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2245 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2246 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2247 | case "$ac_configure_args0 " in | |
2248 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2249 | esac | |
2250 | ;; | |
2251 | -* ) ac_must_keep_next=true ;; | |
2252 | esac | |
2253 | fi | |
81ecdfbb | 2254 | as_fn_append ac_configure_args " '$ac_arg'" |
979273e3 NN |
2255 | ;; |
2256 | esac | |
2257 | done | |
2258 | done | |
81ecdfbb RW |
2259 | { ac_configure_args0=; unset ac_configure_args0;} |
2260 | { ac_configure_args1=; unset ac_configure_args1;} | |
979273e3 NN |
2261 | |
2262 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2263 | # config.log. We remove comments because anyway the quotes in there | |
2264 | # would cause problems or look ugly. | |
81ecdfbb RW |
2265 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2266 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
979273e3 NN |
2267 | trap 'exit_status=$? |
2268 | # Save into config.log some information that might help in debugging. | |
2269 | { | |
2270 | echo | |
2271 | ||
d0ac1c44 | 2272 | $as_echo "## ---------------- ## |
979273e3 | 2273 | ## Cache variables. ## |
d0ac1c44 | 2274 | ## ---------------- ##" |
979273e3 NN |
2275 | echo |
2276 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2277 | ( |
2278 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2279 | eval ac_val=\$$ac_var | |
2280 | case $ac_val in #( | |
2281 | *${as_nl}*) | |
2282 | case $ac_var in #( | |
2283 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2284 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2285 | esac | |
2286 | case $ac_var in #( | |
2287 | _ | IFS | as_nl) ;; #( | |
2288 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2289 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2290 | esac ;; | |
2291 | esac | |
2292 | done | |
979273e3 | 2293 | (set) 2>&1 | |
81ecdfbb RW |
2294 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2295 | *${as_nl}ac_space=\ *) | |
979273e3 | 2296 | sed -n \ |
81ecdfbb RW |
2297 | "s/'\''/'\''\\\\'\'''\''/g; |
2298 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2299 | ;; #( | |
979273e3 | 2300 | *) |
81ecdfbb | 2301 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
979273e3 | 2302 | ;; |
81ecdfbb RW |
2303 | esac | |
2304 | sort | |
2305 | ) | |
979273e3 NN |
2306 | echo |
2307 | ||
d0ac1c44 | 2308 | $as_echo "## ----------------- ## |
979273e3 | 2309 | ## Output variables. ## |
d0ac1c44 | 2310 | ## ----------------- ##" |
979273e3 NN |
2311 | echo |
2312 | for ac_var in $ac_subst_vars | |
2313 | do | |
81ecdfbb RW |
2314 | eval ac_val=\$$ac_var |
2315 | case $ac_val in | |
2316 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2317 | esac | |
2318 | $as_echo "$ac_var='\''$ac_val'\''" | |
979273e3 NN |
2319 | done | sort |
2320 | echo | |
2321 | ||
2322 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2323 | $as_echo "## ------------------- ## |
81ecdfbb | 2324 | ## File substitutions. ## |
d0ac1c44 | 2325 | ## ------------------- ##" |
979273e3 NN |
2326 | echo |
2327 | for ac_var in $ac_subst_files | |
2328 | do | |
81ecdfbb RW |
2329 | eval ac_val=\$$ac_var |
2330 | case $ac_val in | |
2331 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2332 | esac | |
2333 | $as_echo "$ac_var='\''$ac_val'\''" | |
979273e3 NN |
2334 | done | sort |
2335 | echo | |
2336 | fi | |
2337 | ||
2338 | if test -s confdefs.h; then | |
d0ac1c44 | 2339 | $as_echo "## ----------- ## |
979273e3 | 2340 | ## confdefs.h. ## |
d0ac1c44 | 2341 | ## ----------- ##" |
979273e3 | 2342 | echo |
81ecdfbb | 2343 | cat confdefs.h |
979273e3 NN |
2344 | echo |
2345 | fi | |
2346 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2347 | $as_echo "$as_me: caught signal $ac_signal" |
2348 | $as_echo "$as_me: exit $exit_status" | |
979273e3 | 2349 | } >&5 |
81ecdfbb RW |
2350 | rm -f core *.core core.conftest.* && |
2351 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
979273e3 | 2352 | exit $exit_status |
81ecdfbb | 2353 | ' 0 |
979273e3 | 2354 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2355 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
979273e3 NN |
2356 | done |
2357 | ac_signal=0 | |
2358 | ||
2359 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2360 | rm -f -r conftest* confdefs.h |
2361 | ||
2362 | $as_echo "/* confdefs.h */" > confdefs.h | |
979273e3 NN |
2363 | |
2364 | # Predefined preprocessor variables. | |
2365 | ||
2366 | cat >>confdefs.h <<_ACEOF | |
2367 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2368 | _ACEOF | |
2369 | ||
979273e3 NN |
2370 | cat >>confdefs.h <<_ACEOF |
2371 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2372 | _ACEOF | |
2373 | ||
979273e3 NN |
2374 | cat >>confdefs.h <<_ACEOF |
2375 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2376 | _ACEOF | |
2377 | ||
979273e3 NN |
2378 | cat >>confdefs.h <<_ACEOF |
2379 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2380 | _ACEOF | |
2381 | ||
979273e3 NN |
2382 | cat >>confdefs.h <<_ACEOF |
2383 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2384 | _ACEOF | |
2385 | ||
81ecdfbb RW |
2386 | cat >>confdefs.h <<_ACEOF |
2387 | #define PACKAGE_URL "$PACKAGE_URL" | |
2388 | _ACEOF | |
2389 | ||
979273e3 NN |
2390 | |
2391 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2392 | # Prefer an explicitly selected file to automatically selected ones. |
2393 | ac_site_file1=NONE | |
2394 | ac_site_file2=NONE | |
2395 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2396 | # We do not want a PATH search for config.site. |
2397 | case $CONFIG_SITE in #(( | |
2398 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2399 | */*) ac_site_file1=$CONFIG_SITE;; | |
2400 | *) ac_site_file1=./$CONFIG_SITE;; | |
2401 | esac | |
81ecdfbb RW |
2402 | elif test "x$prefix" != xNONE; then |
2403 | ac_site_file1=$prefix/share/config.site | |
2404 | ac_site_file2=$prefix/etc/config.site | |
2405 | else | |
2406 | ac_site_file1=$ac_default_prefix/share/config.site | |
2407 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2408 | fi | |
2409 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2410 | do | |
2411 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2412 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2414 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
979273e3 | 2415 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2416 | . "$ac_site_file" \ |
2417 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2418 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2419 | as_fn_error $? "failed to load site script $ac_site_file | |
2420 | See \`config.log' for more details" "$LINENO" 5; } | |
979273e3 NN |
2421 | fi |
2422 | done | |
2423 | ||
2424 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2425 | # Some versions of bash will fail to source /dev/null (special files |
2426 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2427 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2429 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
979273e3 | 2430 | case $cache_file in |
81ecdfbb RW |
2431 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2432 | *) . "./$cache_file";; | |
979273e3 NN |
2433 | esac |
2434 | fi | |
2435 | else | |
81ecdfbb RW |
2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2437 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
979273e3 NN |
2438 | >$cache_file |
2439 | fi | |
2440 | ||
862776f2 | 2441 | gt_needs="$gt_needs " |
979273e3 NN |
2442 | # Check that the precious variables saved in the cache have kept the same |
2443 | # value. | |
2444 | ac_cache_corrupted=false | |
81ecdfbb | 2445 | for ac_var in $ac_precious_vars; do |
979273e3 NN |
2446 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2447 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2448 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2449 | eval ac_new_val=\$ac_env_${ac_var}_value | |
979273e3 NN |
2450 | case $ac_old_set,$ac_new_set in |
2451 | set,) | |
81ecdfbb RW |
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2453 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
979273e3 NN |
2454 | ac_cache_corrupted=: ;; |
2455 | ,set) | |
81ecdfbb RW |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2457 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
979273e3 NN |
2458 | ac_cache_corrupted=: ;; |
2459 | ,);; | |
2460 | *) | |
2461 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2462 | # differences in whitespace do not lead to failure. |
2463 | ac_old_val_w=`echo x $ac_old_val` | |
2464 | ac_new_val_w=`echo x $ac_new_val` | |
2465 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2467 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2468 | ac_cache_corrupted=: | |
2469 | else | |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2471 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2472 | eval $ac_var=\$ac_old_val | |
2473 | fi | |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2475 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2477 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
979273e3 NN |
2478 | fi;; |
2479 | esac | |
2480 | # Pass precious variables to config.status. | |
2481 | if test "$ac_new_set" = set; then | |
2482 | case $ac_new_val in | |
81ecdfbb | 2483 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
979273e3 NN |
2484 | *) ac_arg=$ac_var=$ac_new_val ;; |
2485 | esac | |
2486 | case " $ac_configure_args " in | |
2487 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2488 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
979273e3 NN |
2489 | esac |
2490 | fi | |
2491 | done | |
2492 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2496 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2497 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
979273e3 | 2498 | fi |
81ecdfbb RW |
2499 | ## -------------------- ## |
2500 | ## Main body of script. ## | |
2501 | ## -------------------- ## | |
979273e3 NN |
2502 | |
2503 | ac_ext=c | |
2504 | ac_cpp='$CPP $CPPFLAGS' | |
2505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2508 | ||
2509 | ||
2510 | ||
979273e3 NN |
2511 | |
2512 | ||
2513 | ||
2514 | ||
2515 | ac_aux_dir= | |
81ecdfbb | 2516 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2517 | if test -f "$ac_dir/install-sh"; then |
2518 | ac_aux_dir=$ac_dir | |
2519 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2520 | break | |
2521 | elif test -f "$ac_dir/install.sh"; then | |
2522 | ac_aux_dir=$ac_dir | |
2523 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2524 | break | |
2525 | elif test -f "$ac_dir/shtool"; then | |
2526 | ac_aux_dir=$ac_dir | |
2527 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2528 | break | |
2529 | fi | |
979273e3 NN |
2530 | done |
2531 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2532 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
979273e3 | 2533 | fi |
81ecdfbb RW |
2534 | |
2535 | # These three variables are undocumented and unsupported, | |
2536 | # and are intended to be withdrawn in a future Autoconf release. | |
2537 | # They can cause serious problems if a builder's source tree is in a directory | |
2538 | # whose full name contains unusual characters. | |
2539 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2540 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2541 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2542 | ||
979273e3 NN |
2543 | |
2544 | # Make sure we can run config.sub. | |
81ecdfbb | 2545 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2546 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2547 | |
2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2549 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2550 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2551 | $as_echo_n "(cached) " >&6 |
2552 | else | |
2553 | ac_build_alias=$build_alias | |
2554 | test "x$ac_build_alias" = x && | |
2555 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2556 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2557 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2558 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2559 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2560 | |
2561 | fi | |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2563 | $as_echo "$ac_cv_build" >&6; } | |
2564 | case $ac_cv_build in | |
2565 | *-*-*) ;; | |
d0ac1c44 | 2566 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2567 | esac |
979273e3 | 2568 | build=$ac_cv_build |
81ecdfbb RW |
2569 | ac_save_IFS=$IFS; IFS='-' |
2570 | set x $ac_cv_build | |
2571 | shift | |
2572 | build_cpu=$1 | |
2573 | build_vendor=$2 | |
2574 | shift; shift | |
2575 | # Remember, the first character of IFS is used to create $*, | |
2576 | # except with old shells: | |
2577 | build_os=$* | |
2578 | IFS=$ac_save_IFS | |
2579 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2580 | |
2581 | ||
81ecdfbb RW |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2583 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2584 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2585 | $as_echo_n "(cached) " >&6 |
979273e3 | 2586 | else |
81ecdfbb RW |
2587 | if test "x$host_alias" = x; then |
2588 | ac_cv_host=$ac_cv_build | |
2589 | else | |
2590 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2591 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2592 | fi |
979273e3 NN |
2593 | |
2594 | fi | |
81ecdfbb RW |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2596 | $as_echo "$ac_cv_host" >&6; } | |
2597 | case $ac_cv_host in | |
2598 | *-*-*) ;; | |
d0ac1c44 | 2599 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2600 | esac |
979273e3 | 2601 | host=$ac_cv_host |
81ecdfbb RW |
2602 | ac_save_IFS=$IFS; IFS='-' |
2603 | set x $ac_cv_host | |
2604 | shift | |
2605 | host_cpu=$1 | |
2606 | host_vendor=$2 | |
2607 | shift; shift | |
2608 | # Remember, the first character of IFS is used to create $*, | |
2609 | # except with old shells: | |
2610 | host_os=$* | |
2611 | IFS=$ac_save_IFS | |
2612 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2613 | |
2614 | ||
81ecdfbb RW |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2616 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2617 | if ${ac_cv_target+:} false; then : |
81ecdfbb RW |
2618 | $as_echo_n "(cached) " >&6 |
2619 | else | |
2620 | if test "x$target_alias" = x; then | |
2621 | ac_cv_target=$ac_cv_host | |
979273e3 | 2622 | else |
81ecdfbb | 2623 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
d0ac1c44 | 2624 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2625 | fi |
979273e3 NN |
2626 | |
2627 | fi | |
81ecdfbb RW |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2629 | $as_echo "$ac_cv_target" >&6; } | |
2630 | case $ac_cv_target in | |
2631 | *-*-*) ;; | |
d0ac1c44 | 2632 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2633 | esac |
979273e3 | 2634 | target=$ac_cv_target |
81ecdfbb RW |
2635 | ac_save_IFS=$IFS; IFS='-' |
2636 | set x $ac_cv_target | |
2637 | shift | |
2638 | target_cpu=$1 | |
2639 | target_vendor=$2 | |
2640 | shift; shift | |
2641 | # Remember, the first character of IFS is used to create $*, | |
2642 | # except with old shells: | |
2643 | target_os=$* | |
2644 | IFS=$ac_save_IFS | |
2645 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2646 | |
2647 | ||
2648 | # The aliases save the names the user supplied, while $host etc. | |
2649 | # will get canonicalized. | |
2650 | test -n "$target_alias" && | |
2651 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2652 | NONENONEs,x,x, && | |
2653 | program_prefix=${target_alias}- | |
d0ac1c44 | 2654 | |
b9583093 | 2655 | am__api_version='1.15' |
ab2af25e AM |
2656 | |
2657 | # Find a good install program. We prefer a C program (faster), | |
2658 | # so one script is as good as another. But avoid the broken or | |
2659 | # incompatible versions: | |
2660 | # SysV /etc/install, /usr/sbin/install | |
2661 | # SunOS /usr/etc/install | |
2662 | # IRIX /sbin/install | |
2663 | # AIX /bin/install | |
2664 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2665 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2666 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2667 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2668 | # OS/2's system install, which has a completely different semantic | |
2669 | # ./install, which can be erroneously created by make from ./install.sh. | |
2670 | # Reject install programs that cannot install multiple files. | |
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2672 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2673 | if test -z "$INSTALL"; then | |
2674 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 2675 | $as_echo_n "(cached) " >&6 |
979273e3 | 2676 | else |
ab2af25e | 2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
979273e3 NN |
2678 | for as_dir in $PATH |
2679 | do | |
2680 | IFS=$as_save_IFS | |
2681 | test -z "$as_dir" && as_dir=. | |
ab2af25e AM |
2682 | # Account for people who put trailing slashes in PATH elements. |
2683 | case $as_dir/ in #(( | |
2684 | ./ | .// | /[cC]/* | \ | |
2685 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2686 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2687 | /usr/ucb/* ) ;; | |
2688 | *) | |
2689 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2690 | # Don't use installbsd from OSF since it installs stuff as root | |
2691 | # by default. | |
2692 | for ac_prog in ginstall scoinst install; do | |
2693 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2694 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2695 | if test $ac_prog = install && | |
2696 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2697 | # AIX install. It has an incompatible calling convention. | |
2698 | : | |
2699 | elif test $ac_prog = install && | |
2700 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2701 | # program-specific install script used by HP pwplus--don't use. | |
2702 | : | |
2703 | else | |
2704 | rm -rf conftest.one conftest.two conftest.dir | |
2705 | echo one > conftest.one | |
2706 | echo two > conftest.two | |
2707 | mkdir conftest.dir | |
2708 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2709 | test -s conftest.one && test -s conftest.two && | |
2710 | test -s conftest.dir/conftest.one && | |
2711 | test -s conftest.dir/conftest.two | |
2712 | then | |
2713 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2714 | break 3 | |
2715 | fi | |
2716 | fi | |
2717 | fi | |
2718 | done | |
2719 | done | |
2720 | ;; | |
2721 | esac | |
2722 | ||
81ecdfbb RW |
2723 | done |
2724 | IFS=$as_save_IFS | |
979273e3 | 2725 | |
ab2af25e | 2726 | rm -rf conftest.one conftest.two conftest.dir |
81ecdfbb | 2727 | |
979273e3 | 2728 | fi |
ab2af25e AM |
2729 | if test "${ac_cv_path_install+set}" = set; then |
2730 | INSTALL=$ac_cv_path_install | |
2731 | else | |
2732 | # As a last resort, use the slow shell script. Don't cache a | |
2733 | # value for INSTALL within a source directory, because that will | |
2734 | # break other packages using the cache if that directory is | |
2735 | # removed, or if the value is a relative name. | |
2736 | INSTALL=$ac_install_sh | |
252b5132 RH |
2737 | fi |
2738 | fi | |
81ecdfbb RW |
2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2740 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
2741 | |
2742 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2743 | # It thinks the first close brace ends the variable substitution. | |
2744 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2745 | ||
979273e3 | 2746 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2747 | |
2748 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2749 | ||
81ecdfbb RW |
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2751 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
81ecdfbb RW |
2752 | # Reject unsafe characters in $srcdir or the absolute working directory |
2753 | # name. Accept space and tab only in the latter. | |
2754 | am_lf=' | |
2755 | ' | |
2756 | case `pwd` in | |
2757 | *[\\\"\#\$\&\'\`$am_lf]*) | |
d0ac1c44 | 2758 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
81ecdfbb RW |
2759 | esac |
2760 | case $srcdir in | |
2761 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
d0ac1c44 | 2762 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
81ecdfbb RW |
2763 | esac |
2764 | ||
d0ac1c44 | 2765 | # Do 'set' in a subshell so we don't clobber the current shell's |
252b5132 RH |
2766 | # arguments. Must try -L first in case configure is actually a |
2767 | # symlink; some systems play weird games with the mod time of symlinks | |
2768 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2769 | # directory). | |
2770 | if ( | |
d0ac1c44 SM |
2771 | am_has_slept=no |
2772 | for am_try in 1 2; do | |
2773 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2774 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2775 | if test "$*" = "X"; then | |
2776 | # -L didn't work. | |
2777 | set X `ls -t "$srcdir/configure" conftest.file` | |
2778 | fi | |
2779 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2780 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2781 | ||
2782 | # If neither matched, then we have a broken ls. This can happen | |
2783 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2784 | # broken ls alias from the environment. This has actually | |
2785 | # happened. Such a system could not be considered "sane". | |
2786 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2787 | alias in your environment" "$LINENO" 5 | |
2788 | fi | |
2789 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2790 | break | |
2791 | fi | |
2792 | # Just in case. | |
2793 | sleep 1 | |
2794 | am_has_slept=yes | |
2795 | done | |
8ae85421 | 2796 | test "$2" = conftest.file |
252b5132 RH |
2797 | ) |
2798 | then | |
2799 | # Ok. | |
2800 | : | |
2801 | else | |
d0ac1c44 | 2802 | as_fn_error $? "newly created file is older than distributed files! |
81ecdfbb | 2803 | Check your system clock" "$LINENO" 5 |
252b5132 | 2804 | fi |
81ecdfbb RW |
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2806 | $as_echo "yes" >&6; } | |
d0ac1c44 SM |
2807 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2808 | # generated files are strictly newer. | |
2809 | am_sleep_pid= | |
2810 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2811 | ( sleep 1 ) & | |
2812 | am_sleep_pid=$! | |
2813 | fi | |
2814 | ||
2815 | rm -f conftest.file | |
2816 | ||
252b5132 | 2817 | test "$program_prefix" != NONE && |
81ecdfbb | 2818 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
2819 | # Use a double $ so make ignores it. |
2820 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2821 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2822 | # Double any \ or $. | |
979273e3 | 2823 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2824 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2825 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
979273e3 | 2826 | |
ab2af25e AM |
2827 | # Expand $ac_aux_dir to an absolute path. |
2828 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2829 | ||
81ecdfbb | 2830 | if test x"${MISSING+set}" != xset; then |
b9583093 AM |
2831 | case $am_aux_dir in |
2832 | *\ * | *\ *) | |
2833 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2834 | *) | |
2835 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2836 | esac | |
81ecdfbb | 2837 | fi |
8ae85421 | 2838 | # Use eval to expand $SHELL |
d0ac1c44 SM |
2839 | if eval "$MISSING --is-lightweight"; then |
2840 | am_missing_run="$MISSING " | |
8ae85421 AM |
2841 | else |
2842 | am_missing_run= | |
d0ac1c44 SM |
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2844 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
81ecdfbb RW |
2845 | fi |
2846 | ||
d0ac1c44 | 2847 | if test x"${install_sh+set}" != xset; then |
81ecdfbb RW |
2848 | case $am_aux_dir in |
2849 | *\ * | *\ *) | |
2850 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2851 | *) | |
2852 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2853 | esac | |
2854 | fi | |
2855 | ||
d0ac1c44 SM |
2856 | # Installed binaries are usually stripped using 'strip' when the user |
2857 | # run "make install-strip". However 'strip' might not be the right | |
81ecdfbb | 2858 | # tool to use in cross-compilation environments, therefore Automake |
d0ac1c44 | 2859 | # will honor the 'STRIP' environment variable to overrule this program. |
81ecdfbb RW |
2860 | if test "$cross_compiling" != no; then |
2861 | if test -n "$ac_tool_prefix"; then | |
2862 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2863 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2865 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2866 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb RW |
2867 | $as_echo_n "(cached) " >&6 |
2868 | else | |
2869 | if test -n "$STRIP"; then | |
2870 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2871 | else | |
2872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2873 | for as_dir in $PATH | |
2874 | do | |
2875 | IFS=$as_save_IFS | |
2876 | test -z "$as_dir" && as_dir=. | |
2877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2879 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2881 | break 2 | |
2882 | fi | |
2883 | done | |
2884 | done | |
2885 | IFS=$as_save_IFS | |
2886 | ||
2887 | fi | |
2888 | fi | |
2889 | STRIP=$ac_cv_prog_STRIP | |
2890 | if test -n "$STRIP"; then | |
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2892 | $as_echo "$STRIP" >&6; } | |
2893 | else | |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2895 | $as_echo "no" >&6; } | |
2896 | fi | |
2897 | ||
2898 | ||
2899 | fi | |
2900 | if test -z "$ac_cv_prog_STRIP"; then | |
2901 | ac_ct_STRIP=$STRIP | |
2902 | # Extract the first word of "strip", so it can be a program name with args. | |
2903 | set dummy strip; ac_word=$2 | |
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2905 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2906 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb RW |
2907 | $as_echo_n "(cached) " >&6 |
2908 | else | |
2909 | if test -n "$ac_ct_STRIP"; then | |
2910 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2911 | else | |
2912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2913 | for as_dir in $PATH | |
2914 | do | |
2915 | IFS=$as_save_IFS | |
2916 | test -z "$as_dir" && as_dir=. | |
2917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2918 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2919 | ac_cv_prog_ac_ct_STRIP="strip" |
2920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2921 | break 2 | |
2922 | fi | |
2923 | done | |
8ae85421 | 2924 | done |
81ecdfbb RW |
2925 | IFS=$as_save_IFS |
2926 | ||
2927 | fi | |
2928 | fi | |
2929 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2930 | if test -n "$ac_ct_STRIP"; then | |
2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2932 | $as_echo "$ac_ct_STRIP" >&6; } | |
2933 | else | |
2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2935 | $as_echo "no" >&6; } | |
2936 | fi | |
2937 | ||
2938 | if test "x$ac_ct_STRIP" = x; then | |
2939 | STRIP=":" | |
2940 | else | |
2941 | case $cross_compiling:$ac_tool_warned in | |
2942 | yes:) | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2944 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2945 | ac_tool_warned=yes ;; | |
2946 | esac | |
2947 | STRIP=$ac_ct_STRIP | |
2948 | fi | |
2949 | else | |
2950 | STRIP="$ac_cv_prog_STRIP" | |
2951 | fi | |
2952 | ||
2953 | fi | |
2954 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2955 | ||
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2957 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2958 | if test -z "$MKDIR_P"; then | |
d0ac1c44 | 2959 | if ${ac_cv_path_mkdir+:} false; then : |
81ecdfbb RW |
2960 | $as_echo_n "(cached) " >&6 |
2961 | else | |
2962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2963 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2964 | do | |
2965 | IFS=$as_save_IFS | |
2966 | test -z "$as_dir" && as_dir=. | |
2967 | for ac_prog in mkdir gmkdir; do | |
2968 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2969 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
81ecdfbb RW |
2970 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2971 | 'mkdir (GNU coreutils) '* | \ | |
2972 | 'mkdir (coreutils) '* | \ | |
2973 | 'mkdir (fileutils) '4.1*) | |
2974 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2975 | break 3;; | |
2976 | esac | |
2977 | done | |
2978 | done | |
2979 | done | |
2980 | IFS=$as_save_IFS | |
2981 | ||
2982 | fi | |
2983 | ||
d0ac1c44 | 2984 | test -d ./--version && rmdir ./--version |
81ecdfbb RW |
2985 | if test "${ac_cv_path_mkdir+set}" = set; then |
2986 | MKDIR_P="$ac_cv_path_mkdir -p" | |
8ae85421 | 2987 | else |
81ecdfbb RW |
2988 | # As a last resort, use the slow shell script. Don't cache a |
2989 | # value for MKDIR_P within a source directory, because that will | |
2990 | # break other packages using the cache if that directory is | |
2991 | # removed, or if the value is a relative name. | |
81ecdfbb | 2992 | MKDIR_P="$ac_install_sh -d" |
8ae85421 AM |
2993 | fi |
2994 | fi | |
81ecdfbb RW |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2996 | $as_echo "$MKDIR_P" >&6; } | |
2997 | ||
8ae85421 AM |
2998 | for ac_prog in gawk mawk nawk awk |
2999 | do | |
3000 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3001 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3003 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3004 | if ${ac_cv_prog_AWK+:} false; then : |
81ecdfbb | 3005 | $as_echo_n "(cached) " >&6 |
8ae85421 AM |
3006 | else |
3007 | if test -n "$AWK"; then | |
3008 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3009 | else | |
3010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3011 | for as_dir in $PATH | |
3012 | do | |
3013 | IFS=$as_save_IFS | |
3014 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3015 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3016 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8ae85421 | 3017 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8ae85421 AM |
3019 | break 2 |
3020 | fi | |
3021 | done | |
81ecdfbb RW |
3022 | done |
3023 | IFS=$as_save_IFS | |
8ae85421 AM |
3024 | |
3025 | fi | |
3026 | fi | |
3027 | AWK=$ac_cv_prog_AWK | |
3028 | if test -n "$AWK"; then | |
81ecdfbb RW |
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3030 | $as_echo "$AWK" >&6; } | |
8ae85421 | 3031 | else |
81ecdfbb RW |
3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3033 | $as_echo "no" >&6; } | |
8ae85421 AM |
3034 | fi |
3035 | ||
81ecdfbb | 3036 | |
8ae85421 AM |
3037 | test -n "$AWK" && break |
3038 | done | |
3039 | ||
81ecdfbb RW |
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3041 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3042 | set x ${MAKE-make} | |
3043 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0ac1c44 | 3044 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb | 3045 | $as_echo_n "(cached) " >&6 |
979273e3 NN |
3046 | else |
3047 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3048 | SHELL = /bin/sh |
252b5132 | 3049 | all: |
81ecdfbb | 3050 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
979273e3 | 3051 | _ACEOF |
d0ac1c44 | 3052 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
3053 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3054 | *@@@%%%=?*=@@@%%%*) | |
3055 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3056 | *) | |
3057 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3058 | esac | |
979273e3 | 3059 | rm -f conftest.make |
252b5132 | 3060 | fi |
81ecdfbb RW |
3061 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3063 | $as_echo "yes" >&6; } | |
252b5132 RH |
3064 | SET_MAKE= |
3065 | else | |
81ecdfbb RW |
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3067 | $as_echo "no" >&6; } | |
252b5132 RH |
3068 | SET_MAKE="MAKE=${MAKE-make}" |
3069 | fi | |
3070 | ||
8ae85421 AM |
3071 | rm -rf .tst 2>/dev/null |
3072 | mkdir .tst 2>/dev/null | |
3073 | if test -d .tst; then | |
3074 | am__leading_dot=. | |
3075 | else | |
3076 | am__leading_dot=_ | |
3077 | fi | |
3078 | rmdir .tst 2>/dev/null | |
3079 | ||
d0ac1c44 SM |
3080 | # Check whether --enable-silent-rules was given. |
3081 | if test "${enable_silent_rules+set}" = set; then : | |
3082 | enableval=$enable_silent_rules; | |
3083 | fi | |
3084 | ||
3085 | case $enable_silent_rules in # ((( | |
3086 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3087 | no) AM_DEFAULT_VERBOSITY=1;; | |
3088 | *) AM_DEFAULT_VERBOSITY=1;; | |
3089 | esac | |
3090 | am_make=${MAKE-make} | |
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3092 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3093 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3094 | $as_echo_n "(cached) " >&6 | |
3095 | else | |
3096 | if $as_echo 'TRUE=$(BAR$(V)) | |
3097 | BAR0=false | |
3098 | BAR1=true | |
3099 | V=1 | |
3100 | am__doit: | |
3101 | @$(TRUE) | |
3102 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3103 | am_cv_make_support_nested_variables=yes | |
3104 | else | |
3105 | am_cv_make_support_nested_variables=no | |
3106 | fi | |
3107 | fi | |
3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3109 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3110 | if test $am_cv_make_support_nested_variables = yes; then | |
3111 | AM_V='$(V)' | |
3112 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3113 | else | |
3114 | AM_V=$AM_DEFAULT_VERBOSITY | |
3115 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3116 | fi | |
3117 | AM_BACKSLASH='\' | |
3118 | ||
81ecdfbb RW |
3119 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3120 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3121 | # is not polluted with repeated "-I." | |
3122 | am__isrc=' -I$(srcdir)' | |
3123 | # test to see if srcdir already configured | |
3124 | if test -f $srcdir/config.status; then | |
d0ac1c44 | 3125 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
81ecdfbb | 3126 | fi |
252b5132 | 3127 | fi |
979273e3 | 3128 | |
8ae85421 AM |
3129 | # test whether we have cygpath |
3130 | if test -z "$CYGPATH_W"; then | |
3131 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3132 | CYGPATH_W='cygpath -w' | |
3133 | else | |
3134 | CYGPATH_W=echo | |
3135 | fi | |
3136 | fi | |
3137 | ||
3138 | ||
3139 | # Define the identity of the package. | |
2e98a7bd | 3140 | PACKAGE='opcodes' |
e775d3a9 | 3141 | VERSION='2.42.50' |
8ae85421 AM |
3142 | |
3143 | ||
979273e3 | 3144 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3145 | #define PACKAGE "$PACKAGE" |
979273e3 | 3146 | _ACEOF |
252b5132 | 3147 | |
979273e3 NN |
3148 | |
3149 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3150 | #define VERSION "$VERSION" |
979273e3 | 3151 | _ACEOF |
252b5132 | 3152 | |
8ae85421 | 3153 | # Some tools Automake needs. |
252b5132 | 3154 | |
8ae85421 | 3155 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
252b5132 | 3156 | |
8ae85421 AM |
3157 | |
3158 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3159 | ||
3160 | ||
3161 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3162 | ||
3163 | ||
3164 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3165 | ||
3166 | ||
3167 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3168 | ||
d0ac1c44 SM |
3169 | # For better backward compatibility. To be removed once Automake 1.9.x |
3170 | # dies out for good. For more background, see: | |
b9583093 AM |
3171 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
3172 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
d0ac1c44 SM |
3173 | mkdir_p='$(MKDIR_P)' |
3174 | ||
3175 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3176 | # system "awk" is bad on some platforms. | |
6eb7d830 AM |
3177 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3178 | # in the wild :-( We should find a proper way to deprecate it ... | |
3179 | AMTAR='$${TAR-tar}' | |
8ae85421 | 3180 | |
d0ac1c44 SM |
3181 | |
3182 | # We'll loop over all known methods to create a tar archive until one works. | |
3183 | _am_tools='gnutar pax cpio none' | |
3184 | ||
ab2af25e AM |
3185 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3186 | ||
8ae85421 | 3187 | |
8ae85421 | 3188 | |
252b5132 RH |
3189 | |
3190 | ||
3191 | ||
d0ac1c44 SM |
3192 | # POSIX will say in a future version that running "rm -f" with no argument |
3193 | # is OK; and we want to be able to make that assumption in our Makefile | |
3194 | # recipes. So use an aggressive probe to check that the usage we want is | |
3195 | # actually supported "in the wild" to an acceptable degree. | |
3196 | # See automake bug#10828. | |
3197 | # To make any issue more visible, cause the running configure to be aborted | |
3198 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3199 | # user can still override this though. | |
3200 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3201 | cat >&2 <<'END' | |
3202 | Oops! | |
3203 | ||
3204 | Your 'rm' program seems unable to run without file operands specified | |
3205 | on the command line, even when the '-f' option is present. This is contrary | |
3206 | to the behaviour of most rm programs out there, and not conforming with | |
3207 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3208 | ||
3209 | Please tell bug-automake@gnu.org about your system, including the value | |
3210 | of your $PATH and any error possibly output before this message. This | |
3211 | can help us improve future automake versions. | |
3212 | ||
3213 | END | |
3214 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3215 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3216 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3217 | echo >&2 | |
3218 | else | |
3219 | cat >&2 <<'END' | |
3220 | Aborting the configuration process, to ensure you take notice of the issue. | |
3221 | ||
3222 | You can download and install GNU coreutils to get an 'rm' implementation | |
b9583093 | 3223 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
d0ac1c44 SM |
3224 | |
3225 | If you want to complete the configuration process using your problematic | |
3226 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3227 | to "yes", and re-run configure. | |
3228 | ||
3229 | END | |
3230 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3231 | fi | |
3232 | fi | |
3233 | ||
13678b20 MF |
3234 | # Check whether --enable-silent-rules was given. |
3235 | if test "${enable_silent_rules+set}" = set; then : | |
3236 | enableval=$enable_silent_rules; | |
3237 | fi | |
3238 | ||
3239 | case $enable_silent_rules in # ((( | |
3240 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3241 | no) AM_DEFAULT_VERBOSITY=1;; | |
3242 | *) AM_DEFAULT_VERBOSITY=0;; | |
3243 | esac | |
3244 | am_make=${MAKE-make} | |
3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3246 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3247 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3248 | $as_echo_n "(cached) " >&6 | |
3249 | else | |
3250 | if $as_echo 'TRUE=$(BAR$(V)) | |
3251 | BAR0=false | |
3252 | BAR1=true | |
3253 | V=1 | |
3254 | am__doit: | |
3255 | @$(TRUE) | |
3256 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3257 | am_cv_make_support_nested_variables=yes | |
3258 | else | |
3259 | am_cv_make_support_nested_variables=no | |
3260 | fi | |
3261 | fi | |
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3263 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3264 | if test $am_cv_make_support_nested_variables = yes; then | |
3265 | AM_V='$(V)' | |
3266 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3267 | else | |
3268 | AM_V=$AM_DEFAULT_VERBOSITY | |
3269 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3270 | fi | |
3271 | AM_BACKSLASH='\' | |
3272 | ||
8ae85421 | 3273 | |
dabbade6 L |
3274 | ac_ext=c |
3275 | ac_cpp='$CPP $CPPFLAGS' | |
3276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
979273e3 | 3279 | if test -n "$ac_tool_prefix"; then |
dabbade6 L |
3280 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3281 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3283 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3284 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3285 | $as_echo_n "(cached) " >&6 |
252b5132 | 3286 | else |
dabbade6 L |
3287 | if test -n "$CC"; then |
3288 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3289 | else |
979273e3 NN |
3290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3291 | for as_dir in $PATH | |
3292 | do | |
3293 | IFS=$as_save_IFS | |
3294 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3295 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3296 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3297 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
3299 | break 2 |
3300 | fi | |
3301 | done | |
81ecdfbb RW |
3302 | done |
3303 | IFS=$as_save_IFS | |
979273e3 | 3304 | |
252b5132 RH |
3305 | fi |
3306 | fi | |
dabbade6 L |
3307 | CC=$ac_cv_prog_CC |
3308 | if test -n "$CC"; then | |
81ecdfbb RW |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3310 | $as_echo "$CC" >&6; } | |
252b5132 | 3311 | else |
81ecdfbb RW |
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3313 | $as_echo "no" >&6; } | |
979273e3 NN |
3314 | fi |
3315 | ||
81ecdfbb | 3316 | |
252b5132 | 3317 | fi |
dabbade6 L |
3318 | if test -z "$ac_cv_prog_CC"; then |
3319 | ac_ct_CC=$CC | |
3320 | # Extract the first word of "gcc", so it can be a program name with args. | |
3321 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3323 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3324 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3325 | $as_echo_n "(cached) " >&6 |
979273e3 | 3326 | else |
dabbade6 L |
3327 | if test -n "$ac_ct_CC"; then |
3328 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
979273e3 NN |
3329 | else |
3330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3331 | for as_dir in $PATH | |
3332 | do | |
3333 | IFS=$as_save_IFS | |
3334 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3335 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3337 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
3339 | break 2 |
3340 | fi | |
3341 | done | |
81ecdfbb RW |
3342 | done |
3343 | IFS=$as_save_IFS | |
252b5132 | 3344 | |
979273e3 NN |
3345 | fi |
3346 | fi | |
dabbade6 L |
3347 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3348 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3350 | $as_echo "$ac_ct_CC" >&6; } | |
979273e3 | 3351 | else |
81ecdfbb RW |
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3353 | $as_echo "no" >&6; } | |
979273e3 | 3354 | fi |
252b5132 | 3355 | |
81ecdfbb RW |
3356 | if test "x$ac_ct_CC" = x; then |
3357 | CC="" | |
3358 | else | |
3359 | case $cross_compiling:$ac_tool_warned in | |
3360 | yes:) | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3362 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3363 | ac_tool_warned=yes ;; | |
3364 | esac | |
3365 | CC=$ac_ct_CC | |
3366 | fi | |
979273e3 | 3367 | else |
dabbade6 | 3368 | CC="$ac_cv_prog_CC" |
979273e3 | 3369 | fi |
252b5132 | 3370 | |
dabbade6 | 3371 | if test -z "$CC"; then |
81ecdfbb RW |
3372 | if test -n "$ac_tool_prefix"; then |
3373 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
dabbade6 | 3374 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3376 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3377 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3378 | $as_echo_n "(cached) " >&6 |
252b5132 | 3379 | else |
dabbade6 L |
3380 | if test -n "$CC"; then |
3381 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3382 | else |
979273e3 NN |
3383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3384 | for as_dir in $PATH | |
3385 | do | |
3386 | IFS=$as_save_IFS | |
3387 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3388 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3390 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
3392 | break 2 |
3393 | fi | |
3394 | done | |
81ecdfbb RW |
3395 | done |
3396 | IFS=$as_save_IFS | |
979273e3 | 3397 | |
252b5132 RH |
3398 | fi |
3399 | fi | |
dabbade6 L |
3400 | CC=$ac_cv_prog_CC |
3401 | if test -n "$CC"; then | |
81ecdfbb RW |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3403 | $as_echo "$CC" >&6; } | |
252b5132 | 3404 | else |
81ecdfbb RW |
3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3406 | $as_echo "no" >&6; } | |
252b5132 RH |
3407 | fi |
3408 | ||
252b5132 | 3409 | |
81ecdfbb | 3410 | fi |
dabbade6 L |
3411 | fi |
3412 | if test -z "$CC"; then | |
3413 | # Extract the first word of "cc", so it can be a program name with args. | |
3414 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3416 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3417 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3418 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
3419 | else |
3420 | if test -n "$CC"; then | |
3421 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3422 | else | |
3423 | ac_prog_rejected=no | |
3424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3425 | for as_dir in $PATH | |
3426 | do | |
3427 | IFS=$as_save_IFS | |
3428 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3429 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3430 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 L |
3431 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3432 | ac_prog_rejected=yes | |
3433 | continue | |
3434 | fi | |
3435 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
3437 | break 2 |
3438 | fi | |
3439 | done | |
81ecdfbb RW |
3440 | done |
3441 | IFS=$as_save_IFS | |
252b5132 | 3442 | |
dabbade6 L |
3443 | if test $ac_prog_rejected = yes; then |
3444 | # We found a bogon in the path, so make sure we never use it. | |
3445 | set dummy $ac_cv_prog_CC | |
3446 | shift | |
3447 | if test $# != 0; then | |
3448 | # We chose a different compiler from the bogus one. | |
3449 | # However, it has the same basename, so the bogon will be chosen | |
3450 | # first if we set CC to just the basename; use the full file name. | |
3451 | shift | |
3452 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3453 | fi | |
3454 | fi | |
3455 | fi | |
3456 | fi | |
3457 | CC=$ac_cv_prog_CC | |
3458 | if test -n "$CC"; then | |
81ecdfbb RW |
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3460 | $as_echo "$CC" >&6; } | |
252b5132 | 3461 | else |
81ecdfbb RW |
3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3463 | $as_echo "no" >&6; } | |
dabbade6 | 3464 | fi |
252b5132 | 3465 | |
81ecdfbb | 3466 | |
dabbade6 L |
3467 | fi |
3468 | if test -z "$CC"; then | |
3469 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3470 | for ac_prog in cl.exe |
dabbade6 L |
3471 | do |
3472 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3473 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3475 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3476 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3477 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
3478 | else |
3479 | if test -n "$CC"; then | |
3480 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3481 | else | |
3482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3483 | for as_dir in $PATH | |
3484 | do | |
3485 | IFS=$as_save_IFS | |
3486 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3487 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3488 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3489 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
3491 | break 2 |
3492 | fi | |
3493 | done | |
81ecdfbb RW |
3494 | done |
3495 | IFS=$as_save_IFS | |
d7040cdb | 3496 | |
dabbade6 L |
3497 | fi |
3498 | fi | |
3499 | CC=$ac_cv_prog_CC | |
3500 | if test -n "$CC"; then | |
81ecdfbb RW |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3502 | $as_echo "$CC" >&6; } | |
dabbade6 | 3503 | else |
81ecdfbb RW |
3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3505 | $as_echo "no" >&6; } | |
dabbade6 | 3506 | fi |
d7040cdb | 3507 | |
81ecdfbb | 3508 | |
dabbade6 L |
3509 | test -n "$CC" && break |
3510 | done | |
3511 | fi | |
3512 | if test -z "$CC"; then | |
3513 | ac_ct_CC=$CC | |
81ecdfbb | 3514 | for ac_prog in cl.exe |
dabbade6 L |
3515 | do |
3516 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3517 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3519 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3520 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3521 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
3522 | else |
3523 | if test -n "$ac_ct_CC"; then | |
3524 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3525 | else | |
3526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3527 | for as_dir in $PATH | |
3528 | do | |
3529 | IFS=$as_save_IFS | |
3530 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3531 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 3533 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
3535 | break 2 |
3536 | fi | |
3537 | done | |
81ecdfbb RW |
3538 | done |
3539 | IFS=$as_save_IFS | |
d7040cdb | 3540 | |
dabbade6 L |
3541 | fi |
3542 | fi | |
3543 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3544 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3546 | $as_echo "$ac_ct_CC" >&6; } | |
dabbade6 | 3547 | else |
81ecdfbb RW |
3548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3549 | $as_echo "no" >&6; } | |
dabbade6 | 3550 | fi |
d7040cdb | 3551 | |
81ecdfbb | 3552 | |
dabbade6 L |
3553 | test -n "$ac_ct_CC" && break |
3554 | done | |
d7040cdb | 3555 | |
81ecdfbb RW |
3556 | if test "x$ac_ct_CC" = x; then |
3557 | CC="" | |
3558 | else | |
3559 | case $cross_compiling:$ac_tool_warned in | |
3560 | yes:) | |
3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3562 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3563 | ac_tool_warned=yes ;; | |
3564 | esac | |
3565 | CC=$ac_ct_CC | |
3566 | fi | |
dabbade6 | 3567 | fi |
d7040cdb | 3568 | |
dabbade6 | 3569 | fi |
d7040cdb SE |
3570 | |
3571 | ||
81ecdfbb RW |
3572 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3573 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3574 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3575 | See \`config.log' for more details" "$LINENO" 5; } | |
d7040cdb | 3576 | |
dabbade6 | 3577 | # Provide some information about the compiler. |
81ecdfbb RW |
3578 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3579 | set X $ac_compile | |
3580 | ac_compiler=$2 | |
3581 | for ac_option in --version -v -V -qversion; do | |
3582 | { { ac_try="$ac_compiler $ac_option >&5" | |
3583 | case "(($ac_try" in | |
3584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3585 | *) ac_try_echo=$ac_try;; | |
3586 | esac | |
3587 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3588 | $as_echo "$ac_try_echo"; } >&5 | |
3589 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
dabbade6 | 3590 | ac_status=$? |
81ecdfbb RW |
3591 | if test -s conftest.err; then |
3592 | sed '10a\ | |
3593 | ... rest of stderr output deleted ... | |
3594 | 10q' conftest.err >conftest.er1 | |
3595 | cat conftest.er1 >&5 | |
81ecdfbb | 3596 | fi |
d0ac1c44 | 3597 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
3598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3599 | test $ac_status = 0; } | |
3600 | done | |
d7040cdb | 3601 | |
ab2af25e AM |
3602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3603 | /* end confdefs.h. */ | |
3604 | ||
3605 | int | |
3606 | main () | |
3607 | { | |
3608 | ||
3609 | ; | |
3610 | return 0; | |
3611 | } | |
3612 | _ACEOF | |
3613 | ac_clean_files_save=$ac_clean_files | |
3614 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3615 | # Try to create an executable without -o first, disregard a.out. | |
3616 | # It will help us diagnose broken compilers, and finding out an intuition | |
3617 | # of exeext. | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3619 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3620 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3621 | ||
3622 | # The possible output files: | |
3623 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3624 | ||
3625 | ac_rmfiles= | |
3626 | for ac_file in $ac_files | |
3627 | do | |
3628 | case $ac_file in | |
3629 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3630 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3631 | esac | |
3632 | done | |
3633 | rm -f $ac_rmfiles | |
3634 | ||
3635 | if { { ac_try="$ac_link_default" | |
3636 | case "(($ac_try" in | |
3637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3638 | *) ac_try_echo=$ac_try;; | |
3639 | esac | |
3640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3641 | $as_echo "$ac_try_echo"; } >&5 | |
3642 | (eval "$ac_link_default") 2>&5 | |
3643 | ac_status=$? | |
3644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3645 | test $ac_status = 0; }; then : | |
3646 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3647 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3648 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3649 | # so that the user can short-circuit this test for compilers unknown to | |
3650 | # Autoconf. | |
3651 | for ac_file in $ac_files '' | |
3652 | do | |
3653 | test -f "$ac_file" || continue | |
3654 | case $ac_file in | |
3655 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3656 | ;; | |
3657 | [ab].out ) | |
3658 | # We found the default executable, but exeext='' is most | |
3659 | # certainly right. | |
3660 | break;; | |
3661 | *.* ) | |
3662 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3663 | then :; else | |
3664 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3665 | fi | |
3666 | # We set ac_cv_exeext here because the later test for it is not | |
3667 | # safe: cross compilers may not add the suffix if given an `-o' | |
3668 | # argument, so we may need to know it at that point already. | |
3669 | # Even if this section looks crufty: it has the advantage of | |
3670 | # actually working. | |
3671 | break;; | |
3672 | * ) | |
3673 | break;; | |
3674 | esac | |
3675 | done | |
3676 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3677 | ||
3678 | else | |
3679 | ac_file='' | |
3680 | fi | |
3681 | if test -z "$ac_file"; then : | |
3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3683 | $as_echo "no" >&6; } | |
3684 | $as_echo "$as_me: failed program was:" >&5 | |
3685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3686 | ||
3687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3689 | as_fn_error 77 "C compiler cannot create executables | |
3690 | See \`config.log' for more details" "$LINENO" 5; } | |
3691 | else | |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3693 | $as_echo "yes" >&6; } | |
3694 | fi | |
3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3696 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3698 | $as_echo "$ac_file" >&6; } | |
3699 | ac_exeext=$ac_cv_exeext | |
3700 | ||
3701 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3702 | ac_clean_files=$ac_clean_files_save | |
3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3704 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3705 | if { { ac_try="$ac_link" | |
3706 | case "(($ac_try" in | |
3707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3708 | *) ac_try_echo=$ac_try;; | |
3709 | esac | |
3710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3711 | $as_echo "$ac_try_echo"; } >&5 | |
3712 | (eval "$ac_link") 2>&5 | |
3713 | ac_status=$? | |
3714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3715 | test $ac_status = 0; }; then : | |
3716 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3717 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3718 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3719 | # `rm'. | |
3720 | for ac_file in conftest.exe conftest conftest.*; do | |
3721 | test -f "$ac_file" || continue | |
3722 | case $ac_file in | |
3723 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3724 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3725 | break;; | |
3726 | * ) break;; | |
3727 | esac | |
3728 | done | |
3729 | else | |
3730 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3731 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3732 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3733 | See \`config.log' for more details" "$LINENO" 5; } | |
3734 | fi | |
3735 | rm -f conftest conftest$ac_cv_exeext | |
3736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3737 | $as_echo "$ac_cv_exeext" >&6; } | |
3738 | ||
3739 | rm -f conftest.$ac_ext | |
3740 | EXEEXT=$ac_cv_exeext | |
3741 | ac_exeext=$EXEEXT | |
3742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3743 | /* end confdefs.h. */ | |
3744 | #include <stdio.h> | |
3745 | int | |
3746 | main () | |
3747 | { | |
3748 | FILE *f = fopen ("conftest.out", "w"); | |
3749 | return ferror (f) || fclose (f) != 0; | |
3750 | ||
3751 | ; | |
3752 | return 0; | |
3753 | } | |
3754 | _ACEOF | |
3755 | ac_clean_files="$ac_clean_files conftest.out" | |
3756 | # Check that the compiler produces executables we can run. If not, either | |
3757 | # the compiler is broken, or we cross compile. | |
3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3759 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3760 | if test "$cross_compiling" != yes; then | |
3761 | { { ac_try="$ac_link" | |
3762 | case "(($ac_try" in | |
3763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3764 | *) ac_try_echo=$ac_try;; | |
3765 | esac | |
3766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3767 | $as_echo "$ac_try_echo"; } >&5 | |
3768 | (eval "$ac_link") 2>&5 | |
3769 | ac_status=$? | |
3770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3771 | test $ac_status = 0; } | |
3772 | if { ac_try='./conftest$ac_cv_exeext' | |
3773 | { { case "(($ac_try" in | |
3774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3775 | *) ac_try_echo=$ac_try;; | |
3776 | esac | |
3777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3778 | $as_echo "$ac_try_echo"; } >&5 | |
3779 | (eval "$ac_try") 2>&5 | |
3780 | ac_status=$? | |
3781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3782 | test $ac_status = 0; }; }; then | |
3783 | cross_compiling=no | |
3784 | else | |
3785 | if test "$cross_compiling" = maybe; then | |
3786 | cross_compiling=yes | |
3787 | else | |
3788 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3789 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3790 | as_fn_error $? "cannot run C compiled programs. | |
3791 | If you meant to cross compile, use \`--host'. | |
3792 | See \`config.log' for more details" "$LINENO" 5; } | |
3793 | fi | |
3794 | fi | |
3795 | fi | |
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3797 | $as_echo "$cross_compiling" >&6; } | |
3798 | ||
3799 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3800 | ac_clean_files=$ac_clean_files_save | |
3801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3802 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3803 | if ${ac_cv_objext+:} false; then : | |
3804 | $as_echo_n "(cached) " >&6 | |
3805 | else | |
3806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3807 | /* end confdefs.h. */ | |
3808 | ||
3809 | int | |
3810 | main () | |
3811 | { | |
3812 | ||
3813 | ; | |
3814 | return 0; | |
3815 | } | |
3816 | _ACEOF | |
3817 | rm -f conftest.o conftest.obj | |
3818 | if { { ac_try="$ac_compile" | |
3819 | case "(($ac_try" in | |
3820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3821 | *) ac_try_echo=$ac_try;; | |
3822 | esac | |
3823 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3824 | $as_echo "$ac_try_echo"; } >&5 | |
3825 | (eval "$ac_compile") 2>&5 | |
3826 | ac_status=$? | |
3827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3828 | test $ac_status = 0; }; then : | |
3829 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3830 | test -f "$ac_file" || continue; | |
3831 | case $ac_file in | |
3832 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3833 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3834 | break;; | |
3835 | esac | |
3836 | done | |
3837 | else | |
3838 | $as_echo "$as_me: failed program was:" >&5 | |
3839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3840 | ||
3841 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3842 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3843 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3844 | See \`config.log' for more details" "$LINENO" 5; } | |
3845 | fi | |
3846 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3847 | fi | |
3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3849 | $as_echo "$ac_cv_objext" >&6; } | |
3850 | OBJEXT=$ac_cv_objext | |
3851 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3853 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3854 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3855 | $as_echo_n "(cached) " >&6 |
252b5132 | 3856 | else |
81ecdfbb | 3857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 3858 | /* end confdefs.h. */ |
d7040cdb | 3859 | |
dabbade6 L |
3860 | int |
3861 | main () | |
3862 | { | |
3863 | #ifndef __GNUC__ | |
3864 | choke me | |
3865 | #endif | |
d7040cdb | 3866 | |
dabbade6 L |
3867 | ; |
3868 | return 0; | |
3869 | } | |
3870 | _ACEOF | |
81ecdfbb | 3871 | if ac_fn_c_try_compile "$LINENO"; then : |
dabbade6 | 3872 | ac_compiler_gnu=yes |
d7040cdb | 3873 | else |
81ecdfbb | 3874 | ac_compiler_gnu=no |
dabbade6 | 3875 | fi |
81ecdfbb | 3876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
dabbade6 | 3877 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 3878 | |
dabbade6 | 3879 | fi |
81ecdfbb RW |
3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3881 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3882 | if test $ac_compiler_gnu = yes; then | |
3883 | GCC=yes | |
3884 | else | |
3885 | GCC= | |
3886 | fi | |
dabbade6 L |
3887 | ac_test_CFLAGS=${CFLAGS+set} |
3888 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3890 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3891 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
3892 | $as_echo_n "(cached) " >&6 |
3893 | else | |
3894 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3895 | ac_c_werror_flag=yes | |
3896 | ac_cv_prog_cc_g=no | |
3897 | CFLAGS="-g" | |
3898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dabbade6 | 3899 | /* end confdefs.h. */ |
d7040cdb | 3900 | |
dabbade6 L |
3901 | int |
3902 | main () | |
3903 | { | |
d7040cdb | 3904 | |
dabbade6 L |
3905 | ; |
3906 | return 0; | |
3907 | } | |
3908 | _ACEOF | |
81ecdfbb | 3909 | if ac_fn_c_try_compile "$LINENO"; then : |
dabbade6 L |
3910 | ac_cv_prog_cc_g=yes |
3911 | else | |
81ecdfbb RW |
3912 | CFLAGS="" |
3913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3914 | /* end confdefs.h. */ | |
d7040cdb | 3915 | |
81ecdfbb RW |
3916 | int |
3917 | main () | |
3918 | { | |
3919 | ||
3920 | ; | |
3921 | return 0; | |
3922 | } | |
3923 | _ACEOF | |
3924 | if ac_fn_c_try_compile "$LINENO"; then : | |
3925 | ||
3926 | else | |
3927 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3928 | CFLAGS="-g" | |
3929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3930 | /* end confdefs.h. */ | |
3931 | ||
3932 | int | |
3933 | main () | |
3934 | { | |
3935 | ||
3936 | ; | |
3937 | return 0; | |
3938 | } | |
3939 | _ACEOF | |
3940 | if ac_fn_c_try_compile "$LINENO"; then : | |
3941 | ac_cv_prog_cc_g=yes | |
3942 | fi | |
3943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dabbade6 | 3944 | fi |
81ecdfbb | 3945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
dabbade6 | 3946 | fi |
81ecdfbb RW |
3947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3948 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3949 | fi | |
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3951 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
dabbade6 L |
3952 | if test "$ac_test_CFLAGS" = set; then |
3953 | CFLAGS=$ac_save_CFLAGS | |
3954 | elif test $ac_cv_prog_cc_g = yes; then | |
3955 | if test "$GCC" = yes; then | |
3956 | CFLAGS="-g -O2" | |
3957 | else | |
3958 | CFLAGS="-g" | |
3959 | fi | |
3960 | else | |
3961 | if test "$GCC" = yes; then | |
3962 | CFLAGS="-O2" | |
3963 | else | |
3964 | CFLAGS= | |
3965 | fi | |
3966 | fi | |
81ecdfbb RW |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3968 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3969 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3970 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3971 | else |
81ecdfbb | 3972 | ac_cv_prog_cc_c89=no |
dabbade6 | 3973 | ac_save_CC=$CC |
81ecdfbb | 3974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 L |
3975 | /* end confdefs.h. */ |
3976 | #include <stdarg.h> | |
3977 | #include <stdio.h> | |
d0ac1c44 | 3978 | struct stat; |
dabbade6 L |
3979 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3980 | struct buf { int x; }; | |
3981 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3982 | static char *e (p, i) | |
3983 | char **p; | |
3984 | int i; | |
3985 | { | |
3986 | return p[i]; | |
3987 | } | |
3988 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3989 | { | |
3990 | char *s; | |
3991 | va_list v; | |
3992 | va_start (v,p); | |
3993 | s = g (p, va_arg (v,int)); | |
3994 | va_end (v); | |
3995 | return s; | |
3996 | } | |
d7040cdb | 3997 | |
dabbade6 L |
3998 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3999 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4000 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4001 | as 'x'. The following induces an error, until -std is added to get |
dabbade6 L |
4002 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4003 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4004 | that's true only with -std. */ |
dabbade6 | 4005 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
d7040cdb | 4006 | |
81ecdfbb RW |
4007 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4008 | inside strings and character constants. */ | |
4009 | #define FOO(x) 'x' | |
4010 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4011 | ||
dabbade6 L |
4012 | int test (int i, double x); |
4013 | struct s1 {int (*f) (int a);}; | |
4014 | struct s2 {int (*f) (double a);}; | |
4015 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4016 | int argc; | |
4017 | char **argv; | |
4018 | int | |
4019 | main () | |
4020 | { | |
4021 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4022 | ; | |
4023 | return 0; | |
4024 | } | |
4025 | _ACEOF | |
81ecdfbb RW |
4026 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4027 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
dabbade6 L |
4028 | do |
4029 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4030 | if ac_fn_c_try_compile "$LINENO"; then : |
4031 | ac_cv_prog_cc_c89=$ac_arg | |
d7040cdb | 4032 | fi |
81ecdfbb RW |
4033 | rm -f core conftest.err conftest.$ac_objext |
4034 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
dabbade6 | 4035 | done |
81ecdfbb | 4036 | rm -f conftest.$ac_ext |
dabbade6 | 4037 | CC=$ac_save_CC |
d7040cdb | 4038 | |
dabbade6 | 4039 | fi |
81ecdfbb RW |
4040 | # AC_CACHE_VAL |
4041 | case "x$ac_cv_prog_cc_c89" in | |
4042 | x) | |
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4044 | $as_echo "none needed" >&6; } ;; | |
4045 | xno) | |
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4047 | $as_echo "unsupported" >&6; } ;; | |
252b5132 | 4048 | *) |
81ecdfbb RW |
4049 | CC="$CC $ac_cv_prog_cc_c89" |
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4051 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
dabbade6 | 4052 | esac |
81ecdfbb | 4053 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
ac48eca1 | 4054 | |
dabbade6 | 4055 | fi |
252b5132 | 4056 | |
dabbade6 L |
4057 | ac_ext=c |
4058 | ac_cpp='$CPP $CPPFLAGS' | |
4059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4062 | |
d0ac1c44 SM |
4063 | ac_ext=c |
4064 | ac_cpp='$CPP $CPPFLAGS' | |
4065 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4066 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4067 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4069 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4070 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4071 | $as_echo_n "(cached) " >&6 | |
4072 | else | |
4073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4074 | /* end confdefs.h. */ | |
4075 | ||
4076 | int | |
4077 | main () | |
4078 | { | |
4079 | ||
4080 | ; | |
4081 | return 0; | |
4082 | } | |
4083 | _ACEOF | |
4084 | # Make sure it works both with $CC and with simple cc. | |
4085 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4086 | # compilers refuse to overwrite an existing .o file with -o, | |
4087 | # though they will create one. | |
4088 | am_cv_prog_cc_c_o=yes | |
4089 | for am_i in 1 2; do | |
4090 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4091 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4092 | ac_status=$? | |
4093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4094 | (exit $ac_status); } \ | |
4095 | && test -f conftest2.$ac_objext; then | |
4096 | : OK | |
4097 | else | |
4098 | am_cv_prog_cc_c_o=no | |
4099 | break | |
4100 | fi | |
4101 | done | |
4102 | rm -f core conftest* | |
4103 | unset am_i | |
4104 | fi | |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4106 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4107 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4108 | # Losing compiler, so override with the script. | |
4109 | # FIXME: It is wrong to rewrite CC. | |
4110 | # But if we don't then we get into trouble of one sort or another. | |
4111 | # A longer-term fix would be to have automake use am__CC in this case, | |
4112 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4113 | CC="$am_aux_dir/compile $CC" | |
4114 | fi | |
4115 | ac_ext=c | |
4116 | ac_cpp='$CPP $CPPFLAGS' | |
4117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4120 | ||
ab2af25e AM |
4121 | DEPDIR="${am__leading_dot}deps" |
4122 | ||
4123 | ac_config_commands="$ac_config_commands depfiles" | |
4124 | ||
b9583093 AM |
4125 | |
4126 | am_make=${MAKE-make} | |
4127 | cat > confinc << 'END' | |
ab2af25e | 4128 | am__doit: |
b9583093 | 4129 | @echo this is the am__doit target |
ab2af25e AM |
4130 | .PHONY: am__doit |
4131 | END | |
b9583093 AM |
4132 | # If we don't find an include directive, just comment out the code. |
4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4134 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
ab2af25e AM |
4135 | am__include="#" |
4136 | am__quote= | |
b9583093 AM |
4137 | _am_result=none |
4138 | # First try GNU make style include. | |
4139 | echo "include confinc" > confmf | |
4140 | # Ignore all kinds of additional output from 'make'. | |
4141 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4142 | *the\ am__doit\ target*) | |
4143 | am__include=include | |
4144 | am__quote= | |
4145 | _am_result=GNU | |
4146 | ;; | |
631ec08c | 4147 | esac |
b9583093 AM |
4148 | # Now try BSD make style include. |
4149 | if test "$am__include" = "#"; then | |
4150 | echo '.include "confinc"' > confmf | |
4151 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4152 | *the\ am__doit\ target*) | |
4153 | am__include=.include | |
4154 | am__quote="\"" | |
4155 | _am_result=BSD | |
4156 | ;; | |
4157 | esac | |
4158 | fi | |
4159 | ||
4160 | ||
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4162 | $as_echo "$_am_result" >&6; } | |
4163 | rm -f confinc confmf | |
ab2af25e AM |
4164 | |
4165 | # Check whether --enable-dependency-tracking was given. | |
4166 | if test "${enable_dependency_tracking+set}" = set; then : | |
4167 | enableval=$enable_dependency_tracking; | |
4168 | fi | |
4169 | ||
4170 | if test "x$enable_dependency_tracking" != xno; then | |
4171 | am_depcomp="$ac_aux_dir/depcomp" | |
4172 | AMDEPBACKSLASH='\' | |
4173 | am__nodep='_no' | |
4174 | fi | |
4175 | if test "x$enable_dependency_tracking" != xno; then | |
4176 | AMDEP_TRUE= | |
4177 | AMDEP_FALSE='#' | |
4178 | else | |
4179 | AMDEP_TRUE='#' | |
4180 | AMDEP_FALSE= | |
4181 | fi | |
4182 | ||
4183 | ||
4184 | ||
4185 | depcc="$CC" am_compiler_list= | |
4186 | ||
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4188 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4189 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4190 | $as_echo_n "(cached) " >&6 | |
4191 | else | |
4192 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4193 | # We make a subdir and do the tests there. Otherwise we can end up | |
4194 | # making bogus files that we don't know about and never remove. For | |
4195 | # instance it was reported that on HP-UX the gcc test will end up | |
4196 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4197 | # in D". | |
4198 | rm -rf conftest.dir | |
4199 | mkdir conftest.dir | |
4200 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4201 | # using a relative directory. | |
4202 | cp "$am_depcomp" conftest.dir | |
4203 | cd conftest.dir | |
4204 | # We will build objects and dependencies in a subdirectory because | |
4205 | # it helps to detect inapplicable dependency modes. For instance | |
4206 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4207 | # side effect of compilation, but ICC will put the dependencies in | |
4208 | # the current directory while Tru64 will put them in the object | |
4209 | # directory. | |
4210 | mkdir sub | |
4211 | ||
4212 | am_cv_CC_dependencies_compiler_type=none | |
4213 | if test "$am_compiler_list" = ""; then | |
4214 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4215 | fi | |
4216 | am__universal=false | |
4217 | case " $depcc " in #( | |
4218 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4219 | esac | |
4220 | ||
4221 | for depmode in $am_compiler_list; do | |
4222 | # Setup a source with many dependencies, because some compilers | |
4223 | # like to wrap large dependency lists on column 80 (with \), and | |
4224 | # we should not choose a depcomp mode which is confused by this. | |
4225 | # | |
4226 | # We need to recreate these files for each test, as the compiler may | |
4227 | # overwrite some of them when testing with obscure command lines. | |
4228 | # This happens at least with the AIX C compiler. | |
4229 | : > sub/conftest.c | |
4230 | for i in 1 2 3 4 5 6; do | |
4231 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4232 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4233 | # Solaris 10 /bin/sh. | |
4234 | echo '/* dummy */' > sub/conftst$i.h | |
4235 | done | |
4236 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4237 | ||
4238 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4239 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4240 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4241 | # versions had trouble with output in subdirs. | |
4242 | am__obj=sub/conftest.${OBJEXT-o} | |
4243 | am__minus_obj="-o $am__obj" | |
4244 | case $depmode in | |
4245 | gcc) | |
4246 | # This depmode causes a compiler race in universal mode. | |
4247 | test "$am__universal" = false || continue | |
4248 | ;; | |
4249 | nosideeffect) | |
4250 | # After this tag, mechanisms are not by side-effect, so they'll | |
4251 | # only be used when explicitly requested. | |
4252 | if test "x$enable_dependency_tracking" = xyes; then | |
4253 | continue | |
4254 | else | |
4255 | break | |
4256 | fi | |
4257 | ;; | |
4258 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4259 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4260 | # not run yet. These depmodes are late enough in the game, and | |
4261 | # so weak that their functioning should not be impacted. | |
4262 | am__obj=conftest.${OBJEXT-o} | |
4263 | am__minus_obj= | |
4264 | ;; | |
4265 | none) break ;; | |
4266 | esac | |
4267 | if depmode=$depmode \ | |
4268 | source=sub/conftest.c object=$am__obj \ | |
4269 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4270 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4271 | >/dev/null 2>conftest.err && | |
4272 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4273 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4274 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4275 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4276 | # icc doesn't choke on unknown options, it will just issue warnings | |
4277 | # or remarks (even with -Werror). So we grep stderr for any message | |
4278 | # that says an option was ignored or not supported. | |
4279 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4280 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4281 | # The diagnosis changed in icc 8.0: | |
4282 | # icc: Command line remark: option '-MP' not supported | |
4283 | if (grep 'ignoring option' conftest.err || | |
4284 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4285 | am_cv_CC_dependencies_compiler_type=$depmode | |
4286 | break | |
4287 | fi | |
4288 | fi | |
4289 | done | |
4290 | ||
4291 | cd .. | |
4292 | rm -rf conftest.dir | |
4293 | else | |
4294 | am_cv_CC_dependencies_compiler_type=none | |
4295 | fi | |
4296 | ||
4297 | fi | |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4299 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4300 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4301 | ||
4302 | if | |
4303 | test "x$enable_dependency_tracking" != xno \ | |
4304 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4305 | am__fastdepCC_TRUE= | |
4306 | am__fastdepCC_FALSE='#' | |
4307 | else | |
4308 | am__fastdepCC_TRUE='#' | |
4309 | am__fastdepCC_FALSE= | |
4310 | fi | |
4311 | ||
4312 | ||
d0ac1c44 | 4313 | |
7357c5b6 AM |
4314 | ac_ext=c |
4315 | ac_cpp='$CPP $CPPFLAGS' | |
4316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4320 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4321 | # On Suns, sometimes $CPP names a directory. |
4322 | if test -n "$CPP" && test -d "$CPP"; then | |
4323 | CPP= | |
4324 | fi | |
4325 | if test -z "$CPP"; then | |
d0ac1c44 | 4326 | if ${ac_cv_prog_CPP+:} false; then : |
81ecdfbb | 4327 | $as_echo_n "(cached) " >&6 |
dabbade6 | 4328 | else |
7357c5b6 AM |
4329 | # Double quotes because CPP needs to be expanded |
4330 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4331 | do | |
4332 | ac_preproc_ok=false | |
4333 | for ac_c_preproc_warn_flag in '' yes | |
dabbade6 | 4334 | do |
7357c5b6 AM |
4335 | # Use a header file that comes with gcc, so configuring glibc |
4336 | # with a fresh cross-compiler works. | |
4337 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4338 | # <limits.h> exists even on freestanding compilers. | |
4339 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4340 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4342 | /* end confdefs.h. */ |
4343 | #ifdef __STDC__ | |
4344 | # include <limits.h> | |
4345 | #else | |
4346 | # include <assert.h> | |
4347 | #endif | |
4348 | Syntax error | |
4349 | _ACEOF | |
81ecdfbb | 4350 | if ac_fn_c_try_cpp "$LINENO"; then : |
dabbade6 | 4351 | |
81ecdfbb | 4352 | else |
7357c5b6 AM |
4353 | # Broken: fails on valid input. |
4354 | continue | |
252b5132 | 4355 | fi |
d0ac1c44 | 4356 | rm -f conftest.err conftest.i conftest.$ac_ext |
7357c5b6 | 4357 | |
81ecdfbb | 4358 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4359 | # can be detected and how. |
81ecdfbb | 4360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4361 | /* end confdefs.h. */ |
4362 | #include <ac_nonexistent.h> | |
4363 | _ACEOF | |
81ecdfbb | 4364 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4365 | # Broken: success on invalid input. |
4366 | continue | |
dabbade6 | 4367 | else |
7357c5b6 AM |
4368 | # Passes both tests. |
4369 | ac_preproc_ok=: | |
4370 | break | |
dabbade6 | 4371 | fi |
d0ac1c44 | 4372 | rm -f conftest.err conftest.i conftest.$ac_ext |
dabbade6 | 4373 | |
d7040cdb | 4374 | done |
7357c5b6 | 4375 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
d0ac1c44 | 4376 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb | 4377 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4378 | break |
4379 | fi | |
4380 | ||
4381 | done | |
4382 | ac_cv_prog_CPP=$CPP | |
d7040cdb SE |
4383 | |
4384 | fi | |
7357c5b6 AM |
4385 | CPP=$ac_cv_prog_CPP |
4386 | else | |
4387 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4388 | fi |
81ecdfbb RW |
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4390 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4391 | ac_preproc_ok=false |
4392 | for ac_c_preproc_warn_flag in '' yes | |
4393 | do | |
4394 | # Use a header file that comes with gcc, so configuring glibc | |
4395 | # with a fresh cross-compiler works. | |
4396 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4397 | # <limits.h> exists even on freestanding compilers. | |
4398 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4399 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4401 | /* end confdefs.h. */ |
4402 | #ifdef __STDC__ | |
4403 | # include <limits.h> | |
4404 | #else | |
4405 | # include <assert.h> | |
4406 | #endif | |
4407 | Syntax error | |
4408 | _ACEOF | |
81ecdfbb | 4409 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4410 | |
81ecdfbb | 4411 | else |
7357c5b6 AM |
4412 | # Broken: fails on valid input. |
4413 | continue | |
d7040cdb | 4414 | fi |
d0ac1c44 | 4415 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4416 | |
81ecdfbb | 4417 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4418 | # can be detected and how. |
81ecdfbb | 4419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4420 | /* end confdefs.h. */ |
4421 | #include <ac_nonexistent.h> | |
4422 | _ACEOF | |
81ecdfbb | 4423 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4424 | # Broken: success on invalid input. |
4425 | continue | |
dabbade6 | 4426 | else |
7357c5b6 AM |
4427 | # Passes both tests. |
4428 | ac_preproc_ok=: | |
4429 | break | |
4430 | fi | |
d0ac1c44 | 4431 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4432 | |
7357c5b6 AM |
4433 | done |
4434 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4435 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb RW |
4436 | if $ac_preproc_ok; then : |
4437 | ||
4438 | else | |
4439 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4440 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4441 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4442 | See \`config.log' for more details" "$LINENO" 5; } | |
81ecdfbb RW |
4443 | fi |
4444 | ||
4445 | ac_ext=c | |
4446 | ac_cpp='$CPP $CPPFLAGS' | |
4447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4450 | ||
4451 | ||
4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4453 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 4454 | if ${ac_cv_path_GREP+:} false; then : |
81ecdfbb RW |
4455 | $as_echo_n "(cached) " >&6 |
4456 | else | |
4457 | if test -z "$GREP"; then | |
4458 | ac_path_GREP_found=false | |
4459 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4461 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4462 | do | |
4463 | IFS=$as_save_IFS | |
4464 | test -z "$as_dir" && as_dir=. | |
4465 | for ac_prog in grep ggrep; do | |
4466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4467 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4468 | as_fn_executable_p "$ac_path_GREP" || continue |
81ecdfbb RW |
4469 | # Check for GNU ac_path_GREP and select it if it is found. |
4470 | # Check for GNU $ac_path_GREP | |
4471 | case `"$ac_path_GREP" --version 2>&1` in | |
4472 | *GNU*) | |
4473 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4474 | *) | |
4475 | ac_count=0 | |
4476 | $as_echo_n 0123456789 >"conftest.in" | |
4477 | while : | |
4478 | do | |
4479 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4480 | mv "conftest.tmp" "conftest.in" | |
4481 | cp "conftest.in" "conftest.nl" | |
4482 | $as_echo 'GREP' >> "conftest.nl" | |
4483 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4484 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4485 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4486 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4487 | # Best one so far, save it but keep looking for a better one | |
4488 | ac_cv_path_GREP="$ac_path_GREP" | |
4489 | ac_path_GREP_max=$ac_count | |
4490 | fi | |
4491 | # 10*(2^10) chars as input seems more than enough | |
4492 | test $ac_count -gt 10 && break | |
4493 | done | |
4494 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4495 | esac | |
4496 | ||
4497 | $ac_path_GREP_found && break 3 | |
4498 | done | |
4499 | done | |
4500 | done | |
4501 | IFS=$as_save_IFS | |
4502 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 4503 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb | 4504 | fi |
dabbade6 | 4505 | else |
81ecdfbb | 4506 | ac_cv_path_GREP=$GREP |
7357c5b6 | 4507 | fi |
d7040cdb | 4508 | |
81ecdfbb RW |
4509 | fi |
4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4511 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4512 | GREP="$ac_cv_path_GREP" | |
d7040cdb SE |
4513 | |
4514 | ||
81ecdfbb RW |
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4516 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 4517 | if ${ac_cv_path_EGREP+:} false; then : |
81ecdfbb | 4518 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4519 | else |
81ecdfbb RW |
4520 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4521 | then ac_cv_path_EGREP="$GREP -E" | |
4522 | else | |
4523 | if test -z "$EGREP"; then | |
4524 | ac_path_EGREP_found=false | |
4525 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4527 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4528 | do | |
4529 | IFS=$as_save_IFS | |
4530 | test -z "$as_dir" && as_dir=. | |
4531 | for ac_prog in egrep; do | |
4532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4533 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4534 | as_fn_executable_p "$ac_path_EGREP" || continue |
81ecdfbb RW |
4535 | # Check for GNU ac_path_EGREP and select it if it is found. |
4536 | # Check for GNU $ac_path_EGREP | |
4537 | case `"$ac_path_EGREP" --version 2>&1` in | |
4538 | *GNU*) | |
4539 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4540 | *) | |
4541 | ac_count=0 | |
4542 | $as_echo_n 0123456789 >"conftest.in" | |
4543 | while : | |
4544 | do | |
4545 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4546 | mv "conftest.tmp" "conftest.in" | |
4547 | cp "conftest.in" "conftest.nl" | |
4548 | $as_echo 'EGREP' >> "conftest.nl" | |
4549 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4550 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4551 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4552 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4553 | # Best one so far, save it but keep looking for a better one | |
4554 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4555 | ac_path_EGREP_max=$ac_count | |
7357c5b6 | 4556 | fi |
81ecdfbb RW |
4557 | # 10*(2^10) chars as input seems more than enough |
4558 | test $ac_count -gt 10 && break | |
4559 | done | |
4560 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4561 | esac | |
4562 | ||
4563 | $ac_path_EGREP_found && break 3 | |
4564 | done | |
4565 | done | |
4566 | done | |
4567 | IFS=$as_save_IFS | |
4568 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 4569 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4570 | fi |
4571 | else | |
4572 | ac_cv_path_EGREP=$EGREP | |
4573 | fi | |
4574 | ||
4575 | fi | |
7357c5b6 | 4576 | fi |
81ecdfbb RW |
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4578 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4579 | EGREP="$ac_cv_path_EGREP" | |
d7040cdb SE |
4580 | |
4581 | ||
81ecdfbb RW |
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4583 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 4584 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb | 4585 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4586 | else |
81ecdfbb | 4587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4588 | /* end confdefs.h. */ |
4589 | #include <stdlib.h> | |
4590 | #include <stdarg.h> | |
4591 | #include <string.h> | |
4592 | #include <float.h> | |
d7040cdb | 4593 | |
7357c5b6 AM |
4594 | int |
4595 | main () | |
4596 | { | |
d7040cdb | 4597 | |
7357c5b6 AM |
4598 | ; |
4599 | return 0; | |
4600 | } | |
4601 | _ACEOF | |
81ecdfbb | 4602 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4603 | ac_cv_header_stdc=yes |
4604 | else | |
81ecdfbb | 4605 | ac_cv_header_stdc=no |
7357c5b6 | 4606 | fi |
81ecdfbb | 4607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4608 | |
7357c5b6 AM |
4609 | if test $ac_cv_header_stdc = yes; then |
4610 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4612 | /* end confdefs.h. */ |
4613 | #include <string.h> | |
d7040cdb | 4614 | |
7357c5b6 AM |
4615 | _ACEOF |
4616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4617 | $EGREP "memchr" >/dev/null 2>&1; then : |
4618 | ||
7357c5b6 AM |
4619 | else |
4620 | ac_cv_header_stdc=no | |
4621 | fi | |
4622 | rm -f conftest* | |
d7040cdb | 4623 | |
7357c5b6 | 4624 | fi |
d7040cdb | 4625 | |
7357c5b6 AM |
4626 | if test $ac_cv_header_stdc = yes; then |
4627 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4629 | /* end confdefs.h. */ |
4630 | #include <stdlib.h> | |
d7040cdb | 4631 | |
7357c5b6 AM |
4632 | _ACEOF |
4633 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4634 | $EGREP "free" >/dev/null 2>&1; then : |
4635 | ||
7357c5b6 AM |
4636 | else |
4637 | ac_cv_header_stdc=no | |
4638 | fi | |
4639 | rm -f conftest* | |
d7040cdb | 4640 | |
7357c5b6 | 4641 | fi |
d7040cdb | 4642 | |
7357c5b6 AM |
4643 | if test $ac_cv_header_stdc = yes; then |
4644 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4645 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4646 | : |
4647 | else | |
81ecdfbb | 4648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4649 | /* end confdefs.h. */ |
4650 | #include <ctype.h> | |
81ecdfbb | 4651 | #include <stdlib.h> |
7357c5b6 AM |
4652 | #if ((' ' & 0x0FF) == 0x020) |
4653 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4654 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4655 | #else | |
4656 | # define ISLOWER(c) \ | |
4657 | (('a' <= (c) && (c) <= 'i') \ | |
4658 | || ('j' <= (c) && (c) <= 'r') \ | |
4659 | || ('s' <= (c) && (c) <= 'z')) | |
4660 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4661 | #endif | |
d7040cdb | 4662 | |
7357c5b6 AM |
4663 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4664 | int | |
4665 | main () | |
4666 | { | |
4667 | int i; | |
4668 | for (i = 0; i < 256; i++) | |
4669 | if (XOR (islower (i), ISLOWER (i)) | |
4670 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4671 | return 2; |
4672 | return 0; | |
7357c5b6 AM |
4673 | } |
4674 | _ACEOF | |
81ecdfbb | 4675 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4676 | |
81ecdfbb RW |
4677 | else |
4678 | ac_cv_header_stdc=no | |
7357c5b6 | 4679 | fi |
81ecdfbb RW |
4680 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4681 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4682 | fi |
81ecdfbb | 4683 | |
7357c5b6 AM |
4684 | fi |
4685 | fi | |
81ecdfbb RW |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4687 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4688 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4689 | |
81ecdfbb | 4690 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4691 | |
7357c5b6 | 4692 | fi |
d7040cdb | 4693 | |
7357c5b6 | 4694 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4695 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4696 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4697 | do : |
4698 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4699 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4700 | " | |
d0ac1c44 | 4701 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7357c5b6 | 4702 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4703 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4704 | _ACEOF |
d7040cdb | 4705 | |
7357c5b6 | 4706 | fi |
d7040cdb | 4707 | |
7357c5b6 | 4708 | done |
d7040cdb SE |
4709 | |
4710 | ||
4711 | ||
81ecdfbb | 4712 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
d0ac1c44 | 4713 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7357c5b6 AM |
4714 | MINIX=yes |
4715 | else | |
4716 | MINIX= | |
4717 | fi | |
d7040cdb SE |
4718 | |
4719 | ||
7357c5b6 | 4720 | if test "$MINIX" = yes; then |
d7040cdb | 4721 | |
81ecdfbb | 4722 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
dabbade6 | 4723 | |
252b5132 | 4724 | |
81ecdfbb | 4725 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4726 | |
4727 | ||
81ecdfbb | 4728 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4729 | |
7357c5b6 | 4730 | fi |
d7040cdb SE |
4731 | |
4732 | ||
81ecdfbb RW |
4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4734 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 4735 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
81ecdfbb | 4736 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 4737 | else |
81ecdfbb | 4738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4739 | /* end confdefs.h. */ |
ac48eca1 | 4740 | |
d0ac1c44 SM |
4741 | # define __EXTENSIONS__ 1 |
4742 | $ac_includes_default | |
7357c5b6 AM |
4743 | int |
4744 | main () | |
4745 | { | |
87e6d782 | 4746 | |
7357c5b6 AM |
4747 | ; |
4748 | return 0; | |
4749 | } | |
4750 | _ACEOF | |
81ecdfbb | 4751 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4752 | ac_cv_safe_to_define___extensions__=yes |
4753 | else | |
81ecdfbb | 4754 | ac_cv_safe_to_define___extensions__=no |
7357c5b6 | 4755 | fi |
81ecdfbb | 4756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 4757 | fi |
81ecdfbb RW |
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4759 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 4760 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4761 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
ac48eca1 | 4762 | |
81ecdfbb | 4763 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d7040cdb | 4764 | |
81ecdfbb RW |
4765 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
4766 | ||
4767 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4768 | ||
4769 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
d7040cdb | 4770 | |
ac48eca1 | 4771 | |
ac48eca1 | 4772 | |
ac48eca1 | 4773 | |
87e6d782 | 4774 | |
7357c5b6 AM |
4775 | if test -n "$ac_tool_prefix"; then |
4776 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4777 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4779 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4780 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 4781 | $as_echo_n "(cached) " >&6 |
dabbade6 | 4782 | else |
7357c5b6 AM |
4783 | if test -n "$AR"; then |
4784 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4785 | else | |
4786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4787 | for as_dir in $PATH | |
4788 | do | |
4789 | IFS=$as_save_IFS | |
4790 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4791 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 4793 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 4794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4795 | break 2 |
4796 | fi | |
4797 | done | |
81ecdfbb RW |
4798 | done |
4799 | IFS=$as_save_IFS | |
ac48eca1 | 4800 | |
7357c5b6 AM |
4801 | fi |
4802 | fi | |
4803 | AR=$ac_cv_prog_AR | |
4804 | if test -n "$AR"; then | |
81ecdfbb RW |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4806 | $as_echo "$AR" >&6; } | |
dabbade6 | 4807 | else |
81ecdfbb RW |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4809 | $as_echo "no" >&6; } | |
dabbade6 | 4810 | fi |
6be7c12c | 4811 | |
81ecdfbb | 4812 | |
7357c5b6 AM |
4813 | fi |
4814 | if test -z "$ac_cv_prog_AR"; then | |
4815 | ac_ct_AR=$AR | |
4816 | # Extract the first word of "ar", so it can be a program name with args. | |
4817 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4819 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4820 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 4821 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4822 | else |
4823 | if test -n "$ac_ct_AR"; then | |
4824 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4825 | else | |
4826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4827 | for as_dir in $PATH | |
4828 | do | |
4829 | IFS=$as_save_IFS | |
4830 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4831 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4832 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 4833 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 4834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4835 | break 2 |
4836 | fi | |
4837 | done | |
81ecdfbb RW |
4838 | done |
4839 | IFS=$as_save_IFS | |
7357c5b6 AM |
4840 | |
4841 | fi | |
4842 | fi | |
4843 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4844 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
4846 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 4847 | else |
81ecdfbb RW |
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4849 | $as_echo "no" >&6; } | |
7357c5b6 AM |
4850 | fi |
4851 | ||
81ecdfbb RW |
4852 | if test "x$ac_ct_AR" = x; then |
4853 | AR="" | |
4854 | else | |
4855 | case $cross_compiling:$ac_tool_warned in | |
4856 | yes:) | |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4858 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4859 | ac_tool_warned=yes ;; | |
4860 | esac | |
4861 | AR=$ac_ct_AR | |
4862 | fi | |
7357c5b6 AM |
4863 | else |
4864 | AR="$ac_cv_prog_AR" | |
4865 | fi | |
4866 | ||
4867 | if test -n "$ac_tool_prefix"; then | |
4868 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4869 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4871 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4872 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 4873 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4874 | else |
4875 | if test -n "$RANLIB"; then | |
4876 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4877 | else | |
4878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4879 | for as_dir in $PATH | |
4880 | do | |
4881 | IFS=$as_save_IFS | |
4882 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4883 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 4885 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 4886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4887 | break 2 |
4888 | fi | |
4889 | done | |
81ecdfbb RW |
4890 | done |
4891 | IFS=$as_save_IFS | |
7357c5b6 AM |
4892 | |
4893 | fi | |
4894 | fi | |
4895 | RANLIB=$ac_cv_prog_RANLIB | |
4896 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4898 | $as_echo "$RANLIB" >&6; } | |
7357c5b6 | 4899 | else |
81ecdfbb RW |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4901 | $as_echo "no" >&6; } | |
7357c5b6 AM |
4902 | fi |
4903 | ||
81ecdfbb | 4904 | |
7357c5b6 AM |
4905 | fi |
4906 | if test -z "$ac_cv_prog_RANLIB"; then | |
4907 | ac_ct_RANLIB=$RANLIB | |
4908 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4909 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4911 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4912 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 4913 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4914 | else |
4915 | if test -n "$ac_ct_RANLIB"; then | |
4916 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4917 | else | |
4918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4919 | for as_dir in $PATH | |
4920 | do | |
4921 | IFS=$as_save_IFS | |
4922 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4923 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 4925 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 4926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
4927 | break 2 |
4928 | fi | |
4929 | done | |
81ecdfbb RW |
4930 | done |
4931 | IFS=$as_save_IFS | |
7357c5b6 | 4932 | |
7357c5b6 AM |
4933 | fi |
4934 | fi | |
4935 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4936 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4938 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7357c5b6 | 4939 | else |
81ecdfbb RW |
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4941 | $as_echo "no" >&6; } | |
7357c5b6 AM |
4942 | fi |
4943 | ||
81ecdfbb RW |
4944 | if test "x$ac_ct_RANLIB" = x; then |
4945 | RANLIB=":" | |
4946 | else | |
4947 | case $cross_compiling:$ac_tool_warned in | |
4948 | yes:) | |
4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4950 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4951 | ac_tool_warned=yes ;; | |
4952 | esac | |
4953 | RANLIB=$ac_ct_RANLIB | |
4954 | fi | |
7357c5b6 AM |
4955 | else |
4956 | RANLIB="$ac_cv_prog_RANLIB" | |
4957 | fi | |
4958 | ||
4959 | ||
81ecdfbb RW |
4960 | # Check whether --enable-shared was given. |
4961 | if test "${enable_shared+set}" = set; then : | |
4962 | enableval=$enable_shared; p=${PACKAGE-default} | |
7357c5b6 AM |
4963 | case $enableval in |
4964 | yes) enable_shared=yes ;; | |
4965 | no) enable_shared=no ;; | |
4966 | *) | |
4967 | enable_shared=no | |
4968 | # Look at the argument we got. We use all the common list separators. | |
4969 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4970 | for pkg in $enableval; do | |
4971 | IFS="$lt_save_ifs" | |
4972 | if test "X$pkg" = "X$p"; then | |
4973 | enable_shared=yes | |
4974 | fi | |
4975 | done | |
4976 | IFS="$lt_save_ifs" | |
4977 | ;; | |
4978 | esac | |
4979 | else | |
4980 | enable_shared=no | |
81ecdfbb RW |
4981 | fi |
4982 | ||
7357c5b6 AM |
4983 | |
4984 | ||
4985 | ||
4986 | ||
4987 | ||
4988 | ||
4989 | ||
4990 | ||
4991 | ||
1927a18f L |
4992 | case `pwd` in |
4993 | *\ * | *\ *) | |
81ecdfbb RW |
4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4995 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
1927a18f | 4996 | esac |
7357c5b6 AM |
4997 | |
4998 | ||
7357c5b6 | 4999 | |
3725885a RW |
5000 | macro_version='2.2.7a' |
5001 | macro_revision='1.3134' | |
7357c5b6 AM |
5002 | |
5003 | ||
5004 | ||
5005 | ||
5006 | ||
5007 | ||
7357c5b6 AM |
5008 | |
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | ||
5014 | ||
1927a18f | 5015 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 5016 | |
3725885a RW |
5017 | # Backslashify metacharacters that are still active within |
5018 | # double-quoted strings. | |
5019 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5020 | ||
5021 | # Same as above, but do not quote variable references. | |
5022 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5023 | ||
5024 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5025 | # double_quote_subst'ed string. | |
5026 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5027 | ||
5028 | # Sed substitution to delay expansion of an escaped single quote. | |
5029 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5030 | ||
5031 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5032 | no_glob_subst='s/\*/\\\*/g' | |
5033 | ||
5034 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5035 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5036 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5037 | ||
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5039 | $as_echo_n "checking how to print strings... " >&6; } | |
5040 | # Test print first, because it will be a builtin if present. | |
5041 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5042 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5043 | ECHO='print -r --' | |
5044 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5045 | ECHO='printf %s\n' | |
5046 | else | |
5047 | # Use this function as a fallback that always works. | |
5048 | func_fallback_echo () | |
5049 | { | |
5050 | eval 'cat <<_LTECHO_EOF | |
5051 | $1 | |
5052 | _LTECHO_EOF' | |
5053 | } | |
5054 | ECHO='func_fallback_echo' | |
5055 | fi | |
5056 | ||
5057 | # func_echo_all arg... | |
5058 | # Invoke $ECHO with all args, space-separated. | |
5059 | func_echo_all () | |
5060 | { | |
5061 | $ECHO "" | |
5062 | } | |
5063 | ||
5064 | case "$ECHO" in | |
5065 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5066 | $as_echo "printf" >&6; } ;; | |
5067 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5068 | $as_echo "print -r" >&6; } ;; | |
5069 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5070 | $as_echo "cat" >&6; } ;; | |
5071 | esac | |
5072 | ||
5073 | ||
5074 | ||
5075 | ||
5076 | ||
5077 | ||
5078 | ||
5079 | ||
5080 | ||
5081 | ||
5082 | ||
5083 | ||
5084 | ||
5085 | ||
81ecdfbb RW |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5087 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 5088 | if ${ac_cv_path_SED+:} false; then : |
81ecdfbb | 5089 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 5090 | else |
81ecdfbb RW |
5091 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5092 | for ac_i in 1 2 3 4 5 6 7; do | |
5093 | ac_script="$ac_script$as_nl$ac_script" | |
5094 | done | |
5095 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5096 | { ac_script=; unset ac_script;} | |
5097 | if test -z "$SED"; then | |
5098 | ac_path_SED_found=false | |
5099 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5101 | for as_dir in $PATH |
5102 | do | |
5103 | IFS=$as_save_IFS | |
5104 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5105 | for ac_prog in sed gsed; do |
7357c5b6 | 5106 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb | 5107 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
d0ac1c44 | 5108 | as_fn_executable_p "$ac_path_SED" || continue |
81ecdfbb RW |
5109 | # Check for GNU ac_path_SED and select it if it is found. |
5110 | # Check for GNU $ac_path_SED | |
5111 | case `"$ac_path_SED" --version 2>&1` in | |
5112 | *GNU*) | |
5113 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5114 | *) | |
5115 | ac_count=0 | |
5116 | $as_echo_n 0123456789 >"conftest.in" | |
5117 | while : | |
5118 | do | |
5119 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5120 | mv "conftest.tmp" "conftest.in" | |
5121 | cp "conftest.in" "conftest.nl" | |
5122 | $as_echo '' >> "conftest.nl" | |
5123 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5124 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5125 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5126 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5127 | # Best one so far, save it but keep looking for a better one | |
5128 | ac_cv_path_SED="$ac_path_SED" | |
5129 | ac_path_SED_max=$ac_count | |
5130 | fi | |
5131 | # 10*(2^10) chars as input seems more than enough | |
5132 | test $ac_count -gt 10 && break | |
5133 | done | |
5134 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5135 | esac | |
5136 | ||
5137 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5138 | done |
5139 | done | |
81ecdfbb | 5140 | done |
7357c5b6 | 5141 | IFS=$as_save_IFS |
81ecdfbb | 5142 | if test -z "$ac_cv_path_SED"; then |
d0ac1c44 | 5143 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
7357c5b6 | 5144 | fi |
81ecdfbb RW |
5145 | else |
5146 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
5147 | fi |
5148 | ||
81ecdfbb RW |
5149 | fi |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5151 | $as_echo "$ac_cv_path_SED" >&6; } | |
5152 | SED="$ac_cv_path_SED" | |
5153 | rm -f conftest.sed | |
7357c5b6 AM |
5154 | |
5155 | test -z "$SED" && SED=sed | |
5156 | Xsed="$SED -e 1s/^X//" | |
5157 | ||
5158 | ||
5159 | ||
5160 | ||
5161 | ||
5162 | ||
5163 | ||
5164 | ||
5165 | ||
5166 | ||
5167 | ||
81ecdfbb RW |
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5169 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 5170 | if ${ac_cv_path_FGREP+:} false; then : |
81ecdfbb | 5171 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 5172 | else |
81ecdfbb RW |
5173 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5174 | then ac_cv_path_FGREP="$GREP -F" | |
5175 | else | |
5176 | if test -z "$FGREP"; then | |
5177 | ac_path_FGREP_found=false | |
5178 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5180 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5181 | do | |
5182 | IFS=$as_save_IFS | |
5183 | test -z "$as_dir" && as_dir=. | |
5184 | for ac_prog in fgrep; do | |
5185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5186 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5187 | as_fn_executable_p "$ac_path_FGREP" || continue |
81ecdfbb RW |
5188 | # Check for GNU ac_path_FGREP and select it if it is found. |
5189 | # Check for GNU $ac_path_FGREP | |
5190 | case `"$ac_path_FGREP" --version 2>&1` in | |
5191 | *GNU*) | |
5192 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5193 | *) | |
5194 | ac_count=0 | |
5195 | $as_echo_n 0123456789 >"conftest.in" | |
5196 | while : | |
5197 | do | |
5198 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5199 | mv "conftest.tmp" "conftest.in" | |
5200 | cp "conftest.in" "conftest.nl" | |
5201 | $as_echo 'FGREP' >> "conftest.nl" | |
5202 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5203 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5204 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5205 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5206 | # Best one so far, save it but keep looking for a better one | |
5207 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5208 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5209 | fi |
81ecdfbb RW |
5210 | # 10*(2^10) chars as input seems more than enough |
5211 | test $ac_count -gt 10 && break | |
5212 | done | |
5213 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5214 | esac | |
5215 | ||
5216 | $ac_path_FGREP_found && break 3 | |
5217 | done | |
5218 | done | |
5219 | done | |
5220 | IFS=$as_save_IFS | |
5221 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 5222 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
5223 | fi |
5224 | else | |
5225 | ac_cv_path_FGREP=$FGREP | |
5226 | fi | |
5227 | ||
5228 | fi | |
7357c5b6 | 5229 | fi |
81ecdfbb RW |
5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5231 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5232 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5233 | |
5234 | ||
5235 | test -z "$GREP" && GREP=grep | |
d7040cdb | 5236 | |
d7040cdb | 5237 | |
d7040cdb | 5238 | |
ac48eca1 AO |
5239 | |
5240 | ||
5241 | ||
ac48eca1 | 5242 | |
ac48eca1 | 5243 | |
ac48eca1 | 5244 | |
ac48eca1 | 5245 | |
ac48eca1 | 5246 | |
ac48eca1 | 5247 | |
ac48eca1 | 5248 | |
ac48eca1 | 5249 | |
ac48eca1 | 5250 | |
ac48eca1 | 5251 | |
dabbade6 L |
5252 | |
5253 | ||
5254 | ||
81ecdfbb RW |
5255 | # Check whether --with-gnu-ld was given. |
5256 | if test "${with_gnu_ld+set}" = set; then : | |
5257 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
dabbade6 L |
5258 | else |
5259 | with_gnu_ld=no | |
81ecdfbb RW |
5260 | fi |
5261 | ||
dabbade6 L |
5262 | ac_prog=ld |
5263 | if test "$GCC" = yes; then | |
5264 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5266 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
dabbade6 L |
5267 | case $host in |
5268 | *-*-mingw*) | |
5269 | # gcc leaves a trailing carriage return which upsets mingw | |
5270 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5271 | *) | |
5272 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5273 | esac | |
5274 | case $ac_prog in | |
5275 | # Accept absolute paths. | |
5276 | [\\/]* | ?:[\\/]*) | |
5277 | re_direlt='/[^/][^/]*/\.\./' | |
5278 | # Canonicalize the pathname of ld | |
5279 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5280 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5281 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5282 | done | |
5283 | test -z "$LD" && LD="$ac_prog" | |
5284 | ;; | |
5285 | "") | |
5286 | # If it fails, then pretend we aren't using GCC. | |
5287 | ac_prog=ld | |
5288 | ;; | |
5289 | *) | |
5290 | # If it is relative, then search for the first ld in PATH. | |
5291 | with_gnu_ld=unknown | |
5292 | ;; | |
5293 | esac | |
5294 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5296 | $as_echo_n "checking for GNU ld... " >&6; } | |
dabbade6 | 5297 | else |
81ecdfbb RW |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5299 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
dabbade6 | 5300 | fi |
d0ac1c44 | 5301 | if ${lt_cv_path_LD+:} false; then : |
81ecdfbb | 5302 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5303 | else |
dabbade6 L |
5304 | if test -z "$LD"; then |
5305 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5306 | for ac_dir in $PATH; do | |
5307 | IFS="$lt_save_ifs" | |
5308 | test -z "$ac_dir" && ac_dir=. | |
5309 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5310 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5311 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5312 | # but apparently some variants of GNU ld only accept -v. | |
5313 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5314 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5315 | *GNU* | *'with BFD'*) | |
5316 | test "$with_gnu_ld" != no && break | |
5317 | ;; | |
5318 | *) | |
5319 | test "$with_gnu_ld" != yes && break | |
5320 | ;; | |
5321 | esac | |
5322 | fi | |
5323 | done | |
5324 | IFS="$lt_save_ifs" | |
ac48eca1 | 5325 | else |
dabbade6 | 5326 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ac48eca1 AO |
5327 | fi |
5328 | fi | |
dabbade6 L |
5329 | |
5330 | LD="$lt_cv_path_LD" | |
5331 | if test -n "$LD"; then | |
81ecdfbb RW |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5333 | $as_echo "$LD" >&6; } | |
ac48eca1 | 5334 | else |
81ecdfbb RW |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5336 | $as_echo "no" >&6; } | |
ac48eca1 | 5337 | fi |
d0ac1c44 | 5338 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
81ecdfbb RW |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5340 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 5341 | if ${lt_cv_prog_gnu_ld+:} false; then : |
81ecdfbb | 5342 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5343 | else |
dabbade6 L |
5344 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5345 | case `$LD -v 2>&1 </dev/null` in | |
5346 | *GNU* | *'with BFD'*) | |
5347 | lt_cv_prog_gnu_ld=yes | |
5348 | ;; | |
5349 | *) | |
5350 | lt_cv_prog_gnu_ld=no | |
5351 | ;; | |
5352 | esac | |
ac48eca1 | 5353 | fi |
81ecdfbb RW |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5355 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
dabbade6 | 5356 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
5357 | |
5358 | ||
5359 | ||
5360 | ||
5361 | ||
5362 | ||
5363 | ||
5364 | ||
5365 | ||
81ecdfbb RW |
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5367 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 5368 | if ${lt_cv_path_NM+:} false; then : |
81ecdfbb | 5369 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5370 | else |
dabbade6 | 5371 | if test -n "$NM"; then |
b9004024 NA |
5372 | # Let the user override the nm to test. |
5373 | lt_nm_to_check="$NM" | |
5374 | else | |
5375 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5376 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5377 | lt_nm_to_check="$lt_nm_to_check nm" | |
5378 | fi | |
5379 | fi | |
caf606c9 | 5380 | for lt_tmp_nm in "$lt_nm_to_check"; do |
b9004024 NA |
5381 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5382 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5383 | IFS="$lt_save_ifs" | |
5384 | test -z "$ac_dir" && ac_dir=. | |
caf606c9 NA |
5385 | # Strip out any user-provided options from the nm to test twice, |
5386 | # the first time to test to see if nm (rather than its options) has | |
5387 | # an explicit path, the second time to yield a file which can be | |
5388 | # nm'ed itself. | |
5389 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" | |
5390 | case "$tmp_nm_path" in | |
b9004024 NA |
5391 | */*|*\\*) tmp_nm="$lt_tmp_nm";; |
5392 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
5393 | esac | |
caf606c9 NA |
5394 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" |
5395 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then | |
b9004024 NA |
5396 | # Check to see if the nm accepts a BSD-compat flag. |
5397 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5398 | # nm: unknown option "B" ignored | |
caf606c9 | 5399 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
5400 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" |
5401 | break | |
5402 | ;; | |
5403 | *) | |
caf606c9 | 5404 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
5405 | *$tmp_nm*) |
5406 | lt_cv_path_NM="$tmp_nm -p" | |
5407 | break | |
5408 | ;; | |
5409 | *) | |
5410 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5411 | continue # so that we can try to find one that supports BSD flags | |
5412 | ;; | |
5413 | esac | |
5414 | ;; | |
5415 | esac | |
5416 | fi | |
5417 | done | |
5418 | IFS="$lt_save_ifs" | |
5419 | done | |
5420 | : ${lt_cv_path_NM=no} | |
ac48eca1 | 5421 | fi |
81ecdfbb RW |
5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5423 | $as_echo "$lt_cv_path_NM" >&6; } | |
dabbade6 L |
5424 | if test "$lt_cv_path_NM" != "no"; then |
5425 | NM="$lt_cv_path_NM" | |
ac48eca1 | 5426 | else |
dabbade6 | 5427 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
5428 | if test -n "$DUMPBIN"; then : |
5429 | # Let the user override the test. | |
5430 | else | |
5431 | if test -n "$ac_tool_prefix"; then | |
5432 | for ac_prog in dumpbin "link -dump" | |
dabbade6 L |
5433 | do |
5434 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5435 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5437 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5438 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
81ecdfbb | 5439 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5440 | else |
dabbade6 L |
5441 | if test -n "$DUMPBIN"; then |
5442 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ac48eca1 | 5443 | else |
979273e3 NN |
5444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5445 | for as_dir in $PATH | |
5446 | do | |
5447 | IFS=$as_save_IFS | |
5448 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5449 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5450 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 5451 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
5453 | break 2 |
5454 | fi | |
5455 | done | |
81ecdfbb RW |
5456 | done |
5457 | IFS=$as_save_IFS | |
979273e3 | 5458 | |
ac48eca1 AO |
5459 | fi |
5460 | fi | |
dabbade6 L |
5461 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5462 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5464 | $as_echo "$DUMPBIN" >&6; } | |
ac48eca1 | 5465 | else |
81ecdfbb RW |
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5467 | $as_echo "no" >&6; } | |
ac48eca1 AO |
5468 | fi |
5469 | ||
81ecdfbb | 5470 | |
dabbade6 L |
5471 | test -n "$DUMPBIN" && break |
5472 | done | |
ac48eca1 | 5473 | fi |
dabbade6 L |
5474 | if test -z "$DUMPBIN"; then |
5475 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 5476 | for ac_prog in dumpbin "link -dump" |
dabbade6 L |
5477 | do |
5478 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5479 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5481 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5482 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
81ecdfbb | 5483 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 5484 | else |
dabbade6 L |
5485 | if test -n "$ac_ct_DUMPBIN"; then |
5486 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5487 | else |
5488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5489 | for as_dir in $PATH | |
5490 | do | |
5491 | IFS=$as_save_IFS | |
5492 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5493 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5494 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 5495 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5497 | break 2 |
252b5132 | 5498 | fi |
d7040cdb | 5499 | done |
81ecdfbb RW |
5500 | done |
5501 | IFS=$as_save_IFS | |
252b5132 | 5502 | |
d7040cdb SE |
5503 | fi |
5504 | fi | |
dabbade6 L |
5505 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5506 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5508 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
d7040cdb | 5509 | else |
81ecdfbb RW |
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5511 | $as_echo "no" >&6; } | |
d7040cdb | 5512 | fi |
4867be41 | 5513 | |
81ecdfbb | 5514 | |
dabbade6 | 5515 | test -n "$ac_ct_DUMPBIN" && break |
d7040cdb | 5516 | done |
32fba81d | 5517 | |
81ecdfbb RW |
5518 | if test "x$ac_ct_DUMPBIN" = x; then |
5519 | DUMPBIN=":" | |
5520 | else | |
5521 | case $cross_compiling:$ac_tool_warned in | |
5522 | yes:) | |
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5524 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5525 | ac_tool_warned=yes ;; | |
5526 | esac | |
5527 | DUMPBIN=$ac_ct_DUMPBIN | |
5528 | fi | |
d7040cdb | 5529 | fi |
979273e3 | 5530 | |
3725885a RW |
5531 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5532 | *COFF*) | |
5533 | DUMPBIN="$DUMPBIN -symbols" | |
5534 | ;; | |
5535 | *) | |
5536 | DUMPBIN=: | |
5537 | ;; | |
5538 | esac | |
5539 | fi | |
979273e3 | 5540 | |
dabbade6 L |
5541 | if test "$DUMPBIN" != ":"; then |
5542 | NM="$DUMPBIN" | |
5543 | fi | |
5544 | fi | |
5545 | test -z "$NM" && NM=nm | |
ac48eca1 | 5546 | |
252b5132 | 5547 | |
252b5132 | 5548 | |
979273e3 | 5549 | |
ac48eca1 | 5550 | |
d7040cdb | 5551 | |
81ecdfbb RW |
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5553 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 5554 | if ${lt_cv_nm_interface+:} false; then : |
81ecdfbb | 5555 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
5556 | else |
5557 | lt_cv_nm_interface="BSD nm" | |
5558 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 5559 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
dabbade6 L |
5560 | (eval "$ac_compile" 2>conftest.err) |
5561 | cat conftest.err >&5 | |
3725885a | 5562 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
dabbade6 L |
5563 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5564 | cat conftest.err >&5 | |
3725885a | 5565 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
dabbade6 L |
5566 | cat conftest.out >&5 |
5567 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5568 | lt_cv_nm_interface="MS dumpbin" | |
5569 | fi | |
5570 | rm -f conftest* | |
5571 | fi | |
81ecdfbb RW |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5573 | $as_echo "$lt_cv_nm_interface" >&6; } | |
d7040cdb | 5574 | |
81ecdfbb RW |
5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5576 | $as_echo_n "checking whether ln -s works... " >&6; } | |
dabbade6 L |
5577 | LN_S=$as_ln_s |
5578 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5580 | $as_echo "yes" >&6; } | |
dabbade6 | 5581 | else |
81ecdfbb RW |
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5583 | $as_echo "no, using $LN_S" >&6; } | |
dabbade6 L |
5584 | fi |
5585 | ||
5586 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5588 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 5589 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
81ecdfbb | 5590 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
5591 | else |
5592 | i=0 | |
5593 | teststring="ABCD" | |
5594 | ||
5595 | case $build_os in | |
5596 | msdosdjgpp*) | |
5597 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5598 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5599 | # during glob expansion). Even if it were fixed, the result of this | |
5600 | # check would be larger than it should be. | |
5601 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5602 | ;; | |
5603 | ||
5604 | gnu*) | |
5605 | # Under GNU Hurd, this test is not required because there is | |
5606 | # no limit to the length of command line arguments. | |
5607 | # Libtool will interpret -1 as no limit whatsoever | |
5608 | lt_cv_sys_max_cmd_len=-1; | |
5609 | ;; | |
5610 | ||
1927a18f | 5611 | cygwin* | mingw* | cegcc*) |
dabbade6 L |
5612 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5613 | # about 5 minutes as the teststring grows exponentially. | |
5614 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5615 | # you end up with a "frozen" computer, even though with patience | |
5616 | # the test eventually succeeds (with a max line length of 256k). | |
5617 | # Instead, let's just punt: use the minimum linelength reported by | |
5618 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5619 | lt_cv_sys_max_cmd_len=8192; | |
5620 | ;; | |
5621 | ||
3725885a RW |
5622 | mint*) |
5623 | # On MiNT this can take a long time and run out of memory. | |
5624 | lt_cv_sys_max_cmd_len=8192; | |
5625 | ;; | |
5626 | ||
dabbade6 L |
5627 | amigaos*) |
5628 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5629 | # So we just punt and use a minimum line length of 8192. | |
5630 | lt_cv_sys_max_cmd_len=8192; | |
5631 | ;; | |
5632 | ||
5633 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5634 | # This has been around since 386BSD, at least. Likely further. | |
5635 | if test -x /sbin/sysctl; then | |
5636 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5637 | elif test -x /usr/sbin/sysctl; then | |
5638 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5639 | else | |
5640 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5641 | fi | |
5642 | # And add a safety zone | |
5643 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5644 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5645 | ;; | |
5646 | ||
5647 | interix*) | |
5648 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5649 | lt_cv_sys_max_cmd_len=196608 | |
5650 | ;; | |
5651 | ||
5652 | osf*) | |
5653 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5654 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5655 | # nice to cause kernel panics so lets avoid the loop below. | |
5656 | # First set a reasonable default. | |
5657 | lt_cv_sys_max_cmd_len=16384 | |
5658 | # | |
5659 | if test -x /sbin/sysconfig; then | |
5660 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5661 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5662 | esac | |
5663 | fi | |
5664 | ;; | |
5665 | sco3.2v5*) | |
5666 | lt_cv_sys_max_cmd_len=102400 | |
5667 | ;; | |
5668 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5669 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5670 | if test -n "$kargmax"; then | |
5671 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5672 | else | |
5673 | lt_cv_sys_max_cmd_len=32768 | |
5674 | fi | |
d7040cdb SE |
5675 | ;; |
5676 | *) | |
1927a18f L |
5677 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5678 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
dabbade6 L |
5679 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5680 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5681 | else | |
5682 | # Make teststring a little bigger before we do anything with it. | |
5683 | # a 1K string should be a reasonable start. | |
5684 | for i in 1 2 3 4 5 6 7 8 ; do | |
5685 | teststring=$teststring$teststring | |
5686 | done | |
5687 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5688 | # If test is not a shell built-in, we'll probably end up computing a | |
5689 | # maximum length that is only half of the actual maximum length, but | |
5690 | # we can't tell. | |
3725885a RW |
5691 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5692 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
dabbade6 L |
5693 | test $i != 17 # 1/2 MB should be enough |
5694 | do | |
5695 | i=`expr $i + 1` | |
5696 | teststring=$teststring$teststring | |
5697 | done | |
5698 | # Only check the string length outside the loop. | |
5699 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5700 | teststring= | |
5701 | # Add a significant safety factor because C++ compilers can tack on | |
5702 | # massive amounts of additional arguments before passing them to the | |
5703 | # linker. It appears as though 1/2 is a usable value. | |
5704 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5705 | fi | |
d7040cdb SE |
5706 | ;; |
5707 | esac | |
252b5132 | 5708 | |
dabbade6 | 5709 | fi |
252b5132 | 5710 | |
dabbade6 | 5711 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5713 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
dabbade6 | 5714 | else |
81ecdfbb RW |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5716 | $as_echo "none" >&6; } | |
dabbade6 L |
5717 | fi |
5718 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5719 | |
252b5132 | 5720 | |
979273e3 | 5721 | |
979273e3 | 5722 | |
252b5132 | 5723 | |
252b5132 | 5724 | |
dabbade6 L |
5725 | : ${CP="cp -f"} |
5726 | : ${MV="mv -f"} | |
5727 | : ${RM="rm -f"} | |
252b5132 | 5728 | |
81ecdfbb RW |
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5730 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
dabbade6 L |
5731 | # Try some XSI features |
5732 | xsi_shell=no | |
5733 | ( _lt_dummy="a/b/c" | |
5734 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
1927a18f L |
5735 | = c,a/b,, \ |
5736 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5737 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
dabbade6 | 5738 | && xsi_shell=yes |
81ecdfbb RW |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5740 | $as_echo "$xsi_shell" >&6; } | |
252b5132 | 5741 | |
252b5132 | 5742 | |
81ecdfbb RW |
5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5744 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
dabbade6 L |
5745 | lt_shell_append=no |
5746 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5747 | >/dev/null 2>&1 \ | |
5748 | && lt_shell_append=yes | |
81ecdfbb RW |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5750 | $as_echo "$lt_shell_append" >&6; } | |
252b5132 | 5751 | |
ac48eca1 | 5752 | |
dabbade6 L |
5753 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5754 | lt_unset=unset | |
5755 | else | |
5756 | lt_unset=false | |
5757 | fi | |
979273e3 NN |
5758 | |
5759 | ||
5760 | ||
5761 | ||
ac48eca1 | 5762 | |
dabbade6 L |
5763 | # test EBCDIC or ASCII |
5764 | case `echo X|tr X '\101'` in | |
5765 | A) # ASCII based system | |
5766 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5767 | lt_SP2NL='tr \040 \012' | |
5768 | lt_NL2SP='tr \015\012 \040\040' | |
5769 | ;; | |
5770 | *) # EBCDIC based system | |
5771 | lt_SP2NL='tr \100 \n' | |
5772 | lt_NL2SP='tr \r\n \100\100' | |
5773 | ;; | |
5774 | esac | |
9e9b66a9 | 5775 | |
1ad12f97 | 5776 | |
1ad12f97 | 5777 | |
9e9b66a9 | 5778 | |
1ad12f97 | 5779 | |
a541e3ce | 5780 | |
9e9b66a9 | 5781 | |
a2d91340 AC |
5782 | |
5783 | ||
81ecdfbb RW |
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5785 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 5786 | if ${lt_cv_ld_reload_flag+:} false; then : |
81ecdfbb | 5787 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
5788 | else |
5789 | lt_cv_ld_reload_flag='-r' | |
5790 | fi | |
81ecdfbb RW |
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5792 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
dabbade6 L |
5793 | reload_flag=$lt_cv_ld_reload_flag |
5794 | case $reload_flag in | |
5795 | "" | " "*) ;; | |
5796 | *) reload_flag=" $reload_flag" ;; | |
5797 | esac | |
5798 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5799 | case $host_os in | |
5800 | darwin*) | |
5801 | if test "$GCC" = yes; then | |
5802 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5803 | else | |
5804 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5805 | fi | |
5806 | ;; | |
5807 | esac | |
9e9b66a9 AM |
5808 | |
5809 | ||
5810 | ||
252b5132 | 5811 | |
252b5132 | 5812 | |
252b5132 | 5813 | |
252b5132 | 5814 | |
252b5132 | 5815 | |
d7040cdb | 5816 | |
1927a18f L |
5817 | if test -n "$ac_tool_prefix"; then |
5818 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5819 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5821 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5822 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 5823 | $as_echo_n "(cached) " >&6 |
1927a18f L |
5824 | else |
5825 | if test -n "$OBJDUMP"; then | |
5826 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5827 | else | |
5828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5829 | for as_dir in $PATH | |
5830 | do | |
5831 | IFS=$as_save_IFS | |
5832 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5833 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 5835 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
5837 | break 2 |
5838 | fi | |
5839 | done | |
81ecdfbb RW |
5840 | done |
5841 | IFS=$as_save_IFS | |
1927a18f L |
5842 | |
5843 | fi | |
5844 | fi | |
5845 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5846 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5848 | $as_echo "$OBJDUMP" >&6; } | |
1927a18f | 5849 | else |
81ecdfbb RW |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5851 | $as_echo "no" >&6; } | |
1927a18f L |
5852 | fi |
5853 | ||
81ecdfbb | 5854 | |
1927a18f L |
5855 | fi |
5856 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5857 | ac_ct_OBJDUMP=$OBJDUMP | |
5858 | # Extract the first word of "objdump", so it can be a program name with args. | |
5859 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5861 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5862 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
81ecdfbb | 5863 | $as_echo_n "(cached) " >&6 |
1927a18f L |
5864 | else |
5865 | if test -n "$ac_ct_OBJDUMP"; then | |
5866 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5867 | else | |
5868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5869 | for as_dir in $PATH | |
5870 | do | |
5871 | IFS=$as_save_IFS | |
5872 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5873 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5874 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 5875 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
5877 | break 2 |
5878 | fi | |
5879 | done | |
81ecdfbb RW |
5880 | done |
5881 | IFS=$as_save_IFS | |
1927a18f | 5882 | |
1927a18f L |
5883 | fi |
5884 | fi | |
5885 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5886 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5888 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
1927a18f | 5889 | else |
81ecdfbb RW |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5891 | $as_echo "no" >&6; } | |
1927a18f L |
5892 | fi |
5893 | ||
81ecdfbb RW |
5894 | if test "x$ac_ct_OBJDUMP" = x; then |
5895 | OBJDUMP="false" | |
5896 | else | |
5897 | case $cross_compiling:$ac_tool_warned in | |
5898 | yes:) | |
5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5900 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5901 | ac_tool_warned=yes ;; | |
5902 | esac | |
5903 | OBJDUMP=$ac_ct_OBJDUMP | |
5904 | fi | |
1927a18f L |
5905 | else |
5906 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5907 | fi | |
5908 | ||
5909 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5910 | ||
5911 | ||
5912 | ||
5913 | ||
5914 | ||
5915 | ||
5916 | ||
5917 | ||
d7040cdb | 5918 | |
81ecdfbb RW |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5920 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 5921 | if ${lt_cv_deplibs_check_method+:} false; then : |
81ecdfbb | 5922 | $as_echo_n "(cached) " >&6 |
252b5132 | 5923 | else |
dabbade6 L |
5924 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5925 | lt_cv_file_magic_test_file= | |
5926 | lt_cv_deplibs_check_method='unknown' | |
5927 | # Need to set the preceding variable on all platforms that support | |
5928 | # interlibrary dependencies. | |
5929 | # 'none' -- dependencies not supported. | |
5930 | # `unknown' -- same as none, but documents that we really don't know. | |
5931 | # 'pass_all' -- all dependencies passed with no checks. | |
5932 | # 'test_compile' -- check by making test program. | |
5933 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5934 | # which responds to the $file_magic_cmd with a given extended regex. | |
5935 | # If you have `file' or equivalent on your system and you're not sure | |
5936 | # whether `pass_all' will *always* work, you probably want this one. | |
8ae85421 | 5937 | |
dabbade6 | 5938 | case $host_os in |
50e7d84b | 5939 | aix[4-9]*) |
dabbade6 L |
5940 | lt_cv_deplibs_check_method=pass_all |
5941 | ;; | |
979273e3 | 5942 | |
dabbade6 L |
5943 | beos*) |
5944 | lt_cv_deplibs_check_method=pass_all | |
5945 | ;; | |
24443139 | 5946 | |
dabbade6 L |
5947 | bsdi[45]*) |
5948 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5949 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5950 | lt_cv_file_magic_test_file=/shlib/libc.so | |
d7040cdb | 5951 | ;; |
dabbade6 L |
5952 | |
5953 | cygwin*) | |
5954 | # func_win32_libid is a shell function defined in ltmain.sh | |
5955 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5956 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 5957 | ;; |
dabbade6 L |
5958 | |
5959 | mingw* | pw32*) | |
5960 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5961 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5962 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
5963 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5964 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
dabbade6 L |
5965 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5966 | lt_cv_file_magic_cmd='func_win32_libid' | |
5967 | else | |
5968 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5969 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
d7040cdb SE |
5970 | fi |
5971 | ;; | |
dabbade6 | 5972 | |
3725885a | 5973 | cegcc*) |
1927a18f L |
5974 | # use the weaker test based on 'objdump'. See mingw*. |
5975 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5976 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5977 | ;; | |
5978 | ||
dabbade6 L |
5979 | darwin* | rhapsody*) |
5980 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5981 | ;; |
dabbade6 L |
5982 | |
5983 | freebsd* | dragonfly*) | |
5984 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5985 | case $host_cpu in | |
5986 | i*86 ) | |
5987 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5988 | # Let's accept both of them until this is cleared up. | |
5989 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5990 | lt_cv_file_magic_cmd=/usr/bin/file | |
5991 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5992 | ;; | |
5993 | esac | |
5994 | else | |
5995 | lt_cv_deplibs_check_method=pass_all | |
5996 | fi | |
d7040cdb | 5997 | ;; |
dabbade6 L |
5998 | |
5999 | gnu*) | |
6000 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6001 | ;; |
dabbade6 | 6002 | |
3725885a RW |
6003 | haiku*) |
6004 | lt_cv_deplibs_check_method=pass_all | |
6005 | ;; | |
6006 | ||
dabbade6 L |
6007 | hpux10.20* | hpux11*) |
6008 | lt_cv_file_magic_cmd=/usr/bin/file | |
6009 | case $host_cpu in | |
6010 | ia64*) | |
6011 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6012 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6013 | ;; | |
6014 | hppa*64*) | |
3725885a | 6015 | 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]' |
dabbade6 L |
6016 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6017 | ;; | |
6018 | *) | |
3725885a | 6019 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
dabbade6 L |
6020 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6021 | ;; | |
6022 | esac | |
d7040cdb | 6023 | ;; |
24443139 | 6024 | |
dabbade6 L |
6025 | interix[3-9]*) |
6026 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6027 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6028 | ;; | |
24443139 | 6029 | |
dabbade6 L |
6030 | irix5* | irix6* | nonstopux*) |
6031 | case $LD in | |
6032 | *-32|*"-32 ") libmagic=32-bit;; | |
6033 | *-n32|*"-n32 ") libmagic=N32;; | |
6034 | *-64|*"-64 ") libmagic=64-bit;; | |
6035 | *) libmagic=never-match;; | |
6036 | esac | |
6037 | lt_cv_deplibs_check_method=pass_all | |
6038 | ;; | |
8ae85421 | 6039 | |
dabbade6 | 6040 | # This must be Linux ELF. |
6a6859cb | 6041 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
dabbade6 L |
6042 | lt_cv_deplibs_check_method=pass_all |
6043 | ;; | |
24443139 | 6044 | |
dabbade6 L |
6045 | netbsd*) |
6046 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6047 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6048 | else | |
6049 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6050 | fi | |
d7040cdb | 6051 | ;; |
24443139 | 6052 | |
dabbade6 L |
6053 | newos6*) |
6054 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6055 | lt_cv_file_magic_cmd=/usr/bin/file | |
6056 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6057 | ;; | |
d7040cdb | 6058 | |
dabbade6 L |
6059 | *nto* | *qnx*) |
6060 | lt_cv_deplibs_check_method=pass_all | |
6061 | ;; | |
d7040cdb | 6062 | |
dabbade6 L |
6063 | openbsd*) |
6064 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6065 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
d7040cdb | 6066 | else |
dabbade6 | 6067 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
d7040cdb | 6068 | fi |
dabbade6 | 6069 | ;; |
24443139 | 6070 | |
dabbade6 L |
6071 | osf3* | osf4* | osf5*) |
6072 | lt_cv_deplibs_check_method=pass_all | |
6073 | ;; | |
24443139 | 6074 | |
dabbade6 L |
6075 | rdos*) |
6076 | lt_cv_deplibs_check_method=pass_all | |
6077 | ;; | |
81172ff2 | 6078 | |
dabbade6 L |
6079 | solaris*) |
6080 | lt_cv_deplibs_check_method=pass_all | |
6081 | ;; | |
81172ff2 | 6082 | |
dabbade6 L |
6083 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6084 | lt_cv_deplibs_check_method=pass_all | |
6085 | ;; | |
252b5132 | 6086 | |
dabbade6 L |
6087 | sysv4 | sysv4.3*) |
6088 | case $host_vendor in | |
6089 | motorola) | |
6090 | 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]' | |
6091 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6092 | ;; | |
6093 | ncr) | |
6094 | lt_cv_deplibs_check_method=pass_all | |
6095 | ;; | |
6096 | sequent) | |
6097 | lt_cv_file_magic_cmd='/bin/file' | |
6098 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6099 | ;; | |
6100 | sni) | |
6101 | lt_cv_file_magic_cmd='/bin/file' | |
6102 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6103 | lt_cv_file_magic_test_file=/lib/libc.so | |
6104 | ;; | |
6105 | siemens) | |
6106 | lt_cv_deplibs_check_method=pass_all | |
6107 | ;; | |
6108 | pc) | |
6109 | lt_cv_deplibs_check_method=pass_all | |
6110 | ;; | |
6111 | esac | |
6112 | ;; | |
252b5132 | 6113 | |
dabbade6 L |
6114 | tpf*) |
6115 | lt_cv_deplibs_check_method=pass_all | |
6116 | ;; | |
6a6859cb AM |
6117 | vxworks*) |
6118 | # Assume VxWorks cross toolchains are built on Linux, possibly | |
6119 | # as canadian for Windows hosts. | |
6120 | lt_cv_deplibs_check_method=pass_all | |
6121 | ;; | |
dabbade6 | 6122 | esac |
979273e3 | 6123 | |
dabbade6 | 6124 | fi |
81ecdfbb RW |
6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6126 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
dabbade6 L |
6127 | file_magic_cmd=$lt_cv_file_magic_cmd |
6128 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6129 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6130 | |
979273e3 | 6131 | |
979273e3 | 6132 | |
dabbade6 L |
6133 | |
6134 | ||
6135 | ||
6136 | ||
6137 | ||
6138 | ||
6139 | ||
6140 | ||
6141 | ||
a4966cd9 L |
6142 | plugin_option= |
6143 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6144 | for plugin in $plugin_names; do | |
6145 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6146 | if test x$plugin_so = x$plugin; then | |
6147 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6148 | fi | |
6149 | if test x$plugin_so != x$plugin; then | |
6150 | plugin_option="--plugin $plugin_so" | |
6151 | break | |
6152 | fi | |
6153 | done | |
6154 | ||
dabbade6 L |
6155 | if test -n "$ac_tool_prefix"; then |
6156 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6157 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6159 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6160 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 6161 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
6162 | else |
6163 | if test -n "$AR"; then | |
6164 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6165 | else | |
6166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6167 | for as_dir in $PATH | |
6168 | do | |
6169 | IFS=$as_save_IFS | |
6170 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6171 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6173 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 | 6175 | break 2 |
252b5132 | 6176 | fi |
979273e3 | 6177 | done |
81ecdfbb RW |
6178 | done |
6179 | IFS=$as_save_IFS | |
979273e3 | 6180 | |
dabbade6 L |
6181 | fi |
6182 | fi | |
6183 | AR=$ac_cv_prog_AR | |
6184 | if test -n "$AR"; then | |
81ecdfbb RW |
6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6186 | $as_echo "$AR" >&6; } | |
dabbade6 | 6187 | else |
81ecdfbb RW |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6189 | $as_echo "no" >&6; } | |
979273e3 | 6190 | fi |
d7040cdb | 6191 | |
81ecdfbb | 6192 | |
252b5132 | 6193 | fi |
dabbade6 L |
6194 | if test -z "$ac_cv_prog_AR"; then |
6195 | ac_ct_AR=$AR | |
6196 | # Extract the first word of "ar", so it can be a program name with args. | |
6197 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6199 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6200 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 6201 | $as_echo_n "(cached) " >&6 |
979273e3 | 6202 | else |
dabbade6 L |
6203 | if test -n "$ac_ct_AR"; then |
6204 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6205 | else | |
6206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6207 | for as_dir in $PATH | |
6208 | do | |
6209 | IFS=$as_save_IFS | |
6210 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6211 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6213 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6215 | break 2 |
6216 | fi | |
6217 | done | |
81ecdfbb RW |
6218 | done |
6219 | IFS=$as_save_IFS | |
dabbade6 | 6220 | |
dabbade6 L |
6221 | fi |
6222 | fi | |
6223 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6224 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6226 | $as_echo "$ac_ct_AR" >&6; } | |
dabbade6 | 6227 | else |
81ecdfbb RW |
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6229 | $as_echo "no" >&6; } | |
252b5132 RH |
6230 | fi |
6231 | ||
81ecdfbb RW |
6232 | if test "x$ac_ct_AR" = x; then |
6233 | AR="false" | |
6234 | else | |
6235 | case $cross_compiling:$ac_tool_warned in | |
6236 | yes:) | |
6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6238 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6239 | ac_tool_warned=yes ;; | |
6240 | esac | |
6241 | AR=$ac_ct_AR | |
6242 | fi | |
dabbade6 L |
6243 | else |
6244 | AR="$ac_cv_prog_AR" | |
6245 | fi | |
252b5132 | 6246 | |
dabbade6 | 6247 | test -z "$AR" && AR=ar |
a4966cd9 L |
6248 | if test -n "$plugin_option"; then |
6249 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
83b33c6c L |
6250 | touch conftest.c |
6251 | $AR $plugin_option rc conftest.a conftest.c | |
6252 | if test "$?" != 0; then | |
6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
6254 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
6255 | else | |
6256 | AR="$AR $plugin_option" | |
6257 | fi | |
6258 | rm -f conftest.* | |
a4966cd9 L |
6259 | fi |
6260 | fi | |
dabbade6 | 6261 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
252b5132 | 6262 | |
979273e3 | 6263 | |
979273e3 | 6264 | |
979273e3 | 6265 | |
252b5132 | 6266 | |
979273e3 | 6267 | |
979273e3 | 6268 | |
252b5132 | 6269 | |
979273e3 | 6270 | |
979273e3 | 6271 | |
979273e3 | 6272 | |
dabbade6 L |
6273 | if test -n "$ac_tool_prefix"; then |
6274 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6275 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6277 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6278 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 6279 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
6280 | else |
6281 | if test -n "$STRIP"; then | |
6282 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6283 | else | |
6284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6285 | for as_dir in $PATH | |
6286 | do | |
6287 | IFS=$as_save_IFS | |
6288 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6289 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6291 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6293 | break 2 |
6294 | fi | |
6295 | done | |
81ecdfbb RW |
6296 | done |
6297 | IFS=$as_save_IFS | |
979273e3 | 6298 | |
dabbade6 L |
6299 | fi |
6300 | fi | |
6301 | STRIP=$ac_cv_prog_STRIP | |
6302 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6304 | $as_echo "$STRIP" >&6; } | |
dabbade6 | 6305 | else |
81ecdfbb RW |
6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6307 | $as_echo "no" >&6; } | |
dabbade6 | 6308 | fi |
979273e3 | 6309 | |
81ecdfbb | 6310 | |
dabbade6 L |
6311 | fi |
6312 | if test -z "$ac_cv_prog_STRIP"; then | |
6313 | ac_ct_STRIP=$STRIP | |
6314 | # Extract the first word of "strip", so it can be a program name with args. | |
6315 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6317 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6318 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 6319 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
6320 | else |
6321 | if test -n "$ac_ct_STRIP"; then | |
6322 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6323 | else | |
6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6325 | for as_dir in $PATH | |
6326 | do | |
6327 | IFS=$as_save_IFS | |
6328 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6329 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6331 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6333 | break 2 |
6334 | fi | |
6335 | done | |
81ecdfbb RW |
6336 | done |
6337 | IFS=$as_save_IFS | |
979273e3 | 6338 | |
dabbade6 L |
6339 | fi |
6340 | fi | |
6341 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6342 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6344 | $as_echo "$ac_ct_STRIP" >&6; } | |
dabbade6 | 6345 | else |
81ecdfbb RW |
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6347 | $as_echo "no" >&6; } | |
dabbade6 | 6348 | fi |
979273e3 | 6349 | |
81ecdfbb RW |
6350 | if test "x$ac_ct_STRIP" = x; then |
6351 | STRIP=":" | |
6352 | else | |
6353 | case $cross_compiling:$ac_tool_warned in | |
6354 | yes:) | |
6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6356 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6357 | ac_tool_warned=yes ;; | |
6358 | esac | |
6359 | STRIP=$ac_ct_STRIP | |
6360 | fi | |
dabbade6 L |
6361 | else |
6362 | STRIP="$ac_cv_prog_STRIP" | |
6363 | fi | |
979273e3 | 6364 | |
dabbade6 | 6365 | test -z "$STRIP" && STRIP=: |
979273e3 | 6366 | |
d7040cdb | 6367 | |
979273e3 | 6368 | |
d7040cdb | 6369 | |
979273e3 | 6370 | |
979273e3 | 6371 | |
dabbade6 L |
6372 | if test -n "$ac_tool_prefix"; then |
6373 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6374 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6376 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6377 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 6378 | $as_echo_n "(cached) " >&6 |
979273e3 | 6379 | else |
dabbade6 L |
6380 | if test -n "$RANLIB"; then |
6381 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6382 | else | |
6383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6384 | for as_dir in $PATH | |
6385 | do | |
6386 | IFS=$as_save_IFS | |
6387 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6388 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6390 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6392 | break 2 |
6393 | fi | |
6394 | done | |
81ecdfbb RW |
6395 | done |
6396 | IFS=$as_save_IFS | |
979273e3 | 6397 | |
979273e3 | 6398 | fi |
979273e3 | 6399 | fi |
dabbade6 L |
6400 | RANLIB=$ac_cv_prog_RANLIB |
6401 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6403 | $as_echo "$RANLIB" >&6; } | |
dabbade6 | 6404 | else |
81ecdfbb RW |
6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6406 | $as_echo "no" >&6; } | |
dabbade6 | 6407 | fi |
d7040cdb | 6408 | |
81ecdfbb | 6409 | |
d7040cdb | 6410 | fi |
dabbade6 L |
6411 | if test -z "$ac_cv_prog_RANLIB"; then |
6412 | ac_ct_RANLIB=$RANLIB | |
6413 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6414 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6416 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6417 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 6418 | $as_echo_n "(cached) " >&6 |
979273e3 | 6419 | else |
dabbade6 L |
6420 | if test -n "$ac_ct_RANLIB"; then |
6421 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6422 | else | |
6423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6424 | for as_dir in $PATH | |
d7040cdb | 6425 | do |
dabbade6 L |
6426 | IFS=$as_save_IFS |
6427 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6428 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
dabbade6 | 6430 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 | 6432 | break 2 |
979273e3 | 6433 | fi |
dabbade6 | 6434 | done |
81ecdfbb RW |
6435 | done |
6436 | IFS=$as_save_IFS | |
dabbade6 | 6437 | |
979273e3 | 6438 | fi |
dabbade6 L |
6439 | fi |
6440 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6441 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6443 | $as_echo "$ac_ct_RANLIB" >&6; } | |
979273e3 | 6444 | else |
81ecdfbb RW |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6446 | $as_echo "no" >&6; } | |
d7040cdb | 6447 | fi |
d7040cdb | 6448 | |
81ecdfbb RW |
6449 | if test "x$ac_ct_RANLIB" = x; then |
6450 | RANLIB=":" | |
6451 | else | |
6452 | case $cross_compiling:$ac_tool_warned in | |
6453 | yes:) | |
6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6455 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6456 | ac_tool_warned=yes ;; | |
6457 | esac | |
6458 | RANLIB=$ac_ct_RANLIB | |
6459 | fi | |
d7040cdb | 6460 | else |
dabbade6 | 6461 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6462 | fi |
979273e3 | 6463 | |
dabbade6 | 6464 | test -z "$RANLIB" && RANLIB=: |
a4966cd9 L |
6465 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
6466 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6467 | RANLIB="$RANLIB $plugin_option" | |
6468 | fi | |
6469 | fi | |
979273e3 | 6470 | |
252b5132 | 6471 | |
252b5132 | 6472 | |
d7040cdb | 6473 | |
d7040cdb | 6474 | |
d7040cdb | 6475 | |
dabbade6 | 6476 | # Determine commands to create old-style static archives. |
1927a18f | 6477 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
dabbade6 L |
6478 | old_postinstall_cmds='chmod 644 $oldlib' |
6479 | old_postuninstall_cmds= | |
d7040cdb | 6480 | |
dabbade6 L |
6481 | if test -n "$RANLIB"; then |
6482 | case $host_os in | |
6483 | openbsd*) | |
6484 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6485 | ;; | |
6486 | *) | |
6487 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6488 | ;; | |
6489 | esac | |
6490 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb SE |
6491 | fi |
6492 | ||
3725885a RW |
6493 | case $host_os in |
6494 | darwin*) | |
6495 | lock_old_archive_extraction=yes ;; | |
6496 | *) | |
6497 | lock_old_archive_extraction=no ;; | |
6498 | esac | |
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
d7040cdb SE |
6505 | |
6506 | ||
d7040cdb | 6507 | |
d7040cdb | 6508 | |
252b5132 | 6509 | |
d7040cdb | 6510 | |
d7040cdb | 6511 | |
d7040cdb SE |
6512 | |
6513 | ||
6514 | ||
d7040cdb | 6515 | |
d7040cdb | 6516 | |
d7040cdb | 6517 | |
252b5132 | 6518 | |
d7040cdb SE |
6519 | |
6520 | ||
6521 | ||
d7040cdb | 6522 | |
d7040cdb SE |
6523 | |
6524 | ||
6525 | ||
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
dabbade6 L |
6538 | # If no C compiler was specified, use CC. |
6539 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 6540 | |
dabbade6 L |
6541 | # If no C compiler flags were specified, use CFLAGS. |
6542 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 6543 | |
dabbade6 L |
6544 | # Allow CC to be a program name with arguments. |
6545 | compiler=$CC | |
d7040cdb SE |
6546 | |
6547 | ||
dabbade6 | 6548 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6550 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 6551 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
81ecdfbb | 6552 | $as_echo_n "(cached) " >&6 |
dabbade6 | 6553 | else |
d7040cdb | 6554 | |
dabbade6 L |
6555 | # These are sane defaults that work on at least a few old systems. |
6556 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 6557 | |
dabbade6 L |
6558 | # Character class describing NM global symbol codes. |
6559 | symcode='[BCDEGRST]' | |
d7040cdb | 6560 | |
dabbade6 L |
6561 | # Regexp to match symbols that can be accessed directly from C. |
6562 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d7040cdb | 6563 | |
dabbade6 L |
6564 | # Define system-specific variables. |
6565 | case $host_os in | |
6566 | aix*) | |
6567 | symcode='[BCDT]' | |
6568 | ;; | |
1927a18f | 6569 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
6570 | symcode='[ABCDGISTW]' |
6571 | ;; | |
6572 | hpux*) | |
6573 | if test "$host_cpu" = ia64; then | |
6574 | symcode='[ABCDEGRST]' | |
6575 | fi | |
6576 | ;; | |
6577 | irix* | nonstopux*) | |
6578 | symcode='[BCDEGRST]' | |
6579 | ;; | |
6580 | osf*) | |
6581 | symcode='[BCDEGQRST]' | |
6582 | ;; | |
6583 | solaris*) | |
b9004024 | 6584 | symcode='[BCDRT]' |
dabbade6 L |
6585 | ;; |
6586 | sco3.2v5*) | |
6587 | symcode='[DT]' | |
6588 | ;; | |
6589 | sysv4.2uw2*) | |
6590 | symcode='[DT]' | |
6591 | ;; | |
6592 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6593 | symcode='[ABDT]' | |
6594 | ;; | |
6595 | sysv4) | |
6596 | symcode='[DFNSTU]' | |
6597 | ;; | |
6598 | esac | |
6599 | ||
6600 | # If we're using GNU nm, then use its standard symbol codes. | |
6601 | case `$NM -V 2>&1` in | |
6602 | *GNU* | *'with BFD'*) | |
6603 | symcode='[ABCDGIRSTW]' ;; | |
6604 | esac | |
d7040cdb | 6605 | |
dabbade6 L |
6606 | # Transform an extracted symbol line into a proper C declaration. |
6607 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6608 | # so use this general approach. | |
6609 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d7040cdb | 6610 | |
dabbade6 | 6611 | # Transform an extracted symbol line into symbol name and symbol address |
7357c5b6 | 6612 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
1927a18f | 6613 | 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 | 6614 | |
7357c5b6 AM |
6615 | # Handle CRLF in mingw tool chain |
6616 | opt_cr= | |
6617 | case $build_os in | |
6618 | mingw*) | |
6619 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6620 | ;; | |
6621 | esac | |
d7040cdb | 6622 | |
7357c5b6 AM |
6623 | # Try without a prefix underscore, then with it. |
6624 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6625 | |
7357c5b6 AM |
6626 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6627 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6628 | |
7357c5b6 AM |
6629 | # Write the raw and C identifiers. |
6630 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6631 | # Fake it for dumpbin and say T for any non-static function | |
6632 | # and D for any global variable. | |
6633 | # Also find C++ and __fastcall symbols from MSVC++, | |
6634 | # which start with @ or ?. | |
6635 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6636 | " {last_section=section; section=\$ 3};"\ | |
6637 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6638 | " \$ 0!~/External *\|/{next};"\ | |
6639 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6640 | " {if(hide[section]) next};"\ | |
6641 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6642 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6643 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6644 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6645 | " ' prfx=^$ac_symprfx" | |
6646 | else | |
6647 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6648 | fi | |
d7040cdb | 6649 | |
7357c5b6 AM |
6650 | # Check to see that the pipe works correctly. |
6651 | pipe_works=no | |
d7040cdb | 6652 | |
7357c5b6 AM |
6653 | rm -f conftest* |
6654 | cat > conftest.$ac_ext <<_LT_EOF | |
6655 | #ifdef __cplusplus | |
6656 | extern "C" { | |
6657 | #endif | |
6658 | char nm_test_var; | |
6659 | void nm_test_func(void); | |
6660 | void nm_test_func(void){} | |
6661 | #ifdef __cplusplus | |
dabbade6 | 6662 | } |
7357c5b6 AM |
6663 | #endif |
6664 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6665 | _LT_EOF | |
6666 | ||
81ecdfbb | 6667 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6668 | (eval $ac_compile) 2>&5 |
dabbade6 | 6669 | ac_status=$? |
81ecdfbb RW |
6670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6671 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6672 | # Now try to grab the symbols. |
6673 | nlist=conftest.nm | |
3725885a RW |
6674 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6675 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
dabbade6 | 6676 | ac_status=$? |
81ecdfbb RW |
6677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6678 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6679 | # Try sorting and uniquifying the output. |
6680 | if sort "$nlist" | uniq > "$nlist"T; then | |
6681 | mv -f "$nlist"T "$nlist" | |
6682 | else | |
6683 | rm -f "$nlist"T | |
6684 | fi | |
d7040cdb | 6685 | |
7357c5b6 AM |
6686 | # Make sure that we snagged all the symbols we need. |
6687 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6688 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6689 | cat <<_LT_EOF > conftest.$ac_ext | |
6690 | #ifdef __cplusplus | |
6691 | extern "C" { | |
6692 | #endif | |
d7040cdb | 6693 | |
7357c5b6 AM |
6694 | _LT_EOF |
6695 | # Now generate the symbol file. | |
6696 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d7040cdb | 6697 | |
7357c5b6 | 6698 | cat <<_LT_EOF >> conftest.$ac_ext |
d7040cdb | 6699 | |
7357c5b6 AM |
6700 | /* The mapping between symbol names and symbols. */ |
6701 | const struct { | |
6702 | const char *name; | |
6703 | void *address; | |
6704 | } | |
6705 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6706 | { | |
6707 | { "@PROGRAM@", (void *) 0 }, | |
6708 | _LT_EOF | |
6709 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6710 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6711 | {0, (void *) 0} | |
6712 | }; | |
d7040cdb | 6713 | |
7357c5b6 AM |
6714 | /* This works around a problem in FreeBSD linker */ |
6715 | #ifdef FREEBSD_WORKAROUND | |
6716 | static const void *lt_preloaded_setup() { | |
6717 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6718 | } | |
dabbade6 | 6719 | #endif |
d7040cdb | 6720 | |
7357c5b6 | 6721 | #ifdef __cplusplus |
dabbade6 | 6722 | } |
7357c5b6 AM |
6723 | #endif |
6724 | _LT_EOF | |
6725 | # Now try linking the two files. | |
6726 | mv conftest.$ac_objext conftstm.$ac_objext | |
6727 | lt_save_LIBS="$LIBS" | |
6728 | lt_save_CFLAGS="$CFLAGS" | |
6729 | LIBS="conftstm.$ac_objext" | |
6730 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6731 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
6732 | (eval $ac_link) 2>&5 |
6733 | ac_status=$? | |
81ecdfbb RW |
6734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6735 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6736 | pipe_works=yes |
6737 | fi | |
6738 | LIBS="$lt_save_LIBS" | |
6739 | CFLAGS="$lt_save_CFLAGS" | |
6740 | else | |
6741 | echo "cannot find nm_test_func in $nlist" >&5 | |
6742 | fi | |
6743 | else | |
6744 | echo "cannot find nm_test_var in $nlist" >&5 | |
6745 | fi | |
6746 | else | |
6747 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6748 | fi | |
6749 | else | |
6750 | echo "$progname: failed program was:" >&5 | |
6751 | cat conftest.$ac_ext >&5 | |
6752 | fi | |
1927a18f | 6753 | rm -rf conftest* conftst* |
7357c5b6 AM |
6754 | |
6755 | # Do not use the global_symbol_pipe unless it works. | |
6756 | if test "$pipe_works" = yes; then | |
6757 | break | |
6758 | else | |
6759 | lt_cv_sys_global_symbol_pipe= | |
6760 | fi | |
6761 | done | |
d7040cdb | 6762 | |
dabbade6 | 6763 | fi |
7357c5b6 AM |
6764 | |
6765 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6766 | lt_cv_sys_global_symbol_to_cdecl= | |
dabbade6 | 6767 | fi |
7357c5b6 | 6768 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6770 | $as_echo "failed" >&6; } | |
7357c5b6 | 6771 | else |
81ecdfbb RW |
6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6773 | $as_echo "ok" >&6; } | |
dabbade6 | 6774 | fi |
d7040cdb | 6775 | |
d7040cdb | 6776 | |
d7040cdb | 6777 | |
d7040cdb | 6778 | |
d7040cdb | 6779 | |
d7040cdb | 6780 | |
d7040cdb | 6781 | |
d7040cdb | 6782 | |
d7040cdb | 6783 | |
d7040cdb | 6784 | |
d7040cdb | 6785 | |
d7040cdb | 6786 | |
7357c5b6 AM |
6787 | |
6788 | ||
6789 | ||
1927a18f L |
6790 | |
6791 | ||
6792 | ||
6793 | ||
6794 | ||
7357c5b6 AM |
6795 | |
6796 | ||
81ecdfbb RW |
6797 | # Check whether --enable-libtool-lock was given. |
6798 | if test "${enable_libtool_lock+set}" = set; then : | |
6799 | enableval=$enable_libtool_lock; | |
6800 | fi | |
7357c5b6 | 6801 | |
7357c5b6 AM |
6802 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6803 | ||
6804 | # Some flags need to be propagated to the compiler or linker for good | |
6805 | # libtool support. | |
6806 | case $host in | |
6807 | ia64-*-hpux*) | |
6808 | # Find out which ABI we are using. | |
6809 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6810 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6811 | (eval $ac_compile) 2>&5 |
6812 | ac_status=$? | |
81ecdfbb RW |
6813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6814 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6815 | case `/usr/bin/file conftest.$ac_objext` in |
6816 | *ELF-32*) | |
6817 | HPUX_IA64_MODE="32" | |
6818 | ;; | |
6819 | *ELF-64*) | |
6820 | HPUX_IA64_MODE="64" | |
6821 | ;; | |
6822 | esac | |
6823 | fi | |
6824 | rm -rf conftest* | |
6825 | ;; | |
6826 | *-*-irix6*) | |
6827 | # Find out which ABI we are using. | |
3725885a | 6828 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 6829 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6830 | (eval $ac_compile) 2>&5 |
6831 | ac_status=$? | |
81ecdfbb RW |
6832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6833 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6834 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6835 | case `/usr/bin/file conftest.$ac_objext` in | |
6836 | *32-bit*) | |
6837 | LD="${LD-ld} -melf32bsmip" | |
6838 | ;; | |
6839 | *N32*) | |
6840 | LD="${LD-ld} -melf32bmipn32" | |
6841 | ;; | |
6842 | *64-bit*) | |
6843 | LD="${LD-ld} -melf64bmip" | |
6844 | ;; | |
6845 | esac | |
6846 | else | |
6847 | case `/usr/bin/file conftest.$ac_objext` in | |
6848 | *32-bit*) | |
6849 | LD="${LD-ld} -32" | |
6850 | ;; | |
6851 | *N32*) | |
6852 | LD="${LD-ld} -n32" | |
6853 | ;; | |
6854 | *64-bit*) | |
6855 | LD="${LD-ld} -64" | |
6856 | ;; | |
6857 | esac | |
6858 | fi | |
6859 | fi | |
6860 | rm -rf conftest* | |
6861 | ;; | |
6862 | ||
cc9afea3 | 6863 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
6864 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6865 | # Find out which ABI we are using. | |
6866 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6867 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6868 | (eval $ac_compile) 2>&5 |
6869 | ac_status=$? | |
81ecdfbb RW |
6870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6871 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6872 | case `/usr/bin/file conftest.o` in |
6873 | *32-bit*) | |
6874 | case $host in | |
6875 | x86_64-*kfreebsd*-gnu) | |
6876 | LD="${LD-ld} -m elf_i386_fbsd" | |
6877 | ;; | |
6878 | x86_64-*linux*) | |
6d2920c8 L |
6879 | case `/usr/bin/file conftest.o` in |
6880 | *x86-64*) | |
6881 | LD="${LD-ld} -m elf32_x86_64" | |
6882 | ;; | |
6883 | *) | |
6884 | LD="${LD-ld} -m elf_i386" | |
6885 | ;; | |
6886 | esac | |
7357c5b6 | 6887 | ;; |
cc9afea3 AM |
6888 | powerpc64le-*linux*) |
6889 | LD="${LD-ld} -m elf32lppclinux" | |
6890 | ;; | |
6891 | powerpc64-*linux*) | |
7357c5b6 AM |
6892 | LD="${LD-ld} -m elf32ppclinux" |
6893 | ;; | |
6894 | s390x-*linux*) | |
6895 | LD="${LD-ld} -m elf_s390" | |
6896 | ;; | |
6897 | sparc64-*linux*) | |
6898 | LD="${LD-ld} -m elf32_sparc" | |
6899 | ;; | |
6900 | esac | |
6901 | ;; | |
6902 | *64-bit*) | |
6903 | case $host in | |
6904 | x86_64-*kfreebsd*-gnu) | |
6905 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6906 | ;; | |
6907 | x86_64-*linux*) | |
6908 | LD="${LD-ld} -m elf_x86_64" | |
6909 | ;; | |
cc9afea3 AM |
6910 | powerpcle-*linux*) |
6911 | LD="${LD-ld} -m elf64lppc" | |
6912 | ;; | |
6913 | powerpc-*linux*) | |
7357c5b6 AM |
6914 | LD="${LD-ld} -m elf64ppc" |
6915 | ;; | |
6916 | s390*-*linux*|s390*-*tpf*) | |
6917 | LD="${LD-ld} -m elf64_s390" | |
6918 | ;; | |
6919 | sparc*-*linux*) | |
6920 | LD="${LD-ld} -m elf64_sparc" | |
6921 | ;; | |
6922 | esac | |
6923 | ;; | |
6924 | esac | |
6925 | fi | |
6926 | rm -rf conftest* | |
6927 | ;; | |
6928 | ||
6929 | *-*-sco3.2v5*) | |
6930 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6931 | SAVE_CFLAGS="$CFLAGS" | |
6932 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6934 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 6935 | if ${lt_cv_cc_needs_belf+:} false; then : |
81ecdfbb | 6936 | $as_echo_n "(cached) " >&6 |
dabbade6 | 6937 | else |
7357c5b6 AM |
6938 | ac_ext=c |
6939 | ac_cpp='$CPP $CPPFLAGS' | |
6940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6943 | ||
81ecdfbb | 6944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 6945 | /* end confdefs.h. */ |
d7040cdb | 6946 | |
7357c5b6 AM |
6947 | int |
6948 | main () | |
6949 | { | |
6950 | ||
6951 | ; | |
6952 | return 0; | |
6953 | } | |
dabbade6 | 6954 | _ACEOF |
81ecdfbb | 6955 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 6956 | lt_cv_cc_needs_belf=yes |
dabbade6 | 6957 | else |
81ecdfbb | 6958 | lt_cv_cc_needs_belf=no |
dabbade6 | 6959 | fi |
81ecdfbb RW |
6960 | rm -f core conftest.err conftest.$ac_objext \ |
6961 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
6962 | ac_ext=c |
6963 | ac_cpp='$CPP $CPPFLAGS' | |
6964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6967 | |
dabbade6 | 6968 | fi |
81ecdfbb RW |
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6970 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
6971 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6972 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6973 | CFLAGS="$SAVE_CFLAGS" | |
6974 | fi | |
6975 | ;; | |
6976 | sparc*-*solaris*) | |
6977 | # Find out which ABI we are using. | |
6978 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6979 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6980 | (eval $ac_compile) 2>&5 |
6981 | ac_status=$? | |
81ecdfbb RW |
6982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6983 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6984 | case `/usr/bin/file conftest.o` in |
6985 | *64-bit*) | |
6986 | case $lt_cv_prog_gnu_ld in | |
6987 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
1927a18f L |
6988 | *) |
6989 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6990 | LD="${LD-ld} -64" | |
6991 | fi | |
6992 | ;; | |
7357c5b6 AM |
6993 | esac |
6994 | ;; | |
6995 | esac | |
6996 | fi | |
6997 | rm -rf conftest* | |
6998 | ;; | |
6999 | esac | |
d7040cdb | 7000 | |
7357c5b6 | 7001 | need_locks="$enable_libtool_lock" |
d7040cdb | 7002 | |
d7040cdb | 7003 | |
1927a18f L |
7004 | case $host_os in |
7005 | rhapsody* | darwin*) | |
7006 | if test -n "$ac_tool_prefix"; then | |
7007 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7008 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7010 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7011 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
81ecdfbb | 7012 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7013 | else |
7014 | if test -n "$DSYMUTIL"; then | |
7015 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7016 | else | |
7017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7018 | for as_dir in $PATH | |
7019 | do | |
7020 | IFS=$as_save_IFS | |
7021 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7022 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7024 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7026 | break 2 |
7027 | fi | |
7028 | done | |
81ecdfbb RW |
7029 | done |
7030 | IFS=$as_save_IFS | |
1927a18f L |
7031 | |
7032 | fi | |
7033 | fi | |
7034 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7035 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7037 | $as_echo "$DSYMUTIL" >&6; } | |
1927a18f | 7038 | else |
81ecdfbb RW |
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7040 | $as_echo "no" >&6; } | |
1927a18f L |
7041 | fi |
7042 | ||
81ecdfbb | 7043 | |
1927a18f L |
7044 | fi |
7045 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7046 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7047 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7048 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7050 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7051 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
81ecdfbb | 7052 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7053 | else |
7054 | if test -n "$ac_ct_DSYMUTIL"; then | |
7055 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7056 | else | |
7057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7058 | for as_dir in $PATH | |
7059 | do | |
7060 | IFS=$as_save_IFS | |
7061 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7062 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7064 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7066 | break 2 |
7067 | fi | |
7068 | done | |
81ecdfbb RW |
7069 | done |
7070 | IFS=$as_save_IFS | |
1927a18f | 7071 | |
1927a18f L |
7072 | fi |
7073 | fi | |
7074 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7075 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7077 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
1927a18f | 7078 | else |
81ecdfbb RW |
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7080 | $as_echo "no" >&6; } | |
1927a18f L |
7081 | fi |
7082 | ||
81ecdfbb RW |
7083 | if test "x$ac_ct_DSYMUTIL" = x; then |
7084 | DSYMUTIL=":" | |
7085 | else | |
7086 | case $cross_compiling:$ac_tool_warned in | |
7087 | yes:) | |
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7089 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7090 | ac_tool_warned=yes ;; | |
7091 | esac | |
7092 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7093 | fi | |
1927a18f L |
7094 | else |
7095 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7096 | fi | |
7097 | ||
7098 | if test -n "$ac_tool_prefix"; then | |
7099 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7100 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7102 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7103 | if ${ac_cv_prog_NMEDIT+:} false; then : |
81ecdfbb | 7104 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7105 | else |
7106 | if test -n "$NMEDIT"; then | |
7107 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7108 | else | |
7109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7110 | for as_dir in $PATH | |
7111 | do | |
7112 | IFS=$as_save_IFS | |
7113 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7114 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7116 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7118 | break 2 |
7119 | fi | |
7120 | done | |
81ecdfbb RW |
7121 | done |
7122 | IFS=$as_save_IFS | |
1927a18f L |
7123 | |
7124 | fi | |
7125 | fi | |
7126 | NMEDIT=$ac_cv_prog_NMEDIT | |
7127 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7129 | $as_echo "$NMEDIT" >&6; } | |
1927a18f | 7130 | else |
81ecdfbb RW |
7131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7132 | $as_echo "no" >&6; } | |
1927a18f L |
7133 | fi |
7134 | ||
81ecdfbb | 7135 | |
1927a18f L |
7136 | fi |
7137 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7138 | ac_ct_NMEDIT=$NMEDIT | |
7139 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7140 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7142 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7143 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
81ecdfbb | 7144 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7145 | else |
7146 | if test -n "$ac_ct_NMEDIT"; then | |
7147 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7148 | else | |
7149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7150 | for as_dir in $PATH | |
7151 | do | |
7152 | IFS=$as_save_IFS | |
7153 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7154 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7156 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7158 | break 2 |
7159 | fi | |
7160 | done | |
81ecdfbb RW |
7161 | done |
7162 | IFS=$as_save_IFS | |
1927a18f | 7163 | |
1927a18f L |
7164 | fi |
7165 | fi | |
7166 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7167 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7169 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
1927a18f | 7170 | else |
81ecdfbb RW |
7171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7172 | $as_echo "no" >&6; } | |
1927a18f L |
7173 | fi |
7174 | ||
81ecdfbb RW |
7175 | if test "x$ac_ct_NMEDIT" = x; then |
7176 | NMEDIT=":" | |
7177 | else | |
7178 | case $cross_compiling:$ac_tool_warned in | |
7179 | yes:) | |
7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7181 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7182 | ac_tool_warned=yes ;; | |
7183 | esac | |
7184 | NMEDIT=$ac_ct_NMEDIT | |
7185 | fi | |
1927a18f L |
7186 | else |
7187 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7188 | fi | |
7189 | ||
7190 | if test -n "$ac_tool_prefix"; then | |
7191 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7192 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7194 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7195 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 7196 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7197 | else |
7198 | if test -n "$LIPO"; then | |
7199 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7200 | else | |
7201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7202 | for as_dir in $PATH | |
7203 | do | |
7204 | IFS=$as_save_IFS | |
7205 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7206 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7208 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7210 | break 2 |
7211 | fi | |
7212 | done | |
81ecdfbb RW |
7213 | done |
7214 | IFS=$as_save_IFS | |
1927a18f L |
7215 | |
7216 | fi | |
7217 | fi | |
7218 | LIPO=$ac_cv_prog_LIPO | |
7219 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7221 | $as_echo "$LIPO" >&6; } | |
1927a18f | 7222 | else |
81ecdfbb RW |
7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7224 | $as_echo "no" >&6; } | |
1927a18f L |
7225 | fi |
7226 | ||
81ecdfbb | 7227 | |
1927a18f L |
7228 | fi |
7229 | if test -z "$ac_cv_prog_LIPO"; then | |
7230 | ac_ct_LIPO=$LIPO | |
7231 | # Extract the first word of "lipo", so it can be a program name with args. | |
7232 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7234 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7235 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
81ecdfbb | 7236 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7237 | else |
7238 | if test -n "$ac_ct_LIPO"; then | |
7239 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7240 | else | |
7241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7242 | for as_dir in $PATH | |
7243 | do | |
7244 | IFS=$as_save_IFS | |
7245 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7246 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7248 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7250 | break 2 |
7251 | fi | |
7252 | done | |
81ecdfbb RW |
7253 | done |
7254 | IFS=$as_save_IFS | |
1927a18f | 7255 | |
1927a18f L |
7256 | fi |
7257 | fi | |
7258 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7259 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7261 | $as_echo "$ac_ct_LIPO" >&6; } | |
1927a18f | 7262 | else |
81ecdfbb RW |
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7264 | $as_echo "no" >&6; } | |
1927a18f L |
7265 | fi |
7266 | ||
81ecdfbb RW |
7267 | if test "x$ac_ct_LIPO" = x; then |
7268 | LIPO=":" | |
7269 | else | |
7270 | case $cross_compiling:$ac_tool_warned in | |
7271 | yes:) | |
7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7273 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7274 | ac_tool_warned=yes ;; | |
7275 | esac | |
7276 | LIPO=$ac_ct_LIPO | |
7277 | fi | |
1927a18f L |
7278 | else |
7279 | LIPO="$ac_cv_prog_LIPO" | |
7280 | fi | |
7281 | ||
7282 | if test -n "$ac_tool_prefix"; then | |
7283 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7284 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7286 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7287 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 7288 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7289 | else |
7290 | if test -n "$OTOOL"; then | |
7291 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7292 | else | |
7293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7294 | for as_dir in $PATH | |
7295 | do | |
7296 | IFS=$as_save_IFS | |
7297 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7298 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7300 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7302 | break 2 |
7303 | fi | |
7304 | done | |
81ecdfbb RW |
7305 | done |
7306 | IFS=$as_save_IFS | |
1927a18f L |
7307 | |
7308 | fi | |
7309 | fi | |
7310 | OTOOL=$ac_cv_prog_OTOOL | |
7311 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7313 | $as_echo "$OTOOL" >&6; } | |
1927a18f | 7314 | else |
81ecdfbb RW |
7315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7316 | $as_echo "no" >&6; } | |
1927a18f L |
7317 | fi |
7318 | ||
81ecdfbb | 7319 | |
1927a18f L |
7320 | fi |
7321 | if test -z "$ac_cv_prog_OTOOL"; then | |
7322 | ac_ct_OTOOL=$OTOOL | |
7323 | # Extract the first word of "otool", so it can be a program name with args. | |
7324 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7326 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7327 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
81ecdfbb | 7328 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7329 | else |
7330 | if test -n "$ac_ct_OTOOL"; then | |
7331 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7332 | else | |
7333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7334 | for as_dir in $PATH | |
7335 | do | |
7336 | IFS=$as_save_IFS | |
7337 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7338 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7339 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7340 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7342 | break 2 |
7343 | fi | |
7344 | done | |
81ecdfbb RW |
7345 | done |
7346 | IFS=$as_save_IFS | |
1927a18f | 7347 | |
1927a18f L |
7348 | fi |
7349 | fi | |
7350 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7351 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7353 | $as_echo "$ac_ct_OTOOL" >&6; } | |
1927a18f | 7354 | else |
81ecdfbb RW |
7355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7356 | $as_echo "no" >&6; } | |
1927a18f L |
7357 | fi |
7358 | ||
81ecdfbb RW |
7359 | if test "x$ac_ct_OTOOL" = x; then |
7360 | OTOOL=":" | |
7361 | else | |
7362 | case $cross_compiling:$ac_tool_warned in | |
7363 | yes:) | |
7364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7365 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7366 | ac_tool_warned=yes ;; | |
7367 | esac | |
7368 | OTOOL=$ac_ct_OTOOL | |
7369 | fi | |
1927a18f L |
7370 | else |
7371 | OTOOL="$ac_cv_prog_OTOOL" | |
7372 | fi | |
7373 | ||
7374 | if test -n "$ac_tool_prefix"; then | |
7375 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7376 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7378 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7379 | if ${ac_cv_prog_OTOOL64+:} false; then : |
81ecdfbb | 7380 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7381 | else |
7382 | if test -n "$OTOOL64"; then | |
7383 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7384 | else | |
7385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7386 | for as_dir in $PATH | |
7387 | do | |
7388 | IFS=$as_save_IFS | |
7389 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7390 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7392 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7394 | break 2 |
7395 | fi | |
7396 | done | |
81ecdfbb RW |
7397 | done |
7398 | IFS=$as_save_IFS | |
1927a18f L |
7399 | |
7400 | fi | |
7401 | fi | |
7402 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7403 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7405 | $as_echo "$OTOOL64" >&6; } | |
1927a18f | 7406 | else |
81ecdfbb RW |
7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7408 | $as_echo "no" >&6; } | |
1927a18f L |
7409 | fi |
7410 | ||
81ecdfbb | 7411 | |
1927a18f L |
7412 | fi |
7413 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7414 | ac_ct_OTOOL64=$OTOOL64 | |
7415 | # Extract the first word of "otool64", so it can be a program name with args. | |
7416 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7418 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7419 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
81ecdfbb | 7420 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7421 | else |
7422 | if test -n "$ac_ct_OTOOL64"; then | |
7423 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7424 | else | |
7425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7426 | for as_dir in $PATH | |
7427 | do | |
7428 | IFS=$as_save_IFS | |
7429 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7430 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1927a18f | 7432 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7434 | break 2 |
7435 | fi | |
7436 | done | |
81ecdfbb RW |
7437 | done |
7438 | IFS=$as_save_IFS | |
1927a18f | 7439 | |
1927a18f L |
7440 | fi |
7441 | fi | |
7442 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7443 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7445 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
1927a18f | 7446 | else |
81ecdfbb RW |
7447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7448 | $as_echo "no" >&6; } | |
1927a18f L |
7449 | fi |
7450 | ||
81ecdfbb RW |
7451 | if test "x$ac_ct_OTOOL64" = x; then |
7452 | OTOOL64=":" | |
7453 | else | |
7454 | case $cross_compiling:$ac_tool_warned in | |
7455 | yes:) | |
7456 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7457 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7458 | ac_tool_warned=yes ;; | |
7459 | esac | |
7460 | OTOOL64=$ac_ct_OTOOL64 | |
7461 | fi | |
1927a18f L |
7462 | else |
7463 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7464 | fi | |
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
7471 | ||
7472 | ||
7473 | ||
7474 | ||
7475 | ||
7476 | ||
7477 | ||
7478 | ||
7479 | ||
7480 | ||
7481 | ||
7482 | ||
7483 | ||
7484 | ||
7485 | ||
7486 | ||
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | ||
81ecdfbb RW |
7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7493 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 7494 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
81ecdfbb | 7495 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7496 | else |
7497 | lt_cv_apple_cc_single_mod=no | |
7498 | if test -z "${LT_MULTI_MODULE}"; then | |
7499 | # By default we will add the -single_module flag. You can override | |
7500 | # by either setting the environment variable LT_MULTI_MODULE | |
7501 | # non-empty at configure time, or by adding -multi_module to the | |
7502 | # link flags. | |
7503 | rm -rf libconftest.dylib* | |
7504 | echo "int foo(void){return 1;}" > conftest.c | |
7505 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7506 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7507 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7508 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7509 | _lt_result=$? | |
7510 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7511 | lt_cv_apple_cc_single_mod=yes | |
7512 | else | |
7513 | cat conftest.err >&5 | |
7514 | fi | |
7515 | rm -rf libconftest.dylib* | |
7516 | rm -f conftest.* | |
7517 | fi | |
7518 | fi | |
81ecdfbb RW |
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7520 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7522 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 7523 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
81ecdfbb | 7524 | $as_echo_n "(cached) " >&6 |
1927a18f L |
7525 | else |
7526 | lt_cv_ld_exported_symbols_list=no | |
7527 | save_LDFLAGS=$LDFLAGS | |
7528 | echo "_main" > conftest.sym | |
7529 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1927a18f L |
7531 | /* end confdefs.h. */ |
7532 | ||
7533 | int | |
7534 | main () | |
7535 | { | |
7536 | ||
7537 | ; | |
7538 | return 0; | |
7539 | } | |
7540 | _ACEOF | |
81ecdfbb | 7541 | if ac_fn_c_try_link "$LINENO"; then : |
1927a18f L |
7542 | lt_cv_ld_exported_symbols_list=yes |
7543 | else | |
81ecdfbb | 7544 | lt_cv_ld_exported_symbols_list=no |
1927a18f | 7545 | fi |
81ecdfbb RW |
7546 | rm -f core conftest.err conftest.$ac_objext \ |
7547 | conftest$ac_exeext conftest.$ac_ext | |
1927a18f L |
7548 | LDFLAGS="$save_LDFLAGS" |
7549 | ||
7550 | fi | |
81ecdfbb RW |
7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7552 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7554 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 7555 | if ${lt_cv_ld_force_load+:} false; then : |
3725885a RW |
7556 | $as_echo_n "(cached) " >&6 |
7557 | else | |
7558 | lt_cv_ld_force_load=no | |
7559 | cat > conftest.c << _LT_EOF | |
7560 | int forced_loaded() { return 2;} | |
7561 | _LT_EOF | |
7562 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7563 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7564 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7565 | $AR cru libconftest.a conftest.o 2>&5 | |
7566 | cat > conftest.c << _LT_EOF | |
7567 | int main() { return 0;} | |
7568 | _LT_EOF | |
7569 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7570 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7571 | _lt_result=$? | |
7572 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7573 | lt_cv_ld_force_load=yes | |
7574 | else | |
7575 | cat conftest.err >&5 | |
7576 | fi | |
7577 | rm -f conftest.err libconftest.a conftest conftest.c | |
7578 | rm -rf conftest.dSYM | |
7579 | ||
7580 | fi | |
7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7582 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
6a6859cb AM |
7583 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
7584 | # build without first building modern cctools / linker. | |
7585 | case $host_cpu-$host_os in | |
7586 | *-rhapsody* | *-darwin1.[012]) | |
1927a18f | 7587 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
6a6859cb | 7588 | *-darwin1.*) |
1927a18f | 7589 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
6a6859cb AM |
7590 | *-darwin*) |
7591 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
7592 | # deployment target is forced to an earlier version. | |
7593 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
7594 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
7595 | ;; | |
6e733cce | 7596 | 10.[012][,.]*) |
6a6859cb AM |
7597 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7598 | ;; | |
7599 | *) | |
7600 | ;; | |
7601 | esac | |
1927a18f L |
7602 | ;; |
7603 | esac | |
7604 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7605 | _lt_dar_single_mod='$single_module' | |
7606 | fi | |
7607 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7608 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7609 | else | |
7610 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7611 | fi | |
3725885a | 7612 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
1927a18f L |
7613 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7614 | else | |
7615 | _lt_dsymutil= | |
7616 | fi | |
7617 | ;; | |
7618 | esac | |
7619 | ||
dabbade6 | 7620 | for ac_header in dlfcn.h |
81ecdfbb RW |
7621 | do : |
7622 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7623 | " | |
d0ac1c44 | 7624 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
dabbade6 | 7625 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7626 | #define HAVE_DLFCN_H 1 |
dabbade6 | 7627 | _ACEOF |
d7040cdb | 7628 | |
dabbade6 | 7629 | fi |
d7040cdb | 7630 | |
dabbade6 | 7631 | done |
d7040cdb | 7632 | |
d7040cdb | 7633 | |
d7040cdb | 7634 | |
3725885a RW |
7635 | |
7636 | ||
1927a18f L |
7637 | # Set options |
7638 | ||
7639 | ||
7640 | ||
7641 | enable_dlopen=no | |
7642 | ||
7643 | ||
7644 | enable_win32_dll=no | |
7645 | ||
7646 | ||
7647 | ||
81ecdfbb RW |
7648 | # Check whether --enable-static was given. |
7649 | if test "${enable_static+set}" = set; then : | |
7650 | enableval=$enable_static; p=${PACKAGE-default} | |
1927a18f L |
7651 | case $enableval in |
7652 | yes) enable_static=yes ;; | |
7653 | no) enable_static=no ;; | |
7654 | *) | |
7655 | enable_static=no | |
7656 | # Look at the argument we got. We use all the common list separators. | |
7657 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7658 | for pkg in $enableval; do | |
7659 | IFS="$lt_save_ifs" | |
7660 | if test "X$pkg" = "X$p"; then | |
7661 | enable_static=yes | |
7662 | fi | |
7663 | done | |
7664 | IFS="$lt_save_ifs" | |
7665 | ;; | |
7666 | esac | |
7667 | else | |
7668 | enable_static=yes | |
81ecdfbb | 7669 | fi |
1927a18f L |
7670 | |
7671 | ||
7672 | ||
7673 | ||
7674 | ||
7675 | ||
7676 | ||
7677 | ||
7678 | ||
81ecdfbb RW |
7679 | |
7680 | # Check whether --with-pic was given. | |
7681 | if test "${with_pic+set}" = set; then : | |
7682 | withval=$with_pic; pic_mode="$withval" | |
1927a18f L |
7683 | else |
7684 | pic_mode=default | |
81ecdfbb RW |
7685 | fi |
7686 | ||
1927a18f L |
7687 | |
7688 | test -z "$pic_mode" && pic_mode=default | |
7689 | ||
7690 | ||
7691 | ||
7692 | ||
7693 | ||
7694 | ||
7695 | ||
81ecdfbb RW |
7696 | # Check whether --enable-fast-install was given. |
7697 | if test "${enable_fast_install+set}" = set; then : | |
7698 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
1927a18f L |
7699 | case $enableval in |
7700 | yes) enable_fast_install=yes ;; | |
7701 | no) enable_fast_install=no ;; | |
7702 | *) | |
7703 | enable_fast_install=no | |
7704 | # Look at the argument we got. We use all the common list separators. | |
7705 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7706 | for pkg in $enableval; do | |
7707 | IFS="$lt_save_ifs" | |
7708 | if test "X$pkg" = "X$p"; then | |
7709 | enable_fast_install=yes | |
7710 | fi | |
7711 | done | |
7712 | IFS="$lt_save_ifs" | |
7713 | ;; | |
7714 | esac | |
7715 | else | |
7716 | enable_fast_install=yes | |
81ecdfbb RW |
7717 | fi |
7718 | ||
1927a18f L |
7719 | |
7720 | ||
7721 | ||
7722 | ||
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7727 | ||
7728 | ||
dabbade6 L |
7729 | # This can be used to rebuild libtool when needed |
7730 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7731 | |
dabbade6 L |
7732 | # Always use our own libtool. |
7733 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7734 | |
d7040cdb | 7735 | |
d7040cdb | 7736 | |
d7040cdb SE |
7737 | |
7738 | ||
7739 | ||
7740 | ||
7741 | ||
7742 | ||
d7040cdb | 7743 | |
d7040cdb | 7744 | |
d7040cdb | 7745 | |
d7040cdb SE |
7746 | |
7747 | ||
7748 | ||
7749 | ||
7750 | ||
7751 | ||
d7040cdb | 7752 | |
d7040cdb | 7753 | |
d7040cdb SE |
7754 | |
7755 | ||
7756 | ||
3725885a | 7757 | |
d7040cdb SE |
7758 | |
7759 | ||
dabbade6 | 7760 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7761 | |
7762 | ||
d7040cdb | 7763 | |
d7040cdb | 7764 | |
d7040cdb SE |
7765 | |
7766 | ||
7767 | ||
7768 | ||
7769 | ||
7770 | ||
dabbade6 L |
7771 | |
7772 | ||
7773 | ||
7774 | ||
7775 | if test -n "${ZSH_VERSION+set}" ; then | |
7776 | setopt NO_GLOB_SUBST | |
7777 | fi | |
7778 | ||
81ecdfbb RW |
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7780 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 7781 | if ${lt_cv_objdir+:} false; then : |
81ecdfbb | 7782 | $as_echo_n "(cached) " >&6 |
d7040cdb | 7783 | else |
dabbade6 L |
7784 | rm -f .libs 2>/dev/null |
7785 | mkdir .libs 2>/dev/null | |
7786 | if test -d .libs; then | |
7787 | lt_cv_objdir=.libs | |
7788 | else | |
7789 | # MS-DOS does not allow filenames that begin with a dot. | |
7790 | lt_cv_objdir=_libs | |
d7040cdb | 7791 | fi |
dabbade6 L |
7792 | rmdir .libs 2>/dev/null |
7793 | fi | |
81ecdfbb RW |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7795 | $as_echo "$lt_cv_objdir" >&6; } | |
dabbade6 | 7796 | objdir=$lt_cv_objdir |
d7040cdb SE |
7797 | |
7798 | ||
7799 | ||
7800 | ||
d7040cdb | 7801 | |
dabbade6 L |
7802 | cat >>confdefs.h <<_ACEOF |
7803 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7804 | _ACEOF | |
d7040cdb SE |
7805 | |
7806 | ||
7807 | ||
7808 | ||
dabbade6 L |
7809 | case $host_os in |
7810 | aix3*) | |
7811 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7812 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7813 | # vanish in a puff of smoke. | |
7814 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7815 | COLLECT_NAMES= | |
7816 | export COLLECT_NAMES | |
7817 | fi | |
7818 | ;; | |
7819 | esac | |
d7040cdb | 7820 | |
dabbade6 L |
7821 | # Global variables: |
7822 | ofile=libtool | |
7823 | can_build_shared=yes | |
d7040cdb | 7824 | |
dabbade6 L |
7825 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7826 | # which needs '.lib'). | |
7827 | libext=a | |
d7040cdb | 7828 | |
dabbade6 | 7829 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7830 | |
dabbade6 L |
7831 | old_CC="$CC" |
7832 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7833 | |
dabbade6 L |
7834 | # Set sane defaults for various variables |
7835 | test -z "$CC" && CC=cc | |
7836 | test -z "$LTCC" && LTCC=$CC | |
7837 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7838 | test -z "$LD" && LD=ld | |
7839 | test -z "$ac_objext" && ac_objext=o | |
7840 | ||
7841 | for cc_temp in $compiler""; do | |
7842 | case $cc_temp in | |
7843 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7844 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7845 | \-*) ;; | |
7846 | *) break;; | |
7847 | esac | |
7848 | done | |
3725885a | 7849 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
dabbade6 L |
7850 | |
7851 | ||
7852 | # Only perform the check for file, if the check method requires it | |
7853 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7854 | case $deplibs_check_method in | |
7855 | file_magic*) | |
7856 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7858 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 7859 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7860 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
7861 | else |
7862 | case $MAGIC_CMD in | |
7863 | [\\/*] | ?:[\\/]*) | |
7864 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7865 | ;; | |
7866 | *) | |
7867 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7868 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7869 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7870 | for ac_dir in $ac_dummy; do | |
7871 | IFS="$lt_save_ifs" | |
7872 | test -z "$ac_dir" && ac_dir=. | |
7873 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7874 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7875 | if test -n "$file_magic_test_file"; then | |
7876 | case $deplibs_check_method in | |
7877 | "file_magic "*) | |
7878 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7879 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7880 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7881 | $EGREP "$file_magic_regex" > /dev/null; then | |
7882 | : | |
d7040cdb | 7883 | else |
dabbade6 | 7884 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7885 | |
dabbade6 L |
7886 | *** Warning: the command libtool uses to detect shared libraries, |
7887 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7888 | *** The result is that libtool may fail to recognize shared libraries | |
7889 | *** as such. This will affect the creation of libtool libraries that | |
7890 | *** depend on shared libraries, but programs linked with such libtool | |
7891 | *** libraries will work regardless of this problem. Nevertheless, you | |
7892 | *** may want to report the problem to your system manager and/or to | |
7893 | *** bug-libtool@gnu.org | |
d7040cdb | 7894 | |
dabbade6 L |
7895 | _LT_EOF |
7896 | fi ;; | |
7897 | esac | |
d7040cdb | 7898 | fi |
dabbade6 | 7899 | break |
d7040cdb | 7900 | fi |
dabbade6 L |
7901 | done |
7902 | IFS="$lt_save_ifs" | |
7903 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7904 | ;; | |
7905 | esac | |
7906 | fi | |
d7040cdb | 7907 | |
dabbade6 L |
7908 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7909 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7911 | $as_echo "$MAGIC_CMD" >&6; } | |
dabbade6 | 7912 | else |
81ecdfbb RW |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7914 | $as_echo "no" >&6; } | |
dabbade6 | 7915 | fi |
d7040cdb | 7916 | |
d7040cdb | 7917 | |
d7040cdb | 7918 | |
d7040cdb | 7919 | |
d7040cdb | 7920 | |
dabbade6 L |
7921 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7922 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7924 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 7925 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7926 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
7927 | else |
7928 | case $MAGIC_CMD in | |
7929 | [\\/*] | ?:[\\/]*) | |
7930 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7931 | ;; | |
7932 | *) | |
7933 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7934 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7935 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7936 | for ac_dir in $ac_dummy; do | |
7937 | IFS="$lt_save_ifs" | |
7938 | test -z "$ac_dir" && ac_dir=. | |
7939 | if test -f $ac_dir/file; then | |
7940 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7941 | if test -n "$file_magic_test_file"; then | |
7942 | case $deplibs_check_method in | |
7943 | "file_magic "*) | |
7944 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7945 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7946 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7947 | $EGREP "$file_magic_regex" > /dev/null; then | |
7948 | : | |
d7040cdb | 7949 | else |
dabbade6 | 7950 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7951 | |
dabbade6 L |
7952 | *** Warning: the command libtool uses to detect shared libraries, |
7953 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7954 | *** The result is that libtool may fail to recognize shared libraries | |
7955 | *** as such. This will affect the creation of libtool libraries that | |
7956 | *** depend on shared libraries, but programs linked with such libtool | |
7957 | *** libraries will work regardless of this problem. Nevertheless, you | |
7958 | *** may want to report the problem to your system manager and/or to | |
7959 | *** bug-libtool@gnu.org | |
d7040cdb | 7960 | |
dabbade6 L |
7961 | _LT_EOF |
7962 | fi ;; | |
7963 | esac | |
7964 | fi | |
7965 | break | |
7966 | fi | |
7967 | done | |
7968 | IFS="$lt_save_ifs" | |
7969 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7970 | ;; | |
7971 | esac | |
d7040cdb | 7972 | fi |
dabbade6 L |
7973 | |
7974 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7975 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7977 | $as_echo "$MAGIC_CMD" >&6; } | |
d7040cdb | 7978 | else |
81ecdfbb RW |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7980 | $as_echo "no" >&6; } | |
dabbade6 L |
7981 | fi |
7982 | ||
d7040cdb | 7983 | |
dabbade6 L |
7984 | else |
7985 | MAGIC_CMD=: | |
7986 | fi | |
d7040cdb | 7987 | fi |
d7040cdb | 7988 | |
dabbade6 L |
7989 | fi |
7990 | ;; | |
7991 | esac | |
d7040cdb | 7992 | |
dabbade6 | 7993 | # Use C for the default configuration in the libtool script |
d7040cdb | 7994 | |
dabbade6 L |
7995 | lt_save_CC="$CC" |
7996 | ac_ext=c | |
7997 | ac_cpp='$CPP $CPPFLAGS' | |
7998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 8001 | |
d7040cdb | 8002 | |
dabbade6 L |
8003 | # Source file extension for C test sources. |
8004 | ac_ext=c | |
d7040cdb | 8005 | |
dabbade6 L |
8006 | # Object file extension for compiled C test sources. |
8007 | objext=o | |
8008 | objext=$objext | |
8009 | ||
8010 | # Code to be used in simple compile tests | |
8011 | lt_simple_compile_test_code="int some_variable = 0;" | |
8012 | ||
8013 | # Code to be used in simple link tests | |
8014 | lt_simple_link_test_code='int main(){return(0);}' | |
8015 | ||
8016 | ||
8017 | ||
8018 | ||
8019 | ||
8020 | ||
8021 | ||
8022 | # If no C compiler was specified, use CC. | |
8023 | LTCC=${LTCC-"$CC"} | |
8024 | ||
8025 | # If no C compiler flags were specified, use CFLAGS. | |
8026 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8027 | ||
8028 | # Allow CC to be a program name with arguments. | |
8029 | compiler=$CC | |
8030 | ||
8031 | # Save the default compiler, since it gets overwritten when the other | |
8032 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8033 | compiler_DEFAULT=$CC | |
8034 | ||
8035 | # save warnings/boilerplate of simple test code | |
8036 | ac_outfile=conftest.$ac_objext | |
8037 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8038 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8039 | _lt_compiler_boilerplate=`cat conftest.err` | |
8040 | $RM conftest* | |
8041 | ||
8042 | ac_outfile=conftest.$ac_objext | |
8043 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8044 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8045 | _lt_linker_boilerplate=`cat conftest.err` | |
1927a18f | 8046 | $RM -r conftest* |
dabbade6 L |
8047 | |
8048 | ||
8049 | ## CAVEAT EMPTOR: | |
8050 | ## There is no encapsulation within the following macros, do not change | |
8051 | ## the running order or otherwise move them around unless you know exactly | |
8052 | ## what you are doing... | |
8053 | if test -n "$compiler"; then | |
8054 | ||
8055 | lt_prog_compiler_no_builtin_flag= | |
8056 | ||
8057 | if test "$GCC" = yes; then | |
3725885a RW |
8058 | case $cc_basename in |
8059 | nvcc*) | |
8060 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8061 | *) | |
8062 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8063 | esac | |
dabbade6 | 8064 | |
81ecdfbb RW |
8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8066 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 8067 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
81ecdfbb | 8068 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
8069 | else |
8070 | lt_cv_prog_compiler_rtti_exceptions=no | |
8071 | ac_outfile=conftest.$ac_objext | |
8072 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8073 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8074 | # Insert the option either (1) after the last *FLAGS variable, or | |
8075 | # (2) before a word containing "conftest.", or (3) at the end. | |
8076 | # Note that $ac_compile itself does not contain backslashes and begins | |
8077 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8078 | # The option is referenced via a variable to avoid confusing sed. | |
8079 | lt_compile=`echo "$ac_compile" | $SED \ | |
8080 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8081 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8082 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8083 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8084 | (eval "$lt_compile" 2>conftest.err) |
8085 | ac_status=$? | |
8086 | cat conftest.err >&5 | |
3725885a | 8087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8088 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8089 | # The compiler can only warn and ignore the option if not recognized | |
8090 | # So say no if there are warnings other than the usual output. | |
3725885a | 8091 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
dabbade6 L |
8092 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8093 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8094 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8095 | fi | |
8096 | fi | |
8097 | $RM conftest* | |
8098 | ||
8099 | fi | |
81ecdfbb RW |
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8101 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
dabbade6 L |
8102 | |
8103 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8104 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8105 | else | |
8106 | : | |
8107 | fi | |
8108 | ||
8109 | fi | |
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | lt_prog_compiler_wl= | |
8117 | lt_prog_compiler_pic= | |
8118 | lt_prog_compiler_static= | |
8119 | ||
81ecdfbb RW |
8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8121 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
dabbade6 L |
8122 | |
8123 | if test "$GCC" = yes; then | |
8124 | lt_prog_compiler_wl='-Wl,' | |
8125 | lt_prog_compiler_static='-static' | |
8126 | ||
8127 | case $host_os in | |
8128 | aix*) | |
8129 | # All AIX code is PIC. | |
8130 | if test "$host_cpu" = ia64; then | |
8131 | # AIX 5 now supports IA64 processor | |
8132 | lt_prog_compiler_static='-Bstatic' | |
8133 | fi | |
b132a67d | 8134 | lt_prog_compiler_pic='-fPIC' |
dabbade6 | 8135 | ;; |
d7040cdb SE |
8136 | |
8137 | amigaos*) | |
1927a18f L |
8138 | case $host_cpu in |
8139 | powerpc) | |
8140 | # see comment about AmigaOS4 .so support | |
8141 | lt_prog_compiler_pic='-fPIC' | |
8142 | ;; | |
8143 | m68k) | |
8144 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8145 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8146 | # like `-m68040'. | |
8147 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8148 | ;; | |
8149 | esac | |
d7040cdb SE |
8150 | ;; |
8151 | ||
dabbade6 L |
8152 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8153 | # PIC is the default for these OSes. | |
d7040cdb SE |
8154 | ;; |
8155 | ||
1927a18f | 8156 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
dabbade6 L |
8157 | # This hack is so that the source file can tell whether it is being |
8158 | # built for inclusion in a dll (and should export symbols for example). | |
8159 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8160 | # (--disable-auto-import) libraries | |
8161 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8162 | ;; |
8163 | ||
8164 | darwin* | rhapsody*) | |
dabbade6 L |
8165 | # PIC is the default on this platform |
8166 | # Common symbols not allowed in MH_DYLIB files | |
8167 | lt_prog_compiler_pic='-fno-common' | |
8168 | ;; | |
8169 | ||
3725885a RW |
8170 | haiku*) |
8171 | # PIC is the default for Haiku. | |
8172 | # The "-static" flag exists, but is broken. | |
8173 | lt_prog_compiler_static= | |
8174 | ;; | |
8175 | ||
dabbade6 | 8176 | hpux*) |
1927a18f L |
8177 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8178 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8179 | # sets the default TLS model and affects inlining. | |
dabbade6 | 8180 | case $host_cpu in |
1927a18f | 8181 | hppa*64*) |
dabbade6 | 8182 | # +Z the default |
d7040cdb | 8183 | ;; |
dabbade6 L |
8184 | *) |
8185 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
8186 | ;; |
8187 | esac | |
dabbade6 | 8188 | ;; |
d7040cdb | 8189 | |
dabbade6 L |
8190 | interix[3-9]*) |
8191 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8192 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
8193 | ;; |
8194 | ||
dabbade6 L |
8195 | msdosdjgpp*) |
8196 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8197 | # on systems that don't support them. | |
8198 | lt_prog_compiler_can_build_shared=no | |
8199 | enable_shared=no | |
d7040cdb SE |
8200 | ;; |
8201 | ||
dabbade6 L |
8202 | *nto* | *qnx*) |
8203 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8204 | # it will coredump. | |
8205 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8206 | ;; |
8207 | ||
dabbade6 L |
8208 | sysv4*MP*) |
8209 | if test -d /usr/nec; then | |
8210 | lt_prog_compiler_pic=-Kconform_pic | |
8211 | fi | |
d7040cdb SE |
8212 | ;; |
8213 | ||
dabbade6 L |
8214 | *) |
8215 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 8216 | ;; |
dabbade6 | 8217 | esac |
3725885a RW |
8218 | |
8219 | case $cc_basename in | |
8220 | nvcc*) # Cuda Compiler Driver 2.2 | |
8221 | lt_prog_compiler_wl='-Xlinker ' | |
8222 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8223 | ;; | |
8224 | esac | |
dabbade6 L |
8225 | else |
8226 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8227 | case $host_os in | |
8228 | aix*) | |
8229 | lt_prog_compiler_wl='-Wl,' | |
8230 | if test "$host_cpu" = ia64; then | |
8231 | # AIX 5 now supports IA64 processor | |
8232 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 8233 | else |
dabbade6 | 8234 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 8235 | fi |
dabbade6 | 8236 | ;; |
d7040cdb | 8237 | |
1927a18f | 8238 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
dabbade6 L |
8239 | # This hack is so that the source file can tell whether it is being |
8240 | # built for inclusion in a dll (and should export symbols for example). | |
8241 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8242 | ;; |
8243 | ||
dabbade6 L |
8244 | hpux9* | hpux10* | hpux11*) |
8245 | lt_prog_compiler_wl='-Wl,' | |
8246 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8247 | # not for PA HP-UX. | |
8248 | case $host_cpu in | |
8249 | hppa*64*|ia64*) | |
8250 | # +Z the default | |
8251 | ;; | |
8252 | *) | |
8253 | lt_prog_compiler_pic='+Z' | |
8254 | ;; | |
8255 | esac | |
8256 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8257 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
8258 | ;; |
8259 | ||
dabbade6 L |
8260 | irix5* | irix6* | nonstopux*) |
8261 | lt_prog_compiler_wl='-Wl,' | |
8262 | # PIC (with -KPIC) is the default. | |
8263 | lt_prog_compiler_static='-non_shared' | |
8264 | ;; | |
d7040cdb | 8265 | |
58e24671 | 8266 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 | 8267 | case $cc_basename in |
1927a18f L |
8268 | # old Intel for x86_64 which still supported -KPIC. |
8269 | ecc*) | |
dabbade6 L |
8270 | lt_prog_compiler_wl='-Wl,' |
8271 | lt_prog_compiler_pic='-KPIC' | |
8272 | lt_prog_compiler_static='-static' | |
8273 | ;; | |
1927a18f L |
8274 | # icc used to be incompatible with GCC. |
8275 | # ICC 10 doesn't accept -KPIC any more. | |
8276 | icc* | ifort*) | |
8277 | lt_prog_compiler_wl='-Wl,' | |
8278 | lt_prog_compiler_pic='-fPIC' | |
8279 | lt_prog_compiler_static='-static' | |
8280 | ;; | |
8281 | # Lahey Fortran 8.1. | |
8282 | lf95*) | |
8283 | lt_prog_compiler_wl='-Wl,' | |
8284 | lt_prog_compiler_pic='--shared' | |
8285 | lt_prog_compiler_static='--static' | |
8286 | ;; | |
3725885a | 8287 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
dabbade6 L |
8288 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8289 | # which looks to be a dead project) | |
8290 | lt_prog_compiler_wl='-Wl,' | |
8291 | lt_prog_compiler_pic='-fpic' | |
8292 | lt_prog_compiler_static='-Bstatic' | |
8293 | ;; | |
8294 | ccc*) | |
8295 | lt_prog_compiler_wl='-Wl,' | |
8296 | # All Alpha code is PIC. | |
8297 | lt_prog_compiler_static='-non_shared' | |
8298 | ;; | |
3725885a RW |
8299 | xl* | bgxl* | bgf* | mpixl*) |
8300 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
1927a18f L |
8301 | lt_prog_compiler_wl='-Wl,' |
8302 | lt_prog_compiler_pic='-qpic' | |
8303 | lt_prog_compiler_static='-qstaticlink' | |
8304 | ;; | |
dabbade6 L |
8305 | *) |
8306 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8307 | *Sun\ F* | *Sun*Fortran*) |
8308 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
dabbade6 L |
8309 | lt_prog_compiler_pic='-KPIC' |
8310 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8311 | lt_prog_compiler_wl='' |
d7040cdb | 8312 | ;; |
3725885a RW |
8313 | *Sun\ C*) |
8314 | # Sun C 5.9 | |
dabbade6 L |
8315 | lt_prog_compiler_pic='-KPIC' |
8316 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8317 | lt_prog_compiler_wl='-Wl,' |
d7040cdb SE |
8318 | ;; |
8319 | esac | |
dabbade6 L |
8320 | ;; |
8321 | esac | |
d7040cdb SE |
8322 | ;; |
8323 | ||
dabbade6 L |
8324 | newsos6) |
8325 | lt_prog_compiler_pic='-KPIC' | |
8326 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8327 | ;; |
8328 | ||
dabbade6 L |
8329 | *nto* | *qnx*) |
8330 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8331 | # it will coredump. | |
8332 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8333 | ;; |
8334 | ||
dabbade6 L |
8335 | osf3* | osf4* | osf5*) |
8336 | lt_prog_compiler_wl='-Wl,' | |
8337 | # All OSF/1 code is PIC. | |
8338 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8339 | ;; |
8340 | ||
dabbade6 L |
8341 | rdos*) |
8342 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8343 | ;; |
8344 | ||
8345 | solaris*) | |
dabbade6 L |
8346 | lt_prog_compiler_pic='-KPIC' |
8347 | lt_prog_compiler_static='-Bstatic' | |
8348 | case $cc_basename in | |
8349 | f77* | f90* | f95*) | |
8350 | lt_prog_compiler_wl='-Qoption ld ';; | |
d7040cdb | 8351 | *) |
dabbade6 | 8352 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 8353 | esac |
d7040cdb SE |
8354 | ;; |
8355 | ||
8356 | sunos4*) | |
dabbade6 L |
8357 | lt_prog_compiler_wl='-Qoption ld ' |
8358 | lt_prog_compiler_pic='-PIC' | |
8359 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8360 | ;; |
8361 | ||
dabbade6 L |
8362 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8363 | lt_prog_compiler_wl='-Wl,' | |
8364 | lt_prog_compiler_pic='-KPIC' | |
8365 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8366 | ;; |
8367 | ||
8368 | sysv4*MP*) | |
dabbade6 L |
8369 | if test -d /usr/nec ;then |
8370 | lt_prog_compiler_pic='-Kconform_pic' | |
8371 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8372 | fi |
8373 | ;; | |
8374 | ||
dabbade6 L |
8375 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8376 | lt_prog_compiler_wl='-Wl,' | |
8377 | lt_prog_compiler_pic='-KPIC' | |
8378 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8379 | ;; |
8380 | ||
dabbade6 L |
8381 | unicos*) |
8382 | lt_prog_compiler_wl='-Wl,' | |
8383 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
8384 | ;; |
8385 | ||
8386 | uts4*) | |
dabbade6 L |
8387 | lt_prog_compiler_pic='-pic' |
8388 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8389 | ;; |
8390 | ||
8391 | *) | |
dabbade6 | 8392 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
8393 | ;; |
8394 | esac | |
d7040cdb SE |
8395 | fi |
8396 | ||
dabbade6 L |
8397 | case $host_os in |
8398 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8399 | *djgpp*) | |
8400 | lt_prog_compiler_pic= | |
8401 | ;; | |
8402 | *) | |
8403 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8404 | ;; | |
8405 | esac | |
81ecdfbb RW |
8406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8407 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8408 | |
8409 | ||
8410 | ||
8411 | ||
8412 | ||
8413 | ||
8414 | # | |
dabbade6 | 8415 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8416 | # |
dabbade6 | 8417 | if test -n "$lt_prog_compiler_pic"; then |
81ecdfbb RW |
8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8419 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 8420 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
81ecdfbb | 8421 | $as_echo_n "(cached) " >&6 |
dabbade6 | 8422 | else |
1927a18f | 8423 | lt_cv_prog_compiler_pic_works=no |
dabbade6 L |
8424 | ac_outfile=conftest.$ac_objext |
8425 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8426 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8427 | # Insert the option either (1) after the last *FLAGS variable, or | |
8428 | # (2) before a word containing "conftest.", or (3) at the end. | |
8429 | # Note that $ac_compile itself does not contain backslashes and begins | |
8430 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8431 | # The option is referenced via a variable to avoid confusing sed. | |
8432 | lt_compile=`echo "$ac_compile" | $SED \ | |
8433 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8434 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8435 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8436 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8437 | (eval "$lt_compile" 2>conftest.err) |
8438 | ac_status=$? | |
8439 | cat conftest.err >&5 | |
3725885a | 8440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8441 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8442 | # The compiler can only warn and ignore the option if not recognized | |
8443 | # So say no if there are warnings other than the usual output. | |
3725885a | 8444 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
dabbade6 L |
8445 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8446 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
1927a18f | 8447 | lt_cv_prog_compiler_pic_works=yes |
dabbade6 L |
8448 | fi |
8449 | fi | |
8450 | $RM conftest* | |
d7040cdb | 8451 | |
dabbade6 | 8452 | fi |
81ecdfbb RW |
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8454 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8455 | |
1927a18f | 8456 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
dabbade6 L |
8457 | case $lt_prog_compiler_pic in |
8458 | "" | " "*) ;; | |
8459 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8460 | esac | |
8461 | else | |
8462 | lt_prog_compiler_pic= | |
8463 | lt_prog_compiler_can_build_shared=no | |
8464 | fi | |
d7040cdb | 8465 | |
dabbade6 | 8466 | fi |
d7040cdb SE |
8467 | |
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | ||
dabbade6 L |
8473 | # |
8474 | # Check to make sure the static flag actually works. | |
8475 | # | |
8476 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8478 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 8479 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
81ecdfbb | 8480 | $as_echo_n "(cached) " >&6 |
dabbade6 | 8481 | else |
1927a18f | 8482 | lt_cv_prog_compiler_static_works=no |
dabbade6 L |
8483 | save_LDFLAGS="$LDFLAGS" |
8484 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8485 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8486 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8487 | # The linker can only warn and ignore the option if not recognized | |
8488 | # So say no if there are warnings | |
8489 | if test -s conftest.err; then | |
8490 | # Append any errors to the config.log. | |
8491 | cat conftest.err 1>&5 | |
3725885a | 8492 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
dabbade6 L |
8493 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8494 | if diff conftest.exp conftest.er2 >/dev/null; then | |
1927a18f | 8495 | lt_cv_prog_compiler_static_works=yes |
dabbade6 L |
8496 | fi |
8497 | else | |
1927a18f | 8498 | lt_cv_prog_compiler_static_works=yes |
dabbade6 L |
8499 | fi |
8500 | fi | |
1927a18f | 8501 | $RM -r conftest* |
dabbade6 | 8502 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8503 | |
dabbade6 | 8504 | fi |
81ecdfbb RW |
8505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8506 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8507 | |
1927a18f | 8508 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
dabbade6 L |
8509 | : |
8510 | else | |
8511 | lt_prog_compiler_static= | |
8512 | fi | |
d7040cdb SE |
8513 | |
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
81ecdfbb RW |
8520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8521 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8522 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8523 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
8524 | else |
8525 | lt_cv_prog_compiler_c_o=no | |
8526 | $RM -r conftest 2>/dev/null | |
8527 | mkdir conftest | |
8528 | cd conftest | |
8529 | mkdir out | |
8530 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8531 | |
dabbade6 L |
8532 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8533 | # Insert the option either (1) after the last *FLAGS variable, or | |
8534 | # (2) before a word containing "conftest.", or (3) at the end. | |
8535 | # Note that $ac_compile itself does not contain backslashes and begins | |
8536 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8537 | lt_compile=`echo "$ac_compile" | $SED \ | |
8538 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8539 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8540 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8541 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8542 | (eval "$lt_compile" 2>out/conftest.err) |
8543 | ac_status=$? | |
8544 | cat out/conftest.err >&5 | |
3725885a | 8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8546 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8547 | then | |
8548 | # The compiler can only warn and ignore the option if not recognized | |
8549 | # So say no if there are warnings | |
3725885a | 8550 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
dabbade6 L |
8551 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8552 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8553 | lt_cv_prog_compiler_c_o=yes | |
8554 | fi | |
8555 | fi | |
8556 | chmod u+w . 2>&5 | |
8557 | $RM conftest* | |
8558 | # SGI C++ compiler will create directory out/ii_files/ for | |
8559 | # template instantiation | |
8560 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8561 | $RM out/* && rmdir out | |
8562 | cd .. | |
8563 | $RM -r conftest | |
8564 | $RM conftest* | |
d7040cdb | 8565 | |
dabbade6 | 8566 | fi |
81ecdfbb RW |
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8568 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8569 | |
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
81ecdfbb RW |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8576 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8577 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8578 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
8579 | else |
8580 | lt_cv_prog_compiler_c_o=no | |
8581 | $RM -r conftest 2>/dev/null | |
8582 | mkdir conftest | |
8583 | cd conftest | |
8584 | mkdir out | |
8585 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8586 | |
dabbade6 L |
8587 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8588 | # Insert the option either (1) after the last *FLAGS variable, or | |
8589 | # (2) before a word containing "conftest.", or (3) at the end. | |
8590 | # Note that $ac_compile itself does not contain backslashes and begins | |
8591 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8592 | lt_compile=`echo "$ac_compile" | $SED \ | |
8593 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8594 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8595 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8596 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
dabbade6 L |
8597 | (eval "$lt_compile" 2>out/conftest.err) |
8598 | ac_status=$? | |
8599 | cat out/conftest.err >&5 | |
3725885a | 8600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dabbade6 L |
8601 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8602 | then | |
8603 | # The compiler can only warn and ignore the option if not recognized | |
8604 | # So say no if there are warnings | |
3725885a | 8605 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
dabbade6 L |
8606 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8607 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8608 | lt_cv_prog_compiler_c_o=yes | |
8609 | fi | |
8610 | fi | |
8611 | chmod u+w . 2>&5 | |
8612 | $RM conftest* | |
8613 | # SGI C++ compiler will create directory out/ii_files/ for | |
8614 | # template instantiation | |
8615 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8616 | $RM out/* && rmdir out | |
8617 | cd .. | |
8618 | $RM -r conftest | |
8619 | $RM conftest* | |
d7040cdb | 8620 | |
dabbade6 | 8621 | fi |
81ecdfbb RW |
8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8623 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8624 | |
8625 | ||
8626 | ||
8627 | ||
dabbade6 L |
8628 | hard_links="nottested" |
8629 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8630 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8632 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
dabbade6 L |
8633 | hard_links=yes |
8634 | $RM conftest* | |
8635 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8636 | touch conftest.a | |
8637 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8638 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8640 | $as_echo "$hard_links" >&6; } | |
dabbade6 | 8641 | if test "$hard_links" = no; then |
81ecdfbb RW |
8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8643 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
dabbade6 L |
8644 | need_locks=warn |
8645 | fi | |
8646 | else | |
8647 | need_locks=no | |
8648 | fi | |
d7040cdb SE |
8649 | |
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | ||
81ecdfbb RW |
8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8656 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8657 | |
dabbade6 L |
8658 | runpath_var= |
8659 | allow_undefined_flag= | |
8660 | always_export_symbols=no | |
8661 | archive_cmds= | |
8662 | archive_expsym_cmds= | |
8663 | compiler_needs_object=no | |
8664 | enable_shared_with_static_runtimes=no | |
8665 | export_dynamic_flag_spec= | |
8666 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8667 | hardcode_automatic=no | |
8668 | hardcode_direct=no | |
8669 | hardcode_direct_absolute=no | |
8670 | hardcode_libdir_flag_spec= | |
8671 | hardcode_libdir_flag_spec_ld= | |
8672 | hardcode_libdir_separator= | |
8673 | hardcode_minus_L=no | |
8674 | hardcode_shlibpath_var=unsupported | |
8675 | inherit_rpath=no | |
8676 | link_all_deplibs=unknown | |
8677 | module_cmds= | |
8678 | module_expsym_cmds= | |
8679 | old_archive_from_new_cmds= | |
8680 | old_archive_from_expsyms_cmds= | |
8681 | thread_safe_flag_spec= | |
8682 | whole_archive_flag_spec= | |
8683 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8684 | # included in the symbol list | |
8685 | include_expsyms= | |
8686 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8687 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8688 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8689 | # as well as any symbol that contains `d'. | |
1927a18f | 8690 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
dabbade6 L |
8691 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8692 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8693 | # the symbol is explicitly referenced. Since portable code cannot | |
8694 | # rely on this symbol name, it's probably fine to never include it in | |
8695 | # preloaded symbol tables. | |
1927a18f | 8696 | # Exclude shared library initialization/finalization symbols. |
dabbade6 | 8697 | extract_expsyms_cmds= |
d7040cdb | 8698 | |
dabbade6 | 8699 | case $host_os in |
1927a18f | 8700 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
8701 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8702 | # When not using gcc, we currently assume that we are using | |
8703 | # Microsoft Visual C++. | |
8704 | if test "$GCC" != yes; then | |
8705 | with_gnu_ld=no | |
8706 | fi | |
8707 | ;; | |
8708 | interix*) | |
8709 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8710 | with_gnu_ld=yes | |
8711 | ;; | |
8712 | openbsd*) | |
8713 | with_gnu_ld=no | |
8714 | ;; | |
8715 | esac | |
d7040cdb | 8716 | |
dabbade6 | 8717 | ld_shlibs=yes |
3725885a RW |
8718 | |
8719 | # On some targets, GNU ld is compatible enough with the native linker | |
8720 | # that we're better off using the native interface for both. | |
8721 | lt_use_gnu_ld_interface=no | |
dabbade6 | 8722 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
8723 | case $host_os in |
8724 | aix*) | |
8725 | # The AIX port of GNU ld has always aspired to compatibility | |
8726 | # with the native linker. However, as the warning in the GNU ld | |
8727 | # block says, versions before 2.19.5* couldn't really create working | |
8728 | # shared libraries, regardless of the interface used. | |
8729 | case `$LD -v 2>&1` in | |
8730 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8731 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8732 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8733 | *) | |
8734 | lt_use_gnu_ld_interface=yes | |
8735 | ;; | |
8736 | esac | |
8737 | ;; | |
8738 | *) | |
8739 | lt_use_gnu_ld_interface=yes | |
8740 | ;; | |
8741 | esac | |
8742 | fi | |
8743 | ||
8744 | if test "$lt_use_gnu_ld_interface" = yes; then | |
dabbade6 L |
8745 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8746 | wlarc='${wl}' | |
d7040cdb | 8747 | |
dabbade6 L |
8748 | # Set some defaults for GNU ld with shared library support. These |
8749 | # are reset later if shared libraries are not supported. Putting them | |
8750 | # here allows them to be overridden if necessary. | |
8751 | runpath_var=LD_RUN_PATH | |
8752 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8753 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8754 | # ancient GNU ld didn't support --whole-archive et. al. | |
8755 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8756 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8757 | else | |
8758 | whole_archive_flag_spec= | |
8759 | fi | |
8760 | supports_anon_versioning=no | |
8761 | case `$LD -v 2>&1` in | |
3725885a | 8762 | *GNU\ gold*) supports_anon_versioning=yes ;; |
dabbade6 L |
8763 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8764 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8765 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8766 | *\ 2.11.*) ;; # other 2.11 versions | |
8767 | *) supports_anon_versioning=yes ;; | |
8768 | esac | |
d7040cdb | 8769 | |
dabbade6 L |
8770 | # See if GNU ld supports shared libraries. |
8771 | case $host_os in | |
50e7d84b | 8772 | aix[3-9]*) |
dabbade6 L |
8773 | # On AIX/PPC, the GNU linker is very broken |
8774 | if test "$host_cpu" != ia64; then | |
8775 | ld_shlibs=no | |
8776 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8777 | |
3725885a | 8778 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
dabbade6 L |
8779 | *** to be unable to reliably create shared libraries on AIX. |
8780 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
8781 | *** really care for shared libraries, you may want to install binutils |
8782 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8783 | *** You will then need to restart the configuration process. | |
d7040cdb | 8784 | |
dabbade6 L |
8785 | _LT_EOF |
8786 | fi | |
8787 | ;; | |
d7040cdb | 8788 | |
dabbade6 | 8789 | amigaos*) |
1927a18f L |
8790 | case $host_cpu in |
8791 | powerpc) | |
8792 | # see comment about AmigaOS4 .so support | |
8793 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8794 | archive_expsym_cmds='' | |
8795 | ;; | |
8796 | m68k) | |
8797 | 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)' | |
8798 | hardcode_libdir_flag_spec='-L$libdir' | |
8799 | hardcode_minus_L=yes | |
8800 | ;; | |
8801 | esac | |
dabbade6 | 8802 | ;; |
d7040cdb | 8803 | |
dabbade6 L |
8804 | beos*) |
8805 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8806 | allow_undefined_flag=unsupported | |
8807 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8808 | # support --undefined. This deserves some investigation. FIXME | |
8809 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8810 | else | |
8811 | ld_shlibs=no | |
8812 | fi | |
8813 | ;; | |
d7040cdb | 8814 | |
1927a18f | 8815 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
8816 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8817 | # as there is no search path for DLLs. | |
8818 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 8819 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
dabbade6 L |
8820 | allow_undefined_flag=unsupported |
8821 | always_export_symbols=no | |
8822 | enable_shared_with_static_runtimes=yes | |
8823 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 8824 | |
dabbade6 L |
8825 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8826 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8827 | # If the export-symbols file already is a .def file (1st line | |
8828 | # is EXPORTS), use it as is; otherwise, prepend... | |
8829 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8830 | cp $export_symbols $output_objdir/$soname.def; | |
8831 | else | |
8832 | echo EXPORTS > $output_objdir/$soname.def; | |
8833 | cat $export_symbols >> $output_objdir/$soname.def; | |
8834 | fi~ | |
8835 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8836 | else | |
8837 | ld_shlibs=no | |
8838 | fi | |
8839 | ;; | |
d7040cdb | 8840 | |
3725885a RW |
8841 | haiku*) |
8842 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8843 | link_all_deplibs=yes | |
8844 | ;; | |
8845 | ||
dabbade6 L |
8846 | interix[3-9]*) |
8847 | hardcode_direct=no | |
8848 | hardcode_shlibpath_var=no | |
8849 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8850 | export_dynamic_flag_spec='${wl}-E' | |
8851 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8852 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8853 | # default) and relocated if they conflict, which is a slow very memory | |
8854 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8855 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8856 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8857 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8858 | 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' | |
8859 | ;; | |
d7040cdb | 8860 | |
6a6859cb | 8861 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
dabbade6 L |
8862 | tmp_diet=no |
8863 | if test "$host_os" = linux-dietlibc; then | |
8864 | case $cc_basename in | |
8865 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8866 | esac | |
8867 | fi | |
8868 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8869 | && test "$tmp_diet" = no | |
8870 | then | |
6e733cce | 8871 | tmp_addflag=' $pic_flag' |
1927a18f | 8872 | tmp_sharedflag='-shared' |
dabbade6 L |
8873 | case $cc_basename,$host_cpu in |
8874 | pgcc*) # Portland Group C compiler | |
3725885a | 8875 | 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' |
dabbade6 L |
8876 | tmp_addflag=' $pic_flag' |
8877 | ;; | |
3725885a RW |
8878 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8879 | # Portland Group f77 and f90 compilers | |
8880 | 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' | |
dabbade6 L |
8881 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8882 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8883 | tmp_addflag=' -i_dynamic' ;; | |
8884 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8885 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8886 | ifc* | ifort*) # Intel Fortran compiler | |
8887 | tmp_addflag=' -nofor_main' ;; | |
1927a18f L |
8888 | lf95*) # Lahey Fortran 8.1 |
8889 | whole_archive_flag_spec= | |
8890 | tmp_sharedflag='--shared' ;; | |
3725885a | 8891 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
1927a18f L |
8892 | tmp_sharedflag='-qmkshrobj' |
8893 | tmp_addflag= ;; | |
3725885a RW |
8894 | nvcc*) # Cuda Compiler Driver 2.2 |
8895 | 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' | |
8896 | compiler_needs_object=yes | |
8897 | ;; | |
dabbade6 L |
8898 | esac |
8899 | case `$CC -V 2>&1 | sed 5q` in | |
8900 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 8901 | 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' |
dabbade6 L |
8902 | compiler_needs_object=yes |
8903 | tmp_sharedflag='-G' ;; | |
8904 | *Sun\ F*) # Sun Fortran 8.3 | |
8905 | tmp_sharedflag='-G' ;; | |
dabbade6 L |
8906 | esac |
8907 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8908 | |
dabbade6 L |
8909 | if test "x$supports_anon_versioning" = xyes; then |
8910 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8911 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8912 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8913 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8914 | fi | |
1927a18f L |
8915 | |
8916 | case $cc_basename in | |
3725885a | 8917 | xlf* | bgf* | bgxlf* | mpixlf*) |
1927a18f L |
8918 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8919 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8920 | hardcode_libdir_flag_spec= | |
8921 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8922 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8923 | if test "x$supports_anon_versioning" = xyes; then | |
8924 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8925 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8926 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8927 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8928 | fi | |
8929 | ;; | |
8930 | esac | |
dabbade6 L |
8931 | else |
8932 | ld_shlibs=no | |
8933 | fi | |
8934 | ;; | |
d7040cdb | 8935 | |
dabbade6 L |
8936 | netbsd*) |
8937 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8938 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8939 | wlarc= | |
8940 | else | |
8941 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8942 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8943 | fi | |
8944 | ;; | |
d7040cdb | 8945 | |
dabbade6 L |
8946 | solaris*) |
8947 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8948 | ld_shlibs=no | |
8949 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8950 | |
dabbade6 L |
8951 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8952 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8953 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8954 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8955 | *** your PATH or compiler configuration so that the native linker is | |
8956 | *** used, and then restart. | |
d7040cdb | 8957 | |
dabbade6 L |
8958 | _LT_EOF |
8959 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8960 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8961 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8962 | else | |
8963 | ld_shlibs=no | |
8964 | fi | |
8965 | ;; | |
d7040cdb | 8966 | |
dabbade6 L |
8967 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8968 | case `$LD -v 2>&1` in | |
8969 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8970 | ld_shlibs=no | |
8971 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8972 | |
dabbade6 L |
8973 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8974 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8975 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8976 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8977 | *** your PATH or compiler configuration so that the native linker is | |
8978 | *** used, and then restart. | |
d7040cdb | 8979 | |
dabbade6 L |
8980 | _LT_EOF |
8981 | ;; | |
8982 | *) | |
8983 | # For security reasons, it is highly recommended that you always | |
8984 | # use absolute paths for naming shared libraries, and exclude the | |
8985 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8986 | # requires that you compile everything twice, which is a pain. | |
8987 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8988 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8989 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8990 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8991 | else | |
8992 | ld_shlibs=no | |
8993 | fi | |
8994 | ;; | |
8995 | esac | |
8996 | ;; | |
d7040cdb | 8997 | |
dabbade6 L |
8998 | sunos4*) |
8999 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9000 | wlarc= | |
9001 | hardcode_direct=yes | |
9002 | hardcode_shlibpath_var=no | |
9003 | ;; | |
d7040cdb | 9004 | |
dabbade6 L |
9005 | *) |
9006 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9007 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9008 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9009 | else | |
9010 | ld_shlibs=no | |
9011 | fi | |
9012 | ;; | |
9013 | esac | |
d7040cdb | 9014 | |
dabbade6 L |
9015 | if test "$ld_shlibs" = no; then |
9016 | runpath_var= | |
9017 | hardcode_libdir_flag_spec= | |
9018 | export_dynamic_flag_spec= | |
9019 | whole_archive_flag_spec= | |
9020 | fi | |
9021 | else | |
9022 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9023 | case $host_os in | |
9024 | aix3*) | |
9025 | allow_undefined_flag=unsupported | |
9026 | always_export_symbols=yes | |
9027 | 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' | |
9028 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9029 | # are no directories specified by -L. | |
9030 | hardcode_minus_L=yes | |
9031 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9032 | # Neither direct hardcoding nor static linking is supported with a | |
9033 | # broken collect2. | |
9034 | hardcode_direct=unsupported | |
9035 | fi | |
9036 | ;; | |
d7040cdb | 9037 | |
50e7d84b | 9038 | aix[4-9]*) |
dabbade6 L |
9039 | if test "$host_cpu" = ia64; then |
9040 | # On IA64, the linker does run time linking by default, so we don't | |
9041 | # have to do anything special. | |
9042 | aix_use_runtimelinking=no | |
9043 | exp_sym_flag='-Bexport' | |
9044 | no_entry_flag="" | |
9045 | else | |
9046 | # If we're using GNU nm, then we don't want the "-C" option. | |
9047 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
9048 | # Also, AIX nm treats weak defined symbols like other global |
9049 | # defined symbols, whereas GNU nm marks them as "W". | |
dabbade6 | 9050 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 9051 | 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' |
dabbade6 | 9052 | else |
5c14705f | 9053 | 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' |
dabbade6 L |
9054 | fi |
9055 | aix_use_runtimelinking=no | |
d7040cdb | 9056 | |
dabbade6 L |
9057 | # Test if we are trying to use run time linking or normal |
9058 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9059 | # need to do runtime linking. | |
50e7d84b | 9060 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
dabbade6 L |
9061 | for ld_flag in $LDFLAGS; do |
9062 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9063 | aix_use_runtimelinking=yes | |
9064 | break | |
9065 | fi | |
9066 | done | |
9067 | ;; | |
9068 | esac | |
d7040cdb | 9069 | |
dabbade6 L |
9070 | exp_sym_flag='-bexport' |
9071 | no_entry_flag='-bnoentry' | |
9072 | fi | |
d7040cdb | 9073 | |
dabbade6 L |
9074 | # When large executables or shared objects are built, AIX ld can |
9075 | # have problems creating the table of contents. If linking a library | |
9076 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9077 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9078 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 9079 | |
dabbade6 L |
9080 | archive_cmds='' |
9081 | hardcode_direct=yes | |
9082 | hardcode_direct_absolute=yes | |
9083 | hardcode_libdir_separator=':' | |
9084 | link_all_deplibs=yes | |
9085 | file_list_spec='${wl}-f,' | |
d7040cdb | 9086 | |
dabbade6 L |
9087 | if test "$GCC" = yes; then |
9088 | case $host_os in aix4.[012]|aix4.[012].*) | |
9089 | # We only want to do this on AIX 4.2 and lower, the check | |
9090 | # below for broken collect2 doesn't work under 4.3+ | |
9091 | collect2name=`${CC} -print-prog-name=collect2` | |
9092 | if test -f "$collect2name" && | |
9093 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9094 | then | |
9095 | # We have reworked collect2 | |
9096 | : | |
9097 | else | |
9098 | # We have old collect2 | |
9099 | hardcode_direct=unsupported | |
9100 | # It fails to find uninstalled libraries when the uninstalled | |
9101 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9102 | # to unsupported forces relinking | |
9103 | hardcode_minus_L=yes | |
9104 | hardcode_libdir_flag_spec='-L$libdir' | |
9105 | hardcode_libdir_separator= | |
9106 | fi | |
9107 | ;; | |
9108 | esac | |
9109 | shared_flag='-shared' | |
9110 | if test "$aix_use_runtimelinking" = yes; then | |
9111 | shared_flag="$shared_flag "'${wl}-G' | |
9112 | fi | |
9113 | else | |
9114 | # not using gcc | |
9115 | if test "$host_cpu" = ia64; then | |
9116 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9117 | # chokes on -Wl,-G. The following line is correct: | |
9118 | shared_flag='-G' | |
9119 | else | |
9120 | if test "$aix_use_runtimelinking" = yes; then | |
9121 | shared_flag='${wl}-G' | |
9122 | else | |
9123 | shared_flag='${wl}-bM:SRE' | |
9124 | fi | |
9125 | fi | |
9126 | fi | |
d7040cdb | 9127 | |
1927a18f | 9128 | export_dynamic_flag_spec='${wl}-bexpall' |
dabbade6 L |
9129 | # It seems that -bexpall does not export symbols beginning with |
9130 | # underscore (_), so it is better to generate a list of symbols to export. | |
9131 | always_export_symbols=yes | |
9132 | if test "$aix_use_runtimelinking" = yes; then | |
9133 | # Warning - without using the other runtime loading flags (-brtl), | |
9134 | # -berok will link without error, but may produce a broken library. | |
9135 | allow_undefined_flag='-berok' | |
9136 | # Determine the default libpath from the value encoded in an | |
9137 | # empty executable. | |
81ecdfbb | 9138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 9139 | /* end confdefs.h. */ |
d7040cdb | 9140 | |
dabbade6 L |
9141 | int |
9142 | main () | |
9143 | { | |
d7040cdb | 9144 | |
dabbade6 L |
9145 | ; |
9146 | return 0; | |
9147 | } | |
9148 | _ACEOF | |
81ecdfbb | 9149 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9150 | |
dabbade6 L |
9151 | lt_aix_libpath_sed=' |
9152 | /Import File Strings/,/^$/ { | |
9153 | /^0/ { | |
9154 | s/^0 *\(.*\)$/\1/ | |
9155 | p | |
9156 | } | |
9157 | }' | |
9158 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9159 | # Check for a 64-bit object if we didn't find anything. | |
9160 | if test -z "$aix_libpath"; then | |
9161 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9162 | fi | |
dabbade6 | 9163 | fi |
81ecdfbb RW |
9164 | rm -f core conftest.err conftest.$ac_objext \ |
9165 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 9166 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9167 | |
dabbade6 | 9168 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 9169 | 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" |
dabbade6 L |
9170 | else |
9171 | if test "$host_cpu" = ia64; then | |
9172 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9173 | allow_undefined_flag="-z nodefs" | |
9174 | 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" | |
9175 | else | |
9176 | # Determine the default libpath from the value encoded in an | |
9177 | # empty executable. | |
81ecdfbb | 9178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 9179 | /* end confdefs.h. */ |
d7040cdb | 9180 | |
dabbade6 L |
9181 | int |
9182 | main () | |
9183 | { | |
d7040cdb | 9184 | |
dabbade6 L |
9185 | ; |
9186 | return 0; | |
9187 | } | |
9188 | _ACEOF | |
81ecdfbb | 9189 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9190 | |
dabbade6 L |
9191 | lt_aix_libpath_sed=' |
9192 | /Import File Strings/,/^$/ { | |
9193 | /^0/ { | |
9194 | s/^0 *\(.*\)$/\1/ | |
9195 | p | |
9196 | } | |
9197 | }' | |
9198 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9199 | # Check for a 64-bit object if we didn't find anything. | |
9200 | if test -z "$aix_libpath"; then | |
9201 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9202 | fi | |
dabbade6 | 9203 | fi |
81ecdfbb RW |
9204 | rm -f core conftest.err conftest.$ac_objext \ |
9205 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 9206 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9207 | |
dabbade6 L |
9208 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9209 | # Warning - without using the other run time loading flags, | |
9210 | # -berok will link without error, but may produce a broken library. | |
9211 | no_undefined_flag=' ${wl}-bernotok' | |
9212 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
9213 | if test "$with_gnu_ld" = yes; then |
9214 | # We only use this code for GNU lds that support --whole-archive. | |
9215 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9216 | else | |
9217 | # Exported symbols can be pulled into shared objects from archives | |
9218 | whole_archive_flag_spec='$convenience' | |
9219 | fi | |
dabbade6 L |
9220 | archive_cmds_need_lc=yes |
9221 | # This is similar to how AIX traditionally builds its shared libraries. | |
9222 | 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' | |
9223 | fi | |
9224 | fi | |
9225 | ;; | |
d7040cdb | 9226 | |
dabbade6 | 9227 | amigaos*) |
1927a18f L |
9228 | case $host_cpu in |
9229 | powerpc) | |
9230 | # see comment about AmigaOS4 .so support | |
9231 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9232 | archive_expsym_cmds='' | |
9233 | ;; | |
9234 | m68k) | |
9235 | 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)' | |
9236 | hardcode_libdir_flag_spec='-L$libdir' | |
9237 | hardcode_minus_L=yes | |
9238 | ;; | |
9239 | esac | |
dabbade6 | 9240 | ;; |
d7040cdb | 9241 | |
dabbade6 L |
9242 | bsdi[45]*) |
9243 | export_dynamic_flag_spec=-rdynamic | |
9244 | ;; | |
d7040cdb | 9245 | |
1927a18f | 9246 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
9247 | # When not using gcc, we currently assume that we are using |
9248 | # Microsoft Visual C++. | |
9249 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9250 | # no search path for DLLs. | |
9251 | hardcode_libdir_flag_spec=' ' | |
9252 | allow_undefined_flag=unsupported | |
9253 | # Tell ltmain to make .lib files, not .a files. | |
9254 | libext=lib | |
9255 | # Tell ltmain to make .dll files, not .so files. | |
9256 | shrext_cmds=".dll" | |
9257 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 9258 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
dabbade6 L |
9259 | # The linker will automatically build a .lib file if we build a DLL. |
9260 | old_archive_from_new_cmds='true' | |
9261 | # FIXME: Should let the user specify the lib program. | |
9262 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9263 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9264 | enable_shared_with_static_runtimes=yes | |
9265 | ;; | |
d7040cdb | 9266 | |
dabbade6 | 9267 | darwin* | rhapsody*) |
d7040cdb | 9268 | |
1927a18f L |
9269 | |
9270 | archive_cmds_need_lc=no | |
9271 | hardcode_direct=no | |
9272 | hardcode_automatic=yes | |
9273 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9274 | if test "$lt_cv_ld_force_load" = "yes"; then |
9275 | 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\"`' | |
9276 | else | |
9277 | whole_archive_flag_spec='' | |
9278 | fi | |
1927a18f L |
9279 | link_all_deplibs=yes |
9280 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9281 | case $cc_basename in | |
9282 | ifort*) _lt_dar_can_shared=yes ;; | |
9283 | *) _lt_dar_can_shared=$GCC ;; | |
9284 | esac | |
9285 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9286 | output_verbose_link_cmd=func_echo_all |
1927a18f L |
9287 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9288 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9289 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
9290 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
9291 | ||
9292 | else | |
9293 | ld_shlibs=no | |
9294 | fi | |
9295 | ||
dabbade6 | 9296 | ;; |
d7040cdb | 9297 | |
dabbade6 L |
9298 | dgux*) |
9299 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9300 | hardcode_libdir_flag_spec='-L$libdir' | |
9301 | hardcode_shlibpath_var=no | |
9302 | ;; | |
d7040cdb | 9303 | |
dabbade6 L |
9304 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9305 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9306 | # does not break anything, and helps significantly (at the cost of a little | |
9307 | # extra space). | |
9308 | freebsd2.2*) | |
9309 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9310 | hardcode_libdir_flag_spec='-R$libdir' | |
9311 | hardcode_direct=yes | |
9312 | hardcode_shlibpath_var=no | |
9313 | ;; | |
d7040cdb | 9314 | |
dabbade6 | 9315 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 9316 | freebsd2.*) |
dabbade6 L |
9317 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9318 | hardcode_direct=yes | |
9319 | hardcode_minus_L=yes | |
9320 | hardcode_shlibpath_var=no | |
9321 | ;; | |
d7040cdb | 9322 | |
dabbade6 L |
9323 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9324 | freebsd* | dragonfly*) | |
9325 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9326 | hardcode_libdir_flag_spec='-R$libdir' | |
9327 | hardcode_direct=yes | |
9328 | hardcode_shlibpath_var=no | |
9329 | ;; | |
d7040cdb | 9330 | |
dabbade6 L |
9331 | hpux9*) |
9332 | if test "$GCC" = yes; then | |
9333 | 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' | |
9334 | else | |
9335 | 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' | |
9336 | fi | |
9337 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9338 | hardcode_libdir_separator=: | |
9339 | hardcode_direct=yes | |
d7040cdb | 9340 | |
dabbade6 L |
9341 | # hardcode_minus_L: Not really in the search PATH, |
9342 | # but as the default location of the library. | |
9343 | hardcode_minus_L=yes | |
9344 | export_dynamic_flag_spec='${wl}-E' | |
9345 | ;; | |
d7040cdb | 9346 | |
dabbade6 | 9347 | hpux10*) |
3725885a | 9348 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
dabbade6 L |
9349 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9350 | else | |
9351 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9352 | fi | |
9353 | if test "$with_gnu_ld" = no; then | |
9354 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9355 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9356 | hardcode_libdir_separator=: | |
9357 | hardcode_direct=yes | |
9358 | hardcode_direct_absolute=yes | |
9359 | export_dynamic_flag_spec='${wl}-E' | |
9360 | # hardcode_minus_L: Not really in the search PATH, | |
9361 | # but as the default location of the library. | |
9362 | hardcode_minus_L=yes | |
9363 | fi | |
9364 | ;; | |
d7040cdb | 9365 | |
dabbade6 | 9366 | hpux11*) |
3725885a | 9367 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
dabbade6 L |
9368 | case $host_cpu in |
9369 | hppa*64*) | |
6a6859cb | 9370 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
dabbade6 L |
9371 | ;; |
9372 | ia64*) | |
1927a18f | 9373 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
dabbade6 L |
9374 | ;; |
9375 | *) | |
9376 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9377 | ;; | |
9378 | esac | |
9379 | else | |
9380 | case $host_cpu in | |
9381 | hppa*64*) | |
6a6859cb | 9382 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
dabbade6 L |
9383 | ;; |
9384 | ia64*) | |
9385 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9386 | ;; | |
9387 | *) | |
3725885a RW |
9388 | |
9389 | # Older versions of the 11.00 compiler do not understand -b yet | |
9390 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9392 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 9393 | if ${lt_cv_prog_compiler__b+:} false; then : |
3725885a RW |
9394 | $as_echo_n "(cached) " >&6 |
9395 | else | |
9396 | lt_cv_prog_compiler__b=no | |
9397 | save_LDFLAGS="$LDFLAGS" | |
9398 | LDFLAGS="$LDFLAGS -b" | |
9399 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9400 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9401 | # The linker can only warn and ignore the option if not recognized | |
9402 | # So say no if there are warnings | |
9403 | if test -s conftest.err; then | |
9404 | # Append any errors to the config.log. | |
9405 | cat conftest.err 1>&5 | |
9406 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9407 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9408 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9409 | lt_cv_prog_compiler__b=yes | |
9410 | fi | |
9411 | else | |
9412 | lt_cv_prog_compiler__b=yes | |
9413 | fi | |
9414 | fi | |
9415 | $RM -r conftest* | |
9416 | LDFLAGS="$save_LDFLAGS" | |
9417 | ||
9418 | fi | |
9419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9420 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9421 | ||
9422 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9423 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9424 | else | |
9425 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9426 | fi | |
9427 | ||
dabbade6 L |
9428 | ;; |
9429 | esac | |
9430 | fi | |
9431 | if test "$with_gnu_ld" = no; then | |
9432 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9433 | hardcode_libdir_separator=: | |
d7040cdb | 9434 | |
dabbade6 L |
9435 | case $host_cpu in |
9436 | hppa*64*|ia64*) | |
9437 | hardcode_direct=no | |
9438 | hardcode_shlibpath_var=no | |
9439 | ;; | |
9440 | *) | |
9441 | hardcode_direct=yes | |
9442 | hardcode_direct_absolute=yes | |
9443 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9444 | |
dabbade6 L |
9445 | # hardcode_minus_L: Not really in the search PATH, |
9446 | # but as the default location of the library. | |
9447 | hardcode_minus_L=yes | |
9448 | ;; | |
9449 | esac | |
9450 | fi | |
9451 | ;; | |
d7040cdb | 9452 | |
dabbade6 L |
9453 | irix5* | irix6* | nonstopux*) |
9454 | if test "$GCC" = yes; then | |
3725885a | 9455 | 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' |
dabbade6 L |
9456 | # Try to use the -exported_symbol ld option, if it does not |
9457 | # work, assume that -exports_file does not work either and | |
9458 | # implicitly export all symbols. | |
9459 | save_LDFLAGS="$LDFLAGS" | |
9460 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9462 | /* end confdefs.h. */ | |
dabbade6 L |
9463 | int foo(void) {} |
9464 | _ACEOF | |
81ecdfbb | 9465 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 9466 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
d7040cdb | 9467 | |
d7040cdb | 9468 | fi |
81ecdfbb RW |
9469 | rm -f core conftest.err conftest.$ac_objext \ |
9470 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
9471 | LDFLAGS="$save_LDFLAGS" |
9472 | else | |
3725885a RW |
9473 | 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' |
9474 | 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' | |
dabbade6 L |
9475 | fi |
9476 | archive_cmds_need_lc='no' | |
9477 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9478 | hardcode_libdir_separator=: | |
9479 | inherit_rpath=yes | |
9480 | link_all_deplibs=yes | |
9481 | ;; | |
d7040cdb | 9482 | |
dabbade6 L |
9483 | netbsd*) |
9484 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9485 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9486 | else | |
9487 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9488 | fi | |
9489 | hardcode_libdir_flag_spec='-R$libdir' | |
9490 | hardcode_direct=yes | |
9491 | hardcode_shlibpath_var=no | |
9492 | ;; | |
d7040cdb | 9493 | |
dabbade6 L |
9494 | newsos6) |
9495 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9496 | hardcode_direct=yes | |
9497 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9498 | hardcode_libdir_separator=: | |
9499 | hardcode_shlibpath_var=no | |
9500 | ;; | |
d7040cdb | 9501 | |
dabbade6 L |
9502 | *nto* | *qnx*) |
9503 | ;; | |
d7040cdb | 9504 | |
dabbade6 | 9505 | openbsd*) |
1927a18f L |
9506 | if test -f /usr/libexec/ld.so; then |
9507 | hardcode_direct=yes | |
9508 | hardcode_shlibpath_var=no | |
9509 | hardcode_direct_absolute=yes | |
9510 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
dabbade6 | 9511 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
1927a18f | 9512 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
dabbade6 | 9513 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
1927a18f L |
9514 | export_dynamic_flag_spec='${wl}-E' |
9515 | else | |
9516 | case $host_os in | |
9517 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9518 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9519 | hardcode_libdir_flag_spec='-R$libdir' | |
9520 | ;; | |
9521 | *) | |
9522 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9523 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9524 | ;; | |
9525 | esac | |
9526 | fi | |
9527 | else | |
9528 | ld_shlibs=no | |
d7040cdb SE |
9529 | fi |
9530 | ;; | |
d7040cdb | 9531 | |
dabbade6 L |
9532 | os2*) |
9533 | hardcode_libdir_flag_spec='-L$libdir' | |
9534 | hardcode_minus_L=yes | |
9535 | allow_undefined_flag=unsupported | |
3725885a | 9536 | 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' |
dabbade6 L |
9537 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9538 | ;; | |
d7040cdb | 9539 | |
dabbade6 L |
9540 | osf3*) |
9541 | if test "$GCC" = yes; then | |
9542 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9543 | 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' |
dabbade6 L |
9544 | else |
9545 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9546 | 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' |
dabbade6 L |
9547 | fi |
9548 | archive_cmds_need_lc='no' | |
9549 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9550 | hardcode_libdir_separator=: | |
9551 | ;; | |
d7040cdb | 9552 | |
dabbade6 L |
9553 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9554 | if test "$GCC" = yes; then | |
9555 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9556 | 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' |
dabbade6 L |
9557 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9558 | else | |
9559 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9560 | 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' |
dabbade6 | 9561 | 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 | 9562 | $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 | 9563 | |
dabbade6 L |
9564 | # Both c and cxx compiler support -rpath directly |
9565 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9566 | fi | |
9567 | archive_cmds_need_lc='no' | |
9568 | hardcode_libdir_separator=: | |
9569 | ;; | |
d7040cdb | 9570 | |
dabbade6 L |
9571 | solaris*) |
9572 | no_undefined_flag=' -z defs' | |
9573 | if test "$GCC" = yes; then | |
9574 | wlarc='${wl}' | |
9575 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9576 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9577 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9578 | else | |
9579 | case `$CC -V 2>&1` in | |
9580 | *"Compilers 5.0"*) | |
9581 | wlarc='' | |
9582 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9583 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9584 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9585 | ;; | |
9586 | *) | |
9587 | wlarc='${wl}' | |
9588 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9589 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9590 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9591 | ;; | |
9592 | esac | |
9593 | fi | |
9594 | hardcode_libdir_flag_spec='-R$libdir' | |
9595 | hardcode_shlibpath_var=no | |
9596 | case $host_os in | |
9597 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9598 | *) | |
9599 | # The compiler driver will combine and reorder linker options, | |
9600 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9601 | # but is careful enough not to reorder. | |
9602 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9603 | if test "$GCC" = yes; then | |
9604 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9605 | else | |
9606 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9607 | fi | |
9608 | ;; | |
9609 | esac | |
9610 | link_all_deplibs=yes | |
d7040cdb | 9611 | ;; |
dabbade6 L |
9612 | |
9613 | sunos4*) | |
9614 | if test "x$host_vendor" = xsequent; then | |
9615 | # Use $CC to link under sequent, because it throws in some extra .o | |
9616 | # files that make .init and .fini sections work. | |
9617 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9618 | else |
dabbade6 | 9619 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9620 | fi |
dabbade6 L |
9621 | hardcode_libdir_flag_spec='-L$libdir' |
9622 | hardcode_direct=yes | |
9623 | hardcode_minus_L=yes | |
9624 | hardcode_shlibpath_var=no | |
d7040cdb | 9625 | ;; |
dabbade6 L |
9626 | |
9627 | sysv4) | |
9628 | case $host_vendor in | |
9629 | sni) | |
9630 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9631 | hardcode_direct=yes # is this really true??? | |
9632 | ;; | |
9633 | siemens) | |
9634 | ## LD is ld it makes a PLAMLIB | |
9635 | ## CC just makes a GrossModule. | |
9636 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9637 | reload_cmds='$CC -r -o $output$reload_objs' | |
9638 | hardcode_direct=no | |
9639 | ;; | |
9640 | motorola) | |
9641 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9642 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9643 | ;; | |
9644 | esac | |
9645 | runpath_var='LD_RUN_PATH' | |
9646 | hardcode_shlibpath_var=no | |
d7040cdb | 9647 | ;; |
d7040cdb | 9648 | |
dabbade6 L |
9649 | sysv4.3*) |
9650 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9651 | hardcode_shlibpath_var=no | |
9652 | export_dynamic_flag_spec='-Bexport' | |
9653 | ;; | |
d7040cdb | 9654 | |
dabbade6 L |
9655 | sysv4*MP*) |
9656 | if test -d /usr/nec; then | |
9657 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9658 | hardcode_shlibpath_var=no | |
9659 | runpath_var=LD_RUN_PATH | |
9660 | hardcode_runpath_var=yes | |
9661 | ld_shlibs=yes | |
9662 | fi | |
9663 | ;; | |
d7040cdb | 9664 | |
dabbade6 L |
9665 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9666 | no_undefined_flag='${wl}-z,text' | |
9667 | archive_cmds_need_lc=no | |
9668 | hardcode_shlibpath_var=no | |
9669 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9670 | |
dabbade6 L |
9671 | if test "$GCC" = yes; then |
9672 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9673 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9674 | else | |
9675 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9676 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9677 | fi | |
9678 | ;; | |
d7040cdb | 9679 | |
dabbade6 L |
9680 | sysv5* | sco3.2v5* | sco5v6*) |
9681 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9682 | # link with -lc, and that would cause any symbols used from libc to | |
9683 | # always be unresolved, which means just about no library would | |
9684 | # ever link correctly. If we're not using GNU ld we use -z text | |
9685 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9686 | # as -z defs. | |
9687 | no_undefined_flag='${wl}-z,text' | |
9688 | allow_undefined_flag='${wl}-z,nodefs' | |
9689 | archive_cmds_need_lc=no | |
9690 | hardcode_shlibpath_var=no | |
9691 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9692 | hardcode_libdir_separator=':' | |
9693 | link_all_deplibs=yes | |
9694 | export_dynamic_flag_spec='${wl}-Bexport' | |
9695 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9696 | |
dabbade6 L |
9697 | if test "$GCC" = yes; then |
9698 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9699 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9700 | else | |
9701 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9702 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9703 | fi | |
d7040cdb | 9704 | ;; |
d7040cdb | 9705 | |
dabbade6 L |
9706 | uts4*) |
9707 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9708 | hardcode_libdir_flag_spec='-L$libdir' | |
9709 | hardcode_shlibpath_var=no | |
9710 | ;; | |
d7040cdb | 9711 | |
dabbade6 L |
9712 | *) |
9713 | ld_shlibs=no | |
9714 | ;; | |
9715 | esac | |
9716 | ||
9717 | if test x$host_vendor = xsni; then | |
9718 | case $host in | |
9719 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9720 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9721 | ;; | |
9722 | esac | |
d7040cdb | 9723 | fi |
dabbade6 | 9724 | fi |
d7040cdb | 9725 | |
81ecdfbb RW |
9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9727 | $as_echo "$ld_shlibs" >&6; } | |
dabbade6 | 9728 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 9729 | |
dabbade6 | 9730 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9731 | |
d7040cdb | 9732 | |
d7040cdb | 9733 | |
d7040cdb | 9734 | |
d7040cdb | 9735 | |
d7040cdb | 9736 | |
d7040cdb | 9737 | |
d7040cdb | 9738 | |
d7040cdb | 9739 | |
d7040cdb | 9740 | |
d7040cdb | 9741 | |
d7040cdb | 9742 | |
d7040cdb | 9743 | |
d7040cdb | 9744 | |
d7040cdb | 9745 | |
dabbade6 L |
9746 | # |
9747 | # Do we need to explicitly link libc? | |
9748 | # | |
9749 | case "x$archive_cmds_need_lc" in | |
9750 | x|xyes) | |
9751 | # Assume -lc should be added | |
9752 | archive_cmds_need_lc=yes | |
d7040cdb | 9753 | |
dabbade6 L |
9754 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9755 | case $archive_cmds in | |
9756 | *'~'*) | |
9757 | # FIXME: we may have to deal with multi-command sequences. | |
9758 | ;; | |
9759 | '$CC '*) | |
9760 | # Test whether the compiler implicitly links with -lc since on some | |
9761 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9762 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9764 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 9765 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
81ecdfbb | 9766 | $as_echo_n "(cached) " >&6 |
39144654 RW |
9767 | else |
9768 | $RM conftest* | |
9769 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9770 | |
81ecdfbb | 9771 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
dabbade6 L |
9772 | (eval $ac_compile) 2>&5 |
9773 | ac_status=$? | |
81ecdfbb RW |
9774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9775 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9776 | soname=conftest |
9777 | lib=conftest | |
9778 | libobjs=conftest.$ac_objext | |
9779 | deplibs= | |
9780 | wl=$lt_prog_compiler_wl | |
9781 | pic_flag=$lt_prog_compiler_pic | |
9782 | compiler_flags=-v | |
9783 | linker_flags=-v | |
9784 | verstring= | |
9785 | output_objdir=. | |
9786 | libname=conftest | |
9787 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9788 | allow_undefined_flag= | |
81ecdfbb | 9789 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
dabbade6 L |
9790 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9791 | ac_status=$? | |
81ecdfbb RW |
9792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9793 | test $ac_status = 0; } | |
39144654 RW |
9794 | then |
9795 | lt_cv_archive_cmds_need_lc=no | |
9796 | else | |
9797 | lt_cv_archive_cmds_need_lc=yes | |
9798 | fi | |
9799 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9800 | else | |
9801 | cat conftest.err 1>&5 | |
9802 | fi | |
9803 | $RM conftest* | |
9804 | ||
9805 | fi | |
81ecdfbb RW |
9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9807 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9808 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
dabbade6 L |
9809 | ;; |
9810 | esac | |
d7040cdb | 9811 | fi |
d7040cdb | 9812 | ;; |
dabbade6 | 9813 | esac |
d7040cdb | 9814 | |
d7040cdb | 9815 | |
d7040cdb | 9816 | |
d7040cdb | 9817 | |
d7040cdb | 9818 | |
d7040cdb | 9819 | |
d7040cdb | 9820 | |
d7040cdb SE |
9821 | |
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
d7040cdb | 9908 | |
d7040cdb | 9909 | |
d7040cdb SE |
9910 | |
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
d7040cdb | 9916 | |
d7040cdb | 9917 | |
d7040cdb | 9918 | |
d7040cdb | 9919 | |
d7040cdb | 9920 | |
d7040cdb | 9921 | |
d7040cdb | 9922 | |
d7040cdb | 9923 | |
d7040cdb | 9924 | |
d7040cdb | 9925 | |
d7040cdb | 9926 | |
d7040cdb | 9927 | |
d7040cdb | 9928 | |
d7040cdb | 9929 | |
d7040cdb | 9930 | |
d7040cdb | 9931 | |
d7040cdb | 9932 | |
d7040cdb | 9933 | |
d7040cdb | 9934 | |
d7040cdb | 9935 | |
d7040cdb | 9936 | |
d7040cdb | 9937 | |
d7040cdb | 9938 | |
d7040cdb | 9939 | |
dabbade6 L |
9940 | |
9941 | ||
9942 | ||
9943 | ||
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | ||
9949 | ||
9950 | ||
9951 | ||
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | ||
9963 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
81ecdfbb RW |
9971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9972 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
1927a18f L |
9973 | |
9974 | if test "$GCC" = yes; then | |
dabbade6 L |
9975 | case $host_os in |
9976 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9977 | *) lt_awk_arg="/^libraries:/" ;; | |
9978 | esac | |
3725885a RW |
9979 | case $host_os in |
9980 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9981 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9982 | esac | |
9983 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9984 | case $lt_search_path_spec in | |
9985 | *\;*) | |
dabbade6 L |
9986 | # if the path contains ";" then we assume it to be the separator |
9987 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9988 | # assumed that no part of a normal pathname contains ";" but that should | |
9989 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
9990 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9991 | ;; | |
9992 | *) | |
9993 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9994 | ;; | |
9995 | esac | |
dabbade6 L |
9996 | # Ok, now we have the path, separated by spaces, we can step through it |
9997 | # and add multilib dir if necessary. | |
9998 | lt_tmp_lt_search_path_spec= | |
9999 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10000 | for lt_sys_path in $lt_search_path_spec; do | |
10001 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10002 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10003 | else | |
10004 | test -d "$lt_sys_path" && \ | |
10005 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10006 | fi | |
10007 | done | |
3725885a | 10008 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
dabbade6 L |
10009 | BEGIN {RS=" "; FS="/|\n";} { |
10010 | lt_foo=""; | |
10011 | lt_count=0; | |
10012 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10013 | if ($lt_i != "" && $lt_i != ".") { | |
10014 | if ($lt_i == "..") { | |
10015 | lt_count++; | |
10016 | } else { | |
10017 | if (lt_count == 0) { | |
10018 | lt_foo="/" $lt_i lt_foo; | |
10019 | } else { | |
10020 | lt_count--; | |
10021 | } | |
10022 | } | |
10023 | } | |
10024 | } | |
10025 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10026 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10027 | }'` | |
3725885a RW |
10028 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10029 | # for these hosts. | |
10030 | case $host_os in | |
10031 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10032 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10033 | esac | |
10034 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 10035 | else |
dabbade6 L |
10036 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10037 | fi | |
10038 | library_names_spec= | |
10039 | libname_spec='lib$name' | |
10040 | soname_spec= | |
10041 | shrext_cmds=".so" | |
10042 | postinstall_cmds= | |
10043 | postuninstall_cmds= | |
10044 | finish_cmds= | |
10045 | finish_eval= | |
10046 | shlibpath_var= | |
10047 | shlibpath_overrides_runpath=unknown | |
10048 | version_type=none | |
10049 | dynamic_linker="$host_os ld.so" | |
10050 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10051 | need_lib_prefix=unknown | |
10052 | hardcode_into_libs=no | |
10053 | ||
10054 | # when you set need_version to no, make sure it does not cause -set_version | |
10055 | # flags to be left without arguments | |
10056 | need_version=unknown | |
10057 | ||
10058 | case $host_os in | |
10059 | aix3*) | |
10060 | version_type=linux | |
10061 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10062 | shlibpath_var=LIBPATH | |
10063 | ||
10064 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10065 | soname_spec='${libname}${release}${shared_ext}$major' | |
10066 | ;; | |
10067 | ||
50e7d84b | 10068 | aix[4-9]*) |
dabbade6 L |
10069 | version_type=linux |
10070 | need_lib_prefix=no | |
10071 | need_version=no | |
10072 | hardcode_into_libs=yes | |
10073 | if test "$host_cpu" = ia64; then | |
10074 | # AIX 5 supports IA64 | |
10075 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10076 | shlibpath_var=LD_LIBRARY_PATH | |
10077 | else | |
10078 | # With GCC up to 2.95.x, collect2 would create an import file | |
10079 | # for dependence libraries. The import file would start with | |
10080 | # the line `#! .'. This would cause the generated library to | |
10081 | # depend on `.', always an invalid library. This was fixed in | |
10082 | # development snapshots of GCC prior to 3.0. | |
10083 | case $host_os in | |
10084 | aix4 | aix4.[01] | aix4.[01].*) | |
10085 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10086 | echo ' yes ' | |
10087 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10088 | : | |
10089 | else | |
10090 | can_build_shared=no | |
10091 | fi | |
10092 | ;; | |
10093 | esac | |
10094 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10095 | # soname into executable. Probably we can add versioning support to | |
10096 | # collect2, so additional links can be useful in future. | |
10097 | if test "$aix_use_runtimelinking" = yes; then | |
10098 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10099 | # instead of lib<name>.a to let people know that these are not | |
10100 | # typical AIX shared libraries. | |
10101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10102 | else | |
10103 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10104 | # and later when we are not doing run time linking. | |
10105 | library_names_spec='${libname}${release}.a $libname.a' | |
10106 | soname_spec='${libname}${release}${shared_ext}$major' | |
10107 | fi | |
10108 | shlibpath_var=LIBPATH | |
10109 | fi | |
10110 | ;; | |
10111 | ||
10112 | amigaos*) | |
1927a18f L |
10113 | case $host_cpu in |
10114 | powerpc) | |
10115 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10116 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10118 | ;; | |
10119 | m68k) | |
dabbade6 L |
10120 | library_names_spec='$libname.ixlibrary $libname.a' |
10121 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 10122 | 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' |
1927a18f L |
10123 | ;; |
10124 | esac | |
dabbade6 L |
10125 | ;; |
10126 | ||
10127 | beos*) | |
10128 | library_names_spec='${libname}${shared_ext}' | |
10129 | dynamic_linker="$host_os ld.so" | |
10130 | shlibpath_var=LIBRARY_PATH | |
10131 | ;; | |
10132 | ||
10133 | bsdi[45]*) | |
10134 | version_type=linux | |
10135 | need_version=no | |
10136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10137 | soname_spec='${libname}${release}${shared_ext}$major' | |
10138 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10139 | shlibpath_var=LD_LIBRARY_PATH | |
10140 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10141 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10142 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10143 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10144 | # libtool to hard-code these into programs | |
10145 | ;; | |
10146 | ||
1927a18f | 10147 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
10148 | version_type=windows |
10149 | shrext_cmds=".dll" | |
10150 | need_version=no | |
10151 | need_lib_prefix=no | |
10152 | ||
1927a18f L |
10153 | case $GCC,$host_os in |
10154 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
dabbade6 L |
10155 | library_names_spec='$libname.dll.a' |
10156 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10157 | postinstall_cmds='base_file=`basename \${file}`~ | |
10158 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10159 | dldir=$destdir/`dirname \$dlpath`~ | |
10160 | test -d \$dldir || mkdir -p \$dldir~ | |
10161 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10162 | chmod a+x \$dldir/$dlname~ | |
10163 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10164 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10165 | fi' | |
10166 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10167 | dlpath=$dir/\$dldll~ | |
10168 | $RM \$dlpath' | |
10169 | shlibpath_overrides_runpath=yes | |
10170 | ||
10171 | case $host_os in | |
10172 | cygwin*) | |
10173 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10174 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
10175 | |
10176 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
dabbade6 | 10177 | ;; |
1927a18f | 10178 | mingw* | cegcc*) |
dabbade6 L |
10179 | # MinGW DLLs use traditional 'lib' prefix |
10180 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
dabbade6 L |
10181 | ;; |
10182 | pw32*) | |
10183 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10184 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10185 | ;; | |
10186 | esac | |
10187 | ;; | |
10188 | ||
10189 | *) | |
10190 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10191 | ;; | |
10192 | esac | |
10193 | dynamic_linker='Win32 ld.exe' | |
10194 | # FIXME: first we should search . and the directory the executable is in | |
10195 | shlibpath_var=PATH | |
10196 | ;; | |
10197 | ||
10198 | darwin* | rhapsody*) | |
10199 | dynamic_linker="$host_os dyld" | |
10200 | version_type=darwin | |
10201 | need_lib_prefix=no | |
10202 | need_version=no | |
10203 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10204 | soname_spec='${libname}${release}${major}$shared_ext' | |
10205 | shlibpath_overrides_runpath=yes | |
10206 | shlibpath_var=DYLD_LIBRARY_PATH | |
10207 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10208 | ||
10209 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10210 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10211 | ;; | |
10212 | ||
10213 | dgux*) | |
10214 | version_type=linux | |
10215 | need_lib_prefix=no | |
10216 | need_version=no | |
10217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10218 | soname_spec='${libname}${release}${shared_ext}$major' | |
10219 | shlibpath_var=LD_LIBRARY_PATH | |
10220 | ;; | |
10221 | ||
dabbade6 L |
10222 | freebsd* | dragonfly*) |
10223 | # DragonFly does not have aout. When/if they implement a new | |
10224 | # versioning mechanism, adjust this. | |
10225 | if test -x /usr/bin/objformat; then | |
10226 | objformat=`/usr/bin/objformat` | |
10227 | else | |
10228 | case $host_os in | |
6d2920c8 | 10229 | freebsd[23].*) objformat=aout ;; |
dabbade6 L |
10230 | *) objformat=elf ;; |
10231 | esac | |
10232 | fi | |
10233 | version_type=freebsd-$objformat | |
10234 | case $version_type in | |
10235 | freebsd-elf*) | |
10236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10237 | need_version=no | |
10238 | need_lib_prefix=no | |
10239 | ;; | |
10240 | freebsd-*) | |
10241 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10242 | need_version=yes | |
10243 | ;; | |
10244 | esac | |
10245 | shlibpath_var=LD_LIBRARY_PATH | |
10246 | case $host_os in | |
6d2920c8 | 10247 | freebsd2.*) |
dabbade6 L |
10248 | shlibpath_overrides_runpath=yes |
10249 | ;; | |
10250 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10251 | shlibpath_overrides_runpath=yes | |
10252 | hardcode_into_libs=yes | |
10253 | ;; | |
10254 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10255 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10256 | shlibpath_overrides_runpath=no | |
10257 | hardcode_into_libs=yes | |
10258 | ;; | |
10259 | *) # from 4.6 on, and DragonFly | |
10260 | shlibpath_overrides_runpath=yes | |
10261 | hardcode_into_libs=yes | |
10262 | ;; | |
10263 | esac | |
10264 | ;; | |
10265 | ||
3725885a RW |
10266 | haiku*) |
10267 | version_type=linux | |
10268 | need_lib_prefix=no | |
10269 | need_version=no | |
10270 | dynamic_linker="$host_os runtime_loader" | |
10271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10272 | soname_spec='${libname}${release}${shared_ext}$major' | |
10273 | shlibpath_var=LIBRARY_PATH | |
10274 | shlibpath_overrides_runpath=yes | |
d85e70a3 | 10275 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
3725885a RW |
10276 | hardcode_into_libs=yes |
10277 | ;; | |
10278 | ||
dabbade6 L |
10279 | hpux9* | hpux10* | hpux11*) |
10280 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10281 | # link against other versions. | |
10282 | version_type=sunos | |
10283 | need_lib_prefix=no | |
10284 | need_version=no | |
10285 | case $host_cpu in | |
10286 | ia64*) | |
10287 | shrext_cmds='.so' | |
10288 | hardcode_into_libs=yes | |
10289 | dynamic_linker="$host_os dld.so" | |
10290 | shlibpath_var=LD_LIBRARY_PATH | |
10291 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10293 | soname_spec='${libname}${release}${shared_ext}$major' | |
10294 | if test "X$HPUX_IA64_MODE" = X32; then | |
10295 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10296 | else | |
10297 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10298 | fi | |
10299 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10300 | ;; | |
10301 | hppa*64*) | |
10302 | shrext_cmds='.sl' | |
10303 | hardcode_into_libs=yes | |
10304 | dynamic_linker="$host_os dld.sl" | |
10305 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10306 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10308 | soname_spec='${libname}${release}${shared_ext}$major' | |
10309 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10310 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10311 | ;; | |
10312 | *) | |
10313 | shrext_cmds='.sl' | |
10314 | dynamic_linker="$host_os dld.sl" | |
10315 | shlibpath_var=SHLIB_PATH | |
10316 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10318 | soname_spec='${libname}${release}${shared_ext}$major' | |
10319 | ;; | |
10320 | esac | |
3725885a | 10321 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
dabbade6 | 10322 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10323 | # or fails outright, so override atomically: |
10324 | install_override_mode=555 | |
dabbade6 L |
10325 | ;; |
10326 | ||
10327 | interix[3-9]*) | |
10328 | version_type=linux | |
10329 | need_lib_prefix=no | |
10330 | need_version=no | |
10331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10332 | soname_spec='${libname}${release}${shared_ext}$major' | |
10333 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10334 | shlibpath_var=LD_LIBRARY_PATH | |
10335 | shlibpath_overrides_runpath=no | |
10336 | hardcode_into_libs=yes | |
10337 | ;; | |
10338 | ||
10339 | irix5* | irix6* | nonstopux*) | |
10340 | case $host_os in | |
10341 | nonstopux*) version_type=nonstopux ;; | |
10342 | *) | |
10343 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10344 | version_type=linux | |
10345 | else | |
10346 | version_type=irix | |
10347 | fi ;; | |
10348 | esac | |
10349 | need_lib_prefix=no | |
10350 | need_version=no | |
10351 | soname_spec='${libname}${release}${shared_ext}$major' | |
10352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10353 | case $host_os in | |
10354 | irix5* | nonstopux*) | |
10355 | libsuff= shlibsuff= | |
10356 | ;; | |
10357 | *) | |
10358 | case $LD in # libtool.m4 will add one of these switches to LD | |
10359 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10360 | libsuff= shlibsuff= libmagic=32-bit;; | |
10361 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10362 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10363 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10364 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10365 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10366 | esac | |
10367 | ;; | |
10368 | esac | |
10369 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10370 | shlibpath_overrides_runpath=no | |
10371 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10372 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10373 | hardcode_into_libs=yes | |
10374 | ;; | |
10375 | ||
10376 | # No shared lib support for Linux oldld, aout, or coff. | |
10377 | linux*oldld* | linux*aout* | linux*coff*) | |
10378 | dynamic_linker=no | |
10379 | ;; | |
10380 | ||
10381 | # This must be Linux ELF. | |
6a6859cb AM |
10382 | |
10383 | # uclinux* changes (here and below) have been submitted to the libtool | |
10384 | # project, but have not yet been accepted: they are GCC-local changes | |
10385 | # for the time being. (See | |
10386 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
10387 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) | |
dabbade6 L |
10388 | version_type=linux |
10389 | need_lib_prefix=no | |
10390 | need_version=no | |
10391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10392 | soname_spec='${libname}${release}${shared_ext}$major' | |
10393 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10394 | shlibpath_var=LD_LIBRARY_PATH | |
10395 | shlibpath_overrides_runpath=no | |
39144654 | 10396 | |
dabbade6 | 10397 | # Some binutils ld are patched to set DT_RUNPATH |
d0ac1c44 | 10398 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
81ecdfbb | 10399 | $as_echo_n "(cached) " >&6 |
39144654 RW |
10400 | else |
10401 | lt_cv_shlibpath_overrides_runpath=no | |
10402 | save_LDFLAGS=$LDFLAGS | |
10403 | save_libdir=$libdir | |
10404 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10405 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10407 | /* end confdefs.h. */ |
10408 | ||
d7040cdb SE |
10409 | int |
10410 | main () | |
10411 | { | |
dabbade6 | 10412 | |
d7040cdb SE |
10413 | ; |
10414 | return 0; | |
10415 | } | |
10416 | _ACEOF | |
81ecdfbb RW |
10417 | if ac_fn_c_try_link "$LINENO"; then : |
10418 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10419 | lt_cv_shlibpath_overrides_runpath=yes |
dabbade6 | 10420 | fi |
d7040cdb | 10421 | fi |
81ecdfbb RW |
10422 | rm -f core conftest.err conftest.$ac_objext \ |
10423 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10424 | LDFLAGS=$save_LDFLAGS |
10425 | libdir=$save_libdir | |
10426 | ||
10427 | fi | |
10428 | ||
10429 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
dabbade6 L |
10430 | |
10431 | # This implies no fast_install, which is unacceptable. | |
10432 | # Some rework will be needed to allow for fast_install | |
10433 | # before this can be enabled. | |
10434 | hardcode_into_libs=yes | |
10435 | ||
10436 | # Append ld.so.conf contents to the search path | |
10437 | if test -f /etc/ld.so.conf; then | |
3725885a | 10438 | 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' ' '` |
dabbade6 L |
10439 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10440 | fi | |
10441 | ||
10442 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10443 | # powerpc, because MkLinux only supported shared libraries with the | |
10444 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10445 | # most powerpc-linux boxes support dynamic linking these days and | |
10446 | # people can always --disable-shared, the test was removed, and we | |
10447 | # assume the GNU/Linux dynamic linker is in use. | |
10448 | dynamic_linker='GNU/Linux ld.so' | |
10449 | ;; | |
10450 | ||
10451 | netbsd*) | |
10452 | version_type=sunos | |
10453 | need_lib_prefix=no | |
10454 | need_version=no | |
10455 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10457 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10458 | dynamic_linker='NetBSD (a.out) ld.so' | |
10459 | else | |
10460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10461 | soname_spec='${libname}${release}${shared_ext}$major' | |
10462 | dynamic_linker='NetBSD ld.elf_so' | |
10463 | fi | |
10464 | shlibpath_var=LD_LIBRARY_PATH | |
10465 | shlibpath_overrides_runpath=yes | |
10466 | hardcode_into_libs=yes | |
10467 | ;; | |
10468 | ||
10469 | newsos6) | |
10470 | version_type=linux | |
10471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10472 | shlibpath_var=LD_LIBRARY_PATH | |
10473 | shlibpath_overrides_runpath=yes | |
10474 | ;; | |
10475 | ||
10476 | *nto* | *qnx*) | |
10477 | version_type=qnx | |
10478 | need_lib_prefix=no | |
10479 | need_version=no | |
10480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10481 | soname_spec='${libname}${release}${shared_ext}$major' | |
10482 | shlibpath_var=LD_LIBRARY_PATH | |
10483 | shlibpath_overrides_runpath=no | |
10484 | hardcode_into_libs=yes | |
10485 | dynamic_linker='ldqnx.so' | |
10486 | ;; | |
10487 | ||
10488 | openbsd*) | |
10489 | version_type=sunos | |
10490 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10491 | need_lib_prefix=no | |
10492 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10493 | case $host_os in | |
10494 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10495 | *) need_version=no ;; | |
10496 | esac | |
10497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10498 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10499 | shlibpath_var=LD_LIBRARY_PATH | |
10500 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10501 | case $host_os in | |
10502 | openbsd2.[89] | openbsd2.[89].*) | |
10503 | shlibpath_overrides_runpath=no | |
10504 | ;; | |
10505 | *) | |
10506 | shlibpath_overrides_runpath=yes | |
10507 | ;; | |
10508 | esac | |
10509 | else | |
10510 | shlibpath_overrides_runpath=yes | |
10511 | fi | |
10512 | ;; | |
10513 | ||
10514 | os2*) | |
10515 | libname_spec='$name' | |
10516 | shrext_cmds=".dll" | |
10517 | need_lib_prefix=no | |
10518 | library_names_spec='$libname${shared_ext} $libname.a' | |
10519 | dynamic_linker='OS/2 ld.exe' | |
10520 | shlibpath_var=LIBPATH | |
10521 | ;; | |
10522 | ||
10523 | osf3* | osf4* | osf5*) | |
10524 | version_type=osf | |
10525 | need_lib_prefix=no | |
10526 | need_version=no | |
10527 | soname_spec='${libname}${release}${shared_ext}$major' | |
10528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10529 | shlibpath_var=LD_LIBRARY_PATH | |
10530 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10531 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10532 | ;; | |
10533 | ||
10534 | rdos*) | |
10535 | dynamic_linker=no | |
10536 | ;; | |
10537 | ||
10538 | solaris*) | |
10539 | version_type=linux | |
10540 | need_lib_prefix=no | |
10541 | need_version=no | |
10542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10543 | soname_spec='${libname}${release}${shared_ext}$major' | |
10544 | shlibpath_var=LD_LIBRARY_PATH | |
10545 | shlibpath_overrides_runpath=yes | |
10546 | hardcode_into_libs=yes | |
10547 | # ldd complains unless libraries are executable | |
10548 | postinstall_cmds='chmod +x $lib' | |
10549 | ;; | |
10550 | ||
10551 | sunos4*) | |
10552 | version_type=sunos | |
10553 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10554 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10555 | shlibpath_var=LD_LIBRARY_PATH | |
10556 | shlibpath_overrides_runpath=yes | |
10557 | if test "$with_gnu_ld" = yes; then | |
10558 | need_lib_prefix=no | |
10559 | fi | |
10560 | need_version=yes | |
10561 | ;; | |
10562 | ||
10563 | sysv4 | sysv4.3*) | |
10564 | version_type=linux | |
10565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10566 | soname_spec='${libname}${release}${shared_ext}$major' | |
10567 | shlibpath_var=LD_LIBRARY_PATH | |
10568 | case $host_vendor in | |
10569 | sni) | |
10570 | shlibpath_overrides_runpath=no | |
10571 | need_lib_prefix=no | |
10572 | runpath_var=LD_RUN_PATH | |
10573 | ;; | |
10574 | siemens) | |
10575 | need_lib_prefix=no | |
10576 | ;; | |
10577 | motorola) | |
10578 | need_lib_prefix=no | |
10579 | need_version=no | |
10580 | shlibpath_overrides_runpath=no | |
10581 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10582 | ;; | |
10583 | esac | |
10584 | ;; | |
10585 | ||
10586 | sysv4*MP*) | |
10587 | if test -d /usr/nec ;then | |
10588 | version_type=linux | |
10589 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10590 | soname_spec='$libname${shared_ext}.$major' | |
10591 | shlibpath_var=LD_LIBRARY_PATH | |
10592 | fi | |
10593 | ;; | |
10594 | ||
10595 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10596 | version_type=freebsd-elf | |
10597 | need_lib_prefix=no | |
10598 | need_version=no | |
10599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10600 | soname_spec='${libname}${release}${shared_ext}$major' | |
10601 | shlibpath_var=LD_LIBRARY_PATH | |
10602 | shlibpath_overrides_runpath=yes | |
10603 | hardcode_into_libs=yes | |
10604 | if test "$with_gnu_ld" = yes; then | |
10605 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10606 | else | |
10607 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10608 | case $host_os in | |
10609 | sco3.2v5*) | |
10610 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10611 | ;; | |
10612 | esac | |
10613 | fi | |
10614 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10615 | ;; | |
10616 | ||
10617 | tpf*) | |
10618 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10619 | version_type=linux | |
10620 | need_lib_prefix=no | |
10621 | need_version=no | |
1927a18f | 10622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
dabbade6 L |
10623 | shlibpath_var=LD_LIBRARY_PATH |
10624 | shlibpath_overrides_runpath=no | |
10625 | hardcode_into_libs=yes | |
10626 | ;; | |
10627 | ||
10628 | uts4*) | |
10629 | version_type=linux | |
10630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10631 | soname_spec='${libname}${release}${shared_ext}$major' | |
10632 | shlibpath_var=LD_LIBRARY_PATH | |
10633 | ;; | |
d7040cdb | 10634 | |
6a6859cb AM |
10635 | # Shared libraries for VwWorks, >= 7 only at this stage |
10636 | # and (fpic) still incompatible with "large" code models | |
10637 | # in a few configurations. Only for RTP mode in any case, | |
10638 | # and upon explicit request at configure time. | |
10639 | vxworks7*) | |
10640 | dynamic_linker=no | |
10641 | case ${with_multisubdir}-${enable_shared} in | |
10642 | *large*) | |
10643 | ;; | |
10644 | *mrtp*-yes) | |
10645 | version_type=linux | |
10646 | need_lib_prefix=no | |
10647 | need_version=no | |
10648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10649 | soname_spec='${libname}${release}${shared_ext}$major' | |
10650 | dynamic_linker="$host_os module_loader" | |
10651 | ;; | |
10652 | esac | |
10653 | ;; | |
dabbade6 L |
10654 | *) |
10655 | dynamic_linker=no | |
10656 | ;; | |
10657 | esac | |
81ecdfbb RW |
10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10659 | $as_echo "$dynamic_linker" >&6; } | |
dabbade6 | 10660 | test "$dynamic_linker" = no && can_build_shared=no |
d7040cdb | 10661 | |
dabbade6 L |
10662 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
10663 | if test "$GCC" = yes; then | |
10664 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10665 | fi |
d7040cdb | 10666 | |
1927a18f L |
10667 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10668 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10669 | fi | |
10670 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10671 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10672 | fi | |
10673 | ||
d7040cdb | 10674 | |
d7040cdb SE |
10675 | |
10676 | ||
d7040cdb SE |
10677 | |
10678 | ||
d7040cdb SE |
10679 | |
10680 | ||
d7040cdb SE |
10681 | |
10682 | ||
d7040cdb SE |
10683 | |
10684 | ||
d7040cdb | 10685 | |
d7040cdb | 10686 | |
d7040cdb | 10687 | |
d7040cdb | 10688 | |
d7040cdb | 10689 | |
d7040cdb | 10690 | |
d7040cdb | 10691 | |
d7040cdb | 10692 | |
d7040cdb | 10693 | |
d7040cdb | 10694 | |
d7040cdb | 10695 | |
d7040cdb | 10696 | |
d7040cdb | 10697 | |
d7040cdb | 10698 | |
d7040cdb SE |
10699 | |
10700 | ||
d7040cdb | 10701 | |
d7040cdb | 10702 | |
d7040cdb | 10703 | |
d7040cdb | 10704 | |
d7040cdb | 10705 | |
d7040cdb | 10706 | |
d7040cdb | 10707 | |
d7040cdb | 10708 | |
d7040cdb | 10709 | |
d7040cdb SE |
10710 | |
10711 | ||
d7040cdb | 10712 | |
d7040cdb | 10713 | |
d7040cdb | 10714 | |
d7040cdb SE |
10715 | |
10716 | ||
10717 | ||
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
10727 | ||
10728 | ||
10729 | ||
10730 | ||
10731 | ||
d7040cdb SE |
10732 | |
10733 | ||
10734 | ||
10735 | ||
10736 | ||
10737 | ||
10738 | ||
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
d7040cdb | 10744 | |
d7040cdb | 10745 | |
dabbade6 L |
10746 | |
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
3725885a RW |
10754 | |
10755 | ||
10756 | ||
10757 | ||
10758 | ||
dabbade6 L |
10759 | |
10760 | ||
10761 | ||
10762 | ||
10763 | ||
10764 | ||
81ecdfbb RW |
10765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10766 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
dabbade6 L |
10767 | hardcode_action= |
10768 | if test -n "$hardcode_libdir_flag_spec" || | |
10769 | test -n "$runpath_var" || | |
10770 | test "X$hardcode_automatic" = "Xyes" ; then | |
10771 | ||
10772 | # We can hardcode non-existent directories. | |
10773 | if test "$hardcode_direct" != no && | |
10774 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10775 | # have to relink, otherwise we might link with an installed library | |
10776 | # when we should be linking with a yet-to-be-installed one | |
10777 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10778 | test "$hardcode_minus_L" != no; then | |
10779 | # Linking always hardcodes the temporary library directory. | |
10780 | hardcode_action=relink | |
10781 | else | |
10782 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10783 | hardcode_action=immediate | |
10784 | fi | |
10785 | else | |
10786 | # We cannot hardcode anything, or else we can only hardcode existing | |
10787 | # directories. | |
10788 | hardcode_action=unsupported | |
10789 | fi | |
81ecdfbb RW |
10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10791 | $as_echo "$hardcode_action" >&6; } | |
dabbade6 L |
10792 | |
10793 | if test "$hardcode_action" = relink || | |
10794 | test "$inherit_rpath" = yes; then | |
10795 | # Fast installation is not supported | |
10796 | enable_fast_install=no | |
10797 | elif test "$shlibpath_overrides_runpath" = yes || | |
10798 | test "$enable_shared" = no; then | |
10799 | # Fast installation is not necessary | |
10800 | enable_fast_install=needless | |
10801 | fi | |
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | if test "x$enable_dlopen" != xyes; then | |
10809 | enable_dlopen=unknown | |
10810 | enable_dlopen_self=unknown | |
10811 | enable_dlopen_self_static=unknown | |
10812 | else | |
10813 | lt_cv_dlopen=no | |
10814 | lt_cv_dlopen_libs= | |
10815 | ||
d7040cdb | 10816 | case $host_os in |
dabbade6 L |
10817 | beos*) |
10818 | lt_cv_dlopen="load_add_on" | |
10819 | lt_cv_dlopen_libs= | |
10820 | lt_cv_dlopen_self=yes | |
d7040cdb SE |
10821 | ;; |
10822 | ||
1927a18f | 10823 | mingw* | pw32* | cegcc*) |
dabbade6 L |
10824 | lt_cv_dlopen="LoadLibrary" |
10825 | lt_cv_dlopen_libs= | |
d7040cdb | 10826 | ;; |
d7040cdb | 10827 | |
dabbade6 L |
10828 | cygwin*) |
10829 | lt_cv_dlopen="dlopen" | |
10830 | lt_cv_dlopen_libs= | |
10831 | ;; | |
d7040cdb | 10832 | |
dabbade6 L |
10833 | darwin*) |
10834 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10836 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10837 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10838 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
10839 | else |
10840 | ac_check_lib_save_LIBS=$LIBS | |
10841 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10843 | /* end confdefs.h. */ |
d7040cdb | 10844 | |
81ecdfbb RW |
10845 | /* Override any GCC internal prototype to avoid an error. |
10846 | Use char because int might match the return type of a GCC | |
10847 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10848 | #ifdef __cplusplus |
10849 | extern "C" | |
10850 | #endif | |
dabbade6 L |
10851 | char dlopen (); |
10852 | int | |
10853 | main () | |
10854 | { | |
81ecdfbb | 10855 | return dlopen (); |
dabbade6 L |
10856 | ; |
10857 | return 0; | |
10858 | } | |
10859 | _ACEOF | |
81ecdfbb | 10860 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10861 | ac_cv_lib_dl_dlopen=yes |
10862 | else | |
81ecdfbb | 10863 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10864 | fi |
81ecdfbb RW |
10865 | rm -f core conftest.err conftest.$ac_objext \ |
10866 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
10867 | LIBS=$ac_check_lib_save_LIBS |
10868 | fi | |
81ecdfbb RW |
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10870 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10871 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
dabbade6 L |
10872 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10873 | else | |
d7040cdb | 10874 | |
dabbade6 L |
10875 | lt_cv_dlopen="dyld" |
10876 | lt_cv_dlopen_libs= | |
10877 | lt_cv_dlopen_self=yes | |
d7040cdb | 10878 | |
81ecdfbb | 10879 | fi |
d7040cdb | 10880 | |
81ecdfbb RW |
10881 | ;; |
10882 | ||
10883 | *) | |
10884 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
d0ac1c44 | 10885 | if test "x$ac_cv_func_shl_load" = xyes; then : |
81ecdfbb RW |
10886 | lt_cv_dlopen="shl_load" |
10887 | else | |
10888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10889 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 10890 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
81ecdfbb RW |
10891 | $as_echo_n "(cached) " >&6 |
10892 | else | |
10893 | ac_check_lib_save_LIBS=$LIBS | |
10894 | LIBS="-ldld $LIBS" | |
10895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10896 | /* end confdefs.h. */ | |
10897 | ||
10898 | /* Override any GCC internal prototype to avoid an error. | |
10899 | Use char because int might match the return type of a GCC | |
dabbade6 | 10900 | builtin and then its argument prototype would still apply. */ |
dabbade6 | 10901 | #ifdef __cplusplus |
81ecdfbb | 10902 | extern "C" |
dabbade6 | 10903 | #endif |
81ecdfbb | 10904 | char shl_load (); |
dabbade6 L |
10905 | int |
10906 | main () | |
10907 | { | |
81ecdfbb | 10908 | return shl_load (); |
dabbade6 L |
10909 | ; |
10910 | return 0; | |
10911 | } | |
10912 | _ACEOF | |
81ecdfbb RW |
10913 | if ac_fn_c_try_link "$LINENO"; then : |
10914 | ac_cv_lib_dld_shl_load=yes | |
dabbade6 | 10915 | else |
81ecdfbb | 10916 | ac_cv_lib_dld_shl_load=no |
dabbade6 | 10917 | fi |
81ecdfbb RW |
10918 | rm -f core conftest.err conftest.$ac_objext \ |
10919 | conftest$ac_exeext conftest.$ac_ext | |
10920 | LIBS=$ac_check_lib_save_LIBS | |
dabbade6 | 10921 | fi |
81ecdfbb RW |
10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10923 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 10924 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
81ecdfbb RW |
10925 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
10926 | else | |
10927 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
d0ac1c44 | 10928 | if test "x$ac_cv_func_dlopen" = xyes; then : |
dabbade6 L |
10929 | lt_cv_dlopen="dlopen" |
10930 | else | |
81ecdfbb RW |
10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10932 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10933 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10934 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
10935 | else |
10936 | ac_check_lib_save_LIBS=$LIBS | |
10937 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10939 | /* end confdefs.h. */ |
d7040cdb | 10940 | |
81ecdfbb RW |
10941 | /* Override any GCC internal prototype to avoid an error. |
10942 | Use char because int might match the return type of a GCC | |
10943 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10944 | #ifdef __cplusplus |
10945 | extern "C" | |
10946 | #endif | |
dabbade6 L |
10947 | char dlopen (); |
10948 | int | |
10949 | main () | |
10950 | { | |
81ecdfbb | 10951 | return dlopen (); |
dabbade6 L |
10952 | ; |
10953 | return 0; | |
10954 | } | |
10955 | _ACEOF | |
81ecdfbb | 10956 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10957 | ac_cv_lib_dl_dlopen=yes |
10958 | else | |
81ecdfbb | 10959 | ac_cv_lib_dl_dlopen=no |
dabbade6 | 10960 | fi |
81ecdfbb RW |
10961 | rm -f core conftest.err conftest.$ac_objext \ |
10962 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
10963 | LIBS=$ac_check_lib_save_LIBS |
10964 | fi | |
81ecdfbb RW |
10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10966 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10967 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
dabbade6 L |
10968 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10969 | else | |
81ecdfbb RW |
10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10971 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 10972 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
81ecdfbb | 10973 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
10974 | else |
10975 | ac_check_lib_save_LIBS=$LIBS | |
10976 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10978 | /* end confdefs.h. */ |
d7040cdb | 10979 | |
81ecdfbb RW |
10980 | /* Override any GCC internal prototype to avoid an error. |
10981 | Use char because int might match the return type of a GCC | |
10982 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10983 | #ifdef __cplusplus |
10984 | extern "C" | |
10985 | #endif | |
dabbade6 L |
10986 | char dlopen (); |
10987 | int | |
10988 | main () | |
10989 | { | |
81ecdfbb | 10990 | return dlopen (); |
dabbade6 L |
10991 | ; |
10992 | return 0; | |
10993 | } | |
10994 | _ACEOF | |
81ecdfbb | 10995 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10996 | ac_cv_lib_svld_dlopen=yes |
10997 | else | |
81ecdfbb | 10998 | ac_cv_lib_svld_dlopen=no |
dabbade6 | 10999 | fi |
81ecdfbb RW |
11000 | rm -f core conftest.err conftest.$ac_objext \ |
11001 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
11002 | LIBS=$ac_check_lib_save_LIBS |
11003 | fi | |
81ecdfbb RW |
11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11005 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 11006 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
dabbade6 L |
11007 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11008 | else | |
81ecdfbb RW |
11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11010 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 11011 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
81ecdfbb | 11012 | $as_echo_n "(cached) " >&6 |
dabbade6 L |
11013 | else |
11014 | ac_check_lib_save_LIBS=$LIBS | |
11015 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 11017 | /* end confdefs.h. */ |
d7040cdb | 11018 | |
81ecdfbb RW |
11019 | /* Override any GCC internal prototype to avoid an error. |
11020 | Use char because int might match the return type of a GCC | |
11021 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
11022 | #ifdef __cplusplus |
11023 | extern "C" | |
11024 | #endif | |
dabbade6 L |
11025 | char dld_link (); |
11026 | int | |
11027 | main () | |
11028 | { | |
81ecdfbb | 11029 | return dld_link (); |
dabbade6 L |
11030 | ; |
11031 | return 0; | |
11032 | } | |
11033 | _ACEOF | |
81ecdfbb | 11034 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
11035 | ac_cv_lib_dld_dld_link=yes |
11036 | else | |
81ecdfbb | 11037 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 11038 | fi |
81ecdfbb RW |
11039 | rm -f core conftest.err conftest.$ac_objext \ |
11040 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 11041 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11042 | fi |
81ecdfbb RW |
11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11044 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 11045 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
1927a18f | 11046 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
11047 | fi |
11048 | ||
d7040cdb | 11049 | |
d7040cdb SE |
11050 | fi |
11051 | ||
11052 | ||
dabbade6 | 11053 | fi |
d7040cdb SE |
11054 | |
11055 | ||
dabbade6 | 11056 | fi |
d7040cdb SE |
11057 | |
11058 | ||
d7040cdb SE |
11059 | fi |
11060 | ||
979273e3 | 11061 | |
252b5132 | 11062 | fi |
252b5132 | 11063 | |
dabbade6 L |
11064 | ;; |
11065 | esac | |
252b5132 | 11066 | |
dabbade6 L |
11067 | if test "x$lt_cv_dlopen" != xno; then |
11068 | enable_dlopen=yes | |
11069 | else | |
11070 | enable_dlopen=no | |
11071 | fi | |
1c0d3aa6 | 11072 | |
dabbade6 L |
11073 | case $lt_cv_dlopen in |
11074 | dlopen) | |
11075 | save_CPPFLAGS="$CPPFLAGS" | |
11076 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
20e95c23 | 11077 | |
dabbade6 L |
11078 | save_LDFLAGS="$LDFLAGS" |
11079 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
20e95c23 | 11080 | |
dabbade6 L |
11081 | save_LIBS="$LIBS" |
11082 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
20e95c23 | 11083 | |
81ecdfbb RW |
11084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11085 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 11086 | if ${lt_cv_dlopen_self+:} false; then : |
81ecdfbb | 11087 | $as_echo_n "(cached) " >&6 |
d7040cdb | 11088 | else |
dabbade6 L |
11089 | if test "$cross_compiling" = yes; then : |
11090 | lt_cv_dlopen_self=cross | |
d7040cdb | 11091 | else |
dabbade6 L |
11092 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11093 | lt_status=$lt_dlunknown | |
11094 | cat > conftest.$ac_ext <<_LT_EOF | |
862776f2 | 11095 | #line 11095 "configure" |
dabbade6 | 11096 | #include "confdefs.h" |
20e95c23 | 11097 | |
dabbade6 L |
11098 | #if HAVE_DLFCN_H |
11099 | #include <dlfcn.h> | |
11100 | #endif | |
20e95c23 | 11101 | |
dabbade6 | 11102 | #include <stdio.h> |
20e95c23 | 11103 | |
dabbade6 L |
11104 | #ifdef RTLD_GLOBAL |
11105 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11106 | #else | |
11107 | # ifdef DL_GLOBAL | |
11108 | # define LT_DLGLOBAL DL_GLOBAL | |
11109 | # else | |
11110 | # define LT_DLGLOBAL 0 | |
11111 | # endif | |
11112 | #endif | |
20e95c23 | 11113 | |
dabbade6 L |
11114 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11115 | find out it does not work in some platform. */ | |
11116 | #ifndef LT_DLLAZY_OR_NOW | |
11117 | # ifdef RTLD_LAZY | |
11118 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11119 | # else | |
11120 | # ifdef DL_LAZY | |
11121 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11122 | # else | |
11123 | # ifdef RTLD_NOW | |
11124 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11125 | # else | |
11126 | # ifdef DL_NOW | |
11127 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11128 | # else | |
11129 | # define LT_DLLAZY_OR_NOW 0 | |
11130 | # endif | |
11131 | # endif | |
11132 | # endif | |
11133 | # endif | |
11134 | #endif | |
20e95c23 | 11135 | |
3725885a RW |
11136 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11137 | correspondingly for the symbols needed. */ | |
11138 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11139 | void fnord () __attribute__((visibility("default"))); | |
11140 | #endif | |
11141 | ||
11142 | void fnord () { int i=42; } | |
dabbade6 L |
11143 | int main () |
11144 | { | |
11145 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11146 | int status = $lt_dlunknown; | |
20e95c23 | 11147 | |
dabbade6 L |
11148 | if (self) |
11149 | { | |
11150 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11151 | else |
11152 | { | |
11153 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11154 | else puts (dlerror ()); | |
11155 | } | |
dabbade6 L |
11156 | /* dlclose (self); */ |
11157 | } | |
11158 | else | |
11159 | puts (dlerror ()); | |
d7040cdb | 11160 | |
1927a18f | 11161 | return status; |
dabbade6 L |
11162 | } |
11163 | _LT_EOF | |
81ecdfbb | 11164 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
11165 | (eval $ac_link) 2>&5 |
11166 | ac_status=$? | |
81ecdfbb RW |
11167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11168 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
dabbade6 L |
11169 | (./conftest; exit; ) >&5 2>/dev/null |
11170 | lt_status=$? | |
11171 | case x$lt_status in | |
11172 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11173 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11174 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11175 | esac | |
11176 | else : | |
11177 | # compilation failed | |
11178 | lt_cv_dlopen_self=no | |
11179 | fi | |
d7040cdb | 11180 | fi |
dabbade6 L |
11181 | rm -fr conftest* |
11182 | ||
252b5132 | 11183 | |
d7040cdb | 11184 | fi |
81ecdfbb RW |
11185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11186 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d7040cdb | 11187 | |
dabbade6 L |
11188 | if test "x$lt_cv_dlopen_self" = xyes; then |
11189 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11191 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 11192 | if ${lt_cv_dlopen_self_static+:} false; then : |
81ecdfbb | 11193 | $as_echo_n "(cached) " >&6 |
252b5132 | 11194 | else |
dabbade6 L |
11195 | if test "$cross_compiling" = yes; then : |
11196 | lt_cv_dlopen_self_static=cross | |
d7040cdb | 11197 | else |
dabbade6 L |
11198 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11199 | lt_status=$lt_dlunknown | |
11200 | cat > conftest.$ac_ext <<_LT_EOF | |
862776f2 | 11201 | #line 11201 "configure" |
dabbade6 | 11202 | #include "confdefs.h" |
252b5132 | 11203 | |
dabbade6 L |
11204 | #if HAVE_DLFCN_H |
11205 | #include <dlfcn.h> | |
11206 | #endif | |
252b5132 | 11207 | |
dabbade6 | 11208 | #include <stdio.h> |
d7040cdb | 11209 | |
dabbade6 L |
11210 | #ifdef RTLD_GLOBAL |
11211 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11212 | #else | |
11213 | # ifdef DL_GLOBAL | |
11214 | # define LT_DLGLOBAL DL_GLOBAL | |
11215 | # else | |
11216 | # define LT_DLGLOBAL 0 | |
11217 | # endif | |
11218 | #endif | |
20e95c23 | 11219 | |
dabbade6 L |
11220 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11221 | find out it does not work in some platform. */ | |
11222 | #ifndef LT_DLLAZY_OR_NOW | |
11223 | # ifdef RTLD_LAZY | |
11224 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11225 | # else | |
11226 | # ifdef DL_LAZY | |
11227 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11228 | # else | |
11229 | # ifdef RTLD_NOW | |
11230 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11231 | # else | |
11232 | # ifdef DL_NOW | |
11233 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11234 | # else | |
11235 | # define LT_DLLAZY_OR_NOW 0 | |
11236 | # endif | |
11237 | # endif | |
11238 | # endif | |
11239 | # endif | |
11240 | #endif | |
979273e3 | 11241 | |
3725885a RW |
11242 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11243 | correspondingly for the symbols needed. */ | |
11244 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11245 | void fnord () __attribute__((visibility("default"))); | |
11246 | #endif | |
11247 | ||
11248 | void fnord () { int i=42; } | |
dabbade6 L |
11249 | int main () |
11250 | { | |
11251 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11252 | int status = $lt_dlunknown; | |
d7040cdb | 11253 | |
dabbade6 L |
11254 | if (self) |
11255 | { | |
11256 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11257 | else |
11258 | { | |
11259 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11260 | else puts (dlerror ()); | |
11261 | } | |
dabbade6 L |
11262 | /* dlclose (self); */ |
11263 | } | |
11264 | else | |
11265 | puts (dlerror ()); | |
d7040cdb | 11266 | |
1927a18f | 11267 | return status; |
dabbade6 L |
11268 | } |
11269 | _LT_EOF | |
81ecdfbb | 11270 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
11271 | (eval $ac_link) 2>&5 |
11272 | ac_status=$? | |
81ecdfbb RW |
11273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11274 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
dabbade6 L |
11275 | (./conftest; exit; ) >&5 2>/dev/null |
11276 | lt_status=$? | |
11277 | case x$lt_status in | |
11278 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11279 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11280 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11281 | esac | |
11282 | else : | |
11283 | # compilation failed | |
11284 | lt_cv_dlopen_self_static=no | |
11285 | fi | |
20e95c23 | 11286 | fi |
dabbade6 | 11287 | rm -fr conftest* |
979273e3 | 11288 | |
d7040cdb SE |
11289 | |
11290 | fi | |
81ecdfbb RW |
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11292 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
dabbade6 L |
11293 | fi |
11294 | ||
11295 | CPPFLAGS="$save_CPPFLAGS" | |
11296 | LDFLAGS="$save_LDFLAGS" | |
11297 | LIBS="$save_LIBS" | |
11298 | ;; | |
11299 | esac | |
11300 | ||
11301 | case $lt_cv_dlopen_self in | |
11302 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11303 | *) enable_dlopen_self=unknown ;; | |
11304 | esac | |
11305 | ||
11306 | case $lt_cv_dlopen_self_static in | |
11307 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11308 | *) enable_dlopen_self_static=unknown ;; | |
11309 | esac | |
d7040cdb | 11310 | fi |
dabbade6 L |
11311 | |
11312 | ||
11313 | ||
11314 | ||
11315 | ||
11316 | ||
11317 | ||
11318 | ||
11319 | ||
11320 | ||
11321 | ||
11322 | ||
11323 | ||
11324 | ||
11325 | ||
11326 | ||
11327 | ||
11328 | striplib= | |
11329 | old_striplib= | |
81ecdfbb RW |
11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11331 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
dabbade6 L |
11332 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11333 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11334 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11336 | $as_echo "yes" >&6; } | |
d7040cdb | 11337 | else |
dabbade6 L |
11338 | # FIXME - insert some real tests, host_os isn't really good enough |
11339 | case $host_os in | |
11340 | darwin*) | |
11341 | if test -n "$STRIP" ; then | |
11342 | striplib="$STRIP -x" | |
11343 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11345 | $as_echo "yes" >&6; } | |
dabbade6 | 11346 | else |
81ecdfbb RW |
11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11348 | $as_echo "no" >&6; } | |
dabbade6 L |
11349 | fi |
11350 | ;; | |
11351 | *) | |
81ecdfbb RW |
11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11353 | $as_echo "no" >&6; } | |
dabbade6 L |
11354 | ;; |
11355 | esac | |
d7040cdb | 11356 | fi |
20e95c23 | 11357 | |
979273e3 | 11358 | |
dabbade6 L |
11359 | |
11360 | ||
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | # Report which library types will actually be built | |
81ecdfbb RW |
11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11371 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11373 | $as_echo "$can_build_shared" >&6; } | |
dabbade6 | 11374 | |
81ecdfbb RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11376 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
dabbade6 L |
11377 | test "$can_build_shared" = "no" && enable_shared=no |
11378 | ||
11379 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11380 | # are all built from PIC. | |
11381 | case $host_os in | |
11382 | aix3*) | |
11383 | test "$enable_shared" = yes && enable_static=no | |
11384 | if test -n "$RANLIB"; then | |
11385 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11386 | postinstall_cmds='$RANLIB $lib' | |
11387 | fi | |
11388 | ;; | |
11389 | ||
50e7d84b | 11390 | aix[4-9]*) |
dabbade6 L |
11391 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11392 | test "$enable_shared" = yes && enable_static=no | |
11393 | fi | |
11394 | ;; | |
11395 | esac | |
81ecdfbb RW |
11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11397 | $as_echo "$enable_shared" >&6; } | |
dabbade6 | 11398 | |
81ecdfbb RW |
11399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11400 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
dabbade6 L |
11401 | # Make sure either enable_shared or enable_static is yes. |
11402 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11404 | $as_echo "$enable_static" >&6; } | |
dabbade6 L |
11405 | |
11406 | ||
11407 | ||
d7040cdb | 11408 | |
252b5132 | 11409 | fi |
dabbade6 L |
11410 | ac_ext=c |
11411 | ac_cpp='$CPP $CPPFLAGS' | |
11412 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11413 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11414 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 11415 | |
dabbade6 | 11416 | CC="$lt_save_CC" |
20e95c23 | 11417 | |
20e95c23 | 11418 | |
d7040cdb | 11419 | |
d7040cdb | 11420 | |
d7040cdb | 11421 | |
20e95c23 | 11422 | |
dabbade6 L |
11423 | |
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
81ecdfbb | 11430 | ac_config_commands="$ac_config_commands libtool" |
dabbade6 L |
11431 | |
11432 | ||
11433 | ||
11434 | ||
11435 | # Only expand once: | |
11436 | ||
11437 | ||
11438 | ||
43e05cd4 AM |
11439 | ac_checking= |
11440 | . ${srcdir}/../bfd/development.sh | |
11441 | test "$development" = true && ac_checking=yes | |
11442 | # Check whether --enable-checking was given. | |
11443 | if test "${enable_checking+set}" = set; then : | |
11444 | enableval=$enable_checking; case "${enableval}" in | |
11445 | no|none) ac_checking= ;; | |
11446 | *) ac_checking=yes ;; | |
11447 | esac | |
11448 | fi | |
11449 | if test x$ac_checking != x ; then | |
11450 | ||
11451 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h | |
11452 | ||
11453 | fi | |
11454 | ||
81ecdfbb RW |
11455 | # Check whether --enable-targets was given. |
11456 | if test "${enable_targets+set}" = set; then : | |
11457 | enableval=$enable_targets; case "${enableval}" in | |
d0ac1c44 | 11458 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 |
dabbade6 L |
11459 | ;; |
11460 | no) enable_targets= ;; | |
11461 | *) enable_targets=$enableval ;; | |
11462 | esac | |
81ecdfbb RW |
11463 | fi |
11464 | ||
dabbade6 | 11465 | |
270c9937 JB |
11466 | # Set the 'development' global. |
11467 | . $srcdir/../bfd/development.sh | |
11468 | ||
c5da1932 VZ |
11469 | # Set acp_cpp_for_build variable |
11470 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" | |
11471 | ||
9780e045 | 11472 | # Default set of GCC warnings to enable. |
397841b5 | 11473 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
c5da1932 | 11474 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
11475 | |
11476 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
397841b5 AM |
11477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11478 | /* end confdefs.h. */ | |
11479 | __GNUC__ | |
11480 | _ACEOF | |
11481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11482 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
397841b5 AM |
11483 | |
11484 | else | |
11485 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
11486 | fi | |
11487 | rm -f conftest* | |
11488 | ||
dabbade6 | 11489 | |
9780e045 NC |
11490 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
11491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11492 | /* end confdefs.h. */ | |
11493 | __GNUC__ | |
11494 | _ACEOF | |
11495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11496 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
9780e045 NC |
11497 | |
11498 | else | |
491cf317 TO |
11499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11500 | /* end confdefs.h. */ | |
11501 | __clang__ | |
11502 | _ACEOF | |
11503 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11504 | $EGREP "^__clang__$" >/dev/null 2>&1; then : | |
9780e045 NC |
11505 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" |
11506 | fi | |
11507 | rm -f conftest* | |
11508 | ||
491cf317 TO |
11509 | fi |
11510 | rm -f conftest* | |
11511 | ||
9780e045 | 11512 | |
6757cf57 TS |
11513 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
11514 | WARN_WRITE_STRINGS="" | |
11515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11516 | /* end confdefs.h. */ | |
11517 | __GNUC__ | |
11518 | _ACEOF | |
11519 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11520 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
6757cf57 TS |
11521 | |
11522 | else | |
11523 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
11524 | fi | |
11525 | rm -f conftest* | |
11526 | ||
9780e045 | 11527 | |
96fe4562 | 11528 | # Verify CC_FOR_BUILD to be compatible with warning flags |
c5da1932 VZ |
11529 | |
11530 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
11531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11532 | /* end confdefs.h. */ | |
11533 | __GNUC__ | |
11534 | _ACEOF | |
11535 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 11536 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
11537 | |
11538 | else | |
11539 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" | |
11540 | fi | |
11541 | rm -f conftest* | |
11542 | ||
11543 | ||
11544 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. | |
11545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11546 | /* end confdefs.h. */ | |
11547 | __GNUC__ | |
11548 | _ACEOF | |
11549 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 11550 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
11551 | |
11552 | else | |
491cf317 TO |
11553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11554 | /* end confdefs.h. */ | |
11555 | __clang__ | |
11556 | _ACEOF | |
11557 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
11558 | $EGREP "^__clang__$" >/dev/null 2>&1; then : | |
c5da1932 VZ |
11559 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" |
11560 | fi | |
11561 | rm -f conftest* | |
11562 | ||
491cf317 TO |
11563 | fi |
11564 | rm -f conftest* | |
11565 | ||
c5da1932 | 11566 | |
81ecdfbb RW |
11567 | # Check whether --enable-werror was given. |
11568 | if test "${enable_werror+set}" = set; then : | |
11569 | enableval=$enable_werror; case "${enableval}" in | |
dabbade6 L |
11570 | yes | y) ERROR_ON_WARNING="yes" ;; |
11571 | no | n) ERROR_ON_WARNING="no" ;; | |
d0ac1c44 | 11572 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
dabbade6 | 11573 | esac |
81ecdfbb RW |
11574 | fi |
11575 | ||
dabbade6 | 11576 | |
397841b5 | 11577 | # Disable -Wformat by default when using gcc on mingw |
bb8541b9 L |
11578 | case "${host}" in |
11579 | *-*-mingw32*) | |
11580 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11581 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
c5da1932 | 11582 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
bb8541b9 L |
11583 | fi |
11584 | ;; | |
11585 | *) ;; | |
11586 | esac | |
11587 | ||
270c9937 JB |
11588 | # Enable -Werror by default when using gcc. Turn it off for releases. |
11589 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
dabbade6 | 11590 | ERROR_ON_WARNING=yes |
d7040cdb | 11591 | fi |
20e95c23 | 11592 | |
dabbade6 L |
11593 | NO_WERROR= |
11594 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 11595 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
c5da1932 | 11596 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
dabbade6 | 11597 | NO_WERROR="-Wno-error" |
20e95c23 | 11598 | fi |
d7040cdb | 11599 | |
dabbade6 L |
11600 | if test "${GCC}" = yes ; then |
11601 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
c5da1932 | 11602 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
dabbade6 | 11603 | fi |
d7040cdb | 11604 | |
81ecdfbb RW |
11605 | # Check whether --enable-build-warnings was given. |
11606 | if test "${enable_build_warnings+set}" = set; then : | |
11607 | enableval=$enable_build_warnings; case "${enableval}" in | |
c5da1932 VZ |
11608 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
11609 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
dabbade6 L |
11610 | no) if test "${GCC}" = yes ; then |
11611 | WARN_CFLAGS="-w" | |
c5da1932 | 11612 | WARN_CFLAGS_FOR_BUILD="-w" |
dabbade6 L |
11613 | fi;; |
11614 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c5da1932 VZ |
11615 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
11616 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; | |
dabbade6 | 11617 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c5da1932 VZ |
11618 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
11619 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
11620 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11621 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
dabbade6 | 11622 | esac |
81ecdfbb RW |
11623 | fi |
11624 | ||
979273e3 | 11625 | |
dabbade6 L |
11626 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11627 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
d7040cdb | 11628 | fi |
dabbade6 L |
11629 | |
11630 | ||
11631 | ||
11632 | ||
6757cf57 | 11633 | |
c5da1932 | 11634 | |
dabbade6 | 11635 | |
81ecdfbb | 11636 | ac_config_headers="$ac_config_headers config.h:config.in" |
dabbade6 L |
11637 | |
11638 | ||
df7b86aa NC |
11639 | # PR 14072 |
11640 | ||
11641 | ||
dabbade6 | 11642 | if test -z "$target" ; then |
d0ac1c44 | 11643 | as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
d7040cdb | 11644 | fi |
dabbade6 | 11645 | |
81ecdfbb RW |
11646 | |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11648 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11649 | # Check whether --enable-maintainer-mode was given. | |
11650 | if test "${enable_maintainer_mode+set}" = set; then : | |
11651 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
d7040cdb | 11652 | else |
dabbade6 | 11653 | USE_MAINTAINER_MODE=no |
81ecdfbb | 11654 | fi |
d7040cdb | 11655 | |
81ecdfbb RW |
11656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
11657 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11658 | if test $USE_MAINTAINER_MODE = yes; then | |
dabbade6 L |
11659 | MAINTAINER_MODE_TRUE= |
11660 | MAINTAINER_MODE_FALSE='#' | |
252b5132 | 11661 | else |
dabbade6 L |
11662 | MAINTAINER_MODE_TRUE='#' |
11663 | MAINTAINER_MODE_FALSE= | |
252b5132 | 11664 | fi |
d7040cdb | 11665 | |
dabbade6 L |
11666 | MAINT=$MAINTAINER_MODE_TRUE |
11667 | ||
11668 | ||
11669 | case ${build_alias} in | |
11670 | "") build_noncanonical=${build} ;; | |
11671 | *) build_noncanonical=${build_alias} ;; | |
11672 | esac | |
11673 | ||
11674 | case ${host_alias} in | |
11675 | "") host_noncanonical=${build_noncanonical} ;; | |
11676 | *) host_noncanonical=${host_alias} ;; | |
11677 | esac | |
979273e3 | 11678 | |
dabbade6 L |
11679 | case ${target_alias} in |
11680 | "") target_noncanonical=${host_noncanonical} ;; | |
11681 | *) target_noncanonical=${target_alias} ;; | |
d7040cdb | 11682 | esac |
252b5132 | 11683 | |
81ecdfbb RW |
11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 |
11685 | $as_echo_n "checking whether to install libbfd... " >&6; } | |
11686 | # Check whether --enable-install-libbfd was given. | |
11687 | if test "${enable_install_libbfd+set}" = set; then : | |
11688 | enableval=$enable_install_libbfd; install_libbfd_p=$enableval | |
979273e3 | 11689 | else |
dabbade6 L |
11690 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
11691 | install_libbfd_p=yes | |
11692 | else | |
11693 | install_libbfd_p=no | |
11694 | fi | |
81ecdfbb | 11695 | fi |
d7040cdb | 11696 | |
81ecdfbb RW |
11697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 |
11698 | $as_echo "$install_libbfd_p" >&6; } | |
11699 | if test $install_libbfd_p = yes; then | |
dabbade6 L |
11700 | INSTALL_LIBBFD_TRUE= |
11701 | INSTALL_LIBBFD_FALSE='#' | |
11702 | else | |
11703 | INSTALL_LIBBFD_TRUE='#' | |
11704 | INSTALL_LIBBFD_FALSE= | |
d7040cdb SE |
11705 | fi |
11706 | ||
dabbade6 | 11707 | # Need _noncanonical variables for this. |
979273e3 | 11708 | |
d7040cdb SE |
11709 | |
11710 | ||
dabbade6 L |
11711 | |
11712 | # libbfd.a is a host library containing target dependent code | |
11713 | bfdlibdir='$(libdir)' | |
11714 | bfdincludedir='$(includedir)' | |
11715 | if test "${host}" != "${target}"; then | |
11716 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' | |
11717 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
11718 | fi | |
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
573e8a1c RW |
11725 | |
11726 | ||
dabbade6 L |
11727 | # host-specific stuff: |
11728 | ||
e184813f | 11729 | ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN" |
d7040cdb SE |
11730 | |
11731 | MKINSTALLDIRS= | |
11732 | if test -n "$ac_aux_dir"; then | |
11733 | case "$ac_aux_dir" in | |
11734 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
11735 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
11736 | esac | |
11737 | fi | |
11738 | if test -z "$MKINSTALLDIRS"; then | |
11739 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
11740 | fi | |
11741 | ||
11742 | ||
11743 | ||
81ecdfbb RW |
11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11745 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
11746 | # Check whether --enable-nls was given. | |
11747 | if test "${enable_nls+set}" = set; then : | |
11748 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
11749 | else |
11750 | USE_NLS=yes | |
81ecdfbb RW |
11751 | fi |
11752 | ||
11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11754 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
11755 | |
11756 | ||
11757 | ||
11758 | ||
11759 | ||
11760 | ||
11761 | # Prepare PATH_SEPARATOR. | |
11762 | # The user is always right. | |
11763 | if test "${PATH_SEPARATOR+set}" != set; then | |
11764 | echo "#! /bin/sh" >conf$$.sh | |
11765 | echo "exit 0" >>conf$$.sh | |
11766 | chmod +x conf$$.sh | |
11767 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11768 | PATH_SEPARATOR=';' | |
11769 | else | |
11770 | PATH_SEPARATOR=: | |
11771 | fi | |
11772 | rm -f conf$$.sh | |
11773 | fi | |
979273e3 | 11774 | |
d7040cdb SE |
11775 | # Find out how to test for executable files. Don't use a zero-byte file, |
11776 | # as systems may use methods other than mode bits to determine executability. | |
11777 | cat >conf$$.file <<_ASEOF | |
11778 | #! /bin/sh | |
11779 | exit 0 | |
11780 | _ASEOF | |
11781 | chmod +x conf$$.file | |
11782 | if test -x conf$$.file >/dev/null 2>&1; then | |
11783 | ac_executable_p="test -x" | |
252b5132 | 11784 | else |
d7040cdb | 11785 | ac_executable_p="test -f" |
252b5132 | 11786 | fi |
d7040cdb | 11787 | rm -f conf$$.file |
252b5132 | 11788 | |
d7040cdb SE |
11789 | # Extract the first word of "msgfmt", so it can be a program name with args. |
11790 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11792 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11793 | if ${ac_cv_path_MSGFMT+:} false; then : |
81ecdfbb | 11794 | $as_echo_n "(cached) " >&6 |
252b5132 | 11795 | else |
d7040cdb SE |
11796 | case "$MSGFMT" in |
11797 | [\\/]* | ?:[\\/]*) | |
11798 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
11799 | ;; | |
11800 | *) | |
11801 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11802 | for ac_dir in $PATH; do | |
11803 | IFS="$ac_save_IFS" | |
11804 | test -z "$ac_dir" && ac_dir=. | |
11805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11806 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11807 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
11808 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11809 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
11810 | break 2 | |
11811 | fi | |
11812 | fi | |
11813 | done | |
11814 | done | |
11815 | IFS="$ac_save_IFS" | |
11816 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
11817 | ;; | |
11818 | esac | |
11819 | fi | |
11820 | MSGFMT="$ac_cv_path_MSGFMT" | |
11821 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
11823 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 11824 | else |
81ecdfbb RW |
11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11826 | $as_echo "no" >&6; } | |
252b5132 RH |
11827 | fi |
11828 | ||
d7040cdb SE |
11829 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
11830 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11832 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11833 | if ${ac_cv_path_GMSGFMT+:} false; then : |
81ecdfbb | 11834 | $as_echo_n "(cached) " >&6 |
20e95c23 | 11835 | else |
d7040cdb SE |
11836 | case $GMSGFMT in |
11837 | [\\/]* | ?:[\\/]*) | |
11838 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
11839 | ;; | |
11840 | *) | |
11841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11842 | for as_dir in $PATH | |
11843 | do | |
11844 | IFS=$as_save_IFS | |
11845 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11846 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 11848 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
11850 | break 2 |
11851 | fi | |
11852 | done | |
81ecdfbb RW |
11853 | done |
11854 | IFS=$as_save_IFS | |
252b5132 | 11855 | |
d7040cdb SE |
11856 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
11857 | ;; | |
11858 | esac | |
11859 | fi | |
11860 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 11861 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
11863 | $as_echo "$GMSGFMT" >&6; } | |
252b5132 | 11864 | else |
81ecdfbb RW |
11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11866 | $as_echo "no" >&6; } | |
252b5132 RH |
11867 | fi |
11868 | ||
11869 | ||
20e95c23 | 11870 | |
81ecdfbb | 11871 | |
d7040cdb SE |
11872 | # Prepare PATH_SEPARATOR. |
11873 | # The user is always right. | |
11874 | if test "${PATH_SEPARATOR+set}" != set; then | |
11875 | echo "#! /bin/sh" >conf$$.sh | |
11876 | echo "exit 0" >>conf$$.sh | |
11877 | chmod +x conf$$.sh | |
11878 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11879 | PATH_SEPARATOR=';' | |
11880 | else | |
11881 | PATH_SEPARATOR=: | |
11882 | fi | |
11883 | rm -f conf$$.sh | |
252b5132 RH |
11884 | fi |
11885 | ||
d7040cdb SE |
11886 | # Find out how to test for executable files. Don't use a zero-byte file, |
11887 | # as systems may use methods other than mode bits to determine executability. | |
11888 | cat >conf$$.file <<_ASEOF | |
11889 | #! /bin/sh | |
11890 | exit 0 | |
11891 | _ASEOF | |
11892 | chmod +x conf$$.file | |
11893 | if test -x conf$$.file >/dev/null 2>&1; then | |
11894 | ac_executable_p="test -x" | |
11895 | else | |
11896 | ac_executable_p="test -f" | |
11897 | fi | |
11898 | rm -f conf$$.file | |
20e95c23 | 11899 | |
d7040cdb SE |
11900 | # Extract the first word of "xgettext", so it can be a program name with args. |
11901 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11903 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11904 | if ${ac_cv_path_XGETTEXT+:} false; then : |
81ecdfbb | 11905 | $as_echo_n "(cached) " >&6 |
252b5132 | 11906 | else |
d7040cdb SE |
11907 | case "$XGETTEXT" in |
11908 | [\\/]* | ?:[\\/]*) | |
11909 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
11910 | ;; | |
11911 | *) | |
11912 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11913 | for ac_dir in $PATH; do | |
11914 | IFS="$ac_save_IFS" | |
11915 | test -z "$ac_dir" && ac_dir=. | |
11916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11917 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11918 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11919 | (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 | |
11920 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
11921 | break 2 | |
11922 | fi | |
11923 | fi | |
11924 | done | |
11925 | done | |
11926 | IFS="$ac_save_IFS" | |
11927 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
11928 | ;; | |
11929 | esac | |
20e95c23 | 11930 | fi |
d7040cdb SE |
11931 | XGETTEXT="$ac_cv_path_XGETTEXT" |
11932 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
11934 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 11935 | else |
81ecdfbb RW |
11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11937 | $as_echo "no" >&6; } | |
d7040cdb SE |
11938 | fi |
11939 | ||
11940 | rm -f messages.po | |
11941 | ||
979273e3 | 11942 | |
d7040cdb SE |
11943 | # Prepare PATH_SEPARATOR. |
11944 | # The user is always right. | |
11945 | if test "${PATH_SEPARATOR+set}" != set; then | |
11946 | echo "#! /bin/sh" >conf$$.sh | |
11947 | echo "exit 0" >>conf$$.sh | |
11948 | chmod +x conf$$.sh | |
11949 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11950 | PATH_SEPARATOR=';' | |
11951 | else | |
11952 | PATH_SEPARATOR=: | |
11953 | fi | |
11954 | rm -f conf$$.sh | |
252b5132 | 11955 | fi |
979273e3 | 11956 | |
d7040cdb SE |
11957 | # Find out how to test for executable files. Don't use a zero-byte file, |
11958 | # as systems may use methods other than mode bits to determine executability. | |
11959 | cat >conf$$.file <<_ASEOF | |
11960 | #! /bin/sh | |
11961 | exit 0 | |
11962 | _ASEOF | |
11963 | chmod +x conf$$.file | |
11964 | if test -x conf$$.file >/dev/null 2>&1; then | |
11965 | ac_executable_p="test -x" | |
252b5132 | 11966 | else |
d7040cdb SE |
11967 | ac_executable_p="test -f" |
11968 | fi | |
11969 | rm -f conf$$.file | |
252b5132 | 11970 | |
d7040cdb SE |
11971 | # Extract the first word of "msgmerge", so it can be a program name with args. |
11972 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11974 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11975 | if ${ac_cv_path_MSGMERGE+:} false; then : |
81ecdfbb | 11976 | $as_echo_n "(cached) " >&6 |
252b5132 | 11977 | else |
d7040cdb SE |
11978 | case "$MSGMERGE" in |
11979 | [\\/]* | ?:[\\/]*) | |
11980 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
11981 | ;; | |
11982 | *) | |
11983 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11984 | for ac_dir in $PATH; do | |
11985 | IFS="$ac_save_IFS" | |
11986 | test -z "$ac_dir" && ac_dir=. | |
11987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11988 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11989 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
11990 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
11991 | break 2 | |
11992 | fi | |
11993 | fi | |
11994 | done | |
11995 | done | |
11996 | IFS="$ac_save_IFS" | |
11997 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
11998 | ;; | |
11999 | esac | |
20e95c23 | 12000 | fi |
d7040cdb SE |
12001 | MSGMERGE="$ac_cv_path_MSGMERGE" |
12002 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
12004 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 12005 | else |
81ecdfbb RW |
12006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12007 | $as_echo "no" >&6; } | |
20e95c23 | 12008 | fi |
252b5132 | 12009 | |
979273e3 | 12010 | |
d7040cdb SE |
12011 | if test "$GMSGFMT" != ":"; then |
12012 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12013 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12014 | : ; | |
12015 | else | |
12016 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
12018 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
12019 | GMSGFMT=":" |
12020 | fi | |
12021 | fi | |
979273e3 | 12022 | |
d7040cdb SE |
12023 | if test "$XGETTEXT" != ":"; then |
12024 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12025 | (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 | |
12026 | : ; | |
12027 | else | |
81ecdfbb RW |
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
12029 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
12030 | XGETTEXT=":" |
12031 | fi | |
12032 | rm -f messages.po | |
12033 | fi | |
979273e3 | 12034 | |
81ecdfbb | 12035 | ac_config_commands="$ac_config_commands default-1" |
979273e3 | 12036 | |
979273e3 | 12037 | |
979273e3 | 12038 | |
862776f2 AA |
12039 | if test "X$prefix" = "XNONE"; then |
12040 | acl_final_prefix="$ac_default_prefix" | |
81ecdfbb | 12041 | else |
862776f2 AA |
12042 | acl_final_prefix="$prefix" |
12043 | fi | |
12044 | if test "X$exec_prefix" = "XNONE"; then | |
12045 | acl_final_exec_prefix='${prefix}' | |
12046 | else | |
12047 | acl_final_exec_prefix="$exec_prefix" | |
81ecdfbb | 12048 | fi |
862776f2 AA |
12049 | acl_save_prefix="$prefix" |
12050 | prefix="$acl_final_prefix" | |
12051 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
12052 | prefix="$acl_save_prefix" | |
12053 | ||
12054 | ||
12055 | # Check whether --with-gnu-ld was given. | |
12056 | if test "${with_gnu_ld+set}" = set; then : | |
12057 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12058 | else | |
12059 | with_gnu_ld=no | |
81ecdfbb | 12060 | fi |
252b5132 | 12061 | |
862776f2 AA |
12062 | # Prepare PATH_SEPARATOR. |
12063 | # The user is always right. | |
12064 | if test "${PATH_SEPARATOR+set}" != set; then | |
12065 | echo "#! /bin/sh" >conf$$.sh | |
12066 | echo "exit 0" >>conf$$.sh | |
12067 | chmod +x conf$$.sh | |
12068 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12069 | PATH_SEPARATOR=';' | |
12070 | else | |
12071 | PATH_SEPARATOR=: | |
12072 | fi | |
12073 | rm -f conf$$.sh | |
12074 | fi | |
12075 | ac_prog=ld | |
12076 | if test "$GCC" = yes; then | |
12077 | # Check if gcc -print-prog-name=ld gives a path. | |
12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
12079 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
12080 | case $host in | |
12081 | *-*-mingw*) | |
12082 | # gcc leaves a trailing carriage return which upsets mingw | |
12083 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12084 | *) | |
12085 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12086 | esac | |
12087 | case $ac_prog in | |
12088 | # Accept absolute paths. | |
12089 | [\\/]* | [A-Za-z]:[\\/]*) | |
12090 | re_direlt='/[^/][^/]*/\.\./' | |
12091 | # Canonicalize the path of ld | |
12092 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
12093 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
12094 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
12095 | done | |
12096 | test -z "$LD" && LD="$ac_prog" | |
12097 | ;; | |
12098 | "") | |
12099 | # If it fails, then pretend we aren't using GCC. | |
12100 | ac_prog=ld | |
12101 | ;; | |
12102 | *) | |
12103 | # If it is relative, then search for the first ld in PATH. | |
12104 | with_gnu_ld=unknown | |
12105 | ;; | |
12106 | esac | |
12107 | elif test "$with_gnu_ld" = yes; then | |
12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12109 | $as_echo_n "checking for GNU ld... " >&6; } | |
4bd60896 | 12110 | else |
862776f2 AA |
12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
12112 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
12113 | fi | |
12114 | if ${acl_cv_path_LD+:} false; then : | |
81ecdfbb | 12115 | $as_echo_n "(cached) " >&6 |
4bd60896 | 12116 | else |
862776f2 AA |
12117 | if test -z "$LD"; then |
12118 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
12119 | for ac_dir in $PATH; do | |
12120 | test -z "$ac_dir" && ac_dir=. | |
12121 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12122 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
12123 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12124 | # but apparently some GNU ld's only accept -v. | |
12125 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12126 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then | |
12127 | test "$with_gnu_ld" != no && break | |
12128 | else | |
12129 | test "$with_gnu_ld" != yes && break | |
12130 | fi | |
12131 | fi | |
12132 | done | |
12133 | IFS="$ac_save_ifs" | |
12134 | else | |
12135 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
4bd60896 | 12136 | fi |
4bd60896 | 12137 | fi |
4bd60896 | 12138 | |
862776f2 AA |
12139 | LD="$acl_cv_path_LD" |
12140 | if test -n "$LD"; then | |
12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12142 | $as_echo "$LD" >&6; } | |
1d5269c9 | 12143 | else |
862776f2 AA |
12144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12145 | $as_echo "no" >&6; } | |
12146 | fi | |
12147 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
12149 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
12150 | if ${acl_cv_prog_gnu_ld+:} false; then : | |
12151 | $as_echo_n "(cached) " >&6 | |
12152 | else | |
12153 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
12154 | if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then | |
12155 | acl_cv_prog_gnu_ld=yes | |
12156 | else | |
12157 | acl_cv_prog_gnu_ld=no | |
1d5269c9 | 12158 | fi |
862776f2 AA |
12159 | fi |
12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
12161 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
12162 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
1d5269c9 MF |
12163 | |
12164 | ||
862776f2 AA |
12165 | |
12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
12167 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
12168 | if ${acl_cv_rpath+:} false; then : | |
1d5269c9 MF |
12169 | $as_echo_n "(cached) " >&6 |
12170 | else | |
1d5269c9 | 12171 | |
862776f2 AA |
12172 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
12173 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
12174 | . ./conftest.sh | |
12175 | rm -f ./conftest.sh | |
12176 | acl_cv_rpath=done | |
12177 | ||
12178 | fi | |
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
12180 | $as_echo "$acl_cv_rpath" >&6; } | |
12181 | wl="$acl_cv_wl" | |
12182 | libext="$acl_cv_libext" | |
12183 | shlibext="$acl_cv_shlibext" | |
12184 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
12185 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
12186 | hardcode_direct="$acl_cv_hardcode_direct" | |
12187 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
12188 | # Check whether --enable-rpath was given. | |
12189 | if test "${enable_rpath+set}" = set; then : | |
12190 | enableval=$enable_rpath; : | |
1d5269c9 | 12191 | else |
862776f2 | 12192 | enable_rpath=yes |
1d5269c9 MF |
12193 | fi |
12194 | ||
1d5269c9 MF |
12195 | |
12196 | ||
12197 | ||
1d5269c9 MF |
12198 | |
12199 | ||
1d5269c9 | 12200 | |
1d5269c9 | 12201 | |
862776f2 | 12202 | use_additional=yes |
1d5269c9 | 12203 | |
862776f2 AA |
12204 | acl_save_prefix="$prefix" |
12205 | prefix="$acl_final_prefix" | |
12206 | acl_save_exec_prefix="$exec_prefix" | |
12207 | exec_prefix="$acl_final_exec_prefix" | |
1d5269c9 | 12208 | |
862776f2 AA |
12209 | eval additional_includedir=\"$includedir\" |
12210 | eval additional_libdir=\"$libdir\" | |
4bd60896 | 12211 | |
862776f2 AA |
12212 | exec_prefix="$acl_save_exec_prefix" |
12213 | prefix="$acl_save_prefix" | |
4bd60896 | 12214 | |
81ecdfbb | 12215 | |
862776f2 AA |
12216 | # Check whether --with-libiconv-prefix was given. |
12217 | if test "${with_libiconv_prefix+set}" = set; then : | |
12218 | withval=$with_libiconv_prefix; | |
12219 | if test "X$withval" = "Xno"; then | |
12220 | use_additional=no | |
12221 | else | |
12222 | if test "X$withval" = "X"; then | |
12223 | ||
12224 | acl_save_prefix="$prefix" | |
12225 | prefix="$acl_final_prefix" | |
12226 | acl_save_exec_prefix="$exec_prefix" | |
12227 | exec_prefix="$acl_final_exec_prefix" | |
12228 | ||
12229 | eval additional_includedir=\"$includedir\" | |
12230 | eval additional_libdir=\"$libdir\" | |
12231 | ||
12232 | exec_prefix="$acl_save_exec_prefix" | |
12233 | prefix="$acl_save_prefix" | |
12234 | ||
12235 | else | |
12236 | additional_includedir="$withval/include" | |
12237 | additional_libdir="$withval/lib" | |
12238 | fi | |
12239 | fi | |
81ecdfbb | 12240 | |
dabbade6 | 12241 | fi |
dabbade6 | 12242 | |
862776f2 AA |
12243 | |
12244 | # Check whether --with-libiconv-type was given. | |
12245 | if test "${with_libiconv_type+set}" = set; then : | |
12246 | withval=$with_libiconv_type; with_libiconv_type=$withval | |
dabbade6 | 12247 | else |
862776f2 | 12248 | with_libiconv_type=auto |
4bd60896 JG |
12249 | fi |
12250 | ||
862776f2 | 12251 | lib_type=`eval echo \$with_libiconv_type` |
4bd60896 | 12252 | |
862776f2 AA |
12253 | LIBICONV= |
12254 | LTLIBICONV= | |
12255 | INCICONV= | |
12256 | rpathdirs= | |
12257 | ltrpathdirs= | |
12258 | names_already_handled= | |
12259 | names_next_round='iconv ' | |
12260 | while test -n "$names_next_round"; do | |
12261 | names_this_round="$names_next_round" | |
12262 | names_next_round= | |
12263 | for name in $names_this_round; do | |
12264 | already_handled= | |
12265 | for n in $names_already_handled; do | |
12266 | if test "$n" = "$name"; then | |
12267 | already_handled=yes | |
12268 | break | |
12269 | fi | |
12270 | done | |
12271 | if test -z "$already_handled"; then | |
12272 | names_already_handled="$names_already_handled $name" | |
12273 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
12274 | eval value=\"\$HAVE_LIB$uppername\" | |
12275 | if test -n "$value"; then | |
12276 | if test "$value" = yes; then | |
12277 | eval value=\"\$LIB$uppername\" | |
12278 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
12279 | eval value=\"\$LTLIB$uppername\" | |
12280 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
12281 | else | |
12282 | : | |
12283 | fi | |
12284 | else | |
12285 | found_dir= | |
12286 | found_la= | |
12287 | found_so= | |
12288 | found_a= | |
12289 | if test $use_additional = yes; then | |
12290 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then | |
12291 | found_dir="$additional_libdir" | |
12292 | found_so="$additional_libdir/lib$name.$shlibext" | |
12293 | if test -f "$additional_libdir/lib$name.la"; then | |
12294 | found_la="$additional_libdir/lib$name.la" | |
12295 | fi | |
12296 | elif test x$lib_type != xshared; then | |
12297 | if test -f "$additional_libdir/lib$name.$libext"; then | |
12298 | found_dir="$additional_libdir" | |
12299 | found_a="$additional_libdir/lib$name.$libext" | |
12300 | if test -f "$additional_libdir/lib$name.la"; then | |
12301 | found_la="$additional_libdir/lib$name.la" | |
12302 | fi | |
12303 | fi | |
12304 | fi | |
12305 | fi | |
12306 | if test "X$found_dir" = "X"; then | |
12307 | for x in $LDFLAGS $LTLIBICONV; do | |
12308 | ||
12309 | acl_save_prefix="$prefix" | |
12310 | prefix="$acl_final_prefix" | |
12311 | acl_save_exec_prefix="$exec_prefix" | |
12312 | exec_prefix="$acl_final_exec_prefix" | |
12313 | eval x=\"$x\" | |
12314 | exec_prefix="$acl_save_exec_prefix" | |
12315 | prefix="$acl_save_prefix" | |
12316 | ||
12317 | case "$x" in | |
12318 | -L*) | |
12319 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
12320 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then | |
12321 | found_dir="$dir" | |
12322 | found_so="$dir/lib$name.$shlibext" | |
12323 | if test -f "$dir/lib$name.la"; then | |
12324 | found_la="$dir/lib$name.la" | |
12325 | fi | |
12326 | elif test x$lib_type != xshared; then | |
12327 | if test -f "$dir/lib$name.$libext"; then | |
12328 | found_dir="$dir" | |
12329 | found_a="$dir/lib$name.$libext" | |
12330 | if test -f "$dir/lib$name.la"; then | |
12331 | found_la="$dir/lib$name.la" | |
12332 | fi | |
12333 | fi | |
12334 | fi | |
12335 | ;; | |
12336 | esac | |
12337 | if test "X$found_dir" != "X"; then | |
12338 | break | |
12339 | fi | |
12340 | done | |
12341 | fi | |
12342 | if test "X$found_dir" != "X"; then | |
12343 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
12344 | if test "X$found_so" != "X"; then | |
12345 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
12346 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
12347 | else | |
12348 | haveit= | |
12349 | for x in $ltrpathdirs; do | |
12350 | if test "X$x" = "X$found_dir"; then | |
12351 | haveit=yes | |
12352 | break | |
12353 | fi | |
12354 | done | |
12355 | if test -z "$haveit"; then | |
12356 | ltrpathdirs="$ltrpathdirs $found_dir" | |
12357 | fi | |
12358 | if test "$hardcode_direct" = yes; then | |
12359 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
12360 | else | |
12361 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
12362 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
12363 | haveit= | |
12364 | for x in $rpathdirs; do | |
12365 | if test "X$x" = "X$found_dir"; then | |
12366 | haveit=yes | |
12367 | break | |
12368 | fi | |
12369 | done | |
12370 | if test -z "$haveit"; then | |
12371 | rpathdirs="$rpathdirs $found_dir" | |
12372 | fi | |
12373 | else | |
12374 | haveit= | |
12375 | for x in $LDFLAGS $LIBICONV; do | |
12376 | ||
12377 | acl_save_prefix="$prefix" | |
12378 | prefix="$acl_final_prefix" | |
12379 | acl_save_exec_prefix="$exec_prefix" | |
12380 | exec_prefix="$acl_final_exec_prefix" | |
12381 | eval x=\"$x\" | |
12382 | exec_prefix="$acl_save_exec_prefix" | |
12383 | prefix="$acl_save_prefix" | |
12384 | ||
12385 | if test "X$x" = "X-L$found_dir"; then | |
12386 | haveit=yes | |
12387 | break | |
12388 | fi | |
12389 | done | |
12390 | if test -z "$haveit"; then | |
12391 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
12392 | fi | |
12393 | if test "$hardcode_minus_L" != no; then | |
12394 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
12395 | else | |
12396 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
12397 | fi | |
12398 | fi | |
12399 | fi | |
12400 | fi | |
12401 | else | |
12402 | if test "X$found_a" != "X"; then | |
12403 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
12404 | else | |
12405 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
12406 | fi | |
12407 | fi | |
12408 | additional_includedir= | |
12409 | case "$found_dir" in | |
12410 | */lib | */lib/) | |
12411 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
12412 | additional_includedir="$basedir/include" | |
12413 | ;; | |
12414 | esac | |
12415 | if test "X$additional_includedir" != "X"; then | |
12416 | if test "X$additional_includedir" != "X/usr/include"; then | |
12417 | haveit= | |
12418 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
12419 | if test -n "$GCC"; then | |
12420 | case $host_os in | |
12421 | linux*) haveit=yes;; | |
12422 | esac | |
12423 | fi | |
12424 | fi | |
12425 | if test -z "$haveit"; then | |
12426 | for x in $CPPFLAGS $INCICONV; do | |
12427 | ||
12428 | acl_save_prefix="$prefix" | |
12429 | prefix="$acl_final_prefix" | |
12430 | acl_save_exec_prefix="$exec_prefix" | |
12431 | exec_prefix="$acl_final_exec_prefix" | |
12432 | eval x=\"$x\" | |
12433 | exec_prefix="$acl_save_exec_prefix" | |
12434 | prefix="$acl_save_prefix" | |
12435 | ||
12436 | if test "X$x" = "X-I$additional_includedir"; then | |
12437 | haveit=yes | |
12438 | break | |
12439 | fi | |
12440 | done | |
12441 | if test -z "$haveit"; then | |
12442 | if test -d "$additional_includedir"; then | |
12443 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
12444 | fi | |
12445 | fi | |
12446 | fi | |
12447 | fi | |
12448 | fi | |
12449 | if test -n "$found_la"; then | |
12450 | save_libdir="$libdir" | |
12451 | case "$found_la" in | |
12452 | */* | *\\*) . "$found_la" ;; | |
12453 | *) . "./$found_la" ;; | |
12454 | esac | |
12455 | libdir="$save_libdir" | |
12456 | for dep in $dependency_libs; do | |
12457 | case "$dep" in | |
12458 | -L*) | |
12459 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
12460 | if test "X$additional_libdir" != "X/usr/lib"; then | |
12461 | haveit= | |
12462 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
12463 | if test -n "$GCC"; then | |
12464 | case $host_os in | |
12465 | linux*) haveit=yes;; | |
12466 | esac | |
12467 | fi | |
12468 | fi | |
12469 | if test -z "$haveit"; then | |
12470 | haveit= | |
12471 | for x in $LDFLAGS $LIBICONV; do | |
12472 | ||
12473 | acl_save_prefix="$prefix" | |
12474 | prefix="$acl_final_prefix" | |
12475 | acl_save_exec_prefix="$exec_prefix" | |
12476 | exec_prefix="$acl_final_exec_prefix" | |
12477 | eval x=\"$x\" | |
12478 | exec_prefix="$acl_save_exec_prefix" | |
12479 | prefix="$acl_save_prefix" | |
12480 | ||
12481 | if test "X$x" = "X-L$additional_libdir"; then | |
12482 | haveit=yes | |
12483 | break | |
12484 | fi | |
12485 | done | |
12486 | if test -z "$haveit"; then | |
12487 | if test -d "$additional_libdir"; then | |
12488 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
12489 | fi | |
12490 | fi | |
12491 | haveit= | |
12492 | for x in $LDFLAGS $LTLIBICONV; do | |
12493 | ||
12494 | acl_save_prefix="$prefix" | |
12495 | prefix="$acl_final_prefix" | |
12496 | acl_save_exec_prefix="$exec_prefix" | |
12497 | exec_prefix="$acl_final_exec_prefix" | |
12498 | eval x=\"$x\" | |
12499 | exec_prefix="$acl_save_exec_prefix" | |
12500 | prefix="$acl_save_prefix" | |
12501 | ||
12502 | if test "X$x" = "X-L$additional_libdir"; then | |
12503 | haveit=yes | |
12504 | break | |
12505 | fi | |
12506 | done | |
12507 | if test -z "$haveit"; then | |
12508 | if test -d "$additional_libdir"; then | |
12509 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
12510 | fi | |
12511 | fi | |
12512 | fi | |
12513 | fi | |
12514 | ;; | |
12515 | -R*) | |
12516 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
12517 | if test "$enable_rpath" != no; then | |
12518 | haveit= | |
12519 | for x in $rpathdirs; do | |
12520 | if test "X$x" = "X$dir"; then | |
12521 | haveit=yes | |
12522 | break | |
12523 | fi | |
12524 | done | |
12525 | if test -z "$haveit"; then | |
12526 | rpathdirs="$rpathdirs $dir" | |
12527 | fi | |
12528 | haveit= | |
12529 | for x in $ltrpathdirs; do | |
12530 | if test "X$x" = "X$dir"; then | |
12531 | haveit=yes | |
12532 | break | |
12533 | fi | |
12534 | done | |
12535 | if test -z "$haveit"; then | |
12536 | ltrpathdirs="$ltrpathdirs $dir" | |
12537 | fi | |
12538 | fi | |
12539 | ;; | |
12540 | -l*) | |
12541 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
12542 | ;; | |
12543 | *.la) | |
12544 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
12545 | ;; | |
12546 | *) | |
12547 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
12548 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
12549 | ;; | |
12550 | esac | |
12551 | done | |
12552 | fi | |
12553 | else | |
12554 | if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then | |
12555 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
12556 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
12557 | else | |
12558 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" | |
12559 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" | |
12560 | fi | |
12561 | fi | |
12562 | fi | |
12563 | fi | |
12564 | done | |
12565 | done | |
12566 | if test "X$rpathdirs" != "X"; then | |
12567 | if test -n "$hardcode_libdir_separator"; then | |
12568 | alldirs= | |
12569 | for found_dir in $rpathdirs; do | |
12570 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
12571 | done | |
12572 | acl_save_libdir="$libdir" | |
12573 | libdir="$alldirs" | |
12574 | eval flag=\"$hardcode_libdir_flag_spec\" | |
12575 | libdir="$acl_save_libdir" | |
12576 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
12577 | else | |
12578 | for found_dir in $rpathdirs; do | |
12579 | acl_save_libdir="$libdir" | |
12580 | libdir="$found_dir" | |
12581 | eval flag=\"$hardcode_libdir_flag_spec\" | |
12582 | libdir="$acl_save_libdir" | |
12583 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
12584 | done | |
12585 | fi | |
12586 | fi | |
12587 | if test "X$ltrpathdirs" != "X"; then | |
12588 | for found_dir in $ltrpathdirs; do | |
12589 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
12590 | done | |
12591 | fi | |
12592 | ||
12593 | ||
12594 | ||
12595 | ||
12596 | ||
12597 | if test -f ../gettext/uninstalled-config.sh; then | |
12598 | relative_builddir='$(top_builddir)/../gettext' | |
12599 | . ../gettext/uninstalled-config.sh | |
12600 | else | |
12601 | # The sister gettext directory doesn't exist and won't collect information on | |
12602 | # using gettext for us. Call a bundled AM_GNU_GETTEXT. | |
12603 | ||
12604 | ||
12605 | ||
12606 | ||
12607 | ||
12608 | ||
12609 | ||
12610 | ||
12611 | ||
12612 | ||
12613 | ||
12614 | ||
12615 | ||
12616 | ||
12617 | ||
12618 | ||
12619 | ||
12620 | ||
12621 | ||
12622 | ||
12623 | ||
12624 | ||
12625 | ||
12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | |
12627 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
12628 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
12629 | $as_echo_n "(cached) " >&6 | |
12630 | else | |
12631 | gt_save_LIBS="$LIBS" | |
12632 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
12633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12634 | /* end confdefs.h. */ | |
12635 | #include <CoreFoundation/CFPreferences.h> | |
12636 | int | |
12637 | main () | |
12638 | { | |
12639 | CFPreferencesCopyAppValue(NULL, NULL) | |
12640 | ; | |
12641 | return 0; | |
12642 | } | |
12643 | _ACEOF | |
12644 | if ac_fn_c_try_link "$LINENO"; then : | |
12645 | gt_cv_func_CFPreferencesCopyAppValue=yes | |
12646 | else | |
12647 | gt_cv_func_CFPreferencesCopyAppValue=no | |
12648 | fi | |
12649 | rm -f core conftest.err conftest.$ac_objext \ | |
12650 | conftest$ac_exeext conftest.$ac_ext | |
12651 | LIBS="$gt_save_LIBS" | |
12652 | fi | |
12653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
12654 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
12655 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
12656 | ||
12657 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
12658 | ||
12659 | fi | |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 | |
12661 | $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } | |
12662 | if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : | |
12663 | $as_echo_n "(cached) " >&6 | |
12664 | else | |
12665 | gt_save_LIBS="$LIBS" | |
12666 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
12667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12668 | /* end confdefs.h. */ | |
12669 | #include <CoreFoundation/CFLocale.h> | |
12670 | int | |
12671 | main () | |
12672 | { | |
12673 | CFLocaleCopyPreferredLanguages(); | |
12674 | ; | |
12675 | return 0; | |
12676 | } | |
12677 | _ACEOF | |
12678 | if ac_fn_c_try_link "$LINENO"; then : | |
12679 | gt_cv_func_CFLocaleCopyPreferredLanguages=yes | |
12680 | else | |
12681 | gt_cv_func_CFLocaleCopyPreferredLanguages=no | |
12682 | fi | |
12683 | rm -f core conftest.err conftest.$ac_objext \ | |
12684 | conftest$ac_exeext conftest.$ac_ext | |
12685 | LIBS="$gt_save_LIBS" | |
12686 | fi | |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 | |
12688 | $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } | |
12689 | if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then | |
12690 | ||
12691 | $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h | |
12692 | ||
12693 | fi | |
12694 | INTL_MACOSX_LIBS= | |
12695 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ | |
12696 | || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then | |
12697 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" | |
12698 | fi | |
12699 | ||
12700 | ||
12701 | ||
12702 | ||
12703 | ||
12704 | ||
12705 | LIBINTL= | |
12706 | LTLIBINTL= | |
12707 | POSUB= | |
12708 | ||
12709 | case " $gt_needs " in | |
12710 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
12711 | *" need-ngettext "*) gt_api_version=2 ;; | |
12712 | *) gt_api_version=1 ;; | |
12713 | esac | |
12714 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
12715 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
12716 | ||
12717 | if test "$USE_NLS" = "yes"; then | |
12718 | gt_use_preinstalled_gnugettext=no | |
12719 | ||
12720 | ||
12721 | if test $gt_api_version -ge 3; then | |
12722 | gt_revision_test_code=' | |
12723 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
12724 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
12725 | #endif | |
12726 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
12727 | ' | |
12728 | else | |
12729 | gt_revision_test_code= | |
12730 | fi | |
12731 | if test $gt_api_version -ge 2; then | |
12732 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
12733 | else | |
12734 | gt_expression_test_code= | |
12735 | fi | |
12736 | ||
12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 | |
12738 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
12739 | if eval \${$gt_func_gnugettext_libc+:} false; then : | |
12740 | $as_echo_n "(cached) " >&6 | |
12741 | else | |
12742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12743 | /* end confdefs.h. */ | |
12744 | ||
12745 | #include <libintl.h> | |
12746 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
12747 | extern int _nl_msg_cat_cntr; | |
12748 | extern int *_nl_domain_bindings; | |
12749 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) | |
12750 | #else | |
12751 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
12752 | #endif | |
12753 | $gt_revision_test_code | |
12754 | ||
12755 | int | |
12756 | main () | |
12757 | { | |
12758 | ||
12759 | bindtextdomain ("", ""); | |
12760 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION | |
12761 | ||
12762 | ; | |
12763 | return 0; | |
12764 | } | |
12765 | _ACEOF | |
12766 | if ac_fn_c_try_link "$LINENO"; then : | |
12767 | eval "$gt_func_gnugettext_libc=yes" | |
12768 | else | |
12769 | eval "$gt_func_gnugettext_libc=no" | |
12770 | fi | |
12771 | rm -f core conftest.err conftest.$ac_objext \ | |
12772 | conftest$ac_exeext conftest.$ac_ext | |
12773 | fi | |
12774 | eval ac_res=\$$gt_func_gnugettext_libc | |
12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
12776 | $as_echo "$ac_res" >&6; } | |
12777 | ||
12778 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | |
12779 | ||
12780 | ||
12781 | ||
12782 | ||
12783 | ||
12784 | am_save_CPPFLAGS="$CPPFLAGS" | |
12785 | ||
12786 | for element in $INCICONV; do | |
12787 | haveit= | |
12788 | for x in $CPPFLAGS; do | |
12789 | ||
12790 | acl_save_prefix="$prefix" | |
12791 | prefix="$acl_final_prefix" | |
12792 | acl_save_exec_prefix="$exec_prefix" | |
12793 | exec_prefix="$acl_final_exec_prefix" | |
12794 | eval x=\"$x\" | |
12795 | exec_prefix="$acl_save_exec_prefix" | |
12796 | prefix="$acl_save_prefix" | |
12797 | ||
12798 | if test "X$x" = "X$element"; then | |
12799 | haveit=yes | |
12800 | break | |
12801 | fi | |
12802 | done | |
12803 | if test -z "$haveit"; then | |
12804 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
12805 | fi | |
12806 | done | |
12807 | ||
12808 | ||
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
12810 | $as_echo_n "checking for iconv... " >&6; } | |
12811 | if ${am_cv_func_iconv+:} false; then : | |
12812 | $as_echo_n "(cached) " >&6 | |
12813 | else | |
12814 | ||
12815 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
12816 | am_cv_lib_iconv=no | |
12817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12818 | /* end confdefs.h. */ | |
12819 | ||
12820 | #include <stdlib.h> | |
12821 | #include <iconv.h> | |
12822 | ||
12823 | int | |
12824 | main () | |
12825 | { | |
12826 | iconv_t cd = iconv_open("",""); | |
12827 | iconv(cd,NULL,NULL,NULL,NULL); | |
12828 | iconv_close(cd); | |
12829 | ; | |
12830 | return 0; | |
12831 | } | |
12832 | _ACEOF | |
12833 | if ac_fn_c_try_link "$LINENO"; then : | |
12834 | am_cv_func_iconv=yes | |
12835 | fi | |
12836 | rm -f core conftest.err conftest.$ac_objext \ | |
12837 | conftest$ac_exeext conftest.$ac_ext | |
12838 | if test "$am_cv_func_iconv" != yes; then | |
12839 | am_save_LIBS="$LIBS" | |
12840 | LIBS="$LIBS $LIBICONV" | |
12841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12842 | /* end confdefs.h. */ | |
12843 | ||
12844 | #include <stdlib.h> | |
12845 | #include <iconv.h> | |
12846 | ||
12847 | int | |
12848 | main () | |
12849 | { | |
12850 | iconv_t cd = iconv_open("",""); | |
12851 | iconv(cd,NULL,NULL,NULL,NULL); | |
12852 | iconv_close(cd); | |
12853 | ; | |
12854 | return 0; | |
12855 | } | |
12856 | _ACEOF | |
12857 | if ac_fn_c_try_link "$LINENO"; then : | |
12858 | am_cv_lib_iconv=yes | |
12859 | am_cv_func_iconv=yes | |
12860 | fi | |
12861 | rm -f core conftest.err conftest.$ac_objext \ | |
12862 | conftest$ac_exeext conftest.$ac_ext | |
12863 | LIBS="$am_save_LIBS" | |
12864 | fi | |
12865 | ||
12866 | fi | |
12867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
12868 | $as_echo "$am_cv_func_iconv" >&6; } | |
12869 | if test "$am_cv_func_iconv" = yes; then | |
12870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
12871 | $as_echo_n "checking for working iconv... " >&6; } | |
12872 | if ${am_cv_func_iconv_works+:} false; then : | |
12873 | $as_echo_n "(cached) " >&6 | |
12874 | else | |
12875 | ||
12876 | am_save_LIBS="$LIBS" | |
12877 | if test $am_cv_lib_iconv = yes; then | |
12878 | LIBS="$LIBS $LIBICONV" | |
12879 | fi | |
12880 | am_cv_func_iconv_works=no | |
12881 | for ac_iconv_const in '' 'const'; do | |
12882 | if test "$cross_compiling" = yes; then : | |
12883 | case "$host_os" in | |
12884 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
12885 | *) am_cv_func_iconv_works="guessing yes" ;; | |
12886 | esac | |
12887 | else | |
12888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12889 | /* end confdefs.h. */ | |
12890 | ||
12891 | #include <iconv.h> | |
12892 | #include <string.h> | |
12893 | ||
12894 | #ifndef ICONV_CONST | |
12895 | # define ICONV_CONST $ac_iconv_const | |
12896 | #endif | |
12897 | ||
12898 | int | |
12899 | main () | |
12900 | { | |
12901 | int result = 0; | |
12902 | /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from | |
12903 | successful returns. This is even documented in | |
12904 | <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ | |
12905 | { | |
12906 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
12907 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
12908 | { | |
12909 | static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ | |
12910 | char buf[10]; | |
12911 | ICONV_CONST char *inptr = input; | |
12912 | size_t inbytesleft = strlen (input); | |
12913 | char *outptr = buf; | |
12914 | size_t outbytesleft = sizeof (buf); | |
12915 | size_t res = iconv (cd_utf8_to_88591, | |
12916 | &inptr, &inbytesleft, | |
12917 | &outptr, &outbytesleft); | |
12918 | if (res == 0) | |
12919 | result |= 1; | |
12920 | iconv_close (cd_utf8_to_88591); | |
12921 | } | |
12922 | } | |
12923 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
12924 | successful returns. */ | |
12925 | { | |
12926 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
12927 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
12928 | { | |
12929 | static ICONV_CONST char input[] = "\263"; | |
12930 | char buf[10]; | |
12931 | ICONV_CONST char *inptr = input; | |
12932 | size_t inbytesleft = strlen (input); | |
12933 | char *outptr = buf; | |
12934 | size_t outbytesleft = sizeof (buf); | |
12935 | size_t res = iconv (cd_ascii_to_88591, | |
12936 | &inptr, &inbytesleft, | |
12937 | &outptr, &outbytesleft); | |
12938 | if (res == 0) | |
12939 | result |= 2; | |
12940 | iconv_close (cd_ascii_to_88591); | |
12941 | } | |
12942 | } | |
12943 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
12944 | { | |
12945 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
12946 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
12947 | { | |
12948 | static ICONV_CONST char input[] = "\304"; | |
12949 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
12950 | ICONV_CONST char *inptr = input; | |
12951 | size_t inbytesleft = 1; | |
12952 | char *outptr = buf; | |
12953 | size_t outbytesleft = 1; | |
12954 | size_t res = iconv (cd_88591_to_utf8, | |
12955 | &inptr, &inbytesleft, | |
12956 | &outptr, &outbytesleft); | |
12957 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
12958 | result |= 4; | |
12959 | iconv_close (cd_88591_to_utf8); | |
12960 | } | |
12961 | } | |
12962 | #if 0 /* This bug could be worked around by the caller. */ | |
12963 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
12964 | { | |
12965 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
12966 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
12967 | { | |
12968 | static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
12969 | char buf[50]; | |
12970 | ICONV_CONST char *inptr = input; | |
12971 | size_t inbytesleft = strlen (input); | |
12972 | char *outptr = buf; | |
12973 | size_t outbytesleft = sizeof (buf); | |
12974 | size_t res = iconv (cd_88591_to_utf8, | |
12975 | &inptr, &inbytesleft, | |
12976 | &outptr, &outbytesleft); | |
12977 | if ((int)res > 0) | |
12978 | result |= 8; | |
12979 | iconv_close (cd_88591_to_utf8); | |
12980 | } | |
12981 | } | |
12982 | #endif | |
12983 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
12984 | provided. */ | |
12985 | { | |
12986 | /* Try standardized names. */ | |
12987 | iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); | |
12988 | /* Try IRIX, OSF/1 names. */ | |
12989 | iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); | |
12990 | /* Try AIX names. */ | |
12991 | iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); | |
12992 | /* Try HP-UX names. */ | |
12993 | iconv_t cd4 = iconv_open ("utf8", "eucJP"); | |
12994 | if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) | |
12995 | && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) | |
12996 | result |= 16; | |
12997 | if (cd1 != (iconv_t)(-1)) | |
12998 | iconv_close (cd1); | |
12999 | if (cd2 != (iconv_t)(-1)) | |
13000 | iconv_close (cd2); | |
13001 | if (cd3 != (iconv_t)(-1)) | |
13002 | iconv_close (cd3); | |
13003 | if (cd4 != (iconv_t)(-1)) | |
13004 | iconv_close (cd4); | |
13005 | } | |
13006 | return result; | |
13007 | ||
13008 | ; | |
13009 | return 0; | |
13010 | } | |
13011 | _ACEOF | |
13012 | if ac_fn_c_try_run "$LINENO"; then : | |
13013 | am_cv_func_iconv_works=yes | |
13014 | fi | |
13015 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13016 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13017 | fi | |
13018 | ||
13019 | test "$am_cv_func_iconv_works" = no || break | |
13020 | done | |
13021 | LIBS="$am_save_LIBS" | |
13022 | ||
13023 | fi | |
13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
13025 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
13026 | case "$am_cv_func_iconv_works" in | |
13027 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
13028 | *) am_func_iconv=yes ;; | |
13029 | esac | |
13030 | else | |
13031 | am_func_iconv=no am_cv_lib_iconv=no | |
13032 | fi | |
13033 | if test "$am_func_iconv" = yes; then | |
13034 | ||
13035 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
13036 | ||
13037 | fi | |
13038 | if test "$am_cv_lib_iconv" = yes; then | |
13039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
13040 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
13041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
13042 | $as_echo "$LIBICONV" >&6; } | |
13043 | else | |
13044 | CPPFLAGS="$am_save_CPPFLAGS" | |
13045 | LIBICONV= | |
13046 | LTLIBICONV= | |
13047 | fi | |
13048 | ||
13049 | ||
13050 | ||
13051 | ||
13052 | ||
13053 | ||
13054 | use_additional=yes | |
13055 | ||
13056 | acl_save_prefix="$prefix" | |
13057 | prefix="$acl_final_prefix" | |
13058 | acl_save_exec_prefix="$exec_prefix" | |
13059 | exec_prefix="$acl_final_exec_prefix" | |
13060 | ||
13061 | eval additional_includedir=\"$includedir\" | |
13062 | eval additional_libdir=\"$libdir\" | |
13063 | ||
13064 | exec_prefix="$acl_save_exec_prefix" | |
13065 | prefix="$acl_save_prefix" | |
13066 | ||
13067 | ||
13068 | # Check whether --with-libintl-prefix was given. | |
13069 | if test "${with_libintl_prefix+set}" = set; then : | |
13070 | withval=$with_libintl_prefix; | |
13071 | if test "X$withval" = "Xno"; then | |
13072 | use_additional=no | |
13073 | else | |
13074 | if test "X$withval" = "X"; then | |
13075 | ||
13076 | acl_save_prefix="$prefix" | |
13077 | prefix="$acl_final_prefix" | |
13078 | acl_save_exec_prefix="$exec_prefix" | |
13079 | exec_prefix="$acl_final_exec_prefix" | |
13080 | ||
13081 | eval additional_includedir=\"$includedir\" | |
13082 | eval additional_libdir=\"$libdir\" | |
13083 | ||
13084 | exec_prefix="$acl_save_exec_prefix" | |
13085 | prefix="$acl_save_prefix" | |
13086 | ||
13087 | else | |
13088 | additional_includedir="$withval/include" | |
13089 | additional_libdir="$withval/lib" | |
13090 | fi | |
13091 | fi | |
13092 | ||
13093 | fi | |
13094 | ||
13095 | ||
13096 | # Check whether --with-libintl-type was given. | |
13097 | if test "${with_libintl_type+set}" = set; then : | |
13098 | withval=$with_libintl_type; with_libintl_type=$withval | |
13099 | else | |
13100 | with_libintl_type=auto | |
13101 | fi | |
13102 | ||
13103 | lib_type=`eval echo \$with_libintl_type` | |
13104 | ||
13105 | LIBINTL= | |
13106 | LTLIBINTL= | |
13107 | INCINTL= | |
13108 | rpathdirs= | |
13109 | ltrpathdirs= | |
13110 | names_already_handled= | |
13111 | names_next_round='intl ' | |
13112 | while test -n "$names_next_round"; do | |
13113 | names_this_round="$names_next_round" | |
13114 | names_next_round= | |
13115 | for name in $names_this_round; do | |
13116 | already_handled= | |
13117 | for n in $names_already_handled; do | |
13118 | if test "$n" = "$name"; then | |
13119 | already_handled=yes | |
13120 | break | |
13121 | fi | |
13122 | done | |
13123 | if test -z "$already_handled"; then | |
13124 | names_already_handled="$names_already_handled $name" | |
13125 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
13126 | eval value=\"\$HAVE_LIB$uppername\" | |
13127 | if test -n "$value"; then | |
13128 | if test "$value" = yes; then | |
13129 | eval value=\"\$LIB$uppername\" | |
13130 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
13131 | eval value=\"\$LTLIB$uppername\" | |
13132 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
13133 | else | |
13134 | : | |
13135 | fi | |
13136 | else | |
13137 | found_dir= | |
13138 | found_la= | |
13139 | found_so= | |
13140 | found_a= | |
13141 | if test $use_additional = yes; then | |
13142 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then | |
13143 | found_dir="$additional_libdir" | |
13144 | found_so="$additional_libdir/lib$name.$shlibext" | |
13145 | if test -f "$additional_libdir/lib$name.la"; then | |
13146 | found_la="$additional_libdir/lib$name.la" | |
13147 | fi | |
13148 | elif test x$lib_type != xshared; then | |
13149 | if test -f "$additional_libdir/lib$name.$libext"; then | |
13150 | found_dir="$additional_libdir" | |
13151 | found_a="$additional_libdir/lib$name.$libext" | |
13152 | if test -f "$additional_libdir/lib$name.la"; then | |
13153 | found_la="$additional_libdir/lib$name.la" | |
13154 | fi | |
13155 | fi | |
13156 | fi | |
13157 | fi | |
13158 | if test "X$found_dir" = "X"; then | |
13159 | for x in $LDFLAGS $LTLIBINTL; do | |
13160 | ||
13161 | acl_save_prefix="$prefix" | |
13162 | prefix="$acl_final_prefix" | |
13163 | acl_save_exec_prefix="$exec_prefix" | |
13164 | exec_prefix="$acl_final_exec_prefix" | |
13165 | eval x=\"$x\" | |
13166 | exec_prefix="$acl_save_exec_prefix" | |
13167 | prefix="$acl_save_prefix" | |
13168 | ||
13169 | case "$x" in | |
13170 | -L*) | |
13171 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
13172 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then | |
13173 | found_dir="$dir" | |
13174 | found_so="$dir/lib$name.$shlibext" | |
13175 | if test -f "$dir/lib$name.la"; then | |
13176 | found_la="$dir/lib$name.la" | |
13177 | fi | |
13178 | elif test x$lib_type != xshared; then | |
13179 | if test -f "$dir/lib$name.$libext"; then | |
13180 | found_dir="$dir" | |
13181 | found_a="$dir/lib$name.$libext" | |
13182 | if test -f "$dir/lib$name.la"; then | |
13183 | found_la="$dir/lib$name.la" | |
13184 | fi | |
13185 | fi | |
13186 | fi | |
13187 | ;; | |
13188 | esac | |
13189 | if test "X$found_dir" != "X"; then | |
13190 | break | |
13191 | fi | |
13192 | done | |
13193 | fi | |
13194 | if test "X$found_dir" != "X"; then | |
13195 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
13196 | if test "X$found_so" != "X"; then | |
13197 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
13198 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
13199 | else | |
13200 | haveit= | |
13201 | for x in $ltrpathdirs; do | |
13202 | if test "X$x" = "X$found_dir"; then | |
13203 | haveit=yes | |
13204 | break | |
13205 | fi | |
13206 | done | |
13207 | if test -z "$haveit"; then | |
13208 | ltrpathdirs="$ltrpathdirs $found_dir" | |
13209 | fi | |
13210 | if test "$hardcode_direct" = yes; then | |
13211 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
13212 | else | |
13213 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
13214 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
13215 | haveit= | |
13216 | for x in $rpathdirs; do | |
13217 | if test "X$x" = "X$found_dir"; then | |
13218 | haveit=yes | |
13219 | break | |
13220 | fi | |
13221 | done | |
13222 | if test -z "$haveit"; then | |
13223 | rpathdirs="$rpathdirs $found_dir" | |
13224 | fi | |
13225 | else | |
13226 | haveit= | |
13227 | for x in $LDFLAGS $LIBINTL; do | |
13228 | ||
13229 | acl_save_prefix="$prefix" | |
13230 | prefix="$acl_final_prefix" | |
13231 | acl_save_exec_prefix="$exec_prefix" | |
13232 | exec_prefix="$acl_final_exec_prefix" | |
13233 | eval x=\"$x\" | |
13234 | exec_prefix="$acl_save_exec_prefix" | |
13235 | prefix="$acl_save_prefix" | |
13236 | ||
13237 | if test "X$x" = "X-L$found_dir"; then | |
13238 | haveit=yes | |
13239 | break | |
13240 | fi | |
13241 | done | |
13242 | if test -z "$haveit"; then | |
13243 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
13244 | fi | |
13245 | if test "$hardcode_minus_L" != no; then | |
13246 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
13247 | else | |
13248 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
13249 | fi | |
13250 | fi | |
13251 | fi | |
13252 | fi | |
13253 | else | |
13254 | if test "X$found_a" != "X"; then | |
13255 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
13256 | else | |
13257 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
13258 | fi | |
13259 | fi | |
13260 | additional_includedir= | |
13261 | case "$found_dir" in | |
13262 | */lib | */lib/) | |
13263 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
13264 | additional_includedir="$basedir/include" | |
13265 | ;; | |
13266 | esac | |
13267 | if test "X$additional_includedir" != "X"; then | |
13268 | if test "X$additional_includedir" != "X/usr/include"; then | |
13269 | haveit= | |
13270 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
13271 | if test -n "$GCC"; then | |
13272 | case $host_os in | |
13273 | linux*) haveit=yes;; | |
13274 | esac | |
13275 | fi | |
13276 | fi | |
13277 | if test -z "$haveit"; then | |
13278 | for x in $CPPFLAGS $INCINTL; do | |
13279 | ||
13280 | acl_save_prefix="$prefix" | |
13281 | prefix="$acl_final_prefix" | |
13282 | acl_save_exec_prefix="$exec_prefix" | |
13283 | exec_prefix="$acl_final_exec_prefix" | |
13284 | eval x=\"$x\" | |
13285 | exec_prefix="$acl_save_exec_prefix" | |
13286 | prefix="$acl_save_prefix" | |
13287 | ||
13288 | if test "X$x" = "X-I$additional_includedir"; then | |
13289 | haveit=yes | |
13290 | break | |
13291 | fi | |
13292 | done | |
13293 | if test -z "$haveit"; then | |
13294 | if test -d "$additional_includedir"; then | |
13295 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
13296 | fi | |
13297 | fi | |
13298 | fi | |
13299 | fi | |
13300 | fi | |
13301 | if test -n "$found_la"; then | |
13302 | save_libdir="$libdir" | |
13303 | case "$found_la" in | |
13304 | */* | *\\*) . "$found_la" ;; | |
13305 | *) . "./$found_la" ;; | |
13306 | esac | |
13307 | libdir="$save_libdir" | |
13308 | for dep in $dependency_libs; do | |
13309 | case "$dep" in | |
13310 | -L*) | |
13311 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
13312 | if test "X$additional_libdir" != "X/usr/lib"; then | |
13313 | haveit= | |
13314 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
13315 | if test -n "$GCC"; then | |
13316 | case $host_os in | |
13317 | linux*) haveit=yes;; | |
13318 | esac | |
13319 | fi | |
13320 | fi | |
13321 | if test -z "$haveit"; then | |
13322 | haveit= | |
13323 | for x in $LDFLAGS $LIBINTL; do | |
13324 | ||
13325 | acl_save_prefix="$prefix" | |
13326 | prefix="$acl_final_prefix" | |
13327 | acl_save_exec_prefix="$exec_prefix" | |
13328 | exec_prefix="$acl_final_exec_prefix" | |
13329 | eval x=\"$x\" | |
13330 | exec_prefix="$acl_save_exec_prefix" | |
13331 | prefix="$acl_save_prefix" | |
13332 | ||
13333 | if test "X$x" = "X-L$additional_libdir"; then | |
13334 | haveit=yes | |
13335 | break | |
13336 | fi | |
13337 | done | |
13338 | if test -z "$haveit"; then | |
13339 | if test -d "$additional_libdir"; then | |
13340 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
13341 | fi | |
13342 | fi | |
13343 | haveit= | |
13344 | for x in $LDFLAGS $LTLIBINTL; do | |
13345 | ||
13346 | acl_save_prefix="$prefix" | |
13347 | prefix="$acl_final_prefix" | |
13348 | acl_save_exec_prefix="$exec_prefix" | |
13349 | exec_prefix="$acl_final_exec_prefix" | |
13350 | eval x=\"$x\" | |
13351 | exec_prefix="$acl_save_exec_prefix" | |
13352 | prefix="$acl_save_prefix" | |
13353 | ||
13354 | if test "X$x" = "X-L$additional_libdir"; then | |
13355 | haveit=yes | |
13356 | break | |
13357 | fi | |
13358 | done | |
13359 | if test -z "$haveit"; then | |
13360 | if test -d "$additional_libdir"; then | |
13361 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
13362 | fi | |
13363 | fi | |
13364 | fi | |
13365 | fi | |
13366 | ;; | |
13367 | -R*) | |
13368 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
13369 | if test "$enable_rpath" != no; then | |
13370 | haveit= | |
13371 | for x in $rpathdirs; do | |
13372 | if test "X$x" = "X$dir"; then | |
13373 | haveit=yes | |
13374 | break | |
13375 | fi | |
13376 | done | |
13377 | if test -z "$haveit"; then | |
13378 | rpathdirs="$rpathdirs $dir" | |
13379 | fi | |
13380 | haveit= | |
13381 | for x in $ltrpathdirs; do | |
13382 | if test "X$x" = "X$dir"; then | |
13383 | haveit=yes | |
13384 | break | |
13385 | fi | |
13386 | done | |
13387 | if test -z "$haveit"; then | |
13388 | ltrpathdirs="$ltrpathdirs $dir" | |
13389 | fi | |
13390 | fi | |
13391 | ;; | |
13392 | -l*) | |
13393 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
13394 | ;; | |
13395 | *.la) | |
13396 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
13397 | ;; | |
13398 | *) | |
13399 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
13400 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
13401 | ;; | |
13402 | esac | |
13403 | done | |
13404 | fi | |
13405 | else | |
13406 | if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then | |
13407 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
13408 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
13409 | else | |
13410 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" | |
13411 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" | |
13412 | fi | |
13413 | fi | |
13414 | fi | |
13415 | fi | |
13416 | done | |
13417 | done | |
13418 | if test "X$rpathdirs" != "X"; then | |
13419 | if test -n "$hardcode_libdir_separator"; then | |
13420 | alldirs= | |
13421 | for found_dir in $rpathdirs; do | |
13422 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
13423 | done | |
13424 | acl_save_libdir="$libdir" | |
13425 | libdir="$alldirs" | |
13426 | eval flag=\"$hardcode_libdir_flag_spec\" | |
13427 | libdir="$acl_save_libdir" | |
13428 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
13429 | else | |
13430 | for found_dir in $rpathdirs; do | |
13431 | acl_save_libdir="$libdir" | |
13432 | libdir="$found_dir" | |
13433 | eval flag=\"$hardcode_libdir_flag_spec\" | |
13434 | libdir="$acl_save_libdir" | |
13435 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
13436 | done | |
13437 | fi | |
13438 | fi | |
13439 | if test "X$ltrpathdirs" != "X"; then | |
13440 | for found_dir in $ltrpathdirs; do | |
13441 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
13442 | done | |
13443 | fi | |
13444 | ||
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 | |
13446 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
13447 | if eval \${$gt_func_gnugettext_libintl+:} false; then : | |
13448 | $as_echo_n "(cached) " >&6 | |
13449 | else | |
13450 | gt_save_CPPFLAGS="$CPPFLAGS" | |
13451 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
13452 | gt_save_LIBS="$LIBS" | |
13453 | LIBS="$LIBS $LIBINTL" | |
13454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13455 | /* end confdefs.h. */ | |
13456 | ||
13457 | #include <libintl.h> | |
13458 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
13459 | extern int _nl_msg_cat_cntr; | |
13460 | extern | |
13461 | #ifdef __cplusplus | |
13462 | "C" | |
13463 | #endif | |
13464 | const char *_nl_expand_alias (const char *); | |
13465 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) | |
13466 | #else | |
13467 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
13468 | #endif | |
13469 | $gt_revision_test_code | |
13470 | ||
13471 | int | |
13472 | main () | |
13473 | { | |
13474 | ||
13475 | bindtextdomain ("", ""); | |
13476 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION | |
13477 | ||
13478 | ; | |
13479 | return 0; | |
13480 | } | |
13481 | _ACEOF | |
13482 | if ac_fn_c_try_link "$LINENO"; then : | |
13483 | eval "$gt_func_gnugettext_libintl=yes" | |
13484 | else | |
13485 | eval "$gt_func_gnugettext_libintl=no" | |
13486 | fi | |
13487 | rm -f core conftest.err conftest.$ac_objext \ | |
13488 | conftest$ac_exeext conftest.$ac_ext | |
13489 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | |
13490 | LIBS="$LIBS $LIBICONV" | |
13491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13492 | /* end confdefs.h. */ | |
13493 | ||
13494 | #include <libintl.h> | |
13495 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
13496 | extern int _nl_msg_cat_cntr; | |
13497 | extern | |
13498 | #ifdef __cplusplus | |
13499 | "C" | |
13500 | #endif | |
13501 | const char *_nl_expand_alias (const char *); | |
13502 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) | |
13503 | #else | |
13504 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
13505 | #endif | |
13506 | $gt_revision_test_code | |
13507 | ||
13508 | int | |
13509 | main () | |
13510 | { | |
13511 | ||
13512 | bindtextdomain ("", ""); | |
13513 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION | |
13514 | ||
13515 | ; | |
13516 | return 0; | |
13517 | } | |
13518 | _ACEOF | |
13519 | if ac_fn_c_try_link "$LINENO"; then : | |
13520 | LIBINTL="$LIBINTL $LIBICONV" | |
13521 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
13522 | eval "$gt_func_gnugettext_libintl=yes" | |
13523 | ||
13524 | fi | |
13525 | rm -f core conftest.err conftest.$ac_objext \ | |
13526 | conftest$ac_exeext conftest.$ac_ext | |
13527 | fi | |
13528 | CPPFLAGS="$gt_save_CPPFLAGS" | |
13529 | LIBS="$gt_save_LIBS" | |
13530 | fi | |
13531 | eval ac_res=\$$gt_func_gnugettext_libintl | |
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
13533 | $as_echo "$ac_res" >&6; } | |
13534 | fi | |
13535 | ||
13536 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ | |
13537 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
13538 | && test "$PACKAGE" != gettext-runtime \ | |
13539 | && test "$PACKAGE" != gettext-tools; }; then | |
13540 | gt_use_preinstalled_gnugettext=yes | |
13541 | else | |
13542 | LIBINTL= | |
13543 | LTLIBINTL= | |
13544 | INCINTL= | |
13545 | fi | |
13546 | ||
13547 | ||
13548 | ||
13549 | if test -n "$INTL_MACOSX_LIBS"; then | |
13550 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
13551 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
13552 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
13553 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
13554 | fi | |
13555 | fi | |
13556 | ||
13557 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
13558 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
13559 | ||
13560 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
13561 | ||
13562 | else | |
13563 | USE_NLS=no | |
13564 | fi | |
13565 | fi | |
13566 | ||
13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 | |
13568 | $as_echo_n "checking whether to use NLS... " >&6; } | |
13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
13570 | $as_echo "$USE_NLS" >&6; } | |
13571 | if test "$USE_NLS" = "yes"; then | |
13572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
13573 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
13574 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
13575 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
13576 | gt_source="external libintl" | |
13577 | else | |
13578 | gt_source="libc" | |
13579 | fi | |
13580 | else | |
13581 | gt_source="included intl directory" | |
13582 | fi | |
13583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
13584 | $as_echo "$gt_source" >&6; } | |
13585 | fi | |
13586 | ||
13587 | if test "$USE_NLS" = "yes"; then | |
13588 | ||
13589 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
13590 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 | |
13592 | $as_echo_n "checking how to link with libintl... " >&6; } | |
13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
13594 | $as_echo "$LIBINTL" >&6; } | |
13595 | ||
13596 | for element in $INCINTL; do | |
13597 | haveit= | |
13598 | for x in $CPPFLAGS; do | |
13599 | ||
13600 | acl_save_prefix="$prefix" | |
13601 | prefix="$acl_final_prefix" | |
13602 | acl_save_exec_prefix="$exec_prefix" | |
13603 | exec_prefix="$acl_final_exec_prefix" | |
13604 | eval x=\"$x\" | |
13605 | exec_prefix="$acl_save_exec_prefix" | |
13606 | prefix="$acl_save_prefix" | |
13607 | ||
13608 | if test "X$x" = "X$element"; then | |
13609 | haveit=yes | |
13610 | break | |
13611 | fi | |
13612 | done | |
13613 | if test -z "$haveit"; then | |
13614 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
13615 | fi | |
13616 | done | |
13617 | ||
13618 | fi | |
13619 | ||
13620 | ||
13621 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h | |
13622 | ||
13623 | ||
13624 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h | |
13625 | ||
13626 | fi | |
13627 | ||
13628 | POSUB=po | |
13629 | fi | |
13630 | ||
13631 | ||
13632 | ||
13633 | INTLLIBS="$LIBINTL" | |
13634 | ||
13635 | ||
13636 | ||
13637 | ||
13638 | ||
13639 | ||
13640 | fi | |
13641 | ||
13642 | ||
13643 | ||
13644 | ||
13645 | ||
13646 | ||
13647 | ||
13648 | ||
13649 | ||
13650 | ||
13651 | ||
13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
13653 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
13654 | if test x"$USE_NLS" != xyes; then | |
13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13656 | $as_echo "no" >&6; } | |
13657 | else | |
13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13659 | $as_echo "yes" >&6; } | |
13660 | ||
13661 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
13662 | ||
13663 | ||
13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
13665 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
13666 | # Look for .po and .gmo files in the source directory. | |
13667 | CATALOGS= | |
13668 | XLINGUAS= | |
13669 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
13670 | # If there aren't any .gmo files the shell will give us the | |
13671 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
13672 | # weeded out. | |
13673 | case "$cat" in *\**) | |
13674 | continue;; | |
13675 | esac | |
13676 | # The quadruple backslash is collapsed to a double backslash | |
13677 | # by the backticks, then collapsed again by the double quotes, | |
13678 | # leaving us with one backslash in the sed expression (right | |
13679 | # before the dot that mustn't act as a wildcard). | |
13680 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
13681 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
13682 | # The user is allowed to set LINGUAS to a list of languages to | |
13683 | # install catalogs for. If it's empty that means "all of them." | |
13684 | if test "x$LINGUAS" = x; then | |
13685 | CATALOGS="$CATALOGS $cat" | |
13686 | XLINGUAS="$XLINGUAS $lang" | |
13687 | else | |
13688 | case "$LINGUAS" in *$lang*) | |
13689 | CATALOGS="$CATALOGS $cat" | |
13690 | XLINGUAS="$XLINGUAS $lang" | |
13691 | ;; | |
13692 | esac | |
13693 | fi | |
13694 | done | |
13695 | LINGUAS="$XLINGUAS" | |
13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
13697 | $as_echo "$LINGUAS" >&6; } | |
13698 | ||
13699 | ||
13700 | DATADIRNAME=share | |
13701 | ||
13702 | INSTOBJEXT=.mo | |
13703 | ||
13704 | GENCAT=gencat | |
13705 | ||
13706 | CATOBJEXT=.gmo | |
13707 | ||
13708 | fi | |
13709 | ||
13710 | ||
13711 | ||
13712 | ||
13713 | # Prepare PATH_SEPARATOR. | |
13714 | # The user is always right. | |
13715 | if test "${PATH_SEPARATOR+set}" != set; then | |
13716 | echo "#! /bin/sh" >conf$$.sh | |
13717 | echo "exit 0" >>conf$$.sh | |
13718 | chmod +x conf$$.sh | |
13719 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13720 | PATH_SEPARATOR=';' | |
13721 | else | |
13722 | PATH_SEPARATOR=: | |
13723 | fi | |
13724 | rm -f conf$$.sh | |
13725 | fi | |
13726 | ||
13727 | # Find out how to test for executable files. Don't use a zero-byte file, | |
13728 | # as systems may use methods other than mode bits to determine executability. | |
13729 | cat >conf$$.file <<_ASEOF | |
13730 | #! /bin/sh | |
13731 | exit 0 | |
13732 | _ASEOF | |
13733 | chmod +x conf$$.file | |
13734 | if test -x conf$$.file >/dev/null 2>&1; then | |
13735 | ac_executable_p="test -x" | |
13736 | else | |
13737 | ac_executable_p="test -f" | |
13738 | fi | |
13739 | rm -f conf$$.file | |
13740 | ||
13741 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13742 | set dummy msgfmt; ac_word=$2 | |
13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13744 | $as_echo_n "checking for $ac_word... " >&6; } | |
13745 | if ${ac_cv_path_MSGFMT+:} false; then : | |
13746 | $as_echo_n "(cached) " >&6 | |
13747 | else | |
13748 | case "$MSGFMT" in | |
13749 | [\\/]* | ?:[\\/]*) | |
13750 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13751 | ;; | |
13752 | *) | |
13753 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13754 | for ac_dir in $PATH; do | |
13755 | IFS="$ac_save_IFS" | |
13756 | test -z "$ac_dir" && ac_dir=. | |
13757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13758 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13759 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
13760 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13761 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
13762 | break 2 | |
13763 | fi | |
13764 | fi | |
13765 | done | |
13766 | done | |
13767 | IFS="$ac_save_IFS" | |
13768 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
13769 | ;; | |
13770 | esac | |
13771 | fi | |
13772 | MSGFMT="$ac_cv_path_MSGFMT" | |
13773 | if test "$MSGFMT" != ":"; then | |
13774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
13775 | $as_echo "$MSGFMT" >&6; } | |
13776 | else | |
13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13778 | $as_echo "no" >&6; } | |
13779 | fi | |
13780 | ||
13781 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
13782 | set dummy gmsgfmt; ac_word=$2 | |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13784 | $as_echo_n "checking for $ac_word... " >&6; } | |
13785 | if ${ac_cv_path_GMSGFMT+:} false; then : | |
13786 | $as_echo_n "(cached) " >&6 | |
13787 | else | |
13788 | case $GMSGFMT in | |
13789 | [\\/]* | ?:[\\/]*) | |
13790 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
13791 | ;; | |
13792 | *) | |
13793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13794 | for as_dir in $PATH | |
13795 | do | |
13796 | IFS=$as_save_IFS | |
13797 | test -z "$as_dir" && as_dir=. | |
13798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13800 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
13801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13802 | break 2 | |
13803 | fi | |
13804 | done | |
13805 | done | |
13806 | IFS=$as_save_IFS | |
13807 | ||
13808 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
13809 | ;; | |
13810 | esac | |
13811 | fi | |
13812 | GMSGFMT=$ac_cv_path_GMSGFMT | |
13813 | if test -n "$GMSGFMT"; then | |
13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
13815 | $as_echo "$GMSGFMT" >&6; } | |
13816 | else | |
13817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13818 | $as_echo "no" >&6; } | |
13819 | fi | |
13820 | ||
13821 | ||
13822 | ||
13823 | ||
13824 | # Prepare PATH_SEPARATOR. | |
13825 | # The user is always right. | |
13826 | if test "${PATH_SEPARATOR+set}" != set; then | |
13827 | echo "#! /bin/sh" >conf$$.sh | |
13828 | echo "exit 0" >>conf$$.sh | |
13829 | chmod +x conf$$.sh | |
13830 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13831 | PATH_SEPARATOR=';' | |
13832 | else | |
13833 | PATH_SEPARATOR=: | |
13834 | fi | |
13835 | rm -f conf$$.sh | |
13836 | fi | |
13837 | ||
13838 | # Find out how to test for executable files. Don't use a zero-byte file, | |
13839 | # as systems may use methods other than mode bits to determine executability. | |
13840 | cat >conf$$.file <<_ASEOF | |
13841 | #! /bin/sh | |
13842 | exit 0 | |
13843 | _ASEOF | |
13844 | chmod +x conf$$.file | |
13845 | if test -x conf$$.file >/dev/null 2>&1; then | |
13846 | ac_executable_p="test -x" | |
13847 | else | |
13848 | ac_executable_p="test -f" | |
13849 | fi | |
13850 | rm -f conf$$.file | |
13851 | ||
13852 | # Extract the first word of "xgettext", so it can be a program name with args. | |
13853 | set dummy xgettext; ac_word=$2 | |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13855 | $as_echo_n "checking for $ac_word... " >&6; } | |
13856 | if ${ac_cv_path_XGETTEXT+:} false; then : | |
13857 | $as_echo_n "(cached) " >&6 | |
13858 | else | |
13859 | case "$XGETTEXT" in | |
13860 | [\\/]* | ?:[\\/]*) | |
13861 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
13862 | ;; | |
13863 | *) | |
13864 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13865 | for ac_dir in $PATH; do | |
13866 | IFS="$ac_save_IFS" | |
13867 | test -z "$ac_dir" && ac_dir=. | |
13868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13869 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13870 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13871 | (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 | |
13872 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
13873 | break 2 | |
13874 | fi | |
13875 | fi | |
13876 | done | |
13877 | done | |
13878 | IFS="$ac_save_IFS" | |
13879 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
13880 | ;; | |
13881 | esac | |
13882 | fi | |
13883 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
13884 | if test "$XGETTEXT" != ":"; then | |
13885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
13886 | $as_echo "$XGETTEXT" >&6; } | |
13887 | else | |
13888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13889 | $as_echo "no" >&6; } | |
13890 | fi | |
13891 | ||
13892 | rm -f messages.po | |
13893 | ||
13894 | ||
13895 | # Prepare PATH_SEPARATOR. | |
13896 | # The user is always right. | |
13897 | if test "${PATH_SEPARATOR+set}" != set; then | |
13898 | echo "#! /bin/sh" >conf$$.sh | |
13899 | echo "exit 0" >>conf$$.sh | |
13900 | chmod +x conf$$.sh | |
13901 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13902 | PATH_SEPARATOR=';' | |
13903 | else | |
13904 | PATH_SEPARATOR=: | |
13905 | fi | |
13906 | rm -f conf$$.sh | |
13907 | fi | |
13908 | ||
13909 | # Find out how to test for executable files. Don't use a zero-byte file, | |
13910 | # as systems may use methods other than mode bits to determine executability. | |
13911 | cat >conf$$.file <<_ASEOF | |
13912 | #! /bin/sh | |
13913 | exit 0 | |
13914 | _ASEOF | |
13915 | chmod +x conf$$.file | |
13916 | if test -x conf$$.file >/dev/null 2>&1; then | |
13917 | ac_executable_p="test -x" | |
13918 | else | |
13919 | ac_executable_p="test -f" | |
13920 | fi | |
13921 | rm -f conf$$.file | |
13922 | ||
13923 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
13924 | set dummy msgmerge; ac_word=$2 | |
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13926 | $as_echo_n "checking for $ac_word... " >&6; } | |
13927 | if ${ac_cv_path_MSGMERGE+:} false; then : | |
13928 | $as_echo_n "(cached) " >&6 | |
13929 | else | |
13930 | case "$MSGMERGE" in | |
13931 | [\\/]* | ?:[\\/]*) | |
13932 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
13933 | ;; | |
13934 | *) | |
13935 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13936 | for ac_dir in $PATH; do | |
13937 | IFS="$ac_save_IFS" | |
13938 | test -z "$ac_dir" && ac_dir=. | |
13939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13940 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13941 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
13942 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
13943 | break 2 | |
13944 | fi | |
13945 | fi | |
13946 | done | |
13947 | done | |
13948 | IFS="$ac_save_IFS" | |
13949 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
13950 | ;; | |
13951 | esac | |
13952 | fi | |
13953 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
13954 | if test "$MSGMERGE" != ":"; then | |
13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
13956 | $as_echo "$MSGMERGE" >&6; } | |
13957 | else | |
13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13959 | $as_echo "no" >&6; } | |
13960 | fi | |
13961 | ||
13962 | ||
13963 | if test "$GMSGFMT" != ":"; then | |
13964 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
13965 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13966 | : ; | |
13967 | else | |
13968 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
13970 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
13971 | GMSGFMT=":" | |
13972 | fi | |
13973 | fi | |
13974 | ||
13975 | if test "$XGETTEXT" != ":"; then | |
13976 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13977 | (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 | |
13978 | : ; | |
13979 | else | |
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
13981 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
13982 | XGETTEXT=":" | |
13983 | fi | |
13984 | rm -f messages.po | |
13985 | fi | |
13986 | ||
13987 | ac_config_commands="$ac_config_commands default-2" | |
13988 | ||
13989 | ||
13990 | ||
13991 | . ${srcdir}/../bfd/configure.host | |
13992 | ||
13993 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
13994 | if test -z "$CC_FOR_BUILD"; then | |
13995 | if test "x$cross_compiling" = "xno"; then | |
13996 | CC_FOR_BUILD='$(CC)' | |
13997 | else | |
13998 | CC_FOR_BUILD=gcc | |
13999 | fi | |
14000 | fi | |
14001 | ||
14002 | # Also set EXEEXT_FOR_BUILD. | |
14003 | if test "x$cross_compiling" = "xno"; then | |
14004 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
14005 | else | |
14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 | |
14007 | $as_echo_n "checking for build system executable suffix... " >&6; } | |
14008 | if ${bfd_cv_build_exeext+:} false; then : | |
14009 | $as_echo_n "(cached) " >&6 | |
14010 | else | |
14011 | rm -f conftest* | |
14012 | echo 'int main () { return 0; }' > conftest.c | |
14013 | bfd_cv_build_exeext= | |
14014 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
14015 | for file in conftest.*; do | |
14016 | case $file in | |
14017 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
14018 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
14019 | esac | |
14020 | done | |
14021 | rm -f conftest* | |
14022 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
14023 | fi | |
14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 | |
14025 | $as_echo "$bfd_cv_build_exeext" >&6; } | |
14026 | EXEEXT_FOR_BUILD="" | |
14027 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
14028 | fi | |
14029 | ||
14030 | # Check whether --enable-64-bit-bfd was given. | |
14031 | if test "${enable_64_bit_bfd+set}" = set; then : | |
14032 | enableval=$enable_64_bit_bfd; case $enableval in #( | |
14033 | yes|no) : | |
14034 | ;; #( | |
14035 | *) : | |
14036 | as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #( | |
14037 | *) : | |
14038 | ;; | |
14039 | esac | |
14040 | else | |
14041 | enable_64_bit_bfd=no | |
14042 | fi | |
14043 | ||
14044 | ||
14045 | if test "x$enable_64_bit_bfd" = "xno"; then : | |
14046 | # The cast to long int works around a bug in the HP C Compiler | |
14047 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14048 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14049 | # This bug is HP SR number 8606223364. | |
14050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
14051 | $as_echo_n "checking size of void *... " >&6; } | |
14052 | if ${ac_cv_sizeof_void_p+:} false; then : | |
14053 | $as_echo_n "(cached) " >&6 | |
14054 | else | |
14055 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
14056 | ||
14057 | else | |
14058 | if test "$ac_cv_type_void_p" = yes; then | |
14059 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14060 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14061 | as_fn_error 77 "cannot compute sizeof (void *) | |
14062 | See \`config.log' for more details" "$LINENO" 5; } | |
14063 | else | |
14064 | ac_cv_sizeof_void_p=0 | |
14065 | fi | |
14066 | fi | |
14067 | ||
14068 | fi | |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
14070 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
14071 | ||
14072 | ||
14073 | ||
14074 | cat >>confdefs.h <<_ACEOF | |
14075 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14076 | _ACEOF | |
14077 | ||
14078 | ||
14079 | if test "x$ac_cv_sizeof_void_p" = "x8"; then : | |
14080 | enable_64_bit_bfd=yes | |
14081 | fi | |
14082 | ||
14083 | fi | |
14084 | ||
14085 | if test "x$enable_64_bit_bfd" = "xyes"; then | |
14086 | ENABLE_BFD_64_BIT_TRUE= | |
14087 | ENABLE_BFD_64_BIT_FALSE='#' | |
14088 | else | |
14089 | ENABLE_BFD_64_BIT_TRUE='#' | |
14090 | ENABLE_BFD_64_BIT_FALSE= | |
14091 | fi | |
14092 | ||
14093 | ||
14094 | ||
14095 | ||
14096 | ||
14097 | ||
14098 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
14099 | if test "x$ac_cv_have_decl_basename" = xyes; then : | |
14100 | ac_have_decl=1 | |
14101 | else | |
14102 | ac_have_decl=0 | |
14103 | fi | |
14104 | ||
14105 | cat >>confdefs.h <<_ACEOF | |
14106 | #define HAVE_DECL_BASENAME $ac_have_decl | |
14107 | _ACEOF | |
14108 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" | |
14109 | if test "x$ac_cv_have_decl_stpcpy" = xyes; then : | |
14110 | ac_have_decl=1 | |
14111 | else | |
14112 | ac_have_decl=0 | |
14113 | fi | |
14114 | ||
14115 | cat >>confdefs.h <<_ACEOF | |
14116 | #define HAVE_DECL_STPCPY $ac_have_decl | |
14117 | _ACEOF | |
14118 | ||
14119 | ||
14120 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do | |
14121 | # since sigsetjmp might only be defined as a macro. | |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 | |
14123 | $as_echo_n "checking for sigsetjmp... " >&6; } | |
14124 | if ${gdb_cv_func_sigsetjmp+:} false; then : | |
8df14d78 L |
14125 | $as_echo_n "(cached) " >&6 |
14126 | else | |
14127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14128 | /* end confdefs.h. */ | |
14129 | ||
14130 | #include <setjmp.h> | |
14131 | ||
14132 | int | |
14133 | main () | |
14134 | { | |
14135 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); | |
14136 | ; | |
14137 | return 0; | |
14138 | } | |
14139 | _ACEOF | |
14140 | if ac_fn_c_try_compile "$LINENO"; then : | |
14141 | bfd_cv_func_sigsetjmp=yes | |
14142 | else | |
14143 | bfd_cv_func_sigsetjmp=no | |
14144 | fi | |
14145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14146 | fi | |
14147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 | |
14148 | $as_echo "$gdb_cv_func_sigsetjmp" >&6; } | |
14149 | if test $bfd_cv_func_sigsetjmp = yes; then | |
14150 | ||
14151 | $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h | |
14152 | ||
14153 | fi | |
14154 | ||
6e31aea3 | 14155 | cgen_maint=no |
e7ad52cd AM |
14156 | cgendir='$(srcdir)/../../cgen' |
14157 | if test -r ${srcdir}/../cgen/iformat.scm; then | |
14158 | cgendir='$(srcdir)/../cgen' | |
14159 | fi | |
6e31aea3 | 14160 | |
81ecdfbb RW |
14161 | # Check whether --enable-cgen-maint was given. |
14162 | if test "${enable_cgen_maint+set}" = set; then : | |
14163 | enableval=$enable_cgen_maint; case "${enableval}" in | |
6e31aea3 BE |
14164 | yes) cgen_maint=yes ;; |
14165 | no) cgen_maint=no ;; | |
14166 | *) | |
7fb45a68 AB |
14167 | # Argument is a directory where cgen can be found. In some |
14168 | # future world cgen could be installable, but right now this | |
14169 | # is not the case. Instead we assume the directory is a path | |
14170 | # to the cgen source tree. | |
6e31aea3 | 14171 | cgen_maint=yes |
7fb45a68 AB |
14172 | if test -r ${enableval}/iformat.scm; then |
14173 | # This looks like a cgen source tree. | |
14174 | cgendir=${enableval} | |
14175 | else | |
14176 | as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 | |
14177 | fi | |
6e31aea3 BE |
14178 | ;; |
14179 | esac | |
81ecdfbb RW |
14180 | fi |
14181 | if test x${cgen_maint} = xyes; then | |
6e31aea3 BE |
14182 | CGEN_MAINT_TRUE= |
14183 | CGEN_MAINT_FALSE='#' | |
14184 | else | |
14185 | CGEN_MAINT_TRUE='#' | |
14186 | CGEN_MAINT_FALSE= | |
14187 | fi | |
14188 | ||
252b5132 | 14189 | |
8ae85421 | 14190 | |
252b5132 RH |
14191 | using_cgen=no |
14192 | ||
51dec227 | 14193 | # Check if linker supports --as-needed and --no-as-needed options |
81ecdfbb RW |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 |
14195 | $as_echo_n "checking linker --as-needed support... " >&6; } | |
d0ac1c44 | 14196 | if ${bfd_cv_ld_as_needed+:} false; then : |
81ecdfbb | 14197 | $as_echo_n "(cached) " >&6 |
51dec227 AM |
14198 | else |
14199 | bfd_cv_ld_as_needed=no | |
14200 | if $LD --help 2>/dev/null | grep as-needed > /dev/null; then | |
14201 | bfd_cv_ld_as_needed=yes | |
14202 | fi | |
14203 | ||
14204 | fi | |
81ecdfbb RW |
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 |
14206 | $as_echo "$bfd_cv_ld_as_needed" >&6; } | |
51dec227 AM |
14207 | |
14208 | LIBM= | |
14209 | case $host in | |
3725885a | 14210 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
51dec227 AM |
14211 | # These system don't have libm, or don't need it |
14212 | ;; | |
14213 | *-ncr-sysv4.3*) | |
81ecdfbb RW |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
14215 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
d0ac1c44 | 14216 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : |
81ecdfbb | 14217 | $as_echo_n "(cached) " >&6 |
51dec227 AM |
14218 | else |
14219 | ac_check_lib_save_LIBS=$LIBS | |
14220 | LIBS="-lmw $LIBS" | |
81ecdfbb | 14221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
14222 | /* end confdefs.h. */ |
14223 | ||
81ecdfbb RW |
14224 | /* Override any GCC internal prototype to avoid an error. |
14225 | Use char because int might match the return type of a GCC | |
14226 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
14227 | #ifdef __cplusplus |
14228 | extern "C" | |
14229 | #endif | |
51dec227 AM |
14230 | char _mwvalidcheckl (); |
14231 | int | |
14232 | main () | |
14233 | { | |
81ecdfbb | 14234 | return _mwvalidcheckl (); |
51dec227 AM |
14235 | ; |
14236 | return 0; | |
14237 | } | |
14238 | _ACEOF | |
81ecdfbb | 14239 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
14240 | ac_cv_lib_mw__mwvalidcheckl=yes |
14241 | else | |
81ecdfbb | 14242 | ac_cv_lib_mw__mwvalidcheckl=no |
51dec227 | 14243 | fi |
81ecdfbb RW |
14244 | rm -f core conftest.err conftest.$ac_objext \ |
14245 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
14246 | LIBS=$ac_check_lib_save_LIBS |
14247 | fi | |
81ecdfbb RW |
14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
14249 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
d0ac1c44 | 14250 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : |
51dec227 AM |
14251 | LIBM="-lmw" |
14252 | fi | |
14253 | ||
81ecdfbb RW |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
14255 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 14256 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 14257 | $as_echo_n "(cached) " >&6 |
51dec227 AM |
14258 | else |
14259 | ac_check_lib_save_LIBS=$LIBS | |
14260 | LIBS="-lm $LIBS" | |
81ecdfbb | 14261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
14262 | /* end confdefs.h. */ |
14263 | ||
81ecdfbb RW |
14264 | /* Override any GCC internal prototype to avoid an error. |
14265 | Use char because int might match the return type of a GCC | |
14266 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
14267 | #ifdef __cplusplus |
14268 | extern "C" | |
14269 | #endif | |
51dec227 AM |
14270 | char cos (); |
14271 | int | |
14272 | main () | |
14273 | { | |
81ecdfbb | 14274 | return cos (); |
51dec227 AM |
14275 | ; |
14276 | return 0; | |
14277 | } | |
14278 | _ACEOF | |
81ecdfbb | 14279 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
14280 | ac_cv_lib_m_cos=yes |
14281 | else | |
81ecdfbb | 14282 | ac_cv_lib_m_cos=no |
51dec227 | 14283 | fi |
81ecdfbb RW |
14284 | rm -f core conftest.err conftest.$ac_objext \ |
14285 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
14286 | LIBS=$ac_check_lib_save_LIBS |
14287 | fi | |
81ecdfbb RW |
14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
14289 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 14290 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
51dec227 AM |
14291 | LIBM="$LIBM -lm" |
14292 | fi | |
14293 | ||
14294 | ;; | |
14295 | *) | |
81ecdfbb RW |
14296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
14297 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 14298 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 14299 | $as_echo_n "(cached) " >&6 |
51dec227 AM |
14300 | else |
14301 | ac_check_lib_save_LIBS=$LIBS | |
14302 | LIBS="-lm $LIBS" | |
81ecdfbb | 14303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
14304 | /* end confdefs.h. */ |
14305 | ||
81ecdfbb RW |
14306 | /* Override any GCC internal prototype to avoid an error. |
14307 | Use char because int might match the return type of a GCC | |
14308 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
14309 | #ifdef __cplusplus |
14310 | extern "C" | |
14311 | #endif | |
51dec227 AM |
14312 | char cos (); |
14313 | int | |
14314 | main () | |
14315 | { | |
81ecdfbb | 14316 | return cos (); |
51dec227 AM |
14317 | ; |
14318 | return 0; | |
14319 | } | |
14320 | _ACEOF | |
81ecdfbb | 14321 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
14322 | ac_cv_lib_m_cos=yes |
14323 | else | |
81ecdfbb | 14324 | ac_cv_lib_m_cos=no |
51dec227 | 14325 | fi |
81ecdfbb RW |
14326 | rm -f core conftest.err conftest.$ac_objext \ |
14327 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
14328 | LIBS=$ac_check_lib_save_LIBS |
14329 | fi | |
81ecdfbb RW |
14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
14331 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 14332 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
51dec227 AM |
14333 | LIBM="-lm" |
14334 | fi | |
14335 | ||
14336 | ;; | |
14337 | esac | |
14338 | ||
14339 | ||
14340 | ||
2eee5593 AM |
14341 | #Libs for generator progs |
14342 | if test "x$cross_compiling" = "xno"; then | |
14343 | BUILD_LIBS=../libiberty/libiberty.a | |
14344 | BUILD_LIB_DEPS=$BUILD_LIBS | |
14345 | else | |
14346 | # if cross-compiling, assume that the system provides -liberty | |
14347 | # and that the version is compatible with new headers. | |
14348 | BUILD_LIBS=-liberty | |
14349 | BUILD_LIB_DEPS= | |
14350 | fi | |
14351 | BUILD_LIBS="$BUILD_LIBS $LIBINTL" | |
14352 | BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP" | |
14353 | ||
14354 | ||
14355 | ||
14356 | ||
45d42143 NC |
14357 | # Horrible hacks to build DLLs on Windows and a shared library elsewhere. |
14358 | SHARED_LDFLAGS= | |
14359 | SHARED_LIBADD= | |
14360 | SHARED_DEPENDENCIES= | |
14361 | if test "$enable_shared" = "yes"; then | |
29670fb9 AM |
14362 | # When building a shared libopcodes, link against the pic version of libiberty |
14363 | # so that apps that use libopcodes won't need libiberty just to satisfy any | |
14364 | # libopcodes references. | |
14365 | # We can't do that if a pic libiberty is unavailable since including non-pic | |
14366 | # code would insert text relocations into libopcodes. | |
14367 | # Note that linking against libbfd as we do here, which is itself linked | |
14368 | # against libiberty, may not satisfy all the libopcodes libiberty references | |
14369 | # since libbfd may not pull in the entirety of libiberty. | |
95148614 NA |
14370 | # Also, jam libintl into the right place in all of this: after libiberty, |
14371 | # which uses it, but before -lcygwin, which it uses. | |
29670fb9 AM |
14372 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
14373 | if test -n "$x"; then | |
14374 | SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | |
14375 | fi | |
95148614 NA |
14376 | fi |
14377 | ||
862776f2 | 14378 | SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL" |
29670fb9 | 14379 | |
95148614 | 14380 | if test "$enable_shared" = "yes"; then |
45d42143 NC |
14381 | case "${host}" in |
14382 | *-*-cygwin*) | |
14383 | SHARED_LDFLAGS="-no-undefined" | |
95148614 | 14384 | SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" |
45d42143 NC |
14385 | ;; |
14386 | *) | |
2b677209 | 14387 | SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}" |
4267b19f | 14388 | SHARED_DEPENDENCIES="../bfd/libbfd.la" |
45d42143 NC |
14389 | ;; |
14390 | esac | |
51dec227 AM |
14391 | |
14392 | if test -n "$SHARED_LIBADD"; then | |
14393 | if test -n "$LIBM"; then | |
14394 | if test x"$bfd_cv_ld_as_needed" = xyes; then | |
14395 | # Link against libm only when needed. Put -lc, -lm inside -Wl | |
14396 | # to stop libtool reordering these options. | |
14397 | SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" | |
14398 | else | |
14399 | SHARED_LIBADD="$SHARED_LIBADD $LIBM" | |
14400 | fi | |
14401 | fi | |
14402 | fi | |
45d42143 NC |
14403 | fi |
14404 | ||
252b5132 RH |
14405 | |
14406 | ||
14407 | ||
14408 | # target-specific stuff: | |
14409 | ||
14410 | # Canonicalize the secondary target names. | |
14411 | if test -n "$enable_targets" ; then | |
14412 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
14413 | do | |
6d83c84b | 14414 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
14415 | if test -n "$result" ; then |
14416 | canon_targets="$canon_targets $result" | |
14417 | else | |
14418 | # Allow targets that config.sub doesn't recognize, like "all". | |
14419 | canon_targets="$canon_targets $targ" | |
14420 | fi | |
14421 | done | |
14422 | fi | |
14423 | ||
14424 | all_targets=false | |
14425 | selarchs= | |
14426 | for targ in $target $canon_targets | |
14427 | do | |
14428 | if test "x$targ" = "xall" ; then | |
14429 | all_targets=true | |
14430 | else | |
14431 | . $srcdir/../bfd/config.bfd | |
14432 | selarchs="$selarchs $targ_archs" | |
14433 | fi | |
979273e3 | 14434 | done |
252b5132 RH |
14435 | |
14436 | # Utility var, documents generic cgen support files. | |
14437 | ||
3609e0fe | 14438 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo" |
252b5132 RH |
14439 | |
14440 | # We don't do any links based on the target system, just makefile config. | |
14441 | ||
14442 | if test x${all_targets} = xfalse ; then | |
14443 | ||
14444 | # Target architecture .o files. | |
14445 | ta= | |
14446 | ||
14447 | for arch in $selarchs | |
14448 | do | |
14449 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` | |
14450 | archdefs="$archdefs -DARCH_$ad" | |
14451 | case "$arch" in | |
a06ea964 | 14452 | bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;; |
252b5132 | 14453 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; |
e3161106 | 14454 | bfd_amdgcn_arch) ;; |
0d2bcfaf | 14455 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; |
252b5132 | 14456 | bfd_arm_arch) ta="$ta arm-dis.lo" ;; |
adde6300 | 14457 | bfd_avr_arch) ta="$ta avr-dis.lo" ;; |
4b7f6baa | 14458 | bfd_bfin_arch) ta="$ta bfin-dis.lo" ;; |
3843081d | 14459 | bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;; |
54711280 | 14460 | bfd_cris_arch) ta="$ta cris-desc.lo cris-dis.lo cris-opc.lo cgen-bitset.lo" ;; |
3843081d | 14461 | bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; |
b8891f8d | 14462 | bfd_csky_arch) ta="$ta csky-dis.lo" ;; |
252b5132 RH |
14463 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; |
14464 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; | |
d172d4ba | 14465 | bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; |
3843081d JBG |
14466 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; |
14467 | bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; | |
3f8107ab | 14468 | bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;; |
20135e4c | 14469 | bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;; |
252b5132 | 14470 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; |
252b5132 | 14471 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; |
801a7eab | 14472 | bfd_i386_arch|bfd_iamcu_arch) |
bc30b54a | 14473 | ta="$ta i386-dis.lo" ;; |
800eeca4 | 14474 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; |
a40cbfa3 | 14475 | bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; |
48891606 | 14476 | bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;; |
3843081d | 14477 | bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; |
6e712424 | 14478 | bfd_kvx_arch) ta="$ta kvx-opc.lo kvx-dis.lo" ;; |
3843081d | 14479 | bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;; |
c5f5f1f4 | 14480 | bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;; |
252b5132 | 14481 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; |
60bcf0fa NC |
14482 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
14483 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; | |
48891606 | 14484 | bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
6927f982 | 14485 | bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
7e9ca91e | 14486 | bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;; |
252b5132 | 14487 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; |
252b5132 | 14488 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; |
bd2f2e55 | 14489 | bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;; |
a3c62988 | 14490 | bfd_metag_arch) ta="$ta metag-dis.lo" ;; |
7ba29e2a | 14491 | bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;; |
df58fc94 | 14492 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;; |
3c3bdf30 | 14493 | bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; |
252b5132 RH |
14494 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; |
14495 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; | |
d031aafb | 14496 | bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;; |
34c911a4 | 14497 | bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;; |
35c08157 | 14498 | bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;; |
fe944acf | 14499 | bfd_nfp_arch) ta="$ta nfp-dis.lo" ;; |
36591ba1 | 14500 | bfd_nios2_arch) ta="$ta nios2-dis.lo nios2-opc.lo" ;; |
252b5132 | 14501 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; |
73589c9d | 14502 | bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;; |
e135f41b | 14503 | bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; |
3843081d | 14504 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; |
252b5132 | 14505 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
a85d7ed0 | 14506 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
11146849 | 14507 | bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;; |
5dd0794d | 14508 | bfd_pyramid_arch) ;; |
252b5132 | 14509 | bfd_romp_arch) ;; |
e23eba97 | 14510 | bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;; |
252b5132 | 14511 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
99c513f6 | 14512 | bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";; |
c7927a3c | 14513 | bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";; |
a85d7ed0 | 14514 | bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; |
3843081d | 14515 | bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;; |
211dc24b | 14516 | bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;; |
252b5132 | 14517 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; |
e9f53129 | 14518 | bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;; |
252b5132 | 14519 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; |
3843081d | 14520 | bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; |
5c84d377 | 14521 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; |
40b36596 | 14522 | bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;; |
aa137e4d NC |
14523 | bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;; |
14524 | bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;; | |
252b5132 RH |
14525 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
14526 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
14527 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
de863c74 | 14528 | bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
252b5132 | 14529 | bfd_vax_arch) ta="$ta vax-dis.lo" ;; |
1945cfa5 | 14530 | bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;; |
62ecb94c | 14531 | bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;; |
3843081d | 14532 | bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;; |
93fbbb04 | 14533 | bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; |
e0001a05 | 14534 | bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; |
3c9b82ba | 14535 | bfd_z80_arch) ta="$ta z80-dis.lo" ;; |
252b5132 | 14536 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; |
b5c37946 | 14537 | bfd_bpf_arch) ta="$ta bpf-dis.lo bpf-opc.lo" ;; |
6cc76c40 | 14538 | bfd_loongarch_arch) ta="$ta loongarch-dis.lo loongarch-opc.lo loongarch-coder.lo" ;; |
252b5132 RH |
14539 | |
14540 | "") ;; | |
d0ac1c44 | 14541 | *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;; |
252b5132 RH |
14542 | esac |
14543 | done | |
14544 | ||
14545 | if test $using_cgen = yes ; then | |
14546 | ta="$ta $cgen_files" | |
14547 | fi | |
14548 | ||
14549 | # Weed out duplicate .o files. | |
14550 | f="" | |
14551 | for i in $ta ; do | |
14552 | case " $f " in | |
14553 | *" $i "*) ;; | |
14554 | *) f="$f $i" ;; | |
14555 | esac | |
14556 | done | |
14557 | ta="$f" | |
14558 | ||
14559 | # And duplicate -D flags. | |
14560 | f="" | |
14561 | for i in $archdefs ; do | |
14562 | case " $f " in | |
14563 | *" $i "*) ;; | |
14564 | *) f="$f $i" ;; | |
14565 | esac | |
14566 | done | |
14567 | archdefs="$f" | |
14568 | ||
14569 | BFD_MACHINES="$ta" | |
14570 | ||
14571 | else # all_targets is true | |
14572 | archdefs=-DARCH_all | |
1d5269c9 | 14573 | if test "$enable_64_bit_bfd" = "yes" ; then |
0b32f05b AM |
14574 | BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)' |
14575 | else | |
14576 | BFD_MACHINES='$(ALL32_MACHINES)' | |
14577 | fi | |
252b5132 RH |
14578 | fi |
14579 | ||
14580 | ||
14581 | ||
14582 | ||
81ecdfbb | 14583 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
979273e3 | 14584 | |
979273e3 | 14585 | cat >confcache <<\_ACEOF |
252b5132 RH |
14586 | # This file is a shell script that caches the results of configure |
14587 | # tests run on this system so they can be shared between configure | |
979273e3 NN |
14588 | # scripts and configure runs, see configure's option --config-cache. |
14589 | # It is not useful on other systems. If it contains results you don't | |
14590 | # want to keep, you may remove or edit it. | |
252b5132 | 14591 | # |
979273e3 NN |
14592 | # config.status only pays attention to the cache file if you give it |
14593 | # the --recheck option to rerun configure. | |
252b5132 | 14594 | # |
979273e3 NN |
14595 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14596 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14597 | # following values. | |
14598 | ||
14599 | _ACEOF | |
14600 | ||
252b5132 RH |
14601 | # The following way of writing the cache mishandles newlines in values, |
14602 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14603 | # So, we kill variables containing newlines. |
252b5132 RH |
14604 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14605 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14606 | ( |
14607 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14608 | eval ac_val=\$$ac_var | |
14609 | case $ac_val in #( | |
14610 | *${as_nl}*) | |
14611 | case $ac_var in #( | |
14612 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14613 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14614 | esac | |
14615 | case $ac_var in #( | |
14616 | _ | IFS | as_nl) ;; #( | |
14617 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14618 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14619 | esac ;; | |
14620 | esac | |
14621 | done | |
14622 | ||
979273e3 | 14623 | (set) 2>&1 | |
81ecdfbb RW |
14624 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14625 | *${as_nl}ac_space=\ *) | |
14626 | # `set' does not quote correctly, so add quotes: double-quote | |
14627 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
979273e3 NN |
14628 | sed -n \ |
14629 | "s/'/'\\\\''/g; | |
14630 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14631 | ;; #( |
979273e3 NN |
14632 | *) |
14633 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14634 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
979273e3 | 14635 | ;; |
81ecdfbb RW |
14636 | esac | |
14637 | sort | |
14638 | ) | | |
979273e3 | 14639 | sed ' |
81ecdfbb | 14640 | /^ac_cv_env_/b end |
979273e3 | 14641 | t clear |
81ecdfbb | 14642 | :clear |
979273e3 NN |
14643 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14644 | t end | |
81ecdfbb RW |
14645 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14646 | :end' >>confcache | |
14647 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14648 | if test -w "$cache_file"; then | |
d0ac1c44 | 14649 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14651 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14652 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14653 | cat confcache >"$cache_file" | |
14654 | else | |
14655 | case $cache_file in #( | |
14656 | */* | ?:*) | |
14657 | mv -f confcache "$cache_file"$$ && | |
14658 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14659 | *) | |
14660 | mv -f confcache "$cache_file" ;; | |
14661 | esac | |
14662 | fi | |
14663 | fi | |
252b5132 | 14664 | else |
81ecdfbb RW |
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14666 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
252b5132 RH |
14667 | fi |
14668 | fi | |
14669 | rm -f confcache | |
14670 | ||
252b5132 RH |
14671 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14672 | # Let make expand exec_prefix. | |
14673 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14674 | ||
252b5132 RH |
14675 | DEFS=-DHAVE_CONFIG_H |
14676 | ||
979273e3 NN |
14677 | ac_libobjs= |
14678 | ac_ltlibobjs= | |
d0ac1c44 | 14679 | U= |
979273e3 NN |
14680 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14681 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14682 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14683 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14684 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14685 | # will be set to the directory where LIBOBJS objects are built. | |
14686 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14687 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
979273e3 NN |
14688 | done |
14689 | LIBOBJS=$ac_libobjs | |
252b5132 | 14690 | |
979273e3 NN |
14691 | LTLIBOBJS=$ac_ltlibobjs |
14692 | ||
14693 | ||
d0ac1c44 SM |
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
14695 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
14696 | if test -n "$am_sleep_pid"; then | |
14697 | # Hide warnings about reused PIDs. | |
14698 | wait $am_sleep_pid 2>/dev/null | |
14699 | fi | |
14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
14701 | $as_echo "done" >&6; } | |
81ecdfbb RW |
14702 | if test -n "$EXEEXT"; then |
14703 | am__EXEEXT_TRUE= | |
14704 | am__EXEEXT_FALSE='#' | |
14705 | else | |
14706 | am__EXEEXT_TRUE='#' | |
14707 | am__EXEEXT_FALSE= | |
8ae85421 | 14708 | fi |
81ecdfbb | 14709 | |
ab2af25e AM |
14710 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14711 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
14712 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14713 | fi | |
14714 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
14715 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
14716 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14717 | fi | |
8ae85421 | 14718 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 14719 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
81ecdfbb | 14720 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8ae85421 AM |
14721 | fi |
14722 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then | |
d0ac1c44 | 14723 | as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. |
81ecdfbb | 14724 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8ae85421 | 14725 | fi |
1d5269c9 MF |
14726 | if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then |
14727 | as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined. | |
14728 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14729 | fi | |
8ae85421 | 14730 | if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then |
d0ac1c44 | 14731 | as_fn_error $? "conditional \"CGEN_MAINT\" was never defined. |
81ecdfbb | 14732 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8ae85421 | 14733 | fi |
979273e3 | 14734 | |
d0ac1c44 | 14735 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 14736 | ac_write_fail=0 |
979273e3 NN |
14737 | ac_clean_files_save=$ac_clean_files |
14738 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14740 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14741 | as_write_fail=0 | |
14742 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
979273e3 NN |
14743 | #! $SHELL |
14744 | # Generated by $as_me. | |
252b5132 | 14745 | # Run this file to recreate the current configuration. |
252b5132 | 14746 | # Compiler output produced by configure, useful for debugging |
979273e3 | 14747 | # configure, is in config.log if it exists. |
252b5132 | 14748 | |
979273e3 NN |
14749 | debug=false |
14750 | ac_cs_recheck=false | |
14751 | ac_cs_silent=false | |
979273e3 | 14752 | |
81ecdfbb RW |
14753 | SHELL=\${CONFIG_SHELL-$SHELL} |
14754 | export SHELL | |
14755 | _ASEOF | |
14756 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14757 | ## -------------------- ## | |
14758 | ## M4sh Initialization. ## | |
14759 | ## -------------------- ## | |
979273e3 | 14760 | |
81ecdfbb RW |
14761 | # Be more Bourne compatible |
14762 | DUALCASE=1; export DUALCASE # for MKS sh | |
14763 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
979273e3 NN |
14764 | emulate sh |
14765 | NULLCMD=: | |
81ecdfbb | 14766 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
979273e3 NN |
14767 | # is contrary to our usage. Disable this feature. |
14768 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14769 | setopt NO_GLOB_SUBST |
14770 | else | |
14771 | case `(set -o) 2>/dev/null` in #( | |
14772 | *posix*) : | |
14773 | set -o posix ;; #( | |
14774 | *) : | |
14775 | ;; | |
14776 | esac | |
979273e3 | 14777 | fi |
979273e3 | 14778 | |
81ecdfbb RW |
14779 | |
14780 | as_nl=' | |
14781 | ' | |
14782 | export as_nl | |
14783 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14784 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14785 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14786 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14787 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14788 | # but without wasting forks for bash or zsh. | |
14789 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14790 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14791 | as_echo='print -r --' | |
14792 | as_echo_n='print -rn --' | |
14793 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14794 | as_echo='printf %s\n' | |
14795 | as_echo_n='printf %s' | |
14796 | else | |
14797 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14798 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14799 | as_echo_n='/usr/ucb/echo -n' | |
14800 | else | |
14801 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14802 | as_echo_n_body='eval | |
14803 | arg=$1; | |
14804 | case $arg in #( | |
14805 | *"$as_nl"*) | |
14806 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14807 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14808 | esac; | |
14809 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14810 | ' | |
14811 | export as_echo_n_body | |
14812 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14813 | fi | |
14814 | export as_echo_body | |
14815 | as_echo='sh -c $as_echo_body as_echo' | |
14816 | fi | |
14817 | ||
14818 | # The user is always right. | |
14819 | if test "${PATH_SEPARATOR+set}" != set; then | |
14820 | PATH_SEPARATOR=: | |
14821 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14822 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14823 | PATH_SEPARATOR=';' | |
14824 | } | |
979273e3 NN |
14825 | fi |
14826 | ||
14827 | ||
81ecdfbb RW |
14828 | # IFS |
14829 | # We need space, tab and new line, in precisely that order. Quoting is | |
14830 | # there to prevent editors from complaining about space-tab. | |
14831 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14832 | # splitting by setting IFS to empty value.) | |
14833 | IFS=" "" $as_nl" | |
14834 | ||
14835 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 14836 | as_myself= |
81ecdfbb RW |
14837 | case $0 in #(( |
14838 | *[\\/]* ) as_myself=$0 ;; | |
14839 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14840 | for as_dir in $PATH | |
14841 | do | |
14842 | IFS=$as_save_IFS | |
14843 | test -z "$as_dir" && as_dir=. | |
14844 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14845 | done | |
14846 | IFS=$as_save_IFS | |
14847 | ||
14848 | ;; | |
14849 | esac | |
14850 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14851 | # in which case we are not to be found in the path. | |
14852 | if test "x$as_myself" = x; then | |
14853 | as_myself=$0 | |
14854 | fi | |
14855 | if test ! -f "$as_myself"; then | |
14856 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14857 | exit 1 | |
14858 | fi | |
14859 | ||
14860 | # Unset variables that we do not need and which cause bugs (e.g. in | |
14861 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14862 | # suppresses any "Segmentation fault" message there. '((' could | |
14863 | # trigger a bug in pdksh 5.2.14. | |
14864 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14865 | do eval test x\${$as_var+set} = xset \ | |
14866 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14867 | done | |
979273e3 NN |
14868 | PS1='$ ' |
14869 | PS2='> ' | |
14870 | PS4='+ ' | |
14871 | ||
14872 | # NLS nuisances. | |
81ecdfbb RW |
14873 | LC_ALL=C |
14874 | export LC_ALL | |
14875 | LANGUAGE=C | |
14876 | export LANGUAGE | |
14877 | ||
14878 | # CDPATH. | |
14879 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14880 | ||
14881 | ||
d0ac1c44 SM |
14882 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14883 | # ---------------------------------------- | |
81ecdfbb RW |
14884 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14885 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 14886 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
14887 | as_fn_error () |
14888 | { | |
d0ac1c44 SM |
14889 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14890 | if test "$4"; then | |
14891 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14892 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
979273e3 | 14893 | fi |
d0ac1c44 | 14894 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
14895 | as_fn_exit $as_status |
14896 | } # as_fn_error | |
14897 | ||
14898 | ||
14899 | # as_fn_set_status STATUS | |
14900 | # ----------------------- | |
14901 | # Set $? to STATUS, without forking. | |
14902 | as_fn_set_status () | |
14903 | { | |
14904 | return $1 | |
14905 | } # as_fn_set_status | |
14906 | ||
14907 | # as_fn_exit STATUS | |
14908 | # ----------------- | |
14909 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14910 | as_fn_exit () | |
14911 | { | |
14912 | set +e | |
14913 | as_fn_set_status $1 | |
14914 | exit $1 | |
14915 | } # as_fn_exit | |
14916 | ||
14917 | # as_fn_unset VAR | |
14918 | # --------------- | |
14919 | # Portably unset VAR. | |
14920 | as_fn_unset () | |
14921 | { | |
14922 | { eval $1=; unset $1;} | |
14923 | } | |
14924 | as_unset=as_fn_unset | |
14925 | # as_fn_append VAR VALUE | |
14926 | # ---------------------- | |
14927 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14928 | # advantage of any shell optimizations that allow amortized linear growth over | |
14929 | # repeated appends, instead of the typical quadratic growth present in naive | |
14930 | # implementations. | |
14931 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14932 | eval 'as_fn_append () | |
14933 | { | |
14934 | eval $1+=\$2 | |
14935 | }' | |
14936 | else | |
14937 | as_fn_append () | |
14938 | { | |
14939 | eval $1=\$$1\$2 | |
14940 | } | |
14941 | fi # as_fn_append | |
14942 | ||
14943 | # as_fn_arith ARG... | |
14944 | # ------------------ | |
14945 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14946 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14947 | # must be portable across $(()) and expr. | |
14948 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14949 | eval 'as_fn_arith () | |
14950 | { | |
14951 | as_val=$(( $* )) | |
14952 | }' | |
14953 | else | |
14954 | as_fn_arith () | |
14955 | { | |
14956 | as_val=`expr "$@" || test $? -eq 1` | |
14957 | } | |
14958 | fi # as_fn_arith | |
14959 | ||
252b5132 | 14960 | |
81ecdfbb RW |
14961 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14962 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
979273e3 NN |
14963 | as_expr=expr |
14964 | else | |
14965 | as_expr=false | |
14966 | fi | |
14967 | ||
81ecdfbb | 14968 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
979273e3 NN |
14969 | as_basename=basename |
14970 | else | |
14971 | as_basename=false | |
14972 | fi | |
252b5132 | 14973 | |
81ecdfbb RW |
14974 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14975 | as_dirname=dirname | |
14976 | else | |
14977 | as_dirname=false | |
14978 | fi | |
252b5132 | 14979 | |
81ecdfbb | 14980 | as_me=`$as_basename -- "$0" || |
979273e3 NN |
14981 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14982 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14983 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14984 | $as_echo X/"$0" | | |
14985 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14986 | s//\1/ | |
14987 | q | |
14988 | } | |
14989 | /^X\/\(\/\/\)$/{ | |
14990 | s//\1/ | |
14991 | q | |
14992 | } | |
14993 | /^X\/\(\/\).*/{ | |
14994 | s//\1/ | |
14995 | q | |
14996 | } | |
14997 | s/.*/./; q'` | |
252b5132 | 14998 | |
979273e3 NN |
14999 | # Avoid depending upon Character Ranges. |
15000 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15001 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15002 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15003 | as_cr_digits='0123456789' | |
15004 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15005 | ||
81ecdfbb RW |
15006 | ECHO_C= ECHO_N= ECHO_T= |
15007 | case `echo -n x` in #((((( | |
15008 | -n*) | |
15009 | case `echo 'xy\c'` in | |
15010 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15011 | xy) ECHO_C='\c';; | |
15012 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15013 | ECHO_T=' ';; | |
15014 | esac;; | |
15015 | *) | |
15016 | ECHO_N='-n';; | |
979273e3 NN |
15017 | esac |
15018 | ||
81ecdfbb RW |
15019 | rm -f conf$$ conf$$.exe conf$$.file |
15020 | if test -d conf$$.dir; then | |
15021 | rm -f conf$$.dir/conf$$.file | |
979273e3 | 15022 | else |
81ecdfbb RW |
15023 | rm -f conf$$.dir |
15024 | mkdir conf$$.dir 2>/dev/null | |
979273e3 | 15025 | fi |
81ecdfbb RW |
15026 | if (echo >conf$$.file) 2>/dev/null; then |
15027 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
979273e3 | 15028 | as_ln_s='ln -s' |
81ecdfbb RW |
15029 | # ... but there are two gotchas: |
15030 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15031 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15032 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15033 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15034 | as_ln_s='cp -pR' |
81ecdfbb RW |
15035 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15036 | as_ln_s=ln | |
15037 | else | |
d0ac1c44 | 15038 | as_ln_s='cp -pR' |
252b5132 | 15039 | fi |
979273e3 | 15040 | else |
d0ac1c44 | 15041 | as_ln_s='cp -pR' |
979273e3 | 15042 | fi |
81ecdfbb RW |
15043 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15044 | rmdir conf$$.dir 2>/dev/null | |
15045 | ||
15046 | ||
15047 | # as_fn_mkdir_p | |
15048 | # ------------- | |
15049 | # Create "$as_dir" as a directory, including parents if necessary. | |
15050 | as_fn_mkdir_p () | |
15051 | { | |
15052 | ||
15053 | case $as_dir in #( | |
15054 | -*) as_dir=./$as_dir;; | |
15055 | esac | |
15056 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15057 | as_dirs= | |
15058 | while :; do | |
15059 | case $as_dir in #( | |
15060 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15061 | *) as_qdir=$as_dir;; | |
15062 | esac | |
15063 | as_dirs="'$as_qdir' $as_dirs" | |
15064 | as_dir=`$as_dirname -- "$as_dir" || | |
15065 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15066 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15067 | X"$as_dir" : 'X\(//\)$' \| \ | |
15068 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15069 | $as_echo X"$as_dir" | | |
15070 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15071 | s//\1/ | |
15072 | q | |
15073 | } | |
15074 | /^X\(\/\/\)[^/].*/{ | |
15075 | s//\1/ | |
15076 | q | |
15077 | } | |
15078 | /^X\(\/\/\)$/{ | |
15079 | s//\1/ | |
15080 | q | |
15081 | } | |
15082 | /^X\(\/\).*/{ | |
15083 | s//\1/ | |
15084 | q | |
15085 | } | |
15086 | s/.*/./; q'` | |
15087 | test -d "$as_dir" && break | |
15088 | done | |
15089 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15090 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
979273e3 | 15091 | |
81ecdfbb RW |
15092 | |
15093 | } # as_fn_mkdir_p | |
979273e3 | 15094 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15095 | as_mkdir_p='mkdir -p "$as_dir"' |
979273e3 NN |
15096 | else |
15097 | test -d ./-p && rmdir ./-p | |
15098 | as_mkdir_p=false | |
15099 | fi | |
15100 | ||
d0ac1c44 SM |
15101 | |
15102 | # as_fn_executable_p FILE | |
15103 | # ----------------------- | |
15104 | # Test if FILE is an executable regular file. | |
15105 | as_fn_executable_p () | |
15106 | { | |
15107 | test -f "$1" && test -x "$1" | |
15108 | } # as_fn_executable_p | |
15109 | as_test_x='test -x' | |
15110 | as_executable_p=as_fn_executable_p | |
979273e3 NN |
15111 | |
15112 | # Sed expression to map a string onto a valid CPP name. | |
15113 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15114 | ||
15115 | # Sed expression to map a string onto a valid variable name. | |
15116 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15117 | ||
15118 | ||
979273e3 | 15119 | exec 6>&1 |
81ecdfbb RW |
15120 | ## ----------------------------------- ## |
15121 | ## Main body of $CONFIG_STATUS script. ## | |
15122 | ## ----------------------------------- ## | |
15123 | _ASEOF | |
15124 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
979273e3 | 15125 | |
81ecdfbb RW |
15126 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15127 | # Save the log message, to keep $0 and so on meaningful, and to | |
979273e3 | 15128 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15129 | # values after options handling. |
15130 | ac_log=" | |
e775d3a9 | 15131 | This file was extended by opcodes $as_me 2.42.50, which was |
d0ac1c44 | 15132 | generated by GNU Autoconf 2.69. Invocation command line was |
979273e3 NN |
15133 | |
15134 | CONFIG_FILES = $CONFIG_FILES | |
15135 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15136 | CONFIG_LINKS = $CONFIG_LINKS | |
15137 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15138 | $ $0 $@ | |
15139 | ||
81ecdfbb RW |
15140 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15141 | " | |
15142 | ||
979273e3 NN |
15143 | _ACEOF |
15144 | ||
81ecdfbb RW |
15145 | case $ac_config_files in *" |
15146 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15147 | esac | |
979273e3 | 15148 | |
81ecdfbb RW |
15149 | case $ac_config_headers in *" |
15150 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15151 | esac | |
979273e3 | 15152 | |
979273e3 | 15153 | |
81ecdfbb RW |
15154 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15155 | # Files that config.status was made for. | |
15156 | config_files="$ac_config_files" | |
15157 | config_headers="$ac_config_headers" | |
15158 | config_commands="$ac_config_commands" | |
979273e3 | 15159 | |
81ecdfbb | 15160 | _ACEOF |
979273e3 | 15161 | |
81ecdfbb | 15162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 | 15163 | ac_cs_usage="\ |
81ecdfbb RW |
15164 | \`$as_me' instantiates files and other configuration actions |
15165 | from templates according to the current configuration. Unless the files | |
15166 | and actions are specified as TAGs, all are instantiated by default. | |
979273e3 | 15167 | |
81ecdfbb | 15168 | Usage: $0 [OPTION]... [TAG]... |
979273e3 NN |
15169 | |
15170 | -h, --help print this help, then exit | |
81ecdfbb | 15171 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15172 | --config print configuration, then exit |
81ecdfbb RW |
15173 | -q, --quiet, --silent |
15174 | do not print progress messages | |
979273e3 NN |
15175 | -d, --debug don't remove temporary files |
15176 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15177 | --file=FILE[:TEMPLATE] |
15178 | instantiate the configuration file FILE | |
15179 | --header=FILE[:TEMPLATE] | |
15180 | instantiate the configuration header FILE | |
979273e3 NN |
15181 | |
15182 | Configuration files: | |
15183 | $config_files | |
15184 | ||
15185 | Configuration headers: | |
15186 | $config_headers | |
15187 | ||
15188 | Configuration commands: | |
15189 | $config_commands | |
15190 | ||
81ecdfbb | 15191 | Report bugs to the package provider." |
979273e3 | 15192 | |
81ecdfbb RW |
15193 | _ACEOF |
15194 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15195 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
979273e3 | 15196 | ac_cs_version="\\ |
e775d3a9 | 15197 | opcodes config.status 2.42.50 |
d0ac1c44 SM |
15198 | configured by $0, generated by GNU Autoconf 2.69, |
15199 | with options \\"\$ac_cs_config\\" | |
979273e3 | 15200 | |
d0ac1c44 | 15201 | Copyright (C) 2012 Free Software Foundation, Inc. |
979273e3 NN |
15202 | This config.status script is free software; the Free Software Foundation |
15203 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15204 | |
15205 | ac_pwd='$ac_pwd' | |
15206 | srcdir='$srcdir' | |
15207 | INSTALL='$INSTALL' | |
15208 | MKDIR_P='$MKDIR_P' | |
15209 | AWK='$AWK' | |
15210 | test -n "\$AWK" || AWK=awk | |
979273e3 NN |
15211 | _ACEOF |
15212 | ||
81ecdfbb RW |
15213 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15214 | # The default lists apply if the user does not specify any file. | |
979273e3 NN |
15215 | ac_need_defaults=: |
15216 | while test $# != 0 | |
15217 | do | |
15218 | case $1 in | |
d0ac1c44 | 15219 | --*=?*) |
81ecdfbb RW |
15220 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15221 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
979273e3 NN |
15222 | ac_shift=: |
15223 | ;; | |
d0ac1c44 SM |
15224 | --*=) |
15225 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15226 | ac_optarg= | |
15227 | ac_shift=: | |
15228 | ;; | |
81ecdfbb | 15229 | *) |
979273e3 NN |
15230 | ac_option=$1 |
15231 | ac_optarg=$2 | |
15232 | ac_shift=shift | |
15233 | ;; | |
979273e3 NN |
15234 | esac |
15235 | ||
15236 | case $ac_option in | |
15237 | # Handling of the options. | |
979273e3 NN |
15238 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15239 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
15240 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15241 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
15242 | --config | --confi | --conf | --con | --co | --c ) |
15243 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 15244 | --debug | --debu | --deb | --de | --d | -d ) |
979273e3 NN |
15245 | debug=: ;; |
15246 | --file | --fil | --fi | --f ) | |
15247 | $ac_shift | |
81ecdfbb RW |
15248 | case $ac_optarg in |
15249 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 15250 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
15251 | esac |
15252 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
979273e3 NN |
15253 | ac_need_defaults=false;; |
15254 | --header | --heade | --head | --hea ) | |
15255 | $ac_shift | |
81ecdfbb RW |
15256 | case $ac_optarg in |
15257 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15258 | esac | |
15259 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
979273e3 | 15260 | ac_need_defaults=false;; |
81ecdfbb RW |
15261 | --he | --h) |
15262 | # Conflict between --help and --header | |
d0ac1c44 | 15263 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
15264 | Try \`$0 --help' for more information.";; |
15265 | --help | --hel | -h ) | |
15266 | $as_echo "$ac_cs_usage"; exit ;; | |
979273e3 NN |
15267 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15268 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15269 | ac_cs_silent=: ;; | |
15270 | ||
15271 | # This is an error. | |
d0ac1c44 | 15272 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 15273 | Try \`$0 --help' for more information." ;; |
979273e3 | 15274 | |
81ecdfbb RW |
15275 | *) as_fn_append ac_config_targets " $1" |
15276 | ac_need_defaults=false ;; | |
979273e3 NN |
15277 | |
15278 | esac | |
15279 | shift | |
252b5132 | 15280 | done |
979273e3 NN |
15281 | |
15282 | ac_configure_extra_args= | |
15283 | ||
15284 | if $ac_cs_silent; then | |
15285 | exec 6>/dev/null | |
15286 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
252b5132 | 15287 | fi |
252b5132 | 15288 | |
979273e3 | 15289 | _ACEOF |
81ecdfbb | 15290 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
979273e3 | 15291 | if \$ac_cs_recheck; then |
d0ac1c44 | 15292 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
15293 | shift |
15294 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15295 | CONFIG_SHELL='$SHELL' | |
15296 | export CONFIG_SHELL | |
15297 | exec "\$@" | |
979273e3 | 15298 | fi |
252b5132 | 15299 | |
979273e3 | 15300 | _ACEOF |
81ecdfbb RW |
15301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15302 | exec 5>>config.log | |
15303 | { | |
15304 | echo | |
15305 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15306 | ## Running $as_me. ## | |
15307 | _ASBOX | |
15308 | $as_echo "$ac_log" | |
15309 | } >&5 | |
979273e3 | 15310 | |
81ecdfbb RW |
15311 | _ACEOF |
15312 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
979273e3 | 15313 | # |
81ecdfbb | 15314 | # INIT-COMMANDS |
979273e3 | 15315 | # |
b9583093 | 15316 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
15317 | |
15318 | ||
15319 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
15320 | # if CDPATH is set. | |
15321 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15322 | ||
15323 | sed_quote_subst='$sed_quote_subst' | |
15324 | double_quote_subst='$double_quote_subst' | |
15325 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
15326 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
15327 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
15328 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
15329 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
15330 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
15331 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
15332 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
15333 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
15334 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
15335 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
15336 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
15337 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
15338 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
15339 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
15340 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
15341 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
15342 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
15343 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
15344 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
15345 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
15346 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
15347 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
15348 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
15349 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
15350 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
15351 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
15352 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
15353 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
15354 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
15355 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
15356 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
15357 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
15358 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
15359 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
15360 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
15361 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
15362 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
15363 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15364 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15365 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15366 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
15367 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
15368 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
15369 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
15370 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
15371 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
15372 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
15373 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
15374 | 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"`' | |
15375 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
15376 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
15377 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
15378 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
15379 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
15380 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
15381 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
15382 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
15383 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
15384 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
15385 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
15386 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
15387 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
15388 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
15389 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
15390 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15391 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
15392 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
15393 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15394 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15395 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
15396 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
15397 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15398 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15399 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15400 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
15401 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15402 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
15403 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15404 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15405 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15406 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
15407 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
15408 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
15409 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
15410 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
15411 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15412 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
15413 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
15414 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
15415 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
15416 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
15417 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
15418 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
15419 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
15420 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
15421 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
15422 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
15423 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
15424 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
15425 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
15426 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
15427 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15428 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
15429 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
15430 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
15431 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
15432 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
15433 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15434 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15435 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
15436 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
15437 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
15438 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
15439 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
15440 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
15441 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
15442 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
15443 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
15444 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
15445 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
15446 | |
15447 | LTCC='$LTCC' | |
15448 | LTCFLAGS='$LTCFLAGS' | |
15449 | compiler='$compiler_DEFAULT' | |
15450 | ||
3725885a RW |
15451 | # A function that is used when there is no print builtin or printf. |
15452 | func_fallback_echo () | |
15453 | { | |
15454 | eval 'cat <<_LTECHO_EOF | |
15455 | \$1 | |
15456 | _LTECHO_EOF' | |
15457 | } | |
15458 | ||
d7040cdb | 15459 | # Quote evaled strings. |
3725885a RW |
15460 | for var in SHELL \ |
15461 | ECHO \ | |
15462 | SED \ | |
d7040cdb SE |
15463 | GREP \ |
15464 | EGREP \ | |
15465 | FGREP \ | |
15466 | LD \ | |
15467 | NM \ | |
15468 | LN_S \ | |
15469 | lt_SP2NL \ | |
15470 | lt_NL2SP \ | |
15471 | reload_flag \ | |
1927a18f | 15472 | OBJDUMP \ |
d7040cdb SE |
15473 | deplibs_check_method \ |
15474 | file_magic_cmd \ | |
15475 | AR \ | |
15476 | AR_FLAGS \ | |
15477 | STRIP \ | |
15478 | RANLIB \ | |
15479 | CC \ | |
15480 | CFLAGS \ | |
15481 | compiler \ | |
15482 | lt_cv_sys_global_symbol_pipe \ | |
15483 | lt_cv_sys_global_symbol_to_cdecl \ | |
15484 | lt_cv_sys_global_symbol_to_c_name_address \ | |
1927a18f | 15485 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
15486 | lt_prog_compiler_no_builtin_flag \ |
15487 | lt_prog_compiler_wl \ | |
15488 | lt_prog_compiler_pic \ | |
15489 | lt_prog_compiler_static \ | |
15490 | lt_cv_prog_compiler_c_o \ | |
15491 | need_locks \ | |
1927a18f L |
15492 | DSYMUTIL \ |
15493 | NMEDIT \ | |
15494 | LIPO \ | |
15495 | OTOOL \ | |
15496 | OTOOL64 \ | |
d7040cdb SE |
15497 | shrext_cmds \ |
15498 | export_dynamic_flag_spec \ | |
15499 | whole_archive_flag_spec \ | |
15500 | compiler_needs_object \ | |
15501 | with_gnu_ld \ | |
15502 | allow_undefined_flag \ | |
15503 | no_undefined_flag \ | |
15504 | hardcode_libdir_flag_spec \ | |
15505 | hardcode_libdir_flag_spec_ld \ | |
15506 | hardcode_libdir_separator \ | |
15507 | fix_srcfile_path \ | |
15508 | exclude_expsyms \ | |
15509 | include_expsyms \ | |
15510 | file_list_spec \ | |
15511 | variables_saved_for_relink \ | |
15512 | libname_spec \ | |
15513 | library_names_spec \ | |
15514 | soname_spec \ | |
3725885a | 15515 | install_override_mode \ |
d7040cdb SE |
15516 | finish_eval \ |
15517 | old_striplib \ | |
15518 | striplib; do | |
3725885a | 15519 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15520 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15521 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15522 | ;; |
15523 | *) | |
15524 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15525 | ;; | |
15526 | esac | |
15527 | done | |
15528 | ||
15529 | # Double-quote double-evaled strings. | |
15530 | for var in reload_cmds \ | |
15531 | old_postinstall_cmds \ | |
15532 | old_postuninstall_cmds \ | |
15533 | old_archive_cmds \ | |
15534 | extract_expsyms_cmds \ | |
15535 | old_archive_from_new_cmds \ | |
15536 | old_archive_from_expsyms_cmds \ | |
15537 | archive_cmds \ | |
15538 | archive_expsym_cmds \ | |
15539 | module_cmds \ | |
15540 | module_expsym_cmds \ | |
15541 | export_symbols_cmds \ | |
15542 | prelink_cmds \ | |
15543 | postinstall_cmds \ | |
15544 | postuninstall_cmds \ | |
15545 | finish_cmds \ | |
15546 | sys_lib_search_path_spec \ | |
15547 | sys_lib_dlsearch_path_spec; do | |
3725885a | 15548 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15549 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15550 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15551 | ;; |
15552 | *) | |
15553 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15554 | ;; | |
15555 | esac | |
15556 | done | |
15557 | ||
d7040cdb SE |
15558 | ac_aux_dir='$ac_aux_dir' |
15559 | xsi_shell='$xsi_shell' | |
15560 | lt_shell_append='$lt_shell_append' | |
15561 | ||
15562 | # See if we are running on zsh, and set the options which allow our | |
15563 | # commands through without removal of \ escapes INIT. | |
15564 | if test -n "\${ZSH_VERSION+set}" ; then | |
15565 | setopt NO_GLOB_SUBST | |
15566 | fi | |
15567 | ||
15568 | ||
15569 | PACKAGE='$PACKAGE' | |
15570 | VERSION='$VERSION' | |
15571 | TIMESTAMP='$TIMESTAMP' | |
15572 | RM='$RM' | |
15573 | ofile='$ofile' | |
15574 | ||
15575 | ||
15576 | ||
862776f2 AA |
15577 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15578 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15579 | # from automake. | |
15580 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15581 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15582 | LINGUAS="${LINGUAS-%UNSET%}" | |
15583 | ||
20e95c23 DJ |
15584 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15585 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15586 | # from automake. | |
15587 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15588 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15589 | LINGUAS="${LINGUAS-%UNSET%}" | |
979273e3 NN |
15590 | |
15591 | ||
15592 | _ACEOF | |
15593 | ||
81ecdfbb | 15594 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 | 15595 | |
81ecdfbb | 15596 | # Handling of arguments. |
979273e3 NN |
15597 | for ac_config_target in $ac_config_targets |
15598 | do | |
81ecdfbb RW |
15599 | case $ac_config_target in |
15600 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
15601 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15602 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
15603 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
862776f2 | 15604 | "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; |
81ecdfbb RW |
15605 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
15606 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
15607 | ||
d0ac1c44 | 15608 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
252b5132 | 15609 | esac |
979273e3 | 15610 | done |
252b5132 | 15611 | |
81ecdfbb | 15612 | |
979273e3 NN |
15613 | # If the user did not use the arguments to specify the items to instantiate, |
15614 | # then the envvar interface is used. Set only those that are not. | |
15615 | # We use the long form for the default assignment because of an extremely | |
15616 | # bizarre bug on SunOS 4.1.3. | |
15617 | if $ac_need_defaults; then | |
15618 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15619 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15620 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15621 | fi | |
15622 | ||
15623 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15624 | # simply because there is no reason against having it here, and in addition, |
979273e3 | 15625 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15626 | # Hook for its removal unless debugging. |
15627 | # Note that there is a small window in which the directory will not be cleaned: | |
15628 | # after its creation but before its name has been assigned to `$tmp'. | |
979273e3 NN |
15629 | $debug || |
15630 | { | |
d0ac1c44 | 15631 | tmp= ac_tmp= |
81ecdfbb | 15632 | trap 'exit_status=$? |
d0ac1c44 SM |
15633 | : "${ac_tmp:=$tmp}" |
15634 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15635 | ' 0 |
15636 | trap 'as_fn_exit 1' 1 2 13 15 | |
979273e3 | 15637 | } |
979273e3 NN |
15638 | # Create a (secure) tmp directory for tmp files. |
15639 | ||
15640 | { | |
81ecdfbb | 15641 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15642 | test -d "$tmp" |
979273e3 NN |
15643 | } || |
15644 | { | |
81ecdfbb RW |
15645 | tmp=./conf$$-$RANDOM |
15646 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15647 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15648 | ac_tmp=$tmp | |
81ecdfbb RW |
15649 | |
15650 | # Set up the scripts for CONFIG_FILES section. | |
15651 | # No need to generate them if there are no CONFIG_FILES. | |
15652 | # This happens for instance with `./config.status config.h'. | |
15653 | if test -n "$CONFIG_FILES"; then | |
15654 | ||
15655 | ||
15656 | ac_cr=`echo X | tr X '\015'` | |
15657 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15658 | # But we know of no other shell where ac_cr would be empty at this | |
15659 | # point, so we can use a bashism as a fallback. | |
15660 | if test "x$ac_cr" = x; then | |
15661 | eval ac_cr=\$\'\\r\' | |
15662 | fi | |
15663 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15664 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15665 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15666 | else |
15667 | ac_cs_awk_cr=$ac_cr | |
15668 | fi | |
15669 | ||
d0ac1c44 | 15670 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15671 | _ACEOF |
15672 | ||
15673 | ||
15674 | { | |
15675 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15676 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15677 | echo "_ACEOF" | |
15678 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15679 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15680 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15681 | ac_delim='%!_!# ' |
15682 | for ac_last_try in false false false false false :; do | |
15683 | . ./conf$$subs.sh || | |
d0ac1c44 | 15684 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15685 | |
15686 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15687 | if test $ac_delim_n = $ac_delim_num; then | |
15688 | break | |
15689 | elif $ac_last_try; then | |
d0ac1c44 | 15690 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15691 | else |
15692 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15693 | fi | |
15694 | done | |
15695 | rm -f conf$$subs.sh | |
15696 | ||
15697 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15698 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
15699 | _ACEOF |
15700 | sed -n ' | |
15701 | h | |
15702 | s/^/S["/; s/!.*/"]=/ | |
15703 | p | |
15704 | g | |
15705 | s/^[^!]*!// | |
15706 | :repl | |
15707 | t repl | |
15708 | s/'"$ac_delim"'$// | |
15709 | t delim | |
15710 | :nl | |
15711 | h | |
d0ac1c44 | 15712 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15713 | t more1 |
15714 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15715 | p | |
15716 | n | |
15717 | b repl | |
15718 | :more1 | |
15719 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15720 | p | |
15721 | g | |
15722 | s/.\{148\}// | |
15723 | t nl | |
15724 | :delim | |
15725 | h | |
d0ac1c44 | 15726 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15727 | t more2 |
15728 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15729 | p | |
15730 | b | |
15731 | :more2 | |
15732 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15733 | p | |
15734 | g | |
15735 | s/.\{148\}// | |
15736 | t delim | |
15737 | ' <conf$$subs.awk | sed ' | |
15738 | /^[^""]/{ | |
15739 | N | |
15740 | s/\n// | |
15741 | } | |
15742 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15743 | rm -f conf$$subs.awk | |
15744 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15745 | _ACAWK | |
d0ac1c44 | 15746 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15747 | for (key in S) S_is_set[key] = 1 |
15748 | FS = "\a" | |
15749 | ||
15750 | } | |
979273e3 | 15751 | { |
81ecdfbb RW |
15752 | line = $ 0 |
15753 | nfields = split(line, field, "@") | |
15754 | substed = 0 | |
15755 | len = length(field[1]) | |
15756 | for (i = 2; i < nfields; i++) { | |
15757 | key = field[i] | |
15758 | keylen = length(key) | |
15759 | if (S_is_set[key]) { | |
15760 | value = S[key] | |
15761 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15762 | len += length(value) + length(field[++i]) | |
15763 | substed = 1 | |
15764 | } else | |
15765 | len += 1 + keylen | |
15766 | } | |
15767 | ||
15768 | print line | |
979273e3 NN |
15769 | } |
15770 | ||
81ecdfbb RW |
15771 | _ACAWK |
15772 | _ACEOF | |
15773 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15774 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15775 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15776 | else | |
15777 | cat | |
d0ac1c44 SM |
15778 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15779 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
979273e3 NN |
15780 | _ACEOF |
15781 | ||
d0ac1c44 SM |
15782 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15783 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15784 | # trailing colons and then remove the whole line if VPATH becomes empty |
15785 | # (actually we leave an empty line to preserve line numbers). | |
15786 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15787 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15788 | h | |
15789 | s/// | |
15790 | s/^/:/ | |
15791 | s/[ ]*$/:/ | |
15792 | s/:\$(srcdir):/:/g | |
15793 | s/:\${srcdir}:/:/g | |
15794 | s/:@srcdir@:/:/g | |
15795 | s/^:*// | |
81ecdfbb | 15796 | s/:*$// |
d0ac1c44 SM |
15797 | x |
15798 | s/\(=[ ]*\).*/\1/ | |
15799 | G | |
15800 | s/\n// | |
81ecdfbb RW |
15801 | s/^[^=]*=[ ]*$// |
15802 | }' | |
15803 | fi | |
15804 | ||
15805 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15806 | fi # test -n "$CONFIG_FILES" | |
979273e3 | 15807 | |
81ecdfbb RW |
15808 | # Set up the scripts for CONFIG_HEADERS section. |
15809 | # No need to generate them if there are no CONFIG_HEADERS. | |
15810 | # This happens for instance with `./config.status Makefile'. | |
15811 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 15812 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb RW |
15813 | BEGIN { |
15814 | _ACEOF | |
979273e3 | 15815 | |
81ecdfbb RW |
15816 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
15817 | # here-document in config.status, that substitutes the proper values into | |
15818 | # config.h.in to produce config.h. | |
979273e3 | 15819 | |
81ecdfbb RW |
15820 | # Create a delimiter string that does not exist in confdefs.h, to ease |
15821 | # handling of long lines. | |
15822 | ac_delim='%!_!# ' | |
15823 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
15824 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
15825 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
15826 | break |
15827 | elif $ac_last_try; then | |
d0ac1c44 | 15828 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
15829 | else |
15830 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15831 | fi | |
15832 | done | |
15833 | ||
15834 | # For the awk script, D is an array of macro values keyed by name, | |
15835 | # likewise P contains macro parameters if any. Preserve backslash | |
15836 | # newline sequences. | |
15837 | ||
15838 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15839 | sed -n ' | |
15840 | s/.\{148\}/&'"$ac_delim"'/g | |
15841 | t rset | |
15842 | :rset | |
15843 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15844 | t def | |
15845 | d | |
15846 | :def | |
15847 | s/\\$// | |
15848 | t bsnl | |
15849 | s/["\\]/\\&/g | |
15850 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15851 | D["\1"]=" \3"/p | |
15852 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15853 | d | |
15854 | :bsnl | |
15855 | s/["\\]/\\&/g | |
15856 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15857 | D["\1"]=" \3\\\\\\n"\\/p | |
15858 | t cont | |
15859 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15860 | t cont | |
15861 | d | |
15862 | :cont | |
15863 | n | |
15864 | s/.\{148\}/&'"$ac_delim"'/g | |
15865 | t clear | |
15866 | :clear | |
15867 | s/\\$// | |
15868 | t bsnlc | |
15869 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15870 | d | |
15871 | :bsnlc | |
15872 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15873 | b cont | |
15874 | ' <confdefs.h | sed ' | |
15875 | s/'"$ac_delim"'/"\\\ | |
15876 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15877 | ||
15878 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15879 | for (key in D) D_is_set[key] = 1 | |
15880 | FS = "\a" | |
15881 | } | |
15882 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15883 | line = \$ 0 | |
15884 | split(line, arg, " ") | |
15885 | if (arg[1] == "#") { | |
15886 | defundef = arg[2] | |
15887 | mac1 = arg[3] | |
15888 | } else { | |
15889 | defundef = substr(arg[1], 2) | |
15890 | mac1 = arg[2] | |
15891 | } | |
15892 | split(mac1, mac2, "(") #) | |
15893 | macro = mac2[1] | |
15894 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15895 | if (D_is_set[macro]) { | |
15896 | # Preserve the white space surrounding the "#". | |
15897 | print prefix "define", macro P[macro] D[macro] | |
15898 | next | |
15899 | } else { | |
15900 | # Replace #undef with comments. This is necessary, for example, | |
15901 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15902 | # on some systems where configure will not decide to define it. | |
15903 | if (defundef == "undef") { | |
15904 | print "/*", prefix defundef, macro, "*/" | |
15905 | next | |
15906 | } | |
15907 | } | |
15908 | } | |
15909 | { print } | |
15910 | _ACAWK | |
979273e3 | 15911 | _ACEOF |
81ecdfbb | 15912 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 15913 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb | 15914 | fi # test -n "$CONFIG_HEADERS" |
979273e3 | 15915 | |
81ecdfbb RW |
15916 | |
15917 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
15918 | shift | |
15919 | for ac_tag | |
15920 | do | |
15921 | case $ac_tag in | |
15922 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15923 | esac | |
15924 | case $ac_mode$ac_tag in | |
15925 | :[FHL]*:*);; | |
d0ac1c44 | 15926 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
15927 | :[FH]-) ac_tag=-:-;; |
15928 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15929 | esac | |
15930 | ac_save_IFS=$IFS | |
15931 | IFS=: | |
15932 | set x $ac_tag | |
15933 | IFS=$ac_save_IFS | |
15934 | shift | |
15935 | ac_file=$1 | |
15936 | shift | |
15937 | ||
15938 | case $ac_mode in | |
15939 | :L) ac_source=$1;; | |
15940 | :[FH]) | |
15941 | ac_file_inputs= | |
15942 | for ac_f | |
15943 | do | |
15944 | case $ac_f in | |
d0ac1c44 | 15945 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
15946 | *) # Look for the file first in the build tree, then in the source tree |
15947 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15948 | # because $ac_f cannot contain `:'. | |
15949 | test -f "$ac_f" || | |
15950 | case $ac_f in | |
15951 | [\\/$]*) false;; | |
15952 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15953 | esac || | |
d0ac1c44 | 15954 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
15955 | esac |
15956 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15957 | as_fn_append ac_file_inputs " '$ac_f'" | |
15958 | done | |
15959 | ||
15960 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15961 | # use $as_me), people would be surprised to read: | |
15962 | # /* config.h. Generated by config.status. */ | |
15963 | configure_input='Generated from '` | |
15964 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15965 | `' by configure.' | |
15966 | if test x"$ac_file" != x-; then | |
15967 | configure_input="$ac_file. $configure_input" | |
15968 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15969 | $as_echo "$as_me: creating $ac_file" >&6;} | |
979273e3 | 15970 | fi |
81ecdfbb RW |
15971 | # Neutralize special characters interpreted by sed in replacement strings. |
15972 | case $configure_input in #( | |
15973 | *\&* | *\|* | *\\* ) | |
15974 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15975 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15976 | *) ac_sed_conf_input=$configure_input;; | |
15977 | esac | |
252b5132 | 15978 | |
81ecdfbb | 15979 | case $ac_tag in |
d0ac1c44 SM |
15980 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15981 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
15982 | esac |
15983 | ;; | |
252b5132 RH |
15984 | esac |
15985 | ||
81ecdfbb | 15986 | ac_dir=`$as_dirname -- "$ac_file" || |
979273e3 NN |
15987 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15988 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15989 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15990 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15991 | $as_echo X"$ac_file" | | |
15992 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15993 | s//\1/ | |
15994 | q | |
15995 | } | |
15996 | /^X\(\/\/\)[^/].*/{ | |
15997 | s//\1/ | |
15998 | q | |
15999 | } | |
16000 | /^X\(\/\/\)$/{ | |
16001 | s//\1/ | |
16002 | q | |
16003 | } | |
16004 | /^X\(\/\).*/{ | |
16005 | s//\1/ | |
16006 | q | |
16007 | } | |
16008 | s/.*/./; q'` | |
16009 | as_dir="$ac_dir"; as_fn_mkdir_p | |
979273e3 NN |
16010 | ac_builddir=. |
16011 | ||
81ecdfbb RW |
16012 | case "$ac_dir" in |
16013 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16014 | *) | |
16015 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16016 | # A ".." for each directory in $ac_dir_suffix. | |
16017 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16018 | case $ac_top_builddir_sub in | |
16019 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16020 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16021 | esac ;; | |
16022 | esac | |
16023 | ac_abs_top_builddir=$ac_pwd | |
16024 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16025 | # for backward compatibility: | |
16026 | ac_top_builddir=$ac_top_build_prefix | |
979273e3 NN |
16027 | |
16028 | case $srcdir in | |
81ecdfbb | 16029 | .) # We are building in place. |
979273e3 | 16030 | ac_srcdir=. |
81ecdfbb RW |
16031 | ac_top_srcdir=$ac_top_builddir_sub |
16032 | ac_abs_top_srcdir=$ac_pwd ;; | |
16033 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
979273e3 | 16034 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
16035 | ac_top_srcdir=$srcdir |
16036 | ac_abs_top_srcdir=$srcdir ;; | |
16037 | *) # Relative name. | |
16038 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16039 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16040 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
979273e3 | 16041 | esac |
81ecdfbb | 16042 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
979273e3 | 16043 | |
252b5132 | 16044 | |
81ecdfbb RW |
16045 | case $ac_mode in |
16046 | :F) | |
16047 | # | |
16048 | # CONFIG_FILE | |
16049 | # | |
979273e3 NN |
16050 | |
16051 | case $INSTALL in | |
16052 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
16053 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
16054 | esac | |
16055 | ac_MKDIR_P=$MKDIR_P | |
16056 | case $MKDIR_P in | |
16057 | [\\/$]* | ?:[\\/]* ) ;; | |
16058 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
252b5132 | 16059 | esac |
81ecdfbb | 16060 | _ACEOF |
252b5132 | 16061 | |
81ecdfbb RW |
16062 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16063 | # If the template does not know about datarootdir, expand it. | |
16064 | # FIXME: This hack should be removed a few years after 2.60. | |
16065 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16066 | ac_sed_dataroot=' | |
16067 | /datarootdir/ { | |
16068 | p | |
16069 | q | |
16070 | } | |
16071 | /@datadir@/p | |
16072 | /@docdir@/p | |
16073 | /@infodir@/p | |
16074 | /@localedir@/p | |
16075 | /@mandir@/p' | |
16076 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16077 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16078 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16079 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16080 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
16081 | _ACEOF | |
16082 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16083 | ac_datarootdir_hack=' | |
16084 | s&@datadir@&$datadir&g | |
16085 | s&@docdir@&$docdir&g | |
16086 | s&@infodir@&$infodir&g | |
16087 | s&@localedir@&$localedir&g | |
16088 | s&@mandir@&$mandir&g | |
16089 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16090 | esac | |
979273e3 | 16091 | _ACEOF |
81ecdfbb RW |
16092 | |
16093 | # Neutralize VPATH when `$srcdir' = `.'. | |
16094 | # Shell code in configure.ac might set extrasub. | |
16095 | # FIXME: do we really want to maintain this feature? | |
16096 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16097 | ac_sed_extra="$ac_vpsub | |
979273e3 NN |
16098 | $extrasub |
16099 | _ACEOF | |
81ecdfbb | 16100 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 NN |
16101 | :t |
16102 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
16103 | s|@configure_input@|$ac_sed_conf_input|;t t |
16104 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16105 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16106 | s&@srcdir@&$ac_srcdir&;t t | |
16107 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16108 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16109 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16110 | s&@builddir@&$ac_builddir&;t t | |
16111 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16112 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16113 | s&@INSTALL@&$ac_INSTALL&;t t | |
16114 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16115 | $ac_datarootdir_hack | |
16116 | " | |
d0ac1c44 SM |
16117 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
16118 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
16119 | |
16120 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
16121 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16122 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16123 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 16124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16125 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 16126 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16127 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 16128 | |
d0ac1c44 | 16129 | rm -f "$ac_tmp/stdin" |
979273e3 | 16130 | case $ac_file in |
d0ac1c44 SM |
16131 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16132 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 16133 | esac \ |
d0ac1c44 | 16134 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
16135 | ;; |
16136 | :H) | |
16137 | # | |
16138 | # CONFIG_HEADER | |
16139 | # | |
979273e3 | 16140 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
16141 | { |
16142 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
16143 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16144 | } >"$ac_tmp/config.h" \ | |
16145 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16146 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
16147 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16148 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
979273e3 | 16149 | else |
81ecdfbb | 16150 | rm -f "$ac_file" |
d0ac1c44 SM |
16151 | mv "$ac_tmp/config.h" "$ac_file" \ |
16152 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 16153 | fi |
979273e3 | 16154 | else |
81ecdfbb | 16155 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
16156 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16157 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
252b5132 | 16158 | fi |
81ecdfbb RW |
16159 | # Compute "$ac_file"'s index in $config_headers. |
16160 | _am_arg="$ac_file" | |
8ae85421 AM |
16161 | _am_stamp_count=1 |
16162 | for _am_header in $config_headers :; do | |
16163 | case $_am_header in | |
81ecdfbb | 16164 | $_am_arg | $_am_arg:* ) |
8ae85421 AM |
16165 | break ;; |
16166 | * ) | |
16167 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
16168 | esac | |
16169 | done | |
81ecdfbb RW |
16170 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
16171 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16172 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
16173 | X"$_am_arg" : 'X\(//\)$' \| \ | |
16174 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
16175 | $as_echo X"$_am_arg" | | |
16176 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16177 | s//\1/ | |
16178 | q | |
16179 | } | |
16180 | /^X\(\/\/\)[^/].*/{ | |
16181 | s//\1/ | |
16182 | q | |
16183 | } | |
16184 | /^X\(\/\/\)$/{ | |
16185 | s//\1/ | |
16186 | q | |
16187 | } | |
16188 | /^X\(\/\).*/{ | |
16189 | s//\1/ | |
16190 | q | |
16191 | } | |
16192 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
16193 | ;; | |
979273e3 | 16194 | |
81ecdfbb RW |
16195 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16196 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
16197 | ;; | |
16198 | esac | |
979273e3 NN |
16199 | |
16200 | ||
81ecdfbb RW |
16201 | case $ac_file$ac_mode in |
16202 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
d0ac1c44 | 16203 | # Older Autoconf quotes --file arguments for eval, but not when files |
81ecdfbb RW |
16204 | # are listed without --file. Let's play safe and only enable the eval |
16205 | # if we detect the quoting. | |
b9583093 AM |
16206 | case $CONFIG_FILES in |
16207 | *\'*) eval set x "$CONFIG_FILES" ;; | |
16208 | *) set x $CONFIG_FILES ;; | |
16209 | esac | |
81ecdfbb | 16210 | shift |
b9583093 | 16211 | for mf |
81ecdfbb RW |
16212 | do |
16213 | # Strip MF so we end up with the name of the file. | |
b9583093 AM |
16214 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
16215 | # Check whether this is an Automake generated Makefile or not. | |
16216 | # We used to match only the files named 'Makefile.in', but | |
16217 | # some people rename them; so instead we look at the file content. | |
16218 | # Grep'ing the first line is not enough: some people post-process | |
16219 | # each Makefile.in and add a new line on top of each file to say so. | |
16220 | # Grep'ing the whole file is not good either: AIX grep has a line | |
81ecdfbb | 16221 | # limit of 2048, but all sed's we know have understand at least 4000. |
b9583093 AM |
16222 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
16223 | dirpart=`$as_dirname -- "$mf" || | |
16224 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16225 | X"$mf" : 'X\(//\)[^/]' \| \ | |
16226 | X"$mf" : 'X\(//\)$' \| \ | |
16227 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
16228 | $as_echo X"$mf" | | |
81ecdfbb RW |
16229 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16230 | s//\1/ | |
16231 | q | |
16232 | } | |
16233 | /^X\(\/\/\)[^/].*/{ | |
16234 | s//\1/ | |
16235 | q | |
16236 | } | |
16237 | /^X\(\/\/\)$/{ | |
16238 | s//\1/ | |
16239 | q | |
16240 | } | |
16241 | /^X\(\/\).*/{ | |
16242 | s//\1/ | |
16243 | q | |
16244 | } | |
16245 | s/.*/./; q'` | |
b9583093 AM |
16246 | else |
16247 | continue | |
16248 | fi | |
16249 | # Extract the definition of DEPDIR, am__include, and am__quote | |
16250 | # from the Makefile without running 'make'. | |
16251 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
16252 | test -z "$DEPDIR" && continue | |
16253 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
16254 | test -z "$am__include" && continue | |
16255 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
16256 | # Find all dependency output files, they are included files with | |
16257 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
16258 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
16259 | # expansion. | |
16260 | for file in `sed -n " | |
16261 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
16262 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
16263 | # Make sure the directory exists. | |
16264 | test -f "$dirpart/$file" && continue | |
16265 | fdir=`$as_dirname -- "$file" || | |
16266 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16267 | X"$file" : 'X\(//\)[^/]' \| \ | |
16268 | X"$file" : 'X\(//\)$' \| \ | |
16269 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
16270 | $as_echo X"$file" | | |
16271 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
81ecdfbb RW |
16272 | s//\1/ |
16273 | q | |
16274 | } | |
b9583093 | 16275 | /^X\(\/\/\)[^/].*/{ |
81ecdfbb RW |
16276 | s//\1/ |
16277 | q | |
16278 | } | |
b9583093 AM |
16279 | /^X\(\/\/\)$/{ |
16280 | s//\1/ | |
16281 | q | |
16282 | } | |
16283 | /^X\(\/\).*/{ | |
81ecdfbb RW |
16284 | s//\1/ |
16285 | q | |
16286 | } | |
16287 | s/.*/./; q'` | |
b9583093 AM |
16288 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
16289 | # echo "creating $dirpart/$file" | |
16290 | echo '# dummy' > "$dirpart/$file" | |
16291 | done | |
8ae85421 | 16292 | done |
81ecdfbb | 16293 | } |
d7040cdb | 16294 | ;; |
81ecdfbb | 16295 | "libtool":C) |
d7040cdb SE |
16296 | |
16297 | # See if we are running on zsh, and set the options which allow our | |
16298 | # commands through without removal of \ escapes. | |
16299 | if test -n "${ZSH_VERSION+set}" ; then | |
16300 | setopt NO_GLOB_SUBST | |
16301 | fi | |
16302 | ||
16303 | cfgfile="${ofile}T" | |
16304 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
16305 | $RM "$cfgfile" | |
16306 | ||
16307 | cat <<_LT_EOF >> "$cfgfile" | |
16308 | #! $SHELL | |
16309 | ||
16310 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
1927a18f | 16311 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
16312 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16313 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
16314 | # | |
1927a18f | 16315 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 16316 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
1927a18f | 16317 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 16318 | # |
1927a18f | 16319 | # This file is part of GNU Libtool. |
d7040cdb | 16320 | # |
1927a18f L |
16321 | # GNU Libtool is free software; you can redistribute it and/or |
16322 | # modify it under the terms of the GNU General Public License as | |
16323 | # published by the Free Software Foundation; either version 2 of | |
16324 | # the License, or (at your option) any later version. | |
d7040cdb | 16325 | # |
1927a18f L |
16326 | # As a special exception to the GNU General Public License, |
16327 | # if you distribute this file as part of a program or library that | |
16328 | # is built using GNU Libtool, you may include this file under the | |
16329 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 16330 | # |
1927a18f L |
16331 | # GNU Libtool is distributed in the hope that it will be useful, |
16332 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16333 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16334 | # GNU General Public License for more details. | |
d7040cdb | 16335 | # |
1927a18f L |
16336 | # You should have received a copy of the GNU General Public License |
16337 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
16338 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
16339 | # obtained by writing to the Free Software Foundation, Inc., | |
16340 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
16341 | |
16342 | ||
16343 | # The names of the tagged configurations supported by this script. | |
16344 | available_tags="" | |
16345 | ||
16346 | # ### BEGIN LIBTOOL CONFIG | |
16347 | ||
16348 | # Whether or not to build shared libraries. | |
16349 | build_libtool_libs=$enable_shared | |
16350 | ||
16351 | # Which release of libtool.m4 was used? | |
16352 | macro_version=$macro_version | |
16353 | macro_revision=$macro_revision | |
16354 | ||
16355 | # Whether or not to build static libraries. | |
16356 | build_old_libs=$enable_static | |
16357 | ||
16358 | # What type of objects to build. | |
16359 | pic_mode=$pic_mode | |
16360 | ||
16361 | # Whether or not to optimize for fast installation. | |
16362 | fast_install=$enable_fast_install | |
16363 | ||
3725885a RW |
16364 | # Shell to use when invoking shell scripts. |
16365 | SHELL=$lt_SHELL | |
16366 | ||
16367 | # An echo program that protects backslashes. | |
16368 | ECHO=$lt_ECHO | |
16369 | ||
d7040cdb SE |
16370 | # The host system. |
16371 | host_alias=$host_alias | |
16372 | host=$host | |
16373 | host_os=$host_os | |
16374 | ||
16375 | # The build system. | |
16376 | build_alias=$build_alias | |
16377 | build=$build | |
16378 | build_os=$build_os | |
16379 | ||
16380 | # A sed program that does not truncate output. | |
16381 | SED=$lt_SED | |
16382 | ||
16383 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
16384 | Xsed="\$SED -e 1s/^X//" | |
16385 | ||
16386 | # A grep program that handles long lines. | |
16387 | GREP=$lt_GREP | |
16388 | ||
16389 | # An ERE matcher. | |
16390 | EGREP=$lt_EGREP | |
16391 | ||
16392 | # A literal string matcher. | |
16393 | FGREP=$lt_FGREP | |
16394 | ||
16395 | # A BSD- or MS-compatible name lister. | |
16396 | NM=$lt_NM | |
16397 | ||
16398 | # Whether we need soft or hard links. | |
16399 | LN_S=$lt_LN_S | |
16400 | ||
16401 | # What is the maximum length of a command? | |
16402 | max_cmd_len=$max_cmd_len | |
16403 | ||
16404 | # Object file suffix (normally "o"). | |
16405 | objext=$ac_objext | |
16406 | ||
16407 | # Executable file suffix (normally ""). | |
16408 | exeext=$exeext | |
16409 | ||
16410 | # whether the shell understands "unset". | |
16411 | lt_unset=$lt_unset | |
16412 | ||
16413 | # turn spaces into newlines. | |
16414 | SP2NL=$lt_lt_SP2NL | |
16415 | ||
16416 | # turn newlines into spaces. | |
16417 | NL2SP=$lt_lt_NL2SP | |
16418 | ||
1927a18f L |
16419 | # An object symbol dumper. |
16420 | OBJDUMP=$lt_OBJDUMP | |
16421 | ||
d7040cdb SE |
16422 | # Method to check whether dependent libraries are shared objects. |
16423 | deplibs_check_method=$lt_deplibs_check_method | |
16424 | ||
16425 | # Command to use when deplibs_check_method == "file_magic". | |
16426 | file_magic_cmd=$lt_file_magic_cmd | |
16427 | ||
16428 | # The archiver. | |
16429 | AR=$lt_AR | |
16430 | AR_FLAGS=$lt_AR_FLAGS | |
16431 | ||
16432 | # A symbol stripping program. | |
16433 | STRIP=$lt_STRIP | |
16434 | ||
16435 | # Commands used to install an old-style archive. | |
16436 | RANLIB=$lt_RANLIB | |
16437 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
16438 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
16439 | ||
3725885a RW |
16440 | # Whether to use a lock for old archive extraction. |
16441 | lock_old_archive_extraction=$lock_old_archive_extraction | |
16442 | ||
d7040cdb SE |
16443 | # A C compiler. |
16444 | LTCC=$lt_CC | |
16445 | ||
16446 | # LTCC compiler flags. | |
16447 | LTCFLAGS=$lt_CFLAGS | |
16448 | ||
16449 | # Take the output of nm and produce a listing of raw symbols and C names. | |
16450 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16451 | ||
16452 | # Transform the output of nm in a proper C declaration. | |
16453 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16454 | ||
16455 | # Transform the output of nm in a C name address pair. | |
16456 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16457 | ||
1927a18f L |
16458 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
16459 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
16460 | ||
d7040cdb SE |
16461 | # The name of the directory that contains temporary libtool files. |
16462 | objdir=$objdir | |
16463 | ||
d7040cdb SE |
16464 | # Used to examine libraries when file_magic_cmd begins with "file". |
16465 | MAGIC_CMD=$MAGIC_CMD | |
16466 | ||
16467 | # Must we lock files when doing compilation? | |
16468 | need_locks=$lt_need_locks | |
16469 | ||
1927a18f L |
16470 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16471 | DSYMUTIL=$lt_DSYMUTIL | |
16472 | ||
16473 | # Tool to change global to local symbols on Mac OS X. | |
16474 | NMEDIT=$lt_NMEDIT | |
16475 | ||
16476 | # Tool to manipulate fat objects and archives on Mac OS X. | |
16477 | LIPO=$lt_LIPO | |
16478 | ||
16479 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
16480 | OTOOL=$lt_OTOOL | |
16481 | ||
16482 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
16483 | OTOOL64=$lt_OTOOL64 | |
16484 | ||
d7040cdb SE |
16485 | # Old archive suffix (normally "a"). |
16486 | libext=$libext | |
16487 | ||
16488 | # Shared library suffix (normally ".so"). | |
16489 | shrext_cmds=$lt_shrext_cmds | |
16490 | ||
16491 | # The commands to extract the exported symbol list from a shared archive. | |
16492 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16493 | ||
16494 | # Variables whose values should be saved in libtool wrapper scripts and | |
16495 | # restored at link time. | |
16496 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
16497 | ||
16498 | # Do we need the "lib" prefix for modules? | |
16499 | need_lib_prefix=$need_lib_prefix | |
16500 | ||
16501 | # Do we need a version for libraries? | |
16502 | need_version=$need_version | |
16503 | ||
16504 | # Library versioning type. | |
16505 | version_type=$version_type | |
16506 | ||
16507 | # Shared library runtime path variable. | |
16508 | runpath_var=$runpath_var | |
16509 | ||
16510 | # Shared library path variable. | |
16511 | shlibpath_var=$shlibpath_var | |
16512 | ||
16513 | # Is shlibpath searched before the hard-coded library search path? | |
16514 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16515 | ||
16516 | # Format of library name prefix. | |
16517 | libname_spec=$lt_libname_spec | |
16518 | ||
16519 | # List of archive names. First name is the real one, the rest are links. | |
16520 | # The last name is the one that the linker finds with -lNAME | |
16521 | library_names_spec=$lt_library_names_spec | |
16522 | ||
16523 | # The coded name of the library, if different from the real name. | |
16524 | soname_spec=$lt_soname_spec | |
16525 | ||
3725885a RW |
16526 | # Permission mode override for installation of shared libraries. |
16527 | install_override_mode=$lt_install_override_mode | |
16528 | ||
d7040cdb SE |
16529 | # Command to use after installation of a shared archive. |
16530 | postinstall_cmds=$lt_postinstall_cmds | |
16531 | ||
16532 | # Command to use after uninstallation of a shared archive. | |
16533 | postuninstall_cmds=$lt_postuninstall_cmds | |
16534 | ||
16535 | # Commands used to finish a libtool library installation in a directory. | |
16536 | finish_cmds=$lt_finish_cmds | |
16537 | ||
16538 | # As "finish_cmds", except a single script fragment to be evaled but | |
16539 | # not shown. | |
16540 | finish_eval=$lt_finish_eval | |
16541 | ||
16542 | # Whether we should hardcode library paths into libraries. | |
16543 | hardcode_into_libs=$hardcode_into_libs | |
16544 | ||
16545 | # Compile-time system search path for libraries. | |
16546 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16547 | ||
16548 | # Run-time system search path for libraries. | |
16549 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16550 | ||
16551 | # Whether dlopen is supported. | |
16552 | dlopen_support=$enable_dlopen | |
16553 | ||
16554 | # Whether dlopen of programs is supported. | |
16555 | dlopen_self=$enable_dlopen_self | |
16556 | ||
16557 | # Whether dlopen of statically linked programs is supported. | |
16558 | dlopen_self_static=$enable_dlopen_self_static | |
16559 | ||
16560 | # Commands to strip libraries. | |
16561 | old_striplib=$lt_old_striplib | |
16562 | striplib=$lt_striplib | |
16563 | ||
16564 | ||
16565 | # The linker used to build libraries. | |
16566 | LD=$lt_LD | |
16567 | ||
3725885a RW |
16568 | # How to create reloadable object files. |
16569 | reload_flag=$lt_reload_flag | |
16570 | reload_cmds=$lt_reload_cmds | |
16571 | ||
d7040cdb SE |
16572 | # Commands used to build an old-style archive. |
16573 | old_archive_cmds=$lt_old_archive_cmds | |
16574 | ||
16575 | # A language specific compiler. | |
16576 | CC=$lt_compiler | |
16577 | ||
16578 | # Is the compiler the GNU compiler? | |
16579 | with_gcc=$GCC | |
16580 | ||
16581 | # Compiler flag to turn off builtin functions. | |
16582 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16583 | ||
16584 | # How to pass a linker flag through the compiler. | |
16585 | wl=$lt_lt_prog_compiler_wl | |
16586 | ||
16587 | # Additional compiler flags for building library objects. | |
16588 | pic_flag=$lt_lt_prog_compiler_pic | |
16589 | ||
16590 | # Compiler flag to prevent dynamic linking. | |
16591 | link_static_flag=$lt_lt_prog_compiler_static | |
16592 | ||
16593 | # Does compiler simultaneously support -c and -o options? | |
16594 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16595 | ||
16596 | # Whether or not to add -lc for building shared libraries. | |
16597 | build_libtool_need_lc=$archive_cmds_need_lc | |
16598 | ||
16599 | # Whether or not to disallow shared libs when runtime libs are static. | |
16600 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16601 | ||
16602 | # Compiler flag to allow reflexive dlopens. | |
16603 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16604 | ||
16605 | # Compiler flag to generate shared objects directly from archives. | |
16606 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16607 | ||
16608 | # Whether the compiler copes with passing no objects directly. | |
16609 | compiler_needs_object=$lt_compiler_needs_object | |
16610 | ||
16611 | # Create an old-style archive from a shared archive. | |
16612 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16613 | ||
16614 | # Create a temporary old-style archive to link instead of a shared archive. | |
16615 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16616 | ||
16617 | # Commands used to build a shared archive. | |
16618 | archive_cmds=$lt_archive_cmds | |
16619 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
16620 | ||
16621 | # Commands used to build a loadable module if different from building | |
16622 | # a shared archive. | |
16623 | module_cmds=$lt_module_cmds | |
16624 | module_expsym_cmds=$lt_module_expsym_cmds | |
16625 | ||
16626 | # Whether we are building with GNU ld or not. | |
16627 | with_gnu_ld=$lt_with_gnu_ld | |
16628 | ||
16629 | # Flag that allows shared libraries with undefined symbols to be built. | |
16630 | allow_undefined_flag=$lt_allow_undefined_flag | |
16631 | ||
16632 | # Flag that enforces no undefined symbols. | |
16633 | no_undefined_flag=$lt_no_undefined_flag | |
16634 | ||
16635 | # Flag to hardcode \$libdir into a binary during linking. | |
16636 | # This must work even if \$libdir does not exist | |
16637 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16638 | ||
16639 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16640 | # during linking. This must work even if \$libdir does not exist. | |
16641 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16642 | ||
16643 | # Whether we need a single "-rpath" flag with a separated argument. | |
16644 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16645 | ||
16646 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16647 | # DIR into the resulting binary. | |
16648 | hardcode_direct=$hardcode_direct | |
16649 | ||
16650 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16651 | # DIR into the resulting binary and the resulting library dependency is | |
16652 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16653 | # library is relocated. | |
16654 | hardcode_direct_absolute=$hardcode_direct_absolute | |
16655 | ||
16656 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16657 | # into the resulting binary. | |
16658 | hardcode_minus_L=$hardcode_minus_L | |
16659 | ||
16660 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16661 | # into the resulting binary. | |
16662 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16663 | ||
16664 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
16665 | # into the library and all subsequent libraries and executables linked | |
16666 | # against it. | |
16667 | hardcode_automatic=$hardcode_automatic | |
16668 | ||
16669 | # Set to yes if linker adds runtime paths of dependent libraries | |
16670 | # to runtime path list. | |
16671 | inherit_rpath=$inherit_rpath | |
16672 | ||
16673 | # Whether libtool must link a program against all its dependency libraries. | |
16674 | link_all_deplibs=$link_all_deplibs | |
16675 | ||
16676 | # Fix the shell variable \$srcfile for the compiler. | |
16677 | fix_srcfile_path=$lt_fix_srcfile_path | |
16678 | ||
16679 | # Set to "yes" if exported symbols are required. | |
16680 | always_export_symbols=$always_export_symbols | |
16681 | ||
16682 | # The commands to list exported symbols. | |
16683 | export_symbols_cmds=$lt_export_symbols_cmds | |
16684 | ||
16685 | # Symbols that should not be listed in the preloaded symbols. | |
16686 | exclude_expsyms=$lt_exclude_expsyms | |
16687 | ||
16688 | # Symbols that must always be exported. | |
16689 | include_expsyms=$lt_include_expsyms | |
16690 | ||
16691 | # Commands necessary for linking programs (against libraries) with templates. | |
16692 | prelink_cmds=$lt_prelink_cmds | |
16693 | ||
16694 | # Specify filename containing input files. | |
16695 | file_list_spec=$lt_file_list_spec | |
16696 | ||
16697 | # How to hardcode a shared library path into an executable. | |
16698 | hardcode_action=$hardcode_action | |
16699 | ||
16700 | # ### END LIBTOOL CONFIG | |
16701 | ||
16702 | _LT_EOF | |
16703 | ||
16704 | case $host_os in | |
16705 | aix3*) | |
16706 | cat <<\_LT_EOF >> "$cfgfile" | |
16707 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16708 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16709 | # vanish in a puff of smoke. | |
16710 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16711 | COLLECT_NAMES= | |
16712 | export COLLECT_NAMES | |
16713 | fi | |
16714 | _LT_EOF | |
16715 | ;; | |
16716 | esac | |
16717 | ||
16718 | ||
16719 | ltmain="$ac_aux_dir/ltmain.sh" | |
16720 | ||
16721 | ||
16722 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16723 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16724 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16725 | # is reportedly fixed, but why not run on old versions too? | |
16726 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
16727 | || (rm -f "$cfgfile"; exit 1) | |
16728 | ||
16729 | case $xsi_shell in | |
16730 | yes) | |
16731 | cat << \_LT_EOF >> "$cfgfile" | |
1927a18f | 16732 | |
d7040cdb SE |
16733 | # func_dirname file append nondir_replacement |
16734 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16735 | # otherwise set result to NONDIR_REPLACEMENT. | |
16736 | func_dirname () | |
16737 | { | |
16738 | case ${1} in | |
16739 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16740 | * ) func_dirname_result="${3}" ;; | |
16741 | esac | |
16742 | } | |
16743 | ||
16744 | # func_basename file | |
16745 | func_basename () | |
16746 | { | |
16747 | func_basename_result="${1##*/}" | |
16748 | } | |
16749 | ||
1927a18f L |
16750 | # func_dirname_and_basename file append nondir_replacement |
16751 | # perform func_basename and func_dirname in a single function | |
16752 | # call: | |
16753 | # dirname: Compute the dirname of FILE. If nonempty, | |
16754 | # add APPEND to the result, otherwise set result | |
16755 | # to NONDIR_REPLACEMENT. | |
16756 | # value returned in "$func_dirname_result" | |
16757 | # basename: Compute filename of FILE. | |
16758 | # value retuned in "$func_basename_result" | |
16759 | # Implementation must be kept synchronized with func_dirname | |
16760 | # and func_basename. For efficiency, we do not delegate to | |
16761 | # those functions but instead duplicate the functionality here. | |
16762 | func_dirname_and_basename () | |
16763 | { | |
16764 | case ${1} in | |
16765 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16766 | * ) func_dirname_result="${3}" ;; | |
16767 | esac | |
16768 | func_basename_result="${1##*/}" | |
16769 | } | |
16770 | ||
d7040cdb SE |
16771 | # func_stripname prefix suffix name |
16772 | # strip PREFIX and SUFFIX off of NAME. | |
16773 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16774 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16775 | # dot (in which case that matches only a dot). | |
16776 | func_stripname () | |
16777 | { | |
16778 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16779 | # positional parameters, so assign one to ordinary parameter first. | |
16780 | func_stripname_result=${3} | |
16781 | func_stripname_result=${func_stripname_result#"${1}"} | |
16782 | func_stripname_result=${func_stripname_result%"${2}"} | |
16783 | } | |
16784 | ||
16785 | # func_opt_split | |
16786 | func_opt_split () | |
16787 | { | |
16788 | func_opt_split_opt=${1%%=*} | |
16789 | func_opt_split_arg=${1#*=} | |
16790 | } | |
16791 | ||
16792 | # func_lo2o object | |
16793 | func_lo2o () | |
16794 | { | |
16795 | case ${1} in | |
16796 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16797 | *) func_lo2o_result=${1} ;; | |
16798 | esac | |
16799 | } | |
1927a18f L |
16800 | |
16801 | # func_xform libobj-or-source | |
16802 | func_xform () | |
16803 | { | |
16804 | func_xform_result=${1%.*}.lo | |
16805 | } | |
16806 | ||
16807 | # func_arith arithmetic-term... | |
16808 | func_arith () | |
16809 | { | |
16810 | func_arith_result=$(( $* )) | |
16811 | } | |
16812 | ||
16813 | # func_len string | |
16814 | # STRING may not start with a hyphen. | |
16815 | func_len () | |
16816 | { | |
16817 | func_len_result=${#1} | |
16818 | } | |
16819 | ||
d7040cdb SE |
16820 | _LT_EOF |
16821 | ;; | |
16822 | *) # Bourne compatible functions. | |
16823 | cat << \_LT_EOF >> "$cfgfile" | |
1927a18f | 16824 | |
d7040cdb SE |
16825 | # func_dirname file append nondir_replacement |
16826 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16827 | # otherwise set result to NONDIR_REPLACEMENT. | |
16828 | func_dirname () | |
16829 | { | |
16830 | # Extract subdirectory from the argument. | |
3725885a | 16831 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
16832 | if test "X$func_dirname_result" = "X${1}"; then |
16833 | func_dirname_result="${3}" | |
16834 | else | |
16835 | func_dirname_result="$func_dirname_result${2}" | |
16836 | fi | |
16837 | } | |
16838 | ||
16839 | # func_basename file | |
16840 | func_basename () | |
16841 | { | |
3725885a | 16842 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
16843 | } |
16844 | ||
1927a18f | 16845 | |
d7040cdb SE |
16846 | # func_stripname prefix suffix name |
16847 | # strip PREFIX and SUFFIX off of NAME. | |
16848 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16849 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16850 | # dot (in which case that matches only a dot). | |
16851 | # func_strip_suffix prefix name | |
16852 | func_stripname () | |
16853 | { | |
16854 | case ${2} in | |
3725885a RW |
16855 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
16856 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
16857 | esac |
16858 | } | |
16859 | ||
16860 | # sed scripts: | |
16861 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16862 | my_sed_long_arg='1s/^-[^=]*=//' | |
16863 | ||
16864 | # func_opt_split | |
16865 | func_opt_split () | |
16866 | { | |
3725885a RW |
16867 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
16868 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
16869 | } |
16870 | ||
16871 | # func_lo2o object | |
16872 | func_lo2o () | |
16873 | { | |
3725885a | 16874 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 16875 | } |
1927a18f L |
16876 | |
16877 | # func_xform libobj-or-source | |
16878 | func_xform () | |
16879 | { | |
3725885a | 16880 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
1927a18f L |
16881 | } |
16882 | ||
16883 | # func_arith arithmetic-term... | |
16884 | func_arith () | |
16885 | { | |
16886 | func_arith_result=`expr "$@"` | |
16887 | } | |
16888 | ||
16889 | # func_len string | |
16890 | # STRING may not start with a hyphen. | |
16891 | func_len () | |
16892 | { | |
16893 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16894 | } | |
16895 | ||
d7040cdb SE |
16896 | _LT_EOF |
16897 | esac | |
16898 | ||
16899 | case $lt_shell_append in | |
16900 | yes) | |
16901 | cat << \_LT_EOF >> "$cfgfile" | |
16902 | ||
16903 | # func_append var value | |
16904 | # Append VALUE to the end of shell variable VAR. | |
16905 | func_append () | |
16906 | { | |
16907 | eval "$1+=\$2" | |
16908 | } | |
16909 | _LT_EOF | |
16910 | ;; | |
16911 | *) | |
16912 | cat << \_LT_EOF >> "$cfgfile" | |
16913 | ||
16914 | # func_append var value | |
16915 | # Append VALUE to the end of shell variable VAR. | |
16916 | func_append () | |
16917 | { | |
16918 | eval "$1=\$$1\$2" | |
16919 | } | |
1927a18f | 16920 | |
d7040cdb SE |
16921 | _LT_EOF |
16922 | ;; | |
16923 | esac | |
16924 | ||
16925 | ||
16926 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16927 | || (rm -f "$cfgfile"; exit 1) | |
16928 | ||
16929 | mv -f "$cfgfile" "$ofile" || | |
16930 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
16931 | chmod +x "$ofile" | |
16932 | ||
8ae85421 | 16933 | ;; |
81ecdfbb | 16934 | "default-1":C) |
20e95c23 DJ |
16935 | for ac_file in $CONFIG_FILES; do |
16936 | # Support "outfile[:infile[:infile...]]" | |
16937 | case "$ac_file" in | |
16938 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16939 | esac | |
16940 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
16941 | case "$ac_file" in */Makefile.in) | |
16942 | # Adjust a relative srcdir. | |
16943 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 16944 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
16945 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
16946 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
16947 | # In autoconf-2.50 it is called $srcdir. | |
862776f2 AA |
16948 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
16949 | case "$ac_given_srcdir" in | |
16950 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
16951 | /*) top_srcdir="$ac_given_srcdir" ;; | |
16952 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16953 | esac | |
16954 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
16955 | rm -f "$ac_dir/POTFILES" | |
16956 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
16957 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
16958 | POMAKEFILEDEPS="POTFILES.in" | |
16959 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
16960 | # on $ac_dir but don't depend on user-specified configuration | |
16961 | # parameters. | |
16962 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
16963 | # The LINGUAS file contains the set of available languages. | |
16964 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
16965 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" | |
16966 | fi | |
16967 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
16968 | # Hide the ALL_LINGUAS assigment from automake. | |
16969 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
16970 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
16971 | else | |
16972 | # The set of available languages was given in configure.ac. | |
16973 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
16974 | fi | |
16975 | case "$ac_given_srcdir" in | |
16976 | .) srcdirpre= ;; | |
16977 | *) srcdirpre='$(srcdir)/' ;; | |
16978 | esac | |
16979 | POFILES= | |
16980 | GMOFILES= | |
16981 | UPDATEPOFILES= | |
16982 | DUMMYPOFILES= | |
16983 | for lang in $ALL_LINGUAS; do | |
16984 | POFILES="$POFILES $srcdirpre$lang.po" | |
16985 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
16986 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
16987 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
16988 | done | |
16989 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
16990 | # environment variable. | |
16991 | INST_LINGUAS= | |
16992 | if test -n "$ALL_LINGUAS"; then | |
16993 | for presentlang in $ALL_LINGUAS; do | |
16994 | useit=no | |
16995 | if test "%UNSET%" != "$LINGUAS"; then | |
16996 | desiredlanguages="$LINGUAS" | |
16997 | else | |
16998 | desiredlanguages="$ALL_LINGUAS" | |
16999 | fi | |
17000 | for desiredlang in $desiredlanguages; do | |
17001 | # Use the presentlang catalog if desiredlang is | |
17002 | # a. equal to presentlang, or | |
17003 | # b. a variant of presentlang (because in this case, | |
17004 | # presentlang can be used as a fallback for messages | |
17005 | # which are not translated in the desiredlang catalog). | |
17006 | case "$desiredlang" in | |
17007 | "$presentlang"*) useit=yes;; | |
17008 | esac | |
17009 | done | |
17010 | if test $useit = yes; then | |
17011 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17012 | fi | |
17013 | done | |
17014 | fi | |
17015 | CATALOGS= | |
17016 | if test -n "$INST_LINGUAS"; then | |
17017 | for lang in $INST_LINGUAS; do | |
17018 | CATALOGS="$CATALOGS $lang.gmo" | |
17019 | done | |
17020 | fi | |
17021 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
17022 | 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" | |
17023 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
17024 | if test -f "$f"; then | |
17025 | case "$f" in | |
17026 | *.orig | *.bak | *~) ;; | |
17027 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17028 | esac | |
17029 | fi | |
17030 | done | |
17031 | fi | |
17032 | ;; | |
17033 | esac | |
17034 | done ;; | |
17035 | "default-2":C) | |
17036 | for ac_file in $CONFIG_FILES; do | |
17037 | # Support "outfile[:infile[:infile...]]" | |
17038 | case "$ac_file" in | |
17039 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17040 | esac | |
17041 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
17042 | case "$ac_file" in */Makefile.in) | |
17043 | # Adjust a relative srcdir. | |
17044 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
17045 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` | |
17046 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
17047 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
17048 | # In autoconf-2.50 it is called $srcdir. | |
20e95c23 DJ |
17049 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
17050 | case "$ac_given_srcdir" in | |
17051 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
17052 | /*) top_srcdir="$ac_given_srcdir" ;; | |
17053 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17054 | esac | |
17055 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
17056 | rm -f "$ac_dir/POTFILES" | |
17057 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
17058 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
17059 | POMAKEFILEDEPS="POTFILES.in" | |
17060 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
17061 | # on $ac_dir but don't depend on user-specified configuration | |
17062 | # parameters. | |
17063 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
17064 | # The LINGUAS file contains the set of available languages. | |
17065 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 17066 | 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 |
17067 | fi |
17068 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
17069 | # Hide the ALL_LINGUAS assigment from automake. | |
17070 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
17071 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
17072 | else | |
37a42ee9 | 17073 | # The set of available languages was given in configure.ac. |
20e95c23 DJ |
17074 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
17075 | fi | |
17076 | case "$ac_given_srcdir" in | |
17077 | .) srcdirpre= ;; | |
17078 | *) srcdirpre='$(srcdir)/' ;; | |
17079 | esac | |
17080 | POFILES= | |
17081 | GMOFILES= | |
17082 | UPDATEPOFILES= | |
17083 | DUMMYPOFILES= | |
17084 | for lang in $ALL_LINGUAS; do | |
17085 | POFILES="$POFILES $srcdirpre$lang.po" | |
17086 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
17087 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
17088 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
17089 | done | |
17090 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
17091 | # environment variable. | |
17092 | INST_LINGUAS= | |
17093 | if test -n "$ALL_LINGUAS"; then | |
17094 | for presentlang in $ALL_LINGUAS; do | |
17095 | useit=no | |
17096 | if test "%UNSET%" != "$LINGUAS"; then | |
17097 | desiredlanguages="$LINGUAS" | |
17098 | else | |
17099 | desiredlanguages="$ALL_LINGUAS" | |
17100 | fi | |
17101 | for desiredlang in $desiredlanguages; do | |
17102 | # Use the presentlang catalog if desiredlang is | |
17103 | # a. equal to presentlang, or | |
17104 | # b. a variant of presentlang (because in this case, | |
17105 | # presentlang can be used as a fallback for messages | |
17106 | # which are not translated in the desiredlang catalog). | |
17107 | case "$desiredlang" in | |
17108 | "$presentlang"*) useit=yes;; | |
17109 | esac | |
17110 | done | |
17111 | if test $useit = yes; then | |
17112 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17113 | fi | |
17114 | done | |
17115 | fi | |
17116 | CATALOGS= | |
17117 | if test -n "$INST_LINGUAS"; then | |
17118 | for lang in $INST_LINGUAS; do | |
17119 | CATALOGS="$CATALOGS $lang.gmo" | |
17120 | done | |
17121 | fi | |
17122 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
17123 | 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" | |
17124 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
17125 | if test -f "$f"; then | |
17126 | case "$f" in | |
17127 | *.orig | *.bak | *~) ;; | |
17128 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17129 | esac | |
17130 | fi | |
17131 | done | |
17132 | fi | |
17133 | ;; | |
17134 | esac | |
17135 | done ;; | |
81ecdfbb | 17136 | |
979273e3 | 17137 | esac |
81ecdfbb | 17138 | done # for ac_tag |
979273e3 | 17139 | |
979273e3 | 17140 | |
81ecdfbb | 17141 | as_fn_exit 0 |
979273e3 | 17142 | _ACEOF |
979273e3 NN |
17143 | ac_clean_files=$ac_clean_files_save |
17144 | ||
81ecdfbb | 17145 | test $ac_write_fail = 0 || |
d0ac1c44 | 17146 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 17147 | |
979273e3 NN |
17148 | |
17149 | # configure is writing to config.log, and then calls config.status. | |
17150 | # config.status does its own redirection, appending to config.log. | |
17151 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17152 | # by configure, so config.status won't be able to write to it; its | |
17153 | # output is simply discarded. So we exec the FD to /dev/null, | |
17154 | # effectively closing config.log, so it can be properly (re)opened and | |
17155 | # appended to by config.status. When coming back to configure, we | |
17156 | # need to make the FD available again. | |
17157 | if test "$no_create" != yes; then | |
17158 | ac_cs_success=: | |
17159 | ac_config_status_args= | |
17160 | test "$silent" = yes && | |
17161 | ac_config_status_args="$ac_config_status_args --quiet" | |
17162 | exec 5>/dev/null | |
17163 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17164 | exec 5>>config.log | |
17165 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17166 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 17167 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
17168 | fi |
17169 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17171 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
979273e3 | 17172 | fi |
252b5132 | 17173 | |
d546b610 L |
17174 | |
17175 | ||
17176 | touch config.status.tmp | |
17177 | if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then | |
17178 | sed '/as_fn_exit 0/i \ | |
17179 | sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ | |
17180 | touch --reference=Makefile Makefile.tmp \ | |
17181 | mv Makefile.tmp Makefile \ | |
17182 | ' config.status > config.status.tmp | |
17183 | touch --reference=config.status config.status.tmp | |
17184 | mv config.status.tmp config.status | |
17185 | chmod +x config.status | |
17186 | sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp | |
17187 | touch --reference=Makefile Makefile.tmp | |
17188 | mv Makefile.tmp Makefile | |
17189 | else | |
17190 | rm -f config.status.tmp | |
17191 | fi |