Commit | Line | Data |
---|---|---|
87326c78 DD |
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. | |
87326c78 | 7 | # |
87326c78 DD |
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= |
87326c78 DD |
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;} | |
87326c78 DD |
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" | |
87326c78 DD |
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" | |
87326c78 DD |
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 | |
87326c78 DD |
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" |
87326c78 DD |
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 | |
87326c78 DD |
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 | # ---------------------------------------- | |
87326c78 DD |
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. |
87326c78 DD |
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 | |
87326c78 | 422 | fi |
d0ac1c44 | 423 | $as_echo "$as_me: error: $2" >&2 |
87326c78 DD |
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 | |
87326c78 DD |
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'. |
87326c78 | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 536 | as_ln_s='cp -pR' |
87326c78 DD |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
87326c78 DD |
541 | fi |
542 | else | |
d0ac1c44 | 543 | as_ln_s='cp -pR' |
87326c78 DD |
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 | |
87326c78 DD |
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 | ||
87326c78 | 566 | |
d0ac1c44 SM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
87326c78 DD |
569 | |
570 | # Name of the host. | |
d0ac1c44 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
87326c78 DD |
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 | |
634 | cgen_breaks | |
635 | REPORT_BUGS_TEXI | |
636 | REPORT_BUGS_TO | |
637 | PKGVERSION | |
87326c78 | 638 | MAINT |
31e6ad7d MF |
639 | MAINTAINER_MODE_FALSE |
640 | MAINTAINER_MODE_TRUE | |
6bb11ab3 L |
641 | lt_cv_dlopen_libs |
642 | OTOOL64 | |
643 | OTOOL | |
644 | LIPO | |
645 | NMEDIT | |
646 | DSYMUTIL | |
647 | AWK | |
648 | STRIP | |
649 | OBJDUMP | |
650 | LN_S | |
651 | NM | |
652 | ac_ct_DUMPBIN | |
653 | DUMPBIN | |
654 | LD | |
655 | FGREP | |
656 | SED | |
657 | LIBTOOL | |
658 | PLUGINS_FALSE | |
659 | PLUGINS_TRUE | |
aadc9410 MF |
660 | zlibinc |
661 | zlibdir | |
87326c78 DD |
662 | CATOBJEXT |
663 | GENCAT | |
664 | INSTOBJEXT | |
665 | DATADIRNAME | |
666 | CATALOGS | |
667 | POSUB | |
668 | GMSGFMT | |
669 | XGETTEXT | |
670 | INCINTL | |
671 | LIBINTL_DEP | |
672 | LIBINTL | |
673 | USE_NLS | |
db2e4d67 MF |
674 | GMAKE_FALSE |
675 | GMAKE_TRUE | |
676 | MAKE | |
677 | CCDEPMODE | |
678 | DEPDIR | |
679 | am__leading_dot | |
5f3ef9d0 | 680 | PACKAGE |
46f900c0 | 681 | C_DIALECT |
87326c78 DD |
682 | RANLIB |
683 | AR | |
684 | HDEFINES | |
685 | CC_FOR_BUILD | |
686 | INSTALL_DATA | |
687 | INSTALL_SCRIPT | |
688 | INSTALL_PROGRAM | |
2232061b MF |
689 | EGREP |
690 | GREP | |
691 | CPP | |
87326c78 DD |
692 | target_os |
693 | target_vendor | |
694 | target_cpu | |
695 | target | |
696 | host_os | |
697 | host_vendor | |
698 | host_cpu | |
699 | host | |
700 | build_os | |
701 | build_vendor | |
702 | build_cpu | |
703 | build | |
704 | OBJEXT | |
705 | EXEEXT | |
706 | ac_ct_CC | |
707 | CPPFLAGS | |
708 | LDFLAGS | |
709 | CFLAGS | |
710 | CC | |
711 | WERROR_CFLAGS | |
712 | WARN_CFLAGS | |
87326c78 | 713 | sim_reserved_bits |
87326c78 DD |
714 | sim_inline |
715 | sim_hw | |
716 | sim_hw_objs | |
717 | sim_hw_cflags | |
718 | sim_default_model | |
719 | sim_scache | |
720 | sim_float | |
87326c78 DD |
721 | sim_endian |
722 | sim_bitsize | |
87326c78 | 723 | sim_alignment |
87326c78 DD |
724 | target_alias |
725 | host_alias | |
726 | build_alias | |
727 | LIBS | |
728 | ECHO_T | |
729 | ECHO_N | |
730 | ECHO_C | |
731 | DEFS | |
732 | mandir | |
733 | localedir | |
734 | libdir | |
735 | psdir | |
736 | pdfdir | |
737 | dvidir | |
738 | htmldir | |
739 | infodir | |
740 | docdir | |
741 | oldincludedir | |
742 | includedir | |
743 | localstatedir | |
744 | sharedstatedir | |
745 | sysconfdir | |
746 | datadir | |
747 | datarootdir | |
748 | libexecdir | |
749 | sbindir | |
750 | bindir | |
751 | program_transform_name | |
752 | prefix | |
753 | exec_prefix | |
754 | PACKAGE_URL | |
755 | PACKAGE_BUGREPORT | |
756 | PACKAGE_STRING | |
757 | PACKAGE_VERSION | |
758 | PACKAGE_TARNAME | |
759 | PACKAGE_NAME | |
760 | PATH_SEPARATOR | |
761 | SHELL' | |
762 | ac_subst_files='' | |
763 | ac_user_opts=' | |
764 | enable_option_checking | |
aadc9410 | 765 | with_system_zlib |
6bb11ab3 L |
766 | enable_plugins |
767 | enable_shared | |
768 | enable_static | |
769 | with_pic | |
770 | enable_fast_install | |
771 | with_gnu_ld | |
772 | enable_libtool_lock | |
87326c78 | 773 | enable_maintainer_mode |
87326c78 DD |
774 | enable_sim_debug |
775 | enable_sim_stdio | |
776 | enable_sim_trace | |
777 | enable_sim_profile | |
35656e95 | 778 | enable_sim_assert |
16f7876d | 779 | enable_sim_environment |
347fe5bb | 780 | enable_sim_inline |
87326c78 DD |
781 | with_pkgversion |
782 | with_bugurl | |
783 | ' | |
784 | ac_precious_vars='build_alias | |
785 | host_alias | |
786 | target_alias | |
787 | CC | |
788 | CFLAGS | |
789 | LDFLAGS | |
790 | LIBS | |
791 | CPPFLAGS | |
792 | CPP' | |
793 | ||
794 | ||
795 | # Initialize some variables set by options. | |
796 | ac_init_help= | |
797 | ac_init_version=false | |
798 | ac_unrecognized_opts= | |
799 | ac_unrecognized_sep= | |
800 | # The variables have the same names as the options, with | |
801 | # dashes changed to underlines. | |
802 | cache_file=/dev/null | |
803 | exec_prefix=NONE | |
804 | no_create= | |
805 | no_recursion= | |
806 | prefix=NONE | |
807 | program_prefix=NONE | |
808 | program_suffix=NONE | |
809 | program_transform_name=s,x,x, | |
810 | silent= | |
811 | site= | |
812 | srcdir= | |
813 | verbose= | |
814 | x_includes=NONE | |
815 | x_libraries=NONE | |
816 | ||
817 | # Installation directory options. | |
818 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
819 | # and all the variables that are supposed to be based on exec_prefix | |
820 | # by default will actually change. | |
821 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
822 | # (The list follows the same order as the GNU Coding Standards.) | |
823 | bindir='${exec_prefix}/bin' | |
824 | sbindir='${exec_prefix}/sbin' | |
825 | libexecdir='${exec_prefix}/libexec' | |
826 | datarootdir='${prefix}/share' | |
827 | datadir='${datarootdir}' | |
828 | sysconfdir='${prefix}/etc' | |
829 | sharedstatedir='${prefix}/com' | |
830 | localstatedir='${prefix}/var' | |
831 | includedir='${prefix}/include' | |
832 | oldincludedir='/usr/include' | |
833 | docdir='${datarootdir}/doc/${PACKAGE}' | |
834 | infodir='${datarootdir}/info' | |
835 | htmldir='${docdir}' | |
836 | dvidir='${docdir}' | |
837 | pdfdir='${docdir}' | |
838 | psdir='${docdir}' | |
839 | libdir='${exec_prefix}/lib' | |
840 | localedir='${datarootdir}/locale' | |
841 | mandir='${datarootdir}/man' | |
842 | ||
843 | ac_prev= | |
844 | ac_dashdash= | |
845 | for ac_option | |
846 | do | |
847 | # If the previous option needs an argument, assign it. | |
848 | if test -n "$ac_prev"; then | |
849 | eval $ac_prev=\$ac_option | |
850 | ac_prev= | |
851 | continue | |
852 | fi | |
853 | ||
854 | case $ac_option in | |
d0ac1c44 SM |
855 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
856 | *=) ac_optarg= ;; | |
857 | *) ac_optarg=yes ;; | |
87326c78 DD |
858 | esac |
859 | ||
860 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
861 | ||
862 | case $ac_dashdash$ac_option in | |
863 | --) | |
864 | ac_dashdash=yes ;; | |
865 | ||
866 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
867 | ac_prev=bindir ;; | |
868 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
869 | bindir=$ac_optarg ;; | |
870 | ||
871 | -build | --build | --buil | --bui | --bu) | |
872 | ac_prev=build_alias ;; | |
873 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
874 | build_alias=$ac_optarg ;; | |
875 | ||
876 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
877 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
878 | ac_prev=cache_file ;; | |
879 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
880 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
881 | cache_file=$ac_optarg ;; | |
882 | ||
883 | --config-cache | -C) | |
884 | cache_file=config.cache ;; | |
885 | ||
886 | -datadir | --datadir | --datadi | --datad) | |
887 | ac_prev=datadir ;; | |
888 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
889 | datadir=$ac_optarg ;; | |
890 | ||
891 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
892 | | --dataroo | --dataro | --datar) | |
893 | ac_prev=datarootdir ;; | |
894 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
895 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
896 | datarootdir=$ac_optarg ;; | |
897 | ||
898 | -disable-* | --disable-*) | |
899 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
900 | # Reject names that are not valid shell variable names. | |
901 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 902 | as_fn_error $? "invalid feature name: $ac_useropt" |
87326c78 DD |
903 | ac_useropt_orig=$ac_useropt |
904 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
905 | case $ac_user_opts in | |
906 | *" | |
907 | "enable_$ac_useropt" | |
908 | "*) ;; | |
909 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
910 | ac_unrecognized_sep=', ';; | |
911 | esac | |
912 | eval enable_$ac_useropt=no ;; | |
913 | ||
914 | -docdir | --docdir | --docdi | --doc | --do) | |
915 | ac_prev=docdir ;; | |
916 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
917 | docdir=$ac_optarg ;; | |
918 | ||
919 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
920 | ac_prev=dvidir ;; | |
921 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
922 | dvidir=$ac_optarg ;; | |
923 | ||
924 | -enable-* | --enable-*) | |
925 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
926 | # Reject names that are not valid shell variable names. | |
927 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 928 | as_fn_error $? "invalid feature name: $ac_useropt" |
87326c78 DD |
929 | ac_useropt_orig=$ac_useropt |
930 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
931 | case $ac_user_opts in | |
932 | *" | |
933 | "enable_$ac_useropt" | |
934 | "*) ;; | |
935 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
936 | ac_unrecognized_sep=', ';; | |
937 | esac | |
938 | eval enable_$ac_useropt=\$ac_optarg ;; | |
939 | ||
940 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
941 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
942 | | --exec | --exe | --ex) | |
943 | ac_prev=exec_prefix ;; | |
944 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
945 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
946 | | --exec=* | --exe=* | --ex=*) | |
947 | exec_prefix=$ac_optarg ;; | |
948 | ||
949 | -gas | --gas | --ga | --g) | |
950 | # Obsolete; use --with-gas. | |
951 | with_gas=yes ;; | |
952 | ||
953 | -help | --help | --hel | --he | -h) | |
954 | ac_init_help=long ;; | |
955 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
956 | ac_init_help=recursive ;; | |
957 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
958 | ac_init_help=short ;; | |
959 | ||
960 | -host | --host | --hos | --ho) | |
961 | ac_prev=host_alias ;; | |
962 | -host=* | --host=* | --hos=* | --ho=*) | |
963 | host_alias=$ac_optarg ;; | |
964 | ||
965 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
966 | ac_prev=htmldir ;; | |
967 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
968 | | --ht=*) | |
969 | htmldir=$ac_optarg ;; | |
970 | ||
971 | -includedir | --includedir | --includedi | --included | --include \ | |
972 | | --includ | --inclu | --incl | --inc) | |
973 | ac_prev=includedir ;; | |
974 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
975 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
976 | includedir=$ac_optarg ;; | |
977 | ||
978 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
979 | ac_prev=infodir ;; | |
980 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
981 | infodir=$ac_optarg ;; | |
982 | ||
983 | -libdir | --libdir | --libdi | --libd) | |
984 | ac_prev=libdir ;; | |
985 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
986 | libdir=$ac_optarg ;; | |
987 | ||
988 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
989 | | --libexe | --libex | --libe) | |
990 | ac_prev=libexecdir ;; | |
991 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
992 | | --libexe=* | --libex=* | --libe=*) | |
993 | libexecdir=$ac_optarg ;; | |
994 | ||
995 | -localedir | --localedir | --localedi | --localed | --locale) | |
996 | ac_prev=localedir ;; | |
997 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
998 | localedir=$ac_optarg ;; | |
999 | ||
1000 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1001 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1002 | ac_prev=localstatedir ;; | |
1003 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1004 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1005 | localstatedir=$ac_optarg ;; | |
1006 | ||
1007 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1008 | ac_prev=mandir ;; | |
1009 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1010 | mandir=$ac_optarg ;; | |
1011 | ||
1012 | -nfp | --nfp | --nf) | |
1013 | # Obsolete; use --without-fp. | |
1014 | with_fp=no ;; | |
1015 | ||
1016 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1017 | | --no-cr | --no-c | -n) | |
1018 | no_create=yes ;; | |
1019 | ||
1020 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1021 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1022 | no_recursion=yes ;; | |
1023 | ||
1024 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1025 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1026 | | --oldin | --oldi | --old | --ol | --o) | |
1027 | ac_prev=oldincludedir ;; | |
1028 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1029 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1030 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1031 | oldincludedir=$ac_optarg ;; | |
1032 | ||
1033 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1034 | ac_prev=prefix ;; | |
1035 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1036 | prefix=$ac_optarg ;; | |
1037 | ||
1038 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1039 | | --program-pre | --program-pr | --program-p) | |
1040 | ac_prev=program_prefix ;; | |
1041 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1042 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1043 | program_prefix=$ac_optarg ;; | |
1044 | ||
1045 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1046 | | --program-suf | --program-su | --program-s) | |
1047 | ac_prev=program_suffix ;; | |
1048 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1049 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1050 | program_suffix=$ac_optarg ;; | |
1051 | ||
1052 | -program-transform-name | --program-transform-name \ | |
1053 | | --program-transform-nam | --program-transform-na \ | |
1054 | | --program-transform-n | --program-transform- \ | |
1055 | | --program-transform | --program-transfor \ | |
1056 | | --program-transfo | --program-transf \ | |
1057 | | --program-trans | --program-tran \ | |
1058 | | --progr-tra | --program-tr | --program-t) | |
1059 | ac_prev=program_transform_name ;; | |
1060 | -program-transform-name=* | --program-transform-name=* \ | |
1061 | | --program-transform-nam=* | --program-transform-na=* \ | |
1062 | | --program-transform-n=* | --program-transform-=* \ | |
1063 | | --program-transform=* | --program-transfor=* \ | |
1064 | | --program-transfo=* | --program-transf=* \ | |
1065 | | --program-trans=* | --program-tran=* \ | |
1066 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1067 | program_transform_name=$ac_optarg ;; | |
1068 | ||
1069 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1070 | ac_prev=pdfdir ;; | |
1071 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1072 | pdfdir=$ac_optarg ;; | |
1073 | ||
1074 | -psdir | --psdir | --psdi | --psd | --ps) | |
1075 | ac_prev=psdir ;; | |
1076 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1077 | psdir=$ac_optarg ;; | |
1078 | ||
1079 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1080 | | -silent | --silent | --silen | --sile | --sil) | |
1081 | silent=yes ;; | |
1082 | ||
1083 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1084 | ac_prev=sbindir ;; | |
1085 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1086 | | --sbi=* | --sb=*) | |
1087 | sbindir=$ac_optarg ;; | |
1088 | ||
1089 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1090 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1091 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1092 | | --sha | --sh) | |
1093 | ac_prev=sharedstatedir ;; | |
1094 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1095 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1096 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1097 | | --sha=* | --sh=*) | |
1098 | sharedstatedir=$ac_optarg ;; | |
1099 | ||
1100 | -site | --site | --sit) | |
1101 | ac_prev=site ;; | |
1102 | -site=* | --site=* | --sit=*) | |
1103 | site=$ac_optarg ;; | |
1104 | ||
1105 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1106 | ac_prev=srcdir ;; | |
1107 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1108 | srcdir=$ac_optarg ;; | |
1109 | ||
1110 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1111 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1112 | ac_prev=sysconfdir ;; | |
1113 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1114 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1115 | sysconfdir=$ac_optarg ;; | |
1116 | ||
1117 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1118 | ac_prev=target_alias ;; | |
1119 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1120 | target_alias=$ac_optarg ;; | |
1121 | ||
1122 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1123 | verbose=yes ;; | |
1124 | ||
1125 | -version | --version | --versio | --versi | --vers | -V) | |
1126 | ac_init_version=: ;; | |
1127 | ||
1128 | -with-* | --with-*) | |
1129 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1130 | # Reject names that are not valid shell variable names. | |
1131 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 1132 | as_fn_error $? "invalid package name: $ac_useropt" |
87326c78 DD |
1133 | ac_useropt_orig=$ac_useropt |
1134 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1135 | case $ac_user_opts in | |
1136 | *" | |
1137 | "with_$ac_useropt" | |
1138 | "*) ;; | |
1139 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1140 | ac_unrecognized_sep=', ';; | |
1141 | esac | |
1142 | eval with_$ac_useropt=\$ac_optarg ;; | |
1143 | ||
1144 | -without-* | --without-*) | |
1145 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
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" |
87326c78 DD |
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--without-$ac_useropt_orig" | |
1156 | ac_unrecognized_sep=', ';; | |
1157 | esac | |
1158 | eval with_$ac_useropt=no ;; | |
1159 | ||
1160 | --x) | |
1161 | # Obsolete; use --with-x. | |
1162 | with_x=yes ;; | |
1163 | ||
1164 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1165 | | --x-incl | --x-inc | --x-in | --x-i) | |
1166 | ac_prev=x_includes ;; | |
1167 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1168 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1169 | x_includes=$ac_optarg ;; | |
1170 | ||
1171 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1172 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1173 | ac_prev=x_libraries ;; | |
1174 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1175 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1176 | x_libraries=$ac_optarg ;; | |
1177 | ||
d0ac1c44 SM |
1178 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1179 | Try \`$0 --help' for more information" | |
87326c78 DD |
1180 | ;; |
1181 | ||
1182 | *=*) | |
1183 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1184 | # Reject names that are not valid shell variable names. | |
1185 | case $ac_envvar in #( | |
1186 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1187 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
87326c78 DD |
1188 | esac |
1189 | eval $ac_envvar=\$ac_optarg | |
1190 | export $ac_envvar ;; | |
1191 | ||
1192 | *) | |
1193 | # FIXME: should be removed in autoconf 3.0. | |
1194 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1195 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1196 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
d0ac1c44 | 1197 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
87326c78 DD |
1198 | ;; |
1199 | ||
1200 | esac | |
1201 | done | |
1202 | ||
1203 | if test -n "$ac_prev"; then | |
1204 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
d0ac1c44 | 1205 | as_fn_error $? "missing argument to $ac_option" |
87326c78 DD |
1206 | fi |
1207 | ||
1208 | if test -n "$ac_unrecognized_opts"; then | |
1209 | case $enable_option_checking in | |
1210 | no) ;; | |
d0ac1c44 | 1211 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
87326c78 DD |
1212 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1213 | esac | |
1214 | fi | |
1215 | ||
1216 | # Check all directory arguments for consistency. | |
1217 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1218 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1219 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1220 | libdir localedir mandir | |
1221 | do | |
1222 | eval ac_val=\$$ac_var | |
1223 | # Remove trailing slashes. | |
1224 | case $ac_val in | |
1225 | */ ) | |
1226 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1227 | eval $ac_var=\$ac_val;; | |
1228 | esac | |
1229 | # Be sure to have absolute directory names. | |
1230 | case $ac_val in | |
1231 | [\\/$]* | ?:[\\/]* ) continue;; | |
1232 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1233 | esac | |
d0ac1c44 | 1234 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
87326c78 DD |
1235 | done |
1236 | ||
1237 | # There might be people who depend on the old broken behavior: `$host' | |
1238 | # used to hold the argument of --host etc. | |
1239 | # FIXME: To remove some day. | |
1240 | build=$build_alias | |
1241 | host=$host_alias | |
1242 | target=$target_alias | |
1243 | ||
1244 | # FIXME: To remove some day. | |
1245 | if test "x$host_alias" != x; then | |
1246 | if test "x$build_alias" = x; then | |
1247 | cross_compiling=maybe | |
87326c78 DD |
1248 | elif test "x$build_alias" != "x$host_alias"; then |
1249 | cross_compiling=yes | |
1250 | fi | |
1251 | fi | |
1252 | ||
1253 | ac_tool_prefix= | |
1254 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1255 | ||
1256 | test "$silent" = yes && exec 6>/dev/null | |
1257 | ||
1258 | ||
1259 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1260 | ac_ls_di=`ls -di .` && | |
1261 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1262 | as_fn_error $? "working directory cannot be determined" |
87326c78 | 1263 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1264 | as_fn_error $? "pwd does not report name of working directory" |
87326c78 DD |
1265 | |
1266 | ||
1267 | # Find the source files, if location was not specified. | |
1268 | if test -z "$srcdir"; then | |
1269 | ac_srcdir_defaulted=yes | |
1270 | # Try the directory containing this script, then the parent directory. | |
1271 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1272 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1273 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1274 | X"$as_myself" : 'X\(//\)$' \| \ | |
1275 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1276 | $as_echo X"$as_myself" | | |
1277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1278 | s//\1/ | |
1279 | q | |
1280 | } | |
1281 | /^X\(\/\/\)[^/].*/{ | |
1282 | s//\1/ | |
1283 | q | |
1284 | } | |
1285 | /^X\(\/\/\)$/{ | |
1286 | s//\1/ | |
1287 | q | |
1288 | } | |
1289 | /^X\(\/\).*/{ | |
1290 | s//\1/ | |
1291 | q | |
1292 | } | |
1293 | s/.*/./; q'` | |
1294 | srcdir=$ac_confdir | |
1295 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1296 | srcdir=.. | |
1297 | fi | |
1298 | else | |
1299 | ac_srcdir_defaulted=no | |
1300 | fi | |
1301 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1302 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1303 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
87326c78 DD |
1304 | fi |
1305 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1306 | ac_abs_confdir=`( | |
d0ac1c44 | 1307 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
87326c78 DD |
1308 | pwd)` |
1309 | # When building in place, set srcdir=. | |
1310 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1311 | srcdir=. | |
1312 | fi | |
1313 | # Remove unnecessary trailing slashes from srcdir. | |
1314 | # Double slashes in file names in object file debugging info | |
1315 | # mess up M-x gdb in Emacs. | |
1316 | case $srcdir in | |
1317 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1318 | esac | |
1319 | for ac_var in $ac_precious_vars; do | |
1320 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1321 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1322 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1323 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1324 | done | |
1325 | ||
1326 | # | |
1327 | # Report the --help message. | |
1328 | # | |
1329 | if test "$ac_init_help" = "long"; then | |
1330 | # Omit some internal or obsolete options to make the list less imposing. | |
1331 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1332 | cat <<_ACEOF | |
1333 | \`configure' configures this package to adapt to many kinds of systems. | |
1334 | ||
1335 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1336 | ||
1337 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1338 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1339 | ||
1340 | Defaults for the options are specified in brackets. | |
1341 | ||
1342 | Configuration: | |
1343 | -h, --help display this help and exit | |
1344 | --help=short display options specific to this package | |
1345 | --help=recursive display the short help of all the included packages | |
1346 | -V, --version display version information and exit | |
d0ac1c44 | 1347 | -q, --quiet, --silent do not print \`checking ...' messages |
87326c78 DD |
1348 | --cache-file=FILE cache test results in FILE [disabled] |
1349 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1350 | -n, --no-create do not create output files | |
1351 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1352 | ||
1353 | Installation directories: | |
1354 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1355 | [$ac_default_prefix] | |
1356 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1357 | [PREFIX] | |
1358 | ||
1359 | By default, \`make install' will install all the files in | |
1360 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1361 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1362 | for instance \`--prefix=\$HOME'. | |
1363 | ||
1364 | For better control, use the options below. | |
1365 | ||
1366 | Fine tuning of the installation directories: | |
1367 | --bindir=DIR user executables [EPREFIX/bin] | |
1368 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1369 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1370 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1371 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1372 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1373 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1374 | --includedir=DIR C header files [PREFIX/include] | |
1375 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1376 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1377 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1378 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1379 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1380 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1381 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1382 | --htmldir=DIR html documentation [DOCDIR] | |
1383 | --dvidir=DIR dvi documentation [DOCDIR] | |
1384 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1385 | --psdir=DIR ps documentation [DOCDIR] | |
1386 | _ACEOF | |
1387 | ||
1388 | cat <<\_ACEOF | |
1389 | ||
1390 | Program names: | |
1391 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1392 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1393 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1394 | ||
1395 | System types: | |
1396 | --build=BUILD configure for building on BUILD [guessed] | |
1397 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1398 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1399 | _ACEOF | |
1400 | fi | |
1401 | ||
1402 | if test -n "$ac_init_help"; then | |
1403 | ||
1404 | cat <<\_ACEOF | |
1405 | ||
1406 | Optional Features: | |
1407 | --disable-option-checking ignore unrecognized --enable/--with options | |
1408 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1409 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
faa743bb | 1410 | --enable-plugins Enable support for plugins |
6bb11ab3 L |
1411 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1412 | --enable-static[=PKGS] build static libraries [default=yes] | |
1413 | --enable-fast-install[=PKGS] | |
1414 | optimize for fast installation [default=yes] | |
1415 | --disable-libtool-lock avoid locking (might break parallel builds) | |
d0ac1c44 SM |
1416 | --enable-maintainer-mode |
1417 | enable make rules and dependencies not useful (and | |
1418 | sometimes confusing) to the casual installer | |
8d0978fb MF |
1419 | --enable-sim-debug=opts Enable debugging flags (for developers of the sim |
1420 | itself) | |
1421 | --enable-sim-stdio Specify whether to use stdio for console | |
1422 | input/output | |
1423 | --enable-sim-trace=opts Enable tracing of simulated programs | |
1424 | --enable-sim-profile=opts | |
1425 | Enable profiling flags | |
35656e95 | 1426 | --enable-sim-assert Specify whether to perform random assertions |
16f7876d MF |
1427 | --enable-sim-environment=environment |
1428 | Specify mixed, user, virtual or operating | |
1429 | environment | |
347fe5bb MF |
1430 | --enable-sim-inline=inlines |
1431 | Specify which functions should be inlined | |
87326c78 DD |
1432 | |
1433 | Optional Packages: | |
1434 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1435 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
aadc9410 | 1436 | --with-system-zlib use installed libz |
6bb11ab3 L |
1437 | --with-pic try to use only PIC/non-PIC objects [default=use |
1438 | both] | |
1439 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
bf12d44e | 1440 | --with-pkgversion=PKG Use PKG in the version string in place of "SIM" |
87326c78 DD |
1441 | --with-bugurl=URL Direct users to URL to report a bug |
1442 | ||
1443 | Some influential environment variables: | |
1444 | CC C compiler command | |
1445 | CFLAGS C compiler flags | |
1446 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1447 | nonstandard directory <lib dir> | |
1448 | LIBS libraries to pass to the linker, e.g. -l<library> | |
d0ac1c44 | 1449 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
87326c78 DD |
1450 | you have headers in a nonstandard directory <include dir> |
1451 | CPP C preprocessor | |
1452 | ||
1453 | Use these variables to override the choices made by `configure' or to help | |
1454 | it to find libraries and programs with nonstandard names/locations. | |
1455 | ||
1456 | Report bugs to the package provider. | |
1457 | _ACEOF | |
1458 | ac_status=$? | |
1459 | fi | |
1460 | ||
1461 | if test "$ac_init_help" = "recursive"; then | |
1462 | # If there are subdirs, report their specific --help. | |
1463 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1464 | test -d "$ac_dir" || | |
1465 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1466 | continue | |
1467 | ac_builddir=. | |
1468 | ||
1469 | case "$ac_dir" in | |
1470 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1471 | *) | |
1472 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1473 | # A ".." for each directory in $ac_dir_suffix. | |
1474 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1475 | case $ac_top_builddir_sub in | |
1476 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1477 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1478 | esac ;; | |
1479 | esac | |
1480 | ac_abs_top_builddir=$ac_pwd | |
1481 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1482 | # for backward compatibility: | |
1483 | ac_top_builddir=$ac_top_build_prefix | |
1484 | ||
1485 | case $srcdir in | |
1486 | .) # We are building in place. | |
1487 | ac_srcdir=. | |
1488 | ac_top_srcdir=$ac_top_builddir_sub | |
1489 | ac_abs_top_srcdir=$ac_pwd ;; | |
1490 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1491 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1492 | ac_top_srcdir=$srcdir | |
1493 | ac_abs_top_srcdir=$srcdir ;; | |
1494 | *) # Relative name. | |
1495 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1496 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1497 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1498 | esac | |
1499 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1500 | ||
1501 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1502 | # Check for guested configure. | |
1503 | if test -f "$ac_srcdir/configure.gnu"; then | |
1504 | echo && | |
1505 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1506 | elif test -f "$ac_srcdir/configure"; then | |
1507 | echo && | |
1508 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1509 | else | |
1510 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1511 | fi || ac_status=$? | |
1512 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1513 | done | |
1514 | fi | |
1515 | ||
1516 | test -n "$ac_init_help" && exit $ac_status | |
1517 | if $ac_init_version; then | |
1518 | cat <<\_ACEOF | |
1519 | configure | |
d0ac1c44 | 1520 | generated by GNU Autoconf 2.69 |
87326c78 | 1521 | |
d0ac1c44 | 1522 | Copyright (C) 2012 Free Software Foundation, Inc. |
87326c78 DD |
1523 | This configure script is free software; the Free Software Foundation |
1524 | gives unlimited permission to copy, distribute and modify it. | |
1525 | _ACEOF | |
1526 | exit | |
1527 | fi | |
1528 | ||
1529 | ## ------------------------ ## | |
1530 | ## Autoconf initialization. ## | |
1531 | ## ------------------------ ## | |
1532 | ||
1533 | # ac_fn_c_try_compile LINENO | |
1534 | # -------------------------- | |
1535 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1536 | ac_fn_c_try_compile () | |
1537 | { | |
1538 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1539 | rm -f conftest.$ac_objext | |
1540 | if { { ac_try="$ac_compile" | |
1541 | case "(($ac_try" in | |
1542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1543 | *) ac_try_echo=$ac_try;; | |
1544 | esac | |
1545 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1546 | $as_echo "$ac_try_echo"; } >&5 | |
1547 | (eval "$ac_compile") 2>conftest.err | |
1548 | ac_status=$? | |
1549 | if test -s conftest.err; then | |
1550 | grep -v '^ *+' conftest.err >conftest.er1 | |
1551 | cat conftest.er1 >&5 | |
1552 | mv -f conftest.er1 conftest.err | |
1553 | fi | |
1554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1555 | test $ac_status = 0; } && { | |
1556 | test -z "$ac_c_werror_flag" || | |
1557 | test ! -s conftest.err | |
1558 | } && test -s conftest.$ac_objext; then : | |
1559 | ac_retval=0 | |
1560 | else | |
1561 | $as_echo "$as_me: failed program was:" >&5 | |
1562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1563 | ||
1564 | ac_retval=1 | |
1565 | fi | |
d0ac1c44 SM |
1566 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1567 | as_fn_set_status $ac_retval | |
87326c78 DD |
1568 | |
1569 | } # ac_fn_c_try_compile | |
1570 | ||
1571 | # ac_fn_c_try_cpp LINENO | |
1572 | # ---------------------- | |
1573 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1574 | ac_fn_c_try_cpp () | |
1575 | { | |
1576 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1577 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
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_cpp conftest.$ac_ext") 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 | |
d0ac1c44 | 1592 | test $ac_status = 0; } > conftest.i && { |
87326c78 DD |
1593 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1594 | test ! -s conftest.err | |
1595 | }; 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 | |
87326c78 DD |
1605 | |
1606 | } # ac_fn_c_try_cpp | |
1607 | ||
1608 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1609 | # ------------------------------------------------------- | |
1610 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1611 | # the include files in INCLUDES and setting the cache variable VAR | |
1612 | # accordingly. | |
1613 | ac_fn_c_check_header_mongrel () | |
1614 | { | |
1615 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1616 | if eval \${$3+:} false; then : |
87326c78 DD |
1617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1618 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1619 | if eval \${$3+:} false; then : |
87326c78 DD |
1620 | $as_echo_n "(cached) " >&6 |
1621 | fi | |
1622 | eval ac_res=\$$3 | |
1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1624 | $as_echo "$ac_res" >&6; } | |
1625 | else | |
1626 | # Is the header compilable? | |
1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1628 | $as_echo_n "checking $2 usability... " >&6; } | |
1629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1630 | /* end confdefs.h. */ | |
1631 | $4 | |
1632 | #include <$2> | |
1633 | _ACEOF | |
1634 | if ac_fn_c_try_compile "$LINENO"; then : | |
1635 | ac_header_compiler=yes | |
1636 | else | |
1637 | ac_header_compiler=no | |
1638 | fi | |
1639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1641 | $as_echo "$ac_header_compiler" >&6; } | |
1642 | ||
1643 | # Is the header present? | |
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1645 | $as_echo_n "checking $2 presence... " >&6; } | |
1646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1647 | /* end confdefs.h. */ | |
1648 | #include <$2> | |
1649 | _ACEOF | |
1650 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1651 | ac_header_preproc=yes | |
1652 | else | |
1653 | ac_header_preproc=no | |
1654 | fi | |
d0ac1c44 | 1655 | rm -f conftest.err conftest.i conftest.$ac_ext |
87326c78 DD |
1656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1657 | $as_echo "$ac_header_preproc" >&6; } | |
1658 | ||
1659 | # So? What about this header? | |
1660 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1661 | yes:no: ) | |
1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1663 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1665 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1666 | ;; | |
1667 | no:yes:* ) | |
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1669 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1671 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1673 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1675 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1677 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1678 | ;; | |
1679 | esac | |
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1681 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1682 | if eval \${$3+:} false; then : |
87326c78 DD |
1683 | $as_echo_n "(cached) " >&6 |
1684 | else | |
1685 | eval "$3=\$ac_header_compiler" | |
1686 | fi | |
1687 | eval ac_res=\$$3 | |
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1689 | $as_echo "$ac_res" >&6; } | |
1690 | fi | |
d0ac1c44 | 1691 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
87326c78 DD |
1692 | |
1693 | } # ac_fn_c_check_header_mongrel | |
1694 | ||
1695 | # ac_fn_c_try_run LINENO | |
1696 | # ---------------------- | |
1697 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1698 | # that executables *can* be run. | |
1699 | ac_fn_c_try_run () | |
1700 | { | |
1701 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1702 | if { { ac_try="$ac_link" | |
1703 | case "(($ac_try" in | |
1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1705 | *) ac_try_echo=$ac_try;; | |
1706 | esac | |
1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1708 | $as_echo "$ac_try_echo"; } >&5 | |
1709 | (eval "$ac_link") 2>&5 | |
1710 | ac_status=$? | |
1711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1712 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1713 | { { case "(($ac_try" in | |
1714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1715 | *) ac_try_echo=$ac_try;; | |
1716 | esac | |
1717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1718 | $as_echo "$ac_try_echo"; } >&5 | |
1719 | (eval "$ac_try") 2>&5 | |
1720 | ac_status=$? | |
1721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1722 | test $ac_status = 0; }; }; then : | |
1723 | ac_retval=0 | |
1724 | else | |
1725 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1726 | $as_echo "$as_me: failed program was:" >&5 | |
1727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1728 | ||
1729 | ac_retval=$ac_status | |
1730 | fi | |
1731 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1732 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1733 | as_fn_set_status $ac_retval | |
87326c78 DD |
1734 | |
1735 | } # ac_fn_c_try_run | |
1736 | ||
1737 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1738 | # ------------------------------------------------------- | |
1739 | # Tests whether HEADER exists and can be compiled using the include files in | |
1740 | # INCLUDES, setting the cache variable VAR accordingly. | |
1741 | ac_fn_c_check_header_compile () | |
1742 | { | |
1743 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1745 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1746 | if eval \${$3+:} false; then : |
87326c78 DD |
1747 | $as_echo_n "(cached) " >&6 |
1748 | else | |
1749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1750 | /* end confdefs.h. */ | |
1751 | $4 | |
1752 | #include <$2> | |
1753 | _ACEOF | |
1754 | if ac_fn_c_try_compile "$LINENO"; then : | |
1755 | eval "$3=yes" | |
1756 | else | |
1757 | eval "$3=no" | |
1758 | fi | |
1759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1760 | fi | |
1761 | eval ac_res=\$$3 | |
1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1763 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1764 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
87326c78 DD |
1765 | |
1766 | } # ac_fn_c_check_header_compile | |
1767 | ||
1768 | # ac_fn_c_try_link LINENO | |
1769 | # ----------------------- | |
1770 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1771 | ac_fn_c_try_link () | |
1772 | { | |
1773 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1775 | if { { ac_try="$ac_link" | |
1776 | case "(($ac_try" in | |
1777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1778 | *) ac_try_echo=$ac_try;; | |
1779 | esac | |
1780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1781 | $as_echo "$ac_try_echo"; } >&5 | |
1782 | (eval "$ac_link") 2>conftest.err | |
1783 | ac_status=$? | |
1784 | if test -s conftest.err; then | |
1785 | grep -v '^ *+' conftest.err >conftest.er1 | |
1786 | cat conftest.er1 >&5 | |
1787 | mv -f conftest.er1 conftest.err | |
1788 | fi | |
1789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1790 | test $ac_status = 0; } && { | |
1791 | test -z "$ac_c_werror_flag" || | |
1792 | test ! -s conftest.err | |
1793 | } && test -s conftest$ac_exeext && { | |
1794 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1795 | test -x conftest$ac_exeext |
87326c78 DD |
1796 | }; then : |
1797 | ac_retval=0 | |
1798 | else | |
1799 | $as_echo "$as_me: failed program was:" >&5 | |
1800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1801 | ||
1802 | ac_retval=1 | |
1803 | fi | |
1804 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1805 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1806 | # interfere with the next link command; also delete a directory that is | |
1807 | # left behind by Apple's compiler. We do this before executing the actions. | |
1808 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1809 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1810 | as_fn_set_status $ac_retval | |
87326c78 DD |
1811 | |
1812 | } # ac_fn_c_try_link | |
1813 | ||
1814 | # ac_fn_c_check_func LINENO FUNC VAR | |
1815 | # ---------------------------------- | |
1816 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1817 | ac_fn_c_check_func () | |
1818 | { | |
1819 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1821 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1822 | if eval \${$3+:} false; then : |
87326c78 DD |
1823 | $as_echo_n "(cached) " >&6 |
1824 | else | |
1825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1826 | /* end confdefs.h. */ | |
1827 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1829 | #define $2 innocuous_$2 | |
1830 | ||
1831 | /* System header to define __stub macros and hopefully few prototypes, | |
1832 | which can conflict with char $2 (); below. | |
1833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1834 | <limits.h> exists even on freestanding compilers. */ | |
1835 | ||
1836 | #ifdef __STDC__ | |
1837 | # include <limits.h> | |
1838 | #else | |
1839 | # include <assert.h> | |
1840 | #endif | |
1841 | ||
1842 | #undef $2 | |
1843 | ||
1844 | /* Override any GCC internal prototype to avoid an error. | |
1845 | Use char because int might match the return type of a GCC | |
1846 | builtin and then its argument prototype would still apply. */ | |
1847 | #ifdef __cplusplus | |
1848 | extern "C" | |
1849 | #endif | |
1850 | char $2 (); | |
1851 | /* The GNU C library defines this for functions which it implements | |
1852 | to always fail with ENOSYS. Some functions are actually named | |
1853 | something starting with __ and the normal name is an alias. */ | |
1854 | #if defined __stub_$2 || defined __stub___$2 | |
1855 | choke me | |
1856 | #endif | |
1857 | ||
1858 | int | |
1859 | main () | |
1860 | { | |
1861 | return $2 (); | |
1862 | ; | |
1863 | return 0; | |
1864 | } | |
1865 | _ACEOF | |
1866 | if ac_fn_c_try_link "$LINENO"; then : | |
1867 | eval "$3=yes" | |
1868 | else | |
1869 | eval "$3=no" | |
1870 | fi | |
1871 | rm -f core conftest.err conftest.$ac_objext \ | |
1872 | conftest$ac_exeext conftest.$ac_ext | |
1873 | fi | |
1874 | eval ac_res=\$$3 | |
1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1876 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1877 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
87326c78 DD |
1878 | |
1879 | } # ac_fn_c_check_func | |
936df756 MF |
1880 | |
1881 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1882 | # ---------------------------------------------------- | |
1883 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1884 | # INCLUDES, setting cache variable VAR accordingly. | |
1885 | ac_fn_c_check_member () | |
1886 | { | |
1887 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1889 | $as_echo_n "checking for $2.$3... " >&6; } | |
d0ac1c44 | 1890 | if eval \${$4+:} false; then : |
936df756 MF |
1891 | $as_echo_n "(cached) " >&6 |
1892 | else | |
1893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1894 | /* end confdefs.h. */ | |
1895 | $5 | |
1896 | int | |
1897 | main () | |
1898 | { | |
1899 | static $2 ac_aggr; | |
1900 | if (ac_aggr.$3) | |
1901 | return 0; | |
1902 | ; | |
1903 | return 0; | |
1904 | } | |
1905 | _ACEOF | |
1906 | if ac_fn_c_try_compile "$LINENO"; then : | |
1907 | eval "$4=yes" | |
1908 | else | |
1909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1910 | /* end confdefs.h. */ | |
1911 | $5 | |
1912 | int | |
1913 | main () | |
1914 | { | |
1915 | static $2 ac_aggr; | |
1916 | if (sizeof ac_aggr.$3) | |
1917 | return 0; | |
1918 | ; | |
1919 | return 0; | |
1920 | } | |
1921 | _ACEOF | |
1922 | if ac_fn_c_try_compile "$LINENO"; then : | |
1923 | eval "$4=yes" | |
1924 | else | |
1925 | eval "$4=no" | |
1926 | fi | |
1927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1928 | fi | |
1929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1930 | fi | |
1931 | eval ac_res=\$$4 | |
1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1933 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1934 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
936df756 MF |
1935 | |
1936 | } # ac_fn_c_check_member | |
1937 | ||
1938 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1939 | # ------------------------------------------- | |
1940 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1941 | # variable VAR accordingly. | |
1942 | ac_fn_c_check_type () | |
1943 | { | |
1944 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1946 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1947 | if eval \${$3+:} false; then : |
936df756 MF |
1948 | $as_echo_n "(cached) " >&6 |
1949 | else | |
1950 | eval "$3=no" | |
1951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1952 | /* end confdefs.h. */ | |
1953 | $4 | |
1954 | int | |
1955 | main () | |
1956 | { | |
1957 | if (sizeof ($2)) | |
1958 | return 0; | |
1959 | ; | |
1960 | return 0; | |
1961 | } | |
1962 | _ACEOF | |
1963 | if ac_fn_c_try_compile "$LINENO"; then : | |
1964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1965 | /* end confdefs.h. */ | |
1966 | $4 | |
1967 | int | |
1968 | main () | |
1969 | { | |
1970 | if (sizeof (($2))) | |
1971 | return 0; | |
1972 | ; | |
1973 | return 0; | |
1974 | } | |
1975 | _ACEOF | |
1976 | if ac_fn_c_try_compile "$LINENO"; then : | |
1977 | ||
1978 | else | |
1979 | eval "$3=yes" | |
1980 | fi | |
1981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1982 | fi | |
1983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1984 | fi | |
1985 | eval ac_res=\$$3 | |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1987 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1988 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
936df756 MF |
1989 | |
1990 | } # ac_fn_c_check_type | |
87326c78 DD |
1991 | cat >config.log <<_ACEOF |
1992 | This file contains any messages produced by compilers while | |
1993 | running configure, to aid debugging if configure makes a mistake. | |
1994 | ||
1995 | It was created by $as_me, which was | |
d0ac1c44 | 1996 | generated by GNU Autoconf 2.69. Invocation command line was |
87326c78 DD |
1997 | |
1998 | $ $0 $@ | |
1999 | ||
2000 | _ACEOF | |
2001 | exec 5>>config.log | |
2002 | { | |
2003 | cat <<_ASUNAME | |
2004 | ## --------- ## | |
2005 | ## Platform. ## | |
2006 | ## --------- ## | |
2007 | ||
2008 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2009 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2010 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2011 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2012 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2013 | ||
2014 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2015 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2016 | ||
2017 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2018 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2019 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2020 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2021 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2022 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2023 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2024 | ||
2025 | _ASUNAME | |
2026 | ||
2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2028 | for as_dir in $PATH | |
2029 | do | |
2030 | IFS=$as_save_IFS | |
2031 | test -z "$as_dir" && as_dir=. | |
2032 | $as_echo "PATH: $as_dir" | |
2033 | done | |
2034 | IFS=$as_save_IFS | |
2035 | ||
2036 | } >&5 | |
2037 | ||
2038 | cat >&5 <<_ACEOF | |
2039 | ||
2040 | ||
2041 | ## ----------- ## | |
2042 | ## Core tests. ## | |
2043 | ## ----------- ## | |
2044 | ||
2045 | _ACEOF | |
2046 | ||
2047 | ||
2048 | # Keep a trace of the command line. | |
2049 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2050 | # Strip out --silent because we don't want to record it for future runs. | |
2051 | # Also quote any args containing shell meta-characters. | |
2052 | # Make two passes to allow for proper duplicate-argument suppression. | |
2053 | ac_configure_args= | |
2054 | ac_configure_args0= | |
2055 | ac_configure_args1= | |
2056 | ac_must_keep_next=false | |
2057 | for ac_pass in 1 2 | |
2058 | do | |
2059 | for ac_arg | |
2060 | do | |
2061 | case $ac_arg in | |
2062 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2064 | | -silent | --silent | --silen | --sile | --sil) | |
2065 | continue ;; | |
2066 | *\'*) | |
2067 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2068 | esac | |
2069 | case $ac_pass in | |
2070 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2071 | 2) | |
2072 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2073 | if test $ac_must_keep_next = true; then | |
2074 | ac_must_keep_next=false # Got value, back to normal. | |
2075 | else | |
2076 | case $ac_arg in | |
2077 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2078 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2079 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2080 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2081 | case "$ac_configure_args0 " in | |
2082 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2083 | esac | |
2084 | ;; | |
2085 | -* ) ac_must_keep_next=true ;; | |
2086 | esac | |
2087 | fi | |
2088 | as_fn_append ac_configure_args " '$ac_arg'" | |
2089 | ;; | |
2090 | esac | |
2091 | done | |
2092 | done | |
2093 | { ac_configure_args0=; unset ac_configure_args0;} | |
2094 | { ac_configure_args1=; unset ac_configure_args1;} | |
2095 | ||
2096 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2097 | # config.log. We remove comments because anyway the quotes in there | |
2098 | # would cause problems or look ugly. | |
2099 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2100 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2101 | trap 'exit_status=$? | |
2102 | # Save into config.log some information that might help in debugging. | |
2103 | { | |
2104 | echo | |
2105 | ||
d0ac1c44 | 2106 | $as_echo "## ---------------- ## |
87326c78 | 2107 | ## Cache variables. ## |
d0ac1c44 | 2108 | ## ---------------- ##" |
87326c78 DD |
2109 | echo |
2110 | # The following way of writing the cache mishandles newlines in values, | |
2111 | ( | |
2112 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2113 | eval ac_val=\$$ac_var | |
2114 | case $ac_val in #( | |
2115 | *${as_nl}*) | |
2116 | case $ac_var in #( | |
2117 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2118 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2119 | esac | |
2120 | case $ac_var in #( | |
2121 | _ | IFS | as_nl) ;; #( | |
2122 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2123 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2124 | esac ;; | |
2125 | esac | |
2126 | done | |
2127 | (set) 2>&1 | | |
2128 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2129 | *${as_nl}ac_space=\ *) | |
2130 | sed -n \ | |
2131 | "s/'\''/'\''\\\\'\'''\''/g; | |
2132 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2133 | ;; #( | |
2134 | *) | |
2135 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2136 | ;; | |
2137 | esac | | |
2138 | sort | |
2139 | ) | |
2140 | echo | |
2141 | ||
d0ac1c44 | 2142 | $as_echo "## ----------------- ## |
87326c78 | 2143 | ## Output variables. ## |
d0ac1c44 | 2144 | ## ----------------- ##" |
87326c78 DD |
2145 | echo |
2146 | for ac_var in $ac_subst_vars | |
2147 | do | |
2148 | eval ac_val=\$$ac_var | |
2149 | case $ac_val in | |
2150 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2151 | esac | |
2152 | $as_echo "$ac_var='\''$ac_val'\''" | |
2153 | done | sort | |
2154 | echo | |
2155 | ||
2156 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2157 | $as_echo "## ------------------- ## |
87326c78 | 2158 | ## File substitutions. ## |
d0ac1c44 | 2159 | ## ------------------- ##" |
87326c78 DD |
2160 | echo |
2161 | for ac_var in $ac_subst_files | |
2162 | do | |
2163 | eval ac_val=\$$ac_var | |
2164 | case $ac_val in | |
2165 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2166 | esac | |
2167 | $as_echo "$ac_var='\''$ac_val'\''" | |
2168 | done | sort | |
2169 | echo | |
2170 | fi | |
2171 | ||
2172 | if test -s confdefs.h; then | |
d0ac1c44 | 2173 | $as_echo "## ----------- ## |
87326c78 | 2174 | ## confdefs.h. ## |
d0ac1c44 | 2175 | ## ----------- ##" |
87326c78 DD |
2176 | echo |
2177 | cat confdefs.h | |
2178 | echo | |
2179 | fi | |
2180 | test "$ac_signal" != 0 && | |
2181 | $as_echo "$as_me: caught signal $ac_signal" | |
2182 | $as_echo "$as_me: exit $exit_status" | |
2183 | } >&5 | |
2184 | rm -f core *.core core.conftest.* && | |
2185 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2186 | exit $exit_status | |
2187 | ' 0 | |
2188 | for ac_signal in 1 2 13 15; do | |
2189 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2190 | done | |
2191 | ac_signal=0 | |
2192 | ||
2193 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2194 | rm -f -r conftest* confdefs.h | |
2195 | ||
2196 | $as_echo "/* confdefs.h */" > confdefs.h | |
2197 | ||
2198 | # Predefined preprocessor variables. | |
2199 | ||
2200 | cat >>confdefs.h <<_ACEOF | |
2201 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2202 | _ACEOF | |
2203 | ||
2204 | cat >>confdefs.h <<_ACEOF | |
2205 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2206 | _ACEOF | |
2207 | ||
2208 | cat >>confdefs.h <<_ACEOF | |
2209 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2210 | _ACEOF | |
2211 | ||
2212 | cat >>confdefs.h <<_ACEOF | |
2213 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2214 | _ACEOF | |
2215 | ||
2216 | cat >>confdefs.h <<_ACEOF | |
2217 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2218 | _ACEOF | |
2219 | ||
2220 | cat >>confdefs.h <<_ACEOF | |
2221 | #define PACKAGE_URL "$PACKAGE_URL" | |
2222 | _ACEOF | |
2223 | ||
2224 | ||
2225 | # Let the site file select an alternate cache file if it wants to. | |
2226 | # Prefer an explicitly selected file to automatically selected ones. | |
2227 | ac_site_file1=NONE | |
2228 | ac_site_file2=NONE | |
2229 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2230 | # We do not want a PATH search for config.site. |
2231 | case $CONFIG_SITE in #(( | |
2232 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2233 | */*) ac_site_file1=$CONFIG_SITE;; | |
2234 | *) ac_site_file1=./$CONFIG_SITE;; | |
2235 | esac | |
87326c78 DD |
2236 | elif test "x$prefix" != xNONE; then |
2237 | ac_site_file1=$prefix/share/config.site | |
2238 | ac_site_file2=$prefix/etc/config.site | |
2239 | else | |
2240 | ac_site_file1=$ac_default_prefix/share/config.site | |
2241 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2242 | fi | |
2243 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2244 | do | |
2245 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2246 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
87326c78 DD |
2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2248 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2249 | sed 's/^/| /' "$ac_site_file" >&5 | |
d0ac1c44 SM |
2250 | . "$ac_site_file" \ |
2251 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2252 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2253 | as_fn_error $? "failed to load site script $ac_site_file | |
2254 | See \`config.log' for more details" "$LINENO" 5; } | |
87326c78 DD |
2255 | fi |
2256 | done | |
2257 | ||
2258 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2259 | # Some versions of bash will fail to source /dev/null (special files |
2260 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2261 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
87326c78 DD |
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2263 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2264 | case $cache_file in | |
2265 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2266 | *) . "./$cache_file";; | |
2267 | esac | |
2268 | fi | |
2269 | else | |
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2271 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2272 | >$cache_file | |
2273 | fi | |
2274 | ||
2275 | # Check that the precious variables saved in the cache have kept the same | |
2276 | # value. | |
2277 | ac_cache_corrupted=false | |
2278 | for ac_var in $ac_precious_vars; do | |
2279 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2280 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2281 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2282 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2283 | case $ac_old_set,$ac_new_set in | |
2284 | set,) | |
2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2286 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2287 | ac_cache_corrupted=: ;; | |
2288 | ,set) | |
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2290 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2291 | ac_cache_corrupted=: ;; | |
2292 | ,);; | |
2293 | *) | |
2294 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2295 | # differences in whitespace do not lead to failure. | |
2296 | ac_old_val_w=`echo x $ac_old_val` | |
2297 | ac_new_val_w=`echo x $ac_new_val` | |
2298 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2299 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2300 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2301 | ac_cache_corrupted=: | |
2302 | else | |
2303 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2304 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2305 | eval $ac_var=\$ac_old_val | |
2306 | fi | |
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2308 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2310 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2311 | fi;; | |
2312 | esac | |
2313 | # Pass precious variables to config.status. | |
2314 | if test "$ac_new_set" = set; then | |
2315 | case $ac_new_val in | |
2316 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2317 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2318 | esac | |
2319 | case " $ac_configure_args " in | |
2320 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2321 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2322 | esac | |
2323 | fi | |
2324 | done | |
2325 | if $ac_cache_corrupted; then | |
2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2327 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2329 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2330 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
87326c78 DD |
2331 | fi |
2332 | ## -------------------- ## | |
2333 | ## Main body of script. ## | |
2334 | ## -------------------- ## | |
2335 | ||
2336 | ac_ext=c | |
2337 | ac_cpp='$CPP $CPPFLAGS' | |
2338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2341 | ||
2342 | ||
2343 | # This file contains common code used by all simulators. | |
2344 | # | |
2345 | # SIM_AC_COMMON invokes AC macros used by all simulators and by the common | |
2346 | # directory. It is intended to be invoked before any target specific stuff. | |
2347 | # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile. | |
2348 | # It is intended to be invoked last. | |
2349 | # | |
50df264d | 2350 | # See README-HACKING for more details. |
87326c78 DD |
2351 | |
2352 | # Include global overrides and fixes for Autoconf. | |
2353 | ||
2354 | ||
2355 | ||
2356 | ||
2357 | ||
2358 | ||
2359 | ||
2360 | ||
2361 | ||
2362 | ||
2363 | ||
2364 | ||
2365 | ||
2366 | ||
2367 | ||
2368 | ||
2369 | ||
2370 | ||
2371 | ||
2372 | ||
2373 | ||
2374 | ||
87326c78 DD |
2375 | |
2376 | ||
2377 | ||
2378 | ||
2379 | ||
2380 | ||
2381 | ||
2382 | ||
2383 | ||
2384 | ||
db2e4d67 | 2385 | |
5c887dd5 JB |
2386 | |
2387 | ||
6bb11ab3 | 2388 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
db2e4d67 | 2389 | # |
6bb11ab3 L |
2390 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
2391 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
2392 | # Written by Gordon Matzigkeit, 1996 | |
2393 | # | |
2394 | # This file is free software; the Free Software Foundation gives | |
2395 | # unlimited permission to copy and/or distribute it, with or without | |
2396 | # modifications, as long as this notice is preserved. | |
db2e4d67 | 2397 | |
db2e4d67 | 2398 | |
db2e4d67 | 2399 | |
6bb11ab3 | 2400 | # serial 56 LT_INIT |
db2e4d67 MF |
2401 | |
2402 | ||
6bb11ab3 L |
2403 | # LT_PREREQ(VERSION) |
2404 | # ------------------ | |
2405 | # Complain and exit if this libtool version is less that VERSION. | |
db2e4d67 | 2406 | |
db2e4d67 MF |
2407 | |
2408 | ||
6bb11ab3 L |
2409 | # _LT_CHECK_BUILDDIR |
2410 | # ------------------ | |
2411 | # Complain if the absolute build directory name contains unusual characters | |
db2e4d67 MF |
2412 | |
2413 | ||
87326c78 | 2414 | |
6bb11ab3 L |
2415 | # LT_INIT([OPTIONS]) |
2416 | # ------------------ | |
2417 | # LT_INIT | |
87326c78 | 2418 | |
6bb11ab3 L |
2419 | # Old names: |
2420 | # This is what autoupdate's m4 run will expand. It fires | |
2421 | # the warning (with _au_warn_XXX), outputs it into the | |
2422 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2423 | # the replacement expansion. | |
87326c78 DD |
2424 | |
2425 | ||
6bb11ab3 L |
2426 | # This is an auxiliary macro that is also run when |
2427 | # autoupdate runs m4. It simply calls m4_warning, but | |
2428 | # we need a wrapper so that each warning is emitted only | |
2429 | # once. We break the quoting in m4_warning's argument in | |
2430 | # order to expand this macro's arguments, not AU_DEFUN's. | |
87326c78 DD |
2431 | |
2432 | ||
6bb11ab3 L |
2433 | # Finally, this is the expansion that is picked up by |
2434 | # autoconf. It tells the user to run autoupdate, and | |
2435 | # then outputs the replacement expansion. We do not care | |
2436 | # about autoupdate's warning because that contains | |
2437 | # information on what to do *after* running autoupdate. | |
87326c78 | 2438 | |
6bb11ab3 L |
2439 | # This is what autoupdate's m4 run will expand. It fires |
2440 | # the warning (with _au_warn_XXX), outputs it into the | |
2441 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2442 | # the replacement expansion. | |
87326c78 DD |
2443 | |
2444 | ||
6bb11ab3 L |
2445 | # This is an auxiliary macro that is also run when |
2446 | # autoupdate runs m4. It simply calls m4_warning, but | |
2447 | # we need a wrapper so that each warning is emitted only | |
2448 | # once. We break the quoting in m4_warning's argument in | |
2449 | # order to expand this macro's arguments, not AU_DEFUN's. | |
87326c78 DD |
2450 | |
2451 | ||
6bb11ab3 L |
2452 | # Finally, this is the expansion that is picked up by |
2453 | # autoconf. It tells the user to run autoupdate, and | |
2454 | # then outputs the replacement expansion. We do not care | |
2455 | # about autoupdate's warning because that contains | |
2456 | # information on what to do *after* running autoupdate. | |
87326c78 DD |
2457 | |
2458 | ||
2459 | ||
6bb11ab3 L |
2460 | # _LT_CC_BASENAME(CC) |
2461 | # ------------------- | |
2462 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
87326c78 DD |
2463 | |
2464 | ||
2465 | ||
6bb11ab3 L |
2466 | # _LT_FILEUTILS_DEFAULTS |
2467 | # ---------------------- | |
2468 | # It is okay to use these file commands and assume they have been set | |
2469 | # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | |
2470 | # _LT_FILEUTILS_DEFAULTS | |
87326c78 DD |
2471 | |
2472 | ||
6bb11ab3 L |
2473 | # _LT_SETUP |
2474 | # --------- | |
2475 | # _LT_SETUP | |
87326c78 DD |
2476 | |
2477 | ||
6bb11ab3 L |
2478 | # _LT_PREPARE_SED_QUOTE_VARS |
2479 | # -------------------------- | |
2480 | # Define a few sed substitution that help us do robust quoting. | |
87326c78 DD |
2481 | |
2482 | ||
6bb11ab3 L |
2483 | # _LT_PROG_LTMAIN |
2484 | # --------------- | |
2485 | # Note that this code is called both from `configure', and `config.status' | |
2486 | # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | |
2487 | # `config.status' has no value for ac_aux_dir unless we are using Automake, | |
2488 | # so we pass a copy along to make sure it has a sensible value anyway. | |
2489 | # _LT_PROG_LTMAIN | |
87326c78 DD |
2490 | |
2491 | ||
6bb11ab3 L |
2492 | ## ------------------------------------- ## |
2493 | ## Accumulate code for creating libtool. ## | |
2494 | ## ------------------------------------- ## | |
87326c78 | 2495 | |
6bb11ab3 L |
2496 | # So that we can recreate a full libtool script including additional |
2497 | # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | |
2498 | # in macros and then make a single call at the end using the `libtool' | |
2499 | # label. | |
87326c78 DD |
2500 | |
2501 | ||
6bb11ab3 L |
2502 | # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
2503 | # ---------------------------------------- | |
2504 | # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
87326c78 DD |
2505 | |
2506 | ||
6bb11ab3 | 2507 | # Initialize. |
87326c78 DD |
2508 | |
2509 | ||
2510 | ||
6bb11ab3 L |
2511 | # _LT_CONFIG_LIBTOOL([COMMANDS]) |
2512 | # ------------------------------ | |
2513 | # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
87326c78 DD |
2514 | |
2515 | ||
6bb11ab3 | 2516 | # Initialize. |
87326c78 DD |
2517 | |
2518 | ||
2519 | ||
6bb11ab3 L |
2520 | # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
2521 | # ----------------------------------------------------- | |
87326c78 DD |
2522 | |
2523 | ||
2524 | ||
6bb11ab3 L |
2525 | # _LT_FORMAT_COMMENT([COMMENT]) |
2526 | # ----------------------------- | |
2527 | # Add leading comment marks to the start of each line, and a trailing | |
2528 | # full-stop to the whole comment if one is not present already. | |
87326c78 DD |
2529 | |
2530 | ||
2531 | ||
2532 | ||
6bb11ab3 L |
2533 | ## ------------------------ ## |
2534 | ## FIXME: Eliminate VARNAME ## | |
2535 | ## ------------------------ ## | |
87326c78 DD |
2536 | |
2537 | ||
6bb11ab3 L |
2538 | # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
2539 | # ------------------------------------------------------------------- | |
2540 | # CONFIGNAME is the name given to the value in the libtool script. | |
2541 | # VARNAME is the (base) name used in the configure script. | |
2542 | # VALUE may be 0, 1 or 2 for a computed quote escaped value based on | |
2543 | # VARNAME. Any other value will be used directly. | |
87326c78 | 2544 | |
87326c78 DD |
2545 | |
2546 | ||
6bb11ab3 L |
2547 | # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
2548 | # -------------------------------------------------------- | |
87326c78 DD |
2549 | |
2550 | ||
2551 | ||
6bb11ab3 L |
2552 | # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
2553 | # ------------------------------------------------ | |
87326c78 DD |
2554 | |
2555 | ||
2556 | ||
6bb11ab3 L |
2557 | # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
2558 | # --------------------------------------------------------- | |
87326c78 DD |
2559 | |
2560 | ||
2561 | ||
6bb11ab3 L |
2562 | # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
2563 | # -------------------------------------------------- | |
87326c78 DD |
2564 | |
2565 | ||
2566 | ||
6bb11ab3 L |
2567 | # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
2568 | # --------------------------------------------------- | |
87326c78 DD |
2569 | |
2570 | ||
2571 | ||
6bb11ab3 L |
2572 | # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
2573 | # --------------------------------------------------- | |
87326c78 DD |
2574 | |
2575 | ||
2576 | ||
2577 | ||
6bb11ab3 L |
2578 | # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
2579 | # ------------------------------------------------ | |
87326c78 DD |
2580 | |
2581 | ||
2582 | ||
2583 | ||
6bb11ab3 L |
2584 | # _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
2585 | # ------------------------------------ | |
2586 | # Quote a variable value, and forward it to `config.status' so that its | |
2587 | # declaration there will have the same value as in `configure'. VARNAME | |
2588 | # must have a single quote delimited value for this to work. | |
87326c78 DD |
2589 | |
2590 | ||
2591 | ||
6bb11ab3 L |
2592 | # _LT_CONFIG_STATUS_DECLARATIONS |
2593 | # ------------------------------ | |
2594 | # We delimit libtool config variables with single quotes, so when | |
2595 | # we write them to config.status, we have to be sure to quote all | |
2596 | # embedded single quotes properly. In configure, this macro expands | |
2597 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | |
2598 | # | |
2599 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | |
87326c78 DD |
2600 | |
2601 | ||
2602 | ||
6bb11ab3 L |
2603 | # _LT_LIBTOOL_TAGS |
2604 | # ---------------- | |
2605 | # Output comment and list of tags supported by the script | |
87326c78 DD |
2606 | |
2607 | ||
2608 | ||
6bb11ab3 L |
2609 | # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
2610 | # ----------------------------------- | |
2611 | # Extract the dictionary values for VARNAME (optionally with TAG) and | |
2612 | # expand to a commented shell variable setting: | |
2613 | # | |
2614 | # # Some comment about what VAR is for. | |
2615 | # visible_name=$lt_internal_name | |
87326c78 DD |
2616 | |
2617 | ||
87326c78 | 2618 | |
6bb11ab3 L |
2619 | # _LT_LIBTOOL_CONFIG_VARS |
2620 | # ----------------------- | |
2621 | # Produce commented declarations of non-tagged libtool config variables | |
2622 | # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | |
2623 | # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | |
2624 | # section) are produced by _LT_LIBTOOL_TAG_VARS. | |
87326c78 DD |
2625 | |
2626 | ||
2627 | ||
6bb11ab3 L |
2628 | # _LT_LIBTOOL_TAG_VARS(TAG) |
2629 | # ------------------------- | |
87326c78 DD |
2630 | |
2631 | ||
2632 | ||
6bb11ab3 L |
2633 | # _LT_TAGVAR(VARNAME, [TAGNAME]) |
2634 | # ------------------------------ | |
87326c78 DD |
2635 | |
2636 | ||
2637 | ||
6bb11ab3 L |
2638 | # _LT_CONFIG_COMMANDS |
2639 | # ------------------- | |
2640 | # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | |
2641 | # variables for single and double quote escaping we saved from calls | |
2642 | # to _LT_DECL, we can put quote escaped variables declarations | |
2643 | # into `config.status', and then the shell code to quote escape them in | |
2644 | # for loops in `config.status'. Finally, any additional code accumulated | |
2645 | # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | |
2646 | #_LT_CONFIG_COMMANDS | |
2647 | ||
2648 | ||
2649 | # Initialize. | |
2650 | ||
2651 | ||
2652 | # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | |
2653 | # ------------------------------------ | |
2654 | # Generate a child script FILE with all initialization necessary to | |
2655 | # reuse the environment learned by the parent script, and make the | |
2656 | # file executable. If COMMENT is supplied, it is inserted after the | |
2657 | # `#!' sequence but before initialization text begins. After this | |
2658 | # macro, additional text can be appended to FILE to form the body of | |
2659 | # the child script. The macro ends with non-zero status if the | |
2660 | # file could not be fully written (such as if the disk is full). | |
2661 | # _LT_GENERATED_FILE_INIT | |
2662 | ||
2663 | # LT_OUTPUT | |
2664 | # --------- | |
2665 | # This macro allows early generation of the libtool script (before | |
2666 | # AC_OUTPUT is called), incase it is used in configure for compilation | |
2667 | # tests. | |
2668 | # LT_OUTPUT | |
2669 | ||
2670 | ||
2671 | # _LT_CONFIG(TAG) | |
2672 | # --------------- | |
2673 | # If TAG is the built-in tag, create an initial libtool script with a | |
2674 | # default configuration from the untagged config vars. Otherwise add code | |
2675 | # to config.status for appending the configuration named by TAG from the | |
2676 | # matching tagged config vars. | |
2677 | # _LT_CONFIG | |
87326c78 DD |
2678 | |
2679 | ||
6bb11ab3 L |
2680 | # LT_SUPPORTED_TAG(TAG) |
2681 | # --------------------- | |
2682 | # Trace this macro to discover what tags are supported by the libtool | |
2683 | # --tag option, using: | |
2684 | # autoconf --trace 'LT_SUPPORTED_TAG:$1' | |
87326c78 | 2685 | |
87326c78 | 2686 | |
87326c78 | 2687 | |
6bb11ab3 | 2688 | # C support is built-in for now |
87326c78 | 2689 | |
87326c78 DD |
2690 | |
2691 | ||
2692 | ||
6bb11ab3 L |
2693 | # LT_LANG(LANG) |
2694 | # ------------- | |
2695 | # Enable libtool support for the given language if not already enabled. | |
2696 | # LT_LANG | |
87326c78 DD |
2697 | |
2698 | ||
6bb11ab3 L |
2699 | # _LT_LANG(LANGNAME) |
2700 | # ------------------ | |
2701 | # _LT_LANG | |
87326c78 DD |
2702 | |
2703 | ||
6bb11ab3 L |
2704 | # _LT_LANG_DEFAULT_CONFIG |
2705 | # ----------------------- | |
2706 | # _LT_LANG_DEFAULT_CONFIG | |
87326c78 | 2707 | |
6bb11ab3 L |
2708 | # Obsolete macros: |
2709 | # This is what autoupdate's m4 run will expand. It fires | |
2710 | # the warning (with _au_warn_XXX), outputs it into the | |
2711 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2712 | # the replacement expansion. | |
87326c78 | 2713 | |
87326c78 | 2714 | |
6bb11ab3 L |
2715 | # This is an auxiliary macro that is also run when |
2716 | # autoupdate runs m4. It simply calls m4_warning, but | |
2717 | # we need a wrapper so that each warning is emitted only | |
2718 | # once. We break the quoting in m4_warning's argument in | |
2719 | # order to expand this macro's arguments, not AU_DEFUN's. | |
87326c78 | 2720 | |
87326c78 | 2721 | |
6bb11ab3 L |
2722 | # Finally, this is the expansion that is picked up by |
2723 | # autoconf. It tells the user to run autoupdate, and | |
2724 | # then outputs the replacement expansion. We do not care | |
2725 | # about autoupdate's warning because that contains | |
2726 | # information on what to do *after* running autoupdate. | |
87326c78 | 2727 | |
6bb11ab3 L |
2728 | # This is what autoupdate's m4 run will expand. It fires |
2729 | # the warning (with _au_warn_XXX), outputs it into the | |
2730 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2731 | # the replacement expansion. | |
87326c78 DD |
2732 | |
2733 | ||
6bb11ab3 L |
2734 | # This is an auxiliary macro that is also run when |
2735 | # autoupdate runs m4. It simply calls m4_warning, but | |
2736 | # we need a wrapper so that each warning is emitted only | |
2737 | # once. We break the quoting in m4_warning's argument in | |
2738 | # order to expand this macro's arguments, not AU_DEFUN's. | |
87326c78 DD |
2739 | |
2740 | ||
6bb11ab3 L |
2741 | # Finally, this is the expansion that is picked up by |
2742 | # autoconf. It tells the user to run autoupdate, and | |
2743 | # then outputs the replacement expansion. We do not care | |
2744 | # about autoupdate's warning because that contains | |
2745 | # information on what to do *after* running autoupdate. | |
87326c78 | 2746 | |
6bb11ab3 L |
2747 | # This is what autoupdate's m4 run will expand. It fires |
2748 | # the warning (with _au_warn_XXX), outputs it into the | |
2749 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2750 | # the replacement expansion. | |
87326c78 DD |
2751 | |
2752 | ||
6bb11ab3 L |
2753 | # This is an auxiliary macro that is also run when |
2754 | # autoupdate runs m4. It simply calls m4_warning, but | |
2755 | # we need a wrapper so that each warning is emitted only | |
2756 | # once. We break the quoting in m4_warning's argument in | |
2757 | # order to expand this macro's arguments, not AU_DEFUN's. | |
87326c78 DD |
2758 | |
2759 | ||
6bb11ab3 L |
2760 | # Finally, this is the expansion that is picked up by |
2761 | # autoconf. It tells the user to run autoupdate, and | |
2762 | # then outputs the replacement expansion. We do not care | |
2763 | # about autoupdate's warning because that contains | |
2764 | # information on what to do *after* running autoupdate. | |
87326c78 | 2765 | |
6bb11ab3 L |
2766 | # This is what autoupdate's m4 run will expand. It fires |
2767 | # the warning (with _au_warn_XXX), outputs it into the | |
2768 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2769 | # the replacement expansion. | |
87326c78 DD |
2770 | |
2771 | ||
6bb11ab3 L |
2772 | # This is an auxiliary macro that is also run when |
2773 | # autoupdate runs m4. It simply calls m4_warning, but | |
2774 | # we need a wrapper so that each warning is emitted only | |
2775 | # once. We break the quoting in m4_warning's argument in | |
2776 | # order to expand this macro's arguments, not AU_DEFUN's. | |
87326c78 DD |
2777 | |
2778 | ||
6bb11ab3 L |
2779 | # Finally, this is the expansion that is picked up by |
2780 | # autoconf. It tells the user to run autoupdate, and | |
2781 | # then outputs the replacement expansion. We do not care | |
2782 | # about autoupdate's warning because that contains | |
2783 | # information on what to do *after* running autoupdate. | |
87326c78 | 2784 | |
6bb11ab3 L |
2785 | # This is what autoupdate's m4 run will expand. It fires |
2786 | # the warning (with _au_warn_XXX), outputs it into the | |
2787 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2788 | # the replacement expansion. | |
87326c78 DD |
2789 | |
2790 | ||
6bb11ab3 L |
2791 | # This is an auxiliary macro that is also run when |
2792 | # autoupdate runs m4. It simply calls m4_warning, but | |
2793 | # we need a wrapper so that each warning is emitted only | |
2794 | # once. We break the quoting in m4_warning's argument in | |
2795 | # order to expand this macro's arguments, not AU_DEFUN's. | |
87326c78 DD |
2796 | |
2797 | ||
6bb11ab3 L |
2798 | # Finally, this is the expansion that is picked up by |
2799 | # autoconf. It tells the user to run autoupdate, and | |
2800 | # then outputs the replacement expansion. We do not care | |
2801 | # about autoupdate's warning because that contains | |
2802 | # information on what to do *after* running autoupdate. | |
87326c78 DD |
2803 | |
2804 | ||
2805 | ||
6bb11ab3 L |
2806 | # _LT_TAG_COMPILER |
2807 | # ---------------- | |
2808 | # _LT_TAG_COMPILER | |
87326c78 DD |
2809 | |
2810 | ||
6bb11ab3 L |
2811 | # _LT_COMPILER_BOILERPLATE |
2812 | # ------------------------ | |
2813 | # Check for compiler boilerplate output or warnings with | |
2814 | # the simple compiler test code. | |
2815 | # _LT_COMPILER_BOILERPLATE | |
87326c78 | 2816 | |
87326c78 | 2817 | |
6bb11ab3 L |
2818 | # _LT_LINKER_BOILERPLATE |
2819 | # ---------------------- | |
2820 | # Check for linker boilerplate output or warnings with | |
2821 | # the simple link test code. | |
2822 | # _LT_LINKER_BOILERPLATE | |
87326c78 | 2823 | |
6bb11ab3 L |
2824 | # _LT_REQUIRED_DARWIN_CHECKS |
2825 | # ------------------------- | |
87326c78 | 2826 | |
87326c78 | 2827 | |
87326c78 | 2828 | |
6bb11ab3 L |
2829 | # _LT_DARWIN_LINKER_FEATURES |
2830 | # -------------------------- | |
2831 | # Checks for linker and compiler features on darwin | |
87326c78 | 2832 | |
87326c78 | 2833 | |
6bb11ab3 L |
2834 | # _LT_SYS_MODULE_PATH_AIX |
2835 | # ----------------------- | |
2836 | # Links a minimal program and checks the executable | |
2837 | # for the system default hardcoded library path. In most cases, | |
2838 | # this is /usr/lib:/lib, but when the MPI compilers are used | |
2839 | # the location of the communication and MPI libs are included too. | |
2840 | # If we don't find anything, use the default library path according | |
2841 | # to the aix ld manual. | |
2842 | # _LT_SYS_MODULE_PATH_AIX | |
87326c78 DD |
2843 | |
2844 | ||
6bb11ab3 L |
2845 | # _LT_SHELL_INIT(ARG) |
2846 | # ------------------- | |
2847 | # _LT_SHELL_INIT | |
87326c78 | 2848 | |
87326c78 DD |
2849 | |
2850 | ||
6bb11ab3 L |
2851 | # _LT_PROG_ECHO_BACKSLASH |
2852 | # ----------------------- | |
2853 | # Find how we can fake an echo command that does not interpret backslash. | |
2854 | # In particular, with Autoconf 2.60 or later we add some code to the start | |
2855 | # of the generated configure script which will find a shell with a builtin | |
2856 | # printf (which we can use as an echo command). | |
2857 | # _LT_PROG_ECHO_BACKSLASH | |
87326c78 | 2858 | |
87326c78 | 2859 | |
6bb11ab3 L |
2860 | # _LT_ENABLE_LOCK |
2861 | # --------------- | |
2862 | # _LT_ENABLE_LOCK | |
87326c78 | 2863 | |
87326c78 | 2864 | |
6bb11ab3 L |
2865 | # _LT_CMD_OLD_ARCHIVE |
2866 | # ------------------- | |
2867 | # _LT_CMD_OLD_ARCHIVE | |
87326c78 DD |
2868 | |
2869 | ||
6bb11ab3 L |
2870 | # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
2871 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | |
2872 | # ---------------------------------------------------------------- | |
2873 | # Check whether the given compiler option works | |
2874 | # _LT_COMPILER_OPTION | |
87326c78 | 2875 | |
6bb11ab3 L |
2876 | # Old name: |
2877 | # This is what autoupdate's m4 run will expand. It fires | |
2878 | # the warning (with _au_warn_XXX), outputs it into the | |
2879 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2880 | # the replacement expansion. | |
87326c78 | 2881 | |
87326c78 | 2882 | |
6bb11ab3 L |
2883 | # This is an auxiliary macro that is also run when |
2884 | # autoupdate runs m4. It simply calls m4_warning, but | |
2885 | # we need a wrapper so that each warning is emitted only | |
2886 | # once. We break the quoting in m4_warning's argument in | |
2887 | # order to expand this macro's arguments, not AU_DEFUN's. | |
87326c78 | 2888 | |
87326c78 | 2889 | |
6bb11ab3 L |
2890 | # Finally, this is the expansion that is picked up by |
2891 | # autoconf. It tells the user to run autoupdate, and | |
2892 | # then outputs the replacement expansion. We do not care | |
2893 | # about autoupdate's warning because that contains | |
2894 | # information on what to do *after* running autoupdate. | |
87326c78 | 2895 | |
87326c78 | 2896 | |
87326c78 | 2897 | |
6bb11ab3 L |
2898 | # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
2899 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | |
2900 | # ---------------------------------------------------- | |
2901 | # Check whether the given linker option works | |
2902 | # _LT_LINKER_OPTION | |
87326c78 | 2903 | |
6bb11ab3 L |
2904 | # Old name: |
2905 | # This is what autoupdate's m4 run will expand. It fires | |
2906 | # the warning (with _au_warn_XXX), outputs it into the | |
2907 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2908 | # the replacement expansion. | |
87326c78 | 2909 | |
87326c78 | 2910 | |
6bb11ab3 L |
2911 | # This is an auxiliary macro that is also run when |
2912 | # autoupdate runs m4. It simply calls m4_warning, but | |
2913 | # we need a wrapper so that each warning is emitted only | |
2914 | # once. We break the quoting in m4_warning's argument in | |
2915 | # order to expand this macro's arguments, not AU_DEFUN's. | |
87326c78 | 2916 | |
87326c78 | 2917 | |
6bb11ab3 L |
2918 | # Finally, this is the expansion that is picked up by |
2919 | # autoconf. It tells the user to run autoupdate, and | |
2920 | # then outputs the replacement expansion. We do not care | |
2921 | # about autoupdate's warning because that contains | |
2922 | # information on what to do *after* running autoupdate. | |
2923 | ||
2924 | ||
2925 | ||
2926 | # LT_CMD_MAX_LEN | |
2927 | #--------------- | |
2928 | # LT_CMD_MAX_LEN | |
2929 | ||
2930 | # Old name: | |
2931 | # This is what autoupdate's m4 run will expand. It fires | |
2932 | # the warning (with _au_warn_XXX), outputs it into the | |
2933 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2934 | # the replacement expansion. | |
2935 | ||
2936 | ||
2937 | # This is an auxiliary macro that is also run when | |
2938 | # autoupdate runs m4. It simply calls m4_warning, but | |
2939 | # we need a wrapper so that each warning is emitted only | |
2940 | # once. We break the quoting in m4_warning's argument in | |
2941 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2942 | ||
2943 | ||
2944 | # Finally, this is the expansion that is picked up by | |
2945 | # autoconf. It tells the user to run autoupdate, and | |
2946 | # then outputs the replacement expansion. We do not care | |
2947 | # about autoupdate's warning because that contains | |
2948 | # information on what to do *after* running autoupdate. | |
2949 | ||
2950 | ||
2951 | ||
2952 | # _LT_HEADER_DLFCN | |
2953 | # ---------------- | |
2954 | # _LT_HEADER_DLFCN | |
2955 | ||
2956 | ||
2957 | # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | |
2958 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | |
2959 | # ---------------------------------------------------------------- | |
2960 | # _LT_TRY_DLOPEN_SELF | |
2961 | ||
2962 | ||
2963 | # LT_SYS_DLOPEN_SELF | |
2964 | # ------------------ | |
2965 | # LT_SYS_DLOPEN_SELF | |
2966 | ||
2967 | # Old name: | |
2968 | # This is what autoupdate's m4 run will expand. It fires | |
2969 | # the warning (with _au_warn_XXX), outputs it into the | |
2970 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2971 | # the replacement expansion. | |
2972 | ||
2973 | ||
2974 | # This is an auxiliary macro that is also run when | |
2975 | # autoupdate runs m4. It simply calls m4_warning, but | |
2976 | # we need a wrapper so that each warning is emitted only | |
2977 | # once. We break the quoting in m4_warning's argument in | |
2978 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2979 | ||
2980 | ||
2981 | # Finally, this is the expansion that is picked up by | |
2982 | # autoconf. It tells the user to run autoupdate, and | |
2983 | # then outputs the replacement expansion. We do not care | |
2984 | # about autoupdate's warning because that contains | |
2985 | # information on what to do *after* running autoupdate. | |
2986 | ||
2987 | ||
2988 | ||
2989 | # _LT_COMPILER_C_O([TAGNAME]) | |
2990 | # --------------------------- | |
2991 | # Check to see if options -c and -o are simultaneously supported by compiler. | |
2992 | # This macro does not hard code the compiler like AC_PROG_CC_C_O. | |
2993 | # _LT_COMPILER_C_O | |
2994 | ||
2995 | ||
2996 | # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | |
2997 | # ---------------------------------- | |
2998 | # Check to see if we can do hard links to lock some files if needed | |
2999 | # _LT_COMPILER_FILE_LOCKS | |
3000 | ||
3001 | ||
3002 | # _LT_CHECK_OBJDIR | |
3003 | # ---------------- | |
3004 | # _LT_CHECK_OBJDIR | |
3005 | ||
3006 | ||
3007 | # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | |
3008 | # -------------------------------------- | |
3009 | # Check hardcoding attributes. | |
3010 | # _LT_LINKER_HARDCODE_LIBPATH | |
3011 | ||
3012 | ||
3013 | # _LT_CMD_STRIPLIB | |
3014 | # ---------------- | |
3015 | # _LT_CMD_STRIPLIB | |
3016 | ||
3017 | ||
3018 | # _LT_SYS_DYNAMIC_LINKER([TAG]) | |
3019 | # ----------------------------- | |
3020 | # PORTME Fill in your ld.so characteristics | |
3021 | # _LT_SYS_DYNAMIC_LINKER | |
3022 | ||
3023 | ||
3024 | # _LT_PATH_TOOL_PREFIX(TOOL) | |
3025 | # -------------------------- | |
3026 | # find a file program which can recognize shared library | |
3027 | # _LT_PATH_TOOL_PREFIX | |
3028 | ||
3029 | # Old name: | |
3030 | # This is what autoupdate's m4 run will expand. It fires | |
3031 | # the warning (with _au_warn_XXX), outputs it into the | |
3032 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3033 | # the replacement expansion. | |
3034 | ||
3035 | ||
3036 | # This is an auxiliary macro that is also run when | |
3037 | # autoupdate runs m4. It simply calls m4_warning, but | |
3038 | # we need a wrapper so that each warning is emitted only | |
3039 | # once. We break the quoting in m4_warning's argument in | |
3040 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3041 | ||
3042 | ||
3043 | # Finally, this is the expansion that is picked up by | |
3044 | # autoconf. It tells the user to run autoupdate, and | |
3045 | # then outputs the replacement expansion. We do not care | |
3046 | # about autoupdate's warning because that contains | |
3047 | # information on what to do *after* running autoupdate. | |
3048 | ||
3049 | ||
3050 | ||
3051 | # _LT_PATH_MAGIC | |
3052 | # -------------- | |
3053 | # find a file program which can recognize a shared library | |
3054 | # _LT_PATH_MAGIC | |
3055 | ||
3056 | ||
3057 | # LT_PATH_LD | |
3058 | # ---------- | |
3059 | # find the pathname to the GNU or non-GNU linker | |
3060 | # LT_PATH_LD | |
3061 | ||
3062 | # Old names: | |
3063 | # This is what autoupdate's m4 run will expand. It fires | |
3064 | # the warning (with _au_warn_XXX), outputs it into the | |
3065 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3066 | # the replacement expansion. | |
3067 | ||
3068 | ||
3069 | # This is an auxiliary macro that is also run when | |
3070 | # autoupdate runs m4. It simply calls m4_warning, but | |
3071 | # we need a wrapper so that each warning is emitted only | |
3072 | # once. We break the quoting in m4_warning's argument in | |
3073 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3074 | ||
3075 | ||
3076 | # Finally, this is the expansion that is picked up by | |
3077 | # autoconf. It tells the user to run autoupdate, and | |
3078 | # then outputs the replacement expansion. We do not care | |
3079 | # about autoupdate's warning because that contains | |
3080 | # information on what to do *after* running autoupdate. | |
3081 | ||
3082 | # This is what autoupdate's m4 run will expand. It fires | |
3083 | # the warning (with _au_warn_XXX), outputs it into the | |
3084 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3085 | # the replacement expansion. | |
3086 | ||
3087 | ||
3088 | # This is an auxiliary macro that is also run when | |
3089 | # autoupdate runs m4. It simply calls m4_warning, but | |
3090 | # we need a wrapper so that each warning is emitted only | |
3091 | # once. We break the quoting in m4_warning's argument in | |
3092 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3093 | ||
3094 | ||
3095 | # Finally, this is the expansion that is picked up by | |
3096 | # autoconf. It tells the user to run autoupdate, and | |
3097 | # then outputs the replacement expansion. We do not care | |
3098 | # about autoupdate's warning because that contains | |
3099 | # information on what to do *after* running autoupdate. | |
3100 | ||
3101 | ||
3102 | ||
3103 | # _LT_PATH_LD_GNU | |
3104 | #- -------------- | |
3105 | # _LT_PATH_LD_GNU | |
3106 | ||
3107 | ||
3108 | # _LT_CMD_RELOAD | |
3109 | # -------------- | |
3110 | # find reload flag for linker | |
3111 | # -- PORTME Some linkers may need a different reload flag. | |
3112 | # _LT_CMD_RELOAD | |
3113 | ||
3114 | ||
3115 | # _LT_CHECK_MAGIC_METHOD | |
3116 | # ---------------------- | |
3117 | # how to check for library dependencies | |
3118 | # -- PORTME fill in with the dynamic library characteristics | |
3119 | # _LT_CHECK_MAGIC_METHOD | |
3120 | ||
3121 | ||
3122 | # LT_PATH_NM | |
3123 | # ---------- | |
3124 | # find the pathname to a BSD- or MS-compatible name lister | |
3125 | # LT_PATH_NM | |
3126 | ||
3127 | # Old names: | |
3128 | # This is what autoupdate's m4 run will expand. It fires | |
3129 | # the warning (with _au_warn_XXX), outputs it into the | |
3130 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3131 | # the replacement expansion. | |
3132 | ||
3133 | ||
3134 | # This is an auxiliary macro that is also run when | |
3135 | # autoupdate runs m4. It simply calls m4_warning, but | |
3136 | # we need a wrapper so that each warning is emitted only | |
3137 | # once. We break the quoting in m4_warning's argument in | |
3138 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3139 | ||
3140 | ||
3141 | # Finally, this is the expansion that is picked up by | |
3142 | # autoconf. It tells the user to run autoupdate, and | |
3143 | # then outputs the replacement expansion. We do not care | |
3144 | # about autoupdate's warning because that contains | |
3145 | # information on what to do *after* running autoupdate. | |
3146 | ||
3147 | # This is what autoupdate's m4 run will expand. It fires | |
3148 | # the warning (with _au_warn_XXX), outputs it into the | |
3149 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3150 | # the replacement expansion. | |
3151 | ||
3152 | ||
3153 | # This is an auxiliary macro that is also run when | |
3154 | # autoupdate runs m4. It simply calls m4_warning, but | |
3155 | # we need a wrapper so that each warning is emitted only | |
3156 | # once. We break the quoting in m4_warning's argument in | |
3157 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3158 | ||
3159 | ||
3160 | # Finally, this is the expansion that is picked up by | |
3161 | # autoconf. It tells the user to run autoupdate, and | |
3162 | # then outputs the replacement expansion. We do not care | |
3163 | # about autoupdate's warning because that contains | |
3164 | # information on what to do *after* running autoupdate. | |
3165 | ||
3166 | ||
3167 | ||
3168 | # LT_LIB_M | |
3169 | # -------- | |
3170 | # check for math library | |
3171 | # LT_LIB_M | |
3172 | ||
3173 | # Old name: | |
3174 | # This is what autoupdate's m4 run will expand. It fires | |
3175 | # the warning (with _au_warn_XXX), outputs it into the | |
3176 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3177 | # the replacement expansion. | |
3178 | ||
3179 | ||
3180 | # This is an auxiliary macro that is also run when | |
3181 | # autoupdate runs m4. It simply calls m4_warning, but | |
3182 | # we need a wrapper so that each warning is emitted only | |
3183 | # once. We break the quoting in m4_warning's argument in | |
3184 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3185 | ||
3186 | ||
3187 | # Finally, this is the expansion that is picked up by | |
3188 | # autoconf. It tells the user to run autoupdate, and | |
3189 | # then outputs the replacement expansion. We do not care | |
3190 | # about autoupdate's warning because that contains | |
3191 | # information on what to do *after* running autoupdate. | |
3192 | ||
3193 | ||
3194 | ||
3195 | # _LT_COMPILER_NO_RTTI([TAGNAME]) | |
3196 | # ------------------------------- | |
3197 | # _LT_COMPILER_NO_RTTI | |
3198 | ||
3199 | ||
3200 | # _LT_CMD_GLOBAL_SYMBOLS | |
3201 | # ---------------------- | |
3202 | # _LT_CMD_GLOBAL_SYMBOLS | |
3203 | ||
3204 | ||
3205 | # _LT_COMPILER_PIC([TAGNAME]) | |
3206 | # --------------------------- | |
3207 | # _LT_COMPILER_PIC | |
3208 | ||
3209 | ||
3210 | # _LT_LINKER_SHLIBS([TAGNAME]) | |
3211 | # ---------------------------- | |
3212 | # See if the linker supports building shared libraries. | |
3213 | # _LT_LINKER_SHLIBS | |
3214 | ||
3215 | ||
3216 | # _LT_LANG_C_CONFIG([TAG]) | |
3217 | # ------------------------ | |
3218 | # Ensure that the configuration variables for a C compiler are suitably | |
3219 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
3220 | # the compiler configuration to `libtool'. | |
3221 | # _LT_LANG_C_CONFIG | |
3222 | ||
3223 | ||
3224 | # _LT_LANG_CXX_CONFIG([TAG]) | |
3225 | # -------------------------- | |
3226 | # Ensure that the configuration variables for a C++ compiler are suitably | |
3227 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
3228 | # the compiler configuration to `libtool'. | |
3229 | # _LT_LANG_CXX_CONFIG | |
3230 | ||
3231 | ||
3232 | # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | |
3233 | # --------------------------------- | |
3234 | # Figure out "hidden" library dependencies from verbose | |
3235 | # compiler output when linking a shared library. | |
3236 | # Parse the compiler output and extract the necessary | |
3237 | # objects, libraries and library flags. | |
3238 | # _LT_SYS_HIDDEN_LIBDEPS | |
3239 | ||
3240 | ||
3241 | # _LT_LANG_F77_CONFIG([TAG]) | |
3242 | # -------------------------- | |
3243 | # Ensure that the configuration variables for a Fortran 77 compiler are | |
3244 | # suitably defined. These variables are subsequently used by _LT_CONFIG | |
3245 | # to write the compiler configuration to `libtool'. | |
3246 | # _LT_LANG_F77_CONFIG | |
3247 | ||
3248 | ||
3249 | # _LT_LANG_FC_CONFIG([TAG]) | |
3250 | # ------------------------- | |
3251 | # Ensure that the configuration variables for a Fortran compiler are | |
3252 | # suitably defined. These variables are subsequently used by _LT_CONFIG | |
3253 | # to write the compiler configuration to `libtool'. | |
3254 | # _LT_LANG_FC_CONFIG | |
3255 | ||
3256 | ||
3257 | # _LT_LANG_GCJ_CONFIG([TAG]) | |
3258 | # -------------------------- | |
3259 | # Ensure that the configuration variables for the GNU Java Compiler compiler | |
3260 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
3261 | # to write the compiler configuration to `libtool'. | |
3262 | # _LT_LANG_GCJ_CONFIG | |
3263 | ||
3264 | ||
3265 | # _LT_LANG_RC_CONFIG([TAG]) | |
3266 | # ------------------------- | |
3267 | # Ensure that the configuration variables for the Windows resource compiler | |
3268 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
3269 | # to write the compiler configuration to `libtool'. | |
3270 | # _LT_LANG_RC_CONFIG | |
3271 | ||
3272 | ||
3273 | # LT_PROG_GCJ | |
3274 | # ----------- | |
3275 | ||
3276 | ||
3277 | # Old name: | |
3278 | # This is what autoupdate's m4 run will expand. It fires | |
3279 | # the warning (with _au_warn_XXX), outputs it into the | |
3280 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3281 | # the replacement expansion. | |
3282 | ||
3283 | ||
3284 | # This is an auxiliary macro that is also run when | |
3285 | # autoupdate runs m4. It simply calls m4_warning, but | |
3286 | # we need a wrapper so that each warning is emitted only | |
3287 | # once. We break the quoting in m4_warning's argument in | |
3288 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3289 | ||
3290 | ||
3291 | # Finally, this is the expansion that is picked up by | |
3292 | # autoconf. It tells the user to run autoupdate, and | |
3293 | # then outputs the replacement expansion. We do not care | |
3294 | # about autoupdate's warning because that contains | |
3295 | # information on what to do *after* running autoupdate. | |
3296 | ||
3297 | ||
3298 | ||
3299 | # LT_PROG_RC | |
3300 | # ---------- | |
3301 | ||
3302 | ||
3303 | # Old name: | |
3304 | # This is what autoupdate's m4 run will expand. It fires | |
3305 | # the warning (with _au_warn_XXX), outputs it into the | |
3306 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3307 | # the replacement expansion. | |
3308 | ||
3309 | ||
3310 | # This is an auxiliary macro that is also run when | |
3311 | # autoupdate runs m4. It simply calls m4_warning, but | |
3312 | # we need a wrapper so that each warning is emitted only | |
3313 | # once. We break the quoting in m4_warning's argument in | |
3314 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3315 | ||
3316 | ||
3317 | # Finally, this is the expansion that is picked up by | |
3318 | # autoconf. It tells the user to run autoupdate, and | |
3319 | # then outputs the replacement expansion. We do not care | |
3320 | # about autoupdate's warning because that contains | |
3321 | # information on what to do *after* running autoupdate. | |
3322 | ||
3323 | ||
3324 | ||
3325 | # _LT_DECL_EGREP | |
3326 | # -------------- | |
3327 | # If we don't have a new enough Autoconf to choose the best grep | |
3328 | # available, choose the one first in the user's PATH. | |
3329 | ||
3330 | ||
3331 | ||
3332 | # _LT_DECL_OBJDUMP | |
3333 | # -------------- | |
3334 | # If we don't have a new enough Autoconf to choose the best objdump | |
3335 | # available, choose the one first in the user's PATH. | |
3336 | ||
3337 | ||
3338 | ||
3339 | # _LT_DECL_SED | |
3340 | # ------------ | |
3341 | # Check for a fully-functional sed program, that truncates | |
3342 | # as few characters as possible. Prefer GNU sed if found. | |
3343 | # _LT_DECL_SED | |
3344 | ||
3345 | #m4_ifndef | |
3346 | ||
3347 | # Old name: | |
3348 | # This is what autoupdate's m4 run will expand. It fires | |
3349 | # the warning (with _au_warn_XXX), outputs it into the | |
3350 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3351 | # the replacement expansion. | |
3352 | ||
3353 | ||
3354 | # This is an auxiliary macro that is also run when | |
3355 | # autoupdate runs m4. It simply calls m4_warning, but | |
3356 | # we need a wrapper so that each warning is emitted only | |
3357 | # once. We break the quoting in m4_warning's argument in | |
3358 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3359 | ||
3360 | ||
3361 | # Finally, this is the expansion that is picked up by | |
3362 | # autoconf. It tells the user to run autoupdate, and | |
3363 | # then outputs the replacement expansion. We do not care | |
3364 | # about autoupdate's warning because that contains | |
3365 | # information on what to do *after* running autoupdate. | |
3366 | ||
3367 | ||
3368 | ||
3369 | # _LT_CHECK_SHELL_FEATURES | |
3370 | # ------------------------ | |
3371 | # Find out whether the shell is Bourne or XSI compatible, | |
3372 | # or has some other useful features. | |
3373 | # _LT_CHECK_SHELL_FEATURES | |
3374 | ||
3375 | ||
3376 | # _LT_PROG_XSI_SHELLFNS | |
3377 | # --------------------- | |
3378 | # Bourne and XSI compatible variants of some useful shell functions. | |
3379 | ||
3380 | ||
3381 | # Helper functions for option handling. -*- Autoconf -*- | |
3382 | # | |
3383 | # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, | |
3384 | # Inc. | |
3385 | # Written by Gary V. Vaughan, 2004 | |
3386 | # | |
3387 | # This file is free software; the Free Software Foundation gives | |
3388 | # unlimited permission to copy and/or distribute it, with or without | |
3389 | # modifications, as long as this notice is preserved. | |
3390 | ||
3391 | # serial 6 ltoptions.m4 | |
3392 | ||
3393 | # This is to help aclocal find these macros, as it can't see m4_define. | |
3394 | ||
3395 | ||
3396 | ||
3397 | # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) | |
3398 | # ------------------------------------------ | |
3399 | ||
3400 | ||
3401 | ||
3402 | # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) | |
3403 | # --------------------------------------- | |
3404 | # Set option OPTION-NAME for macro MACRO-NAME, and if there is a | |
3405 | # matching handler defined, dispatch to it. Other OPTION-NAMEs are | |
3406 | # saved as a flag. | |
3407 | ||
3408 | ||
3409 | ||
3410 | # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) | |
3411 | # ------------------------------------------------------------ | |
3412 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
3413 | ||
3414 | ||
3415 | ||
3416 | # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) | |
3417 | # ------------------------------------------------------- | |
3418 | # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME | |
3419 | # are set. | |
3420 | ||
3421 | ||
3422 | ||
3423 | # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) | |
3424 | # ---------------------------------------- | |
3425 | # OPTION-LIST is a space-separated list of Libtool options associated | |
3426 | # with MACRO-NAME. If any OPTION has a matching handler declared with | |
3427 | # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about | |
3428 | # the unknown option and exit. | |
3429 | # _LT_SET_OPTIONS | |
3430 | ||
3431 | ||
3432 | ## --------------------------------- ## | |
3433 | ## Macros to handle LT_INIT options. ## | |
3434 | ## --------------------------------- ## | |
3435 | ||
3436 | # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) | |
3437 | # ----------------------------------------- | |
3438 | ||
3439 | ||
3440 | ||
3441 | # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) | |
3442 | # ----------------------------------------------- | |
3443 | # LT_OPTION_DEFINE | |
3444 | ||
3445 | ||
3446 | # dlopen | |
3447 | # ------ | |
3448 | ||
3449 | ||
3450 | # This is what autoupdate's m4 run will expand. It fires | |
3451 | # the warning (with _au_warn_XXX), outputs it into the | |
3452 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3453 | # the replacement expansion. | |
3454 | ||
3455 | ||
3456 | # This is an auxiliary macro that is also run when | |
3457 | # autoupdate runs m4. It simply calls m4_warning, but | |
3458 | # we need a wrapper so that each warning is emitted only | |
3459 | # once. We break the quoting in m4_warning's argument in | |
3460 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3461 | ||
3462 | ||
3463 | # Finally, this is the expansion that is picked up by | |
3464 | # autoconf. It tells the user to run autoupdate, and | |
3465 | # then outputs the replacement expansion. We do not care | |
3466 | # about autoupdate's warning because that contains | |
3467 | # information on what to do *after* running autoupdate. | |
3468 | ||
3469 | ||
3470 | ||
3471 | ||
3472 | # win32-dll | |
3473 | # --------- | |
3474 | # Declare package support for building win32 dll's. | |
3475 | # win32-dll | |
3476 | ||
3477 | # This is what autoupdate's m4 run will expand. It fires | |
3478 | # the warning (with _au_warn_XXX), outputs it into the | |
3479 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3480 | # the replacement expansion. | |
3481 | ||
3482 | ||
3483 | # This is an auxiliary macro that is also run when | |
3484 | # autoupdate runs m4. It simply calls m4_warning, but | |
3485 | # we need a wrapper so that each warning is emitted only | |
3486 | # once. We break the quoting in m4_warning's argument in | |
3487 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3488 | ||
3489 | ||
3490 | # Finally, this is the expansion that is picked up by | |
3491 | # autoconf. It tells the user to run autoupdate, and | |
3492 | # then outputs the replacement expansion. We do not care | |
3493 | # about autoupdate's warning because that contains | |
3494 | # information on what to do *after* running autoupdate. | |
3495 | ||
3496 | ||
3497 | ||
3498 | ||
3499 | # _LT_ENABLE_SHARED([DEFAULT]) | |
3500 | # ---------------------------- | |
3501 | # implement the --enable-shared flag, and supports the `shared' and | |
3502 | # `disable-shared' LT_INIT options. | |
3503 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
3504 | # _LT_ENABLE_SHARED | |
3505 | ||
3506 | ||
3507 | ||
3508 | ||
3509 | # Old names: | |
3510 | ||
3511 | ||
3512 | ||
3513 | ||
3514 | # This is what autoupdate's m4 run will expand. It fires | |
3515 | # the warning (with _au_warn_XXX), outputs it into the | |
3516 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3517 | # the replacement expansion. | |
3518 | ||
3519 | ||
3520 | # This is an auxiliary macro that is also run when | |
3521 | # autoupdate runs m4. It simply calls m4_warning, but | |
3522 | # we need a wrapper so that each warning is emitted only | |
3523 | # once. We break the quoting in m4_warning's argument in | |
3524 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3525 | ||
3526 | ||
3527 | # Finally, this is the expansion that is picked up by | |
3528 | # autoconf. It tells the user to run autoupdate, and | |
3529 | # then outputs the replacement expansion. We do not care | |
3530 | # about autoupdate's warning because that contains | |
3531 | # information on what to do *after* running autoupdate. | |
3532 | ||
3533 | # This is what autoupdate's m4 run will expand. It fires | |
3534 | # the warning (with _au_warn_XXX), outputs it into the | |
3535 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3536 | # the replacement expansion. | |
3537 | ||
3538 | ||
3539 | # This is an auxiliary macro that is also run when | |
3540 | # autoupdate runs m4. It simply calls m4_warning, but | |
3541 | # we need a wrapper so that each warning is emitted only | |
3542 | # once. We break the quoting in m4_warning's argument in | |
3543 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3544 | ||
3545 | ||
3546 | # Finally, this is the expansion that is picked up by | |
3547 | # autoconf. It tells the user to run autoupdate, and | |
3548 | # then outputs the replacement expansion. We do not care | |
3549 | # about autoupdate's warning because that contains | |
3550 | # information on what to do *after* running autoupdate. | |
3551 | ||
3552 | ||
3553 | ||
3554 | ||
3555 | ||
3556 | # _LT_ENABLE_STATIC([DEFAULT]) | |
3557 | # ---------------------------- | |
3558 | # implement the --enable-static flag, and support the `static' and | |
3559 | # `disable-static' LT_INIT options. | |
3560 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
3561 | # _LT_ENABLE_STATIC | |
3562 | ||
3563 | ||
3564 | ||
3565 | ||
3566 | # Old names: | |
3567 | ||
3568 | ||
3569 | ||
3570 | ||
3571 | # This is what autoupdate's m4 run will expand. It fires | |
3572 | # the warning (with _au_warn_XXX), outputs it into the | |
3573 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3574 | # the replacement expansion. | |
3575 | ||
3576 | ||
3577 | # This is an auxiliary macro that is also run when | |
3578 | # autoupdate runs m4. It simply calls m4_warning, but | |
3579 | # we need a wrapper so that each warning is emitted only | |
3580 | # once. We break the quoting in m4_warning's argument in | |
3581 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3582 | ||
3583 | ||
3584 | # Finally, this is the expansion that is picked up by | |
3585 | # autoconf. It tells the user to run autoupdate, and | |
3586 | # then outputs the replacement expansion. We do not care | |
3587 | # about autoupdate's warning because that contains | |
3588 | # information on what to do *after* running autoupdate. | |
3589 | ||
3590 | # This is what autoupdate's m4 run will expand. It fires | |
3591 | # the warning (with _au_warn_XXX), outputs it into the | |
3592 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3593 | # the replacement expansion. | |
3594 | ||
3595 | ||
3596 | # This is an auxiliary macro that is also run when | |
3597 | # autoupdate runs m4. It simply calls m4_warning, but | |
3598 | # we need a wrapper so that each warning is emitted only | |
3599 | # once. We break the quoting in m4_warning's argument in | |
3600 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3601 | ||
3602 | ||
3603 | # Finally, this is the expansion that is picked up by | |
3604 | # autoconf. It tells the user to run autoupdate, and | |
3605 | # then outputs the replacement expansion. We do not care | |
3606 | # about autoupdate's warning because that contains | |
3607 | # information on what to do *after* running autoupdate. | |
3608 | ||
3609 | ||
3610 | ||
3611 | ||
3612 | ||
3613 | # _LT_ENABLE_FAST_INSTALL([DEFAULT]) | |
3614 | # ---------------------------------- | |
3615 | # implement the --enable-fast-install flag, and support the `fast-install' | |
3616 | # and `disable-fast-install' LT_INIT options. | |
3617 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
3618 | # _LT_ENABLE_FAST_INSTALL | |
3619 | ||
3620 | ||
3621 | ||
3622 | ||
3623 | # Old names: | |
3624 | # This is what autoupdate's m4 run will expand. It fires | |
3625 | # the warning (with _au_warn_XXX), outputs it into the | |
3626 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3627 | # the replacement expansion. | |
3628 | ||
3629 | ||
3630 | # This is an auxiliary macro that is also run when | |
3631 | # autoupdate runs m4. It simply calls m4_warning, but | |
3632 | # we need a wrapper so that each warning is emitted only | |
3633 | # once. We break the quoting in m4_warning's argument in | |
3634 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3635 | ||
3636 | ||
3637 | # Finally, this is the expansion that is picked up by | |
3638 | # autoconf. It tells the user to run autoupdate, and | |
3639 | # then outputs the replacement expansion. We do not care | |
3640 | # about autoupdate's warning because that contains | |
3641 | # information on what to do *after* running autoupdate. | |
3642 | ||
3643 | ||
3644 | # This is what autoupdate's m4 run will expand. It fires | |
3645 | # the warning (with _au_warn_XXX), outputs it into the | |
3646 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3647 | # the replacement expansion. | |
3648 | ||
3649 | ||
3650 | # This is an auxiliary macro that is also run when | |
3651 | # autoupdate runs m4. It simply calls m4_warning, but | |
3652 | # we need a wrapper so that each warning is emitted only | |
3653 | # once. We break the quoting in m4_warning's argument in | |
3654 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3655 | ||
3656 | ||
3657 | # Finally, this is the expansion that is picked up by | |
3658 | # autoconf. It tells the user to run autoupdate, and | |
3659 | # then outputs the replacement expansion. We do not care | |
3660 | # about autoupdate's warning because that contains | |
3661 | # information on what to do *after* running autoupdate. | |
3662 | ||
3663 | ||
3664 | ||
3665 | ||
3666 | # _LT_WITH_PIC([MODE]) | |
3667 | # -------------------- | |
3668 | # implement the --with-pic flag, and support the `pic-only' and `no-pic' | |
3669 | # LT_INIT options. | |
3670 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | |
3671 | # _LT_WITH_PIC | |
3672 | ||
3673 | ||
3674 | ||
3675 | ||
3676 | # Old name: | |
3677 | # This is what autoupdate's m4 run will expand. It fires | |
3678 | # the warning (with _au_warn_XXX), outputs it into the | |
3679 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3680 | # the replacement expansion. | |
3681 | ||
3682 | ||
3683 | # This is an auxiliary macro that is also run when | |
3684 | # autoupdate runs m4. It simply calls m4_warning, but | |
3685 | # we need a wrapper so that each warning is emitted only | |
3686 | # once. We break the quoting in m4_warning's argument in | |
3687 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3688 | ||
3689 | ||
3690 | # Finally, this is the expansion that is picked up by | |
3691 | # autoconf. It tells the user to run autoupdate, and | |
3692 | # then outputs the replacement expansion. We do not care | |
3693 | # about autoupdate's warning because that contains | |
3694 | # information on what to do *after* running autoupdate. | |
3695 | ||
3696 | ||
3697 | ||
3698 | ## ----------------- ## | |
3699 | ## LTDL_INIT Options ## | |
3700 | ## ----------------- ## | |
3701 | ||
3702 | ||
3703 | ||
3704 | ||
3705 | ||
3706 | ||
3707 | ||
3708 | ||
3709 | ||
3710 | ||
3711 | # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- | |
3712 | # | |
3713 | # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | |
3714 | # Written by Gary V. Vaughan, 2004 | |
3715 | # | |
3716 | # This file is free software; the Free Software Foundation gives | |
3717 | # unlimited permission to copy and/or distribute it, with or without | |
3718 | # modifications, as long as this notice is preserved. | |
3719 | ||
3720 | # serial 6 ltsugar.m4 | |
3721 | ||
3722 | # This is to help aclocal find these macros, as it can't see m4_define. | |
3723 | ||
3724 | ||
3725 | ||
3726 | # lt_join(SEP, ARG1, [ARG2...]) | |
3727 | # ----------------------------- | |
3728 | # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their | |
3729 | # associated separator. | |
3730 | # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier | |
3731 | # versions in m4sugar had bugs. | |
3732 | ||
3733 | ||
3734 | ||
3735 | ||
3736 | # lt_car(LIST) | |
3737 | # lt_cdr(LIST) | |
3738 | # ------------ | |
3739 | # Manipulate m4 lists. | |
3740 | # These macros are necessary as long as will still need to support | |
3741 | # Autoconf-2.59 which quotes differently. | |
3742 | ||
3743 | ||
3744 | ||
3745 | ||
3746 | ||
3747 | # lt_append(MACRO-NAME, STRING, [SEPARATOR]) | |
3748 | # ------------------------------------------ | |
3749 | # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. | |
3750 | # Note that neither SEPARATOR nor STRING are expanded; they are appended | |
3751 | # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). | |
3752 | # No SEPARATOR is output if MACRO-NAME was previously undefined (different | |
3753 | # than defined and empty). | |
3754 | # | |
3755 | # This macro is needed until we can rely on Autoconf 2.62, since earlier | |
3756 | # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. | |
3757 | ||
3758 | ||
3759 | ||
3760 | ||
3761 | # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) | |
3762 | # ---------------------------------------------------------- | |
3763 | # Produce a SEP delimited list of all paired combinations of elements of | |
3764 | # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list | |
3765 | # has the form PREFIXmINFIXSUFFIXn. | |
3766 | # Needed until we can rely on m4_combine added in Autoconf 2.62. | |
3767 | ||
3768 | ||
3769 | ||
3770 | # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) | |
3771 | # ----------------------------------------------------------------------- | |
3772 | # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited | |
3773 | # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. | |
3774 | ||
3775 | ||
3776 | ||
3777 | # lt_dict_add(DICT, KEY, VALUE) | |
3778 | # ----------------------------- | |
3779 | ||
3780 | ||
3781 | ||
3782 | # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) | |
3783 | # -------------------------------------------- | |
3784 | ||
3785 | ||
3786 | ||
3787 | # lt_dict_fetch(DICT, KEY, [SUBKEY]) | |
3788 | # ---------------------------------- | |
3789 | ||
3790 | ||
3791 | ||
3792 | # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) | |
3793 | # ----------------------------------------------------------------- | |
3794 | ||
3795 | ||
3796 | ||
3797 | # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) | |
3798 | # -------------------------------------------------------------- | |
3799 | ||
3800 | ||
3801 | # ltversion.m4 -- version numbers -*- Autoconf -*- | |
3802 | # | |
3803 | # Copyright (C) 2004 Free Software Foundation, Inc. | |
3804 | # Written by Scott James Remnant, 2004 | |
3805 | # | |
3806 | # This file is free software; the Free Software Foundation gives | |
3807 | # unlimited permission to copy and/or distribute it, with or without | |
3808 | # modifications, as long as this notice is preserved. | |
3809 | ||
3810 | # Generated from ltversion.in. | |
3811 | ||
3812 | # serial 3134 ltversion.m4 | |
3813 | # This file is part of GNU Libtool | |
3814 | ||
3815 | ||
3816 | ||
3817 | ||
3818 | ||
3819 | ||
3820 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- | |
3821 | # | |
3822 | # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | |
3823 | # Written by Scott James Remnant, 2004. | |
3824 | # | |
3825 | # This file is free software; the Free Software Foundation gives | |
3826 | # unlimited permission to copy and/or distribute it, with or without | |
3827 | # modifications, as long as this notice is preserved. | |
3828 | ||
3829 | # serial 4 lt~obsolete.m4 | |
3830 | ||
3831 | # These exist entirely to fool aclocal when bootstrapping libtool. | |
3832 | # | |
3833 | # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) | |
3834 | # which have later been changed to m4_define as they aren't part of the | |
3835 | # exported API, or moved to Autoconf or Automake where they belong. | |
3836 | # | |
3837 | # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN | |
3838 | # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us | |
3839 | # using a macro with the same name in our local m4/libtool.m4 it'll | |
3840 | # pull the old libtool.m4 in (it doesn't see our shiny new m4_define | |
3841 | # and doesn't know about Autoconf macros at all.) | |
3842 | # | |
3843 | # So we provide this file, which has a silly filename so it's always | |
3844 | # included after everything else. This provides aclocal with the | |
3845 | # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything | |
3846 | # because those macros already exist, or will be overwritten later. | |
3847 | # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. | |
3848 | # | |
3849 | # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. | |
3850 | # Yes, that means every name once taken will need to remain here until | |
3851 | # we give up compatibility with versions before 1.7, at which point | |
3852 | # we need to keep only those names which we still refer to. | |
3853 | ||
3854 | # This is to help aclocal find these macros, as it can't see m4_define. | |
3855 | ||
3856 | ||
3857 | ||
3858 | ||
3859 | ||
3860 | ||
3861 | ||
3862 | ||
3863 | ||
3864 | ||
3865 | ||
3866 | ||
3867 | ||
3868 | ||
3869 | ||
3870 | ||
3871 | ||
3872 | ||
3873 | ||
3874 | ||
3875 | ||
3876 | ||
3877 | ||
3878 | ||
3879 | ||
3880 | ||
3881 | ||
3882 | ||
3883 | ||
3884 | ||
3885 | ||
3886 | ||
3887 | ||
3888 | ||
3889 | ||
3890 | ||
3891 | ||
3892 | ||
3893 | ||
3894 | ||
3895 | ||
3896 | ||
3897 | ||
3898 | ||
3899 | ||
3900 | ||
3901 | ||
3902 | ||
3903 | ||
3904 | ||
3905 | ||
3906 | ||
3907 | ||
3908 | ||
3909 | ||
3910 | ||
3911 | ||
3912 | ||
3913 | ||
3914 | ||
3915 | ||
3916 | ||
3917 | ||
3918 | ||
3919 | ## -*- Autoconf -*- | |
3920 | ||
3921 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 | |
3922 | # Free Software Foundation, Inc. | |
3923 | # | |
3924 | # This file is free software; the Free Software Foundation | |
3925 | # gives unlimited permission to copy and/or distribute it, | |
3926 | # with or without modifications, as long as this notice is preserved. | |
3927 | ||
3928 | # serial 8 | |
3929 | ||
3930 | # Based on depend.m4 from automake 1.9, modified for standalone use in | |
3931 | # an environment where GNU make is required. | |
3932 | ||
3933 | # ZW_PROG_COMPILER_DEPENDENCIES | |
3934 | # ----------------------------- | |
3935 | # Variant of _AM_DEPENDENCIES which just does the dependency probe and | |
3936 | # sets fooDEPMODE accordingly. Cache-variable compatible with | |
3937 | # original; not side-effect compatible. As the users of this macro | |
3938 | # may require accurate dependencies for correct builds, it does *not* | |
3939 | # honor --disable-dependency-checking, and failure to detect a usable | |
3940 | # method is an error. depcomp is assumed to be located in | |
3941 | # $ac_aux_dir. | |
3942 | # | |
3943 | # FIXME: Should use the Autoconf 2.5x language-selection mechanism. | |
3944 | ||
3945 | ||
3946 | ||
3947 | # AM_SET_DEPDIR | |
3948 | # ------------- | |
3949 | # Choose a directory name for dependency files. | |
3950 | ||
3951 | ||
3952 | # ZW_CREATE_DEPDIR | |
3953 | # ---------------- | |
3954 | # As AM_SET_DEPDIR, but also create the directory at config.status time. | |
3955 | ||
3956 | ||
3957 | ||
3958 | ||
3959 | ||
3960 | ||
3961 | ||
3962 | ||
3963 | ||
3964 | ||
3965 | ||
3966 | ||
3967 | ||
3968 | ||
3969 | ||
3970 | ||
3971 | ||
3972 | ||
3973 | ||
3974 | ||
3975 | ||
3976 | ||
3977 | ||
3978 | ||
3979 | ||
3980 | ||
3981 | ||
3982 | ||
3983 | ||
3984 | ||
3985 | ||
3986 | ||
3987 | ||
3988 | ||
3989 | ||
3990 | ||
3991 | ||
3992 | ||
3993 | ||
3994 | ||
3995 | ||
6bb11ab3 L |
3996 | |
3997 | ||
3998 | ||
3999 | ||
4000 | ||
6bb11ab3 L |
4001 | |
4002 | ||
4003 | ||
4004 | ||
4005 | ||
4006 | ||
4007 | ||
4008 | ||
4009 | ||
4010 | ||
4011 | ||
4012 | ||
4013 | ||
4014 | ||
4015 | ||
6bb11ab3 L |
4016 | |
4017 | ||
4018 | ||
4019 | ||
4020 | ||
4021 | # intl sister-directory configuration rules. | |
4022 | # | |
4023 | ||
4024 | # The idea behind this macro is that there's no need to repeat all the | |
4025 | # autoconf probes done by the intl directory - it's already done them | |
4026 | # for us. In fact, there's no need even to look at the cache for the | |
4027 | # answers. All we need to do is nab a few pieces of information. | |
4028 | # The intl directory is set up to make this easy, by generating a | |
4029 | # small file which can be sourced as a shell script; then we produce | |
4030 | # the necessary substitutions and definitions for this directory. | |
4031 | ||
4032 | ||
4033 | ||
4034 | # Autoconf M4 include file defining utility macros for complex Canadian | |
4035 | # cross builds. | |
4036 | ||
4037 | ||
4038 | ||
4039 | ||
4040 | ||
4041 | ||
4042 | ||
4043 | ||
4044 | ||
4045 | #### | |
4046 | # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM | |
4047 | # or AC_INIT. | |
4048 | # These demand that AC_CANONICAL_SYSTEM be called beforehand. | |
4049 | ||
4050 | #### | |
4051 | # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
4052 | # Like plain AC_CHECK_TOOLS, but require prefix if build!=host. | |
4053 | ||
4054 | ||
4055 | #### | |
4056 | # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
4057 | # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target. | |
4058 | ||
4059 | ||
4060 | ||
4061 | # Backported from Autoconf 2.5x; can go away when and if | |
4062 | # we switch. Put the OS path separator in $PATH_SEPARATOR. | |
4063 | ||
4064 | ||
4065 | ||
4066 | ||
37f980dc SM |
4067 | |
4068 | ||
4069 | ||
4070 | ||
6bb11ab3 L |
4071 | # ACX_HAVE_GCC_FOR_TARGET |
4072 | # Check if the variable GCC_FOR_TARGET really points to a GCC binary. | |
4073 | ||
4074 | ||
4075 | # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG) | |
4076 | # Searching for installed target binutils. We need to take extra care, | |
4077 | # else we may find the wrong assembler, linker, etc., and lose. | |
4078 | # | |
4079 | # First try --with-build-time-tools, if specified. | |
4080 | # | |
4081 | # For build != host, we ask the installed GCC for the name of the tool it | |
4082 | # uses, and accept it if it is an absolute path. This is because the | |
4083 | # only good choice for a compiler is the same GCC version that is being | |
4084 | # installed (or we couldn't make target libraries), and we assume that | |
4085 | # on the host system we'll have not only the same GCC version, but also | |
4086 | # the same binutils version. | |
4087 | # | |
4088 | # For build == host, search the same directories that the installed | |
4089 | # compiler will search. We used to do this for the assembler, linker, | |
4090 | # and nm only; for simplicity of configuration, however, we extend this | |
4091 | # criterion to tools (such as ar and ranlib) that are never invoked by | |
4092 | # the compiler, to avoid mismatches. | |
4093 | # | |
4094 | # Also note we have to check MD_EXEC_PREFIX before checking the user's path | |
4095 | # if build == target. This makes the most sense only when bootstrapping, | |
4096 | # but we also do so when build != host. In this case, we hope that the | |
4097 | # build and host systems will have similar contents of MD_EXEC_PREFIX. | |
4098 | # | |
4099 | # If we do not find a suitable binary, then try the user's path. | |
4100 | ||
4101 | ||
4102 | ### | |
4103 | # AC_PROG_CPP_WERROR | |
4104 | # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which | |
4105 | # triggers warnings from the preprocessor. Will be in autoconf 2.58. | |
4106 | # For now, using this also overrides header checks to use only the | |
4107 | # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a | |
4108 | # bit harder from here). | |
4109 | # Eventually autoconf will default to checking headers with the compiler | |
4110 | # instead, and we'll have to do this differently. | |
4111 | ||
4112 | # AC_PROG_CPP_WERROR | |
4113 | ||
4114 | # Test for GNAT. | |
4115 | # We require the gnatbind & gnatmake programs, as well as a compiler driver | |
4116 | # that understands Ada. We use the user's CC setting, already found, and | |
4117 | # possibly add $1 to the command-line parameters. | |
4118 | # | |
4119 | # Sets the shell variable have_gnat to yes or no as appropriate, and | |
4120 | # substitutes GNATBIND and GNATMAKE. | |
4121 | ||
4122 | ||
4123 | ||
4124 | ||
4125 | ||
4126 | ||
4127 | ||
4128 | ||
4129 | ||
4130 | ||
4131 | ||
4132 | ||
4133 | ||
4134 | ||
4135 | ||
4136 | ||
4137 | ||
4138 | ||
4139 | ||
4140 | ||
4141 | ||
4142 | ||
4143 | ||
4144 | ||
4145 | ||
4146 | ac_ext=c | |
4147 | ac_cpp='$CPP $CPPFLAGS' | |
4148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4151 | if test -n "$ac_tool_prefix"; then | |
4152 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4153 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4155 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4156 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
4157 | $as_echo_n "(cached) " >&6 |
4158 | else | |
4159 | if test -n "$CC"; then | |
4160 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4161 | else | |
4162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4163 | for as_dir in $PATH | |
4164 | do | |
4165 | IFS=$as_save_IFS | |
4166 | test -z "$as_dir" && as_dir=. | |
4167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4169 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
4170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4171 | break 2 | |
4172 | fi | |
4173 | done | |
4174 | done | |
4175 | IFS=$as_save_IFS | |
4176 | ||
4177 | fi | |
4178 | fi | |
4179 | CC=$ac_cv_prog_CC | |
4180 | if test -n "$CC"; then | |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4182 | $as_echo "$CC" >&6; } | |
4183 | else | |
4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4185 | $as_echo "no" >&6; } | |
4186 | fi | |
4187 | ||
4188 | ||
4189 | fi | |
4190 | if test -z "$ac_cv_prog_CC"; then | |
4191 | ac_ct_CC=$CC | |
4192 | # Extract the first word of "gcc", so it can be a program name with args. | |
4193 | set dummy gcc; ac_word=$2 | |
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4195 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4196 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bb11ab3 L |
4197 | $as_echo_n "(cached) " >&6 |
4198 | else | |
4199 | if test -n "$ac_ct_CC"; then | |
4200 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4201 | else | |
4202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4203 | for as_dir in $PATH | |
4204 | do | |
4205 | IFS=$as_save_IFS | |
4206 | test -z "$as_dir" && as_dir=. | |
4207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4209 | ac_cv_prog_ac_ct_CC="gcc" |
4210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4211 | break 2 | |
4212 | fi | |
4213 | done | |
4214 | done | |
4215 | IFS=$as_save_IFS | |
4216 | ||
4217 | fi | |
4218 | fi | |
4219 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4220 | if test -n "$ac_ct_CC"; then | |
4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4222 | $as_echo "$ac_ct_CC" >&6; } | |
4223 | else | |
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4225 | $as_echo "no" >&6; } | |
4226 | fi | |
4227 | ||
4228 | if test "x$ac_ct_CC" = x; then | |
4229 | CC="" | |
4230 | else | |
4231 | case $cross_compiling:$ac_tool_warned in | |
4232 | yes:) | |
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4234 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4235 | ac_tool_warned=yes ;; | |
4236 | esac | |
4237 | CC=$ac_ct_CC | |
4238 | fi | |
4239 | else | |
4240 | CC="$ac_cv_prog_CC" | |
4241 | fi | |
4242 | ||
4243 | if test -z "$CC"; then | |
4244 | if test -n "$ac_tool_prefix"; then | |
4245 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4246 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4248 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4249 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
4250 | $as_echo_n "(cached) " >&6 |
4251 | else | |
4252 | if test -n "$CC"; then | |
4253 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4254 | else | |
4255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4256 | for as_dir in $PATH | |
4257 | do | |
4258 | IFS=$as_save_IFS | |
4259 | test -z "$as_dir" && as_dir=. | |
4260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4262 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
4263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4264 | break 2 | |
4265 | fi | |
4266 | done | |
4267 | done | |
4268 | IFS=$as_save_IFS | |
4269 | ||
4270 | fi | |
4271 | fi | |
4272 | CC=$ac_cv_prog_CC | |
4273 | if test -n "$CC"; then | |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4275 | $as_echo "$CC" >&6; } | |
4276 | else | |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4278 | $as_echo "no" >&6; } | |
4279 | fi | |
4280 | ||
4281 | ||
4282 | fi | |
4283 | fi | |
4284 | if test -z "$CC"; then | |
4285 | # Extract the first word of "cc", so it can be a program name with args. | |
4286 | set dummy cc; ac_word=$2 | |
4287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4288 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4289 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
4290 | $as_echo_n "(cached) " >&6 |
4291 | else | |
4292 | if test -n "$CC"; then | |
4293 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4294 | else | |
4295 | ac_prog_rejected=no | |
4296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4297 | for as_dir in $PATH | |
4298 | do | |
4299 | IFS=$as_save_IFS | |
4300 | test -z "$as_dir" && as_dir=. | |
4301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4303 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4304 | ac_prog_rejected=yes | |
4305 | continue | |
4306 | fi | |
4307 | ac_cv_prog_CC="cc" | |
4308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4309 | break 2 | |
4310 | fi | |
4311 | done | |
4312 | done | |
4313 | IFS=$as_save_IFS | |
4314 | ||
4315 | if test $ac_prog_rejected = yes; then | |
4316 | # We found a bogon in the path, so make sure we never use it. | |
4317 | set dummy $ac_cv_prog_CC | |
4318 | shift | |
4319 | if test $# != 0; then | |
4320 | # We chose a different compiler from the bogus one. | |
4321 | # However, it has the same basename, so the bogon will be chosen | |
4322 | # first if we set CC to just the basename; use the full file name. | |
4323 | shift | |
4324 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4325 | fi | |
4326 | fi | |
4327 | fi | |
4328 | fi | |
4329 | CC=$ac_cv_prog_CC | |
4330 | if test -n "$CC"; then | |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4332 | $as_echo "$CC" >&6; } | |
4333 | else | |
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4335 | $as_echo "no" >&6; } | |
4336 | fi | |
4337 | ||
4338 | ||
4339 | fi | |
4340 | if test -z "$CC"; then | |
4341 | if test -n "$ac_tool_prefix"; then | |
4342 | for ac_prog in cl.exe | |
4343 | do | |
4344 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4345 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4347 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4348 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
4349 | $as_echo_n "(cached) " >&6 |
4350 | else | |
4351 | if test -n "$CC"; then | |
4352 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4353 | else | |
4354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4355 | for as_dir in $PATH | |
4356 | do | |
4357 | IFS=$as_save_IFS | |
4358 | test -z "$as_dir" && as_dir=. | |
4359 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4360 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4361 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4363 | break 2 | |
4364 | fi | |
4365 | done | |
4366 | done | |
4367 | IFS=$as_save_IFS | |
4368 | ||
4369 | fi | |
4370 | fi | |
4371 | CC=$ac_cv_prog_CC | |
4372 | if test -n "$CC"; then | |
4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4374 | $as_echo "$CC" >&6; } | |
4375 | else | |
4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4377 | $as_echo "no" >&6; } | |
4378 | fi | |
4379 | ||
4380 | ||
4381 | test -n "$CC" && break | |
4382 | done | |
4383 | fi | |
4384 | if test -z "$CC"; then | |
4385 | ac_ct_CC=$CC | |
4386 | for ac_prog in cl.exe | |
4387 | do | |
4388 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4389 | set dummy $ac_prog; ac_word=$2 | |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4391 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4392 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bb11ab3 L |
4393 | $as_echo_n "(cached) " >&6 |
4394 | else | |
4395 | if test -n "$ac_ct_CC"; then | |
4396 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4397 | else | |
4398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4399 | for as_dir in $PATH | |
4400 | do | |
4401 | IFS=$as_save_IFS | |
4402 | test -z "$as_dir" && as_dir=. | |
4403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4404 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
4405 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4407 | break 2 | |
4408 | fi | |
4409 | done | |
4410 | done | |
4411 | IFS=$as_save_IFS | |
4412 | ||
4413 | fi | |
4414 | fi | |
4415 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4416 | if test -n "$ac_ct_CC"; then | |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4418 | $as_echo "$ac_ct_CC" >&6; } | |
4419 | else | |
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4421 | $as_echo "no" >&6; } | |
4422 | fi | |
4423 | ||
4424 | ||
4425 | test -n "$ac_ct_CC" && break | |
4426 | done | |
4427 | ||
4428 | if test "x$ac_ct_CC" = x; then | |
4429 | CC="" | |
4430 | else | |
4431 | case $cross_compiling:$ac_tool_warned in | |
4432 | yes:) | |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4434 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4435 | ac_tool_warned=yes ;; | |
4436 | esac | |
4437 | CC=$ac_ct_CC | |
4438 | fi | |
4439 | fi | |
4440 | ||
4441 | fi | |
4442 | ||
4443 | ||
4444 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4446 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4447 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 L |
4448 | |
4449 | # Provide some information about the compiler. | |
4450 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4451 | set X $ac_compile | |
4452 | ac_compiler=$2 | |
4453 | for ac_option in --version -v -V -qversion; do | |
4454 | { { ac_try="$ac_compiler $ac_option >&5" | |
4455 | case "(($ac_try" in | |
4456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4457 | *) ac_try_echo=$ac_try;; | |
4458 | esac | |
4459 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4460 | $as_echo "$ac_try_echo"; } >&5 | |
4461 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4462 | ac_status=$? | |
4463 | if test -s conftest.err; then | |
4464 | sed '10a\ | |
4465 | ... rest of stderr output deleted ... | |
4466 | 10q' conftest.err >conftest.er1 | |
4467 | cat conftest.er1 >&5 | |
6bb11ab3 | 4468 | fi |
d0ac1c44 | 4469 | rm -f conftest.er1 conftest.err |
6bb11ab3 L |
4470 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4471 | test $ac_status = 0; } | |
4472 | done | |
4473 | ||
4474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4475 | /* end confdefs.h. */ | |
4476 | ||
4477 | int | |
4478 | main () | |
4479 | { | |
4480 | ||
4481 | ; | |
4482 | return 0; | |
4483 | } | |
4484 | _ACEOF | |
4485 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4486 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
6bb11ab3 L |
4487 | # Try to create an executable without -o first, disregard a.out. |
4488 | # It will help us diagnose broken compilers, and finding out an intuition | |
4489 | # of exeext. | |
d0ac1c44 SM |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4491 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
6bb11ab3 L |
4492 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4493 | ||
4494 | # The possible output files: | |
4495 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4496 | ||
4497 | ac_rmfiles= | |
4498 | for ac_file in $ac_files | |
4499 | do | |
4500 | case $ac_file in | |
4501 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4502 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4503 | esac | |
4504 | done | |
4505 | rm -f $ac_rmfiles | |
4506 | ||
4507 | if { { ac_try="$ac_link_default" | |
4508 | case "(($ac_try" in | |
4509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4510 | *) ac_try_echo=$ac_try;; | |
4511 | esac | |
4512 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4513 | $as_echo "$ac_try_echo"; } >&5 | |
4514 | (eval "$ac_link_default") 2>&5 | |
4515 | ac_status=$? | |
4516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4517 | test $ac_status = 0; }; then : | |
4518 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4519 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4520 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4521 | # so that the user can short-circuit this test for compilers unknown to | |
4522 | # Autoconf. | |
4523 | for ac_file in $ac_files '' | |
4524 | do | |
4525 | test -f "$ac_file" || continue | |
4526 | case $ac_file in | |
4527 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4528 | ;; | |
4529 | [ab].out ) | |
4530 | # We found the default executable, but exeext='' is most | |
4531 | # certainly right. | |
4532 | break;; | |
4533 | *.* ) | |
4534 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4535 | then :; else | |
4536 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4537 | fi | |
4538 | # We set ac_cv_exeext here because the later test for it is not | |
4539 | # safe: cross compilers may not add the suffix if given an `-o' | |
4540 | # argument, so we may need to know it at that point already. | |
4541 | # Even if this section looks crufty: it has the advantage of | |
4542 | # actually working. | |
4543 | break;; | |
4544 | * ) | |
4545 | break;; | |
4546 | esac | |
4547 | done | |
4548 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4549 | ||
4550 | else | |
4551 | ac_file='' | |
4552 | fi | |
6bb11ab3 | 4553 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4555 | $as_echo "no" >&6; } | |
4556 | $as_echo "$as_me: failed program was:" >&5 | |
6bb11ab3 L |
4557 | sed 's/^/| /' conftest.$ac_ext >&5 |
4558 | ||
4559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4561 | as_fn_error 77 "C compiler cannot create executables |
4562 | See \`config.log' for more details" "$LINENO" 5; } | |
4563 | else | |
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4565 | $as_echo "yes" >&6; } | |
6bb11ab3 | 4566 | fi |
d0ac1c44 SM |
4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4568 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4570 | $as_echo "$ac_file" >&6; } | |
6bb11ab3 L |
4571 | ac_exeext=$ac_cv_exeext |
4572 | ||
d0ac1c44 | 4573 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
6bb11ab3 | 4574 | ac_clean_files=$ac_clean_files_save |
6bb11ab3 L |
4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4576 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4577 | if { { ac_try="$ac_link" | |
4578 | case "(($ac_try" in | |
4579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4580 | *) ac_try_echo=$ac_try;; | |
4581 | esac | |
4582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4583 | $as_echo "$ac_try_echo"; } >&5 | |
4584 | (eval "$ac_link") 2>&5 | |
4585 | ac_status=$? | |
4586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4587 | test $ac_status = 0; }; then : | |
4588 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4589 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4590 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4591 | # `rm'. | |
4592 | for ac_file in conftest.exe conftest conftest.*; do | |
4593 | test -f "$ac_file" || continue | |
4594 | case $ac_file in | |
4595 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4596 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4597 | break;; | |
4598 | * ) break;; | |
4599 | esac | |
4600 | done | |
4601 | else | |
4602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4603 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4604 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4605 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 | 4606 | fi |
d0ac1c44 | 4607 | rm -f conftest conftest$ac_cv_exeext |
6bb11ab3 L |
4608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4609 | $as_echo "$ac_cv_exeext" >&6; } | |
4610 | ||
4611 | rm -f conftest.$ac_ext | |
4612 | EXEEXT=$ac_cv_exeext | |
4613 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4615 | /* end confdefs.h. */ | |
4616 | #include <stdio.h> | |
4617 | int | |
4618 | main () | |
4619 | { | |
4620 | FILE *f = fopen ("conftest.out", "w"); | |
4621 | return ferror (f) || fclose (f) != 0; | |
4622 | ||
4623 | ; | |
4624 | return 0; | |
4625 | } | |
4626 | _ACEOF | |
4627 | ac_clean_files="$ac_clean_files conftest.out" | |
4628 | # Check that the compiler produces executables we can run. If not, either | |
4629 | # the compiler is broken, or we cross compile. | |
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4631 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4632 | if test "$cross_compiling" != yes; then | |
4633 | { { ac_try="$ac_link" | |
4634 | case "(($ac_try" in | |
4635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4636 | *) ac_try_echo=$ac_try;; | |
4637 | esac | |
4638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4639 | $as_echo "$ac_try_echo"; } >&5 | |
4640 | (eval "$ac_link") 2>&5 | |
4641 | ac_status=$? | |
4642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4643 | test $ac_status = 0; } | |
4644 | if { ac_try='./conftest$ac_cv_exeext' | |
4645 | { { case "(($ac_try" in | |
4646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4647 | *) ac_try_echo=$ac_try;; | |
4648 | esac | |
4649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4650 | $as_echo "$ac_try_echo"; } >&5 | |
4651 | (eval "$ac_try") 2>&5 | |
4652 | ac_status=$? | |
4653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4654 | test $ac_status = 0; }; }; then | |
4655 | cross_compiling=no | |
4656 | else | |
4657 | if test "$cross_compiling" = maybe; then | |
4658 | cross_compiling=yes | |
4659 | else | |
4660 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4661 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4662 | as_fn_error $? "cannot run C compiled programs. | |
4663 | If you meant to cross compile, use \`--host'. | |
4664 | See \`config.log' for more details" "$LINENO" 5; } | |
4665 | fi | |
4666 | fi | |
4667 | fi | |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4669 | $as_echo "$cross_compiling" >&6; } | |
4670 | ||
4671 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4672 | ac_clean_files=$ac_clean_files_save | |
6bb11ab3 L |
4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4674 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4675 | if ${ac_cv_objext+:} false; then : |
6bb11ab3 L |
4676 | $as_echo_n "(cached) " >&6 |
4677 | else | |
4678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4679 | /* end confdefs.h. */ | |
4680 | ||
4681 | int | |
4682 | main () | |
4683 | { | |
4684 | ||
4685 | ; | |
4686 | return 0; | |
4687 | } | |
4688 | _ACEOF | |
4689 | rm -f conftest.o conftest.obj | |
4690 | if { { ac_try="$ac_compile" | |
4691 | case "(($ac_try" in | |
4692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4693 | *) ac_try_echo=$ac_try;; | |
4694 | esac | |
4695 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4696 | $as_echo "$ac_try_echo"; } >&5 | |
4697 | (eval "$ac_compile") 2>&5 | |
4698 | ac_status=$? | |
4699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4700 | test $ac_status = 0; }; then : | |
4701 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4702 | test -f "$ac_file" || continue; | |
4703 | case $ac_file in | |
4704 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4705 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4706 | break;; | |
4707 | esac | |
4708 | done | |
4709 | else | |
4710 | $as_echo "$as_me: failed program was:" >&5 | |
4711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4712 | ||
4713 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4714 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4715 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4716 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 L |
4717 | fi |
4718 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4719 | fi | |
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4721 | $as_echo "$ac_cv_objext" >&6; } | |
4722 | OBJEXT=$ac_cv_objext | |
4723 | ac_objext=$OBJEXT | |
4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4725 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4726 | if ${ac_cv_c_compiler_gnu+:} false; then : |
6bb11ab3 L |
4727 | $as_echo_n "(cached) " >&6 |
4728 | else | |
4729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4730 | /* end confdefs.h. */ | |
4731 | ||
4732 | int | |
4733 | main () | |
4734 | { | |
4735 | #ifndef __GNUC__ | |
4736 | choke me | |
4737 | #endif | |
4738 | ||
4739 | ; | |
4740 | return 0; | |
4741 | } | |
4742 | _ACEOF | |
4743 | if ac_fn_c_try_compile "$LINENO"; then : | |
4744 | ac_compiler_gnu=yes | |
4745 | else | |
4746 | ac_compiler_gnu=no | |
4747 | fi | |
4748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4749 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4750 | ||
4751 | fi | |
4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4753 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4754 | if test $ac_compiler_gnu = yes; then | |
4755 | GCC=yes | |
4756 | else | |
4757 | GCC= | |
4758 | fi | |
4759 | ac_test_CFLAGS=${CFLAGS+set} | |
4760 | ac_save_CFLAGS=$CFLAGS | |
4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4762 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4763 | if ${ac_cv_prog_cc_g+:} false; then : |
6bb11ab3 L |
4764 | $as_echo_n "(cached) " >&6 |
4765 | else | |
4766 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4767 | ac_c_werror_flag=yes | |
4768 | ac_cv_prog_cc_g=no | |
4769 | CFLAGS="-g" | |
4770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4771 | /* end confdefs.h. */ | |
4772 | ||
4773 | int | |
4774 | main () | |
4775 | { | |
4776 | ||
4777 | ; | |
4778 | return 0; | |
4779 | } | |
4780 | _ACEOF | |
4781 | if ac_fn_c_try_compile "$LINENO"; then : | |
4782 | ac_cv_prog_cc_g=yes | |
4783 | else | |
4784 | CFLAGS="" | |
4785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4786 | /* end confdefs.h. */ | |
4787 | ||
4788 | int | |
4789 | main () | |
4790 | { | |
4791 | ||
4792 | ; | |
4793 | return 0; | |
4794 | } | |
4795 | _ACEOF | |
4796 | if ac_fn_c_try_compile "$LINENO"; then : | |
4797 | ||
4798 | else | |
4799 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4800 | CFLAGS="-g" | |
4801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4802 | /* end confdefs.h. */ | |
4803 | ||
4804 | int | |
4805 | main () | |
4806 | { | |
4807 | ||
4808 | ; | |
4809 | return 0; | |
4810 | } | |
4811 | _ACEOF | |
4812 | if ac_fn_c_try_compile "$LINENO"; then : | |
4813 | ac_cv_prog_cc_g=yes | |
4814 | fi | |
4815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4816 | fi | |
4817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4818 | fi | |
4819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4820 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4821 | fi | |
4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4823 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4824 | if test "$ac_test_CFLAGS" = set; then | |
4825 | CFLAGS=$ac_save_CFLAGS | |
4826 | elif test $ac_cv_prog_cc_g = yes; then | |
4827 | if test "$GCC" = yes; then | |
4828 | CFLAGS="-g -O2" | |
4829 | else | |
4830 | CFLAGS="-g" | |
4831 | fi | |
4832 | else | |
4833 | if test "$GCC" = yes; then | |
4834 | CFLAGS="-O2" | |
4835 | else | |
4836 | CFLAGS= | |
4837 | fi | |
4838 | fi | |
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4840 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4841 | if ${ac_cv_prog_cc_c89+:} false; then : |
6bb11ab3 L |
4842 | $as_echo_n "(cached) " >&6 |
4843 | else | |
4844 | ac_cv_prog_cc_c89=no | |
4845 | ac_save_CC=$CC | |
4846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4847 | /* end confdefs.h. */ | |
4848 | #include <stdarg.h> | |
4849 | #include <stdio.h> | |
d0ac1c44 | 4850 | struct stat; |
6bb11ab3 L |
4851 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4852 | struct buf { int x; }; | |
4853 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4854 | static char *e (p, i) | |
4855 | char **p; | |
4856 | int i; | |
4857 | { | |
4858 | return p[i]; | |
4859 | } | |
4860 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4861 | { | |
4862 | char *s; | |
4863 | va_list v; | |
4864 | va_start (v,p); | |
4865 | s = g (p, va_arg (v,int)); | |
4866 | va_end (v); | |
4867 | return s; | |
4868 | } | |
4869 | ||
4870 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4871 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4872 | These don't provoke an error unfortunately, instead are silently treated | |
4873 | as 'x'. The following induces an error, until -std is added to get | |
4874 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4875 | array size at least. It's necessary to write '\x00'==0 to get something | |
4876 | that's true only with -std. */ | |
4877 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4878 | ||
4879 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4880 | inside strings and character constants. */ | |
4881 | #define FOO(x) 'x' | |
4882 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4883 | ||
4884 | int test (int i, double x); | |
4885 | struct s1 {int (*f) (int a);}; | |
4886 | struct s2 {int (*f) (double a);}; | |
4887 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4888 | int argc; | |
4889 | char **argv; | |
4890 | int | |
4891 | main () | |
4892 | { | |
4893 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4894 | ; | |
4895 | return 0; | |
4896 | } | |
4897 | _ACEOF | |
4898 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4899 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4900 | do | |
4901 | CC="$ac_save_CC $ac_arg" | |
4902 | if ac_fn_c_try_compile "$LINENO"; then : | |
4903 | ac_cv_prog_cc_c89=$ac_arg | |
4904 | fi | |
4905 | rm -f core conftest.err conftest.$ac_objext | |
4906 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4907 | done | |
4908 | rm -f conftest.$ac_ext | |
4909 | CC=$ac_save_CC | |
4910 | ||
4911 | fi | |
4912 | # AC_CACHE_VAL | |
4913 | case "x$ac_cv_prog_cc_c89" in | |
4914 | x) | |
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4916 | $as_echo "none needed" >&6; } ;; | |
4917 | xno) | |
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4919 | $as_echo "unsupported" >&6; } ;; | |
4920 | *) | |
4921 | CC="$CC $ac_cv_prog_cc_c89" | |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4923 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4924 | esac | |
4925 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4926 | ||
4927 | fi | |
4928 | ||
4929 | ac_ext=c | |
4930 | ac_cpp='$CPP $CPPFLAGS' | |
4931 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4932 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4933 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4934 | ||
4935 | ac_aux_dir= | |
4936 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
d0ac1c44 SM |
4937 | if test -f "$ac_dir/install-sh"; then |
4938 | ac_aux_dir=$ac_dir | |
4939 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4940 | break | |
4941 | elif test -f "$ac_dir/install.sh"; then | |
4942 | ac_aux_dir=$ac_dir | |
4943 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4944 | break | |
4945 | elif test -f "$ac_dir/shtool"; then | |
4946 | ac_aux_dir=$ac_dir | |
4947 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4948 | break | |
4949 | fi | |
6bb11ab3 L |
4950 | done |
4951 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 4952 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
6bb11ab3 L |
4953 | fi |
4954 | ||
4955 | # These three variables are undocumented and unsupported, | |
4956 | # and are intended to be withdrawn in a future Autoconf release. | |
4957 | # They can cause serious problems if a builder's source tree is in a directory | |
4958 | # whose full name contains unusual characters. | |
4959 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4960 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4961 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4962 | ||
4963 | ||
4964 | # Make sure we can run config.sub. | |
4965 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
d0ac1c44 | 4966 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
6bb11ab3 L |
4967 | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4969 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 4970 | if ${ac_cv_build+:} false; then : |
6bb11ab3 L |
4971 | $as_echo_n "(cached) " >&6 |
4972 | else | |
4973 | ac_build_alias=$build_alias | |
4974 | test "x$ac_build_alias" = x && | |
4975 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4976 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 4977 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
6bb11ab3 | 4978 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 4979 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
6bb11ab3 L |
4980 | |
4981 | fi | |
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4983 | $as_echo "$ac_cv_build" >&6; } | |
4984 | case $ac_cv_build in | |
4985 | *-*-*) ;; | |
d0ac1c44 | 4986 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
6bb11ab3 L |
4987 | esac |
4988 | build=$ac_cv_build | |
4989 | ac_save_IFS=$IFS; IFS='-' | |
4990 | set x $ac_cv_build | |
4991 | shift | |
4992 | build_cpu=$1 | |
4993 | build_vendor=$2 | |
4994 | shift; shift | |
4995 | # Remember, the first character of IFS is used to create $*, | |
4996 | # except with old shells: | |
4997 | build_os=$* | |
4998 | IFS=$ac_save_IFS | |
4999 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5000 | ||
5001 | ||
5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
5003 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 5004 | if ${ac_cv_host+:} false; then : |
6bb11ab3 L |
5005 | $as_echo_n "(cached) " >&6 |
5006 | else | |
5007 | if test "x$host_alias" = x; then | |
5008 | ac_cv_host=$ac_cv_build | |
5009 | else | |
5010 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 5011 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
6bb11ab3 L |
5012 | fi |
5013 | ||
5014 | fi | |
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5016 | $as_echo "$ac_cv_host" >&6; } | |
5017 | case $ac_cv_host in | |
5018 | *-*-*) ;; | |
d0ac1c44 | 5019 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
6bb11ab3 L |
5020 | esac |
5021 | host=$ac_cv_host | |
5022 | ac_save_IFS=$IFS; IFS='-' | |
5023 | set x $ac_cv_host | |
5024 | shift | |
5025 | host_cpu=$1 | |
5026 | host_vendor=$2 | |
5027 | shift; shift | |
5028 | # Remember, the first character of IFS is used to create $*, | |
5029 | # except with old shells: | |
5030 | host_os=$* | |
5031 | IFS=$ac_save_IFS | |
5032 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5033 | ||
5034 | ||
5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
5036 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 5037 | if ${ac_cv_target+:} false; then : |
6bb11ab3 L |
5038 | $as_echo_n "(cached) " >&6 |
5039 | else | |
5040 | if test "x$target_alias" = x; then | |
5041 | ac_cv_target=$ac_cv_host | |
5042 | else | |
5043 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 5044 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
6bb11ab3 L |
5045 | fi |
5046 | ||
5047 | fi | |
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
5049 | $as_echo "$ac_cv_target" >&6; } | |
5050 | case $ac_cv_target in | |
5051 | *-*-*) ;; | |
d0ac1c44 | 5052 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
6bb11ab3 L |
5053 | esac |
5054 | target=$ac_cv_target | |
5055 | ac_save_IFS=$IFS; IFS='-' | |
5056 | set x $ac_cv_target | |
5057 | shift | |
5058 | target_cpu=$1 | |
5059 | target_vendor=$2 | |
5060 | shift; shift | |
5061 | # Remember, the first character of IFS is used to create $*, | |
5062 | # except with old shells: | |
5063 | target_os=$* | |
5064 | IFS=$ac_save_IFS | |
5065 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
5066 | ||
5067 | ||
5068 | # The aliases save the names the user supplied, while $host etc. | |
5069 | # will get canonicalized. | |
5070 | test -n "$target_alias" && | |
5071 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
5072 | NONENONEs,x,x, && | |
5073 | program_prefix=${target_alias}- | |
5074 | ||
5075 | ac_ext=c | |
5076 | ac_cpp='$CPP $CPPFLAGS' | |
5077 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5078 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5079 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5081 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5082 | # On Suns, sometimes $CPP names a directory. | |
5083 | if test -n "$CPP" && test -d "$CPP"; then | |
5084 | CPP= | |
5085 | fi | |
5086 | if test -z "$CPP"; then | |
d0ac1c44 | 5087 | if ${ac_cv_prog_CPP+:} false; then : |
6bb11ab3 L |
5088 | $as_echo_n "(cached) " >&6 |
5089 | else | |
5090 | # Double quotes because CPP needs to be expanded | |
5091 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5092 | do | |
5093 | ac_preproc_ok=false | |
5094 | for ac_c_preproc_warn_flag in '' yes | |
5095 | do | |
5096 | # Use a header file that comes with gcc, so configuring glibc | |
5097 | # with a fresh cross-compiler works. | |
5098 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5099 | # <limits.h> exists even on freestanding compilers. | |
5100 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5101 | # not just through cpp. "Syntax error" is here to catch this case. | |
5102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5103 | /* end confdefs.h. */ | |
5104 | #ifdef __STDC__ | |
5105 | # include <limits.h> | |
5106 | #else | |
5107 | # include <assert.h> | |
5108 | #endif | |
5109 | Syntax error | |
5110 | _ACEOF | |
5111 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5112 | ||
5113 | else | |
5114 | # Broken: fails on valid input. | |
5115 | continue | |
5116 | fi | |
d0ac1c44 | 5117 | rm -f conftest.err conftest.i conftest.$ac_ext |
6bb11ab3 L |
5118 | |
5119 | # OK, works on sane cases. Now check whether nonexistent headers | |
5120 | # can be detected and how. | |
5121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5122 | /* end confdefs.h. */ | |
5123 | #include <ac_nonexistent.h> | |
5124 | _ACEOF | |
5125 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5126 | # Broken: success on invalid input. | |
5127 | continue | |
5128 | else | |
5129 | # Passes both tests. | |
5130 | ac_preproc_ok=: | |
5131 | break | |
5132 | fi | |
d0ac1c44 | 5133 | rm -f conftest.err conftest.i conftest.$ac_ext |
6bb11ab3 L |
5134 | |
5135 | done | |
5136 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 5137 | rm -f conftest.i conftest.err conftest.$ac_ext |
6bb11ab3 L |
5138 | if $ac_preproc_ok; then : |
5139 | break | |
5140 | fi | |
5141 | ||
5142 | done | |
5143 | ac_cv_prog_CPP=$CPP | |
5144 | ||
5145 | fi | |
5146 | CPP=$ac_cv_prog_CPP | |
5147 | else | |
5148 | ac_cv_prog_CPP=$CPP | |
5149 | fi | |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5151 | $as_echo "$CPP" >&6; } | |
5152 | ac_preproc_ok=false | |
5153 | for ac_c_preproc_warn_flag in '' yes | |
5154 | do | |
5155 | # Use a header file that comes with gcc, so configuring glibc | |
5156 | # with a fresh cross-compiler works. | |
5157 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5158 | # <limits.h> exists even on freestanding compilers. | |
5159 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5160 | # not just through cpp. "Syntax error" is here to catch this case. | |
5161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5162 | /* end confdefs.h. */ | |
5163 | #ifdef __STDC__ | |
5164 | # include <limits.h> | |
5165 | #else | |
5166 | # include <assert.h> | |
5167 | #endif | |
5168 | Syntax error | |
5169 | _ACEOF | |
5170 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5171 | ||
5172 | else | |
5173 | # Broken: fails on valid input. | |
5174 | continue | |
5175 | fi | |
d0ac1c44 | 5176 | rm -f conftest.err conftest.i conftest.$ac_ext |
6bb11ab3 L |
5177 | |
5178 | # OK, works on sane cases. Now check whether nonexistent headers | |
5179 | # can be detected and how. | |
5180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5181 | /* end confdefs.h. */ | |
5182 | #include <ac_nonexistent.h> | |
5183 | _ACEOF | |
5184 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5185 | # Broken: success on invalid input. | |
5186 | continue | |
5187 | else | |
5188 | # Passes both tests. | |
5189 | ac_preproc_ok=: | |
5190 | break | |
5191 | fi | |
d0ac1c44 | 5192 | rm -f conftest.err conftest.i conftest.$ac_ext |
6bb11ab3 L |
5193 | |
5194 | done | |
5195 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 5196 | rm -f conftest.i conftest.err conftest.$ac_ext |
6bb11ab3 L |
5197 | if $ac_preproc_ok; then : |
5198 | ||
5199 | else | |
5200 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5201 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
5202 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
5203 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 L |
5204 | fi |
5205 | ||
5206 | ac_ext=c | |
5207 | ac_cpp='$CPP $CPPFLAGS' | |
5208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5211 | ||
5212 | ||
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5214 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 5215 | if ${ac_cv_path_GREP+:} false; then : |
6bb11ab3 L |
5216 | $as_echo_n "(cached) " >&6 |
5217 | else | |
5218 | if test -z "$GREP"; then | |
5219 | ac_path_GREP_found=false | |
5220 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5222 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5223 | do | |
5224 | IFS=$as_save_IFS | |
5225 | test -z "$as_dir" && as_dir=. | |
5226 | for ac_prog in grep ggrep; do | |
5227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5228 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5229 | as_fn_executable_p "$ac_path_GREP" || continue |
6bb11ab3 L |
5230 | # Check for GNU ac_path_GREP and select it if it is found. |
5231 | # Check for GNU $ac_path_GREP | |
5232 | case `"$ac_path_GREP" --version 2>&1` in | |
5233 | *GNU*) | |
5234 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5235 | *) | |
5236 | ac_count=0 | |
5237 | $as_echo_n 0123456789 >"conftest.in" | |
5238 | while : | |
5239 | do | |
5240 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5241 | mv "conftest.tmp" "conftest.in" | |
5242 | cp "conftest.in" "conftest.nl" | |
5243 | $as_echo 'GREP' >> "conftest.nl" | |
5244 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5245 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5246 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5247 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5248 | # Best one so far, save it but keep looking for a better one | |
5249 | ac_cv_path_GREP="$ac_path_GREP" | |
5250 | ac_path_GREP_max=$ac_count | |
5251 | fi | |
5252 | # 10*(2^10) chars as input seems more than enough | |
5253 | test $ac_count -gt 10 && break | |
5254 | done | |
5255 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5256 | esac | |
5257 | ||
5258 | $ac_path_GREP_found && break 3 | |
5259 | done | |
5260 | done | |
5261 | done | |
5262 | IFS=$as_save_IFS | |
5263 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 5264 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6bb11ab3 L |
5265 | fi |
5266 | else | |
5267 | ac_cv_path_GREP=$GREP | |
5268 | fi | |
5269 | ||
5270 | fi | |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5272 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5273 | GREP="$ac_cv_path_GREP" | |
5274 | ||
5275 | ||
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5277 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 5278 | if ${ac_cv_path_EGREP+:} false; then : |
6bb11ab3 L |
5279 | $as_echo_n "(cached) " >&6 |
5280 | else | |
5281 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5282 | then ac_cv_path_EGREP="$GREP -E" | |
5283 | else | |
5284 | if test -z "$EGREP"; then | |
5285 | ac_path_EGREP_found=false | |
5286 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5288 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5289 | do | |
5290 | IFS=$as_save_IFS | |
5291 | test -z "$as_dir" && as_dir=. | |
5292 | for ac_prog in egrep; do | |
5293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5294 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5295 | as_fn_executable_p "$ac_path_EGREP" || continue |
6bb11ab3 L |
5296 | # Check for GNU ac_path_EGREP and select it if it is found. |
5297 | # Check for GNU $ac_path_EGREP | |
5298 | case `"$ac_path_EGREP" --version 2>&1` in | |
5299 | *GNU*) | |
5300 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5301 | *) | |
5302 | ac_count=0 | |
5303 | $as_echo_n 0123456789 >"conftest.in" | |
5304 | while : | |
5305 | do | |
5306 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5307 | mv "conftest.tmp" "conftest.in" | |
5308 | cp "conftest.in" "conftest.nl" | |
5309 | $as_echo 'EGREP' >> "conftest.nl" | |
5310 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5311 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5312 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5313 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5314 | # Best one so far, save it but keep looking for a better one | |
5315 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5316 | ac_path_EGREP_max=$ac_count | |
5317 | fi | |
5318 | # 10*(2^10) chars as input seems more than enough | |
5319 | test $ac_count -gt 10 && break | |
5320 | done | |
5321 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5322 | esac | |
5323 | ||
5324 | $ac_path_EGREP_found && break 3 | |
5325 | done | |
5326 | done | |
5327 | done | |
5328 | IFS=$as_save_IFS | |
5329 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 5330 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6bb11ab3 L |
5331 | fi |
5332 | else | |
5333 | ac_cv_path_EGREP=$EGREP | |
5334 | fi | |
5335 | ||
5336 | fi | |
5337 | fi | |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5339 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5340 | EGREP="$ac_cv_path_EGREP" | |
5341 | ||
5342 | ||
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5344 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 5345 | if ${ac_cv_header_stdc+:} false; then : |
6bb11ab3 L |
5346 | $as_echo_n "(cached) " >&6 |
5347 | else | |
5348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5349 | /* end confdefs.h. */ | |
5350 | #include <stdlib.h> | |
5351 | #include <stdarg.h> | |
5352 | #include <string.h> | |
5353 | #include <float.h> | |
5354 | ||
5355 | int | |
5356 | main () | |
5357 | { | |
5358 | ||
5359 | ; | |
5360 | return 0; | |
5361 | } | |
5362 | _ACEOF | |
5363 | if ac_fn_c_try_compile "$LINENO"; then : | |
5364 | ac_cv_header_stdc=yes | |
5365 | else | |
5366 | ac_cv_header_stdc=no | |
5367 | fi | |
5368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5369 | ||
5370 | if test $ac_cv_header_stdc = yes; then | |
5371 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5373 | /* end confdefs.h. */ | |
5374 | #include <string.h> | |
5375 | ||
5376 | _ACEOF | |
5377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5378 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5379 | ||
5380 | else | |
5381 | ac_cv_header_stdc=no | |
5382 | fi | |
5383 | rm -f conftest* | |
5384 | ||
5385 | fi | |
5386 | ||
5387 | if test $ac_cv_header_stdc = yes; then | |
5388 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5390 | /* end confdefs.h. */ | |
5391 | #include <stdlib.h> | |
5392 | ||
5393 | _ACEOF | |
5394 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5395 | $EGREP "free" >/dev/null 2>&1; then : | |
5396 | ||
5397 | else | |
5398 | ac_cv_header_stdc=no | |
5399 | fi | |
5400 | rm -f conftest* | |
5401 | ||
5402 | fi | |
5403 | ||
5404 | if test $ac_cv_header_stdc = yes; then | |
5405 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5406 | if test "$cross_compiling" = yes; then : | |
5407 | : | |
5408 | else | |
5409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5410 | /* end confdefs.h. */ | |
5411 | #include <ctype.h> | |
5412 | #include <stdlib.h> | |
5413 | #if ((' ' & 0x0FF) == 0x020) | |
5414 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5415 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5416 | #else | |
5417 | # define ISLOWER(c) \ | |
5418 | (('a' <= (c) && (c) <= 'i') \ | |
5419 | || ('j' <= (c) && (c) <= 'r') \ | |
5420 | || ('s' <= (c) && (c) <= 'z')) | |
5421 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5422 | #endif | |
5423 | ||
5424 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5425 | int | |
5426 | main () | |
5427 | { | |
5428 | int i; | |
5429 | for (i = 0; i < 256; i++) | |
5430 | if (XOR (islower (i), ISLOWER (i)) | |
5431 | || toupper (i) != TOUPPER (i)) | |
5432 | return 2; | |
5433 | return 0; | |
5434 | } | |
5435 | _ACEOF | |
5436 | if ac_fn_c_try_run "$LINENO"; then : | |
5437 | ||
5438 | else | |
5439 | ac_cv_header_stdc=no | |
5440 | fi | |
5441 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5442 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5443 | fi | |
5444 | ||
5445 | fi | |
5446 | fi | |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5448 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5449 | if test $ac_cv_header_stdc = yes; then | |
5450 | ||
5451 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5452 | ||
5453 | fi | |
5454 | ||
5455 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5456 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5457 | inttypes.h stdint.h unistd.h | |
5458 | do : | |
5459 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5460 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5461 | " | |
d0ac1c44 | 5462 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6bb11ab3 L |
5463 | cat >>confdefs.h <<_ACEOF |
5464 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5465 | _ACEOF | |
5466 | ||
5467 | fi | |
5468 | ||
5469 | done | |
5470 | ||
5471 | ||
5472 | ||
5473 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
d0ac1c44 | 5474 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
6bb11ab3 L |
5475 | MINIX=yes |
5476 | else | |
5477 | MINIX= | |
5478 | fi | |
5479 | ||
5480 | ||
5481 | if test "$MINIX" = yes; then | |
5482 | ||
5483 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5484 | ||
5485 | ||
5486 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5487 | ||
5488 | ||
5489 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5490 | ||
5491 | fi | |
5492 | ||
5493 | ||
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5495 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 5496 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
6bb11ab3 L |
5497 | $as_echo_n "(cached) " >&6 |
5498 | else | |
5499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5500 | /* end confdefs.h. */ | |
5501 | ||
d0ac1c44 SM |
5502 | # define __EXTENSIONS__ 1 |
5503 | $ac_includes_default | |
6bb11ab3 L |
5504 | int |
5505 | main () | |
5506 | { | |
5507 | ||
5508 | ; | |
5509 | return 0; | |
5510 | } | |
5511 | _ACEOF | |
5512 | if ac_fn_c_try_compile "$LINENO"; then : | |
5513 | ac_cv_safe_to_define___extensions__=yes | |
5514 | else | |
5515 | ac_cv_safe_to_define___extensions__=no | |
5516 | fi | |
5517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5518 | fi | |
5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5520 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5521 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5522 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5523 | ||
5524 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5525 | ||
5526 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5527 | ||
5528 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5529 | ||
5530 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5531 | ||
5532 | ||
5533 | test "$program_prefix" != NONE && | |
5534 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
5535 | # Use a double $ so make ignores it. | |
5536 | test "$program_suffix" != NONE && | |
5537 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
5538 | # Double any \ or $. | |
5539 | # By default was `s,x,x', remove it if useless. | |
5540 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
5541 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
5542 | ||
5543 | # Find a good install program. We prefer a C program (faster), | |
5544 | # so one script is as good as another. But avoid the broken or | |
5545 | # incompatible versions: | |
5546 | # SysV /etc/install, /usr/sbin/install | |
5547 | # SunOS /usr/etc/install | |
5548 | # IRIX /sbin/install | |
5549 | # AIX /bin/install | |
5550 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5551 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5552 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5553 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5554 | # OS/2's system install, which has a completely different semantic | |
5555 | # ./install, which can be erroneously created by make from ./install.sh. | |
5556 | # Reject install programs that cannot install multiple files. | |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
5558 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
5559 | if test -z "$INSTALL"; then | |
d0ac1c44 | 5560 | if ${ac_cv_path_install+:} false; then : |
6bb11ab3 L |
5561 | $as_echo_n "(cached) " >&6 |
5562 | else | |
5563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5564 | for as_dir in $PATH | |
5565 | do | |
5566 | IFS=$as_save_IFS | |
5567 | test -z "$as_dir" && as_dir=. | |
5568 | # Account for people who put trailing slashes in PATH elements. | |
5569 | case $as_dir/ in #(( | |
5570 | ./ | .// | /[cC]/* | \ | |
5571 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5572 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
5573 | /usr/ucb/* ) ;; | |
5574 | *) | |
5575 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5576 | # Don't use installbsd from OSF since it installs stuff as root | |
5577 | # by default. | |
5578 | for ac_prog in ginstall scoinst install; do | |
5579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5580 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6bb11ab3 L |
5581 | if test $ac_prog = install && |
5582 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5583 | # AIX install. It has an incompatible calling convention. | |
5584 | : | |
5585 | elif test $ac_prog = install && | |
5586 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5587 | # program-specific install script used by HP pwplus--don't use. | |
5588 | : | |
5589 | else | |
5590 | rm -rf conftest.one conftest.two conftest.dir | |
5591 | echo one > conftest.one | |
5592 | echo two > conftest.two | |
5593 | mkdir conftest.dir | |
5594 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5595 | test -s conftest.one && test -s conftest.two && | |
5596 | test -s conftest.dir/conftest.one && | |
5597 | test -s conftest.dir/conftest.two | |
5598 | then | |
5599 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5600 | break 3 | |
5601 | fi | |
5602 | fi | |
5603 | fi | |
5604 | done | |
5605 | done | |
5606 | ;; | |
5607 | esac | |
5608 | ||
5609 | done | |
5610 | IFS=$as_save_IFS | |
5611 | ||
5612 | rm -rf conftest.one conftest.two conftest.dir | |
5613 | ||
5614 | fi | |
5615 | if test "${ac_cv_path_install+set}" = set; then | |
5616 | INSTALL=$ac_cv_path_install | |
5617 | else | |
5618 | # As a last resort, use the slow shell script. Don't cache a | |
5619 | # value for INSTALL within a source directory, because that will | |
5620 | # break other packages using the cache if that directory is | |
5621 | # removed, or if the value is a relative name. | |
5622 | INSTALL=$ac_install_sh | |
5623 | fi | |
5624 | fi | |
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
5626 | $as_echo "$INSTALL" >&6; } | |
5627 | ||
5628 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5629 | # It thinks the first close brace ends the variable substitution. | |
5630 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5631 | ||
5632 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5633 | ||
5634 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5635 | ||
5636 | rm -rf .tst 2>/dev/null | |
5637 | mkdir .tst 2>/dev/null | |
5638 | if test -d .tst; then | |
5639 | am__leading_dot=. | |
5640 | else | |
5641 | am__leading_dot=_ | |
5642 | fi | |
5643 | rmdir .tst 2>/dev/null | |
5644 | ||
5645 | DEPDIR="${am__leading_dot}deps" | |
5646 | ||
5647 | case `pwd` in | |
5648 | *\ * | *\ *) | |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5650 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5651 | esac | |
5652 | ||
5653 | ||
5654 | ||
5655 | macro_version='2.2.7a' | |
5656 | macro_revision='1.3134' | |
5657 | ||
5658 | ||
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | ||
5667 | ||
5668 | ||
5669 | ||
5670 | ltmain="$ac_aux_dir/ltmain.sh" | |
5671 | ||
5672 | # Backslashify metacharacters that are still active within | |
5673 | # double-quoted strings. | |
5674 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5675 | ||
5676 | # Same as above, but do not quote variable references. | |
5677 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5678 | ||
5679 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5680 | # double_quote_subst'ed string. | |
5681 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5682 | ||
5683 | # Sed substitution to delay expansion of an escaped single quote. | |
5684 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5685 | ||
5686 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5687 | no_glob_subst='s/\*/\\\*/g' | |
5688 | ||
5689 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5690 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5691 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5692 | ||
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5694 | $as_echo_n "checking how to print strings... " >&6; } | |
5695 | # Test print first, because it will be a builtin if present. | |
5696 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5697 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5698 | ECHO='print -r --' | |
5699 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5700 | ECHO='printf %s\n' | |
5701 | else | |
5702 | # Use this function as a fallback that always works. | |
5703 | func_fallback_echo () | |
5704 | { | |
5705 | eval 'cat <<_LTECHO_EOF | |
5706 | $1 | |
5707 | _LTECHO_EOF' | |
5708 | } | |
5709 | ECHO='func_fallback_echo' | |
5710 | fi | |
5711 | ||
5712 | # func_echo_all arg... | |
5713 | # Invoke $ECHO with all args, space-separated. | |
5714 | func_echo_all () | |
5715 | { | |
5716 | $ECHO "" | |
5717 | } | |
5718 | ||
5719 | case "$ECHO" in | |
5720 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5721 | $as_echo "printf" >&6; } ;; | |
5722 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5723 | $as_echo "print -r" >&6; } ;; | |
5724 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5725 | $as_echo "cat" >&6; } ;; | |
5726 | esac | |
5727 | ||
5728 | ||
5729 | ||
5730 | ||
5731 | ||
5732 | ||
5733 | ||
5734 | ||
5735 | ||
5736 | ||
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5742 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 5743 | if ${ac_cv_path_SED+:} false; then : |
6bb11ab3 L |
5744 | $as_echo_n "(cached) " >&6 |
5745 | else | |
5746 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5747 | for ac_i in 1 2 3 4 5 6 7; do | |
5748 | ac_script="$ac_script$as_nl$ac_script" | |
5749 | done | |
5750 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5751 | { ac_script=; unset ac_script;} | |
5752 | if test -z "$SED"; then | |
5753 | ac_path_SED_found=false | |
5754 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5756 | for as_dir in $PATH | |
5757 | do | |
5758 | IFS=$as_save_IFS | |
5759 | test -z "$as_dir" && as_dir=. | |
5760 | for ac_prog in sed gsed; do | |
5761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5762 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5763 | as_fn_executable_p "$ac_path_SED" || continue |
6bb11ab3 L |
5764 | # Check for GNU ac_path_SED and select it if it is found. |
5765 | # Check for GNU $ac_path_SED | |
5766 | case `"$ac_path_SED" --version 2>&1` in | |
5767 | *GNU*) | |
5768 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5769 | *) | |
5770 | ac_count=0 | |
5771 | $as_echo_n 0123456789 >"conftest.in" | |
5772 | while : | |
5773 | do | |
5774 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5775 | mv "conftest.tmp" "conftest.in" | |
5776 | cp "conftest.in" "conftest.nl" | |
5777 | $as_echo '' >> "conftest.nl" | |
5778 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5779 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5780 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5781 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5782 | # Best one so far, save it but keep looking for a better one | |
5783 | ac_cv_path_SED="$ac_path_SED" | |
5784 | ac_path_SED_max=$ac_count | |
5785 | fi | |
5786 | # 10*(2^10) chars as input seems more than enough | |
5787 | test $ac_count -gt 10 && break | |
5788 | done | |
5789 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5790 | esac | |
5791 | ||
5792 | $ac_path_SED_found && break 3 | |
5793 | done | |
5794 | done | |
5795 | done | |
5796 | IFS=$as_save_IFS | |
5797 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 5798 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
6bb11ab3 L |
5799 | fi |
5800 | else | |
5801 | ac_cv_path_SED=$SED | |
5802 | fi | |
5803 | ||
5804 | fi | |
5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5806 | $as_echo "$ac_cv_path_SED" >&6; } | |
5807 | SED="$ac_cv_path_SED" | |
5808 | rm -f conftest.sed | |
5809 | ||
5810 | test -z "$SED" && SED=sed | |
5811 | Xsed="$SED -e 1s/^X//" | |
5812 | ||
5813 | ||
5814 | ||
5815 | ||
5816 | ||
5817 | ||
5818 | ||
5819 | ||
5820 | ||
5821 | ||
5822 | ||
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5824 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 5825 | if ${ac_cv_path_FGREP+:} false; then : |
6bb11ab3 L |
5826 | $as_echo_n "(cached) " >&6 |
5827 | else | |
5828 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5829 | then ac_cv_path_FGREP="$GREP -F" | |
5830 | else | |
5831 | if test -z "$FGREP"; then | |
5832 | ac_path_FGREP_found=false | |
5833 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5835 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5836 | do | |
5837 | IFS=$as_save_IFS | |
5838 | test -z "$as_dir" && as_dir=. | |
5839 | for ac_prog in fgrep; do | |
5840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5841 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5842 | as_fn_executable_p "$ac_path_FGREP" || continue |
6bb11ab3 L |
5843 | # Check for GNU ac_path_FGREP and select it if it is found. |
5844 | # Check for GNU $ac_path_FGREP | |
5845 | case `"$ac_path_FGREP" --version 2>&1` in | |
5846 | *GNU*) | |
5847 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5848 | *) | |
5849 | ac_count=0 | |
5850 | $as_echo_n 0123456789 >"conftest.in" | |
5851 | while : | |
5852 | do | |
5853 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5854 | mv "conftest.tmp" "conftest.in" | |
5855 | cp "conftest.in" "conftest.nl" | |
5856 | $as_echo 'FGREP' >> "conftest.nl" | |
5857 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5858 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5859 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5860 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5861 | # Best one so far, save it but keep looking for a better one | |
5862 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5863 | ac_path_FGREP_max=$ac_count | |
5864 | fi | |
5865 | # 10*(2^10) chars as input seems more than enough | |
5866 | test $ac_count -gt 10 && break | |
5867 | done | |
5868 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5869 | esac | |
5870 | ||
5871 | $ac_path_FGREP_found && break 3 | |
5872 | done | |
5873 | done | |
5874 | done | |
5875 | IFS=$as_save_IFS | |
5876 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 5877 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6bb11ab3 L |
5878 | fi |
5879 | else | |
5880 | ac_cv_path_FGREP=$FGREP | |
5881 | fi | |
5882 | ||
5883 | fi | |
5884 | fi | |
5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5886 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5887 | FGREP="$ac_cv_path_FGREP" | |
5888 | ||
5889 | ||
5890 | test -z "$GREP" && GREP=grep | |
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5908 | ||
5909 | ||
5910 | # Check whether --with-gnu-ld was given. | |
5911 | if test "${with_gnu_ld+set}" = set; then : | |
5912 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5913 | else | |
5914 | with_gnu_ld=no | |
5915 | fi | |
5916 | ||
5917 | ac_prog=ld | |
5918 | if test "$GCC" = yes; then | |
5919 | # Check if gcc -print-prog-name=ld gives a path. | |
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5921 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5922 | case $host in | |
5923 | *-*-mingw*) | |
5924 | # gcc leaves a trailing carriage return which upsets mingw | |
5925 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5926 | *) | |
5927 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5928 | esac | |
5929 | case $ac_prog in | |
5930 | # Accept absolute paths. | |
5931 | [\\/]* | ?:[\\/]*) | |
5932 | re_direlt='/[^/][^/]*/\.\./' | |
5933 | # Canonicalize the pathname of ld | |
5934 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5935 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5936 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5937 | done | |
5938 | test -z "$LD" && LD="$ac_prog" | |
5939 | ;; | |
5940 | "") | |
5941 | # If it fails, then pretend we aren't using GCC. | |
5942 | ac_prog=ld | |
5943 | ;; | |
5944 | *) | |
5945 | # If it is relative, then search for the first ld in PATH. | |
5946 | with_gnu_ld=unknown | |
5947 | ;; | |
5948 | esac | |
5949 | elif test "$with_gnu_ld" = yes; then | |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5951 | $as_echo_n "checking for GNU ld... " >&6; } | |
5952 | else | |
5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5954 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5955 | fi | |
d0ac1c44 | 5956 | if ${lt_cv_path_LD+:} false; then : |
6bb11ab3 L |
5957 | $as_echo_n "(cached) " >&6 |
5958 | else | |
5959 | if test -z "$LD"; then | |
5960 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5961 | for ac_dir in $PATH; do | |
5962 | IFS="$lt_save_ifs" | |
5963 | test -z "$ac_dir" && ac_dir=. | |
5964 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5965 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5966 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5967 | # but apparently some variants of GNU ld only accept -v. | |
5968 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5969 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5970 | *GNU* | *'with BFD'*) | |
5971 | test "$with_gnu_ld" != no && break | |
5972 | ;; | |
5973 | *) | |
5974 | test "$with_gnu_ld" != yes && break | |
5975 | ;; | |
5976 | esac | |
5977 | fi | |
5978 | done | |
5979 | IFS="$lt_save_ifs" | |
5980 | else | |
5981 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5982 | fi | |
5983 | fi | |
5984 | ||
5985 | LD="$lt_cv_path_LD" | |
5986 | if test -n "$LD"; then | |
5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5988 | $as_echo "$LD" >&6; } | |
5989 | else | |
5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5991 | $as_echo "no" >&6; } | |
5992 | fi | |
d0ac1c44 | 5993 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
6bb11ab3 L |
5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5995 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 5996 | if ${lt_cv_prog_gnu_ld+:} false; then : |
6bb11ab3 L |
5997 | $as_echo_n "(cached) " >&6 |
5998 | else | |
5999 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6000 | case `$LD -v 2>&1 </dev/null` in | |
6001 | *GNU* | *'with BFD'*) | |
6002 | lt_cv_prog_gnu_ld=yes | |
6003 | ;; | |
6004 | *) | |
6005 | lt_cv_prog_gnu_ld=no | |
6006 | ;; | |
6007 | esac | |
6008 | fi | |
6009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6010 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6011 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
6012 | ||
6013 | ||
6014 | ||
6015 | ||
6016 | ||
6017 | ||
6018 | ||
6019 | ||
6020 | ||
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6022 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 6023 | if ${lt_cv_path_NM+:} false; then : |
6bb11ab3 L |
6024 | $as_echo_n "(cached) " >&6 |
6025 | else | |
6026 | if test -n "$NM"; then | |
6027 | # Let the user override the test. | |
6028 | lt_cv_path_NM="$NM" | |
6029 | else | |
6030 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6031 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6032 | lt_nm_to_check="$lt_nm_to_check nm" | |
6033 | fi | |
6034 | for lt_tmp_nm in $lt_nm_to_check; do | |
6035 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6036 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6037 | IFS="$lt_save_ifs" | |
6038 | test -z "$ac_dir" && ac_dir=. | |
6039 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6040 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6041 | # Check to see if the nm accepts a BSD-compat flag. | |
6042 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6043 | # nm: unknown option "B" ignored | |
6044 | # Tru64's nm complains that /dev/null is an invalid object file | |
6045 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6046 | */dev/null* | *'Invalid file or object type'*) | |
6047 | lt_cv_path_NM="$tmp_nm -B" | |
6048 | break | |
6049 | ;; | |
6050 | *) | |
6051 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6052 | */dev/null*) | |
6053 | lt_cv_path_NM="$tmp_nm -p" | |
6054 | break | |
6055 | ;; | |
6056 | *) | |
6057 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6058 | continue # so that we can try to find one that supports BSD flags | |
6059 | ;; | |
6060 | esac | |
6061 | ;; | |
6062 | esac | |
6063 | fi | |
6064 | done | |
6065 | IFS="$lt_save_ifs" | |
6066 | done | |
6067 | : ${lt_cv_path_NM=no} | |
6068 | fi | |
6069 | fi | |
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6071 | $as_echo "$lt_cv_path_NM" >&6; } | |
6072 | if test "$lt_cv_path_NM" != "no"; then | |
6073 | NM="$lt_cv_path_NM" | |
6074 | else | |
6075 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6076 | if test -n "$DUMPBIN"; then : | |
6077 | # Let the user override the test. | |
6078 | else | |
6079 | if test -n "$ac_tool_prefix"; then | |
6080 | for ac_prog in dumpbin "link -dump" | |
6081 | do | |
6082 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6083 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6085 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6086 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
6bb11ab3 L |
6087 | $as_echo_n "(cached) " >&6 |
6088 | else | |
6089 | if test -n "$DUMPBIN"; then | |
6090 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6091 | else | |
6092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6093 | for as_dir in $PATH | |
6094 | do | |
6095 | IFS=$as_save_IFS | |
6096 | test -z "$as_dir" && as_dir=. | |
6097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6099 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
6100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6101 | break 2 | |
6102 | fi | |
6103 | done | |
6104 | done | |
6105 | IFS=$as_save_IFS | |
6106 | ||
6107 | fi | |
6108 | fi | |
6109 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6110 | if test -n "$DUMPBIN"; then | |
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6112 | $as_echo "$DUMPBIN" >&6; } | |
6113 | else | |
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6115 | $as_echo "no" >&6; } | |
6116 | fi | |
6117 | ||
6118 | ||
6119 | test -n "$DUMPBIN" && break | |
6120 | done | |
6121 | fi | |
6122 | if test -z "$DUMPBIN"; then | |
6123 | ac_ct_DUMPBIN=$DUMPBIN | |
6124 | for ac_prog in dumpbin "link -dump" | |
6125 | do | |
6126 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6127 | set dummy $ac_prog; ac_word=$2 | |
6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6129 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6130 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
6bb11ab3 L |
6131 | $as_echo_n "(cached) " >&6 |
6132 | else | |
6133 | if test -n "$ac_ct_DUMPBIN"; then | |
6134 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6135 | else | |
6136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6137 | for as_dir in $PATH | |
6138 | do | |
6139 | IFS=$as_save_IFS | |
6140 | test -z "$as_dir" && as_dir=. | |
6141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6143 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
6144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6145 | break 2 | |
6146 | fi | |
6147 | done | |
6148 | done | |
6149 | IFS=$as_save_IFS | |
6150 | ||
6151 | fi | |
6152 | fi | |
6153 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6154 | if test -n "$ac_ct_DUMPBIN"; then | |
6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6156 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6157 | else | |
6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6159 | $as_echo "no" >&6; } | |
6160 | fi | |
6161 | ||
6162 | ||
6163 | test -n "$ac_ct_DUMPBIN" && break | |
6164 | done | |
6165 | ||
6166 | if test "x$ac_ct_DUMPBIN" = x; then | |
6167 | DUMPBIN=":" | |
6168 | else | |
6169 | case $cross_compiling:$ac_tool_warned in | |
6170 | yes:) | |
6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6172 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6173 | ac_tool_warned=yes ;; | |
6174 | esac | |
6175 | DUMPBIN=$ac_ct_DUMPBIN | |
6176 | fi | |
6177 | fi | |
6178 | ||
6179 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6180 | *COFF*) | |
6181 | DUMPBIN="$DUMPBIN -symbols" | |
6182 | ;; | |
6183 | *) | |
6184 | DUMPBIN=: | |
6185 | ;; | |
6186 | esac | |
6187 | fi | |
6188 | ||
6189 | if test "$DUMPBIN" != ":"; then | |
6190 | NM="$DUMPBIN" | |
6191 | fi | |
6192 | fi | |
6193 | test -z "$NM" && NM=nm | |
6194 | ||
6195 | ||
6196 | ||
6197 | ||
6198 | ||
6199 | ||
6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6201 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 6202 | if ${lt_cv_nm_interface+:} false; then : |
6bb11ab3 L |
6203 | $as_echo_n "(cached) " >&6 |
6204 | else | |
6205 | lt_cv_nm_interface="BSD nm" | |
6206 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6207 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6208 | (eval "$ac_compile" 2>conftest.err) | |
6209 | cat conftest.err >&5 | |
6210 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6211 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6212 | cat conftest.err >&5 | |
6213 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6214 | cat conftest.out >&5 | |
6215 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6216 | lt_cv_nm_interface="MS dumpbin" | |
6217 | fi | |
6218 | rm -f conftest* | |
6219 | fi | |
6220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6221 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6222 | ||
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6224 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6225 | LN_S=$as_ln_s | |
6226 | if test "$LN_S" = "ln -s"; then | |
6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6228 | $as_echo "yes" >&6; } | |
6229 | else | |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6231 | $as_echo "no, using $LN_S" >&6; } | |
6232 | fi | |
6233 | ||
6234 | # find the maximum length of command line arguments | |
6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6236 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 6237 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
6bb11ab3 L |
6238 | $as_echo_n "(cached) " >&6 |
6239 | else | |
6240 | i=0 | |
6241 | teststring="ABCD" | |
6242 | ||
6243 | case $build_os in | |
6244 | msdosdjgpp*) | |
6245 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6246 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6247 | # during glob expansion). Even if it were fixed, the result of this | |
6248 | # check would be larger than it should be. | |
6249 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6250 | ;; | |
6251 | ||
6252 | gnu*) | |
6253 | # Under GNU Hurd, this test is not required because there is | |
6254 | # no limit to the length of command line arguments. | |
6255 | # Libtool will interpret -1 as no limit whatsoever | |
6256 | lt_cv_sys_max_cmd_len=-1; | |
6257 | ;; | |
6258 | ||
6259 | cygwin* | mingw* | cegcc*) | |
6260 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6261 | # about 5 minutes as the teststring grows exponentially. | |
6262 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6263 | # you end up with a "frozen" computer, even though with patience | |
6264 | # the test eventually succeeds (with a max line length of 256k). | |
6265 | # Instead, let's just punt: use the minimum linelength reported by | |
6266 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6267 | lt_cv_sys_max_cmd_len=8192; | |
6268 | ;; | |
6269 | ||
6270 | mint*) | |
6271 | # On MiNT this can take a long time and run out of memory. | |
6272 | lt_cv_sys_max_cmd_len=8192; | |
6273 | ;; | |
6274 | ||
6275 | amigaos*) | |
6276 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6277 | # So we just punt and use a minimum line length of 8192. | |
6278 | lt_cv_sys_max_cmd_len=8192; | |
6279 | ;; | |
6280 | ||
6281 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6282 | # This has been around since 386BSD, at least. Likely further. | |
6283 | if test -x /sbin/sysctl; then | |
6284 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6285 | elif test -x /usr/sbin/sysctl; then | |
6286 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6287 | else | |
6288 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6289 | fi | |
6290 | # And add a safety zone | |
6291 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6292 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6293 | ;; | |
6294 | ||
6295 | interix*) | |
6296 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6297 | lt_cv_sys_max_cmd_len=196608 | |
6298 | ;; | |
6299 | ||
6300 | osf*) | |
6301 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6302 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6303 | # nice to cause kernel panics so lets avoid the loop below. | |
6304 | # First set a reasonable default. | |
6305 | lt_cv_sys_max_cmd_len=16384 | |
6306 | # | |
6307 | if test -x /sbin/sysconfig; then | |
6308 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6309 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6310 | esac | |
6311 | fi | |
6312 | ;; | |
6313 | sco3.2v5*) | |
6314 | lt_cv_sys_max_cmd_len=102400 | |
6315 | ;; | |
6316 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6317 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6318 | if test -n "$kargmax"; then | |
6319 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6320 | else | |
6321 | lt_cv_sys_max_cmd_len=32768 | |
6322 | fi | |
6323 | ;; | |
6324 | *) | |
6325 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6326 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6327 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6328 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6329 | else | |
6330 | # Make teststring a little bigger before we do anything with it. | |
6331 | # a 1K string should be a reasonable start. | |
6332 | for i in 1 2 3 4 5 6 7 8 ; do | |
6333 | teststring=$teststring$teststring | |
6334 | done | |
6335 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6336 | # If test is not a shell built-in, we'll probably end up computing a | |
6337 | # maximum length that is only half of the actual maximum length, but | |
6338 | # we can't tell. | |
6339 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6340 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6341 | test $i != 17 # 1/2 MB should be enough | |
6342 | do | |
6343 | i=`expr $i + 1` | |
6344 | teststring=$teststring$teststring | |
6345 | done | |
6346 | # Only check the string length outside the loop. | |
6347 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6348 | teststring= | |
6349 | # Add a significant safety factor because C++ compilers can tack on | |
6350 | # massive amounts of additional arguments before passing them to the | |
6351 | # linker. It appears as though 1/2 is a usable value. | |
6352 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6353 | fi | |
6354 | ;; | |
6355 | esac | |
6356 | ||
6357 | fi | |
6358 | ||
6359 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6361 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6362 | else | |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6364 | $as_echo "none" >&6; } | |
6365 | fi | |
6366 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | : ${CP="cp -f"} | |
6374 | : ${MV="mv -f"} | |
6375 | : ${RM="rm -f"} | |
6376 | ||
6377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6378 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6379 | # Try some XSI features | |
6380 | xsi_shell=no | |
6381 | ( _lt_dummy="a/b/c" | |
6382 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6383 | = c,a/b,, \ | |
6384 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6385 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6386 | && xsi_shell=yes | |
6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6388 | $as_echo "$xsi_shell" >&6; } | |
6389 | ||
6390 | ||
6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6392 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6393 | lt_shell_append=no | |
6394 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6395 | >/dev/null 2>&1 \ | |
6396 | && lt_shell_append=yes | |
6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6398 | $as_echo "$lt_shell_append" >&6; } | |
6399 | ||
6400 | ||
6401 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6402 | lt_unset=unset | |
6403 | else | |
6404 | lt_unset=false | |
6405 | fi | |
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | # test EBCDIC or ASCII | |
6412 | case `echo X|tr X '\101'` in | |
6413 | A) # ASCII based system | |
6414 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6415 | lt_SP2NL='tr \040 \012' | |
6416 | lt_NL2SP='tr \015\012 \040\040' | |
6417 | ;; | |
6418 | *) # EBCDIC based system | |
6419 | lt_SP2NL='tr \100 \n' | |
6420 | lt_NL2SP='tr \r\n \100\100' | |
6421 | ;; | |
6422 | esac | |
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6433 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 6434 | if ${lt_cv_ld_reload_flag+:} false; then : |
6bb11ab3 L |
6435 | $as_echo_n "(cached) " >&6 |
6436 | else | |
6437 | lt_cv_ld_reload_flag='-r' | |
6438 | fi | |
6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6440 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6441 | reload_flag=$lt_cv_ld_reload_flag | |
6442 | case $reload_flag in | |
6443 | "" | " "*) ;; | |
6444 | *) reload_flag=" $reload_flag" ;; | |
6445 | esac | |
6446 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6447 | case $host_os in | |
6448 | darwin*) | |
6449 | if test "$GCC" = yes; then | |
6450 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6451 | else | |
6452 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6453 | fi | |
6454 | ;; | |
6455 | esac | |
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | ||
6465 | if test -n "$ac_tool_prefix"; then | |
6466 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6467 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6469 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6470 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
6bb11ab3 L |
6471 | $as_echo_n "(cached) " >&6 |
6472 | else | |
6473 | if test -n "$OBJDUMP"; then | |
6474 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6475 | else | |
6476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6477 | for as_dir in $PATH | |
6478 | do | |
6479 | IFS=$as_save_IFS | |
6480 | test -z "$as_dir" && as_dir=. | |
6481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6482 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6483 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6485 | break 2 | |
6486 | fi | |
6487 | done | |
6488 | done | |
6489 | IFS=$as_save_IFS | |
6490 | ||
6491 | fi | |
6492 | fi | |
6493 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6494 | if test -n "$OBJDUMP"; then | |
6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6496 | $as_echo "$OBJDUMP" >&6; } | |
6497 | else | |
6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6499 | $as_echo "no" >&6; } | |
6500 | fi | |
6501 | ||
6502 | ||
6503 | fi | |
6504 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6505 | ac_ct_OBJDUMP=$OBJDUMP | |
6506 | # Extract the first word of "objdump", so it can be a program name with args. | |
6507 | set dummy objdump; ac_word=$2 | |
6508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6509 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6510 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
6bb11ab3 L |
6511 | $as_echo_n "(cached) " >&6 |
6512 | else | |
6513 | if test -n "$ac_ct_OBJDUMP"; then | |
6514 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6515 | else | |
6516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6517 | for as_dir in $PATH | |
6518 | do | |
6519 | IFS=$as_save_IFS | |
6520 | test -z "$as_dir" && as_dir=. | |
6521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6523 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6525 | break 2 | |
6526 | fi | |
6527 | done | |
6528 | done | |
6529 | IFS=$as_save_IFS | |
6530 | ||
6531 | fi | |
6532 | fi | |
6533 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6534 | if test -n "$ac_ct_OBJDUMP"; then | |
6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6536 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6537 | else | |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6539 | $as_echo "no" >&6; } | |
6540 | fi | |
6541 | ||
6542 | if test "x$ac_ct_OBJDUMP" = x; then | |
6543 | OBJDUMP="false" | |
6544 | else | |
6545 | case $cross_compiling:$ac_tool_warned in | |
6546 | yes:) | |
6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6548 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6549 | ac_tool_warned=yes ;; | |
6550 | esac | |
6551 | OBJDUMP=$ac_ct_OBJDUMP | |
6552 | fi | |
6553 | else | |
6554 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6555 | fi | |
6556 | ||
6557 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | ||
6566 | ||
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6568 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 6569 | if ${lt_cv_deplibs_check_method+:} false; then : |
6bb11ab3 L |
6570 | $as_echo_n "(cached) " >&6 |
6571 | else | |
6572 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6573 | lt_cv_file_magic_test_file= | |
6574 | lt_cv_deplibs_check_method='unknown' | |
6575 | # Need to set the preceding variable on all platforms that support | |
6576 | # interlibrary dependencies. | |
6577 | # 'none' -- dependencies not supported. | |
6578 | # `unknown' -- same as none, but documents that we really don't know. | |
6579 | # 'pass_all' -- all dependencies passed with no checks. | |
6580 | # 'test_compile' -- check by making test program. | |
6581 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6582 | # which responds to the $file_magic_cmd with a given extended regex. | |
6583 | # If you have `file' or equivalent on your system and you're not sure | |
6584 | # whether `pass_all' will *always* work, you probably want this one. | |
6585 | ||
6586 | case $host_os in | |
6587 | aix[4-9]*) | |
6588 | lt_cv_deplibs_check_method=pass_all | |
6589 | ;; | |
6590 | ||
6591 | beos*) | |
6592 | lt_cv_deplibs_check_method=pass_all | |
6593 | ;; | |
6594 | ||
6595 | bsdi[45]*) | |
6596 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6597 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6598 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6599 | ;; | |
6600 | ||
6601 | cygwin*) | |
6602 | # func_win32_libid is a shell function defined in ltmain.sh | |
6603 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6604 | lt_cv_file_magic_cmd='func_win32_libid' | |
6605 | ;; | |
6606 | ||
6607 | mingw* | pw32*) | |
6608 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6609 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6610 | # unless we find 'file', for example because we are cross-compiling. | |
6611 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6612 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6613 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6614 | lt_cv_file_magic_cmd='func_win32_libid' | |
6615 | else | |
6616 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6617 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6618 | fi | |
6619 | ;; | |
6620 | ||
6621 | cegcc*) | |
6622 | # use the weaker test based on 'objdump'. See mingw*. | |
6623 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6624 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6625 | ;; | |
6626 | ||
6627 | darwin* | rhapsody*) | |
6628 | lt_cv_deplibs_check_method=pass_all | |
6629 | ;; | |
6630 | ||
6631 | freebsd* | dragonfly*) | |
6632 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6633 | case $host_cpu in | |
6634 | i*86 ) | |
6635 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6636 | # Let's accept both of them until this is cleared up. | |
6637 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6638 | lt_cv_file_magic_cmd=/usr/bin/file | |
6639 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6640 | ;; | |
6641 | esac | |
6642 | else | |
6643 | lt_cv_deplibs_check_method=pass_all | |
6644 | fi | |
6645 | ;; | |
6646 | ||
6647 | gnu*) | |
6648 | lt_cv_deplibs_check_method=pass_all | |
6649 | ;; | |
6650 | ||
6651 | haiku*) | |
6652 | lt_cv_deplibs_check_method=pass_all | |
6653 | ;; | |
6654 | ||
6655 | hpux10.20* | hpux11*) | |
6656 | lt_cv_file_magic_cmd=/usr/bin/file | |
6657 | case $host_cpu in | |
6658 | ia64*) | |
6659 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6660 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6661 | ;; | |
6662 | hppa*64*) | |
6663 | 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]' | |
6664 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6665 | ;; | |
6666 | *) | |
6667 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6668 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6669 | ;; | |
6670 | esac | |
6671 | ;; | |
6672 | ||
6673 | interix[3-9]*) | |
6674 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6675 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6676 | ;; | |
6677 | ||
6678 | irix5* | irix6* | nonstopux*) | |
6679 | case $LD in | |
6680 | *-32|*"-32 ") libmagic=32-bit;; | |
6681 | *-n32|*"-n32 ") libmagic=N32;; | |
6682 | *-64|*"-64 ") libmagic=64-bit;; | |
6683 | *) libmagic=never-match;; | |
6684 | esac | |
6685 | lt_cv_deplibs_check_method=pass_all | |
6686 | ;; | |
6687 | ||
6688 | # This must be Linux ELF. | |
6689 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6690 | lt_cv_deplibs_check_method=pass_all | |
6691 | ;; | |
6692 | ||
6693 | netbsd*) | |
6694 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6695 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6696 | else | |
6697 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6698 | fi | |
6699 | ;; | |
6700 | ||
6701 | newos6*) | |
6702 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6703 | lt_cv_file_magic_cmd=/usr/bin/file | |
6704 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6705 | ;; | |
6706 | ||
6707 | *nto* | *qnx*) | |
6708 | lt_cv_deplibs_check_method=pass_all | |
6709 | ;; | |
6710 | ||
6711 | openbsd*) | |
6712 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6713 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6714 | else | |
6715 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6716 | fi | |
6717 | ;; | |
6718 | ||
6719 | osf3* | osf4* | osf5*) | |
6720 | lt_cv_deplibs_check_method=pass_all | |
6721 | ;; | |
6722 | ||
6723 | rdos*) | |
6724 | lt_cv_deplibs_check_method=pass_all | |
6725 | ;; | |
6726 | ||
6727 | solaris*) | |
6728 | lt_cv_deplibs_check_method=pass_all | |
6729 | ;; | |
6730 | ||
6731 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6732 | lt_cv_deplibs_check_method=pass_all | |
6733 | ;; | |
6734 | ||
6735 | sysv4 | sysv4.3*) | |
6736 | case $host_vendor in | |
6737 | motorola) | |
6738 | 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]' | |
6739 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6740 | ;; | |
6741 | ncr) | |
6742 | lt_cv_deplibs_check_method=pass_all | |
6743 | ;; | |
6744 | sequent) | |
6745 | lt_cv_file_magic_cmd='/bin/file' | |
6746 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6747 | ;; | |
6748 | sni) | |
6749 | lt_cv_file_magic_cmd='/bin/file' | |
6750 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6751 | lt_cv_file_magic_test_file=/lib/libc.so | |
6752 | ;; | |
6753 | siemens) | |
6754 | lt_cv_deplibs_check_method=pass_all | |
6755 | ;; | |
6756 | pc) | |
6757 | lt_cv_deplibs_check_method=pass_all | |
6758 | ;; | |
6759 | esac | |
6760 | ;; | |
6761 | ||
6762 | tpf*) | |
6763 | lt_cv_deplibs_check_method=pass_all | |
6764 | ;; | |
6765 | esac | |
6766 | ||
6767 | fi | |
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6769 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6770 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6771 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6772 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6773 | ||
6774 | ||
6775 | ||
6776 | ||
6777 | ||
6778 | ||
6779 | ||
6780 | ||
6781 | ||
6782 | ||
6783 | ||
6784 | ||
68ed2854 MF |
6785 | plugin_option= |
6786 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6787 | for plugin in $plugin_names; do | |
6788 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6789 | if test x$plugin_so = x$plugin; then | |
6790 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6791 | fi | |
6792 | if test x$plugin_so != x$plugin; then | |
6793 | plugin_option="--plugin $plugin_so" | |
6794 | break | |
6795 | fi | |
6796 | done | |
6797 | ||
6bb11ab3 L |
6798 | if test -n "$ac_tool_prefix"; then |
6799 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6800 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6802 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6803 | if ${ac_cv_prog_AR+:} false; then : |
6bb11ab3 L |
6804 | $as_echo_n "(cached) " >&6 |
6805 | else | |
6806 | if test -n "$AR"; then | |
6807 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6808 | else | |
6809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6810 | for as_dir in $PATH | |
6811 | do | |
6812 | IFS=$as_save_IFS | |
6813 | test -z "$as_dir" && as_dir=. | |
6814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6816 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6818 | break 2 | |
6819 | fi | |
6820 | done | |
6821 | done | |
6822 | IFS=$as_save_IFS | |
6823 | ||
6824 | fi | |
6825 | fi | |
6826 | AR=$ac_cv_prog_AR | |
6827 | if test -n "$AR"; then | |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6829 | $as_echo "$AR" >&6; } | |
6830 | else | |
6831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6832 | $as_echo "no" >&6; } | |
6833 | fi | |
6834 | ||
6835 | ||
6836 | fi | |
6837 | if test -z "$ac_cv_prog_AR"; then | |
6838 | ac_ct_AR=$AR | |
6839 | # Extract the first word of "ar", so it can be a program name with args. | |
6840 | set dummy ar; ac_word=$2 | |
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6842 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6843 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
6bb11ab3 L |
6844 | $as_echo_n "(cached) " >&6 |
6845 | else | |
6846 | if test -n "$ac_ct_AR"; then | |
6847 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6848 | else | |
6849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6850 | for as_dir in $PATH | |
6851 | do | |
6852 | IFS=$as_save_IFS | |
6853 | test -z "$as_dir" && as_dir=. | |
6854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6855 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6856 | ac_cv_prog_ac_ct_AR="ar" |
6857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6858 | break 2 | |
6859 | fi | |
6860 | done | |
6861 | done | |
6862 | IFS=$as_save_IFS | |
6863 | ||
6864 | fi | |
6865 | fi | |
6866 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6867 | if test -n "$ac_ct_AR"; then | |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6869 | $as_echo "$ac_ct_AR" >&6; } | |
6870 | else | |
6871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6872 | $as_echo "no" >&6; } | |
6873 | fi | |
6874 | ||
6875 | if test "x$ac_ct_AR" = x; then | |
6876 | AR="false" | |
6877 | else | |
6878 | case $cross_compiling:$ac_tool_warned in | |
6879 | yes:) | |
6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6881 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6882 | ac_tool_warned=yes ;; | |
6883 | esac | |
6884 | AR=$ac_ct_AR | |
6885 | fi | |
6886 | else | |
6887 | AR="$ac_cv_prog_AR" | |
6888 | fi | |
6889 | ||
6890 | test -z "$AR" && AR=ar | |
68ed2854 MF |
6891 | if test -n "$plugin_option"; then |
6892 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
6893 | AR="$AR $plugin_option" | |
6894 | fi | |
6895 | fi | |
6bb11ab3 L |
6896 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6897 | ||
6898 | ||
6899 | ||
6900 | ||
6901 | ||
6902 | ||
6903 | ||
6904 | ||
6905 | ||
6906 | ||
6907 | ||
6908 | if test -n "$ac_tool_prefix"; then | |
6909 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6910 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6912 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6913 | if ${ac_cv_prog_STRIP+:} false; then : |
6bb11ab3 L |
6914 | $as_echo_n "(cached) " >&6 |
6915 | else | |
6916 | if test -n "$STRIP"; then | |
6917 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6918 | else | |
6919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6920 | for as_dir in $PATH | |
6921 | do | |
6922 | IFS=$as_save_IFS | |
6923 | test -z "$as_dir" && as_dir=. | |
6924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6926 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6928 | break 2 | |
6929 | fi | |
6930 | done | |
6931 | done | |
6932 | IFS=$as_save_IFS | |
6933 | ||
6934 | fi | |
6935 | fi | |
6936 | STRIP=$ac_cv_prog_STRIP | |
6937 | if test -n "$STRIP"; then | |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6939 | $as_echo "$STRIP" >&6; } | |
6940 | else | |
6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6942 | $as_echo "no" >&6; } | |
6943 | fi | |
6944 | ||
6945 | ||
6946 | fi | |
6947 | if test -z "$ac_cv_prog_STRIP"; then | |
6948 | ac_ct_STRIP=$STRIP | |
6949 | # Extract the first word of "strip", so it can be a program name with args. | |
6950 | set dummy strip; ac_word=$2 | |
6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6952 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6953 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
6bb11ab3 L |
6954 | $as_echo_n "(cached) " >&6 |
6955 | else | |
6956 | if test -n "$ac_ct_STRIP"; then | |
6957 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6958 | else | |
6959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6960 | for as_dir in $PATH | |
6961 | do | |
6962 | IFS=$as_save_IFS | |
6963 | test -z "$as_dir" && as_dir=. | |
6964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 6965 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
6966 | ac_cv_prog_ac_ct_STRIP="strip" |
6967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6968 | break 2 | |
6969 | fi | |
6970 | done | |
6971 | done | |
6972 | IFS=$as_save_IFS | |
6973 | ||
6974 | fi | |
6975 | fi | |
6976 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6977 | if test -n "$ac_ct_STRIP"; then | |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6979 | $as_echo "$ac_ct_STRIP" >&6; } | |
6980 | else | |
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6982 | $as_echo "no" >&6; } | |
6983 | fi | |
6984 | ||
6985 | if test "x$ac_ct_STRIP" = x; then | |
6986 | STRIP=":" | |
6987 | else | |
6988 | case $cross_compiling:$ac_tool_warned in | |
6989 | yes:) | |
6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6991 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6992 | ac_tool_warned=yes ;; | |
6993 | esac | |
6994 | STRIP=$ac_ct_STRIP | |
6995 | fi | |
6996 | else | |
6997 | STRIP="$ac_cv_prog_STRIP" | |
6998 | fi | |
6999 | ||
7000 | test -z "$STRIP" && STRIP=: | |
7001 | ||
7002 | ||
7003 | ||
7004 | ||
7005 | ||
7006 | ||
7007 | if test -n "$ac_tool_prefix"; then | |
7008 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7009 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7011 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7012 | if ${ac_cv_prog_RANLIB+:} false; then : |
6bb11ab3 L |
7013 | $as_echo_n "(cached) " >&6 |
7014 | else | |
7015 | if test -n "$RANLIB"; then | |
7016 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7017 | else | |
7018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7019 | for as_dir in $PATH | |
7020 | do | |
7021 | IFS=$as_save_IFS | |
7022 | test -z "$as_dir" && as_dir=. | |
7023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7025 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7027 | break 2 | |
7028 | fi | |
7029 | done | |
7030 | done | |
7031 | IFS=$as_save_IFS | |
7032 | ||
7033 | fi | |
7034 | fi | |
7035 | RANLIB=$ac_cv_prog_RANLIB | |
7036 | if test -n "$RANLIB"; then | |
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7038 | $as_echo "$RANLIB" >&6; } | |
7039 | else | |
7040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7041 | $as_echo "no" >&6; } | |
7042 | fi | |
7043 | ||
7044 | ||
7045 | fi | |
7046 | if test -z "$ac_cv_prog_RANLIB"; then | |
7047 | ac_ct_RANLIB=$RANLIB | |
7048 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7049 | set dummy ranlib; ac_word=$2 | |
7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7051 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7052 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
6bb11ab3 L |
7053 | $as_echo_n "(cached) " >&6 |
7054 | else | |
7055 | if test -n "$ac_ct_RANLIB"; then | |
7056 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7057 | else | |
7058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7059 | for as_dir in $PATH | |
7060 | do | |
7061 | IFS=$as_save_IFS | |
7062 | test -z "$as_dir" && as_dir=. | |
7063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7064 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7065 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7067 | break 2 | |
7068 | fi | |
7069 | done | |
7070 | done | |
7071 | IFS=$as_save_IFS | |
7072 | ||
7073 | fi | |
7074 | fi | |
7075 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7076 | if test -n "$ac_ct_RANLIB"; then | |
7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7078 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7079 | else | |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7081 | $as_echo "no" >&6; } | |
7082 | fi | |
7083 | ||
7084 | if test "x$ac_ct_RANLIB" = x; then | |
7085 | RANLIB=":" | |
7086 | else | |
7087 | case $cross_compiling:$ac_tool_warned in | |
7088 | yes:) | |
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7090 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7091 | ac_tool_warned=yes ;; | |
7092 | esac | |
7093 | RANLIB=$ac_ct_RANLIB | |
7094 | fi | |
7095 | else | |
7096 | RANLIB="$ac_cv_prog_RANLIB" | |
7097 | fi | |
7098 | ||
7099 | test -z "$RANLIB" && RANLIB=: | |
68ed2854 MF |
7100 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
7101 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
7102 | RANLIB="$RANLIB $plugin_option" | |
7103 | fi | |
7104 | fi | |
6bb11ab3 L |
7105 | |
7106 | ||
7107 | ||
7108 | ||
7109 | ||
7110 | ||
7111 | # Determine commands to create old-style static archives. | |
7112 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7113 | old_postinstall_cmds='chmod 644 $oldlib' | |
7114 | old_postuninstall_cmds= | |
7115 | ||
7116 | if test -n "$RANLIB"; then | |
7117 | case $host_os in | |
7118 | openbsd*) | |
7119 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7120 | ;; | |
7121 | *) | |
7122 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7123 | ;; | |
7124 | esac | |
7125 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7126 | fi | |
7127 | ||
7128 | case $host_os in | |
7129 | darwin*) | |
7130 | lock_old_archive_extraction=yes ;; | |
7131 | *) | |
7132 | lock_old_archive_extraction=no ;; | |
7133 | esac | |
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | ||
7142 | ||
7143 | ||
7144 | ||
7145 | ||
7146 | ||
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | ||
7152 | ||
7153 | ||
7154 | ||
7155 | for ac_prog in gawk mawk nawk awk | |
7156 | do | |
7157 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7158 | set dummy $ac_prog; ac_word=$2 | |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7160 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7161 | if ${ac_cv_prog_AWK+:} false; then : |
6bb11ab3 L |
7162 | $as_echo_n "(cached) " >&6 |
7163 | else | |
7164 | if test -n "$AWK"; then | |
7165 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
7166 | else | |
7167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7168 | for as_dir in $PATH | |
7169 | do | |
7170 | IFS=$as_save_IFS | |
7171 | test -z "$as_dir" && as_dir=. | |
7172 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7173 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7174 | ac_cv_prog_AWK="$ac_prog" |
7175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7176 | break 2 | |
7177 | fi | |
7178 | done | |
7179 | done | |
7180 | IFS=$as_save_IFS | |
7181 | ||
7182 | fi | |
7183 | fi | |
7184 | AWK=$ac_cv_prog_AWK | |
7185 | if test -n "$AWK"; then | |
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
7187 | $as_echo "$AWK" >&6; } | |
7188 | else | |
7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7190 | $as_echo "no" >&6; } | |
7191 | fi | |
7192 | ||
7193 | ||
7194 | test -n "$AWK" && break | |
7195 | done | |
7196 | ||
7197 | ||
7198 | ||
7199 | ||
7200 | ||
7201 | ||
7202 | ||
7203 | ||
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | ||
7214 | ||
7215 | # If no C compiler was specified, use CC. | |
7216 | LTCC=${LTCC-"$CC"} | |
7217 | ||
7218 | # If no C compiler flags were specified, use CFLAGS. | |
7219 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7220 | ||
7221 | # Allow CC to be a program name with arguments. | |
7222 | compiler=$CC | |
7223 | ||
7224 | ||
7225 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7227 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 7228 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
6bb11ab3 L |
7229 | $as_echo_n "(cached) " >&6 |
7230 | else | |
7231 | ||
7232 | # These are sane defaults that work on at least a few old systems. | |
7233 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7234 | ||
7235 | # Character class describing NM global symbol codes. | |
7236 | symcode='[BCDEGRST]' | |
7237 | ||
7238 | # Regexp to match symbols that can be accessed directly from C. | |
7239 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7240 | ||
7241 | # Define system-specific variables. | |
7242 | case $host_os in | |
7243 | aix*) | |
7244 | symcode='[BCDT]' | |
7245 | ;; | |
7246 | cygwin* | mingw* | pw32* | cegcc*) | |
7247 | symcode='[ABCDGISTW]' | |
7248 | ;; | |
7249 | hpux*) | |
7250 | if test "$host_cpu" = ia64; then | |
7251 | symcode='[ABCDEGRST]' | |
7252 | fi | |
7253 | ;; | |
7254 | irix* | nonstopux*) | |
7255 | symcode='[BCDEGRST]' | |
7256 | ;; | |
7257 | osf*) | |
7258 | symcode='[BCDEGQRST]' | |
7259 | ;; | |
7260 | solaris*) | |
7261 | symcode='[BDRT]' | |
7262 | ;; | |
7263 | sco3.2v5*) | |
7264 | symcode='[DT]' | |
7265 | ;; | |
7266 | sysv4.2uw2*) | |
7267 | symcode='[DT]' | |
7268 | ;; | |
7269 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7270 | symcode='[ABDT]' | |
7271 | ;; | |
7272 | sysv4) | |
7273 | symcode='[DFNSTU]' | |
7274 | ;; | |
7275 | esac | |
7276 | ||
7277 | # If we're using GNU nm, then use its standard symbol codes. | |
7278 | case `$NM -V 2>&1` in | |
7279 | *GNU* | *'with BFD'*) | |
7280 | symcode='[ABCDGIRSTW]' ;; | |
7281 | esac | |
7282 | ||
7283 | # Transform an extracted symbol line into a proper C declaration. | |
7284 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7285 | # so use this general approach. | |
7286 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7287 | ||
7288 | # Transform an extracted symbol line into symbol name and symbol address | |
7289 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7290 | 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'" | |
7291 | ||
7292 | # Handle CRLF in mingw tool chain | |
7293 | opt_cr= | |
7294 | case $build_os in | |
7295 | mingw*) | |
7296 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7297 | ;; | |
7298 | esac | |
7299 | ||
7300 | # Try without a prefix underscore, then with it. | |
7301 | for ac_symprfx in "" "_"; do | |
7302 | ||
7303 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7304 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7305 | ||
7306 | # Write the raw and C identifiers. | |
7307 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7308 | # Fake it for dumpbin and say T for any non-static function | |
7309 | # and D for any global variable. | |
7310 | # Also find C++ and __fastcall symbols from MSVC++, | |
7311 | # which start with @ or ?. | |
7312 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7313 | " {last_section=section; section=\$ 3};"\ | |
7314 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7315 | " \$ 0!~/External *\|/{next};"\ | |
7316 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7317 | " {if(hide[section]) next};"\ | |
7318 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7319 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7320 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7321 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7322 | " ' prfx=^$ac_symprfx" | |
7323 | else | |
7324 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7325 | fi | |
7326 | ||
7327 | # Check to see that the pipe works correctly. | |
7328 | pipe_works=no | |
7329 | ||
7330 | rm -f conftest* | |
7331 | cat > conftest.$ac_ext <<_LT_EOF | |
7332 | #ifdef __cplusplus | |
7333 | extern "C" { | |
7334 | #endif | |
7335 | char nm_test_var; | |
7336 | void nm_test_func(void); | |
7337 | void nm_test_func(void){} | |
7338 | #ifdef __cplusplus | |
7339 | } | |
7340 | #endif | |
7341 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7342 | _LT_EOF | |
7343 | ||
7344 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7345 | (eval $ac_compile) 2>&5 | |
7346 | ac_status=$? | |
7347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7348 | test $ac_status = 0; }; then | |
7349 | # Now try to grab the symbols. | |
7350 | nlist=conftest.nm | |
7351 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7352 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7353 | ac_status=$? | |
7354 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7355 | test $ac_status = 0; } && test -s "$nlist"; then | |
7356 | # Try sorting and uniquifying the output. | |
7357 | if sort "$nlist" | uniq > "$nlist"T; then | |
7358 | mv -f "$nlist"T "$nlist" | |
7359 | else | |
7360 | rm -f "$nlist"T | |
7361 | fi | |
7362 | ||
7363 | # Make sure that we snagged all the symbols we need. | |
7364 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7365 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7366 | cat <<_LT_EOF > conftest.$ac_ext | |
7367 | #ifdef __cplusplus | |
7368 | extern "C" { | |
7369 | #endif | |
7370 | ||
7371 | _LT_EOF | |
7372 | # Now generate the symbol file. | |
7373 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7374 | ||
7375 | cat <<_LT_EOF >> conftest.$ac_ext | |
7376 | ||
7377 | /* The mapping between symbol names and symbols. */ | |
7378 | const struct { | |
7379 | const char *name; | |
7380 | void *address; | |
7381 | } | |
7382 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7383 | { | |
7384 | { "@PROGRAM@", (void *) 0 }, | |
7385 | _LT_EOF | |
7386 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7387 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7388 | {0, (void *) 0} | |
7389 | }; | |
7390 | ||
7391 | /* This works around a problem in FreeBSD linker */ | |
7392 | #ifdef FREEBSD_WORKAROUND | |
7393 | static const void *lt_preloaded_setup() { | |
7394 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7395 | } | |
7396 | #endif | |
7397 | ||
7398 | #ifdef __cplusplus | |
7399 | } | |
7400 | #endif | |
7401 | _LT_EOF | |
7402 | # Now try linking the two files. | |
7403 | mv conftest.$ac_objext conftstm.$ac_objext | |
7404 | lt_save_LIBS="$LIBS" | |
7405 | lt_save_CFLAGS="$CFLAGS" | |
7406 | LIBS="conftstm.$ac_objext" | |
7407 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7408 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7409 | (eval $ac_link) 2>&5 | |
7410 | ac_status=$? | |
7411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7412 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7413 | pipe_works=yes | |
7414 | fi | |
7415 | LIBS="$lt_save_LIBS" | |
7416 | CFLAGS="$lt_save_CFLAGS" | |
7417 | else | |
7418 | echo "cannot find nm_test_func in $nlist" >&5 | |
7419 | fi | |
7420 | else | |
7421 | echo "cannot find nm_test_var in $nlist" >&5 | |
7422 | fi | |
7423 | else | |
7424 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7425 | fi | |
7426 | else | |
7427 | echo "$progname: failed program was:" >&5 | |
7428 | cat conftest.$ac_ext >&5 | |
7429 | fi | |
7430 | rm -rf conftest* conftst* | |
7431 | ||
7432 | # Do not use the global_symbol_pipe unless it works. | |
7433 | if test "$pipe_works" = yes; then | |
7434 | break | |
7435 | else | |
7436 | lt_cv_sys_global_symbol_pipe= | |
7437 | fi | |
7438 | done | |
7439 | ||
7440 | fi | |
7441 | ||
7442 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7443 | lt_cv_sys_global_symbol_to_cdecl= | |
7444 | fi | |
7445 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7447 | $as_echo "failed" >&6; } | |
7448 | else | |
7449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7450 | $as_echo "ok" >&6; } | |
7451 | fi | |
7452 | ||
7453 | ||
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
7471 | ||
7472 | ||
7473 | ||
7474 | # Check whether --enable-libtool-lock was given. | |
7475 | if test "${enable_libtool_lock+set}" = set; then : | |
7476 | enableval=$enable_libtool_lock; | |
7477 | fi | |
7478 | ||
7479 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7480 | ||
7481 | # Some flags need to be propagated to the compiler or linker for good | |
7482 | # libtool support. | |
7483 | case $host in | |
7484 | ia64-*-hpux*) | |
7485 | # Find out which ABI we are using. | |
7486 | echo 'int i;' > conftest.$ac_ext | |
7487 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7488 | (eval $ac_compile) 2>&5 | |
7489 | ac_status=$? | |
7490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7491 | test $ac_status = 0; }; then | |
7492 | case `/usr/bin/file conftest.$ac_objext` in | |
7493 | *ELF-32*) | |
7494 | HPUX_IA64_MODE="32" | |
7495 | ;; | |
7496 | *ELF-64*) | |
7497 | HPUX_IA64_MODE="64" | |
7498 | ;; | |
7499 | esac | |
7500 | fi | |
7501 | rm -rf conftest* | |
7502 | ;; | |
7503 | *-*-irix6*) | |
7504 | # Find out which ABI we are using. | |
7505 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7506 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7507 | (eval $ac_compile) 2>&5 | |
7508 | ac_status=$? | |
7509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7510 | test $ac_status = 0; }; then | |
7511 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7512 | case `/usr/bin/file conftest.$ac_objext` in | |
7513 | *32-bit*) | |
7514 | LD="${LD-ld} -melf32bsmip" | |
7515 | ;; | |
7516 | *N32*) | |
7517 | LD="${LD-ld} -melf32bmipn32" | |
7518 | ;; | |
7519 | *64-bit*) | |
7520 | LD="${LD-ld} -melf64bmip" | |
7521 | ;; | |
7522 | esac | |
7523 | else | |
7524 | case `/usr/bin/file conftest.$ac_objext` in | |
7525 | *32-bit*) | |
7526 | LD="${LD-ld} -32" | |
7527 | ;; | |
7528 | *N32*) | |
7529 | LD="${LD-ld} -n32" | |
7530 | ;; | |
7531 | *64-bit*) | |
7532 | LD="${LD-ld} -64" | |
7533 | ;; | |
7534 | esac | |
7535 | fi | |
7536 | fi | |
7537 | rm -rf conftest* | |
7538 | ;; | |
7539 | ||
bf3d9781 | 7540 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
6bb11ab3 L |
7541 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7542 | # Find out which ABI we are using. | |
7543 | echo 'int i;' > conftest.$ac_ext | |
7544 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7545 | (eval $ac_compile) 2>&5 | |
7546 | ac_status=$? | |
7547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7548 | test $ac_status = 0; }; then | |
7549 | case `/usr/bin/file conftest.o` in | |
7550 | *32-bit*) | |
7551 | case $host in | |
7552 | x86_64-*kfreebsd*-gnu) | |
7553 | LD="${LD-ld} -m elf_i386_fbsd" | |
7554 | ;; | |
7555 | x86_64-*linux*) | |
7556 | case `/usr/bin/file conftest.o` in | |
7557 | *x86-64*) | |
7558 | LD="${LD-ld} -m elf32_x86_64" | |
7559 | ;; | |
7560 | *) | |
7561 | LD="${LD-ld} -m elf_i386" | |
7562 | ;; | |
7563 | esac | |
7564 | ;; | |
bf3d9781 AM |
7565 | powerpc64le-*linux*) |
7566 | LD="${LD-ld} -m elf32lppclinux" | |
7567 | ;; | |
7568 | powerpc64-*linux*) | |
6bb11ab3 L |
7569 | LD="${LD-ld} -m elf32ppclinux" |
7570 | ;; | |
7571 | s390x-*linux*) | |
7572 | LD="${LD-ld} -m elf_s390" | |
7573 | ;; | |
7574 | sparc64-*linux*) | |
7575 | LD="${LD-ld} -m elf32_sparc" | |
7576 | ;; | |
7577 | esac | |
7578 | ;; | |
7579 | *64-bit*) | |
7580 | case $host in | |
7581 | x86_64-*kfreebsd*-gnu) | |
7582 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7583 | ;; | |
7584 | x86_64-*linux*) | |
7585 | LD="${LD-ld} -m elf_x86_64" | |
7586 | ;; | |
bf3d9781 AM |
7587 | powerpcle-*linux*) |
7588 | LD="${LD-ld} -m elf64lppc" | |
7589 | ;; | |
7590 | powerpc-*linux*) | |
6bb11ab3 L |
7591 | LD="${LD-ld} -m elf64ppc" |
7592 | ;; | |
7593 | s390*-*linux*|s390*-*tpf*) | |
7594 | LD="${LD-ld} -m elf64_s390" | |
7595 | ;; | |
7596 | sparc*-*linux*) | |
7597 | LD="${LD-ld} -m elf64_sparc" | |
7598 | ;; | |
7599 | esac | |
7600 | ;; | |
7601 | esac | |
7602 | fi | |
7603 | rm -rf conftest* | |
7604 | ;; | |
7605 | ||
7606 | *-*-sco3.2v5*) | |
7607 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7608 | SAVE_CFLAGS="$CFLAGS" | |
7609 | CFLAGS="$CFLAGS -belf" | |
7610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7611 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 7612 | if ${lt_cv_cc_needs_belf+:} false; then : |
6bb11ab3 L |
7613 | $as_echo_n "(cached) " >&6 |
7614 | else | |
7615 | ac_ext=c | |
7616 | ac_cpp='$CPP $CPPFLAGS' | |
7617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7620 | ||
7621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7622 | /* end confdefs.h. */ | |
7623 | ||
7624 | int | |
7625 | main () | |
7626 | { | |
7627 | ||
7628 | ; | |
7629 | return 0; | |
7630 | } | |
7631 | _ACEOF | |
7632 | if ac_fn_c_try_link "$LINENO"; then : | |
7633 | lt_cv_cc_needs_belf=yes | |
7634 | else | |
7635 | lt_cv_cc_needs_belf=no | |
7636 | fi | |
7637 | rm -f core conftest.err conftest.$ac_objext \ | |
7638 | conftest$ac_exeext conftest.$ac_ext | |
7639 | ac_ext=c | |
7640 | ac_cpp='$CPP $CPPFLAGS' | |
7641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7644 | ||
7645 | fi | |
7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7647 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7648 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7649 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7650 | CFLAGS="$SAVE_CFLAGS" | |
7651 | fi | |
7652 | ;; | |
7653 | sparc*-*solaris*) | |
7654 | # Find out which ABI we are using. | |
7655 | echo 'int i;' > conftest.$ac_ext | |
7656 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7657 | (eval $ac_compile) 2>&5 | |
7658 | ac_status=$? | |
7659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7660 | test $ac_status = 0; }; then | |
7661 | case `/usr/bin/file conftest.o` in | |
7662 | *64-bit*) | |
7663 | case $lt_cv_prog_gnu_ld in | |
7664 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7665 | *) | |
7666 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7667 | LD="${LD-ld} -64" | |
7668 | fi | |
7669 | ;; | |
7670 | esac | |
7671 | ;; | |
7672 | esac | |
7673 | fi | |
7674 | rm -rf conftest* | |
7675 | ;; | |
7676 | esac | |
7677 | ||
7678 | need_locks="$enable_libtool_lock" | |
7679 | ||
7680 | ||
7681 | case $host_os in | |
7682 | rhapsody* | darwin*) | |
7683 | if test -n "$ac_tool_prefix"; then | |
7684 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7685 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7687 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7688 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
6bb11ab3 L |
7689 | $as_echo_n "(cached) " >&6 |
7690 | else | |
7691 | if test -n "$DSYMUTIL"; then | |
7692 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7693 | else | |
7694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7695 | for as_dir in $PATH | |
7696 | do | |
7697 | IFS=$as_save_IFS | |
7698 | test -z "$as_dir" && as_dir=. | |
7699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7700 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7701 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7703 | break 2 | |
7704 | fi | |
7705 | done | |
7706 | done | |
7707 | IFS=$as_save_IFS | |
7708 | ||
7709 | fi | |
7710 | fi | |
7711 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7712 | if test -n "$DSYMUTIL"; then | |
7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7714 | $as_echo "$DSYMUTIL" >&6; } | |
7715 | else | |
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7717 | $as_echo "no" >&6; } | |
7718 | fi | |
7719 | ||
7720 | ||
7721 | fi | |
7722 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7723 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7724 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7725 | set dummy dsymutil; ac_word=$2 | |
7726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7727 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7728 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
6bb11ab3 L |
7729 | $as_echo_n "(cached) " >&6 |
7730 | else | |
7731 | if test -n "$ac_ct_DSYMUTIL"; then | |
7732 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7733 | else | |
7734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7735 | for as_dir in $PATH | |
7736 | do | |
7737 | IFS=$as_save_IFS | |
7738 | test -z "$as_dir" && as_dir=. | |
7739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7741 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
7742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7743 | break 2 | |
7744 | fi | |
7745 | done | |
7746 | done | |
7747 | IFS=$as_save_IFS | |
7748 | ||
7749 | fi | |
7750 | fi | |
7751 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7752 | if test -n "$ac_ct_DSYMUTIL"; then | |
7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7754 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7755 | else | |
7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7757 | $as_echo "no" >&6; } | |
7758 | fi | |
7759 | ||
7760 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7761 | DSYMUTIL=":" | |
7762 | else | |
7763 | case $cross_compiling:$ac_tool_warned in | |
7764 | yes:) | |
7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7766 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7767 | ac_tool_warned=yes ;; | |
7768 | esac | |
7769 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7770 | fi | |
7771 | else | |
7772 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7773 | fi | |
7774 | ||
7775 | if test -n "$ac_tool_prefix"; then | |
7776 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7777 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7779 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7780 | if ${ac_cv_prog_NMEDIT+:} false; then : |
6bb11ab3 L |
7781 | $as_echo_n "(cached) " >&6 |
7782 | else | |
7783 | if test -n "$NMEDIT"; then | |
7784 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7785 | else | |
7786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7787 | for as_dir in $PATH | |
7788 | do | |
7789 | IFS=$as_save_IFS | |
7790 | test -z "$as_dir" && as_dir=. | |
7791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7793 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7795 | break 2 | |
7796 | fi | |
7797 | done | |
7798 | done | |
7799 | IFS=$as_save_IFS | |
7800 | ||
7801 | fi | |
7802 | fi | |
7803 | NMEDIT=$ac_cv_prog_NMEDIT | |
7804 | if test -n "$NMEDIT"; then | |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7806 | $as_echo "$NMEDIT" >&6; } | |
7807 | else | |
7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7809 | $as_echo "no" >&6; } | |
7810 | fi | |
7811 | ||
7812 | ||
7813 | fi | |
7814 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7815 | ac_ct_NMEDIT=$NMEDIT | |
7816 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7817 | set dummy nmedit; ac_word=$2 | |
7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7819 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7820 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
6bb11ab3 L |
7821 | $as_echo_n "(cached) " >&6 |
7822 | else | |
7823 | if test -n "$ac_ct_NMEDIT"; then | |
7824 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7825 | else | |
7826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7827 | for as_dir in $PATH | |
7828 | do | |
7829 | IFS=$as_save_IFS | |
7830 | test -z "$as_dir" && as_dir=. | |
7831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7832 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7833 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7835 | break 2 | |
7836 | fi | |
7837 | done | |
7838 | done | |
7839 | IFS=$as_save_IFS | |
7840 | ||
7841 | fi | |
7842 | fi | |
7843 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7844 | if test -n "$ac_ct_NMEDIT"; then | |
7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7846 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7847 | else | |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7849 | $as_echo "no" >&6; } | |
7850 | fi | |
7851 | ||
7852 | if test "x$ac_ct_NMEDIT" = x; then | |
7853 | NMEDIT=":" | |
7854 | else | |
7855 | case $cross_compiling:$ac_tool_warned in | |
7856 | yes:) | |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7858 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7859 | ac_tool_warned=yes ;; | |
7860 | esac | |
7861 | NMEDIT=$ac_ct_NMEDIT | |
7862 | fi | |
7863 | else | |
7864 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7865 | fi | |
7866 | ||
7867 | if test -n "$ac_tool_prefix"; then | |
7868 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7869 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7871 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7872 | if ${ac_cv_prog_LIPO+:} false; then : |
6bb11ab3 L |
7873 | $as_echo_n "(cached) " >&6 |
7874 | else | |
7875 | if test -n "$LIPO"; then | |
7876 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7877 | else | |
7878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7879 | for as_dir in $PATH | |
7880 | do | |
7881 | IFS=$as_save_IFS | |
7882 | test -z "$as_dir" && as_dir=. | |
7883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7885 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7887 | break 2 | |
7888 | fi | |
7889 | done | |
7890 | done | |
7891 | IFS=$as_save_IFS | |
7892 | ||
7893 | fi | |
7894 | fi | |
7895 | LIPO=$ac_cv_prog_LIPO | |
7896 | if test -n "$LIPO"; then | |
7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7898 | $as_echo "$LIPO" >&6; } | |
7899 | else | |
7900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7901 | $as_echo "no" >&6; } | |
7902 | fi | |
7903 | ||
7904 | ||
7905 | fi | |
7906 | if test -z "$ac_cv_prog_LIPO"; then | |
7907 | ac_ct_LIPO=$LIPO | |
7908 | # Extract the first word of "lipo", so it can be a program name with args. | |
7909 | set dummy lipo; ac_word=$2 | |
7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7911 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7912 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
6bb11ab3 L |
7913 | $as_echo_n "(cached) " >&6 |
7914 | else | |
7915 | if test -n "$ac_ct_LIPO"; then | |
7916 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7917 | else | |
7918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7919 | for as_dir in $PATH | |
7920 | do | |
7921 | IFS=$as_save_IFS | |
7922 | test -z "$as_dir" && as_dir=. | |
7923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7925 | ac_cv_prog_ac_ct_LIPO="lipo" |
7926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7927 | break 2 | |
7928 | fi | |
7929 | done | |
7930 | done | |
7931 | IFS=$as_save_IFS | |
7932 | ||
7933 | fi | |
7934 | fi | |
7935 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7936 | if test -n "$ac_ct_LIPO"; then | |
7937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7938 | $as_echo "$ac_ct_LIPO" >&6; } | |
7939 | else | |
7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7941 | $as_echo "no" >&6; } | |
7942 | fi | |
7943 | ||
7944 | if test "x$ac_ct_LIPO" = x; then | |
7945 | LIPO=":" | |
7946 | else | |
7947 | case $cross_compiling:$ac_tool_warned in | |
7948 | yes:) | |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7950 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7951 | ac_tool_warned=yes ;; | |
7952 | esac | |
7953 | LIPO=$ac_ct_LIPO | |
7954 | fi | |
7955 | else | |
7956 | LIPO="$ac_cv_prog_LIPO" | |
7957 | fi | |
7958 | ||
7959 | if test -n "$ac_tool_prefix"; then | |
7960 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7961 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7963 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7964 | if ${ac_cv_prog_OTOOL+:} false; then : |
6bb11ab3 L |
7965 | $as_echo_n "(cached) " >&6 |
7966 | else | |
7967 | if test -n "$OTOOL"; then | |
7968 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7969 | else | |
7970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7971 | for as_dir in $PATH | |
7972 | do | |
7973 | IFS=$as_save_IFS | |
7974 | test -z "$as_dir" && as_dir=. | |
7975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 7976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
7977 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7979 | break 2 | |
7980 | fi | |
7981 | done | |
7982 | done | |
7983 | IFS=$as_save_IFS | |
7984 | ||
7985 | fi | |
7986 | fi | |
7987 | OTOOL=$ac_cv_prog_OTOOL | |
7988 | if test -n "$OTOOL"; then | |
7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7990 | $as_echo "$OTOOL" >&6; } | |
7991 | else | |
7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7993 | $as_echo "no" >&6; } | |
7994 | fi | |
7995 | ||
7996 | ||
7997 | fi | |
7998 | if test -z "$ac_cv_prog_OTOOL"; then | |
7999 | ac_ct_OTOOL=$OTOOL | |
8000 | # Extract the first word of "otool", so it can be a program name with args. | |
8001 | set dummy otool; ac_word=$2 | |
8002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8003 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8004 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
6bb11ab3 L |
8005 | $as_echo_n "(cached) " >&6 |
8006 | else | |
8007 | if test -n "$ac_ct_OTOOL"; then | |
8008 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8009 | else | |
8010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8011 | for as_dir in $PATH | |
8012 | do | |
8013 | IFS=$as_save_IFS | |
8014 | test -z "$as_dir" && as_dir=. | |
8015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 8016 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
8017 | ac_cv_prog_ac_ct_OTOOL="otool" |
8018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8019 | break 2 | |
8020 | fi | |
8021 | done | |
8022 | done | |
8023 | IFS=$as_save_IFS | |
8024 | ||
8025 | fi | |
8026 | fi | |
8027 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8028 | if test -n "$ac_ct_OTOOL"; then | |
8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8030 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8031 | else | |
8032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8033 | $as_echo "no" >&6; } | |
8034 | fi | |
8035 | ||
8036 | if test "x$ac_ct_OTOOL" = x; then | |
8037 | OTOOL=":" | |
8038 | else | |
8039 | case $cross_compiling:$ac_tool_warned in | |
8040 | yes:) | |
8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8042 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8043 | ac_tool_warned=yes ;; | |
8044 | esac | |
8045 | OTOOL=$ac_ct_OTOOL | |
8046 | fi | |
8047 | else | |
8048 | OTOOL="$ac_cv_prog_OTOOL" | |
8049 | fi | |
8050 | ||
8051 | if test -n "$ac_tool_prefix"; then | |
8052 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8053 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8055 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8056 | if ${ac_cv_prog_OTOOL64+:} false; then : |
6bb11ab3 L |
8057 | $as_echo_n "(cached) " >&6 |
8058 | else | |
8059 | if test -n "$OTOOL64"; then | |
8060 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8061 | else | |
8062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8063 | for as_dir in $PATH | |
8064 | do | |
8065 | IFS=$as_save_IFS | |
8066 | test -z "$as_dir" && as_dir=. | |
8067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 8068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
8069 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8071 | break 2 | |
8072 | fi | |
8073 | done | |
8074 | done | |
8075 | IFS=$as_save_IFS | |
8076 | ||
8077 | fi | |
8078 | fi | |
8079 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8080 | if test -n "$OTOOL64"; then | |
8081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8082 | $as_echo "$OTOOL64" >&6; } | |
8083 | else | |
8084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8085 | $as_echo "no" >&6; } | |
8086 | fi | |
8087 | ||
8088 | ||
8089 | fi | |
8090 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8091 | ac_ct_OTOOL64=$OTOOL64 | |
8092 | # Extract the first word of "otool64", so it can be a program name with args. | |
8093 | set dummy otool64; ac_word=$2 | |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8095 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8096 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
6bb11ab3 L |
8097 | $as_echo_n "(cached) " >&6 |
8098 | else | |
8099 | if test -n "$ac_ct_OTOOL64"; then | |
8100 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8101 | else | |
8102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8103 | for as_dir in $PATH | |
8104 | do | |
8105 | IFS=$as_save_IFS | |
8106 | test -z "$as_dir" && as_dir=. | |
8107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 8108 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
8109 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
8110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8111 | break 2 | |
8112 | fi | |
8113 | done | |
8114 | done | |
8115 | IFS=$as_save_IFS | |
8116 | ||
8117 | fi | |
8118 | fi | |
8119 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8120 | if test -n "$ac_ct_OTOOL64"; then | |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8122 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8123 | else | |
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8125 | $as_echo "no" >&6; } | |
8126 | fi | |
8127 | ||
8128 | if test "x$ac_ct_OTOOL64" = x; then | |
8129 | OTOOL64=":" | |
8130 | else | |
8131 | case $cross_compiling:$ac_tool_warned in | |
8132 | yes:) | |
8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8134 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8135 | ac_tool_warned=yes ;; | |
8136 | esac | |
8137 | OTOOL64=$ac_ct_OTOOL64 | |
8138 | fi | |
8139 | else | |
8140 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8141 | fi | |
8142 | ||
8143 | ||
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | ||
8151 | ||
8152 | ||
8153 | ||
8154 | ||
8155 | ||
8156 | ||
8157 | ||
8158 | ||
8159 | ||
8160 | ||
8161 | ||
8162 | ||
8163 | ||
8164 | ||
8165 | ||
8166 | ||
8167 | ||
8168 | ||
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8170 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 8171 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
6bb11ab3 L |
8172 | $as_echo_n "(cached) " >&6 |
8173 | else | |
8174 | lt_cv_apple_cc_single_mod=no | |
8175 | if test -z "${LT_MULTI_MODULE}"; then | |
8176 | # By default we will add the -single_module flag. You can override | |
8177 | # by either setting the environment variable LT_MULTI_MODULE | |
8178 | # non-empty at configure time, or by adding -multi_module to the | |
8179 | # link flags. | |
8180 | rm -rf libconftest.dylib* | |
8181 | echo "int foo(void){return 1;}" > conftest.c | |
8182 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8183 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8184 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8185 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8186 | _lt_result=$? | |
8187 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8188 | lt_cv_apple_cc_single_mod=yes | |
8189 | else | |
8190 | cat conftest.err >&5 | |
8191 | fi | |
8192 | rm -rf libconftest.dylib* | |
8193 | rm -f conftest.* | |
8194 | fi | |
8195 | fi | |
8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8197 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8199 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 8200 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
6bb11ab3 L |
8201 | $as_echo_n "(cached) " >&6 |
8202 | else | |
8203 | lt_cv_ld_exported_symbols_list=no | |
8204 | save_LDFLAGS=$LDFLAGS | |
8205 | echo "_main" > conftest.sym | |
8206 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8208 | /* end confdefs.h. */ | |
8209 | ||
8210 | int | |
8211 | main () | |
8212 | { | |
8213 | ||
8214 | ; | |
8215 | return 0; | |
8216 | } | |
8217 | _ACEOF | |
8218 | if ac_fn_c_try_link "$LINENO"; then : | |
8219 | lt_cv_ld_exported_symbols_list=yes | |
8220 | else | |
8221 | lt_cv_ld_exported_symbols_list=no | |
8222 | fi | |
8223 | rm -f core conftest.err conftest.$ac_objext \ | |
8224 | conftest$ac_exeext conftest.$ac_ext | |
8225 | LDFLAGS="$save_LDFLAGS" | |
8226 | ||
8227 | fi | |
8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8229 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8231 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 8232 | if ${lt_cv_ld_force_load+:} false; then : |
6bb11ab3 L |
8233 | $as_echo_n "(cached) " >&6 |
8234 | else | |
8235 | lt_cv_ld_force_load=no | |
8236 | cat > conftest.c << _LT_EOF | |
8237 | int forced_loaded() { return 2;} | |
8238 | _LT_EOF | |
8239 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8240 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8241 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8242 | $AR cru libconftest.a conftest.o 2>&5 | |
8243 | cat > conftest.c << _LT_EOF | |
8244 | int main() { return 0;} | |
8245 | _LT_EOF | |
8246 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8247 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8248 | _lt_result=$? | |
8249 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8250 | lt_cv_ld_force_load=yes | |
8251 | else | |
8252 | cat conftest.err >&5 | |
8253 | fi | |
8254 | rm -f conftest.err libconftest.a conftest conftest.c | |
8255 | rm -rf conftest.dSYM | |
8256 | ||
8257 | fi | |
8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8259 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8260 | case $host_os in | |
8261 | rhapsody* | darwin1.[012]) | |
8262 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8263 | darwin1.*) | |
8264 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8265 | darwin*) # darwin 5.x on | |
8266 | # if running on 10.5 or later, the deployment target defaults | |
8267 | # to the OS version, if on x86, and 10.4, the deployment | |
8268 | # target defaults to 10.4. Don't you love it? | |
8269 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8270 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8271 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
ae7d0cac | 8272 | 10.[012][,.]*) |
6bb11ab3 L |
8273 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8274 | 10.*) | |
8275 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8276 | esac | |
8277 | ;; | |
8278 | esac | |
8279 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8280 | _lt_dar_single_mod='$single_module' | |
8281 | fi | |
8282 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8283 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8284 | else | |
8285 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8286 | fi | |
8287 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8288 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8289 | else | |
8290 | _lt_dsymutil= | |
8291 | fi | |
8292 | ;; | |
8293 | esac | |
8294 | ||
8295 | for ac_header in dlfcn.h | |
8296 | do : | |
8297 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8298 | " | |
d0ac1c44 | 8299 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
6bb11ab3 L |
8300 | cat >>confdefs.h <<_ACEOF |
8301 | #define HAVE_DLFCN_H 1 | |
8302 | _ACEOF | |
8303 | ||
8304 | fi | |
8305 | ||
8306 | done | |
8307 | ||
8308 | ||
8309 | ||
8310 | # autoconf.info says this should be called right after AC_INIT. | |
8311 | ac_config_headers="$ac_config_headers config.h:config.in" | |
8312 | ||
8313 | ||
8314 | ||
0cb8d851 MF |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
8316 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
d0ac1c44 | 8317 | if ${ac_cv_c_bigendian+:} false; then : |
0cb8d851 MF |
8318 | $as_echo_n "(cached) " >&6 |
8319 | else | |
8320 | ac_cv_c_bigendian=unknown | |
8321 | # See if we're dealing with a universal compiler. | |
8322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8323 | /* end confdefs.h. */ | |
8324 | #ifndef __APPLE_CC__ | |
8325 | not a universal capable compiler | |
8326 | #endif | |
8327 | typedef int dummy; | |
8328 | ||
8329 | _ACEOF | |
8330 | if ac_fn_c_try_compile "$LINENO"; then : | |
8331 | ||
8332 | # Check for potential -arch flags. It is not universal unless | |
8333 | # there are at least two -arch flags with different values. | |
8334 | ac_arch= | |
8335 | ac_prev= | |
8336 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
8337 | if test -n "$ac_prev"; then | |
8338 | case $ac_word in | |
8339 | i?86 | x86_64 | ppc | ppc64) | |
8340 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
8341 | ac_arch=$ac_word | |
8342 | else | |
8343 | ac_cv_c_bigendian=universal | |
8344 | break | |
8345 | fi | |
8346 | ;; | |
8347 | esac | |
8348 | ac_prev= | |
8349 | elif test "x$ac_word" = "x-arch"; then | |
8350 | ac_prev=arch | |
8351 | fi | |
8352 | done | |
8353 | fi | |
8354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8355 | if test $ac_cv_c_bigendian = unknown; then | |
8356 | # See if sys/param.h defines the BYTE_ORDER macro. | |
8357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8358 | /* end confdefs.h. */ | |
8359 | #include <sys/types.h> | |
8360 | #include <sys/param.h> | |
8361 | ||
8362 | int | |
8363 | main () | |
8364 | { | |
8365 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
8366 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
8367 | && LITTLE_ENDIAN) | |
8368 | bogus endian macros | |
8369 | #endif | |
8370 | ||
8371 | ; | |
8372 | return 0; | |
8373 | } | |
8374 | _ACEOF | |
8375 | if ac_fn_c_try_compile "$LINENO"; then : | |
8376 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
8377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8378 | /* end confdefs.h. */ | |
8379 | #include <sys/types.h> | |
8380 | #include <sys/param.h> | |
8381 | ||
8382 | int | |
8383 | main () | |
8384 | { | |
8385 | #if BYTE_ORDER != BIG_ENDIAN | |
8386 | not big endian | |
8387 | #endif | |
8388 | ||
8389 | ; | |
8390 | return 0; | |
8391 | } | |
8392 | _ACEOF | |
8393 | if ac_fn_c_try_compile "$LINENO"; then : | |
8394 | ac_cv_c_bigendian=yes | |
8395 | else | |
8396 | ac_cv_c_bigendian=no | |
8397 | fi | |
8398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8399 | fi | |
8400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8401 | fi | |
8402 | if test $ac_cv_c_bigendian = unknown; then | |
8403 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
8404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8405 | /* end confdefs.h. */ | |
8406 | #include <limits.h> | |
8407 | ||
8408 | int | |
8409 | main () | |
8410 | { | |
8411 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
8412 | bogus endian macros | |
8413 | #endif | |
8414 | ||
8415 | ; | |
8416 | return 0; | |
8417 | } | |
8418 | _ACEOF | |
8419 | if ac_fn_c_try_compile "$LINENO"; then : | |
8420 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
8421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8422 | /* end confdefs.h. */ | |
8423 | #include <limits.h> | |
8424 | ||
8425 | int | |
8426 | main () | |
8427 | { | |
8428 | #ifndef _BIG_ENDIAN | |
8429 | not big endian | |
8430 | #endif | |
8431 | ||
8432 | ; | |
8433 | return 0; | |
8434 | } | |
8435 | _ACEOF | |
8436 | if ac_fn_c_try_compile "$LINENO"; then : | |
8437 | ac_cv_c_bigendian=yes | |
8438 | else | |
8439 | ac_cv_c_bigendian=no | |
8440 | fi | |
8441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8442 | fi | |
8443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8444 | fi | |
8445 | if test $ac_cv_c_bigendian = unknown; then | |
8446 | # Compile a test program. | |
8447 | if test "$cross_compiling" = yes; then : | |
8448 | # Try to guess by grepping values from an object file. | |
8449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8450 | /* end confdefs.h. */ | |
8451 | short int ascii_mm[] = | |
8452 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
8453 | short int ascii_ii[] = | |
8454 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
8455 | int use_ascii (int i) { | |
8456 | return ascii_mm[i] + ascii_ii[i]; | |
8457 | } | |
8458 | short int ebcdic_ii[] = | |
8459 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
8460 | short int ebcdic_mm[] = | |
8461 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
8462 | int use_ebcdic (int i) { | |
8463 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
8464 | } | |
8465 | extern int foo; | |
8466 | ||
8467 | int | |
8468 | main () | |
8469 | { | |
8470 | return use_ascii (foo) == use_ebcdic (foo); | |
8471 | ; | |
8472 | return 0; | |
8473 | } | |
8474 | _ACEOF | |
8475 | if ac_fn_c_try_compile "$LINENO"; then : | |
8476 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
8477 | ac_cv_c_bigendian=yes | |
8478 | fi | |
8479 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
8480 | if test "$ac_cv_c_bigendian" = unknown; then | |
8481 | ac_cv_c_bigendian=no | |
8482 | else | |
8483 | # finding both strings is unlikely to happen, but who knows? | |
8484 | ac_cv_c_bigendian=unknown | |
8485 | fi | |
8486 | fi | |
8487 | fi | |
8488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8489 | else | |
8490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8491 | /* end confdefs.h. */ | |
8492 | $ac_includes_default | |
8493 | int | |
8494 | main () | |
8495 | { | |
8496 | ||
8497 | /* Are we little or big endian? From Harbison&Steele. */ | |
8498 | union | |
8499 | { | |
8500 | long int l; | |
8501 | char c[sizeof (long int)]; | |
8502 | } u; | |
8503 | u.l = 1; | |
8504 | return u.c[sizeof (long int) - 1] == 1; | |
8505 | ||
8506 | ; | |
8507 | return 0; | |
8508 | } | |
8509 | _ACEOF | |
8510 | if ac_fn_c_try_run "$LINENO"; then : | |
8511 | ac_cv_c_bigendian=no | |
8512 | else | |
8513 | ac_cv_c_bigendian=yes | |
8514 | fi | |
8515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8516 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8517 | fi | |
8518 | ||
8519 | fi | |
8520 | fi | |
8521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
8522 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
8523 | case $ac_cv_c_bigendian in #( | |
8524 | yes) | |
8525 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
8526 | ;; #( | |
8527 | no) | |
8528 | ;; #( | |
8529 | universal) | |
8530 | ||
8531 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
8532 | ||
8533 | ;; #( | |
8534 | *) | |
d0ac1c44 | 8535 | as_fn_error $? "unknown endianness |
0cb8d851 MF |
8536 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
8537 | esac | |
8538 | ||
6bb11ab3 L |
8539 | |
8540 | ||
8541 | ||
8542 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
5c887dd5 JB |
8543 | if test -z "$CC_FOR_BUILD"; then |
8544 | if test "x$cross_compiling" = "xno"; then | |
8545 | CC_FOR_BUILD='$(CC)' | |
8546 | else | |
8547 | CC_FOR_BUILD=gcc | |
8548 | fi | |
6bb11ab3 L |
8549 | fi |
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | AR=${AR-ar} | |
8555 | ||
8556 | if test -n "$ac_tool_prefix"; then | |
8557 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8558 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8560 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8561 | if ${ac_cv_prog_RANLIB+:} false; then : |
6bb11ab3 L |
8562 | $as_echo_n "(cached) " >&6 |
8563 | else | |
8564 | if test -n "$RANLIB"; then | |
8565 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8566 | else | |
8567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8568 | for as_dir in $PATH | |
8569 | do | |
8570 | IFS=$as_save_IFS | |
8571 | test -z "$as_dir" && as_dir=. | |
8572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 8573 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
8574 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
8575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8576 | break 2 | |
8577 | fi | |
8578 | done | |
8579 | done | |
8580 | IFS=$as_save_IFS | |
8581 | ||
8582 | fi | |
8583 | fi | |
8584 | RANLIB=$ac_cv_prog_RANLIB | |
8585 | if test -n "$RANLIB"; then | |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
8587 | $as_echo "$RANLIB" >&6; } | |
8588 | else | |
8589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8590 | $as_echo "no" >&6; } | |
8591 | fi | |
8592 | ||
8593 | ||
8594 | fi | |
8595 | if test -z "$ac_cv_prog_RANLIB"; then | |
8596 | ac_ct_RANLIB=$RANLIB | |
8597 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8598 | set dummy ranlib; ac_word=$2 | |
8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8600 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8601 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
6bb11ab3 L |
8602 | $as_echo_n "(cached) " >&6 |
8603 | else | |
8604 | if test -n "$ac_ct_RANLIB"; then | |
8605 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8606 | else | |
8607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8608 | for as_dir in $PATH | |
8609 | do | |
8610 | IFS=$as_save_IFS | |
8611 | test -z "$as_dir" && as_dir=. | |
8612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 8613 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
8614 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
8615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8616 | break 2 | |
8617 | fi | |
8618 | done | |
8619 | done | |
8620 | IFS=$as_save_IFS | |
8621 | ||
8622 | fi | |
8623 | fi | |
8624 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8625 | if test -n "$ac_ct_RANLIB"; then | |
8626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
8627 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8628 | else | |
8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8630 | $as_echo "no" >&6; } | |
8631 | fi | |
8632 | ||
8633 | if test "x$ac_ct_RANLIB" = x; then | |
8634 | RANLIB=":" | |
8635 | else | |
8636 | case $cross_compiling:$ac_tool_warned in | |
8637 | yes:) | |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8639 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8640 | ac_tool_warned=yes ;; | |
8641 | esac | |
8642 | RANLIB=$ac_ct_RANLIB | |
8643 | fi | |
8644 | else | |
8645 | RANLIB="$ac_cv_prog_RANLIB" | |
8646 | fi | |
8647 | ||
8648 | ||
46f900c0 MF |
8649 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using |
8650 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
8651 | # is C99. So handle it ourselves. | |
8652 | : | |
8653 | C_DIALECT= | |
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
8655 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
8656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8657 | /* end confdefs.h. */ | |
8658 | ||
8659 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
8660 | # error "C11 support not found" | |
8661 | #endif | |
8662 | ||
8663 | _ACEOF | |
8664 | if ac_fn_c_try_compile "$LINENO"; then : | |
8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8666 | $as_echo "yes" >&6; } | |
8667 | else | |
8668 | ||
8669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8670 | $as_echo "no" >&6; } | |
8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
8672 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
8673 | ac_save_CC="$CC" | |
8674 | CC="$CC -std=c11" | |
8675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8676 | /* end confdefs.h. */ | |
8677 | ||
8678 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
8679 | # error "C11 support not found" | |
8680 | #endif | |
8681 | ||
8682 | _ACEOF | |
8683 | if ac_fn_c_try_compile "$LINENO"; then : | |
8684 | ||
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8686 | $as_echo "yes" >&6; } | |
8687 | CC="$ac_save_CC" | |
8688 | C_DIALECT="-std=c11" | |
8689 | ||
8690 | else | |
8691 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
8692 | fi | |
8693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8694 | fi | |
8695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8696 | ||
8697 | ||
6bb11ab3 L |
8698 | # Some of the common include files depend on bfd.h, and bfd.h checks |
8699 | # that config.h is included first by testing that the PACKAGE macro | |
8700 | # is defined. | |
8701 | PACKAGE=sim | |
8702 | ||
8703 | cat >>confdefs.h <<_ACEOF | |
8704 | #define PACKAGE "$PACKAGE" | |
8705 | _ACEOF | |
8706 | ||
8707 | ||
8708 | ||
8709 | # Dependency checking. | |
8710 | ac_config_commands="$ac_config_commands depdir" | |
8711 | ||
8712 | ||
8713 | depcc="$CC" am_compiler_list= | |
8714 | ||
8715 | am_depcomp=$ac_aux_dir/depcomp | |
8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
8717 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d0ac1c44 | 8718 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
6bb11ab3 L |
8719 | $as_echo_n "(cached) " >&6 |
8720 | else | |
8721 | if test -f "$am_depcomp"; then | |
8722 | # We make a subdir and do the tests there. Otherwise we can end up | |
8723 | # making bogus files that we don't know about and never remove. For | |
8724 | # instance it was reported that on HP-UX the gcc test will end up | |
8725 | # making a dummy file named `D' -- because `-MD' means `put the output | |
8726 | # in D'. | |
8727 | mkdir conftest.dir | |
8728 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
8729 | # using a relative directory. | |
8730 | cp "$am_depcomp" conftest.dir | |
8731 | cd conftest.dir | |
8732 | # We will build objects and dependencies in a subdirectory because | |
8733 | # it helps to detect inapplicable dependency modes. For instance | |
8734 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
8735 | # side effect of compilation, but ICC will put the dependencies in | |
8736 | # the current directory while Tru64 will put them in the object | |
8737 | # directory. | |
8738 | mkdir sub | |
8739 | ||
8740 | am_cv_CC_dependencies_compiler_type=none | |
8741 | if test "$am_compiler_list" = ""; then | |
8742 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
8743 | fi | |
8744 | for depmode in $am_compiler_list; do | |
8745 | if test $depmode = none; then break; fi | |
8746 | ||
8747 | $as_echo "$as_me:$LINENO: trying $depmode" >&5 | |
8748 | # Setup a source with many dependencies, because some compilers | |
8749 | # like to wrap large dependency lists on column 80 (with \), and | |
8750 | # we should not choose a depcomp mode which is confused by this. | |
8751 | # | |
8752 | # We need to recreate these files for each test, as the compiler may | |
8753 | # overwrite some of them when testing with obscure command lines. | |
8754 | # This happens at least with the AIX C compiler. | |
8755 | : > sub/conftest.c | |
8756 | for i in 1 2 3 4 5 6; do | |
8757 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8758 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
8759 | # Solaris 8's {/usr,}/bin/sh. | |
8760 | touch sub/conftst$i.h | |
8761 | done | |
8762 | echo "include sub/conftest.Po" > confmf | |
8763 | ||
8764 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
8765 | # mode. It turns out that the SunPro C++ compiler does not properly | |
8766 | # handle `-M -o', and we need to detect this. | |
8767 | depcmd="depmode=$depmode \ | |
8768 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
8769 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
8770 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
8771 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
8772 | if env $depcmd > conftest.err 2>&1 && | |
8773 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
8774 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
8775 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
8776 | # icc doesn't choke on unknown options, it will just issue warnings | |
8777 | # or remarks (even with -Werror). So we grep stderr for any message | |
8778 | # that says an option was ignored or not supported. | |
8779 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
8780 | # icc: Command line warning: ignoring option '-M'; no argument required | |
8781 | # The diagnosis changed in icc 8.0: | |
8782 | # icc: Command line remark: option '-MP' not supported | |
8783 | if (grep 'ignoring option' conftest.err || | |
8784 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
8785 | am_cv_CC_dependencies_compiler_type=$depmode | |
8786 | $as_echo "$as_me:$LINENO: success" >&5 | |
8787 | break | |
8788 | fi | |
8789 | fi | |
8790 | $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 | |
8791 | sed -e 's/^/| /' < conftest.err >&5 | |
8792 | done | |
8793 | ||
8794 | cd .. | |
8795 | rm -rf conftest.dir | |
8796 | else | |
8797 | am_cv_CC_dependencies_compiler_type=none | |
8798 | fi | |
8799 | ||
8800 | fi | |
8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
8802 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
8803 | if test x${am_cv_CC_dependencies_compiler_type-none} = xnone | |
d0ac1c44 | 8804 | then as_fn_error $? "no usable dependency style found" "$LINENO" 5 |
6bb11ab3 L |
8805 | else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
8806 | ||
8807 | fi | |
8808 | ||
8809 | ||
8810 | # Check for the 'make' the user wants to use. | |
8811 | for ac_prog in make | |
8812 | do | |
8813 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8814 | set dummy $ac_prog; ac_word=$2 | |
8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8816 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8817 | if ${ac_cv_prog_MAKE+:} false; then : |
6bb11ab3 L |
8818 | $as_echo_n "(cached) " >&6 |
8819 | else | |
8820 | if test -n "$MAKE"; then | |
8821 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
8822 | else | |
8823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8824 | for as_dir in $PATH | |
8825 | do | |
8826 | IFS=$as_save_IFS | |
8827 | test -z "$as_dir" && as_dir=. | |
8828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 8829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
8830 | ac_cv_prog_MAKE="$ac_prog" |
8831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8832 | break 2 | |
8833 | fi | |
8834 | done | |
8835 | done | |
8836 | IFS=$as_save_IFS | |
8837 | ||
8838 | fi | |
8839 | fi | |
8840 | MAKE=$ac_cv_prog_MAKE | |
8841 | if test -n "$MAKE"; then | |
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | |
8843 | $as_echo "$MAKE" >&6; } | |
8844 | else | |
8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8846 | $as_echo "no" >&6; } | |
8847 | fi | |
8848 | ||
8849 | ||
8850 | test -n "$MAKE" && break | |
8851 | done | |
8852 | ||
8853 | MAKE_IS_GNU= | |
8854 | case "`$MAKE --version 2>&1 | sed 1q`" in | |
8855 | *GNU*) | |
8856 | MAKE_IS_GNU=yes | |
8857 | ;; | |
8858 | esac | |
8859 | if test "$MAKE_IS_GNU" = yes; then | |
8860 | GMAKE_TRUE= | |
8861 | GMAKE_FALSE='#' | |
8862 | else | |
8863 | GMAKE_TRUE='#' | |
8864 | GMAKE_FALSE= | |
8865 | fi | |
8866 | ||
8867 | ||
8868 | ALL_LINGUAS= | |
8869 | # If we haven't got the data from the intl directory, | |
8870 | # assume NLS is disabled. | |
8871 | USE_NLS=no | |
8872 | LIBINTL= | |
8873 | LIBINTL_DEP= | |
8874 | INCINTL= | |
8875 | XGETTEXT= | |
8876 | GMSGFMT= | |
8877 | POSUB= | |
8878 | ||
8879 | if test -f ../../intl/config.intl; then | |
8880 | . ../../intl/config.intl | |
8881 | fi | |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
8883 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
8884 | if test x"$USE_NLS" != xyes; then | |
8885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8886 | $as_echo "no" >&6; } | |
8887 | else | |
8888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8889 | $as_echo "yes" >&6; } | |
8890 | ||
8891 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
8892 | ||
8893 | ||
8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
8895 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
8896 | # Look for .po and .gmo files in the source directory. | |
8897 | CATALOGS= | |
8898 | XLINGUAS= | |
8899 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
8900 | # If there aren't any .gmo files the shell will give us the | |
8901 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
8902 | # weeded out. | |
8903 | case "$cat" in *\**) | |
8904 | continue;; | |
8905 | esac | |
8906 | # The quadruple backslash is collapsed to a double backslash | |
8907 | # by the backticks, then collapsed again by the double quotes, | |
8908 | # leaving us with one backslash in the sed expression (right | |
8909 | # before the dot that mustn't act as a wildcard). | |
8910 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
8911 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
8912 | # The user is allowed to set LINGUAS to a list of languages to | |
8913 | # install catalogs for. If it's empty that means "all of them." | |
8914 | if test "x$LINGUAS" = x; then | |
8915 | CATALOGS="$CATALOGS $cat" | |
8916 | XLINGUAS="$XLINGUAS $lang" | |
8917 | else | |
8918 | case "$LINGUAS" in *$lang*) | |
8919 | CATALOGS="$CATALOGS $cat" | |
8920 | XLINGUAS="$XLINGUAS $lang" | |
8921 | ;; | |
8922 | esac | |
8923 | fi | |
8924 | done | |
8925 | LINGUAS="$XLINGUAS" | |
8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
8927 | $as_echo "$LINGUAS" >&6; } | |
8928 | ||
8929 | ||
8930 | DATADIRNAME=share | |
8931 | ||
8932 | INSTOBJEXT=.mo | |
8933 | ||
8934 | GENCAT=gencat | |
8935 | ||
8936 | CATOBJEXT=.gmo | |
8937 | ||
8938 | fi | |
8939 | ||
8940 | # Check for common headers. | |
68ed2854 MF |
8941 | # NB: You can assume C11 headers exist. |
8942 | for ac_header in unistd.h | |
6bb11ab3 | 8943 | do : |
68ed2854 MF |
8944 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
8945 | if test "x$ac_cv_header_unistd_h" = xyes; then : | |
6bb11ab3 | 8946 | cat >>confdefs.h <<_ACEOF |
68ed2854 | 8947 | #define HAVE_UNISTD_H 1 |
6bb11ab3 L |
8948 | _ACEOF |
8949 | ||
8950 | fi | |
8951 | ||
8952 | done | |
8953 | ||
936df756 | 8954 | for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h |
6bb11ab3 L |
8955 | do : |
8956 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8957 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 8958 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6bb11ab3 L |
8959 | cat >>confdefs.h <<_ACEOF |
8960 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8961 | _ACEOF | |
8962 | ||
8963 | fi | |
8964 | ||
8965 | done | |
8966 | ||
8967 | for ac_header in fcntl.h fpu_control.h | |
8968 | do : | |
8969 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8970 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 8971 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6bb11ab3 L |
8972 | cat >>confdefs.h <<_ACEOF |
8973 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8974 | _ACEOF | |
8975 | ||
8976 | fi | |
8977 | ||
8978 | done | |
8979 | ||
68ed2854 | 8980 | for ac_header in dlfcn.h sys/stat.h |
6bb11ab3 L |
8981 | do : |
8982 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8983 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 8984 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6bb11ab3 L |
8985 | cat >>confdefs.h <<_ACEOF |
8986 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8987 | _ACEOF | |
8988 | ||
8989 | fi | |
8990 | ||
8991 | done | |
8992 | ||
8993 | for ac_func in getrusage time sigaction __setfpucw | |
8994 | do : | |
8995 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8996 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 8997 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
6bb11ab3 L |
8998 | cat >>confdefs.h <<_ACEOF |
8999 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9000 | _ACEOF | |
9001 | ||
9002 | fi | |
9003 | done | |
9004 | ||
936df756 MF |
9005 | for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate |
9006 | do : | |
9007 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9008 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 9009 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
936df756 MF |
9010 | cat >>confdefs.h <<_ACEOF |
9011 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9012 | _ACEOF | |
9013 | ||
9014 | fi | |
9015 | done | |
9016 | ||
9017 | ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H | |
9018 | #include <sys/types.h> | |
9019 | #endif | |
9020 | #ifdef HAVE_SYS_STAT_H | |
9021 | #include <sys/stat.h> | |
9022 | #endif | |
9023 | " | |
d0ac1c44 | 9024 | if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then : |
936df756 MF |
9025 | |
9026 | cat >>confdefs.h <<_ACEOF | |
9027 | #define HAVE_STRUCT_STAT_ST_DEV 1 | |
9028 | _ACEOF | |
9029 | ||
9030 | ||
9031 | fi | |
9032 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H | |
9033 | #include <sys/types.h> | |
9034 | #endif | |
9035 | #ifdef HAVE_SYS_STAT_H | |
9036 | #include <sys/stat.h> | |
9037 | #endif | |
9038 | " | |
d0ac1c44 | 9039 | if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then : |
936df756 MF |
9040 | |
9041 | cat >>confdefs.h <<_ACEOF | |
9042 | #define HAVE_STRUCT_STAT_ST_INO 1 | |
9043 | _ACEOF | |
9044 | ||
9045 | ||
9046 | fi | |
9047 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H | |
9048 | #include <sys/types.h> | |
9049 | #endif | |
9050 | #ifdef HAVE_SYS_STAT_H | |
9051 | #include <sys/stat.h> | |
9052 | #endif | |
9053 | " | |
d0ac1c44 | 9054 | if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then : |
936df756 MF |
9055 | |
9056 | cat >>confdefs.h <<_ACEOF | |
9057 | #define HAVE_STRUCT_STAT_ST_MODE 1 | |
9058 | _ACEOF | |
9059 | ||
9060 | ||
9061 | fi | |
9062 | ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H | |
9063 | #include <sys/types.h> | |
9064 | #endif | |
9065 | #ifdef HAVE_SYS_STAT_H | |
9066 | #include <sys/stat.h> | |
9067 | #endif | |
9068 | " | |
d0ac1c44 | 9069 | if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then : |
936df756 MF |
9070 | |
9071 | cat >>confdefs.h <<_ACEOF | |
9072 | #define HAVE_STRUCT_STAT_ST_NLINK 1 | |
9073 | _ACEOF | |
9074 | ||
9075 | ||
9076 | fi | |
9077 | ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H | |
9078 | #include <sys/types.h> | |
9079 | #endif | |
9080 | #ifdef HAVE_SYS_STAT_H | |
9081 | #include <sys/stat.h> | |
9082 | #endif | |
9083 | " | |
d0ac1c44 | 9084 | if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then : |
936df756 MF |
9085 | |
9086 | cat >>confdefs.h <<_ACEOF | |
9087 | #define HAVE_STRUCT_STAT_ST_UID 1 | |
9088 | _ACEOF | |
9089 | ||
9090 | ||
9091 | fi | |
9092 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H | |
9093 | #include <sys/types.h> | |
9094 | #endif | |
9095 | #ifdef HAVE_SYS_STAT_H | |
9096 | #include <sys/stat.h> | |
9097 | #endif | |
9098 | " | |
d0ac1c44 | 9099 | if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then : |
936df756 MF |
9100 | |
9101 | cat >>confdefs.h <<_ACEOF | |
9102 | #define HAVE_STRUCT_STAT_ST_GID 1 | |
9103 | _ACEOF | |
9104 | ||
9105 | ||
9106 | fi | |
9107 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H | |
9108 | #include <sys/types.h> | |
9109 | #endif | |
9110 | #ifdef HAVE_SYS_STAT_H | |
9111 | #include <sys/stat.h> | |
9112 | #endif | |
9113 | " | |
d0ac1c44 | 9114 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
936df756 MF |
9115 | |
9116 | cat >>confdefs.h <<_ACEOF | |
9117 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
9118 | _ACEOF | |
9119 | ||
9120 | ||
9121 | fi | |
9122 | ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H | |
9123 | #include <sys/types.h> | |
9124 | #endif | |
9125 | #ifdef HAVE_SYS_STAT_H | |
9126 | #include <sys/stat.h> | |
9127 | #endif | |
9128 | " | |
d0ac1c44 | 9129 | if test "x$ac_cv_member_struct_stat_st_size" = xyes; then : |
936df756 MF |
9130 | |
9131 | cat >>confdefs.h <<_ACEOF | |
9132 | #define HAVE_STRUCT_STAT_ST_SIZE 1 | |
9133 | _ACEOF | |
9134 | ||
9135 | ||
9136 | fi | |
9137 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H | |
9138 | #include <sys/types.h> | |
9139 | #endif | |
9140 | #ifdef HAVE_SYS_STAT_H | |
9141 | #include <sys/stat.h> | |
9142 | #endif | |
9143 | " | |
d0ac1c44 | 9144 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
936df756 MF |
9145 | |
9146 | cat >>confdefs.h <<_ACEOF | |
9147 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
9148 | _ACEOF | |
9149 | ||
9150 | ||
9151 | fi | |
9152 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H | |
9153 | #include <sys/types.h> | |
9154 | #endif | |
9155 | #ifdef HAVE_SYS_STAT_H | |
9156 | #include <sys/stat.h> | |
9157 | #endif | |
9158 | " | |
d0ac1c44 | 9159 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
936df756 MF |
9160 | |
9161 | cat >>confdefs.h <<_ACEOF | |
9162 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
9163 | _ACEOF | |
9164 | ||
9165 | ||
9166 | fi | |
9167 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H | |
9168 | #include <sys/types.h> | |
9169 | #endif | |
9170 | #ifdef HAVE_SYS_STAT_H | |
9171 | #include <sys/stat.h> | |
9172 | #endif | |
9173 | " | |
d0ac1c44 | 9174 | if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then : |
936df756 MF |
9175 | |
9176 | cat >>confdefs.h <<_ACEOF | |
9177 | #define HAVE_STRUCT_STAT_ST_ATIME 1 | |
9178 | _ACEOF | |
9179 | ||
9180 | ||
9181 | fi | |
9182 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H | |
9183 | #include <sys/types.h> | |
9184 | #endif | |
9185 | #ifdef HAVE_SYS_STAT_H | |
9186 | #include <sys/stat.h> | |
9187 | #endif | |
9188 | " | |
d0ac1c44 | 9189 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : |
936df756 MF |
9190 | |
9191 | cat >>confdefs.h <<_ACEOF | |
9192 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | |
9193 | _ACEOF | |
9194 | ||
9195 | ||
9196 | fi | |
9197 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H | |
9198 | #include <sys/types.h> | |
9199 | #endif | |
9200 | #ifdef HAVE_SYS_STAT_H | |
9201 | #include <sys/stat.h> | |
9202 | #endif | |
9203 | " | |
d0ac1c44 | 9204 | if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then : |
936df756 MF |
9205 | |
9206 | cat >>confdefs.h <<_ACEOF | |
9207 | #define HAVE_STRUCT_STAT_ST_CTIME 1 | |
9208 | _ACEOF | |
9209 | ||
9210 | ||
9211 | fi | |
9212 | ||
9213 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
9214 | #include <sys/socket.h> | |
9215 | ||
9216 | " | |
d0ac1c44 | 9217 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
936df756 MF |
9218 | |
9219 | cat >>confdefs.h <<_ACEOF | |
9220 | #define HAVE_SOCKLEN_T 1 | |
9221 | _ACEOF | |
9222 | ||
9223 | ||
9224 | fi | |
9225 | ||
6bb11ab3 L |
9226 | |
9227 | # Check for socket libraries | |
9228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5 | |
9229 | $as_echo_n "checking for bind in -lsocket... " >&6; } | |
d0ac1c44 | 9230 | if ${ac_cv_lib_socket_bind+:} false; then : |
6bb11ab3 L |
9231 | $as_echo_n "(cached) " >&6 |
9232 | else | |
9233 | ac_check_lib_save_LIBS=$LIBS | |
9234 | LIBS="-lsocket $LIBS" | |
9235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9236 | /* end confdefs.h. */ | |
9237 | ||
9238 | /* Override any GCC internal prototype to avoid an error. | |
9239 | Use char because int might match the return type of a GCC | |
9240 | builtin and then its argument prototype would still apply. */ | |
9241 | #ifdef __cplusplus | |
9242 | extern "C" | |
9243 | #endif | |
9244 | char bind (); | |
9245 | int | |
9246 | main () | |
9247 | { | |
9248 | return bind (); | |
9249 | ; | |
9250 | return 0; | |
9251 | } | |
9252 | _ACEOF | |
9253 | if ac_fn_c_try_link "$LINENO"; then : | |
9254 | ac_cv_lib_socket_bind=yes | |
9255 | else | |
9256 | ac_cv_lib_socket_bind=no | |
9257 | fi | |
9258 | rm -f core conftest.err conftest.$ac_objext \ | |
9259 | conftest$ac_exeext conftest.$ac_ext | |
9260 | LIBS=$ac_check_lib_save_LIBS | |
9261 | fi | |
9262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5 | |
9263 | $as_echo "$ac_cv_lib_socket_bind" >&6; } | |
d0ac1c44 | 9264 | if test "x$ac_cv_lib_socket_bind" = xyes; then : |
6bb11ab3 L |
9265 | cat >>confdefs.h <<_ACEOF |
9266 | #define HAVE_LIBSOCKET 1 | |
9267 | _ACEOF | |
9268 | ||
9269 | LIBS="-lsocket $LIBS" | |
9270 | ||
9271 | fi | |
9272 | ||
9273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | |
9274 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
d0ac1c44 | 9275 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
6bb11ab3 L |
9276 | $as_echo_n "(cached) " >&6 |
9277 | else | |
9278 | ac_check_lib_save_LIBS=$LIBS | |
9279 | LIBS="-lnsl $LIBS" | |
9280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9281 | /* end confdefs.h. */ | |
9282 | ||
9283 | /* Override any GCC internal prototype to avoid an error. | |
9284 | Use char because int might match the return type of a GCC | |
9285 | builtin and then its argument prototype would still apply. */ | |
9286 | #ifdef __cplusplus | |
9287 | extern "C" | |
9288 | #endif | |
9289 | char gethostbyname (); | |
9290 | int | |
9291 | main () | |
9292 | { | |
9293 | return gethostbyname (); | |
9294 | ; | |
9295 | return 0; | |
9296 | } | |
9297 | _ACEOF | |
9298 | if ac_fn_c_try_link "$LINENO"; then : | |
9299 | ac_cv_lib_nsl_gethostbyname=yes | |
9300 | else | |
9301 | ac_cv_lib_nsl_gethostbyname=no | |
9302 | fi | |
9303 | rm -f core conftest.err conftest.$ac_objext \ | |
9304 | conftest$ac_exeext conftest.$ac_ext | |
9305 | LIBS=$ac_check_lib_save_LIBS | |
9306 | fi | |
9307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
9308 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
d0ac1c44 | 9309 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
6bb11ab3 L |
9310 | cat >>confdefs.h <<_ACEOF |
9311 | #define HAVE_LIBNSL 1 | |
9312 | _ACEOF | |
9313 | ||
9314 | LIBS="-lnsl $LIBS" | |
9315 | ||
9316 | fi | |
9317 | ||
9318 | ||
9319 | # BFD conditionally uses zlib, so we must link it in if libbfd does, by | |
9320 | # using the same condition. | |
9321 | ||
aadc9410 | 9322 | # Use the system's zlib library. |
7fed4b0b L |
9323 | zlibdir="-L\$(top_builddir)/../zlib" |
9324 | zlibinc="-I\$(top_srcdir)/../zlib" | |
6bb11ab3 | 9325 | |
aadc9410 MF |
9326 | # Check whether --with-system-zlib was given. |
9327 | if test "${with_system_zlib+set}" = set; then : | |
0ceaf1ec L |
9328 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then |
9329 | zlibdir= | |
9330 | zlibinc= | |
9331 | fi | |
6bb11ab3 L |
9332 | |
9333 | fi | |
9334 | ||
6bb11ab3 | 9335 | |
6bb11ab3 | 9336 | |
6bb11ab3 L |
9337 | |
9338 | ||
9339 | # BFD uses libdl when when plugins enabled. | |
9340 | ||
faa743bb RM |
9341 | maybe_plugins=no |
9342 | for ac_header in dlfcn.h | |
9343 | do : | |
9344 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9345 | " | |
d0ac1c44 | 9346 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
faa743bb RM |
9347 | cat >>confdefs.h <<_ACEOF |
9348 | #define HAVE_DLFCN_H 1 | |
9349 | _ACEOF | |
9350 | maybe_plugins=yes | |
9351 | fi | |
9352 | ||
9353 | done | |
9354 | ||
9355 | for ac_header in windows.h | |
9356 | do : | |
9357 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
9358 | " | |
d0ac1c44 | 9359 | if test "x$ac_cv_header_windows_h" = xyes; then : |
faa743bb RM |
9360 | cat >>confdefs.h <<_ACEOF |
9361 | #define HAVE_WINDOWS_H 1 | |
9362 | _ACEOF | |
9363 | maybe_plugins=yes | |
9364 | fi | |
9365 | ||
9366 | done | |
9367 | ||
9368 | ||
9369 | # Check whether --enable-plugins was given. | |
6bb11ab3 L |
9370 | if test "${enable_plugins+set}" = set; then : |
9371 | enableval=$enable_plugins; case "${enableval}" in | |
faa743bb RM |
9372 | no) plugins=no ;; |
9373 | *) plugins=yes | |
9374 | if test "$maybe_plugins" != "yes" ; then | |
d0ac1c44 | 9375 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
faa743bb RM |
9376 | fi ;; |
9377 | esac | |
6bb11ab3 | 9378 | else |
faa743bb RM |
9379 | plugins=$maybe_plugins |
9380 | ||
6bb11ab3 L |
9381 | fi |
9382 | ||
2974be62 | 9383 | if test "$plugins" = "yes"; then |
37f980dc SM |
9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
9385 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
d0ac1c44 | 9386 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
9387 | $as_echo_n "(cached) " >&6 |
9388 | else | |
9389 | ac_func_search_save_LIBS=$LIBS | |
9390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9391 | /* end confdefs.h. */ | |
9392 | ||
9393 | /* Override any GCC internal prototype to avoid an error. | |
9394 | Use char because int might match the return type of a GCC | |
9395 | builtin and then its argument prototype would still apply. */ | |
9396 | #ifdef __cplusplus | |
9397 | extern "C" | |
9398 | #endif | |
37f980dc | 9399 | char dlsym (); |
2974be62 AM |
9400 | int |
9401 | main () | |
9402 | { | |
37f980dc | 9403 | return dlsym (); |
2974be62 AM |
9404 | ; |
9405 | return 0; | |
9406 | } | |
9407 | _ACEOF | |
9408 | for ac_lib in '' dl; do | |
9409 | if test -z "$ac_lib"; then | |
9410 | ac_res="none required" | |
9411 | else | |
9412 | ac_res=-l$ac_lib | |
9413 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9414 | fi | |
9415 | if ac_fn_c_try_link "$LINENO"; then : | |
37f980dc | 9416 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
9417 | fi |
9418 | rm -f core conftest.err conftest.$ac_objext \ | |
9419 | conftest$ac_exeext | |
d0ac1c44 | 9420 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
9421 | break |
9422 | fi | |
9423 | done | |
d0ac1c44 | 9424 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
9425 | |
9426 | else | |
37f980dc | 9427 | ac_cv_search_dlsym=no |
2974be62 AM |
9428 | fi |
9429 | rm conftest.$ac_ext | |
9430 | LIBS=$ac_func_search_save_LIBS | |
9431 | fi | |
37f980dc SM |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
9433 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
9434 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
9435 | if test "$ac_res" != no; then : |
9436 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9437 | ||
9438 | fi | |
9439 | ||
9440 | fi | |
6bb11ab3 L |
9441 | |
9442 | if test "$plugins" = yes; then | |
9443 | PLUGINS_TRUE= | |
9444 | PLUGINS_FALSE='#' | |
9445 | else | |
9446 | PLUGINS_TRUE='#' | |
9447 | PLUGINS_FALSE= | |
9448 | fi | |
9449 | ||
9450 | ||
9451 | ||
9452 | ||
9453 | ||
9454 | # Set options | |
9455 | enable_dlopen=yes | |
9456 | ||
9457 | ||
9458 | ||
9459 | ||
9460 | enable_win32_dll=no | |
9461 | ||
9462 | ||
9463 | # Check whether --enable-shared was given. | |
9464 | if test "${enable_shared+set}" = set; then : | |
9465 | enableval=$enable_shared; p=${PACKAGE-default} | |
9466 | case $enableval in | |
9467 | yes) enable_shared=yes ;; | |
9468 | no) enable_shared=no ;; | |
9469 | *) | |
9470 | enable_shared=no | |
9471 | # Look at the argument we got. We use all the common list separators. | |
9472 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9473 | for pkg in $enableval; do | |
9474 | IFS="$lt_save_ifs" | |
9475 | if test "X$pkg" = "X$p"; then | |
9476 | enable_shared=yes | |
9477 | fi | |
9478 | done | |
9479 | IFS="$lt_save_ifs" | |
9480 | ;; | |
9481 | esac | |
9482 | else | |
9483 | enable_shared=yes | |
9484 | fi | |
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | # Check whether --enable-static was given. | |
9495 | if test "${enable_static+set}" = set; then : | |
9496 | enableval=$enable_static; p=${PACKAGE-default} | |
9497 | case $enableval in | |
9498 | yes) enable_static=yes ;; | |
9499 | no) enable_static=no ;; | |
9500 | *) | |
9501 | enable_static=no | |
9502 | # Look at the argument we got. We use all the common list separators. | |
9503 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9504 | for pkg in $enableval; do | |
9505 | IFS="$lt_save_ifs" | |
9506 | if test "X$pkg" = "X$p"; then | |
9507 | enable_static=yes | |
9508 | fi | |
9509 | done | |
9510 | IFS="$lt_save_ifs" | |
9511 | ;; | |
9512 | esac | |
9513 | else | |
9514 | enable_static=yes | |
9515 | fi | |
9516 | ||
9517 | ||
9518 | ||
9519 | ||
9520 | ||
9521 | ||
9522 | ||
9523 | ||
9524 | ||
9525 | ||
9526 | # Check whether --with-pic was given. | |
9527 | if test "${with_pic+set}" = set; then : | |
9528 | withval=$with_pic; pic_mode="$withval" | |
9529 | else | |
9530 | pic_mode=default | |
9531 | fi | |
9532 | ||
9533 | ||
9534 | test -z "$pic_mode" && pic_mode=default | |
9535 | ||
9536 | ||
9537 | ||
9538 | ||
9539 | ||
9540 | ||
9541 | ||
9542 | # Check whether --enable-fast-install was given. | |
9543 | if test "${enable_fast_install+set}" = set; then : | |
9544 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9545 | case $enableval in | |
9546 | yes) enable_fast_install=yes ;; | |
9547 | no) enable_fast_install=no ;; | |
9548 | *) | |
9549 | enable_fast_install=no | |
9550 | # Look at the argument we got. We use all the common list separators. | |
9551 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9552 | for pkg in $enableval; do | |
9553 | IFS="$lt_save_ifs" | |
9554 | if test "X$pkg" = "X$p"; then | |
9555 | enable_fast_install=yes | |
9556 | fi | |
9557 | done | |
9558 | IFS="$lt_save_ifs" | |
9559 | ;; | |
9560 | esac | |
9561 | else | |
9562 | enable_fast_install=yes | |
9563 | fi | |
9564 | ||
9565 | ||
9566 | ||
9567 | ||
9568 | ||
9569 | ||
9570 | ||
9571 | ||
9572 | ||
9573 | ||
9574 | ||
9575 | # This can be used to rebuild libtool when needed | |
9576 | LIBTOOL_DEPS="$ltmain" | |
9577 | ||
9578 | # Always use our own libtool. | |
9579 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9580 | ||
9581 | ||
9582 | ||
9583 | ||
9584 | ||
9585 | ||
9586 | ||
9587 | ||
9588 | ||
9589 | ||
9590 | ||
9591 | ||
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | ||
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | ||
9605 | ||
9606 | test -z "$LN_S" && LN_S="ln -s" | |
9607 | ||
9608 | ||
9609 | ||
9610 | ||
9611 | ||
9612 | ||
9613 | ||
9614 | ||
9615 | ||
9616 | ||
9617 | ||
9618 | ||
9619 | ||
9620 | ||
9621 | if test -n "${ZSH_VERSION+set}" ; then | |
9622 | setopt NO_GLOB_SUBST | |
87326c78 | 9623 | fi |
87326c78 | 9624 | |
6bb11ab3 L |
9625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9626 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 9627 | if ${lt_cv_objdir+:} false; then : |
6bb11ab3 L |
9628 | $as_echo_n "(cached) " >&6 |
9629 | else | |
9630 | rm -f .libs 2>/dev/null | |
9631 | mkdir .libs 2>/dev/null | |
9632 | if test -d .libs; then | |
9633 | lt_cv_objdir=.libs | |
9634 | else | |
9635 | # MS-DOS does not allow filenames that begin with a dot. | |
9636 | lt_cv_objdir=_libs | |
9637 | fi | |
9638 | rmdir .libs 2>/dev/null | |
9639 | fi | |
9640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9641 | $as_echo "$lt_cv_objdir" >&6; } | |
9642 | objdir=$lt_cv_objdir | |
9643 | ||
9644 | ||
9645 | ||
9646 | ||
9647 | ||
9648 | cat >>confdefs.h <<_ACEOF | |
9649 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9650 | _ACEOF | |
9651 | ||
9652 | ||
9653 | ||
9654 | ||
9655 | case $host_os in | |
9656 | aix3*) | |
9657 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9658 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9659 | # vanish in a puff of smoke. | |
9660 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9661 | COLLECT_NAMES= | |
9662 | export COLLECT_NAMES | |
9663 | fi | |
9664 | ;; | |
87326c78 | 9665 | esac |
6bb11ab3 L |
9666 | |
9667 | # Global variables: | |
9668 | ofile=libtool | |
9669 | can_build_shared=yes | |
9670 | ||
9671 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9672 | # which needs '.lib'). | |
9673 | libext=a | |
9674 | ||
9675 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9676 | ||
9677 | old_CC="$CC" | |
9678 | old_CFLAGS="$CFLAGS" | |
9679 | ||
9680 | # Set sane defaults for various variables | |
9681 | test -z "$CC" && CC=cc | |
9682 | test -z "$LTCC" && LTCC=$CC | |
9683 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9684 | test -z "$LD" && LD=ld | |
9685 | test -z "$ac_objext" && ac_objext=o | |
9686 | ||
9687 | for cc_temp in $compiler""; do | |
9688 | case $cc_temp in | |
9689 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9690 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9691 | \-*) ;; | |
9692 | *) break;; | |
9693 | esac | |
9694 | done | |
9695 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9696 | ||
9697 | ||
9698 | # Only perform the check for file, if the check method requires it | |
9699 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9700 | case $deplibs_check_method in | |
9701 | file_magic*) | |
9702 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9704 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 9705 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
6bb11ab3 L |
9706 | $as_echo_n "(cached) " >&6 |
9707 | else | |
9708 | case $MAGIC_CMD in | |
9709 | [\\/*] | ?:[\\/]*) | |
9710 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9711 | ;; | |
9712 | *) | |
9713 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9714 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9715 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9716 | for ac_dir in $ac_dummy; do | |
9717 | IFS="$lt_save_ifs" | |
9718 | test -z "$ac_dir" && ac_dir=. | |
9719 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9720 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9721 | if test -n "$file_magic_test_file"; then | |
9722 | case $deplibs_check_method in | |
9723 | "file_magic "*) | |
9724 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9725 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9726 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9727 | $EGREP "$file_magic_regex" > /dev/null; then | |
9728 | : | |
9729 | else | |
9730 | cat <<_LT_EOF 1>&2 | |
9731 | ||
9732 | *** Warning: the command libtool uses to detect shared libraries, | |
9733 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9734 | *** The result is that libtool may fail to recognize shared libraries | |
9735 | *** as such. This will affect the creation of libtool libraries that | |
9736 | *** depend on shared libraries, but programs linked with such libtool | |
9737 | *** libraries will work regardless of this problem. Nevertheless, you | |
9738 | *** may want to report the problem to your system manager and/or to | |
9739 | *** bug-libtool@gnu.org | |
9740 | ||
9741 | _LT_EOF | |
9742 | fi ;; | |
9743 | esac | |
9744 | fi | |
9745 | break | |
87326c78 | 9746 | fi |
6bb11ab3 L |
9747 | done |
9748 | IFS="$lt_save_ifs" | |
9749 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9750 | ;; | |
9751 | esac | |
87326c78 | 9752 | fi |
87326c78 | 9753 | |
6bb11ab3 L |
9754 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9755 | if test -n "$MAGIC_CMD"; then | |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9757 | $as_echo "$MAGIC_CMD" >&6; } | |
9758 | else | |
9759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9760 | $as_echo "no" >&6; } | |
9761 | fi | |
87326c78 | 9762 | |
6bb11ab3 L |
9763 | |
9764 | ||
9765 | ||
9766 | ||
9767 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9768 | if test -n "$ac_tool_prefix"; then | |
9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9770 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 9771 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
6bb11ab3 L |
9772 | $as_echo_n "(cached) " >&6 |
9773 | else | |
9774 | case $MAGIC_CMD in | |
9775 | [\\/*] | ?:[\\/]*) | |
9776 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9777 | ;; | |
9778 | *) | |
9779 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9780 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9781 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9782 | for ac_dir in $ac_dummy; do | |
9783 | IFS="$lt_save_ifs" | |
9784 | test -z "$ac_dir" && ac_dir=. | |
9785 | if test -f $ac_dir/file; then | |
9786 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9787 | if test -n "$file_magic_test_file"; then | |
9788 | case $deplibs_check_method in | |
9789 | "file_magic "*) | |
9790 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9791 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9792 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9793 | $EGREP "$file_magic_regex" > /dev/null; then | |
9794 | : | |
9795 | else | |
9796 | cat <<_LT_EOF 1>&2 | |
9797 | ||
9798 | *** Warning: the command libtool uses to detect shared libraries, | |
9799 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9800 | *** The result is that libtool may fail to recognize shared libraries | |
9801 | *** as such. This will affect the creation of libtool libraries that | |
9802 | *** depend on shared libraries, but programs linked with such libtool | |
9803 | *** libraries will work regardless of this problem. Nevertheless, you | |
9804 | *** may want to report the problem to your system manager and/or to | |
9805 | *** bug-libtool@gnu.org | |
9806 | ||
9807 | _LT_EOF | |
9808 | fi ;; | |
9809 | esac | |
9810 | fi | |
9811 | break | |
9812 | fi | |
9813 | done | |
9814 | IFS="$lt_save_ifs" | |
9815 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9816 | ;; | |
87326c78 | 9817 | esac |
6bb11ab3 L |
9818 | fi |
9819 | ||
9820 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9821 | if test -n "$MAGIC_CMD"; then | |
9822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9823 | $as_echo "$MAGIC_CMD" >&6; } | |
9824 | else | |
9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9826 | $as_echo "no" >&6; } | |
9827 | fi | |
9828 | ||
9829 | ||
9830 | else | |
9831 | MAGIC_CMD=: | |
9832 | fi | |
9833 | fi | |
9834 | ||
9835 | fi | |
9836 | ;; | |
9837 | esac | |
9838 | ||
9839 | # Use C for the default configuration in the libtool script | |
9840 | ||
9841 | lt_save_CC="$CC" | |
9842 | ac_ext=c | |
9843 | ac_cpp='$CPP $CPPFLAGS' | |
9844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9847 | ||
9848 | ||
9849 | # Source file extension for C test sources. | |
9850 | ac_ext=c | |
9851 | ||
9852 | # Object file extension for compiled C test sources. | |
9853 | objext=o | |
9854 | objext=$objext | |
9855 | ||
9856 | # Code to be used in simple compile tests | |
9857 | lt_simple_compile_test_code="int some_variable = 0;" | |
9858 | ||
9859 | # Code to be used in simple link tests | |
9860 | lt_simple_link_test_code='int main(){return(0);}' | |
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | # If no C compiler was specified, use CC. | |
9869 | LTCC=${LTCC-"$CC"} | |
9870 | ||
9871 | # If no C compiler flags were specified, use CFLAGS. | |
9872 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9873 | ||
9874 | # Allow CC to be a program name with arguments. | |
9875 | compiler=$CC | |
9876 | ||
9877 | # Save the default compiler, since it gets overwritten when the other | |
9878 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9879 | compiler_DEFAULT=$CC | |
9880 | ||
9881 | # save warnings/boilerplate of simple test code | |
9882 | ac_outfile=conftest.$ac_objext | |
9883 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9884 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9885 | _lt_compiler_boilerplate=`cat conftest.err` | |
9886 | $RM conftest* | |
9887 | ||
9888 | ac_outfile=conftest.$ac_objext | |
9889 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9890 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9891 | _lt_linker_boilerplate=`cat conftest.err` | |
9892 | $RM -r conftest* | |
9893 | ||
9894 | ||
9895 | ## CAVEAT EMPTOR: | |
9896 | ## There is no encapsulation within the following macros, do not change | |
9897 | ## the running order or otherwise move them around unless you know exactly | |
9898 | ## what you are doing... | |
9899 | if test -n "$compiler"; then | |
9900 | ||
9901 | lt_prog_compiler_no_builtin_flag= | |
9902 | ||
9903 | if test "$GCC" = yes; then | |
9904 | case $cc_basename in | |
9905 | nvcc*) | |
9906 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9907 | *) | |
9908 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
87326c78 | 9909 | esac |
6bb11ab3 L |
9910 | |
9911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9912 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 9913 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
6bb11ab3 | 9914 | $as_echo_n "(cached) " >&6 |
87326c78 | 9915 | else |
6bb11ab3 L |
9916 | lt_cv_prog_compiler_rtti_exceptions=no |
9917 | ac_outfile=conftest.$ac_objext | |
9918 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9919 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9920 | # Insert the option either (1) after the last *FLAGS variable, or | |
9921 | # (2) before a word containing "conftest.", or (3) at the end. | |
9922 | # Note that $ac_compile itself does not contain backslashes and begins | |
9923 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9924 | # The option is referenced via a variable to avoid confusing sed. | |
9925 | lt_compile=`echo "$ac_compile" | $SED \ | |
9926 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9927 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9928 | -e 's:$: $lt_compiler_flag:'` | |
9929 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9930 | (eval "$lt_compile" 2>conftest.err) | |
9931 | ac_status=$? | |
9932 | cat conftest.err >&5 | |
9933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9934 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9935 | # The compiler can only warn and ignore the option if not recognized | |
9936 | # So say no if there are warnings other than the usual output. | |
9937 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9938 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9939 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9940 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9941 | fi | |
9942 | fi | |
9943 | $RM conftest* | |
9944 | ||
87326c78 | 9945 | fi |
6bb11ab3 L |
9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9947 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9948 | ||
9949 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9950 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9951 | else | |
9952 | : | |
9953 | fi | |
9954 | ||
9955 | fi | |
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | lt_prog_compiler_wl= | |
9963 | lt_prog_compiler_pic= | |
9964 | lt_prog_compiler_static= | |
9965 | ||
9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9967 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9968 | ||
9969 | if test "$GCC" = yes; then | |
9970 | lt_prog_compiler_wl='-Wl,' | |
9971 | lt_prog_compiler_static='-static' | |
9972 | ||
9973 | case $host_os in | |
9974 | aix*) | |
9975 | # All AIX code is PIC. | |
9976 | if test "$host_cpu" = ia64; then | |
9977 | # AIX 5 now supports IA64 processor | |
9978 | lt_prog_compiler_static='-Bstatic' | |
9979 | fi | |
9980 | lt_prog_compiler_pic='-fPIC' | |
9981 | ;; | |
9982 | ||
9983 | amigaos*) | |
9984 | case $host_cpu in | |
9985 | powerpc) | |
9986 | # see comment about AmigaOS4 .so support | |
9987 | lt_prog_compiler_pic='-fPIC' | |
9988 | ;; | |
9989 | m68k) | |
9990 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9991 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9992 | # like `-m68040'. | |
9993 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9994 | ;; | |
9995 | esac | |
9996 | ;; | |
9997 | ||
9998 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9999 | # PIC is the default for these OSes. | |
10000 | ;; | |
10001 | ||
10002 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
10003 | # This hack is so that the source file can tell whether it is being | |
10004 | # built for inclusion in a dll (and should export symbols for example). | |
10005 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
10006 | # (--disable-auto-import) libraries | |
10007 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
10008 | ;; | |
10009 | ||
10010 | darwin* | rhapsody*) | |
10011 | # PIC is the default on this platform | |
10012 | # Common symbols not allowed in MH_DYLIB files | |
10013 | lt_prog_compiler_pic='-fno-common' | |
10014 | ;; | |
10015 | ||
10016 | haiku*) | |
10017 | # PIC is the default for Haiku. | |
10018 | # The "-static" flag exists, but is broken. | |
10019 | lt_prog_compiler_static= | |
10020 | ;; | |
10021 | ||
10022 | hpux*) | |
10023 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
10024 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
10025 | # sets the default TLS model and affects inlining. | |
10026 | case $host_cpu in | |
10027 | hppa*64*) | |
10028 | # +Z the default | |
10029 | ;; | |
10030 | *) | |
10031 | lt_prog_compiler_pic='-fPIC' | |
10032 | ;; | |
10033 | esac | |
10034 | ;; | |
10035 | ||
10036 | interix[3-9]*) | |
10037 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
10038 | # Instead, we relocate shared libraries at runtime. | |
10039 | ;; | |
10040 | ||
10041 | msdosdjgpp*) | |
10042 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
10043 | # on systems that don't support them. | |
10044 | lt_prog_compiler_can_build_shared=no | |
10045 | enable_shared=no | |
10046 | ;; | |
10047 | ||
10048 | *nto* | *qnx*) | |
10049 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10050 | # it will coredump. | |
10051 | lt_prog_compiler_pic='-fPIC -shared' | |
10052 | ;; | |
10053 | ||
10054 | sysv4*MP*) | |
10055 | if test -d /usr/nec; then | |
10056 | lt_prog_compiler_pic=-Kconform_pic | |
10057 | fi | |
10058 | ;; | |
10059 | ||
10060 | *) | |
10061 | lt_prog_compiler_pic='-fPIC' | |
10062 | ;; | |
10063 | esac | |
10064 | ||
10065 | case $cc_basename in | |
10066 | nvcc*) # Cuda Compiler Driver 2.2 | |
10067 | lt_prog_compiler_wl='-Xlinker ' | |
10068 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
10069 | ;; | |
10070 | esac | |
10071 | else | |
10072 | # PORTME Check for flag to pass linker flags through the system compiler. | |
10073 | case $host_os in | |
10074 | aix*) | |
10075 | lt_prog_compiler_wl='-Wl,' | |
10076 | if test "$host_cpu" = ia64; then | |
10077 | # AIX 5 now supports IA64 processor | |
10078 | lt_prog_compiler_static='-Bstatic' | |
10079 | else | |
10080 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
10081 | fi | |
10082 | ;; | |
10083 | ||
10084 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
10085 | # This hack is so that the source file can tell whether it is being | |
10086 | # built for inclusion in a dll (and should export symbols for example). | |
10087 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
10088 | ;; | |
10089 | ||
10090 | hpux9* | hpux10* | hpux11*) | |
10091 | lt_prog_compiler_wl='-Wl,' | |
10092 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
10093 | # not for PA HP-UX. | |
10094 | case $host_cpu in | |
10095 | hppa*64*|ia64*) | |
10096 | # +Z the default | |
10097 | ;; | |
10098 | *) | |
10099 | lt_prog_compiler_pic='+Z' | |
10100 | ;; | |
10101 | esac | |
10102 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
10103 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
10104 | ;; | |
10105 | ||
10106 | irix5* | irix6* | nonstopux*) | |
10107 | lt_prog_compiler_wl='-Wl,' | |
10108 | # PIC (with -KPIC) is the default. | |
10109 | lt_prog_compiler_static='-non_shared' | |
10110 | ;; | |
10111 | ||
10112 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10113 | case $cc_basename in | |
10114 | # old Intel for x86_64 which still supported -KPIC. | |
10115 | ecc*) | |
10116 | lt_prog_compiler_wl='-Wl,' | |
10117 | lt_prog_compiler_pic='-KPIC' | |
10118 | lt_prog_compiler_static='-static' | |
10119 | ;; | |
10120 | # icc used to be incompatible with GCC. | |
10121 | # ICC 10 doesn't accept -KPIC any more. | |
10122 | icc* | ifort*) | |
10123 | lt_prog_compiler_wl='-Wl,' | |
10124 | lt_prog_compiler_pic='-fPIC' | |
10125 | lt_prog_compiler_static='-static' | |
10126 | ;; | |
10127 | # Lahey Fortran 8.1. | |
10128 | lf95*) | |
10129 | lt_prog_compiler_wl='-Wl,' | |
10130 | lt_prog_compiler_pic='--shared' | |
10131 | lt_prog_compiler_static='--static' | |
10132 | ;; | |
10133 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10134 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
10135 | # which looks to be a dead project) | |
10136 | lt_prog_compiler_wl='-Wl,' | |
10137 | lt_prog_compiler_pic='-fpic' | |
10138 | lt_prog_compiler_static='-Bstatic' | |
10139 | ;; | |
10140 | ccc*) | |
10141 | lt_prog_compiler_wl='-Wl,' | |
10142 | # All Alpha code is PIC. | |
10143 | lt_prog_compiler_static='-non_shared' | |
10144 | ;; | |
10145 | xl* | bgxl* | bgf* | mpixl*) | |
10146 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
10147 | lt_prog_compiler_wl='-Wl,' | |
10148 | lt_prog_compiler_pic='-qpic' | |
10149 | lt_prog_compiler_static='-qstaticlink' | |
10150 | ;; | |
10151 | *) | |
10152 | case `$CC -V 2>&1 | sed 5q` in | |
10153 | *Sun\ F* | *Sun*Fortran*) | |
10154 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
10155 | lt_prog_compiler_pic='-KPIC' | |
10156 | lt_prog_compiler_static='-Bstatic' | |
10157 | lt_prog_compiler_wl='' | |
10158 | ;; | |
10159 | *Sun\ C*) | |
10160 | # Sun C 5.9 | |
10161 | lt_prog_compiler_pic='-KPIC' | |
10162 | lt_prog_compiler_static='-Bstatic' | |
10163 | lt_prog_compiler_wl='-Wl,' | |
10164 | ;; | |
10165 | esac | |
10166 | ;; | |
10167 | esac | |
10168 | ;; | |
10169 | ||
10170 | newsos6) | |
10171 | lt_prog_compiler_pic='-KPIC' | |
10172 | lt_prog_compiler_static='-Bstatic' | |
10173 | ;; | |
10174 | ||
10175 | *nto* | *qnx*) | |
10176 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10177 | # it will coredump. | |
10178 | lt_prog_compiler_pic='-fPIC -shared' | |
10179 | ;; | |
10180 | ||
10181 | osf3* | osf4* | osf5*) | |
10182 | lt_prog_compiler_wl='-Wl,' | |
10183 | # All OSF/1 code is PIC. | |
10184 | lt_prog_compiler_static='-non_shared' | |
10185 | ;; | |
10186 | ||
10187 | rdos*) | |
10188 | lt_prog_compiler_static='-non_shared' | |
10189 | ;; | |
87326c78 | 10190 | |
6bb11ab3 L |
10191 | solaris*) |
10192 | lt_prog_compiler_pic='-KPIC' | |
10193 | lt_prog_compiler_static='-Bstatic' | |
10194 | case $cc_basename in | |
10195 | f77* | f90* | f95*) | |
10196 | lt_prog_compiler_wl='-Qoption ld ';; | |
10197 | *) | |
10198 | lt_prog_compiler_wl='-Wl,';; | |
10199 | esac | |
10200 | ;; | |
87326c78 | 10201 | |
6bb11ab3 L |
10202 | sunos4*) |
10203 | lt_prog_compiler_wl='-Qoption ld ' | |
10204 | lt_prog_compiler_pic='-PIC' | |
10205 | lt_prog_compiler_static='-Bstatic' | |
10206 | ;; | |
87326c78 | 10207 | |
6bb11ab3 L |
10208 | sysv4 | sysv4.2uw2* | sysv4.3*) |
10209 | lt_prog_compiler_wl='-Wl,' | |
10210 | lt_prog_compiler_pic='-KPIC' | |
10211 | lt_prog_compiler_static='-Bstatic' | |
10212 | ;; | |
10213 | ||
10214 | sysv4*MP*) | |
10215 | if test -d /usr/nec ;then | |
10216 | lt_prog_compiler_pic='-Kconform_pic' | |
10217 | lt_prog_compiler_static='-Bstatic' | |
10218 | fi | |
10219 | ;; | |
10220 | ||
10221 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
10222 | lt_prog_compiler_wl='-Wl,' | |
10223 | lt_prog_compiler_pic='-KPIC' | |
10224 | lt_prog_compiler_static='-Bstatic' | |
10225 | ;; | |
10226 | ||
10227 | unicos*) | |
10228 | lt_prog_compiler_wl='-Wl,' | |
10229 | lt_prog_compiler_can_build_shared=no | |
10230 | ;; | |
10231 | ||
10232 | uts4*) | |
10233 | lt_prog_compiler_pic='-pic' | |
10234 | lt_prog_compiler_static='-Bstatic' | |
10235 | ;; | |
10236 | ||
10237 | *) | |
10238 | lt_prog_compiler_can_build_shared=no | |
10239 | ;; | |
10240 | esac | |
10241 | fi | |
10242 | ||
10243 | case $host_os in | |
10244 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10245 | *djgpp*) | |
10246 | lt_prog_compiler_pic= | |
10247 | ;; | |
10248 | *) | |
10249 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10250 | ;; | |
87326c78 | 10251 | esac |
6bb11ab3 L |
10252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
10253 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | ||
10259 | ||
10260 | # | |
10261 | # Check to make sure the PIC flag actually works. | |
10262 | # | |
10263 | if test -n "$lt_prog_compiler_pic"; then | |
10264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
10265 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 10266 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
6bb11ab3 | 10267 | $as_echo_n "(cached) " >&6 |
87326c78 | 10268 | else |
6bb11ab3 L |
10269 | lt_cv_prog_compiler_pic_works=no |
10270 | ac_outfile=conftest.$ac_objext | |
10271 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10272 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10273 | # Insert the option either (1) after the last *FLAGS variable, or | |
10274 | # (2) before a word containing "conftest.", or (3) at the end. | |
10275 | # Note that $ac_compile itself does not contain backslashes and begins | |
10276 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10277 | # The option is referenced via a variable to avoid confusing sed. | |
10278 | lt_compile=`echo "$ac_compile" | $SED \ | |
10279 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10280 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10281 | -e 's:$: $lt_compiler_flag:'` | |
10282 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10283 | (eval "$lt_compile" 2>conftest.err) | |
10284 | ac_status=$? | |
10285 | cat conftest.err >&5 | |
10286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10287 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
10288 | # The compiler can only warn and ignore the option if not recognized | |
10289 | # So say no if there are warnings other than the usual output. | |
10290 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
10291 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10292 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
10293 | lt_cv_prog_compiler_pic_works=yes | |
10294 | fi | |
10295 | fi | |
10296 | $RM conftest* | |
87326c78 | 10297 | |
87326c78 | 10298 | fi |
6bb11ab3 L |
10299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10300 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
10301 | ||
10302 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
10303 | case $lt_prog_compiler_pic in | |
10304 | "" | " "*) ;; | |
10305 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10306 | esac | |
10307 | else | |
10308 | lt_prog_compiler_pic= | |
10309 | lt_prog_compiler_can_build_shared=no | |
87326c78 | 10310 | fi |
6bb11ab3 L |
10311 | |
10312 | fi | |
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | # | |
10320 | # Check to make sure the static flag actually works. | |
10321 | # | |
10322 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
10323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
10324 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 10325 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
87326c78 DD |
10326 | $as_echo_n "(cached) " >&6 |
10327 | else | |
6bb11ab3 L |
10328 | lt_cv_prog_compiler_static_works=no |
10329 | save_LDFLAGS="$LDFLAGS" | |
10330 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10331 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10332 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10333 | # The linker can only warn and ignore the option if not recognized | |
10334 | # So say no if there are warnings | |
10335 | if test -s conftest.err; then | |
10336 | # Append any errors to the config.log. | |
10337 | cat conftest.err 1>&5 | |
10338 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10339 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10340 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10341 | lt_cv_prog_compiler_static_works=yes | |
10342 | fi | |
10343 | else | |
10344 | lt_cv_prog_compiler_static_works=yes | |
10345 | fi | |
10346 | fi | |
10347 | $RM -r conftest* | |
10348 | LDFLAGS="$save_LDFLAGS" | |
87326c78 | 10349 | |
6bb11ab3 L |
10350 | fi |
10351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
10352 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
87326c78 | 10353 | |
6bb11ab3 L |
10354 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
10355 | : | |
87326c78 | 10356 | else |
6bb11ab3 | 10357 | lt_prog_compiler_static= |
87326c78 | 10358 | fi |
87326c78 | 10359 | |
6bb11ab3 L |
10360 | |
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10367 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 10368 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
6bb11ab3 | 10369 | $as_echo_n "(cached) " >&6 |
87326c78 | 10370 | else |
6bb11ab3 L |
10371 | lt_cv_prog_compiler_c_o=no |
10372 | $RM -r conftest 2>/dev/null | |
10373 | mkdir conftest | |
10374 | cd conftest | |
10375 | mkdir out | |
10376 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10377 | ||
10378 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10379 | # Insert the option either (1) after the last *FLAGS variable, or | |
10380 | # (2) before a word containing "conftest.", or (3) at the end. | |
10381 | # Note that $ac_compile itself does not contain backslashes and begins | |
10382 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10383 | lt_compile=`echo "$ac_compile" | $SED \ | |
10384 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10385 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10386 | -e 's:$: $lt_compiler_flag:'` | |
10387 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10388 | (eval "$lt_compile" 2>out/conftest.err) | |
10389 | ac_status=$? | |
10390 | cat out/conftest.err >&5 | |
10391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10392 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10393 | then | |
10394 | # The compiler can only warn and ignore the option if not recognized | |
10395 | # So say no if there are warnings | |
10396 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10397 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10398 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10399 | lt_cv_prog_compiler_c_o=yes | |
10400 | fi | |
10401 | fi | |
10402 | chmod u+w . 2>&5 | |
10403 | $RM conftest* | |
10404 | # SGI C++ compiler will create directory out/ii_files/ for | |
10405 | # template instantiation | |
10406 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10407 | $RM out/* && rmdir out | |
10408 | cd .. | |
10409 | $RM -r conftest | |
10410 | $RM conftest* | |
10411 | ||
87326c78 | 10412 | fi |
6bb11ab3 L |
10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10414 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10415 | ||
10416 | ||
10417 | ||
10418 | ||
10419 | ||
10420 | ||
10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10422 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 10423 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
87326c78 DD |
10424 | $as_echo_n "(cached) " >&6 |
10425 | else | |
6bb11ab3 L |
10426 | lt_cv_prog_compiler_c_o=no |
10427 | $RM -r conftest 2>/dev/null | |
10428 | mkdir conftest | |
10429 | cd conftest | |
10430 | mkdir out | |
10431 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10432 | ||
10433 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10434 | # Insert the option either (1) after the last *FLAGS variable, or | |
10435 | # (2) before a word containing "conftest.", or (3) at the end. | |
10436 | # Note that $ac_compile itself does not contain backslashes and begins | |
10437 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10438 | lt_compile=`echo "$ac_compile" | $SED \ | |
10439 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10440 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10441 | -e 's:$: $lt_compiler_flag:'` | |
10442 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10443 | (eval "$lt_compile" 2>out/conftest.err) | |
10444 | ac_status=$? | |
10445 | cat out/conftest.err >&5 | |
10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10447 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10448 | then | |
10449 | # The compiler can only warn and ignore the option if not recognized | |
10450 | # So say no if there are warnings | |
10451 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10452 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10453 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10454 | lt_cv_prog_compiler_c_o=yes | |
10455 | fi | |
10456 | fi | |
10457 | chmod u+w . 2>&5 | |
10458 | $RM conftest* | |
10459 | # SGI C++ compiler will create directory out/ii_files/ for | |
10460 | # template instantiation | |
10461 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10462 | $RM out/* && rmdir out | |
10463 | cd .. | |
10464 | $RM -r conftest | |
10465 | $RM conftest* | |
10466 | ||
10467 | fi | |
10468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10469 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | hard_links="nottested" | |
10475 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10476 | # do not overwrite the value of need_locks provided by the user | |
10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10478 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10479 | hard_links=yes | |
10480 | $RM conftest* | |
10481 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10482 | touch conftest.a | |
10483 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10484 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10486 | $as_echo "$hard_links" >&6; } | |
10487 | if test "$hard_links" = no; then | |
10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10489 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10490 | need_locks=warn | |
10491 | fi | |
10492 | else | |
10493 | need_locks=no | |
10494 | fi | |
10495 | ||
10496 | ||
10497 | ||
10498 | ||
10499 | ||
10500 | ||
10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10502 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10503 | ||
10504 | runpath_var= | |
10505 | allow_undefined_flag= | |
10506 | always_export_symbols=no | |
10507 | archive_cmds= | |
10508 | archive_expsym_cmds= | |
10509 | compiler_needs_object=no | |
10510 | enable_shared_with_static_runtimes=no | |
10511 | export_dynamic_flag_spec= | |
10512 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10513 | hardcode_automatic=no | |
10514 | hardcode_direct=no | |
10515 | hardcode_direct_absolute=no | |
10516 | hardcode_libdir_flag_spec= | |
10517 | hardcode_libdir_flag_spec_ld= | |
10518 | hardcode_libdir_separator= | |
10519 | hardcode_minus_L=no | |
10520 | hardcode_shlibpath_var=unsupported | |
10521 | inherit_rpath=no | |
10522 | link_all_deplibs=unknown | |
10523 | module_cmds= | |
10524 | module_expsym_cmds= | |
10525 | old_archive_from_new_cmds= | |
10526 | old_archive_from_expsyms_cmds= | |
10527 | thread_safe_flag_spec= | |
10528 | whole_archive_flag_spec= | |
10529 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10530 | # included in the symbol list | |
10531 | include_expsyms= | |
10532 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10533 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10534 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10535 | # as well as any symbol that contains `d'. | |
10536 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10537 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10538 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10539 | # the symbol is explicitly referenced. Since portable code cannot | |
10540 | # rely on this symbol name, it's probably fine to never include it in | |
10541 | # preloaded symbol tables. | |
10542 | # Exclude shared library initialization/finalization symbols. | |
10543 | extract_expsyms_cmds= | |
10544 | ||
10545 | case $host_os in | |
10546 | cygwin* | mingw* | pw32* | cegcc*) | |
10547 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10548 | # When not using gcc, we currently assume that we are using | |
10549 | # Microsoft Visual C++. | |
10550 | if test "$GCC" != yes; then | |
10551 | with_gnu_ld=no | |
10552 | fi | |
10553 | ;; | |
10554 | interix*) | |
10555 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10556 | with_gnu_ld=yes | |
10557 | ;; | |
10558 | openbsd*) | |
10559 | with_gnu_ld=no | |
10560 | ;; | |
10561 | esac | |
87326c78 | 10562 | |
6bb11ab3 L |
10563 | ld_shlibs=yes |
10564 | ||
10565 | # On some targets, GNU ld is compatible enough with the native linker | |
10566 | # that we're better off using the native interface for both. | |
10567 | lt_use_gnu_ld_interface=no | |
10568 | if test "$with_gnu_ld" = yes; then | |
10569 | case $host_os in | |
10570 | aix*) | |
10571 | # The AIX port of GNU ld has always aspired to compatibility | |
10572 | # with the native linker. However, as the warning in the GNU ld | |
10573 | # block says, versions before 2.19.5* couldn't really create working | |
10574 | # shared libraries, regardless of the interface used. | |
10575 | case `$LD -v 2>&1` in | |
10576 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10577 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10578 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10579 | *) | |
10580 | lt_use_gnu_ld_interface=yes | |
10581 | ;; | |
10582 | esac | |
10583 | ;; | |
10584 | *) | |
10585 | lt_use_gnu_ld_interface=yes | |
10586 | ;; | |
10587 | esac | |
10588 | fi | |
87326c78 | 10589 | |
6bb11ab3 L |
10590 | if test "$lt_use_gnu_ld_interface" = yes; then |
10591 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10592 | wlarc='${wl}' | |
10593 | ||
10594 | # Set some defaults for GNU ld with shared library support. These | |
10595 | # are reset later if shared libraries are not supported. Putting them | |
10596 | # here allows them to be overridden if necessary. | |
10597 | runpath_var=LD_RUN_PATH | |
10598 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10599 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10600 | # ancient GNU ld didn't support --whole-archive et. al. | |
10601 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10602 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10603 | else | |
10604 | whole_archive_flag_spec= | |
10605 | fi | |
10606 | supports_anon_versioning=no | |
10607 | case `$LD -v 2>&1` in | |
10608 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
10609 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10610 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10611 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10612 | *\ 2.11.*) ;; # other 2.11 versions | |
10613 | *) supports_anon_versioning=yes ;; | |
10614 | esac | |
10615 | ||
10616 | # See if GNU ld supports shared libraries. | |
10617 | case $host_os in | |
10618 | aix[3-9]*) | |
10619 | # On AIX/PPC, the GNU linker is very broken | |
10620 | if test "$host_cpu" != ia64; then | |
10621 | ld_shlibs=no | |
10622 | cat <<_LT_EOF 1>&2 | |
10623 | ||
10624 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
10625 | *** to be unable to reliably create shared libraries on AIX. | |
10626 | *** Therefore, libtool is disabling shared libraries support. If you | |
10627 | *** really care for shared libraries, you may want to install binutils | |
10628 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10629 | *** You will then need to restart the configuration process. | |
10630 | ||
10631 | _LT_EOF | |
10632 | fi | |
10633 | ;; | |
10634 | ||
10635 | amigaos*) | |
10636 | case $host_cpu in | |
10637 | powerpc) | |
10638 | # see comment about AmigaOS4 .so support | |
10639 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10640 | archive_expsym_cmds='' | |
10641 | ;; | |
10642 | m68k) | |
10643 | 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)' | |
10644 | hardcode_libdir_flag_spec='-L$libdir' | |
10645 | hardcode_minus_L=yes | |
10646 | ;; | |
10647 | esac | |
10648 | ;; | |
10649 | ||
10650 | beos*) | |
10651 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10652 | allow_undefined_flag=unsupported | |
10653 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10654 | # support --undefined. This deserves some investigation. FIXME | |
10655 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10656 | else | |
10657 | ld_shlibs=no | |
10658 | fi | |
10659 | ;; | |
10660 | ||
10661 | cygwin* | mingw* | pw32* | cegcc*) | |
10662 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10663 | # as there is no search path for DLLs. | |
10664 | hardcode_libdir_flag_spec='-L$libdir' | |
10665 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
10666 | allow_undefined_flag=unsupported | |
10667 | always_export_symbols=no | |
10668 | enable_shared_with_static_runtimes=yes | |
10669 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10670 | ||
10671 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10672 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10673 | # If the export-symbols file already is a .def file (1st line | |
10674 | # is EXPORTS), use it as is; otherwise, prepend... | |
10675 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10676 | cp $export_symbols $output_objdir/$soname.def; | |
10677 | else | |
10678 | echo EXPORTS > $output_objdir/$soname.def; | |
10679 | cat $export_symbols >> $output_objdir/$soname.def; | |
10680 | fi~ | |
10681 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10682 | else | |
10683 | ld_shlibs=no | |
10684 | fi | |
10685 | ;; | |
10686 | ||
10687 | haiku*) | |
10688 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10689 | link_all_deplibs=yes | |
10690 | ;; | |
10691 | ||
10692 | interix[3-9]*) | |
10693 | hardcode_direct=no | |
10694 | hardcode_shlibpath_var=no | |
10695 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10696 | export_dynamic_flag_spec='${wl}-E' | |
10697 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10698 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10699 | # default) and relocated if they conflict, which is a slow very memory | |
10700 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10701 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10702 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10703 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10704 | 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' | |
10705 | ;; | |
10706 | ||
10707 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
10708 | tmp_diet=no | |
10709 | if test "$host_os" = linux-dietlibc; then | |
10710 | case $cc_basename in | |
10711 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10712 | esac | |
10713 | fi | |
10714 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10715 | && test "$tmp_diet" = no | |
10716 | then | |
ae7d0cac | 10717 | tmp_addflag=' $pic_flag' |
6bb11ab3 L |
10718 | tmp_sharedflag='-shared' |
10719 | case $cc_basename,$host_cpu in | |
10720 | pgcc*) # Portland Group C compiler | |
10721 | 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' | |
10722 | tmp_addflag=' $pic_flag' | |
10723 | ;; | |
10724 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10725 | # Portland Group f77 and f90 compilers | |
10726 | 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' | |
10727 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10728 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10729 | tmp_addflag=' -i_dynamic' ;; | |
10730 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10731 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10732 | ifc* | ifort*) # Intel Fortran compiler | |
10733 | tmp_addflag=' -nofor_main' ;; | |
10734 | lf95*) # Lahey Fortran 8.1 | |
10735 | whole_archive_flag_spec= | |
10736 | tmp_sharedflag='--shared' ;; | |
10737 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10738 | tmp_sharedflag='-qmkshrobj' | |
10739 | tmp_addflag= ;; | |
10740 | nvcc*) # Cuda Compiler Driver 2.2 | |
10741 | 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' | |
10742 | compiler_needs_object=yes | |
10743 | ;; | |
10744 | esac | |
10745 | case `$CC -V 2>&1 | sed 5q` in | |
10746 | *Sun\ C*) # Sun C 5.9 | |
10747 | 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' | |
10748 | compiler_needs_object=yes | |
10749 | tmp_sharedflag='-G' ;; | |
10750 | *Sun\ F*) # Sun Fortran 8.3 | |
10751 | tmp_sharedflag='-G' ;; | |
10752 | esac | |
10753 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10754 | ||
10755 | if test "x$supports_anon_versioning" = xyes; then | |
10756 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10757 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10758 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10759 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10760 | fi | |
10761 | ||
10762 | case $cc_basename in | |
10763 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10764 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10765 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10766 | hardcode_libdir_flag_spec= | |
10767 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10768 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10769 | if test "x$supports_anon_versioning" = xyes; then | |
10770 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10771 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10772 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10773 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10774 | fi | |
10775 | ;; | |
10776 | esac | |
10777 | else | |
10778 | ld_shlibs=no | |
10779 | fi | |
10780 | ;; | |
10781 | ||
10782 | netbsd*) | |
10783 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10784 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10785 | wlarc= | |
10786 | else | |
10787 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10788 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10789 | fi | |
10790 | ;; | |
10791 | ||
10792 | solaris*) | |
10793 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10794 | ld_shlibs=no | |
10795 | cat <<_LT_EOF 1>&2 | |
10796 | ||
10797 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10798 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10799 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10800 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10801 | *** your PATH or compiler configuration so that the native linker is | |
10802 | *** used, and then restart. | |
10803 | ||
10804 | _LT_EOF | |
10805 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10806 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10807 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10808 | else | |
10809 | ld_shlibs=no | |
10810 | fi | |
10811 | ;; | |
10812 | ||
10813 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10814 | case `$LD -v 2>&1` in | |
10815 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10816 | ld_shlibs=no | |
10817 | cat <<_LT_EOF 1>&2 | |
10818 | ||
10819 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10820 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10821 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10822 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10823 | *** your PATH or compiler configuration so that the native linker is | |
10824 | *** used, and then restart. | |
10825 | ||
10826 | _LT_EOF | |
10827 | ;; | |
10828 | *) | |
10829 | # For security reasons, it is highly recommended that you always | |
10830 | # use absolute paths for naming shared libraries, and exclude the | |
10831 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10832 | # requires that you compile everything twice, which is a pain. | |
10833 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10834 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10835 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10836 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10837 | else | |
10838 | ld_shlibs=no | |
10839 | fi | |
10840 | ;; | |
10841 | esac | |
10842 | ;; | |
10843 | ||
10844 | sunos4*) | |
10845 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10846 | wlarc= | |
10847 | hardcode_direct=yes | |
10848 | hardcode_shlibpath_var=no | |
10849 | ;; | |
10850 | ||
10851 | *) | |
10852 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10853 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10854 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10855 | else | |
10856 | ld_shlibs=no | |
10857 | fi | |
10858 | ;; | |
10859 | esac | |
10860 | ||
10861 | if test "$ld_shlibs" = no; then | |
10862 | runpath_var= | |
10863 | hardcode_libdir_flag_spec= | |
10864 | export_dynamic_flag_spec= | |
10865 | whole_archive_flag_spec= | |
10866 | fi | |
10867 | else | |
10868 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10869 | case $host_os in | |
10870 | aix3*) | |
10871 | allow_undefined_flag=unsupported | |
10872 | always_export_symbols=yes | |
10873 | 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' | |
10874 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10875 | # are no directories specified by -L. | |
10876 | hardcode_minus_L=yes | |
10877 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10878 | # Neither direct hardcoding nor static linking is supported with a | |
10879 | # broken collect2. | |
10880 | hardcode_direct=unsupported | |
10881 | fi | |
10882 | ;; | |
10883 | ||
10884 | aix[4-9]*) | |
10885 | if test "$host_cpu" = ia64; then | |
10886 | # On IA64, the linker does run time linking by default, so we don't | |
10887 | # have to do anything special. | |
10888 | aix_use_runtimelinking=no | |
10889 | exp_sym_flag='-Bexport' | |
10890 | no_entry_flag="" | |
10891 | else | |
10892 | # If we're using GNU nm, then we don't want the "-C" option. | |
10893 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10894 | # Also, AIX nm treats weak defined symbols like other global | |
10895 | # defined symbols, whereas GNU nm marks them as "W". | |
10896 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10897 | 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' | |
10898 | else | |
5c887dd5 | 10899 | 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 |
10900 | fi |
10901 | aix_use_runtimelinking=no | |
10902 | ||
10903 | # Test if we are trying to use run time linking or normal | |
10904 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10905 | # need to do runtime linking. | |
10906 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10907 | for ld_flag in $LDFLAGS; do | |
10908 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10909 | aix_use_runtimelinking=yes | |
10910 | break | |
10911 | fi | |
10912 | done | |
10913 | ;; | |
10914 | esac | |
10915 | ||
10916 | exp_sym_flag='-bexport' | |
10917 | no_entry_flag='-bnoentry' | |
10918 | fi | |
10919 | ||
10920 | # When large executables or shared objects are built, AIX ld can | |
10921 | # have problems creating the table of contents. If linking a library | |
10922 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10923 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10924 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10925 | ||
10926 | archive_cmds='' | |
10927 | hardcode_direct=yes | |
10928 | hardcode_direct_absolute=yes | |
10929 | hardcode_libdir_separator=':' | |
10930 | link_all_deplibs=yes | |
10931 | file_list_spec='${wl}-f,' | |
10932 | ||
10933 | if test "$GCC" = yes; then | |
10934 | case $host_os in aix4.[012]|aix4.[012].*) | |
10935 | # We only want to do this on AIX 4.2 and lower, the check | |
10936 | # below for broken collect2 doesn't work under 4.3+ | |
10937 | collect2name=`${CC} -print-prog-name=collect2` | |
10938 | if test -f "$collect2name" && | |
10939 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10940 | then | |
10941 | # We have reworked collect2 | |
10942 | : | |
10943 | else | |
10944 | # We have old collect2 | |
10945 | hardcode_direct=unsupported | |
10946 | # It fails to find uninstalled libraries when the uninstalled | |
10947 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10948 | # to unsupported forces relinking | |
10949 | hardcode_minus_L=yes | |
10950 | hardcode_libdir_flag_spec='-L$libdir' | |
10951 | hardcode_libdir_separator= | |
10952 | fi | |
10953 | ;; | |
10954 | esac | |
10955 | shared_flag='-shared' | |
10956 | if test "$aix_use_runtimelinking" = yes; then | |
10957 | shared_flag="$shared_flag "'${wl}-G' | |
10958 | fi | |
10959 | else | |
10960 | # not using gcc | |
10961 | if test "$host_cpu" = ia64; then | |
10962 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10963 | # chokes on -Wl,-G. The following line is correct: | |
10964 | shared_flag='-G' | |
10965 | else | |
10966 | if test "$aix_use_runtimelinking" = yes; then | |
10967 | shared_flag='${wl}-G' | |
10968 | else | |
10969 | shared_flag='${wl}-bM:SRE' | |
10970 | fi | |
10971 | fi | |
10972 | fi | |
10973 | ||
10974 | export_dynamic_flag_spec='${wl}-bexpall' | |
10975 | # It seems that -bexpall does not export symbols beginning with | |
10976 | # underscore (_), so it is better to generate a list of symbols to export. | |
10977 | always_export_symbols=yes | |
10978 | if test "$aix_use_runtimelinking" = yes; then | |
10979 | # Warning - without using the other runtime loading flags (-brtl), | |
10980 | # -berok will link without error, but may produce a broken library. | |
10981 | allow_undefined_flag='-berok' | |
10982 | # Determine the default libpath from the value encoded in an | |
10983 | # empty executable. | |
10984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
87326c78 DD |
10985 | /* end confdefs.h. */ |
10986 | ||
10987 | int | |
10988 | main () | |
10989 | { | |
10990 | ||
10991 | ; | |
10992 | return 0; | |
10993 | } | |
10994 | _ACEOF | |
6bb11ab3 | 10995 | if ac_fn_c_try_link "$LINENO"; then : |
87326c78 | 10996 | |
6bb11ab3 L |
10997 | lt_aix_libpath_sed=' |
10998 | /Import File Strings/,/^$/ { | |
10999 | /^0/ { | |
11000 | s/^0 *\(.*\)$/\1/ | |
11001 | p | |
11002 | } | |
11003 | }' | |
11004 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11005 | # Check for a 64-bit object if we didn't find anything. | |
11006 | if test -z "$aix_libpath"; then | |
11007 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11008 | fi | |
11009 | fi | |
11010 | rm -f core conftest.err conftest.$ac_objext \ | |
11011 | conftest$ac_exeext conftest.$ac_ext | |
11012 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11013 | ||
11014 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11015 | 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" | |
11016 | else | |
11017 | if test "$host_cpu" = ia64; then | |
11018 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
11019 | allow_undefined_flag="-z nodefs" | |
11020 | 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" | |
11021 | else | |
11022 | # Determine the default libpath from the value encoded in an | |
11023 | # empty executable. | |
87326c78 DD |
11024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11025 | /* end confdefs.h. */ | |
11026 | ||
11027 | int | |
11028 | main () | |
11029 | { | |
11030 | ||
11031 | ; | |
11032 | return 0; | |
11033 | } | |
11034 | _ACEOF | |
6bb11ab3 L |
11035 | if ac_fn_c_try_link "$LINENO"; then : |
11036 | ||
11037 | lt_aix_libpath_sed=' | |
11038 | /Import File Strings/,/^$/ { | |
11039 | /^0/ { | |
11040 | s/^0 *\(.*\)$/\1/ | |
11041 | p | |
11042 | } | |
11043 | }' | |
11044 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11045 | # Check for a 64-bit object if we didn't find anything. | |
11046 | if test -z "$aix_libpath"; then | |
11047 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
87326c78 | 11048 | fi |
87326c78 | 11049 | fi |
6bb11ab3 L |
11050 | rm -f core conftest.err conftest.$ac_objext \ |
11051 | conftest$ac_exeext conftest.$ac_ext | |
11052 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11053 | ||
11054 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11055 | # Warning - without using the other run time loading flags, | |
11056 | # -berok will link without error, but may produce a broken library. | |
11057 | no_undefined_flag=' ${wl}-bernotok' | |
11058 | allow_undefined_flag=' ${wl}-berok' | |
11059 | if test "$with_gnu_ld" = yes; then | |
11060 | # We only use this code for GNU lds that support --whole-archive. | |
11061 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11062 | else | |
11063 | # Exported symbols can be pulled into shared objects from archives | |
11064 | whole_archive_flag_spec='$convenience' | |
11065 | fi | |
11066 | archive_cmds_need_lc=yes | |
11067 | # This is similar to how AIX traditionally builds its shared libraries. | |
11068 | 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' | |
11069 | fi | |
11070 | fi | |
11071 | ;; | |
11072 | ||
11073 | amigaos*) | |
11074 | case $host_cpu in | |
11075 | powerpc) | |
11076 | # see comment about AmigaOS4 .so support | |
11077 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11078 | archive_expsym_cmds='' | |
11079 | ;; | |
11080 | m68k) | |
11081 | 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)' | |
11082 | hardcode_libdir_flag_spec='-L$libdir' | |
11083 | hardcode_minus_L=yes | |
11084 | ;; | |
11085 | esac | |
11086 | ;; | |
11087 | ||
11088 | bsdi[45]*) | |
11089 | export_dynamic_flag_spec=-rdynamic | |
11090 | ;; | |
11091 | ||
11092 | cygwin* | mingw* | pw32* | cegcc*) | |
11093 | # When not using gcc, we currently assume that we are using | |
11094 | # Microsoft Visual C++. | |
11095 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
11096 | # no search path for DLLs. | |
11097 | hardcode_libdir_flag_spec=' ' | |
11098 | allow_undefined_flag=unsupported | |
11099 | # Tell ltmain to make .lib files, not .a files. | |
11100 | libext=lib | |
11101 | # Tell ltmain to make .dll files, not .so files. | |
11102 | shrext_cmds=".dll" | |
11103 | # FIXME: Setting linknames here is a bad hack. | |
11104 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
11105 | # The linker will automatically build a .lib file if we build a DLL. | |
11106 | old_archive_from_new_cmds='true' | |
11107 | # FIXME: Should let the user specify the lib program. | |
11108 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
11109 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
11110 | enable_shared_with_static_runtimes=yes | |
11111 | ;; | |
11112 | ||
11113 | darwin* | rhapsody*) | |
11114 | ||
11115 | ||
11116 | archive_cmds_need_lc=no | |
11117 | hardcode_direct=no | |
11118 | hardcode_automatic=yes | |
11119 | hardcode_shlibpath_var=unsupported | |
11120 | if test "$lt_cv_ld_force_load" = "yes"; then | |
11121 | 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\"`' | |
87326c78 | 11122 | else |
6bb11ab3 | 11123 | whole_archive_flag_spec='' |
87326c78 | 11124 | fi |
6bb11ab3 L |
11125 | link_all_deplibs=yes |
11126 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
11127 | case $cc_basename in | |
11128 | ifort*) _lt_dar_can_shared=yes ;; | |
11129 | *) _lt_dar_can_shared=$GCC ;; | |
11130 | esac | |
11131 | if test "$_lt_dar_can_shared" = "yes"; then | |
11132 | output_verbose_link_cmd=func_echo_all | |
11133 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
11134 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11135 | 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}" | |
11136 | 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}" | |
11137 | ||
87326c78 | 11138 | else |
6bb11ab3 | 11139 | ld_shlibs=no |
87326c78 | 11140 | fi |
6bb11ab3 L |
11141 | |
11142 | ;; | |
11143 | ||
11144 | dgux*) | |
11145 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11146 | hardcode_libdir_flag_spec='-L$libdir' | |
11147 | hardcode_shlibpath_var=no | |
11148 | ;; | |
11149 | ||
11150 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
11151 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
11152 | # does not break anything, and helps significantly (at the cost of a little | |
11153 | # extra space). | |
11154 | freebsd2.2*) | |
11155 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
11156 | hardcode_libdir_flag_spec='-R$libdir' | |
11157 | hardcode_direct=yes | |
11158 | hardcode_shlibpath_var=no | |
11159 | ;; | |
11160 | ||
11161 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
11162 | freebsd2.*) | |
11163 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11164 | hardcode_direct=yes | |
11165 | hardcode_minus_L=yes | |
11166 | hardcode_shlibpath_var=no | |
11167 | ;; | |
11168 | ||
11169 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
11170 | freebsd* | dragonfly*) | |
11171 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
11172 | hardcode_libdir_flag_spec='-R$libdir' | |
11173 | hardcode_direct=yes | |
11174 | hardcode_shlibpath_var=no | |
11175 | ;; | |
11176 | ||
11177 | hpux9*) | |
11178 | if test "$GCC" = yes; then | |
11179 | 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' | |
11180 | else | |
11181 | 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' | |
11182 | fi | |
11183 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11184 | hardcode_libdir_separator=: | |
11185 | hardcode_direct=yes | |
11186 | ||
11187 | # hardcode_minus_L: Not really in the search PATH, | |
11188 | # but as the default location of the library. | |
11189 | hardcode_minus_L=yes | |
11190 | export_dynamic_flag_spec='${wl}-E' | |
11191 | ;; | |
11192 | ||
11193 | hpux10*) | |
11194 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
11195 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11196 | else | |
11197 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11198 | fi | |
11199 | if test "$with_gnu_ld" = no; then | |
11200 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11201 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
11202 | hardcode_libdir_separator=: | |
11203 | hardcode_direct=yes | |
11204 | hardcode_direct_absolute=yes | |
11205 | export_dynamic_flag_spec='${wl}-E' | |
11206 | # hardcode_minus_L: Not really in the search PATH, | |
11207 | # but as the default location of the library. | |
11208 | hardcode_minus_L=yes | |
11209 | fi | |
11210 | ;; | |
11211 | ||
11212 | hpux11*) | |
11213 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
11214 | case $host_cpu in | |
11215 | hppa*64*) | |
11216 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11217 | ;; | |
11218 | ia64*) | |
11219 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11220 | ;; | |
11221 | *) | |
11222 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11223 | ;; | |
11224 | esac | |
11225 | else | |
11226 | case $host_cpu in | |
11227 | hppa*64*) | |
11228 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11229 | ;; | |
11230 | ia64*) | |
11231 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11232 | ;; | |
11233 | *) | |
11234 | ||
11235 | # Older versions of the 11.00 compiler do not understand -b yet | |
11236 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11238 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 11239 | if ${lt_cv_prog_compiler__b+:} false; then : |
87326c78 DD |
11240 | $as_echo_n "(cached) " >&6 |
11241 | else | |
6bb11ab3 L |
11242 | lt_cv_prog_compiler__b=no |
11243 | save_LDFLAGS="$LDFLAGS" | |
11244 | LDFLAGS="$LDFLAGS -b" | |
11245 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11246 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11247 | # The linker can only warn and ignore the option if not recognized | |
11248 | # So say no if there are warnings | |
11249 | if test -s conftest.err; then | |
11250 | # Append any errors to the config.log. | |
11251 | cat conftest.err 1>&5 | |
11252 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11253 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11254 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11255 | lt_cv_prog_compiler__b=yes | |
11256 | fi | |
11257 | else | |
11258 | lt_cv_prog_compiler__b=yes | |
11259 | fi | |
11260 | fi | |
11261 | $RM -r conftest* | |
11262 | LDFLAGS="$save_LDFLAGS" | |
87326c78 | 11263 | |
6bb11ab3 L |
11264 | fi |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11266 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
87326c78 | 11267 | |
6bb11ab3 L |
11268 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
11269 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11270 | else | |
11271 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11272 | fi | |
87326c78 | 11273 | |
6bb11ab3 L |
11274 | ;; |
11275 | esac | |
11276 | fi | |
11277 | if test "$with_gnu_ld" = no; then | |
11278 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11279 | hardcode_libdir_separator=: | |
11280 | ||
11281 | case $host_cpu in | |
11282 | hppa*64*|ia64*) | |
11283 | hardcode_direct=no | |
11284 | hardcode_shlibpath_var=no | |
11285 | ;; | |
11286 | *) | |
11287 | hardcode_direct=yes | |
11288 | hardcode_direct_absolute=yes | |
11289 | export_dynamic_flag_spec='${wl}-E' | |
11290 | ||
11291 | # hardcode_minus_L: Not really in the search PATH, | |
11292 | # but as the default location of the library. | |
11293 | hardcode_minus_L=yes | |
11294 | ;; | |
11295 | esac | |
11296 | fi | |
11297 | ;; | |
11298 | ||
11299 | irix5* | irix6* | nonstopux*) | |
11300 | if test "$GCC" = yes; then | |
11301 | 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' | |
11302 | # Try to use the -exported_symbol ld option, if it does not | |
11303 | # work, assume that -exports_file does not work either and | |
11304 | # implicitly export all symbols. | |
11305 | save_LDFLAGS="$LDFLAGS" | |
11306 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11308 | /* end confdefs.h. */ | |
11309 | int foo(void) {} | |
87326c78 | 11310 | _ACEOF |
6bb11ab3 L |
11311 | if ac_fn_c_try_link "$LINENO"; then : |
11312 | 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' | |
87326c78 DD |
11313 | |
11314 | fi | |
6bb11ab3 L |
11315 | rm -f core conftest.err conftest.$ac_objext \ |
11316 | conftest$ac_exeext conftest.$ac_ext | |
11317 | LDFLAGS="$save_LDFLAGS" | |
11318 | else | |
11319 | 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' | |
11320 | 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' | |
11321 | fi | |
11322 | archive_cmds_need_lc='no' | |
11323 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11324 | hardcode_libdir_separator=: | |
11325 | inherit_rpath=yes | |
11326 | link_all_deplibs=yes | |
11327 | ;; | |
11328 | ||
11329 | netbsd*) | |
11330 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11331 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11332 | else | |
11333 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11334 | fi | |
11335 | hardcode_libdir_flag_spec='-R$libdir' | |
11336 | hardcode_direct=yes | |
11337 | hardcode_shlibpath_var=no | |
11338 | ;; | |
11339 | ||
11340 | newsos6) | |
11341 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11342 | hardcode_direct=yes | |
11343 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11344 | hardcode_libdir_separator=: | |
11345 | hardcode_shlibpath_var=no | |
11346 | ;; | |
11347 | ||
11348 | *nto* | *qnx*) | |
11349 | ;; | |
11350 | ||
11351 | openbsd*) | |
11352 | if test -f /usr/libexec/ld.so; then | |
11353 | hardcode_direct=yes | |
11354 | hardcode_shlibpath_var=no | |
11355 | hardcode_direct_absolute=yes | |
11356 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11357 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11358 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
11359 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11360 | export_dynamic_flag_spec='${wl}-E' | |
11361 | else | |
11362 | case $host_os in | |
11363 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11364 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11365 | hardcode_libdir_flag_spec='-R$libdir' | |
11366 | ;; | |
11367 | *) | |
11368 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11369 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11370 | ;; | |
11371 | esac | |
11372 | fi | |
11373 | else | |
11374 | ld_shlibs=no | |
11375 | fi | |
11376 | ;; | |
11377 | ||
11378 | os2*) | |
11379 | hardcode_libdir_flag_spec='-L$libdir' | |
11380 | hardcode_minus_L=yes | |
11381 | allow_undefined_flag=unsupported | |
11382 | 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' | |
11383 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
11384 | ;; | |
11385 | ||
11386 | osf3*) | |
11387 | if test "$GCC" = yes; then | |
11388 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11389 | 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' | |
11390 | else | |
11391 | allow_undefined_flag=' -expect_unresolved \*' | |
11392 | 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' | |
11393 | fi | |
11394 | archive_cmds_need_lc='no' | |
11395 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11396 | hardcode_libdir_separator=: | |
11397 | ;; | |
11398 | ||
11399 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11400 | if test "$GCC" = yes; then | |
11401 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11402 | 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' | |
11403 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11404 | else | |
11405 | allow_undefined_flag=' -expect_unresolved \*' | |
11406 | 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' | |
11407 | 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~ | |
11408 | $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' | |
11409 | ||
11410 | # Both c and cxx compiler support -rpath directly | |
11411 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11412 | fi | |
11413 | archive_cmds_need_lc='no' | |
11414 | hardcode_libdir_separator=: | |
11415 | ;; | |
11416 | ||
11417 | solaris*) | |
11418 | no_undefined_flag=' -z defs' | |
11419 | if test "$GCC" = yes; then | |
11420 | wlarc='${wl}' | |
11421 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11422 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11423 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11424 | else | |
11425 | case `$CC -V 2>&1` in | |
11426 | *"Compilers 5.0"*) | |
11427 | wlarc='' | |
11428 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11429 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11430 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11431 | ;; | |
11432 | *) | |
11433 | wlarc='${wl}' | |
11434 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11435 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11436 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11437 | ;; | |
11438 | esac | |
11439 | fi | |
11440 | hardcode_libdir_flag_spec='-R$libdir' | |
11441 | hardcode_shlibpath_var=no | |
11442 | case $host_os in | |
11443 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11444 | *) | |
11445 | # The compiler driver will combine and reorder linker options, | |
11446 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11447 | # but is careful enough not to reorder. | |
11448 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11449 | if test "$GCC" = yes; then | |
11450 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11451 | else | |
11452 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11453 | fi | |
11454 | ;; | |
11455 | esac | |
11456 | link_all_deplibs=yes | |
11457 | ;; | |
11458 | ||
11459 | sunos4*) | |
11460 | if test "x$host_vendor" = xsequent; then | |
11461 | # Use $CC to link under sequent, because it throws in some extra .o | |
11462 | # files that make .init and .fini sections work. | |
11463 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11464 | else | |
11465 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11466 | fi | |
11467 | hardcode_libdir_flag_spec='-L$libdir' | |
11468 | hardcode_direct=yes | |
11469 | hardcode_minus_L=yes | |
11470 | hardcode_shlibpath_var=no | |
11471 | ;; | |
11472 | ||
11473 | sysv4) | |
11474 | case $host_vendor in | |
11475 | sni) | |
11476 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11477 | hardcode_direct=yes # is this really true??? | |
11478 | ;; | |
11479 | siemens) | |
11480 | ## LD is ld it makes a PLAMLIB | |
11481 | ## CC just makes a GrossModule. | |
11482 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11483 | reload_cmds='$CC -r -o $output$reload_objs' | |
11484 | hardcode_direct=no | |
11485 | ;; | |
11486 | motorola) | |
11487 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11488 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11489 | ;; | |
11490 | esac | |
11491 | runpath_var='LD_RUN_PATH' | |
11492 | hardcode_shlibpath_var=no | |
11493 | ;; | |
11494 | ||
11495 | sysv4.3*) | |
11496 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11497 | hardcode_shlibpath_var=no | |
11498 | export_dynamic_flag_spec='-Bexport' | |
11499 | ;; | |
11500 | ||
11501 | sysv4*MP*) | |
11502 | if test -d /usr/nec; then | |
11503 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11504 | hardcode_shlibpath_var=no | |
11505 | runpath_var=LD_RUN_PATH | |
11506 | hardcode_runpath_var=yes | |
11507 | ld_shlibs=yes | |
11508 | fi | |
11509 | ;; | |
11510 | ||
11511 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11512 | no_undefined_flag='${wl}-z,text' | |
11513 | archive_cmds_need_lc=no | |
11514 | hardcode_shlibpath_var=no | |
11515 | runpath_var='LD_RUN_PATH' | |
11516 | ||
11517 | if test "$GCC" = yes; then | |
11518 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11519 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11520 | else | |
11521 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11522 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11523 | fi | |
11524 | ;; | |
11525 | ||
11526 | sysv5* | sco3.2v5* | sco5v6*) | |
11527 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11528 | # link with -lc, and that would cause any symbols used from libc to | |
11529 | # always be unresolved, which means just about no library would | |
11530 | # ever link correctly. If we're not using GNU ld we use -z text | |
11531 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11532 | # as -z defs. | |
11533 | no_undefined_flag='${wl}-z,text' | |
11534 | allow_undefined_flag='${wl}-z,nodefs' | |
11535 | archive_cmds_need_lc=no | |
11536 | hardcode_shlibpath_var=no | |
11537 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11538 | hardcode_libdir_separator=':' | |
11539 | link_all_deplibs=yes | |
11540 | export_dynamic_flag_spec='${wl}-Bexport' | |
11541 | runpath_var='LD_RUN_PATH' | |
11542 | ||
11543 | if test "$GCC" = yes; then | |
11544 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11545 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11546 | else | |
11547 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11548 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11549 | fi | |
11550 | ;; | |
11551 | ||
11552 | uts4*) | |
11553 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11554 | hardcode_libdir_flag_spec='-L$libdir' | |
11555 | hardcode_shlibpath_var=no | |
11556 | ;; | |
11557 | ||
11558 | *) | |
11559 | ld_shlibs=no | |
11560 | ;; | |
11561 | esac | |
11562 | ||
11563 | if test x$host_vendor = xsni; then | |
11564 | case $host in | |
11565 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11566 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11567 | ;; | |
11568 | esac | |
11569 | fi | |
11570 | fi | |
11571 | ||
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11573 | $as_echo "$ld_shlibs" >&6; } | |
11574 | test "$ld_shlibs" = no && can_build_shared=no | |
11575 | ||
11576 | with_gnu_ld=$with_gnu_ld | |
11577 | ||
11578 | ||
11579 | ||
87326c78 | 11580 | |
87326c78 | 11581 | |
87326c78 | 11582 | |
87326c78 | 11583 | |
87326c78 DD |
11584 | |
11585 | ||
87326c78 | 11586 | |
87326c78 | 11587 | |
87326c78 DD |
11588 | |
11589 | ||
6bb11ab3 L |
11590 | |
11591 | ||
11592 | # | |
11593 | # Do we need to explicitly link libc? | |
11594 | # | |
11595 | case "x$archive_cmds_need_lc" in | |
11596 | x|xyes) | |
11597 | # Assume -lc should be added | |
11598 | archive_cmds_need_lc=yes | |
11599 | ||
11600 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11601 | case $archive_cmds in | |
11602 | *'~'*) | |
11603 | # FIXME: we may have to deal with multi-command sequences. | |
11604 | ;; | |
11605 | '$CC '*) | |
11606 | # Test whether the compiler implicitly links with -lc since on some | |
11607 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11608 | # to ld, don't add -lc before -lgcc. | |
11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11610 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 11611 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
87326c78 DD |
11612 | $as_echo_n "(cached) " >&6 |
11613 | else | |
6bb11ab3 L |
11614 | $RM conftest* |
11615 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11616 | ||
11617 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11618 | (eval $ac_compile) 2>&5 | |
11619 | ac_status=$? | |
11620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11621 | test $ac_status = 0; } 2>conftest.err; then | |
11622 | soname=conftest | |
11623 | lib=conftest | |
11624 | libobjs=conftest.$ac_objext | |
11625 | deplibs= | |
11626 | wl=$lt_prog_compiler_wl | |
11627 | pic_flag=$lt_prog_compiler_pic | |
11628 | compiler_flags=-v | |
11629 | linker_flags=-v | |
11630 | verstring= | |
11631 | output_objdir=. | |
11632 | libname=conftest | |
11633 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11634 | allow_undefined_flag= | |
11635 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11636 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11637 | ac_status=$? | |
11638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11639 | test $ac_status = 0; } | |
11640 | then | |
11641 | lt_cv_archive_cmds_need_lc=no | |
11642 | else | |
11643 | lt_cv_archive_cmds_need_lc=yes | |
11644 | fi | |
11645 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11646 | else | |
11647 | cat conftest.err 1>&5 | |
11648 | fi | |
11649 | $RM conftest* | |
87326c78 DD |
11650 | |
11651 | fi | |
6bb11ab3 L |
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11653 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11654 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11655 | ;; | |
11656 | esac | |
11657 | fi | |
11658 | ;; | |
87326c78 | 11659 | esac |
87326c78 DD |
11660 | |
11661 | ||
87326c78 | 11662 | |
87326c78 DD |
11663 | |
11664 | ||
87326c78 | 11665 | |
87326c78 | 11666 | |
87326c78 | 11667 | |
87326c78 | 11668 | |
87326c78 | 11669 | |
87326c78 | 11670 | |
87326c78 | 11671 | |
87326c78 | 11672 | |
87326c78 | 11673 | |
87326c78 | 11674 | |
87326c78 | 11675 | |
87326c78 DD |
11676 | |
11677 | ||
87326c78 | 11678 | |
87326c78 | 11679 | |
87326c78 DD |
11680 | |
11681 | ||
87326c78 | 11682 | |
87326c78 | 11683 | |
87326c78 DD |
11684 | |
11685 | ||
87326c78 | 11686 | |
87326c78 | 11687 | |
87326c78 | 11688 | |
87326c78 | 11689 | |
87326c78 | 11690 | |
87326c78 | 11691 | |
87326c78 | 11692 | |
87326c78 | 11693 | |
87326c78 | 11694 | |
87326c78 | 11695 | |
87326c78 | 11696 | |
87326c78 | 11697 | |
87326c78 | 11698 | |
87326c78 | 11699 | |
87326c78 | 11700 | |
87326c78 | 11701 | |
87326c78 | 11702 | |
87326c78 | 11703 | |
87326c78 | 11704 | |
87326c78 DD |
11705 | |
11706 | ||
11707 | ||
2232061b MF |
11708 | |
11709 | ||
2232061b | 11710 | |
2232061b MF |
11711 | |
11712 | ||
2232061b MF |
11713 | |
11714 | ||
2232061b | 11715 | |
2232061b MF |
11716 | |
11717 | ||
6bb11ab3 L |
11718 | |
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | ||
11727 | ||
11728 | ||
11729 | ||
11730 | ||
11731 | ||
11732 | ||
11733 | ||
11734 | ||
11735 | ||
11736 | ||
11737 | ||
11738 | ||
11739 | ||
11740 | ||
11741 | ||
11742 | ||
11743 | ||
11744 | ||
11745 | ||
11746 | ||
11747 | ||
11748 | ||
11749 | ||
11750 | ||
11751 | ||
11752 | ||
11753 | ||
11754 | ||
11755 | ||
11756 | ||
11757 | ||
11758 | ||
11759 | ||
11760 | ||
11761 | ||
11762 | ||
11763 | ||
11764 | ||
11765 | ||
11766 | ||
11767 | ||
11768 | ||
11769 | ||
11770 | ||
11771 | ||
11772 | ||
11773 | ||
11774 | ||
11775 | ||
11776 | ||
11777 | ||
11778 | ||
11779 | ||
11780 | ||
11781 | ||
11782 | ||
11783 | ||
11784 | ||
11785 | ||
11786 | ||
11787 | ||
11788 | ||
11789 | ||
11790 | ||
11791 | ||
11792 | ||
11793 | ||
11794 | ||
11795 | ||
11796 | ||
11797 | ||
11798 | ||
11799 | ||
11800 | ||
11801 | ||
11802 | ||
11803 | ||
11804 | ||
11805 | ||
11806 | ||
11807 | ||
11808 | ||
11809 | ||
11810 | ||
11811 | ||
11812 | ||
11813 | ||
11814 | ||
11815 | ||
11816 | ||
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11818 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11819 | ||
11820 | if test "$GCC" = yes; then | |
11821 | case $host_os in | |
11822 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11823 | *) lt_awk_arg="/^libraries:/" ;; | |
11824 | esac | |
11825 | case $host_os in | |
11826 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11827 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11828 | esac | |
11829 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11830 | case $lt_search_path_spec in | |
11831 | *\;*) | |
11832 | # if the path contains ";" then we assume it to be the separator | |
11833 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11834 | # assumed that no part of a normal pathname contains ";" but that should | |
11835 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11836 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11837 | ;; | |
11838 | *) | |
11839 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11840 | ;; | |
11841 | esac | |
11842 | # Ok, now we have the path, separated by spaces, we can step through it | |
11843 | # and add multilib dir if necessary. | |
11844 | lt_tmp_lt_search_path_spec= | |
11845 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11846 | for lt_sys_path in $lt_search_path_spec; do | |
11847 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11848 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11849 | else | |
11850 | test -d "$lt_sys_path" && \ | |
11851 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11852 | fi | |
11853 | done | |
11854 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11855 | BEGIN {RS=" "; FS="/|\n";} { | |
11856 | lt_foo=""; | |
11857 | lt_count=0; | |
11858 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11859 | if ($lt_i != "" && $lt_i != ".") { | |
11860 | if ($lt_i == "..") { | |
11861 | lt_count++; | |
11862 | } else { | |
11863 | if (lt_count == 0) { | |
11864 | lt_foo="/" $lt_i lt_foo; | |
11865 | } else { | |
11866 | lt_count--; | |
11867 | } | |
11868 | } | |
11869 | } | |
11870 | } | |
11871 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11872 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11873 | }'` | |
11874 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11875 | # for these hosts. | |
11876 | case $host_os in | |
11877 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11878 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11879 | esac | |
11880 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11881 | else | |
11882 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11883 | fi | |
11884 | library_names_spec= | |
11885 | libname_spec='lib$name' | |
11886 | soname_spec= | |
11887 | shrext_cmds=".so" | |
11888 | postinstall_cmds= | |
11889 | postuninstall_cmds= | |
11890 | finish_cmds= | |
11891 | finish_eval= | |
11892 | shlibpath_var= | |
11893 | shlibpath_overrides_runpath=unknown | |
11894 | version_type=none | |
11895 | dynamic_linker="$host_os ld.so" | |
11896 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11897 | need_lib_prefix=unknown | |
11898 | hardcode_into_libs=no | |
11899 | ||
11900 | # when you set need_version to no, make sure it does not cause -set_version | |
11901 | # flags to be left without arguments | |
11902 | need_version=unknown | |
11903 | ||
11904 | case $host_os in | |
11905 | aix3*) | |
11906 | version_type=linux | |
11907 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11908 | shlibpath_var=LIBPATH | |
11909 | ||
11910 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11911 | soname_spec='${libname}${release}${shared_ext}$major' | |
11912 | ;; | |
11913 | ||
11914 | aix[4-9]*) | |
11915 | version_type=linux | |
11916 | need_lib_prefix=no | |
11917 | need_version=no | |
11918 | hardcode_into_libs=yes | |
11919 | if test "$host_cpu" = ia64; then | |
11920 | # AIX 5 supports IA64 | |
11921 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11922 | shlibpath_var=LD_LIBRARY_PATH | |
11923 | else | |
11924 | # With GCC up to 2.95.x, collect2 would create an import file | |
11925 | # for dependence libraries. The import file would start with | |
11926 | # the line `#! .'. This would cause the generated library to | |
11927 | # depend on `.', always an invalid library. This was fixed in | |
11928 | # development snapshots of GCC prior to 3.0. | |
11929 | case $host_os in | |
11930 | aix4 | aix4.[01] | aix4.[01].*) | |
11931 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11932 | echo ' yes ' | |
11933 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11934 | : | |
11935 | else | |
11936 | can_build_shared=no | |
11937 | fi | |
11938 | ;; | |
11939 | esac | |
11940 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11941 | # soname into executable. Probably we can add versioning support to | |
11942 | # collect2, so additional links can be useful in future. | |
11943 | if test "$aix_use_runtimelinking" = yes; then | |
11944 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11945 | # instead of lib<name>.a to let people know that these are not | |
11946 | # typical AIX shared libraries. | |
11947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11948 | else | |
11949 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11950 | # and later when we are not doing run time linking. | |
11951 | library_names_spec='${libname}${release}.a $libname.a' | |
11952 | soname_spec='${libname}${release}${shared_ext}$major' | |
11953 | fi | |
11954 | shlibpath_var=LIBPATH | |
11955 | fi | |
11956 | ;; | |
11957 | ||
11958 | amigaos*) | |
11959 | case $host_cpu in | |
11960 | powerpc) | |
11961 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11962 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11964 | ;; | |
11965 | m68k) | |
11966 | library_names_spec='$libname.ixlibrary $libname.a' | |
11967 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11968 | 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' | |
11969 | ;; | |
11970 | esac | |
11971 | ;; | |
11972 | ||
11973 | beos*) | |
11974 | library_names_spec='${libname}${shared_ext}' | |
11975 | dynamic_linker="$host_os ld.so" | |
11976 | shlibpath_var=LIBRARY_PATH | |
11977 | ;; | |
11978 | ||
11979 | bsdi[45]*) | |
11980 | version_type=linux | |
11981 | need_version=no | |
11982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11983 | soname_spec='${libname}${release}${shared_ext}$major' | |
11984 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11985 | shlibpath_var=LD_LIBRARY_PATH | |
11986 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11987 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11988 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11989 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11990 | # libtool to hard-code these into programs | |
11991 | ;; | |
11992 | ||
11993 | cygwin* | mingw* | pw32* | cegcc*) | |
11994 | version_type=windows | |
11995 | shrext_cmds=".dll" | |
11996 | need_version=no | |
11997 | need_lib_prefix=no | |
11998 | ||
11999 | case $GCC,$host_os in | |
12000 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
12001 | library_names_spec='$libname.dll.a' | |
12002 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
12003 | postinstall_cmds='base_file=`basename \${file}`~ | |
12004 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
12005 | dldir=$destdir/`dirname \$dlpath`~ | |
12006 | test -d \$dldir || mkdir -p \$dldir~ | |
12007 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12008 | chmod a+x \$dldir/$dlname~ | |
12009 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
12010 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
12011 | fi' | |
12012 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12013 | dlpath=$dir/\$dldll~ | |
12014 | $RM \$dlpath' | |
12015 | shlibpath_overrides_runpath=yes | |
12016 | ||
12017 | case $host_os in | |
12018 | cygwin*) | |
12019 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
12020 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12021 | ||
12022 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
12023 | ;; | |
12024 | mingw* | cegcc*) | |
12025 | # MinGW DLLs use traditional 'lib' prefix | |
12026 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12027 | ;; | |
12028 | pw32*) | |
12029 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
12030 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12031 | ;; | |
12032 | esac | |
12033 | ;; | |
12034 | ||
12035 | *) | |
12036 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12037 | ;; | |
12038 | esac | |
12039 | dynamic_linker='Win32 ld.exe' | |
12040 | # FIXME: first we should search . and the directory the executable is in | |
12041 | shlibpath_var=PATH | |
12042 | ;; | |
12043 | ||
12044 | darwin* | rhapsody*) | |
12045 | dynamic_linker="$host_os dyld" | |
12046 | version_type=darwin | |
12047 | need_lib_prefix=no | |
12048 | need_version=no | |
12049 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12050 | soname_spec='${libname}${release}${major}$shared_ext' | |
12051 | shlibpath_overrides_runpath=yes | |
12052 | shlibpath_var=DYLD_LIBRARY_PATH | |
12053 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12054 | ||
12055 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
12056 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12057 | ;; | |
12058 | ||
12059 | dgux*) | |
12060 | version_type=linux | |
12061 | need_lib_prefix=no | |
12062 | need_version=no | |
12063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12064 | soname_spec='${libname}${release}${shared_ext}$major' | |
12065 | shlibpath_var=LD_LIBRARY_PATH | |
12066 | ;; | |
12067 | ||
12068 | freebsd* | dragonfly*) | |
12069 | # DragonFly does not have aout. When/if they implement a new | |
12070 | # versioning mechanism, adjust this. | |
12071 | if test -x /usr/bin/objformat; then | |
12072 | objformat=`/usr/bin/objformat` | |
12073 | else | |
12074 | case $host_os in | |
12075 | freebsd[23].*) objformat=aout ;; | |
12076 | *) objformat=elf ;; | |
12077 | esac | |
12078 | fi | |
12079 | version_type=freebsd-$objformat | |
12080 | case $version_type in | |
12081 | freebsd-elf*) | |
12082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12083 | need_version=no | |
12084 | need_lib_prefix=no | |
12085 | ;; | |
12086 | freebsd-*) | |
12087 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12088 | need_version=yes | |
12089 | ;; | |
12090 | esac | |
12091 | shlibpath_var=LD_LIBRARY_PATH | |
12092 | case $host_os in | |
12093 | freebsd2.*) | |
12094 | shlibpath_overrides_runpath=yes | |
12095 | ;; | |
12096 | freebsd3.[01]* | freebsdelf3.[01]*) | |
12097 | shlibpath_overrides_runpath=yes | |
12098 | hardcode_into_libs=yes | |
12099 | ;; | |
12100 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12101 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12102 | shlibpath_overrides_runpath=no | |
12103 | hardcode_into_libs=yes | |
12104 | ;; | |
12105 | *) # from 4.6 on, and DragonFly | |
12106 | shlibpath_overrides_runpath=yes | |
12107 | hardcode_into_libs=yes | |
12108 | ;; | |
12109 | esac | |
12110 | ;; | |
12111 | ||
6bb11ab3 L |
12112 | haiku*) |
12113 | version_type=linux | |
12114 | need_lib_prefix=no | |
12115 | need_version=no | |
12116 | dynamic_linker="$host_os runtime_loader" | |
12117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12118 | soname_spec='${libname}${release}${shared_ext}$major' | |
12119 | shlibpath_var=LIBRARY_PATH | |
12120 | shlibpath_overrides_runpath=yes | |
12121 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
12122 | hardcode_into_libs=yes | |
12123 | ;; | |
12124 | ||
12125 | hpux9* | hpux10* | hpux11*) | |
12126 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12127 | # link against other versions. | |
12128 | version_type=sunos | |
12129 | need_lib_prefix=no | |
12130 | need_version=no | |
12131 | case $host_cpu in | |
12132 | ia64*) | |
12133 | shrext_cmds='.so' | |
12134 | hardcode_into_libs=yes | |
12135 | dynamic_linker="$host_os dld.so" | |
12136 | shlibpath_var=LD_LIBRARY_PATH | |
12137 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12139 | soname_spec='${libname}${release}${shared_ext}$major' | |
12140 | if test "X$HPUX_IA64_MODE" = X32; then | |
12141 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12142 | else | |
12143 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12144 | fi | |
12145 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12146 | ;; | |
12147 | hppa*64*) | |
12148 | shrext_cmds='.sl' | |
12149 | hardcode_into_libs=yes | |
12150 | dynamic_linker="$host_os dld.sl" | |
12151 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12152 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12154 | soname_spec='${libname}${release}${shared_ext}$major' | |
12155 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12156 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12157 | ;; | |
12158 | *) | |
12159 | shrext_cmds='.sl' | |
12160 | dynamic_linker="$host_os dld.sl" | |
12161 | shlibpath_var=SHLIB_PATH | |
12162 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12164 | soname_spec='${libname}${release}${shared_ext}$major' | |
12165 | ;; | |
12166 | esac | |
12167 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
12168 | postinstall_cmds='chmod 555 $lib' | |
12169 | # or fails outright, so override atomically: | |
12170 | install_override_mode=555 | |
12171 | ;; | |
12172 | ||
12173 | interix[3-9]*) | |
12174 | version_type=linux | |
12175 | need_lib_prefix=no | |
12176 | need_version=no | |
12177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12178 | soname_spec='${libname}${release}${shared_ext}$major' | |
12179 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12180 | shlibpath_var=LD_LIBRARY_PATH | |
12181 | shlibpath_overrides_runpath=no | |
12182 | hardcode_into_libs=yes | |
12183 | ;; | |
12184 | ||
12185 | irix5* | irix6* | nonstopux*) | |
12186 | case $host_os in | |
12187 | nonstopux*) version_type=nonstopux ;; | |
12188 | *) | |
12189 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12190 | version_type=linux | |
12191 | else | |
12192 | version_type=irix | |
12193 | fi ;; | |
12194 | esac | |
12195 | need_lib_prefix=no | |
12196 | need_version=no | |
12197 | soname_spec='${libname}${release}${shared_ext}$major' | |
12198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12199 | case $host_os in | |
12200 | irix5* | nonstopux*) | |
12201 | libsuff= shlibsuff= | |
12202 | ;; | |
12203 | *) | |
12204 | case $LD in # libtool.m4 will add one of these switches to LD | |
12205 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12206 | libsuff= shlibsuff= libmagic=32-bit;; | |
12207 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12208 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12209 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12210 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12211 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12212 | esac | |
12213 | ;; | |
12214 | esac | |
12215 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12216 | shlibpath_overrides_runpath=no | |
12217 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12218 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12219 | hardcode_into_libs=yes | |
12220 | ;; | |
12221 | ||
12222 | # No shared lib support for Linux oldld, aout, or coff. | |
12223 | linux*oldld* | linux*aout* | linux*coff*) | |
12224 | dynamic_linker=no | |
12225 | ;; | |
12226 | ||
12227 | # This must be Linux ELF. | |
46f900c0 | 12228 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
6bb11ab3 L |
12229 | version_type=linux |
12230 | need_lib_prefix=no | |
12231 | need_version=no | |
12232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12233 | soname_spec='${libname}${release}${shared_ext}$major' | |
12234 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12235 | shlibpath_var=LD_LIBRARY_PATH | |
12236 | shlibpath_overrides_runpath=no | |
12237 | ||
12238 | # Some binutils ld are patched to set DT_RUNPATH | |
d0ac1c44 | 12239 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
2232061b MF |
12240 | $as_echo_n "(cached) " >&6 |
12241 | else | |
6bb11ab3 L |
12242 | lt_cv_shlibpath_overrides_runpath=no |
12243 | save_LDFLAGS=$LDFLAGS | |
12244 | save_libdir=$libdir | |
12245 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12246 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2232061b MF |
12248 | /* end confdefs.h. */ |
12249 | ||
2232061b MF |
12250 | int |
12251 | main () | |
12252 | { | |
12253 | ||
12254 | ; | |
12255 | return 0; | |
12256 | } | |
12257 | _ACEOF | |
6bb11ab3 L |
12258 | if ac_fn_c_try_link "$LINENO"; then : |
12259 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
12260 | lt_cv_shlibpath_overrides_runpath=yes | |
2232061b | 12261 | fi |
2232061b | 12262 | fi |
6bb11ab3 L |
12263 | rm -f core conftest.err conftest.$ac_objext \ |
12264 | conftest$ac_exeext conftest.$ac_ext | |
12265 | LDFLAGS=$save_LDFLAGS | |
12266 | libdir=$save_libdir | |
2232061b | 12267 | |
6bb11ab3 | 12268 | fi |
2232061b | 12269 | |
6bb11ab3 | 12270 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
2232061b | 12271 | |
6bb11ab3 L |
12272 | # This implies no fast_install, which is unacceptable. |
12273 | # Some rework will be needed to allow for fast_install | |
12274 | # before this can be enabled. | |
12275 | hardcode_into_libs=yes | |
2232061b | 12276 | |
6bb11ab3 L |
12277 | # Append ld.so.conf contents to the search path |
12278 | if test -f /etc/ld.so.conf; then | |
12279 | 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' ' '` | |
12280 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12281 | fi | |
2232061b | 12282 | |
6bb11ab3 L |
12283 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12284 | # powerpc, because MkLinux only supported shared libraries with the | |
12285 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12286 | # most powerpc-linux boxes support dynamic linking these days and | |
12287 | # people can always --disable-shared, the test was removed, and we | |
12288 | # assume the GNU/Linux dynamic linker is in use. | |
12289 | dynamic_linker='GNU/Linux ld.so' | |
12290 | ;; | |
12291 | ||
12292 | netbsd*) | |
12293 | version_type=sunos | |
12294 | need_lib_prefix=no | |
12295 | need_version=no | |
12296 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12298 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12299 | dynamic_linker='NetBSD (a.out) ld.so' | |
2232061b | 12300 | else |
6bb11ab3 L |
12301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12302 | soname_spec='${libname}${release}${shared_ext}$major' | |
12303 | dynamic_linker='NetBSD ld.elf_so' | |
12304 | fi | |
12305 | shlibpath_var=LD_LIBRARY_PATH | |
12306 | shlibpath_overrides_runpath=yes | |
12307 | hardcode_into_libs=yes | |
12308 | ;; | |
12309 | ||
12310 | newsos6) | |
12311 | version_type=linux | |
12312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12313 | shlibpath_var=LD_LIBRARY_PATH | |
12314 | shlibpath_overrides_runpath=yes | |
12315 | ;; | |
12316 | ||
12317 | *nto* | *qnx*) | |
12318 | version_type=qnx | |
12319 | need_lib_prefix=no | |
12320 | need_version=no | |
12321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12322 | soname_spec='${libname}${release}${shared_ext}$major' | |
12323 | shlibpath_var=LD_LIBRARY_PATH | |
12324 | shlibpath_overrides_runpath=no | |
12325 | hardcode_into_libs=yes | |
12326 | dynamic_linker='ldqnx.so' | |
12327 | ;; | |
12328 | ||
12329 | openbsd*) | |
12330 | version_type=sunos | |
12331 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12332 | need_lib_prefix=no | |
12333 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12334 | case $host_os in | |
12335 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12336 | *) need_version=no ;; | |
12337 | esac | |
12338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12339 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12340 | shlibpath_var=LD_LIBRARY_PATH | |
12341 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12342 | case $host_os in | |
12343 | openbsd2.[89] | openbsd2.[89].*) | |
12344 | shlibpath_overrides_runpath=no | |
12345 | ;; | |
12346 | *) | |
12347 | shlibpath_overrides_runpath=yes | |
12348 | ;; | |
12349 | esac | |
12350 | else | |
12351 | shlibpath_overrides_runpath=yes | |
12352 | fi | |
12353 | ;; | |
12354 | ||
12355 | os2*) | |
12356 | libname_spec='$name' | |
12357 | shrext_cmds=".dll" | |
12358 | need_lib_prefix=no | |
12359 | library_names_spec='$libname${shared_ext} $libname.a' | |
12360 | dynamic_linker='OS/2 ld.exe' | |
12361 | shlibpath_var=LIBPATH | |
12362 | ;; | |
12363 | ||
12364 | osf3* | osf4* | osf5*) | |
12365 | version_type=osf | |
12366 | need_lib_prefix=no | |
12367 | need_version=no | |
12368 | soname_spec='${libname}${release}${shared_ext}$major' | |
12369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12370 | shlibpath_var=LD_LIBRARY_PATH | |
12371 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12372 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12373 | ;; | |
12374 | ||
12375 | rdos*) | |
12376 | dynamic_linker=no | |
12377 | ;; | |
12378 | ||
12379 | solaris*) | |
12380 | version_type=linux | |
12381 | need_lib_prefix=no | |
12382 | need_version=no | |
12383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12384 | soname_spec='${libname}${release}${shared_ext}$major' | |
12385 | shlibpath_var=LD_LIBRARY_PATH | |
12386 | shlibpath_overrides_runpath=yes | |
12387 | hardcode_into_libs=yes | |
12388 | # ldd complains unless libraries are executable | |
12389 | postinstall_cmds='chmod +x $lib' | |
12390 | ;; | |
12391 | ||
12392 | sunos4*) | |
12393 | version_type=sunos | |
12394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12395 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12396 | shlibpath_var=LD_LIBRARY_PATH | |
12397 | shlibpath_overrides_runpath=yes | |
12398 | if test "$with_gnu_ld" = yes; then | |
12399 | need_lib_prefix=no | |
12400 | fi | |
12401 | need_version=yes | |
12402 | ;; | |
12403 | ||
12404 | sysv4 | sysv4.3*) | |
12405 | version_type=linux | |
12406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12407 | soname_spec='${libname}${release}${shared_ext}$major' | |
12408 | shlibpath_var=LD_LIBRARY_PATH | |
12409 | case $host_vendor in | |
12410 | sni) | |
12411 | shlibpath_overrides_runpath=no | |
12412 | need_lib_prefix=no | |
12413 | runpath_var=LD_RUN_PATH | |
12414 | ;; | |
12415 | siemens) | |
12416 | need_lib_prefix=no | |
12417 | ;; | |
12418 | motorola) | |
12419 | need_lib_prefix=no | |
12420 | need_version=no | |
12421 | shlibpath_overrides_runpath=no | |
12422 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12423 | ;; | |
12424 | esac | |
12425 | ;; | |
12426 | ||
12427 | sysv4*MP*) | |
12428 | if test -d /usr/nec ;then | |
12429 | version_type=linux | |
12430 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12431 | soname_spec='$libname${shared_ext}.$major' | |
12432 | shlibpath_var=LD_LIBRARY_PATH | |
2232061b | 12433 | fi |
6bb11ab3 L |
12434 | ;; |
12435 | ||
12436 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12437 | version_type=freebsd-elf | |
12438 | need_lib_prefix=no | |
12439 | need_version=no | |
12440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12441 | soname_spec='${libname}${release}${shared_ext}$major' | |
12442 | shlibpath_var=LD_LIBRARY_PATH | |
12443 | shlibpath_overrides_runpath=yes | |
12444 | hardcode_into_libs=yes | |
12445 | if test "$with_gnu_ld" = yes; then | |
12446 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12447 | else | |
12448 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12449 | case $host_os in | |
12450 | sco3.2v5*) | |
12451 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12452 | ;; | |
12453 | esac | |
12454 | fi | |
12455 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12456 | ;; | |
12457 | ||
12458 | tpf*) | |
12459 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12460 | version_type=linux | |
12461 | need_lib_prefix=no | |
12462 | need_version=no | |
12463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12464 | shlibpath_var=LD_LIBRARY_PATH | |
12465 | shlibpath_overrides_runpath=no | |
12466 | hardcode_into_libs=yes | |
12467 | ;; | |
12468 | ||
12469 | uts4*) | |
12470 | version_type=linux | |
12471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12472 | soname_spec='${libname}${release}${shared_ext}$major' | |
12473 | shlibpath_var=LD_LIBRARY_PATH | |
12474 | ;; | |
12475 | ||
12476 | *) | |
12477 | dynamic_linker=no | |
12478 | ;; | |
12479 | esac | |
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12481 | $as_echo "$dynamic_linker" >&6; } | |
12482 | test "$dynamic_linker" = no && can_build_shared=no | |
12483 | ||
12484 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12485 | if test "$GCC" = yes; then | |
12486 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
2232061b | 12487 | fi |
2232061b | 12488 | |
6bb11ab3 L |
12489 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12490 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12491 | fi | |
12492 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12493 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12494 | fi | |
12495 | ||
12496 | ||
12497 | ||
12498 | ||
12499 | ||
12500 | ||
12501 | ||
12502 | ||
12503 | ||
12504 | ||
12505 | ||
12506 | ||
12507 | ||
12508 | ||
12509 | ||
12510 | ||
12511 | ||
12512 | ||
12513 | ||
12514 | ||
12515 | ||
12516 | ||
12517 | ||
12518 | ||
12519 | ||
12520 | ||
2232061b | 12521 | |
2232061b | 12522 | |
2232061b | 12523 | |
2232061b | 12524 | |
2232061b MF |
12525 | |
12526 | ||
87326c78 | 12527 | |
87326c78 DD |
12528 | |
12529 | ||
12530 | ||
12531 | ||
12532 | ||
2232061b | 12533 | |
87326c78 DD |
12534 | |
12535 | ||
12536 | ||
12537 | ||
87326c78 | 12538 | |
87326c78 | 12539 | |
87326c78 DD |
12540 | |
12541 | ||
87326c78 | 12542 | |
87326c78 | 12543 | |
87326c78 DD |
12544 | |
12545 | ||
5f3ef9d0 | 12546 | |
5f3ef9d0 JB |
12547 | |
12548 | ||
12549 | ||
db2e4d67 MF |
12550 | |
12551 | ||
db2e4d67 | 12552 | |
db2e4d67 | 12553 | |
db2e4d67 | 12554 | |
db2e4d67 | 12555 | |
db2e4d67 | 12556 | |
db2e4d67 | 12557 | |
db2e4d67 | 12558 | |
db2e4d67 MF |
12559 | |
12560 | ||
db2e4d67 | 12561 | |
db2e4d67 MF |
12562 | |
12563 | ||
db2e4d67 | 12564 | |
db2e4d67 MF |
12565 | |
12566 | ||
87326c78 | 12567 | |
87326c78 | 12568 | |
87326c78 DD |
12569 | |
12570 | ||
87326c78 DD |
12571 | |
12572 | ||
87326c78 | 12573 | |
87326c78 | 12574 | |
87326c78 | 12575 | |
87326c78 | 12576 | |
87326c78 | 12577 | |
87326c78 | 12578 | |
87326c78 | 12579 | |
87326c78 | 12580 | |
87326c78 | 12581 | |
87326c78 | 12582 | |
87326c78 | 12583 | |
87326c78 | 12584 | |
87326c78 | 12585 | |
87326c78 | 12586 | |
6bb11ab3 L |
12587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12588 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12589 | hardcode_action= | |
12590 | if test -n "$hardcode_libdir_flag_spec" || | |
12591 | test -n "$runpath_var" || | |
12592 | test "X$hardcode_automatic" = "Xyes" ; then | |
87326c78 | 12593 | |
6bb11ab3 L |
12594 | # We can hardcode non-existent directories. |
12595 | if test "$hardcode_direct" != no && | |
12596 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12597 | # have to relink, otherwise we might link with an installed library | |
12598 | # when we should be linking with a yet-to-be-installed one | |
12599 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12600 | test "$hardcode_minus_L" != no; then | |
12601 | # Linking always hardcodes the temporary library directory. | |
12602 | hardcode_action=relink | |
12603 | else | |
12604 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12605 | hardcode_action=immediate | |
12606 | fi | |
12607 | else | |
12608 | # We cannot hardcode anything, or else we can only hardcode existing | |
12609 | # directories. | |
12610 | hardcode_action=unsupported | |
87326c78 | 12611 | fi |
6bb11ab3 L |
12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12613 | $as_echo "$hardcode_action" >&6; } | |
87326c78 | 12614 | |
6bb11ab3 L |
12615 | if test "$hardcode_action" = relink || |
12616 | test "$inherit_rpath" = yes; then | |
12617 | # Fast installation is not supported | |
12618 | enable_fast_install=no | |
12619 | elif test "$shlibpath_overrides_runpath" = yes || | |
12620 | test "$enable_shared" = no; then | |
12621 | # Fast installation is not necessary | |
12622 | enable_fast_install=needless | |
12623 | fi | |
87326c78 | 12624 | |
6bb11ab3 L |
12625 | |
12626 | ||
12627 | ||
12628 | ||
12629 | ||
12630 | if test "x$enable_dlopen" != xyes; then | |
12631 | enable_dlopen=unknown | |
12632 | enable_dlopen_self=unknown | |
12633 | enable_dlopen_self_static=unknown | |
12634 | else | |
12635 | lt_cv_dlopen=no | |
12636 | lt_cv_dlopen_libs= | |
12637 | ||
12638 | case $host_os in | |
12639 | beos*) | |
12640 | lt_cv_dlopen="load_add_on" | |
12641 | lt_cv_dlopen_libs= | |
12642 | lt_cv_dlopen_self=yes | |
12643 | ;; | |
12644 | ||
12645 | mingw* | pw32* | cegcc*) | |
12646 | lt_cv_dlopen="LoadLibrary" | |
12647 | lt_cv_dlopen_libs= | |
12648 | ;; | |
12649 | ||
12650 | cygwin*) | |
12651 | lt_cv_dlopen="dlopen" | |
12652 | lt_cv_dlopen_libs= | |
12653 | ;; | |
12654 | ||
12655 | darwin*) | |
12656 | # if libdl is installed we need to link against it | |
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12658 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 12659 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
6bb11ab3 L |
12660 | $as_echo_n "(cached) " >&6 |
12661 | else | |
12662 | ac_check_lib_save_LIBS=$LIBS | |
12663 | LIBS="-ldl $LIBS" | |
12664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12665 | /* end confdefs.h. */ | |
12666 | ||
12667 | /* Override any GCC internal prototype to avoid an error. | |
12668 | Use char because int might match the return type of a GCC | |
12669 | builtin and then its argument prototype would still apply. */ | |
12670 | #ifdef __cplusplus | |
12671 | extern "C" | |
12672 | #endif | |
12673 | char dlopen (); | |
12674 | int | |
12675 | main () | |
12676 | { | |
12677 | return dlopen (); | |
12678 | ; | |
12679 | return 0; | |
12680 | } | |
87326c78 | 12681 | _ACEOF |
6bb11ab3 L |
12682 | if ac_fn_c_try_link "$LINENO"; then : |
12683 | ac_cv_lib_dl_dlopen=yes | |
12684 | else | |
12685 | ac_cv_lib_dl_dlopen=no | |
12686 | fi | |
12687 | rm -f core conftest.err conftest.$ac_objext \ | |
12688 | conftest$ac_exeext conftest.$ac_ext | |
12689 | LIBS=$ac_check_lib_save_LIBS | |
12690 | fi | |
12691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12692 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 12693 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
6bb11ab3 L |
12694 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12695 | else | |
12696 | ||
12697 | lt_cv_dlopen="dyld" | |
12698 | lt_cv_dlopen_libs= | |
12699 | lt_cv_dlopen_self=yes | |
87326c78 DD |
12700 | |
12701 | fi | |
87326c78 | 12702 | |
6bb11ab3 | 12703 | ;; |
87326c78 | 12704 | |
6bb11ab3 L |
12705 | *) |
12706 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
d0ac1c44 | 12707 | if test "x$ac_cv_func_shl_load" = xyes; then : |
6bb11ab3 L |
12708 | lt_cv_dlopen="shl_load" |
12709 | else | |
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12711 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 12712 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
6bb11ab3 L |
12713 | $as_echo_n "(cached) " >&6 |
12714 | else | |
12715 | ac_check_lib_save_LIBS=$LIBS | |
12716 | LIBS="-ldld $LIBS" | |
12717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12718 | /* end confdefs.h. */ | |
12719 | ||
12720 | /* Override any GCC internal prototype to avoid an error. | |
12721 | Use char because int might match the return type of a GCC | |
12722 | builtin and then its argument prototype would still apply. */ | |
12723 | #ifdef __cplusplus | |
12724 | extern "C" | |
12725 | #endif | |
12726 | char shl_load (); | |
12727 | int | |
12728 | main () | |
12729 | { | |
12730 | return shl_load (); | |
12731 | ; | |
12732 | return 0; | |
12733 | } | |
12734 | _ACEOF | |
12735 | if ac_fn_c_try_link "$LINENO"; then : | |
12736 | ac_cv_lib_dld_shl_load=yes | |
12737 | else | |
12738 | ac_cv_lib_dld_shl_load=no | |
12739 | fi | |
12740 | rm -f core conftest.err conftest.$ac_objext \ | |
12741 | conftest$ac_exeext conftest.$ac_ext | |
12742 | LIBS=$ac_check_lib_save_LIBS | |
12743 | fi | |
12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12745 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 12746 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
6bb11ab3 L |
12747 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
12748 | else | |
12749 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
d0ac1c44 | 12750 | if test "x$ac_cv_func_dlopen" = xyes; then : |
6bb11ab3 L |
12751 | lt_cv_dlopen="dlopen" |
12752 | else | |
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12754 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 12755 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
87326c78 DD |
12756 | $as_echo_n "(cached) " >&6 |
12757 | else | |
12758 | ac_check_lib_save_LIBS=$LIBS | |
6bb11ab3 | 12759 | LIBS="-ldl $LIBS" |
87326c78 DD |
12760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12761 | /* end confdefs.h. */ | |
12762 | ||
12763 | /* Override any GCC internal prototype to avoid an error. | |
12764 | Use char because int might match the return type of a GCC | |
12765 | builtin and then its argument prototype would still apply. */ | |
12766 | #ifdef __cplusplus | |
12767 | extern "C" | |
12768 | #endif | |
6bb11ab3 | 12769 | char dlopen (); |
87326c78 DD |
12770 | int |
12771 | main () | |
12772 | { | |
6bb11ab3 | 12773 | return dlopen (); |
87326c78 DD |
12774 | ; |
12775 | return 0; | |
12776 | } | |
12777 | _ACEOF | |
12778 | if ac_fn_c_try_link "$LINENO"; then : | |
6bb11ab3 | 12779 | ac_cv_lib_dl_dlopen=yes |
87326c78 | 12780 | else |
6bb11ab3 | 12781 | ac_cv_lib_dl_dlopen=no |
87326c78 DD |
12782 | fi |
12783 | rm -f core conftest.err conftest.$ac_objext \ | |
12784 | conftest$ac_exeext conftest.$ac_ext | |
12785 | LIBS=$ac_check_lib_save_LIBS | |
12786 | fi | |
6bb11ab3 L |
12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12788 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 12789 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
6bb11ab3 L |
12790 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12791 | else | |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12793 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 12794 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
87326c78 DD |
12795 | $as_echo_n "(cached) " >&6 |
12796 | else | |
12797 | ac_check_lib_save_LIBS=$LIBS | |
6bb11ab3 | 12798 | LIBS="-lsvld $LIBS" |
87326c78 DD |
12799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12800 | /* end confdefs.h. */ | |
12801 | ||
12802 | /* Override any GCC internal prototype to avoid an error. | |
12803 | Use char because int might match the return type of a GCC | |
12804 | builtin and then its argument prototype would still apply. */ | |
12805 | #ifdef __cplusplus | |
12806 | extern "C" | |
12807 | #endif | |
6bb11ab3 | 12808 | char dlopen (); |
87326c78 DD |
12809 | int |
12810 | main () | |
12811 | { | |
6bb11ab3 | 12812 | return dlopen (); |
87326c78 DD |
12813 | ; |
12814 | return 0; | |
12815 | } | |
12816 | _ACEOF | |
12817 | if ac_fn_c_try_link "$LINENO"; then : | |
6bb11ab3 | 12818 | ac_cv_lib_svld_dlopen=yes |
87326c78 | 12819 | else |
6bb11ab3 | 12820 | ac_cv_lib_svld_dlopen=no |
87326c78 DD |
12821 | fi |
12822 | rm -f core conftest.err conftest.$ac_objext \ | |
12823 | conftest$ac_exeext conftest.$ac_ext | |
12824 | LIBS=$ac_check_lib_save_LIBS | |
12825 | fi | |
6bb11ab3 L |
12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12827 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 12828 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
6bb11ab3 | 12829 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
87326c78 | 12830 | else |
6bb11ab3 L |
12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12832 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 12833 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
87326c78 DD |
12834 | $as_echo_n "(cached) " >&6 |
12835 | else | |
6bb11ab3 L |
12836 | ac_check_lib_save_LIBS=$LIBS |
12837 | LIBS="-ldld $LIBS" | |
87326c78 DD |
12838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12839 | /* end confdefs.h. */ | |
12840 | ||
12841 | /* Override any GCC internal prototype to avoid an error. | |
12842 | Use char because int might match the return type of a GCC | |
12843 | builtin and then its argument prototype would still apply. */ | |
12844 | #ifdef __cplusplus | |
12845 | extern "C" | |
12846 | #endif | |
6bb11ab3 | 12847 | char dld_link (); |
87326c78 DD |
12848 | int |
12849 | main () | |
12850 | { | |
6bb11ab3 | 12851 | return dld_link (); |
87326c78 DD |
12852 | ; |
12853 | return 0; | |
12854 | } | |
12855 | _ACEOF | |
6bb11ab3 L |
12856 | if ac_fn_c_try_link "$LINENO"; then : |
12857 | ac_cv_lib_dld_dld_link=yes | |
12858 | else | |
12859 | ac_cv_lib_dld_dld_link=no | |
12860 | fi | |
12861 | rm -f core conftest.err conftest.$ac_objext \ | |
12862 | conftest$ac_exeext conftest.$ac_ext | |
12863 | LIBS=$ac_check_lib_save_LIBS | |
12864 | fi | |
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12866 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 12867 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
6bb11ab3 L |
12868 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
12869 | fi | |
12870 | ||
12871 | ||
12872 | fi | |
12873 | ||
12874 | ||
12875 | fi | |
12876 | ||
12877 | ||
12878 | fi | |
12879 | ||
12880 | ||
12881 | fi | |
12882 | ||
12883 | ||
12884 | fi | |
12885 | ||
12886 | ;; | |
12887 | esac | |
12888 | ||
12889 | if test "x$lt_cv_dlopen" != xno; then | |
12890 | enable_dlopen=yes | |
87326c78 | 12891 | else |
6bb11ab3 L |
12892 | enable_dlopen=no |
12893 | fi | |
12894 | ||
12895 | case $lt_cv_dlopen in | |
12896 | dlopen) | |
12897 | save_CPPFLAGS="$CPPFLAGS" | |
12898 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12899 | ||
12900 | save_LDFLAGS="$LDFLAGS" | |
12901 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12902 | ||
12903 | save_LIBS="$LIBS" | |
12904 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12905 | ||
12906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12907 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 12908 | if ${lt_cv_dlopen_self+:} false; then : |
6bb11ab3 L |
12909 | $as_echo_n "(cached) " >&6 |
12910 | else | |
12911 | if test "$cross_compiling" = yes; then : | |
12912 | lt_cv_dlopen_self=cross | |
12913 | else | |
12914 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12915 | lt_status=$lt_dlunknown | |
12916 | cat > conftest.$ac_ext <<_LT_EOF | |
68ed2854 | 12917 | #line 12917 "configure" |
6bb11ab3 L |
12918 | #include "confdefs.h" |
12919 | ||
12920 | #if HAVE_DLFCN_H | |
12921 | #include <dlfcn.h> | |
12922 | #endif | |
12923 | ||
12924 | #include <stdio.h> | |
12925 | ||
12926 | #ifdef RTLD_GLOBAL | |
12927 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12928 | #else | |
12929 | # ifdef DL_GLOBAL | |
12930 | # define LT_DLGLOBAL DL_GLOBAL | |
12931 | # else | |
12932 | # define LT_DLGLOBAL 0 | |
12933 | # endif | |
12934 | #endif | |
12935 | ||
12936 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12937 | find out it does not work in some platform. */ | |
12938 | #ifndef LT_DLLAZY_OR_NOW | |
12939 | # ifdef RTLD_LAZY | |
12940 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12941 | # else | |
12942 | # ifdef DL_LAZY | |
12943 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12944 | # else | |
12945 | # ifdef RTLD_NOW | |
12946 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12947 | # else | |
12948 | # ifdef DL_NOW | |
12949 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12950 | # else | |
12951 | # define LT_DLLAZY_OR_NOW 0 | |
12952 | # endif | |
12953 | # endif | |
12954 | # endif | |
12955 | # endif | |
12956 | #endif | |
12957 | ||
12958 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12959 | correspondingly for the symbols needed. */ | |
12960 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12961 | void fnord () __attribute__((visibility("default"))); | |
12962 | #endif | |
12963 | ||
12964 | void fnord () { int i=42; } | |
12965 | int main () | |
12966 | { | |
12967 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12968 | int status = $lt_dlunknown; | |
12969 | ||
12970 | if (self) | |
12971 | { | |
12972 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12973 | else | |
12974 | { | |
12975 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12976 | else puts (dlerror ()); | |
12977 | } | |
12978 | /* dlclose (self); */ | |
12979 | } | |
12980 | else | |
12981 | puts (dlerror ()); | |
12982 | ||
12983 | return status; | |
12984 | } | |
12985 | _LT_EOF | |
12986 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12987 | (eval $ac_link) 2>&5 | |
12988 | ac_status=$? | |
12989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12990 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12991 | (./conftest; exit; ) >&5 2>/dev/null | |
12992 | lt_status=$? | |
12993 | case x$lt_status in | |
12994 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12995 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12996 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12997 | esac | |
12998 | else : | |
12999 | # compilation failed | |
13000 | lt_cv_dlopen_self=no | |
87326c78 | 13001 | fi |
87326c78 | 13002 | fi |
6bb11ab3 L |
13003 | rm -fr conftest* |
13004 | ||
13005 | ||
87326c78 | 13006 | fi |
6bb11ab3 L |
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
13008 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
87326c78 | 13009 | |
6bb11ab3 L |
13010 | if test "x$lt_cv_dlopen_self" = xyes; then |
13011 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
13012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
13013 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 13014 | if ${lt_cv_dlopen_self_static+:} false; then : |
6bb11ab3 | 13015 | $as_echo_n "(cached) " >&6 |
87326c78 | 13016 | else |
6bb11ab3 L |
13017 | if test "$cross_compiling" = yes; then : |
13018 | lt_cv_dlopen_self_static=cross | |
13019 | else | |
13020 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13021 | lt_status=$lt_dlunknown | |
13022 | cat > conftest.$ac_ext <<_LT_EOF | |
68ed2854 | 13023 | #line 13023 "configure" |
6bb11ab3 L |
13024 | #include "confdefs.h" |
13025 | ||
13026 | #if HAVE_DLFCN_H | |
13027 | #include <dlfcn.h> | |
13028 | #endif | |
13029 | ||
13030 | #include <stdio.h> | |
13031 | ||
13032 | #ifdef RTLD_GLOBAL | |
13033 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13034 | #else | |
13035 | # ifdef DL_GLOBAL | |
13036 | # define LT_DLGLOBAL DL_GLOBAL | |
13037 | # else | |
13038 | # define LT_DLGLOBAL 0 | |
13039 | # endif | |
13040 | #endif | |
13041 | ||
13042 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13043 | find out it does not work in some platform. */ | |
13044 | #ifndef LT_DLLAZY_OR_NOW | |
13045 | # ifdef RTLD_LAZY | |
13046 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13047 | # else | |
13048 | # ifdef DL_LAZY | |
13049 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13050 | # else | |
13051 | # ifdef RTLD_NOW | |
13052 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13053 | # else | |
13054 | # ifdef DL_NOW | |
13055 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13056 | # else | |
13057 | # define LT_DLLAZY_OR_NOW 0 | |
13058 | # endif | |
13059 | # endif | |
13060 | # endif | |
13061 | # endif | |
13062 | #endif | |
13063 | ||
13064 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
13065 | correspondingly for the symbols needed. */ | |
13066 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
13067 | void fnord () __attribute__((visibility("default"))); | |
13068 | #endif | |
13069 | ||
13070 | void fnord () { int i=42; } | |
13071 | int main () | |
13072 | { | |
13073 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13074 | int status = $lt_dlunknown; | |
13075 | ||
13076 | if (self) | |
13077 | { | |
13078 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13079 | else | |
13080 | { | |
13081 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13082 | else puts (dlerror ()); | |
13083 | } | |
13084 | /* dlclose (self); */ | |
13085 | } | |
13086 | else | |
13087 | puts (dlerror ()); | |
13088 | ||
13089 | return status; | |
13090 | } | |
13091 | _LT_EOF | |
13092 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13093 | (eval $ac_link) 2>&5 | |
13094 | ac_status=$? | |
13095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13096 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13097 | (./conftest; exit; ) >&5 2>/dev/null | |
13098 | lt_status=$? | |
13099 | case x$lt_status in | |
13100 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13101 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13102 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
13103 | esac | |
13104 | else : | |
13105 | # compilation failed | |
13106 | lt_cv_dlopen_self_static=no | |
13107 | fi | |
87326c78 | 13108 | fi |
6bb11ab3 L |
13109 | rm -fr conftest* |
13110 | ||
13111 | ||
87326c78 | 13112 | fi |
6bb11ab3 L |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
13114 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
13115 | fi | |
13116 | ||
13117 | CPPFLAGS="$save_CPPFLAGS" | |
13118 | LDFLAGS="$save_LDFLAGS" | |
13119 | LIBS="$save_LIBS" | |
13120 | ;; | |
13121 | esac | |
13122 | ||
13123 | case $lt_cv_dlopen_self in | |
13124 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13125 | *) enable_dlopen_self=unknown ;; | |
13126 | esac | |
13127 | ||
13128 | case $lt_cv_dlopen_self_static in | |
13129 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13130 | *) enable_dlopen_self_static=unknown ;; | |
13131 | esac | |
13132 | fi | |
13133 | ||
13134 | ||
13135 | ||
13136 | ||
13137 | ||
13138 | ||
13139 | ||
13140 | ||
13141 | ||
13142 | ||
13143 | ||
13144 | ||
13145 | ||
13146 | ||
13147 | ||
13148 | ||
13149 | ||
13150 | striplib= | |
13151 | old_striplib= | |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
13153 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
13154 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
13155 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13156 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13158 | $as_echo "yes" >&6; } | |
13159 | else | |
13160 | # FIXME - insert some real tests, host_os isn't really good enough | |
13161 | case $host_os in | |
13162 | darwin*) | |
13163 | if test -n "$STRIP" ; then | |
13164 | striplib="$STRIP -x" | |
13165 | old_striplib="$STRIP -S" | |
13166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13167 | $as_echo "yes" >&6; } | |
13168 | else | |
13169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13170 | $as_echo "no" >&6; } | |
13171 | fi | |
13172 | ;; | |
13173 | *) | |
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13175 | $as_echo "no" >&6; } | |
13176 | ;; | |
13177 | esac | |
13178 | fi | |
13179 | ||
13180 | ||
13181 | ||
13182 | ||
13183 | ||
13184 | ||
13185 | ||
13186 | ||
13187 | ||
13188 | ||
13189 | ||
13190 | ||
13191 | # Report which library types will actually be built | |
13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
13193 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13195 | $as_echo "$can_build_shared" >&6; } | |
13196 | ||
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
13198 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13199 | test "$can_build_shared" = "no" && enable_shared=no | |
13200 | ||
13201 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13202 | # are all built from PIC. | |
13203 | case $host_os in | |
13204 | aix3*) | |
13205 | test "$enable_shared" = yes && enable_static=no | |
13206 | if test -n "$RANLIB"; then | |
13207 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13208 | postinstall_cmds='$RANLIB $lib' | |
13209 | fi | |
13210 | ;; | |
13211 | ||
13212 | aix[4-9]*) | |
13213 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13214 | test "$enable_shared" = yes && enable_static=no | |
13215 | fi | |
13216 | ;; | |
13217 | esac | |
13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13219 | $as_echo "$enable_shared" >&6; } | |
13220 | ||
13221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
13222 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13223 | # Make sure either enable_shared or enable_static is yes. | |
13224 | test "$enable_shared" = yes || enable_static=yes | |
13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13226 | $as_echo "$enable_static" >&6; } | |
13227 | ||
13228 | ||
13229 | ||
13230 | ||
13231 | fi | |
13232 | ac_ext=c | |
13233 | ac_cpp='$CPP $CPPFLAGS' | |
13234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13237 | ||
13238 | CC="$lt_save_CC" | |
13239 | ||
13240 | ||
13241 | ||
13242 | ||
13243 | ||
13244 | ||
13245 | ||
13246 | ||
13247 | ||
87326c78 | 13248 | |
87326c78 | 13249 | |
87326c78 | 13250 | |
87326c78 | 13251 | |
6bb11ab3 L |
13252 | ac_config_commands="$ac_config_commands libtool" |
13253 | ||
13254 | ||
13255 | ||
13256 | ||
13257 | # Only expand once: | |
13258 | ||
13259 | ||
87326c78 DD |
13260 | |
13261 | ||
13262 | . ${srcdir}/../../bfd/configure.host | |
13263 | ||
13264 | ||
13265 | ||
31e6ad7d MF |
13266 | |
13267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
13268 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13269 | # Check whether --enable-maintainer-mode was given. | |
87326c78 | 13270 | if test "${enable_maintainer_mode+set}" = set; then : |
31e6ad7d MF |
13271 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
13272 | else | |
13273 | USE_MAINTAINER_MODE=no | |
87326c78 | 13274 | fi |
31e6ad7d MF |
13275 | |
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
13277 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
13278 | if test $USE_MAINTAINER_MODE = yes; then | |
13279 | MAINTAINER_MODE_TRUE= | |
13280 | MAINTAINER_MODE_FALSE='#' | |
87326c78 | 13281 | else |
31e6ad7d MF |
13282 | MAINTAINER_MODE_TRUE='#' |
13283 | MAINTAINER_MODE_FALSE= | |
87326c78 DD |
13284 | fi |
13285 | ||
31e6ad7d MF |
13286 | MAINT=$MAINTAINER_MODE_TRUE |
13287 | ||
13288 | ||
87326c78 DD |
13289 | |
13290 | ||
ce39bd38 MF |
13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5 |
13292 | $as_echo_n "checking for sim debug setting... " >&6; } | |
13293 | sim_debug="0" | |
87326c78 DD |
13294 | # Check whether --enable-sim-debug was given. |
13295 | if test "${enable_sim_debug+set}" = set; then : | |
13296 | enableval=$enable_sim_debug; case "${enableval}" in | |
ce39bd38 MF |
13297 | yes) sim_debug="7";; |
13298 | no) sim_debug="0";; | |
13299 | *) sim_debug="($enableval)";; | |
87326c78 | 13300 | esac |
87326c78 | 13301 | fi |
ce39bd38 MF |
13302 | if test "$sim_debug" != "0"; then |
13303 | ||
13304 | cat >>confdefs.h <<_ACEOF | |
13305 | #define DEBUG $sim_debug | |
13306 | _ACEOF | |
13307 | ||
87326c78 DD |
13308 | fi |
13309 | ||
ce39bd38 MF |
13310 | cat >>confdefs.h <<_ACEOF |
13311 | #define WITH_DEBUG $sim_debug | |
13312 | _ACEOF | |
13313 | ||
13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5 | |
13315 | $as_echo "$sim_debug" >&6; } | |
87326c78 DD |
13316 | |
13317 | ||
ce39bd38 MF |
13318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5 |
13319 | $as_echo_n "checking for sim stdio debug behavior... " >&6; } | |
13320 | sim_stdio="0" | |
87326c78 DD |
13321 | # Check whether --enable-sim-stdio was given. |
13322 | if test "${enable_sim_stdio+set}" = set; then : | |
13323 | enableval=$enable_sim_stdio; case "${enableval}" in | |
ce39bd38 MF |
13324 | yes) sim_stdio="DO_USE_STDIO";; |
13325 | no) sim_stdio="DONT_USE_STDIO";; | |
d0ac1c44 | 13326 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;; |
87326c78 | 13327 | esac |
87326c78 DD |
13328 | fi |
13329 | ||
ce39bd38 MF |
13330 | cat >>confdefs.h <<_ACEOF |
13331 | #define WITH_STDIO $sim_stdio | |
13332 | _ACEOF | |
13333 | ||
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5 | |
13335 | $as_echo "$sim_stdio" >&6; } | |
87326c78 DD |
13336 | |
13337 | ||
ce39bd38 MF |
13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5 |
13339 | $as_echo_n "checking for sim trace settings... " >&6; } | |
13340 | sim_trace="~TRACE_debug" | |
87326c78 DD |
13341 | # Check whether --enable-sim-trace was given. |
13342 | if test "${enable_sim_trace+set}" = set; then : | |
13343 | enableval=$enable_sim_trace; case "${enableval}" in | |
ce39bd38 MF |
13344 | yes) sim_trace="-1";; |
13345 | no) sim_trace="0";; | |
87326c78 | 13346 | [-0-9]*) |
ce39bd38 | 13347 | sim_trace="'(${enableval})'";; |
2232061b | 13348 | [[:lower:]]*) |
87326c78 DD |
13349 | sim_trace="" |
13350 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
13351 | if test x"$sim_trace" = x; then | |
ce39bd38 | 13352 | sim_trace="(TRACE_$x" |
87326c78 DD |
13353 | else |
13354 | sim_trace="${sim_trace}|TRACE_$x" | |
13355 | fi | |
13356 | done | |
ce39bd38 | 13357 | sim_trace="$sim_trace)" ;; |
87326c78 | 13358 | esac |
87326c78 DD |
13359 | fi |
13360 | ||
ce39bd38 MF |
13361 | cat >>confdefs.h <<_ACEOF |
13362 | #define WITH_TRACE $sim_trace | |
13363 | _ACEOF | |
13364 | ||
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5 | |
13366 | $as_echo "$sim_trace" >&6; } | |
87326c78 DD |
13367 | |
13368 | ||
ce39bd38 MF |
13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5 |
13370 | $as_echo_n "checking for sim profile settings... " >&6; } | |
13371 | profile="1" | |
13372 | sim_profile="-1" | |
87326c78 DD |
13373 | # Check whether --enable-sim-profile was given. |
13374 | if test "${enable_sim_profile+set}" = set; then : | |
13375 | enableval=$enable_sim_profile; case "${enableval}" in | |
ce39bd38 MF |
13376 | yes) profile="1" sim_profile="-1";; |
13377 | no) profile="0" sim_profile="0";; | |
87326c78 | 13378 | [-0-9]*) |
ce39bd38 | 13379 | profile="(${enableval})" sim_profile="(${enableval})";; |
87326c78 | 13380 | [a-z]*) |
ce39bd38 | 13381 | profile="1" |
87326c78 DD |
13382 | sim_profile="" |
13383 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
13384 | if test x"$sim_profile" = x; then | |
ce39bd38 | 13385 | sim_profile="(PROFILE_$x" |
87326c78 DD |
13386 | else |
13387 | sim_profile="${sim_profile}|PROFILE_$x" | |
13388 | fi | |
13389 | done | |
ce39bd38 | 13390 | sim_profile="$sim_profile)" ;; |
87326c78 | 13391 | esac |
87326c78 DD |
13392 | fi |
13393 | ||
ce39bd38 MF |
13394 | cat >>confdefs.h <<_ACEOF |
13395 | #define PROFILE $profile | |
13396 | _ACEOF | |
87326c78 DD |
13397 | |
13398 | ||
ce39bd38 MF |
13399 | cat >>confdefs.h <<_ACEOF |
13400 | #define WITH_PROFILE $sim_profile | |
13401 | _ACEOF | |
13402 | ||
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5 | |
13404 | $as_echo "$sim_profile" >&6; } | |
13405 | ||
13406 | ||
13407 | ||
13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 | |
13409 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
13410 | sim_assert="1" | |
35656e95 MF |
13411 | # Check whether --enable-sim-assert was given. |
13412 | if test "${enable_sim_assert+set}" = set; then : | |
13413 | enableval=$enable_sim_assert; case "${enableval}" in | |
ce39bd38 MF |
13414 | yes) sim_assert="1";; |
13415 | no) sim_assert="0";; | |
d0ac1c44 | 13416 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; |
35656e95 | 13417 | esac |
35656e95 MF |
13418 | fi |
13419 | ||
ce39bd38 MF |
13420 | cat >>confdefs.h <<_ACEOF |
13421 | #define WITH_ASSERT $sim_assert | |
13422 | _ACEOF | |
13423 | ||
13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
13425 | $as_echo "$sim_assert" >&6; } | |
13426 | ||
35656e95 | 13427 | |
ce39bd38 MF |
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 |
13429 | $as_echo_n "checking default sim environment setting... " >&6; } | |
13430 | sim_environment="ALL_ENVIRONMENT" | |
16f7876d MF |
13431 | # Check whether --enable-sim-environment was given. |
13432 | if test "${enable_sim_environment+set}" = set; then : | |
13433 | enableval=$enable_sim_environment; case "${enableval}" in | |
ce39bd38 MF |
13434 | all | ALL) sim_environment="ALL_ENVIRONMENT";; |
13435 | user | USER) sim_environment="USER_ENVIRONMENT";; | |
13436 | virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";; | |
13437 | operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";; | |
d0ac1c44 | 13438 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;; |
16f7876d | 13439 | esac |
16f7876d MF |
13440 | fi |
13441 | ||
ce39bd38 MF |
13442 | cat >>confdefs.h <<_ACEOF |
13443 | #define WITH_ENVIRONMENT $sim_environment | |
13444 | _ACEOF | |
13445 | ||
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5 | |
13447 | $as_echo "$sim_environment" >&6; } | |
13448 | ||
16f7876d | 13449 | |
347fe5bb MF |
13450 | sim_inline="-DDEFAULT_INLINE=0" |
13451 | # Check whether --enable-sim-inline was given. | |
13452 | if test "${enable_sim_inline+set}" = set; then : | |
13453 | enableval=$enable_sim_inline; sim_inline="" | |
13454 | case "$enableval" in | |
13455 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
13456 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
13457 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
13458 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
13459 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
13460 | new_flag="" | |
13461 | case "$x" in | |
13462 | *_INLINE=*) new_flag="-D$x";; | |
13463 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
13464 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
13465 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
13466 | esac | |
13467 | if test x"$sim_inline" = x""; then | |
13468 | sim_inline="$new_flag" | |
13469 | else | |
13470 | sim_inline="$sim_inline $new_flag" | |
13471 | fi | |
13472 | done;; | |
13473 | esac | |
13474 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
13475 | echo "Setting inline flags = $sim_inline" 6>&1 | |
13476 | fi | |
13477 | fi | |
13478 | ||
13479 | ||
13480 | ||
87326c78 DD |
13481 | |
13482 | # Check whether --with-pkgversion was given. | |
13483 | if test "${with_pkgversion+set}" = set; then : | |
13484 | withval=$with_pkgversion; case "$withval" in | |
d0ac1c44 | 13485 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; |
87326c78 DD |
13486 | no) PKGVERSION= ;; |
13487 | *) PKGVERSION="($withval) " ;; | |
13488 | esac | |
13489 | else | |
bf12d44e | 13490 | PKGVERSION="(SIM) " |
87326c78 DD |
13491 | |
13492 | fi | |
13493 | ||
13494 | ||
13495 | ||
13496 | ||
13497 | ||
13498 | # Check whether --with-bugurl was given. | |
13499 | if test "${with_bugurl+set}" = set; then : | |
13500 | withval=$with_bugurl; case "$withval" in | |
d0ac1c44 | 13501 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; |
87326c78 DD |
13502 | no) BUGURL= |
13503 | ;; | |
13504 | *) BUGURL="$withval" | |
13505 | ;; | |
13506 | esac | |
13507 | else | |
dfb856ba | 13508 | BUGURL="https://www.gnu.org/software/gdb/bugs/" |
87326c78 DD |
13509 | |
13510 | fi | |
13511 | ||
13512 | case ${BUGURL} in | |
13513 | "") | |
13514 | REPORT_BUGS_TO= | |
13515 | REPORT_BUGS_TEXI= | |
13516 | ;; | |
13517 | *) | |
13518 | REPORT_BUGS_TO="<$BUGURL>" | |
13519 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
13520 | ;; | |
13521 | esac; | |
13522 | ||
13523 | ||
13524 | ||
13525 | ||
13526 | cat >>confdefs.h <<_ACEOF | |
13527 | #define PKGVERSION "$PKGVERSION" | |
13528 | _ACEOF | |
13529 | ||
13530 | ||
13531 | cat >>confdefs.h <<_ACEOF | |
13532 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
13533 | _ACEOF | |
13534 | ||
13535 | ||
13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
13537 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
d0ac1c44 | 13538 | if ${ac_cv_type_signal+:} false; then : |
87326c78 DD |
13539 | $as_echo_n "(cached) " >&6 |
13540 | else | |
13541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13542 | /* end confdefs.h. */ | |
13543 | #include <sys/types.h> | |
13544 | #include <signal.h> | |
13545 | ||
13546 | int | |
13547 | main () | |
13548 | { | |
13549 | return *(signal (0, 0)) (0) == 1; | |
13550 | ; | |
13551 | return 0; | |
13552 | } | |
13553 | _ACEOF | |
13554 | if ac_fn_c_try_compile "$LINENO"; then : | |
13555 | ac_cv_type_signal=int | |
13556 | else | |
13557 | ac_cv_type_signal=void | |
13558 | fi | |
13559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13560 | fi | |
13561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
13562 | $as_echo "$ac_cv_type_signal" >&6; } | |
13563 | ||
13564 | cat >>confdefs.h <<_ACEOF | |
13565 | #define RETSIGTYPE $ac_cv_type_signal | |
13566 | _ACEOF | |
13567 | ||
13568 | ||
13569 | ||
13570 | ||
13571 | ||
87326c78 DD |
13572 | |
13573 | ||
13574 | for ac_header in getopt.h | |
13575 | do : | |
13576 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
d0ac1c44 | 13577 | if test "x$ac_cv_header_getopt_h" = xyes; then : |
87326c78 DD |
13578 | cat >>confdefs.h <<_ACEOF |
13579 | #define HAVE_GETOPT_H 1 | |
13580 | _ACEOF | |
13581 | ||
13582 | fi | |
13583 | ||
13584 | done | |
13585 | ||
13586 | ||
13587 | ||
87326c78 DD |
13588 | cgen_breaks="" |
13589 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
13590 | cgen_breaks="break cgen_rtx_error"; | |
13591 | fi | |
13592 | ||
13593 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in" | |
13594 | ||
13595 | ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" | |
13596 | ||
13597 | ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" | |
13598 | ||
13599 | ac_config_commands="$ac_config_commands Makefile" | |
13600 | ||
13601 | ac_config_commands="$ac_config_commands stamp-h" | |
13602 | ||
13603 | cat >confcache <<\_ACEOF | |
13604 | # This file is a shell script that caches the results of configure | |
13605 | # tests run on this system so they can be shared between configure | |
13606 | # scripts and configure runs, see configure's option --config-cache. | |
13607 | # It is not useful on other systems. If it contains results you don't | |
13608 | # want to keep, you may remove or edit it. | |
13609 | # | |
13610 | # config.status only pays attention to the cache file if you give it | |
13611 | # the --recheck option to rerun configure. | |
13612 | # | |
13613 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13614 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13615 | # following values. | |
13616 | ||
13617 | _ACEOF | |
13618 | ||
13619 | # The following way of writing the cache mishandles newlines in values, | |
13620 | # but we know of no workaround that is simple, portable, and efficient. | |
13621 | # So, we kill variables containing newlines. | |
13622 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13623 | # and sets the high bit in the cache file unless we assign to the vars. | |
13624 | ( | |
13625 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13626 | eval ac_val=\$$ac_var | |
13627 | case $ac_val in #( | |
13628 | *${as_nl}*) | |
13629 | case $ac_var in #( | |
13630 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
13631 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
13632 | esac | |
13633 | case $ac_var in #( | |
13634 | _ | IFS | as_nl) ;; #( | |
13635 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
13636 | *) { eval $ac_var=; unset $ac_var;} ;; | |
13637 | esac ;; | |
13638 | esac | |
13639 | done | |
13640 | ||
13641 | (set) 2>&1 | | |
13642 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
13643 | *${as_nl}ac_space=\ *) | |
13644 | # `set' does not quote correctly, so add quotes: double-quote | |
13645 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
13646 | sed -n \ | |
13647 | "s/'/'\\\\''/g; | |
13648 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13649 | ;; #( | |
13650 | *) | |
13651 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13652 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
13653 | ;; | |
13654 | esac | | |
13655 | sort | |
13656 | ) | | |
13657 | sed ' | |
13658 | /^ac_cv_env_/b end | |
13659 | t clear | |
13660 | :clear | |
13661 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13662 | t end | |
13663 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13664 | :end' >>confcache | |
13665 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13666 | if test -w "$cache_file"; then | |
d0ac1c44 | 13667 | if test "x$cache_file" != "x/dev/null"; then |
87326c78 DD |
13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
13669 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
13670 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
13671 | cat confcache >"$cache_file" | |
13672 | else | |
13673 | case $cache_file in #( | |
13674 | */* | ?:*) | |
13675 | mv -f confcache "$cache_file"$$ && | |
13676 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
13677 | *) | |
13678 | mv -f confcache "$cache_file" ;; | |
13679 | esac | |
13680 | fi | |
13681 | fi | |
87326c78 DD |
13682 | else |
13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
13684 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
13685 | fi | |
13686 | fi | |
13687 | rm -f confcache | |
13688 | ||
13689 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13690 | # Let make expand exec_prefix. | |
13691 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13692 | ||
13693 | DEFS=-DHAVE_CONFIG_H | |
13694 | ||
13695 | ac_libobjs= | |
13696 | ac_ltlibobjs= | |
d0ac1c44 | 13697 | U= |
87326c78 DD |
13698 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13699 | # 1. Remove the extension, and $U if already installed. | |
13700 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
13701 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13702 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13703 | # will be set to the directory where LIBOBJS objects are built. | |
13704 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
13705 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
13706 | done | |
13707 | LIBOBJS=$ac_libobjs | |
13708 | ||
13709 | LTLIBOBJS=$ac_ltlibobjs | |
13710 | ||
13711 | ||
0cb8d851 | 13712 | |
db2e4d67 | 13713 | if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then |
d0ac1c44 | 13714 | as_fn_error $? "conditional \"GMAKE\" was never defined. |
db2e4d67 MF |
13715 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13716 | fi | |
6bb11ab3 | 13717 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
d0ac1c44 | 13718 | as_fn_error $? "conditional \"PLUGINS\" was never defined. |
6bb11ab3 L |
13719 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13720 | fi | |
31e6ad7d | 13721 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 13722 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
31e6ad7d MF |
13723 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13724 | fi | |
87326c78 | 13725 | |
d0ac1c44 | 13726 | : "${CONFIG_STATUS=./config.status}" |
87326c78 DD |
13727 | ac_write_fail=0 |
13728 | ac_clean_files_save=$ac_clean_files | |
13729 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
13730 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
13731 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13732 | as_write_fail=0 | |
13733 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
13734 | #! $SHELL | |
13735 | # Generated by $as_me. | |
13736 | # Run this file to recreate the current configuration. | |
13737 | # Compiler output produced by configure, useful for debugging | |
13738 | # configure, is in config.log if it exists. | |
13739 | ||
13740 | debug=false | |
13741 | ac_cs_recheck=false | |
13742 | ac_cs_silent=false | |
13743 | ||
13744 | SHELL=\${CONFIG_SHELL-$SHELL} | |
13745 | export SHELL | |
13746 | _ASEOF | |
13747 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13748 | ## -------------------- ## | |
13749 | ## M4sh Initialization. ## | |
13750 | ## -------------------- ## | |
13751 | ||
13752 | # Be more Bourne compatible | |
13753 | DUALCASE=1; export DUALCASE # for MKS sh | |
13754 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13755 | emulate sh | |
13756 | NULLCMD=: | |
13757 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13758 | # is contrary to our usage. Disable this feature. | |
13759 | alias -g '${1+"$@"}'='"$@"' | |
13760 | setopt NO_GLOB_SUBST | |
13761 | else | |
13762 | case `(set -o) 2>/dev/null` in #( | |
13763 | *posix*) : | |
13764 | set -o posix ;; #( | |
13765 | *) : | |
13766 | ;; | |
13767 | esac | |
13768 | fi | |
13769 | ||
13770 | ||
13771 | as_nl=' | |
13772 | ' | |
13773 | export as_nl | |
13774 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13775 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13776 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13777 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13778 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
13779 | # but without wasting forks for bash or zsh. | |
13780 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13781 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13782 | as_echo='print -r --' | |
13783 | as_echo_n='print -rn --' | |
13784 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13785 | as_echo='printf %s\n' | |
13786 | as_echo_n='printf %s' | |
13787 | else | |
13788 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13789 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13790 | as_echo_n='/usr/ucb/echo -n' | |
13791 | else | |
13792 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13793 | as_echo_n_body='eval | |
13794 | arg=$1; | |
13795 | case $arg in #( | |
13796 | *"$as_nl"*) | |
13797 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13798 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13799 | esac; | |
13800 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13801 | ' | |
13802 | export as_echo_n_body | |
13803 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13804 | fi | |
13805 | export as_echo_body | |
13806 | as_echo='sh -c $as_echo_body as_echo' | |
13807 | fi | |
13808 | ||
13809 | # The user is always right. | |
13810 | if test "${PATH_SEPARATOR+set}" != set; then | |
13811 | PATH_SEPARATOR=: | |
13812 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13813 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13814 | PATH_SEPARATOR=';' | |
13815 | } | |
13816 | fi | |
13817 | ||
13818 | ||
13819 | # IFS | |
13820 | # We need space, tab and new line, in precisely that order. Quoting is | |
13821 | # there to prevent editors from complaining about space-tab. | |
13822 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13823 | # splitting by setting IFS to empty value.) | |
13824 | IFS=" "" $as_nl" | |
13825 | ||
13826 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 13827 | as_myself= |
87326c78 DD |
13828 | case $0 in #(( |
13829 | *[\\/]* ) as_myself=$0 ;; | |
13830 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13831 | for as_dir in $PATH | |
13832 | do | |
13833 | IFS=$as_save_IFS | |
13834 | test -z "$as_dir" && as_dir=. | |
13835 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13836 | done | |
13837 | IFS=$as_save_IFS | |
13838 | ||
13839 | ;; | |
13840 | esac | |
13841 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13842 | # in which case we are not to be found in the path. | |
13843 | if test "x$as_myself" = x; then | |
13844 | as_myself=$0 | |
13845 | fi | |
13846 | if test ! -f "$as_myself"; then | |
13847 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
13848 | exit 1 | |
13849 | fi | |
13850 | ||
13851 | # Unset variables that we do not need and which cause bugs (e.g. in | |
13852 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13853 | # suppresses any "Segmentation fault" message there. '((' could | |
13854 | # trigger a bug in pdksh 5.2.14. | |
13855 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
13856 | do eval test x\${$as_var+set} = xset \ | |
13857 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
13858 | done | |
13859 | PS1='$ ' | |
13860 | PS2='> ' | |
13861 | PS4='+ ' | |
13862 | ||
13863 | # NLS nuisances. | |
13864 | LC_ALL=C | |
13865 | export LC_ALL | |
13866 | LANGUAGE=C | |
13867 | export LANGUAGE | |
13868 | ||
13869 | # CDPATH. | |
13870 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13871 | ||
13872 | ||
d0ac1c44 SM |
13873 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
13874 | # ---------------------------------------- | |
87326c78 DD |
13875 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
13876 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 13877 | # script with STATUS, using 1 if that was 0. |
87326c78 DD |
13878 | as_fn_error () |
13879 | { | |
d0ac1c44 SM |
13880 | as_status=$1; test $as_status -eq 0 && as_status=1 |
13881 | if test "$4"; then | |
13882 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13883 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
87326c78 | 13884 | fi |
d0ac1c44 | 13885 | $as_echo "$as_me: error: $2" >&2 |
87326c78 DD |
13886 | as_fn_exit $as_status |
13887 | } # as_fn_error | |
13888 | ||
13889 | ||
13890 | # as_fn_set_status STATUS | |
13891 | # ----------------------- | |
13892 | # Set $? to STATUS, without forking. | |
13893 | as_fn_set_status () | |
13894 | { | |
13895 | return $1 | |
13896 | } # as_fn_set_status | |
13897 | ||
13898 | # as_fn_exit STATUS | |
13899 | # ----------------- | |
13900 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13901 | as_fn_exit () | |
13902 | { | |
13903 | set +e | |
13904 | as_fn_set_status $1 | |
13905 | exit $1 | |
13906 | } # as_fn_exit | |
13907 | ||
13908 | # as_fn_unset VAR | |
13909 | # --------------- | |
13910 | # Portably unset VAR. | |
13911 | as_fn_unset () | |
13912 | { | |
13913 | { eval $1=; unset $1;} | |
13914 | } | |
13915 | as_unset=as_fn_unset | |
13916 | # as_fn_append VAR VALUE | |
13917 | # ---------------------- | |
13918 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13919 | # advantage of any shell optimizations that allow amortized linear growth over | |
13920 | # repeated appends, instead of the typical quadratic growth present in naive | |
13921 | # implementations. | |
13922 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13923 | eval 'as_fn_append () | |
13924 | { | |
13925 | eval $1+=\$2 | |
13926 | }' | |
13927 | else | |
13928 | as_fn_append () | |
13929 | { | |
13930 | eval $1=\$$1\$2 | |
13931 | } | |
13932 | fi # as_fn_append | |
13933 | ||
13934 | # as_fn_arith ARG... | |
13935 | # ------------------ | |
13936 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13937 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13938 | # must be portable across $(()) and expr. | |
13939 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13940 | eval 'as_fn_arith () | |
13941 | { | |
13942 | as_val=$(( $* )) | |
13943 | }' | |
13944 | else | |
13945 | as_fn_arith () | |
13946 | { | |
13947 | as_val=`expr "$@" || test $? -eq 1` | |
13948 | } | |
13949 | fi # as_fn_arith | |
13950 | ||
13951 | ||
13952 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
13953 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13954 | as_expr=expr | |
13955 | else | |
13956 | as_expr=false | |
13957 | fi | |
13958 | ||
13959 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
13960 | as_basename=basename | |
13961 | else | |
13962 | as_basename=false | |
13963 | fi | |
13964 | ||
13965 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
13966 | as_dirname=dirname | |
13967 | else | |
13968 | as_dirname=false | |
13969 | fi | |
13970 | ||
13971 | as_me=`$as_basename -- "$0" || | |
13972 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13973 | X"$0" : 'X\(//\)$' \| \ | |
13974 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
13975 | $as_echo X/"$0" | | |
13976 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13977 | s//\1/ | |
13978 | q | |
13979 | } | |
13980 | /^X\/\(\/\/\)$/{ | |
13981 | s//\1/ | |
13982 | q | |
13983 | } | |
13984 | /^X\/\(\/\).*/{ | |
13985 | s//\1/ | |
13986 | q | |
13987 | } | |
13988 | s/.*/./; q'` | |
13989 | ||
13990 | # Avoid depending upon Character Ranges. | |
13991 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13992 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13993 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13994 | as_cr_digits='0123456789' | |
13995 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13996 | ||
13997 | ECHO_C= ECHO_N= ECHO_T= | |
13998 | case `echo -n x` in #((((( | |
13999 | -n*) | |
14000 | case `echo 'xy\c'` in | |
14001 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14002 | xy) ECHO_C='\c';; | |
14003 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14004 | ECHO_T=' ';; | |
14005 | esac;; | |
14006 | *) | |
14007 | ECHO_N='-n';; | |
14008 | esac | |
14009 | ||
14010 | rm -f conf$$ conf$$.exe conf$$.file | |
14011 | if test -d conf$$.dir; then | |
14012 | rm -f conf$$.dir/conf$$.file | |
14013 | else | |
14014 | rm -f conf$$.dir | |
14015 | mkdir conf$$.dir 2>/dev/null | |
14016 | fi | |
14017 | if (echo >conf$$.file) 2>/dev/null; then | |
14018 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14019 | as_ln_s='ln -s' | |
14020 | # ... but there are two gotchas: | |
14021 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14022 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 14023 | # In both cases, we have to default to `cp -pR'. |
87326c78 | 14024 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 14025 | as_ln_s='cp -pR' |
87326c78 DD |
14026 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14027 | as_ln_s=ln | |
14028 | else | |
d0ac1c44 | 14029 | as_ln_s='cp -pR' |
87326c78 DD |
14030 | fi |
14031 | else | |
d0ac1c44 | 14032 | as_ln_s='cp -pR' |
87326c78 DD |
14033 | fi |
14034 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
14035 | rmdir conf$$.dir 2>/dev/null | |
14036 | ||
14037 | ||
14038 | # as_fn_mkdir_p | |
14039 | # ------------- | |
14040 | # Create "$as_dir" as a directory, including parents if necessary. | |
14041 | as_fn_mkdir_p () | |
14042 | { | |
14043 | ||
14044 | case $as_dir in #( | |
14045 | -*) as_dir=./$as_dir;; | |
14046 | esac | |
14047 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14048 | as_dirs= | |
14049 | while :; do | |
14050 | case $as_dir in #( | |
14051 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14052 | *) as_qdir=$as_dir;; | |
14053 | esac | |
14054 | as_dirs="'$as_qdir' $as_dirs" | |
14055 | as_dir=`$as_dirname -- "$as_dir" || | |
14056 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14057 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14058 | X"$as_dir" : 'X\(//\)$' \| \ | |
14059 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14060 | $as_echo X"$as_dir" | | |
14061 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14062 | s//\1/ | |
14063 | q | |
14064 | } | |
14065 | /^X\(\/\/\)[^/].*/{ | |
14066 | s//\1/ | |
14067 | q | |
14068 | } | |
14069 | /^X\(\/\/\)$/{ | |
14070 | s//\1/ | |
14071 | q | |
14072 | } | |
14073 | /^X\(\/\).*/{ | |
14074 | s//\1/ | |
14075 | q | |
14076 | } | |
14077 | s/.*/./; q'` | |
14078 | test -d "$as_dir" && break | |
14079 | done | |
14080 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 14081 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
87326c78 DD |
14082 | |
14083 | ||
14084 | } # as_fn_mkdir_p | |
14085 | if mkdir -p . 2>/dev/null; then | |
14086 | as_mkdir_p='mkdir -p "$as_dir"' | |
14087 | else | |
14088 | test -d ./-p && rmdir ./-p | |
14089 | as_mkdir_p=false | |
14090 | fi | |
14091 | ||
d0ac1c44 SM |
14092 | |
14093 | # as_fn_executable_p FILE | |
14094 | # ----------------------- | |
14095 | # Test if FILE is an executable regular file. | |
14096 | as_fn_executable_p () | |
14097 | { | |
14098 | test -f "$1" && test -x "$1" | |
14099 | } # as_fn_executable_p | |
14100 | as_test_x='test -x' | |
14101 | as_executable_p=as_fn_executable_p | |
87326c78 DD |
14102 | |
14103 | # Sed expression to map a string onto a valid CPP name. | |
14104 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14105 | ||
14106 | # Sed expression to map a string onto a valid variable name. | |
14107 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14108 | ||
14109 | ||
14110 | exec 6>&1 | |
14111 | ## ----------------------------------- ## | |
14112 | ## Main body of $CONFIG_STATUS script. ## | |
14113 | ## ----------------------------------- ## | |
14114 | _ASEOF | |
14115 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14116 | ||
14117 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14118 | # Save the log message, to keep $0 and so on meaningful, and to | |
14119 | # report actual input values of CONFIG_FILES etc. instead of their | |
14120 | # values after options handling. | |
14121 | ac_log=" | |
14122 | This file was extended by $as_me, which was | |
d0ac1c44 | 14123 | generated by GNU Autoconf 2.69. Invocation command line was |
87326c78 DD |
14124 | |
14125 | CONFIG_FILES = $CONFIG_FILES | |
14126 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14127 | CONFIG_LINKS = $CONFIG_LINKS | |
14128 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14129 | $ $0 $@ | |
14130 | ||
14131 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
14132 | " | |
14133 | ||
14134 | _ACEOF | |
14135 | ||
14136 | case $ac_config_files in *" | |
14137 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14138 | esac | |
14139 | ||
14140 | case $ac_config_headers in *" | |
14141 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14142 | esac | |
14143 | ||
14144 | ||
14145 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14146 | # Files that config.status was made for. | |
14147 | config_files="$ac_config_files" | |
14148 | config_headers="$ac_config_headers" | |
87326c78 DD |
14149 | config_commands="$ac_config_commands" |
14150 | ||
14151 | _ACEOF | |
14152 | ||
14153 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14154 | ac_cs_usage="\ | |
14155 | \`$as_me' instantiates files and other configuration actions | |
14156 | from templates according to the current configuration. Unless the files | |
14157 | and actions are specified as TAGs, all are instantiated by default. | |
14158 | ||
14159 | Usage: $0 [OPTION]... [TAG]... | |
14160 | ||
14161 | -h, --help print this help, then exit | |
14162 | -V, --version print version number and configuration settings, then exit | |
d0ac1c44 | 14163 | --config print configuration, then exit |
87326c78 DD |
14164 | -q, --quiet, --silent |
14165 | do not print progress messages | |
14166 | -d, --debug don't remove temporary files | |
14167 | --recheck update $as_me by reconfiguring in the same conditions | |
14168 | --file=FILE[:TEMPLATE] | |
14169 | instantiate the configuration file FILE | |
14170 | --header=FILE[:TEMPLATE] | |
14171 | instantiate the configuration header FILE | |
14172 | ||
14173 | Configuration files: | |
14174 | $config_files | |
14175 | ||
14176 | Configuration headers: | |
14177 | $config_headers | |
14178 | ||
87326c78 DD |
14179 | Configuration commands: |
14180 | $config_commands | |
14181 | ||
14182 | Report bugs to the package provider." | |
14183 | ||
14184 | _ACEOF | |
14185 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 14186 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
87326c78 DD |
14187 | ac_cs_version="\\ |
14188 | config.status | |
d0ac1c44 SM |
14189 | configured by $0, generated by GNU Autoconf 2.69, |
14190 | with options \\"\$ac_cs_config\\" | |
87326c78 | 14191 | |
d0ac1c44 | 14192 | Copyright (C) 2012 Free Software Foundation, Inc. |
87326c78 DD |
14193 | This config.status script is free software; the Free Software Foundation |
14194 | gives unlimited permission to copy, distribute and modify it." | |
14195 | ||
14196 | ac_pwd='$ac_pwd' | |
14197 | srcdir='$srcdir' | |
14198 | INSTALL='$INSTALL' | |
6bb11ab3 | 14199 | AWK='$AWK' |
87326c78 DD |
14200 | test -n "\$AWK" || AWK=awk |
14201 | _ACEOF | |
14202 | ||
14203 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14204 | # The default lists apply if the user does not specify any file. | |
14205 | ac_need_defaults=: | |
14206 | while test $# != 0 | |
14207 | do | |
14208 | case $1 in | |
d0ac1c44 | 14209 | --*=?*) |
87326c78 DD |
14210 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14211 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
14212 | ac_shift=: | |
14213 | ;; | |
d0ac1c44 SM |
14214 | --*=) |
14215 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14216 | ac_optarg= | |
14217 | ac_shift=: | |
14218 | ;; | |
87326c78 DD |
14219 | *) |
14220 | ac_option=$1 | |
14221 | ac_optarg=$2 | |
14222 | ac_shift=shift | |
14223 | ;; | |
14224 | esac | |
14225 | ||
14226 | case $ac_option in | |
14227 | # Handling of the options. | |
14228 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14229 | ac_cs_recheck=: ;; | |
14230 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
14231 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
14232 | --config | --confi | --conf | --con | --co | --c ) |
14233 | $as_echo "$ac_cs_config"; exit ;; | |
87326c78 DD |
14234 | --debug | --debu | --deb | --de | --d | -d ) |
14235 | debug=: ;; | |
14236 | --file | --fil | --fi | --f ) | |
14237 | $ac_shift | |
14238 | case $ac_optarg in | |
14239 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 14240 | '') as_fn_error $? "missing file argument" ;; |
87326c78 DD |
14241 | esac |
14242 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
14243 | ac_need_defaults=false;; | |
14244 | --header | --heade | --head | --hea ) | |
14245 | $ac_shift | |
14246 | case $ac_optarg in | |
14247 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14248 | esac | |
14249 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
14250 | ac_need_defaults=false;; | |
14251 | --he | --h) | |
14252 | # Conflict between --help and --header | |
d0ac1c44 | 14253 | as_fn_error $? "ambiguous option: \`$1' |
87326c78 DD |
14254 | Try \`$0 --help' for more information.";; |
14255 | --help | --hel | -h ) | |
14256 | $as_echo "$ac_cs_usage"; exit ;; | |
14257 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14258 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14259 | ac_cs_silent=: ;; | |
14260 | ||
14261 | # This is an error. | |
d0ac1c44 | 14262 | -*) as_fn_error $? "unrecognized option: \`$1' |
87326c78 DD |
14263 | Try \`$0 --help' for more information." ;; |
14264 | ||
14265 | *) as_fn_append ac_config_targets " $1" | |
14266 | ac_need_defaults=false ;; | |
14267 | ||
14268 | esac | |
14269 | shift | |
14270 | done | |
14271 | ||
14272 | ac_configure_extra_args= | |
14273 | ||
14274 | if $ac_cs_silent; then | |
14275 | exec 6>/dev/null | |
14276 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14277 | fi | |
14278 | ||
14279 | _ACEOF | |
14280 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14281 | if \$ac_cs_recheck; then | |
d0ac1c44 | 14282 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
87326c78 DD |
14283 | shift |
14284 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14285 | CONFIG_SHELL='$SHELL' | |
14286 | export CONFIG_SHELL | |
14287 | exec "\$@" | |
14288 | fi | |
14289 | ||
14290 | _ACEOF | |
14291 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14292 | exec 5>>config.log | |
14293 | { | |
14294 | echo | |
14295 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14296 | ## Running $as_me. ## | |
14297 | _ASBOX | |
14298 | $as_echo "$ac_log" | |
14299 | } >&5 | |
14300 | ||
14301 | _ACEOF | |
14302 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
db2e4d67 MF |
14303 | # |
14304 | # INIT-COMMANDS | |
14305 | # | |
14306 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
14307 | ||
6bb11ab3 L |
14308 | |
14309 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
14310 | # if CDPATH is set. | |
14311 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14312 | ||
14313 | sed_quote_subst='$sed_quote_subst' | |
14314 | double_quote_subst='$double_quote_subst' | |
14315 | delay_variable_subst='$delay_variable_subst' | |
14316 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
14317 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
14318 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
14319 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
14320 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
14321 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
14322 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
14323 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
14324 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
14325 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
14326 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
14327 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
14328 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
14329 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
14330 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
14331 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
14332 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
14333 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
14334 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
14335 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
14336 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
14337 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
14338 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
14339 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
14340 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
14341 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
14342 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
14343 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
14344 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
14345 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
14346 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
14347 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
14348 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
14349 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
14350 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
14351 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
14352 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
14353 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14354 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14355 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14356 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
14357 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
14358 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
14359 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
14360 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
14361 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
14362 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
14363 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
14364 | 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"`' | |
14365 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
14366 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
14367 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
14368 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
14369 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
14370 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
14371 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
14372 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
14373 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
14374 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
14375 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
14376 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
14377 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
14378 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
14379 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
14380 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14381 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
14382 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
14383 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14384 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14385 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
14386 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
14387 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14388 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14389 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14390 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
14391 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14392 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
14393 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14394 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14395 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14396 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
14397 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
14398 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
14399 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
14400 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
14401 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14402 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
14403 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
14404 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
14405 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
14406 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
14407 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
14408 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
14409 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
14410 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
14411 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
14412 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
14413 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14414 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
14415 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
14416 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
14417 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14418 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
14419 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
14420 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
14421 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
14422 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
14423 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14424 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14425 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
14426 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
14427 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
14428 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
14429 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
14430 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
14431 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
14432 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
14433 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
14434 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
14435 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
14436 | ||
14437 | LTCC='$LTCC' | |
14438 | LTCFLAGS='$LTCFLAGS' | |
14439 | compiler='$compiler_DEFAULT' | |
14440 | ||
14441 | # A function that is used when there is no print builtin or printf. | |
14442 | func_fallback_echo () | |
14443 | { | |
14444 | eval 'cat <<_LTECHO_EOF | |
14445 | \$1 | |
14446 | _LTECHO_EOF' | |
14447 | } | |
14448 | ||
14449 | # Quote evaled strings. | |
14450 | for var in SHELL \ | |
14451 | ECHO \ | |
14452 | SED \ | |
14453 | GREP \ | |
14454 | EGREP \ | |
14455 | FGREP \ | |
14456 | LD \ | |
14457 | NM \ | |
14458 | LN_S \ | |
14459 | lt_SP2NL \ | |
14460 | lt_NL2SP \ | |
14461 | reload_flag \ | |
14462 | OBJDUMP \ | |
14463 | deplibs_check_method \ | |
14464 | file_magic_cmd \ | |
14465 | AR \ | |
14466 | AR_FLAGS \ | |
14467 | STRIP \ | |
14468 | RANLIB \ | |
14469 | CC \ | |
14470 | CFLAGS \ | |
14471 | compiler \ | |
14472 | lt_cv_sys_global_symbol_pipe \ | |
14473 | lt_cv_sys_global_symbol_to_cdecl \ | |
14474 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14475 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
14476 | lt_prog_compiler_no_builtin_flag \ | |
14477 | lt_prog_compiler_wl \ | |
14478 | lt_prog_compiler_pic \ | |
14479 | lt_prog_compiler_static \ | |
14480 | lt_cv_prog_compiler_c_o \ | |
14481 | need_locks \ | |
14482 | DSYMUTIL \ | |
14483 | NMEDIT \ | |
14484 | LIPO \ | |
14485 | OTOOL \ | |
14486 | OTOOL64 \ | |
14487 | shrext_cmds \ | |
14488 | export_dynamic_flag_spec \ | |
14489 | whole_archive_flag_spec \ | |
14490 | compiler_needs_object \ | |
14491 | with_gnu_ld \ | |
14492 | allow_undefined_flag \ | |
14493 | no_undefined_flag \ | |
14494 | hardcode_libdir_flag_spec \ | |
14495 | hardcode_libdir_flag_spec_ld \ | |
14496 | hardcode_libdir_separator \ | |
14497 | fix_srcfile_path \ | |
14498 | exclude_expsyms \ | |
14499 | include_expsyms \ | |
14500 | file_list_spec \ | |
14501 | variables_saved_for_relink \ | |
14502 | libname_spec \ | |
14503 | library_names_spec \ | |
14504 | soname_spec \ | |
14505 | install_override_mode \ | |
14506 | finish_eval \ | |
14507 | old_striplib \ | |
14508 | striplib; do | |
14509 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
14510 | *[\\\\\\\`\\"\\\$]*) | |
14511 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
14512 | ;; | |
14513 | *) | |
14514 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14515 | ;; | |
14516 | esac | |
14517 | done | |
14518 | ||
14519 | # Double-quote double-evaled strings. | |
14520 | for var in reload_cmds \ | |
14521 | old_postinstall_cmds \ | |
14522 | old_postuninstall_cmds \ | |
14523 | old_archive_cmds \ | |
14524 | extract_expsyms_cmds \ | |
14525 | old_archive_from_new_cmds \ | |
14526 | old_archive_from_expsyms_cmds \ | |
14527 | archive_cmds \ | |
14528 | archive_expsym_cmds \ | |
14529 | module_cmds \ | |
14530 | module_expsym_cmds \ | |
14531 | export_symbols_cmds \ | |
14532 | prelink_cmds \ | |
14533 | postinstall_cmds \ | |
14534 | postuninstall_cmds \ | |
14535 | finish_cmds \ | |
14536 | sys_lib_search_path_spec \ | |
14537 | sys_lib_dlsearch_path_spec; do | |
14538 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
14539 | *[\\\\\\\`\\"\\\$]*) | |
14540 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
14541 | ;; | |
14542 | *) | |
14543 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14544 | ;; | |
14545 | esac | |
14546 | done | |
14547 | ||
14548 | ac_aux_dir='$ac_aux_dir' | |
14549 | xsi_shell='$xsi_shell' | |
14550 | lt_shell_append='$lt_shell_append' | |
14551 | ||
14552 | # See if we are running on zsh, and set the options which allow our | |
14553 | # commands through without removal of \ escapes INIT. | |
14554 | if test -n "\${ZSH_VERSION+set}" ; then | |
14555 | setopt NO_GLOB_SUBST | |
14556 | fi | |
14557 | ||
14558 | ||
14559 | PACKAGE='$PACKAGE' | |
14560 | VERSION='$VERSION' | |
14561 | TIMESTAMP='$TIMESTAMP' | |
14562 | RM='$RM' | |
14563 | ofile='$ofile' | |
14564 | ||
14565 | ||
14566 | ||
14567 | ||
87326c78 DD |
14568 | _ACEOF |
14569 | ||
14570 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14571 | ||
14572 | # Handling of arguments. | |
14573 | for ac_config_target in $ac_config_targets | |
14574 | do | |
14575 | case $ac_config_target in | |
14576 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
db2e4d67 | 14577 | "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; |
6bb11ab3 | 14578 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
87326c78 DD |
14579 | "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; |
14580 | "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
14581 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
14582 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | |
14583 | "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; | |
14584 | ||
d0ac1c44 | 14585 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
87326c78 DD |
14586 | esac |
14587 | done | |
14588 | ||
14589 | ||
14590 | # If the user did not use the arguments to specify the items to instantiate, | |
14591 | # then the envvar interface is used. Set only those that are not. | |
14592 | # We use the long form for the default assignment because of an extremely | |
14593 | # bizarre bug on SunOS 4.1.3. | |
14594 | if $ac_need_defaults; then | |
14595 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14596 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
87326c78 DD |
14597 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
14598 | fi | |
14599 | ||
14600 | # Have a temporary directory for convenience. Make it in the build tree | |
14601 | # simply because there is no reason against having it here, and in addition, | |
14602 | # creating and moving files from /tmp can sometimes cause problems. | |
14603 | # Hook for its removal unless debugging. | |
14604 | # Note that there is a small window in which the directory will not be cleaned: | |
14605 | # after its creation but before its name has been assigned to `$tmp'. | |
14606 | $debug || | |
14607 | { | |
d0ac1c44 | 14608 | tmp= ac_tmp= |
87326c78 | 14609 | trap 'exit_status=$? |
d0ac1c44 SM |
14610 | : "${ac_tmp:=$tmp}" |
14611 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
87326c78 DD |
14612 | ' 0 |
14613 | trap 'as_fn_exit 1' 1 2 13 15 | |
14614 | } | |
14615 | # Create a (secure) tmp directory for tmp files. | |
14616 | ||
14617 | { | |
14618 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
d0ac1c44 | 14619 | test -d "$tmp" |
87326c78 DD |
14620 | } || |
14621 | { | |
14622 | tmp=./conf$$-$RANDOM | |
14623 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
14624 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14625 | ac_tmp=$tmp | |
87326c78 DD |
14626 | |
14627 | # Set up the scripts for CONFIG_FILES section. | |
14628 | # No need to generate them if there are no CONFIG_FILES. | |
14629 | # This happens for instance with `./config.status config.h'. | |
14630 | if test -n "$CONFIG_FILES"; then | |
14631 | ||
14632 | ||
14633 | ac_cr=`echo X | tr X '\015'` | |
14634 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14635 | # But we know of no other shell where ac_cr would be empty at this | |
14636 | # point, so we can use a bashism as a fallback. | |
14637 | if test "x$ac_cr" = x; then | |
14638 | eval ac_cr=\$\'\\r\' | |
14639 | fi | |
14640 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14641 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 14642 | ac_cs_awk_cr='\\r' |
87326c78 DD |
14643 | else |
14644 | ac_cs_awk_cr=$ac_cr | |
14645 | fi | |
14646 | ||
d0ac1c44 | 14647 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
87326c78 DD |
14648 | _ACEOF |
14649 | ||
14650 | ||
14651 | { | |
14652 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14653 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14654 | echo "_ACEOF" | |
14655 | } >conf$$subs.sh || | |
d0ac1c44 SM |
14656 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14657 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
87326c78 DD |
14658 | ac_delim='%!_!# ' |
14659 | for ac_last_try in false false false false false :; do | |
14660 | . ./conf$$subs.sh || | |
d0ac1c44 | 14661 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
87326c78 DD |
14662 | |
14663 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14664 | if test $ac_delim_n = $ac_delim_num; then | |
14665 | break | |
14666 | elif $ac_last_try; then | |
d0ac1c44 | 14667 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
87326c78 DD |
14668 | else |
14669 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14670 | fi | |
14671 | done | |
14672 | rm -f conf$$subs.sh | |
14673 | ||
14674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 14675 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
87326c78 DD |
14676 | _ACEOF |
14677 | sed -n ' | |
14678 | h | |
14679 | s/^/S["/; s/!.*/"]=/ | |
14680 | p | |
14681 | g | |
14682 | s/^[^!]*!// | |
14683 | :repl | |
14684 | t repl | |
14685 | s/'"$ac_delim"'$// | |
14686 | t delim | |
14687 | :nl | |
14688 | h | |
d0ac1c44 | 14689 | s/\(.\{148\}\)..*/\1/ |
87326c78 DD |
14690 | t more1 |
14691 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14692 | p | |
14693 | n | |
14694 | b repl | |
14695 | :more1 | |
14696 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14697 | p | |
14698 | g | |
14699 | s/.\{148\}// | |
14700 | t nl | |
14701 | :delim | |
14702 | h | |
d0ac1c44 | 14703 | s/\(.\{148\}\)..*/\1/ |
87326c78 DD |
14704 | t more2 |
14705 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14706 | p | |
14707 | b | |
14708 | :more2 | |
14709 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14710 | p | |
14711 | g | |
14712 | s/.\{148\}// | |
14713 | t delim | |
14714 | ' <conf$$subs.awk | sed ' | |
14715 | /^[^""]/{ | |
14716 | N | |
14717 | s/\n// | |
14718 | } | |
14719 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14720 | rm -f conf$$subs.awk | |
14721 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14722 | _ACAWK | |
d0ac1c44 | 14723 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
87326c78 DD |
14724 | for (key in S) S_is_set[key] = 1 |
14725 | FS = "\a" | |
14726 | ||
14727 | } | |
14728 | { | |
14729 | line = $ 0 | |
14730 | nfields = split(line, field, "@") | |
14731 | substed = 0 | |
14732 | len = length(field[1]) | |
14733 | for (i = 2; i < nfields; i++) { | |
14734 | key = field[i] | |
14735 | keylen = length(key) | |
14736 | if (S_is_set[key]) { | |
14737 | value = S[key] | |
14738 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14739 | len += length(value) + length(field[++i]) | |
14740 | substed = 1 | |
14741 | } else | |
14742 | len += 1 + keylen | |
14743 | } | |
14744 | ||
14745 | print line | |
14746 | } | |
14747 | ||
14748 | _ACAWK | |
14749 | _ACEOF | |
14750 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14751 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14752 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14753 | else | |
14754 | cat | |
d0ac1c44 SM |
14755 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14756 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
87326c78 DD |
14757 | _ACEOF |
14758 | ||
d0ac1c44 SM |
14759 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14760 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
87326c78 DD |
14761 | # trailing colons and then remove the whole line if VPATH becomes empty |
14762 | # (actually we leave an empty line to preserve line numbers). | |
14763 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
14764 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14765 | h | |
14766 | s/// | |
14767 | s/^/:/ | |
14768 | s/[ ]*$/:/ | |
14769 | s/:\$(srcdir):/:/g | |
14770 | s/:\${srcdir}:/:/g | |
14771 | s/:@srcdir@:/:/g | |
14772 | s/^:*// | |
87326c78 | 14773 | s/:*$// |
d0ac1c44 SM |
14774 | x |
14775 | s/\(=[ ]*\).*/\1/ | |
14776 | G | |
14777 | s/\n// | |
87326c78 DD |
14778 | s/^[^=]*=[ ]*$// |
14779 | }' | |
14780 | fi | |
14781 | ||
14782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14783 | fi # test -n "$CONFIG_FILES" | |
14784 | ||
14785 | # Set up the scripts for CONFIG_HEADERS section. | |
14786 | # No need to generate them if there are no CONFIG_HEADERS. | |
14787 | # This happens for instance with `./config.status Makefile'. | |
14788 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 14789 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
87326c78 DD |
14790 | BEGIN { |
14791 | _ACEOF | |
14792 | ||
14793 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
14794 | # here-document in config.status, that substitutes the proper values into | |
14795 | # config.h.in to produce config.h. | |
14796 | ||
14797 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
14798 | # handling of long lines. | |
14799 | ac_delim='%!_!# ' | |
14800 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
14801 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14802 | if test -z "$ac_tt"; then | |
87326c78 DD |
14803 | break |
14804 | elif $ac_last_try; then | |
d0ac1c44 | 14805 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
87326c78 DD |
14806 | else |
14807 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14808 | fi | |
14809 | done | |
14810 | ||
14811 | # For the awk script, D is an array of macro values keyed by name, | |
14812 | # likewise P contains macro parameters if any. Preserve backslash | |
14813 | # newline sequences. | |
14814 | ||
14815 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14816 | sed -n ' | |
14817 | s/.\{148\}/&'"$ac_delim"'/g | |
14818 | t rset | |
14819 | :rset | |
14820 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14821 | t def | |
14822 | d | |
14823 | :def | |
14824 | s/\\$// | |
14825 | t bsnl | |
14826 | s/["\\]/\\&/g | |
14827 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14828 | D["\1"]=" \3"/p | |
14829 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14830 | d | |
14831 | :bsnl | |
14832 | s/["\\]/\\&/g | |
14833 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14834 | D["\1"]=" \3\\\\\\n"\\/p | |
14835 | t cont | |
14836 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14837 | t cont | |
14838 | d | |
14839 | :cont | |
14840 | n | |
14841 | s/.\{148\}/&'"$ac_delim"'/g | |
14842 | t clear | |
14843 | :clear | |
14844 | s/\\$// | |
14845 | t bsnlc | |
14846 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14847 | d | |
14848 | :bsnlc | |
14849 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14850 | b cont | |
14851 | ' <confdefs.h | sed ' | |
14852 | s/'"$ac_delim"'/"\\\ | |
14853 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14854 | ||
14855 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14856 | for (key in D) D_is_set[key] = 1 | |
14857 | FS = "\a" | |
14858 | } | |
14859 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14860 | line = \$ 0 | |
14861 | split(line, arg, " ") | |
14862 | if (arg[1] == "#") { | |
14863 | defundef = arg[2] | |
14864 | mac1 = arg[3] | |
14865 | } else { | |
14866 | defundef = substr(arg[1], 2) | |
14867 | mac1 = arg[2] | |
14868 | } | |
14869 | split(mac1, mac2, "(") #) | |
14870 | macro = mac2[1] | |
14871 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14872 | if (D_is_set[macro]) { | |
14873 | # Preserve the white space surrounding the "#". | |
14874 | print prefix "define", macro P[macro] D[macro] | |
14875 | next | |
14876 | } else { | |
14877 | # Replace #undef with comments. This is necessary, for example, | |
14878 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14879 | # on some systems where configure will not decide to define it. | |
14880 | if (defundef == "undef") { | |
14881 | print "/*", prefix defundef, macro, "*/" | |
14882 | next | |
14883 | } | |
14884 | } | |
14885 | } | |
14886 | { print } | |
14887 | _ACAWK | |
14888 | _ACEOF | |
14889 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 14890 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
87326c78 DD |
14891 | fi # test -n "$CONFIG_HEADERS" |
14892 | ||
14893 | ||
99d8e879 | 14894 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
87326c78 DD |
14895 | shift |
14896 | for ac_tag | |
14897 | do | |
14898 | case $ac_tag in | |
14899 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14900 | esac | |
14901 | case $ac_mode$ac_tag in | |
14902 | :[FHL]*:*);; | |
d0ac1c44 | 14903 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
87326c78 DD |
14904 | :[FH]-) ac_tag=-:-;; |
14905 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14906 | esac | |
14907 | ac_save_IFS=$IFS | |
14908 | IFS=: | |
14909 | set x $ac_tag | |
14910 | IFS=$ac_save_IFS | |
14911 | shift | |
14912 | ac_file=$1 | |
14913 | shift | |
14914 | ||
14915 | case $ac_mode in | |
14916 | :L) ac_source=$1;; | |
14917 | :[FH]) | |
14918 | ac_file_inputs= | |
14919 | for ac_f | |
14920 | do | |
14921 | case $ac_f in | |
d0ac1c44 | 14922 | -) ac_f="$ac_tmp/stdin";; |
87326c78 DD |
14923 | *) # Look for the file first in the build tree, then in the source tree |
14924 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14925 | # because $ac_f cannot contain `:'. | |
14926 | test -f "$ac_f" || | |
14927 | case $ac_f in | |
14928 | [\\/$]*) false;; | |
14929 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14930 | esac || | |
d0ac1c44 | 14931 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
87326c78 DD |
14932 | esac |
14933 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
14934 | as_fn_append ac_file_inputs " '$ac_f'" | |
14935 | done | |
14936 | ||
14937 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14938 | # use $as_me), people would be surprised to read: | |
14939 | # /* config.h. Generated by config.status. */ | |
14940 | configure_input='Generated from '` | |
14941 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14942 | `' by configure.' | |
14943 | if test x"$ac_file" != x-; then | |
14944 | configure_input="$ac_file. $configure_input" | |
14945 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
14946 | $as_echo "$as_me: creating $ac_file" >&6;} | |
14947 | fi | |
14948 | # Neutralize special characters interpreted by sed in replacement strings. | |
14949 | case $configure_input in #( | |
14950 | *\&* | *\|* | *\\* ) | |
14951 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14952 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14953 | *) ac_sed_conf_input=$configure_input;; | |
14954 | esac | |
14955 | ||
14956 | case $ac_tag in | |
d0ac1c44 SM |
14957 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
14958 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
87326c78 DD |
14959 | esac |
14960 | ;; | |
14961 | esac | |
14962 | ||
14963 | ac_dir=`$as_dirname -- "$ac_file" || | |
14964 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14965 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14966 | X"$ac_file" : 'X\(//\)$' \| \ | |
14967 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
14968 | $as_echo X"$ac_file" | | |
14969 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14970 | s//\1/ | |
14971 | q | |
14972 | } | |
14973 | /^X\(\/\/\)[^/].*/{ | |
14974 | s//\1/ | |
14975 | q | |
14976 | } | |
14977 | /^X\(\/\/\)$/{ | |
14978 | s//\1/ | |
14979 | q | |
14980 | } | |
14981 | /^X\(\/\).*/{ | |
14982 | s//\1/ | |
14983 | q | |
14984 | } | |
14985 | s/.*/./; q'` | |
14986 | as_dir="$ac_dir"; as_fn_mkdir_p | |
14987 | ac_builddir=. | |
14988 | ||
14989 | case "$ac_dir" in | |
14990 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14991 | *) | |
14992 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
14993 | # A ".." for each directory in $ac_dir_suffix. | |
14994 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14995 | case $ac_top_builddir_sub in | |
14996 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14997 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14998 | esac ;; | |
14999 | esac | |
15000 | ac_abs_top_builddir=$ac_pwd | |
15001 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15002 | # for backward compatibility: | |
15003 | ac_top_builddir=$ac_top_build_prefix | |
15004 | ||
15005 | case $srcdir in | |
15006 | .) # We are building in place. | |
15007 | ac_srcdir=. | |
15008 | ac_top_srcdir=$ac_top_builddir_sub | |
15009 | ac_abs_top_srcdir=$ac_pwd ;; | |
15010 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15011 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15012 | ac_top_srcdir=$srcdir | |
15013 | ac_abs_top_srcdir=$srcdir ;; | |
15014 | *) # Relative name. | |
15015 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15016 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15017 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15018 | esac | |
15019 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
15020 | ||
15021 | ||
15022 | case $ac_mode in | |
15023 | :F) | |
15024 | # | |
15025 | # CONFIG_FILE | |
15026 | # | |
15027 | ||
15028 | case $INSTALL in | |
15029 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15030 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
15031 | esac | |
15032 | _ACEOF | |
15033 | ||
15034 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15035 | # If the template does not know about datarootdir, expand it. | |
15036 | # FIXME: This hack should be removed a few years after 2.60. | |
15037 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15038 | ac_sed_dataroot=' | |
15039 | /datarootdir/ { | |
15040 | p | |
15041 | q | |
15042 | } | |
15043 | /@datadir@/p | |
15044 | /@docdir@/p | |
15045 | /@infodir@/p | |
15046 | /@localedir@/p | |
15047 | /@mandir@/p' | |
15048 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15049 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15050 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15052 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15053 | _ACEOF | |
15054 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15055 | ac_datarootdir_hack=' | |
15056 | s&@datadir@&$datadir&g | |
15057 | s&@docdir@&$docdir&g | |
15058 | s&@infodir@&$infodir&g | |
15059 | s&@localedir@&$localedir&g | |
15060 | s&@mandir@&$mandir&g | |
15061 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15062 | esac | |
15063 | _ACEOF | |
15064 | ||
15065 | # Neutralize VPATH when `$srcdir' = `.'. | |
15066 | # Shell code in configure.ac might set extrasub. | |
15067 | # FIXME: do we really want to maintain this feature? | |
15068 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15069 | ac_sed_extra="$ac_vpsub | |
15070 | $extrasub | |
15071 | _ACEOF | |
15072 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15073 | :t | |
15074 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15075 | s|@configure_input@|$ac_sed_conf_input|;t t | |
15076 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15077 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15078 | s&@srcdir@&$ac_srcdir&;t t | |
15079 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15080 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15081 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15082 | s&@builddir@&$ac_builddir&;t t | |
15083 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15084 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15085 | s&@INSTALL@&$ac_INSTALL&;t t | |
15086 | $ac_datarootdir_hack | |
15087 | " | |
d0ac1c44 SM |
15088 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
15089 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
87326c78 DD |
15090 | |
15091 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
15092 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15093 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15094 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
87326c78 | 15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15096 | which seems to be undefined. Please make sure it is defined" >&5 |
87326c78 | 15097 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15098 | which seems to be undefined. Please make sure it is defined" >&2;} |
87326c78 | 15099 | |
d0ac1c44 | 15100 | rm -f "$ac_tmp/stdin" |
87326c78 | 15101 | case $ac_file in |
d0ac1c44 SM |
15102 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15103 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
87326c78 | 15104 | esac \ |
d0ac1c44 | 15105 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
87326c78 DD |
15106 | ;; |
15107 | :H) | |
15108 | # | |
15109 | # CONFIG_HEADER | |
15110 | # | |
15111 | if test x"$ac_file" != x-; then | |
15112 | { | |
15113 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
15114 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
15115 | } >"$ac_tmp/config.h" \ | |
15116 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15117 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
87326c78 DD |
15118 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
15119 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
15120 | else | |
15121 | rm -f "$ac_file" | |
d0ac1c44 SM |
15122 | mv "$ac_tmp/config.h" "$ac_file" \ |
15123 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
87326c78 DD |
15124 | fi |
15125 | else | |
15126 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
15127 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
15128 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
87326c78 DD |
15129 | fi |
15130 | ;; | |
87326c78 | 15131 | |
87326c78 DD |
15132 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
15133 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
15134 | ;; | |
15135 | esac | |
15136 | ||
15137 | ||
15138 | case $ac_file$ac_mode in | |
db2e4d67 | 15139 | "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; |
6bb11ab3 L |
15140 | "libtool":C) |
15141 | ||
15142 | # See if we are running on zsh, and set the options which allow our | |
15143 | # commands through without removal of \ escapes. | |
15144 | if test -n "${ZSH_VERSION+set}" ; then | |
15145 | setopt NO_GLOB_SUBST | |
15146 | fi | |
15147 | ||
15148 | cfgfile="${ofile}T" | |
15149 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15150 | $RM "$cfgfile" | |
15151 | ||
15152 | cat <<_LT_EOF >> "$cfgfile" | |
15153 | #! $SHELL | |
15154 | ||
15155 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
15156 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
15157 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15158 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
15159 | # | |
15160 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
15161 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
15162 | # Written by Gordon Matzigkeit, 1996 | |
15163 | # | |
15164 | # This file is part of GNU Libtool. | |
15165 | # | |
15166 | # GNU Libtool is free software; you can redistribute it and/or | |
15167 | # modify it under the terms of the GNU General Public License as | |
15168 | # published by the Free Software Foundation; either version 2 of | |
15169 | # the License, or (at your option) any later version. | |
15170 | # | |
15171 | # As a special exception to the GNU General Public License, | |
15172 | # if you distribute this file as part of a program or library that | |
15173 | # is built using GNU Libtool, you may include this file under the | |
15174 | # same distribution terms that you use for the rest of that program. | |
15175 | # | |
15176 | # GNU Libtool is distributed in the hope that it will be useful, | |
15177 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15178 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15179 | # GNU General Public License for more details. | |
15180 | # | |
15181 | # You should have received a copy of the GNU General Public License | |
15182 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
15183 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15184 | # obtained by writing to the Free Software Foundation, Inc., | |
15185 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
15186 | ||
15187 | ||
15188 | # The names of the tagged configurations supported by this script. | |
15189 | available_tags="" | |
15190 | ||
15191 | # ### BEGIN LIBTOOL CONFIG | |
15192 | ||
15193 | # Which release of libtool.m4 was used? | |
15194 | macro_version=$macro_version | |
15195 | macro_revision=$macro_revision | |
15196 | ||
15197 | # Whether or not to build shared libraries. | |
15198 | build_libtool_libs=$enable_shared | |
15199 | ||
15200 | # Whether or not to build static libraries. | |
15201 | build_old_libs=$enable_static | |
15202 | ||
15203 | # What type of objects to build. | |
15204 | pic_mode=$pic_mode | |
15205 | ||
15206 | # Whether or not to optimize for fast installation. | |
15207 | fast_install=$enable_fast_install | |
15208 | ||
15209 | # Shell to use when invoking shell scripts. | |
15210 | SHELL=$lt_SHELL | |
15211 | ||
15212 | # An echo program that protects backslashes. | |
15213 | ECHO=$lt_ECHO | |
15214 | ||
15215 | # The host system. | |
15216 | host_alias=$host_alias | |
15217 | host=$host | |
15218 | host_os=$host_os | |
15219 | ||
15220 | # The build system. | |
15221 | build_alias=$build_alias | |
15222 | build=$build | |
15223 | build_os=$build_os | |
15224 | ||
15225 | # A sed program that does not truncate output. | |
15226 | SED=$lt_SED | |
15227 | ||
15228 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
15229 | Xsed="\$SED -e 1s/^X//" | |
15230 | ||
15231 | # A grep program that handles long lines. | |
15232 | GREP=$lt_GREP | |
15233 | ||
15234 | # An ERE matcher. | |
15235 | EGREP=$lt_EGREP | |
15236 | ||
15237 | # A literal string matcher. | |
15238 | FGREP=$lt_FGREP | |
15239 | ||
15240 | # A BSD- or MS-compatible name lister. | |
15241 | NM=$lt_NM | |
15242 | ||
15243 | # Whether we need soft or hard links. | |
15244 | LN_S=$lt_LN_S | |
15245 | ||
15246 | # What is the maximum length of a command? | |
15247 | max_cmd_len=$max_cmd_len | |
15248 | ||
15249 | # Object file suffix (normally "o"). | |
15250 | objext=$ac_objext | |
15251 | ||
15252 | # Executable file suffix (normally ""). | |
15253 | exeext=$exeext | |
15254 | ||
15255 | # whether the shell understands "unset". | |
15256 | lt_unset=$lt_unset | |
15257 | ||
15258 | # turn spaces into newlines. | |
15259 | SP2NL=$lt_lt_SP2NL | |
15260 | ||
15261 | # turn newlines into spaces. | |
15262 | NL2SP=$lt_lt_NL2SP | |
15263 | ||
15264 | # An object symbol dumper. | |
15265 | OBJDUMP=$lt_OBJDUMP | |
15266 | ||
15267 | # Method to check whether dependent libraries are shared objects. | |
15268 | deplibs_check_method=$lt_deplibs_check_method | |
15269 | ||
15270 | # Command to use when deplibs_check_method == "file_magic". | |
15271 | file_magic_cmd=$lt_file_magic_cmd | |
15272 | ||
15273 | # The archiver. | |
15274 | AR=$lt_AR | |
15275 | AR_FLAGS=$lt_AR_FLAGS | |
15276 | ||
15277 | # A symbol stripping program. | |
15278 | STRIP=$lt_STRIP | |
15279 | ||
15280 | # Commands used to install an old-style archive. | |
15281 | RANLIB=$lt_RANLIB | |
15282 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15283 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15284 | ||
15285 | # Whether to use a lock for old archive extraction. | |
15286 | lock_old_archive_extraction=$lock_old_archive_extraction | |
15287 | ||
15288 | # A C compiler. | |
15289 | LTCC=$lt_CC | |
15290 | ||
15291 | # LTCC compiler flags. | |
15292 | LTCFLAGS=$lt_CFLAGS | |
15293 | ||
15294 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15295 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15296 | ||
15297 | # Transform the output of nm in a proper C declaration. | |
15298 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15299 | ||
15300 | # Transform the output of nm in a C name address pair. | |
15301 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15302 | ||
15303 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
15304 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
15305 | ||
15306 | # The name of the directory that contains temporary libtool files. | |
15307 | objdir=$objdir | |
15308 | ||
15309 | # Used to examine libraries when file_magic_cmd begins with "file". | |
15310 | MAGIC_CMD=$MAGIC_CMD | |
15311 | ||
15312 | # Must we lock files when doing compilation? | |
15313 | need_locks=$lt_need_locks | |
15314 | ||
15315 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
15316 | DSYMUTIL=$lt_DSYMUTIL | |
15317 | ||
15318 | # Tool to change global to local symbols on Mac OS X. | |
15319 | NMEDIT=$lt_NMEDIT | |
15320 | ||
15321 | # Tool to manipulate fat objects and archives on Mac OS X. | |
15322 | LIPO=$lt_LIPO | |
15323 | ||
15324 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
15325 | OTOOL=$lt_OTOOL | |
15326 | ||
15327 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
15328 | OTOOL64=$lt_OTOOL64 | |
15329 | ||
15330 | # Old archive suffix (normally "a"). | |
15331 | libext=$libext | |
15332 | ||
15333 | # Shared library suffix (normally ".so"). | |
15334 | shrext_cmds=$lt_shrext_cmds | |
15335 | ||
15336 | # The commands to extract the exported symbol list from a shared archive. | |
15337 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15338 | ||
15339 | # Variables whose values should be saved in libtool wrapper scripts and | |
15340 | # restored at link time. | |
15341 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
15342 | ||
15343 | # Do we need the "lib" prefix for modules? | |
15344 | need_lib_prefix=$need_lib_prefix | |
15345 | ||
15346 | # Do we need a version for libraries? | |
15347 | need_version=$need_version | |
15348 | ||
15349 | # Library versioning type. | |
15350 | version_type=$version_type | |
15351 | ||
15352 | # Shared library runtime path variable. | |
15353 | runpath_var=$runpath_var | |
15354 | ||
15355 | # Shared library path variable. | |
15356 | shlibpath_var=$shlibpath_var | |
15357 | ||
15358 | # Is shlibpath searched before the hard-coded library search path? | |
15359 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15360 | ||
15361 | # Format of library name prefix. | |
15362 | libname_spec=$lt_libname_spec | |
15363 | ||
15364 | # List of archive names. First name is the real one, the rest are links. | |
15365 | # The last name is the one that the linker finds with -lNAME | |
15366 | library_names_spec=$lt_library_names_spec | |
15367 | ||
15368 | # The coded name of the library, if different from the real name. | |
15369 | soname_spec=$lt_soname_spec | |
15370 | ||
15371 | # Permission mode override for installation of shared libraries. | |
15372 | install_override_mode=$lt_install_override_mode | |
15373 | ||
15374 | # Command to use after installation of a shared archive. | |
15375 | postinstall_cmds=$lt_postinstall_cmds | |
15376 | ||
15377 | # Command to use after uninstallation of a shared archive. | |
15378 | postuninstall_cmds=$lt_postuninstall_cmds | |
15379 | ||
15380 | # Commands used to finish a libtool library installation in a directory. | |
15381 | finish_cmds=$lt_finish_cmds | |
15382 | ||
15383 | # As "finish_cmds", except a single script fragment to be evaled but | |
15384 | # not shown. | |
15385 | finish_eval=$lt_finish_eval | |
15386 | ||
15387 | # Whether we should hardcode library paths into libraries. | |
15388 | hardcode_into_libs=$hardcode_into_libs | |
15389 | ||
15390 | # Compile-time system search path for libraries. | |
15391 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15392 | ||
15393 | # Run-time system search path for libraries. | |
15394 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15395 | ||
15396 | # Whether dlopen is supported. | |
15397 | dlopen_support=$enable_dlopen | |
15398 | ||
15399 | # Whether dlopen of programs is supported. | |
15400 | dlopen_self=$enable_dlopen_self | |
15401 | ||
15402 | # Whether dlopen of statically linked programs is supported. | |
15403 | dlopen_self_static=$enable_dlopen_self_static | |
15404 | ||
15405 | # Commands to strip libraries. | |
15406 | old_striplib=$lt_old_striplib | |
15407 | striplib=$lt_striplib | |
15408 | ||
15409 | ||
15410 | # The linker used to build libraries. | |
15411 | LD=$lt_LD | |
15412 | ||
15413 | # How to create reloadable object files. | |
15414 | reload_flag=$lt_reload_flag | |
15415 | reload_cmds=$lt_reload_cmds | |
15416 | ||
15417 | # Commands used to build an old-style archive. | |
15418 | old_archive_cmds=$lt_old_archive_cmds | |
15419 | ||
15420 | # A language specific compiler. | |
15421 | CC=$lt_compiler | |
15422 | ||
15423 | # Is the compiler the GNU compiler? | |
15424 | with_gcc=$GCC | |
15425 | ||
15426 | # Compiler flag to turn off builtin functions. | |
15427 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
15428 | ||
15429 | # How to pass a linker flag through the compiler. | |
15430 | wl=$lt_lt_prog_compiler_wl | |
15431 | ||
15432 | # Additional compiler flags for building library objects. | |
15433 | pic_flag=$lt_lt_prog_compiler_pic | |
15434 | ||
15435 | # Compiler flag to prevent dynamic linking. | |
15436 | link_static_flag=$lt_lt_prog_compiler_static | |
15437 | ||
15438 | # Does compiler simultaneously support -c and -o options? | |
15439 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
15440 | ||
15441 | # Whether or not to add -lc for building shared libraries. | |
15442 | build_libtool_need_lc=$archive_cmds_need_lc | |
15443 | ||
15444 | # Whether or not to disallow shared libs when runtime libs are static. | |
15445 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
15446 | ||
15447 | # Compiler flag to allow reflexive dlopens. | |
15448 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
15449 | ||
15450 | # Compiler flag to generate shared objects directly from archives. | |
15451 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
15452 | ||
15453 | # Whether the compiler copes with passing no objects directly. | |
15454 | compiler_needs_object=$lt_compiler_needs_object | |
15455 | ||
15456 | # Create an old-style archive from a shared archive. | |
15457 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
15458 | ||
15459 | # Create a temporary old-style archive to link instead of a shared archive. | |
15460 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
15461 | ||
15462 | # Commands used to build a shared archive. | |
15463 | archive_cmds=$lt_archive_cmds | |
15464 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
15465 | ||
15466 | # Commands used to build a loadable module if different from building | |
15467 | # a shared archive. | |
15468 | module_cmds=$lt_module_cmds | |
15469 | module_expsym_cmds=$lt_module_expsym_cmds | |
15470 | ||
15471 | # Whether we are building with GNU ld or not. | |
15472 | with_gnu_ld=$lt_with_gnu_ld | |
15473 | ||
15474 | # Flag that allows shared libraries with undefined symbols to be built. | |
15475 | allow_undefined_flag=$lt_allow_undefined_flag | |
15476 | ||
15477 | # Flag that enforces no undefined symbols. | |
15478 | no_undefined_flag=$lt_no_undefined_flag | |
15479 | ||
15480 | # Flag to hardcode \$libdir into a binary during linking. | |
15481 | # This must work even if \$libdir does not exist | |
15482 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
15483 | ||
15484 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
15485 | # during linking. This must work even if \$libdir does not exist. | |
15486 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
15487 | ||
15488 | # Whether we need a single "-rpath" flag with a separated argument. | |
15489 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
15490 | ||
15491 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15492 | # DIR into the resulting binary. | |
15493 | hardcode_direct=$hardcode_direct | |
15494 | ||
15495 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15496 | # DIR into the resulting binary and the resulting library dependency is | |
15497 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
15498 | # library is relocated. | |
15499 | hardcode_direct_absolute=$hardcode_direct_absolute | |
15500 | ||
15501 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
15502 | # into the resulting binary. | |
15503 | hardcode_minus_L=$hardcode_minus_L | |
15504 | ||
15505 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
15506 | # into the resulting binary. | |
15507 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
15508 | ||
15509 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
15510 | # into the library and all subsequent libraries and executables linked | |
15511 | # against it. | |
15512 | hardcode_automatic=$hardcode_automatic | |
15513 | ||
15514 | # Set to yes if linker adds runtime paths of dependent libraries | |
15515 | # to runtime path list. | |
15516 | inherit_rpath=$inherit_rpath | |
15517 | ||
15518 | # Whether libtool must link a program against all its dependency libraries. | |
15519 | link_all_deplibs=$link_all_deplibs | |
15520 | ||
15521 | # Fix the shell variable \$srcfile for the compiler. | |
15522 | fix_srcfile_path=$lt_fix_srcfile_path | |
15523 | ||
15524 | # Set to "yes" if exported symbols are required. | |
15525 | always_export_symbols=$always_export_symbols | |
15526 | ||
15527 | # The commands to list exported symbols. | |
15528 | export_symbols_cmds=$lt_export_symbols_cmds | |
15529 | ||
15530 | # Symbols that should not be listed in the preloaded symbols. | |
15531 | exclude_expsyms=$lt_exclude_expsyms | |
15532 | ||
15533 | # Symbols that must always be exported. | |
15534 | include_expsyms=$lt_include_expsyms | |
15535 | ||
15536 | # Commands necessary for linking programs (against libraries) with templates. | |
15537 | prelink_cmds=$lt_prelink_cmds | |
15538 | ||
15539 | # Specify filename containing input files. | |
15540 | file_list_spec=$lt_file_list_spec | |
15541 | ||
15542 | # How to hardcode a shared library path into an executable. | |
15543 | hardcode_action=$hardcode_action | |
15544 | ||
15545 | # ### END LIBTOOL CONFIG | |
15546 | ||
15547 | _LT_EOF | |
15548 | ||
15549 | case $host_os in | |
15550 | aix3*) | |
15551 | cat <<\_LT_EOF >> "$cfgfile" | |
15552 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15553 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15554 | # vanish in a puff of smoke. | |
15555 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
15556 | COLLECT_NAMES= | |
15557 | export COLLECT_NAMES | |
15558 | fi | |
15559 | _LT_EOF | |
15560 | ;; | |
15561 | esac | |
15562 | ||
15563 | ||
15564 | ltmain="$ac_aux_dir/ltmain.sh" | |
15565 | ||
15566 | ||
15567 | # We use sed instead of cat because bash on DJGPP gets confused if | |
15568 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15569 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15570 | # is reportedly fixed, but why not run on old versions too? | |
15571 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
15572 | || (rm -f "$cfgfile"; exit 1) | |
15573 | ||
15574 | case $xsi_shell in | |
15575 | yes) | |
15576 | cat << \_LT_EOF >> "$cfgfile" | |
15577 | ||
15578 | # func_dirname file append nondir_replacement | |
15579 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15580 | # otherwise set result to NONDIR_REPLACEMENT. | |
15581 | func_dirname () | |
15582 | { | |
15583 | case ${1} in | |
15584 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15585 | * ) func_dirname_result="${3}" ;; | |
15586 | esac | |
15587 | } | |
15588 | ||
15589 | # func_basename file | |
15590 | func_basename () | |
15591 | { | |
15592 | func_basename_result="${1##*/}" | |
15593 | } | |
15594 | ||
15595 | # func_dirname_and_basename file append nondir_replacement | |
15596 | # perform func_basename and func_dirname in a single function | |
15597 | # call: | |
15598 | # dirname: Compute the dirname of FILE. If nonempty, | |
15599 | # add APPEND to the result, otherwise set result | |
15600 | # to NONDIR_REPLACEMENT. | |
15601 | # value returned in "$func_dirname_result" | |
15602 | # basename: Compute filename of FILE. | |
15603 | # value retuned in "$func_basename_result" | |
15604 | # Implementation must be kept synchronized with func_dirname | |
15605 | # and func_basename. For efficiency, we do not delegate to | |
15606 | # those functions but instead duplicate the functionality here. | |
15607 | func_dirname_and_basename () | |
15608 | { | |
15609 | case ${1} in | |
15610 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15611 | * ) func_dirname_result="${3}" ;; | |
15612 | esac | |
15613 | func_basename_result="${1##*/}" | |
15614 | } | |
15615 | ||
15616 | # func_stripname prefix suffix name | |
15617 | # strip PREFIX and SUFFIX off of NAME. | |
15618 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15619 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15620 | # dot (in which case that matches only a dot). | |
15621 | func_stripname () | |
15622 | { | |
15623 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
15624 | # positional parameters, so assign one to ordinary parameter first. | |
15625 | func_stripname_result=${3} | |
15626 | func_stripname_result=${func_stripname_result#"${1}"} | |
15627 | func_stripname_result=${func_stripname_result%"${2}"} | |
15628 | } | |
15629 | ||
15630 | # func_opt_split | |
15631 | func_opt_split () | |
15632 | { | |
15633 | func_opt_split_opt=${1%%=*} | |
15634 | func_opt_split_arg=${1#*=} | |
15635 | } | |
15636 | ||
15637 | # func_lo2o object | |
15638 | func_lo2o () | |
15639 | { | |
15640 | case ${1} in | |
15641 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
15642 | *) func_lo2o_result=${1} ;; | |
15643 | esac | |
15644 | } | |
15645 | ||
15646 | # func_xform libobj-or-source | |
15647 | func_xform () | |
15648 | { | |
15649 | func_xform_result=${1%.*}.lo | |
15650 | } | |
15651 | ||
15652 | # func_arith arithmetic-term... | |
15653 | func_arith () | |
15654 | { | |
15655 | func_arith_result=$(( $* )) | |
15656 | } | |
15657 | ||
15658 | # func_len string | |
15659 | # STRING may not start with a hyphen. | |
15660 | func_len () | |
15661 | { | |
15662 | func_len_result=${#1} | |
15663 | } | |
15664 | ||
15665 | _LT_EOF | |
15666 | ;; | |
15667 | *) # Bourne compatible functions. | |
15668 | cat << \_LT_EOF >> "$cfgfile" | |
15669 | ||
15670 | # func_dirname file append nondir_replacement | |
15671 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15672 | # otherwise set result to NONDIR_REPLACEMENT. | |
15673 | func_dirname () | |
15674 | { | |
15675 | # Extract subdirectory from the argument. | |
15676 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
15677 | if test "X$func_dirname_result" = "X${1}"; then | |
15678 | func_dirname_result="${3}" | |
15679 | else | |
15680 | func_dirname_result="$func_dirname_result${2}" | |
15681 | fi | |
15682 | } | |
15683 | ||
15684 | # func_basename file | |
15685 | func_basename () | |
15686 | { | |
15687 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
15688 | } | |
15689 | ||
15690 | ||
15691 | # func_stripname prefix suffix name | |
15692 | # strip PREFIX and SUFFIX off of NAME. | |
15693 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15694 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15695 | # dot (in which case that matches only a dot). | |
15696 | # func_strip_suffix prefix name | |
15697 | func_stripname () | |
15698 | { | |
15699 | case ${2} in | |
15700 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
15701 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
15702 | esac | |
15703 | } | |
15704 | ||
15705 | # sed scripts: | |
15706 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
15707 | my_sed_long_arg='1s/^-[^=]*=//' | |
15708 | ||
15709 | # func_opt_split | |
15710 | func_opt_split () | |
15711 | { | |
15712 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
15713 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
15714 | } | |
15715 | ||
15716 | # func_lo2o object | |
15717 | func_lo2o () | |
15718 | { | |
15719 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
15720 | } | |
15721 | ||
15722 | # func_xform libobj-or-source | |
15723 | func_xform () | |
15724 | { | |
15725 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
15726 | } | |
15727 | ||
15728 | # func_arith arithmetic-term... | |
15729 | func_arith () | |
15730 | { | |
15731 | func_arith_result=`expr "$@"` | |
15732 | } | |
15733 | ||
15734 | # func_len string | |
15735 | # STRING may not start with a hyphen. | |
15736 | func_len () | |
15737 | { | |
15738 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
15739 | } | |
15740 | ||
15741 | _LT_EOF | |
15742 | esac | |
15743 | ||
15744 | case $lt_shell_append in | |
15745 | yes) | |
15746 | cat << \_LT_EOF >> "$cfgfile" | |
15747 | ||
15748 | # func_append var value | |
15749 | # Append VALUE to the end of shell variable VAR. | |
15750 | func_append () | |
15751 | { | |
15752 | eval "$1+=\$2" | |
15753 | } | |
15754 | _LT_EOF | |
15755 | ;; | |
15756 | *) | |
15757 | cat << \_LT_EOF >> "$cfgfile" | |
15758 | ||
15759 | # func_append var value | |
15760 | # Append VALUE to the end of shell variable VAR. | |
15761 | func_append () | |
15762 | { | |
15763 | eval "$1=\$$1\$2" | |
15764 | } | |
15765 | ||
15766 | _LT_EOF | |
15767 | ;; | |
15768 | esac | |
15769 | ||
15770 | ||
15771 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
15772 | || (rm -f "$cfgfile"; exit 1) | |
15773 | ||
15774 | mv -f "$cfgfile" "$ofile" || | |
15775 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
15776 | chmod +x "$ofile" | |
15777 | ||
15778 | ;; | |
87326c78 DD |
15779 | "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." |
15780 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
15781 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
15782 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
15783 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
15784 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ | |
15785 | <Makefile.sim >Makefile | |
15786 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp | |
15787 | ;; | |
15788 | "stamp-h":C) echo > stamp-h ;; | |
15789 | ||
15790 | esac | |
15791 | done # for ac_tag | |
15792 | ||
15793 | ||
15794 | as_fn_exit 0 | |
15795 | _ACEOF | |
15796 | ac_clean_files=$ac_clean_files_save | |
15797 | ||
15798 | test $ac_write_fail = 0 || | |
d0ac1c44 | 15799 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
87326c78 DD |
15800 | |
15801 | ||
15802 | # configure is writing to config.log, and then calls config.status. | |
15803 | # config.status does its own redirection, appending to config.log. | |
15804 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15805 | # by configure, so config.status won't be able to write to it; its | |
15806 | # output is simply discarded. So we exec the FD to /dev/null, | |
15807 | # effectively closing config.log, so it can be properly (re)opened and | |
15808 | # appended to by config.status. When coming back to configure, we | |
15809 | # need to make the FD available again. | |
15810 | if test "$no_create" != yes; then | |
15811 | ac_cs_success=: | |
15812 | ac_config_status_args= | |
15813 | test "$silent" = yes && | |
15814 | ac_config_status_args="$ac_config_status_args --quiet" | |
15815 | exec 5>/dev/null | |
15816 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15817 | exec 5>>config.log | |
15818 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15819 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 15820 | $ac_cs_success || as_fn_exit 1 |
87326c78 DD |
15821 | fi |
15822 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15824 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
15825 | fi | |
15826 | ||
15827 |