]>
Commit | Line | Data |
---|---|---|
ef016f83 MF |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
d0ac1c44 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
ef016f83 | 7 | # |
ef016f83 MF |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
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 : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
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 | |
31 | fi | |
32 | ||
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 | } | |
79 | fi | |
80 | ||
81 | ||
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= |
ef016f83 MF |
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 | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
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;} | |
ef016f83 MF |
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" | |
ef016f83 MF |
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 | |
6bb11ab3 L |
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" | |
ef016f83 MF |
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 | |
219 | do | |
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 | |
ef016f83 MF |
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." | |
274 | else | |
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." | |
279 | fi | |
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" |
ef016f83 MF |
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 | |
ef016f83 MF |
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 | # ---------------------------------------- | |
ef016f83 MF |
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. |
ef016f83 MF |
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 | |
ef016f83 | 422 | fi |
d0ac1c44 | 423 | $as_echo "$as_me: error: $2" >&2 |
ef016f83 MF |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 | as_expr=expr | |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 | as_basename=basename | |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
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 | |
445 | ||
446 | as_me=`$as_basename -- "$0" || | |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 | X"$0" : 'X\(//\)$' \| \ | |
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'` | |
464 | ||
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 | ||
472 | ||
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 | | |
482 | sed ' | |
483 | s/[$]LINENO.*/&-/ | |
484 | t lineno | |
485 | b | |
486 | :lineno | |
487 | N | |
488 | :loop | |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 | t loop | |
491 | s/-\n.*// | |
492 | ' >$as_me.lineno && | |
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; } | |
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 | |
ef016f83 MF |
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 | |
502 | # original and so on. Autoconf is especially sensitive to this). | |
503 | . "./$as_me.lineno" | |
504 | # Exit status is that of the last command. | |
505 | exit | |
506 | } | |
507 | ||
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';; | |
519 | esac | |
520 | ||
521 | rm -f conf$$ conf$$.exe conf$$.file | |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
524 | else | |
525 | rm -f conf$$.dir | |
526 | mkdir conf$$.dir 2>/dev/null | |
527 | fi | |
528 | if (echo >conf$$.file) 2>/dev/null; then | |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s='ln -s' | |
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'. |
ef016f83 | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 536 | as_ln_s='cp -pR' |
ef016f83 MF |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
ef016f83 MF |
541 | fi |
542 | else | |
d0ac1c44 | 543 | as_ln_s='cp -pR' |
ef016f83 MF |
544 | fi |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 | rmdir conf$$.dir 2>/dev/null | |
547 | ||
548 | if mkdir -p . 2>/dev/null; then | |
549 | as_mkdir_p='mkdir -p "$as_dir"' | |
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 | |
ef016f83 MF |
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 | ||
6bb11ab3 L |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
ef016f83 | 566 | |
d0ac1c44 SM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
ef016f83 MF |
569 | |
570 | # Name of the host. | |
d0ac1c44 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
ef016f83 MF |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
575 | # | |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
579 | ac_clean_files= | |
580 | ac_config_libobj_dir=. | |
581 | LIBOBJS= | |
582 | cross_compiling=no | |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
586 | ||
587 | # Identity of this package. | |
588 | PACKAGE_NAME= | |
589 | PACKAGE_TARNAME= | |
590 | PACKAGE_VERSION= | |
591 | PACKAGE_STRING= | |
592 | PACKAGE_BUGREPORT= | |
593 | PACKAGE_URL= | |
594 | ||
595 | ac_unique_file="Makefile.in" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
599 | #ifdef HAVE_SYS_TYPES_H | |
600 | # include <sys/types.h> | |
601 | #endif | |
602 | #ifdef HAVE_SYS_STAT_H | |
603 | # include <sys/stat.h> | |
604 | #endif | |
605 | #ifdef STDC_HEADERS | |
606 | # include <stdlib.h> | |
607 | # include <stddef.h> | |
608 | #else | |
609 | # ifdef HAVE_STDLIB_H | |
610 | # include <stdlib.h> | |
611 | # endif | |
612 | #endif | |
613 | #ifdef HAVE_STRING_H | |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
615 | # include <memory.h> | |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
619 | #ifdef HAVE_STRINGS_H | |
620 | # include <strings.h> | |
621 | #endif | |
622 | #ifdef HAVE_INTTYPES_H | |
623 | # include <inttypes.h> | |
624 | #endif | |
625 | #ifdef HAVE_STDINT_H | |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
629 | # include <unistd.h> | |
630 | #endif" | |
631 | ||
632 | ac_subst_vars='LTLIBOBJS | |
633 | LIBOBJS | |
760b3e8b MF |
634 | sim_reserved_bits |
635 | sim_scache | |
636 | sim_float | |
637 | sim_bitsize | |
ef016f83 MF |
638 | cgen_breaks |
639 | SDL_LIBS | |
640 | SDL_CFLAGS | |
5798d69f SM |
641 | PKG_CONFIG_LIBDIR |
642 | PKG_CONFIG_PATH | |
643 | PKG_CONFIG | |
ef016f83 MF |
644 | REPORT_BUGS_TEXI |
645 | REPORT_BUGS_TO | |
646 | PKGVERSION | |
ef016f83 | 647 | MAINT |
31e6ad7d MF |
648 | MAINTAINER_MODE_FALSE |
649 | MAINTAINER_MODE_TRUE | |
6bb11ab3 L |
650 | lt_cv_dlopen_libs |
651 | OTOOL64 | |
652 | OTOOL | |
653 | LIPO | |
654 | NMEDIT | |
655 | DSYMUTIL | |
656 | AWK | |
657 | STRIP | |
658 | OBJDUMP | |
659 | LN_S | |
660 | NM | |
661 | ac_ct_DUMPBIN | |
662 | DUMPBIN | |
663 | LD | |
664 | FGREP | |
665 | SED | |
666 | LIBTOOL | |
667 | PLUGINS_FALSE | |
668 | PLUGINS_TRUE | |
aadc9410 MF |
669 | zlibinc |
670 | zlibdir | |
ef016f83 MF |
671 | CATOBJEXT |
672 | GENCAT | |
673 | INSTOBJEXT | |
674 | DATADIRNAME | |
675 | CATALOGS | |
676 | POSUB | |
677 | GMSGFMT | |
678 | XGETTEXT | |
679 | INCINTL | |
680 | LIBINTL_DEP | |
681 | LIBINTL | |
682 | USE_NLS | |
db2e4d67 MF |
683 | GMAKE_FALSE |
684 | GMAKE_TRUE | |
685 | MAKE | |
686 | CCDEPMODE | |
687 | DEPDIR | |
688 | am__leading_dot | |
5f3ef9d0 | 689 | PACKAGE |
46f900c0 | 690 | C_DIALECT |
ef016f83 MF |
691 | RANLIB |
692 | AR | |
ef016f83 MF |
693 | CC_FOR_BUILD |
694 | INSTALL_DATA | |
695 | INSTALL_SCRIPT | |
696 | INSTALL_PROGRAM | |
2232061b MF |
697 | EGREP |
698 | GREP | |
ef016f83 MF |
699 | target_os |
700 | target_vendor | |
701 | target_cpu | |
702 | target | |
703 | host_os | |
704 | host_vendor | |
705 | host_cpu | |
706 | host | |
707 | build_os | |
708 | build_vendor | |
709 | build_cpu | |
710 | build | |
ebe9564b | 711 | CPP |
6ffe910a MF |
712 | OBJEXT |
713 | EXEEXT | |
714 | ac_ct_CC | |
715 | CPPFLAGS | |
716 | LDFLAGS | |
717 | CFLAGS | |
718 | CC | |
ef016f83 MF |
719 | target_alias |
720 | host_alias | |
721 | build_alias | |
722 | LIBS | |
723 | ECHO_T | |
724 | ECHO_N | |
725 | ECHO_C | |
726 | DEFS | |
727 | mandir | |
728 | localedir | |
729 | libdir | |
730 | psdir | |
731 | pdfdir | |
732 | dvidir | |
733 | htmldir | |
734 | infodir | |
735 | docdir | |
736 | oldincludedir | |
737 | includedir | |
738 | localstatedir | |
739 | sharedstatedir | |
740 | sysconfdir | |
741 | datadir | |
742 | datarootdir | |
743 | libexecdir | |
744 | sbindir | |
745 | bindir | |
746 | program_transform_name | |
747 | prefix | |
748 | exec_prefix | |
749 | PACKAGE_URL | |
750 | PACKAGE_BUGREPORT | |
751 | PACKAGE_STRING | |
752 | PACKAGE_VERSION | |
753 | PACKAGE_TARNAME | |
754 | PACKAGE_NAME | |
755 | PATH_SEPARATOR | |
136da8cd MF |
756 | SHELL |
757 | WERROR_CFLAGS | |
758 | WARN_CFLAGS | |
136da8cd MF |
759 | sim_inline |
760 | sim_hw | |
761 | sim_hw_objs | |
762 | sim_hw_cflags | |
136da8cd | 763 | sim_endian |
760b3e8b | 764 | sim_default_model |
136da8cd | 765 | sim_alignment' |
ef016f83 MF |
766 | ac_subst_files='' |
767 | ac_user_opts=' | |
768 | enable_option_checking | |
aadc9410 | 769 | with_system_zlib |
6bb11ab3 L |
770 | enable_plugins |
771 | enable_shared | |
772 | enable_static | |
773 | with_pic | |
774 | enable_fast_install | |
775 | with_gnu_ld | |
776 | enable_libtool_lock | |
ef016f83 | 777 | enable_maintainer_mode |
ef016f83 MF |
778 | enable_sim_debug |
779 | enable_sim_stdio | |
780 | enable_sim_trace | |
781 | enable_sim_profile | |
35656e95 | 782 | enable_sim_assert |
16f7876d | 783 | enable_sim_environment |
347fe5bb | 784 | enable_sim_inline |
ef016f83 MF |
785 | with_pkgversion |
786 | with_bugurl | |
787 | enable_sim_endian | |
788 | enable_sim_alignment | |
ef016f83 | 789 | enable_sim_default_model |
2232061b | 790 | enable_werror |
ef016f83 MF |
791 | enable_build_warnings |
792 | enable_sim_build_warnings | |
793 | enable_sim_hardware | |
794 | ' | |
795 | ac_precious_vars='build_alias | |
796 | host_alias | |
797 | target_alias | |
798 | CC | |
799 | CFLAGS | |
800 | LDFLAGS | |
801 | LIBS | |
802 | CPPFLAGS | |
5798d69f SM |
803 | CPP |
804 | PKG_CONFIG | |
805 | PKG_CONFIG_PATH | |
806 | PKG_CONFIG_LIBDIR | |
807 | SDL_CFLAGS | |
808 | SDL_LIBS' | |
ef016f83 MF |
809 | |
810 | ||
811 | # Initialize some variables set by options. | |
812 | ac_init_help= | |
813 | ac_init_version=false | |
814 | ac_unrecognized_opts= | |
815 | ac_unrecognized_sep= | |
816 | # The variables have the same names as the options, with | |
817 | # dashes changed to underlines. | |
818 | cache_file=/dev/null | |
819 | exec_prefix=NONE | |
820 | no_create= | |
821 | no_recursion= | |
822 | prefix=NONE | |
823 | program_prefix=NONE | |
824 | program_suffix=NONE | |
825 | program_transform_name=s,x,x, | |
826 | silent= | |
827 | site= | |
828 | srcdir= | |
829 | verbose= | |
830 | x_includes=NONE | |
831 | x_libraries=NONE | |
832 | ||
833 | # Installation directory options. | |
834 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
835 | # and all the variables that are supposed to be based on exec_prefix | |
836 | # by default will actually change. | |
837 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
838 | # (The list follows the same order as the GNU Coding Standards.) | |
839 | bindir='${exec_prefix}/bin' | |
840 | sbindir='${exec_prefix}/sbin' | |
841 | libexecdir='${exec_prefix}/libexec' | |
842 | datarootdir='${prefix}/share' | |
843 | datadir='${datarootdir}' | |
844 | sysconfdir='${prefix}/etc' | |
845 | sharedstatedir='${prefix}/com' | |
846 | localstatedir='${prefix}/var' | |
847 | includedir='${prefix}/include' | |
848 | oldincludedir='/usr/include' | |
849 | docdir='${datarootdir}/doc/${PACKAGE}' | |
850 | infodir='${datarootdir}/info' | |
851 | htmldir='${docdir}' | |
852 | dvidir='${docdir}' | |
853 | pdfdir='${docdir}' | |
854 | psdir='${docdir}' | |
855 | libdir='${exec_prefix}/lib' | |
856 | localedir='${datarootdir}/locale' | |
857 | mandir='${datarootdir}/man' | |
858 | ||
859 | ac_prev= | |
860 | ac_dashdash= | |
861 | for ac_option | |
862 | do | |
863 | # If the previous option needs an argument, assign it. | |
864 | if test -n "$ac_prev"; then | |
865 | eval $ac_prev=\$ac_option | |
866 | ac_prev= | |
867 | continue | |
868 | fi | |
869 | ||
870 | case $ac_option in | |
d0ac1c44 SM |
871 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
872 | *=) ac_optarg= ;; | |
873 | *) ac_optarg=yes ;; | |
ef016f83 MF |
874 | esac |
875 | ||
876 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
877 | ||
878 | case $ac_dashdash$ac_option in | |
879 | --) | |
880 | ac_dashdash=yes ;; | |
881 | ||
882 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
883 | ac_prev=bindir ;; | |
884 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
885 | bindir=$ac_optarg ;; | |
886 | ||
887 | -build | --build | --buil | --bui | --bu) | |
888 | ac_prev=build_alias ;; | |
889 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
890 | build_alias=$ac_optarg ;; | |
891 | ||
892 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
893 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
894 | ac_prev=cache_file ;; | |
895 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
896 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
897 | cache_file=$ac_optarg ;; | |
898 | ||
899 | --config-cache | -C) | |
900 | cache_file=config.cache ;; | |
901 | ||
902 | -datadir | --datadir | --datadi | --datad) | |
903 | ac_prev=datadir ;; | |
904 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
905 | datadir=$ac_optarg ;; | |
906 | ||
907 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
908 | | --dataroo | --dataro | --datar) | |
909 | ac_prev=datarootdir ;; | |
910 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
911 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
912 | datarootdir=$ac_optarg ;; | |
913 | ||
914 | -disable-* | --disable-*) | |
915 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
916 | # Reject names that are not valid shell variable names. | |
917 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 918 | as_fn_error $? "invalid feature name: $ac_useropt" |
ef016f83 MF |
919 | ac_useropt_orig=$ac_useropt |
920 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
921 | case $ac_user_opts in | |
922 | *" | |
923 | "enable_$ac_useropt" | |
924 | "*) ;; | |
925 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
926 | ac_unrecognized_sep=', ';; | |
927 | esac | |
928 | eval enable_$ac_useropt=no ;; | |
929 | ||
930 | -docdir | --docdir | --docdi | --doc | --do) | |
931 | ac_prev=docdir ;; | |
932 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
933 | docdir=$ac_optarg ;; | |
934 | ||
935 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
936 | ac_prev=dvidir ;; | |
937 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
938 | dvidir=$ac_optarg ;; | |
939 | ||
940 | -enable-* | --enable-*) | |
941 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
942 | # Reject names that are not valid shell variable names. | |
943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 944 | as_fn_error $? "invalid feature name: $ac_useropt" |
ef016f83 MF |
945 | ac_useropt_orig=$ac_useropt |
946 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
947 | case $ac_user_opts in | |
948 | *" | |
949 | "enable_$ac_useropt" | |
950 | "*) ;; | |
951 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
952 | ac_unrecognized_sep=', ';; | |
953 | esac | |
954 | eval enable_$ac_useropt=\$ac_optarg ;; | |
955 | ||
956 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
957 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
958 | | --exec | --exe | --ex) | |
959 | ac_prev=exec_prefix ;; | |
960 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
961 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
962 | | --exec=* | --exe=* | --ex=*) | |
963 | exec_prefix=$ac_optarg ;; | |
964 | ||
965 | -gas | --gas | --ga | --g) | |
966 | # Obsolete; use --with-gas. | |
967 | with_gas=yes ;; | |
968 | ||
969 | -help | --help | --hel | --he | -h) | |
970 | ac_init_help=long ;; | |
971 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
972 | ac_init_help=recursive ;; | |
973 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
974 | ac_init_help=short ;; | |
975 | ||
976 | -host | --host | --hos | --ho) | |
977 | ac_prev=host_alias ;; | |
978 | -host=* | --host=* | --hos=* | --ho=*) | |
979 | host_alias=$ac_optarg ;; | |
980 | ||
981 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
982 | ac_prev=htmldir ;; | |
983 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
984 | | --ht=*) | |
985 | htmldir=$ac_optarg ;; | |
986 | ||
987 | -includedir | --includedir | --includedi | --included | --include \ | |
988 | | --includ | --inclu | --incl | --inc) | |
989 | ac_prev=includedir ;; | |
990 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
991 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
992 | includedir=$ac_optarg ;; | |
993 | ||
994 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
995 | ac_prev=infodir ;; | |
996 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
997 | infodir=$ac_optarg ;; | |
998 | ||
999 | -libdir | --libdir | --libdi | --libd) | |
1000 | ac_prev=libdir ;; | |
1001 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1002 | libdir=$ac_optarg ;; | |
1003 | ||
1004 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1005 | | --libexe | --libex | --libe) | |
1006 | ac_prev=libexecdir ;; | |
1007 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1008 | | --libexe=* | --libex=* | --libe=*) | |
1009 | libexecdir=$ac_optarg ;; | |
1010 | ||
1011 | -localedir | --localedir | --localedi | --localed | --locale) | |
1012 | ac_prev=localedir ;; | |
1013 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1014 | localedir=$ac_optarg ;; | |
1015 | ||
1016 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1017 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1018 | ac_prev=localstatedir ;; | |
1019 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1020 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1021 | localstatedir=$ac_optarg ;; | |
1022 | ||
1023 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1024 | ac_prev=mandir ;; | |
1025 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1026 | mandir=$ac_optarg ;; | |
1027 | ||
1028 | -nfp | --nfp | --nf) | |
1029 | # Obsolete; use --without-fp. | |
1030 | with_fp=no ;; | |
1031 | ||
1032 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1033 | | --no-cr | --no-c | -n) | |
1034 | no_create=yes ;; | |
1035 | ||
1036 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1037 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1038 | no_recursion=yes ;; | |
1039 | ||
1040 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1041 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1042 | | --oldin | --oldi | --old | --ol | --o) | |
1043 | ac_prev=oldincludedir ;; | |
1044 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1045 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1046 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1047 | oldincludedir=$ac_optarg ;; | |
1048 | ||
1049 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1050 | ac_prev=prefix ;; | |
1051 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1052 | prefix=$ac_optarg ;; | |
1053 | ||
1054 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1055 | | --program-pre | --program-pr | --program-p) | |
1056 | ac_prev=program_prefix ;; | |
1057 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1058 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1059 | program_prefix=$ac_optarg ;; | |
1060 | ||
1061 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1062 | | --program-suf | --program-su | --program-s) | |
1063 | ac_prev=program_suffix ;; | |
1064 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1065 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1066 | program_suffix=$ac_optarg ;; | |
1067 | ||
1068 | -program-transform-name | --program-transform-name \ | |
1069 | | --program-transform-nam | --program-transform-na \ | |
1070 | | --program-transform-n | --program-transform- \ | |
1071 | | --program-transform | --program-transfor \ | |
1072 | | --program-transfo | --program-transf \ | |
1073 | | --program-trans | --program-tran \ | |
1074 | | --progr-tra | --program-tr | --program-t) | |
1075 | ac_prev=program_transform_name ;; | |
1076 | -program-transform-name=* | --program-transform-name=* \ | |
1077 | | --program-transform-nam=* | --program-transform-na=* \ | |
1078 | | --program-transform-n=* | --program-transform-=* \ | |
1079 | | --program-transform=* | --program-transfor=* \ | |
1080 | | --program-transfo=* | --program-transf=* \ | |
1081 | | --program-trans=* | --program-tran=* \ | |
1082 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1083 | program_transform_name=$ac_optarg ;; | |
1084 | ||
1085 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1086 | ac_prev=pdfdir ;; | |
1087 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1088 | pdfdir=$ac_optarg ;; | |
1089 | ||
1090 | -psdir | --psdir | --psdi | --psd | --ps) | |
1091 | ac_prev=psdir ;; | |
1092 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1093 | psdir=$ac_optarg ;; | |
1094 | ||
1095 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1096 | | -silent | --silent | --silen | --sile | --sil) | |
1097 | silent=yes ;; | |
1098 | ||
1099 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1100 | ac_prev=sbindir ;; | |
1101 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1102 | | --sbi=* | --sb=*) | |
1103 | sbindir=$ac_optarg ;; | |
1104 | ||
1105 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1106 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1107 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1108 | | --sha | --sh) | |
1109 | ac_prev=sharedstatedir ;; | |
1110 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1111 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1112 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1113 | | --sha=* | --sh=*) | |
1114 | sharedstatedir=$ac_optarg ;; | |
1115 | ||
1116 | -site | --site | --sit) | |
1117 | ac_prev=site ;; | |
1118 | -site=* | --site=* | --sit=*) | |
1119 | site=$ac_optarg ;; | |
1120 | ||
1121 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1122 | ac_prev=srcdir ;; | |
1123 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1124 | srcdir=$ac_optarg ;; | |
1125 | ||
1126 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1127 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1128 | ac_prev=sysconfdir ;; | |
1129 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1130 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1131 | sysconfdir=$ac_optarg ;; | |
1132 | ||
1133 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1134 | ac_prev=target_alias ;; | |
1135 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1136 | target_alias=$ac_optarg ;; | |
1137 | ||
1138 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1139 | verbose=yes ;; | |
1140 | ||
1141 | -version | --version | --versio | --versi | --vers | -V) | |
1142 | ac_init_version=: ;; | |
1143 | ||
1144 | -with-* | --with-*) | |
1145 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1146 | # Reject names that are not valid shell variable names. | |
1147 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 1148 | as_fn_error $? "invalid package name: $ac_useropt" |
ef016f83 MF |
1149 | ac_useropt_orig=$ac_useropt |
1150 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1151 | case $ac_user_opts in | |
1152 | *" | |
1153 | "with_$ac_useropt" | |
1154 | "*) ;; | |
1155 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1156 | ac_unrecognized_sep=', ';; | |
1157 | esac | |
1158 | eval with_$ac_useropt=\$ac_optarg ;; | |
1159 | ||
1160 | -without-* | --without-*) | |
1161 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1162 | # Reject names that are not valid shell variable names. | |
1163 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 1164 | as_fn_error $? "invalid package name: $ac_useropt" |
ef016f83 MF |
1165 | ac_useropt_orig=$ac_useropt |
1166 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1167 | case $ac_user_opts in | |
1168 | *" | |
1169 | "with_$ac_useropt" | |
1170 | "*) ;; | |
1171 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1172 | ac_unrecognized_sep=', ';; | |
1173 | esac | |
1174 | eval with_$ac_useropt=no ;; | |
1175 | ||
1176 | --x) | |
1177 | # Obsolete; use --with-x. | |
1178 | with_x=yes ;; | |
1179 | ||
1180 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1181 | | --x-incl | --x-inc | --x-in | --x-i) | |
1182 | ac_prev=x_includes ;; | |
1183 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1184 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1185 | x_includes=$ac_optarg ;; | |
1186 | ||
1187 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1188 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1189 | ac_prev=x_libraries ;; | |
1190 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1191 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1192 | x_libraries=$ac_optarg ;; | |
1193 | ||
d0ac1c44 SM |
1194 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1195 | Try \`$0 --help' for more information" | |
ef016f83 MF |
1196 | ;; |
1197 | ||
1198 | *=*) | |
1199 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1200 | # Reject names that are not valid shell variable names. | |
1201 | case $ac_envvar in #( | |
1202 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1203 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
ef016f83 MF |
1204 | esac |
1205 | eval $ac_envvar=\$ac_optarg | |
1206 | export $ac_envvar ;; | |
1207 | ||
1208 | *) | |
1209 | # FIXME: should be removed in autoconf 3.0. | |
1210 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1211 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1212 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
d0ac1c44 | 1213 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
ef016f83 MF |
1214 | ;; |
1215 | ||
1216 | esac | |
1217 | done | |
1218 | ||
1219 | if test -n "$ac_prev"; then | |
1220 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
d0ac1c44 | 1221 | as_fn_error $? "missing argument to $ac_option" |
ef016f83 MF |
1222 | fi |
1223 | ||
1224 | if test -n "$ac_unrecognized_opts"; then | |
1225 | case $enable_option_checking in | |
1226 | no) ;; | |
d0ac1c44 | 1227 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ef016f83 MF |
1228 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1229 | esac | |
1230 | fi | |
1231 | ||
1232 | # Check all directory arguments for consistency. | |
1233 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1234 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1235 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1236 | libdir localedir mandir | |
1237 | do | |
1238 | eval ac_val=\$$ac_var | |
1239 | # Remove trailing slashes. | |
1240 | case $ac_val in | |
1241 | */ ) | |
1242 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1243 | eval $ac_var=\$ac_val;; | |
1244 | esac | |
1245 | # Be sure to have absolute directory names. | |
1246 | case $ac_val in | |
1247 | [\\/$]* | ?:[\\/]* ) continue;; | |
1248 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1249 | esac | |
d0ac1c44 | 1250 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
ef016f83 MF |
1251 | done |
1252 | ||
1253 | # There might be people who depend on the old broken behavior: `$host' | |
1254 | # used to hold the argument of --host etc. | |
1255 | # FIXME: To remove some day. | |
1256 | build=$build_alias | |
1257 | host=$host_alias | |
1258 | target=$target_alias | |
1259 | ||
1260 | # FIXME: To remove some day. | |
1261 | if test "x$host_alias" != x; then | |
1262 | if test "x$build_alias" = x; then | |
1263 | cross_compiling=maybe | |
ef016f83 MF |
1264 | elif test "x$build_alias" != "x$host_alias"; then |
1265 | cross_compiling=yes | |
1266 | fi | |
1267 | fi | |
1268 | ||
1269 | ac_tool_prefix= | |
1270 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1271 | ||
1272 | test "$silent" = yes && exec 6>/dev/null | |
1273 | ||
1274 | ||
1275 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1276 | ac_ls_di=`ls -di .` && | |
1277 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1278 | as_fn_error $? "working directory cannot be determined" |
ef016f83 | 1279 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1280 | as_fn_error $? "pwd does not report name of working directory" |
ef016f83 MF |
1281 | |
1282 | ||
1283 | # Find the source files, if location was not specified. | |
1284 | if test -z "$srcdir"; then | |
1285 | ac_srcdir_defaulted=yes | |
1286 | # Try the directory containing this script, then the parent directory. | |
1287 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1288 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1289 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1290 | X"$as_myself" : 'X\(//\)$' \| \ | |
1291 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1292 | $as_echo X"$as_myself" | | |
1293 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1294 | s//\1/ | |
1295 | q | |
1296 | } | |
1297 | /^X\(\/\/\)[^/].*/{ | |
1298 | s//\1/ | |
1299 | q | |
1300 | } | |
1301 | /^X\(\/\/\)$/{ | |
1302 | s//\1/ | |
1303 | q | |
1304 | } | |
1305 | /^X\(\/\).*/{ | |
1306 | s//\1/ | |
1307 | q | |
1308 | } | |
1309 | s/.*/./; q'` | |
1310 | srcdir=$ac_confdir | |
1311 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1312 | srcdir=.. | |
1313 | fi | |
1314 | else | |
1315 | ac_srcdir_defaulted=no | |
1316 | fi | |
1317 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1318 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1319 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
ef016f83 MF |
1320 | fi |
1321 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1322 | ac_abs_confdir=`( | |
d0ac1c44 | 1323 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
ef016f83 MF |
1324 | pwd)` |
1325 | # When building in place, set srcdir=. | |
1326 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1327 | srcdir=. | |
1328 | fi | |
1329 | # Remove unnecessary trailing slashes from srcdir. | |
1330 | # Double slashes in file names in object file debugging info | |
1331 | # mess up M-x gdb in Emacs. | |
1332 | case $srcdir in | |
1333 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1334 | esac | |
1335 | for ac_var in $ac_precious_vars; do | |
1336 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1337 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1338 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1339 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1340 | done | |
1341 | ||
1342 | # | |
1343 | # Report the --help message. | |
1344 | # | |
1345 | if test "$ac_init_help" = "long"; then | |
1346 | # Omit some internal or obsolete options to make the list less imposing. | |
1347 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1348 | cat <<_ACEOF | |
1349 | \`configure' configures this package to adapt to many kinds of systems. | |
1350 | ||
1351 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1352 | ||
1353 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1354 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1355 | ||
1356 | Defaults for the options are specified in brackets. | |
1357 | ||
1358 | Configuration: | |
1359 | -h, --help display this help and exit | |
1360 | --help=short display options specific to this package | |
1361 | --help=recursive display the short help of all the included packages | |
1362 | -V, --version display version information and exit | |
d0ac1c44 | 1363 | -q, --quiet, --silent do not print \`checking ...' messages |
ef016f83 MF |
1364 | --cache-file=FILE cache test results in FILE [disabled] |
1365 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1366 | -n, --no-create do not create output files | |
1367 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1368 | ||
1369 | Installation directories: | |
1370 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1371 | [$ac_default_prefix] | |
1372 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1373 | [PREFIX] | |
1374 | ||
1375 | By default, \`make install' will install all the files in | |
1376 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1377 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1378 | for instance \`--prefix=\$HOME'. | |
1379 | ||
1380 | For better control, use the options below. | |
1381 | ||
1382 | Fine tuning of the installation directories: | |
1383 | --bindir=DIR user executables [EPREFIX/bin] | |
1384 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1385 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1386 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1387 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1388 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1389 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1390 | --includedir=DIR C header files [PREFIX/include] | |
1391 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1392 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1393 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1394 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1395 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1396 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1397 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1398 | --htmldir=DIR html documentation [DOCDIR] | |
1399 | --dvidir=DIR dvi documentation [DOCDIR] | |
1400 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1401 | --psdir=DIR ps documentation [DOCDIR] | |
1402 | _ACEOF | |
1403 | ||
1404 | cat <<\_ACEOF | |
1405 | ||
1406 | Program names: | |
1407 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1408 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1409 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1410 | ||
1411 | System types: | |
1412 | --build=BUILD configure for building on BUILD [guessed] | |
1413 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1414 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1415 | _ACEOF | |
1416 | fi | |
1417 | ||
1418 | if test -n "$ac_init_help"; then | |
1419 | ||
1420 | cat <<\_ACEOF | |
1421 | ||
1422 | Optional Features: | |
1423 | --disable-option-checking ignore unrecognized --enable/--with options | |
1424 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1425 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
faa743bb | 1426 | --enable-plugins Enable support for plugins |
6bb11ab3 L |
1427 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1428 | --enable-static[=PKGS] build static libraries [default=yes] | |
1429 | --enable-fast-install[=PKGS] | |
1430 | optimize for fast installation [default=yes] | |
1431 | --disable-libtool-lock avoid locking (might break parallel builds) | |
d0ac1c44 SM |
1432 | --enable-maintainer-mode |
1433 | enable make rules and dependencies not useful (and | |
1434 | sometimes confusing) to the casual installer | |
8d0978fb MF |
1435 | --enable-sim-debug=opts Enable debugging flags (for developers of the sim |
1436 | itself) | |
1437 | --enable-sim-stdio Specify whether to use stdio for console | |
1438 | input/output | |
1439 | --enable-sim-trace=opts Enable tracing of simulated programs | |
1440 | --enable-sim-profile=opts | |
1441 | Enable profiling flags | |
35656e95 | 1442 | --enable-sim-assert Specify whether to perform random assertions |
16f7876d MF |
1443 | --enable-sim-environment=environment |
1444 | Specify mixed, user, virtual or operating | |
1445 | environment | |
347fe5bb MF |
1446 | --enable-sim-inline=inlines |
1447 | Specify which functions should be inlined | |
8d0978fb MF |
1448 | --enable-sim-endian=endian |
1449 | Specify target byte endian orientation | |
1450 | --enable-sim-alignment=align | |
1451 | Specify strict, nonstrict or forced alignment of | |
1452 | memory accesses | |
8d0978fb MF |
1453 | --enable-sim-default-model=model |
1454 | Specify default model to simulate | |
2232061b MF |
1455 | --enable-werror treat compile warnings as errors |
1456 | --enable-build-warnings enable build-time compiler warnings if gcc is used | |
1457 | --enable-sim-build-warnings | |
1458 | enable SIM specific build-time compiler warnings if | |
1459 | gcc is used | |
1517bd27 MF |
1460 | --enable-sim-hardware=LIST |
1461 | Specify the hardware to be included in the build. | |
ef016f83 MF |
1462 | |
1463 | Optional Packages: | |
1464 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1465 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
aadc9410 | 1466 | --with-system-zlib use installed libz |
6bb11ab3 L |
1467 | --with-pic try to use only PIC/non-PIC objects [default=use |
1468 | both] | |
1469 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
bf12d44e | 1470 | --with-pkgversion=PKG Use PKG in the version string in place of "SIM" |
ef016f83 MF |
1471 | --with-bugurl=URL Direct users to URL to report a bug |
1472 | ||
1473 | Some influential environment variables: | |
1474 | CC C compiler command | |
1475 | CFLAGS C compiler flags | |
1476 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1477 | nonstandard directory <lib dir> | |
1478 | LIBS libraries to pass to the linker, e.g. -l<library> | |
d0ac1c44 | 1479 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
ef016f83 MF |
1480 | you have headers in a nonstandard directory <include dir> |
1481 | CPP C preprocessor | |
5798d69f SM |
1482 | PKG_CONFIG path to pkg-config utility |
1483 | PKG_CONFIG_PATH | |
1484 | directories to add to pkg-config's search path | |
1485 | PKG_CONFIG_LIBDIR | |
1486 | path overriding pkg-config's built-in search path | |
1487 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | |
1488 | SDL_LIBS linker flags for SDL, overriding pkg-config | |
ef016f83 MF |
1489 | |
1490 | Use these variables to override the choices made by `configure' or to help | |
1491 | it to find libraries and programs with nonstandard names/locations. | |
1492 | ||
1493 | Report bugs to the package provider. | |
1494 | _ACEOF | |
1495 | ac_status=$? | |
1496 | fi | |
1497 | ||
1498 | if test "$ac_init_help" = "recursive"; then | |
1499 | # If there are subdirs, report their specific --help. | |
1500 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1501 | test -d "$ac_dir" || | |
1502 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1503 | continue | |
1504 | ac_builddir=. | |
1505 | ||
1506 | case "$ac_dir" in | |
1507 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1508 | *) | |
1509 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1510 | # A ".." for each directory in $ac_dir_suffix. | |
1511 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1512 | case $ac_top_builddir_sub in | |
1513 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1514 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1515 | esac ;; | |
1516 | esac | |
1517 | ac_abs_top_builddir=$ac_pwd | |
1518 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1519 | # for backward compatibility: | |
1520 | ac_top_builddir=$ac_top_build_prefix | |
1521 | ||
1522 | case $srcdir in | |
1523 | .) # We are building in place. | |
1524 | ac_srcdir=. | |
1525 | ac_top_srcdir=$ac_top_builddir_sub | |
1526 | ac_abs_top_srcdir=$ac_pwd ;; | |
1527 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1528 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1529 | ac_top_srcdir=$srcdir | |
1530 | ac_abs_top_srcdir=$srcdir ;; | |
1531 | *) # Relative name. | |
1532 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1533 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1534 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1535 | esac | |
1536 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1537 | ||
1538 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1539 | # Check for guested configure. | |
1540 | if test -f "$ac_srcdir/configure.gnu"; then | |
1541 | echo && | |
1542 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1543 | elif test -f "$ac_srcdir/configure"; then | |
1544 | echo && | |
1545 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1546 | else | |
1547 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1548 | fi || ac_status=$? | |
1549 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1550 | done | |
1551 | fi | |
1552 | ||
1553 | test -n "$ac_init_help" && exit $ac_status | |
1554 | if $ac_init_version; then | |
1555 | cat <<\_ACEOF | |
1556 | configure | |
d0ac1c44 | 1557 | generated by GNU Autoconf 2.69 |
ef016f83 | 1558 | |
d0ac1c44 | 1559 | Copyright (C) 2012 Free Software Foundation, Inc. |
ef016f83 MF |
1560 | This configure script is free software; the Free Software Foundation |
1561 | gives unlimited permission to copy, distribute and modify it. | |
1562 | _ACEOF | |
1563 | exit | |
1564 | fi | |
1565 | ||
1566 | ## ------------------------ ## | |
1567 | ## Autoconf initialization. ## | |
1568 | ## ------------------------ ## | |
1569 | ||
1570 | # ac_fn_c_try_compile LINENO | |
1571 | # -------------------------- | |
1572 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1573 | ac_fn_c_try_compile () | |
1574 | { | |
1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1576 | rm -f conftest.$ac_objext | |
1577 | if { { ac_try="$ac_compile" | |
1578 | case "(($ac_try" in | |
1579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1580 | *) ac_try_echo=$ac_try;; | |
1581 | esac | |
1582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1583 | $as_echo "$ac_try_echo"; } >&5 | |
1584 | (eval "$ac_compile") 2>conftest.err | |
1585 | ac_status=$? | |
1586 | if test -s conftest.err; then | |
1587 | grep -v '^ *+' conftest.err >conftest.er1 | |
1588 | cat conftest.er1 >&5 | |
1589 | mv -f conftest.er1 conftest.err | |
1590 | fi | |
1591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1592 | test $ac_status = 0; } && { | |
1593 | test -z "$ac_c_werror_flag" || | |
1594 | test ! -s conftest.err | |
1595 | } && test -s conftest.$ac_objext; then : | |
1596 | ac_retval=0 | |
1597 | else | |
1598 | $as_echo "$as_me: failed program was:" >&5 | |
1599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1600 | ||
1601 | ac_retval=1 | |
1602 | fi | |
d0ac1c44 SM |
1603 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1604 | as_fn_set_status $ac_retval | |
ef016f83 MF |
1605 | |
1606 | } # ac_fn_c_try_compile | |
1607 | ||
1608 | # ac_fn_c_try_cpp LINENO | |
1609 | # ---------------------- | |
1610 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1611 | ac_fn_c_try_cpp () | |
1612 | { | |
1613 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1614 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1615 | case "(($ac_try" in | |
1616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1617 | *) ac_try_echo=$ac_try;; | |
1618 | esac | |
1619 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1620 | $as_echo "$ac_try_echo"; } >&5 | |
1621 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1622 | ac_status=$? | |
1623 | if test -s conftest.err; then | |
1624 | grep -v '^ *+' conftest.err >conftest.er1 | |
1625 | cat conftest.er1 >&5 | |
1626 | mv -f conftest.er1 conftest.err | |
1627 | fi | |
1628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1629 | test $ac_status = 0; } > conftest.i && { |
ef016f83 MF |
1630 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1631 | test ! -s conftest.err | |
1632 | }; then : | |
1633 | ac_retval=0 | |
1634 | else | |
1635 | $as_echo "$as_me: failed program was:" >&5 | |
1636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1637 | ||
1638 | ac_retval=1 | |
1639 | fi | |
d0ac1c44 SM |
1640 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1641 | as_fn_set_status $ac_retval | |
ef016f83 MF |
1642 | |
1643 | } # ac_fn_c_try_cpp | |
1644 | ||
1645 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1646 | # ------------------------------------------------------- | |
1647 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1648 | # the include files in INCLUDES and setting the cache variable VAR | |
1649 | # accordingly. | |
1650 | ac_fn_c_check_header_mongrel () | |
1651 | { | |
1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1653 | if eval \${$3+:} false; then : |
ef016f83 MF |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1655 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1656 | if eval \${$3+:} false; then : |
ef016f83 MF |
1657 | $as_echo_n "(cached) " >&6 |
1658 | fi | |
1659 | eval ac_res=\$$3 | |
1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1661 | $as_echo "$ac_res" >&6; } | |
1662 | else | |
1663 | # Is the header compilable? | |
1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1665 | $as_echo_n "checking $2 usability... " >&6; } | |
1666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1667 | /* end confdefs.h. */ | |
1668 | $4 | |
1669 | #include <$2> | |
1670 | _ACEOF | |
1671 | if ac_fn_c_try_compile "$LINENO"; then : | |
1672 | ac_header_compiler=yes | |
1673 | else | |
1674 | ac_header_compiler=no | |
1675 | fi | |
1676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1678 | $as_echo "$ac_header_compiler" >&6; } | |
1679 | ||
1680 | # Is the header present? | |
1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1682 | $as_echo_n "checking $2 presence... " >&6; } | |
1683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1684 | /* end confdefs.h. */ | |
1685 | #include <$2> | |
1686 | _ACEOF | |
1687 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1688 | ac_header_preproc=yes | |
1689 | else | |
1690 | ac_header_preproc=no | |
1691 | fi | |
d0ac1c44 | 1692 | rm -f conftest.err conftest.i conftest.$ac_ext |
ef016f83 MF |
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1694 | $as_echo "$ac_header_preproc" >&6; } | |
1695 | ||
1696 | # So? What about this header? | |
1697 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1698 | yes:no: ) | |
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1700 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1702 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1703 | ;; | |
1704 | no:yes:* ) | |
1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1706 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1708 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1710 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1712 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1714 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1715 | ;; | |
1716 | esac | |
1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1718 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1719 | if eval \${$3+:} false; then : |
ef016f83 MF |
1720 | $as_echo_n "(cached) " >&6 |
1721 | else | |
1722 | eval "$3=\$ac_header_compiler" | |
1723 | fi | |
1724 | eval ac_res=\$$3 | |
1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1726 | $as_echo "$ac_res" >&6; } | |
1727 | fi | |
d0ac1c44 | 1728 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ef016f83 MF |
1729 | |
1730 | } # ac_fn_c_check_header_mongrel | |
1731 | ||
1732 | # ac_fn_c_try_run LINENO | |
1733 | # ---------------------- | |
1734 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1735 | # that executables *can* be run. | |
1736 | ac_fn_c_try_run () | |
1737 | { | |
1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1739 | if { { ac_try="$ac_link" | |
1740 | case "(($ac_try" in | |
1741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1742 | *) ac_try_echo=$ac_try;; | |
1743 | esac | |
1744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1745 | $as_echo "$ac_try_echo"; } >&5 | |
1746 | (eval "$ac_link") 2>&5 | |
1747 | ac_status=$? | |
1748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1749 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1750 | { { case "(($ac_try" in | |
1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1752 | *) ac_try_echo=$ac_try;; | |
1753 | esac | |
1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1755 | $as_echo "$ac_try_echo"; } >&5 | |
1756 | (eval "$ac_try") 2>&5 | |
1757 | ac_status=$? | |
1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1759 | test $ac_status = 0; }; }; then : | |
1760 | ac_retval=0 | |
1761 | else | |
1762 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1763 | $as_echo "$as_me: failed program was:" >&5 | |
1764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1765 | ||
1766 | ac_retval=$ac_status | |
1767 | fi | |
1768 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1770 | as_fn_set_status $ac_retval | |
ef016f83 MF |
1771 | |
1772 | } # ac_fn_c_try_run | |
1773 | ||
1774 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1775 | # ------------------------------------------------------- | |
1776 | # Tests whether HEADER exists and can be compiled using the include files in | |
1777 | # INCLUDES, setting the cache variable VAR accordingly. | |
1778 | ac_fn_c_check_header_compile () | |
1779 | { | |
1780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1782 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1783 | if eval \${$3+:} false; then : |
ef016f83 MF |
1784 | $as_echo_n "(cached) " >&6 |
1785 | else | |
1786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1787 | /* end confdefs.h. */ | |
1788 | $4 | |
1789 | #include <$2> | |
1790 | _ACEOF | |
1791 | if ac_fn_c_try_compile "$LINENO"; then : | |
1792 | eval "$3=yes" | |
1793 | else | |
1794 | eval "$3=no" | |
1795 | fi | |
1796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1797 | fi | |
1798 | eval ac_res=\$$3 | |
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1800 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1801 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ef016f83 MF |
1802 | |
1803 | } # ac_fn_c_check_header_compile | |
1804 | ||
1805 | # ac_fn_c_try_link LINENO | |
1806 | # ----------------------- | |
1807 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1808 | ac_fn_c_try_link () | |
1809 | { | |
1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1811 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1812 | if { { ac_try="$ac_link" | |
1813 | case "(($ac_try" in | |
1814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1815 | *) ac_try_echo=$ac_try;; | |
1816 | esac | |
1817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1818 | $as_echo "$ac_try_echo"; } >&5 | |
1819 | (eval "$ac_link") 2>conftest.err | |
1820 | ac_status=$? | |
1821 | if test -s conftest.err; then | |
1822 | grep -v '^ *+' conftest.err >conftest.er1 | |
1823 | cat conftest.er1 >&5 | |
1824 | mv -f conftest.er1 conftest.err | |
1825 | fi | |
1826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1827 | test $ac_status = 0; } && { | |
1828 | test -z "$ac_c_werror_flag" || | |
1829 | test ! -s conftest.err | |
1830 | } && test -s conftest$ac_exeext && { | |
1831 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1832 | test -x conftest$ac_exeext |
ef016f83 MF |
1833 | }; then : |
1834 | ac_retval=0 | |
1835 | else | |
1836 | $as_echo "$as_me: failed program was:" >&5 | |
1837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1838 | ||
1839 | ac_retval=1 | |
1840 | fi | |
1841 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1842 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1843 | # interfere with the next link command; also delete a directory that is | |
1844 | # left behind by Apple's compiler. We do this before executing the actions. | |
1845 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1846 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1847 | as_fn_set_status $ac_retval | |
ef016f83 MF |
1848 | |
1849 | } # ac_fn_c_try_link | |
1850 | ||
1851 | # ac_fn_c_check_func LINENO FUNC VAR | |
1852 | # ---------------------------------- | |
1853 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1854 | ac_fn_c_check_func () | |
1855 | { | |
1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1858 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1859 | if eval \${$3+:} false; then : |
ef016f83 MF |
1860 | $as_echo_n "(cached) " >&6 |
1861 | else | |
1862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1863 | /* end confdefs.h. */ | |
1864 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1866 | #define $2 innocuous_$2 | |
1867 | ||
1868 | /* System header to define __stub macros and hopefully few prototypes, | |
1869 | which can conflict with char $2 (); below. | |
1870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1871 | <limits.h> exists even on freestanding compilers. */ | |
1872 | ||
1873 | #ifdef __STDC__ | |
1874 | # include <limits.h> | |
1875 | #else | |
1876 | # include <assert.h> | |
1877 | #endif | |
1878 | ||
1879 | #undef $2 | |
1880 | ||
1881 | /* Override any GCC internal prototype to avoid an error. | |
1882 | Use char because int might match the return type of a GCC | |
1883 | builtin and then its argument prototype would still apply. */ | |
1884 | #ifdef __cplusplus | |
1885 | extern "C" | |
1886 | #endif | |
1887 | char $2 (); | |
1888 | /* The GNU C library defines this for functions which it implements | |
1889 | to always fail with ENOSYS. Some functions are actually named | |
1890 | something starting with __ and the normal name is an alias. */ | |
1891 | #if defined __stub_$2 || defined __stub___$2 | |
1892 | choke me | |
1893 | #endif | |
1894 | ||
1895 | int | |
1896 | main () | |
1897 | { | |
1898 | return $2 (); | |
1899 | ; | |
1900 | return 0; | |
1901 | } | |
1902 | _ACEOF | |
1903 | if ac_fn_c_try_link "$LINENO"; then : | |
1904 | eval "$3=yes" | |
1905 | else | |
1906 | eval "$3=no" | |
1907 | fi | |
1908 | rm -f core conftest.err conftest.$ac_objext \ | |
1909 | conftest$ac_exeext conftest.$ac_ext | |
1910 | fi | |
1911 | eval ac_res=\$$3 | |
1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1913 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1914 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ef016f83 MF |
1915 | |
1916 | } # ac_fn_c_check_func | |
936df756 MF |
1917 | |
1918 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1919 | # ---------------------------------------------------- | |
1920 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1921 | # INCLUDES, setting cache variable VAR accordingly. | |
1922 | ac_fn_c_check_member () | |
1923 | { | |
1924 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1926 | $as_echo_n "checking for $2.$3... " >&6; } | |
d0ac1c44 | 1927 | if eval \${$4+:} false; then : |
936df756 MF |
1928 | $as_echo_n "(cached) " >&6 |
1929 | else | |
1930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1931 | /* end confdefs.h. */ | |
1932 | $5 | |
1933 | int | |
1934 | main () | |
1935 | { | |
1936 | static $2 ac_aggr; | |
1937 | if (ac_aggr.$3) | |
1938 | return 0; | |
1939 | ; | |
1940 | return 0; | |
1941 | } | |
1942 | _ACEOF | |
1943 | if ac_fn_c_try_compile "$LINENO"; then : | |
1944 | eval "$4=yes" | |
1945 | else | |
1946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1947 | /* end confdefs.h. */ | |
1948 | $5 | |
1949 | int | |
1950 | main () | |
1951 | { | |
1952 | static $2 ac_aggr; | |
1953 | if (sizeof ac_aggr.$3) | |
1954 | return 0; | |
1955 | ; | |
1956 | return 0; | |
1957 | } | |
1958 | _ACEOF | |
1959 | if ac_fn_c_try_compile "$LINENO"; then : | |
1960 | eval "$4=yes" | |
1961 | else | |
1962 | eval "$4=no" | |
1963 | fi | |
1964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1965 | fi | |
1966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1967 | fi | |
1968 | eval ac_res=\$$4 | |
1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1970 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1971 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
936df756 MF |
1972 | |
1973 | } # ac_fn_c_check_member | |
1974 | ||
1975 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1976 | # ------------------------------------------- | |
1977 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1978 | # variable VAR accordingly. | |
1979 | ac_fn_c_check_type () | |
1980 | { | |
1981 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1983 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1984 | if eval \${$3+:} false; then : |
936df756 MF |
1985 | $as_echo_n "(cached) " >&6 |
1986 | else | |
1987 | eval "$3=no" | |
1988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1989 | /* end confdefs.h. */ | |
1990 | $4 | |
1991 | int | |
1992 | main () | |
1993 | { | |
1994 | if (sizeof ($2)) | |
1995 | return 0; | |
1996 | ; | |
1997 | return 0; | |
1998 | } | |
1999 | _ACEOF | |
2000 | if ac_fn_c_try_compile "$LINENO"; then : | |
2001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2002 | /* end confdefs.h. */ | |
2003 | $4 | |
2004 | int | |
2005 | main () | |
2006 | { | |
2007 | if (sizeof (($2))) | |
2008 | return 0; | |
2009 | ; | |
2010 | return 0; | |
2011 | } | |
2012 | _ACEOF | |
2013 | if ac_fn_c_try_compile "$LINENO"; then : | |
2014 | ||
2015 | else | |
2016 | eval "$3=yes" | |
2017 | fi | |
2018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2019 | fi | |
2020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2021 | fi | |
2022 | eval ac_res=\$$3 | |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2024 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 2025 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
936df756 MF |
2026 | |
2027 | } # ac_fn_c_check_type | |
ef016f83 MF |
2028 | cat >config.log <<_ACEOF |
2029 | This file contains any messages produced by compilers while | |
2030 | running configure, to aid debugging if configure makes a mistake. | |
2031 | ||
2032 | It was created by $as_me, which was | |
d0ac1c44 | 2033 | generated by GNU Autoconf 2.69. Invocation command line was |
ef016f83 MF |
2034 | |
2035 | $ $0 $@ | |
2036 | ||
2037 | _ACEOF | |
2038 | exec 5>>config.log | |
2039 | { | |
2040 | cat <<_ASUNAME | |
2041 | ## --------- ## | |
2042 | ## Platform. ## | |
2043 | ## --------- ## | |
2044 | ||
2045 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2046 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2047 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2048 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2049 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2050 | ||
2051 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2052 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2053 | ||
2054 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2055 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2056 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2057 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2058 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2059 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2060 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2061 | ||
2062 | _ASUNAME | |
2063 | ||
2064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2065 | for as_dir in $PATH | |
2066 | do | |
2067 | IFS=$as_save_IFS | |
2068 | test -z "$as_dir" && as_dir=. | |
2069 | $as_echo "PATH: $as_dir" | |
2070 | done | |
2071 | IFS=$as_save_IFS | |
2072 | ||
2073 | } >&5 | |
2074 | ||
2075 | cat >&5 <<_ACEOF | |
2076 | ||
2077 | ||
2078 | ## ----------- ## | |
2079 | ## Core tests. ## | |
2080 | ## ----------- ## | |
2081 | ||
2082 | _ACEOF | |
2083 | ||
2084 | ||
2085 | # Keep a trace of the command line. | |
2086 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2087 | # Strip out --silent because we don't want to record it for future runs. | |
2088 | # Also quote any args containing shell meta-characters. | |
2089 | # Make two passes to allow for proper duplicate-argument suppression. | |
2090 | ac_configure_args= | |
2091 | ac_configure_args0= | |
2092 | ac_configure_args1= | |
2093 | ac_must_keep_next=false | |
2094 | for ac_pass in 1 2 | |
2095 | do | |
2096 | for ac_arg | |
2097 | do | |
2098 | case $ac_arg in | |
2099 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2100 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2101 | | -silent | --silent | --silen | --sile | --sil) | |
2102 | continue ;; | |
2103 | *\'*) | |
2104 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2105 | esac | |
2106 | case $ac_pass in | |
2107 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2108 | 2) | |
2109 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2110 | if test $ac_must_keep_next = true; then | |
2111 | ac_must_keep_next=false # Got value, back to normal. | |
2112 | else | |
2113 | case $ac_arg in | |
2114 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2115 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2116 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2117 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2118 | case "$ac_configure_args0 " in | |
2119 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2120 | esac | |
2121 | ;; | |
2122 | -* ) ac_must_keep_next=true ;; | |
2123 | esac | |
2124 | fi | |
2125 | as_fn_append ac_configure_args " '$ac_arg'" | |
2126 | ;; | |
2127 | esac | |
2128 | done | |
2129 | done | |
2130 | { ac_configure_args0=; unset ac_configure_args0;} | |
2131 | { ac_configure_args1=; unset ac_configure_args1;} | |
2132 | ||
2133 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2134 | # config.log. We remove comments because anyway the quotes in there | |
2135 | # would cause problems or look ugly. | |
2136 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2137 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2138 | trap 'exit_status=$? | |
2139 | # Save into config.log some information that might help in debugging. | |
2140 | { | |
2141 | echo | |
2142 | ||
d0ac1c44 | 2143 | $as_echo "## ---------------- ## |
ef016f83 | 2144 | ## Cache variables. ## |
d0ac1c44 | 2145 | ## ---------------- ##" |
ef016f83 MF |
2146 | echo |
2147 | # The following way of writing the cache mishandles newlines in values, | |
2148 | ( | |
2149 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2150 | eval ac_val=\$$ac_var | |
2151 | case $ac_val in #( | |
2152 | *${as_nl}*) | |
2153 | case $ac_var in #( | |
2154 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2155 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2156 | esac | |
2157 | case $ac_var in #( | |
2158 | _ | IFS | as_nl) ;; #( | |
2159 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2160 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2161 | esac ;; | |
2162 | esac | |
2163 | done | |
2164 | (set) 2>&1 | | |
2165 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2166 | *${as_nl}ac_space=\ *) | |
2167 | sed -n \ | |
2168 | "s/'\''/'\''\\\\'\'''\''/g; | |
2169 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2170 | ;; #( | |
2171 | *) | |
2172 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2173 | ;; | |
2174 | esac | | |
2175 | sort | |
2176 | ) | |
2177 | echo | |
2178 | ||
d0ac1c44 | 2179 | $as_echo "## ----------------- ## |
ef016f83 | 2180 | ## Output variables. ## |
d0ac1c44 | 2181 | ## ----------------- ##" |
ef016f83 MF |
2182 | echo |
2183 | for ac_var in $ac_subst_vars | |
2184 | do | |
2185 | eval ac_val=\$$ac_var | |
2186 | case $ac_val in | |
2187 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2188 | esac | |
2189 | $as_echo "$ac_var='\''$ac_val'\''" | |
2190 | done | sort | |
2191 | echo | |
2192 | ||
2193 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2194 | $as_echo "## ------------------- ## |
ef016f83 | 2195 | ## File substitutions. ## |
d0ac1c44 | 2196 | ## ------------------- ##" |
ef016f83 MF |
2197 | echo |
2198 | for ac_var in $ac_subst_files | |
2199 | do | |
2200 | eval ac_val=\$$ac_var | |
2201 | case $ac_val in | |
2202 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2203 | esac | |
2204 | $as_echo "$ac_var='\''$ac_val'\''" | |
2205 | done | sort | |
2206 | echo | |
2207 | fi | |
2208 | ||
2209 | if test -s confdefs.h; then | |
d0ac1c44 | 2210 | $as_echo "## ----------- ## |
ef016f83 | 2211 | ## confdefs.h. ## |
d0ac1c44 | 2212 | ## ----------- ##" |
ef016f83 MF |
2213 | echo |
2214 | cat confdefs.h | |
2215 | echo | |
2216 | fi | |
2217 | test "$ac_signal" != 0 && | |
2218 | $as_echo "$as_me: caught signal $ac_signal" | |
2219 | $as_echo "$as_me: exit $exit_status" | |
2220 | } >&5 | |
2221 | rm -f core *.core core.conftest.* && | |
2222 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2223 | exit $exit_status | |
2224 | ' 0 | |
2225 | for ac_signal in 1 2 13 15; do | |
2226 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2227 | done | |
2228 | ac_signal=0 | |
2229 | ||
2230 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2231 | rm -f -r conftest* confdefs.h | |
2232 | ||
2233 | $as_echo "/* confdefs.h */" > confdefs.h | |
2234 | ||
2235 | # Predefined preprocessor variables. | |
2236 | ||
2237 | cat >>confdefs.h <<_ACEOF | |
2238 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2239 | _ACEOF | |
2240 | ||
2241 | cat >>confdefs.h <<_ACEOF | |
2242 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2243 | _ACEOF | |
2244 | ||
2245 | cat >>confdefs.h <<_ACEOF | |
2246 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2247 | _ACEOF | |
2248 | ||
2249 | cat >>confdefs.h <<_ACEOF | |
2250 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2251 | _ACEOF | |
2252 | ||
2253 | cat >>confdefs.h <<_ACEOF | |
2254 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2255 | _ACEOF | |
2256 | ||
2257 | cat >>confdefs.h <<_ACEOF | |
2258 | #define PACKAGE_URL "$PACKAGE_URL" | |
2259 | _ACEOF | |
2260 | ||
2261 | ||
2262 | # Let the site file select an alternate cache file if it wants to. | |
2263 | # Prefer an explicitly selected file to automatically selected ones. | |
2264 | ac_site_file1=NONE | |
2265 | ac_site_file2=NONE | |
2266 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2267 | # We do not want a PATH search for config.site. |
2268 | case $CONFIG_SITE in #(( | |
2269 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2270 | */*) ac_site_file1=$CONFIG_SITE;; | |
2271 | *) ac_site_file1=./$CONFIG_SITE;; | |
2272 | esac | |
ef016f83 MF |
2273 | elif test "x$prefix" != xNONE; then |
2274 | ac_site_file1=$prefix/share/config.site | |
2275 | ac_site_file2=$prefix/etc/config.site | |
2276 | else | |
2277 | ac_site_file1=$ac_default_prefix/share/config.site | |
2278 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2279 | fi | |
2280 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2281 | do | |
2282 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2283 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
ef016f83 MF |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2285 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2286 | sed 's/^/| /' "$ac_site_file" >&5 | |
d0ac1c44 SM |
2287 | . "$ac_site_file" \ |
2288 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2289 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2290 | as_fn_error $? "failed to load site script $ac_site_file | |
2291 | See \`config.log' for more details" "$LINENO" 5; } | |
ef016f83 MF |
2292 | fi |
2293 | done | |
2294 | ||
2295 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2296 | # Some versions of bash will fail to source /dev/null (special files |
2297 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2298 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
ef016f83 MF |
2299 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2300 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2301 | case $cache_file in | |
2302 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2303 | *) . "./$cache_file";; | |
2304 | esac | |
2305 | fi | |
2306 | else | |
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2308 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2309 | >$cache_file | |
2310 | fi | |
2311 | ||
2312 | # Check that the precious variables saved in the cache have kept the same | |
2313 | # value. | |
2314 | ac_cache_corrupted=false | |
2315 | for ac_var in $ac_precious_vars; do | |
2316 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2317 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2318 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2319 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2320 | case $ac_old_set,$ac_new_set in | |
2321 | set,) | |
2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2323 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2324 | ac_cache_corrupted=: ;; | |
2325 | ,set) | |
2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2327 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2328 | ac_cache_corrupted=: ;; | |
2329 | ,);; | |
2330 | *) | |
2331 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2332 | # differences in whitespace do not lead to failure. | |
2333 | ac_old_val_w=`echo x $ac_old_val` | |
2334 | ac_new_val_w=`echo x $ac_new_val` | |
2335 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2337 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2338 | ac_cache_corrupted=: | |
2339 | else | |
2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2341 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2342 | eval $ac_var=\$ac_old_val | |
2343 | fi | |
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2345 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2347 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2348 | fi;; | |
2349 | esac | |
2350 | # Pass precious variables to config.status. | |
2351 | if test "$ac_new_set" = set; then | |
2352 | case $ac_new_val in | |
2353 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2354 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2355 | esac | |
2356 | case " $ac_configure_args " in | |
2357 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2358 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2359 | esac | |
2360 | fi | |
2361 | done | |
2362 | if $ac_cache_corrupted; then | |
2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2364 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2365 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2366 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2367 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
ef016f83 MF |
2368 | fi |
2369 | ## -------------------- ## | |
2370 | ## Main body of script. ## | |
2371 | ## -------------------- ## | |
2372 | ||
2373 | ac_ext=c | |
2374 | ac_cpp='$CPP $CPPFLAGS' | |
2375 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2376 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2378 | ||
2379 | ||
6bb11ab3 L |
2380 | |
2381 | ||
2382 | ||
2383 | ||
2384 | ||
2385 | ac_ext=c | |
2386 | ac_cpp='$CPP $CPPFLAGS' | |
2387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2390 | if test -n "$ac_tool_prefix"; then | |
2391 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2392 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2394 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2395 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
2396 | $as_echo_n "(cached) " >&6 |
2397 | else | |
2398 | if test -n "$CC"; then | |
2399 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2400 | else | |
2401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2402 | for as_dir in $PATH | |
2403 | do | |
2404 | IFS=$as_save_IFS | |
2405 | test -z "$as_dir" && as_dir=. | |
2406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2408 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2410 | break 2 | |
2411 | fi | |
2412 | done | |
2413 | done | |
2414 | IFS=$as_save_IFS | |
2415 | ||
2416 | fi | |
2417 | fi | |
2418 | CC=$ac_cv_prog_CC | |
2419 | if test -n "$CC"; then | |
2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2421 | $as_echo "$CC" >&6; } | |
2422 | else | |
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2424 | $as_echo "no" >&6; } | |
2425 | fi | |
2426 | ||
2427 | ||
2428 | fi | |
2429 | if test -z "$ac_cv_prog_CC"; then | |
2430 | ac_ct_CC=$CC | |
2431 | # Extract the first word of "gcc", so it can be a program name with args. | |
2432 | set dummy gcc; ac_word=$2 | |
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2434 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2435 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bb11ab3 L |
2436 | $as_echo_n "(cached) " >&6 |
2437 | else | |
2438 | if test -n "$ac_ct_CC"; then | |
2439 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2440 | else | |
2441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2442 | for as_dir in $PATH | |
2443 | do | |
2444 | IFS=$as_save_IFS | |
2445 | test -z "$as_dir" && as_dir=. | |
2446 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2447 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2448 | ac_cv_prog_ac_ct_CC="gcc" |
2449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2450 | break 2 | |
2451 | fi | |
2452 | done | |
2453 | done | |
2454 | IFS=$as_save_IFS | |
2455 | ||
2456 | fi | |
2457 | fi | |
2458 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2459 | if test -n "$ac_ct_CC"; then | |
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2461 | $as_echo "$ac_ct_CC" >&6; } | |
2462 | else | |
2463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2464 | $as_echo "no" >&6; } | |
2465 | fi | |
2466 | ||
2467 | if test "x$ac_ct_CC" = x; then | |
2468 | CC="" | |
2469 | else | |
2470 | case $cross_compiling:$ac_tool_warned in | |
2471 | yes:) | |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2473 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2474 | ac_tool_warned=yes ;; | |
2475 | esac | |
2476 | CC=$ac_ct_CC | |
2477 | fi | |
2478 | else | |
2479 | CC="$ac_cv_prog_CC" | |
2480 | fi | |
2481 | ||
2482 | if test -z "$CC"; then | |
2483 | if test -n "$ac_tool_prefix"; then | |
2484 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2485 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2487 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2488 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
2489 | $as_echo_n "(cached) " >&6 |
2490 | else | |
2491 | if test -n "$CC"; then | |
2492 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2493 | else | |
2494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2495 | for as_dir in $PATH | |
2496 | do | |
2497 | IFS=$as_save_IFS | |
2498 | test -z "$as_dir" && as_dir=. | |
2499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2501 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2503 | break 2 | |
2504 | fi | |
2505 | done | |
2506 | done | |
2507 | IFS=$as_save_IFS | |
2508 | ||
2509 | fi | |
2510 | fi | |
2511 | CC=$ac_cv_prog_CC | |
2512 | if test -n "$CC"; then | |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2514 | $as_echo "$CC" >&6; } | |
2515 | else | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2517 | $as_echo "no" >&6; } | |
2518 | fi | |
2519 | ||
2520 | ||
2521 | fi | |
2522 | fi | |
2523 | if test -z "$CC"; then | |
2524 | # Extract the first word of "cc", so it can be a program name with args. | |
2525 | set dummy cc; ac_word=$2 | |
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2527 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2528 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
2529 | $as_echo_n "(cached) " >&6 |
2530 | else | |
2531 | if test -n "$CC"; then | |
2532 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2533 | else | |
2534 | ac_prog_rejected=no | |
2535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2536 | for as_dir in $PATH | |
2537 | do | |
2538 | IFS=$as_save_IFS | |
2539 | test -z "$as_dir" && as_dir=. | |
2540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2542 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2543 | ac_prog_rejected=yes | |
2544 | continue | |
2545 | fi | |
2546 | ac_cv_prog_CC="cc" | |
2547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2548 | break 2 | |
2549 | fi | |
2550 | done | |
2551 | done | |
2552 | IFS=$as_save_IFS | |
2553 | ||
2554 | if test $ac_prog_rejected = yes; then | |
2555 | # We found a bogon in the path, so make sure we never use it. | |
2556 | set dummy $ac_cv_prog_CC | |
2557 | shift | |
2558 | if test $# != 0; then | |
2559 | # We chose a different compiler from the bogus one. | |
2560 | # However, it has the same basename, so the bogon will be chosen | |
2561 | # first if we set CC to just the basename; use the full file name. | |
2562 | shift | |
2563 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2564 | fi | |
2565 | fi | |
2566 | fi | |
2567 | fi | |
2568 | CC=$ac_cv_prog_CC | |
2569 | if test -n "$CC"; then | |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2571 | $as_echo "$CC" >&6; } | |
2572 | else | |
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2574 | $as_echo "no" >&6; } | |
2575 | fi | |
2576 | ||
2577 | ||
2578 | fi | |
2579 | if test -z "$CC"; then | |
2580 | if test -n "$ac_tool_prefix"; then | |
2581 | for ac_prog in cl.exe | |
2582 | do | |
2583 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2584 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2586 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2587 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
2588 | $as_echo_n "(cached) " >&6 |
2589 | else | |
2590 | if test -n "$CC"; then | |
2591 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2592 | else | |
2593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2594 | for as_dir in $PATH | |
2595 | do | |
2596 | IFS=$as_save_IFS | |
2597 | test -z "$as_dir" && as_dir=. | |
2598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2600 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2602 | break 2 | |
2603 | fi | |
2604 | done | |
2605 | done | |
2606 | IFS=$as_save_IFS | |
2607 | ||
2608 | fi | |
2609 | fi | |
2610 | CC=$ac_cv_prog_CC | |
2611 | if test -n "$CC"; then | |
2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2613 | $as_echo "$CC" >&6; } | |
2614 | else | |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2616 | $as_echo "no" >&6; } | |
2617 | fi | |
2618 | ||
2619 | ||
2620 | test -n "$CC" && break | |
2621 | done | |
2622 | fi | |
2623 | if test -z "$CC"; then | |
2624 | ac_ct_CC=$CC | |
2625 | for ac_prog in cl.exe | |
2626 | do | |
2627 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2628 | set dummy $ac_prog; ac_word=$2 | |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2630 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2631 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bb11ab3 L |
2632 | $as_echo_n "(cached) " >&6 |
2633 | else | |
2634 | if test -n "$ac_ct_CC"; then | |
2635 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2636 | else | |
2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2638 | for as_dir in $PATH | |
2639 | do | |
2640 | IFS=$as_save_IFS | |
2641 | test -z "$as_dir" && as_dir=. | |
2642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2644 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2646 | break 2 | |
2647 | fi | |
2648 | done | |
2649 | done | |
2650 | IFS=$as_save_IFS | |
2651 | ||
2652 | fi | |
2653 | fi | |
2654 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2655 | if test -n "$ac_ct_CC"; then | |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2657 | $as_echo "$ac_ct_CC" >&6; } | |
2658 | else | |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2660 | $as_echo "no" >&6; } | |
2661 | fi | |
2662 | ||
2663 | ||
2664 | test -n "$ac_ct_CC" && break | |
2665 | done | |
2666 | ||
2667 | if test "x$ac_ct_CC" = x; then | |
2668 | CC="" | |
2669 | else | |
2670 | case $cross_compiling:$ac_tool_warned in | |
2671 | yes:) | |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2673 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2674 | ac_tool_warned=yes ;; | |
2675 | esac | |
2676 | CC=$ac_ct_CC | |
2677 | fi | |
2678 | fi | |
2679 | ||
2680 | fi | |
2681 | ||
2682 | ||
2683 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2684 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2685 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2686 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 L |
2687 | |
2688 | # Provide some information about the compiler. | |
2689 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2690 | set X $ac_compile | |
2691 | ac_compiler=$2 | |
2692 | for ac_option in --version -v -V -qversion; do | |
2693 | { { ac_try="$ac_compiler $ac_option >&5" | |
2694 | case "(($ac_try" in | |
2695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2696 | *) ac_try_echo=$ac_try;; | |
2697 | esac | |
2698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2699 | $as_echo "$ac_try_echo"; } >&5 | |
2700 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2701 | ac_status=$? | |
2702 | if test -s conftest.err; then | |
2703 | sed '10a\ | |
2704 | ... rest of stderr output deleted ... | |
2705 | 10q' conftest.err >conftest.er1 | |
2706 | cat conftest.er1 >&5 | |
6bb11ab3 | 2707 | fi |
d0ac1c44 | 2708 | rm -f conftest.er1 conftest.err |
6bb11ab3 L |
2709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2710 | test $ac_status = 0; } | |
2711 | done | |
2712 | ||
2713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2714 | /* end confdefs.h. */ | |
2715 | ||
2716 | int | |
2717 | main () | |
2718 | { | |
2719 | ||
2720 | ; | |
2721 | return 0; | |
2722 | } | |
2723 | _ACEOF | |
2724 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 2725 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
6bb11ab3 L |
2726 | # Try to create an executable without -o first, disregard a.out. |
2727 | # It will help us diagnose broken compilers, and finding out an intuition | |
2728 | # of exeext. | |
d0ac1c44 SM |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2730 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
6bb11ab3 L |
2731 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2732 | ||
2733 | # The possible output files: | |
2734 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2735 | ||
2736 | ac_rmfiles= | |
2737 | for ac_file in $ac_files | |
2738 | do | |
2739 | case $ac_file in | |
2740 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2741 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2742 | esac | |
2743 | done | |
2744 | rm -f $ac_rmfiles | |
2745 | ||
2746 | if { { ac_try="$ac_link_default" | |
2747 | case "(($ac_try" in | |
2748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2749 | *) ac_try_echo=$ac_try;; | |
2750 | esac | |
2751 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2752 | $as_echo "$ac_try_echo"; } >&5 | |
2753 | (eval "$ac_link_default") 2>&5 | |
2754 | ac_status=$? | |
2755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2756 | test $ac_status = 0; }; then : | |
2757 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2758 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2759 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2760 | # so that the user can short-circuit this test for compilers unknown to | |
2761 | # Autoconf. | |
2762 | for ac_file in $ac_files '' | |
2763 | do | |
2764 | test -f "$ac_file" || continue | |
2765 | case $ac_file in | |
2766 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2767 | ;; | |
2768 | [ab].out ) | |
2769 | # We found the default executable, but exeext='' is most | |
2770 | # certainly right. | |
2771 | break;; | |
2772 | *.* ) | |
2773 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2774 | then :; else | |
2775 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2776 | fi | |
2777 | # We set ac_cv_exeext here because the later test for it is not | |
2778 | # safe: cross compilers may not add the suffix if given an `-o' | |
2779 | # argument, so we may need to know it at that point already. | |
2780 | # Even if this section looks crufty: it has the advantage of | |
2781 | # actually working. | |
2782 | break;; | |
2783 | * ) | |
2784 | break;; | |
2785 | esac | |
2786 | done | |
2787 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2788 | ||
2789 | else | |
2790 | ac_file='' | |
2791 | fi | |
6bb11ab3 | 2792 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2794 | $as_echo "no" >&6; } | |
2795 | $as_echo "$as_me: failed program was:" >&5 | |
6bb11ab3 L |
2796 | sed 's/^/| /' conftest.$ac_ext >&5 |
2797 | ||
2798 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2799 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2800 | as_fn_error 77 "C compiler cannot create executables |
2801 | See \`config.log' for more details" "$LINENO" 5; } | |
2802 | else | |
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2804 | $as_echo "yes" >&6; } | |
6bb11ab3 | 2805 | fi |
d0ac1c44 SM |
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2807 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2809 | $as_echo "$ac_file" >&6; } | |
6bb11ab3 L |
2810 | ac_exeext=$ac_cv_exeext |
2811 | ||
d0ac1c44 | 2812 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
6bb11ab3 | 2813 | ac_clean_files=$ac_clean_files_save |
6bb11ab3 L |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2815 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2816 | if { { ac_try="$ac_link" | |
2817 | case "(($ac_try" in | |
2818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2819 | *) ac_try_echo=$ac_try;; | |
2820 | esac | |
2821 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2822 | $as_echo "$ac_try_echo"; } >&5 | |
2823 | (eval "$ac_link") 2>&5 | |
2824 | ac_status=$? | |
2825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2826 | test $ac_status = 0; }; then : | |
2827 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2828 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2829 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2830 | # `rm'. | |
2831 | for ac_file in conftest.exe conftest conftest.*; do | |
2832 | test -f "$ac_file" || continue | |
2833 | case $ac_file in | |
2834 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2835 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2836 | break;; | |
2837 | * ) break;; | |
2838 | esac | |
2839 | done | |
2840 | else | |
2841 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2842 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2843 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2844 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 | 2845 | fi |
d0ac1c44 | 2846 | rm -f conftest conftest$ac_cv_exeext |
6bb11ab3 L |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2848 | $as_echo "$ac_cv_exeext" >&6; } | |
2849 | ||
2850 | rm -f conftest.$ac_ext | |
2851 | EXEEXT=$ac_cv_exeext | |
2852 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
2853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2854 | /* end confdefs.h. */ | |
2855 | #include <stdio.h> | |
2856 | int | |
2857 | main () | |
2858 | { | |
2859 | FILE *f = fopen ("conftest.out", "w"); | |
2860 | return ferror (f) || fclose (f) != 0; | |
2861 | ||
2862 | ; | |
2863 | return 0; | |
2864 | } | |
2865 | _ACEOF | |
2866 | ac_clean_files="$ac_clean_files conftest.out" | |
2867 | # Check that the compiler produces executables we can run. If not, either | |
2868 | # the compiler is broken, or we cross compile. | |
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2870 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2871 | if test "$cross_compiling" != yes; then | |
2872 | { { ac_try="$ac_link" | |
2873 | case "(($ac_try" in | |
2874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2875 | *) ac_try_echo=$ac_try;; | |
2876 | esac | |
2877 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2878 | $as_echo "$ac_try_echo"; } >&5 | |
2879 | (eval "$ac_link") 2>&5 | |
2880 | ac_status=$? | |
2881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2882 | test $ac_status = 0; } | |
2883 | if { ac_try='./conftest$ac_cv_exeext' | |
2884 | { { case "(($ac_try" in | |
2885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2886 | *) ac_try_echo=$ac_try;; | |
2887 | esac | |
2888 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2889 | $as_echo "$ac_try_echo"; } >&5 | |
2890 | (eval "$ac_try") 2>&5 | |
2891 | ac_status=$? | |
2892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2893 | test $ac_status = 0; }; }; then | |
2894 | cross_compiling=no | |
2895 | else | |
2896 | if test "$cross_compiling" = maybe; then | |
2897 | cross_compiling=yes | |
2898 | else | |
2899 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2901 | as_fn_error $? "cannot run C compiled programs. | |
2902 | If you meant to cross compile, use \`--host'. | |
2903 | See \`config.log' for more details" "$LINENO" 5; } | |
2904 | fi | |
2905 | fi | |
2906 | fi | |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2908 | $as_echo "$cross_compiling" >&6; } | |
2909 | ||
2910 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2911 | ac_clean_files=$ac_clean_files_save | |
6bb11ab3 L |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2913 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 2914 | if ${ac_cv_objext+:} false; then : |
6bb11ab3 L |
2915 | $as_echo_n "(cached) " >&6 |
2916 | else | |
2917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2918 | /* end confdefs.h. */ | |
2919 | ||
2920 | int | |
2921 | main () | |
2922 | { | |
2923 | ||
2924 | ; | |
2925 | return 0; | |
2926 | } | |
2927 | _ACEOF | |
2928 | rm -f conftest.o conftest.obj | |
2929 | if { { ac_try="$ac_compile" | |
2930 | case "(($ac_try" in | |
2931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2932 | *) ac_try_echo=$ac_try;; | |
2933 | esac | |
2934 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2935 | $as_echo "$ac_try_echo"; } >&5 | |
2936 | (eval "$ac_compile") 2>&5 | |
2937 | ac_status=$? | |
2938 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2939 | test $ac_status = 0; }; then : | |
2940 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2941 | test -f "$ac_file" || continue; | |
2942 | case $ac_file in | |
2943 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2944 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2945 | break;; | |
2946 | esac | |
2947 | done | |
2948 | else | |
2949 | $as_echo "$as_me: failed program was:" >&5 | |
2950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2951 | ||
2952 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2953 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2954 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2955 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 L |
2956 | fi |
2957 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2958 | fi | |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2960 | $as_echo "$ac_cv_objext" >&6; } | |
2961 | OBJEXT=$ac_cv_objext | |
2962 | ac_objext=$OBJEXT | |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2964 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 2965 | if ${ac_cv_c_compiler_gnu+:} false; then : |
6bb11ab3 L |
2966 | $as_echo_n "(cached) " >&6 |
2967 | else | |
2968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2969 | /* end confdefs.h. */ | |
2970 | ||
2971 | int | |
2972 | main () | |
2973 | { | |
2974 | #ifndef __GNUC__ | |
2975 | choke me | |
2976 | #endif | |
2977 | ||
2978 | ; | |
2979 | return 0; | |
2980 | } | |
2981 | _ACEOF | |
2982 | if ac_fn_c_try_compile "$LINENO"; then : | |
2983 | ac_compiler_gnu=yes | |
2984 | else | |
2985 | ac_compiler_gnu=no | |
2986 | fi | |
2987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2988 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2989 | ||
2990 | fi | |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2992 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2993 | if test $ac_compiler_gnu = yes; then | |
2994 | GCC=yes | |
2995 | else | |
2996 | GCC= | |
2997 | fi | |
2998 | ac_test_CFLAGS=${CFLAGS+set} | |
2999 | ac_save_CFLAGS=$CFLAGS | |
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3001 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3002 | if ${ac_cv_prog_cc_g+:} false; then : |
6bb11ab3 L |
3003 | $as_echo_n "(cached) " >&6 |
3004 | else | |
3005 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3006 | ac_c_werror_flag=yes | |
3007 | ac_cv_prog_cc_g=no | |
3008 | CFLAGS="-g" | |
3009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3010 | /* end confdefs.h. */ | |
3011 | ||
3012 | int | |
3013 | main () | |
3014 | { | |
3015 | ||
3016 | ; | |
3017 | return 0; | |
3018 | } | |
3019 | _ACEOF | |
3020 | if ac_fn_c_try_compile "$LINENO"; then : | |
3021 | ac_cv_prog_cc_g=yes | |
3022 | else | |
3023 | CFLAGS="" | |
3024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3025 | /* end confdefs.h. */ | |
3026 | ||
3027 | int | |
3028 | main () | |
3029 | { | |
3030 | ||
3031 | ; | |
3032 | return 0; | |
3033 | } | |
3034 | _ACEOF | |
3035 | if ac_fn_c_try_compile "$LINENO"; then : | |
3036 | ||
3037 | else | |
3038 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3039 | CFLAGS="-g" | |
3040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3041 | /* end confdefs.h. */ | |
3042 | ||
3043 | int | |
3044 | main () | |
3045 | { | |
3046 | ||
3047 | ; | |
3048 | return 0; | |
3049 | } | |
3050 | _ACEOF | |
3051 | if ac_fn_c_try_compile "$LINENO"; then : | |
3052 | ac_cv_prog_cc_g=yes | |
3053 | fi | |
3054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3055 | fi | |
3056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3057 | fi | |
3058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3059 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3060 | fi | |
3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3062 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3063 | if test "$ac_test_CFLAGS" = set; then | |
3064 | CFLAGS=$ac_save_CFLAGS | |
3065 | elif test $ac_cv_prog_cc_g = yes; then | |
3066 | if test "$GCC" = yes; then | |
3067 | CFLAGS="-g -O2" | |
3068 | else | |
3069 | CFLAGS="-g" | |
3070 | fi | |
3071 | else | |
3072 | if test "$GCC" = yes; then | |
3073 | CFLAGS="-O2" | |
3074 | else | |
3075 | CFLAGS= | |
3076 | fi | |
3077 | fi | |
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3079 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3080 | if ${ac_cv_prog_cc_c89+:} false; then : |
6bb11ab3 L |
3081 | $as_echo_n "(cached) " >&6 |
3082 | else | |
3083 | ac_cv_prog_cc_c89=no | |
3084 | ac_save_CC=$CC | |
3085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3086 | /* end confdefs.h. */ | |
3087 | #include <stdarg.h> | |
3088 | #include <stdio.h> | |
d0ac1c44 | 3089 | struct stat; |
6bb11ab3 L |
3090 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3091 | struct buf { int x; }; | |
3092 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3093 | static char *e (p, i) | |
3094 | char **p; | |
3095 | int i; | |
3096 | { | |
3097 | return p[i]; | |
3098 | } | |
3099 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3100 | { | |
3101 | char *s; | |
3102 | va_list v; | |
3103 | va_start (v,p); | |
3104 | s = g (p, va_arg (v,int)); | |
3105 | va_end (v); | |
3106 | return s; | |
3107 | } | |
3108 | ||
3109 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3110 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3111 | These don't provoke an error unfortunately, instead are silently treated | |
3112 | as 'x'. The following induces an error, until -std is added to get | |
3113 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3114 | array size at least. It's necessary to write '\x00'==0 to get something | |
3115 | that's true only with -std. */ | |
3116 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3117 | ||
3118 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3119 | inside strings and character constants. */ | |
3120 | #define FOO(x) 'x' | |
3121 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3122 | ||
3123 | int test (int i, double x); | |
3124 | struct s1 {int (*f) (int a);}; | |
3125 | struct s2 {int (*f) (double a);}; | |
3126 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3127 | int argc; | |
3128 | char **argv; | |
3129 | int | |
3130 | main () | |
3131 | { | |
3132 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3133 | ; | |
3134 | return 0; | |
3135 | } | |
3136 | _ACEOF | |
3137 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3138 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3139 | do | |
3140 | CC="$ac_save_CC $ac_arg" | |
3141 | if ac_fn_c_try_compile "$LINENO"; then : | |
3142 | ac_cv_prog_cc_c89=$ac_arg | |
3143 | fi | |
3144 | rm -f core conftest.err conftest.$ac_objext | |
3145 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3146 | done | |
3147 | rm -f conftest.$ac_ext | |
3148 | CC=$ac_save_CC | |
3149 | ||
3150 | fi | |
3151 | # AC_CACHE_VAL | |
3152 | case "x$ac_cv_prog_cc_c89" in | |
3153 | x) | |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3155 | $as_echo "none needed" >&6; } ;; | |
3156 | xno) | |
3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3158 | $as_echo "unsupported" >&6; } ;; | |
3159 | *) | |
3160 | CC="$CC $ac_cv_prog_cc_c89" | |
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3162 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3163 | esac | |
3164 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3165 | ||
3166 | fi | |
3167 | ||
3168 | ac_ext=c | |
3169 | ac_cpp='$CPP $CPPFLAGS' | |
3170 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3171 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3172 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3173 | ||
ebe9564b MF |
3174 | ac_ext=c |
3175 | ac_cpp='$CPP $CPPFLAGS' | |
3176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3180 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3181 | # On Suns, sometimes $CPP names a directory. | |
3182 | if test -n "$CPP" && test -d "$CPP"; then | |
3183 | CPP= | |
3184 | fi | |
3185 | if test -z "$CPP"; then | |
3186 | if ${ac_cv_prog_CPP+:} false; then : | |
3187 | $as_echo_n "(cached) " >&6 | |
3188 | else | |
3189 | # Double quotes because CPP needs to be expanded | |
3190 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3191 | do | |
3192 | ac_preproc_ok=false | |
3193 | for ac_c_preproc_warn_flag in '' yes | |
3194 | do | |
3195 | # Use a header file that comes with gcc, so configuring glibc | |
3196 | # with a fresh cross-compiler works. | |
3197 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3198 | # <limits.h> exists even on freestanding compilers. | |
3199 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3200 | # not just through cpp. "Syntax error" is here to catch this case. | |
3201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3202 | /* end confdefs.h. */ | |
3203 | #ifdef __STDC__ | |
3204 | # include <limits.h> | |
3205 | #else | |
3206 | # include <assert.h> | |
3207 | #endif | |
3208 | Syntax error | |
3209 | _ACEOF | |
3210 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3211 | ||
3212 | else | |
3213 | # Broken: fails on valid input. | |
3214 | continue | |
3215 | fi | |
3216 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3217 | ||
3218 | # OK, works on sane cases. Now check whether nonexistent headers | |
3219 | # can be detected and how. | |
3220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3221 | /* end confdefs.h. */ | |
3222 | #include <ac_nonexistent.h> | |
3223 | _ACEOF | |
3224 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3225 | # Broken: success on invalid input. | |
3226 | continue | |
3227 | else | |
3228 | # Passes both tests. | |
3229 | ac_preproc_ok=: | |
3230 | break | |
3231 | fi | |
3232 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3233 | ||
3234 | done | |
3235 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3236 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3237 | if $ac_preproc_ok; then : | |
3238 | break | |
3239 | fi | |
3240 | ||
3241 | done | |
3242 | ac_cv_prog_CPP=$CPP | |
3243 | ||
3244 | fi | |
3245 | CPP=$ac_cv_prog_CPP | |
3246 | else | |
3247 | ac_cv_prog_CPP=$CPP | |
3248 | fi | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3250 | $as_echo "$CPP" >&6; } | |
3251 | ac_preproc_ok=false | |
3252 | for ac_c_preproc_warn_flag in '' yes | |
3253 | do | |
3254 | # Use a header file that comes with gcc, so configuring glibc | |
3255 | # with a fresh cross-compiler works. | |
3256 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3257 | # <limits.h> exists even on freestanding compilers. | |
3258 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3259 | # not just through cpp. "Syntax error" is here to catch this case. | |
3260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3261 | /* end confdefs.h. */ | |
3262 | #ifdef __STDC__ | |
3263 | # include <limits.h> | |
3264 | #else | |
3265 | # include <assert.h> | |
3266 | #endif | |
3267 | Syntax error | |
3268 | _ACEOF | |
3269 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3270 | ||
3271 | else | |
3272 | # Broken: fails on valid input. | |
3273 | continue | |
3274 | fi | |
3275 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3276 | ||
3277 | # OK, works on sane cases. Now check whether nonexistent headers | |
3278 | # can be detected and how. | |
3279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3280 | /* end confdefs.h. */ | |
3281 | #include <ac_nonexistent.h> | |
3282 | _ACEOF | |
3283 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3284 | # Broken: success on invalid input. | |
3285 | continue | |
3286 | else | |
3287 | # Passes both tests. | |
3288 | ac_preproc_ok=: | |
3289 | break | |
3290 | fi | |
3291 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3292 | ||
3293 | done | |
3294 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3295 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3296 | if $ac_preproc_ok; then : | |
3297 | ||
3298 | else | |
3299 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3300 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3301 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3302 | See \`config.log' for more details" "$LINENO" 5; } | |
3303 | fi | |
3304 | ||
3305 | ac_ext=c | |
3306 | ac_cpp='$CPP $CPPFLAGS' | |
3307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3310 | ||
6bb11ab3 L |
3311 | ac_aux_dir= |
3312 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
d0ac1c44 SM |
3313 | if test -f "$ac_dir/install-sh"; then |
3314 | ac_aux_dir=$ac_dir | |
3315 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3316 | break | |
3317 | elif test -f "$ac_dir/install.sh"; then | |
3318 | ac_aux_dir=$ac_dir | |
3319 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3320 | break | |
3321 | elif test -f "$ac_dir/shtool"; then | |
3322 | ac_aux_dir=$ac_dir | |
3323 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3324 | break | |
3325 | fi | |
6bb11ab3 L |
3326 | done |
3327 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 3328 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
6bb11ab3 L |
3329 | fi |
3330 | ||
3331 | # These three variables are undocumented and unsupported, | |
3332 | # and are intended to be withdrawn in a future Autoconf release. | |
3333 | # They can cause serious problems if a builder's source tree is in a directory | |
3334 | # whose full name contains unusual characters. | |
3335 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3336 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3337 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3338 | ||
3339 | ||
3340 | # Make sure we can run config.sub. | |
3341 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
d0ac1c44 | 3342 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
6bb11ab3 L |
3343 | |
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3345 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 3346 | if ${ac_cv_build+:} false; then : |
6bb11ab3 L |
3347 | $as_echo_n "(cached) " >&6 |
3348 | else | |
3349 | ac_build_alias=$build_alias | |
3350 | test "x$ac_build_alias" = x && | |
3351 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3352 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 3353 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
6bb11ab3 | 3354 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 3355 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
6bb11ab3 L |
3356 | |
3357 | fi | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3359 | $as_echo "$ac_cv_build" >&6; } | |
3360 | case $ac_cv_build in | |
3361 | *-*-*) ;; | |
d0ac1c44 | 3362 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
6bb11ab3 L |
3363 | esac |
3364 | build=$ac_cv_build | |
3365 | ac_save_IFS=$IFS; IFS='-' | |
3366 | set x $ac_cv_build | |
3367 | shift | |
3368 | build_cpu=$1 | |
3369 | build_vendor=$2 | |
3370 | shift; shift | |
3371 | # Remember, the first character of IFS is used to create $*, | |
3372 | # except with old shells: | |
3373 | build_os=$* | |
3374 | IFS=$ac_save_IFS | |
3375 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3376 | ||
3377 | ||
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3379 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 3380 | if ${ac_cv_host+:} false; then : |
6bb11ab3 L |
3381 | $as_echo_n "(cached) " >&6 |
3382 | else | |
3383 | if test "x$host_alias" = x; then | |
3384 | ac_cv_host=$ac_cv_build | |
3385 | else | |
3386 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 3387 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
6bb11ab3 L |
3388 | fi |
3389 | ||
3390 | fi | |
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3392 | $as_echo "$ac_cv_host" >&6; } | |
3393 | case $ac_cv_host in | |
3394 | *-*-*) ;; | |
d0ac1c44 | 3395 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
6bb11ab3 L |
3396 | esac |
3397 | host=$ac_cv_host | |
3398 | ac_save_IFS=$IFS; IFS='-' | |
3399 | set x $ac_cv_host | |
3400 | shift | |
3401 | host_cpu=$1 | |
3402 | host_vendor=$2 | |
3403 | shift; shift | |
3404 | # Remember, the first character of IFS is used to create $*, | |
3405 | # except with old shells: | |
3406 | host_os=$* | |
3407 | IFS=$ac_save_IFS | |
3408 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3409 | ||
3410 | ||
3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
3412 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 3413 | if ${ac_cv_target+:} false; then : |
6bb11ab3 L |
3414 | $as_echo_n "(cached) " >&6 |
3415 | else | |
3416 | if test "x$target_alias" = x; then | |
3417 | ac_cv_target=$ac_cv_host | |
3418 | else | |
3419 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 3420 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
6bb11ab3 L |
3421 | fi |
3422 | ||
3423 | fi | |
3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
3425 | $as_echo "$ac_cv_target" >&6; } | |
3426 | case $ac_cv_target in | |
3427 | *-*-*) ;; | |
d0ac1c44 | 3428 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
6bb11ab3 L |
3429 | esac |
3430 | target=$ac_cv_target | |
3431 | ac_save_IFS=$IFS; IFS='-' | |
3432 | set x $ac_cv_target | |
3433 | shift | |
3434 | target_cpu=$1 | |
3435 | target_vendor=$2 | |
3436 | shift; shift | |
3437 | # Remember, the first character of IFS is used to create $*, | |
3438 | # except with old shells: | |
3439 | target_os=$* | |
3440 | IFS=$ac_save_IFS | |
3441 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
3442 | ||
3443 | ||
3444 | # The aliases save the names the user supplied, while $host etc. | |
3445 | # will get canonicalized. | |
3446 | test -n "$target_alias" && | |
3447 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3448 | NONENONEs,x,x, && | |
3449 | program_prefix=${target_alias}- | |
3450 | ||
6bb11ab3 L |
3451 | |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3453 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 3454 | if ${ac_cv_path_GREP+:} false; then : |
6bb11ab3 L |
3455 | $as_echo_n "(cached) " >&6 |
3456 | else | |
3457 | if test -z "$GREP"; then | |
3458 | ac_path_GREP_found=false | |
3459 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3461 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3462 | do | |
3463 | IFS=$as_save_IFS | |
3464 | test -z "$as_dir" && as_dir=. | |
3465 | for ac_prog in grep ggrep; do | |
3466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3467 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 3468 | as_fn_executable_p "$ac_path_GREP" || continue |
6bb11ab3 L |
3469 | # Check for GNU ac_path_GREP and select it if it is found. |
3470 | # Check for GNU $ac_path_GREP | |
3471 | case `"$ac_path_GREP" --version 2>&1` in | |
3472 | *GNU*) | |
3473 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3474 | *) | |
3475 | ac_count=0 | |
3476 | $as_echo_n 0123456789 >"conftest.in" | |
3477 | while : | |
3478 | do | |
3479 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3480 | mv "conftest.tmp" "conftest.in" | |
3481 | cp "conftest.in" "conftest.nl" | |
3482 | $as_echo 'GREP' >> "conftest.nl" | |
3483 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3484 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3485 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3486 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3487 | # Best one so far, save it but keep looking for a better one | |
3488 | ac_cv_path_GREP="$ac_path_GREP" | |
3489 | ac_path_GREP_max=$ac_count | |
3490 | fi | |
3491 | # 10*(2^10) chars as input seems more than enough | |
3492 | test $ac_count -gt 10 && break | |
3493 | done | |
3494 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3495 | esac | |
3496 | ||
3497 | $ac_path_GREP_found && break 3 | |
3498 | done | |
3499 | done | |
3500 | done | |
3501 | IFS=$as_save_IFS | |
3502 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 3503 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6bb11ab3 L |
3504 | fi |
3505 | else | |
3506 | ac_cv_path_GREP=$GREP | |
3507 | fi | |
3508 | ||
3509 | fi | |
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3511 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3512 | GREP="$ac_cv_path_GREP" | |
3513 | ||
3514 | ||
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3516 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 3517 | if ${ac_cv_path_EGREP+:} false; then : |
6bb11ab3 L |
3518 | $as_echo_n "(cached) " >&6 |
3519 | else | |
3520 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3521 | then ac_cv_path_EGREP="$GREP -E" | |
3522 | else | |
3523 | if test -z "$EGREP"; then | |
3524 | ac_path_EGREP_found=false | |
3525 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3527 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3528 | do | |
3529 | IFS=$as_save_IFS | |
3530 | test -z "$as_dir" && as_dir=. | |
3531 | for ac_prog in egrep; do | |
3532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3533 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 3534 | as_fn_executable_p "$ac_path_EGREP" || continue |
6bb11ab3 L |
3535 | # Check for GNU ac_path_EGREP and select it if it is found. |
3536 | # Check for GNU $ac_path_EGREP | |
3537 | case `"$ac_path_EGREP" --version 2>&1` in | |
3538 | *GNU*) | |
3539 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3540 | *) | |
3541 | ac_count=0 | |
3542 | $as_echo_n 0123456789 >"conftest.in" | |
3543 | while : | |
3544 | do | |
3545 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3546 | mv "conftest.tmp" "conftest.in" | |
3547 | cp "conftest.in" "conftest.nl" | |
3548 | $as_echo 'EGREP' >> "conftest.nl" | |
3549 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3550 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3551 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3552 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3553 | # Best one so far, save it but keep looking for a better one | |
3554 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3555 | ac_path_EGREP_max=$ac_count | |
3556 | fi | |
3557 | # 10*(2^10) chars as input seems more than enough | |
3558 | test $ac_count -gt 10 && break | |
3559 | done | |
3560 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3561 | esac | |
3562 | ||
3563 | $ac_path_EGREP_found && break 3 | |
3564 | done | |
3565 | done | |
3566 | done | |
3567 | IFS=$as_save_IFS | |
3568 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 3569 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6bb11ab3 L |
3570 | fi |
3571 | else | |
3572 | ac_cv_path_EGREP=$EGREP | |
3573 | fi | |
3574 | ||
3575 | fi | |
3576 | fi | |
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3578 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3579 | EGREP="$ac_cv_path_EGREP" | |
3580 | ||
3581 | ||
3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3583 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 3584 | if ${ac_cv_header_stdc+:} false; then : |
6bb11ab3 L |
3585 | $as_echo_n "(cached) " >&6 |
3586 | else | |
3587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3588 | /* end confdefs.h. */ | |
3589 | #include <stdlib.h> | |
3590 | #include <stdarg.h> | |
3591 | #include <string.h> | |
3592 | #include <float.h> | |
3593 | ||
3594 | int | |
3595 | main () | |
3596 | { | |
3597 | ||
3598 | ; | |
3599 | return 0; | |
3600 | } | |
3601 | _ACEOF | |
3602 | if ac_fn_c_try_compile "$LINENO"; then : | |
3603 | ac_cv_header_stdc=yes | |
3604 | else | |
3605 | ac_cv_header_stdc=no | |
3606 | fi | |
3607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3608 | ||
3609 | if test $ac_cv_header_stdc = yes; then | |
3610 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3612 | /* end confdefs.h. */ | |
3613 | #include <string.h> | |
3614 | ||
3615 | _ACEOF | |
3616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3617 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3618 | ||
3619 | else | |
3620 | ac_cv_header_stdc=no | |
3621 | fi | |
3622 | rm -f conftest* | |
3623 | ||
3624 | fi | |
3625 | ||
3626 | if test $ac_cv_header_stdc = yes; then | |
3627 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3629 | /* end confdefs.h. */ | |
3630 | #include <stdlib.h> | |
3631 | ||
3632 | _ACEOF | |
3633 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3634 | $EGREP "free" >/dev/null 2>&1; then : | |
3635 | ||
3636 | else | |
3637 | ac_cv_header_stdc=no | |
3638 | fi | |
3639 | rm -f conftest* | |
3640 | ||
3641 | fi | |
3642 | ||
3643 | if test $ac_cv_header_stdc = yes; then | |
3644 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3645 | if test "$cross_compiling" = yes; then : | |
3646 | : | |
3647 | else | |
3648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3649 | /* end confdefs.h. */ | |
3650 | #include <ctype.h> | |
3651 | #include <stdlib.h> | |
3652 | #if ((' ' & 0x0FF) == 0x020) | |
3653 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3654 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3655 | #else | |
3656 | # define ISLOWER(c) \ | |
3657 | (('a' <= (c) && (c) <= 'i') \ | |
3658 | || ('j' <= (c) && (c) <= 'r') \ | |
3659 | || ('s' <= (c) && (c) <= 'z')) | |
3660 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3661 | #endif | |
3662 | ||
3663 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3664 | int | |
3665 | main () | |
3666 | { | |
3667 | int i; | |
3668 | for (i = 0; i < 256; i++) | |
3669 | if (XOR (islower (i), ISLOWER (i)) | |
3670 | || toupper (i) != TOUPPER (i)) | |
3671 | return 2; | |
3672 | return 0; | |
3673 | } | |
3674 | _ACEOF | |
3675 | if ac_fn_c_try_run "$LINENO"; then : | |
3676 | ||
3677 | else | |
3678 | ac_cv_header_stdc=no | |
3679 | fi | |
3680 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3681 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3682 | fi | |
3683 | ||
3684 | fi | |
3685 | fi | |
3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3687 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3688 | if test $ac_cv_header_stdc = yes; then | |
3689 | ||
3690 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3691 | ||
3692 | fi | |
3693 | ||
3694 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3695 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3696 | inttypes.h stdint.h unistd.h | |
3697 | do : | |
3698 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3699 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3700 | " | |
d0ac1c44 | 3701 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6bb11ab3 L |
3702 | cat >>confdefs.h <<_ACEOF |
3703 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3704 | _ACEOF | |
3705 | ||
3706 | fi | |
3707 | ||
3708 | done | |
3709 | ||
3710 | ||
3711 | ||
3712 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
d0ac1c44 | 3713 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
6bb11ab3 L |
3714 | MINIX=yes |
3715 | else | |
3716 | MINIX= | |
3717 | fi | |
3718 | ||
3719 | ||
3720 | if test "$MINIX" = yes; then | |
3721 | ||
3722 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3723 | ||
3724 | ||
3725 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3726 | ||
3727 | ||
3728 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3729 | ||
3730 | fi | |
3731 | ||
3732 | ||
3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3734 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 3735 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
6bb11ab3 L |
3736 | $as_echo_n "(cached) " >&6 |
3737 | else | |
3738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3739 | /* end confdefs.h. */ | |
3740 | ||
d0ac1c44 SM |
3741 | # define __EXTENSIONS__ 1 |
3742 | $ac_includes_default | |
6bb11ab3 L |
3743 | int |
3744 | main () | |
3745 | { | |
3746 | ||
3747 | ; | |
3748 | return 0; | |
3749 | } | |
3750 | _ACEOF | |
3751 | if ac_fn_c_try_compile "$LINENO"; then : | |
3752 | ac_cv_safe_to_define___extensions__=yes | |
3753 | else | |
3754 | ac_cv_safe_to_define___extensions__=no | |
3755 | fi | |
3756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3757 | fi | |
3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3759 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3760 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3761 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3762 | ||
3763 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3764 | ||
3765 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3766 | ||
3767 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3768 | ||
3769 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3770 | ||
3771 | ||
3772 | test "$program_prefix" != NONE && | |
3773 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3774 | # Use a double $ so make ignores it. | |
3775 | test "$program_suffix" != NONE && | |
3776 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3777 | # Double any \ or $. | |
3778 | # By default was `s,x,x', remove it if useless. | |
3779 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3780 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3781 | ||
3782 | # Find a good install program. We prefer a C program (faster), | |
3783 | # so one script is as good as another. But avoid the broken or | |
3784 | # incompatible versions: | |
3785 | # SysV /etc/install, /usr/sbin/install | |
3786 | # SunOS /usr/etc/install | |
3787 | # IRIX /sbin/install | |
3788 | # AIX /bin/install | |
3789 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3790 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3791 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3792 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3793 | # OS/2's system install, which has a completely different semantic | |
3794 | # ./install, which can be erroneously created by make from ./install.sh. | |
3795 | # Reject install programs that cannot install multiple files. | |
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3797 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3798 | if test -z "$INSTALL"; then | |
d0ac1c44 | 3799 | if ${ac_cv_path_install+:} false; then : |
6bb11ab3 L |
3800 | $as_echo_n "(cached) " >&6 |
3801 | else | |
3802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3803 | for as_dir in $PATH | |
3804 | do | |
3805 | IFS=$as_save_IFS | |
3806 | test -z "$as_dir" && as_dir=. | |
3807 | # Account for people who put trailing slashes in PATH elements. | |
3808 | case $as_dir/ in #(( | |
3809 | ./ | .// | /[cC]/* | \ | |
3810 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3811 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3812 | /usr/ucb/* ) ;; | |
3813 | *) | |
3814 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3815 | # Don't use installbsd from OSF since it installs stuff as root | |
3816 | # by default. | |
3817 | for ac_prog in ginstall scoinst install; do | |
3818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3819 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6bb11ab3 L |
3820 | if test $ac_prog = install && |
3821 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3822 | # AIX install. It has an incompatible calling convention. | |
3823 | : | |
3824 | elif test $ac_prog = install && | |
3825 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3826 | # program-specific install script used by HP pwplus--don't use. | |
3827 | : | |
3828 | else | |
3829 | rm -rf conftest.one conftest.two conftest.dir | |
3830 | echo one > conftest.one | |
3831 | echo two > conftest.two | |
3832 | mkdir conftest.dir | |
3833 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3834 | test -s conftest.one && test -s conftest.two && | |
3835 | test -s conftest.dir/conftest.one && | |
3836 | test -s conftest.dir/conftest.two | |
3837 | then | |
3838 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3839 | break 3 | |
3840 | fi | |
3841 | fi | |
3842 | fi | |
3843 | done | |
3844 | done | |
3845 | ;; | |
3846 | esac | |
3847 | ||
3848 | done | |
3849 | IFS=$as_save_IFS | |
3850 | ||
3851 | rm -rf conftest.one conftest.two conftest.dir | |
3852 | ||
3853 | fi | |
3854 | if test "${ac_cv_path_install+set}" = set; then | |
3855 | INSTALL=$ac_cv_path_install | |
3856 | else | |
3857 | # As a last resort, use the slow shell script. Don't cache a | |
3858 | # value for INSTALL within a source directory, because that will | |
3859 | # break other packages using the cache if that directory is | |
3860 | # removed, or if the value is a relative name. | |
3861 | INSTALL=$ac_install_sh | |
3862 | fi | |
3863 | fi | |
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3865 | $as_echo "$INSTALL" >&6; } | |
3866 | ||
3867 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3868 | # It thinks the first close brace ends the variable substitution. | |
3869 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3870 | ||
3871 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3872 | ||
3873 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3874 | ||
3875 | rm -rf .tst 2>/dev/null | |
3876 | mkdir .tst 2>/dev/null | |
3877 | if test -d .tst; then | |
3878 | am__leading_dot=. | |
3879 | else | |
3880 | am__leading_dot=_ | |
3881 | fi | |
3882 | rmdir .tst 2>/dev/null | |
3883 | ||
3884 | DEPDIR="${am__leading_dot}deps" | |
3885 | ||
3886 | case `pwd` in | |
3887 | *\ * | *\ *) | |
3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3889 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3890 | esac | |
3891 | ||
3892 | ||
3893 | ||
3894 | macro_version='2.2.7a' | |
3895 | macro_revision='1.3134' | |
3896 | ||
3897 | ||
3898 | ||
3899 | ||
3900 | ||
3901 | ||
3902 | ||
3903 | ||
3904 | ||
3905 | ||
3906 | ||
3907 | ||
3908 | ||
3909 | ltmain="$ac_aux_dir/ltmain.sh" | |
3910 | ||
3911 | # Backslashify metacharacters that are still active within | |
3912 | # double-quoted strings. | |
3913 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
3914 | ||
3915 | # Same as above, but do not quote variable references. | |
3916 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
3917 | ||
3918 | # Sed substitution to delay expansion of an escaped shell variable in a | |
3919 | # double_quote_subst'ed string. | |
3920 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
3921 | ||
3922 | # Sed substitution to delay expansion of an escaped single quote. | |
3923 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
3924 | ||
3925 | # Sed substitution to avoid accidental globbing in evaled expressions | |
3926 | no_glob_subst='s/\*/\\\*/g' | |
3927 | ||
3928 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3929 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
3930 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
3931 | ||
3932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
3933 | $as_echo_n "checking how to print strings... " >&6; } | |
3934 | # Test print first, because it will be a builtin if present. | |
3935 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
3936 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
3937 | ECHO='print -r --' | |
3938 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
3939 | ECHO='printf %s\n' | |
3940 | else | |
3941 | # Use this function as a fallback that always works. | |
3942 | func_fallback_echo () | |
3943 | { | |
3944 | eval 'cat <<_LTECHO_EOF | |
3945 | $1 | |
3946 | _LTECHO_EOF' | |
3947 | } | |
3948 | ECHO='func_fallback_echo' | |
3949 | fi | |
3950 | ||
3951 | # func_echo_all arg... | |
3952 | # Invoke $ECHO with all args, space-separated. | |
3953 | func_echo_all () | |
3954 | { | |
3955 | $ECHO "" | |
3956 | } | |
3957 | ||
3958 | case "$ECHO" in | |
3959 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
3960 | $as_echo "printf" >&6; } ;; | |
3961 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
3962 | $as_echo "print -r" >&6; } ;; | |
3963 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
3964 | $as_echo "cat" >&6; } ;; | |
3965 | esac | |
3966 | ||
3967 | ||
3968 | ||
3969 | ||
3970 | ||
3971 | ||
3972 | ||
3973 | ||
3974 | ||
3975 | ||
3976 | ||
3977 | ||
3978 | ||
3979 | ||
3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
3981 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 3982 | if ${ac_cv_path_SED+:} false; then : |
6bb11ab3 L |
3983 | $as_echo_n "(cached) " >&6 |
3984 | else | |
3985 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3986 | for ac_i in 1 2 3 4 5 6 7; do | |
3987 | ac_script="$ac_script$as_nl$ac_script" | |
3988 | done | |
3989 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3990 | { ac_script=; unset ac_script;} | |
3991 | if test -z "$SED"; then | |
3992 | ac_path_SED_found=false | |
3993 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3995 | for as_dir in $PATH | |
3996 | do | |
3997 | IFS=$as_save_IFS | |
3998 | test -z "$as_dir" && as_dir=. | |
3999 | for ac_prog in sed gsed; do | |
4000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4001 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4002 | as_fn_executable_p "$ac_path_SED" || continue |
6bb11ab3 L |
4003 | # Check for GNU ac_path_SED and select it if it is found. |
4004 | # Check for GNU $ac_path_SED | |
4005 | case `"$ac_path_SED" --version 2>&1` in | |
4006 | *GNU*) | |
4007 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4008 | *) | |
4009 | ac_count=0 | |
4010 | $as_echo_n 0123456789 >"conftest.in" | |
4011 | while : | |
4012 | do | |
4013 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4014 | mv "conftest.tmp" "conftest.in" | |
4015 | cp "conftest.in" "conftest.nl" | |
4016 | $as_echo '' >> "conftest.nl" | |
4017 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4018 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4019 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4020 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4021 | # Best one so far, save it but keep looking for a better one | |
4022 | ac_cv_path_SED="$ac_path_SED" | |
4023 | ac_path_SED_max=$ac_count | |
4024 | fi | |
4025 | # 10*(2^10) chars as input seems more than enough | |
4026 | test $ac_count -gt 10 && break | |
4027 | done | |
4028 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4029 | esac | |
4030 | ||
4031 | $ac_path_SED_found && break 3 | |
4032 | done | |
4033 | done | |
4034 | done | |
4035 | IFS=$as_save_IFS | |
4036 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 4037 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
6bb11ab3 L |
4038 | fi |
4039 | else | |
4040 | ac_cv_path_SED=$SED | |
4041 | fi | |
4042 | ||
4043 | fi | |
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4045 | $as_echo "$ac_cv_path_SED" >&6; } | |
4046 | SED="$ac_cv_path_SED" | |
4047 | rm -f conftest.sed | |
4048 | ||
4049 | test -z "$SED" && SED=sed | |
4050 | Xsed="$SED -e 1s/^X//" | |
4051 | ||
4052 | ||
4053 | ||
4054 | ||
4055 | ||
4056 | ||
4057 | ||
4058 | ||
4059 | ||
4060 | ||
4061 | ||
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4063 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 4064 | if ${ac_cv_path_FGREP+:} false; then : |
6bb11ab3 L |
4065 | $as_echo_n "(cached) " >&6 |
4066 | else | |
4067 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4068 | then ac_cv_path_FGREP="$GREP -F" | |
4069 | else | |
4070 | if test -z "$FGREP"; then | |
4071 | ac_path_FGREP_found=false | |
4072 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4074 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4075 | do | |
4076 | IFS=$as_save_IFS | |
4077 | test -z "$as_dir" && as_dir=. | |
4078 | for ac_prog in fgrep; do | |
4079 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4080 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4081 | as_fn_executable_p "$ac_path_FGREP" || continue |
6bb11ab3 L |
4082 | # Check for GNU ac_path_FGREP and select it if it is found. |
4083 | # Check for GNU $ac_path_FGREP | |
4084 | case `"$ac_path_FGREP" --version 2>&1` in | |
4085 | *GNU*) | |
4086 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4087 | *) | |
4088 | ac_count=0 | |
4089 | $as_echo_n 0123456789 >"conftest.in" | |
4090 | while : | |
4091 | do | |
4092 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4093 | mv "conftest.tmp" "conftest.in" | |
4094 | cp "conftest.in" "conftest.nl" | |
4095 | $as_echo 'FGREP' >> "conftest.nl" | |
4096 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4097 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4098 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4099 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4100 | # Best one so far, save it but keep looking for a better one | |
4101 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4102 | ac_path_FGREP_max=$ac_count | |
4103 | fi | |
4104 | # 10*(2^10) chars as input seems more than enough | |
4105 | test $ac_count -gt 10 && break | |
4106 | done | |
4107 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4108 | esac | |
4109 | ||
4110 | $ac_path_FGREP_found && break 3 | |
4111 | done | |
4112 | done | |
4113 | done | |
4114 | IFS=$as_save_IFS | |
4115 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 4116 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6bb11ab3 L |
4117 | fi |
4118 | else | |
4119 | ac_cv_path_FGREP=$FGREP | |
4120 | fi | |
4121 | ||
4122 | fi | |
4123 | fi | |
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4125 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4126 | FGREP="$ac_cv_path_FGREP" | |
4127 | ||
4128 | ||
4129 | test -z "$GREP" && GREP=grep | |
4130 | ||
4131 | ||
4132 | ||
4133 | ||
4134 | ||
4135 | ||
4136 | ||
4137 | ||
4138 | ||
4139 | ||
4140 | ||
4141 | ||
4142 | ||
4143 | ||
4144 | ||
4145 | ||
4146 | ||
4147 | ||
4148 | ||
4149 | # Check whether --with-gnu-ld was given. | |
4150 | if test "${with_gnu_ld+set}" = set; then : | |
4151 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4152 | else | |
4153 | with_gnu_ld=no | |
4154 | fi | |
4155 | ||
4156 | ac_prog=ld | |
4157 | if test "$GCC" = yes; then | |
4158 | # Check if gcc -print-prog-name=ld gives a path. | |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4160 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4161 | case $host in | |
4162 | *-*-mingw*) | |
4163 | # gcc leaves a trailing carriage return which upsets mingw | |
4164 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4165 | *) | |
4166 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4167 | esac | |
4168 | case $ac_prog in | |
4169 | # Accept absolute paths. | |
4170 | [\\/]* | ?:[\\/]*) | |
4171 | re_direlt='/[^/][^/]*/\.\./' | |
4172 | # Canonicalize the pathname of ld | |
4173 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4174 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4175 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4176 | done | |
4177 | test -z "$LD" && LD="$ac_prog" | |
4178 | ;; | |
4179 | "") | |
4180 | # If it fails, then pretend we aren't using GCC. | |
4181 | ac_prog=ld | |
4182 | ;; | |
4183 | *) | |
4184 | # If it is relative, then search for the first ld in PATH. | |
4185 | with_gnu_ld=unknown | |
4186 | ;; | |
4187 | esac | |
4188 | elif test "$with_gnu_ld" = yes; then | |
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4190 | $as_echo_n "checking for GNU ld... " >&6; } | |
4191 | else | |
4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4193 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4194 | fi | |
d0ac1c44 | 4195 | if ${lt_cv_path_LD+:} false; then : |
6bb11ab3 L |
4196 | $as_echo_n "(cached) " >&6 |
4197 | else | |
4198 | if test -z "$LD"; then | |
4199 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4200 | for ac_dir in $PATH; do | |
4201 | IFS="$lt_save_ifs" | |
4202 | test -z "$ac_dir" && ac_dir=. | |
4203 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4204 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4205 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4206 | # but apparently some variants of GNU ld only accept -v. | |
4207 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4208 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4209 | *GNU* | *'with BFD'*) | |
4210 | test "$with_gnu_ld" != no && break | |
4211 | ;; | |
4212 | *) | |
4213 | test "$with_gnu_ld" != yes && break | |
4214 | ;; | |
4215 | esac | |
4216 | fi | |
4217 | done | |
4218 | IFS="$lt_save_ifs" | |
4219 | else | |
4220 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4221 | fi | |
4222 | fi | |
4223 | ||
4224 | LD="$lt_cv_path_LD" | |
4225 | if test -n "$LD"; then | |
4226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4227 | $as_echo "$LD" >&6; } | |
4228 | else | |
4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4230 | $as_echo "no" >&6; } | |
4231 | fi | |
d0ac1c44 | 4232 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
6bb11ab3 L |
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4234 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 4235 | if ${lt_cv_prog_gnu_ld+:} false; then : |
6bb11ab3 L |
4236 | $as_echo_n "(cached) " >&6 |
4237 | else | |
4238 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4239 | case `$LD -v 2>&1 </dev/null` in | |
4240 | *GNU* | *'with BFD'*) | |
4241 | lt_cv_prog_gnu_ld=yes | |
4242 | ;; | |
4243 | *) | |
4244 | lt_cv_prog_gnu_ld=no | |
4245 | ;; | |
4246 | esac | |
4247 | fi | |
4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4249 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4250 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4251 | ||
4252 | ||
4253 | ||
4254 | ||
4255 | ||
4256 | ||
4257 | ||
4258 | ||
4259 | ||
4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4261 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 4262 | if ${lt_cv_path_NM+:} false; then : |
6bb11ab3 L |
4263 | $as_echo_n "(cached) " >&6 |
4264 | else | |
4265 | if test -n "$NM"; then | |
4266 | # Let the user override the test. | |
4267 | lt_cv_path_NM="$NM" | |
4268 | else | |
4269 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4270 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4271 | lt_nm_to_check="$lt_nm_to_check nm" | |
4272 | fi | |
4273 | for lt_tmp_nm in $lt_nm_to_check; do | |
4274 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4275 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4276 | IFS="$lt_save_ifs" | |
4277 | test -z "$ac_dir" && ac_dir=. | |
4278 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4279 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4280 | # Check to see if the nm accepts a BSD-compat flag. | |
4281 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4282 | # nm: unknown option "B" ignored | |
4283 | # Tru64's nm complains that /dev/null is an invalid object file | |
4284 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4285 | */dev/null* | *'Invalid file or object type'*) | |
4286 | lt_cv_path_NM="$tmp_nm -B" | |
4287 | break | |
4288 | ;; | |
4289 | *) | |
4290 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4291 | */dev/null*) | |
4292 | lt_cv_path_NM="$tmp_nm -p" | |
4293 | break | |
4294 | ;; | |
4295 | *) | |
4296 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4297 | continue # so that we can try to find one that supports BSD flags | |
4298 | ;; | |
4299 | esac | |
4300 | ;; | |
4301 | esac | |
4302 | fi | |
4303 | done | |
4304 | IFS="$lt_save_ifs" | |
4305 | done | |
4306 | : ${lt_cv_path_NM=no} | |
4307 | fi | |
4308 | fi | |
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4310 | $as_echo "$lt_cv_path_NM" >&6; } | |
4311 | if test "$lt_cv_path_NM" != "no"; then | |
4312 | NM="$lt_cv_path_NM" | |
4313 | else | |
4314 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4315 | if test -n "$DUMPBIN"; then : | |
4316 | # Let the user override the test. | |
4317 | else | |
4318 | if test -n "$ac_tool_prefix"; then | |
4319 | for ac_prog in dumpbin "link -dump" | |
4320 | do | |
4321 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4322 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4324 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4325 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
6bb11ab3 L |
4326 | $as_echo_n "(cached) " >&6 |
4327 | else | |
4328 | if test -n "$DUMPBIN"; then | |
4329 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4330 | else | |
4331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4332 | for as_dir in $PATH | |
4333 | do | |
4334 | IFS=$as_save_IFS | |
4335 | test -z "$as_dir" && as_dir=. | |
4336 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4338 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
4339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4340 | break 2 | |
4341 | fi | |
4342 | done | |
4343 | done | |
4344 | IFS=$as_save_IFS | |
4345 | ||
4346 | fi | |
4347 | fi | |
4348 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4349 | if test -n "$DUMPBIN"; then | |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4351 | $as_echo "$DUMPBIN" >&6; } | |
4352 | else | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4354 | $as_echo "no" >&6; } | |
4355 | fi | |
4356 | ||
4357 | ||
4358 | test -n "$DUMPBIN" && break | |
4359 | done | |
4360 | fi | |
4361 | if test -z "$DUMPBIN"; then | |
4362 | ac_ct_DUMPBIN=$DUMPBIN | |
4363 | for ac_prog in dumpbin "link -dump" | |
4364 | do | |
4365 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4366 | set dummy $ac_prog; ac_word=$2 | |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4368 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4369 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
6bb11ab3 L |
4370 | $as_echo_n "(cached) " >&6 |
4371 | else | |
4372 | if test -n "$ac_ct_DUMPBIN"; then | |
4373 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4374 | else | |
4375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4376 | for as_dir in $PATH | |
4377 | do | |
4378 | IFS=$as_save_IFS | |
4379 | test -z "$as_dir" && as_dir=. | |
4380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4382 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
4383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4384 | break 2 | |
4385 | fi | |
4386 | done | |
4387 | done | |
4388 | IFS=$as_save_IFS | |
4389 | ||
4390 | fi | |
4391 | fi | |
4392 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4393 | if test -n "$ac_ct_DUMPBIN"; then | |
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4395 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4396 | else | |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4398 | $as_echo "no" >&6; } | |
4399 | fi | |
4400 | ||
4401 | ||
4402 | test -n "$ac_ct_DUMPBIN" && break | |
4403 | done | |
4404 | ||
4405 | if test "x$ac_ct_DUMPBIN" = x; then | |
4406 | DUMPBIN=":" | |
4407 | else | |
4408 | case $cross_compiling:$ac_tool_warned in | |
4409 | yes:) | |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4411 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4412 | ac_tool_warned=yes ;; | |
4413 | esac | |
4414 | DUMPBIN=$ac_ct_DUMPBIN | |
4415 | fi | |
4416 | fi | |
4417 | ||
4418 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
4419 | *COFF*) | |
4420 | DUMPBIN="$DUMPBIN -symbols" | |
4421 | ;; | |
4422 | *) | |
4423 | DUMPBIN=: | |
4424 | ;; | |
4425 | esac | |
4426 | fi | |
4427 | ||
4428 | if test "$DUMPBIN" != ":"; then | |
4429 | NM="$DUMPBIN" | |
4430 | fi | |
4431 | fi | |
4432 | test -z "$NM" && NM=nm | |
4433 | ||
4434 | ||
4435 | ||
4436 | ||
4437 | ||
4438 | ||
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4440 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 4441 | if ${lt_cv_nm_interface+:} false; then : |
6bb11ab3 L |
4442 | $as_echo_n "(cached) " >&6 |
4443 | else | |
4444 | lt_cv_nm_interface="BSD nm" | |
4445 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4446 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
4447 | (eval "$ac_compile" 2>conftest.err) | |
4448 | cat conftest.err >&5 | |
4449 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4450 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4451 | cat conftest.err >&5 | |
4452 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
4453 | cat conftest.out >&5 | |
4454 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4455 | lt_cv_nm_interface="MS dumpbin" | |
4456 | fi | |
4457 | rm -f conftest* | |
4458 | fi | |
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
4460 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4461 | ||
4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4463 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4464 | LN_S=$as_ln_s | |
4465 | if test "$LN_S" = "ln -s"; then | |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4467 | $as_echo "yes" >&6; } | |
4468 | else | |
4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4470 | $as_echo "no, using $LN_S" >&6; } | |
4471 | fi | |
4472 | ||
4473 | # find the maximum length of command line arguments | |
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4475 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 4476 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
6bb11ab3 L |
4477 | $as_echo_n "(cached) " >&6 |
4478 | else | |
4479 | i=0 | |
4480 | teststring="ABCD" | |
4481 | ||
4482 | case $build_os in | |
4483 | msdosdjgpp*) | |
4484 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4485 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4486 | # during glob expansion). Even if it were fixed, the result of this | |
4487 | # check would be larger than it should be. | |
4488 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4489 | ;; | |
4490 | ||
4491 | gnu*) | |
4492 | # Under GNU Hurd, this test is not required because there is | |
4493 | # no limit to the length of command line arguments. | |
4494 | # Libtool will interpret -1 as no limit whatsoever | |
4495 | lt_cv_sys_max_cmd_len=-1; | |
4496 | ;; | |
4497 | ||
4498 | cygwin* | mingw* | cegcc*) | |
4499 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4500 | # about 5 minutes as the teststring grows exponentially. | |
4501 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4502 | # you end up with a "frozen" computer, even though with patience | |
4503 | # the test eventually succeeds (with a max line length of 256k). | |
4504 | # Instead, let's just punt: use the minimum linelength reported by | |
4505 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4506 | lt_cv_sys_max_cmd_len=8192; | |
4507 | ;; | |
4508 | ||
4509 | mint*) | |
4510 | # On MiNT this can take a long time and run out of memory. | |
4511 | lt_cv_sys_max_cmd_len=8192; | |
4512 | ;; | |
4513 | ||
4514 | amigaos*) | |
4515 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4516 | # So we just punt and use a minimum line length of 8192. | |
4517 | lt_cv_sys_max_cmd_len=8192; | |
4518 | ;; | |
4519 | ||
4520 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4521 | # This has been around since 386BSD, at least. Likely further. | |
4522 | if test -x /sbin/sysctl; then | |
4523 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4524 | elif test -x /usr/sbin/sysctl; then | |
4525 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4526 | else | |
4527 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4528 | fi | |
4529 | # And add a safety zone | |
4530 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4531 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4532 | ;; | |
4533 | ||
4534 | interix*) | |
4535 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4536 | lt_cv_sys_max_cmd_len=196608 | |
4537 | ;; | |
4538 | ||
4539 | osf*) | |
4540 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4541 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4542 | # nice to cause kernel panics so lets avoid the loop below. | |
4543 | # First set a reasonable default. | |
4544 | lt_cv_sys_max_cmd_len=16384 | |
4545 | # | |
4546 | if test -x /sbin/sysconfig; then | |
4547 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4548 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4549 | esac | |
4550 | fi | |
4551 | ;; | |
4552 | sco3.2v5*) | |
4553 | lt_cv_sys_max_cmd_len=102400 | |
4554 | ;; | |
4555 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4556 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4557 | if test -n "$kargmax"; then | |
4558 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4559 | else | |
4560 | lt_cv_sys_max_cmd_len=32768 | |
4561 | fi | |
4562 | ;; | |
4563 | *) | |
4564 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4565 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4566 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4567 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4568 | else | |
4569 | # Make teststring a little bigger before we do anything with it. | |
4570 | # a 1K string should be a reasonable start. | |
4571 | for i in 1 2 3 4 5 6 7 8 ; do | |
4572 | teststring=$teststring$teststring | |
4573 | done | |
4574 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4575 | # If test is not a shell built-in, we'll probably end up computing a | |
4576 | # maximum length that is only half of the actual maximum length, but | |
4577 | # we can't tell. | |
4578 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
4579 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
4580 | test $i != 17 # 1/2 MB should be enough | |
4581 | do | |
4582 | i=`expr $i + 1` | |
4583 | teststring=$teststring$teststring | |
4584 | done | |
4585 | # Only check the string length outside the loop. | |
4586 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4587 | teststring= | |
4588 | # Add a significant safety factor because C++ compilers can tack on | |
4589 | # massive amounts of additional arguments before passing them to the | |
4590 | # linker. It appears as though 1/2 is a usable value. | |
4591 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4592 | fi | |
4593 | ;; | |
4594 | esac | |
4595 | ||
4596 | fi | |
4597 | ||
4598 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4600 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4601 | else | |
4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
4603 | $as_echo "none" >&6; } | |
4604 | fi | |
4605 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
4606 | ||
4607 | ||
4608 | ||
4609 | ||
4610 | ||
4611 | ||
4612 | : ${CP="cp -f"} | |
4613 | : ${MV="mv -f"} | |
4614 | : ${RM="rm -f"} | |
4615 | ||
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4617 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4618 | # Try some XSI features | |
4619 | xsi_shell=no | |
4620 | ( _lt_dummy="a/b/c" | |
4621 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4622 | = c,a/b,, \ | |
4623 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4624 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4625 | && xsi_shell=yes | |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4627 | $as_echo "$xsi_shell" >&6; } | |
4628 | ||
4629 | ||
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4631 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4632 | lt_shell_append=no | |
4633 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4634 | >/dev/null 2>&1 \ | |
4635 | && lt_shell_append=yes | |
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4637 | $as_echo "$lt_shell_append" >&6; } | |
4638 | ||
4639 | ||
4640 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4641 | lt_unset=unset | |
4642 | else | |
4643 | lt_unset=false | |
4644 | fi | |
4645 | ||
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | # test EBCDIC or ASCII | |
4651 | case `echo X|tr X '\101'` in | |
4652 | A) # ASCII based system | |
4653 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4654 | lt_SP2NL='tr \040 \012' | |
4655 | lt_NL2SP='tr \015\012 \040\040' | |
4656 | ;; | |
4657 | *) # EBCDIC based system | |
4658 | lt_SP2NL='tr \100 \n' | |
4659 | lt_NL2SP='tr \r\n \100\100' | |
4660 | ;; | |
4661 | esac | |
4662 | ||
4663 | ||
4664 | ||
4665 | ||
4666 | ||
4667 | ||
4668 | ||
4669 | ||
4670 | ||
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4672 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 4673 | if ${lt_cv_ld_reload_flag+:} false; then : |
6bb11ab3 L |
4674 | $as_echo_n "(cached) " >&6 |
4675 | else | |
4676 | lt_cv_ld_reload_flag='-r' | |
4677 | fi | |
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
4679 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4680 | reload_flag=$lt_cv_ld_reload_flag | |
4681 | case $reload_flag in | |
4682 | "" | " "*) ;; | |
4683 | *) reload_flag=" $reload_flag" ;; | |
4684 | esac | |
4685 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4686 | case $host_os in | |
4687 | darwin*) | |
4688 | if test "$GCC" = yes; then | |
4689 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4690 | else | |
4691 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4692 | fi | |
4693 | ;; | |
4694 | esac | |
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | ||
4700 | ||
4701 | ||
4702 | ||
4703 | ||
4704 | if test -n "$ac_tool_prefix"; then | |
4705 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4706 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4708 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4709 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
6bb11ab3 L |
4710 | $as_echo_n "(cached) " >&6 |
4711 | else | |
4712 | if test -n "$OBJDUMP"; then | |
4713 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4714 | else | |
4715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4716 | for as_dir in $PATH | |
4717 | do | |
4718 | IFS=$as_save_IFS | |
4719 | test -z "$as_dir" && as_dir=. | |
4720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4722 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
4723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4724 | break 2 | |
4725 | fi | |
4726 | done | |
4727 | done | |
4728 | IFS=$as_save_IFS | |
4729 | ||
4730 | fi | |
4731 | fi | |
4732 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4733 | if test -n "$OBJDUMP"; then | |
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4735 | $as_echo "$OBJDUMP" >&6; } | |
4736 | else | |
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4738 | $as_echo "no" >&6; } | |
4739 | fi | |
4740 | ||
4741 | ||
4742 | fi | |
4743 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4744 | ac_ct_OBJDUMP=$OBJDUMP | |
4745 | # Extract the first word of "objdump", so it can be a program name with args. | |
4746 | set dummy objdump; ac_word=$2 | |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4748 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4749 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
6bb11ab3 L |
4750 | $as_echo_n "(cached) " >&6 |
4751 | else | |
4752 | if test -n "$ac_ct_OBJDUMP"; then | |
4753 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4754 | else | |
4755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4756 | for as_dir in $PATH | |
4757 | do | |
4758 | IFS=$as_save_IFS | |
4759 | test -z "$as_dir" && as_dir=. | |
4760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4762 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
4763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4764 | break 2 | |
4765 | fi | |
4766 | done | |
4767 | done | |
4768 | IFS=$as_save_IFS | |
4769 | ||
4770 | fi | |
4771 | fi | |
4772 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4773 | if test -n "$ac_ct_OBJDUMP"; then | |
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4775 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
4776 | else | |
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4778 | $as_echo "no" >&6; } | |
4779 | fi | |
4780 | ||
4781 | if test "x$ac_ct_OBJDUMP" = x; then | |
4782 | OBJDUMP="false" | |
4783 | else | |
4784 | case $cross_compiling:$ac_tool_warned in | |
4785 | yes:) | |
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4788 | ac_tool_warned=yes ;; | |
4789 | esac | |
4790 | OBJDUMP=$ac_ct_OBJDUMP | |
4791 | fi | |
4792 | else | |
4793 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4794 | fi | |
4795 | ||
4796 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
4797 | ||
4798 | ||
4799 | ||
4800 | ||
4801 | ||
4802 | ||
4803 | ||
4804 | ||
4805 | ||
4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
4807 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 4808 | if ${lt_cv_deplibs_check_method+:} false; then : |
6bb11ab3 L |
4809 | $as_echo_n "(cached) " >&6 |
4810 | else | |
4811 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4812 | lt_cv_file_magic_test_file= | |
4813 | lt_cv_deplibs_check_method='unknown' | |
4814 | # Need to set the preceding variable on all platforms that support | |
4815 | # interlibrary dependencies. | |
4816 | # 'none' -- dependencies not supported. | |
4817 | # `unknown' -- same as none, but documents that we really don't know. | |
4818 | # 'pass_all' -- all dependencies passed with no checks. | |
4819 | # 'test_compile' -- check by making test program. | |
4820 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4821 | # which responds to the $file_magic_cmd with a given extended regex. | |
4822 | # If you have `file' or equivalent on your system and you're not sure | |
4823 | # whether `pass_all' will *always* work, you probably want this one. | |
4824 | ||
4825 | case $host_os in | |
4826 | aix[4-9]*) | |
4827 | lt_cv_deplibs_check_method=pass_all | |
4828 | ;; | |
4829 | ||
4830 | beos*) | |
4831 | lt_cv_deplibs_check_method=pass_all | |
4832 | ;; | |
4833 | ||
4834 | bsdi[45]*) | |
4835 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4836 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4837 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4838 | ;; | |
4839 | ||
4840 | cygwin*) | |
4841 | # func_win32_libid is a shell function defined in ltmain.sh | |
4842 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4843 | lt_cv_file_magic_cmd='func_win32_libid' | |
4844 | ;; | |
4845 | ||
4846 | mingw* | pw32*) | |
4847 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4848 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4849 | # unless we find 'file', for example because we are cross-compiling. | |
4850 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
4851 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
4852 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4853 | lt_cv_file_magic_cmd='func_win32_libid' | |
4854 | else | |
4855 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4856 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4857 | fi | |
4858 | ;; | |
4859 | ||
4860 | cegcc*) | |
4861 | # use the weaker test based on 'objdump'. See mingw*. | |
4862 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4863 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4864 | ;; | |
4865 | ||
4866 | darwin* | rhapsody*) | |
4867 | lt_cv_deplibs_check_method=pass_all | |
4868 | ;; | |
4869 | ||
4870 | freebsd* | dragonfly*) | |
4871 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4872 | case $host_cpu in | |
4873 | i*86 ) | |
4874 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4875 | # Let's accept both of them until this is cleared up. | |
4876 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4877 | lt_cv_file_magic_cmd=/usr/bin/file | |
4878 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4879 | ;; | |
4880 | esac | |
4881 | else | |
4882 | lt_cv_deplibs_check_method=pass_all | |
4883 | fi | |
4884 | ;; | |
4885 | ||
4886 | gnu*) | |
4887 | lt_cv_deplibs_check_method=pass_all | |
4888 | ;; | |
4889 | ||
4890 | haiku*) | |
4891 | lt_cv_deplibs_check_method=pass_all | |
4892 | ;; | |
4893 | ||
4894 | hpux10.20* | hpux11*) | |
4895 | lt_cv_file_magic_cmd=/usr/bin/file | |
4896 | case $host_cpu in | |
4897 | ia64*) | |
4898 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4899 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4900 | ;; | |
4901 | hppa*64*) | |
4902 | 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]' | |
4903 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4904 | ;; | |
4905 | *) | |
4906 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
4907 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4908 | ;; | |
4909 | esac | |
4910 | ;; | |
4911 | ||
4912 | interix[3-9]*) | |
4913 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4914 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4915 | ;; | |
4916 | ||
4917 | irix5* | irix6* | nonstopux*) | |
4918 | case $LD in | |
4919 | *-32|*"-32 ") libmagic=32-bit;; | |
4920 | *-n32|*"-n32 ") libmagic=N32;; | |
4921 | *-64|*"-64 ") libmagic=64-bit;; | |
4922 | *) libmagic=never-match;; | |
4923 | esac | |
4924 | lt_cv_deplibs_check_method=pass_all | |
4925 | ;; | |
4926 | ||
4927 | # This must be Linux ELF. | |
4928 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4929 | lt_cv_deplibs_check_method=pass_all | |
4930 | ;; | |
4931 | ||
4932 | netbsd*) | |
4933 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4934 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4935 | else | |
4936 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4937 | fi | |
4938 | ;; | |
4939 | ||
4940 | newos6*) | |
4941 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4942 | lt_cv_file_magic_cmd=/usr/bin/file | |
4943 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4944 | ;; | |
4945 | ||
4946 | *nto* | *qnx*) | |
4947 | lt_cv_deplibs_check_method=pass_all | |
4948 | ;; | |
4949 | ||
4950 | openbsd*) | |
4951 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4952 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4953 | else | |
4954 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4955 | fi | |
4956 | ;; | |
4957 | ||
4958 | osf3* | osf4* | osf5*) | |
4959 | lt_cv_deplibs_check_method=pass_all | |
4960 | ;; | |
4961 | ||
4962 | rdos*) | |
4963 | lt_cv_deplibs_check_method=pass_all | |
4964 | ;; | |
4965 | ||
4966 | solaris*) | |
4967 | lt_cv_deplibs_check_method=pass_all | |
4968 | ;; | |
4969 | ||
4970 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4971 | lt_cv_deplibs_check_method=pass_all | |
4972 | ;; | |
4973 | ||
4974 | sysv4 | sysv4.3*) | |
4975 | case $host_vendor in | |
4976 | motorola) | |
4977 | 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]' | |
4978 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4979 | ;; | |
4980 | ncr) | |
4981 | lt_cv_deplibs_check_method=pass_all | |
4982 | ;; | |
4983 | sequent) | |
4984 | lt_cv_file_magic_cmd='/bin/file' | |
4985 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4986 | ;; | |
4987 | sni) | |
4988 | lt_cv_file_magic_cmd='/bin/file' | |
4989 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4990 | lt_cv_file_magic_test_file=/lib/libc.so | |
4991 | ;; | |
4992 | siemens) | |
4993 | lt_cv_deplibs_check_method=pass_all | |
4994 | ;; | |
4995 | pc) | |
4996 | lt_cv_deplibs_check_method=pass_all | |
4997 | ;; | |
4998 | esac | |
4999 | ;; | |
5000 | ||
5001 | tpf*) | |
5002 | lt_cv_deplibs_check_method=pass_all | |
5003 | ;; | |
5004 | esac | |
5005 | ||
5006 | fi | |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5008 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5009 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5010 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5011 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | ||
5017 | ||
5018 | ||
5019 | ||
5020 | ||
5021 | ||
5022 | ||
5023 | ||
68ed2854 MF |
5024 | plugin_option= |
5025 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
5026 | for plugin in $plugin_names; do | |
5027 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
5028 | if test x$plugin_so = x$plugin; then | |
5029 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
5030 | fi | |
5031 | if test x$plugin_so != x$plugin; then | |
5032 | plugin_option="--plugin $plugin_so" | |
5033 | break | |
5034 | fi | |
5035 | done | |
5036 | ||
6bb11ab3 L |
5037 | if test -n "$ac_tool_prefix"; then |
5038 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5039 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5041 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5042 | if ${ac_cv_prog_AR+:} false; then : |
6bb11ab3 L |
5043 | $as_echo_n "(cached) " >&6 |
5044 | else | |
5045 | if test -n "$AR"; then | |
5046 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5047 | else | |
5048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5049 | for as_dir in $PATH | |
5050 | do | |
5051 | IFS=$as_save_IFS | |
5052 | test -z "$as_dir" && as_dir=. | |
5053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
5055 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5057 | break 2 | |
5058 | fi | |
5059 | done | |
5060 | done | |
5061 | IFS=$as_save_IFS | |
5062 | ||
5063 | fi | |
5064 | fi | |
5065 | AR=$ac_cv_prog_AR | |
5066 | if test -n "$AR"; then | |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5068 | $as_echo "$AR" >&6; } | |
5069 | else | |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5071 | $as_echo "no" >&6; } | |
5072 | fi | |
5073 | ||
5074 | ||
5075 | fi | |
5076 | if test -z "$ac_cv_prog_AR"; then | |
5077 | ac_ct_AR=$AR | |
5078 | # Extract the first word of "ar", so it can be a program name with args. | |
5079 | set dummy ar; ac_word=$2 | |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5081 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5082 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
6bb11ab3 L |
5083 | $as_echo_n "(cached) " >&6 |
5084 | else | |
5085 | if test -n "$ac_ct_AR"; then | |
5086 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5087 | else | |
5088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5089 | for as_dir in $PATH | |
5090 | do | |
5091 | IFS=$as_save_IFS | |
5092 | test -z "$as_dir" && as_dir=. | |
5093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
5095 | ac_cv_prog_ac_ct_AR="ar" |
5096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5097 | break 2 | |
5098 | fi | |
5099 | done | |
5100 | done | |
5101 | IFS=$as_save_IFS | |
5102 | ||
5103 | fi | |
5104 | fi | |
5105 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5106 | if test -n "$ac_ct_AR"; then | |
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5108 | $as_echo "$ac_ct_AR" >&6; } | |
5109 | else | |
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5111 | $as_echo "no" >&6; } | |
5112 | fi | |
5113 | ||
5114 | if test "x$ac_ct_AR" = x; then | |
5115 | AR="false" | |
5116 | else | |
5117 | case $cross_compiling:$ac_tool_warned in | |
5118 | yes:) | |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5120 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5121 | ac_tool_warned=yes ;; | |
5122 | esac | |
5123 | AR=$ac_ct_AR | |
5124 | fi | |
5125 | else | |
5126 | AR="$ac_cv_prog_AR" | |
5127 | fi | |
5128 | ||
5129 | test -z "$AR" && AR=ar | |
68ed2854 MF |
5130 | if test -n "$plugin_option"; then |
5131 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
aa09469f MF |
5132 | touch conftest.c |
5133 | $AR $plugin_option rc conftest.a conftest.c | |
5134 | if test "$?" != 0; then | |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
5136 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
5137 | else | |
5138 | AR="$AR $plugin_option" | |
5139 | fi | |
5140 | rm -f conftest.* | |
68ed2854 MF |
5141 | fi |
5142 | fi | |
6bb11ab3 L |
5143 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
5144 | ||
5145 | ||
5146 | ||
5147 | ||
5148 | ||
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | if test -n "$ac_tool_prefix"; then | |
5156 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5157 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5159 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5160 | if ${ac_cv_prog_STRIP+:} false; then : |
6bb11ab3 L |
5161 | $as_echo_n "(cached) " >&6 |
5162 | else | |
5163 | if test -n "$STRIP"; then | |
5164 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5165 | else | |
5166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5167 | for as_dir in $PATH | |
5168 | do | |
5169 | IFS=$as_save_IFS | |
5170 | test -z "$as_dir" && as_dir=. | |
5171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
5173 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5175 | break 2 | |
5176 | fi | |
5177 | done | |
5178 | done | |
5179 | IFS=$as_save_IFS | |
5180 | ||
5181 | fi | |
5182 | fi | |
5183 | STRIP=$ac_cv_prog_STRIP | |
5184 | if test -n "$STRIP"; then | |
5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5186 | $as_echo "$STRIP" >&6; } | |
5187 | else | |
5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5189 | $as_echo "no" >&6; } | |
5190 | fi | |
5191 | ||
5192 | ||
5193 | fi | |
5194 | if test -z "$ac_cv_prog_STRIP"; then | |
5195 | ac_ct_STRIP=$STRIP | |
5196 | # Extract the first word of "strip", so it can be a program name with args. | |
5197 | set dummy strip; ac_word=$2 | |
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5199 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5200 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
6bb11ab3 L |
5201 | $as_echo_n "(cached) " >&6 |
5202 | else | |
5203 | if test -n "$ac_ct_STRIP"; then | |
5204 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5205 | else | |
5206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5207 | for as_dir in $PATH | |
5208 | do | |
5209 | IFS=$as_save_IFS | |
5210 | test -z "$as_dir" && as_dir=. | |
5211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
5213 | ac_cv_prog_ac_ct_STRIP="strip" |
5214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5215 | break 2 | |
5216 | fi | |
5217 | done | |
5218 | done | |
5219 | IFS=$as_save_IFS | |
5220 | ||
5221 | fi | |
5222 | fi | |
5223 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5224 | if test -n "$ac_ct_STRIP"; then | |
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5226 | $as_echo "$ac_ct_STRIP" >&6; } | |
5227 | else | |
5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5229 | $as_echo "no" >&6; } | |
5230 | fi | |
5231 | ||
5232 | if test "x$ac_ct_STRIP" = x; then | |
5233 | STRIP=":" | |
5234 | else | |
5235 | case $cross_compiling:$ac_tool_warned in | |
5236 | yes:) | |
5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5238 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5239 | ac_tool_warned=yes ;; | |
5240 | esac | |
5241 | STRIP=$ac_ct_STRIP | |
5242 | fi | |
5243 | else | |
5244 | STRIP="$ac_cv_prog_STRIP" | |
5245 | fi | |
5246 | ||
5247 | test -z "$STRIP" && STRIP=: | |
5248 | ||
5249 | ||
5250 | ||
5251 | ||
5252 | ||
5253 | ||
5254 | if test -n "$ac_tool_prefix"; then | |
5255 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5256 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5258 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5259 | if ${ac_cv_prog_RANLIB+:} false; then : |
6bb11ab3 L |
5260 | $as_echo_n "(cached) " >&6 |
5261 | else | |
5262 | if test -n "$RANLIB"; then | |
5263 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5264 | else | |
5265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5266 | for as_dir in $PATH | |
5267 | do | |
5268 | IFS=$as_save_IFS | |
5269 | test -z "$as_dir" && as_dir=. | |
5270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
5272 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5274 | break 2 | |
5275 | fi | |
5276 | done | |
5277 | done | |
5278 | IFS=$as_save_IFS | |
5279 | ||
5280 | fi | |
5281 | fi | |
5282 | RANLIB=$ac_cv_prog_RANLIB | |
5283 | if test -n "$RANLIB"; then | |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5285 | $as_echo "$RANLIB" >&6; } | |
5286 | else | |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5288 | $as_echo "no" >&6; } | |
5289 | fi | |
5290 | ||
5291 | ||
5292 | fi | |
5293 | if test -z "$ac_cv_prog_RANLIB"; then | |
5294 | ac_ct_RANLIB=$RANLIB | |
5295 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5296 | set dummy ranlib; ac_word=$2 | |
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5298 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5299 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
6bb11ab3 L |
5300 | $as_echo_n "(cached) " >&6 |
5301 | else | |
5302 | if test -n "$ac_ct_RANLIB"; then | |
5303 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5304 | else | |
5305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5306 | for as_dir in $PATH | |
5307 | do | |
5308 | IFS=$as_save_IFS | |
5309 | test -z "$as_dir" && as_dir=. | |
5310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
5312 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5314 | break 2 | |
5315 | fi | |
5316 | done | |
5317 | done | |
5318 | IFS=$as_save_IFS | |
5319 | ||
5320 | fi | |
5321 | fi | |
5322 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5323 | if test -n "$ac_ct_RANLIB"; then | |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5325 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5326 | else | |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5328 | $as_echo "no" >&6; } | |
5329 | fi | |
5330 | ||
5331 | if test "x$ac_ct_RANLIB" = x; then | |
5332 | RANLIB=":" | |
5333 | else | |
5334 | case $cross_compiling:$ac_tool_warned in | |
5335 | yes:) | |
5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5337 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5338 | ac_tool_warned=yes ;; | |
5339 | esac | |
5340 | RANLIB=$ac_ct_RANLIB | |
5341 | fi | |
5342 | else | |
5343 | RANLIB="$ac_cv_prog_RANLIB" | |
5344 | fi | |
5345 | ||
5346 | test -z "$RANLIB" && RANLIB=: | |
68ed2854 MF |
5347 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
5348 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
5349 | RANLIB="$RANLIB $plugin_option" | |
5350 | fi | |
5351 | fi | |
6bb11ab3 L |
5352 | |
5353 | ||
5354 | ||
5355 | ||
5356 | ||
5357 | ||
5358 | # Determine commands to create old-style static archives. | |
5359 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5360 | old_postinstall_cmds='chmod 644 $oldlib' | |
5361 | old_postuninstall_cmds= | |
5362 | ||
5363 | if test -n "$RANLIB"; then | |
5364 | case $host_os in | |
5365 | openbsd*) | |
5366 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5367 | ;; | |
5368 | *) | |
5369 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5370 | ;; | |
5371 | esac | |
5372 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5373 | fi | |
5374 | ||
5375 | case $host_os in | |
5376 | darwin*) | |
5377 | lock_old_archive_extraction=yes ;; | |
5378 | *) | |
5379 | lock_old_archive_extraction=no ;; | |
5380 | esac | |
5381 | ||
5382 | ||
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | ||
5397 | ||
5398 | ||
5399 | ||
5400 | ||
5401 | ||
5402 | for ac_prog in gawk mawk nawk awk | |
5403 | do | |
5404 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5405 | set dummy $ac_prog; ac_word=$2 | |
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5407 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5408 | if ${ac_cv_prog_AWK+:} false; then : |
6bb11ab3 L |
5409 | $as_echo_n "(cached) " >&6 |
5410 | else | |
5411 | if test -n "$AWK"; then | |
5412 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
5413 | else | |
5414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5415 | for as_dir in $PATH | |
5416 | do | |
5417 | IFS=$as_save_IFS | |
5418 | test -z "$as_dir" && as_dir=. | |
5419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
5421 | ac_cv_prog_AWK="$ac_prog" |
5422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5423 | break 2 | |
5424 | fi | |
5425 | done | |
5426 | done | |
5427 | IFS=$as_save_IFS | |
5428 | ||
5429 | fi | |
5430 | fi | |
5431 | AWK=$ac_cv_prog_AWK | |
5432 | if test -n "$AWK"; then | |
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
5434 | $as_echo "$AWK" >&6; } | |
5435 | else | |
5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5437 | $as_echo "no" >&6; } | |
5438 | fi | |
5439 | ||
5440 | ||
5441 | test -n "$AWK" && break | |
5442 | done | |
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | ||
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | ||
5459 | ||
5460 | ||
5461 | ||
5462 | # If no C compiler was specified, use CC. | |
5463 | LTCC=${LTCC-"$CC"} | |
5464 | ||
5465 | # If no C compiler flags were specified, use CFLAGS. | |
5466 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5467 | ||
5468 | # Allow CC to be a program name with arguments. | |
5469 | compiler=$CC | |
5470 | ||
5471 | ||
5472 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
5474 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 5475 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
6bb11ab3 L |
5476 | $as_echo_n "(cached) " >&6 |
5477 | else | |
5478 | ||
5479 | # These are sane defaults that work on at least a few old systems. | |
5480 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5481 | ||
5482 | # Character class describing NM global symbol codes. | |
5483 | symcode='[BCDEGRST]' | |
5484 | ||
5485 | # Regexp to match symbols that can be accessed directly from C. | |
5486 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5487 | ||
5488 | # Define system-specific variables. | |
5489 | case $host_os in | |
5490 | aix*) | |
5491 | symcode='[BCDT]' | |
5492 | ;; | |
5493 | cygwin* | mingw* | pw32* | cegcc*) | |
5494 | symcode='[ABCDGISTW]' | |
5495 | ;; | |
5496 | hpux*) | |
5497 | if test "$host_cpu" = ia64; then | |
5498 | symcode='[ABCDEGRST]' | |
5499 | fi | |
5500 | ;; | |
5501 | irix* | nonstopux*) | |
5502 | symcode='[BCDEGRST]' | |
5503 | ;; | |
5504 | osf*) | |
5505 | symcode='[BCDEGQRST]' | |
5506 | ;; | |
5507 | solaris*) | |
5508 | symcode='[BDRT]' | |
5509 | ;; | |
5510 | sco3.2v5*) | |
5511 | symcode='[DT]' | |
5512 | ;; | |
5513 | sysv4.2uw2*) | |
5514 | symcode='[DT]' | |
5515 | ;; | |
5516 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5517 | symcode='[ABDT]' | |
5518 | ;; | |
5519 | sysv4) | |
5520 | symcode='[DFNSTU]' | |
5521 | ;; | |
5522 | esac | |
5523 | ||
5524 | # If we're using GNU nm, then use its standard symbol codes. | |
5525 | case `$NM -V 2>&1` in | |
5526 | *GNU* | *'with BFD'*) | |
5527 | symcode='[ABCDGIRSTW]' ;; | |
5528 | esac | |
5529 | ||
5530 | # Transform an extracted symbol line into a proper C declaration. | |
5531 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5532 | # so use this general approach. | |
5533 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5534 | ||
5535 | # Transform an extracted symbol line into symbol name and symbol address | |
5536 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5537 | 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'" | |
5538 | ||
5539 | # Handle CRLF in mingw tool chain | |
5540 | opt_cr= | |
5541 | case $build_os in | |
5542 | mingw*) | |
5543 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5544 | ;; | |
5545 | esac | |
5546 | ||
5547 | # Try without a prefix underscore, then with it. | |
5548 | for ac_symprfx in "" "_"; do | |
5549 | ||
5550 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5551 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5552 | ||
5553 | # Write the raw and C identifiers. | |
5554 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5555 | # Fake it for dumpbin and say T for any non-static function | |
5556 | # and D for any global variable. | |
5557 | # Also find C++ and __fastcall symbols from MSVC++, | |
5558 | # which start with @ or ?. | |
5559 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5560 | " {last_section=section; section=\$ 3};"\ | |
5561 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5562 | " \$ 0!~/External *\|/{next};"\ | |
5563 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5564 | " {if(hide[section]) next};"\ | |
5565 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5566 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5567 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5568 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5569 | " ' prfx=^$ac_symprfx" | |
5570 | else | |
5571 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5572 | fi | |
5573 | ||
5574 | # Check to see that the pipe works correctly. | |
5575 | pipe_works=no | |
5576 | ||
5577 | rm -f conftest* | |
5578 | cat > conftest.$ac_ext <<_LT_EOF | |
5579 | #ifdef __cplusplus | |
5580 | extern "C" { | |
5581 | #endif | |
5582 | char nm_test_var; | |
5583 | void nm_test_func(void); | |
5584 | void nm_test_func(void){} | |
5585 | #ifdef __cplusplus | |
5586 | } | |
5587 | #endif | |
5588 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5589 | _LT_EOF | |
5590 | ||
5591 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5592 | (eval $ac_compile) 2>&5 | |
5593 | ac_status=$? | |
5594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5595 | test $ac_status = 0; }; then | |
5596 | # Now try to grab the symbols. | |
5597 | nlist=conftest.nm | |
5598 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
5599 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
5600 | ac_status=$? | |
5601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5602 | test $ac_status = 0; } && test -s "$nlist"; then | |
5603 | # Try sorting and uniquifying the output. | |
5604 | if sort "$nlist" | uniq > "$nlist"T; then | |
5605 | mv -f "$nlist"T "$nlist" | |
5606 | else | |
5607 | rm -f "$nlist"T | |
5608 | fi | |
5609 | ||
5610 | # Make sure that we snagged all the symbols we need. | |
5611 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5612 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5613 | cat <<_LT_EOF > conftest.$ac_ext | |
5614 | #ifdef __cplusplus | |
5615 | extern "C" { | |
5616 | #endif | |
5617 | ||
5618 | _LT_EOF | |
5619 | # Now generate the symbol file. | |
5620 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5621 | ||
5622 | cat <<_LT_EOF >> conftest.$ac_ext | |
5623 | ||
5624 | /* The mapping between symbol names and symbols. */ | |
5625 | const struct { | |
5626 | const char *name; | |
5627 | void *address; | |
5628 | } | |
5629 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5630 | { | |
5631 | { "@PROGRAM@", (void *) 0 }, | |
5632 | _LT_EOF | |
5633 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5634 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5635 | {0, (void *) 0} | |
5636 | }; | |
5637 | ||
5638 | /* This works around a problem in FreeBSD linker */ | |
5639 | #ifdef FREEBSD_WORKAROUND | |
5640 | static const void *lt_preloaded_setup() { | |
5641 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5642 | } | |
5643 | #endif | |
5644 | ||
5645 | #ifdef __cplusplus | |
5646 | } | |
5647 | #endif | |
5648 | _LT_EOF | |
5649 | # Now try linking the two files. | |
5650 | mv conftest.$ac_objext conftstm.$ac_objext | |
5651 | lt_save_LIBS="$LIBS" | |
5652 | lt_save_CFLAGS="$CFLAGS" | |
5653 | LIBS="conftstm.$ac_objext" | |
5654 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5655 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5656 | (eval $ac_link) 2>&5 | |
5657 | ac_status=$? | |
5658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5659 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5660 | pipe_works=yes | |
5661 | fi | |
5662 | LIBS="$lt_save_LIBS" | |
5663 | CFLAGS="$lt_save_CFLAGS" | |
5664 | else | |
5665 | echo "cannot find nm_test_func in $nlist" >&5 | |
5666 | fi | |
5667 | else | |
5668 | echo "cannot find nm_test_var in $nlist" >&5 | |
5669 | fi | |
5670 | else | |
5671 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5672 | fi | |
5673 | else | |
5674 | echo "$progname: failed program was:" >&5 | |
5675 | cat conftest.$ac_ext >&5 | |
5676 | fi | |
5677 | rm -rf conftest* conftst* | |
5678 | ||
5679 | # Do not use the global_symbol_pipe unless it works. | |
5680 | if test "$pipe_works" = yes; then | |
5681 | break | |
5682 | else | |
5683 | lt_cv_sys_global_symbol_pipe= | |
5684 | fi | |
5685 | done | |
5686 | ||
5687 | fi | |
5688 | ||
5689 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5690 | lt_cv_sys_global_symbol_to_cdecl= | |
5691 | fi | |
5692 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5694 | $as_echo "failed" >&6; } | |
5695 | else | |
5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5697 | $as_echo "ok" >&6; } | |
5698 | fi | |
5699 | ||
5700 | ||
5701 | ||
5702 | ||
5703 | ||
5704 | ||
5705 | ||
5706 | ||
5707 | ||
5708 | ||
5709 | ||
5710 | ||
5711 | ||
5712 | ||
5713 | ||
5714 | ||
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | # Check whether --enable-libtool-lock was given. | |
5722 | if test "${enable_libtool_lock+set}" = set; then : | |
5723 | enableval=$enable_libtool_lock; | |
5724 | fi | |
5725 | ||
5726 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5727 | ||
5728 | # Some flags need to be propagated to the compiler or linker for good | |
5729 | # libtool support. | |
5730 | case $host in | |
5731 | ia64-*-hpux*) | |
5732 | # Find out which ABI we are using. | |
5733 | echo 'int i;' > conftest.$ac_ext | |
5734 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5735 | (eval $ac_compile) 2>&5 | |
5736 | ac_status=$? | |
5737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5738 | test $ac_status = 0; }; then | |
5739 | case `/usr/bin/file conftest.$ac_objext` in | |
5740 | *ELF-32*) | |
5741 | HPUX_IA64_MODE="32" | |
5742 | ;; | |
5743 | *ELF-64*) | |
5744 | HPUX_IA64_MODE="64" | |
5745 | ;; | |
5746 | esac | |
5747 | fi | |
5748 | rm -rf conftest* | |
5749 | ;; | |
5750 | *-*-irix6*) | |
5751 | # Find out which ABI we are using. | |
5752 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
5753 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5754 | (eval $ac_compile) 2>&5 | |
5755 | ac_status=$? | |
5756 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5757 | test $ac_status = 0; }; then | |
5758 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5759 | case `/usr/bin/file conftest.$ac_objext` in | |
5760 | *32-bit*) | |
5761 | LD="${LD-ld} -melf32bsmip" | |
5762 | ;; | |
5763 | *N32*) | |
5764 | LD="${LD-ld} -melf32bmipn32" | |
5765 | ;; | |
5766 | *64-bit*) | |
5767 | LD="${LD-ld} -melf64bmip" | |
5768 | ;; | |
5769 | esac | |
5770 | else | |
5771 | case `/usr/bin/file conftest.$ac_objext` in | |
5772 | *32-bit*) | |
5773 | LD="${LD-ld} -32" | |
5774 | ;; | |
5775 | *N32*) | |
5776 | LD="${LD-ld} -n32" | |
5777 | ;; | |
5778 | *64-bit*) | |
5779 | LD="${LD-ld} -64" | |
5780 | ;; | |
5781 | esac | |
5782 | fi | |
5783 | fi | |
5784 | rm -rf conftest* | |
5785 | ;; | |
5786 | ||
bf3d9781 | 5787 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
6bb11ab3 L |
5788 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
5789 | # Find out which ABI we are using. | |
5790 | echo 'int i;' > conftest.$ac_ext | |
5791 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5792 | (eval $ac_compile) 2>&5 | |
5793 | ac_status=$? | |
5794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5795 | test $ac_status = 0; }; then | |
5796 | case `/usr/bin/file conftest.o` in | |
5797 | *32-bit*) | |
5798 | case $host in | |
5799 | x86_64-*kfreebsd*-gnu) | |
5800 | LD="${LD-ld} -m elf_i386_fbsd" | |
5801 | ;; | |
5802 | x86_64-*linux*) | |
5803 | case `/usr/bin/file conftest.o` in | |
5804 | *x86-64*) | |
5805 | LD="${LD-ld} -m elf32_x86_64" | |
5806 | ;; | |
5807 | *) | |
5808 | LD="${LD-ld} -m elf_i386" | |
5809 | ;; | |
5810 | esac | |
5811 | ;; | |
bf3d9781 AM |
5812 | powerpc64le-*linux*) |
5813 | LD="${LD-ld} -m elf32lppclinux" | |
5814 | ;; | |
5815 | powerpc64-*linux*) | |
6bb11ab3 L |
5816 | LD="${LD-ld} -m elf32ppclinux" |
5817 | ;; | |
5818 | s390x-*linux*) | |
5819 | LD="${LD-ld} -m elf_s390" | |
5820 | ;; | |
5821 | sparc64-*linux*) | |
5822 | LD="${LD-ld} -m elf32_sparc" | |
5823 | ;; | |
5824 | esac | |
5825 | ;; | |
5826 | *64-bit*) | |
5827 | case $host in | |
5828 | x86_64-*kfreebsd*-gnu) | |
5829 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5830 | ;; | |
5831 | x86_64-*linux*) | |
5832 | LD="${LD-ld} -m elf_x86_64" | |
5833 | ;; | |
bf3d9781 AM |
5834 | powerpcle-*linux*) |
5835 | LD="${LD-ld} -m elf64lppc" | |
5836 | ;; | |
5837 | powerpc-*linux*) | |
6bb11ab3 L |
5838 | LD="${LD-ld} -m elf64ppc" |
5839 | ;; | |
5840 | s390*-*linux*|s390*-*tpf*) | |
5841 | LD="${LD-ld} -m elf64_s390" | |
5842 | ;; | |
5843 | sparc*-*linux*) | |
5844 | LD="${LD-ld} -m elf64_sparc" | |
5845 | ;; | |
5846 | esac | |
5847 | ;; | |
5848 | esac | |
5849 | fi | |
5850 | rm -rf conftest* | |
5851 | ;; | |
5852 | ||
5853 | *-*-sco3.2v5*) | |
5854 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5855 | SAVE_CFLAGS="$CFLAGS" | |
5856 | CFLAGS="$CFLAGS -belf" | |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5858 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 5859 | if ${lt_cv_cc_needs_belf+:} false; then : |
6bb11ab3 L |
5860 | $as_echo_n "(cached) " >&6 |
5861 | else | |
5862 | ac_ext=c | |
5863 | ac_cpp='$CPP $CPPFLAGS' | |
5864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5867 | ||
5868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5869 | /* end confdefs.h. */ | |
5870 | ||
5871 | int | |
5872 | main () | |
5873 | { | |
5874 | ||
5875 | ; | |
5876 | return 0; | |
5877 | } | |
5878 | _ACEOF | |
5879 | if ac_fn_c_try_link "$LINENO"; then : | |
5880 | lt_cv_cc_needs_belf=yes | |
5881 | else | |
5882 | lt_cv_cc_needs_belf=no | |
5883 | fi | |
5884 | rm -f core conftest.err conftest.$ac_objext \ | |
5885 | conftest$ac_exeext conftest.$ac_ext | |
5886 | ac_ext=c | |
5887 | ac_cpp='$CPP $CPPFLAGS' | |
5888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5891 | ||
5892 | fi | |
5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5894 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5895 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5896 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5897 | CFLAGS="$SAVE_CFLAGS" | |
5898 | fi | |
5899 | ;; | |
5900 | sparc*-*solaris*) | |
5901 | # Find out which ABI we are using. | |
5902 | echo 'int i;' > conftest.$ac_ext | |
5903 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5904 | (eval $ac_compile) 2>&5 | |
5905 | ac_status=$? | |
5906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5907 | test $ac_status = 0; }; then | |
5908 | case `/usr/bin/file conftest.o` in | |
5909 | *64-bit*) | |
5910 | case $lt_cv_prog_gnu_ld in | |
5911 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5912 | *) | |
5913 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5914 | LD="${LD-ld} -64" | |
5915 | fi | |
5916 | ;; | |
5917 | esac | |
5918 | ;; | |
5919 | esac | |
5920 | fi | |
5921 | rm -rf conftest* | |
5922 | ;; | |
5923 | esac | |
5924 | ||
5925 | need_locks="$enable_libtool_lock" | |
5926 | ||
5927 | ||
5928 | case $host_os in | |
5929 | rhapsody* | darwin*) | |
5930 | if test -n "$ac_tool_prefix"; then | |
5931 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5932 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5934 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5935 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
6bb11ab3 L |
5936 | $as_echo_n "(cached) " >&6 |
5937 | else | |
5938 | if test -n "$DSYMUTIL"; then | |
5939 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5940 | else | |
5941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5942 | for as_dir in $PATH | |
5943 | do | |
5944 | IFS=$as_save_IFS | |
5945 | test -z "$as_dir" && as_dir=. | |
5946 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
5948 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5950 | break 2 | |
5951 | fi | |
5952 | done | |
5953 | done | |
5954 | IFS=$as_save_IFS | |
5955 | ||
5956 | fi | |
5957 | fi | |
5958 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5959 | if test -n "$DSYMUTIL"; then | |
5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5961 | $as_echo "$DSYMUTIL" >&6; } | |
5962 | else | |
5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5964 | $as_echo "no" >&6; } | |
5965 | fi | |
5966 | ||
5967 | ||
5968 | fi | |
5969 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5970 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5971 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5972 | set dummy dsymutil; ac_word=$2 | |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5974 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5975 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
6bb11ab3 L |
5976 | $as_echo_n "(cached) " >&6 |
5977 | else | |
5978 | if test -n "$ac_ct_DSYMUTIL"; then | |
5979 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5980 | else | |
5981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5982 | for as_dir in $PATH | |
5983 | do | |
5984 | IFS=$as_save_IFS | |
5985 | test -z "$as_dir" && as_dir=. | |
5986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
5988 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5990 | break 2 | |
5991 | fi | |
5992 | done | |
5993 | done | |
5994 | IFS=$as_save_IFS | |
5995 | ||
5996 | fi | |
5997 | fi | |
5998 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5999 | if test -n "$ac_ct_DSYMUTIL"; then | |
6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
6001 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6002 | else | |
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6004 | $as_echo "no" >&6; } | |
6005 | fi | |
6006 | ||
6007 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6008 | DSYMUTIL=":" | |
6009 | else | |
6010 | case $cross_compiling:$ac_tool_warned in | |
6011 | yes:) | |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6013 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6014 | ac_tool_warned=yes ;; | |
6015 | esac | |
6016 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6017 | fi | |
6018 | else | |
6019 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6020 | fi | |
6021 | ||
6022 | if test -n "$ac_tool_prefix"; then | |
6023 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6024 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6026 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6027 | if ${ac_cv_prog_NMEDIT+:} false; then : |
6bb11ab3 L |
6028 | $as_echo_n "(cached) " >&6 |
6029 | else | |
6030 | if test -n "$NMEDIT"; then | |
6031 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6032 | else | |
6033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6034 | for as_dir in $PATH | |
6035 | do | |
6036 | IFS=$as_save_IFS | |
6037 | test -z "$as_dir" && as_dir=. | |
6038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6040 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
6041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6042 | break 2 | |
6043 | fi | |
6044 | done | |
6045 | done | |
6046 | IFS=$as_save_IFS | |
6047 | ||
6048 | fi | |
6049 | fi | |
6050 | NMEDIT=$ac_cv_prog_NMEDIT | |
6051 | if test -n "$NMEDIT"; then | |
6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
6053 | $as_echo "$NMEDIT" >&6; } | |
6054 | else | |
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6056 | $as_echo "no" >&6; } | |
6057 | fi | |
6058 | ||
6059 | ||
6060 | fi | |
6061 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6062 | ac_ct_NMEDIT=$NMEDIT | |
6063 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6064 | set dummy nmedit; ac_word=$2 | |
6065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6066 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6067 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
6bb11ab3 L |
6068 | $as_echo_n "(cached) " >&6 |
6069 | else | |
6070 | if test -n "$ac_ct_NMEDIT"; then | |
6071 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6072 | else | |
6073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6074 | for as_dir in $PATH | |
6075 | do | |
6076 | IFS=$as_save_IFS | |
6077 | test -z "$as_dir" && as_dir=. | |
6078 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6080 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
6081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6082 | break 2 | |
6083 | fi | |
6084 | done | |
6085 | done | |
6086 | IFS=$as_save_IFS | |
6087 | ||
6088 | fi | |
6089 | fi | |
6090 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6091 | if test -n "$ac_ct_NMEDIT"; then | |
6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
6093 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6094 | else | |
6095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6096 | $as_echo "no" >&6; } | |
6097 | fi | |
6098 | ||
6099 | if test "x$ac_ct_NMEDIT" = x; then | |
6100 | NMEDIT=":" | |
6101 | else | |
6102 | case $cross_compiling:$ac_tool_warned in | |
6103 | yes:) | |
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6105 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6106 | ac_tool_warned=yes ;; | |
6107 | esac | |
6108 | NMEDIT=$ac_ct_NMEDIT | |
6109 | fi | |
6110 | else | |
6111 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6112 | fi | |
6113 | ||
6114 | if test -n "$ac_tool_prefix"; then | |
6115 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6116 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6118 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6119 | if ${ac_cv_prog_LIPO+:} false; then : |
6bb11ab3 L |
6120 | $as_echo_n "(cached) " >&6 |
6121 | else | |
6122 | if test -n "$LIPO"; then | |
6123 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6124 | else | |
6125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6126 | for as_dir in $PATH | |
6127 | do | |
6128 | IFS=$as_save_IFS | |
6129 | test -z "$as_dir" && as_dir=. | |
6130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6132 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
6133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6134 | break 2 | |
6135 | fi | |
6136 | done | |
6137 | done | |
6138 | IFS=$as_save_IFS | |
6139 | ||
6140 | fi | |
6141 | fi | |
6142 | LIPO=$ac_cv_prog_LIPO | |
6143 | if test -n "$LIPO"; then | |
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
6145 | $as_echo "$LIPO" >&6; } | |
6146 | else | |
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6148 | $as_echo "no" >&6; } | |
6149 | fi | |
6150 | ||
6151 | ||
6152 | fi | |
6153 | if test -z "$ac_cv_prog_LIPO"; then | |
6154 | ac_ct_LIPO=$LIPO | |
6155 | # Extract the first word of "lipo", so it can be a program name with args. | |
6156 | set dummy lipo; ac_word=$2 | |
6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6158 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6159 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
6bb11ab3 L |
6160 | $as_echo_n "(cached) " >&6 |
6161 | else | |
6162 | if test -n "$ac_ct_LIPO"; then | |
6163 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6164 | else | |
6165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6166 | for as_dir in $PATH | |
6167 | do | |
6168 | IFS=$as_save_IFS | |
6169 | test -z "$as_dir" && as_dir=. | |
6170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6172 | ac_cv_prog_ac_ct_LIPO="lipo" |
6173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6174 | break 2 | |
6175 | fi | |
6176 | done | |
6177 | done | |
6178 | IFS=$as_save_IFS | |
6179 | ||
6180 | fi | |
6181 | fi | |
6182 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6183 | if test -n "$ac_ct_LIPO"; then | |
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
6185 | $as_echo "$ac_ct_LIPO" >&6; } | |
6186 | else | |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6188 | $as_echo "no" >&6; } | |
6189 | fi | |
6190 | ||
6191 | if test "x$ac_ct_LIPO" = x; then | |
6192 | LIPO=":" | |
6193 | else | |
6194 | case $cross_compiling:$ac_tool_warned in | |
6195 | yes:) | |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6197 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6198 | ac_tool_warned=yes ;; | |
6199 | esac | |
6200 | LIPO=$ac_ct_LIPO | |
6201 | fi | |
6202 | else | |
6203 | LIPO="$ac_cv_prog_LIPO" | |
6204 | fi | |
6205 | ||
6206 | if test -n "$ac_tool_prefix"; then | |
6207 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6208 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6210 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6211 | if ${ac_cv_prog_OTOOL+:} false; then : |
6bb11ab3 L |
6212 | $as_echo_n "(cached) " >&6 |
6213 | else | |
6214 | if test -n "$OTOOL"; then | |
6215 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6216 | else | |
6217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6218 | for as_dir in $PATH | |
6219 | do | |
6220 | IFS=$as_save_IFS | |
6221 | test -z "$as_dir" && as_dir=. | |
6222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6224 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
6225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6226 | break 2 | |
6227 | fi | |
6228 | done | |
6229 | done | |
6230 | IFS=$as_save_IFS | |
6231 | ||
6232 | fi | |
6233 | fi | |
6234 | OTOOL=$ac_cv_prog_OTOOL | |
6235 | if test -n "$OTOOL"; then | |
6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
6237 | $as_echo "$OTOOL" >&6; } | |
6238 | else | |
6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6240 | $as_echo "no" >&6; } | |
6241 | fi | |
6242 | ||
6243 | ||
6244 | fi | |
6245 | if test -z "$ac_cv_prog_OTOOL"; then | |
6246 | ac_ct_OTOOL=$OTOOL | |
6247 | # Extract the first word of "otool", so it can be a program name with args. | |
6248 | set dummy otool; ac_word=$2 | |
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6250 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6251 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
6bb11ab3 L |
6252 | $as_echo_n "(cached) " >&6 |
6253 | else | |
6254 | if test -n "$ac_ct_OTOOL"; then | |
6255 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6256 | else | |
6257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6258 | for as_dir in $PATH | |
6259 | do | |
6260 | IFS=$as_save_IFS | |
6261 | test -z "$as_dir" && as_dir=. | |
6262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6264 | ac_cv_prog_ac_ct_OTOOL="otool" |
6265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6266 | break 2 | |
6267 | fi | |
6268 | done | |
6269 | done | |
6270 | IFS=$as_save_IFS | |
6271 | ||
6272 | fi | |
6273 | fi | |
6274 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6275 | if test -n "$ac_ct_OTOOL"; then | |
6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
6277 | $as_echo "$ac_ct_OTOOL" >&6; } | |
6278 | else | |
6279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6280 | $as_echo "no" >&6; } | |
6281 | fi | |
6282 | ||
6283 | if test "x$ac_ct_OTOOL" = x; then | |
6284 | OTOOL=":" | |
6285 | else | |
6286 | case $cross_compiling:$ac_tool_warned in | |
6287 | yes:) | |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6289 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6290 | ac_tool_warned=yes ;; | |
6291 | esac | |
6292 | OTOOL=$ac_ct_OTOOL | |
6293 | fi | |
6294 | else | |
6295 | OTOOL="$ac_cv_prog_OTOOL" | |
6296 | fi | |
6297 | ||
6298 | if test -n "$ac_tool_prefix"; then | |
6299 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6300 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6302 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6303 | if ${ac_cv_prog_OTOOL64+:} false; then : |
6bb11ab3 L |
6304 | $as_echo_n "(cached) " >&6 |
6305 | else | |
6306 | if test -n "$OTOOL64"; then | |
6307 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6308 | else | |
6309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6310 | for as_dir in $PATH | |
6311 | do | |
6312 | IFS=$as_save_IFS | |
6313 | test -z "$as_dir" && as_dir=. | |
6314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6315 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6316 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
6317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6318 | break 2 | |
6319 | fi | |
6320 | done | |
6321 | done | |
6322 | IFS=$as_save_IFS | |
6323 | ||
6324 | fi | |
6325 | fi | |
6326 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6327 | if test -n "$OTOOL64"; then | |
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
6329 | $as_echo "$OTOOL64" >&6; } | |
6330 | else | |
6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6332 | $as_echo "no" >&6; } | |
6333 | fi | |
6334 | ||
6335 | ||
6336 | fi | |
6337 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6338 | ac_ct_OTOOL64=$OTOOL64 | |
6339 | # Extract the first word of "otool64", so it can be a program name with args. | |
6340 | set dummy otool64; ac_word=$2 | |
6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6342 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6343 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
6bb11ab3 L |
6344 | $as_echo_n "(cached) " >&6 |
6345 | else | |
6346 | if test -n "$ac_ct_OTOOL64"; then | |
6347 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6348 | else | |
6349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6350 | for as_dir in $PATH | |
6351 | do | |
6352 | IFS=$as_save_IFS | |
6353 | test -z "$as_dir" && as_dir=. | |
6354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6356 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
6357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6358 | break 2 | |
6359 | fi | |
6360 | done | |
6361 | done | |
6362 | IFS=$as_save_IFS | |
6363 | ||
6364 | fi | |
6365 | fi | |
6366 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6367 | if test -n "$ac_ct_OTOOL64"; then | |
6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
6369 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
6370 | else | |
6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6372 | $as_echo "no" >&6; } | |
6373 | fi | |
6374 | ||
6375 | if test "x$ac_ct_OTOOL64" = x; then | |
6376 | OTOOL64=":" | |
6377 | else | |
6378 | case $cross_compiling:$ac_tool_warned in | |
6379 | yes:) | |
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6382 | ac_tool_warned=yes ;; | |
6383 | esac | |
6384 | OTOOL64=$ac_ct_OTOOL64 | |
6385 | fi | |
6386 | else | |
6387 | OTOOL64="$ac_cv_prog_OTOOL64" | |
6388 | fi | |
6389 | ||
6390 | ||
6391 | ||
6392 | ||
6393 | ||
6394 | ||
6395 | ||
6396 | ||
6397 | ||
6398 | ||
6399 | ||
6400 | ||
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
6417 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 6418 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
6bb11ab3 L |
6419 | $as_echo_n "(cached) " >&6 |
6420 | else | |
6421 | lt_cv_apple_cc_single_mod=no | |
6422 | if test -z "${LT_MULTI_MODULE}"; then | |
6423 | # By default we will add the -single_module flag. You can override | |
6424 | # by either setting the environment variable LT_MULTI_MODULE | |
6425 | # non-empty at configure time, or by adding -multi_module to the | |
6426 | # link flags. | |
6427 | rm -rf libconftest.dylib* | |
6428 | echo "int foo(void){return 1;}" > conftest.c | |
6429 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6430 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6431 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6432 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6433 | _lt_result=$? | |
6434 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6435 | lt_cv_apple_cc_single_mod=yes | |
6436 | else | |
6437 | cat conftest.err >&5 | |
6438 | fi | |
6439 | rm -rf libconftest.dylib* | |
6440 | rm -f conftest.* | |
6441 | fi | |
6442 | fi | |
6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
6444 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
6446 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 6447 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
6bb11ab3 L |
6448 | $as_echo_n "(cached) " >&6 |
6449 | else | |
6450 | lt_cv_ld_exported_symbols_list=no | |
6451 | save_LDFLAGS=$LDFLAGS | |
6452 | echo "_main" > conftest.sym | |
6453 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6455 | /* end confdefs.h. */ | |
6456 | ||
6457 | int | |
6458 | main () | |
6459 | { | |
6460 | ||
6461 | ; | |
6462 | return 0; | |
6463 | } | |
6464 | _ACEOF | |
6465 | if ac_fn_c_try_link "$LINENO"; then : | |
6466 | lt_cv_ld_exported_symbols_list=yes | |
6467 | else | |
6468 | lt_cv_ld_exported_symbols_list=no | |
6469 | fi | |
6470 | rm -f core conftest.err conftest.$ac_objext \ | |
6471 | conftest$ac_exeext conftest.$ac_ext | |
6472 | LDFLAGS="$save_LDFLAGS" | |
6473 | ||
6474 | fi | |
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6476 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
6478 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 6479 | if ${lt_cv_ld_force_load+:} false; then : |
6bb11ab3 L |
6480 | $as_echo_n "(cached) " >&6 |
6481 | else | |
6482 | lt_cv_ld_force_load=no | |
6483 | cat > conftest.c << _LT_EOF | |
6484 | int forced_loaded() { return 2;} | |
6485 | _LT_EOF | |
6486 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
6487 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
6488 | echo "$AR cru libconftest.a conftest.o" >&5 | |
6489 | $AR cru libconftest.a conftest.o 2>&5 | |
6490 | cat > conftest.c << _LT_EOF | |
6491 | int main() { return 0;} | |
6492 | _LT_EOF | |
6493 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
6494 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
6495 | _lt_result=$? | |
6496 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
6497 | lt_cv_ld_force_load=yes | |
6498 | else | |
6499 | cat conftest.err >&5 | |
6500 | fi | |
6501 | rm -f conftest.err libconftest.a conftest conftest.c | |
6502 | rm -rf conftest.dSYM | |
6503 | ||
6504 | fi | |
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
6506 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
6507 | case $host_os in | |
6508 | rhapsody* | darwin1.[012]) | |
6509 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6510 | darwin1.*) | |
6511 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6512 | darwin*) # darwin 5.x on | |
6513 | # if running on 10.5 or later, the deployment target defaults | |
6514 | # to the OS version, if on x86, and 10.4, the deployment | |
6515 | # target defaults to 10.4. Don't you love it? | |
6516 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6517 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6518 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
ae7d0cac | 6519 | 10.[012][,.]*) |
6bb11ab3 L |
6520 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
6521 | 10.*) | |
6522 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6523 | esac | |
6524 | ;; | |
6525 | esac | |
6526 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6527 | _lt_dar_single_mod='$single_module' | |
6528 | fi | |
6529 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6530 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6531 | else | |
6532 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6533 | fi | |
6534 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
6535 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6536 | else | |
6537 | _lt_dsymutil= | |
6538 | fi | |
6539 | ;; | |
6540 | esac | |
6541 | ||
6542 | for ac_header in dlfcn.h | |
6543 | do : | |
6544 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6545 | " | |
d0ac1c44 | 6546 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
6bb11ab3 L |
6547 | cat >>confdefs.h <<_ACEOF |
6548 | #define HAVE_DLFCN_H 1 | |
6549 | _ACEOF | |
6550 | ||
6551 | fi | |
6552 | ||
6553 | done | |
6554 | ||
6555 | ||
6556 | ||
ebe9564b | 6557 | |
6bb11ab3 L |
6558 | ac_config_headers="$ac_config_headers config.h:config.in" |
6559 | ||
6560 | ||
6561 | ||
0cb8d851 MF |
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
6563 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
d0ac1c44 | 6564 | if ${ac_cv_c_bigendian+:} false; then : |
0cb8d851 MF |
6565 | $as_echo_n "(cached) " >&6 |
6566 | else | |
6567 | ac_cv_c_bigendian=unknown | |
6568 | # See if we're dealing with a universal compiler. | |
6569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6570 | /* end confdefs.h. */ | |
6571 | #ifndef __APPLE_CC__ | |
6572 | not a universal capable compiler | |
6573 | #endif | |
6574 | typedef int dummy; | |
6575 | ||
6576 | _ACEOF | |
6577 | if ac_fn_c_try_compile "$LINENO"; then : | |
6578 | ||
6579 | # Check for potential -arch flags. It is not universal unless | |
6580 | # there are at least two -arch flags with different values. | |
6581 | ac_arch= | |
6582 | ac_prev= | |
6583 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6584 | if test -n "$ac_prev"; then | |
6585 | case $ac_word in | |
6586 | i?86 | x86_64 | ppc | ppc64) | |
6587 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6588 | ac_arch=$ac_word | |
6589 | else | |
6590 | ac_cv_c_bigendian=universal | |
6591 | break | |
6592 | fi | |
6593 | ;; | |
6594 | esac | |
6595 | ac_prev= | |
6596 | elif test "x$ac_word" = "x-arch"; then | |
6597 | ac_prev=arch | |
6598 | fi | |
6599 | done | |
6600 | fi | |
6601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6602 | if test $ac_cv_c_bigendian = unknown; then | |
6603 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6605 | /* end confdefs.h. */ | |
6606 | #include <sys/types.h> | |
6607 | #include <sys/param.h> | |
6608 | ||
6609 | int | |
6610 | main () | |
6611 | { | |
6612 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
6613 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6614 | && LITTLE_ENDIAN) | |
6615 | bogus endian macros | |
6616 | #endif | |
6617 | ||
6618 | ; | |
6619 | return 0; | |
6620 | } | |
6621 | _ACEOF | |
6622 | if ac_fn_c_try_compile "$LINENO"; then : | |
6623 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6625 | /* end confdefs.h. */ | |
6626 | #include <sys/types.h> | |
6627 | #include <sys/param.h> | |
6628 | ||
6629 | int | |
6630 | main () | |
6631 | { | |
6632 | #if BYTE_ORDER != BIG_ENDIAN | |
6633 | not big endian | |
6634 | #endif | |
6635 | ||
6636 | ; | |
6637 | return 0; | |
6638 | } | |
6639 | _ACEOF | |
6640 | if ac_fn_c_try_compile "$LINENO"; then : | |
6641 | ac_cv_c_bigendian=yes | |
6642 | else | |
6643 | ac_cv_c_bigendian=no | |
6644 | fi | |
6645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6646 | fi | |
6647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6648 | fi | |
6649 | if test $ac_cv_c_bigendian = unknown; then | |
6650 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6652 | /* end confdefs.h. */ | |
6653 | #include <limits.h> | |
6654 | ||
6655 | int | |
6656 | main () | |
6657 | { | |
6658 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6659 | bogus endian macros | |
6660 | #endif | |
6661 | ||
6662 | ; | |
6663 | return 0; | |
6664 | } | |
6665 | _ACEOF | |
6666 | if ac_fn_c_try_compile "$LINENO"; then : | |
6667 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6669 | /* end confdefs.h. */ | |
6670 | #include <limits.h> | |
6671 | ||
6672 | int | |
6673 | main () | |
6674 | { | |
6675 | #ifndef _BIG_ENDIAN | |
6676 | not big endian | |
6677 | #endif | |
6678 | ||
6679 | ; | |
6680 | return 0; | |
6681 | } | |
6682 | _ACEOF | |
6683 | if ac_fn_c_try_compile "$LINENO"; then : | |
6684 | ac_cv_c_bigendian=yes | |
6685 | else | |
6686 | ac_cv_c_bigendian=no | |
6687 | fi | |
6688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6689 | fi | |
6690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6691 | fi | |
6692 | if test $ac_cv_c_bigendian = unknown; then | |
6693 | # Compile a test program. | |
6694 | if test "$cross_compiling" = yes; then : | |
6695 | # Try to guess by grepping values from an object file. | |
6696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6697 | /* end confdefs.h. */ | |
6698 | short int ascii_mm[] = | |
6699 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6700 | short int ascii_ii[] = | |
6701 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6702 | int use_ascii (int i) { | |
6703 | return ascii_mm[i] + ascii_ii[i]; | |
6704 | } | |
6705 | short int ebcdic_ii[] = | |
6706 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6707 | short int ebcdic_mm[] = | |
6708 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6709 | int use_ebcdic (int i) { | |
6710 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6711 | } | |
6712 | extern int foo; | |
6713 | ||
6714 | int | |
6715 | main () | |
6716 | { | |
6717 | return use_ascii (foo) == use_ebcdic (foo); | |
6718 | ; | |
6719 | return 0; | |
6720 | } | |
6721 | _ACEOF | |
6722 | if ac_fn_c_try_compile "$LINENO"; then : | |
6723 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6724 | ac_cv_c_bigendian=yes | |
6725 | fi | |
6726 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6727 | if test "$ac_cv_c_bigendian" = unknown; then | |
6728 | ac_cv_c_bigendian=no | |
6729 | else | |
6730 | # finding both strings is unlikely to happen, but who knows? | |
6731 | ac_cv_c_bigendian=unknown | |
6732 | fi | |
6733 | fi | |
6734 | fi | |
6735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6736 | else | |
6737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6738 | /* end confdefs.h. */ | |
6739 | $ac_includes_default | |
6740 | int | |
6741 | main () | |
6742 | { | |
6743 | ||
6744 | /* Are we little or big endian? From Harbison&Steele. */ | |
6745 | union | |
6746 | { | |
6747 | long int l; | |
6748 | char c[sizeof (long int)]; | |
6749 | } u; | |
6750 | u.l = 1; | |
6751 | return u.c[sizeof (long int) - 1] == 1; | |
6752 | ||
6753 | ; | |
6754 | return 0; | |
6755 | } | |
6756 | _ACEOF | |
6757 | if ac_fn_c_try_run "$LINENO"; then : | |
6758 | ac_cv_c_bigendian=no | |
6759 | else | |
6760 | ac_cv_c_bigendian=yes | |
6761 | fi | |
6762 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6763 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6764 | fi | |
6765 | ||
6766 | fi | |
6767 | fi | |
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6769 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6770 | case $ac_cv_c_bigendian in #( | |
6771 | yes) | |
6772 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6773 | ;; #( | |
6774 | no) | |
6775 | ;; #( | |
6776 | universal) | |
6777 | ||
6778 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6779 | ||
6780 | ;; #( | |
6781 | *) | |
d0ac1c44 | 6782 | as_fn_error $? "unknown endianness |
0cb8d851 MF |
6783 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
6784 | esac | |
6785 | ||
6bb11ab3 L |
6786 | |
6787 | ||
6788 | ||
6789 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
5c887dd5 JB |
6790 | if test -z "$CC_FOR_BUILD"; then |
6791 | if test "x$cross_compiling" = "xno"; then | |
6792 | CC_FOR_BUILD='$(CC)' | |
6793 | else | |
6794 | CC_FOR_BUILD=gcc | |
6795 | fi | |
6bb11ab3 L |
6796 | fi |
6797 | ||
6798 | ||
6799 | ||
6bb11ab3 L |
6800 | AR=${AR-ar} |
6801 | ||
6802 | if test -n "$ac_tool_prefix"; then | |
6803 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6804 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6806 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6807 | if ${ac_cv_prog_RANLIB+:} false; then : |
6bb11ab3 L |
6808 | $as_echo_n "(cached) " >&6 |
6809 | else | |
6810 | if test -n "$RANLIB"; then | |
6811 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6812 | else | |
6813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6814 | for as_dir in $PATH | |
6815 | do | |
6816 | IFS=$as_save_IFS | |
6817 | test -z "$as_dir" && as_dir=. | |
6818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6819 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6820 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6822 | break 2 | |
6823 | fi | |
6824 | done | |
6825 | done | |
6826 | IFS=$as_save_IFS | |
6827 | ||
6828 | fi | |
6829 | fi | |
6830 | RANLIB=$ac_cv_prog_RANLIB | |
6831 | if test -n "$RANLIB"; then | |
6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6833 | $as_echo "$RANLIB" >&6; } | |
6834 | else | |
6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6836 | $as_echo "no" >&6; } | |
6837 | fi | |
6838 | ||
6839 | ||
6840 | fi | |
6841 | if test -z "$ac_cv_prog_RANLIB"; then | |
6842 | ac_ct_RANLIB=$RANLIB | |
6843 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6844 | set dummy ranlib; ac_word=$2 | |
6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6846 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6847 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
6bb11ab3 L |
6848 | $as_echo_n "(cached) " >&6 |
6849 | else | |
6850 | if test -n "$ac_ct_RANLIB"; then | |
6851 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6852 | else | |
6853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6854 | for as_dir in $PATH | |
6855 | do | |
6856 | IFS=$as_save_IFS | |
6857 | test -z "$as_dir" && as_dir=. | |
6858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6859 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6860 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6862 | break 2 | |
6863 | fi | |
6864 | done | |
6865 | done | |
6866 | IFS=$as_save_IFS | |
6867 | ||
6868 | fi | |
6869 | fi | |
6870 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6871 | if test -n "$ac_ct_RANLIB"; then | |
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6873 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6874 | else | |
6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6876 | $as_echo "no" >&6; } | |
6877 | fi | |
6878 | ||
6879 | if test "x$ac_ct_RANLIB" = x; then | |
6880 | RANLIB=":" | |
6881 | else | |
6882 | case $cross_compiling:$ac_tool_warned in | |
6883 | yes:) | |
6884 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6885 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6886 | ac_tool_warned=yes ;; | |
6887 | esac | |
6888 | RANLIB=$ac_ct_RANLIB | |
6889 | fi | |
6890 | else | |
6891 | RANLIB="$ac_cv_prog_RANLIB" | |
6892 | fi | |
6893 | ||
6894 | ||
46f900c0 MF |
6895 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using |
6896 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
6897 | # is C99. So handle it ourselves. | |
6898 | : | |
6899 | C_DIALECT= | |
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
6901 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
6902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6903 | /* end confdefs.h. */ | |
6904 | ||
6905 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
6906 | # error "C11 support not found" | |
6907 | #endif | |
6908 | ||
6909 | _ACEOF | |
6910 | if ac_fn_c_try_compile "$LINENO"; then : | |
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6912 | $as_echo "yes" >&6; } | |
6913 | else | |
6914 | ||
6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6916 | $as_echo "no" >&6; } | |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
6918 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
6919 | ac_save_CC="$CC" | |
6920 | CC="$CC -std=c11" | |
6921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6922 | /* end confdefs.h. */ | |
6923 | ||
6924 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
6925 | # error "C11 support not found" | |
6926 | #endif | |
6927 | ||
6928 | _ACEOF | |
6929 | if ac_fn_c_try_compile "$LINENO"; then : | |
6930 | ||
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6932 | $as_echo "yes" >&6; } | |
6933 | CC="$ac_save_CC" | |
6934 | C_DIALECT="-std=c11" | |
6935 | ||
6936 | else | |
6937 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
6938 | fi | |
6939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6940 | fi | |
6941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6942 | ||
6943 | ||
6bb11ab3 L |
6944 | # Some of the common include files depend on bfd.h, and bfd.h checks |
6945 | # that config.h is included first by testing that the PACKAGE macro | |
6946 | # is defined. | |
6947 | PACKAGE=sim | |
6948 | ||
6949 | cat >>confdefs.h <<_ACEOF | |
6950 | #define PACKAGE "$PACKAGE" | |
6951 | _ACEOF | |
6952 | ||
6953 | ||
6954 | ||
6955 | # Dependency checking. | |
6956 | ac_config_commands="$ac_config_commands depdir" | |
6957 | ||
6958 | ||
6959 | depcc="$CC" am_compiler_list= | |
6960 | ||
6961 | am_depcomp=$ac_aux_dir/depcomp | |
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
6963 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d0ac1c44 | 6964 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
6bb11ab3 L |
6965 | $as_echo_n "(cached) " >&6 |
6966 | else | |
6967 | if test -f "$am_depcomp"; then | |
6968 | # We make a subdir and do the tests there. Otherwise we can end up | |
6969 | # making bogus files that we don't know about and never remove. For | |
6970 | # instance it was reported that on HP-UX the gcc test will end up | |
6971 | # making a dummy file named `D' -- because `-MD' means `put the output | |
6972 | # in D'. | |
6973 | mkdir conftest.dir | |
6974 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6975 | # using a relative directory. | |
6976 | cp "$am_depcomp" conftest.dir | |
6977 | cd conftest.dir | |
6978 | # We will build objects and dependencies in a subdirectory because | |
6979 | # it helps to detect inapplicable dependency modes. For instance | |
6980 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6981 | # side effect of compilation, but ICC will put the dependencies in | |
6982 | # the current directory while Tru64 will put them in the object | |
6983 | # directory. | |
6984 | mkdir sub | |
6985 | ||
6986 | am_cv_CC_dependencies_compiler_type=none | |
6987 | if test "$am_compiler_list" = ""; then | |
6988 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6989 | fi | |
6990 | for depmode in $am_compiler_list; do | |
6991 | if test $depmode = none; then break; fi | |
6992 | ||
6993 | $as_echo "$as_me:$LINENO: trying $depmode" >&5 | |
6994 | # Setup a source with many dependencies, because some compilers | |
6995 | # like to wrap large dependency lists on column 80 (with \), and | |
6996 | # we should not choose a depcomp mode which is confused by this. | |
6997 | # | |
6998 | # We need to recreate these files for each test, as the compiler may | |
6999 | # overwrite some of them when testing with obscure command lines. | |
7000 | # This happens at least with the AIX C compiler. | |
7001 | : > sub/conftest.c | |
7002 | for i in 1 2 3 4 5 6; do | |
7003 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
7004 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
7005 | # Solaris 8's {/usr,}/bin/sh. | |
7006 | touch sub/conftst$i.h | |
7007 | done | |
7008 | echo "include sub/conftest.Po" > confmf | |
7009 | ||
7010 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
7011 | # mode. It turns out that the SunPro C++ compiler does not properly | |
7012 | # handle `-M -o', and we need to detect this. | |
7013 | depcmd="depmode=$depmode \ | |
7014 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
7015 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
7016 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
7017 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
7018 | if env $depcmd > conftest.err 2>&1 && | |
7019 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
7020 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
7021 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
7022 | # icc doesn't choke on unknown options, it will just issue warnings | |
7023 | # or remarks (even with -Werror). So we grep stderr for any message | |
7024 | # that says an option was ignored or not supported. | |
7025 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
7026 | # icc: Command line warning: ignoring option '-M'; no argument required | |
7027 | # The diagnosis changed in icc 8.0: | |
7028 | # icc: Command line remark: option '-MP' not supported | |
7029 | if (grep 'ignoring option' conftest.err || | |
7030 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
7031 | am_cv_CC_dependencies_compiler_type=$depmode | |
7032 | $as_echo "$as_me:$LINENO: success" >&5 | |
7033 | break | |
7034 | fi | |
7035 | fi | |
7036 | $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 | |
7037 | sed -e 's/^/| /' < conftest.err >&5 | |
7038 | done | |
7039 | ||
7040 | cd .. | |
7041 | rm -rf conftest.dir | |
7042 | else | |
7043 | am_cv_CC_dependencies_compiler_type=none | |
7044 | fi | |
7045 | ||
7046 | fi | |
7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
7048 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
7049 | if test x${am_cv_CC_dependencies_compiler_type-none} = xnone | |
d0ac1c44 | 7050 | then as_fn_error $? "no usable dependency style found" "$LINENO" 5 |
6bb11ab3 L |
7051 | else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
7052 | ||
7053 | fi | |
7054 | ||
7055 | ||
7056 | # Check for the 'make' the user wants to use. | |
7057 | for ac_prog in make | |
7058 | do | |
7059 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7060 | set dummy $ac_prog; ac_word=$2 | |
7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7062 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7063 | if ${ac_cv_prog_MAKE+:} false; then : |
6bb11ab3 L |
7064 | $as_echo_n "(cached) " >&6 |
7065 | else | |
7066 | if test -n "$MAKE"; then | |
7067 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
7068 | else | |
7069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7070 | for as_dir in $PATH | |
7071 | do | |
7072 | IFS=$as_save_IFS | |
7073 | test -z "$as_dir" && as_dir=. | |
7074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7076 | ac_cv_prog_MAKE="$ac_prog" |
7077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7078 | break 2 | |
7079 | fi | |
7080 | done | |
7081 | done | |
7082 | IFS=$as_save_IFS | |
7083 | ||
7084 | fi | |
7085 | fi | |
7086 | MAKE=$ac_cv_prog_MAKE | |
7087 | if test -n "$MAKE"; then | |
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | |
7089 | $as_echo "$MAKE" >&6; } | |
7090 | else | |
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7092 | $as_echo "no" >&6; } | |
7093 | fi | |
7094 | ||
7095 | ||
7096 | test -n "$MAKE" && break | |
7097 | done | |
7098 | ||
7099 | MAKE_IS_GNU= | |
7100 | case "`$MAKE --version 2>&1 | sed 1q`" in | |
7101 | *GNU*) | |
7102 | MAKE_IS_GNU=yes | |
7103 | ;; | |
7104 | esac | |
7105 | if test "$MAKE_IS_GNU" = yes; then | |
7106 | GMAKE_TRUE= | |
7107 | GMAKE_FALSE='#' | |
7108 | else | |
7109 | GMAKE_TRUE='#' | |
7110 | GMAKE_FALSE= | |
7111 | fi | |
7112 | ||
7113 | ||
7114 | ALL_LINGUAS= | |
7115 | # If we haven't got the data from the intl directory, | |
7116 | # assume NLS is disabled. | |
7117 | USE_NLS=no | |
7118 | LIBINTL= | |
7119 | LIBINTL_DEP= | |
7120 | INCINTL= | |
7121 | XGETTEXT= | |
7122 | GMSGFMT= | |
7123 | POSUB= | |
7124 | ||
7125 | if test -f ../../intl/config.intl; then | |
7126 | . ../../intl/config.intl | |
7127 | fi | |
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
7129 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
7130 | if test x"$USE_NLS" != xyes; then | |
7131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7132 | $as_echo "no" >&6; } | |
7133 | else | |
7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7135 | $as_echo "yes" >&6; } | |
7136 | ||
7137 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
7138 | ||
7139 | ||
7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
7141 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
7142 | # Look for .po and .gmo files in the source directory. | |
7143 | CATALOGS= | |
7144 | XLINGUAS= | |
7145 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
7146 | # If there aren't any .gmo files the shell will give us the | |
7147 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
7148 | # weeded out. | |
7149 | case "$cat" in *\**) | |
7150 | continue;; | |
7151 | esac | |
7152 | # The quadruple backslash is collapsed to a double backslash | |
7153 | # by the backticks, then collapsed again by the double quotes, | |
7154 | # leaving us with one backslash in the sed expression (right | |
7155 | # before the dot that mustn't act as a wildcard). | |
7156 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
7157 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
7158 | # The user is allowed to set LINGUAS to a list of languages to | |
7159 | # install catalogs for. If it's empty that means "all of them." | |
7160 | if test "x$LINGUAS" = x; then | |
7161 | CATALOGS="$CATALOGS $cat" | |
7162 | XLINGUAS="$XLINGUAS $lang" | |
7163 | else | |
7164 | case "$LINGUAS" in *$lang*) | |
7165 | CATALOGS="$CATALOGS $cat" | |
7166 | XLINGUAS="$XLINGUAS $lang" | |
7167 | ;; | |
7168 | esac | |
7169 | fi | |
7170 | done | |
7171 | LINGUAS="$XLINGUAS" | |
7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
7173 | $as_echo "$LINGUAS" >&6; } | |
7174 | ||
7175 | ||
7176 | DATADIRNAME=share | |
7177 | ||
7178 | INSTOBJEXT=.mo | |
7179 | ||
7180 | GENCAT=gencat | |
7181 | ||
7182 | CATOBJEXT=.gmo | |
7183 | ||
7184 | fi | |
7185 | ||
7186 | # Check for common headers. | |
68ed2854 MF |
7187 | # NB: You can assume C11 headers exist. |
7188 | for ac_header in unistd.h | |
6bb11ab3 | 7189 | do : |
68ed2854 MF |
7190 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
7191 | if test "x$ac_cv_header_unistd_h" = xyes; then : | |
6bb11ab3 | 7192 | cat >>confdefs.h <<_ACEOF |
68ed2854 | 7193 | #define HAVE_UNISTD_H 1 |
6bb11ab3 L |
7194 | _ACEOF |
7195 | ||
7196 | fi | |
7197 | ||
7198 | done | |
7199 | ||
936df756 | 7200 | for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h |
6bb11ab3 L |
7201 | do : |
7202 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7203 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 7204 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6bb11ab3 L |
7205 | cat >>confdefs.h <<_ACEOF |
7206 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7207 | _ACEOF | |
7208 | ||
7209 | fi | |
7210 | ||
7211 | done | |
7212 | ||
7213 | for ac_header in fcntl.h fpu_control.h | |
7214 | do : | |
7215 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7216 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 7217 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6bb11ab3 L |
7218 | cat >>confdefs.h <<_ACEOF |
7219 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7220 | _ACEOF | |
7221 | ||
7222 | fi | |
7223 | ||
7224 | done | |
7225 | ||
68ed2854 | 7226 | for ac_header in dlfcn.h sys/stat.h |
6bb11ab3 L |
7227 | do : |
7228 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7229 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 7230 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6bb11ab3 L |
7231 | cat >>confdefs.h <<_ACEOF |
7232 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7233 | _ACEOF | |
7234 | ||
7235 | fi | |
7236 | ||
7237 | done | |
7238 | ||
7239 | for ac_func in getrusage time sigaction __setfpucw | |
7240 | do : | |
7241 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7242 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 7243 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
6bb11ab3 L |
7244 | cat >>confdefs.h <<_ACEOF |
7245 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7246 | _ACEOF | |
7247 | ||
7248 | fi | |
7249 | done | |
7250 | ||
936df756 MF |
7251 | for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate |
7252 | do : | |
7253 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7254 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 7255 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
936df756 MF |
7256 | cat >>confdefs.h <<_ACEOF |
7257 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7258 | _ACEOF | |
7259 | ||
7260 | fi | |
7261 | done | |
7262 | ||
7263 | ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H | |
7264 | #include <sys/types.h> | |
7265 | #endif | |
7266 | #ifdef HAVE_SYS_STAT_H | |
7267 | #include <sys/stat.h> | |
7268 | #endif | |
7269 | " | |
d0ac1c44 | 7270 | if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then : |
936df756 MF |
7271 | |
7272 | cat >>confdefs.h <<_ACEOF | |
7273 | #define HAVE_STRUCT_STAT_ST_DEV 1 | |
7274 | _ACEOF | |
7275 | ||
7276 | ||
7277 | fi | |
7278 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H | |
7279 | #include <sys/types.h> | |
7280 | #endif | |
7281 | #ifdef HAVE_SYS_STAT_H | |
7282 | #include <sys/stat.h> | |
7283 | #endif | |
7284 | " | |
d0ac1c44 | 7285 | if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then : |
936df756 MF |
7286 | |
7287 | cat >>confdefs.h <<_ACEOF | |
7288 | #define HAVE_STRUCT_STAT_ST_INO 1 | |
7289 | _ACEOF | |
7290 | ||
7291 | ||
7292 | fi | |
7293 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H | |
7294 | #include <sys/types.h> | |
7295 | #endif | |
7296 | #ifdef HAVE_SYS_STAT_H | |
7297 | #include <sys/stat.h> | |
7298 | #endif | |
7299 | " | |
d0ac1c44 | 7300 | if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then : |
936df756 MF |
7301 | |
7302 | cat >>confdefs.h <<_ACEOF | |
7303 | #define HAVE_STRUCT_STAT_ST_MODE 1 | |
7304 | _ACEOF | |
7305 | ||
7306 | ||
7307 | fi | |
7308 | ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H | |
7309 | #include <sys/types.h> | |
7310 | #endif | |
7311 | #ifdef HAVE_SYS_STAT_H | |
7312 | #include <sys/stat.h> | |
7313 | #endif | |
7314 | " | |
d0ac1c44 | 7315 | if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then : |
936df756 MF |
7316 | |
7317 | cat >>confdefs.h <<_ACEOF | |
7318 | #define HAVE_STRUCT_STAT_ST_NLINK 1 | |
7319 | _ACEOF | |
7320 | ||
7321 | ||
7322 | fi | |
7323 | ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H | |
7324 | #include <sys/types.h> | |
7325 | #endif | |
7326 | #ifdef HAVE_SYS_STAT_H | |
7327 | #include <sys/stat.h> | |
7328 | #endif | |
7329 | " | |
d0ac1c44 | 7330 | if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then : |
936df756 MF |
7331 | |
7332 | cat >>confdefs.h <<_ACEOF | |
7333 | #define HAVE_STRUCT_STAT_ST_UID 1 | |
7334 | _ACEOF | |
7335 | ||
7336 | ||
7337 | fi | |
7338 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H | |
7339 | #include <sys/types.h> | |
7340 | #endif | |
7341 | #ifdef HAVE_SYS_STAT_H | |
7342 | #include <sys/stat.h> | |
7343 | #endif | |
7344 | " | |
d0ac1c44 | 7345 | if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then : |
936df756 MF |
7346 | |
7347 | cat >>confdefs.h <<_ACEOF | |
7348 | #define HAVE_STRUCT_STAT_ST_GID 1 | |
7349 | _ACEOF | |
7350 | ||
7351 | ||
7352 | fi | |
7353 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H | |
7354 | #include <sys/types.h> | |
7355 | #endif | |
7356 | #ifdef HAVE_SYS_STAT_H | |
7357 | #include <sys/stat.h> | |
7358 | #endif | |
7359 | " | |
d0ac1c44 | 7360 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
936df756 MF |
7361 | |
7362 | cat >>confdefs.h <<_ACEOF | |
7363 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7364 | _ACEOF | |
7365 | ||
7366 | ||
7367 | fi | |
7368 | ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H | |
7369 | #include <sys/types.h> | |
7370 | #endif | |
7371 | #ifdef HAVE_SYS_STAT_H | |
7372 | #include <sys/stat.h> | |
7373 | #endif | |
7374 | " | |
d0ac1c44 | 7375 | if test "x$ac_cv_member_struct_stat_st_size" = xyes; then : |
936df756 MF |
7376 | |
7377 | cat >>confdefs.h <<_ACEOF | |
7378 | #define HAVE_STRUCT_STAT_ST_SIZE 1 | |
7379 | _ACEOF | |
7380 | ||
7381 | ||
7382 | fi | |
7383 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H | |
7384 | #include <sys/types.h> | |
7385 | #endif | |
7386 | #ifdef HAVE_SYS_STAT_H | |
7387 | #include <sys/stat.h> | |
7388 | #endif | |
7389 | " | |
d0ac1c44 | 7390 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
936df756 MF |
7391 | |
7392 | cat >>confdefs.h <<_ACEOF | |
7393 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
7394 | _ACEOF | |
7395 | ||
7396 | ||
7397 | fi | |
7398 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H | |
7399 | #include <sys/types.h> | |
7400 | #endif | |
7401 | #ifdef HAVE_SYS_STAT_H | |
7402 | #include <sys/stat.h> | |
7403 | #endif | |
7404 | " | |
d0ac1c44 | 7405 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
936df756 MF |
7406 | |
7407 | cat >>confdefs.h <<_ACEOF | |
7408 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
7409 | _ACEOF | |
7410 | ||
7411 | ||
7412 | fi | |
7413 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H | |
7414 | #include <sys/types.h> | |
7415 | #endif | |
7416 | #ifdef HAVE_SYS_STAT_H | |
7417 | #include <sys/stat.h> | |
7418 | #endif | |
7419 | " | |
d0ac1c44 | 7420 | if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then : |
936df756 MF |
7421 | |
7422 | cat >>confdefs.h <<_ACEOF | |
7423 | #define HAVE_STRUCT_STAT_ST_ATIME 1 | |
7424 | _ACEOF | |
7425 | ||
7426 | ||
7427 | fi | |
7428 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H | |
7429 | #include <sys/types.h> | |
7430 | #endif | |
7431 | #ifdef HAVE_SYS_STAT_H | |
7432 | #include <sys/stat.h> | |
7433 | #endif | |
7434 | " | |
d0ac1c44 | 7435 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : |
936df756 MF |
7436 | |
7437 | cat >>confdefs.h <<_ACEOF | |
7438 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | |
7439 | _ACEOF | |
7440 | ||
7441 | ||
7442 | fi | |
7443 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H | |
7444 | #include <sys/types.h> | |
7445 | #endif | |
7446 | #ifdef HAVE_SYS_STAT_H | |
7447 | #include <sys/stat.h> | |
7448 | #endif | |
7449 | " | |
d0ac1c44 | 7450 | if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then : |
936df756 MF |
7451 | |
7452 | cat >>confdefs.h <<_ACEOF | |
7453 | #define HAVE_STRUCT_STAT_ST_CTIME 1 | |
7454 | _ACEOF | |
7455 | ||
7456 | ||
7457 | fi | |
7458 | ||
7459 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
7460 | #include <sys/socket.h> | |
7461 | ||
7462 | " | |
d0ac1c44 | 7463 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
936df756 MF |
7464 | |
7465 | cat >>confdefs.h <<_ACEOF | |
7466 | #define HAVE_SOCKLEN_T 1 | |
7467 | _ACEOF | |
7468 | ||
7469 | ||
7470 | fi | |
7471 | ||
6bb11ab3 L |
7472 | |
7473 | # Check for socket libraries | |
7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5 | |
7475 | $as_echo_n "checking for bind in -lsocket... " >&6; } | |
d0ac1c44 | 7476 | if ${ac_cv_lib_socket_bind+:} false; then : |
6bb11ab3 L |
7477 | $as_echo_n "(cached) " >&6 |
7478 | else | |
7479 | ac_check_lib_save_LIBS=$LIBS | |
7480 | LIBS="-lsocket $LIBS" | |
7481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7482 | /* end confdefs.h. */ | |
7483 | ||
7484 | /* Override any GCC internal prototype to avoid an error. | |
7485 | Use char because int might match the return type of a GCC | |
7486 | builtin and then its argument prototype would still apply. */ | |
7487 | #ifdef __cplusplus | |
7488 | extern "C" | |
7489 | #endif | |
7490 | char bind (); | |
7491 | int | |
7492 | main () | |
7493 | { | |
7494 | return bind (); | |
7495 | ; | |
7496 | return 0; | |
7497 | } | |
7498 | _ACEOF | |
7499 | if ac_fn_c_try_link "$LINENO"; then : | |
7500 | ac_cv_lib_socket_bind=yes | |
7501 | else | |
7502 | ac_cv_lib_socket_bind=no | |
7503 | fi | |
7504 | rm -f core conftest.err conftest.$ac_objext \ | |
7505 | conftest$ac_exeext conftest.$ac_ext | |
7506 | LIBS=$ac_check_lib_save_LIBS | |
7507 | fi | |
7508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5 | |
7509 | $as_echo "$ac_cv_lib_socket_bind" >&6; } | |
d0ac1c44 | 7510 | if test "x$ac_cv_lib_socket_bind" = xyes; then : |
6bb11ab3 L |
7511 | cat >>confdefs.h <<_ACEOF |
7512 | #define HAVE_LIBSOCKET 1 | |
7513 | _ACEOF | |
7514 | ||
7515 | LIBS="-lsocket $LIBS" | |
7516 | ||
7517 | fi | |
7518 | ||
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | |
7520 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
d0ac1c44 | 7521 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
6bb11ab3 L |
7522 | $as_echo_n "(cached) " >&6 |
7523 | else | |
7524 | ac_check_lib_save_LIBS=$LIBS | |
7525 | LIBS="-lnsl $LIBS" | |
7526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7527 | /* end confdefs.h. */ | |
7528 | ||
7529 | /* Override any GCC internal prototype to avoid an error. | |
7530 | Use char because int might match the return type of a GCC | |
7531 | builtin and then its argument prototype would still apply. */ | |
7532 | #ifdef __cplusplus | |
7533 | extern "C" | |
7534 | #endif | |
7535 | char gethostbyname (); | |
7536 | int | |
7537 | main () | |
7538 | { | |
7539 | return gethostbyname (); | |
7540 | ; | |
7541 | return 0; | |
7542 | } | |
7543 | _ACEOF | |
7544 | if ac_fn_c_try_link "$LINENO"; then : | |
7545 | ac_cv_lib_nsl_gethostbyname=yes | |
7546 | else | |
7547 | ac_cv_lib_nsl_gethostbyname=no | |
7548 | fi | |
7549 | rm -f core conftest.err conftest.$ac_objext \ | |
7550 | conftest$ac_exeext conftest.$ac_ext | |
7551 | LIBS=$ac_check_lib_save_LIBS | |
7552 | fi | |
7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
7554 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
d0ac1c44 | 7555 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
6bb11ab3 L |
7556 | cat >>confdefs.h <<_ACEOF |
7557 | #define HAVE_LIBNSL 1 | |
7558 | _ACEOF | |
7559 | ||
7560 | LIBS="-lnsl $LIBS" | |
7561 | ||
7562 | fi | |
7563 | ||
7564 | ||
7565 | # BFD conditionally uses zlib, so we must link it in if libbfd does, by | |
7566 | # using the same condition. | |
7567 | ||
aadc9410 | 7568 | # Use the system's zlib library. |
7fed4b0b L |
7569 | zlibdir="-L\$(top_builddir)/../zlib" |
7570 | zlibinc="-I\$(top_srcdir)/../zlib" | |
6bb11ab3 | 7571 | |
aadc9410 MF |
7572 | # Check whether --with-system-zlib was given. |
7573 | if test "${with_system_zlib+set}" = set; then : | |
0ceaf1ec L |
7574 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then |
7575 | zlibdir= | |
7576 | zlibinc= | |
7577 | fi | |
6bb11ab3 L |
7578 | |
7579 | fi | |
7580 | ||
6bb11ab3 | 7581 | |
6bb11ab3 | 7582 | |
6bb11ab3 L |
7583 | |
7584 | ||
7585 | # BFD uses libdl when when plugins enabled. | |
7586 | ||
faa743bb RM |
7587 | maybe_plugins=no |
7588 | for ac_header in dlfcn.h | |
7589 | do : | |
7590 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7591 | " | |
d0ac1c44 | 7592 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
faa743bb RM |
7593 | cat >>confdefs.h <<_ACEOF |
7594 | #define HAVE_DLFCN_H 1 | |
7595 | _ACEOF | |
7596 | maybe_plugins=yes | |
7597 | fi | |
7598 | ||
7599 | done | |
7600 | ||
7601 | for ac_header in windows.h | |
7602 | do : | |
7603 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
7604 | " | |
d0ac1c44 | 7605 | if test "x$ac_cv_header_windows_h" = xyes; then : |
faa743bb RM |
7606 | cat >>confdefs.h <<_ACEOF |
7607 | #define HAVE_WINDOWS_H 1 | |
7608 | _ACEOF | |
7609 | maybe_plugins=yes | |
7610 | fi | |
7611 | ||
7612 | done | |
7613 | ||
7614 | ||
7615 | # Check whether --enable-plugins was given. | |
6bb11ab3 L |
7616 | if test "${enable_plugins+set}" = set; then : |
7617 | enableval=$enable_plugins; case "${enableval}" in | |
faa743bb RM |
7618 | no) plugins=no ;; |
7619 | *) plugins=yes | |
7620 | if test "$maybe_plugins" != "yes" ; then | |
d0ac1c44 | 7621 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
faa743bb RM |
7622 | fi ;; |
7623 | esac | |
6bb11ab3 | 7624 | else |
faa743bb RM |
7625 | plugins=$maybe_plugins |
7626 | ||
6bb11ab3 L |
7627 | fi |
7628 | ||
2974be62 | 7629 | if test "$plugins" = "yes"; then |
37f980dc SM |
7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
7631 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
d0ac1c44 | 7632 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
7633 | $as_echo_n "(cached) " >&6 |
7634 | else | |
7635 | ac_func_search_save_LIBS=$LIBS | |
7636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7637 | /* end confdefs.h. */ | |
7638 | ||
7639 | /* Override any GCC internal prototype to avoid an error. | |
7640 | Use char because int might match the return type of a GCC | |
7641 | builtin and then its argument prototype would still apply. */ | |
7642 | #ifdef __cplusplus | |
7643 | extern "C" | |
7644 | #endif | |
37f980dc | 7645 | char dlsym (); |
2974be62 AM |
7646 | int |
7647 | main () | |
7648 | { | |
37f980dc | 7649 | return dlsym (); |
2974be62 AM |
7650 | ; |
7651 | return 0; | |
7652 | } | |
7653 | _ACEOF | |
7654 | for ac_lib in '' dl; do | |
7655 | if test -z "$ac_lib"; then | |
7656 | ac_res="none required" | |
7657 | else | |
7658 | ac_res=-l$ac_lib | |
7659 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7660 | fi | |
7661 | if ac_fn_c_try_link "$LINENO"; then : | |
37f980dc | 7662 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
7663 | fi |
7664 | rm -f core conftest.err conftest.$ac_objext \ | |
7665 | conftest$ac_exeext | |
d0ac1c44 | 7666 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
7667 | break |
7668 | fi | |
7669 | done | |
d0ac1c44 | 7670 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
7671 | |
7672 | else | |
37f980dc | 7673 | ac_cv_search_dlsym=no |
2974be62 AM |
7674 | fi |
7675 | rm conftest.$ac_ext | |
7676 | LIBS=$ac_func_search_save_LIBS | |
7677 | fi | |
37f980dc SM |
7678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
7679 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
7680 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
7681 | if test "$ac_res" != no; then : |
7682 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7683 | ||
7684 | fi | |
7685 | ||
7686 | fi | |
6bb11ab3 L |
7687 | |
7688 | if test "$plugins" = yes; then | |
7689 | PLUGINS_TRUE= | |
7690 | PLUGINS_FALSE='#' | |
7691 | else | |
7692 | PLUGINS_TRUE='#' | |
7693 | PLUGINS_FALSE= | |
7694 | fi | |
7695 | ||
7696 | ||
7697 | ||
7698 | ||
7699 | ||
7700 | # Set options | |
7701 | enable_dlopen=yes | |
7702 | ||
7703 | ||
7704 | ||
7705 | ||
7706 | enable_win32_dll=no | |
7707 | ||
7708 | ||
7709 | # Check whether --enable-shared was given. | |
7710 | if test "${enable_shared+set}" = set; then : | |
7711 | enableval=$enable_shared; p=${PACKAGE-default} | |
7712 | case $enableval in | |
7713 | yes) enable_shared=yes ;; | |
7714 | no) enable_shared=no ;; | |
7715 | *) | |
7716 | enable_shared=no | |
7717 | # Look at the argument we got. We use all the common list separators. | |
7718 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7719 | for pkg in $enableval; do | |
7720 | IFS="$lt_save_ifs" | |
7721 | if test "X$pkg" = "X$p"; then | |
7722 | enable_shared=yes | |
7723 | fi | |
7724 | done | |
7725 | IFS="$lt_save_ifs" | |
7726 | ;; | |
7727 | esac | |
7728 | else | |
7729 | enable_shared=yes | |
7730 | fi | |
7731 | ||
7732 | ||
7733 | ||
7734 | ||
7735 | ||
7736 | ||
7737 | ||
7738 | ||
7739 | ||
7740 | # Check whether --enable-static was given. | |
7741 | if test "${enable_static+set}" = set; then : | |
7742 | enableval=$enable_static; p=${PACKAGE-default} | |
7743 | case $enableval in | |
7744 | yes) enable_static=yes ;; | |
7745 | no) enable_static=no ;; | |
7746 | *) | |
7747 | enable_static=no | |
7748 | # Look at the argument we got. We use all the common list separators. | |
7749 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7750 | for pkg in $enableval; do | |
7751 | IFS="$lt_save_ifs" | |
7752 | if test "X$pkg" = "X$p"; then | |
7753 | enable_static=yes | |
7754 | fi | |
7755 | done | |
7756 | IFS="$lt_save_ifs" | |
7757 | ;; | |
7758 | esac | |
7759 | else | |
7760 | enable_static=yes | |
7761 | fi | |
7762 | ||
7763 | ||
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | ||
7772 | # Check whether --with-pic was given. | |
7773 | if test "${with_pic+set}" = set; then : | |
7774 | withval=$with_pic; pic_mode="$withval" | |
7775 | else | |
7776 | pic_mode=default | |
7777 | fi | |
7778 | ||
7779 | ||
7780 | test -z "$pic_mode" && pic_mode=default | |
7781 | ||
7782 | ||
7783 | ||
7784 | ||
7785 | ||
7786 | ||
7787 | ||
7788 | # Check whether --enable-fast-install was given. | |
7789 | if test "${enable_fast_install+set}" = set; then : | |
7790 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7791 | case $enableval in | |
7792 | yes) enable_fast_install=yes ;; | |
7793 | no) enable_fast_install=no ;; | |
7794 | *) | |
7795 | enable_fast_install=no | |
7796 | # Look at the argument we got. We use all the common list separators. | |
7797 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7798 | for pkg in $enableval; do | |
7799 | IFS="$lt_save_ifs" | |
7800 | if test "X$pkg" = "X$p"; then | |
7801 | enable_fast_install=yes | |
7802 | fi | |
7803 | done | |
7804 | IFS="$lt_save_ifs" | |
7805 | ;; | |
7806 | esac | |
7807 | else | |
7808 | enable_fast_install=yes | |
7809 | fi | |
7810 | ||
7811 | ||
7812 | ||
7813 | ||
7814 | ||
7815 | ||
7816 | ||
7817 | ||
7818 | ||
7819 | ||
7820 | ||
7821 | # This can be used to rebuild libtool when needed | |
7822 | LIBTOOL_DEPS="$ltmain" | |
7823 | ||
7824 | # Always use our own libtool. | |
7825 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7826 | ||
7827 | ||
7828 | ||
7829 | ||
7830 | ||
7831 | ||
7832 | ||
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | ||
7838 | ||
7839 | ||
7840 | ||
7841 | ||
7842 | ||
7843 | ||
7844 | ||
7845 | ||
7846 | ||
7847 | ||
7848 | ||
7849 | ||
7850 | ||
7851 | ||
7852 | test -z "$LN_S" && LN_S="ln -s" | |
7853 | ||
7854 | ||
7855 | ||
7856 | ||
7857 | ||
7858 | ||
7859 | ||
7860 | ||
7861 | ||
7862 | ||
7863 | ||
7864 | ||
7865 | ||
7866 | ||
7867 | if test -n "${ZSH_VERSION+set}" ; then | |
7868 | setopt NO_GLOB_SUBST | |
7869 | fi | |
7870 | ||
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7872 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 7873 | if ${lt_cv_objdir+:} false; then : |
6bb11ab3 L |
7874 | $as_echo_n "(cached) " >&6 |
7875 | else | |
7876 | rm -f .libs 2>/dev/null | |
7877 | mkdir .libs 2>/dev/null | |
7878 | if test -d .libs; then | |
7879 | lt_cv_objdir=.libs | |
7880 | else | |
7881 | # MS-DOS does not allow filenames that begin with a dot. | |
7882 | lt_cv_objdir=_libs | |
7883 | fi | |
7884 | rmdir .libs 2>/dev/null | |
7885 | fi | |
7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7887 | $as_echo "$lt_cv_objdir" >&6; } | |
7888 | objdir=$lt_cv_objdir | |
7889 | ||
7890 | ||
7891 | ||
7892 | ||
7893 | ||
7894 | cat >>confdefs.h <<_ACEOF | |
7895 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7896 | _ACEOF | |
7897 | ||
7898 | ||
7899 | ||
7900 | ||
7901 | case $host_os in | |
7902 | aix3*) | |
7903 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7904 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7905 | # vanish in a puff of smoke. | |
7906 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7907 | COLLECT_NAMES= | |
7908 | export COLLECT_NAMES | |
7909 | fi | |
7910 | ;; | |
7911 | esac | |
7912 | ||
7913 | # Global variables: | |
7914 | ofile=libtool | |
7915 | can_build_shared=yes | |
7916 | ||
7917 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7918 | # which needs '.lib'). | |
7919 | libext=a | |
7920 | ||
7921 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7922 | ||
7923 | old_CC="$CC" | |
7924 | old_CFLAGS="$CFLAGS" | |
7925 | ||
7926 | # Set sane defaults for various variables | |
7927 | test -z "$CC" && CC=cc | |
7928 | test -z "$LTCC" && LTCC=$CC | |
7929 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7930 | test -z "$LD" && LD=ld | |
7931 | test -z "$ac_objext" && ac_objext=o | |
7932 | ||
7933 | for cc_temp in $compiler""; do | |
7934 | case $cc_temp in | |
7935 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7936 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7937 | \-*) ;; | |
7938 | *) break;; | |
7939 | esac | |
7940 | done | |
7941 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7942 | ||
7943 | ||
7944 | # Only perform the check for file, if the check method requires it | |
7945 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7946 | case $deplibs_check_method in | |
7947 | file_magic*) | |
7948 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
7950 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 7951 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
6bb11ab3 L |
7952 | $as_echo_n "(cached) " >&6 |
7953 | else | |
7954 | case $MAGIC_CMD in | |
7955 | [\\/*] | ?:[\\/]*) | |
7956 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7957 | ;; | |
7958 | *) | |
7959 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7960 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7961 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7962 | for ac_dir in $ac_dummy; do | |
7963 | IFS="$lt_save_ifs" | |
7964 | test -z "$ac_dir" && ac_dir=. | |
7965 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7966 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7967 | if test -n "$file_magic_test_file"; then | |
7968 | case $deplibs_check_method in | |
7969 | "file_magic "*) | |
7970 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7971 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7972 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7973 | $EGREP "$file_magic_regex" > /dev/null; then | |
7974 | : | |
7975 | else | |
7976 | cat <<_LT_EOF 1>&2 | |
7977 | ||
7978 | *** Warning: the command libtool uses to detect shared libraries, | |
7979 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7980 | *** The result is that libtool may fail to recognize shared libraries | |
7981 | *** as such. This will affect the creation of libtool libraries that | |
7982 | *** depend on shared libraries, but programs linked with such libtool | |
7983 | *** libraries will work regardless of this problem. Nevertheless, you | |
7984 | *** may want to report the problem to your system manager and/or to | |
7985 | *** bug-libtool@gnu.org | |
7986 | ||
7987 | _LT_EOF | |
7988 | fi ;; | |
7989 | esac | |
7990 | fi | |
7991 | break | |
7992 | fi | |
7993 | done | |
7994 | IFS="$lt_save_ifs" | |
7995 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7996 | ;; | |
7997 | esac | |
7998 | fi | |
7999 | ||
8000 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8001 | if test -n "$MAGIC_CMD"; then | |
8002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8003 | $as_echo "$MAGIC_CMD" >&6; } | |
8004 | else | |
8005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8006 | $as_echo "no" >&6; } | |
8007 | fi | |
8008 | ||
8009 | ||
8010 | ||
8011 | ||
8012 | ||
8013 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8014 | if test -n "$ac_tool_prefix"; then | |
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8016 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 8017 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
6bb11ab3 L |
8018 | $as_echo_n "(cached) " >&6 |
8019 | else | |
8020 | case $MAGIC_CMD in | |
8021 | [\\/*] | ?:[\\/]*) | |
8022 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8023 | ;; | |
8024 | *) | |
8025 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8026 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8027 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8028 | for ac_dir in $ac_dummy; do | |
8029 | IFS="$lt_save_ifs" | |
8030 | test -z "$ac_dir" && ac_dir=. | |
8031 | if test -f $ac_dir/file; then | |
8032 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8033 | if test -n "$file_magic_test_file"; then | |
8034 | case $deplibs_check_method in | |
8035 | "file_magic "*) | |
8036 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8037 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8038 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8039 | $EGREP "$file_magic_regex" > /dev/null; then | |
8040 | : | |
8041 | else | |
8042 | cat <<_LT_EOF 1>&2 | |
8043 | ||
8044 | *** Warning: the command libtool uses to detect shared libraries, | |
8045 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8046 | *** The result is that libtool may fail to recognize shared libraries | |
8047 | *** as such. This will affect the creation of libtool libraries that | |
8048 | *** depend on shared libraries, but programs linked with such libtool | |
8049 | *** libraries will work regardless of this problem. Nevertheless, you | |
8050 | *** may want to report the problem to your system manager and/or to | |
8051 | *** bug-libtool@gnu.org | |
8052 | ||
8053 | _LT_EOF | |
8054 | fi ;; | |
8055 | esac | |
8056 | fi | |
8057 | break | |
8058 | fi | |
8059 | done | |
8060 | IFS="$lt_save_ifs" | |
8061 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8062 | ;; | |
8063 | esac | |
8064 | fi | |
8065 | ||
8066 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8067 | if test -n "$MAGIC_CMD"; then | |
8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8069 | $as_echo "$MAGIC_CMD" >&6; } | |
8070 | else | |
8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8072 | $as_echo "no" >&6; } | |
8073 | fi | |
8074 | ||
8075 | ||
8076 | else | |
8077 | MAGIC_CMD=: | |
8078 | fi | |
8079 | fi | |
8080 | ||
8081 | fi | |
8082 | ;; | |
8083 | esac | |
8084 | ||
8085 | # Use C for the default configuration in the libtool script | |
8086 | ||
8087 | lt_save_CC="$CC" | |
8088 | ac_ext=c | |
8089 | ac_cpp='$CPP $CPPFLAGS' | |
8090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8093 | ||
8094 | ||
8095 | # Source file extension for C test sources. | |
8096 | ac_ext=c | |
8097 | ||
8098 | # Object file extension for compiled C test sources. | |
8099 | objext=o | |
8100 | objext=$objext | |
8101 | ||
8102 | # Code to be used in simple compile tests | |
8103 | lt_simple_compile_test_code="int some_variable = 0;" | |
8104 | ||
8105 | # Code to be used in simple link tests | |
8106 | lt_simple_link_test_code='int main(){return(0);}' | |
8107 | ||
8108 | ||
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | # If no C compiler was specified, use CC. | |
8115 | LTCC=${LTCC-"$CC"} | |
8116 | ||
8117 | # If no C compiler flags were specified, use CFLAGS. | |
8118 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8119 | ||
8120 | # Allow CC to be a program name with arguments. | |
8121 | compiler=$CC | |
8122 | ||
8123 | # Save the default compiler, since it gets overwritten when the other | |
8124 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8125 | compiler_DEFAULT=$CC | |
8126 | ||
8127 | # save warnings/boilerplate of simple test code | |
8128 | ac_outfile=conftest.$ac_objext | |
8129 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8130 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8131 | _lt_compiler_boilerplate=`cat conftest.err` | |
8132 | $RM conftest* | |
8133 | ||
8134 | ac_outfile=conftest.$ac_objext | |
8135 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8136 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8137 | _lt_linker_boilerplate=`cat conftest.err` | |
8138 | $RM -r conftest* | |
8139 | ||
8140 | ||
8141 | ## CAVEAT EMPTOR: | |
8142 | ## There is no encapsulation within the following macros, do not change | |
8143 | ## the running order or otherwise move them around unless you know exactly | |
8144 | ## what you are doing... | |
8145 | if test -n "$compiler"; then | |
8146 | ||
8147 | lt_prog_compiler_no_builtin_flag= | |
8148 | ||
8149 | if test "$GCC" = yes; then | |
8150 | case $cc_basename in | |
8151 | nvcc*) | |
8152 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8153 | *) | |
8154 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8155 | esac | |
8156 | ||
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8158 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 8159 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
6bb11ab3 L |
8160 | $as_echo_n "(cached) " >&6 |
8161 | else | |
8162 | lt_cv_prog_compiler_rtti_exceptions=no | |
8163 | ac_outfile=conftest.$ac_objext | |
8164 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8165 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8166 | # Insert the option either (1) after the last *FLAGS variable, or | |
8167 | # (2) before a word containing "conftest.", or (3) at the end. | |
8168 | # Note that $ac_compile itself does not contain backslashes and begins | |
8169 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8170 | # The option is referenced via a variable to avoid confusing sed. | |
8171 | lt_compile=`echo "$ac_compile" | $SED \ | |
8172 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8173 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8174 | -e 's:$: $lt_compiler_flag:'` | |
8175 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8176 | (eval "$lt_compile" 2>conftest.err) | |
8177 | ac_status=$? | |
8178 | cat conftest.err >&5 | |
8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8180 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8181 | # The compiler can only warn and ignore the option if not recognized | |
8182 | # So say no if there are warnings other than the usual output. | |
8183 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8184 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8185 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8186 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8187 | fi | |
8188 | fi | |
8189 | $RM conftest* | |
8190 | ||
8191 | fi | |
8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8193 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8194 | ||
8195 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8196 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8197 | else | |
8198 | : | |
8199 | fi | |
8200 | ||
8201 | fi | |
8202 | ||
8203 | ||
8204 | ||
8205 | ||
8206 | ||
8207 | ||
8208 | lt_prog_compiler_wl= | |
8209 | lt_prog_compiler_pic= | |
8210 | lt_prog_compiler_static= | |
8211 | ||
8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8213 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8214 | ||
8215 | if test "$GCC" = yes; then | |
8216 | lt_prog_compiler_wl='-Wl,' | |
8217 | lt_prog_compiler_static='-static' | |
8218 | ||
8219 | case $host_os in | |
8220 | aix*) | |
8221 | # All AIX code is PIC. | |
8222 | if test "$host_cpu" = ia64; then | |
8223 | # AIX 5 now supports IA64 processor | |
8224 | lt_prog_compiler_static='-Bstatic' | |
8225 | fi | |
8226 | lt_prog_compiler_pic='-fPIC' | |
8227 | ;; | |
8228 | ||
8229 | amigaos*) | |
8230 | case $host_cpu in | |
8231 | powerpc) | |
8232 | # see comment about AmigaOS4 .so support | |
8233 | lt_prog_compiler_pic='-fPIC' | |
8234 | ;; | |
8235 | m68k) | |
8236 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8237 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8238 | # like `-m68040'. | |
8239 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8240 | ;; | |
8241 | esac | |
8242 | ;; | |
8243 | ||
8244 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8245 | # PIC is the default for these OSes. | |
8246 | ;; | |
8247 | ||
8248 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8249 | # This hack is so that the source file can tell whether it is being | |
8250 | # built for inclusion in a dll (and should export symbols for example). | |
8251 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8252 | # (--disable-auto-import) libraries | |
8253 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8254 | ;; | |
8255 | ||
8256 | darwin* | rhapsody*) | |
8257 | # PIC is the default on this platform | |
8258 | # Common symbols not allowed in MH_DYLIB files | |
8259 | lt_prog_compiler_pic='-fno-common' | |
8260 | ;; | |
8261 | ||
8262 | haiku*) | |
8263 | # PIC is the default for Haiku. | |
8264 | # The "-static" flag exists, but is broken. | |
8265 | lt_prog_compiler_static= | |
8266 | ;; | |
8267 | ||
8268 | hpux*) | |
8269 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8270 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8271 | # sets the default TLS model and affects inlining. | |
8272 | case $host_cpu in | |
8273 | hppa*64*) | |
8274 | # +Z the default | |
8275 | ;; | |
8276 | *) | |
8277 | lt_prog_compiler_pic='-fPIC' | |
8278 | ;; | |
8279 | esac | |
8280 | ;; | |
8281 | ||
8282 | interix[3-9]*) | |
8283 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8284 | # Instead, we relocate shared libraries at runtime. | |
8285 | ;; | |
8286 | ||
8287 | msdosdjgpp*) | |
8288 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8289 | # on systems that don't support them. | |
8290 | lt_prog_compiler_can_build_shared=no | |
8291 | enable_shared=no | |
8292 | ;; | |
8293 | ||
8294 | *nto* | *qnx*) | |
8295 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8296 | # it will coredump. | |
8297 | lt_prog_compiler_pic='-fPIC -shared' | |
8298 | ;; | |
8299 | ||
8300 | sysv4*MP*) | |
8301 | if test -d /usr/nec; then | |
8302 | lt_prog_compiler_pic=-Kconform_pic | |
8303 | fi | |
8304 | ;; | |
8305 | ||
8306 | *) | |
8307 | lt_prog_compiler_pic='-fPIC' | |
8308 | ;; | |
8309 | esac | |
8310 | ||
8311 | case $cc_basename in | |
8312 | nvcc*) # Cuda Compiler Driver 2.2 | |
8313 | lt_prog_compiler_wl='-Xlinker ' | |
8314 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8315 | ;; | |
8316 | esac | |
8317 | else | |
8318 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8319 | case $host_os in | |
8320 | aix*) | |
8321 | lt_prog_compiler_wl='-Wl,' | |
8322 | if test "$host_cpu" = ia64; then | |
8323 | # AIX 5 now supports IA64 processor | |
8324 | lt_prog_compiler_static='-Bstatic' | |
8325 | else | |
8326 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8327 | fi | |
8328 | ;; | |
8329 | ||
8330 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8331 | # This hack is so that the source file can tell whether it is being | |
8332 | # built for inclusion in a dll (and should export symbols for example). | |
8333 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8334 | ;; | |
8335 | ||
8336 | hpux9* | hpux10* | hpux11*) | |
8337 | lt_prog_compiler_wl='-Wl,' | |
8338 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8339 | # not for PA HP-UX. | |
8340 | case $host_cpu in | |
8341 | hppa*64*|ia64*) | |
8342 | # +Z the default | |
8343 | ;; | |
8344 | *) | |
8345 | lt_prog_compiler_pic='+Z' | |
8346 | ;; | |
8347 | esac | |
8348 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8349 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8350 | ;; | |
8351 | ||
8352 | irix5* | irix6* | nonstopux*) | |
8353 | lt_prog_compiler_wl='-Wl,' | |
8354 | # PIC (with -KPIC) is the default. | |
8355 | lt_prog_compiler_static='-non_shared' | |
8356 | ;; | |
8357 | ||
8358 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8359 | case $cc_basename in | |
8360 | # old Intel for x86_64 which still supported -KPIC. | |
8361 | ecc*) | |
8362 | lt_prog_compiler_wl='-Wl,' | |
8363 | lt_prog_compiler_pic='-KPIC' | |
8364 | lt_prog_compiler_static='-static' | |
8365 | ;; | |
8366 | # icc used to be incompatible with GCC. | |
8367 | # ICC 10 doesn't accept -KPIC any more. | |
8368 | icc* | ifort*) | |
8369 | lt_prog_compiler_wl='-Wl,' | |
8370 | lt_prog_compiler_pic='-fPIC' | |
8371 | lt_prog_compiler_static='-static' | |
8372 | ;; | |
8373 | # Lahey Fortran 8.1. | |
8374 | lf95*) | |
8375 | lt_prog_compiler_wl='-Wl,' | |
8376 | lt_prog_compiler_pic='--shared' | |
8377 | lt_prog_compiler_static='--static' | |
8378 | ;; | |
8379 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8380 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8381 | # which looks to be a dead project) | |
8382 | lt_prog_compiler_wl='-Wl,' | |
8383 | lt_prog_compiler_pic='-fpic' | |
8384 | lt_prog_compiler_static='-Bstatic' | |
8385 | ;; | |
8386 | ccc*) | |
8387 | lt_prog_compiler_wl='-Wl,' | |
8388 | # All Alpha code is PIC. | |
8389 | lt_prog_compiler_static='-non_shared' | |
8390 | ;; | |
8391 | xl* | bgxl* | bgf* | mpixl*) | |
8392 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8393 | lt_prog_compiler_wl='-Wl,' | |
8394 | lt_prog_compiler_pic='-qpic' | |
8395 | lt_prog_compiler_static='-qstaticlink' | |
8396 | ;; | |
8397 | *) | |
8398 | case `$CC -V 2>&1 | sed 5q` in | |
8399 | *Sun\ F* | *Sun*Fortran*) | |
8400 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8401 | lt_prog_compiler_pic='-KPIC' | |
8402 | lt_prog_compiler_static='-Bstatic' | |
8403 | lt_prog_compiler_wl='' | |
8404 | ;; | |
8405 | *Sun\ C*) | |
8406 | # Sun C 5.9 | |
8407 | lt_prog_compiler_pic='-KPIC' | |
8408 | lt_prog_compiler_static='-Bstatic' | |
8409 | lt_prog_compiler_wl='-Wl,' | |
8410 | ;; | |
8411 | esac | |
8412 | ;; | |
8413 | esac | |
8414 | ;; | |
8415 | ||
8416 | newsos6) | |
8417 | lt_prog_compiler_pic='-KPIC' | |
8418 | lt_prog_compiler_static='-Bstatic' | |
8419 | ;; | |
8420 | ||
8421 | *nto* | *qnx*) | |
8422 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8423 | # it will coredump. | |
8424 | lt_prog_compiler_pic='-fPIC -shared' | |
8425 | ;; | |
8426 | ||
8427 | osf3* | osf4* | osf5*) | |
8428 | lt_prog_compiler_wl='-Wl,' | |
8429 | # All OSF/1 code is PIC. | |
8430 | lt_prog_compiler_static='-non_shared' | |
8431 | ;; | |
8432 | ||
8433 | rdos*) | |
8434 | lt_prog_compiler_static='-non_shared' | |
8435 | ;; | |
8436 | ||
8437 | solaris*) | |
8438 | lt_prog_compiler_pic='-KPIC' | |
8439 | lt_prog_compiler_static='-Bstatic' | |
8440 | case $cc_basename in | |
8441 | f77* | f90* | f95*) | |
8442 | lt_prog_compiler_wl='-Qoption ld ';; | |
8443 | *) | |
8444 | lt_prog_compiler_wl='-Wl,';; | |
8445 | esac | |
8446 | ;; | |
8447 | ||
8448 | sunos4*) | |
8449 | lt_prog_compiler_wl='-Qoption ld ' | |
8450 | lt_prog_compiler_pic='-PIC' | |
8451 | lt_prog_compiler_static='-Bstatic' | |
8452 | ;; | |
8453 | ||
8454 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8455 | lt_prog_compiler_wl='-Wl,' | |
8456 | lt_prog_compiler_pic='-KPIC' | |
8457 | lt_prog_compiler_static='-Bstatic' | |
8458 | ;; | |
8459 | ||
8460 | sysv4*MP*) | |
8461 | if test -d /usr/nec ;then | |
8462 | lt_prog_compiler_pic='-Kconform_pic' | |
8463 | lt_prog_compiler_static='-Bstatic' | |
8464 | fi | |
8465 | ;; | |
8466 | ||
8467 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8468 | lt_prog_compiler_wl='-Wl,' | |
8469 | lt_prog_compiler_pic='-KPIC' | |
8470 | lt_prog_compiler_static='-Bstatic' | |
8471 | ;; | |
8472 | ||
8473 | unicos*) | |
8474 | lt_prog_compiler_wl='-Wl,' | |
8475 | lt_prog_compiler_can_build_shared=no | |
8476 | ;; | |
8477 | ||
8478 | uts4*) | |
8479 | lt_prog_compiler_pic='-pic' | |
8480 | lt_prog_compiler_static='-Bstatic' | |
8481 | ;; | |
8482 | ||
8483 | *) | |
8484 | lt_prog_compiler_can_build_shared=no | |
8485 | ;; | |
8486 | esac | |
8487 | fi | |
8488 | ||
8489 | case $host_os in | |
8490 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8491 | *djgpp*) | |
8492 | lt_prog_compiler_pic= | |
8493 | ;; | |
8494 | *) | |
8495 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8496 | ;; | |
8497 | esac | |
8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8499 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | # | |
8507 | # Check to make sure the PIC flag actually works. | |
8508 | # | |
8509 | if test -n "$lt_prog_compiler_pic"; then | |
8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8511 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 8512 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
6bb11ab3 L |
8513 | $as_echo_n "(cached) " >&6 |
8514 | else | |
8515 | lt_cv_prog_compiler_pic_works=no | |
8516 | ac_outfile=conftest.$ac_objext | |
8517 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8518 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8519 | # Insert the option either (1) after the last *FLAGS variable, or | |
8520 | # (2) before a word containing "conftest.", or (3) at the end. | |
8521 | # Note that $ac_compile itself does not contain backslashes and begins | |
8522 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8523 | # The option is referenced via a variable to avoid confusing sed. | |
8524 | lt_compile=`echo "$ac_compile" | $SED \ | |
8525 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8526 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8527 | -e 's:$: $lt_compiler_flag:'` | |
8528 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8529 | (eval "$lt_compile" 2>conftest.err) | |
8530 | ac_status=$? | |
8531 | cat conftest.err >&5 | |
8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8533 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8534 | # The compiler can only warn and ignore the option if not recognized | |
8535 | # So say no if there are warnings other than the usual output. | |
8536 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8537 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8538 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8539 | lt_cv_prog_compiler_pic_works=yes | |
8540 | fi | |
8541 | fi | |
8542 | $RM conftest* | |
8543 | ||
8544 | fi | |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8546 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8547 | ||
8548 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8549 | case $lt_prog_compiler_pic in | |
8550 | "" | " "*) ;; | |
8551 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8552 | esac | |
8553 | else | |
8554 | lt_prog_compiler_pic= | |
8555 | lt_prog_compiler_can_build_shared=no | |
8556 | fi | |
8557 | ||
8558 | fi | |
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | # | |
8566 | # Check to make sure the static flag actually works. | |
8567 | # | |
8568 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8570 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 8571 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
6bb11ab3 L |
8572 | $as_echo_n "(cached) " >&6 |
8573 | else | |
8574 | lt_cv_prog_compiler_static_works=no | |
8575 | save_LDFLAGS="$LDFLAGS" | |
8576 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8577 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8578 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8579 | # The linker can only warn and ignore the option if not recognized | |
8580 | # So say no if there are warnings | |
8581 | if test -s conftest.err; then | |
8582 | # Append any errors to the config.log. | |
8583 | cat conftest.err 1>&5 | |
8584 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8585 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8586 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8587 | lt_cv_prog_compiler_static_works=yes | |
8588 | fi | |
8589 | else | |
8590 | lt_cv_prog_compiler_static_works=yes | |
8591 | fi | |
8592 | fi | |
8593 | $RM -r conftest* | |
8594 | LDFLAGS="$save_LDFLAGS" | |
8595 | ||
8596 | fi | |
8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8598 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8599 | ||
8600 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8601 | : | |
8602 | else | |
8603 | lt_prog_compiler_static= | |
8604 | fi | |
8605 | ||
8606 | ||
8607 | ||
8608 | ||
8609 | ||
8610 | ||
8611 | ||
8612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8613 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8614 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
6bb11ab3 L |
8615 | $as_echo_n "(cached) " >&6 |
8616 | else | |
8617 | lt_cv_prog_compiler_c_o=no | |
8618 | $RM -r conftest 2>/dev/null | |
8619 | mkdir conftest | |
8620 | cd conftest | |
8621 | mkdir out | |
8622 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8623 | ||
8624 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8625 | # Insert the option either (1) after the last *FLAGS variable, or | |
8626 | # (2) before a word containing "conftest.", or (3) at the end. | |
8627 | # Note that $ac_compile itself does not contain backslashes and begins | |
8628 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8629 | lt_compile=`echo "$ac_compile" | $SED \ | |
8630 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8631 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8632 | -e 's:$: $lt_compiler_flag:'` | |
8633 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8634 | (eval "$lt_compile" 2>out/conftest.err) | |
8635 | ac_status=$? | |
8636 | cat out/conftest.err >&5 | |
8637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8638 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8639 | then | |
8640 | # The compiler can only warn and ignore the option if not recognized | |
8641 | # So say no if there are warnings | |
8642 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8643 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8644 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8645 | lt_cv_prog_compiler_c_o=yes | |
8646 | fi | |
8647 | fi | |
8648 | chmod u+w . 2>&5 | |
8649 | $RM conftest* | |
8650 | # SGI C++ compiler will create directory out/ii_files/ for | |
8651 | # template instantiation | |
8652 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8653 | $RM out/* && rmdir out | |
8654 | cd .. | |
8655 | $RM -r conftest | |
8656 | $RM conftest* | |
8657 | ||
8658 | fi | |
8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8660 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8661 | ||
8662 | ||
8663 | ||
8664 | ||
8665 | ||
8666 | ||
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8668 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8669 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
6bb11ab3 L |
8670 | $as_echo_n "(cached) " >&6 |
8671 | else | |
8672 | lt_cv_prog_compiler_c_o=no | |
8673 | $RM -r conftest 2>/dev/null | |
8674 | mkdir conftest | |
8675 | cd conftest | |
8676 | mkdir out | |
8677 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8678 | ||
8679 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8680 | # Insert the option either (1) after the last *FLAGS variable, or | |
8681 | # (2) before a word containing "conftest.", or (3) at the end. | |
8682 | # Note that $ac_compile itself does not contain backslashes and begins | |
8683 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8684 | lt_compile=`echo "$ac_compile" | $SED \ | |
8685 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8686 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8687 | -e 's:$: $lt_compiler_flag:'` | |
8688 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8689 | (eval "$lt_compile" 2>out/conftest.err) | |
8690 | ac_status=$? | |
8691 | cat out/conftest.err >&5 | |
8692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8693 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8694 | then | |
8695 | # The compiler can only warn and ignore the option if not recognized | |
8696 | # So say no if there are warnings | |
8697 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8698 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8699 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8700 | lt_cv_prog_compiler_c_o=yes | |
8701 | fi | |
8702 | fi | |
8703 | chmod u+w . 2>&5 | |
8704 | $RM conftest* | |
8705 | # SGI C++ compiler will create directory out/ii_files/ for | |
8706 | # template instantiation | |
8707 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8708 | $RM out/* && rmdir out | |
8709 | cd .. | |
8710 | $RM -r conftest | |
8711 | $RM conftest* | |
8712 | ||
8713 | fi | |
8714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8715 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | hard_links="nottested" | |
8721 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8722 | # do not overwrite the value of need_locks provided by the user | |
8723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8724 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8725 | hard_links=yes | |
8726 | $RM conftest* | |
8727 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8728 | touch conftest.a | |
8729 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8730 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8732 | $as_echo "$hard_links" >&6; } | |
8733 | if test "$hard_links" = no; then | |
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8735 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8736 | need_locks=warn | |
8737 | fi | |
8738 | else | |
8739 | need_locks=no | |
8740 | fi | |
8741 | ||
8742 | ||
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8748 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8749 | ||
8750 | runpath_var= | |
8751 | allow_undefined_flag= | |
8752 | always_export_symbols=no | |
8753 | archive_cmds= | |
8754 | archive_expsym_cmds= | |
8755 | compiler_needs_object=no | |
8756 | enable_shared_with_static_runtimes=no | |
8757 | export_dynamic_flag_spec= | |
8758 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8759 | hardcode_automatic=no | |
8760 | hardcode_direct=no | |
8761 | hardcode_direct_absolute=no | |
8762 | hardcode_libdir_flag_spec= | |
8763 | hardcode_libdir_flag_spec_ld= | |
8764 | hardcode_libdir_separator= | |
8765 | hardcode_minus_L=no | |
8766 | hardcode_shlibpath_var=unsupported | |
8767 | inherit_rpath=no | |
8768 | link_all_deplibs=unknown | |
8769 | module_cmds= | |
8770 | module_expsym_cmds= | |
8771 | old_archive_from_new_cmds= | |
8772 | old_archive_from_expsyms_cmds= | |
8773 | thread_safe_flag_spec= | |
8774 | whole_archive_flag_spec= | |
8775 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8776 | # included in the symbol list | |
8777 | include_expsyms= | |
8778 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8779 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8780 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8781 | # as well as any symbol that contains `d'. | |
8782 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8783 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8784 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8785 | # the symbol is explicitly referenced. Since portable code cannot | |
8786 | # rely on this symbol name, it's probably fine to never include it in | |
8787 | # preloaded symbol tables. | |
8788 | # Exclude shared library initialization/finalization symbols. | |
8789 | extract_expsyms_cmds= | |
8790 | ||
8791 | case $host_os in | |
8792 | cygwin* | mingw* | pw32* | cegcc*) | |
8793 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8794 | # When not using gcc, we currently assume that we are using | |
8795 | # Microsoft Visual C++. | |
8796 | if test "$GCC" != yes; then | |
8797 | with_gnu_ld=no | |
8798 | fi | |
8799 | ;; | |
8800 | interix*) | |
8801 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8802 | with_gnu_ld=yes | |
8803 | ;; | |
8804 | openbsd*) | |
8805 | with_gnu_ld=no | |
8806 | ;; | |
8807 | esac | |
8808 | ||
8809 | ld_shlibs=yes | |
8810 | ||
8811 | # On some targets, GNU ld is compatible enough with the native linker | |
8812 | # that we're better off using the native interface for both. | |
8813 | lt_use_gnu_ld_interface=no | |
8814 | if test "$with_gnu_ld" = yes; then | |
8815 | case $host_os in | |
8816 | aix*) | |
8817 | # The AIX port of GNU ld has always aspired to compatibility | |
8818 | # with the native linker. However, as the warning in the GNU ld | |
8819 | # block says, versions before 2.19.5* couldn't really create working | |
8820 | # shared libraries, regardless of the interface used. | |
8821 | case `$LD -v 2>&1` in | |
8822 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8823 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8824 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8825 | *) | |
8826 | lt_use_gnu_ld_interface=yes | |
8827 | ;; | |
8828 | esac | |
8829 | ;; | |
8830 | *) | |
8831 | lt_use_gnu_ld_interface=yes | |
8832 | ;; | |
8833 | esac | |
8834 | fi | |
8835 | ||
8836 | if test "$lt_use_gnu_ld_interface" = yes; then | |
8837 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8838 | wlarc='${wl}' | |
8839 | ||
8840 | # Set some defaults for GNU ld with shared library support. These | |
8841 | # are reset later if shared libraries are not supported. Putting them | |
8842 | # here allows them to be overridden if necessary. | |
8843 | runpath_var=LD_RUN_PATH | |
8844 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8845 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8846 | # ancient GNU ld didn't support --whole-archive et. al. | |
8847 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8848 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8849 | else | |
8850 | whole_archive_flag_spec= | |
8851 | fi | |
8852 | supports_anon_versioning=no | |
8853 | case `$LD -v 2>&1` in | |
8854 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
8855 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8856 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8857 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8858 | *\ 2.11.*) ;; # other 2.11 versions | |
8859 | *) supports_anon_versioning=yes ;; | |
8860 | esac | |
8861 | ||
8862 | # See if GNU ld supports shared libraries. | |
8863 | case $host_os in | |
8864 | aix[3-9]*) | |
8865 | # On AIX/PPC, the GNU linker is very broken | |
8866 | if test "$host_cpu" != ia64; then | |
8867 | ld_shlibs=no | |
8868 | cat <<_LT_EOF 1>&2 | |
8869 | ||
8870 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
8871 | *** to be unable to reliably create shared libraries on AIX. | |
8872 | *** Therefore, libtool is disabling shared libraries support. If you | |
8873 | *** really care for shared libraries, you may want to install binutils | |
8874 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8875 | *** You will then need to restart the configuration process. | |
8876 | ||
8877 | _LT_EOF | |
8878 | fi | |
8879 | ;; | |
8880 | ||
8881 | amigaos*) | |
8882 | case $host_cpu in | |
8883 | powerpc) | |
8884 | # see comment about AmigaOS4 .so support | |
8885 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8886 | archive_expsym_cmds='' | |
8887 | ;; | |
8888 | m68k) | |
8889 | 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)' | |
8890 | hardcode_libdir_flag_spec='-L$libdir' | |
8891 | hardcode_minus_L=yes | |
8892 | ;; | |
8893 | esac | |
8894 | ;; | |
8895 | ||
8896 | beos*) | |
8897 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8898 | allow_undefined_flag=unsupported | |
8899 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8900 | # support --undefined. This deserves some investigation. FIXME | |
8901 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8902 | else | |
8903 | ld_shlibs=no | |
8904 | fi | |
8905 | ;; | |
8906 | ||
8907 | cygwin* | mingw* | pw32* | cegcc*) | |
8908 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8909 | # as there is no search path for DLLs. | |
8910 | hardcode_libdir_flag_spec='-L$libdir' | |
8911 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
8912 | allow_undefined_flag=unsupported | |
8913 | always_export_symbols=no | |
8914 | enable_shared_with_static_runtimes=yes | |
8915 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8916 | ||
8917 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8918 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8919 | # If the export-symbols file already is a .def file (1st line | |
8920 | # is EXPORTS), use it as is; otherwise, prepend... | |
8921 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8922 | cp $export_symbols $output_objdir/$soname.def; | |
8923 | else | |
8924 | echo EXPORTS > $output_objdir/$soname.def; | |
8925 | cat $export_symbols >> $output_objdir/$soname.def; | |
8926 | fi~ | |
8927 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8928 | else | |
8929 | ld_shlibs=no | |
8930 | fi | |
8931 | ;; | |
8932 | ||
8933 | haiku*) | |
8934 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8935 | link_all_deplibs=yes | |
8936 | ;; | |
8937 | ||
8938 | interix[3-9]*) | |
8939 | hardcode_direct=no | |
8940 | hardcode_shlibpath_var=no | |
8941 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8942 | export_dynamic_flag_spec='${wl}-E' | |
8943 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8944 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8945 | # default) and relocated if they conflict, which is a slow very memory | |
8946 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8947 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8948 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8949 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8950 | 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' | |
8951 | ;; | |
8952 | ||
8953 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
8954 | tmp_diet=no | |
8955 | if test "$host_os" = linux-dietlibc; then | |
8956 | case $cc_basename in | |
8957 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8958 | esac | |
8959 | fi | |
8960 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8961 | && test "$tmp_diet" = no | |
8962 | then | |
ae7d0cac | 8963 | tmp_addflag=' $pic_flag' |
6bb11ab3 L |
8964 | tmp_sharedflag='-shared' |
8965 | case $cc_basename,$host_cpu in | |
8966 | pgcc*) # Portland Group C compiler | |
8967 | 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' | |
8968 | tmp_addflag=' $pic_flag' | |
8969 | ;; | |
8970 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8971 | # Portland Group f77 and f90 compilers | |
8972 | 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' | |
8973 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8974 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8975 | tmp_addflag=' -i_dynamic' ;; | |
8976 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8977 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8978 | ifc* | ifort*) # Intel Fortran compiler | |
8979 | tmp_addflag=' -nofor_main' ;; | |
8980 | lf95*) # Lahey Fortran 8.1 | |
8981 | whole_archive_flag_spec= | |
8982 | tmp_sharedflag='--shared' ;; | |
8983 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8984 | tmp_sharedflag='-qmkshrobj' | |
8985 | tmp_addflag= ;; | |
8986 | nvcc*) # Cuda Compiler Driver 2.2 | |
8987 | 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' | |
8988 | compiler_needs_object=yes | |
8989 | ;; | |
8990 | esac | |
8991 | case `$CC -V 2>&1 | sed 5q` in | |
8992 | *Sun\ C*) # Sun C 5.9 | |
8993 | 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' | |
8994 | compiler_needs_object=yes | |
8995 | tmp_sharedflag='-G' ;; | |
8996 | *Sun\ F*) # Sun Fortran 8.3 | |
8997 | tmp_sharedflag='-G' ;; | |
8998 | esac | |
8999 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9000 | ||
9001 | if test "x$supports_anon_versioning" = xyes; then | |
9002 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9003 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9004 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9005 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9006 | fi | |
9007 | ||
9008 | case $cc_basename in | |
9009 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9010 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9011 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9012 | hardcode_libdir_flag_spec= | |
9013 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9014 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9015 | if test "x$supports_anon_versioning" = xyes; then | |
9016 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9017 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9018 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9019 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9020 | fi | |
9021 | ;; | |
9022 | esac | |
9023 | else | |
9024 | ld_shlibs=no | |
9025 | fi | |
9026 | ;; | |
9027 | ||
9028 | netbsd*) | |
9029 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9030 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9031 | wlarc= | |
9032 | else | |
9033 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9034 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9035 | fi | |
9036 | ;; | |
9037 | ||
9038 | solaris*) | |
9039 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9040 | ld_shlibs=no | |
9041 | cat <<_LT_EOF 1>&2 | |
9042 | ||
9043 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9044 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9045 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9046 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9047 | *** your PATH or compiler configuration so that the native linker is | |
9048 | *** used, and then restart. | |
9049 | ||
9050 | _LT_EOF | |
9051 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9052 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9053 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9054 | else | |
9055 | ld_shlibs=no | |
9056 | fi | |
9057 | ;; | |
9058 | ||
9059 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9060 | case `$LD -v 2>&1` in | |
9061 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9062 | ld_shlibs=no | |
9063 | cat <<_LT_EOF 1>&2 | |
9064 | ||
9065 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9066 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9067 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9068 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9069 | *** your PATH or compiler configuration so that the native linker is | |
9070 | *** used, and then restart. | |
9071 | ||
9072 | _LT_EOF | |
9073 | ;; | |
9074 | *) | |
9075 | # For security reasons, it is highly recommended that you always | |
9076 | # use absolute paths for naming shared libraries, and exclude the | |
9077 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9078 | # requires that you compile everything twice, which is a pain. | |
9079 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9080 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9081 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9082 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9083 | else | |
9084 | ld_shlibs=no | |
9085 | fi | |
9086 | ;; | |
9087 | esac | |
9088 | ;; | |
9089 | ||
9090 | sunos4*) | |
9091 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9092 | wlarc= | |
9093 | hardcode_direct=yes | |
9094 | hardcode_shlibpath_var=no | |
9095 | ;; | |
9096 | ||
9097 | *) | |
9098 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9099 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9100 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9101 | else | |
9102 | ld_shlibs=no | |
9103 | fi | |
9104 | ;; | |
9105 | esac | |
9106 | ||
9107 | if test "$ld_shlibs" = no; then | |
9108 | runpath_var= | |
9109 | hardcode_libdir_flag_spec= | |
9110 | export_dynamic_flag_spec= | |
9111 | whole_archive_flag_spec= | |
9112 | fi | |
9113 | else | |
9114 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9115 | case $host_os in | |
9116 | aix3*) | |
9117 | allow_undefined_flag=unsupported | |
9118 | always_export_symbols=yes | |
9119 | 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' | |
9120 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9121 | # are no directories specified by -L. | |
9122 | hardcode_minus_L=yes | |
9123 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9124 | # Neither direct hardcoding nor static linking is supported with a | |
9125 | # broken collect2. | |
9126 | hardcode_direct=unsupported | |
9127 | fi | |
9128 | ;; | |
9129 | ||
9130 | aix[4-9]*) | |
9131 | if test "$host_cpu" = ia64; then | |
9132 | # On IA64, the linker does run time linking by default, so we don't | |
9133 | # have to do anything special. | |
9134 | aix_use_runtimelinking=no | |
9135 | exp_sym_flag='-Bexport' | |
9136 | no_entry_flag="" | |
9137 | else | |
9138 | # If we're using GNU nm, then we don't want the "-C" option. | |
9139 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9140 | # Also, AIX nm treats weak defined symbols like other global | |
9141 | # defined symbols, whereas GNU nm marks them as "W". | |
9142 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9143 | 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' | |
9144 | else | |
5c887dd5 | 9145 | 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' |
6bb11ab3 L |
9146 | fi |
9147 | aix_use_runtimelinking=no | |
9148 | ||
9149 | # Test if we are trying to use run time linking or normal | |
9150 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9151 | # need to do runtime linking. | |
9152 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9153 | for ld_flag in $LDFLAGS; do | |
9154 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9155 | aix_use_runtimelinking=yes | |
9156 | break | |
9157 | fi | |
9158 | done | |
9159 | ;; | |
9160 | esac | |
9161 | ||
9162 | exp_sym_flag='-bexport' | |
9163 | no_entry_flag='-bnoentry' | |
9164 | fi | |
9165 | ||
9166 | # When large executables or shared objects are built, AIX ld can | |
9167 | # have problems creating the table of contents. If linking a library | |
9168 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9169 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9170 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9171 | ||
9172 | archive_cmds='' | |
9173 | hardcode_direct=yes | |
9174 | hardcode_direct_absolute=yes | |
9175 | hardcode_libdir_separator=':' | |
9176 | link_all_deplibs=yes | |
9177 | file_list_spec='${wl}-f,' | |
9178 | ||
9179 | if test "$GCC" = yes; then | |
9180 | case $host_os in aix4.[012]|aix4.[012].*) | |
9181 | # We only want to do this on AIX 4.2 and lower, the check | |
9182 | # below for broken collect2 doesn't work under 4.3+ | |
9183 | collect2name=`${CC} -print-prog-name=collect2` | |
9184 | if test -f "$collect2name" && | |
9185 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9186 | then | |
9187 | # We have reworked collect2 | |
9188 | : | |
9189 | else | |
9190 | # We have old collect2 | |
9191 | hardcode_direct=unsupported | |
9192 | # It fails to find uninstalled libraries when the uninstalled | |
9193 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9194 | # to unsupported forces relinking | |
9195 | hardcode_minus_L=yes | |
9196 | hardcode_libdir_flag_spec='-L$libdir' | |
9197 | hardcode_libdir_separator= | |
9198 | fi | |
9199 | ;; | |
9200 | esac | |
9201 | shared_flag='-shared' | |
9202 | if test "$aix_use_runtimelinking" = yes; then | |
9203 | shared_flag="$shared_flag "'${wl}-G' | |
9204 | fi | |
9205 | else | |
9206 | # not using gcc | |
9207 | if test "$host_cpu" = ia64; then | |
9208 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9209 | # chokes on -Wl,-G. The following line is correct: | |
9210 | shared_flag='-G' | |
9211 | else | |
9212 | if test "$aix_use_runtimelinking" = yes; then | |
9213 | shared_flag='${wl}-G' | |
9214 | else | |
9215 | shared_flag='${wl}-bM:SRE' | |
9216 | fi | |
9217 | fi | |
9218 | fi | |
9219 | ||
9220 | export_dynamic_flag_spec='${wl}-bexpall' | |
9221 | # It seems that -bexpall does not export symbols beginning with | |
9222 | # underscore (_), so it is better to generate a list of symbols to export. | |
9223 | always_export_symbols=yes | |
9224 | if test "$aix_use_runtimelinking" = yes; then | |
9225 | # Warning - without using the other runtime loading flags (-brtl), | |
9226 | # -berok will link without error, but may produce a broken library. | |
9227 | allow_undefined_flag='-berok' | |
9228 | # Determine the default libpath from the value encoded in an | |
9229 | # empty executable. | |
9230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9231 | /* end confdefs.h. */ | |
9232 | ||
9233 | int | |
9234 | main () | |
9235 | { | |
9236 | ||
9237 | ; | |
9238 | return 0; | |
ef016f83 | 9239 | } |
6bb11ab3 L |
9240 | _ACEOF |
9241 | if ac_fn_c_try_link "$LINENO"; then : | |
9242 | ||
9243 | lt_aix_libpath_sed=' | |
9244 | /Import File Strings/,/^$/ { | |
9245 | /^0/ { | |
9246 | s/^0 *\(.*\)$/\1/ | |
9247 | p | |
9248 | } | |
9249 | }' | |
9250 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9251 | # Check for a 64-bit object if we didn't find anything. | |
9252 | if test -z "$aix_libpath"; then | |
9253 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9254 | fi | |
9255 | fi | |
9256 | rm -f core conftest.err conftest.$ac_objext \ | |
9257 | conftest$ac_exeext conftest.$ac_ext | |
9258 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9259 | ||
9260 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9261 | 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" | |
9262 | else | |
9263 | if test "$host_cpu" = ia64; then | |
9264 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9265 | allow_undefined_flag="-z nodefs" | |
9266 | 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" | |
9267 | else | |
9268 | # Determine the default libpath from the value encoded in an | |
9269 | # empty executable. | |
9270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9271 | /* end confdefs.h. */ | |
9272 | ||
9273 | int | |
9274 | main () | |
ef016f83 | 9275 | { |
6bb11ab3 L |
9276 | |
9277 | ; | |
9278 | return 0; | |
ef016f83 | 9279 | } |
6bb11ab3 L |
9280 | _ACEOF |
9281 | if ac_fn_c_try_link "$LINENO"; then : | |
9282 | ||
9283 | lt_aix_libpath_sed=' | |
9284 | /Import File Strings/,/^$/ { | |
9285 | /^0/ { | |
9286 | s/^0 *\(.*\)$/\1/ | |
9287 | p | |
9288 | } | |
9289 | }' | |
9290 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9291 | # Check for a 64-bit object if we didn't find anything. | |
9292 | if test -z "$aix_libpath"; then | |
9293 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9294 | fi | |
9295 | fi | |
9296 | rm -f core conftest.err conftest.$ac_objext \ | |
9297 | conftest$ac_exeext conftest.$ac_ext | |
9298 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9299 | ||
9300 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9301 | # Warning - without using the other run time loading flags, | |
9302 | # -berok will link without error, but may produce a broken library. | |
9303 | no_undefined_flag=' ${wl}-bernotok' | |
9304 | allow_undefined_flag=' ${wl}-berok' | |
9305 | if test "$with_gnu_ld" = yes; then | |
9306 | # We only use this code for GNU lds that support --whole-archive. | |
9307 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9308 | else | |
9309 | # Exported symbols can be pulled into shared objects from archives | |
9310 | whole_archive_flag_spec='$convenience' | |
9311 | fi | |
9312 | archive_cmds_need_lc=yes | |
9313 | # This is similar to how AIX traditionally builds its shared libraries. | |
9314 | 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' | |
9315 | fi | |
9316 | fi | |
9317 | ;; | |
9318 | ||
9319 | amigaos*) | |
9320 | case $host_cpu in | |
9321 | powerpc) | |
9322 | # see comment about AmigaOS4 .so support | |
9323 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9324 | archive_expsym_cmds='' | |
9325 | ;; | |
9326 | m68k) | |
9327 | 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)' | |
9328 | hardcode_libdir_flag_spec='-L$libdir' | |
9329 | hardcode_minus_L=yes | |
9330 | ;; | |
9331 | esac | |
9332 | ;; | |
9333 | ||
9334 | bsdi[45]*) | |
9335 | export_dynamic_flag_spec=-rdynamic | |
9336 | ;; | |
9337 | ||
9338 | cygwin* | mingw* | pw32* | cegcc*) | |
9339 | # When not using gcc, we currently assume that we are using | |
9340 | # Microsoft Visual C++. | |
9341 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9342 | # no search path for DLLs. | |
9343 | hardcode_libdir_flag_spec=' ' | |
9344 | allow_undefined_flag=unsupported | |
9345 | # Tell ltmain to make .lib files, not .a files. | |
9346 | libext=lib | |
9347 | # Tell ltmain to make .dll files, not .so files. | |
9348 | shrext_cmds=".dll" | |
9349 | # FIXME: Setting linknames here is a bad hack. | |
9350 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9351 | # The linker will automatically build a .lib file if we build a DLL. | |
9352 | old_archive_from_new_cmds='true' | |
9353 | # FIXME: Should let the user specify the lib program. | |
9354 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9355 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9356 | enable_shared_with_static_runtimes=yes | |
9357 | ;; | |
9358 | ||
9359 | darwin* | rhapsody*) | |
9360 | ||
9361 | ||
9362 | archive_cmds_need_lc=no | |
9363 | hardcode_direct=no | |
9364 | hardcode_automatic=yes | |
9365 | hardcode_shlibpath_var=unsupported | |
9366 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9367 | 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\"`' | |
9368 | else | |
9369 | whole_archive_flag_spec='' | |
9370 | fi | |
9371 | link_all_deplibs=yes | |
9372 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9373 | case $cc_basename in | |
9374 | ifort*) _lt_dar_can_shared=yes ;; | |
9375 | *) _lt_dar_can_shared=$GCC ;; | |
9376 | esac | |
9377 | if test "$_lt_dar_can_shared" = "yes"; then | |
9378 | output_verbose_link_cmd=func_echo_all | |
9379 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9380 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9381 | 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}" | |
9382 | 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}" | |
9383 | ||
9384 | else | |
9385 | ld_shlibs=no | |
9386 | fi | |
9387 | ||
9388 | ;; | |
9389 | ||
9390 | dgux*) | |
9391 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9392 | hardcode_libdir_flag_spec='-L$libdir' | |
9393 | hardcode_shlibpath_var=no | |
9394 | ;; | |
9395 | ||
9396 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9397 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9398 | # does not break anything, and helps significantly (at the cost of a little | |
9399 | # extra space). | |
9400 | freebsd2.2*) | |
9401 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9402 | hardcode_libdir_flag_spec='-R$libdir' | |
9403 | hardcode_direct=yes | |
9404 | hardcode_shlibpath_var=no | |
9405 | ;; | |
9406 | ||
9407 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9408 | freebsd2.*) | |
9409 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9410 | hardcode_direct=yes | |
9411 | hardcode_minus_L=yes | |
9412 | hardcode_shlibpath_var=no | |
9413 | ;; | |
9414 | ||
9415 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9416 | freebsd* | dragonfly*) | |
9417 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9418 | hardcode_libdir_flag_spec='-R$libdir' | |
9419 | hardcode_direct=yes | |
9420 | hardcode_shlibpath_var=no | |
9421 | ;; | |
9422 | ||
9423 | hpux9*) | |
9424 | if test "$GCC" = yes; then | |
9425 | 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' | |
9426 | else | |
9427 | 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' | |
9428 | fi | |
9429 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9430 | hardcode_libdir_separator=: | |
9431 | hardcode_direct=yes | |
9432 | ||
9433 | # hardcode_minus_L: Not really in the search PATH, | |
9434 | # but as the default location of the library. | |
9435 | hardcode_minus_L=yes | |
9436 | export_dynamic_flag_spec='${wl}-E' | |
9437 | ;; | |
9438 | ||
9439 | hpux10*) | |
9440 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9441 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9442 | else | |
9443 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9444 | fi | |
9445 | if test "$with_gnu_ld" = no; then | |
9446 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9447 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9448 | hardcode_libdir_separator=: | |
9449 | hardcode_direct=yes | |
9450 | hardcode_direct_absolute=yes | |
9451 | export_dynamic_flag_spec='${wl}-E' | |
9452 | # hardcode_minus_L: Not really in the search PATH, | |
9453 | # but as the default location of the library. | |
9454 | hardcode_minus_L=yes | |
9455 | fi | |
9456 | ;; | |
9457 | ||
9458 | hpux11*) | |
9459 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9460 | case $host_cpu in | |
9461 | hppa*64*) | |
9462 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9463 | ;; | |
9464 | ia64*) | |
9465 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9466 | ;; | |
9467 | *) | |
9468 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9469 | ;; | |
9470 | esac | |
9471 | else | |
9472 | case $host_cpu in | |
9473 | hppa*64*) | |
9474 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9475 | ;; | |
9476 | ia64*) | |
9477 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9478 | ;; | |
9479 | *) | |
9480 | ||
9481 | # Older versions of the 11.00 compiler do not understand -b yet | |
9482 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9484 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 9485 | if ${lt_cv_prog_compiler__b+:} false; then : |
6bb11ab3 L |
9486 | $as_echo_n "(cached) " >&6 |
9487 | else | |
9488 | lt_cv_prog_compiler__b=no | |
9489 | save_LDFLAGS="$LDFLAGS" | |
9490 | LDFLAGS="$LDFLAGS -b" | |
9491 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9492 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9493 | # The linker can only warn and ignore the option if not recognized | |
9494 | # So say no if there are warnings | |
9495 | if test -s conftest.err; then | |
9496 | # Append any errors to the config.log. | |
9497 | cat conftest.err 1>&5 | |
9498 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9499 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9500 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9501 | lt_cv_prog_compiler__b=yes | |
9502 | fi | |
9503 | else | |
9504 | lt_cv_prog_compiler__b=yes | |
9505 | fi | |
9506 | fi | |
9507 | $RM -r conftest* | |
9508 | LDFLAGS="$save_LDFLAGS" | |
9509 | ||
9510 | fi | |
9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9512 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9513 | ||
9514 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9515 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9516 | else | |
9517 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9518 | fi | |
9519 | ||
9520 | ;; | |
9521 | esac | |
9522 | fi | |
9523 | if test "$with_gnu_ld" = no; then | |
9524 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9525 | hardcode_libdir_separator=: | |
9526 | ||
9527 | case $host_cpu in | |
9528 | hppa*64*|ia64*) | |
9529 | hardcode_direct=no | |
9530 | hardcode_shlibpath_var=no | |
9531 | ;; | |
9532 | *) | |
9533 | hardcode_direct=yes | |
9534 | hardcode_direct_absolute=yes | |
9535 | export_dynamic_flag_spec='${wl}-E' | |
9536 | ||
9537 | # hardcode_minus_L: Not really in the search PATH, | |
9538 | # but as the default location of the library. | |
9539 | hardcode_minus_L=yes | |
9540 | ;; | |
9541 | esac | |
9542 | fi | |
9543 | ;; | |
9544 | ||
9545 | irix5* | irix6* | nonstopux*) | |
9546 | if test "$GCC" = yes; then | |
9547 | 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' | |
9548 | # Try to use the -exported_symbol ld option, if it does not | |
9549 | # work, assume that -exports_file does not work either and | |
9550 | # implicitly export all symbols. | |
9551 | save_LDFLAGS="$LDFLAGS" | |
9552 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9554 | /* end confdefs.h. */ | |
9555 | int foo(void) {} | |
9556 | _ACEOF | |
9557 | if ac_fn_c_try_link "$LINENO"; then : | |
9558 | 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' | |
9559 | ||
9560 | fi | |
9561 | rm -f core conftest.err conftest.$ac_objext \ | |
9562 | conftest$ac_exeext conftest.$ac_ext | |
9563 | LDFLAGS="$save_LDFLAGS" | |
9564 | else | |
9565 | 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' | |
9566 | 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' | |
9567 | fi | |
9568 | archive_cmds_need_lc='no' | |
9569 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9570 | hardcode_libdir_separator=: | |
9571 | inherit_rpath=yes | |
9572 | link_all_deplibs=yes | |
9573 | ;; | |
9574 | ||
9575 | netbsd*) | |
9576 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9577 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9578 | else | |
9579 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9580 | fi | |
9581 | hardcode_libdir_flag_spec='-R$libdir' | |
9582 | hardcode_direct=yes | |
9583 | hardcode_shlibpath_var=no | |
9584 | ;; | |
9585 | ||
9586 | newsos6) | |
9587 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9588 | hardcode_direct=yes | |
9589 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9590 | hardcode_libdir_separator=: | |
9591 | hardcode_shlibpath_var=no | |
9592 | ;; | |
9593 | ||
9594 | *nto* | *qnx*) | |
9595 | ;; | |
9596 | ||
9597 | openbsd*) | |
9598 | if test -f /usr/libexec/ld.so; then | |
9599 | hardcode_direct=yes | |
9600 | hardcode_shlibpath_var=no | |
9601 | hardcode_direct_absolute=yes | |
9602 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9603 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9604 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9605 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9606 | export_dynamic_flag_spec='${wl}-E' | |
9607 | else | |
9608 | case $host_os in | |
9609 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9610 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9611 | hardcode_libdir_flag_spec='-R$libdir' | |
9612 | ;; | |
9613 | *) | |
9614 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9615 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9616 | ;; | |
9617 | esac | |
9618 | fi | |
9619 | else | |
9620 | ld_shlibs=no | |
9621 | fi | |
9622 | ;; | |
9623 | ||
9624 | os2*) | |
9625 | hardcode_libdir_flag_spec='-L$libdir' | |
9626 | hardcode_minus_L=yes | |
9627 | allow_undefined_flag=unsupported | |
9628 | 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' | |
9629 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9630 | ;; | |
9631 | ||
9632 | osf3*) | |
9633 | if test "$GCC" = yes; then | |
9634 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9635 | 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' | |
9636 | else | |
9637 | allow_undefined_flag=' -expect_unresolved \*' | |
9638 | 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' | |
9639 | fi | |
9640 | archive_cmds_need_lc='no' | |
9641 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9642 | hardcode_libdir_separator=: | |
9643 | ;; | |
9644 | ||
9645 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9646 | if test "$GCC" = yes; then | |
9647 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9648 | 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' | |
9649 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9650 | else | |
9651 | allow_undefined_flag=' -expect_unresolved \*' | |
9652 | 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' | |
9653 | 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~ | |
9654 | $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' | |
9655 | ||
9656 | # Both c and cxx compiler support -rpath directly | |
9657 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9658 | fi | |
9659 | archive_cmds_need_lc='no' | |
9660 | hardcode_libdir_separator=: | |
9661 | ;; | |
9662 | ||
9663 | solaris*) | |
9664 | no_undefined_flag=' -z defs' | |
9665 | if test "$GCC" = yes; then | |
9666 | wlarc='${wl}' | |
9667 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9668 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9669 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9670 | else | |
9671 | case `$CC -V 2>&1` in | |
9672 | *"Compilers 5.0"*) | |
9673 | wlarc='' | |
9674 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9675 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9676 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9677 | ;; | |
9678 | *) | |
9679 | wlarc='${wl}' | |
9680 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9681 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9682 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9683 | ;; | |
9684 | esac | |
9685 | fi | |
9686 | hardcode_libdir_flag_spec='-R$libdir' | |
9687 | hardcode_shlibpath_var=no | |
9688 | case $host_os in | |
9689 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9690 | *) | |
9691 | # The compiler driver will combine and reorder linker options, | |
9692 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9693 | # but is careful enough not to reorder. | |
9694 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9695 | if test "$GCC" = yes; then | |
9696 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9697 | else | |
9698 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9699 | fi | |
9700 | ;; | |
9701 | esac | |
9702 | link_all_deplibs=yes | |
9703 | ;; | |
9704 | ||
9705 | sunos4*) | |
9706 | if test "x$host_vendor" = xsequent; then | |
9707 | # Use $CC to link under sequent, because it throws in some extra .o | |
9708 | # files that make .init and .fini sections work. | |
9709 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9710 | else | |
9711 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9712 | fi | |
9713 | hardcode_libdir_flag_spec='-L$libdir' | |
9714 | hardcode_direct=yes | |
9715 | hardcode_minus_L=yes | |
9716 | hardcode_shlibpath_var=no | |
9717 | ;; | |
9718 | ||
9719 | sysv4) | |
9720 | case $host_vendor in | |
9721 | sni) | |
9722 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9723 | hardcode_direct=yes # is this really true??? | |
9724 | ;; | |
9725 | siemens) | |
9726 | ## LD is ld it makes a PLAMLIB | |
9727 | ## CC just makes a GrossModule. | |
9728 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9729 | reload_cmds='$CC -r -o $output$reload_objs' | |
9730 | hardcode_direct=no | |
9731 | ;; | |
9732 | motorola) | |
9733 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9734 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9735 | ;; | |
9736 | esac | |
9737 | runpath_var='LD_RUN_PATH' | |
9738 | hardcode_shlibpath_var=no | |
9739 | ;; | |
9740 | ||
9741 | sysv4.3*) | |
9742 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9743 | hardcode_shlibpath_var=no | |
9744 | export_dynamic_flag_spec='-Bexport' | |
9745 | ;; | |
9746 | ||
9747 | sysv4*MP*) | |
9748 | if test -d /usr/nec; then | |
9749 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9750 | hardcode_shlibpath_var=no | |
9751 | runpath_var=LD_RUN_PATH | |
9752 | hardcode_runpath_var=yes | |
9753 | ld_shlibs=yes | |
9754 | fi | |
9755 | ;; | |
9756 | ||
9757 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9758 | no_undefined_flag='${wl}-z,text' | |
9759 | archive_cmds_need_lc=no | |
9760 | hardcode_shlibpath_var=no | |
9761 | runpath_var='LD_RUN_PATH' | |
9762 | ||
9763 | if test "$GCC" = yes; then | |
9764 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9765 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9766 | else | |
9767 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9768 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9769 | fi | |
9770 | ;; | |
9771 | ||
9772 | sysv5* | sco3.2v5* | sco5v6*) | |
9773 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9774 | # link with -lc, and that would cause any symbols used from libc to | |
9775 | # always be unresolved, which means just about no library would | |
9776 | # ever link correctly. If we're not using GNU ld we use -z text | |
9777 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9778 | # as -z defs. | |
9779 | no_undefined_flag='${wl}-z,text' | |
9780 | allow_undefined_flag='${wl}-z,nodefs' | |
9781 | archive_cmds_need_lc=no | |
9782 | hardcode_shlibpath_var=no | |
9783 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9784 | hardcode_libdir_separator=':' | |
9785 | link_all_deplibs=yes | |
9786 | export_dynamic_flag_spec='${wl}-Bexport' | |
9787 | runpath_var='LD_RUN_PATH' | |
9788 | ||
9789 | if test "$GCC" = yes; then | |
9790 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9791 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9792 | else | |
9793 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9794 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9795 | fi | |
9796 | ;; | |
9797 | ||
9798 | uts4*) | |
9799 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9800 | hardcode_libdir_flag_spec='-L$libdir' | |
9801 | hardcode_shlibpath_var=no | |
9802 | ;; | |
9803 | ||
9804 | *) | |
9805 | ld_shlibs=no | |
9806 | ;; | |
9807 | esac | |
9808 | ||
9809 | if test x$host_vendor = xsni; then | |
9810 | case $host in | |
9811 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9812 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9813 | ;; | |
9814 | esac | |
9815 | fi | |
9816 | fi | |
9817 | ||
9818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
9819 | $as_echo "$ld_shlibs" >&6; } | |
9820 | test "$ld_shlibs" = no && can_build_shared=no | |
9821 | ||
9822 | with_gnu_ld=$with_gnu_ld | |
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | # | |
9839 | # Do we need to explicitly link libc? | |
9840 | # | |
9841 | case "x$archive_cmds_need_lc" in | |
9842 | x|xyes) | |
9843 | # Assume -lc should be added | |
9844 | archive_cmds_need_lc=yes | |
9845 | ||
9846 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9847 | case $archive_cmds in | |
9848 | *'~'*) | |
9849 | # FIXME: we may have to deal with multi-command sequences. | |
9850 | ;; | |
9851 | '$CC '*) | |
9852 | # Test whether the compiler implicitly links with -lc since on some | |
9853 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9854 | # to ld, don't add -lc before -lgcc. | |
9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
9856 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 9857 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
6bb11ab3 L |
9858 | $as_echo_n "(cached) " >&6 |
9859 | else | |
9860 | $RM conftest* | |
9861 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9862 | ||
9863 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9864 | (eval $ac_compile) 2>&5 | |
9865 | ac_status=$? | |
9866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9867 | test $ac_status = 0; } 2>conftest.err; then | |
9868 | soname=conftest | |
9869 | lib=conftest | |
9870 | libobjs=conftest.$ac_objext | |
9871 | deplibs= | |
9872 | wl=$lt_prog_compiler_wl | |
9873 | pic_flag=$lt_prog_compiler_pic | |
9874 | compiler_flags=-v | |
9875 | linker_flags=-v | |
9876 | verstring= | |
9877 | output_objdir=. | |
9878 | libname=conftest | |
9879 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9880 | allow_undefined_flag= | |
9881 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
9882 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9883 | ac_status=$? | |
9884 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9885 | test $ac_status = 0; } | |
9886 | then | |
9887 | lt_cv_archive_cmds_need_lc=no | |
9888 | else | |
9889 | lt_cv_archive_cmds_need_lc=yes | |
9890 | fi | |
9891 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9892 | else | |
9893 | cat conftest.err 1>&5 | |
9894 | fi | |
9895 | $RM conftest* | |
9896 | ||
9897 | fi | |
9898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9899 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9900 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
9901 | ;; | |
9902 | esac | |
9903 | fi | |
9904 | ;; | |
9905 | esac | |
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
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 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ||
9987 | ||
9988 | ||
9989 | ||
9990 | ||
9991 | ||
9992 | ||
9993 | ||
9994 | ||
9995 | ||
9996 | ||
9997 | ||
9998 | ||
9999 | ||
10000 | ||
10001 | ||
10002 | ||
10003 | ||
10004 | ||
10005 | ||
10006 | ||
10007 | ||
10008 | ||
10009 | ||
10010 | ||
10011 | ||
10012 | ||
10013 | ||
10014 | ||
10015 | ||
10016 | ||
10017 | ||
10018 | ||
10019 | ||
10020 | ||
10021 | ||
10022 | ||
10023 | ||
10024 | ||
10025 | ||
ef016f83 | 10026 | |
ef016f83 | 10027 | |
ef016f83 | 10028 | |
ef016f83 | 10029 | |
ef016f83 | 10030 | |
ef016f83 | 10031 | |
ef016f83 | 10032 | |
6ffe910a | 10033 | |
6ffe910a MF |
10034 | |
10035 | ||
6ffe910a | 10036 | |
ef016f83 | 10037 | |
ef016f83 MF |
10038 | |
10039 | ||
ef016f83 MF |
10040 | |
10041 | ||
10042 | ||
6ffe910a | 10043 | |
ef016f83 MF |
10044 | |
10045 | ||
ef016f83 | 10046 | |
ef016f83 | 10047 | |
ef016f83 | 10048 | |
ef016f83 | 10049 | |
ef016f83 | 10050 | |
ef016f83 | 10051 | |
ef016f83 | 10052 | |
ef016f83 | 10053 | |
ef016f83 | 10054 | |
ef016f83 | 10055 | |
ef016f83 | 10056 | |
ef016f83 MF |
10057 | |
10058 | ||
ef016f83 | 10059 | |
ef016f83 | 10060 | |
ef016f83 MF |
10061 | |
10062 | ||
6bb11ab3 L |
10063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10064 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10065 | ||
10066 | if test "$GCC" = yes; then | |
10067 | case $host_os in | |
10068 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10069 | *) lt_awk_arg="/^libraries:/" ;; | |
10070 | esac | |
10071 | case $host_os in | |
10072 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10073 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10074 | esac | |
10075 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10076 | case $lt_search_path_spec in | |
10077 | *\;*) | |
10078 | # if the path contains ";" then we assume it to be the separator | |
10079 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10080 | # assumed that no part of a normal pathname contains ";" but that should | |
10081 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10082 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10083 | ;; | |
10084 | *) | |
10085 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10086 | ;; | |
10087 | esac | |
10088 | # Ok, now we have the path, separated by spaces, we can step through it | |
10089 | # and add multilib dir if necessary. | |
10090 | lt_tmp_lt_search_path_spec= | |
10091 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10092 | for lt_sys_path in $lt_search_path_spec; do | |
10093 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10094 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10095 | else | |
10096 | test -d "$lt_sys_path" && \ | |
10097 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
ef016f83 | 10098 | fi |
ef016f83 | 10099 | done |
6bb11ab3 L |
10100 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
10101 | BEGIN {RS=" "; FS="/|\n";} { | |
10102 | lt_foo=""; | |
10103 | lt_count=0; | |
10104 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10105 | if ($lt_i != "" && $lt_i != ".") { | |
10106 | if ($lt_i == "..") { | |
10107 | lt_count++; | |
10108 | } else { | |
10109 | if (lt_count == 0) { | |
10110 | lt_foo="/" $lt_i lt_foo; | |
10111 | } else { | |
10112 | lt_count--; | |
10113 | } | |
10114 | } | |
10115 | } | |
10116 | } | |
10117 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10118 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10119 | }'` | |
10120 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10121 | # for these hosts. | |
10122 | case $host_os in | |
10123 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10124 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10125 | esac | |
10126 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10127 | else | |
10128 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10129 | fi | |
10130 | library_names_spec= | |
10131 | libname_spec='lib$name' | |
10132 | soname_spec= | |
10133 | shrext_cmds=".so" | |
10134 | postinstall_cmds= | |
10135 | postuninstall_cmds= | |
10136 | finish_cmds= | |
10137 | finish_eval= | |
10138 | shlibpath_var= | |
10139 | shlibpath_overrides_runpath=unknown | |
10140 | version_type=none | |
10141 | dynamic_linker="$host_os ld.so" | |
10142 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10143 | need_lib_prefix=unknown | |
10144 | hardcode_into_libs=no | |
10145 | ||
10146 | # when you set need_version to no, make sure it does not cause -set_version | |
10147 | # flags to be left without arguments | |
10148 | need_version=unknown | |
10149 | ||
10150 | case $host_os in | |
10151 | aix3*) | |
10152 | version_type=linux | |
10153 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10154 | shlibpath_var=LIBPATH | |
10155 | ||
10156 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10157 | soname_spec='${libname}${release}${shared_ext}$major' | |
10158 | ;; | |
ef016f83 | 10159 | |
6bb11ab3 L |
10160 | aix[4-9]*) |
10161 | version_type=linux | |
10162 | need_lib_prefix=no | |
10163 | need_version=no | |
10164 | hardcode_into_libs=yes | |
10165 | if test "$host_cpu" = ia64; then | |
10166 | # AIX 5 supports IA64 | |
10167 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10168 | shlibpath_var=LD_LIBRARY_PATH | |
10169 | else | |
10170 | # With GCC up to 2.95.x, collect2 would create an import file | |
10171 | # for dependence libraries. The import file would start with | |
10172 | # the line `#! .'. This would cause the generated library to | |
10173 | # depend on `.', always an invalid library. This was fixed in | |
10174 | # development snapshots of GCC prior to 3.0. | |
10175 | case $host_os in | |
10176 | aix4 | aix4.[01] | aix4.[01].*) | |
10177 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10178 | echo ' yes ' | |
10179 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10180 | : | |
10181 | else | |
10182 | can_build_shared=no | |
10183 | fi | |
10184 | ;; | |
10185 | esac | |
10186 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10187 | # soname into executable. Probably we can add versioning support to | |
10188 | # collect2, so additional links can be useful in future. | |
10189 | if test "$aix_use_runtimelinking" = yes; then | |
10190 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10191 | # instead of lib<name>.a to let people know that these are not | |
10192 | # typical AIX shared libraries. | |
10193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10194 | else | |
10195 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10196 | # and later when we are not doing run time linking. | |
10197 | library_names_spec='${libname}${release}.a $libname.a' | |
10198 | soname_spec='${libname}${release}${shared_ext}$major' | |
10199 | fi | |
10200 | shlibpath_var=LIBPATH | |
ef016f83 | 10201 | fi |
6bb11ab3 | 10202 | ;; |
ef016f83 | 10203 | |
6bb11ab3 L |
10204 | amigaos*) |
10205 | case $host_cpu in | |
10206 | powerpc) | |
10207 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10208 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10210 | ;; | |
10211 | m68k) | |
10212 | library_names_spec='$libname.ixlibrary $libname.a' | |
10213 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10214 | 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' | |
10215 | ;; | |
10216 | esac | |
10217 | ;; | |
ef016f83 | 10218 | |
6bb11ab3 L |
10219 | beos*) |
10220 | library_names_spec='${libname}${shared_ext}' | |
10221 | dynamic_linker="$host_os ld.so" | |
10222 | shlibpath_var=LIBRARY_PATH | |
10223 | ;; | |
ef016f83 | 10224 | |
6bb11ab3 L |
10225 | bsdi[45]*) |
10226 | version_type=linux | |
10227 | need_version=no | |
10228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10229 | soname_spec='${libname}${release}${shared_ext}$major' | |
10230 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10231 | shlibpath_var=LD_LIBRARY_PATH | |
10232 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10233 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10234 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10235 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10236 | # libtool to hard-code these into programs | |
10237 | ;; | |
ef016f83 | 10238 | |
6bb11ab3 L |
10239 | cygwin* | mingw* | pw32* | cegcc*) |
10240 | version_type=windows | |
10241 | shrext_cmds=".dll" | |
10242 | need_version=no | |
10243 | need_lib_prefix=no | |
10244 | ||
10245 | case $GCC,$host_os in | |
10246 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10247 | library_names_spec='$libname.dll.a' | |
10248 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10249 | postinstall_cmds='base_file=`basename \${file}`~ | |
10250 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10251 | dldir=$destdir/`dirname \$dlpath`~ | |
10252 | test -d \$dldir || mkdir -p \$dldir~ | |
10253 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10254 | chmod a+x \$dldir/$dlname~ | |
10255 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10256 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10257 | fi' | |
10258 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10259 | dlpath=$dir/\$dldll~ | |
10260 | $RM \$dlpath' | |
10261 | shlibpath_overrides_runpath=yes | |
10262 | ||
10263 | case $host_os in | |
10264 | cygwin*) | |
10265 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10266 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10267 | ||
10268 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10269 | ;; | |
10270 | mingw* | cegcc*) | |
10271 | # MinGW DLLs use traditional 'lib' prefix | |
10272 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10273 | ;; | |
10274 | pw32*) | |
10275 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10276 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10277 | ;; | |
10278 | esac | |
10279 | ;; | |
ef016f83 | 10280 | |
6bb11ab3 L |
10281 | *) |
10282 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10283 | ;; | |
10284 | esac | |
10285 | dynamic_linker='Win32 ld.exe' | |
10286 | # FIXME: first we should search . and the directory the executable is in | |
10287 | shlibpath_var=PATH | |
10288 | ;; | |
ef016f83 | 10289 | |
6bb11ab3 L |
10290 | darwin* | rhapsody*) |
10291 | dynamic_linker="$host_os dyld" | |
10292 | version_type=darwin | |
10293 | need_lib_prefix=no | |
10294 | need_version=no | |
10295 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10296 | soname_spec='${libname}${release}${major}$shared_ext' | |
10297 | shlibpath_overrides_runpath=yes | |
10298 | shlibpath_var=DYLD_LIBRARY_PATH | |
10299 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10300 | ||
10301 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10302 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10303 | ;; | |
ef016f83 | 10304 | |
6bb11ab3 L |
10305 | dgux*) |
10306 | version_type=linux | |
10307 | need_lib_prefix=no | |
10308 | need_version=no | |
10309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10310 | soname_spec='${libname}${release}${shared_ext}$major' | |
10311 | shlibpath_var=LD_LIBRARY_PATH | |
10312 | ;; | |
10313 | ||
10314 | freebsd* | dragonfly*) | |
10315 | # DragonFly does not have aout. When/if they implement a new | |
10316 | # versioning mechanism, adjust this. | |
10317 | if test -x /usr/bin/objformat; then | |
10318 | objformat=`/usr/bin/objformat` | |
10319 | else | |
10320 | case $host_os in | |
10321 | freebsd[23].*) objformat=aout ;; | |
10322 | *) objformat=elf ;; | |
10323 | esac | |
10324 | fi | |
10325 | version_type=freebsd-$objformat | |
10326 | case $version_type in | |
10327 | freebsd-elf*) | |
10328 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10329 | need_version=no | |
10330 | need_lib_prefix=no | |
10331 | ;; | |
10332 | freebsd-*) | |
10333 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10334 | need_version=yes | |
10335 | ;; | |
10336 | esac | |
10337 | shlibpath_var=LD_LIBRARY_PATH | |
10338 | case $host_os in | |
10339 | freebsd2.*) | |
10340 | shlibpath_overrides_runpath=yes | |
10341 | ;; | |
10342 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10343 | shlibpath_overrides_runpath=yes | |
10344 | hardcode_into_libs=yes | |
10345 | ;; | |
10346 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10347 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10348 | shlibpath_overrides_runpath=no | |
10349 | hardcode_into_libs=yes | |
10350 | ;; | |
10351 | *) # from 4.6 on, and DragonFly | |
10352 | shlibpath_overrides_runpath=yes | |
10353 | hardcode_into_libs=yes | |
10354 | ;; | |
10355 | esac | |
10356 | ;; | |
ef016f83 | 10357 | |
6bb11ab3 L |
10358 | haiku*) |
10359 | version_type=linux | |
10360 | need_lib_prefix=no | |
10361 | need_version=no | |
10362 | dynamic_linker="$host_os runtime_loader" | |
10363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10364 | soname_spec='${libname}${release}${shared_ext}$major' | |
10365 | shlibpath_var=LIBRARY_PATH | |
10366 | shlibpath_overrides_runpath=yes | |
10367 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10368 | hardcode_into_libs=yes | |
10369 | ;; | |
ef016f83 | 10370 | |
6bb11ab3 L |
10371 | hpux9* | hpux10* | hpux11*) |
10372 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10373 | # link against other versions. | |
10374 | version_type=sunos | |
10375 | need_lib_prefix=no | |
10376 | need_version=no | |
10377 | case $host_cpu in | |
10378 | ia64*) | |
10379 | shrext_cmds='.so' | |
10380 | hardcode_into_libs=yes | |
10381 | dynamic_linker="$host_os dld.so" | |
10382 | shlibpath_var=LD_LIBRARY_PATH | |
10383 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10385 | soname_spec='${libname}${release}${shared_ext}$major' | |
10386 | if test "X$HPUX_IA64_MODE" = X32; then | |
10387 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10388 | else | |
10389 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10390 | fi | |
10391 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10392 | ;; | |
10393 | hppa*64*) | |
10394 | shrext_cmds='.sl' | |
10395 | hardcode_into_libs=yes | |
10396 | dynamic_linker="$host_os dld.sl" | |
10397 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10398 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10400 | soname_spec='${libname}${release}${shared_ext}$major' | |
10401 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10402 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10403 | ;; | |
10404 | *) | |
10405 | shrext_cmds='.sl' | |
10406 | dynamic_linker="$host_os dld.sl" | |
10407 | shlibpath_var=SHLIB_PATH | |
10408 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10410 | soname_spec='${libname}${release}${shared_ext}$major' | |
10411 | ;; | |
10412 | esac | |
10413 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10414 | postinstall_cmds='chmod 555 $lib' | |
10415 | # or fails outright, so override atomically: | |
10416 | install_override_mode=555 | |
10417 | ;; | |
ef016f83 | 10418 | |
6bb11ab3 L |
10419 | interix[3-9]*) |
10420 | version_type=linux | |
10421 | need_lib_prefix=no | |
10422 | need_version=no | |
10423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10424 | soname_spec='${libname}${release}${shared_ext}$major' | |
10425 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10426 | shlibpath_var=LD_LIBRARY_PATH | |
10427 | shlibpath_overrides_runpath=no | |
10428 | hardcode_into_libs=yes | |
10429 | ;; | |
ef016f83 | 10430 | |
6bb11ab3 L |
10431 | irix5* | irix6* | nonstopux*) |
10432 | case $host_os in | |
10433 | nonstopux*) version_type=nonstopux ;; | |
10434 | *) | |
10435 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10436 | version_type=linux | |
10437 | else | |
10438 | version_type=irix | |
10439 | fi ;; | |
10440 | esac | |
10441 | need_lib_prefix=no | |
10442 | need_version=no | |
10443 | soname_spec='${libname}${release}${shared_ext}$major' | |
10444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10445 | case $host_os in | |
10446 | irix5* | nonstopux*) | |
10447 | libsuff= shlibsuff= | |
10448 | ;; | |
10449 | *) | |
10450 | case $LD in # libtool.m4 will add one of these switches to LD | |
10451 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10452 | libsuff= shlibsuff= libmagic=32-bit;; | |
10453 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10454 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10455 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10456 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10457 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10458 | esac | |
10459 | ;; | |
10460 | esac | |
10461 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10462 | shlibpath_overrides_runpath=no | |
10463 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10464 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10465 | hardcode_into_libs=yes | |
10466 | ;; | |
ef016f83 | 10467 | |
6bb11ab3 L |
10468 | # No shared lib support for Linux oldld, aout, or coff. |
10469 | linux*oldld* | linux*aout* | linux*coff*) | |
10470 | dynamic_linker=no | |
10471 | ;; | |
ef016f83 | 10472 | |
6bb11ab3 | 10473 | # This must be Linux ELF. |
46f900c0 | 10474 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
6bb11ab3 L |
10475 | version_type=linux |
10476 | need_lib_prefix=no | |
10477 | need_version=no | |
10478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10479 | soname_spec='${libname}${release}${shared_ext}$major' | |
10480 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10481 | shlibpath_var=LD_LIBRARY_PATH | |
10482 | shlibpath_overrides_runpath=no | |
10483 | ||
10484 | # Some binutils ld are patched to set DT_RUNPATH | |
d0ac1c44 | 10485 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
6bb11ab3 | 10486 | $as_echo_n "(cached) " >&6 |
ef016f83 | 10487 | else |
6bb11ab3 L |
10488 | lt_cv_shlibpath_overrides_runpath=no |
10489 | save_LDFLAGS=$LDFLAGS | |
10490 | save_libdir=$libdir | |
10491 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10492 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ef016f83 | 10494 | /* end confdefs.h. */ |
ef016f83 | 10495 | |
ef016f83 MF |
10496 | int |
10497 | main () | |
10498 | { | |
6bb11ab3 L |
10499 | |
10500 | ; | |
ef016f83 MF |
10501 | return 0; |
10502 | } | |
10503 | _ACEOF | |
6bb11ab3 L |
10504 | if ac_fn_c_try_link "$LINENO"; then : |
10505 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10506 | lt_cv_shlibpath_overrides_runpath=yes | |
ef016f83 | 10507 | fi |
ef016f83 | 10508 | fi |
6bb11ab3 L |
10509 | rm -f core conftest.err conftest.$ac_objext \ |
10510 | conftest$ac_exeext conftest.$ac_ext | |
10511 | LDFLAGS=$save_LDFLAGS | |
10512 | libdir=$save_libdir | |
ef016f83 MF |
10513 | |
10514 | fi | |
ef016f83 | 10515 | |
6bb11ab3 | 10516 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
ef016f83 | 10517 | |
6bb11ab3 L |
10518 | # This implies no fast_install, which is unacceptable. |
10519 | # Some rework will be needed to allow for fast_install | |
10520 | # before this can be enabled. | |
10521 | hardcode_into_libs=yes | |
ef016f83 | 10522 | |
6bb11ab3 L |
10523 | # Append ld.so.conf contents to the search path |
10524 | if test -f /etc/ld.so.conf; then | |
10525 | 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' ' '` | |
10526 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10527 | fi | |
ef016f83 | 10528 | |
6bb11ab3 L |
10529 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
10530 | # powerpc, because MkLinux only supported shared libraries with the | |
10531 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10532 | # most powerpc-linux boxes support dynamic linking these days and | |
10533 | # people can always --disable-shared, the test was removed, and we | |
10534 | # assume the GNU/Linux dynamic linker is in use. | |
10535 | dynamic_linker='GNU/Linux ld.so' | |
10536 | ;; | |
ef016f83 | 10537 | |
6bb11ab3 L |
10538 | netbsd*) |
10539 | version_type=sunos | |
10540 | need_lib_prefix=no | |
10541 | need_version=no | |
10542 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10544 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10545 | dynamic_linker='NetBSD (a.out) ld.so' | |
10546 | else | |
10547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10548 | soname_spec='${libname}${release}${shared_ext}$major' | |
10549 | dynamic_linker='NetBSD ld.elf_so' | |
10550 | fi | |
10551 | shlibpath_var=LD_LIBRARY_PATH | |
10552 | shlibpath_overrides_runpath=yes | |
10553 | hardcode_into_libs=yes | |
10554 | ;; | |
ef016f83 | 10555 | |
6bb11ab3 L |
10556 | newsos6) |
10557 | version_type=linux | |
10558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10559 | shlibpath_var=LD_LIBRARY_PATH | |
10560 | shlibpath_overrides_runpath=yes | |
10561 | ;; | |
ef016f83 | 10562 | |
6bb11ab3 L |
10563 | *nto* | *qnx*) |
10564 | version_type=qnx | |
10565 | need_lib_prefix=no | |
10566 | need_version=no | |
10567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10568 | soname_spec='${libname}${release}${shared_ext}$major' | |
10569 | shlibpath_var=LD_LIBRARY_PATH | |
10570 | shlibpath_overrides_runpath=no | |
10571 | hardcode_into_libs=yes | |
10572 | dynamic_linker='ldqnx.so' | |
10573 | ;; | |
6ffe910a | 10574 | |
6bb11ab3 L |
10575 | openbsd*) |
10576 | version_type=sunos | |
10577 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10578 | need_lib_prefix=no | |
10579 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10580 | case $host_os in | |
10581 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10582 | *) need_version=no ;; | |
10583 | esac | |
10584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10585 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10586 | shlibpath_var=LD_LIBRARY_PATH | |
10587 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10588 | case $host_os in | |
10589 | openbsd2.[89] | openbsd2.[89].*) | |
10590 | shlibpath_overrides_runpath=no | |
10591 | ;; | |
10592 | *) | |
10593 | shlibpath_overrides_runpath=yes | |
10594 | ;; | |
10595 | esac | |
10596 | else | |
10597 | shlibpath_overrides_runpath=yes | |
10598 | fi | |
10599 | ;; | |
2232061b | 10600 | |
6bb11ab3 L |
10601 | os2*) |
10602 | libname_spec='$name' | |
10603 | shrext_cmds=".dll" | |
10604 | need_lib_prefix=no | |
10605 | library_names_spec='$libname${shared_ext} $libname.a' | |
10606 | dynamic_linker='OS/2 ld.exe' | |
10607 | shlibpath_var=LIBPATH | |
10608 | ;; | |
2232061b | 10609 | |
6bb11ab3 L |
10610 | osf3* | osf4* | osf5*) |
10611 | version_type=osf | |
10612 | need_lib_prefix=no | |
10613 | need_version=no | |
10614 | soname_spec='${libname}${release}${shared_ext}$major' | |
10615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10616 | shlibpath_var=LD_LIBRARY_PATH | |
10617 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10618 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10619 | ;; | |
2232061b | 10620 | |
6bb11ab3 L |
10621 | rdos*) |
10622 | dynamic_linker=no | |
10623 | ;; | |
2232061b | 10624 | |
6bb11ab3 L |
10625 | solaris*) |
10626 | version_type=linux | |
10627 | need_lib_prefix=no | |
10628 | need_version=no | |
10629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10630 | soname_spec='${libname}${release}${shared_ext}$major' | |
10631 | shlibpath_var=LD_LIBRARY_PATH | |
10632 | shlibpath_overrides_runpath=yes | |
10633 | hardcode_into_libs=yes | |
10634 | # ldd complains unless libraries are executable | |
10635 | postinstall_cmds='chmod +x $lib' | |
10636 | ;; | |
2232061b | 10637 | |
6bb11ab3 L |
10638 | sunos4*) |
10639 | version_type=sunos | |
10640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10641 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10642 | shlibpath_var=LD_LIBRARY_PATH | |
10643 | shlibpath_overrides_runpath=yes | |
10644 | if test "$with_gnu_ld" = yes; then | |
10645 | need_lib_prefix=no | |
10646 | fi | |
10647 | need_version=yes | |
10648 | ;; | |
2232061b | 10649 | |
6bb11ab3 L |
10650 | sysv4 | sysv4.3*) |
10651 | version_type=linux | |
10652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10653 | soname_spec='${libname}${release}${shared_ext}$major' | |
10654 | shlibpath_var=LD_LIBRARY_PATH | |
10655 | case $host_vendor in | |
10656 | sni) | |
10657 | shlibpath_overrides_runpath=no | |
10658 | need_lib_prefix=no | |
10659 | runpath_var=LD_RUN_PATH | |
10660 | ;; | |
10661 | siemens) | |
10662 | need_lib_prefix=no | |
10663 | ;; | |
10664 | motorola) | |
10665 | need_lib_prefix=no | |
10666 | need_version=no | |
10667 | shlibpath_overrides_runpath=no | |
10668 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10669 | ;; | |
10670 | esac | |
10671 | ;; | |
2232061b | 10672 | |
6bb11ab3 L |
10673 | sysv4*MP*) |
10674 | if test -d /usr/nec ;then | |
10675 | version_type=linux | |
10676 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10677 | soname_spec='$libname${shared_ext}.$major' | |
10678 | shlibpath_var=LD_LIBRARY_PATH | |
10679 | fi | |
10680 | ;; | |
2232061b | 10681 | |
6bb11ab3 L |
10682 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
10683 | version_type=freebsd-elf | |
10684 | need_lib_prefix=no | |
10685 | need_version=no | |
10686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10687 | soname_spec='${libname}${release}${shared_ext}$major' | |
10688 | shlibpath_var=LD_LIBRARY_PATH | |
10689 | shlibpath_overrides_runpath=yes | |
10690 | hardcode_into_libs=yes | |
10691 | if test "$with_gnu_ld" = yes; then | |
10692 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10693 | else | |
10694 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10695 | case $host_os in | |
10696 | sco3.2v5*) | |
10697 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10698 | ;; | |
10699 | esac | |
2232061b | 10700 | fi |
6bb11ab3 L |
10701 | sys_lib_dlsearch_path_spec='/usr/lib' |
10702 | ;; | |
2232061b | 10703 | |
6bb11ab3 L |
10704 | tpf*) |
10705 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10706 | version_type=linux | |
10707 | need_lib_prefix=no | |
10708 | need_version=no | |
10709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10710 | shlibpath_var=LD_LIBRARY_PATH | |
10711 | shlibpath_overrides_runpath=no | |
10712 | hardcode_into_libs=yes | |
10713 | ;; | |
2232061b | 10714 | |
6bb11ab3 L |
10715 | uts4*) |
10716 | version_type=linux | |
10717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10718 | soname_spec='${libname}${release}${shared_ext}$major' | |
10719 | shlibpath_var=LD_LIBRARY_PATH | |
10720 | ;; | |
2232061b | 10721 | |
6bb11ab3 L |
10722 | *) |
10723 | dynamic_linker=no | |
10724 | ;; | |
10725 | esac | |
10726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10727 | $as_echo "$dynamic_linker" >&6; } | |
10728 | test "$dynamic_linker" = no && can_build_shared=no | |
2232061b | 10729 | |
6bb11ab3 L |
10730 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
10731 | if test "$GCC" = yes; then | |
10732 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
2232061b | 10733 | fi |
2232061b | 10734 | |
6bb11ab3 L |
10735 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10736 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10737 | fi | |
10738 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10739 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10740 | fi | |
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
2232061b | 10756 | |
2232061b | 10757 | |
2232061b | 10758 | |
2232061b MF |
10759 | |
10760 | ||
2232061b | 10761 | |
2232061b | 10762 | |
2232061b | 10763 | |
2232061b | 10764 | |
2232061b | 10765 | |
2232061b | 10766 | |
2232061b | 10767 | |
2232061b | 10768 | |
2232061b | 10769 | |
2232061b MF |
10770 | |
10771 | ||
6ffe910a | 10772 | |
6ffe910a MF |
10773 | |
10774 | ||
10775 | ||
10776 | ||
10777 | ||
2232061b | 10778 | |
6ffe910a MF |
10779 | |
10780 | ||
10781 | ||
10782 | ||
6ffe910a | 10783 | |
6ffe910a | 10784 | |
6ffe910a MF |
10785 | |
10786 | ||
6ffe910a | 10787 | |
6ffe910a | 10788 | |
6ffe910a MF |
10789 | |
10790 | ||
5f3ef9d0 | 10791 | |
5f3ef9d0 JB |
10792 | |
10793 | ||
10794 | ||
db2e4d67 MF |
10795 | |
10796 | ||
db2e4d67 | 10797 | |
db2e4d67 | 10798 | |
db2e4d67 | 10799 | |
db2e4d67 | 10800 | |
db2e4d67 | 10801 | |
db2e4d67 | 10802 | |
db2e4d67 | 10803 | |
db2e4d67 MF |
10804 | |
10805 | ||
db2e4d67 | 10806 | |
db2e4d67 MF |
10807 | |
10808 | ||
db2e4d67 | 10809 | |
db2e4d67 MF |
10810 | |
10811 | ||
6ffe910a | 10812 | |
6ffe910a | 10813 | |
6ffe910a MF |
10814 | |
10815 | ||
6ffe910a MF |
10816 | |
10817 | ||
6ffe910a | 10818 | |
6ffe910a | 10819 | |
6ffe910a | 10820 | |
6ffe910a | 10821 | |
6ffe910a | 10822 | |
ef016f83 | 10823 | |
ef016f83 | 10824 | |
ef016f83 | 10825 | |
ef016f83 | 10826 | |
ef016f83 | 10827 | |
ef016f83 | 10828 | |
ef016f83 | 10829 | |
6bb11ab3 L |
10830 | |
10831 | ||
10832 | ||
10833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
10834 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10835 | hardcode_action= | |
10836 | if test -n "$hardcode_libdir_flag_spec" || | |
10837 | test -n "$runpath_var" || | |
10838 | test "X$hardcode_automatic" = "Xyes" ; then | |
10839 | ||
10840 | # We can hardcode non-existent directories. | |
10841 | if test "$hardcode_direct" != no && | |
10842 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10843 | # have to relink, otherwise we might link with an installed library | |
10844 | # when we should be linking with a yet-to-be-installed one | |
10845 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10846 | test "$hardcode_minus_L" != no; then | |
10847 | # Linking always hardcodes the temporary library directory. | |
10848 | hardcode_action=relink | |
10849 | else | |
10850 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10851 | hardcode_action=immediate | |
10852 | fi | |
10853 | else | |
10854 | # We cannot hardcode anything, or else we can only hardcode existing | |
10855 | # directories. | |
10856 | hardcode_action=unsupported | |
ef016f83 | 10857 | fi |
6bb11ab3 L |
10858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10859 | $as_echo "$hardcode_action" >&6; } | |
ef016f83 | 10860 | |
6bb11ab3 L |
10861 | if test "$hardcode_action" = relink || |
10862 | test "$inherit_rpath" = yes; then | |
10863 | # Fast installation is not supported | |
10864 | enable_fast_install=no | |
10865 | elif test "$shlibpath_overrides_runpath" = yes || | |
10866 | test "$enable_shared" = no; then | |
10867 | # Fast installation is not necessary | |
10868 | enable_fast_install=needless | |
10869 | fi | |
ef016f83 | 10870 | |
6bb11ab3 L |
10871 | |
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | if test "x$enable_dlopen" != xyes; then | |
10877 | enable_dlopen=unknown | |
10878 | enable_dlopen_self=unknown | |
10879 | enable_dlopen_self_static=unknown | |
10880 | else | |
10881 | lt_cv_dlopen=no | |
10882 | lt_cv_dlopen_libs= | |
10883 | ||
10884 | case $host_os in | |
10885 | beos*) | |
10886 | lt_cv_dlopen="load_add_on" | |
10887 | lt_cv_dlopen_libs= | |
10888 | lt_cv_dlopen_self=yes | |
10889 | ;; | |
10890 | ||
10891 | mingw* | pw32* | cegcc*) | |
10892 | lt_cv_dlopen="LoadLibrary" | |
10893 | lt_cv_dlopen_libs= | |
10894 | ;; | |
10895 | ||
10896 | cygwin*) | |
10897 | lt_cv_dlopen="dlopen" | |
10898 | lt_cv_dlopen_libs= | |
10899 | ;; | |
10900 | ||
10901 | darwin*) | |
10902 | # if libdl is installed we need to link against it | |
10903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10904 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10905 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
6bb11ab3 L |
10906 | $as_echo_n "(cached) " >&6 |
10907 | else | |
10908 | ac_check_lib_save_LIBS=$LIBS | |
10909 | LIBS="-ldl $LIBS" | |
10910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10911 | /* end confdefs.h. */ | |
10912 | ||
10913 | /* Override any GCC internal prototype to avoid an error. | |
10914 | Use char because int might match the return type of a GCC | |
10915 | builtin and then its argument prototype would still apply. */ | |
10916 | #ifdef __cplusplus | |
10917 | extern "C" | |
10918 | #endif | |
10919 | char dlopen (); | |
10920 | int | |
10921 | main () | |
10922 | { | |
10923 | return dlopen (); | |
10924 | ; | |
10925 | return 0; | |
10926 | } | |
ef016f83 | 10927 | _ACEOF |
6bb11ab3 L |
10928 | if ac_fn_c_try_link "$LINENO"; then : |
10929 | ac_cv_lib_dl_dlopen=yes | |
10930 | else | |
10931 | ac_cv_lib_dl_dlopen=no | |
10932 | fi | |
10933 | rm -f core conftest.err conftest.$ac_objext \ | |
10934 | conftest$ac_exeext conftest.$ac_ext | |
10935 | LIBS=$ac_check_lib_save_LIBS | |
10936 | fi | |
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10938 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10939 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
6bb11ab3 L |
10940 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10941 | else | |
10942 | ||
10943 | lt_cv_dlopen="dyld" | |
10944 | lt_cv_dlopen_libs= | |
10945 | lt_cv_dlopen_self=yes | |
ef016f83 MF |
10946 | |
10947 | fi | |
10948 | ||
6bb11ab3 | 10949 | ;; |
ef016f83 | 10950 | |
6bb11ab3 L |
10951 | *) |
10952 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
d0ac1c44 | 10953 | if test "x$ac_cv_func_shl_load" = xyes; then : |
6bb11ab3 L |
10954 | lt_cv_dlopen="shl_load" |
10955 | else | |
10956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10957 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 10958 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
6bb11ab3 L |
10959 | $as_echo_n "(cached) " >&6 |
10960 | else | |
10961 | ac_check_lib_save_LIBS=$LIBS | |
10962 | LIBS="-ldld $LIBS" | |
10963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10964 | /* end confdefs.h. */ | |
10965 | ||
10966 | /* Override any GCC internal prototype to avoid an error. | |
10967 | Use char because int might match the return type of a GCC | |
10968 | builtin and then its argument prototype would still apply. */ | |
10969 | #ifdef __cplusplus | |
10970 | extern "C" | |
10971 | #endif | |
10972 | char shl_load (); | |
10973 | int | |
10974 | main () | |
10975 | { | |
10976 | return shl_load (); | |
10977 | ; | |
10978 | return 0; | |
10979 | } | |
10980 | _ACEOF | |
10981 | if ac_fn_c_try_link "$LINENO"; then : | |
10982 | ac_cv_lib_dld_shl_load=yes | |
10983 | else | |
10984 | ac_cv_lib_dld_shl_load=no | |
10985 | fi | |
10986 | rm -f core conftest.err conftest.$ac_objext \ | |
10987 | conftest$ac_exeext conftest.$ac_ext | |
10988 | LIBS=$ac_check_lib_save_LIBS | |
10989 | fi | |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
10991 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 10992 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
6bb11ab3 L |
10993 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
10994 | else | |
10995 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
d0ac1c44 | 10996 | if test "x$ac_cv_func_dlopen" = xyes; then : |
6bb11ab3 L |
10997 | lt_cv_dlopen="dlopen" |
10998 | else | |
10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11000 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 11001 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
6bb11ab3 L |
11002 | $as_echo_n "(cached) " >&6 |
11003 | else | |
11004 | ac_check_lib_save_LIBS=$LIBS | |
11005 | LIBS="-ldl $LIBS" | |
11006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11007 | /* end confdefs.h. */ | |
11008 | ||
11009 | /* Override any GCC internal prototype to avoid an error. | |
11010 | Use char because int might match the return type of a GCC | |
11011 | builtin and then its argument prototype would still apply. */ | |
11012 | #ifdef __cplusplus | |
11013 | extern "C" | |
11014 | #endif | |
11015 | char dlopen (); | |
11016 | int | |
11017 | main () | |
11018 | { | |
11019 | return dlopen (); | |
11020 | ; | |
11021 | return 0; | |
11022 | } | |
ef016f83 | 11023 | _ACEOF |
6bb11ab3 L |
11024 | if ac_fn_c_try_link "$LINENO"; then : |
11025 | ac_cv_lib_dl_dlopen=yes | |
11026 | else | |
11027 | ac_cv_lib_dl_dlopen=no | |
ef016f83 | 11028 | fi |
6bb11ab3 L |
11029 | rm -f core conftest.err conftest.$ac_objext \ |
11030 | conftest$ac_exeext conftest.$ac_ext | |
11031 | LIBS=$ac_check_lib_save_LIBS | |
11032 | fi | |
11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11034 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 11035 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
6bb11ab3 L |
11036 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11037 | else | |
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11039 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 11040 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
ef016f83 MF |
11041 | $as_echo_n "(cached) " >&6 |
11042 | else | |
11043 | ac_check_lib_save_LIBS=$LIBS | |
6bb11ab3 | 11044 | LIBS="-lsvld $LIBS" |
ef016f83 MF |
11045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11046 | /* end confdefs.h. */ | |
11047 | ||
11048 | /* Override any GCC internal prototype to avoid an error. | |
11049 | Use char because int might match the return type of a GCC | |
11050 | builtin and then its argument prototype would still apply. */ | |
11051 | #ifdef __cplusplus | |
11052 | extern "C" | |
11053 | #endif | |
6bb11ab3 | 11054 | char dlopen (); |
ef016f83 MF |
11055 | int |
11056 | main () | |
11057 | { | |
6bb11ab3 | 11058 | return dlopen (); |
ef016f83 MF |
11059 | ; |
11060 | return 0; | |
11061 | } | |
11062 | _ACEOF | |
11063 | if ac_fn_c_try_link "$LINENO"; then : | |
6bb11ab3 | 11064 | ac_cv_lib_svld_dlopen=yes |
ef016f83 | 11065 | else |
6bb11ab3 | 11066 | ac_cv_lib_svld_dlopen=no |
ef016f83 MF |
11067 | fi |
11068 | rm -f core conftest.err conftest.$ac_objext \ | |
11069 | conftest$ac_exeext conftest.$ac_ext | |
11070 | LIBS=$ac_check_lib_save_LIBS | |
11071 | fi | |
6bb11ab3 L |
11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11073 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 11074 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
6bb11ab3 L |
11075 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11076 | else | |
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11078 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 11079 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
ef016f83 MF |
11080 | $as_echo_n "(cached) " >&6 |
11081 | else | |
11082 | ac_check_lib_save_LIBS=$LIBS | |
6bb11ab3 | 11083 | LIBS="-ldld $LIBS" |
ef016f83 MF |
11084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11085 | /* end confdefs.h. */ | |
11086 | ||
11087 | /* Override any GCC internal prototype to avoid an error. | |
11088 | Use char because int might match the return type of a GCC | |
11089 | builtin and then its argument prototype would still apply. */ | |
11090 | #ifdef __cplusplus | |
11091 | extern "C" | |
11092 | #endif | |
6bb11ab3 | 11093 | char dld_link (); |
ef016f83 MF |
11094 | int |
11095 | main () | |
11096 | { | |
6bb11ab3 | 11097 | return dld_link (); |
ef016f83 MF |
11098 | ; |
11099 | return 0; | |
11100 | } | |
11101 | _ACEOF | |
11102 | if ac_fn_c_try_link "$LINENO"; then : | |
6bb11ab3 | 11103 | ac_cv_lib_dld_dld_link=yes |
ef016f83 | 11104 | else |
6bb11ab3 | 11105 | ac_cv_lib_dld_dld_link=no |
ef016f83 MF |
11106 | fi |
11107 | rm -f core conftest.err conftest.$ac_objext \ | |
11108 | conftest$ac_exeext conftest.$ac_ext | |
11109 | LIBS=$ac_check_lib_save_LIBS | |
11110 | fi | |
6bb11ab3 L |
11111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11112 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 11113 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
6bb11ab3 L |
11114 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11115 | fi | |
ef016f83 | 11116 | |
ef016f83 MF |
11117 | |
11118 | fi | |
11119 | ||
11120 | ||
6bb11ab3 | 11121 | fi |
ef016f83 | 11122 | |
ef016f83 | 11123 | |
ef016f83 MF |
11124 | fi |
11125 | ||
11126 | ||
6bb11ab3 L |
11127 | fi |
11128 | ||
11129 | ||
11130 | fi | |
11131 | ||
11132 | ;; | |
11133 | esac | |
11134 | ||
11135 | if test "x$lt_cv_dlopen" != xno; then | |
11136 | enable_dlopen=yes | |
11137 | else | |
11138 | enable_dlopen=no | |
11139 | fi | |
11140 | ||
11141 | case $lt_cv_dlopen in | |
11142 | dlopen) | |
11143 | save_CPPFLAGS="$CPPFLAGS" | |
11144 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11145 | ||
11146 | save_LDFLAGS="$LDFLAGS" | |
11147 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11148 | ||
11149 | save_LIBS="$LIBS" | |
11150 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11151 | ||
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11153 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 11154 | if ${lt_cv_dlopen_self+:} false; then : |
ef016f83 MF |
11155 | $as_echo_n "(cached) " >&6 |
11156 | else | |
6bb11ab3 L |
11157 | if test "$cross_compiling" = yes; then : |
11158 | lt_cv_dlopen_self=cross | |
11159 | else | |
11160 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11161 | lt_status=$lt_dlunknown | |
11162 | cat > conftest.$ac_ext <<_LT_EOF | |
ebe9564b | 11163 | #line 11163 "configure" |
6bb11ab3 | 11164 | #include "confdefs.h" |
ef016f83 | 11165 | |
6bb11ab3 L |
11166 | #if HAVE_DLFCN_H |
11167 | #include <dlfcn.h> | |
ef016f83 | 11168 | #endif |
6bb11ab3 L |
11169 | |
11170 | #include <stdio.h> | |
11171 | ||
11172 | #ifdef RTLD_GLOBAL | |
11173 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11174 | #else | |
11175 | # ifdef DL_GLOBAL | |
11176 | # define LT_DLGLOBAL DL_GLOBAL | |
11177 | # else | |
11178 | # define LT_DLGLOBAL 0 | |
11179 | # endif | |
11180 | #endif | |
11181 | ||
11182 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11183 | find out it does not work in some platform. */ | |
11184 | #ifndef LT_DLLAZY_OR_NOW | |
11185 | # ifdef RTLD_LAZY | |
11186 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11187 | # else | |
11188 | # ifdef DL_LAZY | |
11189 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11190 | # else | |
11191 | # ifdef RTLD_NOW | |
11192 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11193 | # else | |
11194 | # ifdef DL_NOW | |
11195 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11196 | # else | |
11197 | # define LT_DLLAZY_OR_NOW 0 | |
11198 | # endif | |
11199 | # endif | |
11200 | # endif | |
11201 | # endif | |
11202 | #endif | |
11203 | ||
11204 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11205 | correspondingly for the symbols needed. */ | |
11206 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11207 | void fnord () __attribute__((visibility("default"))); | |
11208 | #endif | |
11209 | ||
11210 | void fnord () { int i=42; } | |
11211 | int main () | |
ef016f83 | 11212 | { |
6bb11ab3 L |
11213 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11214 | int status = $lt_dlunknown; | |
11215 | ||
11216 | if (self) | |
11217 | { | |
11218 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11219 | else | |
11220 | { | |
11221 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11222 | else puts (dlerror ()); | |
11223 | } | |
11224 | /* dlclose (self); */ | |
11225 | } | |
11226 | else | |
11227 | puts (dlerror ()); | |
11228 | ||
11229 | return status; | |
ef016f83 | 11230 | } |
6bb11ab3 L |
11231 | _LT_EOF |
11232 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11233 | (eval $ac_link) 2>&5 | |
11234 | ac_status=$? | |
11235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11236 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11237 | (./conftest; exit; ) >&5 2>/dev/null | |
11238 | lt_status=$? | |
11239 | case x$lt_status in | |
11240 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11241 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11242 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11243 | esac | |
11244 | else : | |
11245 | # compilation failed | |
11246 | lt_cv_dlopen_self=no | |
11247 | fi | |
11248 | fi | |
11249 | rm -fr conftest* | |
11250 | ||
11251 | ||
11252 | fi | |
11253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11254 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11255 | ||
11256 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11257 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11259 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 11260 | if ${lt_cv_dlopen_self_static+:} false; then : |
6bb11ab3 L |
11261 | $as_echo_n "(cached) " >&6 |
11262 | else | |
11263 | if test "$cross_compiling" = yes; then : | |
11264 | lt_cv_dlopen_self_static=cross | |
11265 | else | |
11266 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11267 | lt_status=$lt_dlunknown | |
11268 | cat > conftest.$ac_ext <<_LT_EOF | |
ebe9564b | 11269 | #line 11269 "configure" |
6bb11ab3 L |
11270 | #include "confdefs.h" |
11271 | ||
11272 | #if HAVE_DLFCN_H | |
11273 | #include <dlfcn.h> | |
11274 | #endif | |
11275 | ||
11276 | #include <stdio.h> | |
11277 | ||
11278 | #ifdef RTLD_GLOBAL | |
11279 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11280 | #else | |
11281 | # ifdef DL_GLOBAL | |
11282 | # define LT_DLGLOBAL DL_GLOBAL | |
11283 | # else | |
11284 | # define LT_DLGLOBAL 0 | |
11285 | # endif | |
11286 | #endif | |
11287 | ||
11288 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11289 | find out it does not work in some platform. */ | |
11290 | #ifndef LT_DLLAZY_OR_NOW | |
11291 | # ifdef RTLD_LAZY | |
11292 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11293 | # else | |
11294 | # ifdef DL_LAZY | |
11295 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11296 | # else | |
11297 | # ifdef RTLD_NOW | |
11298 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11299 | # else | |
11300 | # ifdef DL_NOW | |
11301 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11302 | # else | |
11303 | # define LT_DLLAZY_OR_NOW 0 | |
11304 | # endif | |
11305 | # endif | |
11306 | # endif | |
11307 | # endif | |
11308 | #endif | |
11309 | ||
11310 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11311 | correspondingly for the symbols needed. */ | |
11312 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11313 | void fnord () __attribute__((visibility("default"))); | |
11314 | #endif | |
11315 | ||
11316 | void fnord () { int i=42; } | |
11317 | int main () | |
11318 | { | |
11319 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11320 | int status = $lt_dlunknown; | |
11321 | ||
11322 | if (self) | |
11323 | { | |
11324 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11325 | else | |
11326 | { | |
11327 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11328 | else puts (dlerror ()); | |
11329 | } | |
11330 | /* dlclose (self); */ | |
11331 | } | |
ef016f83 | 11332 | else |
6bb11ab3 L |
11333 | puts (dlerror ()); |
11334 | ||
11335 | return status; | |
11336 | } | |
11337 | _LT_EOF | |
11338 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11339 | (eval $ac_link) 2>&5 | |
11340 | ac_status=$? | |
11341 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11342 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11343 | (./conftest; exit; ) >&5 2>/dev/null | |
11344 | lt_status=$? | |
11345 | case x$lt_status in | |
11346 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11347 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11348 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11349 | esac | |
11350 | else : | |
11351 | # compilation failed | |
11352 | lt_cv_dlopen_self_static=no | |
ef016f83 | 11353 | fi |
ef016f83 | 11354 | fi |
6bb11ab3 L |
11355 | rm -fr conftest* |
11356 | ||
11357 | ||
ef016f83 | 11358 | fi |
6bb11ab3 L |
11359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11360 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11361 | fi | |
11362 | ||
11363 | CPPFLAGS="$save_CPPFLAGS" | |
11364 | LDFLAGS="$save_LDFLAGS" | |
11365 | LIBS="$save_LIBS" | |
11366 | ;; | |
11367 | esac | |
11368 | ||
11369 | case $lt_cv_dlopen_self in | |
11370 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11371 | *) enable_dlopen_self=unknown ;; | |
11372 | esac | |
11373 | ||
11374 | case $lt_cv_dlopen_self_static in | |
11375 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11376 | *) enable_dlopen_self_static=unknown ;; | |
11377 | esac | |
11378 | fi | |
11379 | ||
11380 | ||
ef016f83 | 11381 | |
6bb11ab3 L |
11382 | |
11383 | ||
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | ||
11390 | ||
11391 | ||
11392 | ||
11393 | ||
11394 | ||
11395 | ||
11396 | striplib= | |
11397 | old_striplib= | |
11398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11399 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11400 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11401 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11402 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11404 | $as_echo "yes" >&6; } | |
ef016f83 | 11405 | else |
6bb11ab3 L |
11406 | # FIXME - insert some real tests, host_os isn't really good enough |
11407 | case $host_os in | |
11408 | darwin*) | |
11409 | if test -n "$STRIP" ; then | |
11410 | striplib="$STRIP -x" | |
11411 | old_striplib="$STRIP -S" | |
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11413 | $as_echo "yes" >&6; } | |
11414 | else | |
11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11416 | $as_echo "no" >&6; } | |
11417 | fi | |
11418 | ;; | |
11419 | *) | |
11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11421 | $as_echo "no" >&6; } | |
11422 | ;; | |
11423 | esac | |
ef016f83 | 11424 | fi |
6bb11ab3 L |
11425 | |
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | # Report which library types will actually be built | |
11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11439 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11441 | $as_echo "$can_build_shared" >&6; } | |
11442 | ||
11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11444 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11445 | test "$can_build_shared" = "no" && enable_shared=no | |
11446 | ||
11447 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11448 | # are all built from PIC. | |
11449 | case $host_os in | |
11450 | aix3*) | |
11451 | test "$enable_shared" = yes && enable_static=no | |
11452 | if test -n "$RANLIB"; then | |
11453 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11454 | postinstall_cmds='$RANLIB $lib' | |
11455 | fi | |
11456 | ;; | |
11457 | ||
11458 | aix[4-9]*) | |
11459 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11460 | test "$enable_shared" = yes && enable_static=no | |
11461 | fi | |
11462 | ;; | |
11463 | esac | |
11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11465 | $as_echo "$enable_shared" >&6; } | |
11466 | ||
11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11468 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11469 | # Make sure either enable_shared or enable_static is yes. | |
11470 | test "$enable_shared" = yes || enable_static=yes | |
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11472 | $as_echo "$enable_static" >&6; } | |
11473 | ||
11474 | ||
11475 | ||
11476 | ||
ef016f83 | 11477 | fi |
6bb11ab3 L |
11478 | ac_ext=c |
11479 | ac_cpp='$CPP $CPPFLAGS' | |
11480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11483 | ||
11484 | CC="$lt_save_CC" | |
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
ef016f83 | 11494 | |
ef016f83 | 11495 | |
ef016f83 | 11496 | |
ef016f83 | 11497 | |
6bb11ab3 L |
11498 | ac_config_commands="$ac_config_commands libtool" |
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | # Only expand once: | |
11504 | ||
11505 | ||
ef016f83 MF |
11506 | |
11507 | ||
ef016f83 MF |
11508 | |
11509 | ||
31e6ad7d MF |
11510 | |
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11512 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11513 | # Check whether --enable-maintainer-mode was given. | |
ef016f83 | 11514 | if test "${enable_maintainer_mode+set}" = set; then : |
31e6ad7d MF |
11515 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
11516 | else | |
11517 | USE_MAINTAINER_MODE=no | |
ef016f83 | 11518 | fi |
31e6ad7d MF |
11519 | |
11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
11521 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11522 | if test $USE_MAINTAINER_MODE = yes; then | |
11523 | MAINTAINER_MODE_TRUE= | |
11524 | MAINTAINER_MODE_FALSE='#' | |
ef016f83 | 11525 | else |
31e6ad7d MF |
11526 | MAINTAINER_MODE_TRUE='#' |
11527 | MAINTAINER_MODE_FALSE= | |
ef016f83 MF |
11528 | fi |
11529 | ||
31e6ad7d MF |
11530 | MAINT=$MAINTAINER_MODE_TRUE |
11531 | ||
11532 | ||
ef016f83 MF |
11533 | |
11534 | ||
ce39bd38 MF |
11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5 |
11536 | $as_echo_n "checking for sim debug setting... " >&6; } | |
11537 | sim_debug="0" | |
ef016f83 MF |
11538 | # Check whether --enable-sim-debug was given. |
11539 | if test "${enable_sim_debug+set}" = set; then : | |
11540 | enableval=$enable_sim_debug; case "${enableval}" in | |
ce39bd38 MF |
11541 | yes) sim_debug="7";; |
11542 | no) sim_debug="0";; | |
11543 | *) sim_debug="($enableval)";; | |
ef016f83 | 11544 | esac |
ef016f83 | 11545 | fi |
ce39bd38 MF |
11546 | if test "$sim_debug" != "0"; then |
11547 | ||
11548 | cat >>confdefs.h <<_ACEOF | |
11549 | #define DEBUG $sim_debug | |
11550 | _ACEOF | |
11551 | ||
ef016f83 MF |
11552 | fi |
11553 | ||
ce39bd38 MF |
11554 | cat >>confdefs.h <<_ACEOF |
11555 | #define WITH_DEBUG $sim_debug | |
11556 | _ACEOF | |
11557 | ||
11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5 | |
11559 | $as_echo "$sim_debug" >&6; } | |
ef016f83 MF |
11560 | |
11561 | ||
ce39bd38 MF |
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5 |
11563 | $as_echo_n "checking for sim stdio debug behavior... " >&6; } | |
11564 | sim_stdio="0" | |
ef016f83 MF |
11565 | # Check whether --enable-sim-stdio was given. |
11566 | if test "${enable_sim_stdio+set}" = set; then : | |
11567 | enableval=$enable_sim_stdio; case "${enableval}" in | |
ce39bd38 MF |
11568 | yes) sim_stdio="DO_USE_STDIO";; |
11569 | no) sim_stdio="DONT_USE_STDIO";; | |
d0ac1c44 | 11570 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;; |
ef016f83 | 11571 | esac |
ef016f83 MF |
11572 | fi |
11573 | ||
ce39bd38 MF |
11574 | cat >>confdefs.h <<_ACEOF |
11575 | #define WITH_STDIO $sim_stdio | |
11576 | _ACEOF | |
11577 | ||
11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5 | |
11579 | $as_echo "$sim_stdio" >&6; } | |
ef016f83 MF |
11580 | |
11581 | ||
ce39bd38 MF |
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5 |
11583 | $as_echo_n "checking for sim trace settings... " >&6; } | |
11584 | sim_trace="~TRACE_debug" | |
ef016f83 MF |
11585 | # Check whether --enable-sim-trace was given. |
11586 | if test "${enable_sim_trace+set}" = set; then : | |
11587 | enableval=$enable_sim_trace; case "${enableval}" in | |
ce39bd38 MF |
11588 | yes) sim_trace="-1";; |
11589 | no) sim_trace="0";; | |
ef016f83 | 11590 | [-0-9]*) |
ce39bd38 | 11591 | sim_trace="'(${enableval})'";; |
2232061b | 11592 | [[:lower:]]*) |
ef016f83 MF |
11593 | sim_trace="" |
11594 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
11595 | if test x"$sim_trace" = x; then | |
ce39bd38 | 11596 | sim_trace="(TRACE_$x" |
ef016f83 MF |
11597 | else |
11598 | sim_trace="${sim_trace}|TRACE_$x" | |
11599 | fi | |
11600 | done | |
ce39bd38 | 11601 | sim_trace="$sim_trace)" ;; |
ef016f83 | 11602 | esac |
ef016f83 MF |
11603 | fi |
11604 | ||
ce39bd38 MF |
11605 | cat >>confdefs.h <<_ACEOF |
11606 | #define WITH_TRACE $sim_trace | |
11607 | _ACEOF | |
11608 | ||
11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5 | |
11610 | $as_echo "$sim_trace" >&6; } | |
ef016f83 MF |
11611 | |
11612 | ||
ce39bd38 MF |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5 |
11614 | $as_echo_n "checking for sim profile settings... " >&6; } | |
11615 | profile="1" | |
11616 | sim_profile="-1" | |
ef016f83 MF |
11617 | # Check whether --enable-sim-profile was given. |
11618 | if test "${enable_sim_profile+set}" = set; then : | |
11619 | enableval=$enable_sim_profile; case "${enableval}" in | |
ce39bd38 MF |
11620 | yes) profile="1" sim_profile="-1";; |
11621 | no) profile="0" sim_profile="0";; | |
ef016f83 | 11622 | [-0-9]*) |
ce39bd38 | 11623 | profile="(${enableval})" sim_profile="(${enableval})";; |
ef016f83 | 11624 | [a-z]*) |
ce39bd38 | 11625 | profile="1" |
ef016f83 MF |
11626 | sim_profile="" |
11627 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
11628 | if test x"$sim_profile" = x; then | |
ce39bd38 | 11629 | sim_profile="(PROFILE_$x" |
ef016f83 MF |
11630 | else |
11631 | sim_profile="${sim_profile}|PROFILE_$x" | |
11632 | fi | |
11633 | done | |
ce39bd38 | 11634 | sim_profile="$sim_profile)" ;; |
ef016f83 | 11635 | esac |
ef016f83 MF |
11636 | fi |
11637 | ||
ce39bd38 MF |
11638 | cat >>confdefs.h <<_ACEOF |
11639 | #define PROFILE $profile | |
11640 | _ACEOF | |
ef016f83 MF |
11641 | |
11642 | ||
ce39bd38 MF |
11643 | cat >>confdefs.h <<_ACEOF |
11644 | #define WITH_PROFILE $sim_profile | |
11645 | _ACEOF | |
11646 | ||
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5 | |
11648 | $as_echo "$sim_profile" >&6; } | |
11649 | ||
11650 | ||
11651 | ||
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 | |
11653 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
11654 | sim_assert="1" | |
35656e95 MF |
11655 | # Check whether --enable-sim-assert was given. |
11656 | if test "${enable_sim_assert+set}" = set; then : | |
11657 | enableval=$enable_sim_assert; case "${enableval}" in | |
ce39bd38 MF |
11658 | yes) sim_assert="1";; |
11659 | no) sim_assert="0";; | |
d0ac1c44 | 11660 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; |
35656e95 | 11661 | esac |
35656e95 MF |
11662 | fi |
11663 | ||
ce39bd38 MF |
11664 | cat >>confdefs.h <<_ACEOF |
11665 | #define WITH_ASSERT $sim_assert | |
11666 | _ACEOF | |
11667 | ||
11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
11669 | $as_echo "$sim_assert" >&6; } | |
11670 | ||
35656e95 | 11671 | |
ce39bd38 MF |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 |
11673 | $as_echo_n "checking default sim environment setting... " >&6; } | |
11674 | sim_environment="ALL_ENVIRONMENT" | |
16f7876d MF |
11675 | # Check whether --enable-sim-environment was given. |
11676 | if test "${enable_sim_environment+set}" = set; then : | |
11677 | enableval=$enable_sim_environment; case "${enableval}" in | |
ce39bd38 MF |
11678 | all | ALL) sim_environment="ALL_ENVIRONMENT";; |
11679 | user | USER) sim_environment="USER_ENVIRONMENT";; | |
11680 | virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";; | |
11681 | operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";; | |
d0ac1c44 | 11682 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;; |
16f7876d | 11683 | esac |
16f7876d MF |
11684 | fi |
11685 | ||
ce39bd38 MF |
11686 | cat >>confdefs.h <<_ACEOF |
11687 | #define WITH_ENVIRONMENT $sim_environment | |
11688 | _ACEOF | |
11689 | ||
11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5 | |
11691 | $as_echo "$sim_environment" >&6; } | |
11692 | ||
16f7876d | 11693 | |
347fe5bb MF |
11694 | sim_inline="-DDEFAULT_INLINE=0" |
11695 | # Check whether --enable-sim-inline was given. | |
11696 | if test "${enable_sim_inline+set}" = set; then : | |
11697 | enableval=$enable_sim_inline; sim_inline="" | |
11698 | case "$enableval" in | |
11699 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
11700 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
11701 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
11702 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
11703 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
11704 | new_flag="" | |
11705 | case "$x" in | |
11706 | *_INLINE=*) new_flag="-D$x";; | |
11707 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
11708 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
11709 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
11710 | esac | |
11711 | if test x"$sim_inline" = x""; then | |
11712 | sim_inline="$new_flag" | |
11713 | else | |
11714 | sim_inline="$sim_inline $new_flag" | |
11715 | fi | |
11716 | done;; | |
11717 | esac | |
11718 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
11719 | echo "Setting inline flags = $sim_inline" 6>&1 | |
11720 | fi | |
11721 | fi | |
11722 | ||
11723 | ||
11724 | ||
ef016f83 MF |
11725 | |
11726 | # Check whether --with-pkgversion was given. | |
11727 | if test "${with_pkgversion+set}" = set; then : | |
11728 | withval=$with_pkgversion; case "$withval" in | |
d0ac1c44 | 11729 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; |
ef016f83 MF |
11730 | no) PKGVERSION= ;; |
11731 | *) PKGVERSION="($withval) " ;; | |
11732 | esac | |
11733 | else | |
bf12d44e | 11734 | PKGVERSION="(SIM) " |
ef016f83 MF |
11735 | |
11736 | fi | |
11737 | ||
11738 | ||
11739 | ||
11740 | ||
11741 | ||
11742 | # Check whether --with-bugurl was given. | |
11743 | if test "${with_bugurl+set}" = set; then : | |
11744 | withval=$with_bugurl; case "$withval" in | |
d0ac1c44 | 11745 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; |
ef016f83 MF |
11746 | no) BUGURL= |
11747 | ;; | |
11748 | *) BUGURL="$withval" | |
11749 | ;; | |
11750 | esac | |
11751 | else | |
dfb856ba | 11752 | BUGURL="https://www.gnu.org/software/gdb/bugs/" |
ef016f83 MF |
11753 | |
11754 | fi | |
11755 | ||
11756 | case ${BUGURL} in | |
11757 | "") | |
11758 | REPORT_BUGS_TO= | |
11759 | REPORT_BUGS_TEXI= | |
11760 | ;; | |
11761 | *) | |
11762 | REPORT_BUGS_TO="<$BUGURL>" | |
11763 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
11764 | ;; | |
11765 | esac; | |
11766 | ||
11767 | ||
11768 | ||
11769 | ||
11770 | cat >>confdefs.h <<_ACEOF | |
11771 | #define PKGVERSION "$PKGVERSION" | |
11772 | _ACEOF | |
11773 | ||
11774 | ||
11775 | cat >>confdefs.h <<_ACEOF | |
11776 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
11777 | _ACEOF | |
11778 | ||
11779 | ||
11780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
11781 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
d0ac1c44 | 11782 | if ${ac_cv_type_signal+:} false; then : |
ef016f83 MF |
11783 | $as_echo_n "(cached) " >&6 |
11784 | else | |
11785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11786 | /* end confdefs.h. */ | |
11787 | #include <sys/types.h> | |
11788 | #include <signal.h> | |
11789 | ||
11790 | int | |
11791 | main () | |
11792 | { | |
11793 | return *(signal (0, 0)) (0) == 1; | |
11794 | ; | |
11795 | return 0; | |
11796 | } | |
11797 | _ACEOF | |
11798 | if ac_fn_c_try_compile "$LINENO"; then : | |
11799 | ac_cv_type_signal=int | |
11800 | else | |
11801 | ac_cv_type_signal=void | |
11802 | fi | |
11803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11804 | fi | |
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
11806 | $as_echo "$ac_cv_type_signal" >&6; } | |
11807 | ||
11808 | cat >>confdefs.h <<_ACEOF | |
11809 | #define RETSIGTYPE $ac_cv_type_signal | |
11810 | _ACEOF | |
11811 | ||
11812 | ||
11813 | ||
11814 | ||
11815 | ||
ef016f83 MF |
11816 | |
11817 | ||
1ac72f06 | 11818 | wire_endian="LITTLE" |
ef016f83 MF |
11819 | default_endian="" |
11820 | # Check whether --enable-sim-endian was given. | |
11821 | if test "${enable_sim_endian+set}" = set; then : | |
11822 | enableval=$enable_sim_endian; case "${enableval}" in | |
1ac72f06 MF |
11823 | b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";; |
11824 | l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";; | |
ef016f83 | 11825 | yes) if test x"$wire_endian" != x; then |
1ac72f06 | 11826 | sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}" |
ef016f83 | 11827 | else |
1ac72f06 MF |
11828 | if test x"$default_endian" != x; then |
11829 | sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}" | |
ef016f83 MF |
11830 | else |
11831 | echo "No hard-wired endian for target $target" 1>&6 | |
1ac72f06 | 11832 | sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN" |
ef016f83 MF |
11833 | fi |
11834 | fi;; | |
11835 | no) if test x"$default_endian" != x; then | |
1ac72f06 | 11836 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}" |
ef016f83 MF |
11837 | else |
11838 | if test x"$wire_endian" != x; then | |
1ac72f06 | 11839 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}" |
ef016f83 MF |
11840 | else |
11841 | echo "No default endian for target $target" 1>&6 | |
1ac72f06 | 11842 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN" |
ef016f83 MF |
11843 | fi |
11844 | fi;; | |
d0ac1c44 | 11845 | *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";; |
ef016f83 MF |
11846 | esac |
11847 | if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then | |
11848 | echo "Setting endian flags = $sim_endian" 6>&1 | |
11849 | fi | |
11850 | else | |
11851 | if test x"$default_endian" != x; then | |
1ac72f06 | 11852 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}" |
ef016f83 MF |
11853 | else |
11854 | if test x"$wire_endian" != x; then | |
1ac72f06 | 11855 | sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}" |
ef016f83 MF |
11856 | else |
11857 | sim_endian= | |
11858 | fi | |
11859 | fi | |
11860 | fi | |
11861 | ||
11862 | wire_alignment="STRICT_ALIGNMENT" | |
11863 | default_alignment="STRICT_ALIGNMENT" | |
11864 | ||
11865 | # Check whether --enable-sim-alignment was given. | |
11866 | if test "${enable_sim_alignment+set}" = set; then : | |
11867 | enableval=$enable_sim_alignment; case "${enableval}" in | |
11868 | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";; | |
11869 | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; | |
11870 | forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";; | |
11871 | yes) if test x"$wire_alignment" != x; then | |
11872 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
11873 | else | |
11874 | if test x"$default_alignment" != x; then | |
11875 | sim_alignment="-DWITH_ALIGNMENT=${default_alignment}" | |
11876 | else | |
11877 | echo "No hard-wired alignment for target $target" 1>&6 | |
11878 | sim_alignment="-DWITH_ALIGNMENT=0" | |
11879 | fi | |
11880 | fi;; | |
11881 | no) if test x"$default_alignment" != x; then | |
11882 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
11883 | else | |
11884 | if test x"$wire_alignment" != x; then | |
11885 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}" | |
11886 | else | |
11887 | echo "No default alignment for target $target" 1>&6 | |
11888 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0" | |
11889 | fi | |
11890 | fi;; | |
d0ac1c44 | 11891 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";; |
ef016f83 MF |
11892 | esac |
11893 | if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then | |
11894 | echo "Setting alignment flags = $sim_alignment" 6>&1 | |
11895 | fi | |
11896 | else | |
11897 | if test x"$default_alignment" != x; then | |
11898 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
11899 | else | |
11900 | if test x"$wire_alignment" != x; then | |
11901 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
11902 | else | |
11903 | sim_alignment= | |
11904 | fi | |
11905 | fi | |
11906 | fi | |
11907 | ||
11908 | ||
ef016f83 MF |
11909 | default_sim_default_model="bf537" |
11910 | # Check whether --enable-sim-default-model was given. | |
11911 | if test "${enable_sim_default_model+set}" = set; then : | |
11912 | enableval=$enable_sim_default_model; case "${enableval}" in | |
d0ac1c44 | 11913 | yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;; |
ef016f83 MF |
11914 | *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";; |
11915 | esac | |
11916 | if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then | |
11917 | echo "Setting default model = $sim_default_model" 6>&1 | |
11918 | fi | |
11919 | else | |
11920 | sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'" | |
11921 | fi | |
11922 | ||
11923 | ||
11924 | ||
2232061b MF |
11925 | # Check whether --enable-werror was given. |
11926 | if test "${enable_werror+set}" = set; then : | |
11927 | enableval=$enable_werror; case "${enableval}" in | |
11928 | yes | y) ERROR_ON_WARNING="yes" ;; | |
11929 | no | n) ERROR_ON_WARNING="no" ;; | |
d0ac1c44 | 11930 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
2232061b MF |
11931 | esac |
11932 | fi | |
11933 | ||
11934 | ||
11935 | # Enable -Werror by default when using gcc | |
11936 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11937 | ERROR_ON_WARNING=yes | |
ef016f83 | 11938 | fi |
2232061b MF |
11939 | |
11940 | WERROR_CFLAGS="" | |
bf470982 MF |
11941 | if test "${ERROR_ON_WARNING}" = yes ; then |
11942 | WERROR_CFLAGS="-Werror" | |
11943 | fi | |
2232061b | 11944 | |
2232061b | 11945 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
1a8a700e | 11946 | -Wpointer-sign \ |
2232061b | 11947 | -Wno-unused -Wunused-value -Wunused-function \ |
1a8a700e MF |
11948 | -Wno-switch -Wno-char-subscripts -Wmissing-prototypes |
11949 | -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \ | |
11950 | -Wold-style-declaration -Wold-style-definition" | |
2232061b MF |
11951 | |
11952 | # Enable -Wno-format by default when using gcc on mingw since many | |
11953 | # GCC versions complain about %I64. | |
11954 | case "${host}" in | |
11955 | *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | |
d3685d60 | 11956 | *) build_warnings="$build_warnings -Wformat-nonliteral" ;; |
2232061b MF |
11957 | esac |
11958 | ||
ef016f83 MF |
11959 | # Check whether --enable-build-warnings was given. |
11960 | if test "${enable_build_warnings+set}" = set; then : | |
11961 | enableval=$enable_build_warnings; case "${enableval}" in | |
11962 | yes) ;; | |
11963 | no) build_warnings="-w";; | |
11964 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11965 | build_warnings="${build_warnings} ${t}";; | |
11966 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11967 | build_warnings="${t} ${build_warnings}";; | |
11968 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
11969 | esac | |
11970 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
11971 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
11972 | fi | |
11973 | fi | |
11974 | # Check whether --enable-sim-build-warnings was given. | |
11975 | if test "${enable_sim_build_warnings+set}" = set; then : | |
11976 | enableval=$enable_sim_build_warnings; case "${enableval}" in | |
11977 | yes) ;; | |
11978 | no) build_warnings="-w";; | |
11979 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11980 | build_warnings="${build_warnings} ${t}";; | |
11981 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11982 | build_warnings="${t} ${build_warnings}";; | |
11983 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
11984 | esac | |
11985 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
11986 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
11987 | fi | |
11988 | fi | |
11989 | WARN_CFLAGS="" | |
ef016f83 MF |
11990 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
11991 | then | |
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
11993 | $as_echo_n "checking compiler warning flags... " >&6; } | |
11994 | # Separate out the -Werror flag as some files just cannot be | |
11995 | # compiled with it enabled. | |
11996 | for w in ${build_warnings}; do | |
11997 | case $w in | |
11998 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
11999 | *) # Check that GCC accepts it | |
12000 | saved_CFLAGS="$CFLAGS" | |
12001 | CFLAGS="$CFLAGS $w" | |
12002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12003 | /* end confdefs.h. */ | |
12004 | ||
12005 | int | |
12006 | main () | |
12007 | { | |
12008 | ||
12009 | ; | |
12010 | return 0; | |
12011 | } | |
12012 | _ACEOF | |
12013 | if ac_fn_c_try_compile "$LINENO"; then : | |
12014 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
12015 | fi | |
12016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12017 | CFLAGS="$saved_CFLAGS" | |
12018 | esac | |
12019 | done | |
2232061b MF |
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
12021 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
ef016f83 MF |
12022 | fi |
12023 | ||
12024 | ||
ef016f83 MF |
12025 | if test ""; then |
12026 | hardware="" | |
12027 | else | |
6294f8ea | 12028 | hardware="cfi core pal glue" |
ef016f83 MF |
12029 | fi |
12030 | hardware="$hardware \ | |
12031 | bfin_cec \ | |
12032 | bfin_ctimer \ | |
12033 | bfin_dma \ | |
12034 | bfin_dmac \ | |
12035 | bfin_ebiu_amc \ | |
12036 | bfin_ebiu_ddrc \ | |
12037 | bfin_ebiu_sdc \ | |
12038 | bfin_emac \ | |
12039 | bfin_eppi \ | |
12040 | bfin_evt \ | |
b5215db0 | 12041 | bfin_gpio \ |
07c5891d | 12042 | bfin_gpio2 \ |
ef016f83 MF |
12043 | bfin_gptimer \ |
12044 | bfin_jtag \ | |
12045 | bfin_mmu \ | |
12046 | bfin_nfc \ | |
12047 | bfin_otp \ | |
c43aadca | 12048 | bfin_pfmon \ |
050396e5 | 12049 | bfin_pint \ |
ef016f83 MF |
12050 | bfin_pll \ |
12051 | bfin_ppi \ | |
12052 | bfin_rtc \ | |
12053 | bfin_sic \ | |
12054 | bfin_spi \ | |
12055 | bfin_trace \ | |
12056 | bfin_twi \ | |
12057 | bfin_uart \ | |
12058 | bfin_uart2 \ | |
12059 | bfin_wdog \ | |
12060 | bfin_wp \ | |
12061 | eth_phy \ | |
12062 | " | |
1517bd27 | 12063 | |
ef016f83 MF |
12064 | sim_hw_cflags="-DWITH_HW=1" |
12065 | sim_hw="$hardware" | |
12066 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`" | |
1517bd27 | 12067 | |
ef016f83 MF |
12068 | # Check whether --enable-sim-hardware was given. |
12069 | if test "${enable_sim_hardware+set}" = set; then : | |
12070 | enableval=$enable_sim_hardware; | |
30452bbe MF |
12071 | else |
12072 | enable_sim_hardware="yes" | |
1517bd27 MF |
12073 | fi |
12074 | ||
12075 | case ${enable_sim_hardware} in | |
64dd13df MF |
12076 | yes|no) ;; |
12077 | ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";; | |
12078 | *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";; | |
12079 | *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';; | |
ef016f83 | 12080 | esac |
1517bd27 | 12081 | |
64dd13df | 12082 | if test "$enable_sim_hardware" = no; then |
ef016f83 MF |
12083 | sim_hw_objs= |
12084 | sim_hw_cflags="-DWITH_HW=0" | |
12085 | sim_hw= | |
12086 | else | |
12087 | sim_hw_cflags="-DWITH_HW=1" | |
12088 | # remove duplicates | |
12089 | sim_hw="" | |
12090 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS)" | |
12091 | for i in $hardware ; do | |
12092 | case " $sim_hw " in | |
12093 | *" $i "*) ;; | |
12094 | *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";; | |
12095 | esac | |
12096 | done | |
256139f5 | 12097 | # mingw does not support sockser |
256139f5 JS |
12098 | case ${host} in |
12099 | *mingw*) ;; | |
49cd1634 MF |
12100 | *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device |
12101 | # that you instatiate. Instead, other code will call into it directly. | |
12102 | # At some point, we should convert it over. | |
12103 | sim_hw_objs="$sim_hw_objs dv-sockser.o" | |
256139f5 JS |
12104 | |
12105 | cat >>confdefs.h <<_ACEOF | |
12106 | #define HAVE_DV_SOCKSER 1 | |
12107 | _ACEOF | |
12108 | ||
12109 | ;; | |
12110 | esac | |
1517bd27 MF |
12111 | if test x"$silent" != x"yes"; then |
12112 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
256139f5 | 12113 | fi |
1517bd27 MF |
12114 | case " $hardware " in |
12115 | *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5 | |
4399a56b | 12116 | $as_echo_n "checking for log2 in -lm... " >&6; } |
d0ac1c44 | 12117 | if ${ac_cv_lib_m_log2+:} false; then : |
4399a56b MF |
12118 | $as_echo_n "(cached) " >&6 |
12119 | else | |
12120 | ac_check_lib_save_LIBS=$LIBS | |
12121 | LIBS="-lm $LIBS" | |
12122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12123 | /* end confdefs.h. */ | |
12124 | ||
12125 | /* Override any GCC internal prototype to avoid an error. | |
12126 | Use char because int might match the return type of a GCC | |
12127 | builtin and then its argument prototype would still apply. */ | |
12128 | #ifdef __cplusplus | |
12129 | extern "C" | |
12130 | #endif | |
12131 | char log2 (); | |
12132 | int | |
12133 | main () | |
12134 | { | |
12135 | return log2 (); | |
12136 | ; | |
12137 | return 0; | |
12138 | } | |
12139 | _ACEOF | |
12140 | if ac_fn_c_try_link "$LINENO"; then : | |
12141 | ac_cv_lib_m_log2=yes | |
12142 | else | |
12143 | ac_cv_lib_m_log2=no | |
12144 | fi | |
12145 | rm -f core conftest.err conftest.$ac_objext \ | |
12146 | conftest$ac_exeext conftest.$ac_ext | |
12147 | LIBS=$ac_check_lib_save_LIBS | |
12148 | fi | |
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5 | |
12150 | $as_echo "$ac_cv_lib_m_log2" >&6; } | |
d0ac1c44 | 12151 | if test "x$ac_cv_lib_m_log2" = xyes; then : |
4399a56b MF |
12152 | cat >>confdefs.h <<_ACEOF |
12153 | #define HAVE_LIBM 1 | |
12154 | _ACEOF | |
12155 | ||
12156 | LIBS="-lm $LIBS" | |
12157 | ||
12158 | fi | |
12159 | ;; | |
1517bd27 MF |
12160 | esac |
12161 | fi | |
4399a56b | 12162 | |
ef016f83 | 12163 | |
9e6584c9 | 12164 | for ac_func in getuid getgid geteuid getegid setuid setgid mmap munmap kill pread |
ef016f83 MF |
12165 | do : |
12166 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12167 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 12168 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
ef016f83 MF |
12169 | cat >>confdefs.h <<_ACEOF |
12170 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12171 | _ACEOF | |
12172 | ||
12173 | fi | |
12174 | done | |
12175 | ||
84de2f06 MF |
12176 | for ac_header in \ |
12177 | linux/if_tun.h \ | |
12178 | linux/mii.h \ | |
12179 | linux/types.h \ | |
12180 | net/if.h \ | |
12181 | sys/ioctl.h \ | |
12182 | sys/mman.h \ | |
12183 | ||
ef016f83 MF |
12184 | do : |
12185 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12186 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 12187 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
ef016f83 MF |
12188 | cat >>confdefs.h <<_ACEOF |
12189 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12190 | _ACEOF | |
12191 | ||
12192 | fi | |
12193 | ||
12194 | done | |
12195 | ||
12196 | ||
5798d69f SM |
12197 | |
12198 | ||
12199 | ||
12200 | ||
12201 | ||
12202 | ||
12203 | ||
12204 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
12205 | if test -n "$ac_tool_prefix"; then | |
12206 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
12207 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12209 | $as_echo_n "checking for $ac_word... " >&6; } | |
12210 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
12211 | $as_echo_n "(cached) " >&6 | |
12212 | else | |
12213 | case $PKG_CONFIG in | |
12214 | [\\/]* | ?:[\\/]*) | |
12215 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
12216 | ;; | |
12217 | *) | |
12218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12219 | for as_dir in $PATH | |
12220 | do | |
12221 | IFS=$as_save_IFS | |
12222 | test -z "$as_dir" && as_dir=. | |
12223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12225 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12227 | break 2 | |
12228 | fi | |
12229 | done | |
12230 | done | |
12231 | IFS=$as_save_IFS | |
12232 | ||
12233 | ;; | |
12234 | esac | |
12235 | fi | |
12236 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12237 | if test -n "$PKG_CONFIG"; then | |
12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
12239 | $as_echo "$PKG_CONFIG" >&6; } | |
12240 | else | |
12241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12242 | $as_echo "no" >&6; } | |
12243 | fi | |
12244 | ||
12245 | ||
12246 | fi | |
12247 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
12248 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
12249 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12250 | set dummy pkg-config; ac_word=$2 | |
12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12252 | $as_echo_n "checking for $ac_word... " >&6; } | |
12253 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
12254 | $as_echo_n "(cached) " >&6 | |
12255 | else | |
12256 | case $ac_pt_PKG_CONFIG in | |
12257 | [\\/]* | ?:[\\/]*) | |
12258 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
12259 | ;; | |
12260 | *) | |
12261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12262 | for as_dir in $PATH | |
12263 | do | |
12264 | IFS=$as_save_IFS | |
12265 | test -z "$as_dir" && as_dir=. | |
12266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12268 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12270 | break 2 | |
12271 | fi | |
12272 | done | |
12273 | done | |
12274 | IFS=$as_save_IFS | |
12275 | ||
12276 | ;; | |
12277 | esac | |
12278 | fi | |
12279 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
12280 | if test -n "$ac_pt_PKG_CONFIG"; then | |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
12282 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
12283 | else | |
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12285 | $as_echo "no" >&6; } | |
12286 | fi | |
12287 | ||
12288 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
12289 | PKG_CONFIG="" | |
12290 | else | |
12291 | case $cross_compiling:$ac_tool_warned in | |
12292 | yes:) | |
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12294 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12295 | ac_tool_warned=yes ;; | |
12296 | esac | |
12297 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
12298 | fi | |
12299 | else | |
12300 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
12301 | fi | |
12302 | ||
12303 | fi | |
12304 | if test -n "$PKG_CONFIG"; then | |
12305 | _pkg_min_version=0.9.0 | |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
12307 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
12308 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
12309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12310 | $as_echo "yes" >&6; } | |
12311 | else | |
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12313 | $as_echo "no" >&6; } | |
12314 | PKG_CONFIG="" | |
12315 | fi | |
12316 | fi | |
12317 | ||
12318 | pkg_failed=no | |
12319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
12320 | $as_echo_n "checking for sdl... " >&6; } | |
12321 | ||
12322 | if test -n "$SDL_CFLAGS"; then | |
12323 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
12324 | elif test -n "$PKG_CONFIG"; then | |
12325 | if test -n "$PKG_CONFIG" && \ | |
12326 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
12327 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
12328 | ac_status=$? | |
12329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12330 | test $ac_status = 0; }; then | |
12331 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
12332 | test "x$?" != "x0" && pkg_failed=yes | |
12333 | else | |
12334 | pkg_failed=yes | |
12335 | fi | |
12336 | else | |
12337 | pkg_failed=untried | |
12338 | fi | |
12339 | if test -n "$SDL_LIBS"; then | |
12340 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
12341 | elif test -n "$PKG_CONFIG"; then | |
12342 | if test -n "$PKG_CONFIG" && \ | |
12343 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
12344 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
12345 | ac_status=$? | |
12346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12347 | test $ac_status = 0; }; then | |
12348 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
12349 | test "x$?" != "x0" && pkg_failed=yes | |
12350 | else | |
12351 | pkg_failed=yes | |
12352 | fi | |
12353 | else | |
12354 | pkg_failed=untried | |
12355 | fi | |
12356 | ||
12357 | if test $pkg_failed = no; then | |
12358 | pkg_save_LDFLAGS="$LDFLAGS" | |
12359 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
12360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12361 | /* end confdefs.h. */ | |
12362 | ||
12363 | int | |
12364 | main () | |
12365 | { | |
12366 | ||
12367 | ; | |
12368 | return 0; | |
12369 | } | |
12370 | _ACEOF | |
12371 | if ac_fn_c_try_link "$LINENO"; then : | |
12372 | ||
12373 | else | |
12374 | pkg_failed=yes | |
12375 | fi | |
12376 | rm -f core conftest.err conftest.$ac_objext \ | |
12377 | conftest$ac_exeext conftest.$ac_ext | |
12378 | LDFLAGS=$pkg_save_LDFLAGS | |
12379 | fi | |
12380 | ||
12381 | ||
12382 | ||
12383 | if test $pkg_failed = yes; then | |
12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12385 | $as_echo "no" >&6; } | |
12386 | ||
12387 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12388 | _pkg_short_errors_supported=yes | |
12389 | else | |
12390 | _pkg_short_errors_supported=no | |
12391 | fi | |
12392 | if test $_pkg_short_errors_supported = yes; then | |
12393 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
12394 | else | |
12395 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
12396 | fi | |
12397 | # Put the nasty error message in config.log where it belongs | |
12398 | echo "$SDL_PKG_ERRORS" >&5 | |
12399 | ||
12400 | : | |
12401 | elif test $pkg_failed = untried; then | |
12402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12403 | $as_echo "no" >&6; } | |
12404 | : | |
12405 | else | |
12406 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
12407 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12409 | $as_echo "yes" >&6; } | |
12410 | ||
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12412 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12413 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12414 | $as_echo_n "(cached) " >&6 | |
12415 | else | |
12416 | ac_check_lib_save_LIBS=$LIBS | |
12417 | LIBS="-ldl $LIBS" | |
12418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12419 | /* end confdefs.h. */ | |
12420 | ||
12421 | /* Override any GCC internal prototype to avoid an error. | |
12422 | Use char because int might match the return type of a GCC | |
12423 | builtin and then its argument prototype would still apply. */ | |
12424 | #ifdef __cplusplus | |
12425 | extern "C" | |
12426 | #endif | |
12427 | char dlopen (); | |
12428 | int | |
12429 | main () | |
12430 | { | |
12431 | return dlopen (); | |
12432 | ; | |
12433 | return 0; | |
12434 | } | |
12435 | _ACEOF | |
12436 | if ac_fn_c_try_link "$LINENO"; then : | |
12437 | ac_cv_lib_dl_dlopen=yes | |
12438 | else | |
12439 | ac_cv_lib_dl_dlopen=no | |
12440 | fi | |
12441 | rm -f core conftest.err conftest.$ac_objext \ | |
12442 | conftest$ac_exeext conftest.$ac_ext | |
12443 | LIBS=$ac_check_lib_save_LIBS | |
12444 | fi | |
12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12446 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12447 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12448 | ||
ef016f83 MF |
12449 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL" |
12450 | SDL_LIBS="-ldl" | |
5798d69f SM |
12451 | |
12452 | else | |
12453 | SDL_CFLAGS= SDL_LIBS= | |
12454 | fi | |
12455 | ||
12456 | ||
12457 | fi | |
ef016f83 MF |
12458 | |
12459 | ||
12460 | ||
12461 | ||
ef016f83 MF |
12462 | cgen_breaks="" |
12463 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
12464 | cgen_breaks="break cgen_rtx_error"; | |
12465 | fi | |
12466 | ||
12467 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in" | |
12468 | ||
12469 | ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" | |
12470 | ||
12471 | ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" | |
12472 | ||
12473 | ac_config_commands="$ac_config_commands Makefile" | |
12474 | ||
12475 | ac_config_commands="$ac_config_commands stamp-h" | |
12476 | ||
760b3e8b MF |
12477 | |
12478 | ||
12479 | ||
12480 | ||
12481 | ||
12482 | ||
12483 | ||
12484 | ||
12485 | ||
12486 | ||
12487 | ||
12488 | ||
ef016f83 MF |
12489 | cat >confcache <<\_ACEOF |
12490 | # This file is a shell script that caches the results of configure | |
12491 | # tests run on this system so they can be shared between configure | |
12492 | # scripts and configure runs, see configure's option --config-cache. | |
12493 | # It is not useful on other systems. If it contains results you don't | |
12494 | # want to keep, you may remove or edit it. | |
12495 | # | |
12496 | # config.status only pays attention to the cache file if you give it | |
12497 | # the --recheck option to rerun configure. | |
12498 | # | |
12499 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12500 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12501 | # following values. | |
12502 | ||
12503 | _ACEOF | |
12504 | ||
12505 | # The following way of writing the cache mishandles newlines in values, | |
12506 | # but we know of no workaround that is simple, portable, and efficient. | |
12507 | # So, we kill variables containing newlines. | |
12508 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12509 | # and sets the high bit in the cache file unless we assign to the vars. | |
12510 | ( | |
12511 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12512 | eval ac_val=\$$ac_var | |
12513 | case $ac_val in #( | |
12514 | *${as_nl}*) | |
12515 | case $ac_var in #( | |
12516 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
12517 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
12518 | esac | |
12519 | case $ac_var in #( | |
12520 | _ | IFS | as_nl) ;; #( | |
12521 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
12522 | *) { eval $ac_var=; unset $ac_var;} ;; | |
12523 | esac ;; | |
12524 | esac | |
12525 | done | |
12526 | ||
12527 | (set) 2>&1 | | |
12528 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12529 | *${as_nl}ac_space=\ *) | |
12530 | # `set' does not quote correctly, so add quotes: double-quote | |
12531 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
12532 | sed -n \ | |
12533 | "s/'/'\\\\''/g; | |
12534 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12535 | ;; #( | |
12536 | *) | |
12537 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12538 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12539 | ;; | |
12540 | esac | | |
12541 | sort | |
12542 | ) | | |
12543 | sed ' | |
12544 | /^ac_cv_env_/b end | |
12545 | t clear | |
12546 | :clear | |
12547 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12548 | t end | |
12549 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12550 | :end' >>confcache | |
12551 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12552 | if test -w "$cache_file"; then | |
d0ac1c44 | 12553 | if test "x$cache_file" != "x/dev/null"; then |
ef016f83 MF |
12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
12555 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
12556 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12557 | cat confcache >"$cache_file" | |
12558 | else | |
12559 | case $cache_file in #( | |
12560 | */* | ?:*) | |
12561 | mv -f confcache "$cache_file"$$ && | |
12562 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12563 | *) | |
12564 | mv -f confcache "$cache_file" ;; | |
12565 | esac | |
12566 | fi | |
12567 | fi | |
ef016f83 MF |
12568 | else |
12569 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
12570 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
12571 | fi | |
12572 | fi | |
12573 | rm -f confcache | |
12574 | ||
12575 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12576 | # Let make expand exec_prefix. | |
12577 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12578 | ||
12579 | DEFS=-DHAVE_CONFIG_H | |
12580 | ||
12581 | ac_libobjs= | |
12582 | ac_ltlibobjs= | |
d0ac1c44 | 12583 | U= |
ef016f83 MF |
12584 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12585 | # 1. Remove the extension, and $U if already installed. | |
12586 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12587 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12588 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12589 | # will be set to the directory where LIBOBJS objects are built. | |
12590 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12591 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
12592 | done | |
12593 | LIBOBJS=$ac_libobjs | |
12594 | ||
12595 | LTLIBOBJS=$ac_ltlibobjs | |
12596 | ||
12597 | ||
0cb8d851 | 12598 | |
db2e4d67 | 12599 | if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then |
d0ac1c44 | 12600 | as_fn_error $? "conditional \"GMAKE\" was never defined. |
db2e4d67 MF |
12601 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12602 | fi | |
6bb11ab3 | 12603 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
d0ac1c44 | 12604 | as_fn_error $? "conditional \"PLUGINS\" was never defined. |
6bb11ab3 L |
12605 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12606 | fi | |
31e6ad7d | 12607 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 12608 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
31e6ad7d MF |
12609 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12610 | fi | |
ef016f83 | 12611 | |
d0ac1c44 | 12612 | : "${CONFIG_STATUS=./config.status}" |
ef016f83 MF |
12613 | ac_write_fail=0 |
12614 | ac_clean_files_save=$ac_clean_files | |
12615 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12616 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
12617 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12618 | as_write_fail=0 | |
12619 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
12620 | #! $SHELL | |
12621 | # Generated by $as_me. | |
12622 | # Run this file to recreate the current configuration. | |
12623 | # Compiler output produced by configure, useful for debugging | |
12624 | # configure, is in config.log if it exists. | |
12625 | ||
12626 | debug=false | |
12627 | ac_cs_recheck=false | |
12628 | ac_cs_silent=false | |
12629 | ||
12630 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12631 | export SHELL | |
12632 | _ASEOF | |
12633 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12634 | ## -------------------- ## | |
12635 | ## M4sh Initialization. ## | |
12636 | ## -------------------- ## | |
12637 | ||
12638 | # Be more Bourne compatible | |
12639 | DUALCASE=1; export DUALCASE # for MKS sh | |
12640 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
12641 | emulate sh | |
12642 | NULLCMD=: | |
12643 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
12644 | # is contrary to our usage. Disable this feature. | |
12645 | alias -g '${1+"$@"}'='"$@"' | |
12646 | setopt NO_GLOB_SUBST | |
12647 | else | |
12648 | case `(set -o) 2>/dev/null` in #( | |
12649 | *posix*) : | |
12650 | set -o posix ;; #( | |
12651 | *) : | |
12652 | ;; | |
12653 | esac | |
12654 | fi | |
12655 | ||
12656 | ||
12657 | as_nl=' | |
12658 | ' | |
12659 | export as_nl | |
12660 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12661 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12662 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12663 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12664 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
12665 | # but without wasting forks for bash or zsh. | |
12666 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12667 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12668 | as_echo='print -r --' | |
12669 | as_echo_n='print -rn --' | |
12670 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12671 | as_echo='printf %s\n' | |
12672 | as_echo_n='printf %s' | |
12673 | else | |
12674 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12675 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12676 | as_echo_n='/usr/ucb/echo -n' | |
12677 | else | |
12678 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12679 | as_echo_n_body='eval | |
12680 | arg=$1; | |
12681 | case $arg in #( | |
12682 | *"$as_nl"*) | |
12683 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12684 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12685 | esac; | |
12686 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12687 | ' | |
12688 | export as_echo_n_body | |
12689 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12690 | fi | |
12691 | export as_echo_body | |
12692 | as_echo='sh -c $as_echo_body as_echo' | |
12693 | fi | |
12694 | ||
12695 | # The user is always right. | |
12696 | if test "${PATH_SEPARATOR+set}" != set; then | |
12697 | PATH_SEPARATOR=: | |
12698 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12699 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12700 | PATH_SEPARATOR=';' | |
12701 | } | |
12702 | fi | |
12703 | ||
12704 | ||
12705 | # IFS | |
12706 | # We need space, tab and new line, in precisely that order. Quoting is | |
12707 | # there to prevent editors from complaining about space-tab. | |
12708 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12709 | # splitting by setting IFS to empty value.) | |
12710 | IFS=" "" $as_nl" | |
12711 | ||
12712 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 12713 | as_myself= |
ef016f83 MF |
12714 | case $0 in #(( |
12715 | *[\\/]* ) as_myself=$0 ;; | |
12716 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12717 | for as_dir in $PATH | |
12718 | do | |
12719 | IFS=$as_save_IFS | |
12720 | test -z "$as_dir" && as_dir=. | |
12721 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12722 | done | |
12723 | IFS=$as_save_IFS | |
12724 | ||
12725 | ;; | |
12726 | esac | |
12727 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12728 | # in which case we are not to be found in the path. | |
12729 | if test "x$as_myself" = x; then | |
12730 | as_myself=$0 | |
12731 | fi | |
12732 | if test ! -f "$as_myself"; then | |
12733 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12734 | exit 1 | |
12735 | fi | |
12736 | ||
12737 | # Unset variables that we do not need and which cause bugs (e.g. in | |
12738 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12739 | # suppresses any "Segmentation fault" message there. '((' could | |
12740 | # trigger a bug in pdksh 5.2.14. | |
12741 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12742 | do eval test x\${$as_var+set} = xset \ | |
12743 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
12744 | done | |
12745 | PS1='$ ' | |
12746 | PS2='> ' | |
12747 | PS4='+ ' | |
12748 | ||
12749 | # NLS nuisances. | |
12750 | LC_ALL=C | |
12751 | export LC_ALL | |
12752 | LANGUAGE=C | |
12753 | export LANGUAGE | |
12754 | ||
12755 | # CDPATH. | |
12756 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12757 | ||
12758 | ||
d0ac1c44 SM |
12759 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
12760 | # ---------------------------------------- | |
ef016f83 MF |
12761 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
12762 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 12763 | # script with STATUS, using 1 if that was 0. |
ef016f83 MF |
12764 | as_fn_error () |
12765 | { | |
d0ac1c44 SM |
12766 | as_status=$1; test $as_status -eq 0 && as_status=1 |
12767 | if test "$4"; then | |
12768 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12769 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
ef016f83 | 12770 | fi |
d0ac1c44 | 12771 | $as_echo "$as_me: error: $2" >&2 |
ef016f83 MF |
12772 | as_fn_exit $as_status |
12773 | } # as_fn_error | |
12774 | ||
12775 | ||
12776 | # as_fn_set_status STATUS | |
12777 | # ----------------------- | |
12778 | # Set $? to STATUS, without forking. | |
12779 | as_fn_set_status () | |
12780 | { | |
12781 | return $1 | |
12782 | } # as_fn_set_status | |
12783 | ||
12784 | # as_fn_exit STATUS | |
12785 | # ----------------- | |
12786 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12787 | as_fn_exit () | |
12788 | { | |
12789 | set +e | |
12790 | as_fn_set_status $1 | |
12791 | exit $1 | |
12792 | } # as_fn_exit | |
12793 | ||
12794 | # as_fn_unset VAR | |
12795 | # --------------- | |
12796 | # Portably unset VAR. | |
12797 | as_fn_unset () | |
12798 | { | |
12799 | { eval $1=; unset $1;} | |
12800 | } | |
12801 | as_unset=as_fn_unset | |
12802 | # as_fn_append VAR VALUE | |
12803 | # ---------------------- | |
12804 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12805 | # advantage of any shell optimizations that allow amortized linear growth over | |
12806 | # repeated appends, instead of the typical quadratic growth present in naive | |
12807 | # implementations. | |
12808 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12809 | eval 'as_fn_append () | |
12810 | { | |
12811 | eval $1+=\$2 | |
12812 | }' | |
12813 | else | |
12814 | as_fn_append () | |
12815 | { | |
12816 | eval $1=\$$1\$2 | |
12817 | } | |
12818 | fi # as_fn_append | |
12819 | ||
12820 | # as_fn_arith ARG... | |
12821 | # ------------------ | |
12822 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12823 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12824 | # must be portable across $(()) and expr. | |
12825 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12826 | eval 'as_fn_arith () | |
12827 | { | |
12828 | as_val=$(( $* )) | |
12829 | }' | |
12830 | else | |
12831 | as_fn_arith () | |
12832 | { | |
12833 | as_val=`expr "$@" || test $? -eq 1` | |
12834 | } | |
12835 | fi # as_fn_arith | |
12836 | ||
12837 | ||
12838 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
12839 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12840 | as_expr=expr | |
12841 | else | |
12842 | as_expr=false | |
12843 | fi | |
12844 | ||
12845 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
12846 | as_basename=basename | |
12847 | else | |
12848 | as_basename=false | |
12849 | fi | |
12850 | ||
12851 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
12852 | as_dirname=dirname | |
12853 | else | |
12854 | as_dirname=false | |
12855 | fi | |
12856 | ||
12857 | as_me=`$as_basename -- "$0" || | |
12858 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12859 | X"$0" : 'X\(//\)$' \| \ | |
12860 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12861 | $as_echo X/"$0" | | |
12862 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12863 | s//\1/ | |
12864 | q | |
12865 | } | |
12866 | /^X\/\(\/\/\)$/{ | |
12867 | s//\1/ | |
12868 | q | |
12869 | } | |
12870 | /^X\/\(\/\).*/{ | |
12871 | s//\1/ | |
12872 | q | |
12873 | } | |
12874 | s/.*/./; q'` | |
12875 | ||
12876 | # Avoid depending upon Character Ranges. | |
12877 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12878 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12879 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12880 | as_cr_digits='0123456789' | |
12881 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12882 | ||
12883 | ECHO_C= ECHO_N= ECHO_T= | |
12884 | case `echo -n x` in #((((( | |
12885 | -n*) | |
12886 | case `echo 'xy\c'` in | |
12887 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12888 | xy) ECHO_C='\c';; | |
12889 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12890 | ECHO_T=' ';; | |
12891 | esac;; | |
12892 | *) | |
12893 | ECHO_N='-n';; | |
12894 | esac | |
12895 | ||
12896 | rm -f conf$$ conf$$.exe conf$$.file | |
12897 | if test -d conf$$.dir; then | |
12898 | rm -f conf$$.dir/conf$$.file | |
12899 | else | |
12900 | rm -f conf$$.dir | |
12901 | mkdir conf$$.dir 2>/dev/null | |
12902 | fi | |
12903 | if (echo >conf$$.file) 2>/dev/null; then | |
12904 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12905 | as_ln_s='ln -s' | |
12906 | # ... but there are two gotchas: | |
12907 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12908 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 12909 | # In both cases, we have to default to `cp -pR'. |
ef016f83 | 12910 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 12911 | as_ln_s='cp -pR' |
ef016f83 MF |
12912 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12913 | as_ln_s=ln | |
12914 | else | |
d0ac1c44 | 12915 | as_ln_s='cp -pR' |
ef016f83 MF |
12916 | fi |
12917 | else | |
d0ac1c44 | 12918 | as_ln_s='cp -pR' |
ef016f83 MF |
12919 | fi |
12920 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12921 | rmdir conf$$.dir 2>/dev/null | |
12922 | ||
12923 | ||
12924 | # as_fn_mkdir_p | |
12925 | # ------------- | |
12926 | # Create "$as_dir" as a directory, including parents if necessary. | |
12927 | as_fn_mkdir_p () | |
12928 | { | |
12929 | ||
12930 | case $as_dir in #( | |
12931 | -*) as_dir=./$as_dir;; | |
12932 | esac | |
12933 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12934 | as_dirs= | |
12935 | while :; do | |
12936 | case $as_dir in #( | |
12937 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12938 | *) as_qdir=$as_dir;; | |
12939 | esac | |
12940 | as_dirs="'$as_qdir' $as_dirs" | |
12941 | as_dir=`$as_dirname -- "$as_dir" || | |
12942 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12943 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12944 | X"$as_dir" : 'X\(//\)$' \| \ | |
12945 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12946 | $as_echo X"$as_dir" | | |
12947 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12948 | s//\1/ | |
12949 | q | |
12950 | } | |
12951 | /^X\(\/\/\)[^/].*/{ | |
12952 | s//\1/ | |
12953 | q | |
12954 | } | |
12955 | /^X\(\/\/\)$/{ | |
12956 | s//\1/ | |
12957 | q | |
12958 | } | |
12959 | /^X\(\/\).*/{ | |
12960 | s//\1/ | |
12961 | q | |
12962 | } | |
12963 | s/.*/./; q'` | |
12964 | test -d "$as_dir" && break | |
12965 | done | |
12966 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 12967 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
ef016f83 MF |
12968 | |
12969 | ||
12970 | } # as_fn_mkdir_p | |
12971 | if mkdir -p . 2>/dev/null; then | |
12972 | as_mkdir_p='mkdir -p "$as_dir"' | |
12973 | else | |
12974 | test -d ./-p && rmdir ./-p | |
12975 | as_mkdir_p=false | |
12976 | fi | |
12977 | ||
d0ac1c44 SM |
12978 | |
12979 | # as_fn_executable_p FILE | |
12980 | # ----------------------- | |
12981 | # Test if FILE is an executable regular file. | |
12982 | as_fn_executable_p () | |
12983 | { | |
12984 | test -f "$1" && test -x "$1" | |
12985 | } # as_fn_executable_p | |
12986 | as_test_x='test -x' | |
12987 | as_executable_p=as_fn_executable_p | |
ef016f83 MF |
12988 | |
12989 | # Sed expression to map a string onto a valid CPP name. | |
12990 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12991 | ||
12992 | # Sed expression to map a string onto a valid variable name. | |
12993 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12994 | ||
12995 | ||
12996 | exec 6>&1 | |
12997 | ## ----------------------------------- ## | |
12998 | ## Main body of $CONFIG_STATUS script. ## | |
12999 | ## ----------------------------------- ## | |
13000 | _ASEOF | |
13001 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
13002 | ||
13003 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13004 | # Save the log message, to keep $0 and so on meaningful, and to | |
13005 | # report actual input values of CONFIG_FILES etc. instead of their | |
13006 | # values after options handling. | |
13007 | ac_log=" | |
13008 | This file was extended by $as_me, which was | |
d0ac1c44 | 13009 | generated by GNU Autoconf 2.69. Invocation command line was |
ef016f83 MF |
13010 | |
13011 | CONFIG_FILES = $CONFIG_FILES | |
13012 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13013 | CONFIG_LINKS = $CONFIG_LINKS | |
13014 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13015 | $ $0 $@ | |
13016 | ||
13017 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
13018 | " | |
13019 | ||
13020 | _ACEOF | |
13021 | ||
13022 | case $ac_config_files in *" | |
13023 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13024 | esac | |
13025 | ||
13026 | case $ac_config_headers in *" | |
13027 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13028 | esac | |
13029 | ||
13030 | ||
13031 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13032 | # Files that config.status was made for. | |
13033 | config_files="$ac_config_files" | |
13034 | config_headers="$ac_config_headers" | |
ef016f83 MF |
13035 | config_commands="$ac_config_commands" |
13036 | ||
13037 | _ACEOF | |
13038 | ||
13039 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13040 | ac_cs_usage="\ | |
13041 | \`$as_me' instantiates files and other configuration actions | |
13042 | from templates according to the current configuration. Unless the files | |
13043 | and actions are specified as TAGs, all are instantiated by default. | |
13044 | ||
13045 | Usage: $0 [OPTION]... [TAG]... | |
13046 | ||
13047 | -h, --help print this help, then exit | |
13048 | -V, --version print version number and configuration settings, then exit | |
d0ac1c44 | 13049 | --config print configuration, then exit |
ef016f83 MF |
13050 | -q, --quiet, --silent |
13051 | do not print progress messages | |
13052 | -d, --debug don't remove temporary files | |
13053 | --recheck update $as_me by reconfiguring in the same conditions | |
13054 | --file=FILE[:TEMPLATE] | |
13055 | instantiate the configuration file FILE | |
13056 | --header=FILE[:TEMPLATE] | |
13057 | instantiate the configuration header FILE | |
13058 | ||
13059 | Configuration files: | |
13060 | $config_files | |
13061 | ||
13062 | Configuration headers: | |
13063 | $config_headers | |
13064 | ||
ef016f83 MF |
13065 | Configuration commands: |
13066 | $config_commands | |
13067 | ||
13068 | Report bugs to the package provider." | |
13069 | ||
13070 | _ACEOF | |
13071 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 13072 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ef016f83 MF |
13073 | ac_cs_version="\\ |
13074 | config.status | |
d0ac1c44 SM |
13075 | configured by $0, generated by GNU Autoconf 2.69, |
13076 | with options \\"\$ac_cs_config\\" | |
ef016f83 | 13077 | |
d0ac1c44 | 13078 | Copyright (C) 2012 Free Software Foundation, Inc. |
ef016f83 MF |
13079 | This config.status script is free software; the Free Software Foundation |
13080 | gives unlimited permission to copy, distribute and modify it." | |
13081 | ||
13082 | ac_pwd='$ac_pwd' | |
13083 | srcdir='$srcdir' | |
13084 | INSTALL='$INSTALL' | |
6bb11ab3 | 13085 | AWK='$AWK' |
ef016f83 MF |
13086 | test -n "\$AWK" || AWK=awk |
13087 | _ACEOF | |
13088 | ||
13089 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13090 | # The default lists apply if the user does not specify any file. | |
13091 | ac_need_defaults=: | |
13092 | while test $# != 0 | |
13093 | do | |
13094 | case $1 in | |
d0ac1c44 | 13095 | --*=?*) |
ef016f83 MF |
13096 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13097 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13098 | ac_shift=: | |
13099 | ;; | |
d0ac1c44 SM |
13100 | --*=) |
13101 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13102 | ac_optarg= | |
13103 | ac_shift=: | |
13104 | ;; | |
ef016f83 MF |
13105 | *) |
13106 | ac_option=$1 | |
13107 | ac_optarg=$2 | |
13108 | ac_shift=shift | |
13109 | ;; | |
13110 | esac | |
13111 | ||
13112 | case $ac_option in | |
13113 | # Handling of the options. | |
13114 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13115 | ac_cs_recheck=: ;; | |
13116 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13117 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
13118 | --config | --confi | --conf | --con | --co | --c ) |
13119 | $as_echo "$ac_cs_config"; exit ;; | |
ef016f83 MF |
13120 | --debug | --debu | --deb | --de | --d | -d ) |
13121 | debug=: ;; | |
13122 | --file | --fil | --fi | --f ) | |
13123 | $ac_shift | |
13124 | case $ac_optarg in | |
13125 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 13126 | '') as_fn_error $? "missing file argument" ;; |
ef016f83 MF |
13127 | esac |
13128 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
13129 | ac_need_defaults=false;; | |
13130 | --header | --heade | --head | --hea ) | |
13131 | $ac_shift | |
13132 | case $ac_optarg in | |
13133 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13134 | esac | |
13135 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
13136 | ac_need_defaults=false;; | |
13137 | --he | --h) | |
13138 | # Conflict between --help and --header | |
d0ac1c44 | 13139 | as_fn_error $? "ambiguous option: \`$1' |
ef016f83 MF |
13140 | Try \`$0 --help' for more information.";; |
13141 | --help | --hel | -h ) | |
13142 | $as_echo "$ac_cs_usage"; exit ;; | |
13143 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13144 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13145 | ac_cs_silent=: ;; | |
13146 | ||
13147 | # This is an error. | |
d0ac1c44 | 13148 | -*) as_fn_error $? "unrecognized option: \`$1' |
ef016f83 MF |
13149 | Try \`$0 --help' for more information." ;; |
13150 | ||
13151 | *) as_fn_append ac_config_targets " $1" | |
13152 | ac_need_defaults=false ;; | |
13153 | ||
13154 | esac | |
13155 | shift | |
13156 | done | |
13157 | ||
13158 | ac_configure_extra_args= | |
13159 | ||
13160 | if $ac_cs_silent; then | |
13161 | exec 6>/dev/null | |
13162 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13163 | fi | |
13164 | ||
13165 | _ACEOF | |
13166 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13167 | if \$ac_cs_recheck; then | |
d0ac1c44 | 13168 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ef016f83 MF |
13169 | shift |
13170 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13171 | CONFIG_SHELL='$SHELL' | |
13172 | export CONFIG_SHELL | |
13173 | exec "\$@" | |
13174 | fi | |
13175 | ||
13176 | _ACEOF | |
13177 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13178 | exec 5>>config.log | |
13179 | { | |
13180 | echo | |
13181 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13182 | ## Running $as_me. ## | |
13183 | _ASBOX | |
13184 | $as_echo "$ac_log" | |
13185 | } >&5 | |
13186 | ||
13187 | _ACEOF | |
13188 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
db2e4d67 MF |
13189 | # |
13190 | # INIT-COMMANDS | |
13191 | # | |
13192 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
13193 | ||
6bb11ab3 L |
13194 | |
13195 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13196 | # if CDPATH is set. | |
13197 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13198 | ||
13199 | sed_quote_subst='$sed_quote_subst' | |
13200 | double_quote_subst='$double_quote_subst' | |
13201 | delay_variable_subst='$delay_variable_subst' | |
13202 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
13203 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13204 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13205 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13206 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13207 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
13208 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
13209 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13210 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13211 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13212 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13213 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13214 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13215 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13216 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13217 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13218 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13219 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13220 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13221 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13222 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13223 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13224 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13225 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13226 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13227 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13228 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13229 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13230 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13231 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13232 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13233 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13234 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13235 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13236 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13237 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13238 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13239 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13240 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13241 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13242 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13243 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13244 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13245 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13246 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13247 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13248 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
13249 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
13250 | 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"`' | |
13251 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
13252 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13253 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13254 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13255 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13256 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13257 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13258 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13259 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13260 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13261 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13262 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13263 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13264 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13265 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13266 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13267 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13268 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13269 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13270 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13271 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13272 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13273 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13274 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13275 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13276 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13277 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13278 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13279 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13280 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13281 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13282 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
13283 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13284 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13285 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13286 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13287 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13288 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13289 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13290 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13291 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
13292 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13293 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13294 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13295 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13296 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13297 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13298 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13299 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13300 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13301 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13302 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13303 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13304 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13305 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13306 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13307 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13308 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13309 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13310 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13311 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13312 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13313 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13314 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
13315 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
13316 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
13317 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13318 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13319 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13320 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13321 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
13322 | ||
13323 | LTCC='$LTCC' | |
13324 | LTCFLAGS='$LTCFLAGS' | |
13325 | compiler='$compiler_DEFAULT' | |
13326 | ||
13327 | # A function that is used when there is no print builtin or printf. | |
13328 | func_fallback_echo () | |
13329 | { | |
13330 | eval 'cat <<_LTECHO_EOF | |
13331 | \$1 | |
13332 | _LTECHO_EOF' | |
13333 | } | |
13334 | ||
13335 | # Quote evaled strings. | |
13336 | for var in SHELL \ | |
13337 | ECHO \ | |
13338 | SED \ | |
13339 | GREP \ | |
13340 | EGREP \ | |
13341 | FGREP \ | |
13342 | LD \ | |
13343 | NM \ | |
13344 | LN_S \ | |
13345 | lt_SP2NL \ | |
13346 | lt_NL2SP \ | |
13347 | reload_flag \ | |
13348 | OBJDUMP \ | |
13349 | deplibs_check_method \ | |
13350 | file_magic_cmd \ | |
13351 | AR \ | |
13352 | AR_FLAGS \ | |
13353 | STRIP \ | |
13354 | RANLIB \ | |
13355 | CC \ | |
13356 | CFLAGS \ | |
13357 | compiler \ | |
13358 | lt_cv_sys_global_symbol_pipe \ | |
13359 | lt_cv_sys_global_symbol_to_cdecl \ | |
13360 | lt_cv_sys_global_symbol_to_c_name_address \ | |
13361 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
13362 | lt_prog_compiler_no_builtin_flag \ | |
13363 | lt_prog_compiler_wl \ | |
13364 | lt_prog_compiler_pic \ | |
13365 | lt_prog_compiler_static \ | |
13366 | lt_cv_prog_compiler_c_o \ | |
13367 | need_locks \ | |
13368 | DSYMUTIL \ | |
13369 | NMEDIT \ | |
13370 | LIPO \ | |
13371 | OTOOL \ | |
13372 | OTOOL64 \ | |
13373 | shrext_cmds \ | |
13374 | export_dynamic_flag_spec \ | |
13375 | whole_archive_flag_spec \ | |
13376 | compiler_needs_object \ | |
13377 | with_gnu_ld \ | |
13378 | allow_undefined_flag \ | |
13379 | no_undefined_flag \ | |
13380 | hardcode_libdir_flag_spec \ | |
13381 | hardcode_libdir_flag_spec_ld \ | |
13382 | hardcode_libdir_separator \ | |
13383 | fix_srcfile_path \ | |
13384 | exclude_expsyms \ | |
13385 | include_expsyms \ | |
13386 | file_list_spec \ | |
13387 | variables_saved_for_relink \ | |
13388 | libname_spec \ | |
13389 | library_names_spec \ | |
13390 | soname_spec \ | |
13391 | install_override_mode \ | |
13392 | finish_eval \ | |
13393 | old_striplib \ | |
13394 | striplib; do | |
13395 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13396 | *[\\\\\\\`\\"\\\$]*) | |
13397 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13398 | ;; | |
13399 | *) | |
13400 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13401 | ;; | |
13402 | esac | |
13403 | done | |
13404 | ||
13405 | # Double-quote double-evaled strings. | |
13406 | for var in reload_cmds \ | |
13407 | old_postinstall_cmds \ | |
13408 | old_postuninstall_cmds \ | |
13409 | old_archive_cmds \ | |
13410 | extract_expsyms_cmds \ | |
13411 | old_archive_from_new_cmds \ | |
13412 | old_archive_from_expsyms_cmds \ | |
13413 | archive_cmds \ | |
13414 | archive_expsym_cmds \ | |
13415 | module_cmds \ | |
13416 | module_expsym_cmds \ | |
13417 | export_symbols_cmds \ | |
13418 | prelink_cmds \ | |
13419 | postinstall_cmds \ | |
13420 | postuninstall_cmds \ | |
13421 | finish_cmds \ | |
13422 | sys_lib_search_path_spec \ | |
13423 | sys_lib_dlsearch_path_spec; do | |
13424 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13425 | *[\\\\\\\`\\"\\\$]*) | |
13426 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13427 | ;; | |
13428 | *) | |
13429 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13430 | ;; | |
13431 | esac | |
13432 | done | |
13433 | ||
13434 | ac_aux_dir='$ac_aux_dir' | |
13435 | xsi_shell='$xsi_shell' | |
13436 | lt_shell_append='$lt_shell_append' | |
13437 | ||
13438 | # See if we are running on zsh, and set the options which allow our | |
13439 | # commands through without removal of \ escapes INIT. | |
13440 | if test -n "\${ZSH_VERSION+set}" ; then | |
13441 | setopt NO_GLOB_SUBST | |
13442 | fi | |
13443 | ||
13444 | ||
13445 | PACKAGE='$PACKAGE' | |
13446 | VERSION='$VERSION' | |
13447 | TIMESTAMP='$TIMESTAMP' | |
13448 | RM='$RM' | |
13449 | ofile='$ofile' | |
13450 | ||
13451 | ||
13452 | ||
13453 | ||
ef016f83 MF |
13454 | _ACEOF |
13455 | ||
13456 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13457 | ||
13458 | # Handling of arguments. | |
13459 | for ac_config_target in $ac_config_targets | |
13460 | do | |
13461 | case $ac_config_target in | |
13462 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
db2e4d67 | 13463 | "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; |
6bb11ab3 | 13464 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
ef016f83 MF |
13465 | "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; |
13466 | "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
13467 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
13468 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | |
13469 | "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; | |
13470 | ||
d0ac1c44 | 13471 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
ef016f83 MF |
13472 | esac |
13473 | done | |
13474 | ||
13475 | ||
13476 | # If the user did not use the arguments to specify the items to instantiate, | |
13477 | # then the envvar interface is used. Set only those that are not. | |
13478 | # We use the long form for the default assignment because of an extremely | |
13479 | # bizarre bug on SunOS 4.1.3. | |
13480 | if $ac_need_defaults; then | |
13481 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13482 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
ef016f83 MF |
13483 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
13484 | fi | |
13485 | ||
13486 | # Have a temporary directory for convenience. Make it in the build tree | |
13487 | # simply because there is no reason against having it here, and in addition, | |
13488 | # creating and moving files from /tmp can sometimes cause problems. | |
13489 | # Hook for its removal unless debugging. | |
13490 | # Note that there is a small window in which the directory will not be cleaned: | |
13491 | # after its creation but before its name has been assigned to `$tmp'. | |
13492 | $debug || | |
13493 | { | |
d0ac1c44 | 13494 | tmp= ac_tmp= |
ef016f83 | 13495 | trap 'exit_status=$? |
d0ac1c44 SM |
13496 | : "${ac_tmp:=$tmp}" |
13497 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
ef016f83 MF |
13498 | ' 0 |
13499 | trap 'as_fn_exit 1' 1 2 13 15 | |
13500 | } | |
13501 | # Create a (secure) tmp directory for tmp files. | |
13502 | ||
13503 | { | |
13504 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
d0ac1c44 | 13505 | test -d "$tmp" |
ef016f83 MF |
13506 | } || |
13507 | { | |
13508 | tmp=./conf$$-$RANDOM | |
13509 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
13510 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13511 | ac_tmp=$tmp | |
ef016f83 MF |
13512 | |
13513 | # Set up the scripts for CONFIG_FILES section. | |
13514 | # No need to generate them if there are no CONFIG_FILES. | |
13515 | # This happens for instance with `./config.status config.h'. | |
13516 | if test -n "$CONFIG_FILES"; then | |
13517 | ||
13518 | ||
13519 | ac_cr=`echo X | tr X '\015'` | |
13520 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13521 | # But we know of no other shell where ac_cr would be empty at this | |
13522 | # point, so we can use a bashism as a fallback. | |
13523 | if test "x$ac_cr" = x; then | |
13524 | eval ac_cr=\$\'\\r\' | |
13525 | fi | |
13526 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13527 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 13528 | ac_cs_awk_cr='\\r' |
ef016f83 MF |
13529 | else |
13530 | ac_cs_awk_cr=$ac_cr | |
13531 | fi | |
13532 | ||
d0ac1c44 | 13533 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
ef016f83 MF |
13534 | _ACEOF |
13535 | ||
13536 | ||
13537 | { | |
13538 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13539 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13540 | echo "_ACEOF" | |
13541 | } >conf$$subs.sh || | |
d0ac1c44 SM |
13542 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13543 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
ef016f83 MF |
13544 | ac_delim='%!_!# ' |
13545 | for ac_last_try in false false false false false :; do | |
13546 | . ./conf$$subs.sh || | |
d0ac1c44 | 13547 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ef016f83 MF |
13548 | |
13549 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13550 | if test $ac_delim_n = $ac_delim_num; then | |
13551 | break | |
13552 | elif $ac_last_try; then | |
d0ac1c44 | 13553 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ef016f83 MF |
13554 | else |
13555 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13556 | fi | |
13557 | done | |
13558 | rm -f conf$$subs.sh | |
13559 | ||
13560 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 13561 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
ef016f83 MF |
13562 | _ACEOF |
13563 | sed -n ' | |
13564 | h | |
13565 | s/^/S["/; s/!.*/"]=/ | |
13566 | p | |
13567 | g | |
13568 | s/^[^!]*!// | |
13569 | :repl | |
13570 | t repl | |
13571 | s/'"$ac_delim"'$// | |
13572 | t delim | |
13573 | :nl | |
13574 | h | |
d0ac1c44 | 13575 | s/\(.\{148\}\)..*/\1/ |
ef016f83 MF |
13576 | t more1 |
13577 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13578 | p | |
13579 | n | |
13580 | b repl | |
13581 | :more1 | |
13582 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13583 | p | |
13584 | g | |
13585 | s/.\{148\}// | |
13586 | t nl | |
13587 | :delim | |
13588 | h | |
d0ac1c44 | 13589 | s/\(.\{148\}\)..*/\1/ |
ef016f83 MF |
13590 | t more2 |
13591 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13592 | p | |
13593 | b | |
13594 | :more2 | |
13595 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13596 | p | |
13597 | g | |
13598 | s/.\{148\}// | |
13599 | t delim | |
13600 | ' <conf$$subs.awk | sed ' | |
13601 | /^[^""]/{ | |
13602 | N | |
13603 | s/\n// | |
13604 | } | |
13605 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13606 | rm -f conf$$subs.awk | |
13607 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13608 | _ACAWK | |
d0ac1c44 | 13609 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
ef016f83 MF |
13610 | for (key in S) S_is_set[key] = 1 |
13611 | FS = "\a" | |
13612 | ||
13613 | } | |
13614 | { | |
13615 | line = $ 0 | |
13616 | nfields = split(line, field, "@") | |
13617 | substed = 0 | |
13618 | len = length(field[1]) | |
13619 | for (i = 2; i < nfields; i++) { | |
13620 | key = field[i] | |
13621 | keylen = length(key) | |
13622 | if (S_is_set[key]) { | |
13623 | value = S[key] | |
13624 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13625 | len += length(value) + length(field[++i]) | |
13626 | substed = 1 | |
13627 | } else | |
13628 | len += 1 + keylen | |
13629 | } | |
13630 | ||
13631 | print line | |
13632 | } | |
13633 | ||
13634 | _ACAWK | |
13635 | _ACEOF | |
13636 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13637 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13638 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13639 | else | |
13640 | cat | |
d0ac1c44 SM |
13641 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
13642 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
ef016f83 MF |
13643 | _ACEOF |
13644 | ||
d0ac1c44 SM |
13645 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13646 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
ef016f83 MF |
13647 | # trailing colons and then remove the whole line if VPATH becomes empty |
13648 | # (actually we leave an empty line to preserve line numbers). | |
13649 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
13650 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13651 | h | |
13652 | s/// | |
13653 | s/^/:/ | |
13654 | s/[ ]*$/:/ | |
13655 | s/:\$(srcdir):/:/g | |
13656 | s/:\${srcdir}:/:/g | |
13657 | s/:@srcdir@:/:/g | |
13658 | s/^:*// | |
ef016f83 | 13659 | s/:*$// |
d0ac1c44 SM |
13660 | x |
13661 | s/\(=[ ]*\).*/\1/ | |
13662 | G | |
13663 | s/\n// | |
ef016f83 MF |
13664 | s/^[^=]*=[ ]*$// |
13665 | }' | |
13666 | fi | |
13667 | ||
13668 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13669 | fi # test -n "$CONFIG_FILES" | |
13670 | ||
13671 | # Set up the scripts for CONFIG_HEADERS section. | |
13672 | # No need to generate them if there are no CONFIG_HEADERS. | |
13673 | # This happens for instance with `./config.status Makefile'. | |
13674 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 13675 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
ef016f83 MF |
13676 | BEGIN { |
13677 | _ACEOF | |
13678 | ||
13679 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13680 | # here-document in config.status, that substitutes the proper values into | |
13681 | # config.h.in to produce config.h. | |
13682 | ||
13683 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13684 | # handling of long lines. | |
13685 | ac_delim='%!_!# ' | |
13686 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
13687 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13688 | if test -z "$ac_tt"; then | |
ef016f83 MF |
13689 | break |
13690 | elif $ac_last_try; then | |
d0ac1c44 | 13691 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ef016f83 MF |
13692 | else |
13693 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13694 | fi | |
13695 | done | |
13696 | ||
13697 | # For the awk script, D is an array of macro values keyed by name, | |
13698 | # likewise P contains macro parameters if any. Preserve backslash | |
13699 | # newline sequences. | |
13700 | ||
13701 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13702 | sed -n ' | |
13703 | s/.\{148\}/&'"$ac_delim"'/g | |
13704 | t rset | |
13705 | :rset | |
13706 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13707 | t def | |
13708 | d | |
13709 | :def | |
13710 | s/\\$// | |
13711 | t bsnl | |
13712 | s/["\\]/\\&/g | |
13713 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13714 | D["\1"]=" \3"/p | |
13715 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13716 | d | |
13717 | :bsnl | |
13718 | s/["\\]/\\&/g | |
13719 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13720 | D["\1"]=" \3\\\\\\n"\\/p | |
13721 | t cont | |
13722 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13723 | t cont | |
13724 | d | |
13725 | :cont | |
13726 | n | |
13727 | s/.\{148\}/&'"$ac_delim"'/g | |
13728 | t clear | |
13729 | :clear | |
13730 | s/\\$// | |
13731 | t bsnlc | |
13732 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13733 | d | |
13734 | :bsnlc | |
13735 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13736 | b cont | |
13737 | ' <confdefs.h | sed ' | |
13738 | s/'"$ac_delim"'/"\\\ | |
13739 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13740 | ||
13741 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13742 | for (key in D) D_is_set[key] = 1 | |
13743 | FS = "\a" | |
13744 | } | |
13745 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13746 | line = \$ 0 | |
13747 | split(line, arg, " ") | |
13748 | if (arg[1] == "#") { | |
13749 | defundef = arg[2] | |
13750 | mac1 = arg[3] | |
13751 | } else { | |
13752 | defundef = substr(arg[1], 2) | |
13753 | mac1 = arg[2] | |
13754 | } | |
13755 | split(mac1, mac2, "(") #) | |
13756 | macro = mac2[1] | |
13757 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13758 | if (D_is_set[macro]) { | |
13759 | # Preserve the white space surrounding the "#". | |
13760 | print prefix "define", macro P[macro] D[macro] | |
13761 | next | |
13762 | } else { | |
13763 | # Replace #undef with comments. This is necessary, for example, | |
13764 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13765 | # on some systems where configure will not decide to define it. | |
13766 | if (defundef == "undef") { | |
13767 | print "/*", prefix defundef, macro, "*/" | |
13768 | next | |
13769 | } | |
13770 | } | |
13771 | } | |
13772 | { print } | |
13773 | _ACAWK | |
13774 | _ACEOF | |
13775 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 13776 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ef016f83 MF |
13777 | fi # test -n "$CONFIG_HEADERS" |
13778 | ||
13779 | ||
99d8e879 | 13780 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
ef016f83 MF |
13781 | shift |
13782 | for ac_tag | |
13783 | do | |
13784 | case $ac_tag in | |
13785 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13786 | esac | |
13787 | case $ac_mode$ac_tag in | |
13788 | :[FHL]*:*);; | |
d0ac1c44 | 13789 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
ef016f83 MF |
13790 | :[FH]-) ac_tag=-:-;; |
13791 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13792 | esac | |
13793 | ac_save_IFS=$IFS | |
13794 | IFS=: | |
13795 | set x $ac_tag | |
13796 | IFS=$ac_save_IFS | |
13797 | shift | |
13798 | ac_file=$1 | |
13799 | shift | |
13800 | ||
13801 | case $ac_mode in | |
13802 | :L) ac_source=$1;; | |
13803 | :[FH]) | |
13804 | ac_file_inputs= | |
13805 | for ac_f | |
13806 | do | |
13807 | case $ac_f in | |
d0ac1c44 | 13808 | -) ac_f="$ac_tmp/stdin";; |
ef016f83 MF |
13809 | *) # Look for the file first in the build tree, then in the source tree |
13810 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13811 | # because $ac_f cannot contain `:'. | |
13812 | test -f "$ac_f" || | |
13813 | case $ac_f in | |
13814 | [\\/$]*) false;; | |
13815 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13816 | esac || | |
d0ac1c44 | 13817 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
ef016f83 MF |
13818 | esac |
13819 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13820 | as_fn_append ac_file_inputs " '$ac_f'" | |
13821 | done | |
13822 | ||
13823 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13824 | # use $as_me), people would be surprised to read: | |
13825 | # /* config.h. Generated by config.status. */ | |
13826 | configure_input='Generated from '` | |
13827 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13828 | `' by configure.' | |
13829 | if test x"$ac_file" != x-; then | |
13830 | configure_input="$ac_file. $configure_input" | |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
13832 | $as_echo "$as_me: creating $ac_file" >&6;} | |
13833 | fi | |
13834 | # Neutralize special characters interpreted by sed in replacement strings. | |
13835 | case $configure_input in #( | |
13836 | *\&* | *\|* | *\\* ) | |
13837 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13838 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13839 | *) ac_sed_conf_input=$configure_input;; | |
13840 | esac | |
13841 | ||
13842 | case $ac_tag in | |
d0ac1c44 SM |
13843 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
13844 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
ef016f83 MF |
13845 | esac |
13846 | ;; | |
13847 | esac | |
13848 | ||
13849 | ac_dir=`$as_dirname -- "$ac_file" || | |
13850 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13851 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13852 | X"$ac_file" : 'X\(//\)$' \| \ | |
13853 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13854 | $as_echo X"$ac_file" | | |
13855 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13856 | s//\1/ | |
13857 | q | |
13858 | } | |
13859 | /^X\(\/\/\)[^/].*/{ | |
13860 | s//\1/ | |
13861 | q | |
13862 | } | |
13863 | /^X\(\/\/\)$/{ | |
13864 | s//\1/ | |
13865 | q | |
13866 | } | |
13867 | /^X\(\/\).*/{ | |
13868 | s//\1/ | |
13869 | q | |
13870 | } | |
13871 | s/.*/./; q'` | |
13872 | as_dir="$ac_dir"; as_fn_mkdir_p | |
13873 | ac_builddir=. | |
13874 | ||
13875 | case "$ac_dir" in | |
13876 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13877 | *) | |
13878 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13879 | # A ".." for each directory in $ac_dir_suffix. | |
13880 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13881 | case $ac_top_builddir_sub in | |
13882 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13883 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13884 | esac ;; | |
13885 | esac | |
13886 | ac_abs_top_builddir=$ac_pwd | |
13887 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13888 | # for backward compatibility: | |
13889 | ac_top_builddir=$ac_top_build_prefix | |
13890 | ||
13891 | case $srcdir in | |
13892 | .) # We are building in place. | |
13893 | ac_srcdir=. | |
13894 | ac_top_srcdir=$ac_top_builddir_sub | |
13895 | ac_abs_top_srcdir=$ac_pwd ;; | |
13896 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13897 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13898 | ac_top_srcdir=$srcdir | |
13899 | ac_abs_top_srcdir=$srcdir ;; | |
13900 | *) # Relative name. | |
13901 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13902 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13903 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13904 | esac | |
13905 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
13906 | ||
13907 | ||
13908 | case $ac_mode in | |
13909 | :F) | |
13910 | # | |
13911 | # CONFIG_FILE | |
13912 | # | |
13913 | ||
13914 | case $INSTALL in | |
13915 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13916 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13917 | esac | |
13918 | _ACEOF | |
13919 | ||
13920 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13921 | # If the template does not know about datarootdir, expand it. | |
13922 | # FIXME: This hack should be removed a few years after 2.60. | |
13923 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13924 | ac_sed_dataroot=' | |
13925 | /datarootdir/ { | |
13926 | p | |
13927 | q | |
13928 | } | |
13929 | /@datadir@/p | |
13930 | /@docdir@/p | |
13931 | /@infodir@/p | |
13932 | /@localedir@/p | |
13933 | /@mandir@/p' | |
13934 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13935 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13936 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13938 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13939 | _ACEOF | |
13940 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13941 | ac_datarootdir_hack=' | |
13942 | s&@datadir@&$datadir&g | |
13943 | s&@docdir@&$docdir&g | |
13944 | s&@infodir@&$infodir&g | |
13945 | s&@localedir@&$localedir&g | |
13946 | s&@mandir@&$mandir&g | |
13947 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13948 | esac | |
13949 | _ACEOF | |
13950 | ||
13951 | # Neutralize VPATH when `$srcdir' = `.'. | |
13952 | # Shell code in configure.ac might set extrasub. | |
13953 | # FIXME: do we really want to maintain this feature? | |
13954 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13955 | ac_sed_extra="$ac_vpsub | |
13956 | $extrasub | |
13957 | _ACEOF | |
13958 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13959 | :t | |
13960 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13961 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13962 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13963 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13964 | s&@srcdir@&$ac_srcdir&;t t | |
13965 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13966 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13967 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13968 | s&@builddir@&$ac_builddir&;t t | |
13969 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13970 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13971 | s&@INSTALL@&$ac_INSTALL&;t t | |
13972 | $ac_datarootdir_hack | |
13973 | " | |
d0ac1c44 SM |
13974 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
13975 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
ef016f83 MF |
13976 | |
13977 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
13978 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
13979 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13980 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
ef016f83 | 13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 13982 | which seems to be undefined. Please make sure it is defined" >&5 |
ef016f83 | 13983 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 13984 | which seems to be undefined. Please make sure it is defined" >&2;} |
ef016f83 | 13985 | |
d0ac1c44 | 13986 | rm -f "$ac_tmp/stdin" |
ef016f83 | 13987 | case $ac_file in |
d0ac1c44 SM |
13988 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
13989 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
ef016f83 | 13990 | esac \ |
d0ac1c44 | 13991 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ef016f83 MF |
13992 | ;; |
13993 | :H) | |
13994 | # | |
13995 | # CONFIG_HEADER | |
13996 | # | |
13997 | if test x"$ac_file" != x-; then | |
13998 | { | |
13999 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
14000 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
14001 | } >"$ac_tmp/config.h" \ | |
14002 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14003 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
ef016f83 MF |
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
14005 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
14006 | else | |
14007 | rm -f "$ac_file" | |
d0ac1c44 SM |
14008 | mv "$ac_tmp/config.h" "$ac_file" \ |
14009 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
ef016f83 MF |
14010 | fi |
14011 | else | |
14012 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
14013 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
14014 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
ef016f83 MF |
14015 | fi |
14016 | ;; | |
ef016f83 | 14017 | |
ef016f83 MF |
14018 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
14019 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
14020 | ;; | |
14021 | esac | |
14022 | ||
14023 | ||
14024 | case $ac_file$ac_mode in | |
db2e4d67 | 14025 | "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; |
6bb11ab3 L |
14026 | "libtool":C) |
14027 | ||
14028 | # See if we are running on zsh, and set the options which allow our | |
14029 | # commands through without removal of \ escapes. | |
14030 | if test -n "${ZSH_VERSION+set}" ; then | |
14031 | setopt NO_GLOB_SUBST | |
14032 | fi | |
14033 | ||
14034 | cfgfile="${ofile}T" | |
14035 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14036 | $RM "$cfgfile" | |
14037 | ||
14038 | cat <<_LT_EOF >> "$cfgfile" | |
14039 | #! $SHELL | |
14040 | ||
14041 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
14042 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
14043 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14044 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14045 | # | |
14046 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
14047 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
14048 | # Written by Gordon Matzigkeit, 1996 | |
14049 | # | |
14050 | # This file is part of GNU Libtool. | |
14051 | # | |
14052 | # GNU Libtool is free software; you can redistribute it and/or | |
14053 | # modify it under the terms of the GNU General Public License as | |
14054 | # published by the Free Software Foundation; either version 2 of | |
14055 | # the License, or (at your option) any later version. | |
14056 | # | |
14057 | # As a special exception to the GNU General Public License, | |
14058 | # if you distribute this file as part of a program or library that | |
14059 | # is built using GNU Libtool, you may include this file under the | |
14060 | # same distribution terms that you use for the rest of that program. | |
14061 | # | |
14062 | # GNU Libtool is distributed in the hope that it will be useful, | |
14063 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14064 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14065 | # GNU General Public License for more details. | |
14066 | # | |
14067 | # You should have received a copy of the GNU General Public License | |
14068 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
14069 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14070 | # obtained by writing to the Free Software Foundation, Inc., | |
14071 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
14072 | ||
14073 | ||
14074 | # The names of the tagged configurations supported by this script. | |
14075 | available_tags="" | |
14076 | ||
14077 | # ### BEGIN LIBTOOL CONFIG | |
14078 | ||
14079 | # Which release of libtool.m4 was used? | |
14080 | macro_version=$macro_version | |
14081 | macro_revision=$macro_revision | |
14082 | ||
14083 | # Whether or not to build shared libraries. | |
14084 | build_libtool_libs=$enable_shared | |
14085 | ||
14086 | # Whether or not to build static libraries. | |
14087 | build_old_libs=$enable_static | |
14088 | ||
14089 | # What type of objects to build. | |
14090 | pic_mode=$pic_mode | |
14091 | ||
14092 | # Whether or not to optimize for fast installation. | |
14093 | fast_install=$enable_fast_install | |
14094 | ||
14095 | # Shell to use when invoking shell scripts. | |
14096 | SHELL=$lt_SHELL | |
14097 | ||
14098 | # An echo program that protects backslashes. | |
14099 | ECHO=$lt_ECHO | |
14100 | ||
14101 | # The host system. | |
14102 | host_alias=$host_alias | |
14103 | host=$host | |
14104 | host_os=$host_os | |
14105 | ||
14106 | # The build system. | |
14107 | build_alias=$build_alias | |
14108 | build=$build | |
14109 | build_os=$build_os | |
14110 | ||
14111 | # A sed program that does not truncate output. | |
14112 | SED=$lt_SED | |
14113 | ||
14114 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14115 | Xsed="\$SED -e 1s/^X//" | |
14116 | ||
14117 | # A grep program that handles long lines. | |
14118 | GREP=$lt_GREP | |
14119 | ||
14120 | # An ERE matcher. | |
14121 | EGREP=$lt_EGREP | |
14122 | ||
14123 | # A literal string matcher. | |
14124 | FGREP=$lt_FGREP | |
14125 | ||
14126 | # A BSD- or MS-compatible name lister. | |
14127 | NM=$lt_NM | |
14128 | ||
14129 | # Whether we need soft or hard links. | |
14130 | LN_S=$lt_LN_S | |
14131 | ||
14132 | # What is the maximum length of a command? | |
14133 | max_cmd_len=$max_cmd_len | |
14134 | ||
14135 | # Object file suffix (normally "o"). | |
14136 | objext=$ac_objext | |
14137 | ||
14138 | # Executable file suffix (normally ""). | |
14139 | exeext=$exeext | |
14140 | ||
14141 | # whether the shell understands "unset". | |
14142 | lt_unset=$lt_unset | |
14143 | ||
14144 | # turn spaces into newlines. | |
14145 | SP2NL=$lt_lt_SP2NL | |
14146 | ||
14147 | # turn newlines into spaces. | |
14148 | NL2SP=$lt_lt_NL2SP | |
14149 | ||
14150 | # An object symbol dumper. | |
14151 | OBJDUMP=$lt_OBJDUMP | |
14152 | ||
14153 | # Method to check whether dependent libraries are shared objects. | |
14154 | deplibs_check_method=$lt_deplibs_check_method | |
14155 | ||
14156 | # Command to use when deplibs_check_method == "file_magic". | |
14157 | file_magic_cmd=$lt_file_magic_cmd | |
14158 | ||
14159 | # The archiver. | |
14160 | AR=$lt_AR | |
14161 | AR_FLAGS=$lt_AR_FLAGS | |
14162 | ||
14163 | # A symbol stripping program. | |
14164 | STRIP=$lt_STRIP | |
14165 | ||
14166 | # Commands used to install an old-style archive. | |
14167 | RANLIB=$lt_RANLIB | |
14168 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14169 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14170 | ||
14171 | # Whether to use a lock for old archive extraction. | |
14172 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14173 | ||
14174 | # A C compiler. | |
14175 | LTCC=$lt_CC | |
14176 | ||
14177 | # LTCC compiler flags. | |
14178 | LTCFLAGS=$lt_CFLAGS | |
14179 | ||
14180 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14181 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14182 | ||
14183 | # Transform the output of nm in a proper C declaration. | |
14184 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14185 | ||
14186 | # Transform the output of nm in a C name address pair. | |
14187 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14188 | ||
14189 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
14190 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14191 | ||
14192 | # The name of the directory that contains temporary libtool files. | |
14193 | objdir=$objdir | |
14194 | ||
14195 | # Used to examine libraries when file_magic_cmd begins with "file". | |
14196 | MAGIC_CMD=$MAGIC_CMD | |
14197 | ||
14198 | # Must we lock files when doing compilation? | |
14199 | need_locks=$lt_need_locks | |
14200 | ||
14201 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
14202 | DSYMUTIL=$lt_DSYMUTIL | |
14203 | ||
14204 | # Tool to change global to local symbols on Mac OS X. | |
14205 | NMEDIT=$lt_NMEDIT | |
14206 | ||
14207 | # Tool to manipulate fat objects and archives on Mac OS X. | |
14208 | LIPO=$lt_LIPO | |
14209 | ||
14210 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14211 | OTOOL=$lt_OTOOL | |
14212 | ||
14213 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14214 | OTOOL64=$lt_OTOOL64 | |
14215 | ||
14216 | # Old archive suffix (normally "a"). | |
14217 | libext=$libext | |
14218 | ||
14219 | # Shared library suffix (normally ".so"). | |
14220 | shrext_cmds=$lt_shrext_cmds | |
14221 | ||
14222 | # The commands to extract the exported symbol list from a shared archive. | |
14223 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14224 | ||
14225 | # Variables whose values should be saved in libtool wrapper scripts and | |
14226 | # restored at link time. | |
14227 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
14228 | ||
14229 | # Do we need the "lib" prefix for modules? | |
14230 | need_lib_prefix=$need_lib_prefix | |
14231 | ||
14232 | # Do we need a version for libraries? | |
14233 | need_version=$need_version | |
14234 | ||
14235 | # Library versioning type. | |
14236 | version_type=$version_type | |
14237 | ||
14238 | # Shared library runtime path variable. | |
14239 | runpath_var=$runpath_var | |
14240 | ||
14241 | # Shared library path variable. | |
14242 | shlibpath_var=$shlibpath_var | |
14243 | ||
14244 | # Is shlibpath searched before the hard-coded library search path? | |
14245 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14246 | ||
14247 | # Format of library name prefix. | |
14248 | libname_spec=$lt_libname_spec | |
14249 | ||
14250 | # List of archive names. First name is the real one, the rest are links. | |
14251 | # The last name is the one that the linker finds with -lNAME | |
14252 | library_names_spec=$lt_library_names_spec | |
14253 | ||
14254 | # The coded name of the library, if different from the real name. | |
14255 | soname_spec=$lt_soname_spec | |
14256 | ||
14257 | # Permission mode override for installation of shared libraries. | |
14258 | install_override_mode=$lt_install_override_mode | |
14259 | ||
14260 | # Command to use after installation of a shared archive. | |
14261 | postinstall_cmds=$lt_postinstall_cmds | |
14262 | ||
14263 | # Command to use after uninstallation of a shared archive. | |
14264 | postuninstall_cmds=$lt_postuninstall_cmds | |
14265 | ||
14266 | # Commands used to finish a libtool library installation in a directory. | |
14267 | finish_cmds=$lt_finish_cmds | |
14268 | ||
14269 | # As "finish_cmds", except a single script fragment to be evaled but | |
14270 | # not shown. | |
14271 | finish_eval=$lt_finish_eval | |
14272 | ||
14273 | # Whether we should hardcode library paths into libraries. | |
14274 | hardcode_into_libs=$hardcode_into_libs | |
14275 | ||
14276 | # Compile-time system search path for libraries. | |
14277 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14278 | ||
14279 | # Run-time system search path for libraries. | |
14280 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14281 | ||
14282 | # Whether dlopen is supported. | |
14283 | dlopen_support=$enable_dlopen | |
14284 | ||
14285 | # Whether dlopen of programs is supported. | |
14286 | dlopen_self=$enable_dlopen_self | |
14287 | ||
14288 | # Whether dlopen of statically linked programs is supported. | |
14289 | dlopen_self_static=$enable_dlopen_self_static | |
14290 | ||
14291 | # Commands to strip libraries. | |
14292 | old_striplib=$lt_old_striplib | |
14293 | striplib=$lt_striplib | |
14294 | ||
14295 | ||
14296 | # The linker used to build libraries. | |
14297 | LD=$lt_LD | |
14298 | ||
14299 | # How to create reloadable object files. | |
14300 | reload_flag=$lt_reload_flag | |
14301 | reload_cmds=$lt_reload_cmds | |
14302 | ||
14303 | # Commands used to build an old-style archive. | |
14304 | old_archive_cmds=$lt_old_archive_cmds | |
14305 | ||
14306 | # A language specific compiler. | |
14307 | CC=$lt_compiler | |
14308 | ||
14309 | # Is the compiler the GNU compiler? | |
14310 | with_gcc=$GCC | |
14311 | ||
14312 | # Compiler flag to turn off builtin functions. | |
14313 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14314 | ||
14315 | # How to pass a linker flag through the compiler. | |
14316 | wl=$lt_lt_prog_compiler_wl | |
14317 | ||
14318 | # Additional compiler flags for building library objects. | |
14319 | pic_flag=$lt_lt_prog_compiler_pic | |
14320 | ||
14321 | # Compiler flag to prevent dynamic linking. | |
14322 | link_static_flag=$lt_lt_prog_compiler_static | |
14323 | ||
14324 | # Does compiler simultaneously support -c and -o options? | |
14325 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14326 | ||
14327 | # Whether or not to add -lc for building shared libraries. | |
14328 | build_libtool_need_lc=$archive_cmds_need_lc | |
14329 | ||
14330 | # Whether or not to disallow shared libs when runtime libs are static. | |
14331 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14332 | ||
14333 | # Compiler flag to allow reflexive dlopens. | |
14334 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
14335 | ||
14336 | # Compiler flag to generate shared objects directly from archives. | |
14337 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
14338 | ||
14339 | # Whether the compiler copes with passing no objects directly. | |
14340 | compiler_needs_object=$lt_compiler_needs_object | |
14341 | ||
14342 | # Create an old-style archive from a shared archive. | |
14343 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
14344 | ||
14345 | # Create a temporary old-style archive to link instead of a shared archive. | |
14346 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
14347 | ||
14348 | # Commands used to build a shared archive. | |
14349 | archive_cmds=$lt_archive_cmds | |
14350 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
14351 | ||
14352 | # Commands used to build a loadable module if different from building | |
14353 | # a shared archive. | |
14354 | module_cmds=$lt_module_cmds | |
14355 | module_expsym_cmds=$lt_module_expsym_cmds | |
14356 | ||
14357 | # Whether we are building with GNU ld or not. | |
14358 | with_gnu_ld=$lt_with_gnu_ld | |
14359 | ||
14360 | # Flag that allows shared libraries with undefined symbols to be built. | |
14361 | allow_undefined_flag=$lt_allow_undefined_flag | |
14362 | ||
14363 | # Flag that enforces no undefined symbols. | |
14364 | no_undefined_flag=$lt_no_undefined_flag | |
14365 | ||
14366 | # Flag to hardcode \$libdir into a binary during linking. | |
14367 | # This must work even if \$libdir does not exist | |
14368 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
14369 | ||
14370 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
14371 | # during linking. This must work even if \$libdir does not exist. | |
14372 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
14373 | ||
14374 | # Whether we need a single "-rpath" flag with a separated argument. | |
14375 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
14376 | ||
14377 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14378 | # DIR into the resulting binary. | |
14379 | hardcode_direct=$hardcode_direct | |
14380 | ||
14381 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14382 | # DIR into the resulting binary and the resulting library dependency is | |
14383 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14384 | # library is relocated. | |
14385 | hardcode_direct_absolute=$hardcode_direct_absolute | |
14386 | ||
14387 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
14388 | # into the resulting binary. | |
14389 | hardcode_minus_L=$hardcode_minus_L | |
14390 | ||
14391 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
14392 | # into the resulting binary. | |
14393 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
14394 | ||
14395 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
14396 | # into the library and all subsequent libraries and executables linked | |
14397 | # against it. | |
14398 | hardcode_automatic=$hardcode_automatic | |
14399 | ||
14400 | # Set to yes if linker adds runtime paths of dependent libraries | |
14401 | # to runtime path list. | |
14402 | inherit_rpath=$inherit_rpath | |
14403 | ||
14404 | # Whether libtool must link a program against all its dependency libraries. | |
14405 | link_all_deplibs=$link_all_deplibs | |
14406 | ||
14407 | # Fix the shell variable \$srcfile for the compiler. | |
14408 | fix_srcfile_path=$lt_fix_srcfile_path | |
14409 | ||
14410 | # Set to "yes" if exported symbols are required. | |
14411 | always_export_symbols=$always_export_symbols | |
14412 | ||
14413 | # The commands to list exported symbols. | |
14414 | export_symbols_cmds=$lt_export_symbols_cmds | |
14415 | ||
14416 | # Symbols that should not be listed in the preloaded symbols. | |
14417 | exclude_expsyms=$lt_exclude_expsyms | |
14418 | ||
14419 | # Symbols that must always be exported. | |
14420 | include_expsyms=$lt_include_expsyms | |
14421 | ||
14422 | # Commands necessary for linking programs (against libraries) with templates. | |
14423 | prelink_cmds=$lt_prelink_cmds | |
14424 | ||
14425 | # Specify filename containing input files. | |
14426 | file_list_spec=$lt_file_list_spec | |
14427 | ||
14428 | # How to hardcode a shared library path into an executable. | |
14429 | hardcode_action=$hardcode_action | |
14430 | ||
14431 | # ### END LIBTOOL CONFIG | |
14432 | ||
14433 | _LT_EOF | |
14434 | ||
14435 | case $host_os in | |
14436 | aix3*) | |
14437 | cat <<\_LT_EOF >> "$cfgfile" | |
14438 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14439 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14440 | # vanish in a puff of smoke. | |
14441 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14442 | COLLECT_NAMES= | |
14443 | export COLLECT_NAMES | |
14444 | fi | |
14445 | _LT_EOF | |
14446 | ;; | |
14447 | esac | |
14448 | ||
14449 | ||
14450 | ltmain="$ac_aux_dir/ltmain.sh" | |
14451 | ||
14452 | ||
14453 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14454 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14455 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14456 | # is reportedly fixed, but why not run on old versions too? | |
14457 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14458 | || (rm -f "$cfgfile"; exit 1) | |
14459 | ||
14460 | case $xsi_shell in | |
14461 | yes) | |
14462 | cat << \_LT_EOF >> "$cfgfile" | |
14463 | ||
14464 | # func_dirname file append nondir_replacement | |
14465 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14466 | # otherwise set result to NONDIR_REPLACEMENT. | |
14467 | func_dirname () | |
14468 | { | |
14469 | case ${1} in | |
14470 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14471 | * ) func_dirname_result="${3}" ;; | |
14472 | esac | |
14473 | } | |
14474 | ||
14475 | # func_basename file | |
14476 | func_basename () | |
14477 | { | |
14478 | func_basename_result="${1##*/}" | |
14479 | } | |
14480 | ||
14481 | # func_dirname_and_basename file append nondir_replacement | |
14482 | # perform func_basename and func_dirname in a single function | |
14483 | # call: | |
14484 | # dirname: Compute the dirname of FILE. If nonempty, | |
14485 | # add APPEND to the result, otherwise set result | |
14486 | # to NONDIR_REPLACEMENT. | |
14487 | # value returned in "$func_dirname_result" | |
14488 | # basename: Compute filename of FILE. | |
14489 | # value retuned in "$func_basename_result" | |
14490 | # Implementation must be kept synchronized with func_dirname | |
14491 | # and func_basename. For efficiency, we do not delegate to | |
14492 | # those functions but instead duplicate the functionality here. | |
14493 | func_dirname_and_basename () | |
14494 | { | |
14495 | case ${1} in | |
14496 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14497 | * ) func_dirname_result="${3}" ;; | |
14498 | esac | |
14499 | func_basename_result="${1##*/}" | |
14500 | } | |
14501 | ||
14502 | # func_stripname prefix suffix name | |
14503 | # strip PREFIX and SUFFIX off of NAME. | |
14504 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14505 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14506 | # dot (in which case that matches only a dot). | |
14507 | func_stripname () | |
14508 | { | |
14509 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
14510 | # positional parameters, so assign one to ordinary parameter first. | |
14511 | func_stripname_result=${3} | |
14512 | func_stripname_result=${func_stripname_result#"${1}"} | |
14513 | func_stripname_result=${func_stripname_result%"${2}"} | |
14514 | } | |
14515 | ||
14516 | # func_opt_split | |
14517 | func_opt_split () | |
14518 | { | |
14519 | func_opt_split_opt=${1%%=*} | |
14520 | func_opt_split_arg=${1#*=} | |
14521 | } | |
14522 | ||
14523 | # func_lo2o object | |
14524 | func_lo2o () | |
14525 | { | |
14526 | case ${1} in | |
14527 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
14528 | *) func_lo2o_result=${1} ;; | |
14529 | esac | |
14530 | } | |
14531 | ||
14532 | # func_xform libobj-or-source | |
14533 | func_xform () | |
14534 | { | |
14535 | func_xform_result=${1%.*}.lo | |
14536 | } | |
14537 | ||
14538 | # func_arith arithmetic-term... | |
14539 | func_arith () | |
14540 | { | |
14541 | func_arith_result=$(( $* )) | |
14542 | } | |
14543 | ||
14544 | # func_len string | |
14545 | # STRING may not start with a hyphen. | |
14546 | func_len () | |
14547 | { | |
14548 | func_len_result=${#1} | |
14549 | } | |
14550 | ||
14551 | _LT_EOF | |
14552 | ;; | |
14553 | *) # Bourne compatible functions. | |
14554 | cat << \_LT_EOF >> "$cfgfile" | |
14555 | ||
14556 | # func_dirname file append nondir_replacement | |
14557 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14558 | # otherwise set result to NONDIR_REPLACEMENT. | |
14559 | func_dirname () | |
14560 | { | |
14561 | # Extract subdirectory from the argument. | |
14562 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
14563 | if test "X$func_dirname_result" = "X${1}"; then | |
14564 | func_dirname_result="${3}" | |
14565 | else | |
14566 | func_dirname_result="$func_dirname_result${2}" | |
14567 | fi | |
14568 | } | |
14569 | ||
14570 | # func_basename file | |
14571 | func_basename () | |
14572 | { | |
14573 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
14574 | } | |
14575 | ||
14576 | ||
14577 | # func_stripname prefix suffix name | |
14578 | # strip PREFIX and SUFFIX off of NAME. | |
14579 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14580 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14581 | # dot (in which case that matches only a dot). | |
14582 | # func_strip_suffix prefix name | |
14583 | func_stripname () | |
14584 | { | |
14585 | case ${2} in | |
14586 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
14587 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
14588 | esac | |
14589 | } | |
14590 | ||
14591 | # sed scripts: | |
14592 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14593 | my_sed_long_arg='1s/^-[^=]*=//' | |
14594 | ||
14595 | # func_opt_split | |
14596 | func_opt_split () | |
14597 | { | |
14598 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
14599 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
14600 | } | |
14601 | ||
14602 | # func_lo2o object | |
14603 | func_lo2o () | |
14604 | { | |
14605 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
14606 | } | |
14607 | ||
14608 | # func_xform libobj-or-source | |
14609 | func_xform () | |
14610 | { | |
14611 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
14612 | } | |
14613 | ||
14614 | # func_arith arithmetic-term... | |
14615 | func_arith () | |
14616 | { | |
14617 | func_arith_result=`expr "$@"` | |
14618 | } | |
14619 | ||
14620 | # func_len string | |
14621 | # STRING may not start with a hyphen. | |
14622 | func_len () | |
14623 | { | |
14624 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14625 | } | |
14626 | ||
14627 | _LT_EOF | |
14628 | esac | |
14629 | ||
14630 | case $lt_shell_append in | |
14631 | yes) | |
14632 | cat << \_LT_EOF >> "$cfgfile" | |
14633 | ||
14634 | # func_append var value | |
14635 | # Append VALUE to the end of shell variable VAR. | |
14636 | func_append () | |
14637 | { | |
14638 | eval "$1+=\$2" | |
14639 | } | |
14640 | _LT_EOF | |
14641 | ;; | |
14642 | *) | |
14643 | cat << \_LT_EOF >> "$cfgfile" | |
14644 | ||
14645 | # func_append var value | |
14646 | # Append VALUE to the end of shell variable VAR. | |
14647 | func_append () | |
14648 | { | |
14649 | eval "$1=\$$1\$2" | |
14650 | } | |
14651 | ||
14652 | _LT_EOF | |
14653 | ;; | |
14654 | esac | |
14655 | ||
14656 | ||
14657 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14658 | || (rm -f "$cfgfile"; exit 1) | |
14659 | ||
14660 | mv -f "$cfgfile" "$ofile" || | |
14661 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14662 | chmod +x "$ofile" | |
14663 | ||
14664 | ;; | |
ef016f83 MF |
14665 | "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." |
14666 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
14667 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
14668 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
14669 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
14670 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ | |
14671 | <Makefile.sim >Makefile | |
14672 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp | |
14673 | ;; | |
14674 | "stamp-h":C) echo > stamp-h ;; | |
14675 | ||
14676 | esac | |
14677 | done # for ac_tag | |
14678 | ||
14679 | ||
14680 | as_fn_exit 0 | |
14681 | _ACEOF | |
14682 | ac_clean_files=$ac_clean_files_save | |
14683 | ||
14684 | test $ac_write_fail = 0 || | |
d0ac1c44 | 14685 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ef016f83 MF |
14686 | |
14687 | ||
14688 | # configure is writing to config.log, and then calls config.status. | |
14689 | # config.status does its own redirection, appending to config.log. | |
14690 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14691 | # by configure, so config.status won't be able to write to it; its | |
14692 | # output is simply discarded. So we exec the FD to /dev/null, | |
14693 | # effectively closing config.log, so it can be properly (re)opened and | |
14694 | # appended to by config.status. When coming back to configure, we | |
14695 | # need to make the FD available again. | |
14696 | if test "$no_create" != yes; then | |
14697 | ac_cs_success=: | |
14698 | ac_config_status_args= | |
14699 | test "$silent" = yes && | |
14700 | ac_config_status_args="$ac_config_status_args --quiet" | |
14701 | exec 5>/dev/null | |
14702 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14703 | exec 5>>config.log | |
14704 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14705 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 14706 | $ac_cs_success || as_fn_exit 1 |
ef016f83 MF |
14707 | fi |
14708 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
14709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14710 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
14711 | fi | |
14712 | ||
14713 |