Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
b0322a85 | 3 | # Generated by GNU Autoconf 2.69 for numlib 0.10. |
d9898ee8 | 4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. | |
6 | # | |
b0322a85 CE |
7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
d9898ee8 | 11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
b0322a85 CE |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
d9898ee8 | 16 | |
dd184caf | 17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
d9898ee8 | 20 | emulate sh |
21 | NULLCMD=: | |
8d138742 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d9898ee8 | 23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
dd184caf | 25 | setopt NO_GLOB_SUBST |
26 | else | |
b0322a85 CE |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
dd184caf | 32 | esac |
dd184caf | 33 | fi |
34 | ||
35 | ||
8d138742 CE |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
b0322a85 | 60 | case $arg in #( |
8d138742 CE |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
dd184caf | 74 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
8d138742 CE |
76 | PATH_SEPARATOR=: |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
d9898ee8 | 81 | fi |
d9898ee8 | 82 | |
d9898ee8 | 83 | |
dd184caf | 84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
dd184caf | 89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
b0322a85 CE |
92 | as_myself= |
93 | case $0 in #(( | |
dd184caf | 94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
dd184caf | 102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
8d138742 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b0322a85 | 113 | exit 1 |
dd184caf | 114 | fi |
115 | ||
b0322a85 CE |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
dd184caf | 123 | done |
d9898ee8 | 124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
8d138742 CE |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
d9898ee8 | 133 | |
dd184caf | 134 | # CDPATH. |
b0322a85 | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
d9898ee8 | 136 | |
b0322a85 CE |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
dd184caf | 162 | if test "x$CONFIG_SHELL" = x; then |
b0322a85 CE |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
dd184caf | 170 | else |
b0322a85 CE |
171 | case \`(set -o) 2>/dev/null\` in #( |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
d9898ee8 | 177 | fi |
b0322a85 CE |
178 | " |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
d9898ee8 | 184 | |
dd184caf | 185 | exitcode=0 |
b0322a85 CE |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -x / || exit 1" | |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | ||
202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | PATH=/empty FPATH=/empty; export PATH FPATH | |
207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
209 | test \$(( 1 + 1 )) = 2 || exit 1" | |
210 | if (eval "$as_required") 2>/dev/null; then : | |
211 | as_have_required=yes | |
dd184caf | 212 | else |
b0322a85 | 213 | as_have_required=no |
dd184caf | 214 | fi |
b0322a85 | 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
dd184caf | 216 | |
dd184caf | 217 | else |
b0322a85 CE |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
219 | as_found=false | |
d9898ee8 | 220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
221 | do | |
222 | IFS=$as_save_IFS | |
223 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
224 | as_found=: |
225 | case $as_dir in #( | |
d9898ee8 | 226 | /*) |
dd184caf | 227 | for as_base in sh bash ksh sh5; do |
b0322a85 CE |
228 | # Try only shells that exist, to save several forks. |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
dd184caf | 237 | done;; |
238 | esac | |
b0322a85 | 239 | as_found=false |
dd184caf | 240 | done |
b0322a85 CE |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
dd184caf | 245 | IFS=$as_save_IFS |
246 | ||
247 | ||
b0322a85 CE |
248 | if test "x$CONFIG_SHELL" != x; then : |
249 | export CONFIG_SHELL | |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
dd184caf | 262 | esac |
b0322a85 CE |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
268 | fi | |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 | else | |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
278 | $0: courier-users@lists.sourceforge.net about your system, | |
279 | $0: including any error possibly output before this | |
280 | $0: message. Then install a modern shell, or manually run | |
281 | $0: the script under such a shell if you do have one." | |
282 | fi | |
283 | exit 1 | |
dd184caf | 284 | fi |
dd184caf | 285 | fi |
dd184caf | 286 | fi |
b0322a85 CE |
287 | SHELL=${CONFIG_SHELL-/bin/sh} |
288 | export SHELL | |
289 | # Unset more variables known to interfere with behavior of common tools. | |
290 | CLICOLOR_FORCE= GREP_OPTIONS= | |
291 | unset CLICOLOR_FORCE GREP_OPTIONS | |
dd184caf | 292 | |
b0322a85 CE |
293 | ## --------------------- ## |
294 | ## M4sh Shell Functions. ## | |
295 | ## --------------------- ## | |
296 | # as_fn_unset VAR | |
297 | # --------------- | |
298 | # Portably unset VAR. | |
299 | as_fn_unset () | |
300 | { | |
301 | { eval $1=; unset $1;} | |
302 | } | |
303 | as_unset=as_fn_unset | |
dd184caf | 304 | |
b0322a85 CE |
305 | # as_fn_set_status STATUS |
306 | # ----------------------- | |
307 | # Set $? to STATUS, without forking. | |
308 | as_fn_set_status () | |
309 | { | |
310 | return $1 | |
311 | } # as_fn_set_status | |
dd184caf | 312 | |
b0322a85 CE |
313 | # as_fn_exit STATUS |
314 | # ----------------- | |
315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
316 | as_fn_exit () | |
317 | { | |
318 | set +e | |
319 | as_fn_set_status $1 | |
320 | exit $1 | |
321 | } # as_fn_exit | |
322 | ||
323 | # as_fn_mkdir_p | |
324 | # ------------- | |
325 | # Create "$as_dir" as a directory, including parents if necessary. | |
326 | as_fn_mkdir_p () | |
327 | { | |
dd184caf | 328 | |
b0322a85 CE |
329 | case $as_dir in #( |
330 | -*) as_dir=./$as_dir;; | |
331 | esac | |
332 | test -d "$as_dir" || eval $as_mkdir_p || { | |
333 | as_dirs= | |
334 | while :; do | |
335 | case $as_dir in #( | |
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
337 | *) as_qdir=$as_dir;; | |
338 | esac | |
339 | as_dirs="'$as_qdir' $as_dirs" | |
340 | as_dir=`$as_dirname -- "$as_dir" || | |
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
342 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
343 | X"$as_dir" : 'X\(//\)$' \| \ | |
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
345 | $as_echo X"$as_dir" | | |
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\/\)[^/].*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | /^X\(\/\/\)$/{ | |
355 | s//\1/ | |
356 | q | |
357 | } | |
358 | /^X\(\/\).*/{ | |
359 | s//\1/ | |
360 | q | |
361 | } | |
362 | s/.*/./; q'` | |
363 | test -d "$as_dir" && break | |
364 | done | |
365 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
dd184caf | 367 | |
dd184caf | 368 | |
b0322a85 | 369 | } # as_fn_mkdir_p |
dd184caf | 370 | |
b0322a85 CE |
371 | # as_fn_executable_p FILE |
372 | # ----------------------- | |
373 | # Test if FILE is an executable regular file. | |
374 | as_fn_executable_p () | |
375 | { | |
376 | test -f "$1" && test -x "$1" | |
377 | } # as_fn_executable_p | |
378 | # as_fn_append VAR VALUE | |
379 | # ---------------------- | |
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
381 | # advantage of any shell optimizations that allow amortized linear growth over | |
382 | # repeated appends, instead of the typical quadratic growth present in naive | |
383 | # implementations. | |
384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
385 | eval 'as_fn_append () | |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
389 | else | |
390 | as_fn_append () | |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
402 | eval 'as_fn_arith () | |
403 | { | |
404 | as_val=$(( $* )) | |
405 | }' | |
406 | else | |
407 | as_fn_arith () | |
408 | { | |
409 | as_val=`expr "$@" || test $? -eq 1` | |
410 | } | |
411 | fi # as_fn_arith | |
dd184caf | 412 | |
413 | ||
b0322a85 CE |
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
415 | # ---------------------------------------- | |
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
418 | # script with STATUS, using 1 if that was 0. | |
419 | as_fn_error () | |
420 | { | |
421 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
422 | if test "$4"; then | |
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
425 | fi | |
426 | $as_echo "$as_me: error: $2" >&2 | |
427 | as_fn_exit $as_status | |
428 | } # as_fn_error | |
dd184caf | 429 | |
b0322a85 CE |
430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
432 | as_expr=expr | |
dd184caf | 433 | else |
b0322a85 | 434 | as_expr=false |
dd184caf | 435 | fi |
436 | ||
b0322a85 CE |
437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
438 | as_basename=basename | |
dd184caf | 439 | else |
b0322a85 | 440 | as_basename=false |
dd184caf | 441 | fi |
442 | ||
b0322a85 CE |
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
444 | as_dirname=dirname | |
dd184caf | 445 | else |
b0322a85 | 446 | as_dirname=false |
dd184caf | 447 | fi |
448 | ||
b0322a85 CE |
449 | as_me=`$as_basename -- "$0" || |
450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
451 | X"$0" : 'X\(//\)$' \| \ | |
452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
453 | $as_echo X/"$0" | | |
454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | /^X\/\(\/\/\)$/{ | |
459 | s//\1/ | |
460 | q | |
461 | } | |
462 | /^X\/\(\/\).*/{ | |
463 | s//\1/ | |
464 | q | |
465 | } | |
466 | s/.*/./; q'` | |
dd184caf | 467 | |
b0322a85 CE |
468 | # Avoid depending upon Character Ranges. |
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
472 | as_cr_digits='0123456789' | |
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
dd184caf | 474 | |
d9898ee8 | 475 | |
b0322a85 CE |
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
dd184caf | 481 | sed -n ' |
482 | p | |
483 | /[$]LINENO/= | |
484 | ' <$as_myself | | |
d9898ee8 | 485 | sed ' |
dd184caf | 486 | s/[$]LINENO.*/&-/ |
487 | t lineno | |
488 | b | |
489 | :lineno | |
d9898ee8 | 490 | N |
dd184caf | 491 | :loop |
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
d9898ee8 | 493 | t loop |
dd184caf | 494 | s/-\n.*// |
d9898ee8 | 495 | ' >$as_me.lineno && |
dd184caf | 496 | chmod +x "$as_me.lineno" || |
b0322a85 | 497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
d9898ee8 | 498 | |
b0322a85 CE |
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
500 | # already done that, so ensure we don't try to do so again and fall | |
501 | # in an infinite loop. This has already happened in practice. | |
502 | _as_can_reexec=no; export _as_can_reexec | |
d9898ee8 | 503 | # Don't try to exec as it changes $[0], causing all sort of problems |
504 | # (the dirname of $[0] is not the place where we might find the | |
dd184caf | 505 | # original and so on. Autoconf is especially sensitive to this). |
506 | . "./$as_me.lineno" | |
d9898ee8 | 507 | # Exit status is that of the last command. |
508 | exit | |
509 | } | |
510 | ||
dd184caf | 511 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 512 | case `echo -n x` in #((((( |
dd184caf | 513 | -n*) |
b0322a85 | 514 | case `echo 'xy\c'` in |
dd184caf | 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
516 | xy) ECHO_C='\c';; |
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 | ECHO_T=' ';; | |
dd184caf | 519 | esac;; |
520 | *) | |
521 | ECHO_N='-n';; | |
d9898ee8 | 522 | esac |
d9898ee8 | 523 | |
524 | rm -f conf$$ conf$$.exe conf$$.file | |
dd184caf | 525 | if test -d conf$$.dir; then |
526 | rm -f conf$$.dir/conf$$.file | |
527 | else | |
528 | rm -f conf$$.dir | |
8d138742 CE |
529 | mkdir conf$$.dir 2>/dev/null |
530 | fi | |
531 | if (echo >conf$$.file) 2>/dev/null; then | |
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
533 | as_ln_s='ln -s' | |
534 | # ... but there are two gotchas: | |
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
b0322a85 | 537 | # In both cases, we have to default to `cp -pR'. |
8d138742 | 538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
b0322a85 | 539 | as_ln_s='cp -pR' |
8d138742 CE |
540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
541 | as_ln_s=ln | |
542 | else | |
b0322a85 | 543 | as_ln_s='cp -pR' |
8d138742 | 544 | fi |
d9898ee8 | 545 | else |
b0322a85 | 546 | as_ln_s='cp -pR' |
d9898ee8 | 547 | fi |
dd184caf | 548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
549 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 550 | |
551 | if mkdir -p . 2>/dev/null; then | |
b0322a85 | 552 | as_mkdir_p='mkdir -p "$as_dir"' |
d9898ee8 | 553 | else |
554 | test -d ./-p && rmdir ./-p | |
555 | as_mkdir_p=false | |
556 | fi | |
557 | ||
b0322a85 CE |
558 | as_test_x='test -x' |
559 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 560 | |
561 | # Sed expression to map a string onto a valid CPP name. | |
562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | # Sed expression to map a string onto a valid variable name. | |
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
566 | ||
d9898ee8 | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
568 | ||
d9898ee8 | 569 | |
b0322a85 CE |
570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
571 | exec 6>&1 | |
dd184caf | 572 | |
d9898ee8 | 573 | # Name of the host. |
b0322a85 | 574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
d9898ee8 | 575 | # so uname gets run too. |
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
577 | ||
d9898ee8 | 578 | # |
579 | # Initializations. | |
580 | # | |
581 | ac_default_prefix=/usr/local | |
dd184caf | 582 | ac_clean_files= |
d9898ee8 | 583 | ac_config_libobj_dir=. |
dd184caf | 584 | LIBOBJS= |
d9898ee8 | 585 | cross_compiling=no |
586 | subdirs= | |
587 | MFLAGS= | |
588 | MAKEFLAGS= | |
d9898ee8 | 589 | |
d9898ee8 | 590 | # Identity of this package. |
591 | PACKAGE_NAME='numlib' | |
592 | PACKAGE_TARNAME='numlib' | |
593 | PACKAGE_VERSION='0.10' | |
594 | PACKAGE_STRING='numlib 0.10' | |
595 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
b0322a85 | 596 | PACKAGE_URL='' |
d9898ee8 | 597 | |
598 | ac_unique_file="atotimet.c" | |
599 | # Factoring default headers for most tests. | |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
dd184caf | 602 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 603 | # include <sys/types.h> |
604 | #endif | |
dd184caf | 605 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 606 | # include <sys/stat.h> |
607 | #endif | |
dd184caf | 608 | #ifdef STDC_HEADERS |
d9898ee8 | 609 | # include <stdlib.h> |
610 | # include <stddef.h> | |
611 | #else | |
dd184caf | 612 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 613 | # include <stdlib.h> |
614 | # endif | |
615 | #endif | |
dd184caf | 616 | #ifdef HAVE_STRING_H |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 618 | # include <memory.h> |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
dd184caf | 622 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 623 | # include <strings.h> |
624 | #endif | |
dd184caf | 625 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 626 | # include <inttypes.h> |
d9898ee8 | 627 | #endif |
dd184caf | 628 | #ifdef HAVE_STDINT_H |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 632 | # include <unistd.h> |
633 | #endif" | |
634 | ||
8d138742 CE |
635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
dd184caf | 639 | CPP |
d50284c4 | 640 | LT_SYS_LIBRARY_PATH |
8d138742 CE |
641 | OTOOL64 |
642 | OTOOL | |
643 | LIPO | |
644 | NMEDIT | |
645 | DSYMUTIL | |
b0322a85 | 646 | MANIFEST_TOOL |
8d138742 | 647 | RANLIB |
b0322a85 | 648 | ac_ct_AR |
8d138742 | 649 | AR |
b0322a85 | 650 | DLLTOOL |
8d138742 CE |
651 | OBJDUMP |
652 | NM | |
653 | ac_ct_DUMPBIN | |
654 | DUMPBIN | |
655 | LD | |
656 | FGREP | |
657 | EGREP | |
658 | GREP | |
659 | SED | |
660 | host_os | |
661 | host_vendor | |
662 | host_cpu | |
663 | host | |
664 | build_os | |
665 | build_vendor | |
666 | build_cpu | |
667 | build | |
dd184caf | 668 | LIBTOOL |
8d138742 CE |
669 | LN_S |
670 | am__fastdepCC_FALSE | |
671 | am__fastdepCC_TRUE | |
672 | CCDEPMODE | |
b0322a85 | 673 | am__nodep |
8d138742 CE |
674 | AMDEPBACKSLASH |
675 | AMDEP_FALSE | |
676 | AMDEP_TRUE | |
677 | am__quote | |
678 | am__include | |
679 | DEPDIR | |
680 | OBJEXT | |
681 | EXEEXT | |
682 | ac_ct_CC | |
683 | CPPFLAGS | |
684 | LDFLAGS | |
685 | CFLAGS | |
686 | CC | |
b0322a85 CE |
687 | AM_BACKSLASH |
688 | AM_DEFAULT_VERBOSITY | |
689 | AM_DEFAULT_V | |
690 | AM_V | |
8d138742 CE |
691 | am__untar |
692 | am__tar | |
693 | AMTAR | |
694 | am__leading_dot | |
695 | SET_MAKE | |
696 | AWK | |
697 | mkdir_p | |
698 | MKDIR_P | |
699 | INSTALL_STRIP_PROGRAM | |
700 | STRIP | |
701 | install_sh | |
702 | MAKEINFO | |
703 | AUTOHEADER | |
704 | AUTOMAKE | |
705 | AUTOCONF | |
706 | ACLOCAL | |
707 | VERSION | |
708 | PACKAGE | |
709 | CYGPATH_W | |
710 | am__isrc | |
711 | INSTALL_DATA | |
712 | INSTALL_SCRIPT | |
713 | INSTALL_PROGRAM | |
714 | target_alias | |
715 | host_alias | |
716 | build_alias | |
717 | LIBS | |
718 | ECHO_T | |
719 | ECHO_N | |
720 | ECHO_C | |
721 | DEFS | |
722 | mandir | |
723 | localedir | |
724 | libdir | |
725 | psdir | |
726 | pdfdir | |
727 | dvidir | |
728 | htmldir | |
729 | infodir | |
730 | docdir | |
731 | oldincludedir | |
732 | includedir | |
733 | localstatedir | |
734 | sharedstatedir | |
735 | sysconfdir | |
736 | datadir | |
737 | datarootdir | |
738 | libexecdir | |
739 | sbindir | |
740 | bindir | |
741 | program_transform_name | |
742 | prefix | |
743 | exec_prefix | |
b0322a85 | 744 | PACKAGE_URL |
8d138742 CE |
745 | PACKAGE_BUGREPORT |
746 | PACKAGE_STRING | |
747 | PACKAGE_VERSION | |
748 | PACKAGE_TARNAME | |
749 | PACKAGE_NAME | |
750 | PATH_SEPARATOR | |
751 | SHELL' | |
d9898ee8 | 752 | ac_subst_files='' |
8d138742 CE |
753 | ac_user_opts=' |
754 | enable_option_checking | |
b0322a85 | 755 | enable_silent_rules |
8d138742 CE |
756 | enable_dependency_tracking |
757 | enable_shared | |
758 | enable_static | |
759 | with_pic | |
760 | enable_fast_install | |
d50284c4 | 761 | with_aix_soname |
8d138742 | 762 | with_gnu_ld |
b0322a85 | 763 | with_sysroot |
8d138742 | 764 | enable_libtool_lock |
b0322a85 | 765 | enable_largefile |
8d138742 | 766 | ' |
dd184caf | 767 | ac_precious_vars='build_alias |
768 | host_alias | |
769 | target_alias | |
770 | CC | |
771 | CFLAGS | |
772 | LDFLAGS | |
773 | LIBS | |
774 | CPPFLAGS | |
d50284c4 | 775 | LT_SYS_LIBRARY_PATH |
8d138742 | 776 | CPP' |
dd184caf | 777 | |
d9898ee8 | 778 | |
779 | # Initialize some variables set by options. | |
780 | ac_init_help= | |
781 | ac_init_version=false | |
8d138742 CE |
782 | ac_unrecognized_opts= |
783 | ac_unrecognized_sep= | |
d9898ee8 | 784 | # The variables have the same names as the options, with |
785 | # dashes changed to underlines. | |
786 | cache_file=/dev/null | |
787 | exec_prefix=NONE | |
788 | no_create= | |
789 | no_recursion= | |
790 | prefix=NONE | |
791 | program_prefix=NONE | |
792 | program_suffix=NONE | |
793 | program_transform_name=s,x,x, | |
794 | silent= | |
795 | site= | |
796 | srcdir= | |
797 | verbose= | |
798 | x_includes=NONE | |
799 | x_libraries=NONE | |
800 | ||
801 | # Installation directory options. | |
802 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
803 | # and all the variables that are supposed to be based on exec_prefix | |
804 | # by default will actually change. | |
805 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 806 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 807 | bindir='${exec_prefix}/bin' |
808 | sbindir='${exec_prefix}/sbin' | |
809 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 810 | datarootdir='${prefix}/share' |
811 | datadir='${datarootdir}' | |
d9898ee8 | 812 | sysconfdir='${prefix}/etc' |
813 | sharedstatedir='${prefix}/com' | |
814 | localstatedir='${prefix}/var' | |
d9898ee8 | 815 | includedir='${prefix}/include' |
816 | oldincludedir='/usr/include' | |
dd184caf | 817 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
818 | infodir='${datarootdir}/info' | |
819 | htmldir='${docdir}' | |
820 | dvidir='${docdir}' | |
821 | pdfdir='${docdir}' | |
822 | psdir='${docdir}' | |
823 | libdir='${exec_prefix}/lib' | |
824 | localedir='${datarootdir}/locale' | |
825 | mandir='${datarootdir}/man' | |
d9898ee8 | 826 | |
827 | ac_prev= | |
dd184caf | 828 | ac_dashdash= |
d9898ee8 | 829 | for ac_option |
830 | do | |
831 | # If the previous option needs an argument, assign it. | |
832 | if test -n "$ac_prev"; then | |
dd184caf | 833 | eval $ac_prev=\$ac_option |
d9898ee8 | 834 | ac_prev= |
835 | continue | |
836 | fi | |
837 | ||
dd184caf | 838 | case $ac_option in |
b0322a85 CE |
839 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
840 | *=) ac_optarg= ;; | |
841 | *) ac_optarg=yes ;; | |
dd184caf | 842 | esac |
d9898ee8 | 843 | |
844 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
845 | ||
dd184caf | 846 | case $ac_dashdash$ac_option in |
847 | --) | |
848 | ac_dashdash=yes ;; | |
d9898ee8 | 849 | |
850 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
851 | ac_prev=bindir ;; | |
852 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
853 | bindir=$ac_optarg ;; | |
854 | ||
855 | -build | --build | --buil | --bui | --bu) | |
856 | ac_prev=build_alias ;; | |
857 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
858 | build_alias=$ac_optarg ;; | |
859 | ||
860 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
861 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
862 | ac_prev=cache_file ;; | |
863 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
864 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
865 | cache_file=$ac_optarg ;; | |
866 | ||
867 | --config-cache | -C) | |
868 | cache_file=config.cache ;; | |
869 | ||
dd184caf | 870 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 871 | ac_prev=datadir ;; |
dd184caf | 872 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 873 | datadir=$ac_optarg ;; |
874 | ||
dd184caf | 875 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
876 | | --dataroo | --dataro | --datar) | |
877 | ac_prev=datarootdir ;; | |
878 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
879 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
880 | datarootdir=$ac_optarg ;; | |
881 | ||
d9898ee8 | 882 | -disable-* | --disable-*) |
8d138742 | 883 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 884 | # Reject names that are not valid shell variable names. |
8d138742 | 885 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 886 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
887 | ac_useropt_orig=$ac_useropt |
888 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
889 | case $ac_user_opts in | |
890 | *" | |
891 | "enable_$ac_useropt" | |
892 | "*) ;; | |
893 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
894 | ac_unrecognized_sep=', ';; | |
895 | esac | |
896 | eval enable_$ac_useropt=no ;; | |
dd184caf | 897 | |
898 | -docdir | --docdir | --docdi | --doc | --do) | |
899 | ac_prev=docdir ;; | |
900 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
901 | docdir=$ac_optarg ;; | |
902 | ||
903 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
904 | ac_prev=dvidir ;; | |
905 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
906 | dvidir=$ac_optarg ;; | |
d9898ee8 | 907 | |
908 | -enable-* | --enable-*) | |
8d138742 | 909 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 910 | # Reject names that are not valid shell variable names. |
8d138742 | 911 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 912 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
913 | ac_useropt_orig=$ac_useropt |
914 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
915 | case $ac_user_opts in | |
916 | *" | |
917 | "enable_$ac_useropt" | |
918 | "*) ;; | |
919 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
920 | ac_unrecognized_sep=', ';; | |
921 | esac | |
922 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 923 | |
924 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
925 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
926 | | --exec | --exe | --ex) | |
927 | ac_prev=exec_prefix ;; | |
928 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
929 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
930 | | --exec=* | --exe=* | --ex=*) | |
931 | exec_prefix=$ac_optarg ;; | |
932 | ||
933 | -gas | --gas | --ga | --g) | |
934 | # Obsolete; use --with-gas. | |
935 | with_gas=yes ;; | |
936 | ||
937 | -help | --help | --hel | --he | -h) | |
938 | ac_init_help=long ;; | |
939 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
940 | ac_init_help=recursive ;; | |
941 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
942 | ac_init_help=short ;; | |
943 | ||
944 | -host | --host | --hos | --ho) | |
945 | ac_prev=host_alias ;; | |
946 | -host=* | --host=* | --hos=* | --ho=*) | |
947 | host_alias=$ac_optarg ;; | |
948 | ||
dd184caf | 949 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
950 | ac_prev=htmldir ;; | |
951 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
952 | | --ht=*) | |
953 | htmldir=$ac_optarg ;; | |
954 | ||
d9898ee8 | 955 | -includedir | --includedir | --includedi | --included | --include \ |
956 | | --includ | --inclu | --incl | --inc) | |
957 | ac_prev=includedir ;; | |
958 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
959 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
960 | includedir=$ac_optarg ;; | |
961 | ||
962 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
963 | ac_prev=infodir ;; | |
964 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
965 | infodir=$ac_optarg ;; | |
966 | ||
967 | -libdir | --libdir | --libdi | --libd) | |
968 | ac_prev=libdir ;; | |
969 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
970 | libdir=$ac_optarg ;; | |
971 | ||
972 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
973 | | --libexe | --libex | --libe) | |
974 | ac_prev=libexecdir ;; | |
975 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
976 | | --libexe=* | --libex=* | --libe=*) | |
977 | libexecdir=$ac_optarg ;; | |
978 | ||
dd184caf | 979 | -localedir | --localedir | --localedi | --localed | --locale) |
980 | ac_prev=localedir ;; | |
981 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
982 | localedir=$ac_optarg ;; | |
983 | ||
d9898ee8 | 984 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 985 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 986 | ac_prev=localstatedir ;; |
987 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 988 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 989 | localstatedir=$ac_optarg ;; |
990 | ||
991 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
992 | ac_prev=mandir ;; | |
993 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
994 | mandir=$ac_optarg ;; | |
995 | ||
996 | -nfp | --nfp | --nf) | |
997 | # Obsolete; use --without-fp. | |
998 | with_fp=no ;; | |
999 | ||
1000 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1001 | | --no-cr | --no-c | -n) | |
1002 | no_create=yes ;; | |
1003 | ||
1004 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1005 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1006 | no_recursion=yes ;; | |
1007 | ||
1008 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1009 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1010 | | --oldin | --oldi | --old | --ol | --o) | |
1011 | ac_prev=oldincludedir ;; | |
1012 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1013 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1014 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1015 | oldincludedir=$ac_optarg ;; | |
1016 | ||
1017 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1018 | ac_prev=prefix ;; | |
1019 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1020 | prefix=$ac_optarg ;; | |
1021 | ||
1022 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1023 | | --program-pre | --program-pr | --program-p) | |
1024 | ac_prev=program_prefix ;; | |
1025 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1026 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1027 | program_prefix=$ac_optarg ;; | |
1028 | ||
1029 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1030 | | --program-suf | --program-su | --program-s) | |
1031 | ac_prev=program_suffix ;; | |
1032 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1033 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1034 | program_suffix=$ac_optarg ;; | |
1035 | ||
1036 | -program-transform-name | --program-transform-name \ | |
1037 | | --program-transform-nam | --program-transform-na \ | |
1038 | | --program-transform-n | --program-transform- \ | |
1039 | | --program-transform | --program-transfor \ | |
1040 | | --program-transfo | --program-transf \ | |
1041 | | --program-trans | --program-tran \ | |
1042 | | --progr-tra | --program-tr | --program-t) | |
1043 | ac_prev=program_transform_name ;; | |
1044 | -program-transform-name=* | --program-transform-name=* \ | |
1045 | | --program-transform-nam=* | --program-transform-na=* \ | |
1046 | | --program-transform-n=* | --program-transform-=* \ | |
1047 | | --program-transform=* | --program-transfor=* \ | |
1048 | | --program-transfo=* | --program-transf=* \ | |
1049 | | --program-trans=* | --program-tran=* \ | |
1050 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1051 | program_transform_name=$ac_optarg ;; | |
1052 | ||
dd184caf | 1053 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1054 | ac_prev=pdfdir ;; | |
1055 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1056 | pdfdir=$ac_optarg ;; | |
1057 | ||
1058 | -psdir | --psdir | --psdi | --psd | --ps) | |
1059 | ac_prev=psdir ;; | |
1060 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1061 | psdir=$ac_optarg ;; | |
1062 | ||
d9898ee8 | 1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1064 | | -silent | --silent | --silen | --sile | --sil) | |
1065 | silent=yes ;; | |
1066 | ||
1067 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1068 | ac_prev=sbindir ;; | |
1069 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1070 | | --sbi=* | --sb=*) | |
1071 | sbindir=$ac_optarg ;; | |
1072 | ||
1073 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1074 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1075 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1076 | | --sha | --sh) | |
1077 | ac_prev=sharedstatedir ;; | |
1078 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1079 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1080 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1081 | | --sha=* | --sh=*) | |
1082 | sharedstatedir=$ac_optarg ;; | |
1083 | ||
1084 | -site | --site | --sit) | |
1085 | ac_prev=site ;; | |
1086 | -site=* | --site=* | --sit=*) | |
1087 | site=$ac_optarg ;; | |
1088 | ||
1089 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1090 | ac_prev=srcdir ;; | |
1091 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1092 | srcdir=$ac_optarg ;; | |
1093 | ||
1094 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1095 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1096 | ac_prev=sysconfdir ;; | |
1097 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1098 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1099 | sysconfdir=$ac_optarg ;; | |
1100 | ||
1101 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1102 | ac_prev=target_alias ;; | |
1103 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1104 | target_alias=$ac_optarg ;; | |
1105 | ||
1106 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1107 | verbose=yes ;; | |
1108 | ||
1109 | -version | --version | --versio | --versi | --vers | -V) | |
1110 | ac_init_version=: ;; | |
1111 | ||
1112 | -with-* | --with-*) | |
8d138742 | 1113 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1114 | # Reject names that are not valid shell variable names. |
8d138742 | 1115 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1116 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1117 | ac_useropt_orig=$ac_useropt |
1118 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1119 | case $ac_user_opts in | |
1120 | *" | |
1121 | "with_$ac_useropt" | |
1122 | "*) ;; | |
1123 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1124 | ac_unrecognized_sep=', ';; | |
1125 | esac | |
1126 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1127 | |
1128 | -without-* | --without-*) | |
8d138742 | 1129 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1130 | # Reject names that are not valid shell variable names. |
8d138742 | 1131 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1132 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
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--without-$ac_useropt_orig" | |
1140 | ac_unrecognized_sep=', ';; | |
1141 | esac | |
1142 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1143 | |
1144 | --x) | |
1145 | # Obsolete; use --with-x. | |
1146 | with_x=yes ;; | |
1147 | ||
1148 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1149 | | --x-incl | --x-inc | --x-in | --x-i) | |
1150 | ac_prev=x_includes ;; | |
1151 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1152 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1153 | x_includes=$ac_optarg ;; | |
1154 | ||
1155 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1156 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1157 | ac_prev=x_libraries ;; | |
1158 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1159 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1160 | x_libraries=$ac_optarg ;; | |
1161 | ||
b0322a85 CE |
1162 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1163 | Try \`$0 --help' for more information" | |
d9898ee8 | 1164 | ;; |
1165 | ||
1166 | *=*) | |
1167 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1168 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1169 | case $ac_envvar in #( |
1170 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1171 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1172 | esac | |
dd184caf | 1173 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1174 | export $ac_envvar ;; |
1175 | ||
1176 | *) | |
1177 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1178 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1179 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1180 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1181 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1182 | ;; |
1183 | ||
1184 | esac | |
1185 | done | |
1186 | ||
1187 | if test -n "$ac_prev"; then | |
1188 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1189 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1190 | fi |
1191 | ||
8d138742 CE |
1192 | if test -n "$ac_unrecognized_opts"; then |
1193 | case $enable_option_checking in | |
1194 | no) ;; | |
b0322a85 | 1195 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1196 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1197 | esac | |
1198 | fi | |
1199 | ||
1200 | # Check all directory arguments for consistency. | |
dd184caf | 1201 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1202 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1203 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1204 | libdir localedir mandir | |
d9898ee8 | 1205 | do |
dd184caf | 1206 | eval ac_val=\$$ac_var |
8d138742 CE |
1207 | # Remove trailing slashes. |
1208 | case $ac_val in | |
1209 | */ ) | |
1210 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1211 | eval $ac_var=\$ac_val;; | |
1212 | esac | |
1213 | # Be sure to have absolute directory names. | |
d9898ee8 | 1214 | case $ac_val in |
dd184caf | 1215 | [\\/$]* | ?:[\\/]* ) continue;; |
1216 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1217 | esac |
b0322a85 | 1218 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1219 | done |
1220 | ||
1221 | # There might be people who depend on the old broken behavior: `$host' | |
1222 | # used to hold the argument of --host etc. | |
1223 | # FIXME: To remove some day. | |
1224 | build=$build_alias | |
1225 | host=$host_alias | |
1226 | target=$target_alias | |
1227 | ||
1228 | # FIXME: To remove some day. | |
1229 | if test "x$host_alias" != x; then | |
1230 | if test "x$build_alias" = x; then | |
1231 | cross_compiling=maybe | |
d9898ee8 | 1232 | elif test "x$build_alias" != "x$host_alias"; then |
1233 | cross_compiling=yes | |
1234 | fi | |
1235 | fi | |
1236 | ||
1237 | ac_tool_prefix= | |
1238 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1239 | ||
1240 | test "$silent" = yes && exec 6>/dev/null | |
1241 | ||
1242 | ||
dd184caf | 1243 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1244 | ac_ls_di=`ls -di .` && | |
1245 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1246 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1247 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1248 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1249 | |
1250 | ||
d9898ee8 | 1251 | # Find the source files, if location was not specified. |
1252 | if test -z "$srcdir"; then | |
1253 | ac_srcdir_defaulted=yes | |
dd184caf | 1254 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1255 | ac_confdir=`$as_dirname -- "$as_myself" || |
1256 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1257 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1258 | X"$as_myself" : 'X\(//\)$' \| \ | |
1259 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1260 | $as_echo X"$as_myself" | | |
dd184caf | 1261 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1262 | s//\1/ | |
1263 | q | |
1264 | } | |
1265 | /^X\(\/\/\)[^/].*/{ | |
1266 | s//\1/ | |
1267 | q | |
1268 | } | |
1269 | /^X\(\/\/\)$/{ | |
1270 | s//\1/ | |
1271 | q | |
1272 | } | |
1273 | /^X\(\/\).*/{ | |
1274 | s//\1/ | |
1275 | q | |
1276 | } | |
1277 | s/.*/./; q'` | |
d9898ee8 | 1278 | srcdir=$ac_confdir |
dd184caf | 1279 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1280 | srcdir=.. |
1281 | fi | |
1282 | else | |
1283 | ac_srcdir_defaulted=no | |
1284 | fi | |
dd184caf | 1285 | if test ! -r "$srcdir/$ac_unique_file"; then |
1286 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1287 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1288 | fi |
dd184caf | 1289 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1290 | ac_abs_confdir=`( | |
b0322a85 | 1291 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1292 | pwd)` |
1293 | # When building in place, set srcdir=. | |
1294 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1295 | srcdir=. | |
1296 | fi | |
1297 | # Remove unnecessary trailing slashes from srcdir. | |
1298 | # Double slashes in file names in object file debugging info | |
1299 | # mess up M-x gdb in Emacs. | |
1300 | case $srcdir in | |
1301 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1302 | esac | |
1303 | for ac_var in $ac_precious_vars; do | |
1304 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1305 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1306 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1307 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1308 | done | |
d9898ee8 | 1309 | |
1310 | # | |
1311 | # Report the --help message. | |
1312 | # | |
1313 | if test "$ac_init_help" = "long"; then | |
1314 | # Omit some internal or obsolete options to make the list less imposing. | |
1315 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1316 | cat <<_ACEOF | |
1317 | \`configure' configures numlib 0.10 to adapt to many kinds of systems. | |
1318 | ||
1319 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1320 | ||
1321 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1322 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1323 | ||
1324 | Defaults for the options are specified in brackets. | |
1325 | ||
1326 | Configuration: | |
1327 | -h, --help display this help and exit | |
1328 | --help=short display options specific to this package | |
1329 | --help=recursive display the short help of all the included packages | |
1330 | -V, --version display version information and exit | |
b0322a85 | 1331 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1332 | --cache-file=FILE cache test results in FILE [disabled] |
1333 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1334 | -n, --no-create do not create output files | |
1335 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1336 | ||
d9898ee8 | 1337 | Installation directories: |
1338 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1339 | [$ac_default_prefix] |
d9898ee8 | 1340 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1341 | [PREFIX] |
d9898ee8 | 1342 | |
1343 | By default, \`make install' will install all the files in | |
1344 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1345 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1346 | for instance \`--prefix=\$HOME'. | |
1347 | ||
1348 | For better control, use the options below. | |
1349 | ||
1350 | Fine tuning of the installation directories: | |
8d138742 CE |
1351 | --bindir=DIR user executables [EPREFIX/bin] |
1352 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1353 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1354 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1355 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1356 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1357 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1358 | --includedir=DIR C header files [PREFIX/include] | |
1359 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1360 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1361 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1362 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1363 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1364 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1365 | --docdir=DIR documentation root [DATAROOTDIR/doc/numlib] | |
1366 | --htmldir=DIR html documentation [DOCDIR] | |
1367 | --dvidir=DIR dvi documentation [DOCDIR] | |
1368 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1369 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1370 | _ACEOF |
1371 | ||
1372 | cat <<\_ACEOF | |
1373 | ||
1374 | Program names: | |
1375 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1376 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1377 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1378 | ||
1379 | System types: | |
1380 | --build=BUILD configure for building on BUILD [guessed] | |
1381 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1382 | _ACEOF | |
1383 | fi | |
1384 | ||
1385 | if test -n "$ac_init_help"; then | |
1386 | case $ac_init_help in | |
1387 | short | recursive ) echo "Configuration of numlib 0.10:";; | |
1388 | esac | |
1389 | cat <<\_ACEOF | |
1390 | ||
1391 | Optional Features: | |
8d138742 | 1392 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1393 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1394 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1395 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1396 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1397 | --enable-dependency-tracking | |
1398 | do not reject slow dependency extractors | |
1399 | --disable-dependency-tracking | |
1400 | speeds up one-time build | |
dd184caf | 1401 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1402 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1403 | --enable-fast-install[=PKGS] |
1404 | optimize for fast installation [default=yes] | |
1405 | --disable-libtool-lock avoid locking (might break parallel builds) | |
b0322a85 | 1406 | --disable-largefile omit support for large files |
d9898ee8 | 1407 | |
1408 | Optional Packages: | |
1409 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1410 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1411 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1412 | both] |
d50284c4 CE |
1413 | --with-aix-soname=aix|svr4|both |
1414 | shared library versioning (aka "SONAME") variant to | |
1415 | provide on AIX, [default=aix]. | |
8d138742 | 1416 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d50284c4 CE |
1417 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1418 | compiler's sysroot if not specified). | |
d9898ee8 | 1419 | |
1420 | Some influential environment variables: | |
1421 | CC C compiler command | |
1422 | CFLAGS C compiler flags | |
1423 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1424 | nonstandard directory <lib dir> | |
dd184caf | 1425 | LIBS libraries to pass to the linker, e.g. -l<library> |
b0322a85 | 1426 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dd184caf | 1427 | you have headers in a nonstandard directory <include dir> |
d50284c4 CE |
1428 | LT_SYS_LIBRARY_PATH |
1429 | User-defined run-time library search path. | |
d9898ee8 | 1430 | CPP C preprocessor |
d9898ee8 | 1431 | |
1432 | Use these variables to override the choices made by `configure' or to help | |
1433 | it to find libraries and programs with nonstandard names/locations. | |
1434 | ||
1435 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1436 | _ACEOF | |
dd184caf | 1437 | ac_status=$? |
d9898ee8 | 1438 | fi |
1439 | ||
1440 | if test "$ac_init_help" = "recursive"; then | |
1441 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1442 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1443 | test -d "$ac_dir" || |
1444 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1445 | continue | |
d9898ee8 | 1446 | ac_builddir=. |
1447 | ||
dd184caf | 1448 | case "$ac_dir" in |
1449 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1450 | *) | |
8d138742 | 1451 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1452 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1453 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1454 | case $ac_top_builddir_sub in |
1455 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1456 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1457 | esac ;; | |
1458 | esac | |
1459 | ac_abs_top_builddir=$ac_pwd | |
1460 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1461 | # for backward compatibility: | |
1462 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1463 | |
b0322a85 CE |
1464 | case $srcdir in |
1465 | .) # We are building in place. | |
1466 | ac_srcdir=. | |
1467 | ac_top_srcdir=$ac_top_builddir_sub | |
1468 | ac_abs_top_srcdir=$ac_pwd ;; | |
1469 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1470 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1471 | ac_top_srcdir=$srcdir | |
1472 | ac_abs_top_srcdir=$srcdir ;; | |
1473 | *) # Relative name. | |
1474 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1475 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1476 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1477 | esac | |
1478 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1479 | ||
1480 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1481 | # Check for guested configure. | |
1482 | if test -f "$ac_srcdir/configure.gnu"; then | |
1483 | echo && | |
1484 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1485 | elif test -f "$ac_srcdir/configure"; then | |
1486 | echo && | |
1487 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1488 | else | |
1489 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1490 | fi || ac_status=$? | |
1491 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1492 | done | |
1493 | fi | |
1494 | ||
1495 | test -n "$ac_init_help" && exit $ac_status | |
1496 | if $ac_init_version; then | |
1497 | cat <<\_ACEOF | |
1498 | numlib configure 0.10 | |
1499 | generated by GNU Autoconf 2.69 | |
1500 | ||
1501 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1502 | This configure script is free software; the Free Software Foundation | |
1503 | gives unlimited permission to copy, distribute and modify it. | |
1504 | _ACEOF | |
1505 | exit | |
1506 | fi | |
1507 | ||
1508 | ## ------------------------ ## | |
1509 | ## Autoconf initialization. ## | |
1510 | ## ------------------------ ## | |
1511 | ||
1512 | # ac_fn_c_try_compile LINENO | |
1513 | # -------------------------- | |
1514 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1515 | ac_fn_c_try_compile () | |
1516 | { | |
1517 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1518 | rm -f conftest.$ac_objext | |
1519 | if { { ac_try="$ac_compile" | |
1520 | case "(($ac_try" in | |
1521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1522 | *) ac_try_echo=$ac_try;; | |
1523 | esac | |
1524 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1525 | $as_echo "$ac_try_echo"; } >&5 | |
1526 | (eval "$ac_compile") 2>conftest.err | |
1527 | ac_status=$? | |
1528 | if test -s conftest.err; then | |
1529 | grep -v '^ *+' conftest.err >conftest.er1 | |
1530 | cat conftest.er1 >&5 | |
1531 | mv -f conftest.er1 conftest.err | |
1532 | fi | |
1533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1534 | test $ac_status = 0; } && { | |
1535 | test -z "$ac_c_werror_flag" || | |
1536 | test ! -s conftest.err | |
1537 | } && test -s conftest.$ac_objext; then : | |
1538 | ac_retval=0 | |
1539 | else | |
1540 | $as_echo "$as_me: failed program was:" >&5 | |
1541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1542 | ||
1543 | ac_retval=1 | |
1544 | fi | |
1545 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1546 | as_fn_set_status $ac_retval | |
1547 | ||
1548 | } # ac_fn_c_try_compile | |
1549 | ||
1550 | # ac_fn_c_try_link LINENO | |
1551 | # ----------------------- | |
1552 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1553 | ac_fn_c_try_link () | |
1554 | { | |
1555 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1557 | if { { ac_try="$ac_link" | |
1558 | case "(($ac_try" in | |
1559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1560 | *) ac_try_echo=$ac_try;; | |
1561 | esac | |
1562 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1563 | $as_echo "$ac_try_echo"; } >&5 | |
1564 | (eval "$ac_link") 2>conftest.err | |
1565 | ac_status=$? | |
1566 | if test -s conftest.err; then | |
1567 | grep -v '^ *+' conftest.err >conftest.er1 | |
1568 | cat conftest.er1 >&5 | |
1569 | mv -f conftest.er1 conftest.err | |
1570 | fi | |
1571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1572 | test $ac_status = 0; } && { | |
1573 | test -z "$ac_c_werror_flag" || | |
1574 | test ! -s conftest.err | |
1575 | } && test -s conftest$ac_exeext && { | |
1576 | test "$cross_compiling" = yes || | |
1577 | test -x conftest$ac_exeext | |
1578 | }; then : | |
1579 | ac_retval=0 | |
1580 | else | |
1581 | $as_echo "$as_me: failed program was:" >&5 | |
1582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1583 | ||
1584 | ac_retval=1 | |
1585 | fi | |
1586 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1587 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1588 | # interfere with the next link command; also delete a directory that is | |
1589 | # left behind by Apple's compiler. We do this before executing the actions. | |
1590 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1591 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1592 | as_fn_set_status $ac_retval | |
1593 | ||
1594 | } # ac_fn_c_try_link | |
1595 | ||
1596 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1597 | # ------------------------------------------------------- | |
1598 | # Tests whether HEADER exists and can be compiled using the include files in | |
1599 | # INCLUDES, setting the cache variable VAR accordingly. | |
1600 | ac_fn_c_check_header_compile () | |
1601 | { | |
1602 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1604 | $as_echo_n "checking for $2... " >&6; } | |
1605 | if eval \${$3+:} false; then : | |
1606 | $as_echo_n "(cached) " >&6 | |
1607 | else | |
1608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1609 | /* end confdefs.h. */ | |
1610 | $4 | |
1611 | #include <$2> | |
1612 | _ACEOF | |
1613 | if ac_fn_c_try_compile "$LINENO"; then : | |
1614 | eval "$3=yes" | |
1615 | else | |
1616 | eval "$3=no" | |
1617 | fi | |
1618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1619 | fi | |
1620 | eval ac_res=\$$3 | |
1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1622 | $as_echo "$ac_res" >&6; } | |
1623 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1624 | ||
1625 | } # ac_fn_c_check_header_compile | |
1626 | ||
1627 | # ac_fn_c_try_cpp LINENO | |
1628 | # ---------------------- | |
1629 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1630 | ac_fn_c_try_cpp () | |
1631 | { | |
1632 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1633 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1634 | case "(($ac_try" in | |
1635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1636 | *) ac_try_echo=$ac_try;; | |
1637 | esac | |
1638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1639 | $as_echo "$ac_try_echo"; } >&5 | |
1640 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1641 | ac_status=$? | |
1642 | if test -s conftest.err; then | |
1643 | grep -v '^ *+' conftest.err >conftest.er1 | |
1644 | cat conftest.er1 >&5 | |
1645 | mv -f conftest.er1 conftest.err | |
1646 | fi | |
1647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1648 | test $ac_status = 0; } > conftest.i && { | |
1649 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1650 | test ! -s conftest.err | |
1651 | }; then : | |
1652 | ac_retval=0 | |
1653 | else | |
1654 | $as_echo "$as_me: failed program was:" >&5 | |
1655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1656 | ||
1657 | ac_retval=1 | |
1658 | fi | |
1659 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1660 | as_fn_set_status $ac_retval | |
1661 | ||
1662 | } # ac_fn_c_try_cpp | |
1663 | ||
1664 | # ac_fn_c_try_run LINENO | |
1665 | # ---------------------- | |
1666 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1667 | # that executables *can* be run. | |
1668 | ac_fn_c_try_run () | |
1669 | { | |
1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1671 | if { { ac_try="$ac_link" | |
1672 | case "(($ac_try" in | |
1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1674 | *) ac_try_echo=$ac_try;; | |
1675 | esac | |
1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1677 | $as_echo "$ac_try_echo"; } >&5 | |
1678 | (eval "$ac_link") 2>&5 | |
1679 | ac_status=$? | |
1680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1681 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1682 | { { case "(($ac_try" in | |
1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1684 | *) ac_try_echo=$ac_try;; | |
1685 | esac | |
1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1687 | $as_echo "$ac_try_echo"; } >&5 | |
1688 | (eval "$ac_try") 2>&5 | |
1689 | ac_status=$? | |
1690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1691 | test $ac_status = 0; }; }; then : | |
1692 | ac_retval=0 | |
1693 | else | |
1694 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1695 | $as_echo "$as_me: failed program was:" >&5 | |
1696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1697 | ||
1698 | ac_retval=$ac_status | |
1699 | fi | |
1700 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1701 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1702 | as_fn_set_status $ac_retval | |
1703 | ||
1704 | } # ac_fn_c_try_run | |
1705 | ||
1706 | # ac_fn_c_check_func LINENO FUNC VAR | |
1707 | # ---------------------------------- | |
1708 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1709 | ac_fn_c_check_func () | |
1710 | { | |
1711 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1713 | $as_echo_n "checking for $2... " >&6; } | |
1714 | if eval \${$3+:} false; then : | |
1715 | $as_echo_n "(cached) " >&6 | |
1716 | else | |
1717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1718 | /* end confdefs.h. */ | |
1719 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1721 | #define $2 innocuous_$2 | |
1722 | ||
1723 | /* System header to define __stub macros and hopefully few prototypes, | |
1724 | which can conflict with char $2 (); below. | |
1725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1726 | <limits.h> exists even on freestanding compilers. */ | |
1727 | ||
1728 | #ifdef __STDC__ | |
1729 | # include <limits.h> | |
1730 | #else | |
1731 | # include <assert.h> | |
1732 | #endif | |
1733 | ||
1734 | #undef $2 | |
1735 | ||
1736 | /* Override any GCC internal prototype to avoid an error. | |
1737 | Use char because int might match the return type of a GCC | |
1738 | builtin and then its argument prototype would still apply. */ | |
1739 | #ifdef __cplusplus | |
1740 | extern "C" | |
1741 | #endif | |
1742 | char $2 (); | |
1743 | /* The GNU C library defines this for functions which it implements | |
1744 | to always fail with ENOSYS. Some functions are actually named | |
1745 | something starting with __ and the normal name is an alias. */ | |
1746 | #if defined __stub_$2 || defined __stub___$2 | |
1747 | choke me | |
1748 | #endif | |
1749 | ||
1750 | int | |
1751 | main () | |
1752 | { | |
1753 | return $2 (); | |
1754 | ; | |
1755 | return 0; | |
1756 | } | |
1757 | _ACEOF | |
1758 | if ac_fn_c_try_link "$LINENO"; then : | |
1759 | eval "$3=yes" | |
1760 | else | |
1761 | eval "$3=no" | |
1762 | fi | |
1763 | rm -f core conftest.err conftest.$ac_objext \ | |
1764 | conftest$ac_exeext conftest.$ac_ext | |
1765 | fi | |
1766 | eval ac_res=\$$3 | |
1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1768 | $as_echo "$ac_res" >&6; } | |
1769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1770 | ||
1771 | } # ac_fn_c_check_func | |
1772 | ||
1773 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1774 | # ------------------------------------------------------- | |
1775 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1776 | # the include files in INCLUDES and setting the cache variable VAR | |
1777 | # accordingly. | |
1778 | ac_fn_c_check_header_mongrel () | |
1779 | { | |
1780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1781 | if eval \${$3+:} false; then : | |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1783 | $as_echo_n "checking for $2... " >&6; } | |
1784 | if eval \${$3+:} false; then : | |
1785 | $as_echo_n "(cached) " >&6 | |
1786 | fi | |
1787 | eval ac_res=\$$3 | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1789 | $as_echo "$ac_res" >&6; } | |
1790 | else | |
1791 | # Is the header compilable? | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1793 | $as_echo_n "checking $2 usability... " >&6; } | |
1794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1795 | /* end confdefs.h. */ | |
1796 | $4 | |
1797 | #include <$2> | |
1798 | _ACEOF | |
1799 | if ac_fn_c_try_compile "$LINENO"; then : | |
1800 | ac_header_compiler=yes | |
1801 | else | |
1802 | ac_header_compiler=no | |
1803 | fi | |
1804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1806 | $as_echo "$ac_header_compiler" >&6; } | |
1807 | ||
1808 | # Is the header present? | |
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1810 | $as_echo_n "checking $2 presence... " >&6; } | |
1811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1812 | /* end confdefs.h. */ | |
1813 | #include <$2> | |
1814 | _ACEOF | |
1815 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1816 | ac_header_preproc=yes | |
1817 | else | |
1818 | ac_header_preproc=no | |
1819 | fi | |
1820 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1822 | $as_echo "$ac_header_preproc" >&6; } | |
dd184caf | 1823 | |
b0322a85 CE |
1824 | # So? What about this header? |
1825 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1826 | yes:no: ) | |
1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1828 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1830 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1831 | ;; | |
1832 | no:yes:* ) | |
1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1834 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1836 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1838 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1840 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1842 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1843 | ( $as_echo "## -------------------------------------------------- ## | |
1844 | ## Report this to courier-users@lists.sourceforge.net ## | |
1845 | ## -------------------------------------------------- ##" | |
1846 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1847 | ;; | |
1848 | esac | |
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1850 | $as_echo_n "checking for $2... " >&6; } | |
1851 | if eval \${$3+:} false; then : | |
1852 | $as_echo_n "(cached) " >&6 | |
1853 | else | |
1854 | eval "$3=\$ac_header_compiler" | |
1855 | fi | |
1856 | eval ac_res=\$$3 | |
1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1858 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 1859 | fi |
b0322a85 | 1860 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d9898ee8 | 1861 | |
b0322a85 | 1862 | } # ac_fn_c_check_header_mongrel |
d9898ee8 | 1863 | |
b0322a85 CE |
1864 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1865 | # ------------------------------------------- | |
1866 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1867 | # variable VAR accordingly. | |
1868 | ac_fn_c_check_type () | |
1869 | { | |
1870 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1872 | $as_echo_n "checking for $2... " >&6; } | |
1873 | if eval \${$3+:} false; then : | |
1874 | $as_echo_n "(cached) " >&6 | |
1875 | else | |
1876 | eval "$3=no" | |
1877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1878 | /* end confdefs.h. */ | |
1879 | $4 | |
1880 | int | |
1881 | main () | |
1882 | { | |
1883 | if (sizeof ($2)) | |
1884 | return 0; | |
1885 | ; | |
1886 | return 0; | |
1887 | } | |
d9898ee8 | 1888 | _ACEOF |
b0322a85 CE |
1889 | if ac_fn_c_try_compile "$LINENO"; then : |
1890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1891 | /* end confdefs.h. */ | |
1892 | $4 | |
1893 | int | |
1894 | main () | |
1895 | { | |
1896 | if (sizeof (($2))) | |
1897 | return 0; | |
1898 | ; | |
1899 | return 0; | |
1900 | } | |
1901 | _ACEOF | |
1902 | if ac_fn_c_try_compile "$LINENO"; then : | |
1903 | ||
1904 | else | |
1905 | eval "$3=yes" | |
1906 | fi | |
1907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 1908 | fi |
b0322a85 CE |
1909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1910 | fi | |
1911 | eval ac_res=\$$3 | |
1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1913 | $as_echo "$ac_res" >&6; } | |
1914 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1915 | ||
1916 | } # ac_fn_c_check_type | |
dd184caf | 1917 | cat >config.log <<_ACEOF |
d9898ee8 | 1918 | This file contains any messages produced by compilers while |
1919 | running configure, to aid debugging if configure makes a mistake. | |
1920 | ||
1921 | It was created by numlib $as_me 0.10, which was | |
b0322a85 | 1922 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 1923 | |
1924 | $ $0 $@ | |
1925 | ||
1926 | _ACEOF | |
dd184caf | 1927 | exec 5>>config.log |
d9898ee8 | 1928 | { |
1929 | cat <<_ASUNAME | |
1930 | ## --------- ## | |
1931 | ## Platform. ## | |
1932 | ## --------- ## | |
1933 | ||
1934 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1935 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1936 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1937 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1938 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1939 | ||
1940 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1941 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1942 | ||
1943 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1944 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1945 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1946 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1947 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1948 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1949 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1950 | ||
1951 | _ASUNAME | |
1952 | ||
1953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1954 | for as_dir in $PATH | |
1955 | do | |
1956 | IFS=$as_save_IFS | |
1957 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
1958 | $as_echo "PATH: $as_dir" |
1959 | done | |
dd184caf | 1960 | IFS=$as_save_IFS |
d9898ee8 | 1961 | |
1962 | } >&5 | |
1963 | ||
1964 | cat >&5 <<_ACEOF | |
1965 | ||
1966 | ||
1967 | ## ----------- ## | |
1968 | ## Core tests. ## | |
1969 | ## ----------- ## | |
1970 | ||
1971 | _ACEOF | |
1972 | ||
1973 | ||
1974 | # Keep a trace of the command line. | |
1975 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1976 | # Strip out --silent because we don't want to record it for future runs. | |
1977 | # Also quote any args containing shell meta-characters. | |
1978 | # Make two passes to allow for proper duplicate-argument suppression. | |
1979 | ac_configure_args= | |
1980 | ac_configure_args0= | |
1981 | ac_configure_args1= | |
d9898ee8 | 1982 | ac_must_keep_next=false |
1983 | for ac_pass in 1 2 | |
1984 | do | |
1985 | for ac_arg | |
1986 | do | |
1987 | case $ac_arg in | |
1988 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1989 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1990 | | -silent | --silent | --silen | --sile | --sil) | |
1991 | continue ;; | |
dd184caf | 1992 | *\'*) |
8d138742 | 1993 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1994 | esac |
1995 | case $ac_pass in | |
b0322a85 | 1996 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 1997 | 2) |
b0322a85 | 1998 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 1999 | if test $ac_must_keep_next = true; then |
2000 | ac_must_keep_next=false # Got value, back to normal. | |
2001 | else | |
2002 | case $ac_arg in | |
2003 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2004 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2005 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2006 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2007 | case "$ac_configure_args0 " in | |
2008 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2009 | esac | |
2010 | ;; | |
2011 | -* ) ac_must_keep_next=true ;; | |
2012 | esac | |
2013 | fi | |
b0322a85 | 2014 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 2015 | ;; |
2016 | esac | |
2017 | done | |
2018 | done | |
b0322a85 CE |
2019 | { ac_configure_args0=; unset ac_configure_args0;} |
2020 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 2021 | |
2022 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2023 | # config.log. We remove comments because anyway the quotes in there | |
2024 | # would cause problems or look ugly. | |
dd184caf | 2025 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2026 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 2027 | trap 'exit_status=$? |
2028 | # Save into config.log some information that might help in debugging. | |
2029 | { | |
2030 | echo | |
2031 | ||
b0322a85 | 2032 | $as_echo "## ---------------- ## |
d9898ee8 | 2033 | ## Cache variables. ## |
b0322a85 | 2034 | ## ---------------- ##" |
d9898ee8 | 2035 | echo |
2036 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 2037 | ( |
2038 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2039 | eval ac_val=\$$ac_var | |
2040 | case $ac_val in #( | |
2041 | *${as_nl}*) | |
2042 | case $ac_var in #( | |
b0322a85 | 2043 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 2044 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 2045 | esac |
2046 | case $ac_var in #( | |
2047 | _ | IFS | as_nl) ;; #( | |
8d138742 | 2048 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 2049 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 2050 | esac ;; |
2051 | esac | |
2052 | done | |
d9898ee8 | 2053 | (set) 2>&1 | |
dd184caf | 2054 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2055 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 2056 | sed -n \ |
dd184caf | 2057 | "s/'\''/'\''\\\\'\'''\''/g; |
2058 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2059 | ;; #( | |
d9898ee8 | 2060 | *) |
dd184caf | 2061 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 2062 | ;; |
dd184caf | 2063 | esac | |
2064 | sort | |
2065 | ) | |
d9898ee8 | 2066 | echo |
2067 | ||
b0322a85 | 2068 | $as_echo "## ----------------- ## |
d9898ee8 | 2069 | ## Output variables. ## |
b0322a85 | 2070 | ## ----------------- ##" |
d9898ee8 | 2071 | echo |
2072 | for ac_var in $ac_subst_vars | |
2073 | do | |
dd184caf | 2074 | eval ac_val=\$$ac_var |
2075 | case $ac_val in | |
8d138742 | 2076 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2077 | esac |
8d138742 | 2078 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2079 | done | sort |
2080 | echo | |
2081 | ||
2082 | if test -n "$ac_subst_files"; then | |
b0322a85 | 2083 | $as_echo "## ------------------- ## |
dd184caf | 2084 | ## File substitutions. ## |
b0322a85 | 2085 | ## ------------------- ##" |
d9898ee8 | 2086 | echo |
2087 | for ac_var in $ac_subst_files | |
2088 | do | |
dd184caf | 2089 | eval ac_val=\$$ac_var |
2090 | case $ac_val in | |
8d138742 | 2091 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2092 | esac |
8d138742 | 2093 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2094 | done | sort |
2095 | echo | |
2096 | fi | |
2097 | ||
2098 | if test -s confdefs.h; then | |
b0322a85 | 2099 | $as_echo "## ----------- ## |
d9898ee8 | 2100 | ## confdefs.h. ## |
b0322a85 | 2101 | ## ----------- ##" |
d9898ee8 | 2102 | echo |
dd184caf | 2103 | cat confdefs.h |
d9898ee8 | 2104 | echo |
2105 | fi | |
2106 | test "$ac_signal" != 0 && | |
8d138742 CE |
2107 | $as_echo "$as_me: caught signal $ac_signal" |
2108 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2109 | } >&5 |
dd184caf | 2110 | rm -f core *.core core.conftest.* && |
2111 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2112 | exit $exit_status |
dd184caf | 2113 | ' 0 |
d9898ee8 | 2114 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2115 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2116 | done |
2117 | ac_signal=0 | |
2118 | ||
2119 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2120 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2121 | |
b0322a85 CE |
2122 | $as_echo "/* confdefs.h */" > confdefs.h |
2123 | ||
d9898ee8 | 2124 | # Predefined preprocessor variables. |
2125 | ||
2126 | cat >>confdefs.h <<_ACEOF | |
2127 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2128 | _ACEOF | |
2129 | ||
d9898ee8 | 2130 | cat >>confdefs.h <<_ACEOF |
2131 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2132 | _ACEOF | |
2133 | ||
d9898ee8 | 2134 | cat >>confdefs.h <<_ACEOF |
2135 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2136 | _ACEOF | |
2137 | ||
d9898ee8 | 2138 | cat >>confdefs.h <<_ACEOF |
2139 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2140 | _ACEOF | |
2141 | ||
d9898ee8 | 2142 | cat >>confdefs.h <<_ACEOF |
2143 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2144 | _ACEOF | |
2145 | ||
b0322a85 CE |
2146 | cat >>confdefs.h <<_ACEOF |
2147 | #define PACKAGE_URL "$PACKAGE_URL" | |
2148 | _ACEOF | |
2149 | ||
d9898ee8 | 2150 | |
2151 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2152 | # Prefer an explicitly selected file to automatically selected ones. |
2153 | ac_site_file1=NONE | |
2154 | ac_site_file2=NONE | |
dd184caf | 2155 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2156 | # We do not want a PATH search for config.site. |
2157 | case $CONFIG_SITE in #(( | |
2158 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2159 | */*) ac_site_file1=$CONFIG_SITE;; | |
2160 | *) ac_site_file1=./$CONFIG_SITE;; | |
2161 | esac | |
dd184caf | 2162 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2163 | ac_site_file1=$prefix/share/config.site |
2164 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2165 | else |
8d138742 CE |
2166 | ac_site_file1=$ac_default_prefix/share/config.site |
2167 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2168 | fi |
8d138742 | 2169 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2170 | do |
8d138742 | 2171 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2172 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2174 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2175 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2176 | . "$ac_site_file" \ |
2177 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2178 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2179 | as_fn_error $? "failed to load site script $ac_site_file | |
2180 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2181 | fi |
2182 | done | |
2183 | ||
2184 | if test -r "$cache_file"; then | |
b0322a85 CE |
2185 | # Some versions of bash will fail to source /dev/null (special files |
2186 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2187 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2189 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2190 | case $cache_file in |
dd184caf | 2191 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2192 | *) . "./$cache_file";; | |
d9898ee8 | 2193 | esac |
2194 | fi | |
2195 | else | |
b0322a85 | 2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2197 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2198 | >$cache_file |
2199 | fi | |
2200 | ||
2201 | # Check that the precious variables saved in the cache have kept the same | |
2202 | # value. | |
2203 | ac_cache_corrupted=false | |
dd184caf | 2204 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2205 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2206 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2207 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2208 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2209 | case $ac_old_set,$ac_new_set in |
2210 | set,) | |
b0322a85 | 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2212 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2213 | ac_cache_corrupted=: ;; |
2214 | ,set) | |
b0322a85 | 2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2216 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2217 | ac_cache_corrupted=: ;; |
2218 | ,);; | |
2219 | *) | |
2220 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2221 | # differences in whitespace do not lead to failure. |
2222 | ac_old_val_w=`echo x $ac_old_val` | |
2223 | ac_new_val_w=`echo x $ac_new_val` | |
2224 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2226 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2227 | ac_cache_corrupted=: | |
2228 | else | |
b0322a85 | 2229 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2230 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2231 | eval $ac_var=\$ac_old_val | |
2232 | fi | |
b0322a85 | 2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2234 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2236 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2237 | fi;; |
2238 | esac | |
2239 | # Pass precious variables to config.status. | |
2240 | if test "$ac_new_set" = set; then | |
2241 | case $ac_new_val in | |
8d138742 | 2242 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2243 | *) ac_arg=$ac_var=$ac_new_val ;; |
2244 | esac | |
2245 | case " $ac_configure_args " in | |
2246 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2247 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2248 | esac |
2249 | fi | |
2250 | done | |
2251 | if $ac_cache_corrupted; then | |
b0322a85 | 2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2253 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2255 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2256 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2257 | fi |
b0322a85 CE |
2258 | ## -------------------- ## |
2259 | ## Main body of script. ## | |
2260 | ## -------------------- ## | |
d9898ee8 | 2261 | |
dd184caf | 2262 | ac_ext=c |
2263 | ac_cpp='$CPP $CPPFLAGS' | |
2264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2267 | |
2268 | ||
2269 | ||
2270 | >confdefs.h # Kill PACKAGE_ macros | |
2271 | ||
2272 | ||
d9898ee8 | 2273 | ac_aux_dir= |
b0322a85 | 2274 | for ac_dir in ../.. "$srcdir"/../..; do |
dd184caf | 2275 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2276 | ac_aux_dir=$ac_dir |
2277 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2278 | break | |
dd184caf | 2279 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2280 | ac_aux_dir=$ac_dir |
2281 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2282 | break | |
dd184caf | 2283 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2284 | ac_aux_dir=$ac_dir |
2285 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2286 | break | |
2287 | fi | |
2288 | done | |
2289 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2290 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 |
d9898ee8 | 2291 | fi |
dd184caf | 2292 | |
2293 | # These three variables are undocumented and unsupported, | |
2294 | # and are intended to be withdrawn in a future Autoconf release. | |
2295 | # They can cause serious problems if a builder's source tree is in a directory | |
2296 | # whose full name contains unusual characters. | |
2297 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2298 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2299 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2300 | ||
d9898ee8 | 2301 | |
b0322a85 CE |
2302 | ac_config_headers="$ac_config_headers config.h" |
2303 | ||
d50284c4 | 2304 | am__api_version='1.15' |
b0322a85 | 2305 | |
d9898ee8 | 2306 | # Find a good install program. We prefer a C program (faster), |
2307 | # so one script is as good as another. But avoid the broken or | |
2308 | # incompatible versions: | |
2309 | # SysV /etc/install, /usr/sbin/install | |
2310 | # SunOS /usr/etc/install | |
2311 | # IRIX /sbin/install | |
2312 | # AIX /bin/install | |
2313 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2314 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2315 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2316 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2317 | # OS/2's system install, which has a completely different semantic | |
2318 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2319 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2321 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2322 | if test -z "$INSTALL"; then |
b0322a85 | 2323 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2324 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2325 | else |
2326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2327 | for as_dir in $PATH | |
2328 | do | |
2329 | IFS=$as_save_IFS | |
2330 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2331 | # Account for people who put trailing slashes in PATH elements. |
2332 | case $as_dir/ in #(( | |
2333 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2334 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2335 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2336 | /usr/ucb/* ) ;; |
2337 | *) | |
2338 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2339 | # Don't use installbsd from OSF since it installs stuff as root | |
2340 | # by default. | |
2341 | for ac_prog in ginstall scoinst install; do | |
2342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2343 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2344 | if test $ac_prog = install && |
2345 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2346 | # AIX install. It has an incompatible calling convention. | |
2347 | : | |
2348 | elif test $ac_prog = install && | |
2349 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2350 | # program-specific install script used by HP pwplus--don't use. | |
2351 | : | |
2352 | else | |
8d138742 CE |
2353 | rm -rf conftest.one conftest.two conftest.dir |
2354 | echo one > conftest.one | |
2355 | echo two > conftest.two | |
2356 | mkdir conftest.dir | |
2357 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2358 | test -s conftest.one && test -s conftest.two && | |
2359 | test -s conftest.dir/conftest.one && | |
2360 | test -s conftest.dir/conftest.two | |
2361 | then | |
2362 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2363 | break 3 | |
2364 | fi | |
d9898ee8 | 2365 | fi |
2366 | fi | |
2367 | done | |
2368 | done | |
2369 | ;; | |
2370 | esac | |
8d138742 | 2371 | |
b0322a85 | 2372 | done |
dd184caf | 2373 | IFS=$as_save_IFS |
d9898ee8 | 2374 | |
8d138742 | 2375 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2376 | |
2377 | fi | |
2378 | if test "${ac_cv_path_install+set}" = set; then | |
2379 | INSTALL=$ac_cv_path_install | |
2380 | else | |
dd184caf | 2381 | # As a last resort, use the slow shell script. Don't cache a |
2382 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2383 | # break other packages using the cache if that directory is |
dd184caf | 2384 | # removed, or if the value is a relative name. |
d9898ee8 | 2385 | INSTALL=$ac_install_sh |
2386 | fi | |
2387 | fi | |
b0322a85 | 2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2389 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2390 | |
2391 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2392 | # It thinks the first close brace ends the variable substitution. | |
2393 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2394 | ||
2395 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2396 | ||
2397 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2398 | ||
b0322a85 | 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2400 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2401 | # Reject unsafe characters in $srcdir or the absolute working directory |
2402 | # name. Accept space and tab only in the latter. | |
2403 | am_lf=' | |
2404 | ' | |
2405 | case `pwd` in | |
2406 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2407 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2408 | esac |
2409 | case $srcdir in | |
2410 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2411 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2412 | esac |
2413 | ||
b0322a85 | 2414 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2415 | # arguments. Must try -L first in case configure is actually a |
2416 | # symlink; some systems play weird games with the mod time of symlinks | |
2417 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2418 | # directory). | |
2419 | if ( | |
b0322a85 CE |
2420 | am_has_slept=no |
2421 | for am_try in 1 2; do | |
2422 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2423 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2424 | if test "$*" = "X"; then | |
2425 | # -L didn't work. | |
2426 | set X `ls -t "$srcdir/configure" conftest.file` | |
2427 | fi | |
2428 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2429 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2430 | ||
2431 | # If neither matched, then we have a broken ls. This can happen | |
2432 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2433 | # broken ls alias from the environment. This has actually | |
2434 | # happened. Such a system could not be considered "sane". | |
2435 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2436 | alias in your environment" "$LINENO" 5 | |
2437 | fi | |
2438 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2439 | break | |
2440 | fi | |
2441 | # Just in case. | |
2442 | sleep 1 | |
2443 | am_has_slept=yes | |
2444 | done | |
d9898ee8 | 2445 | test "$2" = conftest.file |
2446 | ) | |
2447 | then | |
2448 | # Ok. | |
2449 | : | |
2450 | else | |
b0322a85 CE |
2451 | as_fn_error $? "newly created file is older than distributed files! |
2452 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2453 | fi |
b0322a85 | 2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2455 | $as_echo "yes" >&6; } |
b0322a85 CE |
2456 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2457 | # generated files are strictly newer. | |
2458 | am_sleep_pid= | |
2459 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2460 | ( sleep 1 ) & | |
2461 | am_sleep_pid=$! | |
2462 | fi | |
2463 | ||
2464 | rm -f conftest.file | |
2465 | ||
d9898ee8 | 2466 | test "$program_prefix" != NONE && |
dd184caf | 2467 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2468 | # Use a double $ so make ignores it. |
2469 | test "$program_suffix" != NONE && | |
dd184caf | 2470 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2471 | # Double any \ or $. |
d9898ee8 | 2472 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2473 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2474 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2475 | |
d50284c4 CE |
2476 | # Expand $ac_aux_dir to an absolute path. |
2477 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
d9898ee8 | 2478 | |
8d138742 CE |
2479 | if test x"${MISSING+set}" != xset; then |
2480 | case $am_aux_dir in | |
2481 | *\ * | *\ *) | |
2482 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2483 | *) | |
2484 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2485 | esac | |
2486 | fi | |
d9898ee8 | 2487 | # Use eval to expand $SHELL |
b0322a85 CE |
2488 | if eval "$MISSING --is-lightweight"; then |
2489 | am_missing_run="$MISSING " | |
d9898ee8 | 2490 | else |
2491 | am_missing_run= | |
b0322a85 CE |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2493 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2494 | fi |
2495 | ||
d50284c4 | 2496 | if test x"${install_sh+set}" != xset; then |
8d138742 CE |
2497 | case $am_aux_dir in |
2498 | *\ * | *\ *) | |
2499 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2500 | *) | |
2501 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2502 | esac | |
2503 | fi | |
2504 | ||
b0322a85 CE |
2505 | # Installed binaries are usually stripped using 'strip' when the user |
2506 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2507 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2508 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2509 | if test "$cross_compiling" != no; then |
2510 | if test -n "$ac_tool_prefix"; then | |
2511 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2512 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2514 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2515 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2516 | $as_echo_n "(cached) " >&6 |
2517 | else | |
2518 | if test -n "$STRIP"; then | |
2519 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2520 | else | |
2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2522 | for as_dir in $PATH | |
2523 | do | |
2524 | IFS=$as_save_IFS | |
2525 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2526 | for ac_exec_ext in '' $ac_executable_extensions; do |
2527 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2528 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2530 | break 2 |
2531 | fi | |
2532 | done | |
b0322a85 | 2533 | done |
8d138742 CE |
2534 | IFS=$as_save_IFS |
2535 | ||
2536 | fi | |
2537 | fi | |
2538 | STRIP=$ac_cv_prog_STRIP | |
2539 | if test -n "$STRIP"; then | |
b0322a85 | 2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2541 | $as_echo "$STRIP" >&6; } |
2542 | else | |
b0322a85 | 2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2544 | $as_echo "no" >&6; } |
2545 | fi | |
2546 | ||
2547 | ||
2548 | fi | |
2549 | if test -z "$ac_cv_prog_STRIP"; then | |
2550 | ac_ct_STRIP=$STRIP | |
2551 | # Extract the first word of "strip", so it can be a program name with args. | |
2552 | set dummy strip; ac_word=$2 | |
b0322a85 | 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2554 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2555 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2556 | $as_echo_n "(cached) " >&6 |
2557 | else | |
2558 | if test -n "$ac_ct_STRIP"; then | |
2559 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2560 | else | |
2561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2562 | for as_dir in $PATH | |
2563 | do | |
2564 | IFS=$as_save_IFS | |
2565 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2566 | for ac_exec_ext in '' $ac_executable_extensions; do |
2567 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2568 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2570 | break 2 |
2571 | fi | |
2572 | done | |
b0322a85 | 2573 | done |
8d138742 CE |
2574 | IFS=$as_save_IFS |
2575 | ||
2576 | fi | |
2577 | fi | |
2578 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2579 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2581 | $as_echo "$ac_ct_STRIP" >&6; } |
2582 | else | |
b0322a85 | 2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2584 | $as_echo "no" >&6; } |
2585 | fi | |
2586 | ||
2587 | if test "x$ac_ct_STRIP" = x; then | |
2588 | STRIP=":" | |
2589 | else | |
2590 | case $cross_compiling:$ac_tool_warned in | |
2591 | yes:) | |
b0322a85 | 2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2593 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2594 | ac_tool_warned=yes ;; | |
2595 | esac | |
2596 | STRIP=$ac_ct_STRIP | |
2597 | fi | |
2598 | else | |
2599 | STRIP="$ac_cv_prog_STRIP" | |
2600 | fi | |
2601 | ||
d9898ee8 | 2602 | fi |
8d138742 | 2603 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2604 | |
b0322a85 | 2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2606 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2607 | if test -z "$MKDIR_P"; then |
b0322a85 | 2608 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2609 | $as_echo_n "(cached) " >&6 |
dd184caf | 2610 | else |
2611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2612 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2613 | do | |
2614 | IFS=$as_save_IFS | |
2615 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2616 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2617 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2618 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2619 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2620 | 'mkdir (GNU coreutils) '* | \ | |
2621 | 'mkdir (coreutils) '* | \ | |
2622 | 'mkdir (fileutils) '4.1*) | |
2623 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2624 | break 3;; | |
2625 | esac | |
2626 | done | |
2627 | done | |
b0322a85 | 2628 | done |
dd184caf | 2629 | IFS=$as_save_IFS |
2630 | ||
2631 | fi | |
2632 | ||
b0322a85 | 2633 | test -d ./--version && rmdir ./--version |
dd184caf | 2634 | if test "${ac_cv_path_mkdir+set}" = set; then |
2635 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2636 | else |
dd184caf | 2637 | # As a last resort, use the slow shell script. Don't cache a |
2638 | # value for MKDIR_P within a source directory, because that will | |
2639 | # break other packages using the cache if that directory is | |
2640 | # removed, or if the value is a relative name. | |
dd184caf | 2641 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2642 | fi |
2643 | fi | |
b0322a85 | 2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2645 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2646 | |
d9898ee8 | 2647 | for ac_prog in gawk mawk nawk awk |
2648 | do | |
2649 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2650 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2652 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2653 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2654 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2655 | else |
2656 | if test -n "$AWK"; then | |
2657 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2658 | else | |
2659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2660 | for as_dir in $PATH | |
2661 | do | |
2662 | IFS=$as_save_IFS | |
2663 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2664 | for ac_exec_ext in '' $ac_executable_extensions; do |
2665 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2666 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2668 | break 2 |
2669 | fi | |
2670 | done | |
b0322a85 | 2671 | done |
dd184caf | 2672 | IFS=$as_save_IFS |
d9898ee8 | 2673 | |
2674 | fi | |
2675 | fi | |
2676 | AWK=$ac_cv_prog_AWK | |
2677 | if test -n "$AWK"; then | |
b0322a85 | 2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2679 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2680 | else |
b0322a85 | 2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2682 | $as_echo "no" >&6; } |
d9898ee8 | 2683 | fi |
2684 | ||
dd184caf | 2685 | |
d9898ee8 | 2686 | test -n "$AWK" && break |
2687 | done | |
2688 | ||
b0322a85 | 2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2690 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2691 | set x ${MAKE-make} | |
2692 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2693 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2694 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2695 | else |
2696 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2697 | SHELL = /bin/sh |
d9898ee8 | 2698 | all: |
dd184caf | 2699 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2700 | _ACEOF |
b0322a85 | 2701 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2702 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2703 | *@@@%%%=?*=@@@%%%*) | |
2704 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2705 | *) | |
2706 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2707 | esac | |
d9898ee8 | 2708 | rm -f conftest.make |
2709 | fi | |
dd184caf | 2710 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2712 | $as_echo "yes" >&6; } |
d9898ee8 | 2713 | SET_MAKE= |
2714 | else | |
b0322a85 | 2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2716 | $as_echo "no" >&6; } |
d9898ee8 | 2717 | SET_MAKE="MAKE=${MAKE-make}" |
2718 | fi | |
2719 | ||
2720 | rm -rf .tst 2>/dev/null | |
2721 | mkdir .tst 2>/dev/null | |
2722 | if test -d .tst; then | |
2723 | am__leading_dot=. | |
2724 | else | |
2725 | am__leading_dot=_ | |
2726 | fi | |
2727 | rmdir .tst 2>/dev/null | |
2728 | ||
b0322a85 CE |
2729 | # Check whether --enable-silent-rules was given. |
2730 | if test "${enable_silent_rules+set}" = set; then : | |
2731 | enableval=$enable_silent_rules; | |
2732 | fi | |
2733 | ||
2734 | case $enable_silent_rules in # ((( | |
2735 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2736 | no) AM_DEFAULT_VERBOSITY=1;; | |
2737 | *) AM_DEFAULT_VERBOSITY=1;; | |
2738 | esac | |
2739 | am_make=${MAKE-make} | |
2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2741 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2742 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2743 | $as_echo_n "(cached) " >&6 | |
2744 | else | |
2745 | if $as_echo 'TRUE=$(BAR$(V)) | |
2746 | BAR0=false | |
2747 | BAR1=true | |
2748 | V=1 | |
2749 | am__doit: | |
2750 | @$(TRUE) | |
2751 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2752 | am_cv_make_support_nested_variables=yes | |
2753 | else | |
2754 | am_cv_make_support_nested_variables=no | |
2755 | fi | |
2756 | fi | |
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2758 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2759 | if test $am_cv_make_support_nested_variables = yes; then | |
2760 | AM_V='$(V)' | |
2761 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2762 | else | |
2763 | AM_V=$AM_DEFAULT_VERBOSITY | |
2764 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2765 | fi | |
2766 | AM_BACKSLASH='\' | |
2767 | ||
dd184caf | 2768 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2769 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2770 | # is not polluted with repeated "-I." | |
2771 | am__isrc=' -I$(srcdir)' | |
2772 | # test to see if srcdir already configured | |
2773 | if test -f $srcdir/config.status; then | |
b0322a85 | 2774 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2775 | fi |
d9898ee8 | 2776 | fi |
2777 | ||
2778 | # test whether we have cygpath | |
2779 | if test -z "$CYGPATH_W"; then | |
2780 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2781 | CYGPATH_W='cygpath -w' | |
2782 | else | |
2783 | CYGPATH_W=echo | |
2784 | fi | |
2785 | fi | |
2786 | ||
2787 | ||
2788 | # Define the identity of the package. | |
2789 | PACKAGE='numlib' | |
2790 | VERSION='0.10' | |
2791 | ||
2792 | ||
2793 | # Some tools Automake needs. | |
2794 | ||
2795 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2796 | ||
2797 | ||
2798 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2799 | ||
2800 | ||
2801 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2802 | ||
2803 | ||
2804 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2805 | ||
2806 | ||
2807 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2808 | ||
b0322a85 CE |
2809 | # For better backward compatibility. To be removed once Automake 1.9.x |
2810 | # dies out for good. For more background, see: | |
2811 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2812 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2813 | mkdir_p='$(MKDIR_P)' | |
2814 | ||
d50284c4 CE |
2815 | # We need awk for the "check" target (and possibly the TAP driver). The |
2816 | # system "awk" is bad on some platforms. | |
b0322a85 CE |
2817 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2818 | # in the wild :-( We should find a proper way to deprecate it ... | |
2819 | AMTAR='$${TAR-tar}' | |
2820 | ||
d9898ee8 | 2821 | |
b0322a85 CE |
2822 | # We'll loop over all known methods to create a tar archive until one works. |
2823 | _am_tools='gnutar pax cpio none' | |
2824 | ||
2825 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
d9898ee8 | 2826 | |
d9898ee8 | 2827 | |
2828 | ||
2829 | ||
2830 | ||
2831 | ||
d50284c4 CE |
2832 | # POSIX will say in a future version that running "rm -f" with no argument |
2833 | # is OK; and we want to be able to make that assumption in our Makefile | |
2834 | # recipes. So use an aggressive probe to check that the usage we want is | |
2835 | # actually supported "in the wild" to an acceptable degree. | |
2836 | # See automake bug#10828. | |
2837 | # To make any issue more visible, cause the running configure to be aborted | |
2838 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2839 | # user can still override this though. | |
2840 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2841 | cat >&2 <<'END' | |
2842 | Oops! | |
2843 | ||
2844 | Your 'rm' program seems unable to run without file operands specified | |
2845 | on the command line, even when the '-f' option is present. This is contrary | |
2846 | to the behaviour of most rm programs out there, and not conforming with | |
2847 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2848 | ||
2849 | Please tell bug-automake@gnu.org about your system, including the value | |
2850 | of your $PATH and any error possibly output before this message. This | |
2851 | can help us improve future automake versions. | |
2852 | ||
2853 | END | |
2854 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2855 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2856 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2857 | echo >&2 | |
2858 | else | |
2859 | cat >&2 <<'END' | |
2860 | Aborting the configuration process, to ensure you take notice of the issue. | |
2861 | ||
2862 | You can download and install GNU coreutils to get an 'rm' implementation | |
2863 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2864 | ||
2865 | If you want to complete the configuration process using your problematic | |
2866 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2867 | to "yes", and re-run configure. | |
2868 | ||
2869 | END | |
2870 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2871 | fi | |
2872 | fi | |
2873 | ||
d9898ee8 | 2874 | |
2875 | for ac_prog in gawk mawk nawk awk | |
2876 | do | |
2877 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2878 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2880 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2881 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2882 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2883 | else |
2884 | if test -n "$AWK"; then | |
2885 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2886 | else | |
2887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2888 | for as_dir in $PATH | |
2889 | do | |
2890 | IFS=$as_save_IFS | |
2891 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2892 | for ac_exec_ext in '' $ac_executable_extensions; do |
2893 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2894 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2896 | break 2 |
2897 | fi | |
2898 | done | |
b0322a85 | 2899 | done |
dd184caf | 2900 | IFS=$as_save_IFS |
d9898ee8 | 2901 | |
2902 | fi | |
2903 | fi | |
2904 | AWK=$ac_cv_prog_AWK | |
2905 | if test -n "$AWK"; then | |
b0322a85 | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2907 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2908 | else |
b0322a85 | 2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2910 | $as_echo "no" >&6; } |
d9898ee8 | 2911 | fi |
2912 | ||
dd184caf | 2913 | |
d9898ee8 | 2914 | test -n "$AWK" && break |
2915 | done | |
2916 | ||
2917 | ac_ext=c | |
2918 | ac_cpp='$CPP $CPPFLAGS' | |
2919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2922 | if test -n "$ac_tool_prefix"; then | |
2923 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2924 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2926 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2927 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2928 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2929 | else |
2930 | if test -n "$CC"; then | |
2931 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2932 | else | |
2933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2934 | for as_dir in $PATH | |
2935 | do | |
2936 | IFS=$as_save_IFS | |
2937 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2938 | for ac_exec_ext in '' $ac_executable_extensions; do |
2939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2940 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 2941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2942 | break 2 |
2943 | fi | |
2944 | done | |
b0322a85 | 2945 | done |
dd184caf | 2946 | IFS=$as_save_IFS |
d9898ee8 | 2947 | |
2948 | fi | |
2949 | fi | |
2950 | CC=$ac_cv_prog_CC | |
2951 | if test -n "$CC"; then | |
b0322a85 | 2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2953 | $as_echo "$CC" >&6; } |
d9898ee8 | 2954 | else |
b0322a85 | 2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2956 | $as_echo "no" >&6; } |
d9898ee8 | 2957 | fi |
2958 | ||
dd184caf | 2959 | |
d9898ee8 | 2960 | fi |
2961 | if test -z "$ac_cv_prog_CC"; then | |
2962 | ac_ct_CC=$CC | |
2963 | # Extract the first word of "gcc", so it can be a program name with args. | |
2964 | set dummy gcc; ac_word=$2 | |
b0322a85 | 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2966 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2967 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 2968 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2969 | else |
2970 | if test -n "$ac_ct_CC"; then | |
2971 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2972 | else | |
2973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2974 | for as_dir in $PATH | |
2975 | do | |
2976 | IFS=$as_save_IFS | |
2977 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2978 | for ac_exec_ext in '' $ac_executable_extensions; do |
2979 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2980 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 2981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2982 | break 2 |
2983 | fi | |
2984 | done | |
b0322a85 | 2985 | done |
dd184caf | 2986 | IFS=$as_save_IFS |
d9898ee8 | 2987 | |
2988 | fi | |
2989 | fi | |
2990 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2991 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 2993 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 2994 | else |
b0322a85 | 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2996 | $as_echo "no" >&6; } |
d9898ee8 | 2997 | fi |
2998 | ||
dd184caf | 2999 | if test "x$ac_ct_CC" = x; then |
3000 | CC="" | |
3001 | else | |
3002 | case $cross_compiling:$ac_tool_warned in | |
3003 | yes:) | |
b0322a85 | 3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3005 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3006 | ac_tool_warned=yes ;; |
3007 | esac | |
3008 | CC=$ac_ct_CC | |
3009 | fi | |
d9898ee8 | 3010 | else |
3011 | CC="$ac_cv_prog_CC" | |
3012 | fi | |
3013 | ||
3014 | if test -z "$CC"; then | |
dd184caf | 3015 | if test -n "$ac_tool_prefix"; then |
3016 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 3017 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3019 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3020 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3021 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3022 | else |
3023 | if test -n "$CC"; then | |
3024 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3025 | else | |
3026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3027 | for as_dir in $PATH | |
3028 | do | |
3029 | IFS=$as_save_IFS | |
3030 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3031 | for ac_exec_ext in '' $ac_executable_extensions; do |
3032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3033 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 3034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3035 | break 2 |
3036 | fi | |
3037 | done | |
b0322a85 | 3038 | done |
dd184caf | 3039 | IFS=$as_save_IFS |
d9898ee8 | 3040 | |
3041 | fi | |
3042 | fi | |
3043 | CC=$ac_cv_prog_CC | |
3044 | if test -n "$CC"; then | |
b0322a85 | 3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3046 | $as_echo "$CC" >&6; } |
d9898ee8 | 3047 | else |
b0322a85 | 3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3049 | $as_echo "no" >&6; } |
d9898ee8 | 3050 | fi |
3051 | ||
d9898ee8 | 3052 | |
dd184caf | 3053 | fi |
d9898ee8 | 3054 | fi |
3055 | if test -z "$CC"; then | |
3056 | # Extract the first word of "cc", so it can be a program name with args. | |
3057 | set dummy cc; ac_word=$2 | |
b0322a85 | 3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3059 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3060 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3061 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3062 | else |
3063 | if test -n "$CC"; then | |
3064 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3065 | else | |
3066 | ac_prog_rejected=no | |
3067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3068 | for as_dir in $PATH | |
3069 | do | |
3070 | IFS=$as_save_IFS | |
3071 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3072 | for ac_exec_ext in '' $ac_executable_extensions; do |
3073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3074 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3075 | ac_prog_rejected=yes | |
3076 | continue | |
3077 | fi | |
3078 | ac_cv_prog_CC="cc" | |
b0322a85 | 3079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3080 | break 2 |
3081 | fi | |
3082 | done | |
b0322a85 | 3083 | done |
dd184caf | 3084 | IFS=$as_save_IFS |
d9898ee8 | 3085 | |
3086 | if test $ac_prog_rejected = yes; then | |
3087 | # We found a bogon in the path, so make sure we never use it. | |
3088 | set dummy $ac_cv_prog_CC | |
3089 | shift | |
3090 | if test $# != 0; then | |
3091 | # We chose a different compiler from the bogus one. | |
3092 | # However, it has the same basename, so the bogon will be chosen | |
3093 | # first if we set CC to just the basename; use the full file name. | |
3094 | shift | |
3095 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3096 | fi | |
3097 | fi | |
3098 | fi | |
3099 | fi | |
3100 | CC=$ac_cv_prog_CC | |
3101 | if test -n "$CC"; then | |
b0322a85 | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3103 | $as_echo "$CC" >&6; } |
d9898ee8 | 3104 | else |
b0322a85 | 3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3106 | $as_echo "no" >&6; } |
d9898ee8 | 3107 | fi |
3108 | ||
dd184caf | 3109 | |
d9898ee8 | 3110 | fi |
3111 | if test -z "$CC"; then | |
3112 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3113 | for ac_prog in cl.exe |
d9898ee8 | 3114 | do |
3115 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3116 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3118 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3119 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3120 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3121 | else |
3122 | if test -n "$CC"; then | |
3123 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3124 | else | |
3125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3126 | for as_dir in $PATH | |
3127 | do | |
3128 | IFS=$as_save_IFS | |
3129 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3130 | for ac_exec_ext in '' $ac_executable_extensions; do |
3131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3132 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3134 | break 2 |
3135 | fi | |
3136 | done | |
b0322a85 | 3137 | done |
dd184caf | 3138 | IFS=$as_save_IFS |
d9898ee8 | 3139 | |
3140 | fi | |
3141 | fi | |
3142 | CC=$ac_cv_prog_CC | |
3143 | if test -n "$CC"; then | |
b0322a85 | 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3145 | $as_echo "$CC" >&6; } |
d9898ee8 | 3146 | else |
b0322a85 | 3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3148 | $as_echo "no" >&6; } |
d9898ee8 | 3149 | fi |
3150 | ||
dd184caf | 3151 | |
d9898ee8 | 3152 | test -n "$CC" && break |
3153 | done | |
3154 | fi | |
3155 | if test -z "$CC"; then | |
3156 | ac_ct_CC=$CC | |
dd184caf | 3157 | for ac_prog in cl.exe |
d9898ee8 | 3158 | do |
3159 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3160 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3162 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3163 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3164 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3165 | else |
3166 | if test -n "$ac_ct_CC"; then | |
3167 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3168 | else | |
3169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3170 | for as_dir in $PATH | |
3171 | do | |
3172 | IFS=$as_save_IFS | |
3173 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3174 | for ac_exec_ext in '' $ac_executable_extensions; do |
3175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3176 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3178 | break 2 |
3179 | fi | |
3180 | done | |
b0322a85 | 3181 | done |
dd184caf | 3182 | IFS=$as_save_IFS |
d9898ee8 | 3183 | |
3184 | fi | |
3185 | fi | |
3186 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3187 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3189 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3190 | else |
b0322a85 | 3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3192 | $as_echo "no" >&6; } |
d9898ee8 | 3193 | fi |
3194 | ||
dd184caf | 3195 | |
d9898ee8 | 3196 | test -n "$ac_ct_CC" && break |
3197 | done | |
3198 | ||
dd184caf | 3199 | if test "x$ac_ct_CC" = x; then |
3200 | CC="" | |
3201 | else | |
3202 | case $cross_compiling:$ac_tool_warned in | |
3203 | yes:) | |
b0322a85 | 3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3205 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3206 | ac_tool_warned=yes ;; |
3207 | esac | |
3208 | CC=$ac_ct_CC | |
3209 | fi | |
d9898ee8 | 3210 | fi |
3211 | ||
3212 | fi | |
3213 | ||
3214 | ||
b0322a85 | 3215 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3217 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3218 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3219 | |
3220 | # Provide some information about the compiler. | |
b0322a85 | 3221 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3222 | set X $ac_compile |
3223 | ac_compiler=$2 | |
b0322a85 CE |
3224 | for ac_option in --version -v -V -qversion; do |
3225 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3226 | case "(($ac_try" in |
3227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3228 | *) ac_try_echo=$ac_try;; | |
3229 | esac | |
b0322a85 CE |
3230 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3231 | $as_echo "$ac_try_echo"; } >&5 | |
3232 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3233 | ac_status=$? |
b0322a85 CE |
3234 | if test -s conftest.err; then |
3235 | sed '10a\ | |
3236 | ... rest of stderr output deleted ... | |
3237 | 10q' conftest.err >conftest.er1 | |
3238 | cat conftest.er1 >&5 | |
3239 | fi | |
3240 | rm -f conftest.er1 conftest.err | |
3241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3242 | test $ac_status = 0; } | |
3243 | done | |
d9898ee8 | 3244 | |
b0322a85 | 3245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3246 | /* end confdefs.h. */ |
3247 | ||
3248 | int | |
3249 | main () | |
3250 | { | |
3251 | ||
3252 | ; | |
3253 | return 0; | |
3254 | } | |
3255 | _ACEOF | |
3256 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3257 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3258 | # Try to create an executable without -o first, disregard a.out. |
3259 | # It will help us diagnose broken compilers, and finding out an intuition | |
3260 | # of exeext. | |
b0322a85 CE |
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3262 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3263 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3264 | ||
3265 | # The possible output files: | |
3266 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3267 | ||
dd184caf | 3268 | ac_rmfiles= |
3269 | for ac_file in $ac_files | |
3270 | do | |
3271 | case $ac_file in | |
8d138742 | 3272 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3273 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3274 | esac | |
3275 | done | |
3276 | rm -f $ac_rmfiles | |
3277 | ||
b0322a85 | 3278 | if { { ac_try="$ac_link_default" |
dd184caf | 3279 | case "(($ac_try" in |
3280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3281 | *) ac_try_echo=$ac_try;; | |
3282 | esac | |
b0322a85 CE |
3283 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3284 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3285 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3286 | ac_status=$? |
b0322a85 CE |
3287 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3288 | test $ac_status = 0; }; then : | |
dd184caf | 3289 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3290 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3291 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3292 | # so that the user can short-circuit this test for compilers unknown to | |
3293 | # Autoconf. | |
3294 | for ac_file in $ac_files '' | |
d9898ee8 | 3295 | do |
3296 | test -f "$ac_file" || continue | |
3297 | case $ac_file in | |
8d138742 | 3298 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3299 | ;; |
3300 | [ab].out ) | |
3301 | # We found the default executable, but exeext='' is most | |
3302 | # certainly right. | |
3303 | break;; | |
3304 | *.* ) | |
b0322a85 | 3305 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3306 | then :; else |
3307 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3308 | fi | |
3309 | # We set ac_cv_exeext here because the later test for it is not | |
3310 | # safe: cross compilers may not add the suffix if given an `-o' | |
3311 | # argument, so we may need to know it at that point already. | |
3312 | # Even if this section looks crufty: it has the advantage of | |
3313 | # actually working. | |
d9898ee8 | 3314 | break;; |
3315 | * ) | |
3316 | break;; | |
3317 | esac | |
3318 | done | |
dd184caf | 3319 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3320 | ||
d9898ee8 | 3321 | else |
dd184caf | 3322 | ac_file='' |
3323 | fi | |
b0322a85 CE |
3324 | if test -z "$ac_file"; then : |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3326 | $as_echo "no" >&6; } | |
3327 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3328 | sed 's/^/| /' conftest.$ac_ext >&5 |
3329 | ||
b0322a85 | 3330 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3331 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3332 | as_fn_error 77 "C compiler cannot create executables |
3333 | See \`config.log' for more details" "$LINENO" 5; } | |
3334 | else | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8d138742 | 3336 | $as_echo "yes" >&6; } |
b0322a85 CE |
3337 | fi |
3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3339 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3341 | $as_echo "$ac_file" >&6; } | |
3342 | ac_exeext=$ac_cv_exeext | |
d9898ee8 | 3343 | |
b0322a85 CE |
3344 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3345 | ac_clean_files=$ac_clean_files_save | |
3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
8d138742 | 3347 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3348 | if { { ac_try="$ac_link" |
dd184caf | 3349 | case "(($ac_try" in |
3350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3351 | *) ac_try_echo=$ac_try;; | |
3352 | esac | |
b0322a85 CE |
3353 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3354 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3355 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3356 | ac_status=$? |
b0322a85 CE |
3357 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3358 | test $ac_status = 0; }; then : | |
d9898ee8 | 3359 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3360 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3361 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3362 | # `rm'. | |
3363 | for ac_file in conftest.exe conftest conftest.*; do | |
3364 | test -f "$ac_file" || continue | |
3365 | case $ac_file in | |
8d138742 | 3366 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3367 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3368 | break;; |
3369 | * ) break;; | |
3370 | esac | |
3371 | done | |
3372 | else | |
b0322a85 | 3373 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3374 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3375 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3376 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3377 | fi |
b0322a85 CE |
3378 | rm -f conftest conftest$ac_cv_exeext |
3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3380 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3381 | |
3382 | rm -f conftest.$ac_ext | |
3383 | EXEEXT=$ac_cv_exeext | |
3384 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3386 | /* end confdefs.h. */ | |
3387 | #include <stdio.h> | |
3388 | int | |
3389 | main () | |
3390 | { | |
3391 | FILE *f = fopen ("conftest.out", "w"); | |
3392 | return ferror (f) || fclose (f) != 0; | |
3393 | ||
3394 | ; | |
3395 | return 0; | |
3396 | } | |
3397 | _ACEOF | |
3398 | ac_clean_files="$ac_clean_files conftest.out" | |
3399 | # Check that the compiler produces executables we can run. If not, either | |
3400 | # the compiler is broken, or we cross compile. | |
3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3402 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3403 | if test "$cross_compiling" != yes; then | |
3404 | { { ac_try="$ac_link" | |
3405 | case "(($ac_try" in | |
3406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3407 | *) ac_try_echo=$ac_try;; | |
3408 | esac | |
3409 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3410 | $as_echo "$ac_try_echo"; } >&5 | |
3411 | (eval "$ac_link") 2>&5 | |
3412 | ac_status=$? | |
3413 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3414 | test $ac_status = 0; } | |
3415 | if { ac_try='./conftest$ac_cv_exeext' | |
3416 | { { case "(($ac_try" in | |
3417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3418 | *) ac_try_echo=$ac_try;; | |
3419 | esac | |
3420 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3421 | $as_echo "$ac_try_echo"; } >&5 | |
3422 | (eval "$ac_try") 2>&5 | |
3423 | ac_status=$? | |
3424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3425 | test $ac_status = 0; }; }; then | |
3426 | cross_compiling=no | |
3427 | else | |
3428 | if test "$cross_compiling" = maybe; then | |
3429 | cross_compiling=yes | |
3430 | else | |
3431 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3432 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3433 | as_fn_error $? "cannot run C compiled programs. | |
3434 | If you meant to cross compile, use \`--host'. | |
3435 | See \`config.log' for more details" "$LINENO" 5; } | |
3436 | fi | |
3437 | fi | |
3438 | fi | |
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3440 | $as_echo "$cross_compiling" >&6; } | |
3441 | ||
3442 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3443 | ac_clean_files=$ac_clean_files_save | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3445 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3446 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3447 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3448 | else |
b0322a85 | 3449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3450 | /* end confdefs.h. */ |
3451 | ||
3452 | int | |
3453 | main () | |
3454 | { | |
3455 | ||
3456 | ; | |
3457 | return 0; | |
3458 | } | |
3459 | _ACEOF | |
3460 | rm -f conftest.o conftest.obj | |
b0322a85 | 3461 | if { { ac_try="$ac_compile" |
dd184caf | 3462 | case "(($ac_try" in |
3463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3464 | *) ac_try_echo=$ac_try;; | |
3465 | esac | |
b0322a85 CE |
3466 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3467 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3468 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3469 | ac_status=$? |
b0322a85 CE |
3470 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3471 | test $ac_status = 0; }; then : | |
dd184caf | 3472 | for ac_file in conftest.o conftest.obj conftest.*; do |
3473 | test -f "$ac_file" || continue; | |
d9898ee8 | 3474 | case $ac_file in |
8d138742 | 3475 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3476 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3477 | break;; | |
3478 | esac | |
3479 | done | |
3480 | else | |
8d138742 | 3481 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3482 | sed 's/^/| /' conftest.$ac_ext >&5 |
3483 | ||
b0322a85 | 3484 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3485 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3486 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3487 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3488 | fi |
d9898ee8 | 3489 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3490 | fi | |
b0322a85 | 3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3492 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3493 | OBJEXT=$ac_cv_objext |
3494 | ac_objext=$OBJEXT | |
b0322a85 | 3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3496 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3497 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3498 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3499 | else |
b0322a85 | 3500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3501 | /* end confdefs.h. */ |
3502 | ||
3503 | int | |
3504 | main () | |
3505 | { | |
3506 | #ifndef __GNUC__ | |
3507 | choke me | |
3508 | #endif | |
3509 | ||
3510 | ; | |
3511 | return 0; | |
3512 | } | |
3513 | _ACEOF | |
b0322a85 | 3514 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3515 | ac_compiler_gnu=yes |
3516 | else | |
b0322a85 | 3517 | ac_compiler_gnu=no |
d9898ee8 | 3518 | fi |
dd184caf | 3519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3520 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3521 | ||
3522 | fi | |
b0322a85 | 3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3524 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3525 | if test $ac_compiler_gnu = yes; then | |
3526 | GCC=yes | |
3527 | else | |
3528 | GCC= | |
3529 | fi | |
d9898ee8 | 3530 | ac_test_CFLAGS=${CFLAGS+set} |
3531 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3533 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3534 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3535 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3536 | else |
dd184caf | 3537 | ac_save_c_werror_flag=$ac_c_werror_flag |
3538 | ac_c_werror_flag=yes | |
3539 | ac_cv_prog_cc_g=no | |
3540 | CFLAGS="-g" | |
b0322a85 | 3541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3542 | /* end confdefs.h. */ |
3543 | ||
3544 | int | |
3545 | main () | |
3546 | { | |
3547 | ||
3548 | ; | |
3549 | return 0; | |
3550 | } | |
3551 | _ACEOF | |
b0322a85 | 3552 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3553 | ac_cv_prog_cc_g=yes |
3554 | else | |
b0322a85 CE |
3555 | CFLAGS="" |
3556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 3557 | /* end confdefs.h. */ |
3558 | ||
3559 | int | |
3560 | main () | |
3561 | { | |
3562 | ||
3563 | ; | |
3564 | return 0; | |
3565 | } | |
3566 | _ACEOF | |
b0322a85 | 3567 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3568 | |
b0322a85 CE |
3569 | else |
3570 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3571 | CFLAGS="-g" |
b0322a85 | 3572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3573 | /* end confdefs.h. */ |
3574 | ||
3575 | int | |
3576 | main () | |
3577 | { | |
3578 | ||
3579 | ; | |
3580 | return 0; | |
3581 | } | |
3582 | _ACEOF | |
b0322a85 | 3583 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3584 | ac_cv_prog_cc_g=yes |
dd184caf | 3585 | fi |
dd184caf | 3586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3587 | fi | |
dd184caf | 3588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3589 | fi |
dd184caf | 3590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3591 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3592 | fi |
b0322a85 | 3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3594 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3595 | if test "$ac_test_CFLAGS" = set; then |
3596 | CFLAGS=$ac_save_CFLAGS | |
3597 | elif test $ac_cv_prog_cc_g = yes; then | |
3598 | if test "$GCC" = yes; then | |
3599 | CFLAGS="-g -O2" | |
3600 | else | |
3601 | CFLAGS="-g" | |
3602 | fi | |
3603 | else | |
3604 | if test "$GCC" = yes; then | |
3605 | CFLAGS="-O2" | |
3606 | else | |
3607 | CFLAGS= | |
3608 | fi | |
3609 | fi | |
b0322a85 | 3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3611 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3612 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3613 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3614 | else |
dd184caf | 3615 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3616 | ac_save_CC=$CC |
b0322a85 | 3617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3618 | /* end confdefs.h. */ |
3619 | #include <stdarg.h> | |
3620 | #include <stdio.h> | |
b0322a85 | 3621 | struct stat; |
d9898ee8 | 3622 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3623 | struct buf { int x; }; | |
3624 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3625 | static char *e (p, i) | |
3626 | char **p; | |
3627 | int i; | |
3628 | { | |
3629 | return p[i]; | |
3630 | } | |
3631 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3632 | { | |
3633 | char *s; | |
3634 | va_list v; | |
3635 | va_start (v,p); | |
3636 | s = g (p, va_arg (v,int)); | |
3637 | va_end (v); | |
3638 | return s; | |
3639 | } | |
3640 | ||
3641 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3642 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3643 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3644 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3645 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3646 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3647 | that's true only with -std. */ |
d9898ee8 | 3648 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3649 | ||
dd184caf | 3650 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3651 | inside strings and character constants. */ | |
3652 | #define FOO(x) 'x' | |
3653 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3654 | ||
d9898ee8 | 3655 | int test (int i, double x); |
3656 | struct s1 {int (*f) (int a);}; | |
3657 | struct s2 {int (*f) (double a);}; | |
3658 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3659 | int argc; | |
3660 | char **argv; | |
3661 | int | |
3662 | main () | |
3663 | { | |
3664 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3665 | ; | |
3666 | return 0; | |
3667 | } | |
3668 | _ACEOF | |
dd184caf | 3669 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3670 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3671 | do |
3672 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3673 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3674 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3675 | fi |
dd184caf | 3676 | rm -f core conftest.err conftest.$ac_objext |
3677 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3678 | done |
dd184caf | 3679 | rm -f conftest.$ac_ext |
d9898ee8 | 3680 | CC=$ac_save_CC |
3681 | ||
3682 | fi | |
dd184caf | 3683 | # AC_CACHE_VAL |
3684 | case "x$ac_cv_prog_cc_c89" in | |
3685 | x) | |
b0322a85 | 3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3687 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3688 | xno) |
b0322a85 | 3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3690 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3691 | *) |
dd184caf | 3692 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3694 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3695 | esac |
b0322a85 | 3696 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3697 | |
b0322a85 | 3698 | fi |
d9898ee8 | 3699 | |
d9898ee8 | 3700 | ac_ext=c |
3701 | ac_cpp='$CPP $CPPFLAGS' | |
3702 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3703 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3704 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d50284c4 CE |
3705 | |
3706 | ac_ext=c | |
3707 | ac_cpp='$CPP $CPPFLAGS' | |
3708 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3709 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3710 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3712 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3713 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3714 | $as_echo_n "(cached) " >&6 | |
3715 | else | |
3716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3717 | /* end confdefs.h. */ | |
3718 | ||
3719 | int | |
3720 | main () | |
3721 | { | |
3722 | ||
3723 | ; | |
3724 | return 0; | |
3725 | } | |
3726 | _ACEOF | |
3727 | # Make sure it works both with $CC and with simple cc. | |
3728 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3729 | # compilers refuse to overwrite an existing .o file with -o, | |
3730 | # though they will create one. | |
3731 | am_cv_prog_cc_c_o=yes | |
3732 | for am_i in 1 2; do | |
3733 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3734 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3735 | ac_status=$? | |
3736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3737 | (exit $ac_status); } \ | |
3738 | && test -f conftest2.$ac_objext; then | |
3739 | : OK | |
3740 | else | |
3741 | am_cv_prog_cc_c_o=no | |
3742 | break | |
3743 | fi | |
3744 | done | |
3745 | rm -f core conftest* | |
3746 | unset am_i | |
3747 | fi | |
3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3749 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3750 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3751 | # Losing compiler, so override with the script. | |
3752 | # FIXME: It is wrong to rewrite CC. | |
3753 | # But if we don't then we get into trouble of one sort or another. | |
3754 | # A longer-term fix would be to have automake use am__CC in this case, | |
3755 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3756 | CC="$am_aux_dir/compile $CC" | |
3757 | fi | |
3758 | ac_ext=c | |
3759 | ac_cpp='$CPP $CPPFLAGS' | |
3760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3763 | ||
d9898ee8 | 3764 | DEPDIR="${am__leading_dot}deps" |
3765 | ||
dd184caf | 3766 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3767 | |
3768 | ||
3769 | am_make=${MAKE-make} | |
3770 | cat > confinc << 'END' | |
3771 | am__doit: | |
8d138742 | 3772 | @echo this is the am__doit target |
d9898ee8 | 3773 | .PHONY: am__doit |
3774 | END | |
3775 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3777 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3778 | am__include="#" |
3779 | am__quote= | |
3780 | _am_result=none | |
3781 | # First try GNU make style include. | |
3782 | echo "include confinc" > confmf | |
b0322a85 | 3783 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
3784 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3785 | *the\ am__doit\ target*) | |
3786 | am__include=include | |
3787 | am__quote= | |
3788 | _am_result=GNU | |
3789 | ;; | |
3790 | esac | |
d9898ee8 | 3791 | # Now try BSD make style include. |
3792 | if test "$am__include" = "#"; then | |
3793 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3794 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3795 | *the\ am__doit\ target*) | |
3796 | am__include=.include | |
3797 | am__quote="\"" | |
3798 | _am_result=BSD | |
3799 | ;; | |
3800 | esac | |
d9898ee8 | 3801 | fi |
3802 | ||
3803 | ||
b0322a85 | 3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 3805 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 3806 | rm -f confinc confmf |
3807 | ||
dd184caf | 3808 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 3809 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 3810 | enableval=$enable_dependency_tracking; |
3811 | fi | |
d9898ee8 | 3812 | |
d9898ee8 | 3813 | if test "x$enable_dependency_tracking" != xno; then |
3814 | am_depcomp="$ac_aux_dir/depcomp" | |
3815 | AMDEPBACKSLASH='\' | |
b0322a85 | 3816 | am__nodep='_no' |
d9898ee8 | 3817 | fi |
dd184caf | 3818 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3819 | AMDEP_TRUE= |
3820 | AMDEP_FALSE='#' | |
3821 | else | |
3822 | AMDEP_TRUE='#' | |
3823 | AMDEP_FALSE= | |
3824 | fi | |
3825 | ||
3826 | ||
3827 | ||
d9898ee8 | 3828 | depcc="$CC" am_compiler_list= |
3829 | ||
b0322a85 | 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3831 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3832 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3833 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3834 | else |
3835 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3836 | # We make a subdir and do the tests there. Otherwise we can end up | |
3837 | # making bogus files that we don't know about and never remove. For | |
3838 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3839 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3840 | # in D". | |
3841 | rm -rf conftest.dir | |
d9898ee8 | 3842 | mkdir conftest.dir |
3843 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3844 | # using a relative directory. | |
3845 | cp "$am_depcomp" conftest.dir | |
3846 | cd conftest.dir | |
3847 | # We will build objects and dependencies in a subdirectory because | |
3848 | # it helps to detect inapplicable dependency modes. For instance | |
3849 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3850 | # side effect of compilation, but ICC will put the dependencies in | |
3851 | # the current directory while Tru64 will put them in the object | |
3852 | # directory. | |
3853 | mkdir sub | |
3854 | ||
3855 | am_cv_CC_dependencies_compiler_type=none | |
3856 | if test "$am_compiler_list" = ""; then | |
3857 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3858 | fi | |
8d138742 CE |
3859 | am__universal=false |
3860 | case " $depcc " in #( | |
3861 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3862 | esac | |
3863 | ||
d9898ee8 | 3864 | for depmode in $am_compiler_list; do |
3865 | # Setup a source with many dependencies, because some compilers | |
3866 | # like to wrap large dependency lists on column 80 (with \), and | |
3867 | # we should not choose a depcomp mode which is confused by this. | |
3868 | # | |
3869 | # We need to recreate these files for each test, as the compiler may | |
3870 | # overwrite some of them when testing with obscure command lines. | |
3871 | # This happens at least with the AIX C compiler. | |
3872 | : > sub/conftest.c | |
3873 | for i in 1 2 3 4 5 6; do | |
3874 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3875 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3876 | # Solaris 10 /bin/sh. | |
3877 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3878 | done |
3879 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3880 | ||
b0322a85 | 3881 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3882 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3883 | # handle '-M -o', and we need to detect this. Also, some Intel |
3884 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3885 | am__obj=sub/conftest.${OBJEXT-o} |
3886 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3887 | case $depmode in |
8d138742 CE |
3888 | gcc) |
3889 | # This depmode causes a compiler race in universal mode. | |
3890 | test "$am__universal" = false || continue | |
3891 | ;; | |
d9898ee8 | 3892 | nosideeffect) |
b0322a85 CE |
3893 | # After this tag, mechanisms are not by side-effect, so they'll |
3894 | # only be used when explicitly requested. | |
d9898ee8 | 3895 | if test "x$enable_dependency_tracking" = xyes; then |
3896 | continue | |
3897 | else | |
3898 | break | |
3899 | fi | |
3900 | ;; | |
b0322a85 CE |
3901 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3902 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
3903 | # not run yet. These depmodes are late enough in the game, and |
3904 | # so weak that their functioning should not be impacted. | |
3905 | am__obj=conftest.${OBJEXT-o} | |
3906 | am__minus_obj= | |
3907 | ;; | |
d9898ee8 | 3908 | none) break ;; |
3909 | esac | |
d9898ee8 | 3910 | if depmode=$depmode \ |
8d138742 | 3911 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3912 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3913 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3914 | >/dev/null 2>conftest.err && |
dd184caf | 3915 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3916 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3917 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3918 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3919 | # icc doesn't choke on unknown options, it will just issue warnings | |
3920 | # or remarks (even with -Werror). So we grep stderr for any message | |
3921 | # that says an option was ignored or not supported. | |
3922 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3923 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3924 | # The diagnosis changed in icc 8.0: | |
3925 | # icc: Command line remark: option '-MP' not supported | |
3926 | if (grep 'ignoring option' conftest.err || | |
3927 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3928 | am_cv_CC_dependencies_compiler_type=$depmode | |
3929 | break | |
3930 | fi | |
3931 | fi | |
3932 | done | |
3933 | ||
3934 | cd .. | |
3935 | rm -rf conftest.dir | |
3936 | else | |
3937 | am_cv_CC_dependencies_compiler_type=none | |
3938 | fi | |
3939 | ||
3940 | fi | |
b0322a85 | 3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 3942 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 3943 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3944 | ||
dd184caf | 3945 | if |
d9898ee8 | 3946 | test "x$enable_dependency_tracking" != xno \ |
3947 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3948 | am__fastdepCC_TRUE= | |
3949 | am__fastdepCC_FALSE='#' | |
3950 | else | |
3951 | am__fastdepCC_TRUE='#' | |
3952 | am__fastdepCC_FALSE= | |
3953 | fi | |
3954 | ||
3955 | ||
d9898ee8 | 3956 | |
b0322a85 | 3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 3958 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 3959 | LN_S=$as_ln_s |
3960 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 3962 | $as_echo "yes" >&6; } |
d9898ee8 | 3963 | else |
b0322a85 | 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 3965 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 3966 | fi |
3967 | ||
8d138742 CE |
3968 | case `pwd` in |
3969 | *\ * | *\ *) | |
b0322a85 | 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 CE |
3971 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
3972 | esac | |
3973 | ||
3974 | ||
3975 | ||
d50284c4 CE |
3976 | macro_version='2.4.6' |
3977 | macro_revision='2.4.6' | |
d9898ee8 | 3978 | |
dd184caf | 3979 | |
d9898ee8 | 3980 | |
dd184caf | 3981 | |
dd184caf | 3982 | |
d9898ee8 | 3983 | |
8d138742 CE |
3984 | |
3985 | ||
3986 | ||
3987 | ||
3988 | ||
3989 | ||
3990 | ||
d50284c4 | 3991 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 | 3992 | |
d9898ee8 | 3993 | # Make sure we can run config.sub. |
dd184caf | 3994 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 3995 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 3996 | |
b0322a85 | 3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 3998 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 3999 | if ${ac_cv_build+:} false; then : |
8d138742 | 4000 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4001 | else |
dd184caf | 4002 | ac_build_alias=$build_alias |
4003 | test "x$ac_build_alias" = x && | |
4004 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4005 | test "x$ac_build_alias" = x && | |
b0322a85 | 4006 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 4007 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 4008 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 4009 | |
4010 | fi | |
b0322a85 | 4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 4012 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 4013 | case $ac_cv_build in |
4014 | *-*-*) ;; | |
b0322a85 | 4015 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 4016 | esac |
d9898ee8 | 4017 | build=$ac_cv_build |
dd184caf | 4018 | ac_save_IFS=$IFS; IFS='-' |
4019 | set x $ac_cv_build | |
4020 | shift | |
4021 | build_cpu=$1 | |
4022 | build_vendor=$2 | |
4023 | shift; shift | |
4024 | # Remember, the first character of IFS is used to create $*, | |
4025 | # except with old shells: | |
4026 | build_os=$* | |
4027 | IFS=$ac_save_IFS | |
4028 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4029 | ||
4030 | ||
b0322a85 | 4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 4032 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 4033 | if ${ac_cv_host+:} false; then : |
8d138742 | 4034 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4035 | else |
dd184caf | 4036 | if test "x$host_alias" = x; then |
4037 | ac_cv_host=$ac_cv_build | |
4038 | else | |
4039 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 4040 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 4041 | fi |
d9898ee8 | 4042 | |
4043 | fi | |
b0322a85 | 4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 4045 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 4046 | case $ac_cv_host in |
4047 | *-*-*) ;; | |
b0322a85 | 4048 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 4049 | esac |
d9898ee8 | 4050 | host=$ac_cv_host |
dd184caf | 4051 | ac_save_IFS=$IFS; IFS='-' |
4052 | set x $ac_cv_host | |
4053 | shift | |
4054 | host_cpu=$1 | |
4055 | host_vendor=$2 | |
4056 | shift; shift | |
4057 | # Remember, the first character of IFS is used to create $*, | |
4058 | # except with old shells: | |
4059 | host_os=$* | |
4060 | IFS=$ac_save_IFS | |
4061 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4062 | ||
4063 | ||
b0322a85 CE |
4064 | # Backslashify metacharacters that are still active within |
4065 | # double-quoted strings. | |
4066 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4067 | ||
4068 | # Same as above, but do not quote variable references. | |
4069 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4070 | ||
4071 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4072 | # double_quote_subst'ed string. | |
4073 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4074 | ||
4075 | # Sed substitution to delay expansion of an escaped single quote. | |
4076 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4077 | ||
4078 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4079 | no_glob_subst='s/\*/\\\*/g' | |
4080 | ||
4081 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4082 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4083 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4084 | ||
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4086 | $as_echo_n "checking how to print strings... " >&6; } | |
4087 | # Test print first, because it will be a builtin if present. | |
4088 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4089 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4090 | ECHO='print -r --' | |
4091 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4092 | ECHO='printf %s\n' | |
4093 | else | |
4094 | # Use this function as a fallback that always works. | |
4095 | func_fallback_echo () | |
4096 | { | |
4097 | eval 'cat <<_LTECHO_EOF | |
4098 | $1 | |
4099 | _LTECHO_EOF' | |
4100 | } | |
4101 | ECHO='func_fallback_echo' | |
4102 | fi | |
4103 | ||
4104 | # func_echo_all arg... | |
4105 | # Invoke $ECHO with all args, space-separated. | |
4106 | func_echo_all () | |
4107 | { | |
4108 | $ECHO "" | |
4109 | } | |
4110 | ||
d50284c4 | 4111 | case $ECHO in |
b0322a85 CE |
4112 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4113 | $as_echo "printf" >&6; } ;; | |
4114 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4115 | $as_echo "print -r" >&6; } ;; | |
4116 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4117 | $as_echo "cat" >&6; } ;; | |
4118 | esac | |
4119 | ||
4120 | ||
4121 | ||
4122 | ||
4123 | ||
4124 | ||
4125 | ||
4126 | ||
4127 | ||
4128 | ||
4129 | ||
4130 | ||
4131 | ||
4132 | ||
4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 4134 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 4135 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
4136 | $as_echo_n "(cached) " >&6 |
4137 | else | |
4138 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4139 | for ac_i in 1 2 3 4 5 6 7; do | |
4140 | ac_script="$ac_script$as_nl$ac_script" | |
4141 | done | |
4142 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 4143 | { ac_script=; unset ac_script;} |
8d138742 CE |
4144 | if test -z "$SED"; then |
4145 | ac_path_SED_found=false | |
4146 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4148 | for as_dir in $PATH |
4149 | do | |
4150 | IFS=$as_save_IFS | |
4151 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4152 | for ac_prog in sed gsed; do |
d9898ee8 | 4153 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 4154 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 4155 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
4156 | # Check for GNU ac_path_SED and select it if it is found. |
4157 | # Check for GNU $ac_path_SED | |
4158 | case `"$ac_path_SED" --version 2>&1` in | |
4159 | *GNU*) | |
4160 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4161 | *) | |
4162 | ac_count=0 | |
4163 | $as_echo_n 0123456789 >"conftest.in" | |
4164 | while : | |
4165 | do | |
4166 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4167 | mv "conftest.tmp" "conftest.in" | |
4168 | cp "conftest.in" "conftest.nl" | |
4169 | $as_echo '' >> "conftest.nl" | |
4170 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4171 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4172 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4173 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4174 | # Best one so far, save it but keep looking for a better one | |
4175 | ac_cv_path_SED="$ac_path_SED" | |
4176 | ac_path_SED_max=$ac_count | |
4177 | fi | |
4178 | # 10*(2^10) chars as input seems more than enough | |
4179 | test $ac_count -gt 10 && break | |
4180 | done | |
4181 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4182 | esac | |
4183 | ||
4184 | $ac_path_SED_found && break 3 | |
d9898ee8 | 4185 | done |
4186 | done | |
b0322a85 | 4187 | done |
d9898ee8 | 4188 | IFS=$as_save_IFS |
8d138742 | 4189 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 4190 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
d9898ee8 | 4191 | fi |
8d138742 CE |
4192 | else |
4193 | ac_cv_path_SED=$SED | |
4194 | fi | |
d9898ee8 | 4195 | |
4196 | fi | |
b0322a85 | 4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
4198 | $as_echo "$ac_cv_path_SED" >&6; } |
4199 | SED="$ac_cv_path_SED" | |
4200 | rm -f conftest.sed | |
4201 | ||
4202 | test -z "$SED" && SED=sed | |
4203 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4204 | |
d9898ee8 | 4205 | |
dd184caf | 4206 | |
8d138742 CE |
4207 | |
4208 | ||
4209 | ||
4210 | ||
4211 | ||
4212 | ||
4213 | ||
4214 | ||
b0322a85 | 4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4216 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4217 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4218 | $as_echo_n "(cached) " >&6 |
dd184caf | 4219 | else |
8d138742 | 4220 | if test -z "$GREP"; then |
dd184caf | 4221 | ac_path_GREP_found=false |
8d138742 CE |
4222 | # Loop through the user's path and test for each of PROGNAME-LIST |
4223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4224 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4225 | do | |
4226 | IFS=$as_save_IFS | |
4227 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4228 | for ac_prog in grep ggrep; do |
8d138742 CE |
4229 | for ac_exec_ext in '' $ac_executable_extensions; do |
4230 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4231 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4232 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4233 | # Check for GNU $ac_path_GREP |
4234 | case `"$ac_path_GREP" --version 2>&1` in | |
4235 | *GNU*) | |
4236 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4237 | *) | |
4238 | ac_count=0 | |
8d138742 | 4239 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4240 | while : |
4241 | do | |
4242 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4243 | mv "conftest.tmp" "conftest.in" | |
4244 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4245 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4246 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4247 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4248 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4249 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4250 | # Best one so far, save it but keep looking for a better one | |
4251 | ac_cv_path_GREP="$ac_path_GREP" | |
4252 | ac_path_GREP_max=$ac_count | |
4253 | fi | |
4254 | # 10*(2^10) chars as input seems more than enough | |
4255 | test $ac_count -gt 10 && break | |
4256 | done | |
4257 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4258 | esac | |
4259 | ||
8d138742 CE |
4260 | $ac_path_GREP_found && break 3 |
4261 | done | |
dd184caf | 4262 | done |
b0322a85 | 4263 | done |
dd184caf | 4264 | IFS=$as_save_IFS |
8d138742 | 4265 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4266 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4267 | fi |
dd184caf | 4268 | else |
4269 | ac_cv_path_GREP=$GREP | |
4270 | fi | |
4271 | ||
dd184caf | 4272 | fi |
b0322a85 | 4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4274 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4275 | GREP="$ac_cv_path_GREP" |
4276 | ||
d9898ee8 | 4277 | |
b0322a85 | 4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4279 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4280 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4281 | $as_echo_n "(cached) " >&6 |
dd184caf | 4282 | else |
4283 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4284 | then ac_cv_path_EGREP="$GREP -E" | |
4285 | else | |
8d138742 | 4286 | if test -z "$EGREP"; then |
dd184caf | 4287 | ac_path_EGREP_found=false |
8d138742 CE |
4288 | # Loop through the user's path and test for each of PROGNAME-LIST |
4289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4290 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4291 | do | |
4292 | IFS=$as_save_IFS | |
4293 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4294 | for ac_prog in egrep; do |
8d138742 CE |
4295 | for ac_exec_ext in '' $ac_executable_extensions; do |
4296 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4297 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4298 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4299 | # Check for GNU $ac_path_EGREP |
4300 | case `"$ac_path_EGREP" --version 2>&1` in | |
4301 | *GNU*) | |
4302 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4303 | *) | |
4304 | ac_count=0 | |
8d138742 | 4305 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4306 | while : |
4307 | do | |
4308 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4309 | mv "conftest.tmp" "conftest.in" | |
4310 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4311 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4312 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4313 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4314 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4315 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4316 | # Best one so far, save it but keep looking for a better one | |
4317 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4318 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4319 | fi |
dd184caf | 4320 | # 10*(2^10) chars as input seems more than enough |
4321 | test $ac_count -gt 10 && break | |
4322 | done | |
4323 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4324 | esac | |
4325 | ||
8d138742 CE |
4326 | $ac_path_EGREP_found && break 3 |
4327 | done | |
dd184caf | 4328 | done |
b0322a85 | 4329 | done |
dd184caf | 4330 | IFS=$as_save_IFS |
8d138742 | 4331 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4332 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4333 | fi |
4334 | else | |
4335 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4336 | fi |
4337 | ||
8d138742 | 4338 | fi |
dd184caf | 4339 | fi |
b0322a85 | 4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4341 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4342 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4343 | |
8d138742 | 4344 | |
b0322a85 | 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4346 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4347 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4348 | $as_echo_n "(cached) " >&6 |
dd184caf | 4349 | else |
8d138742 CE |
4350 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4351 | then ac_cv_path_FGREP="$GREP -F" | |
4352 | else | |
4353 | if test -z "$FGREP"; then | |
4354 | ac_path_FGREP_found=false | |
4355 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4357 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4358 | do | |
4359 | IFS=$as_save_IFS | |
4360 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4361 | for ac_prog in fgrep; do |
8d138742 CE |
4362 | for ac_exec_ext in '' $ac_executable_extensions; do |
4363 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4364 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4365 | # Check for GNU ac_path_FGREP and select it if it is found. |
4366 | # Check for GNU $ac_path_FGREP | |
4367 | case `"$ac_path_FGREP" --version 2>&1` in | |
4368 | *GNU*) | |
4369 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4370 | *) | |
4371 | ac_count=0 | |
4372 | $as_echo_n 0123456789 >"conftest.in" | |
4373 | while : | |
4374 | do | |
4375 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4376 | mv "conftest.tmp" "conftest.in" | |
4377 | cp "conftest.in" "conftest.nl" | |
4378 | $as_echo 'FGREP' >> "conftest.nl" | |
4379 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4380 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4381 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4382 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4383 | # Best one so far, save it but keep looking for a better one | |
4384 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4385 | ac_path_FGREP_max=$ac_count | |
4386 | fi | |
4387 | # 10*(2^10) chars as input seems more than enough | |
4388 | test $ac_count -gt 10 && break | |
4389 | done | |
4390 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4391 | esac | |
dd184caf | 4392 | |
8d138742 CE |
4393 | $ac_path_FGREP_found && break 3 |
4394 | done | |
4395 | done | |
b0322a85 | 4396 | done |
8d138742 CE |
4397 | IFS=$as_save_IFS |
4398 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4399 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4400 | fi |
4401 | else | |
4402 | ac_cv_path_FGREP=$FGREP | |
4403 | fi | |
dd184caf | 4404 | |
4405 | fi | |
d9898ee8 | 4406 | fi |
b0322a85 | 4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4408 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4409 | FGREP="$ac_cv_path_FGREP" | |
4410 | ||
4411 | ||
4412 | test -z "$GREP" && GREP=grep | |
4413 | ||
4414 | ||
4415 | ||
4416 | ||
4417 | ||
4418 | ||
4419 | ||
4420 | ||
4421 | ||
4422 | ||
4423 | ||
4424 | ||
4425 | ||
4426 | ||
4427 | ||
4428 | ||
d9898ee8 | 4429 | |
4430 | ||
4431 | ||
dd184caf | 4432 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4433 | if test "${with_gnu_ld+set}" = set; then : |
d50284c4 | 4434 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
d9898ee8 | 4435 | else |
4436 | with_gnu_ld=no | |
dd184caf | 4437 | fi |
4438 | ||
d9898ee8 | 4439 | ac_prog=ld |
d50284c4 | 4440 | if test yes = "$GCC"; then |
d9898ee8 | 4441 | # Check if gcc -print-prog-name=ld gives a path. |
b0322a85 | 4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4443 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4444 | case $host in |
4445 | *-*-mingw*) | |
d50284c4 | 4446 | # gcc leaves a trailing carriage return, which upsets mingw |
d9898ee8 | 4447 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4448 | *) | |
4449 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4450 | esac | |
4451 | case $ac_prog in | |
4452 | # Accept absolute paths. | |
4453 | [\\/]* | ?:[\\/]*) | |
4454 | re_direlt='/[^/][^/]*/\.\./' | |
4455 | # Canonicalize the pathname of ld | |
8d138742 CE |
4456 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4457 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4458 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4459 | done |
d50284c4 | 4460 | test -z "$LD" && LD=$ac_prog |
d9898ee8 | 4461 | ;; |
4462 | "") | |
4463 | # If it fails, then pretend we aren't using GCC. | |
4464 | ac_prog=ld | |
4465 | ;; | |
4466 | *) | |
4467 | # If it is relative, then search for the first ld in PATH. | |
4468 | with_gnu_ld=unknown | |
4469 | ;; | |
4470 | esac | |
d50284c4 | 4471 | elif test yes = "$with_gnu_ld"; then |
b0322a85 | 4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4473 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4474 | else |
b0322a85 | 4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4476 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4477 | fi |
b0322a85 | 4478 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4479 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4480 | else |
4481 | if test -z "$LD"; then | |
d50284c4 | 4482 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4483 | for ac_dir in $PATH; do |
d50284c4 | 4484 | IFS=$lt_save_ifs |
d9898ee8 | 4485 | test -z "$ac_dir" && ac_dir=. |
4486 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
d50284c4 | 4487 | lt_cv_path_LD=$ac_dir/$ac_prog |
d9898ee8 | 4488 | # Check to see if the program is GNU ld. I'd rather use --version, |
4489 | # but apparently some variants of GNU ld only accept -v. | |
4490 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4491 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4492 | *GNU* | *'with BFD'*) | |
d50284c4 | 4493 | test no != "$with_gnu_ld" && break |
d9898ee8 | 4494 | ;; |
4495 | *) | |
d50284c4 | 4496 | test yes != "$with_gnu_ld" && break |
d9898ee8 | 4497 | ;; |
4498 | esac | |
4499 | fi | |
4500 | done | |
d50284c4 | 4501 | IFS=$lt_save_ifs |
d9898ee8 | 4502 | else |
d50284c4 | 4503 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
d9898ee8 | 4504 | fi |
4505 | fi | |
4506 | ||
d50284c4 | 4507 | LD=$lt_cv_path_LD |
d9898ee8 | 4508 | if test -n "$LD"; then |
b0322a85 | 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4510 | $as_echo "$LD" >&6; } |
d9898ee8 | 4511 | else |
b0322a85 | 4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4513 | $as_echo "no" >&6; } |
d9898ee8 | 4514 | fi |
b0322a85 CE |
4515 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4517 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4518 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4519 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4520 | else |
4521 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4522 | case `$LD -v 2>&1 </dev/null` in | |
4523 | *GNU* | *'with BFD'*) | |
4524 | lt_cv_prog_gnu_ld=yes | |
4525 | ;; | |
4526 | *) | |
4527 | lt_cv_prog_gnu_ld=no | |
4528 | ;; | |
4529 | esac | |
4530 | fi | |
b0322a85 | 4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4532 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4533 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4534 | ||
4535 | ||
d9898ee8 | 4536 | |
8d138742 CE |
4537 | |
4538 | ||
4539 | ||
4540 | ||
4541 | ||
4542 | ||
b0322a85 | 4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4544 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4545 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4546 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4547 | else |
4548 | if test -n "$NM"; then | |
4549 | # Let the user override the test. | |
d50284c4 | 4550 | lt_cv_path_NM=$NM |
d9898ee8 | 4551 | else |
d50284c4 | 4552 | lt_nm_to_check=${ac_tool_prefix}nm |
d9898ee8 | 4553 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4554 | lt_nm_to_check="$lt_nm_to_check nm" | |
4555 | fi | |
4556 | for lt_tmp_nm in $lt_nm_to_check; do | |
d50284c4 | 4557 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4558 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
d50284c4 | 4559 | IFS=$lt_save_ifs |
d9898ee8 | 4560 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
4561 | tmp_nm=$ac_dir/$lt_tmp_nm |
4562 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
d9898ee8 | 4563 | # Check to see if the nm accepts a BSD-compat flag. |
d50284c4 | 4564 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
d9898ee8 | 4565 | # nm: unknown option "B" ignored |
4566 | # Tru64's nm complains that /dev/null is an invalid object file | |
d50284c4 CE |
4567 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4568 | case $build_os in | |
4569 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4570 | *) lt_bad_file=/dev/null ;; | |
4571 | esac | |
4572 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4573 | *$lt_bad_file* | *'Invalid file or object type'*) | |
d9898ee8 | 4574 | lt_cv_path_NM="$tmp_nm -B" |
d50284c4 | 4575 | break 2 |
d9898ee8 | 4576 | ;; |
4577 | *) | |
4578 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4579 | */dev/null*) | |
4580 | lt_cv_path_NM="$tmp_nm -p" | |
d50284c4 | 4581 | break 2 |
d9898ee8 | 4582 | ;; |
4583 | *) | |
4584 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4585 | continue # so that we can try to find one that supports BSD flags | |
4586 | ;; | |
4587 | esac | |
4588 | ;; | |
4589 | esac | |
4590 | fi | |
4591 | done | |
d50284c4 | 4592 | IFS=$lt_save_ifs |
d9898ee8 | 4593 | done |
8d138742 | 4594 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4595 | fi |
4596 | fi | |
b0322a85 | 4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 | 4598 | $as_echo "$lt_cv_path_NM" >&6; } |
d50284c4 CE |
4599 | if test no != "$lt_cv_path_NM"; then |
4600 | NM=$lt_cv_path_NM | |
d9898ee8 | 4601 | else |
8d138742 | 4602 | # Didn't find any BSD compatible name lister, look for dumpbin. |
b0322a85 CE |
4603 | if test -n "$DUMPBIN"; then : |
4604 | # Let the user override the test. | |
4605 | else | |
4606 | if test -n "$ac_tool_prefix"; then | |
4607 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
4608 | do |
4609 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4610 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4612 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4613 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
4614 | $as_echo_n "(cached) " >&6 |
4615 | else | |
4616 | if test -n "$DUMPBIN"; then | |
4617 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4618 | else | |
4619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4620 | for as_dir in $PATH | |
4621 | do | |
4622 | IFS=$as_save_IFS | |
4623 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4624 | for ac_exec_ext in '' $ac_executable_extensions; do |
4625 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4626 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 4627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4628 | break 2 |
4629 | fi | |
4630 | done | |
b0322a85 | 4631 | done |
8d138742 | 4632 | IFS=$as_save_IFS |
d9898ee8 | 4633 | |
8d138742 CE |
4634 | fi |
4635 | fi | |
4636 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4637 | if test -n "$DUMPBIN"; then | |
b0322a85 | 4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 CE |
4639 | $as_echo "$DUMPBIN" >&6; } |
4640 | else | |
b0322a85 | 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4642 | $as_echo "no" >&6; } |
4643 | fi | |
d9898ee8 | 4644 | |
d9898ee8 | 4645 | |
8d138742 CE |
4646 | test -n "$DUMPBIN" && break |
4647 | done | |
4648 | fi | |
4649 | if test -z "$DUMPBIN"; then | |
4650 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 4651 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
4652 | do |
4653 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4654 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4656 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4657 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
4658 | $as_echo_n "(cached) " >&6 |
4659 | else | |
4660 | if test -n "$ac_ct_DUMPBIN"; then | |
4661 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4662 | else | |
4663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4664 | for as_dir in $PATH | |
4665 | do | |
4666 | IFS=$as_save_IFS | |
4667 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4668 | for ac_exec_ext in '' $ac_executable_extensions; do |
4669 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4670 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 4671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 4672 | break 2 |
ac40fd9e | 4673 | fi |
8d138742 | 4674 | done |
b0322a85 | 4675 | done |
8d138742 | 4676 | IFS=$as_save_IFS |
d9898ee8 | 4677 | |
8d138742 CE |
4678 | fi |
4679 | fi | |
4680 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4681 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
4683 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
4684 | else | |
b0322a85 | 4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4686 | $as_echo "no" >&6; } |
4687 | fi | |
d9898ee8 | 4688 | |
8d138742 CE |
4689 | |
4690 | test -n "$ac_ct_DUMPBIN" && break | |
4691 | done | |
4692 | ||
4693 | if test "x$ac_ct_DUMPBIN" = x; then | |
4694 | DUMPBIN=":" | |
d9898ee8 | 4695 | else |
8d138742 CE |
4696 | case $cross_compiling:$ac_tool_warned in |
4697 | yes:) | |
b0322a85 | 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4699 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4700 | ac_tool_warned=yes ;; | |
4701 | esac | |
4702 | DUMPBIN=$ac_ct_DUMPBIN | |
d9898ee8 | 4703 | fi |
8d138742 | 4704 | fi |
d9898ee8 | 4705 | |
d50284c4 | 4706 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b0322a85 | 4707 | *COFF*) |
d50284c4 | 4708 | DUMPBIN="$DUMPBIN -symbols -headers" |
b0322a85 CE |
4709 | ;; |
4710 | *) | |
4711 | DUMPBIN=: | |
4712 | ;; | |
4713 | esac | |
4714 | fi | |
d9898ee8 | 4715 | |
d50284c4 CE |
4716 | if test : != "$DUMPBIN"; then |
4717 | NM=$DUMPBIN | |
8d138742 CE |
4718 | fi |
4719 | fi | |
4720 | test -z "$NM" && NM=nm | |
d9898ee8 | 4721 | |
d9898ee8 | 4722 | |
d9898ee8 | 4723 | |
d9898ee8 | 4724 | |
d9898ee8 | 4725 | |
d9898ee8 | 4726 | |
b0322a85 | 4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 4728 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 4729 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
4730 | $as_echo_n "(cached) " >&6 |
4731 | else | |
4732 | lt_cv_nm_interface="BSD nm" | |
4733 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 4734 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
4735 | (eval "$ac_compile" 2>conftest.err) |
4736 | cat conftest.err >&5 | |
b0322a85 | 4737 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
4738 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4739 | cat conftest.err >&5 | |
b0322a85 | 4740 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
4741 | cat conftest.out >&5 |
4742 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4743 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4744 | fi |
8d138742 CE |
4745 | rm -f conftest* |
4746 | fi | |
b0322a85 | 4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 4748 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 4749 | |
8d138742 | 4750 | # find the maximum length of command line arguments |
b0322a85 | 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 4752 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 4753 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
4754 | $as_echo_n "(cached) " >&6 |
4755 | else | |
4756 | i=0 | |
d50284c4 | 4757 | teststring=ABCD |
d9898ee8 | 4758 | |
8d138742 CE |
4759 | case $build_os in |
4760 | msdosdjgpp*) | |
4761 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4762 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4763 | # during glob expansion). Even if it were fixed, the result of this | |
4764 | # check would be larger than it should be. | |
4765 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4766 | ;; | |
ac40fd9e | 4767 | |
8d138742 CE |
4768 | gnu*) |
4769 | # Under GNU Hurd, this test is not required because there is | |
4770 | # no limit to the length of command line arguments. | |
4771 | # Libtool will interpret -1 as no limit whatsoever | |
4772 | lt_cv_sys_max_cmd_len=-1; | |
4773 | ;; | |
d9898ee8 | 4774 | |
8d138742 CE |
4775 | cygwin* | mingw* | cegcc*) |
4776 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4777 | # about 5 minutes as the teststring grows exponentially. | |
4778 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4779 | # you end up with a "frozen" computer, even though with patience | |
4780 | # the test eventually succeeds (with a max line length of 256k). | |
4781 | # Instead, let's just punt: use the minimum linelength reported by | |
4782 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4783 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4784 | ;; |
8d138742 | 4785 | |
b0322a85 CE |
4786 | mint*) |
4787 | # On MiNT this can take a long time and run out of memory. | |
4788 | lt_cv_sys_max_cmd_len=8192; | |
4789 | ;; | |
4790 | ||
8d138742 CE |
4791 | amigaos*) |
4792 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4793 | # So we just punt and use a minimum line length of 8192. | |
4794 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4795 | ;; |
8d138742 | 4796 | |
d50284c4 | 4797 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
8d138742 CE |
4798 | # This has been around since 386BSD, at least. Likely further. |
4799 | if test -x /sbin/sysctl; then | |
4800 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4801 | elif test -x /usr/sbin/sysctl; then | |
4802 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4803 | else | |
4804 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4805 | fi | |
4806 | # And add a safety zone | |
4807 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4808 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4809 | ;; |
8d138742 CE |
4810 | |
4811 | interix*) | |
4812 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4813 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4814 | ;; |
8d138742 | 4815 | |
b0322a85 CE |
4816 | os2*) |
4817 | # The test takes a long time on OS/2. | |
4818 | lt_cv_sys_max_cmd_len=8192 | |
4819 | ;; | |
4820 | ||
8d138742 CE |
4821 | osf*) |
4822 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4823 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4824 | # nice to cause kernel panics so lets avoid the loop below. | |
4825 | # First set a reasonable default. | |
4826 | lt_cv_sys_max_cmd_len=16384 | |
4827 | # | |
4828 | if test -x /sbin/sysconfig; then | |
4829 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4830 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4831 | esac | |
4832 | fi | |
d9898ee8 | 4833 | ;; |
8d138742 CE |
4834 | sco3.2v5*) |
4835 | lt_cv_sys_max_cmd_len=102400 | |
4836 | ;; | |
4837 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4838 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4839 | if test -n "$kargmax"; then | |
4840 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4841 | else | |
4842 | lt_cv_sys_max_cmd_len=32768 | |
4843 | fi | |
4844 | ;; | |
4845 | *) | |
4846 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
d50284c4 CE |
4847 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
4848 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
8d138742 CE |
4849 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4850 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4851 | else | |
4852 | # Make teststring a little bigger before we do anything with it. | |
4853 | # a 1K string should be a reasonable start. | |
d50284c4 | 4854 | for i in 1 2 3 4 5 6 7 8; do |
8d138742 CE |
4855 | teststring=$teststring$teststring |
4856 | done | |
4857 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4858 | # If test is not a shell built-in, we'll probably end up computing a | |
4859 | # maximum length that is only half of the actual maximum length, but | |
4860 | # we can't tell. | |
d50284c4 | 4861 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b0322a85 | 4862 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
d50284c4 | 4863 | test 17 != "$i" # 1/2 MB should be enough |
8d138742 CE |
4864 | do |
4865 | i=`expr $i + 1` | |
4866 | teststring=$teststring$teststring | |
4867 | done | |
4868 | # Only check the string length outside the loop. | |
4869 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4870 | teststring= | |
4871 | # Add a significant safety factor because C++ compilers can tack on | |
4872 | # massive amounts of additional arguments before passing them to the | |
4873 | # linker. It appears as though 1/2 is a usable value. | |
4874 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4875 | fi | |
d9898ee8 | 4876 | ;; |
4877 | esac | |
d9898ee8 | 4878 | |
8d138742 | 4879 | fi |
d9898ee8 | 4880 | |
d50284c4 | 4881 | if test -n "$lt_cv_sys_max_cmd_len"; then |
b0322a85 | 4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
4883 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
4884 | else | |
b0322a85 | 4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 4886 | $as_echo "none" >&6; } |
d9898ee8 | 4887 | fi |
8d138742 | 4888 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 4889 | |
4890 | ||
4891 | ||
4892 | ||
d9898ee8 | 4893 | |
d9898ee8 | 4894 | |
8d138742 CE |
4895 | : ${CP="cp -f"} |
4896 | : ${MV="mv -f"} | |
4897 | : ${RM="rm -f"} | |
d9898ee8 | 4898 | |
8d138742 CE |
4899 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4900 | lt_unset=unset | |
d9898ee8 | 4901 | else |
8d138742 CE |
4902 | lt_unset=false |
4903 | fi | |
d9898ee8 | 4904 | |
d9898ee8 | 4905 | |
d9898ee8 | 4906 | |
dd184caf | 4907 | |
d9898ee8 | 4908 | |
8d138742 CE |
4909 | # test EBCDIC or ASCII |
4910 | case `echo X|tr X '\101'` in | |
4911 | A) # ASCII based system | |
4912 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4913 | lt_SP2NL='tr \040 \012' | |
4914 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4915 | ;; |
8d138742 CE |
4916 | *) # EBCDIC based system |
4917 | lt_SP2NL='tr \100 \n' | |
4918 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4919 | ;; |
8d138742 | 4920 | esac |
d9898ee8 | 4921 | |
4922 | ||
d9898ee8 | 4923 | |
d9898ee8 | 4924 | |
4925 | ||
8d138742 CE |
4926 | |
4927 | ||
4928 | ||
4929 | ||
b0322a85 CE |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
4931 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
4932 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
4933 | $as_echo_n "(cached) " >&6 | |
4934 | else | |
4935 | case $host in | |
4936 | *-*-mingw* ) | |
4937 | case $build in | |
4938 | *-*-mingw* ) # actually msys | |
4939 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
4940 | ;; | |
4941 | *-*-cygwin* ) | |
4942 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
4943 | ;; | |
4944 | * ) # otherwise, assume *nix | |
4945 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
4946 | ;; | |
4947 | esac | |
4948 | ;; | |
4949 | *-*-cygwin* ) | |
4950 | case $build in | |
4951 | *-*-mingw* ) # actually msys | |
4952 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
4953 | ;; | |
4954 | *-*-cygwin* ) | |
4955 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4956 | ;; | |
4957 | * ) # otherwise, assume *nix | |
4958 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
4959 | ;; | |
4960 | esac | |
4961 | ;; | |
4962 | * ) # unhandled hosts (and "normal" native builds) | |
4963 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4964 | ;; | |
4965 | esac | |
4966 | ||
4967 | fi | |
4968 | ||
4969 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
4971 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
4978 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
4979 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
4980 | $as_echo_n "(cached) " >&6 | |
4981 | else | |
4982 | #assume ordinary cross tools, or native build. | |
4983 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
4984 | case $host in | |
4985 | *-*-mingw* ) | |
4986 | case $build in | |
4987 | *-*-mingw* ) # actually msys | |
4988 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
4989 | ;; | |
4990 | esac | |
4991 | ;; | |
4992 | esac | |
4993 | ||
4994 | fi | |
4995 | ||
4996 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
4998 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ||
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 5005 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 5006 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 | 5007 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5008 | else |
8d138742 CE |
5009 | lt_cv_ld_reload_flag='-r' |
5010 | fi | |
b0322a85 | 5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
5012 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
5013 | reload_flag=$lt_cv_ld_reload_flag | |
5014 | case $reload_flag in | |
5015 | "" | " "*) ;; | |
5016 | *) reload_flag=" $reload_flag" ;; | |
5017 | esac | |
5018 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5019 | case $host_os in | |
b0322a85 | 5020 | cygwin* | mingw* | pw32* | cegcc*) |
d50284c4 | 5021 | if test yes != "$GCC"; then |
b0322a85 CE |
5022 | reload_cmds=false |
5023 | fi | |
5024 | ;; | |
8d138742 | 5025 | darwin*) |
d50284c4 CE |
5026 | if test yes = "$GCC"; then |
5027 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
8d138742 CE |
5028 | else |
5029 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5030 | fi | |
5031 | ;; | |
dd184caf | 5032 | esac |
d9898ee8 | 5033 | |
dd184caf | 5034 | |
d9898ee8 | 5035 | |
d9898ee8 | 5036 | |
dd184caf | 5037 | |
d9898ee8 | 5038 | |
d9898ee8 | 5039 | |
d9898ee8 | 5040 | |
8d138742 CE |
5041 | |
5042 | if test -n "$ac_tool_prefix"; then | |
5043 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5044 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5046 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5047 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 5048 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5049 | else |
8d138742 CE |
5050 | if test -n "$OBJDUMP"; then |
5051 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 5052 | else |
8d138742 CE |
5053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5054 | for as_dir in $PATH | |
5055 | do | |
5056 | IFS=$as_save_IFS | |
5057 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5058 | for ac_exec_ext in '' $ac_executable_extensions; do |
5059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5060 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 5061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5062 | break 2 |
5063 | fi | |
5064 | done | |
b0322a85 | 5065 | done |
8d138742 | 5066 | IFS=$as_save_IFS |
d9898ee8 | 5067 | |
8d138742 CE |
5068 | fi |
5069 | fi | |
5070 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5071 | if test -n "$OBJDUMP"; then | |
b0322a85 | 5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
5073 | $as_echo "$OBJDUMP" >&6; } |
5074 | else | |
b0322a85 | 5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5076 | $as_echo "no" >&6; } |
d9898ee8 | 5077 | fi |
dd184caf | 5078 | |
d9898ee8 | 5079 | |
8d138742 CE |
5080 | fi |
5081 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5082 | ac_ct_OBJDUMP=$OBJDUMP | |
5083 | # Extract the first word of "objdump", so it can be a program name with args. | |
5084 | set dummy objdump; ac_word=$2 | |
b0322a85 | 5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5086 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5087 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 | 5088 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5089 | else |
8d138742 CE |
5090 | if test -n "$ac_ct_OBJDUMP"; then |
5091 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5092 | else | |
5093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5094 | for as_dir in $PATH | |
5095 | do | |
5096 | IFS=$as_save_IFS | |
5097 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5098 | for ac_exec_ext in '' $ac_executable_extensions; do |
5099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5100 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 5101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5102 | break 2 |
5103 | fi | |
5104 | done | |
b0322a85 | 5105 | done |
8d138742 | 5106 | IFS=$as_save_IFS |
d9898ee8 | 5107 | |
8d138742 CE |
5108 | fi |
5109 | fi | |
5110 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5111 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 CE |
5113 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
5114 | else | |
b0322a85 | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5116 | $as_echo "no" >&6; } |
d9898ee8 | 5117 | fi |
dd184caf | 5118 | |
8d138742 CE |
5119 | if test "x$ac_ct_OBJDUMP" = x; then |
5120 | OBJDUMP="false" | |
5121 | else | |
5122 | case $cross_compiling:$ac_tool_warned in | |
5123 | yes:) | |
b0322a85 | 5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5125 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5126 | ac_tool_warned=yes ;; | |
5127 | esac | |
5128 | OBJDUMP=$ac_ct_OBJDUMP | |
5129 | fi | |
d9898ee8 | 5130 | else |
8d138742 | 5131 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 5132 | fi |
5133 | ||
8d138742 | 5134 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5135 | |
5136 | ||
d9898ee8 | 5137 | |
d9898ee8 | 5138 | |
d9898ee8 | 5139 | |
dd184caf | 5140 | |
d9898ee8 | 5141 | |
d9898ee8 | 5142 | |
8d138742 | 5143 | |
b0322a85 | 5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 5145 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 5146 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 5147 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5148 | else |
8d138742 CE |
5149 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5150 | lt_cv_file_magic_test_file= | |
5151 | lt_cv_deplibs_check_method='unknown' | |
5152 | # Need to set the preceding variable on all platforms that support | |
5153 | # interlibrary dependencies. | |
5154 | # 'none' -- dependencies not supported. | |
d50284c4 | 5155 | # 'unknown' -- same as none, but documents that we really don't know. |
8d138742 CE |
5156 | # 'pass_all' -- all dependencies passed with no checks. |
5157 | # 'test_compile' -- check by making test program. | |
5158 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
d50284c4 CE |
5159 | # that responds to the $file_magic_cmd with a given extended regex. |
5160 | # If you have 'file' or equivalent on your system and you're not sure | |
5161 | # whether 'pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5162 | |
8d138742 CE |
5163 | case $host_os in |
5164 | aix[4-9]*) | |
5165 | lt_cv_deplibs_check_method=pass_all | |
5166 | ;; | |
d9898ee8 | 5167 | |
8d138742 CE |
5168 | beos*) |
5169 | lt_cv_deplibs_check_method=pass_all | |
5170 | ;; | |
d9898ee8 | 5171 | |
8d138742 CE |
5172 | bsdi[45]*) |
5173 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5174 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5175 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5176 | ;; | |
d9898ee8 | 5177 | |
8d138742 CE |
5178 | cygwin*) |
5179 | # func_win32_libid is a shell function defined in ltmain.sh | |
5180 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5181 | lt_cv_file_magic_cmd='func_win32_libid' | |
5182 | ;; | |
d9898ee8 | 5183 | |
8d138742 CE |
5184 | mingw* | pw32*) |
5185 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5186 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5187 | # unless we find 'file', for example because we are cross-compiling. | |
d50284c4 | 5188 | if ( file / ) >/dev/null 2>&1; then |
8d138742 CE |
5189 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5190 | lt_cv_file_magic_cmd='func_win32_libid' | |
5191 | else | |
b0322a85 CE |
5192 | # Keep this pattern in sync with the one in func_win32_libid. |
5193 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
5194 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5195 | fi | |
5196 | ;; | |
d9898ee8 | 5197 | |
b0322a85 | 5198 | cegcc*) |
8d138742 CE |
5199 | # use the weaker test based on 'objdump'. See mingw*. |
5200 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5201 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5202 | ;; | |
d9898ee8 | 5203 | |
8d138742 CE |
5204 | darwin* | rhapsody*) |
5205 | lt_cv_deplibs_check_method=pass_all | |
5206 | ;; | |
5207 | ||
5208 | freebsd* | dragonfly*) | |
5209 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5210 | case $host_cpu in | |
5211 | i*86 ) | |
5212 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5213 | # Let's accept both of them until this is cleared up. | |
5214 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5215 | lt_cv_file_magic_cmd=/usr/bin/file | |
5216 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5217 | ;; | |
5218 | esac | |
5219 | else | |
5220 | lt_cv_deplibs_check_method=pass_all | |
5221 | fi | |
5222 | ;; | |
dd184caf | 5223 | |
b0322a85 CE |
5224 | haiku*) |
5225 | lt_cv_deplibs_check_method=pass_all | |
5226 | ;; | |
5227 | ||
8d138742 CE |
5228 | hpux10.20* | hpux11*) |
5229 | lt_cv_file_magic_cmd=/usr/bin/file | |
5230 | case $host_cpu in | |
5231 | ia64*) | |
5232 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5233 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5234 | ;; | |
5235 | hppa*64*) | |
b0322a85 | 5236 | 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]' |
8d138742 CE |
5237 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5238 | ;; | |
5239 | *) | |
b0322a85 | 5240 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5241 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5242 | ;; | |
5243 | esac | |
5244 | ;; | |
d9898ee8 | 5245 | |
8d138742 CE |
5246 | interix[3-9]*) |
5247 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5248 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5249 | ;; | |
d9898ee8 | 5250 | |
8d138742 CE |
5251 | irix5* | irix6* | nonstopux*) |
5252 | case $LD in | |
5253 | *-32|*"-32 ") libmagic=32-bit;; | |
5254 | *-n32|*"-n32 ") libmagic=N32;; | |
5255 | *-64|*"-64 ") libmagic=64-bit;; | |
5256 | *) libmagic=never-match;; | |
5257 | esac | |
5258 | lt_cv_deplibs_check_method=pass_all | |
5259 | ;; | |
d9898ee8 | 5260 | |
b0322a85 | 5261 | # This must be glibc/ELF. |
d50284c4 | 5262 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 CE |
5263 | lt_cv_deplibs_check_method=pass_all |
5264 | ;; | |
d9898ee8 | 5265 | |
8d138742 CE |
5266 | netbsd*) |
5267 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5268 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5269 | else | |
5270 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5271 | fi | |
5272 | ;; | |
d9898ee8 | 5273 | |
8d138742 CE |
5274 | newos6*) |
5275 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5276 | lt_cv_file_magic_cmd=/usr/bin/file | |
5277 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5278 | ;; | |
d9898ee8 | 5279 | |
8d138742 CE |
5280 | *nto* | *qnx*) |
5281 | lt_cv_deplibs_check_method=pass_all | |
5282 | ;; | |
d9898ee8 | 5283 | |
d50284c4 CE |
5284 | openbsd* | bitrig*) |
5285 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
8d138742 CE |
5286 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5287 | else | |
5288 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5289 | fi | |
5290 | ;; | |
d9898ee8 | 5291 | |
8d138742 CE |
5292 | osf3* | osf4* | osf5*) |
5293 | lt_cv_deplibs_check_method=pass_all | |
5294 | ;; | |
d9898ee8 | 5295 | |
8d138742 CE |
5296 | rdos*) |
5297 | lt_cv_deplibs_check_method=pass_all | |
5298 | ;; | |
d9898ee8 | 5299 | |
8d138742 CE |
5300 | solaris*) |
5301 | lt_cv_deplibs_check_method=pass_all | |
5302 | ;; | |
d9898ee8 | 5303 | |
8d138742 CE |
5304 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5305 | lt_cv_deplibs_check_method=pass_all | |
5306 | ;; | |
d9898ee8 | 5307 | |
8d138742 CE |
5308 | sysv4 | sysv4.3*) |
5309 | case $host_vendor in | |
5310 | motorola) | |
5311 | 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]' | |
5312 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5313 | ;; | |
5314 | ncr) | |
5315 | lt_cv_deplibs_check_method=pass_all | |
5316 | ;; | |
5317 | sequent) | |
5318 | lt_cv_file_magic_cmd='/bin/file' | |
5319 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5320 | ;; | |
5321 | sni) | |
5322 | lt_cv_file_magic_cmd='/bin/file' | |
5323 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5324 | lt_cv_file_magic_test_file=/lib/libc.so | |
5325 | ;; | |
5326 | siemens) | |
5327 | lt_cv_deplibs_check_method=pass_all | |
5328 | ;; | |
5329 | pc) | |
5330 | lt_cv_deplibs_check_method=pass_all | |
5331 | ;; | |
5332 | esac | |
5333 | ;; | |
d9898ee8 | 5334 | |
8d138742 CE |
5335 | tpf*) |
5336 | lt_cv_deplibs_check_method=pass_all | |
5337 | ;; | |
d50284c4 CE |
5338 | os2*) |
5339 | lt_cv_deplibs_check_method=pass_all | |
5340 | ;; | |
dd184caf | 5341 | esac |
d9898ee8 | 5342 | |
d9898ee8 | 5343 | fi |
b0322a85 | 5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
8d138742 | 5345 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
b0322a85 CE |
5346 | |
5347 | file_magic_glob= | |
5348 | want_nocaseglob=no | |
5349 | if test "$build" = "$host"; then | |
5350 | case $host_os in | |
5351 | mingw* | pw32*) | |
5352 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5353 | want_nocaseglob=yes | |
5354 | else | |
5355 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5356 | fi | |
5357 | ;; | |
5358 | esac | |
5359 | fi | |
5360 | ||
8d138742 CE |
5361 | file_magic_cmd=$lt_cv_file_magic_cmd |
5362 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5363 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dd184caf | 5364 | |
d9898ee8 | 5365 | |
d9898ee8 | 5366 | |
d9898ee8 | 5367 | |
5368 | ||
5369 | ||
d9898ee8 | 5370 | |
dd184caf | 5371 | |
d9898ee8 | 5372 | |
8d138742 CE |
5373 | |
5374 | ||
5375 | ||
b0322a85 CE |
5376 | |
5377 | ||
5378 | ||
5379 | ||
5380 | ||
5381 | ||
5382 | ||
5383 | ||
5384 | ||
5385 | ||
5386 | if test -n "$ac_tool_prefix"; then | |
5387 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5388 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5390 | $as_echo_n "checking for $ac_word... " >&6; } | |
5391 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5392 | $as_echo_n "(cached) " >&6 | |
5393 | else | |
5394 | if test -n "$DLLTOOL"; then | |
5395 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5396 | else | |
5397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5398 | for as_dir in $PATH | |
5399 | do | |
5400 | IFS=$as_save_IFS | |
5401 | test -z "$as_dir" && as_dir=. | |
5402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5404 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5406 | break 2 | |
5407 | fi | |
5408 | done | |
5409 | done | |
5410 | IFS=$as_save_IFS | |
5411 | ||
5412 | fi | |
5413 | fi | |
5414 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5415 | if test -n "$DLLTOOL"; then | |
5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5417 | $as_echo "$DLLTOOL" >&6; } | |
5418 | else | |
5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5420 | $as_echo "no" >&6; } | |
5421 | fi | |
5422 | ||
5423 | ||
5424 | fi | |
5425 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5426 | ac_ct_DLLTOOL=$DLLTOOL | |
5427 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5428 | set dummy dlltool; ac_word=$2 | |
5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5430 | $as_echo_n "checking for $ac_word... " >&6; } | |
5431 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5432 | $as_echo_n "(cached) " >&6 | |
5433 | else | |
5434 | if test -n "$ac_ct_DLLTOOL"; then | |
5435 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5436 | else | |
5437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5438 | for as_dir in $PATH | |
5439 | do | |
5440 | IFS=$as_save_IFS | |
5441 | test -z "$as_dir" && as_dir=. | |
5442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5444 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5446 | break 2 | |
5447 | fi | |
5448 | done | |
5449 | done | |
5450 | IFS=$as_save_IFS | |
5451 | ||
5452 | fi | |
5453 | fi | |
5454 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5455 | if test -n "$ac_ct_DLLTOOL"; then | |
5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5457 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5458 | else | |
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5460 | $as_echo "no" >&6; } | |
5461 | fi | |
5462 | ||
5463 | if test "x$ac_ct_DLLTOOL" = x; then | |
5464 | DLLTOOL="false" | |
5465 | else | |
5466 | case $cross_compiling:$ac_tool_warned in | |
5467 | yes:) | |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5469 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5470 | ac_tool_warned=yes ;; | |
5471 | esac | |
5472 | DLLTOOL=$ac_ct_DLLTOOL | |
5473 | fi | |
5474 | else | |
5475 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5476 | fi | |
5477 | ||
5478 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | ||
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5490 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5491 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5492 | $as_echo_n "(cached) " >&6 | |
5493 | else | |
5494 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5495 | ||
5496 | case $host_os in | |
5497 | cygwin* | mingw* | pw32* | cegcc*) | |
d50284c4 CE |
5498 | # two different shell functions defined in ltmain.sh; |
5499 | # decide which one to use based on capabilities of $DLLTOOL | |
b0322a85 CE |
5500 | case `$DLLTOOL --help 2>&1` in |
5501 | *--identify-strict*) | |
5502 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5503 | ;; | |
5504 | *) | |
5505 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5506 | ;; | |
5507 | esac | |
5508 | ;; | |
5509 | *) | |
5510 | # fallback: assume linklib IS sharedlib | |
d50284c4 | 5511 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
b0322a85 CE |
5512 | ;; |
5513 | esac | |
5514 | ||
5515 | fi | |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5517 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5518 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5519 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5520 | ||
5521 | ||
5522 | ||
5523 | ||
5524 | ||
5525 | ||
5526 | ||
5527 | ||
8d138742 | 5528 | if test -n "$ac_tool_prefix"; then |
b0322a85 CE |
5529 | for ac_prog in ar |
5530 | do | |
5531 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5532 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5534 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5535 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 5536 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5537 | else |
8d138742 CE |
5538 | if test -n "$AR"; then |
5539 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5540 | else | |
5541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5542 | for as_dir in $PATH | |
5543 | do | |
5544 | IFS=$as_save_IFS | |
5545 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5546 | for ac_exec_ext in '' $ac_executable_extensions; do |
5547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5548 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5550 | break 2 |
5551 | fi | |
5552 | done | |
b0322a85 | 5553 | done |
8d138742 | 5554 | IFS=$as_save_IFS |
d9898ee8 | 5555 | |
8d138742 CE |
5556 | fi |
5557 | fi | |
5558 | AR=$ac_cv_prog_AR | |
5559 | if test -n "$AR"; then | |
b0322a85 | 5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 CE |
5561 | $as_echo "$AR" >&6; } |
5562 | else | |
b0322a85 | 5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5564 | $as_echo "no" >&6; } |
d9898ee8 | 5565 | fi |
dd184caf | 5566 | |
d9898ee8 | 5567 | |
b0322a85 CE |
5568 | test -n "$AR" && break |
5569 | done | |
d9898ee8 | 5570 | fi |
b0322a85 | 5571 | if test -z "$AR"; then |
8d138742 | 5572 | ac_ct_AR=$AR |
b0322a85 CE |
5573 | for ac_prog in ar |
5574 | do | |
5575 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5576 | set dummy $ac_prog; ac_word=$2 | |
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5578 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5579 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 CE |
5580 | $as_echo_n "(cached) " >&6 |
5581 | else | |
5582 | if test -n "$ac_ct_AR"; then | |
5583 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5584 | else | |
5585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5586 | for as_dir in $PATH | |
5587 | do | |
5588 | IFS=$as_save_IFS | |
5589 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5590 | for ac_exec_ext in '' $ac_executable_extensions; do |
5591 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5592 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5594 | break 2 |
5595 | fi | |
5596 | done | |
b0322a85 | 5597 | done |
8d138742 | 5598 | IFS=$as_save_IFS |
d9898ee8 | 5599 | |
5600 | fi | |
8d138742 CE |
5601 | fi |
5602 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5603 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 CE |
5605 | $as_echo "$ac_ct_AR" >&6; } |
5606 | else | |
b0322a85 | 5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5608 | $as_echo "no" >&6; } |
5609 | fi | |
d9898ee8 | 5610 | |
b0322a85 CE |
5611 | |
5612 | test -n "$ac_ct_AR" && break | |
5613 | done | |
5614 | ||
8d138742 CE |
5615 | if test "x$ac_ct_AR" = x; then |
5616 | AR="false" | |
5617 | else | |
5618 | case $cross_compiling:$ac_tool_warned in | |
5619 | yes:) | |
b0322a85 | 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5621 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5622 | ac_tool_warned=yes ;; | |
5623 | esac | |
5624 | AR=$ac_ct_AR | |
5625 | fi | |
d9898ee8 | 5626 | fi |
5627 | ||
b0322a85 CE |
5628 | : ${AR=ar} |
5629 | : ${AR_FLAGS=cru} | |
5630 | ||
5631 | ||
5632 | ||
5633 | ||
d9898ee8 | 5634 | |
8d138742 CE |
5635 | |
5636 | ||
5637 | ||
5638 | ||
5639 | ||
5640 | ||
b0322a85 CE |
5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
5642 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5643 | if ${lt_cv_ar_at_file+:} false; then : | |
5644 | $as_echo_n "(cached) " >&6 | |
5645 | else | |
5646 | lt_cv_ar_at_file=no | |
5647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5648 | /* end confdefs.h. */ | |
5649 | ||
5650 | int | |
5651 | main () | |
5652 | { | |
5653 | ||
5654 | ; | |
5655 | return 0; | |
5656 | } | |
5657 | _ACEOF | |
5658 | if ac_fn_c_try_compile "$LINENO"; then : | |
5659 | echo conftest.$ac_objext > conftest.lst | |
5660 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5661 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5662 | (eval $lt_ar_try) 2>&5 | |
5663 | ac_status=$? | |
5664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5665 | test $ac_status = 0; } | |
d50284c4 | 5666 | if test 0 -eq "$ac_status"; then |
b0322a85 CE |
5667 | # Ensure the archiver fails upon bogus file names. |
5668 | rm -f conftest.$ac_objext libconftest.a | |
5669 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5670 | (eval $lt_ar_try) 2>&5 | |
5671 | ac_status=$? | |
5672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5673 | test $ac_status = 0; } | |
d50284c4 | 5674 | if test 0 -ne "$ac_status"; then |
b0322a85 CE |
5675 | lt_cv_ar_at_file=@ |
5676 | fi | |
5677 | fi | |
5678 | rm -f conftest.* libconftest.a | |
5679 | ||
5680 | fi | |
5681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5682 | ||
5683 | fi | |
5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5685 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5686 | ||
d50284c4 | 5687 | if test no = "$lt_cv_ar_at_file"; then |
b0322a85 CE |
5688 | archiver_list_spec= |
5689 | else | |
5690 | archiver_list_spec=$lt_cv_ar_at_file | |
5691 | fi | |
5692 | ||
5693 | ||
5694 | ||
8d138742 CE |
5695 | |
5696 | ||
5697 | ||
5698 | ||
5699 | if test -n "$ac_tool_prefix"; then | |
5700 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5701 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5703 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5704 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 | 5705 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5706 | else |
8d138742 CE |
5707 | if test -n "$STRIP"; then |
5708 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
d9898ee8 | 5709 | else |
5710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5711 | for as_dir in $PATH | |
5712 | do | |
5713 | IFS=$as_save_IFS | |
5714 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5715 | for ac_exec_ext in '' $ac_executable_extensions; do |
5716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5717 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 5718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5719 | break 2 |
5720 | fi | |
5721 | done | |
b0322a85 | 5722 | done |
dd184caf | 5723 | IFS=$as_save_IFS |
d9898ee8 | 5724 | |
5725 | fi | |
5726 | fi | |
8d138742 CE |
5727 | STRIP=$ac_cv_prog_STRIP |
5728 | if test -n "$STRIP"; then | |
b0322a85 | 5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 | 5730 | $as_echo "$STRIP" >&6; } |
d9898ee8 | 5731 | else |
b0322a85 | 5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5733 | $as_echo "no" >&6; } |
d9898ee8 | 5734 | fi |
5735 | ||
dd184caf | 5736 | |
d9898ee8 | 5737 | fi |
8d138742 CE |
5738 | if test -z "$ac_cv_prog_STRIP"; then |
5739 | ac_ct_STRIP=$STRIP | |
5740 | # Extract the first word of "strip", so it can be a program name with args. | |
5741 | set dummy strip; ac_word=$2 | |
b0322a85 | 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5743 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5744 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 | 5745 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5746 | else |
8d138742 CE |
5747 | if test -n "$ac_ct_STRIP"; then |
5748 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
d9898ee8 | 5749 | else |
5750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5751 | for as_dir in $PATH | |
5752 | do | |
5753 | IFS=$as_save_IFS | |
5754 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5755 | for ac_exec_ext in '' $ac_executable_extensions; do |
5756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5757 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 5758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5759 | break 2 |
5760 | fi | |
5761 | done | |
b0322a85 | 5762 | done |
dd184caf | 5763 | IFS=$as_save_IFS |
d9898ee8 | 5764 | |
5765 | fi | |
5766 | fi | |
8d138742 CE |
5767 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5768 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 | 5770 | $as_echo "$ac_ct_STRIP" >&6; } |
d9898ee8 | 5771 | else |
b0322a85 | 5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5773 | $as_echo "no" >&6; } |
d9898ee8 | 5774 | fi |
5775 | ||
8d138742 CE |
5776 | if test "x$ac_ct_STRIP" = x; then |
5777 | STRIP=":" | |
dd184caf | 5778 | else |
5779 | case $cross_compiling:$ac_tool_warned in | |
5780 | yes:) | |
b0322a85 | 5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 5782 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 5783 | ac_tool_warned=yes ;; |
5784 | esac | |
8d138742 | 5785 | STRIP=$ac_ct_STRIP |
dd184caf | 5786 | fi |
8d138742 CE |
5787 | else |
5788 | STRIP="$ac_cv_prog_STRIP" | |
d9898ee8 | 5789 | fi |
5790 | ||
8d138742 | 5791 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5792 | |
d9898ee8 | 5793 | |
d9898ee8 | 5794 | |
8d138742 CE |
5795 | |
5796 | ||
5797 | ||
5798 | if test -n "$ac_tool_prefix"; then | |
5799 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5800 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5802 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5803 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 5804 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5805 | else |
8d138742 CE |
5806 | if test -n "$RANLIB"; then |
5807 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5808 | else | |
5809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5810 | for as_dir in $PATH | |
5811 | do | |
5812 | IFS=$as_save_IFS | |
5813 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5814 | for ac_exec_ext in '' $ac_executable_extensions; do |
5815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5816 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 5817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5818 | break 2 |
5819 | fi | |
5820 | done | |
b0322a85 | 5821 | done |
8d138742 | 5822 | IFS=$as_save_IFS |
d9898ee8 | 5823 | |
8d138742 CE |
5824 | fi |
5825 | fi | |
5826 | RANLIB=$ac_cv_prog_RANLIB | |
5827 | if test -n "$RANLIB"; then | |
b0322a85 | 5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 CE |
5829 | $as_echo "$RANLIB" >&6; } |
5830 | else | |
b0322a85 | 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5832 | $as_echo "no" >&6; } |
d9898ee8 | 5833 | fi |
dd184caf | 5834 | |
d9898ee8 | 5835 | |
8d138742 CE |
5836 | fi |
5837 | if test -z "$ac_cv_prog_RANLIB"; then | |
5838 | ac_ct_RANLIB=$RANLIB | |
5839 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5840 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 5841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5842 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5843 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 | 5844 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5845 | else |
8d138742 CE |
5846 | if test -n "$ac_ct_RANLIB"; then |
5847 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5848 | else | |
5849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5850 | for as_dir in $PATH | |
5851 | do | |
5852 | IFS=$as_save_IFS | |
5853 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5854 | for ac_exec_ext in '' $ac_executable_extensions; do |
5855 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5856 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 5857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5858 | break 2 |
5859 | fi | |
5860 | done | |
b0322a85 | 5861 | done |
8d138742 | 5862 | IFS=$as_save_IFS |
dd184caf | 5863 | |
8d138742 CE |
5864 | fi |
5865 | fi | |
5866 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5867 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
5869 | $as_echo "$ac_ct_RANLIB" >&6; } |
5870 | else | |
b0322a85 | 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5872 | $as_echo "no" >&6; } |
5873 | fi | |
dd184caf | 5874 | |
8d138742 CE |
5875 | if test "x$ac_ct_RANLIB" = x; then |
5876 | RANLIB=":" | |
5877 | else | |
5878 | case $cross_compiling:$ac_tool_warned in | |
5879 | yes:) | |
b0322a85 | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5881 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5882 | ac_tool_warned=yes ;; | |
dd184caf | 5883 | esac |
8d138742 CE |
5884 | RANLIB=$ac_ct_RANLIB |
5885 | fi | |
d9898ee8 | 5886 | else |
8d138742 CE |
5887 | RANLIB="$ac_cv_prog_RANLIB" |
5888 | fi | |
d9898ee8 | 5889 | |
8d138742 | 5890 | test -z "$RANLIB" && RANLIB=: |
dd184caf | 5891 | |
dd184caf | 5892 | |
d9898ee8 | 5893 | |
dd184caf | 5894 | |
dd184caf | 5895 | |
d9898ee8 | 5896 | |
8d138742 CE |
5897 | # Determine commands to create old-style static archives. |
5898 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5899 | old_postinstall_cmds='chmod 644 $oldlib' | |
5900 | old_postuninstall_cmds= | |
dd184caf | 5901 | |
8d138742 CE |
5902 | if test -n "$RANLIB"; then |
5903 | case $host_os in | |
d50284c4 | 5904 | bitrig* | openbsd*) |
b0322a85 | 5905 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
5906 | ;; |
5907 | *) | |
b0322a85 | 5908 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
5909 | ;; |
5910 | esac | |
b0322a85 | 5911 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
dd184caf | 5912 | fi |
d9898ee8 | 5913 | |
b0322a85 CE |
5914 | case $host_os in |
5915 | darwin*) | |
5916 | lock_old_archive_extraction=yes ;; | |
5917 | *) | |
5918 | lock_old_archive_extraction=no ;; | |
5919 | esac | |
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | ||
5925 | ||
d9898ee8 | 5926 | |
d9898ee8 | 5927 | |
d9898ee8 | 5928 | |
d9898ee8 | 5929 | |
d9898ee8 | 5930 | |
d9898ee8 | 5931 | |
d9898ee8 | 5932 | |
5933 | ||
5934 | ||
5935 | ||
8d138742 CE |
5936 | |
5937 | ||
5938 | ||
5939 | ||
5940 | ||
5941 | ||
5942 | ||
5943 | ||
5944 | ||
5945 | ||
5946 | ||
5947 | ||
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5954 | ||
5955 | ||
5956 | ||
5957 | ||
5958 | ||
5959 | # If no C compiler was specified, use CC. | |
5960 | LTCC=${LTCC-"$CC"} | |
5961 | ||
5962 | # If no C compiler flags were specified, use CFLAGS. | |
5963 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5964 | ||
5965 | # Allow CC to be a program name with arguments. | |
5966 | compiler=$CC | |
5967 | ||
5968 | ||
5969 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
b0322a85 | 5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 5971 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 5972 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 5973 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5974 | else |
d9898ee8 | 5975 | |
8d138742 CE |
5976 | # These are sane defaults that work on at least a few old systems. |
5977 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
dd184caf | 5978 | |
8d138742 CE |
5979 | # Character class describing NM global symbol codes. |
5980 | symcode='[BCDEGRST]' | |
d9898ee8 | 5981 | |
8d138742 CE |
5982 | # Regexp to match symbols that can be accessed directly from C. |
5983 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d9898ee8 | 5984 | |
8d138742 CE |
5985 | # Define system-specific variables. |
5986 | case $host_os in | |
5987 | aix*) | |
5988 | symcode='[BCDT]' | |
5989 | ;; | |
5990 | cygwin* | mingw* | pw32* | cegcc*) | |
5991 | symcode='[ABCDGISTW]' | |
5992 | ;; | |
5993 | hpux*) | |
d50284c4 | 5994 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
5995 | symcode='[ABCDEGRST]' |
5996 | fi | |
5997 | ;; | |
5998 | irix* | nonstopux*) | |
5999 | symcode='[BCDEGRST]' | |
6000 | ;; | |
6001 | osf*) | |
6002 | symcode='[BCDEGQRST]' | |
6003 | ;; | |
6004 | solaris*) | |
6005 | symcode='[BDRT]' | |
6006 | ;; | |
6007 | sco3.2v5*) | |
6008 | symcode='[DT]' | |
6009 | ;; | |
6010 | sysv4.2uw2*) | |
6011 | symcode='[DT]' | |
6012 | ;; | |
6013 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6014 | symcode='[ABDT]' | |
6015 | ;; | |
6016 | sysv4) | |
6017 | symcode='[DFNSTU]' | |
6018 | ;; | |
6019 | esac | |
dd184caf | 6020 | |
8d138742 CE |
6021 | # If we're using GNU nm, then use its standard symbol codes. |
6022 | case `$NM -V 2>&1` in | |
6023 | *GNU* | *'with BFD'*) | |
6024 | symcode='[ABCDGIRSTW]' ;; | |
6025 | esac | |
d9898ee8 | 6026 | |
d50284c4 CE |
6027 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6028 | # Gets list of data symbols to import. | |
6029 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6030 | # Adjust the below global symbol transforms to fixup imported variables. | |
6031 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6032 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6033 | lt_c_name_lib_hook="\ | |
6034 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6035 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6036 | else | |
6037 | # Disable hooks by default. | |
6038 | lt_cv_sys_global_symbol_to_import= | |
6039 | lt_cdecl_hook= | |
6040 | lt_c_name_hook= | |
6041 | lt_c_name_lib_hook= | |
6042 | fi | |
6043 | ||
8d138742 CE |
6044 | # Transform an extracted symbol line into a proper C declaration. |
6045 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6046 | # so use this general approach. | |
d50284c4 CE |
6047 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6048 | $lt_cdecl_hook\ | |
6049 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6050 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 6051 | |
8d138742 | 6052 | # Transform an extracted symbol line into symbol name and symbol address |
d50284c4 CE |
6053 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6054 | $lt_c_name_hook\ | |
6055 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6056 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6057 | ||
6058 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6059 | # symbol address. | |
6060 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6061 | $lt_c_name_lib_hook\ | |
6062 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6063 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6064 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
d9898ee8 | 6065 | |
8d138742 CE |
6066 | # Handle CRLF in mingw tool chain |
6067 | opt_cr= | |
6068 | case $build_os in | |
6069 | mingw*) | |
6070 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6071 | ;; | |
dd184caf | 6072 | esac |
d9898ee8 | 6073 | |
8d138742 CE |
6074 | # Try without a prefix underscore, then with it. |
6075 | for ac_symprfx in "" "_"; do | |
dd184caf | 6076 | |
8d138742 CE |
6077 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6078 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d9898ee8 | 6079 | |
8d138742 CE |
6080 | # Write the raw and C identifiers. |
6081 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
d50284c4 CE |
6082 | # Fake it for dumpbin and say T for any non-static function, |
6083 | # D for any global variable and I for any imported variable. | |
8d138742 CE |
6084 | # Also find C++ and __fastcall symbols from MSVC++, |
6085 | # which start with @ or ?. | |
6086 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6087 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 6088 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 | 6089 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
d50284c4 CE |
6090 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6091 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6092 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
8d138742 CE |
6093 | " \$ 0!~/External *\|/{next};"\ |
6094 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6095 | " {if(hide[section]) next};"\ | |
d50284c4 CE |
6096 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6097 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6098 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6099 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
8d138742 CE |
6100 | " ' prfx=^$ac_symprfx" |
6101 | else | |
6102 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6103 | fi | |
b0322a85 | 6104 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
d9898ee8 | 6105 | |
8d138742 CE |
6106 | # Check to see that the pipe works correctly. |
6107 | pipe_works=no | |
dd184caf | 6108 | |
8d138742 CE |
6109 | rm -f conftest* |
6110 | cat > conftest.$ac_ext <<_LT_EOF | |
6111 | #ifdef __cplusplus | |
6112 | extern "C" { | |
6113 | #endif | |
6114 | char nm_test_var; | |
6115 | void nm_test_func(void); | |
6116 | void nm_test_func(void){} | |
6117 | #ifdef __cplusplus | |
6118 | } | |
6119 | #endif | |
6120 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6121 | _LT_EOF | |
d9898ee8 | 6122 | |
b0322a85 | 6123 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6124 | (eval $ac_compile) 2>&5 |
6125 | ac_status=$? | |
b0322a85 CE |
6126 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6127 | test $ac_status = 0; }; then | |
8d138742 CE |
6128 | # Now try to grab the symbols. |
6129 | nlist=conftest.nm | |
b0322a85 CE |
6130 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6131 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
8d138742 | 6132 | ac_status=$? |
b0322a85 CE |
6133 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6134 | test $ac_status = 0; } && test -s "$nlist"; then | |
8d138742 CE |
6135 | # Try sorting and uniquifying the output. |
6136 | if sort "$nlist" | uniq > "$nlist"T; then | |
6137 | mv -f "$nlist"T "$nlist" | |
6138 | else | |
6139 | rm -f "$nlist"T | |
6140 | fi | |
d9898ee8 | 6141 | |
8d138742 CE |
6142 | # Make sure that we snagged all the symbols we need. |
6143 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6144 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6145 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 | 6146 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
d50284c4 CE |
6147 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6148 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b0322a85 CE |
6149 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6150 | # define LT_DLSYM_CONST | |
d50284c4 | 6151 | #elif defined __osf__ |
b0322a85 CE |
6152 | /* This system does not cope well with relocations in const data. */ |
6153 | # define LT_DLSYM_CONST | |
6154 | #else | |
6155 | # define LT_DLSYM_CONST const | |
6156 | #endif | |
6157 | ||
8d138742 CE |
6158 | #ifdef __cplusplus |
6159 | extern "C" { | |
6160 | #endif | |
d9898ee8 | 6161 | |
8d138742 CE |
6162 | _LT_EOF |
6163 | # Now generate the symbol file. | |
6164 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 6165 | |
8d138742 | 6166 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 6167 | |
8d138742 | 6168 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 6169 | LT_DLSYM_CONST struct { |
8d138742 CE |
6170 | const char *name; |
6171 | void *address; | |
6172 | } | |
6173 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6174 | { | |
6175 | { "@PROGRAM@", (void *) 0 }, | |
6176 | _LT_EOF | |
d50284c4 | 6177 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
8d138742 CE |
6178 | cat <<\_LT_EOF >> conftest.$ac_ext |
6179 | {0, (void *) 0} | |
6180 | }; | |
6181 | ||
6182 | /* This works around a problem in FreeBSD linker */ | |
6183 | #ifdef FREEBSD_WORKAROUND | |
6184 | static const void *lt_preloaded_setup() { | |
6185 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6186 | } | |
6187 | #endif | |
6188 | ||
6189 | #ifdef __cplusplus | |
6190 | } | |
6191 | #endif | |
6192 | _LT_EOF | |
6193 | # Now try linking the two files. | |
6194 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
6195 | lt_globsym_save_LIBS=$LIBS |
6196 | lt_globsym_save_CFLAGS=$CFLAGS | |
d50284c4 | 6197 | LIBS=conftstm.$ac_objext |
8d138742 | 6198 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
b0322a85 | 6199 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
6200 | (eval $ac_link) 2>&5 |
6201 | ac_status=$? | |
b0322a85 | 6202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 6203 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
8d138742 CE |
6204 | pipe_works=yes |
6205 | fi | |
b0322a85 CE |
6206 | LIBS=$lt_globsym_save_LIBS |
6207 | CFLAGS=$lt_globsym_save_CFLAGS | |
8d138742 CE |
6208 | else |
6209 | echo "cannot find nm_test_func in $nlist" >&5 | |
6210 | fi | |
6211 | else | |
6212 | echo "cannot find nm_test_var in $nlist" >&5 | |
6213 | fi | |
6214 | else | |
6215 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6216 | fi | |
6217 | else | |
6218 | echo "$progname: failed program was:" >&5 | |
6219 | cat conftest.$ac_ext >&5 | |
6220 | fi | |
6221 | rm -rf conftest* conftst* | |
6222 | ||
6223 | # Do not use the global_symbol_pipe unless it works. | |
d50284c4 | 6224 | if test yes = "$pipe_works"; then |
8d138742 CE |
6225 | break |
6226 | else | |
6227 | lt_cv_sys_global_symbol_pipe= | |
6228 | fi | |
6229 | done | |
6230 | ||
6231 | fi | |
6232 | ||
6233 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6234 | lt_cv_sys_global_symbol_to_cdecl= | |
6235 | fi | |
6236 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
b0322a85 | 6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 CE |
6238 | $as_echo "failed" >&6; } |
6239 | else | |
b0322a85 | 6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 CE |
6241 | $as_echo "ok" >&6; } |
6242 | fi | |
6243 | ||
b0322a85 CE |
6244 | # Response file support. |
6245 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6246 | nm_file_list_spec='@' | |
6247 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6248 | nm_file_list_spec='@' | |
6249 | fi | |
6250 | ||
6251 | ||
6252 | ||
6253 | ||
6254 | ||
6255 | ||
6256 | ||
6257 | ||
6258 | ||
6259 | ||
6260 | ||
8d138742 CE |
6261 | |
6262 | ||
6263 | ||
6264 | ||
6265 | ||
d50284c4 CE |
6266 | |
6267 | ||
6268 | ||
6269 | ||
6270 | ||
6271 | ||
6272 | ||
6273 | ||
6274 | ||
6275 | ||
8d138742 CE |
6276 | |
6277 | ||
6278 | ||
6279 | ||
6280 | ||
6281 | ||
6282 | ||
6283 | ||
6284 | ||
6285 | ||
6286 | ||
b0322a85 CE |
6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6288 | $as_echo_n "checking for sysroot... " >&6; } | |
8d138742 | 6289 | |
b0322a85 CE |
6290 | # Check whether --with-sysroot was given. |
6291 | if test "${with_sysroot+set}" = set; then : | |
6292 | withval=$with_sysroot; | |
6293 | else | |
6294 | with_sysroot=no | |
6295 | fi | |
6296 | ||
6297 | ||
6298 | lt_sysroot= | |
d50284c4 | 6299 | case $with_sysroot in #( |
b0322a85 | 6300 | yes) |
d50284c4 | 6301 | if test yes = "$GCC"; then |
b0322a85 CE |
6302 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6303 | fi | |
6304 | ;; #( | |
6305 | /*) | |
6306 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6307 | ;; #( | |
6308 | no|'') | |
6309 | ;; #( | |
6310 | *) | |
d50284c4 CE |
6311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6312 | $as_echo "$with_sysroot" >&6; } | |
b0322a85 CE |
6313 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6314 | ;; | |
6315 | esac | |
6316 | ||
6317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6318 | $as_echo "${lt_sysroot:-no}" >&6; } | |
8d138742 CE |
6319 | |
6320 | ||
6321 | ||
6322 | ||
6323 | ||
d50284c4 CE |
6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6325 | $as_echo_n "checking for a working dd... " >&6; } | |
6326 | if ${ac_cv_path_lt_DD+:} false; then : | |
6327 | $as_echo_n "(cached) " >&6 | |
6328 | else | |
6329 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6330 | cat conftest.i conftest.i >conftest2.i | |
6331 | : ${lt_DD:=$DD} | |
6332 | if test -z "$lt_DD"; then | |
6333 | ac_path_lt_DD_found=false | |
6334 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6336 | for as_dir in $PATH | |
6337 | do | |
6338 | IFS=$as_save_IFS | |
6339 | test -z "$as_dir" && as_dir=. | |
6340 | for ac_prog in dd; do | |
6341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6342 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6343 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6344 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6345 | cmp -s conftest.i conftest.out \ | |
6346 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6347 | fi | |
6348 | $ac_path_lt_DD_found && break 3 | |
6349 | done | |
6350 | done | |
6351 | done | |
6352 | IFS=$as_save_IFS | |
6353 | if test -z "$ac_cv_path_lt_DD"; then | |
6354 | : | |
6355 | fi | |
6356 | else | |
6357 | ac_cv_path_lt_DD=$lt_DD | |
6358 | fi | |
6359 | ||
6360 | rm -f conftest.i conftest2.i conftest.out | |
6361 | fi | |
6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6363 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6364 | ||
6365 | ||
6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6367 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6368 | if ${lt_cv_truncate_bin+:} false; then : | |
6369 | $as_echo_n "(cached) " >&6 | |
6370 | else | |
6371 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6372 | cat conftest.i conftest.i >conftest2.i | |
6373 | lt_cv_truncate_bin= | |
6374 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6375 | cmp -s conftest.i conftest.out \ | |
6376 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6377 | fi | |
6378 | rm -f conftest.i conftest2.i conftest.out | |
6379 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6380 | fi | |
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6382 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6383 | ||
6384 | ||
6385 | ||
6386 | ||
6387 | ||
6388 | ||
6389 | ||
6390 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6391 | func_cc_basename () | |
6392 | { | |
6393 | for cc_temp in $*""; do | |
6394 | case $cc_temp in | |
6395 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6396 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6397 | \-*) ;; | |
6398 | *) break;; | |
6399 | esac | |
6400 | done | |
6401 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6402 | } | |
6403 | ||
8d138742 | 6404 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 6405 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 CE |
6406 | enableval=$enable_libtool_lock; |
6407 | fi | |
6408 | ||
d50284c4 | 6409 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
8d138742 CE |
6410 | |
6411 | # Some flags need to be propagated to the compiler or linker for good | |
6412 | # libtool support. | |
6413 | case $host in | |
6414 | ia64-*-hpux*) | |
d50284c4 CE |
6415 | # Find out what ABI is being produced by ac_compile, and set mode |
6416 | # options accordingly. | |
8d138742 | 6417 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6418 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6419 | (eval $ac_compile) 2>&5 |
6420 | ac_status=$? | |
b0322a85 CE |
6421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6422 | test $ac_status = 0; }; then | |
8d138742 CE |
6423 | case `/usr/bin/file conftest.$ac_objext` in |
6424 | *ELF-32*) | |
d50284c4 | 6425 | HPUX_IA64_MODE=32 |
8d138742 CE |
6426 | ;; |
6427 | *ELF-64*) | |
d50284c4 | 6428 | HPUX_IA64_MODE=64 |
8d138742 CE |
6429 | ;; |
6430 | esac | |
6431 | fi | |
6432 | rm -rf conftest* | |
6433 | ;; | |
6434 | *-*-irix6*) | |
d50284c4 CE |
6435 | # Find out what ABI is being produced by ac_compile, and set linker |
6436 | # options accordingly. | |
b0322a85 CE |
6437 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6438 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6439 | (eval $ac_compile) 2>&5 |
6440 | ac_status=$? | |
b0322a85 CE |
6441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6442 | test $ac_status = 0; }; then | |
d50284c4 | 6443 | if test yes = "$lt_cv_prog_gnu_ld"; then |
8d138742 CE |
6444 | case `/usr/bin/file conftest.$ac_objext` in |
6445 | *32-bit*) | |
6446 | LD="${LD-ld} -melf32bsmip" | |
6447 | ;; | |
6448 | *N32*) | |
6449 | LD="${LD-ld} -melf32bmipn32" | |
6450 | ;; | |
6451 | *64-bit*) | |
6452 | LD="${LD-ld} -melf64bmip" | |
6453 | ;; | |
6454 | esac | |
6455 | else | |
6456 | case `/usr/bin/file conftest.$ac_objext` in | |
6457 | *32-bit*) | |
6458 | LD="${LD-ld} -32" | |
6459 | ;; | |
6460 | *N32*) | |
6461 | LD="${LD-ld} -n32" | |
6462 | ;; | |
6463 | *64-bit*) | |
6464 | LD="${LD-ld} -64" | |
6465 | ;; | |
6466 | esac | |
6467 | fi | |
6468 | fi | |
6469 | rm -rf conftest* | |
6470 | ;; | |
6471 | ||
d50284c4 CE |
6472 | mips64*-*linux*) |
6473 | # Find out what ABI is being produced by ac_compile, and set linker | |
6474 | # options accordingly. | |
6475 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6476 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6477 | (eval $ac_compile) 2>&5 | |
6478 | ac_status=$? | |
6479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6480 | test $ac_status = 0; }; then | |
6481 | emul=elf | |
6482 | case `/usr/bin/file conftest.$ac_objext` in | |
6483 | *32-bit*) | |
6484 | emul="${emul}32" | |
6485 | ;; | |
6486 | *64-bit*) | |
6487 | emul="${emul}64" | |
6488 | ;; | |
6489 | esac | |
6490 | case `/usr/bin/file conftest.$ac_objext` in | |
6491 | *MSB*) | |
6492 | emul="${emul}btsmip" | |
6493 | ;; | |
6494 | *LSB*) | |
6495 | emul="${emul}ltsmip" | |
6496 | ;; | |
6497 | esac | |
6498 | case `/usr/bin/file conftest.$ac_objext` in | |
6499 | *N32*) | |
6500 | emul="${emul}n32" | |
6501 | ;; | |
6502 | esac | |
6503 | LD="${LD-ld} -m $emul" | |
6504 | fi | |
6505 | rm -rf conftest* | |
6506 | ;; | |
6507 | ||
6508 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8d138742 | 6509 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
d50284c4 CE |
6510 | # Find out what ABI is being produced by ac_compile, and set linker |
6511 | # options accordingly. Note that the listed cases only cover the | |
6512 | # situations where additional linker options are needed (such as when | |
6513 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6514 | # vice versa); the common cases where no linker options are needed do | |
6515 | # not appear in the list. | |
8d138742 | 6516 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6517 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6518 | (eval $ac_compile) 2>&5 |
6519 | ac_status=$? | |
b0322a85 CE |
6520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6521 | test $ac_status = 0; }; then | |
8d138742 CE |
6522 | case `/usr/bin/file conftest.o` in |
6523 | *32-bit*) | |
6524 | case $host in | |
6525 | x86_64-*kfreebsd*-gnu) | |
6526 | LD="${LD-ld} -m elf_i386_fbsd" | |
6527 | ;; | |
6528 | x86_64-*linux*) | |
d50284c4 CE |
6529 | case `/usr/bin/file conftest.o` in |
6530 | *x86-64*) | |
6531 | LD="${LD-ld} -m elf32_x86_64" | |
6532 | ;; | |
6533 | *) | |
6534 | LD="${LD-ld} -m elf_i386" | |
6535 | ;; | |
6536 | esac | |
8d138742 | 6537 | ;; |
d50284c4 CE |
6538 | powerpc64le-*linux*) |
6539 | LD="${LD-ld} -m elf32lppclinux" | |
6540 | ;; | |
6541 | powerpc64-*linux*) | |
8d138742 CE |
6542 | LD="${LD-ld} -m elf32ppclinux" |
6543 | ;; | |
6544 | s390x-*linux*) | |
6545 | LD="${LD-ld} -m elf_s390" | |
6546 | ;; | |
6547 | sparc64-*linux*) | |
6548 | LD="${LD-ld} -m elf32_sparc" | |
6549 | ;; | |
6550 | esac | |
6551 | ;; | |
6552 | *64-bit*) | |
6553 | case $host in | |
6554 | x86_64-*kfreebsd*-gnu) | |
6555 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6556 | ;; | |
6557 | x86_64-*linux*) | |
6558 | LD="${LD-ld} -m elf_x86_64" | |
6559 | ;; | |
d50284c4 CE |
6560 | powerpcle-*linux*) |
6561 | LD="${LD-ld} -m elf64lppc" | |
6562 | ;; | |
6563 | powerpc-*linux*) | |
8d138742 CE |
6564 | LD="${LD-ld} -m elf64ppc" |
6565 | ;; | |
6566 | s390*-*linux*|s390*-*tpf*) | |
6567 | LD="${LD-ld} -m elf64_s390" | |
6568 | ;; | |
6569 | sparc*-*linux*) | |
6570 | LD="${LD-ld} -m elf64_sparc" | |
6571 | ;; | |
6572 | esac | |
6573 | ;; | |
6574 | esac | |
6575 | fi | |
6576 | rm -rf conftest* | |
6577 | ;; | |
6578 | ||
6579 | *-*-sco3.2v5*) | |
6580 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
d50284c4 | 6581 | SAVE_CFLAGS=$CFLAGS |
8d138742 | 6582 | CFLAGS="$CFLAGS -belf" |
b0322a85 | 6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 6584 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 6585 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 CE |
6586 | $as_echo_n "(cached) " >&6 |
6587 | else | |
6588 | ac_ext=c | |
6589 | ac_cpp='$CPP $CPPFLAGS' | |
6590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6593 | ||
b0322a85 | 6594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
6595 | /* end confdefs.h. */ |
6596 | ||
6597 | int | |
6598 | main () | |
6599 | { | |
6600 | ||
6601 | ; | |
6602 | return 0; | |
6603 | } | |
6604 | _ACEOF | |
b0322a85 | 6605 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
6606 | lt_cv_cc_needs_belf=yes |
6607 | else | |
b0322a85 | 6608 | lt_cv_cc_needs_belf=no |
8d138742 | 6609 | fi |
b0322a85 CE |
6610 | rm -f core conftest.err conftest.$ac_objext \ |
6611 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
6612 | ac_ext=c |
6613 | ac_cpp='$CPP $CPPFLAGS' | |
6614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6617 | ||
6618 | fi | |
b0322a85 | 6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 | 6620 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
d50284c4 | 6621 | if test yes != "$lt_cv_cc_needs_belf"; then |
8d138742 | 6622 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
d50284c4 | 6623 | CFLAGS=$SAVE_CFLAGS |
8d138742 CE |
6624 | fi |
6625 | ;; | |
b0322a85 | 6626 | *-*solaris*) |
d50284c4 CE |
6627 | # Find out what ABI is being produced by ac_compile, and set linker |
6628 | # options accordingly. | |
8d138742 | 6629 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6630 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6631 | (eval $ac_compile) 2>&5 |
6632 | ac_status=$? | |
b0322a85 CE |
6633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6634 | test $ac_status = 0; }; then | |
8d138742 CE |
6635 | case `/usr/bin/file conftest.o` in |
6636 | *64-bit*) | |
6637 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
6638 | yes*) |
6639 | case $host in | |
d50284c4 | 6640 | i?86-*-solaris*|x86_64-*-solaris*) |
b0322a85 CE |
6641 | LD="${LD-ld} -m elf_x86_64" |
6642 | ;; | |
6643 | sparc*-*-solaris*) | |
6644 | LD="${LD-ld} -m elf64_sparc" | |
6645 | ;; | |
6646 | esac | |
6647 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6648 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
d50284c4 | 6649 | LD=${LD-ld}_sol2 |
b0322a85 CE |
6650 | fi |
6651 | ;; | |
8d138742 CE |
6652 | *) |
6653 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6654 | LD="${LD-ld} -64" | |
6655 | fi | |
6656 | ;; | |
6657 | esac | |
6658 | ;; | |
6659 | esac | |
6660 | fi | |
6661 | rm -rf conftest* | |
6662 | ;; | |
6663 | esac | |
6664 | ||
d50284c4 | 6665 | need_locks=$enable_libtool_lock |
8d138742 | 6666 | |
b0322a85 CE |
6667 | if test -n "$ac_tool_prefix"; then |
6668 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6669 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6671 | $as_echo_n "checking for $ac_word... " >&6; } | |
6672 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6673 | $as_echo_n "(cached) " >&6 | |
6674 | else | |
6675 | if test -n "$MANIFEST_TOOL"; then | |
6676 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6677 | else | |
6678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6679 | for as_dir in $PATH | |
6680 | do | |
6681 | IFS=$as_save_IFS | |
6682 | test -z "$as_dir" && as_dir=. | |
6683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6684 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6685 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6687 | break 2 | |
6688 | fi | |
6689 | done | |
6690 | done | |
6691 | IFS=$as_save_IFS | |
6692 | ||
6693 | fi | |
6694 | fi | |
6695 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6696 | if test -n "$MANIFEST_TOOL"; then | |
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6698 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6699 | else | |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6701 | $as_echo "no" >&6; } | |
6702 | fi | |
6703 | ||
6704 | ||
6705 | fi | |
6706 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6707 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6708 | # Extract the first word of "mt", so it can be a program name with args. | |
6709 | set dummy mt; ac_word=$2 | |
6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6711 | $as_echo_n "checking for $ac_word... " >&6; } | |
6712 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6713 | $as_echo_n "(cached) " >&6 | |
6714 | else | |
6715 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6716 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6717 | else | |
6718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6719 | for as_dir in $PATH | |
6720 | do | |
6721 | IFS=$as_save_IFS | |
6722 | test -z "$as_dir" && as_dir=. | |
6723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6725 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6727 | break 2 | |
6728 | fi | |
6729 | done | |
6730 | done | |
6731 | IFS=$as_save_IFS | |
6732 | ||
6733 | fi | |
6734 | fi | |
6735 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6736 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6738 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6739 | else | |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6741 | $as_echo "no" >&6; } | |
6742 | fi | |
6743 | ||
6744 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6745 | MANIFEST_TOOL=":" | |
6746 | else | |
6747 | case $cross_compiling:$ac_tool_warned in | |
6748 | yes:) | |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6750 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6751 | ac_tool_warned=yes ;; | |
6752 | esac | |
6753 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6754 | fi | |
6755 | else | |
6756 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6757 | fi | |
6758 | ||
6759 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6761 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6762 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6763 | $as_echo_n "(cached) " >&6 | |
6764 | else | |
6765 | lt_cv_path_mainfest_tool=no | |
6766 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6767 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6768 | cat conftest.err >&5 | |
6769 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6770 | lt_cv_path_mainfest_tool=yes | |
6771 | fi | |
6772 | rm -f conftest* | |
6773 | fi | |
6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6775 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
d50284c4 | 6776 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b0322a85 CE |
6777 | MANIFEST_TOOL=: |
6778 | fi | |
6779 | ||
6780 | ||
6781 | ||
6782 | ||
6783 | ||
8d138742 CE |
6784 | |
6785 | case $host_os in | |
6786 | rhapsody* | darwin*) | |
6787 | if test -n "$ac_tool_prefix"; then | |
6788 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6789 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 6790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6791 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6792 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 | 6793 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6794 | else |
8d138742 CE |
6795 | if test -n "$DSYMUTIL"; then |
6796 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
d9898ee8 | 6797 | else |
6798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6799 | for as_dir in $PATH | |
6800 | do | |
6801 | IFS=$as_save_IFS | |
6802 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6803 | for ac_exec_ext in '' $ac_executable_extensions; do |
6804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6805 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 6806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6807 | break 2 |
6808 | fi | |
6809 | done | |
b0322a85 | 6810 | done |
dd184caf | 6811 | IFS=$as_save_IFS |
d9898ee8 | 6812 | |
6813 | fi | |
6814 | fi | |
8d138742 CE |
6815 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6816 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 | 6818 | $as_echo "$DSYMUTIL" >&6; } |
d9898ee8 | 6819 | else |
b0322a85 | 6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6821 | $as_echo "no" >&6; } |
d9898ee8 | 6822 | fi |
6823 | ||
dd184caf | 6824 | |
d9898ee8 | 6825 | fi |
8d138742 CE |
6826 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
6827 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6828 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6829 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6831 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6832 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 | 6833 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6834 | else |
8d138742 CE |
6835 | if test -n "$ac_ct_DSYMUTIL"; then |
6836 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
d9898ee8 | 6837 | else |
6838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6839 | for as_dir in $PATH | |
6840 | do | |
6841 | IFS=$as_save_IFS | |
6842 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6843 | for ac_exec_ext in '' $ac_executable_extensions; do |
6844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6845 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 6846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6847 | break 2 |
6848 | fi | |
6849 | done | |
b0322a85 | 6850 | done |
dd184caf | 6851 | IFS=$as_save_IFS |
d9898ee8 | 6852 | |
6853 | fi | |
6854 | fi | |
8d138742 CE |
6855 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6856 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 | 6858 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
d9898ee8 | 6859 | else |
b0322a85 | 6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6861 | $as_echo "no" >&6; } |
d9898ee8 | 6862 | fi |
6863 | ||
8d138742 CE |
6864 | if test "x$ac_ct_DSYMUTIL" = x; then |
6865 | DSYMUTIL=":" | |
dd184caf | 6866 | else |
6867 | case $cross_compiling:$ac_tool_warned in | |
6868 | yes:) | |
b0322a85 | 6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6870 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6871 | ac_tool_warned=yes ;; |
6872 | esac | |
8d138742 | 6873 | DSYMUTIL=$ac_ct_DSYMUTIL |
dd184caf | 6874 | fi |
8d138742 CE |
6875 | else |
6876 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
d9898ee8 | 6877 | fi |
6878 | ||
8d138742 CE |
6879 | if test -n "$ac_tool_prefix"; then |
6880 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6881 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6883 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6884 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 | 6885 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6886 | else |
8d138742 CE |
6887 | if test -n "$NMEDIT"; then |
6888 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d9898ee8 | 6889 | else |
8d138742 CE |
6890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6891 | for as_dir in $PATH | |
6892 | do | |
6893 | IFS=$as_save_IFS | |
6894 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6895 | for ac_exec_ext in '' $ac_executable_extensions; do |
6896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6897 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 6898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6899 | break 2 |
6900 | fi | |
6901 | done | |
b0322a85 | 6902 | done |
8d138742 | 6903 | IFS=$as_save_IFS |
d9898ee8 | 6904 | |
8d138742 CE |
6905 | fi |
6906 | fi | |
6907 | NMEDIT=$ac_cv_prog_NMEDIT | |
6908 | if test -n "$NMEDIT"; then | |
b0322a85 | 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 CE |
6910 | $as_echo "$NMEDIT" >&6; } |
6911 | else | |
b0322a85 | 6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6913 | $as_echo "no" >&6; } |
d9898ee8 | 6914 | fi |
dd184caf | 6915 | |
d9898ee8 | 6916 | |
6917 | fi | |
8d138742 CE |
6918 | if test -z "$ac_cv_prog_NMEDIT"; then |
6919 | ac_ct_NMEDIT=$NMEDIT | |
6920 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6921 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 6922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6923 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6924 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 | 6925 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6926 | else |
8d138742 CE |
6927 | if test -n "$ac_ct_NMEDIT"; then |
6928 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6929 | else | |
6930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6931 | for as_dir in $PATH | |
6932 | do | |
6933 | IFS=$as_save_IFS | |
6934 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6935 | for ac_exec_ext in '' $ac_executable_extensions; do |
6936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6937 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 6938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6939 | break 2 |
6940 | fi | |
6941 | done | |
b0322a85 | 6942 | done |
8d138742 | 6943 | IFS=$as_save_IFS |
d9898ee8 | 6944 | |
8d138742 CE |
6945 | fi |
6946 | fi | |
6947 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6948 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 CE |
6950 | $as_echo "$ac_ct_NMEDIT" >&6; } |
6951 | else | |
b0322a85 | 6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6953 | $as_echo "no" >&6; } |
6954 | fi | |
6955 | ||
6956 | if test "x$ac_ct_NMEDIT" = x; then | |
6957 | NMEDIT=":" | |
6958 | else | |
6959 | case $cross_compiling:$ac_tool_warned in | |
6960 | yes:) | |
b0322a85 | 6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6962 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6963 | ac_tool_warned=yes ;; | |
dd184caf | 6964 | esac |
8d138742 CE |
6965 | NMEDIT=$ac_ct_NMEDIT |
6966 | fi | |
d9898ee8 | 6967 | else |
8d138742 CE |
6968 | NMEDIT="$ac_cv_prog_NMEDIT" |
6969 | fi | |
6970 | ||
6971 | if test -n "$ac_tool_prefix"; then | |
6972 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6973 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6975 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6976 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 CE |
6977 | $as_echo_n "(cached) " >&6 |
6978 | else | |
6979 | if test -n "$LIPO"; then | |
6980 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6981 | else | |
6982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6983 | for as_dir in $PATH | |
6984 | do | |
6985 | IFS=$as_save_IFS | |
6986 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6987 | for ac_exec_ext in '' $ac_executable_extensions; do |
6988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6989 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 6990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6991 | break 2 |
6992 | fi | |
6993 | done | |
b0322a85 | 6994 | done |
8d138742 | 6995 | IFS=$as_save_IFS |
d9898ee8 | 6996 | |
8d138742 CE |
6997 | fi |
6998 | fi | |
6999 | LIPO=$ac_cv_prog_LIPO | |
7000 | if test -n "$LIPO"; then | |
b0322a85 | 7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 CE |
7002 | $as_echo "$LIPO" >&6; } |
7003 | else | |
b0322a85 | 7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7005 | $as_echo "no" >&6; } |
d9898ee8 | 7006 | fi |
dd184caf | 7007 | |
d9898ee8 | 7008 | |
7009 | fi | |
8d138742 CE |
7010 | if test -z "$ac_cv_prog_LIPO"; then |
7011 | ac_ct_LIPO=$LIPO | |
7012 | # Extract the first word of "lipo", so it can be a program name with args. | |
7013 | set dummy lipo; ac_word=$2 | |
b0322a85 | 7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7015 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7016 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 CE |
7017 | $as_echo_n "(cached) " >&6 |
7018 | else | |
7019 | if test -n "$ac_ct_LIPO"; then | |
7020 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7021 | else | |
7022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7023 | for as_dir in $PATH | |
7024 | do | |
7025 | IFS=$as_save_IFS | |
7026 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7027 | for ac_exec_ext in '' $ac_executable_extensions; do |
7028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7029 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 7030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 7031 | break 2 |
d9898ee8 | 7032 | fi |
8d138742 | 7033 | done |
b0322a85 | 7034 | done |
8d138742 CE |
7035 | IFS=$as_save_IFS |
7036 | ||
7037 | fi | |
7038 | fi | |
7039 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7040 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 7042 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 7043 | else |
b0322a85 | 7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7045 | $as_echo "no" >&6; } |
7046 | fi | |
7047 | ||
7048 | if test "x$ac_ct_LIPO" = x; then | |
7049 | LIPO=":" | |
d9898ee8 | 7050 | else |
8d138742 CE |
7051 | case $cross_compiling:$ac_tool_warned in |
7052 | yes:) | |
b0322a85 | 7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7054 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7055 | ac_tool_warned=yes ;; | |
7056 | esac | |
7057 | LIPO=$ac_ct_LIPO | |
d9898ee8 | 7058 | fi |
8d138742 CE |
7059 | else |
7060 | LIPO="$ac_cv_prog_LIPO" | |
d9898ee8 | 7061 | fi |
7062 | ||
8d138742 CE |
7063 | if test -n "$ac_tool_prefix"; then |
7064 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7065 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 7066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7067 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7068 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 CE |
7069 | $as_echo_n "(cached) " >&6 |
7070 | else | |
7071 | if test -n "$OTOOL"; then | |
7072 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7073 | else | |
7074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7075 | for as_dir in $PATH | |
7076 | do | |
7077 | IFS=$as_save_IFS | |
7078 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7079 | for ac_exec_ext in '' $ac_executable_extensions; do |
7080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7081 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 7082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7083 | break 2 |
7084 | fi | |
7085 | done | |
b0322a85 | 7086 | done |
8d138742 | 7087 | IFS=$as_save_IFS |
d9898ee8 | 7088 | |
8d138742 CE |
7089 | fi |
7090 | fi | |
7091 | OTOOL=$ac_cv_prog_OTOOL | |
7092 | if test -n "$OTOOL"; then | |
b0322a85 | 7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 CE |
7094 | $as_echo "$OTOOL" >&6; } |
7095 | else | |
b0322a85 | 7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7097 | $as_echo "no" >&6; } |
7098 | fi | |
d9898ee8 | 7099 | |
7100 | ||
8d138742 CE |
7101 | fi |
7102 | if test -z "$ac_cv_prog_OTOOL"; then | |
7103 | ac_ct_OTOOL=$OTOOL | |
7104 | # Extract the first word of "otool", so it can be a program name with args. | |
7105 | set dummy otool; ac_word=$2 | |
b0322a85 | 7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7107 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7108 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 CE |
7109 | $as_echo_n "(cached) " >&6 |
7110 | else | |
7111 | if test -n "$ac_ct_OTOOL"; then | |
7112 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7113 | else | |
7114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7115 | for as_dir in $PATH | |
7116 | do | |
7117 | IFS=$as_save_IFS | |
7118 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7119 | for ac_exec_ext in '' $ac_executable_extensions; do |
7120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7121 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 7122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7123 | break 2 |
7124 | fi | |
7125 | done | |
b0322a85 | 7126 | done |
8d138742 | 7127 | IFS=$as_save_IFS |
d9898ee8 | 7128 | |
8d138742 CE |
7129 | fi |
7130 | fi | |
7131 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7132 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 7134 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 7135 | else |
b0322a85 | 7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7137 | $as_echo "no" >&6; } |
7138 | fi | |
d9898ee8 | 7139 | |
8d138742 CE |
7140 | if test "x$ac_ct_OTOOL" = x; then |
7141 | OTOOL=":" | |
7142 | else | |
7143 | case $cross_compiling:$ac_tool_warned in | |
7144 | yes:) | |
b0322a85 | 7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7146 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7147 | ac_tool_warned=yes ;; | |
7148 | esac | |
7149 | OTOOL=$ac_ct_OTOOL | |
7150 | fi | |
7151 | else | |
7152 | OTOOL="$ac_cv_prog_OTOOL" | |
7153 | fi | |
d9898ee8 | 7154 | |
8d138742 CE |
7155 | if test -n "$ac_tool_prefix"; then |
7156 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7157 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7159 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7160 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 CE |
7161 | $as_echo_n "(cached) " >&6 |
7162 | else | |
7163 | if test -n "$OTOOL64"; then | |
7164 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7165 | else | |
7166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7167 | for as_dir in $PATH | |
7168 | do | |
7169 | IFS=$as_save_IFS | |
7170 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7171 | for ac_exec_ext in '' $ac_executable_extensions; do |
7172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7173 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 7174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7175 | break 2 |
7176 | fi | |
7177 | done | |
b0322a85 | 7178 | done |
8d138742 | 7179 | IFS=$as_save_IFS |
d9898ee8 | 7180 | |
8d138742 CE |
7181 | fi |
7182 | fi | |
7183 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7184 | if test -n "$OTOOL64"; then | |
b0322a85 | 7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 CE |
7186 | $as_echo "$OTOOL64" >&6; } |
7187 | else | |
b0322a85 | 7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7189 | $as_echo "no" >&6; } |
7190 | fi | |
d9898ee8 | 7191 | |
d9898ee8 | 7192 | |
8d138742 CE |
7193 | fi |
7194 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7195 | ac_ct_OTOOL64=$OTOOL64 | |
7196 | # Extract the first word of "otool64", so it can be a program name with args. | |
7197 | set dummy otool64; ac_word=$2 | |
b0322a85 | 7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7199 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7200 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 CE |
7201 | $as_echo_n "(cached) " >&6 |
7202 | else | |
7203 | if test -n "$ac_ct_OTOOL64"; then | |
7204 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7205 | else | |
7206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7207 | for as_dir in $PATH | |
7208 | do | |
7209 | IFS=$as_save_IFS | |
7210 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7211 | for ac_exec_ext in '' $ac_executable_extensions; do |
7212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7213 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 7214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7215 | break 2 |
7216 | fi | |
7217 | done | |
b0322a85 | 7218 | done |
8d138742 | 7219 | IFS=$as_save_IFS |
d9898ee8 | 7220 | |
8d138742 CE |
7221 | fi |
7222 | fi | |
7223 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7224 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 CE |
7226 | $as_echo "$ac_ct_OTOOL64" >&6; } |
7227 | else | |
b0322a85 | 7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7229 | $as_echo "no" >&6; } |
d9898ee8 | 7230 | fi |
7231 | ||
8d138742 CE |
7232 | if test "x$ac_ct_OTOOL64" = x; then |
7233 | OTOOL64=":" | |
7234 | else | |
7235 | case $cross_compiling:$ac_tool_warned in | |
7236 | yes:) | |
b0322a85 | 7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7238 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7239 | ac_tool_warned=yes ;; | |
7240 | esac | |
7241 | OTOOL64=$ac_ct_OTOOL64 | |
7242 | fi | |
d9898ee8 | 7243 | else |
8d138742 | 7244 | OTOOL64="$ac_cv_prog_OTOOL64" |
d9898ee8 | 7245 | fi |
7246 | ||
7247 | ||
7248 | ||
7249 | ||
ac40fd9e | 7250 | |
d9898ee8 | 7251 | |
d9898ee8 | 7252 | |
d9898ee8 | 7253 | |
d9898ee8 | 7254 | |
d9898ee8 | 7255 | |
d9898ee8 | 7256 | |
d9898ee8 | 7257 | |
d9898ee8 | 7258 | |
d9898ee8 | 7259 | |
d9898ee8 | 7260 | |
d9898ee8 | 7261 | |
d9898ee8 | 7262 | |
d9898ee8 | 7263 | |
d9898ee8 | 7264 | |
d9898ee8 | 7265 | |
d9898ee8 | 7266 | |
d9898ee8 | 7267 | |
d9898ee8 | 7268 | |
d9898ee8 | 7269 | |
8d138742 CE |
7270 | |
7271 | ||
7272 | ||
b0322a85 | 7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 7274 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 7275 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 CE |
7276 | $as_echo_n "(cached) " >&6 |
7277 | else | |
7278 | lt_cv_apple_cc_single_mod=no | |
d50284c4 | 7279 | if test -z "$LT_MULTI_MODULE"; then |
8d138742 CE |
7280 | # By default we will add the -single_module flag. You can override |
7281 | # by either setting the environment variable LT_MULTI_MODULE | |
7282 | # non-empty at configure time, or by adding -multi_module to the | |
7283 | # link flags. | |
7284 | rm -rf libconftest.dylib* | |
7285 | echo "int foo(void){return 1;}" > conftest.c | |
7286 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7287 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7288 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7289 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7290 | _lt_result=$? | |
b0322a85 CE |
7291 | # If there is a non-empty error log, and "single_module" |
7292 | # appears in it, assume the flag caused a linker warning | |
7293 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7294 | cat conftest.err >&5 | |
7295 | # Otherwise, if the output was created with a 0 exit code from | |
7296 | # the compiler, it worked. | |
d50284c4 | 7297 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
8d138742 | 7298 | lt_cv_apple_cc_single_mod=yes |
d9898ee8 | 7299 | else |
8d138742 | 7300 | cat conftest.err >&5 |
d9898ee8 | 7301 | fi |
8d138742 CE |
7302 | rm -rf libconftest.dylib* |
7303 | rm -f conftest.* | |
d9898ee8 | 7304 | fi |
d9898ee8 | 7305 | fi |
b0322a85 | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 7307 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
7308 | |
7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 7310 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 7311 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
7312 | $as_echo_n "(cached) " >&6 |
7313 | else | |
7314 | lt_cv_ld_exported_symbols_list=no | |
7315 | save_LDFLAGS=$LDFLAGS | |
7316 | echo "_main" > conftest.sym | |
7317 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 7318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 7319 | /* end confdefs.h. */ |
d9898ee8 | 7320 | |
8d138742 CE |
7321 | int |
7322 | main () | |
7323 | { | |
7324 | ||
7325 | ; | |
7326 | return 0; | |
7327 | } | |
7328 | _ACEOF | |
b0322a85 | 7329 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 7330 | lt_cv_ld_exported_symbols_list=yes |
d9898ee8 | 7331 | else |
b0322a85 | 7332 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 7333 | fi |
b0322a85 CE |
7334 | rm -f core conftest.err conftest.$ac_objext \ |
7335 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 7336 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 7337 | |
8d138742 | 7338 | fi |
b0322a85 | 7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 7340 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
7341 | |
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7343 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7344 | if ${lt_cv_ld_force_load+:} false; then : | |
7345 | $as_echo_n "(cached) " >&6 | |
7346 | else | |
7347 | lt_cv_ld_force_load=no | |
7348 | cat > conftest.c << _LT_EOF | |
7349 | int forced_loaded() { return 2;} | |
7350 | _LT_EOF | |
7351 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7352 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7353 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7354 | $AR cru libconftest.a conftest.o 2>&5 | |
7355 | echo "$RANLIB libconftest.a" >&5 | |
7356 | $RANLIB libconftest.a 2>&5 | |
7357 | cat > conftest.c << _LT_EOF | |
7358 | int main() { return 0;} | |
7359 | _LT_EOF | |
7360 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7361 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7362 | _lt_result=$? | |
7363 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7364 | cat conftest.err >&5 | |
d50284c4 | 7365 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b0322a85 CE |
7366 | lt_cv_ld_force_load=yes |
7367 | else | |
7368 | cat conftest.err >&5 | |
7369 | fi | |
7370 | rm -f conftest.err libconftest.a conftest conftest.c | |
7371 | rm -rf conftest.dSYM | |
7372 | ||
7373 | fi | |
7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7375 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8d138742 CE |
7376 | case $host_os in |
7377 | rhapsody* | darwin1.[012]) | |
d50284c4 | 7378 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
8d138742 | 7379 | darwin1.*) |
d50284c4 | 7380 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
8d138742 CE |
7381 | darwin*) # darwin 5.x on |
7382 | # if running on 10.5 or later, the deployment target defaults | |
7383 | # to the OS version, if on x86, and 10.4, the deployment | |
7384 | # target defaults to 10.4. Don't you love it? | |
7385 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7386 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
d50284c4 CE |
7387 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7388 | 10.[012][,.]*) | |
7389 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8d138742 | 7390 | 10.*) |
d50284c4 | 7391 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8d138742 CE |
7392 | esac |
7393 | ;; | |
7394 | esac | |
d50284c4 | 7395 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
8d138742 CE |
7396 | _lt_dar_single_mod='$single_module' |
7397 | fi | |
d50284c4 CE |
7398 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7399 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8d138742 | 7400 | else |
d50284c4 | 7401 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
8d138742 | 7402 | fi |
d50284c4 | 7403 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
8d138742 CE |
7404 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7405 | else | |
7406 | _lt_dsymutil= | |
7407 | fi | |
7408 | ;; | |
7409 | esac | |
d9898ee8 | 7410 | |
d50284c4 CE |
7411 | # func_munge_path_list VARIABLE PATH |
7412 | # ----------------------------------- | |
7413 | # VARIABLE is name of variable containing _space_ separated list of | |
7414 | # directories to be munged by the contents of PATH, which is string | |
7415 | # having a format: | |
7416 | # "DIR[:DIR]:" | |
7417 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7418 | # ":DIR[:DIR]" | |
7419 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7420 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7421 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7422 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7423 | # "DIR[:DIR]" | |
7424 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7425 | func_munge_path_list () | |
7426 | { | |
7427 | case x$2 in | |
7428 | x) | |
7429 | ;; | |
7430 | *:) | |
7431 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7432 | ;; | |
7433 | x:*) | |
7434 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7435 | ;; | |
7436 | *::*) | |
7437 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7438 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7439 | ;; | |
7440 | *) | |
7441 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7442 | ;; | |
7443 | esac | |
7444 | } | |
7445 | ||
8d138742 CE |
7446 | ac_ext=c |
7447 | ac_cpp='$CPP $CPPFLAGS' | |
7448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 CE |
7452 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
7453 | # On Suns, sometimes $CPP names a directory. | |
7454 | if test -n "$CPP" && test -d "$CPP"; then | |
7455 | CPP= | |
7456 | fi | |
7457 | if test -z "$CPP"; then | |
b0322a85 | 7458 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 CE |
7459 | $as_echo_n "(cached) " >&6 |
7460 | else | |
7461 | # Double quotes because CPP needs to be expanded | |
7462 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7463 | do | |
7464 | ac_preproc_ok=false | |
7465 | for ac_c_preproc_warn_flag in '' yes | |
7466 | do | |
7467 | # Use a header file that comes with gcc, so configuring glibc | |
7468 | # with a fresh cross-compiler works. | |
7469 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7470 | # <limits.h> exists even on freestanding compilers. | |
7471 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7472 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7474 | /* end confdefs.h. */ |
7475 | #ifdef __STDC__ | |
7476 | # include <limits.h> | |
7477 | #else | |
7478 | # include <assert.h> | |
7479 | #endif | |
7480 | Syntax error | |
7481 | _ACEOF | |
b0322a85 | 7482 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7483 | |
b0322a85 | 7484 | else |
8d138742 CE |
7485 | # Broken: fails on valid input. |
7486 | continue | |
7487 | fi | |
b0322a85 | 7488 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7489 | |
8d138742 CE |
7490 | # OK, works on sane cases. Now check whether nonexistent headers |
7491 | # can be detected and how. | |
b0322a85 | 7492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7493 | /* end confdefs.h. */ |
7494 | #include <ac_nonexistent.h> | |
7495 | _ACEOF | |
b0322a85 | 7496 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7497 | # Broken: success on invalid input. |
7498 | continue | |
d9898ee8 | 7499 | else |
8d138742 CE |
7500 | # Passes both tests. |
7501 | ac_preproc_ok=: | |
7502 | break | |
d9898ee8 | 7503 | fi |
b0322a85 | 7504 | rm -f conftest.err conftest.i conftest.$ac_ext |
dd184caf | 7505 | |
d9898ee8 | 7506 | done |
8d138742 | 7507 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
b0322a85 CE |
7508 | rm -f conftest.i conftest.err conftest.$ac_ext |
7509 | if $ac_preproc_ok; then : | |
8d138742 | 7510 | break |
d9898ee8 | 7511 | fi |
8d138742 CE |
7512 | |
7513 | done | |
7514 | ac_cv_prog_CPP=$CPP | |
7515 | ||
d9898ee8 | 7516 | fi |
8d138742 | 7517 | CPP=$ac_cv_prog_CPP |
d9898ee8 | 7518 | else |
8d138742 | 7519 | ac_cv_prog_CPP=$CPP |
d9898ee8 | 7520 | fi |
b0322a85 | 7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 CE |
7522 | $as_echo "$CPP" >&6; } |
7523 | ac_preproc_ok=false | |
7524 | for ac_c_preproc_warn_flag in '' yes | |
7525 | do | |
7526 | # Use a header file that comes with gcc, so configuring glibc | |
7527 | # with a fresh cross-compiler works. | |
7528 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7529 | # <limits.h> exists even on freestanding compilers. | |
7530 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7531 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7533 | /* end confdefs.h. */ |
7534 | #ifdef __STDC__ | |
7535 | # include <limits.h> | |
7536 | #else | |
7537 | # include <assert.h> | |
7538 | #endif | |
7539 | Syntax error | |
7540 | _ACEOF | |
b0322a85 | 7541 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 | 7542 | |
b0322a85 | 7543 | else |
8d138742 CE |
7544 | # Broken: fails on valid input. |
7545 | continue | |
d9898ee8 | 7546 | fi |
b0322a85 | 7547 | rm -f conftest.err conftest.i conftest.$ac_ext |
8d138742 CE |
7548 | |
7549 | # OK, works on sane cases. Now check whether nonexistent headers | |
7550 | # can be detected and how. | |
b0322a85 | 7551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7552 | /* end confdefs.h. */ |
7553 | #include <ac_nonexistent.h> | |
7554 | _ACEOF | |
b0322a85 | 7555 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7556 | # Broken: success on invalid input. |
7557 | continue | |
d9898ee8 | 7558 | else |
8d138742 CE |
7559 | # Passes both tests. |
7560 | ac_preproc_ok=: | |
7561 | break | |
d9898ee8 | 7562 | fi |
b0322a85 | 7563 | rm -f conftest.err conftest.i conftest.$ac_ext |
8d138742 CE |
7564 | |
7565 | done | |
7566 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7567 | rm -f conftest.i conftest.err conftest.$ac_ext |
7568 | if $ac_preproc_ok; then : | |
7569 | ||
d9898ee8 | 7570 | else |
b0322a85 | 7571 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 7572 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
7573 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7574 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 7575 | fi |
7576 | ||
8d138742 CE |
7577 | ac_ext=c |
7578 | ac_cpp='$CPP $CPPFLAGS' | |
7579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
dd184caf | 7582 | |
d9898ee8 | 7583 | |
b0322a85 | 7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7585 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7586 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 | 7587 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7588 | else |
b0322a85 | 7589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7590 | /* end confdefs.h. */ |
7591 | #include <stdlib.h> | |
7592 | #include <stdarg.h> | |
7593 | #include <string.h> | |
7594 | #include <float.h> | |
d9898ee8 | 7595 | |
8d138742 CE |
7596 | int |
7597 | main () | |
7598 | { | |
7599 | ||
7600 | ; | |
7601 | return 0; | |
7602 | } | |
7603 | _ACEOF | |
b0322a85 | 7604 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 7605 | ac_cv_header_stdc=yes |
d9898ee8 | 7606 | else |
b0322a85 | 7607 | ac_cv_header_stdc=no |
d9898ee8 | 7608 | fi |
8d138742 | 7609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7610 | |
8d138742 CE |
7611 | if test $ac_cv_header_stdc = yes; then |
7612 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7614 | /* end confdefs.h. */ |
7615 | #include <string.h> | |
7616 | ||
7617 | _ACEOF | |
7618 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7619 | $EGREP "memchr" >/dev/null 2>&1; then : |
7620 | ||
d9898ee8 | 7621 | else |
8d138742 | 7622 | ac_cv_header_stdc=no |
d9898ee8 | 7623 | fi |
8d138742 | 7624 | rm -f conftest* |
dd184caf | 7625 | |
d9898ee8 | 7626 | fi |
d9898ee8 | 7627 | |
8d138742 CE |
7628 | if test $ac_cv_header_stdc = yes; then |
7629 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7631 | /* end confdefs.h. */ |
7632 | #include <stdlib.h> | |
d9898ee8 | 7633 | |
8d138742 CE |
7634 | _ACEOF |
7635 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7636 | $EGREP "free" >/dev/null 2>&1; then : |
7637 | ||
d9898ee8 | 7638 | else |
8d138742 | 7639 | ac_cv_header_stdc=no |
d9898ee8 | 7640 | fi |
8d138742 | 7641 | rm -f conftest* |
d9898ee8 | 7642 | |
8d138742 | 7643 | fi |
d9898ee8 | 7644 | |
8d138742 CE |
7645 | if test $ac_cv_header_stdc = yes; then |
7646 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7647 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
7648 | : |
7649 | else | |
b0322a85 | 7650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7651 | /* end confdefs.h. */ |
7652 | #include <ctype.h> | |
7653 | #include <stdlib.h> | |
7654 | #if ((' ' & 0x0FF) == 0x020) | |
7655 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7656 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7657 | #else | |
7658 | # define ISLOWER(c) \ | |
7659 | (('a' <= (c) && (c) <= 'i') \ | |
7660 | || ('j' <= (c) && (c) <= 'r') \ | |
7661 | || ('s' <= (c) && (c) <= 'z')) | |
7662 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7663 | #endif | |
d9898ee8 | 7664 | |
8d138742 | 7665 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b0322a85 CE |
7666 | int |
7667 | main () | |
7668 | { | |
7669 | int i; | |
7670 | for (i = 0; i < 256; i++) | |
7671 | if (XOR (islower (i), ISLOWER (i)) | |
7672 | || toupper (i) != TOUPPER (i)) | |
7673 | return 2; | |
7674 | return 0; | |
7675 | } | |
7676 | _ACEOF | |
7677 | if ac_fn_c_try_run "$LINENO"; then : | |
d9898ee8 | 7678 | |
b0322a85 CE |
7679 | else |
7680 | ac_cv_header_stdc=no | |
8d138742 | 7681 | fi |
b0322a85 CE |
7682 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7683 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 7684 | fi |
7685 | ||
d9898ee8 | 7686 | fi |
8d138742 | 7687 | fi |
b0322a85 | 7688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
7689 | $as_echo "$ac_cv_header_stdc" >&6; } |
7690 | if test $ac_cv_header_stdc = yes; then | |
7691 | ||
b0322a85 | 7692 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 7693 | |
d9898ee8 | 7694 | fi |
7695 | ||
8d138742 | 7696 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8d138742 CE |
7697 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7698 | inttypes.h stdint.h unistd.h | |
b0322a85 CE |
7699 | do : |
7700 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7701 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7702 | " | |
7703 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7704 | cat >>confdefs.h <<_ACEOF |
7705 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7706 | _ACEOF | |
d9898ee8 | 7707 | |
8d138742 | 7708 | fi |
d9898ee8 | 7709 | |
8d138742 | 7710 | done |
d9898ee8 | 7711 | |
d9898ee8 | 7712 | |
8d138742 | 7713 | for ac_header in dlfcn.h |
b0322a85 CE |
7714 | do : |
7715 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7716 | " | |
7717 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 7718 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 7719 | #define HAVE_DLFCN_H 1 |
8d138742 | 7720 | _ACEOF |
d9898ee8 | 7721 | |
8d138742 | 7722 | fi |
d9898ee8 | 7723 | |
8d138742 | 7724 | done |
d9898ee8 | 7725 | |
7726 | ||
d9898ee8 | 7727 | |
b0322a85 CE |
7728 | |
7729 | ||
8d138742 | 7730 | # Set options |
d9898ee8 | 7731 | |
7732 | ||
7733 | ||
8d138742 | 7734 | enable_dlopen=no |
d9898ee8 | 7735 | |
d9898ee8 | 7736 | |
8d138742 | 7737 | enable_win32_dll=no |
d9898ee8 | 7738 | |
d9898ee8 | 7739 | |
8d138742 | 7740 | # Check whether --enable-shared was given. |
b0322a85 | 7741 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
7742 | enableval=$enable_shared; p=${PACKAGE-default} |
7743 | case $enableval in | |
7744 | yes) enable_shared=yes ;; | |
7745 | no) enable_shared=no ;; | |
7746 | *) | |
7747 | enable_shared=no | |
7748 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7749 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7750 | for pkg in $enableval; do |
d50284c4 | 7751 | IFS=$lt_save_ifs |
8d138742 CE |
7752 | if test "X$pkg" = "X$p"; then |
7753 | enable_shared=yes | |
7754 | fi | |
7755 | done | |
d50284c4 | 7756 | IFS=$lt_save_ifs |
8d138742 CE |
7757 | ;; |
7758 | esac | |
7759 | else | |
7760 | enable_shared=yes | |
d9898ee8 | 7761 | fi |
d9898ee8 | 7762 | |
8d138742 CE |
7763 | |
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | # Check whether --enable-static was given. | |
b0322a85 | 7772 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
7773 | enableval=$enable_static; p=${PACKAGE-default} |
7774 | case $enableval in | |
7775 | yes) enable_static=yes ;; | |
7776 | no) enable_static=no ;; | |
7777 | *) | |
7778 | enable_static=no | |
7779 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7780 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7781 | for pkg in $enableval; do |
d50284c4 | 7782 | IFS=$lt_save_ifs |
8d138742 CE |
7783 | if test "X$pkg" = "X$p"; then |
7784 | enable_static=yes | |
7785 | fi | |
7786 | done | |
d50284c4 | 7787 | IFS=$lt_save_ifs |
8d138742 CE |
7788 | ;; |
7789 | esac | |
d9898ee8 | 7790 | else |
8d138742 | 7791 | enable_static=yes |
d9898ee8 | 7792 | fi |
7793 | ||
d9898ee8 | 7794 | |
d9898ee8 | 7795 | |
d9898ee8 | 7796 | |
d9898ee8 | 7797 | |
d9898ee8 | 7798 | |
d9898ee8 | 7799 | |
d9898ee8 | 7800 | |
d9898ee8 | 7801 | |
d9898ee8 | 7802 | |
8d138742 | 7803 | # Check whether --with-pic was given. |
b0322a85 CE |
7804 | if test "${with_pic+set}" = set; then : |
7805 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7806 | case $withval in | |
7807 | yes|no) pic_mode=$withval ;; | |
7808 | *) | |
7809 | pic_mode=default | |
7810 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7811 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
b0322a85 | 7812 | for lt_pkg in $withval; do |
d50284c4 | 7813 | IFS=$lt_save_ifs |
b0322a85 CE |
7814 | if test "X$lt_pkg" = "X$lt_p"; then |
7815 | pic_mode=yes | |
7816 | fi | |
7817 | done | |
d50284c4 | 7818 | IFS=$lt_save_ifs |
b0322a85 CE |
7819 | ;; |
7820 | esac | |
8d138742 CE |
7821 | else |
7822 | pic_mode=default | |
7823 | fi | |
d9898ee8 | 7824 | |
d9898ee8 | 7825 | |
d9898ee8 | 7826 | |
d9898ee8 | 7827 | |
d9898ee8 | 7828 | |
d9898ee8 | 7829 | |
d9898ee8 | 7830 | |
d9898ee8 | 7831 | |
8d138742 | 7832 | # Check whether --enable-fast-install was given. |
b0322a85 | 7833 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
7834 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7835 | case $enableval in | |
7836 | yes) enable_fast_install=yes ;; | |
7837 | no) enable_fast_install=no ;; | |
7838 | *) | |
7839 | enable_fast_install=no | |
7840 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7841 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7842 | for pkg in $enableval; do |
d50284c4 | 7843 | IFS=$lt_save_ifs |
8d138742 CE |
7844 | if test "X$pkg" = "X$p"; then |
7845 | enable_fast_install=yes | |
7846 | fi | |
7847 | done | |
d50284c4 | 7848 | IFS=$lt_save_ifs |
d9898ee8 | 7849 | ;; |
8d138742 CE |
7850 | esac |
7851 | else | |
7852 | enable_fast_install=yes | |
7853 | fi | |
d9898ee8 | 7854 | |
d9898ee8 | 7855 | |
ac40fd9e | 7856 | |
d9898ee8 | 7857 | |
d9898ee8 | 7858 | |
d9898ee8 | 7859 | |
d9898ee8 | 7860 | |
d9898ee8 | 7861 | |
d50284c4 CE |
7862 | shared_archive_member_spec= |
7863 | case $host,$enable_shared in | |
7864 | power*-*-aix[5-9]*,yes) | |
7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
7866 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
7867 | ||
7868 | # Check whether --with-aix-soname was given. | |
7869 | if test "${with_aix_soname+set}" = set; then : | |
7870 | withval=$with_aix_soname; case $withval in | |
7871 | aix|svr4|both) | |
7872 | ;; | |
7873 | *) | |
7874 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
7875 | ;; | |
7876 | esac | |
7877 | lt_cv_with_aix_soname=$with_aix_soname | |
7878 | else | |
7879 | if ${lt_cv_with_aix_soname+:} false; then : | |
7880 | $as_echo_n "(cached) " >&6 | |
7881 | else | |
7882 | lt_cv_with_aix_soname=aix | |
7883 | fi | |
7884 | ||
7885 | with_aix_soname=$lt_cv_with_aix_soname | |
7886 | fi | |
7887 | ||
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
7889 | $as_echo "$with_aix_soname" >&6; } | |
7890 | if test aix != "$with_aix_soname"; then | |
7891 | # For the AIX way of multilib, we name the shared archive member | |
7892 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
7893 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
7894 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
7895 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
7896 | if test 64 = "${OBJECT_MODE-32}"; then | |
7897 | shared_archive_member_spec=shr_64 | |
7898 | else | |
7899 | shared_archive_member_spec=shr | |
7900 | fi | |
7901 | fi | |
7902 | ;; | |
7903 | *) | |
7904 | with_aix_soname=aix | |
7905 | ;; | |
7906 | esac | |
7907 | ||
7908 | ||
7909 | ||
7910 | ||
7911 | ||
7912 | ||
7913 | ||
d9898ee8 | 7914 | |
d9898ee8 | 7915 | |
d9898ee8 | 7916 | |
8d138742 | 7917 | # This can be used to rebuild libtool when needed |
d50284c4 | 7918 | LIBTOOL_DEPS=$ltmain |
d9898ee8 | 7919 | |
8d138742 CE |
7920 | # Always use our own libtool. |
7921 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7922 | |
d9898ee8 | 7923 | |
d9898ee8 | 7924 | |
d9898ee8 | 7925 | |
d9898ee8 | 7926 | |
d9898ee8 | 7927 | |
8d138742 CE |
7928 | |
7929 | ||
7930 | ||
7931 | ||
7932 | ||
7933 | ||
7934 | ||
7935 | ||
7936 | ||
7937 | ||
7938 | ||
7939 | ||
7940 | ||
b0322a85 CE |
7941 | |
7942 | ||
7943 | ||
7944 | ||
7945 | ||
8d138742 CE |
7946 | |
7947 | ||
7948 | ||
7949 | ||
7950 | ||
7951 | ||
7952 | test -z "$LN_S" && LN_S="ln -s" | |
7953 | ||
7954 | ||
7955 | ||
7956 | ||
7957 | ||
7958 | ||
7959 | ||
7960 | ||
7961 | ||
7962 | ||
7963 | ||
7964 | ||
7965 | ||
7966 | ||
d50284c4 | 7967 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 | 7968 | setopt NO_GLOB_SUBST |
d9898ee8 | 7969 | fi |
d9898ee8 | 7970 | |
b0322a85 | 7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 7972 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 7973 | if ${lt_cv_objdir+:} false; then : |
8d138742 | 7974 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7975 | else |
8d138742 CE |
7976 | rm -f .libs 2>/dev/null |
7977 | mkdir .libs 2>/dev/null | |
7978 | if test -d .libs; then | |
7979 | lt_cv_objdir=.libs | |
7980 | else | |
7981 | # MS-DOS does not allow filenames that begin with a dot. | |
7982 | lt_cv_objdir=_libs | |
d9898ee8 | 7983 | fi |
8d138742 CE |
7984 | rmdir .libs 2>/dev/null |
7985 | fi | |
b0322a85 | 7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
7987 | $as_echo "$lt_cv_objdir" >&6; } |
7988 | objdir=$lt_cv_objdir | |
d9898ee8 | 7989 | |
7990 | ||
d9898ee8 | 7991 | |
d9898ee8 | 7992 | |
d9898ee8 | 7993 | |
8d138742 CE |
7994 | cat >>confdefs.h <<_ACEOF |
7995 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7996 | _ACEOF | |
d9898ee8 | 7997 | |
d9898ee8 | 7998 | |
d9898ee8 | 7999 | |
d9898ee8 | 8000 | |
8d138742 CE |
8001 | case $host_os in |
8002 | aix3*) | |
8003 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8004 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8005 | # vanish in a puff of smoke. | |
d50284c4 | 8006 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
8007 | COLLECT_NAMES= |
8008 | export COLLECT_NAMES | |
8009 | fi | |
8010 | ;; | |
8011 | esac | |
d9898ee8 | 8012 | |
8d138742 CE |
8013 | # Global variables: |
8014 | ofile=libtool | |
8015 | can_build_shared=yes | |
d9898ee8 | 8016 | |
d50284c4 | 8017 | # All known linkers require a '.a' archive for static linking (except MSVC, |
8d138742 CE |
8018 | # which needs '.lib'). |
8019 | libext=a | |
d9898ee8 | 8020 | |
d50284c4 | 8021 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d9898ee8 | 8022 | |
d50284c4 CE |
8023 | old_CC=$CC |
8024 | old_CFLAGS=$CFLAGS | |
d9898ee8 | 8025 | |
8d138742 CE |
8026 | # Set sane defaults for various variables |
8027 | test -z "$CC" && CC=cc | |
8028 | test -z "$LTCC" && LTCC=$CC | |
8029 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8030 | test -z "$LD" && LD=ld | |
8031 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 8032 | |
d50284c4 CE |
8033 | func_cc_basename $compiler |
8034 | cc_basename=$func_cc_basename_result | |
d9898ee8 | 8035 | |
d9898ee8 | 8036 | |
8d138742 CE |
8037 | # Only perform the check for file, if the check method requires it |
8038 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8039 | case $deplibs_check_method in | |
8040 | file_magic*) | |
8041 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 8043 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 8044 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8045 | $as_echo_n "(cached) " >&6 |
8046 | else | |
8047 | case $MAGIC_CMD in | |
8048 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8049 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8050 | ;; |
8051 | *) | |
d50284c4 CE |
8052 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8053 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8054 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8055 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8056 | IFS=$lt_save_ifs |
8d138742 | 8057 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8058 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8059 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8d138742 CE |
8060 | if test -n "$file_magic_test_file"; then |
8061 | case $deplibs_check_method in | |
8062 | "file_magic "*) | |
8063 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8064 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8065 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8066 | $EGREP "$file_magic_regex" > /dev/null; then | |
8067 | : | |
8068 | else | |
8069 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8070 | |
8d138742 CE |
8071 | *** Warning: the command libtool uses to detect shared libraries, |
8072 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8073 | *** The result is that libtool may fail to recognize shared libraries | |
8074 | *** as such. This will affect the creation of libtool libraries that | |
8075 | *** depend on shared libraries, but programs linked with such libtool | |
8076 | *** libraries will work regardless of this problem. Nevertheless, you | |
8077 | *** may want to report the problem to your system manager and/or to | |
8078 | *** bug-libtool@gnu.org | |
d9898ee8 | 8079 | |
8d138742 CE |
8080 | _LT_EOF |
8081 | fi ;; | |
d9898ee8 | 8082 | esac |
d9898ee8 | 8083 | fi |
8d138742 CE |
8084 | break |
8085 | fi | |
8086 | done | |
d50284c4 CE |
8087 | IFS=$lt_save_ifs |
8088 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8089 | ;; |
8090 | esac | |
8091 | fi | |
d9898ee8 | 8092 | |
d50284c4 | 8093 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8094 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
8096 | $as_echo "$MAGIC_CMD" >&6; } |
8097 | else | |
b0322a85 | 8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8099 | $as_echo "no" >&6; } |
8100 | fi | |
d9898ee8 | 8101 | |
d9898ee8 | 8102 | |
d9898ee8 | 8103 | |
8d138742 CE |
8104 | |
8105 | ||
8106 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8107 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8109 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8110 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 | 8111 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8112 | else |
8d138742 CE |
8113 | case $MAGIC_CMD in |
8114 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8115 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8116 | ;; |
8117 | *) | |
d50284c4 CE |
8118 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8119 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8120 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8121 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8122 | IFS=$lt_save_ifs |
8d138742 | 8123 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8124 | if test -f "$ac_dir/file"; then |
8125 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8d138742 CE |
8126 | if test -n "$file_magic_test_file"; then |
8127 | case $deplibs_check_method in | |
8128 | "file_magic "*) | |
8129 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8130 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8131 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8132 | $EGREP "$file_magic_regex" > /dev/null; then | |
8133 | : | |
8134 | else | |
8135 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8136 | |
8d138742 CE |
8137 | *** Warning: the command libtool uses to detect shared libraries, |
8138 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8139 | *** The result is that libtool may fail to recognize shared libraries | |
8140 | *** as such. This will affect the creation of libtool libraries that | |
8141 | *** depend on shared libraries, but programs linked with such libtool | |
8142 | *** libraries will work regardless of this problem. Nevertheless, you | |
8143 | *** may want to report the problem to your system manager and/or to | |
8144 | *** bug-libtool@gnu.org | |
dd184caf | 8145 | |
8d138742 CE |
8146 | _LT_EOF |
8147 | fi ;; | |
8148 | esac | |
8149 | fi | |
8150 | break | |
8151 | fi | |
8152 | done | |
d50284c4 CE |
8153 | IFS=$lt_save_ifs |
8154 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8155 | ;; |
8156 | esac | |
d9898ee8 | 8157 | fi |
dd184caf | 8158 | |
d50284c4 | 8159 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8160 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
8162 | $as_echo "$MAGIC_CMD" >&6; } |
8163 | else | |
b0322a85 | 8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8165 | $as_echo "no" >&6; } |
8166 | fi | |
d9898ee8 | 8167 | |
d9898ee8 | 8168 | |
8d138742 CE |
8169 | else |
8170 | MAGIC_CMD=: | |
8171 | fi | |
8172 | fi | |
d9898ee8 | 8173 | |
8d138742 CE |
8174 | fi |
8175 | ;; | |
dd184caf | 8176 | esac |
d9898ee8 | 8177 | |
8d138742 CE |
8178 | # Use C for the default configuration in the libtool script |
8179 | ||
d50284c4 | 8180 | lt_save_CC=$CC |
8d138742 CE |
8181 | ac_ext=c |
8182 | ac_cpp='$CPP $CPPFLAGS' | |
8183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8186 | ||
8187 | ||
8188 | # Source file extension for C test sources. | |
8189 | ac_ext=c | |
8190 | ||
8191 | # Object file extension for compiled C test sources. | |
8192 | objext=o | |
8193 | objext=$objext | |
8194 | ||
8195 | # Code to be used in simple compile tests | |
8196 | lt_simple_compile_test_code="int some_variable = 0;" | |
8197 | ||
8198 | # Code to be used in simple link tests | |
8199 | lt_simple_link_test_code='int main(){return(0);}' | |
8200 | ||
8201 | ||
8202 | ||
8203 | ||
8204 | ||
8205 | ||
8206 | ||
8207 | # If no C compiler was specified, use CC. | |
8208 | LTCC=${LTCC-"$CC"} | |
8209 | ||
8210 | # If no C compiler flags were specified, use CFLAGS. | |
8211 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8212 | ||
8213 | # Allow CC to be a program name with arguments. | |
8214 | compiler=$CC | |
8215 | ||
8216 | # Save the default compiler, since it gets overwritten when the other | |
8217 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8218 | compiler_DEFAULT=$CC | |
8219 | ||
8220 | # save warnings/boilerplate of simple test code | |
8221 | ac_outfile=conftest.$ac_objext | |
8222 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8223 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8224 | _lt_compiler_boilerplate=`cat conftest.err` | |
8225 | $RM conftest* | |
8226 | ||
8227 | ac_outfile=conftest.$ac_objext | |
8228 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8229 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8230 | _lt_linker_boilerplate=`cat conftest.err` | |
8231 | $RM -r conftest* | |
8232 | ||
8233 | ||
8234 | if test -n "$compiler"; then | |
8235 | ||
8236 | lt_prog_compiler_no_builtin_flag= | |
8237 | ||
d50284c4 | 8238 | if test yes = "$GCC"; then |
b0322a85 CE |
8239 | case $cc_basename in |
8240 | nvcc*) | |
8241 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8242 | *) | |
8243 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8244 | esac | |
8d138742 | 8245 | |
b0322a85 | 8246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 8247 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 8248 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 | 8249 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8250 | else |
8d138742 CE |
8251 | lt_cv_prog_compiler_rtti_exceptions=no |
8252 | ac_outfile=conftest.$ac_objext | |
8253 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8254 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8255 | # Insert the option either (1) after the last *FLAGS variable, or |
8256 | # (2) before a word containing "conftest.", or (3) at the end. | |
8257 | # Note that $ac_compile itself does not contain backslashes and begins | |
8258 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8259 | # The option is referenced via a variable to avoid confusing sed. | |
8260 | lt_compile=`echo "$ac_compile" | $SED \ | |
8261 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8262 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8263 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8264 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8265 | (eval "$lt_compile" 2>conftest.err) |
8266 | ac_status=$? | |
8267 | cat conftest.err >&5 | |
b0322a85 | 8268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8269 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8270 | # The compiler can only warn and ignore the option if not recognized | |
8271 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8272 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8273 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8274 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8275 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8276 | fi | |
8277 | fi | |
8278 | $RM conftest* | |
d9898ee8 | 8279 | |
8d138742 | 8280 | fi |
b0322a85 | 8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 8282 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
dd184caf | 8283 | |
d50284c4 | 8284 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8d138742 CE |
8285 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8286 | else | |
8287 | : | |
d9898ee8 | 8288 | fi |
dd184caf | 8289 | |
8d138742 | 8290 | fi |
d9898ee8 | 8291 | |
8d138742 CE |
8292 | |
8293 | ||
8294 | ||
8295 | ||
8296 | ||
8297 | lt_prog_compiler_wl= | |
8298 | lt_prog_compiler_pic= | |
8299 | lt_prog_compiler_static= | |
8300 | ||
8d138742 | 8301 | |
d50284c4 | 8302 | if test yes = "$GCC"; then |
8d138742 CE |
8303 | lt_prog_compiler_wl='-Wl,' |
8304 | lt_prog_compiler_static='-static' | |
8305 | ||
8306 | case $host_os in | |
8307 | aix*) | |
8308 | # All AIX code is PIC. | |
d50284c4 | 8309 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8310 | # AIX 5 now supports IA64 processor |
8311 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8312 | fi |
d50284c4 | 8313 | lt_prog_compiler_pic='-fPIC' |
d9898ee8 | 8314 | ;; |
8315 | ||
8316 | amigaos*) | |
8d138742 CE |
8317 | case $host_cpu in |
8318 | powerpc) | |
8319 | # see comment about AmigaOS4 .so support | |
8320 | lt_prog_compiler_pic='-fPIC' | |
8321 | ;; | |
8322 | m68k) | |
8323 | # FIXME: we need at least 68020 code to build shared libraries, but | |
d50284c4 CE |
8324 | # adding the '-m68020' flag to GCC prevents building anything better, |
8325 | # like '-m68040'. | |
8d138742 CE |
8326 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8327 | ;; | |
8328 | esac | |
d9898ee8 | 8329 | ;; |
8330 | ||
8d138742 CE |
8331 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8332 | # PIC is the default for these OSes. | |
d9898ee8 | 8333 | ;; |
8334 | ||
8d138742 CE |
8335 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8336 | # This hack is so that the source file can tell whether it is being | |
8337 | # built for inclusion in a dll (and should export symbols for example). | |
8338 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8339 | # (--disable-auto-import) libraries | |
8340 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8341 | case $host_os in |
8342 | os2*) | |
8343 | lt_prog_compiler_static='$wl-static' | |
8344 | ;; | |
8345 | esac | |
d9898ee8 | 8346 | ;; |
8347 | ||
8348 | darwin* | rhapsody*) | |
8d138742 CE |
8349 | # PIC is the default on this platform |
8350 | # Common symbols not allowed in MH_DYLIB files | |
8351 | lt_prog_compiler_pic='-fno-common' | |
d9898ee8 | 8352 | ;; |
8353 | ||
b0322a85 CE |
8354 | haiku*) |
8355 | # PIC is the default for Haiku. | |
8356 | # The "-static" flag exists, but is broken. | |
8357 | lt_prog_compiler_static= | |
8358 | ;; | |
8359 | ||
8d138742 CE |
8360 | hpux*) |
8361 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8362 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8363 | # sets the default TLS model and affects inlining. | |
8364 | case $host_cpu in | |
8365 | hppa*64*) | |
8366 | # +Z the default | |
8367 | ;; | |
8368 | *) | |
8369 | lt_prog_compiler_pic='-fPIC' | |
8370 | ;; | |
8371 | esac | |
d9898ee8 | 8372 | ;; |
8373 | ||
8d138742 CE |
8374 | interix[3-9]*) |
8375 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8376 | # Instead, we relocate shared libraries at runtime. | |
d9898ee8 | 8377 | ;; |
8378 | ||
8d138742 CE |
8379 | msdosdjgpp*) |
8380 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8381 | # on systems that don't support them. | |
8382 | lt_prog_compiler_can_build_shared=no | |
8383 | enable_shared=no | |
d9898ee8 | 8384 | ;; |
8385 | ||
8d138742 CE |
8386 | *nto* | *qnx*) |
8387 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8388 | # it will coredump. | |
8389 | lt_prog_compiler_pic='-fPIC -shared' | |
d9898ee8 | 8390 | ;; |
8391 | ||
8d138742 CE |
8392 | sysv4*MP*) |
8393 | if test -d /usr/nec; then | |
8394 | lt_prog_compiler_pic=-Kconform_pic | |
d9898ee8 | 8395 | fi |
d9898ee8 | 8396 | ;; |
8397 | ||
8d138742 CE |
8398 | *) |
8399 | lt_prog_compiler_pic='-fPIC' | |
8400 | ;; | |
8401 | esac | |
b0322a85 CE |
8402 | |
8403 | case $cc_basename in | |
8404 | nvcc*) # Cuda Compiler Driver 2.2 | |
8405 | lt_prog_compiler_wl='-Xlinker ' | |
8406 | if test -n "$lt_prog_compiler_pic"; then | |
8407 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8408 | fi | |
8409 | ;; | |
8410 | esac | |
8d138742 CE |
8411 | else |
8412 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8413 | case $host_os in | |
8414 | aix*) | |
8415 | lt_prog_compiler_wl='-Wl,' | |
d50284c4 | 8416 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8417 | # AIX 5 now supports IA64 processor |
8418 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8419 | else |
8d138742 | 8420 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d9898ee8 | 8421 | fi |
8d138742 | 8422 | ;; |
d9898ee8 | 8423 | |
d50284c4 CE |
8424 | darwin* | rhapsody*) |
8425 | # PIC is the default on this platform | |
8426 | # Common symbols not allowed in MH_DYLIB files | |
8427 | lt_prog_compiler_pic='-fno-common' | |
8428 | case $cc_basename in | |
8429 | nagfor*) | |
8430 | # NAG Fortran compiler | |
8431 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8432 | lt_prog_compiler_pic='-PIC' | |
8433 | lt_prog_compiler_static='-Bstatic' | |
8434 | ;; | |
8435 | esac | |
8436 | ;; | |
8437 | ||
8d138742 CE |
8438 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8439 | # This hack is so that the source file can tell whether it is being | |
8440 | # built for inclusion in a dll (and should export symbols for example). | |
8441 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8442 | case $host_os in |
8443 | os2*) | |
8444 | lt_prog_compiler_static='$wl-static' | |
8445 | ;; | |
8446 | esac | |
8d138742 | 8447 | ;; |
d9898ee8 | 8448 | |
8d138742 CE |
8449 | hpux9* | hpux10* | hpux11*) |
8450 | lt_prog_compiler_wl='-Wl,' | |
8451 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8452 | # not for PA HP-UX. | |
8453 | case $host_cpu in | |
8454 | hppa*64*|ia64*) | |
8455 | # +Z the default | |
8456 | ;; | |
8457 | *) | |
8458 | lt_prog_compiler_pic='+Z' | |
8459 | ;; | |
8460 | esac | |
8461 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
d50284c4 | 8462 | lt_prog_compiler_static='$wl-a ${wl}archive' |
d9898ee8 | 8463 | ;; |
8464 | ||
8d138742 CE |
8465 | irix5* | irix6* | nonstopux*) |
8466 | lt_prog_compiler_wl='-Wl,' | |
8467 | # PIC (with -KPIC) is the default. | |
8468 | lt_prog_compiler_static='-non_shared' | |
8469 | ;; | |
d9898ee8 | 8470 | |
d50284c4 | 8471 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 | 8472 | case $cc_basename in |
d50284c4 | 8473 | # old Intel for x86_64, which still supported -KPIC. |
8d138742 CE |
8474 | ecc*) |
8475 | lt_prog_compiler_wl='-Wl,' | |
8476 | lt_prog_compiler_pic='-KPIC' | |
8477 | lt_prog_compiler_static='-static' | |
8478 | ;; | |
8479 | # icc used to be incompatible with GCC. | |
8480 | # ICC 10 doesn't accept -KPIC any more. | |
8481 | icc* | ifort*) | |
8482 | lt_prog_compiler_wl='-Wl,' | |
8483 | lt_prog_compiler_pic='-fPIC' | |
8484 | lt_prog_compiler_static='-static' | |
8485 | ;; | |
8486 | # Lahey Fortran 8.1. | |
8487 | lf95*) | |
8488 | lt_prog_compiler_wl='-Wl,' | |
8489 | lt_prog_compiler_pic='--shared' | |
8490 | lt_prog_compiler_static='--static' | |
8491 | ;; | |
b0322a85 CE |
8492 | nagfor*) |
8493 | # NAG Fortran compiler | |
8494 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8495 | lt_prog_compiler_pic='-PIC' | |
8496 | lt_prog_compiler_static='-Bstatic' | |
8497 | ;; | |
d50284c4 CE |
8498 | tcc*) |
8499 | # Fabrice Bellard et al's Tiny C Compiler | |
8500 | lt_prog_compiler_wl='-Wl,' | |
8501 | lt_prog_compiler_pic='-fPIC' | |
8502 | lt_prog_compiler_static='-static' | |
8503 | ;; | |
b0322a85 | 8504 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8d138742 CE |
8505 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8506 | # which looks to be a dead project) | |
8507 | lt_prog_compiler_wl='-Wl,' | |
8508 | lt_prog_compiler_pic='-fpic' | |
8509 | lt_prog_compiler_static='-Bstatic' | |
8510 | ;; | |
8511 | ccc*) | |
8512 | lt_prog_compiler_wl='-Wl,' | |
8513 | # All Alpha code is PIC. | |
8514 | lt_prog_compiler_static='-non_shared' | |
8515 | ;; | |
b0322a85 CE |
8516 | xl* | bgxl* | bgf* | mpixl*) |
8517 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8518 | lt_prog_compiler_wl='-Wl,' |
8519 | lt_prog_compiler_pic='-qpic' | |
8520 | lt_prog_compiler_static='-qstaticlink' | |
8521 | ;; | |
8522 | *) | |
8523 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
8524 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8525 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8526 | lt_prog_compiler_pic='-KPIC' | |
8527 | lt_prog_compiler_static='-Bstatic' | |
8528 | lt_prog_compiler_wl='' | |
8529 | ;; | |
8530 | *Sun\ F* | *Sun*Fortran*) | |
8531 | lt_prog_compiler_pic='-KPIC' | |
8532 | lt_prog_compiler_static='-Bstatic' | |
8533 | lt_prog_compiler_wl='-Qoption ld ' | |
8534 | ;; | |
8d138742 CE |
8535 | *Sun\ C*) |
8536 | # Sun C 5.9 | |
8537 | lt_prog_compiler_pic='-KPIC' | |
8538 | lt_prog_compiler_static='-Bstatic' | |
8539 | lt_prog_compiler_wl='-Wl,' | |
d9898ee8 | 8540 | ;; |
b0322a85 CE |
8541 | *Intel*\ [CF]*Compiler*) |
8542 | lt_prog_compiler_wl='-Wl,' | |
8543 | lt_prog_compiler_pic='-fPIC' | |
8544 | lt_prog_compiler_static='-static' | |
8545 | ;; | |
8546 | *Portland\ Group*) | |
8547 | lt_prog_compiler_wl='-Wl,' | |
8548 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8549 | lt_prog_compiler_static='-Bstatic' |
d9898ee8 | 8550 | ;; |
8551 | esac | |
8d138742 CE |
8552 | ;; |
8553 | esac | |
d9898ee8 | 8554 | ;; |
8555 | ||
8d138742 CE |
8556 | newsos6) |
8557 | lt_prog_compiler_pic='-KPIC' | |
8558 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8559 | ;; |
8560 | ||
8d138742 CE |
8561 | *nto* | *qnx*) |
8562 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8563 | # it will coredump. | |
8564 | lt_prog_compiler_pic='-fPIC -shared' | |
d9898ee8 | 8565 | ;; |
8566 | ||
8d138742 CE |
8567 | osf3* | osf4* | osf5*) |
8568 | lt_prog_compiler_wl='-Wl,' | |
8569 | # All OSF/1 code is PIC. | |
8570 | lt_prog_compiler_static='-non_shared' | |
d9898ee8 | 8571 | ;; |
8572 | ||
8d138742 CE |
8573 | rdos*) |
8574 | lt_prog_compiler_static='-non_shared' | |
d9898ee8 | 8575 | ;; |
8576 | ||
8d138742 CE |
8577 | solaris*) |
8578 | lt_prog_compiler_pic='-KPIC' | |
8579 | lt_prog_compiler_static='-Bstatic' | |
8580 | case $cc_basename in | |
b0322a85 | 8581 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
8582 | lt_prog_compiler_wl='-Qoption ld ';; |
8583 | *) | |
8584 | lt_prog_compiler_wl='-Wl,';; | |
8585 | esac | |
d9898ee8 | 8586 | ;; |
8587 | ||
8d138742 CE |
8588 | sunos4*) |
8589 | lt_prog_compiler_wl='-Qoption ld ' | |
8590 | lt_prog_compiler_pic='-PIC' | |
8591 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8592 | ;; |
8593 | ||
8d138742 CE |
8594 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8595 | lt_prog_compiler_wl='-Wl,' | |
8596 | lt_prog_compiler_pic='-KPIC' | |
8597 | lt_prog_compiler_static='-Bstatic' | |
8598 | ;; | |
d9898ee8 | 8599 | |
8d138742 | 8600 | sysv4*MP*) |
d50284c4 | 8601 | if test -d /usr/nec; then |
8d138742 CE |
8602 | lt_prog_compiler_pic='-Kconform_pic' |
8603 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8604 | fi |
d9898ee8 | 8605 | ;; |
8606 | ||
8d138742 CE |
8607 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8608 | lt_prog_compiler_wl='-Wl,' | |
8609 | lt_prog_compiler_pic='-KPIC' | |
8610 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8611 | ;; |
8612 | ||
8d138742 CE |
8613 | unicos*) |
8614 | lt_prog_compiler_wl='-Wl,' | |
8615 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8616 | ;; |
8617 | ||
8d138742 CE |
8618 | uts4*) |
8619 | lt_prog_compiler_pic='-pic' | |
8620 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8621 | ;; |
8622 | ||
8d138742 CE |
8623 | *) |
8624 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8625 | ;; |
8d138742 CE |
8626 | esac |
8627 | fi | |
d9898ee8 | 8628 | |
8d138742 | 8629 | case $host_os in |
d50284c4 | 8630 | # For platforms that do not support PIC, -DPIC is meaningless: |
8d138742 CE |
8631 | *djgpp*) |
8632 | lt_prog_compiler_pic= | |
8633 | ;; | |
8634 | *) | |
8635 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8636 | ;; | |
8637 | esac | |
d9898ee8 | 8638 | |
b0322a85 CE |
8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8640 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8641 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8642 | $as_echo_n "(cached) " >&6 | |
8643 | else | |
8644 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8645 | fi | |
8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8647 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8648 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8649 | |
8650 | # | |
8d138742 | 8651 | # Check to make sure the PIC flag actually works. |
d9898ee8 | 8652 | # |
8d138742 | 8653 | if test -n "$lt_prog_compiler_pic"; then |
b0322a85 | 8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8655 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8656 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 CE |
8657 | $as_echo_n "(cached) " >&6 |
8658 | else | |
8659 | lt_cv_prog_compiler_pic_works=no | |
8660 | ac_outfile=conftest.$ac_objext | |
8661 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8662 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8663 | # Insert the option either (1) after the last *FLAGS variable, or |
8664 | # (2) before a word containing "conftest.", or (3) at the end. | |
8665 | # Note that $ac_compile itself does not contain backslashes and begins | |
8666 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8667 | # The option is referenced via a variable to avoid confusing sed. | |
8668 | lt_compile=`echo "$ac_compile" | $SED \ | |
8669 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8670 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8671 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8672 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8673 | (eval "$lt_compile" 2>conftest.err) |
8674 | ac_status=$? | |
8675 | cat conftest.err >&5 | |
b0322a85 | 8676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8677 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8678 | # The compiler can only warn and ignore the option if not recognized | |
8679 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8680 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8681 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8682 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8683 | lt_cv_prog_compiler_pic_works=yes | |
8684 | fi | |
8685 | fi | |
8686 | $RM conftest* | |
d9898ee8 | 8687 | |
8d138742 | 8688 | fi |
b0322a85 | 8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8690 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
ac40fd9e | 8691 | |
d50284c4 | 8692 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8d138742 CE |
8693 | case $lt_prog_compiler_pic in |
8694 | "" | " "*) ;; | |
8695 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8696 | esac | |
d9898ee8 | 8697 | else |
8d138742 CE |
8698 | lt_prog_compiler_pic= |
8699 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8700 | fi |
d9898ee8 | 8701 | |
8d138742 | 8702 | fi |
d9898ee8 | 8703 | |
d9898ee8 | 8704 | |
d9898ee8 | 8705 | |
d9898ee8 | 8706 | |
d9898ee8 | 8707 | |
d9898ee8 | 8708 | |
b0322a85 CE |
8709 | |
8710 | ||
8711 | ||
8712 | ||
8713 | ||
8d138742 CE |
8714 | # |
8715 | # Check to make sure the static flag actually works. | |
8716 | # | |
8717 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
b0322a85 | 8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 8719 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 8720 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 CE |
8721 | $as_echo_n "(cached) " >&6 |
8722 | else | |
8723 | lt_cv_prog_compiler_static_works=no | |
d50284c4 | 8724 | save_LDFLAGS=$LDFLAGS |
8d138742 CE |
8725 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8726 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8727 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8728 | # The linker can only warn and ignore the option if not recognized | |
8729 | # So say no if there are warnings | |
8730 | if test -s conftest.err; then | |
8731 | # Append any errors to the config.log. | |
8732 | cat conftest.err 1>&5 | |
b0322a85 | 8733 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
8734 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8735 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8736 | lt_cv_prog_compiler_static_works=yes | |
8737 | fi | |
8738 | else | |
8739 | lt_cv_prog_compiler_static_works=yes | |
8740 | fi | |
8741 | fi | |
8742 | $RM -r conftest* | |
d50284c4 | 8743 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 8744 | |
8d138742 | 8745 | fi |
b0322a85 | 8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 8747 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
d9898ee8 | 8748 | |
d50284c4 | 8749 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
8d138742 CE |
8750 | : |
8751 | else | |
8752 | lt_prog_compiler_static= | |
8753 | fi | |
d9898ee8 | 8754 | |
d9898ee8 | 8755 | |
d9898ee8 | 8756 | |
ac40fd9e | 8757 | |
d9898ee8 | 8758 | |
d9898ee8 | 8759 | |
d9898ee8 | 8760 | |
b0322a85 | 8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8762 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8763 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8764 | $as_echo_n "(cached) " >&6 |
8765 | else | |
8766 | lt_cv_prog_compiler_c_o=no | |
8767 | $RM -r conftest 2>/dev/null | |
8768 | mkdir conftest | |
8769 | cd conftest | |
8770 | mkdir out | |
8771 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8772 | |
8d138742 CE |
8773 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8774 | # Insert the option either (1) after the last *FLAGS variable, or | |
8775 | # (2) before a word containing "conftest.", or (3) at the end. | |
8776 | # Note that $ac_compile itself does not contain backslashes and begins | |
8777 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8778 | lt_compile=`echo "$ac_compile" | $SED \ | |
8779 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8780 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8781 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8782 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8783 | (eval "$lt_compile" 2>out/conftest.err) |
8784 | ac_status=$? | |
8785 | cat out/conftest.err >&5 | |
b0322a85 | 8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8787 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8788 | then | |
8789 | # The compiler can only warn and ignore the option if not recognized | |
8790 | # So say no if there are warnings | |
b0322a85 | 8791 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8792 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8793 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8794 | lt_cv_prog_compiler_c_o=yes | |
8795 | fi | |
8796 | fi | |
8797 | chmod u+w . 2>&5 | |
8798 | $RM conftest* | |
8799 | # SGI C++ compiler will create directory out/ii_files/ for | |
8800 | # template instantiation | |
8801 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8802 | $RM out/* && rmdir out | |
8803 | cd .. | |
8804 | $RM -r conftest | |
8805 | $RM conftest* | |
d9898ee8 | 8806 | |
8d138742 | 8807 | fi |
b0322a85 | 8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8809 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8810 | |
d9898ee8 | 8811 | |
d9898ee8 | 8812 | |
d9898ee8 | 8813 | |
d9898ee8 | 8814 | |
d9898ee8 | 8815 | |
b0322a85 | 8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8817 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8818 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8819 | $as_echo_n "(cached) " >&6 |
8820 | else | |
8821 | lt_cv_prog_compiler_c_o=no | |
8822 | $RM -r conftest 2>/dev/null | |
8823 | mkdir conftest | |
8824 | cd conftest | |
8825 | mkdir out | |
8826 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8827 | |
8d138742 CE |
8828 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8829 | # Insert the option either (1) after the last *FLAGS variable, or | |
8830 | # (2) before a word containing "conftest.", or (3) at the end. | |
8831 | # Note that $ac_compile itself does not contain backslashes and begins | |
8832 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8833 | lt_compile=`echo "$ac_compile" | $SED \ | |
8834 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8835 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8836 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8837 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8838 | (eval "$lt_compile" 2>out/conftest.err) |
8839 | ac_status=$? | |
8840 | cat out/conftest.err >&5 | |
b0322a85 | 8841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8842 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8843 | then | |
8844 | # The compiler can only warn and ignore the option if not recognized | |
8845 | # So say no if there are warnings | |
b0322a85 | 8846 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8847 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8848 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8849 | lt_cv_prog_compiler_c_o=yes | |
8850 | fi | |
8851 | fi | |
8852 | chmod u+w . 2>&5 | |
8853 | $RM conftest* | |
8854 | # SGI C++ compiler will create directory out/ii_files/ for | |
8855 | # template instantiation | |
8856 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8857 | $RM out/* && rmdir out | |
8858 | cd .. | |
8859 | $RM -r conftest | |
8860 | $RM conftest* | |
d9898ee8 | 8861 | |
8d138742 | 8862 | fi |
b0322a85 | 8863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8864 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8865 | |
d9898ee8 | 8866 | |
8d138742 CE |
8867 | |
8868 | ||
d50284c4 CE |
8869 | hard_links=nottested |
8870 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8d138742 | 8871 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
8873 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
8874 | hard_links=yes | |
8875 | $RM conftest* | |
8876 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8877 | touch conftest.a | |
8878 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8879 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 8881 | $as_echo "$hard_links" >&6; } |
d50284c4 CE |
8882 | if test no = "$hard_links"; then |
8883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
8884 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
8d138742 | 8885 | need_locks=warn |
d9898ee8 | 8886 | fi |
8d138742 CE |
8887 | else |
8888 | need_locks=no | |
8889 | fi | |
d9898ee8 | 8890 | |
d9898ee8 | 8891 | |
d9898ee8 | 8892 | |
ac40fd9e | 8893 | |
d9898ee8 | 8894 | |
d9898ee8 | 8895 | |
b0322a85 | 8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 8897 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 8898 | |
8d138742 CE |
8899 | runpath_var= |
8900 | allow_undefined_flag= | |
8901 | always_export_symbols=no | |
8902 | archive_cmds= | |
8903 | archive_expsym_cmds= | |
8904 | compiler_needs_object=no | |
8905 | enable_shared_with_static_runtimes=no | |
8906 | export_dynamic_flag_spec= | |
8907 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8908 | hardcode_automatic=no | |
8909 | hardcode_direct=no | |
8910 | hardcode_direct_absolute=no | |
8911 | hardcode_libdir_flag_spec= | |
8d138742 CE |
8912 | hardcode_libdir_separator= |
8913 | hardcode_minus_L=no | |
8914 | hardcode_shlibpath_var=unsupported | |
8915 | inherit_rpath=no | |
8916 | link_all_deplibs=unknown | |
8917 | module_cmds= | |
8918 | module_expsym_cmds= | |
8919 | old_archive_from_new_cmds= | |
8920 | old_archive_from_expsyms_cmds= | |
8921 | thread_safe_flag_spec= | |
8922 | whole_archive_flag_spec= | |
8923 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8924 | # included in the symbol list | |
8925 | include_expsyms= | |
8926 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
d50284c4 CE |
8927 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
8928 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
8929 | # as well as any symbol that contains 'd'. | |
8d138742 CE |
8930 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
8931 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8932 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8933 | # the symbol is explicitly referenced. Since portable code cannot | |
8934 | # rely on this symbol name, it's probably fine to never include it in | |
8935 | # preloaded symbol tables. | |
8936 | # Exclude shared library initialization/finalization symbols. | |
8937 | extract_expsyms_cmds= | |
d9898ee8 | 8938 | |
8d138742 CE |
8939 | case $host_os in |
8940 | cygwin* | mingw* | pw32* | cegcc*) | |
8941 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8942 | # When not using gcc, we currently assume that we are using | |
8943 | # Microsoft Visual C++. | |
d50284c4 | 8944 | if test yes != "$GCC"; then |
8d138742 CE |
8945 | with_gnu_ld=no |
8946 | fi | |
8947 | ;; | |
8948 | interix*) | |
8949 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8950 | with_gnu_ld=yes | |
8951 | ;; | |
d50284c4 | 8952 | openbsd* | bitrig*) |
8d138742 CE |
8953 | with_gnu_ld=no |
8954 | ;; | |
8955 | esac | |
8956 | ||
8957 | ld_shlibs=yes | |
b0322a85 CE |
8958 | |
8959 | # On some targets, GNU ld is compatible enough with the native linker | |
8960 | # that we're better off using the native interface for both. | |
8961 | lt_use_gnu_ld_interface=no | |
d50284c4 | 8962 | if test yes = "$with_gnu_ld"; then |
b0322a85 CE |
8963 | case $host_os in |
8964 | aix*) | |
8965 | # The AIX port of GNU ld has always aspired to compatibility | |
8966 | # with the native linker. However, as the warning in the GNU ld | |
8967 | # block says, versions before 2.19.5* couldn't really create working | |
8968 | # shared libraries, regardless of the interface used. | |
8969 | case `$LD -v 2>&1` in | |
8970 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8971 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8972 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8973 | *) | |
8974 | lt_use_gnu_ld_interface=yes | |
8975 | ;; | |
8976 | esac | |
8977 | ;; | |
8978 | *) | |
8979 | lt_use_gnu_ld_interface=yes | |
8980 | ;; | |
8981 | esac | |
8982 | fi | |
8983 | ||
d50284c4 | 8984 | if test yes = "$lt_use_gnu_ld_interface"; then |
8d138742 | 8985 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d50284c4 | 8986 | wlarc='$wl' |
d9898ee8 | 8987 | |
8d138742 CE |
8988 | # Set some defaults for GNU ld with shared library support. These |
8989 | # are reset later if shared libraries are not supported. Putting them | |
8990 | # here allows them to be overridden if necessary. | |
8991 | runpath_var=LD_RUN_PATH | |
d50284c4 CE |
8992 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8993 | export_dynamic_flag_spec='$wl--export-dynamic' | |
8d138742 CE |
8994 | # ancient GNU ld didn't support --whole-archive et. al. |
8995 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
d50284c4 | 8996 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
8d138742 CE |
8997 | else |
8998 | whole_archive_flag_spec= | |
8999 | fi | |
9000 | supports_anon_versioning=no | |
d50284c4 | 9001 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b0322a85 | 9002 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
9003 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9004 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9005 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9006 | *\ 2.11.*) ;; # other 2.11 versions | |
9007 | *) supports_anon_versioning=yes ;; | |
9008 | esac | |
d9898ee8 | 9009 | |
8d138742 CE |
9010 | # See if GNU ld supports shared libraries. |
9011 | case $host_os in | |
9012 | aix[3-9]*) | |
9013 | # On AIX/PPC, the GNU linker is very broken | |
d50284c4 | 9014 | if test ia64 != "$host_cpu"; then |
8d138742 CE |
9015 | ld_shlibs=no |
9016 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9017 | |
b0322a85 | 9018 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
9019 | *** to be unable to reliably create shared libraries on AIX. |
9020 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
9021 | *** really care for shared libraries, you may want to install binutils |
9022 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9023 | *** You will then need to restart the configuration process. | |
d9898ee8 | 9024 | |
8d138742 CE |
9025 | _LT_EOF |
9026 | fi | |
9027 | ;; | |
d9898ee8 | 9028 | |
8d138742 CE |
9029 | amigaos*) |
9030 | case $host_cpu in | |
9031 | powerpc) | |
9032 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9033 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9034 | archive_expsym_cmds='' |
9035 | ;; | |
9036 | m68k) | |
9037 | 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)' | |
9038 | hardcode_libdir_flag_spec='-L$libdir' | |
9039 | hardcode_minus_L=yes | |
9040 | ;; | |
9041 | esac | |
9042 | ;; | |
d9898ee8 | 9043 | |
8d138742 CE |
9044 | beos*) |
9045 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9046 | allow_undefined_flag=unsupported | |
9047 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9048 | # support --undefined. This deserves some investigation. FIXME | |
d50284c4 | 9049 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9050 | else |
9051 | ld_shlibs=no | |
9052 | fi | |
9053 | ;; | |
d9898ee8 | 9054 | |
8d138742 CE |
9055 | cygwin* | mingw* | pw32* | cegcc*) |
9056 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9057 | # as there is no search path for DLLs. | |
9058 | hardcode_libdir_flag_spec='-L$libdir' | |
d50284c4 | 9059 | export_dynamic_flag_spec='$wl--export-all-symbols' |
8d138742 CE |
9060 | allow_undefined_flag=unsupported |
9061 | always_export_symbols=no | |
9062 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
9063 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
9064 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
d9898ee8 | 9065 | |
8d138742 | 9066 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
d50284c4 CE |
9067 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9068 | # If the export-symbols file already is a .def file, use it as | |
9069 | # is; otherwise, prepend EXPORTS... | |
9070 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9071 | cp $export_symbols $output_objdir/$soname.def; | |
9072 | else | |
9073 | echo EXPORTS > $output_objdir/$soname.def; | |
9074 | cat $export_symbols >> $output_objdir/$soname.def; | |
9075 | fi~ | |
9076 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8d138742 CE |
9077 | else |
9078 | ld_shlibs=no | |
9079 | fi | |
9080 | ;; | |
d9898ee8 | 9081 | |
b0322a85 | 9082 | haiku*) |
d50284c4 | 9083 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b0322a85 CE |
9084 | link_all_deplibs=yes |
9085 | ;; | |
9086 | ||
d50284c4 CE |
9087 | os2*) |
9088 | hardcode_libdir_flag_spec='-L$libdir' | |
9089 | hardcode_minus_L=yes | |
9090 | allow_undefined_flag=unsupported | |
9091 | shrext_cmds=.dll | |
9092 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9093 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9094 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9095 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9096 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9097 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9098 | emximp -o $lib $output_objdir/$libname.def' | |
9099 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9100 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9101 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9102 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9103 | prefix_cmds="$SED"~ | |
9104 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9105 | prefix_cmds="$prefix_cmds -e 1d"; | |
9106 | fi~ | |
9107 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9108 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9109 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9110 | emximp -o $lib $output_objdir/$libname.def' | |
9111 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9112 | enable_shared_with_static_runtimes=yes | |
9113 | ;; | |
9114 | ||
8d138742 CE |
9115 | interix[3-9]*) |
9116 | hardcode_direct=no | |
9117 | hardcode_shlibpath_var=no | |
d50284c4 CE |
9118 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9119 | export_dynamic_flag_spec='$wl-E' | |
8d138742 CE |
9120 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9121 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9122 | # default) and relocated if they conflict, which is a slow very memory | |
9123 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9124 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9125 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
d50284c4 CE |
9126 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9127 | 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' | |
8d138742 | 9128 | ;; |
d9898ee8 | 9129 | |
b0322a85 | 9130 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 | 9131 | tmp_diet=no |
d50284c4 | 9132 | if test linux-dietlibc = "$host_os"; then |
8d138742 CE |
9133 | case $cc_basename in |
9134 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9135 | esac | |
9136 | fi | |
9137 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
d50284c4 | 9138 | && test no = "$tmp_diet" |
8d138742 | 9139 | then |
b0322a85 | 9140 | tmp_addflag=' $pic_flag' |
8d138742 CE |
9141 | tmp_sharedflag='-shared' |
9142 | case $cc_basename,$host_cpu in | |
9143 | pgcc*) # Portland Group C compiler | |
d50284c4 | 9144 | 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' |
8d138742 CE |
9145 | tmp_addflag=' $pic_flag' |
9146 | ;; | |
b0322a85 CE |
9147 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9148 | # Portland Group f77 and f90 compilers | |
d50284c4 | 9149 | 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' |
8d138742 CE |
9150 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9151 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9152 | tmp_addflag=' -i_dynamic' ;; | |
9153 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9154 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9155 | ifc* | ifort*) # Intel Fortran compiler | |
9156 | tmp_addflag=' -nofor_main' ;; | |
9157 | lf95*) # Lahey Fortran 8.1 | |
9158 | whole_archive_flag_spec= | |
9159 | tmp_sharedflag='--shared' ;; | |
d50284c4 CE |
9160 | nagfor*) # NAGFOR 5.3 |
9161 | tmp_sharedflag='-Wl,-shared' ;; | |
b0322a85 | 9162 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
9163 | tmp_sharedflag='-qmkshrobj' |
9164 | tmp_addflag= ;; | |
b0322a85 | 9165 | nvcc*) # Cuda Compiler Driver 2.2 |
d50284c4 | 9166 | 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' |
b0322a85 CE |
9167 | compiler_needs_object=yes |
9168 | ;; | |
8d138742 CE |
9169 | esac |
9170 | case `$CC -V 2>&1 | sed 5q` in | |
9171 | *Sun\ C*) # Sun C 5.9 | |
d50284c4 | 9172 | 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' |
8d138742 CE |
9173 | compiler_needs_object=yes |
9174 | tmp_sharedflag='-G' ;; | |
9175 | *Sun\ F*) # Sun Fortran 8.3 | |
9176 | tmp_sharedflag='-G' ;; | |
9177 | esac | |
d50284c4 | 9178 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
d9898ee8 | 9179 | |
d50284c4 | 9180 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9181 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9182 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9183 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9184 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
8d138742 | 9185 | fi |
d9898ee8 | 9186 | |
8d138742 | 9187 | case $cc_basename in |
d50284c4 CE |
9188 | tcc*) |
9189 | export_dynamic_flag_spec='-rdynamic' | |
9190 | ;; | |
b0322a85 | 9191 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
9192 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9193 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
d50284c4 | 9194 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b0322a85 | 9195 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
d50284c4 | 9196 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9197 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9198 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9199 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9200 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
9201 | fi |
9202 | ;; | |
9203 | esac | |
9204 | else | |
9205 | ld_shlibs=no | |
9206 | fi | |
9207 | ;; | |
9208 | ||
9209 | netbsd*) | |
9210 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9211 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9212 | wlarc= | |
9213 | else | |
d50284c4 CE |
9214 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9215 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9216 | fi |
9217 | ;; | |
9218 | ||
9219 | solaris*) | |
9220 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9221 | ld_shlibs=no | |
9222 | cat <<_LT_EOF 1>&2 | |
9223 | ||
9224 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9225 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9226 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9227 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9228 | *** your PATH or compiler configuration so that the native linker is | |
9229 | *** used, and then restart. | |
9230 | ||
9231 | _LT_EOF | |
9232 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9233 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9234 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9235 | else |
9236 | ld_shlibs=no | |
9237 | fi | |
9238 | ;; | |
9239 | ||
9240 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9241 | case `$LD -v 2>&1` in | |
9242 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9243 | ld_shlibs=no | |
9244 | cat <<_LT_EOF 1>&2 | |
9245 | ||
d50284c4 | 9246 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
8d138742 CE |
9247 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9248 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9249 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9250 | *** your PATH or compiler configuration so that the native linker is | |
9251 | *** used, and then restart. | |
9252 | ||
9253 | _LT_EOF | |
9254 | ;; | |
9255 | *) | |
9256 | # For security reasons, it is highly recommended that you always | |
9257 | # use absolute paths for naming shared libraries, and exclude the | |
9258 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9259 | # requires that you compile everything twice, which is a pain. | |
9260 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9261 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9262 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9263 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9264 | else |
9265 | ld_shlibs=no | |
9266 | fi | |
9267 | ;; | |
9268 | esac | |
9269 | ;; | |
9270 | ||
9271 | sunos4*) | |
9272 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9273 | wlarc= | |
9274 | hardcode_direct=yes | |
9275 | hardcode_shlibpath_var=no | |
9276 | ;; | |
9277 | ||
9278 | *) | |
9279 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9280 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9281 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9282 | else |
9283 | ld_shlibs=no | |
9284 | fi | |
9285 | ;; | |
9286 | esac | |
9287 | ||
d50284c4 | 9288 | if test no = "$ld_shlibs"; then |
8d138742 CE |
9289 | runpath_var= |
9290 | hardcode_libdir_flag_spec= | |
9291 | export_dynamic_flag_spec= | |
9292 | whole_archive_flag_spec= | |
9293 | fi | |
9294 | else | |
9295 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9296 | case $host_os in | |
9297 | aix3*) | |
9298 | allow_undefined_flag=unsupported | |
9299 | always_export_symbols=yes | |
9300 | 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' | |
9301 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9302 | # are no directories specified by -L. | |
9303 | hardcode_minus_L=yes | |
d50284c4 | 9304 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
8d138742 CE |
9305 | # Neither direct hardcoding nor static linking is supported with a |
9306 | # broken collect2. | |
9307 | hardcode_direct=unsupported | |
9308 | fi | |
9309 | ;; | |
9310 | ||
9311 | aix[4-9]*) | |
d50284c4 | 9312 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9313 | # On IA64, the linker does run time linking by default, so we don't |
9314 | # have to do anything special. | |
9315 | aix_use_runtimelinking=no | |
9316 | exp_sym_flag='-Bexport' | |
d50284c4 | 9317 | no_entry_flag= |
8d138742 CE |
9318 | else |
9319 | # If we're using GNU nm, then we don't want the "-C" option. | |
d50284c4 CE |
9320 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9321 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9322 | # weak defined symbols like other global defined symbols, whereas | |
9323 | # GNU nm marks them as "W". | |
9324 | # While the 'weak' keyword is ignored in the Export File, we need | |
9325 | # it in the Import File for the 'aix-soname' feature, so we have | |
9326 | # to replace the "-B" option with "-P" for AIX nm. | |
8d138742 | 9327 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
d50284c4 | 9328 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
8d138742 | 9329 | else |
d50284c4 | 9330 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
8d138742 CE |
9331 | fi |
9332 | aix_use_runtimelinking=no | |
9333 | ||
9334 | # Test if we are trying to use run time linking or normal | |
9335 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
d50284c4 CE |
9336 | # have runtime linking enabled, and use it for executables. |
9337 | # For shared libraries, we enable/disable runtime linking | |
9338 | # depending on the kind of the shared library created - | |
9339 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9340 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9341 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9342 | # lib.a static archive | |
9343 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9344 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9345 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9346 | # lib.a(lib.so.V) shared, rtl:no | |
9347 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9348 | # lib.a static archive | |
8d138742 CE |
9349 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9350 | for ld_flag in $LDFLAGS; do | |
d50284c4 | 9351 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
8d138742 CE |
9352 | aix_use_runtimelinking=yes |
9353 | break | |
9354 | fi | |
9355 | done | |
d50284c4 CE |
9356 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9357 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9358 | # so we don't have lib.a shared libs to link our executables. | |
9359 | # We have to force runtime linking in this case. | |
9360 | aix_use_runtimelinking=yes | |
9361 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9362 | fi | |
8d138742 CE |
9363 | ;; |
9364 | esac | |
9365 | ||
9366 | exp_sym_flag='-bexport' | |
9367 | no_entry_flag='-bnoentry' | |
9368 | fi | |
9369 | ||
9370 | # When large executables or shared objects are built, AIX ld can | |
9371 | # have problems creating the table of contents. If linking a library | |
9372 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9373 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9374 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9375 | ||
9376 | archive_cmds='' | |
9377 | hardcode_direct=yes | |
9378 | hardcode_direct_absolute=yes | |
9379 | hardcode_libdir_separator=':' | |
9380 | link_all_deplibs=yes | |
d50284c4 CE |
9381 | file_list_spec='$wl-f,' |
9382 | case $with_aix_soname,$aix_use_runtimelinking in | |
9383 | aix,*) ;; # traditional, no import file | |
9384 | svr4,* | *,yes) # use import file | |
9385 | # The Import File defines what to hardcode. | |
9386 | hardcode_direct=no | |
9387 | hardcode_direct_absolute=no | |
9388 | ;; | |
9389 | esac | |
8d138742 | 9390 | |
d50284c4 | 9391 | if test yes = "$GCC"; then |
8d138742 CE |
9392 | case $host_os in aix4.[012]|aix4.[012].*) |
9393 | # We only want to do this on AIX 4.2 and lower, the check | |
9394 | # below for broken collect2 doesn't work under 4.3+ | |
d50284c4 | 9395 | collect2name=`$CC -print-prog-name=collect2` |
8d138742 CE |
9396 | if test -f "$collect2name" && |
9397 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9398 | then | |
9399 | # We have reworked collect2 | |
9400 | : | |
9401 | else | |
9402 | # We have old collect2 | |
9403 | hardcode_direct=unsupported | |
9404 | # It fails to find uninstalled libraries when the uninstalled | |
9405 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9406 | # to unsupported forces relinking | |
9407 | hardcode_minus_L=yes | |
9408 | hardcode_libdir_flag_spec='-L$libdir' | |
9409 | hardcode_libdir_separator= | |
9410 | fi | |
9411 | ;; | |
9412 | esac | |
9413 | shared_flag='-shared' | |
d50284c4 CE |
9414 | if test yes = "$aix_use_runtimelinking"; then |
9415 | shared_flag="$shared_flag "'$wl-G' | |
8d138742 | 9416 | fi |
d50284c4 CE |
9417 | # Need to ensure runtime linking is disabled for the traditional |
9418 | # shared library, or the linker may eventually find shared libraries | |
9419 | # /with/ Import File - we do not want to mix them. | |
9420 | shared_flag_aix='-shared' | |
9421 | shared_flag_svr4='-shared $wl-G' | |
8d138742 CE |
9422 | else |
9423 | # not using gcc | |
d50284c4 | 9424 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9425 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9426 | # chokes on -Wl,-G. The following line is correct: | |
9427 | shared_flag='-G' | |
9428 | else | |
d50284c4 CE |
9429 | if test yes = "$aix_use_runtimelinking"; then |
9430 | shared_flag='$wl-G' | |
8d138742 | 9431 | else |
d50284c4 | 9432 | shared_flag='$wl-bM:SRE' |
8d138742 | 9433 | fi |
d50284c4 CE |
9434 | shared_flag_aix='$wl-bM:SRE' |
9435 | shared_flag_svr4='$wl-G' | |
8d138742 CE |
9436 | fi |
9437 | fi | |
9438 | ||
d50284c4 | 9439 | export_dynamic_flag_spec='$wl-bexpall' |
8d138742 CE |
9440 | # It seems that -bexpall does not export symbols beginning with |
9441 | # underscore (_), so it is better to generate a list of symbols to export. | |
9442 | always_export_symbols=yes | |
d50284c4 | 9443 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
8d138742 CE |
9444 | # Warning - without using the other runtime loading flags (-brtl), |
9445 | # -berok will link without error, but may produce a broken library. | |
9446 | allow_undefined_flag='-berok' | |
9447 | # Determine the default libpath from the value encoded in an | |
9448 | # empty executable. | |
d50284c4 | 9449 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9450 | aix_libpath=$lt_cv_aix_libpath |
9451 | else | |
9452 | if ${lt_cv_aix_libpath_+:} false; then : | |
9453 | $as_echo_n "(cached) " >&6 | |
9454 | else | |
9455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 9456 | /* end confdefs.h. */ |
9457 | ||
d9898ee8 | 9458 | int |
9459 | main () | |
9460 | { | |
8d138742 | 9461 | |
d9898ee8 | 9462 | ; |
9463 | return 0; | |
9464 | } | |
9465 | _ACEOF | |
b0322a85 | 9466 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9467 | |
b0322a85 CE |
9468 | lt_aix_libpath_sed=' |
9469 | /Import File Strings/,/^$/ { | |
9470 | /^0/ { | |
9471 | s/^0 *\([^ ]*\) *$/\1/ | |
9472 | p | |
9473 | } | |
9474 | }' | |
9475 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9476 | # Check for a 64-bit object if we didn't find anything. | |
9477 | if test -z "$lt_cv_aix_libpath_"; then | |
9478 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9479 | fi | |
9480 | fi | |
9481 | rm -f core conftest.err conftest.$ac_objext \ | |
9482 | conftest$ac_exeext conftest.$ac_ext | |
9483 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9484 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9485 | fi |
d9898ee8 | 9486 | |
9487 | fi | |
9488 | ||
b0322a85 CE |
9489 | aix_libpath=$lt_cv_aix_libpath_ |
9490 | fi | |
d9898ee8 | 9491 | |
d50284c4 CE |
9492 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9493 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
8d138742 | 9494 | else |
d50284c4 CE |
9495 | if test ia64 = "$host_cpu"; then |
9496 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
8d138742 | 9497 | allow_undefined_flag="-z nodefs" |
d50284c4 | 9498 | 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" |
8d138742 CE |
9499 | else |
9500 | # Determine the default libpath from the value encoded in an | |
9501 | # empty executable. | |
d50284c4 | 9502 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9503 | aix_libpath=$lt_cv_aix_libpath |
9504 | else | |
9505 | if ${lt_cv_aix_libpath_+:} false; then : | |
9506 | $as_echo_n "(cached) " >&6 | |
9507 | else | |
9508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 9509 | /* end confdefs.h. */ |
d9898ee8 | 9510 | |
8d138742 CE |
9511 | int |
9512 | main () | |
9513 | { | |
d9898ee8 | 9514 | |
d9898ee8 | 9515 | ; |
9516 | return 0; | |
9517 | } | |
9518 | _ACEOF | |
b0322a85 | 9519 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9520 | |
b0322a85 CE |
9521 | lt_aix_libpath_sed=' |
9522 | /Import File Strings/,/^$/ { | |
9523 | /^0/ { | |
9524 | s/^0 *\([^ ]*\) *$/\1/ | |
9525 | p | |
9526 | } | |
9527 | }' | |
9528 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9529 | # Check for a 64-bit object if we didn't find anything. | |
9530 | if test -z "$lt_cv_aix_libpath_"; then | |
9531 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9532 | fi | |
9533 | fi | |
9534 | rm -f core conftest.err conftest.$ac_objext \ | |
9535 | conftest$ac_exeext conftest.$ac_ext | |
9536 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9537 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9538 | fi |
8d138742 | 9539 | |
d9898ee8 | 9540 | fi |
dd184caf | 9541 | |
b0322a85 CE |
9542 | aix_libpath=$lt_cv_aix_libpath_ |
9543 | fi | |
d9898ee8 | 9544 | |
d50284c4 | 9545 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
8d138742 CE |
9546 | # Warning - without using the other run time loading flags, |
9547 | # -berok will link without error, but may produce a broken library. | |
d50284c4 CE |
9548 | no_undefined_flag=' $wl-bernotok' |
9549 | allow_undefined_flag=' $wl-berok' | |
9550 | if test yes = "$with_gnu_ld"; then | |
b0322a85 | 9551 | # We only use this code for GNU lds that support --whole-archive. |
d50284c4 | 9552 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b0322a85 CE |
9553 | else |
9554 | # Exported symbols can be pulled into shared objects from archives | |
9555 | whole_archive_flag_spec='$convenience' | |
9556 | fi | |
8d138742 | 9557 | archive_cmds_need_lc=yes |
d50284c4 CE |
9558 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9559 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9560 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9561 | if test svr4 != "$with_aix_soname"; then | |
9562 | # This is similar to how AIX traditionally builds its shared libraries. | |
9563 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
9564 | fi | |
9565 | if test aix != "$with_aix_soname"; then | |
9566 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
9567 | else | |
9568 | # used by -dlpreopen to get the symbols | |
9569 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9570 | fi | |
9571 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
8d138742 CE |
9572 | fi |
9573 | fi | |
9574 | ;; | |
9575 | ||
9576 | amigaos*) | |
9577 | case $host_cpu in | |
9578 | powerpc) | |
9579 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9580 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9581 | archive_expsym_cmds='' |
9582 | ;; | |
9583 | m68k) | |
9584 | 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)' | |
9585 | hardcode_libdir_flag_spec='-L$libdir' | |
9586 | hardcode_minus_L=yes | |
9587 | ;; | |
9588 | esac | |
9589 | ;; | |
9590 | ||
9591 | bsdi[45]*) | |
9592 | export_dynamic_flag_spec=-rdynamic | |
9593 | ;; | |
9594 | ||
9595 | cygwin* | mingw* | pw32* | cegcc*) | |
9596 | # When not using gcc, we currently assume that we are using | |
9597 | # Microsoft Visual C++. | |
9598 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9599 | # no search path for DLLs. | |
b0322a85 CE |
9600 | case $cc_basename in |
9601 | cl*) | |
9602 | # Native MSVC | |
9603 | hardcode_libdir_flag_spec=' ' | |
9604 | allow_undefined_flag=unsupported | |
9605 | always_export_symbols=yes | |
9606 | file_list_spec='@' | |
9607 | # Tell ltmain to make .lib files, not .a files. | |
9608 | libext=lib | |
9609 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9610 | shrext_cmds=.dll |
b0322a85 | 9611 | # FIXME: Setting linknames here is a bad hack. |
d50284c4 CE |
9612 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9613 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9614 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9615 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9616 | else | |
9617 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9618 | fi~ | |
9619 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9620 | linknames=' | |
b0322a85 CE |
9621 | # The linker will not automatically build a static lib if we build a DLL. |
9622 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9623 | enable_shared_with_static_runtimes=yes | |
9624 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9625 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9626 | # Don't use ranlib | |
9627 | old_postinstall_cmds='chmod 644 $oldlib' | |
9628 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
d50284c4 CE |
9629 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9630 | case $lt_outputfile in | |
9631 | *.exe|*.EXE) ;; | |
9632 | *) | |
9633 | lt_outputfile=$lt_outputfile.exe | |
9634 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9635 | ;; | |
9636 | esac~ | |
9637 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9638 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9639 | $RM "$lt_outputfile.manifest"; | |
9640 | fi' | |
b0322a85 CE |
9641 | ;; |
9642 | *) | |
9643 | # Assume MSVC wrapper | |
9644 | hardcode_libdir_flag_spec=' ' | |
9645 | allow_undefined_flag=unsupported | |
9646 | # Tell ltmain to make .lib files, not .a files. | |
9647 | libext=lib | |
9648 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9649 | shrext_cmds=.dll |
b0322a85 CE |
9650 | # FIXME: Setting linknames here is a bad hack. |
9651 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9652 | # The linker will automatically build a .lib file if we build a DLL. | |
9653 | old_archive_from_new_cmds='true' | |
9654 | # FIXME: Should let the user specify the lib program. | |
9655 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9656 | enable_shared_with_static_runtimes=yes | |
9657 | ;; | |
9658 | esac | |
8d138742 CE |
9659 | ;; |
9660 | ||
9661 | darwin* | rhapsody*) | |
9662 | ||
9663 | ||
9664 | archive_cmds_need_lc=no | |
9665 | hardcode_direct=no | |
9666 | hardcode_automatic=yes | |
9667 | hardcode_shlibpath_var=unsupported | |
d50284c4 CE |
9668 | if test yes = "$lt_cv_ld_force_load"; then |
9669 | 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\"`' | |
b0322a85 CE |
9670 | |
9671 | else | |
9672 | whole_archive_flag_spec='' | |
9673 | fi | |
8d138742 | 9674 | link_all_deplibs=yes |
d50284c4 | 9675 | allow_undefined_flag=$_lt_dar_allow_undefined |
8d138742 | 9676 | case $cc_basename in |
d50284c4 | 9677 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
8d138742 CE |
9678 | *) _lt_dar_can_shared=$GCC ;; |
9679 | esac | |
d50284c4 | 9680 | if test yes = "$_lt_dar_can_shared"; then |
b0322a85 | 9681 | output_verbose_link_cmd=func_echo_all |
d50284c4 CE |
9682 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9683 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9684 | 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" | |
9685 | 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" | |
8d138742 CE |
9686 | |
9687 | else | |
9688 | ld_shlibs=no | |
9689 | fi | |
9690 | ||
9691 | ;; | |
9692 | ||
9693 | dgux*) | |
9694 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9695 | hardcode_libdir_flag_spec='-L$libdir' | |
9696 | hardcode_shlibpath_var=no | |
9697 | ;; | |
9698 | ||
8d138742 CE |
9699 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9700 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9701 | # does not break anything, and helps significantly (at the cost of a little | |
9702 | # extra space). | |
9703 | freebsd2.2*) | |
9704 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9705 | hardcode_libdir_flag_spec='-R$libdir' | |
9706 | hardcode_direct=yes | |
9707 | hardcode_shlibpath_var=no | |
9708 | ;; | |
9709 | ||
9710 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
b0322a85 | 9711 | freebsd2.*) |
8d138742 CE |
9712 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9713 | hardcode_direct=yes | |
9714 | hardcode_minus_L=yes | |
9715 | hardcode_shlibpath_var=no | |
9716 | ;; | |
9717 | ||
9718 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9719 | freebsd* | dragonfly*) | |
b0322a85 | 9720 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9721 | hardcode_libdir_flag_spec='-R$libdir' |
9722 | hardcode_direct=yes | |
9723 | hardcode_shlibpath_var=no | |
9724 | ;; | |
9725 | ||
9726 | hpux9*) | |
d50284c4 CE |
9727 | if test yes = "$GCC"; then |
9728 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
8d138742 | 9729 | else |
d50284c4 | 9730 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
8d138742 | 9731 | fi |
d50284c4 | 9732 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
8d138742 CE |
9733 | hardcode_libdir_separator=: |
9734 | hardcode_direct=yes | |
9735 | ||
9736 | # hardcode_minus_L: Not really in the search PATH, | |
9737 | # but as the default location of the library. | |
9738 | hardcode_minus_L=yes | |
d50284c4 | 9739 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
9740 | ;; |
9741 | ||
9742 | hpux10*) | |
d50284c4 CE |
9743 | if test yes,no = "$GCC,$with_gnu_ld"; then |
9744 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
9745 | else |
9746 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9747 | fi | |
d50284c4 CE |
9748 | if test no = "$with_gnu_ld"; then |
9749 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
9750 | hardcode_libdir_separator=: |
9751 | hardcode_direct=yes | |
9752 | hardcode_direct_absolute=yes | |
d50284c4 | 9753 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
9754 | # hardcode_minus_L: Not really in the search PATH, |
9755 | # but as the default location of the library. | |
9756 | hardcode_minus_L=yes | |
9757 | fi | |
9758 | ;; | |
9759 | ||
9760 | hpux11*) | |
d50284c4 | 9761 | if test yes,no = "$GCC,$with_gnu_ld"; then |
8d138742 CE |
9762 | case $host_cpu in |
9763 | hppa*64*) | |
d50284c4 | 9764 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9765 | ;; |
9766 | ia64*) | |
d50284c4 | 9767 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9768 | ;; |
9769 | *) | |
d50284c4 | 9770 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9771 | ;; |
9772 | esac | |
9773 | else | |
9774 | case $host_cpu in | |
9775 | hppa*64*) | |
d50284c4 | 9776 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9777 | ;; |
9778 | ia64*) | |
d50284c4 | 9779 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9780 | ;; |
9781 | *) | |
b0322a85 CE |
9782 | |
9783 | # Older versions of the 11.00 compiler do not understand -b yet | |
9784 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9786 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9787 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9788 | $as_echo_n "(cached) " >&6 | |
9789 | else | |
9790 | lt_cv_prog_compiler__b=no | |
d50284c4 | 9791 | save_LDFLAGS=$LDFLAGS |
b0322a85 CE |
9792 | LDFLAGS="$LDFLAGS -b" |
9793 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9794 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9795 | # The linker can only warn and ignore the option if not recognized | |
9796 | # So say no if there are warnings | |
9797 | if test -s conftest.err; then | |
9798 | # Append any errors to the config.log. | |
9799 | cat conftest.err 1>&5 | |
9800 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9801 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9802 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9803 | lt_cv_prog_compiler__b=yes | |
9804 | fi | |
9805 | else | |
9806 | lt_cv_prog_compiler__b=yes | |
9807 | fi | |
9808 | fi | |
9809 | $RM -r conftest* | |
d50284c4 | 9810 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9811 | |
9812 | fi | |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9814 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9815 | ||
d50284c4 CE |
9816 | if test yes = "$lt_cv_prog_compiler__b"; then |
9817 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b0322a85 CE |
9818 | else |
9819 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9820 | fi | |
9821 | ||
8d138742 CE |
9822 | ;; |
9823 | esac | |
9824 | fi | |
d50284c4 CE |
9825 | if test no = "$with_gnu_ld"; then |
9826 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
9827 | hardcode_libdir_separator=: |
9828 | ||
9829 | case $host_cpu in | |
9830 | hppa*64*|ia64*) | |
9831 | hardcode_direct=no | |
9832 | hardcode_shlibpath_var=no | |
9833 | ;; | |
9834 | *) | |
9835 | hardcode_direct=yes | |
9836 | hardcode_direct_absolute=yes | |
d50284c4 | 9837 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
9838 | |
9839 | # hardcode_minus_L: Not really in the search PATH, | |
9840 | # but as the default location of the library. | |
9841 | hardcode_minus_L=yes | |
9842 | ;; | |
9843 | esac | |
9844 | fi | |
9845 | ;; | |
9846 | ||
9847 | irix5* | irix6* | nonstopux*) | |
d50284c4 CE |
9848 | if test yes = "$GCC"; then |
9849 | archive_cmds='$CC -shared $pic_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' | |
8d138742 CE |
9850 | # Try to use the -exported_symbol ld option, if it does not |
9851 | # work, assume that -exports_file does not work either and | |
9852 | # implicitly export all symbols. | |
b0322a85 CE |
9853 | # This should be the same for all languages, so no per-tag cache variable. |
9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9855 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9856 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9857 | $as_echo_n "(cached) " >&6 | |
9858 | else | |
d50284c4 CE |
9859 | save_LDFLAGS=$LDFLAGS |
9860 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b0322a85 CE |
9861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9862 | /* end confdefs.h. */ | |
9863 | int foo (void) { return 0; } | |
d9898ee8 | 9864 | _ACEOF |
b0322a85 CE |
9865 | if ac_fn_c_try_link "$LINENO"; then : |
9866 | lt_cv_irix_exported_symbol=yes | |
d9898ee8 | 9867 | else |
b0322a85 | 9868 | lt_cv_irix_exported_symbol=no |
d9898ee8 | 9869 | fi |
b0322a85 CE |
9870 | rm -f core conftest.err conftest.$ac_objext \ |
9871 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 9872 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9873 | fi |
9874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9875 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
d50284c4 CE |
9876 | if test yes = "$lt_cv_irix_exported_symbol"; then |
9877 | archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib' | |
b0322a85 | 9878 | fi |
8d138742 | 9879 | else |
d50284c4 CE |
9880 | 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' |
9881 | 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' | |
8d138742 CE |
9882 | fi |
9883 | archive_cmds_need_lc='no' | |
d50284c4 | 9884 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9885 | hardcode_libdir_separator=: |
9886 | inherit_rpath=yes | |
9887 | link_all_deplibs=yes | |
9888 | ;; | |
d9898ee8 | 9889 | |
d50284c4 CE |
9890 | linux*) |
9891 | case $cc_basename in | |
9892 | tcc*) | |
9893 | # Fabrice Bellard et al's Tiny C Compiler | |
9894 | ld_shlibs=yes | |
9895 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9896 | ;; | |
9897 | esac | |
9898 | ;; | |
9899 | ||
8d138742 CE |
9900 | netbsd*) |
9901 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9902 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9903 | else | |
9904 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9905 | fi | |
9906 | hardcode_libdir_flag_spec='-R$libdir' | |
9907 | hardcode_direct=yes | |
9908 | hardcode_shlibpath_var=no | |
9909 | ;; | |
d9898ee8 | 9910 | |
8d138742 CE |
9911 | newsos6) |
9912 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9913 | hardcode_direct=yes | |
d50284c4 | 9914 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9915 | hardcode_libdir_separator=: |
9916 | hardcode_shlibpath_var=no | |
9917 | ;; | |
d9898ee8 | 9918 | |
8d138742 CE |
9919 | *nto* | *qnx*) |
9920 | ;; | |
d9898ee8 | 9921 | |
d50284c4 | 9922 | openbsd* | bitrig*) |
8d138742 CE |
9923 | if test -f /usr/libexec/ld.so; then |
9924 | hardcode_direct=yes | |
9925 | hardcode_shlibpath_var=no | |
9926 | hardcode_direct_absolute=yes | |
d50284c4 | 9927 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
8d138742 | 9928 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d50284c4 CE |
9929 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
9930 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9931 | export_dynamic_flag_spec='$wl-E' | |
8d138742 | 9932 | else |
d50284c4 CE |
9933 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9934 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
8d138742 CE |
9935 | fi |
9936 | else | |
9937 | ld_shlibs=no | |
9938 | fi | |
9939 | ;; | |
d9898ee8 | 9940 | |
8d138742 CE |
9941 | os2*) |
9942 | hardcode_libdir_flag_spec='-L$libdir' | |
9943 | hardcode_minus_L=yes | |
9944 | allow_undefined_flag=unsupported | |
d50284c4 CE |
9945 | shrext_cmds=.dll |
9946 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9947 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9948 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9949 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9950 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9951 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9952 | emximp -o $lib $output_objdir/$libname.def' | |
9953 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9954 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9955 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9956 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9957 | prefix_cmds="$SED"~ | |
9958 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9959 | prefix_cmds="$prefix_cmds -e 1d"; | |
9960 | fi~ | |
9961 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9962 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9963 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9964 | emximp -o $lib $output_objdir/$libname.def' | |
9965 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9966 | enable_shared_with_static_runtimes=yes | |
8d138742 | 9967 | ;; |
dd184caf | 9968 | |
8d138742 | 9969 | osf3*) |
d50284c4 CE |
9970 | if test yes = "$GCC"; then |
9971 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
9972 | 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' | |
8d138742 CE |
9973 | else |
9974 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 9975 | 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' |
8d138742 CE |
9976 | fi |
9977 | archive_cmds_need_lc='no' | |
d50284c4 | 9978 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9979 | hardcode_libdir_separator=: |
9980 | ;; | |
d9898ee8 | 9981 | |
8d138742 | 9982 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
d50284c4 CE |
9983 | if test yes = "$GCC"; then |
9984 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
9985 | archive_cmds='$CC -shared$allow_undefined_flag $pic_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' | |
9986 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
8d138742 CE |
9987 | else |
9988 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 9989 | 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' |
8d138742 | 9990 | 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~ |
d50284c4 | 9991 | $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' |
d9898ee8 | 9992 | |
8d138742 CE |
9993 | # Both c and cxx compiler support -rpath directly |
9994 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9995 | fi | |
9996 | archive_cmds_need_lc='no' | |
9997 | hardcode_libdir_separator=: | |
9998 | ;; | |
dd184caf | 9999 | |
8d138742 CE |
10000 | solaris*) |
10001 | no_undefined_flag=' -z defs' | |
d50284c4 CE |
10002 | if test yes = "$GCC"; then |
10003 | wlarc='$wl' | |
10004 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10005 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10006 | $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
8d138742 CE |
10007 | else |
10008 | case `$CC -V 2>&1` in | |
10009 | *"Compilers 5.0"*) | |
10010 | wlarc='' | |
d50284c4 | 10011 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8d138742 | 10012 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10013 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
8d138742 CE |
10014 | ;; |
10015 | *) | |
d50284c4 CE |
10016 | wlarc='$wl' |
10017 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10018 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10019 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
8d138742 CE |
10020 | ;; |
10021 | esac | |
10022 | fi | |
10023 | hardcode_libdir_flag_spec='-R$libdir' | |
10024 | hardcode_shlibpath_var=no | |
10025 | case $host_os in | |
10026 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10027 | *) | |
10028 | # The compiler driver will combine and reorder linker options, | |
d50284c4 | 10029 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
8d138742 CE |
10030 | # but is careful enough not to reorder. |
10031 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
d50284c4 CE |
10032 | if test yes = "$GCC"; then |
10033 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
8d138742 CE |
10034 | else |
10035 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10036 | fi | |
10037 | ;; | |
10038 | esac | |
10039 | link_all_deplibs=yes | |
10040 | ;; | |
d9898ee8 | 10041 | |
8d138742 | 10042 | sunos4*) |
d50284c4 | 10043 | if test sequent = "$host_vendor"; then |
8d138742 CE |
10044 | # Use $CC to link under sequent, because it throws in some extra .o |
10045 | # files that make .init and .fini sections work. | |
d50284c4 | 10046 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10047 | else |
10048 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10049 | fi | |
10050 | hardcode_libdir_flag_spec='-L$libdir' | |
10051 | hardcode_direct=yes | |
10052 | hardcode_minus_L=yes | |
10053 | hardcode_shlibpath_var=no | |
10054 | ;; | |
d9898ee8 | 10055 | |
8d138742 CE |
10056 | sysv4) |
10057 | case $host_vendor in | |
10058 | sni) | |
10059 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10060 | hardcode_direct=yes # is this really true??? | |
10061 | ;; | |
10062 | siemens) | |
10063 | ## LD is ld it makes a PLAMLIB | |
10064 | ## CC just makes a GrossModule. | |
10065 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10066 | reload_cmds='$CC -r -o $output$reload_objs' | |
10067 | hardcode_direct=no | |
10068 | ;; | |
10069 | motorola) | |
10070 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10071 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10072 | ;; | |
10073 | esac | |
10074 | runpath_var='LD_RUN_PATH' | |
10075 | hardcode_shlibpath_var=no | |
10076 | ;; | |
dd184caf | 10077 | |
8d138742 CE |
10078 | sysv4.3*) |
10079 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10080 | hardcode_shlibpath_var=no | |
10081 | export_dynamic_flag_spec='-Bexport' | |
10082 | ;; | |
d9898ee8 | 10083 | |
8d138742 CE |
10084 | sysv4*MP*) |
10085 | if test -d /usr/nec; then | |
10086 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10087 | hardcode_shlibpath_var=no | |
10088 | runpath_var=LD_RUN_PATH | |
10089 | hardcode_runpath_var=yes | |
10090 | ld_shlibs=yes | |
10091 | fi | |
10092 | ;; | |
d9898ee8 | 10093 | |
8d138742 | 10094 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d50284c4 | 10095 | no_undefined_flag='$wl-z,text' |
8d138742 CE |
10096 | archive_cmds_need_lc=no |
10097 | hardcode_shlibpath_var=no | |
10098 | runpath_var='LD_RUN_PATH' | |
dd184caf | 10099 | |
d50284c4 CE |
10100 | if test yes = "$GCC"; then |
10101 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10102 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10103 | else |
d50284c4 CE |
10104 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10105 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10106 | fi |
10107 | ;; | |
d9898ee8 | 10108 | |
8d138742 | 10109 | sysv5* | sco3.2v5* | sco5v6*) |
d50284c4 | 10110 | # Note: We CANNOT use -z defs as we might desire, because we do not |
8d138742 CE |
10111 | # link with -lc, and that would cause any symbols used from libc to |
10112 | # always be unresolved, which means just about no library would | |
10113 | # ever link correctly. If we're not using GNU ld we use -z text | |
10114 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10115 | # as -z defs. | |
d50284c4 CE |
10116 | no_undefined_flag='$wl-z,text' |
10117 | allow_undefined_flag='$wl-z,nodefs' | |
8d138742 CE |
10118 | archive_cmds_need_lc=no |
10119 | hardcode_shlibpath_var=no | |
d50284c4 | 10120 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
8d138742 CE |
10121 | hardcode_libdir_separator=':' |
10122 | link_all_deplibs=yes | |
d50284c4 | 10123 | export_dynamic_flag_spec='$wl-Bexport' |
8d138742 | 10124 | runpath_var='LD_RUN_PATH' |
d9898ee8 | 10125 | |
d50284c4 CE |
10126 | if test yes = "$GCC"; then |
10127 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10128 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10129 | else |
d50284c4 CE |
10130 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10131 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10132 | fi |
10133 | ;; | |
d9898ee8 | 10134 | |
8d138742 CE |
10135 | uts4*) |
10136 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10137 | hardcode_libdir_flag_spec='-L$libdir' | |
10138 | hardcode_shlibpath_var=no | |
10139 | ;; | |
d9898ee8 | 10140 | |
8d138742 CE |
10141 | *) |
10142 | ld_shlibs=no | |
10143 | ;; | |
10144 | esac | |
d9898ee8 | 10145 | |
d50284c4 | 10146 | if test sni = "$host_vendor"; then |
8d138742 CE |
10147 | case $host in |
10148 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
d50284c4 | 10149 | export_dynamic_flag_spec='$wl-Blargedynsym' |
8d138742 CE |
10150 | ;; |
10151 | esac | |
10152 | fi | |
10153 | fi | |
d9898ee8 | 10154 | |
b0322a85 | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 | 10156 | $as_echo "$ld_shlibs" >&6; } |
d50284c4 | 10157 | test no = "$ld_shlibs" && can_build_shared=no |
d9898ee8 | 10158 | |
8d138742 | 10159 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 10160 | |
d9898ee8 | 10161 | |
10162 | ||
d9898ee8 | 10163 | |
d9898ee8 | 10164 | |
d9898ee8 | 10165 | |
d9898ee8 | 10166 | |
d9898ee8 | 10167 | |
d9898ee8 | 10168 | |
d9898ee8 | 10169 | |
d9898ee8 | 10170 | |
d9898ee8 | 10171 | |
d9898ee8 | 10172 | |
d9898ee8 | 10173 | |
d9898ee8 | 10174 | |
8d138742 CE |
10175 | # |
10176 | # Do we need to explicitly link libc? | |
10177 | # | |
10178 | case "x$archive_cmds_need_lc" in | |
10179 | x|xyes) | |
10180 | # Assume -lc should be added | |
10181 | archive_cmds_need_lc=yes | |
d9898ee8 | 10182 | |
d50284c4 | 10183 | if test yes,yes = "$GCC,$enable_shared"; then |
8d138742 CE |
10184 | case $archive_cmds in |
10185 | *'~'*) | |
10186 | # FIXME: we may have to deal with multi-command sequences. | |
10187 | ;; | |
10188 | '$CC '*) | |
10189 | # Test whether the compiler implicitly links with -lc since on some | |
10190 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10191 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 10193 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
10194 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10195 | $as_echo_n "(cached) " >&6 | |
10196 | else | |
10197 | $RM conftest* | |
10198 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 10199 | |
b0322a85 | 10200 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 | 10201 | (eval $ac_compile) 2>&5 |
d9898ee8 | 10202 | ac_status=$? |
b0322a85 CE |
10203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10204 | test $ac_status = 0; } 2>conftest.err; then | |
10205 | soname=conftest | |
10206 | lib=conftest | |
10207 | libobjs=conftest.$ac_objext | |
10208 | deplibs= | |
10209 | wl=$lt_prog_compiler_wl | |
10210 | pic_flag=$lt_prog_compiler_pic | |
10211 | compiler_flags=-v | |
10212 | linker_flags=-v | |
10213 | verstring= | |
10214 | output_objdir=. | |
10215 | libname=conftest | |
10216 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10217 | allow_undefined_flag= | |
10218 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
10219 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10220 | ac_status=$? | |
b0322a85 CE |
10221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10222 | test $ac_status = 0; } | |
10223 | then | |
10224 | lt_cv_archive_cmds_need_lc=no | |
10225 | else | |
10226 | lt_cv_archive_cmds_need_lc=yes | |
10227 | fi | |
10228 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10229 | else | |
10230 | cat conftest.err 1>&5 | |
10231 | fi | |
10232 | $RM conftest* | |
10233 | ||
10234 | fi | |
10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10236 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10237 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
8d138742 CE |
10238 | ;; |
10239 | esac | |
10240 | fi | |
10241 | ;; | |
10242 | esac | |
d9898ee8 | 10243 | |
d9898ee8 | 10244 | |
d9898ee8 | 10245 | |
d9898ee8 | 10246 | |
d9898ee8 | 10247 | |
d9898ee8 | 10248 | |
d9898ee8 | 10249 | |
d9898ee8 | 10250 | |
d9898ee8 | 10251 | |
d9898ee8 | 10252 | |
d9898ee8 | 10253 | |
10254 | ||
d9898ee8 | 10255 | |
d9898ee8 | 10256 | |
d9898ee8 | 10257 | |
d9898ee8 | 10258 | |
10259 | ||
d9898ee8 | 10260 | |
d9898ee8 | 10261 | |
d9898ee8 | 10262 | |
d9898ee8 | 10263 | |
d9898ee8 | 10264 | |
d9898ee8 | 10265 | |
d9898ee8 | 10266 | |
d9898ee8 | 10267 | |
d9898ee8 | 10268 | |
d9898ee8 | 10269 | |
d9898ee8 | 10270 | |
d9898ee8 | 10271 | |
d9898ee8 | 10272 | |
d9898ee8 | 10273 | |
d9898ee8 | 10274 | |
d9898ee8 | 10275 | |
d9898ee8 | 10276 | |
d9898ee8 | 10277 | |
d9898ee8 | 10278 | |
d9898ee8 | 10279 | |
d9898ee8 | 10280 | |
d9898ee8 | 10281 | |
d9898ee8 | 10282 | |
d9898ee8 | 10283 | |
d9898ee8 | 10284 | |
d9898ee8 | 10285 | |
d9898ee8 | 10286 | |
d9898ee8 | 10287 | |
d9898ee8 | 10288 | |
d9898ee8 | 10289 | |
d9898ee8 | 10290 | |
d9898ee8 | 10291 | |
d9898ee8 | 10292 | |
d9898ee8 | 10293 | |
d9898ee8 | 10294 | |
d9898ee8 | 10295 | |
d9898ee8 | 10296 | |
d9898ee8 | 10297 | |
d9898ee8 | 10298 | |
d9898ee8 | 10299 | |
d9898ee8 | 10300 | |
d9898ee8 | 10301 | |
d9898ee8 | 10302 | |
d9898ee8 | 10303 | |
d9898ee8 | 10304 | |
d9898ee8 | 10305 | |
d9898ee8 | 10306 | |
d9898ee8 | 10307 | |
d9898ee8 | 10308 | |
d9898ee8 | 10309 | |
d9898ee8 | 10310 | |
d9898ee8 | 10311 | |
d9898ee8 | 10312 | |
d9898ee8 | 10313 | |
d9898ee8 | 10314 | |
d9898ee8 | 10315 | |
d9898ee8 | 10316 | |
d9898ee8 | 10317 | |
d9898ee8 | 10318 | |
d9898ee8 | 10319 | |
d9898ee8 | 10320 | |
d9898ee8 | 10321 | |
d9898ee8 | 10322 | |
d9898ee8 | 10323 | |
d9898ee8 | 10324 | |
d9898ee8 | 10325 | |
d9898ee8 | 10326 | |
d9898ee8 | 10327 | |
d9898ee8 | 10328 | |
d9898ee8 | 10329 | |
d9898ee8 | 10330 | |
d9898ee8 | 10331 | |
d9898ee8 | 10332 | |
d9898ee8 | 10333 | |
d9898ee8 | 10334 | |
d9898ee8 | 10335 | |
d9898ee8 | 10336 | |
d9898ee8 | 10337 | |
d9898ee8 | 10338 | |
d9898ee8 | 10339 | |
d9898ee8 | 10340 | |
d9898ee8 | 10341 | |
d9898ee8 | 10342 | |
d9898ee8 | 10343 | |
d9898ee8 | 10344 | |
d9898ee8 | 10345 | |
d9898ee8 | 10346 | |
d9898ee8 | 10347 | |
d9898ee8 | 10348 | |
d9898ee8 | 10349 | |
d9898ee8 | 10350 | |
d9898ee8 | 10351 | |
d9898ee8 | 10352 | |
d9898ee8 | 10353 | |
d9898ee8 | 10354 | |
d9898ee8 | 10355 | |
d9898ee8 | 10356 | |
d9898ee8 | 10357 | |
d9898ee8 | 10358 | |
d9898ee8 | 10359 | |
d9898ee8 | 10360 | |
d9898ee8 | 10361 | |
d9898ee8 | 10362 | |
d9898ee8 | 10363 | |
d9898ee8 | 10364 | |
d9898ee8 | 10365 | |
10366 | ||
d9898ee8 | 10367 | |
d9898ee8 | 10368 | |
d9898ee8 | 10369 | |
d9898ee8 | 10370 | |
d9898ee8 | 10371 | |
10372 | ||
d9898ee8 | 10373 | |
d9898ee8 | 10374 | |
10375 | ||
dd184caf | 10376 | |
d9898ee8 | 10377 | |
d9898ee8 | 10378 | |
d9898ee8 | 10379 | |
d9898ee8 | 10380 | |
d9898ee8 | 10381 | |
d9898ee8 | 10382 | |
d9898ee8 | 10383 | |
d9898ee8 | 10384 | |
d9898ee8 | 10385 | |
d9898ee8 | 10386 | |
d9898ee8 | 10387 | |
d9898ee8 | 10388 | |
d9898ee8 | 10389 | |
10390 | ||
d9898ee8 | 10391 | |
d9898ee8 | 10392 | |
10393 | ||
d9898ee8 | 10394 | |
b0322a85 | 10395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
10396 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10397 | ||
d50284c4 | 10398 | if test yes = "$GCC"; then |
8d138742 | 10399 | case $host_os in |
d50284c4 CE |
10400 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10401 | *) lt_awk_arg='/^libraries:/' ;; | |
d9898ee8 | 10402 | esac |
b0322a85 | 10403 | case $host_os in |
d50284c4 CE |
10404 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10405 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b0322a85 CE |
10406 | esac |
10407 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10408 | case $lt_search_path_spec in | |
10409 | *\;*) | |
8d138742 CE |
10410 | # if the path contains ";" then we assume it to be the separator |
10411 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10412 | # assumed that no part of a normal pathname contains ";" but that should | |
10413 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
10414 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10415 | ;; | |
10416 | *) | |
10417 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10418 | ;; | |
10419 | esac | |
8d138742 | 10420 | # Ok, now we have the path, separated by spaces, we can step through it |
d50284c4 | 10421 | # and add multilib dir if necessary... |
8d138742 | 10422 | lt_tmp_lt_search_path_spec= |
d50284c4 CE |
10423 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10424 | # ...but if some path component already ends with the multilib dir we assume | |
10425 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10426 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10427 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10428 | lt_multi_os_dir= | |
10429 | ;; | |
10430 | esac | |
8d138742 | 10431 | for lt_sys_path in $lt_search_path_spec; do |
d50284c4 CE |
10432 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10433 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10434 | elif test -n "$lt_multi_os_dir"; then | |
8d138742 CE |
10435 | test -d "$lt_sys_path" && \ |
10436 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
d9898ee8 | 10437 | fi |
10438 | done | |
b0322a85 | 10439 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d50284c4 CE |
10440 | BEGIN {RS = " "; FS = "/|\n";} { |
10441 | lt_foo = ""; | |
10442 | lt_count = 0; | |
8d138742 CE |
10443 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10444 | if ($lt_i != "" && $lt_i != ".") { | |
10445 | if ($lt_i == "..") { | |
10446 | lt_count++; | |
10447 | } else { | |
10448 | if (lt_count == 0) { | |
d50284c4 | 10449 | lt_foo = "/" $lt_i lt_foo; |
8d138742 CE |
10450 | } else { |
10451 | lt_count--; | |
10452 | } | |
10453 | } | |
10454 | } | |
10455 | } | |
10456 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10457 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10458 | }'` | |
b0322a85 CE |
10459 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10460 | # for these hosts. | |
10461 | case $host_os in | |
10462 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
d50284c4 | 10463 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b0322a85 CE |
10464 | esac |
10465 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d9898ee8 | 10466 | else |
8d138742 | 10467 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
d9898ee8 | 10468 | fi |
8d138742 CE |
10469 | library_names_spec= |
10470 | libname_spec='lib$name' | |
10471 | soname_spec= | |
d50284c4 | 10472 | shrext_cmds=.so |
8d138742 CE |
10473 | postinstall_cmds= |
10474 | postuninstall_cmds= | |
10475 | finish_cmds= | |
10476 | finish_eval= | |
10477 | shlibpath_var= | |
10478 | shlibpath_overrides_runpath=unknown | |
10479 | version_type=none | |
10480 | dynamic_linker="$host_os ld.so" | |
10481 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10482 | need_lib_prefix=unknown | |
10483 | hardcode_into_libs=no | |
d9898ee8 | 10484 | |
8d138742 CE |
10485 | # when you set need_version to no, make sure it does not cause -set_version |
10486 | # flags to be left without arguments | |
10487 | need_version=unknown | |
d9898ee8 | 10488 | |
d50284c4 CE |
10489 | |
10490 | ||
8d138742 CE |
10491 | case $host_os in |
10492 | aix3*) | |
b0322a85 | 10493 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 10494 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
8d138742 | 10495 | shlibpath_var=LIBPATH |
d9898ee8 | 10496 | |
8d138742 | 10497 | # AIX 3 has no versioning support, so we append a major version to the name. |
d50284c4 | 10498 | soname_spec='$libname$release$shared_ext$major' |
8d138742 | 10499 | ;; |
d9898ee8 | 10500 | |
8d138742 | 10501 | aix[4-9]*) |
b0322a85 | 10502 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10503 | need_lib_prefix=no |
10504 | need_version=no | |
10505 | hardcode_into_libs=yes | |
d50284c4 | 10506 | if test ia64 = "$host_cpu"; then |
8d138742 | 10507 | # AIX 5 supports IA64 |
d50284c4 | 10508 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
8d138742 CE |
10509 | shlibpath_var=LD_LIBRARY_PATH |
10510 | else | |
10511 | # With GCC up to 2.95.x, collect2 would create an import file | |
10512 | # for dependence libraries. The import file would start with | |
d50284c4 CE |
10513 | # the line '#! .'. This would cause the generated library to |
10514 | # depend on '.', always an invalid library. This was fixed in | |
8d138742 CE |
10515 | # development snapshots of GCC prior to 3.0. |
10516 | case $host_os in | |
10517 | aix4 | aix4.[01] | aix4.[01].*) | |
10518 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10519 | echo ' yes ' | |
d50284c4 | 10520 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
8d138742 CE |
10521 | : |
10522 | else | |
10523 | can_build_shared=no | |
10524 | fi | |
10525 | ;; | |
10526 | esac | |
d50284c4 CE |
10527 | # Using Import Files as archive members, it is possible to support |
10528 | # filename-based versioning of shared library archives on AIX. While | |
10529 | # this would work for both with and without runtime linking, it will | |
10530 | # prevent static linking of such archives. So we do filename-based | |
10531 | # shared library versioning with .so extension only, which is used | |
10532 | # when both runtime linking and shared linking is enabled. | |
10533 | # Unfortunately, runtime linking may impact performance, so we do | |
10534 | # not want this to be the default eventually. Also, we use the | |
10535 | # versioned .so libs for executables only if there is the -brtl | |
10536 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10537 | # To allow for filename-based versioning support, we need to create | |
10538 | # libNAME.so.V as an archive file, containing: | |
10539 | # *) an Import File, referring to the versioned filename of the | |
10540 | # archive as well as the shared archive member, telling the | |
10541 | # bitwidth (32 or 64) of that shared object, and providing the | |
10542 | # list of exported symbols of that shared object, eventually | |
10543 | # decorated with the 'weak' keyword | |
10544 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10545 | # it being seen by the linker. | |
10546 | # At run time we better use the real file rather than another symlink, | |
10547 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10548 | ||
10549 | case $with_aix_soname,$aix_use_runtimelinking in | |
10550 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
8d138742 CE |
10551 | # soname into executable. Probably we can add versioning support to |
10552 | # collect2, so additional links can be useful in future. | |
d50284c4 CE |
10553 | aix,yes) # traditional libtool |
10554 | dynamic_linker='AIX unversionable lib.so' | |
8d138742 CE |
10555 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10556 | # instead of lib<name>.a to let people know that these are not | |
10557 | # typical AIX shared libraries. | |
d50284c4 CE |
10558 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10559 | ;; | |
10560 | aix,no) # traditional AIX only | |
10561 | dynamic_linker='AIX lib.a(lib.so.V)' | |
8d138742 CE |
10562 | # We preserve .a as extension for shared libraries through AIX4.2 |
10563 | # and later when we are not doing run time linking. | |
d50284c4 CE |
10564 | library_names_spec='$libname$release.a $libname.a' |
10565 | soname_spec='$libname$release$shared_ext$major' | |
10566 | ;; | |
10567 | svr4,*) # full svr4 only | |
10568 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10569 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10570 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10571 | shlibpath_overrides_runpath=yes | |
10572 | ;; | |
10573 | *,yes) # both, prefer svr4 | |
10574 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10575 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10576 | # unpreferred sharedlib libNAME.a needs extra handling | |
10577 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
10578 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
10579 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10580 | shlibpath_overrides_runpath=yes | |
10581 | ;; | |
10582 | *,no) # both, prefer aix | |
10583 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10584 | library_names_spec='$libname$release.a $libname.a' | |
10585 | soname_spec='$libname$release$shared_ext$major' | |
10586 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10587 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
10588 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
10589 | ;; | |
10590 | esac | |
8d138742 | 10591 | shlibpath_var=LIBPATH |
d9898ee8 | 10592 | fi |
8d138742 | 10593 | ;; |
d9898ee8 | 10594 | |
8d138742 CE |
10595 | amigaos*) |
10596 | case $host_cpu in | |
10597 | powerpc) | |
10598 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10599 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
d50284c4 | 10600 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
d9898ee8 | 10601 | ;; |
8d138742 CE |
10602 | m68k) |
10603 | library_names_spec='$libname.ixlibrary $libname.a' | |
10604 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
d50284c4 | 10605 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' |
8d138742 CE |
10606 | ;; |
10607 | esac | |
10608 | ;; | |
d9898ee8 | 10609 | |
8d138742 | 10610 | beos*) |
d50284c4 | 10611 | library_names_spec='$libname$shared_ext' |
8d138742 CE |
10612 | dynamic_linker="$host_os ld.so" |
10613 | shlibpath_var=LIBRARY_PATH | |
10614 | ;; | |
d9898ee8 | 10615 | |
8d138742 | 10616 | bsdi[45]*) |
b0322a85 | 10617 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 | 10618 | need_version=no |
d50284c4 CE |
10619 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10620 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10621 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10622 | shlibpath_var=LD_LIBRARY_PATH | |
10623 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10624 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10625 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10626 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10627 | # libtool to hard-code these into programs | |
10628 | ;; | |
d9898ee8 | 10629 | |
8d138742 CE |
10630 | cygwin* | mingw* | pw32* | cegcc*) |
10631 | version_type=windows | |
d50284c4 | 10632 | shrext_cmds=.dll |
8d138742 CE |
10633 | need_version=no |
10634 | need_lib_prefix=no | |
d9898ee8 | 10635 | |
b0322a85 CE |
10636 | case $GCC,$cc_basename in |
10637 | yes,*) | |
10638 | # gcc | |
8d138742 CE |
10639 | library_names_spec='$libname.dll.a' |
10640 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10641 | postinstall_cmds='base_file=`basename \$file`~ |
10642 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
8d138742 CE |
10643 | dldir=$destdir/`dirname \$dlpath`~ |
10644 | test -d \$dldir || mkdir -p \$dldir~ | |
10645 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10646 | chmod a+x \$dldir/$dlname~ | |
10647 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10648 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10649 | fi' | |
10650 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10651 | dlpath=$dir/\$dldll~ | |
10652 | $RM \$dlpath' | |
10653 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 10654 | |
8d138742 CE |
10655 | case $host_os in |
10656 | cygwin*) | |
10657 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
d50284c4 | 10658 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b0322a85 CE |
10659 | |
10660 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
8d138742 CE |
10661 | ;; |
10662 | mingw* | cegcc*) | |
10663 | # MinGW DLLs use traditional 'lib' prefix | |
d50284c4 | 10664 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
8d138742 CE |
10665 | ;; |
10666 | pw32*) | |
10667 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
d50284c4 | 10668 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
8d138742 CE |
10669 | ;; |
10670 | esac | |
b0322a85 CE |
10671 | dynamic_linker='Win32 ld.exe' |
10672 | ;; | |
10673 | ||
10674 | *,cl*) | |
10675 | # Native MSVC | |
10676 | libname_spec='$name' | |
d50284c4 CE |
10677 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10678 | library_names_spec='$libname.dll.lib' | |
b0322a85 CE |
10679 | |
10680 | case $build_os in | |
10681 | mingw*) | |
10682 | sys_lib_search_path_spec= | |
10683 | lt_save_ifs=$IFS | |
10684 | IFS=';' | |
10685 | for lt_path in $LIB | |
10686 | do | |
10687 | IFS=$lt_save_ifs | |
10688 | # Let DOS variable expansion print the short 8.3 style file name. | |
10689 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10690 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10691 | done | |
10692 | IFS=$lt_save_ifs | |
10693 | # Convert to MSYS style. | |
10694 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10695 | ;; | |
10696 | cygwin*) | |
10697 | # Convert to unix form, then to dos form, then back to unix form | |
10698 | # but this time dos style (no spaces!) so that the unix form looks | |
10699 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10700 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10701 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10702 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10703 | ;; | |
10704 | *) | |
d50284c4 | 10705 | sys_lib_search_path_spec=$LIB |
b0322a85 CE |
10706 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10707 | # It is most probably a Windows format PATH. | |
10708 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10709 | else | |
10710 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10711 | fi | |
10712 | # FIXME: find the short name or the path components, as spaces are | |
10713 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10714 | ;; | |
10715 | esac | |
10716 | ||
10717 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10718 | postinstall_cmds='base_file=`basename \$file`~ |
10719 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b0322a85 CE |
10720 | dldir=$destdir/`dirname \$dlpath`~ |
10721 | test -d \$dldir || mkdir -p \$dldir~ | |
10722 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10723 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10724 | dlpath=$dir/\$dldll~ | |
10725 | $RM \$dlpath' | |
10726 | shlibpath_overrides_runpath=yes | |
10727 | dynamic_linker='Win32 link.exe' | |
8d138742 | 10728 | ;; |
dd184caf | 10729 | |
8d138742 | 10730 | *) |
b0322a85 | 10731 | # Assume MSVC wrapper |
d50284c4 | 10732 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b0322a85 | 10733 | dynamic_linker='Win32 ld.exe' |
8d138742 CE |
10734 | ;; |
10735 | esac | |
8d138742 CE |
10736 | # FIXME: first we should search . and the directory the executable is in |
10737 | shlibpath_var=PATH | |
10738 | ;; | |
dd184caf | 10739 | |
8d138742 CE |
10740 | darwin* | rhapsody*) |
10741 | dynamic_linker="$host_os dyld" | |
10742 | version_type=darwin | |
10743 | need_lib_prefix=no | |
10744 | need_version=no | |
d50284c4 CE |
10745 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10746 | soname_spec='$libname$release$major$shared_ext' | |
8d138742 CE |
10747 | shlibpath_overrides_runpath=yes |
10748 | shlibpath_var=DYLD_LIBRARY_PATH | |
10749 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
d9898ee8 | 10750 | |
8d138742 CE |
10751 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
10752 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10753 | ;; | |
d9898ee8 | 10754 | |
8d138742 | 10755 | dgux*) |
b0322a85 | 10756 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10757 | need_lib_prefix=no |
10758 | need_version=no | |
d50284c4 CE |
10759 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10760 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10761 | shlibpath_var=LD_LIBRARY_PATH |
10762 | ;; | |
d9898ee8 | 10763 | |
8d138742 CE |
10764 | freebsd* | dragonfly*) |
10765 | # DragonFly does not have aout. When/if they implement a new | |
10766 | # versioning mechanism, adjust this. | |
10767 | if test -x /usr/bin/objformat; then | |
10768 | objformat=`/usr/bin/objformat` | |
10769 | else | |
10770 | case $host_os in | |
b0322a85 | 10771 | freebsd[23].*) objformat=aout ;; |
8d138742 CE |
10772 | *) objformat=elf ;; |
10773 | esac | |
10774 | fi | |
10775 | version_type=freebsd-$objformat | |
10776 | case $version_type in | |
10777 | freebsd-elf*) | |
d50284c4 CE |
10778 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10779 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10780 | need_version=no |
10781 | need_lib_prefix=no | |
10782 | ;; | |
10783 | freebsd-*) | |
d50284c4 | 10784 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
8d138742 CE |
10785 | need_version=yes |
10786 | ;; | |
10787 | esac | |
10788 | shlibpath_var=LD_LIBRARY_PATH | |
10789 | case $host_os in | |
b0322a85 | 10790 | freebsd2.*) |
8d138742 CE |
10791 | shlibpath_overrides_runpath=yes |
10792 | ;; | |
10793 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10794 | shlibpath_overrides_runpath=yes | |
10795 | hardcode_into_libs=yes | |
10796 | ;; | |
10797 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10798 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10799 | shlibpath_overrides_runpath=no | |
10800 | hardcode_into_libs=yes | |
10801 | ;; | |
10802 | *) # from 4.6 on, and DragonFly | |
10803 | shlibpath_overrides_runpath=yes | |
10804 | hardcode_into_libs=yes | |
10805 | ;; | |
10806 | esac | |
10807 | ;; | |
10808 | ||
b0322a85 CE |
10809 | haiku*) |
10810 | version_type=linux # correct to gnu/linux during the next big refactor | |
10811 | need_lib_prefix=no | |
10812 | need_version=no | |
10813 | dynamic_linker="$host_os runtime_loader" | |
d50284c4 CE |
10814 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10815 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 | 10816 | shlibpath_var=LIBRARY_PATH |
d50284c4 | 10817 | shlibpath_overrides_runpath=no |
b0322a85 | 10818 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
8d138742 CE |
10819 | hardcode_into_libs=yes |
10820 | ;; | |
10821 | ||
10822 | hpux9* | hpux10* | hpux11*) | |
10823 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10824 | # link against other versions. | |
10825 | version_type=sunos | |
10826 | need_lib_prefix=no | |
10827 | need_version=no | |
10828 | case $host_cpu in | |
10829 | ia64*) | |
10830 | shrext_cmds='.so' | |
10831 | hardcode_into_libs=yes | |
10832 | dynamic_linker="$host_os dld.so" | |
10833 | shlibpath_var=LD_LIBRARY_PATH | |
10834 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10835 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10836 | soname_spec='$libname$release$shared_ext$major' | |
10837 | if test 32 = "$HPUX_IA64_MODE"; then | |
8d138742 | 10838 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
d50284c4 | 10839 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
8d138742 CE |
10840 | else |
10841 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d50284c4 | 10842 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
8d138742 | 10843 | fi |
8d138742 CE |
10844 | ;; |
10845 | hppa*64*) | |
10846 | shrext_cmds='.sl' | |
10847 | hardcode_into_libs=yes | |
10848 | dynamic_linker="$host_os dld.sl" | |
10849 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10850 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10851 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10852 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10853 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10854 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10855 | ;; | |
10856 | *) | |
10857 | shrext_cmds='.sl' | |
10858 | dynamic_linker="$host_os dld.sl" | |
10859 | shlibpath_var=SHLIB_PATH | |
10860 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
d50284c4 CE |
10861 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10862 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10863 | ;; |
10864 | esac | |
b0322a85 | 10865 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
8d138742 | 10866 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
10867 | # or fails outright, so override atomically: |
10868 | install_override_mode=555 | |
8d138742 CE |
10869 | ;; |
10870 | ||
10871 | interix[3-9]*) | |
b0322a85 | 10872 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10873 | need_lib_prefix=no |
10874 | need_version=no | |
d50284c4 CE |
10875 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10876 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10877 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10878 | shlibpath_var=LD_LIBRARY_PATH | |
10879 | shlibpath_overrides_runpath=no | |
10880 | hardcode_into_libs=yes | |
10881 | ;; | |
10882 | ||
10883 | irix5* | irix6* | nonstopux*) | |
10884 | case $host_os in | |
10885 | nonstopux*) version_type=nonstopux ;; | |
10886 | *) | |
d50284c4 | 10887 | if test yes = "$lt_cv_prog_gnu_ld"; then |
b0322a85 | 10888 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10889 | else |
10890 | version_type=irix | |
10891 | fi ;; | |
10892 | esac | |
10893 | need_lib_prefix=no | |
10894 | need_version=no | |
d50284c4 CE |
10895 | soname_spec='$libname$release$shared_ext$major' |
10896 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
8d138742 CE |
10897 | case $host_os in |
10898 | irix5* | nonstopux*) | |
10899 | libsuff= shlibsuff= | |
10900 | ;; | |
10901 | *) | |
10902 | case $LD in # libtool.m4 will add one of these switches to LD | |
10903 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10904 | libsuff= shlibsuff= libmagic=32-bit;; | |
10905 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10906 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10907 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10908 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10909 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10910 | esac | |
10911 | ;; | |
10912 | esac | |
10913 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10914 | shlibpath_overrides_runpath=no | |
d50284c4 CE |
10915 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
10916 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
8d138742 CE |
10917 | hardcode_into_libs=yes |
10918 | ;; | |
10919 | ||
10920 | # No shared lib support for Linux oldld, aout, or coff. | |
10921 | linux*oldld* | linux*aout* | linux*coff*) | |
10922 | dynamic_linker=no | |
10923 | ;; | |
10924 | ||
d50284c4 CE |
10925 | linux*android*) |
10926 | version_type=none # Android doesn't support versioned libraries. | |
10927 | need_lib_prefix=no | |
10928 | need_version=no | |
10929 | library_names_spec='$libname$release$shared_ext' | |
10930 | soname_spec='$libname$release$shared_ext' | |
10931 | finish_cmds= | |
10932 | shlibpath_var=LD_LIBRARY_PATH | |
10933 | shlibpath_overrides_runpath=yes | |
10934 | ||
10935 | # This implies no fast_install, which is unacceptable. | |
10936 | # Some rework will be needed to allow for fast_install | |
10937 | # before this can be enabled. | |
10938 | hardcode_into_libs=yes | |
10939 | ||
10940 | dynamic_linker='Android linker' | |
10941 | # Don't embed -rpath directories since the linker doesn't support them. | |
10942 | hardcode_libdir_flag_spec='-L$libdir' | |
10943 | ;; | |
10944 | ||
b0322a85 | 10945 | # This must be glibc/ELF. |
d50284c4 | 10946 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 | 10947 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10948 | need_lib_prefix=no |
10949 | need_version=no | |
d50284c4 CE |
10950 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10951 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10952 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10953 | shlibpath_var=LD_LIBRARY_PATH | |
10954 | shlibpath_overrides_runpath=no | |
b0322a85 | 10955 | |
8d138742 | 10956 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
10957 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10958 | $as_echo_n "(cached) " >&6 | |
10959 | else | |
10960 | lt_cv_shlibpath_overrides_runpath=no | |
10961 | save_LDFLAGS=$LDFLAGS | |
10962 | save_libdir=$libdir | |
10963 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10964 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
10966 | /* end confdefs.h. */ |
10967 | ||
10968 | int | |
10969 | main () | |
10970 | { | |
10971 | ||
10972 | ; | |
10973 | return 0; | |
10974 | } | |
10975 | _ACEOF | |
b0322a85 CE |
10976 | if ac_fn_c_try_link "$LINENO"; then : |
10977 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10978 | lt_cv_shlibpath_overrides_runpath=yes | |
ac40fd9e | 10979 | fi |
b0322a85 CE |
10980 | fi |
10981 | rm -f core conftest.err conftest.$ac_objext \ | |
10982 | conftest$ac_exeext conftest.$ac_ext | |
10983 | LDFLAGS=$save_LDFLAGS | |
10984 | libdir=$save_libdir | |
dd184caf | 10985 | |
d9898ee8 | 10986 | fi |
dd184caf | 10987 | |
b0322a85 | 10988 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
d9898ee8 | 10989 | |
8d138742 CE |
10990 | # This implies no fast_install, which is unacceptable. |
10991 | # Some rework will be needed to allow for fast_install | |
10992 | # before this can be enabled. | |
10993 | hardcode_into_libs=yes | |
d9898ee8 | 10994 | |
8d138742 CE |
10995 | # Add ABI-specific directories to the system library path. |
10996 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 10997 | |
d50284c4 CE |
10998 | # Ideally, we could use ldconfig to report *all* directores which are |
10999 | # searched for libraries, however this is still not possible. Aside from not | |
11000 | # being certain /sbin/ldconfig is available, command | |
11001 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11002 | # even though it is searched at run-time. Try to do the best guess by | |
11003 | # appending ld.so.conf contents (and includes) to the search path. | |
8d138742 | 11004 | if test -f /etc/ld.so.conf; then |
b0322a85 | 11005 | 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' ' '` |
8d138742 CE |
11006 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
11007 | fi | |
d9898ee8 | 11008 | |
8d138742 CE |
11009 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11010 | # powerpc, because MkLinux only supported shared libraries with the | |
11011 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11012 | # most powerpc-linux boxes support dynamic linking these days and | |
11013 | # people can always --disable-shared, the test was removed, and we | |
11014 | # assume the GNU/Linux dynamic linker is in use. | |
11015 | dynamic_linker='GNU/Linux ld.so' | |
d9898ee8 | 11016 | ;; |
d9898ee8 | 11017 | |
8d138742 CE |
11018 | netbsd*) |
11019 | version_type=sunos | |
11020 | need_lib_prefix=no | |
11021 | need_version=no | |
11022 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
d50284c4 | 11023 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
8d138742 CE |
11024 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11025 | dynamic_linker='NetBSD (a.out) ld.so' | |
11026 | else | |
d50284c4 CE |
11027 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11028 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11029 | dynamic_linker='NetBSD ld.elf_so' |
11030 | fi | |
11031 | shlibpath_var=LD_LIBRARY_PATH | |
11032 | shlibpath_overrides_runpath=yes | |
11033 | hardcode_into_libs=yes | |
11034 | ;; | |
d9898ee8 | 11035 | |
8d138742 | 11036 | newsos6) |
b0322a85 | 11037 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11038 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11039 | shlibpath_var=LD_LIBRARY_PATH |
11040 | shlibpath_overrides_runpath=yes | |
11041 | ;; | |
d9898ee8 | 11042 | |
8d138742 CE |
11043 | *nto* | *qnx*) |
11044 | version_type=qnx | |
11045 | need_lib_prefix=no | |
11046 | need_version=no | |
d50284c4 CE |
11047 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11048 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11049 | shlibpath_var=LD_LIBRARY_PATH |
11050 | shlibpath_overrides_runpath=no | |
11051 | hardcode_into_libs=yes | |
11052 | dynamic_linker='ldqnx.so' | |
11053 | ;; | |
d9898ee8 | 11054 | |
d50284c4 | 11055 | openbsd* | bitrig*) |
8d138742 | 11056 | version_type=sunos |
d50284c4 | 11057 | sys_lib_dlsearch_path_spec=/usr/lib |
8d138742 | 11058 | need_lib_prefix=no |
d50284c4 CE |
11059 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11060 | need_version=no | |
8d138742 | 11061 | else |
d50284c4 | 11062 | need_version=yes |
8d138742 | 11063 | fi |
d50284c4 CE |
11064 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11065 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11066 | shlibpath_var=LD_LIBRARY_PATH | |
11067 | shlibpath_overrides_runpath=yes | |
8d138742 | 11068 | ;; |
d9898ee8 | 11069 | |
8d138742 CE |
11070 | os2*) |
11071 | libname_spec='$name' | |
d50284c4 CE |
11072 | version_type=windows |
11073 | shrext_cmds=.dll | |
11074 | need_version=no | |
8d138742 | 11075 | need_lib_prefix=no |
d50284c4 CE |
11076 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11077 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11078 | v=$($ECHO $release$versuffix | tr -d .-); | |
11079 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11080 | $ECHO $n$v`$shared_ext' | |
11081 | library_names_spec='${libname}_dll.$libext' | |
8d138742 | 11082 | dynamic_linker='OS/2 ld.exe' |
d50284c4 CE |
11083 | shlibpath_var=BEGINLIBPATH |
11084 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11085 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11086 | postinstall_cmds='base_file=`basename \$file`~ | |
11087 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11088 | dldir=$destdir/`dirname \$dlpath`~ | |
11089 | test -d \$dldir || mkdir -p \$dldir~ | |
11090 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11091 | chmod a+x \$dldir/$dlname~ | |
11092 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11093 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11094 | fi' | |
11095 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11096 | dlpath=$dir/\$dldll~ | |
11097 | $RM \$dlpath' | |
8d138742 | 11098 | ;; |
d9898ee8 | 11099 | |
8d138742 CE |
11100 | osf3* | osf4* | osf5*) |
11101 | version_type=osf | |
11102 | need_lib_prefix=no | |
11103 | need_version=no | |
d50284c4 CE |
11104 | soname_spec='$libname$release$shared_ext$major' |
11105 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
8d138742 CE |
11106 | shlibpath_var=LD_LIBRARY_PATH |
11107 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
d50284c4 | 11108 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8d138742 | 11109 | ;; |
d9898ee8 | 11110 | |
8d138742 CE |
11111 | rdos*) |
11112 | dynamic_linker=no | |
11113 | ;; | |
d9898ee8 | 11114 | |
8d138742 | 11115 | solaris*) |
b0322a85 | 11116 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11117 | need_lib_prefix=no |
11118 | need_version=no | |
d50284c4 CE |
11119 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11120 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11121 | shlibpath_var=LD_LIBRARY_PATH |
11122 | shlibpath_overrides_runpath=yes | |
11123 | hardcode_into_libs=yes | |
11124 | # ldd complains unless libraries are executable | |
11125 | postinstall_cmds='chmod +x $lib' | |
11126 | ;; | |
d9898ee8 | 11127 | |
8d138742 CE |
11128 | sunos4*) |
11129 | version_type=sunos | |
d50284c4 | 11130 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
8d138742 CE |
11131 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11132 | shlibpath_var=LD_LIBRARY_PATH | |
11133 | shlibpath_overrides_runpath=yes | |
d50284c4 | 11134 | if test yes = "$with_gnu_ld"; then |
8d138742 CE |
11135 | need_lib_prefix=no |
11136 | fi | |
11137 | need_version=yes | |
11138 | ;; | |
d9898ee8 | 11139 | |
8d138742 | 11140 | sysv4 | sysv4.3*) |
b0322a85 | 11141 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11142 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11143 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11144 | shlibpath_var=LD_LIBRARY_PATH |
11145 | case $host_vendor in | |
11146 | sni) | |
11147 | shlibpath_overrides_runpath=no | |
11148 | need_lib_prefix=no | |
11149 | runpath_var=LD_RUN_PATH | |
11150 | ;; | |
11151 | siemens) | |
11152 | need_lib_prefix=no | |
11153 | ;; | |
11154 | motorola) | |
11155 | need_lib_prefix=no | |
11156 | need_version=no | |
11157 | shlibpath_overrides_runpath=no | |
11158 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11159 | ;; | |
11160 | esac | |
11161 | ;; | |
d9898ee8 | 11162 | |
8d138742 | 11163 | sysv4*MP*) |
d50284c4 | 11164 | if test -d /usr/nec; then |
b0322a85 | 11165 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11166 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11167 | soname_spec='$libname$shared_ext.$major' | |
8d138742 CE |
11168 | shlibpath_var=LD_LIBRARY_PATH |
11169 | fi | |
11170 | ;; | |
d9898ee8 | 11171 | |
8d138742 | 11172 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
d50284c4 | 11173 | version_type=sco |
8d138742 CE |
11174 | need_lib_prefix=no |
11175 | need_version=no | |
d50284c4 CE |
11176 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11177 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11178 | shlibpath_var=LD_LIBRARY_PATH |
11179 | shlibpath_overrides_runpath=yes | |
11180 | hardcode_into_libs=yes | |
d50284c4 | 11181 | if test yes = "$with_gnu_ld"; then |
8d138742 CE |
11182 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11183 | else | |
11184 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11185 | case $host_os in | |
11186 | sco3.2v5*) | |
11187 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
d9898ee8 | 11188 | ;; |
11189 | esac | |
8d138742 CE |
11190 | fi |
11191 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11192 | ;; | |
d9898ee8 | 11193 | |
8d138742 CE |
11194 | tpf*) |
11195 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 11196 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11197 | need_lib_prefix=no |
11198 | need_version=no | |
d50284c4 | 11199 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11200 | shlibpath_var=LD_LIBRARY_PATH |
11201 | shlibpath_overrides_runpath=no | |
11202 | hardcode_into_libs=yes | |
11203 | ;; | |
d9898ee8 | 11204 | |
8d138742 | 11205 | uts4*) |
b0322a85 | 11206 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11207 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11208 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11209 | shlibpath_var=LD_LIBRARY_PATH |
11210 | ;; | |
d9898ee8 | 11211 | |
8d138742 CE |
11212 | *) |
11213 | dynamic_linker=no | |
11214 | ;; | |
d9898ee8 | 11215 | esac |
b0322a85 | 11216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 | 11217 | $as_echo "$dynamic_linker" >&6; } |
d50284c4 | 11218 | test no = "$dynamic_linker" && can_build_shared=no |
8d138742 CE |
11219 | |
11220 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
d50284c4 | 11221 | if test yes = "$GCC"; then |
8d138742 CE |
11222 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11223 | fi | |
11224 | ||
d50284c4 CE |
11225 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11226 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
8d138742 | 11227 | fi |
d50284c4 CE |
11228 | |
11229 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11230 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
8d138742 | 11231 | fi |
d9898ee8 | 11232 | |
d50284c4 CE |
11233 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11234 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11235 | ||
11236 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11237 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11238 | ||
11239 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11240 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11241 | ||
11242 | ||
11243 | ||
11244 | ||
11245 | ||
11246 | ||
d9898ee8 | 11247 | |
11248 | ||
d9898ee8 | 11249 | |
d9898ee8 | 11250 | |
d9898ee8 | 11251 | |
d9898ee8 | 11252 | |
d9898ee8 | 11253 | |
d9898ee8 | 11254 | |
d9898ee8 | 11255 | |
d9898ee8 | 11256 | |
d9898ee8 | 11257 | |
ac40fd9e | 11258 | |
ac40fd9e | 11259 | |
d9898ee8 | 11260 | |
11261 | ||
d9898ee8 | 11262 | |
d9898ee8 | 11263 | |
d9898ee8 | 11264 | |
d9898ee8 | 11265 | |
d9898ee8 | 11266 | |
d9898ee8 | 11267 | |
d9898ee8 | 11268 | |
d9898ee8 | 11269 | |
d9898ee8 | 11270 | |
d9898ee8 | 11271 | |
d9898ee8 | 11272 | |
d9898ee8 | 11273 | |
d9898ee8 | 11274 | |
d9898ee8 | 11275 | |
11276 | ||
d9898ee8 | 11277 | |
d9898ee8 | 11278 | |
d9898ee8 | 11279 | |
11280 | ||
d9898ee8 | 11281 | |
d9898ee8 | 11282 | |
d9898ee8 | 11283 | |
d9898ee8 | 11284 | |
d9898ee8 | 11285 | |
d9898ee8 | 11286 | |
d9898ee8 | 11287 | |
ac40fd9e | 11288 | |
d9898ee8 | 11289 | |
d9898ee8 | 11290 | |
d9898ee8 | 11291 | |
d9898ee8 | 11292 | |
d9898ee8 | 11293 | |
d9898ee8 | 11294 | |
d9898ee8 | 11295 | |
d9898ee8 | 11296 | |
d9898ee8 | 11297 | |
d9898ee8 | 11298 | |
d9898ee8 | 11299 | |
d9898ee8 | 11300 | |
ac40fd9e | 11301 | |
d9898ee8 | 11302 | |
d9898ee8 | 11303 | |
d9898ee8 | 11304 | |
d9898ee8 | 11305 | |
d9898ee8 | 11306 | |
d9898ee8 | 11307 | |
d9898ee8 | 11308 | |
d9898ee8 | 11309 | |
d9898ee8 | 11310 | |
d9898ee8 | 11311 | |
d9898ee8 | 11312 | |
d9898ee8 | 11313 | |
d9898ee8 | 11314 | |
d9898ee8 | 11315 | |
d9898ee8 | 11316 | |
d9898ee8 | 11317 | |
d9898ee8 | 11318 | |
d9898ee8 | 11319 | |
ac40fd9e | 11320 | |
d9898ee8 | 11321 | |
d9898ee8 | 11322 | |
d9898ee8 | 11323 | |
d9898ee8 | 11324 | |
d9898ee8 | 11325 | |
d9898ee8 | 11326 | |
d9898ee8 | 11327 | |
d9898ee8 | 11328 | |
d9898ee8 | 11329 | |
8d138742 CE |
11330 | |
11331 | ||
11332 | ||
b0322a85 CE |
11333 | |
11334 | ||
11335 | ||
11336 | ||
11337 | ||
11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
11339 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11340 | hardcode_action= | |
11341 | if test -n "$hardcode_libdir_flag_spec" || | |
11342 | test -n "$runpath_var" || | |
d50284c4 | 11343 | test yes = "$hardcode_automatic"; then |
8d138742 CE |
11344 | |
11345 | # We can hardcode non-existent directories. | |
d50284c4 | 11346 | if test no != "$hardcode_direct" && |
d9898ee8 | 11347 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11348 | # have to relink, otherwise we might link with an installed library | |
11349 | # when we should be linking with a yet-to-be-installed one | |
d50284c4 CE |
11350 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11351 | test no != "$hardcode_minus_L"; then | |
d9898ee8 | 11352 | # Linking always hardcodes the temporary library directory. |
8d138742 | 11353 | hardcode_action=relink |
d9898ee8 | 11354 | else |
11355 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8d138742 | 11356 | hardcode_action=immediate |
d9898ee8 | 11357 | fi |
11358 | else | |
11359 | # We cannot hardcode anything, or else we can only hardcode existing | |
11360 | # directories. | |
8d138742 | 11361 | hardcode_action=unsupported |
d9898ee8 | 11362 | fi |
b0322a85 | 11363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 | 11364 | $as_echo "$hardcode_action" >&6; } |
d9898ee8 | 11365 | |
d50284c4 CE |
11366 | if test relink = "$hardcode_action" || |
11367 | test yes = "$inherit_rpath"; then | |
d9898ee8 | 11368 | # Fast installation is not supported |
11369 | enable_fast_install=no | |
d50284c4 CE |
11370 | elif test yes = "$shlibpath_overrides_runpath" || |
11371 | test no = "$enable_shared"; then | |
d9898ee8 | 11372 | # Fast installation is not necessary |
11373 | enable_fast_install=needless | |
11374 | fi | |
11375 | ||
11376 | ||
d9898ee8 | 11377 | |
d9898ee8 | 11378 | |
d9898ee8 | 11379 | |
d9898ee8 | 11380 | |
d50284c4 | 11381 | if test yes != "$enable_dlopen"; then |
8d138742 CE |
11382 | enable_dlopen=unknown |
11383 | enable_dlopen_self=unknown | |
11384 | enable_dlopen_self_static=unknown | |
11385 | else | |
11386 | lt_cv_dlopen=no | |
11387 | lt_cv_dlopen_libs= | |
d9898ee8 | 11388 | |
8d138742 CE |
11389 | case $host_os in |
11390 | beos*) | |
d50284c4 | 11391 | lt_cv_dlopen=load_add_on |
8d138742 CE |
11392 | lt_cv_dlopen_libs= |
11393 | lt_cv_dlopen_self=yes | |
11394 | ;; | |
d9898ee8 | 11395 | |
8d138742 | 11396 | mingw* | pw32* | cegcc*) |
d50284c4 | 11397 | lt_cv_dlopen=LoadLibrary |
8d138742 CE |
11398 | lt_cv_dlopen_libs= |
11399 | ;; | |
d9898ee8 | 11400 | |
8d138742 | 11401 | cygwin*) |
d50284c4 | 11402 | lt_cv_dlopen=dlopen |
8d138742 CE |
11403 | lt_cv_dlopen_libs= |
11404 | ;; | |
d9898ee8 | 11405 | |
8d138742 | 11406 | darwin*) |
d50284c4 | 11407 | # if libdl is installed we need to link against it |
b0322a85 | 11408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11409 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11410 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11411 | $as_echo_n "(cached) " >&6 |
11412 | else | |
11413 | ac_check_lib_save_LIBS=$LIBS | |
11414 | LIBS="-ldl $LIBS" | |
b0322a85 | 11415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11416 | /* end confdefs.h. */ |
d9898ee8 | 11417 | |
8d138742 CE |
11418 | /* Override any GCC internal prototype to avoid an error. |
11419 | Use char because int might match the return type of a GCC | |
11420 | builtin and then its argument prototype would still apply. */ | |
11421 | #ifdef __cplusplus | |
11422 | extern "C" | |
11423 | #endif | |
11424 | char dlopen (); | |
11425 | int | |
11426 | main () | |
11427 | { | |
11428 | return dlopen (); | |
11429 | ; | |
11430 | return 0; | |
11431 | } | |
b0322a85 CE |
11432 | _ACEOF |
11433 | if ac_fn_c_try_link "$LINENO"; then : | |
11434 | ac_cv_lib_dl_dlopen=yes | |
8d138742 | 11435 | else |
b0322a85 | 11436 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11437 | fi |
b0322a85 CE |
11438 | rm -f core conftest.err conftest.$ac_objext \ |
11439 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11440 | LIBS=$ac_check_lib_save_LIBS |
11441 | fi | |
b0322a85 CE |
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11443 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11444 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
d50284c4 | 11445 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11446 | else |
d9898ee8 | 11447 | |
d50284c4 | 11448 | lt_cv_dlopen=dyld |
b0322a85 CE |
11449 | lt_cv_dlopen_libs= |
11450 | lt_cv_dlopen_self=yes | |
d9898ee8 | 11451 | |
b0322a85 CE |
11452 | fi |
11453 | ||
11454 | ;; | |
d9898ee8 | 11455 | |
d50284c4 CE |
11456 | tpf*) |
11457 | # Don't try to run any link tests for TPF. We know it's impossible | |
11458 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11459 | lt_cv_dlopen=dlopen | |
11460 | lt_cv_dlopen_libs= | |
11461 | lt_cv_dlopen_self=no | |
11462 | ;; | |
11463 | ||
b0322a85 CE |
11464 | *) |
11465 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11466 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d50284c4 | 11467 | lt_cv_dlopen=shl_load |
b0322a85 CE |
11468 | else |
11469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11470 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11471 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11472 | $as_echo_n "(cached) " >&6 | |
11473 | else | |
11474 | ac_check_lib_save_LIBS=$LIBS | |
11475 | LIBS="-ldld $LIBS" | |
11476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11477 | /* end confdefs.h. */ | |
d9898ee8 | 11478 | |
8d138742 CE |
11479 | /* Override any GCC internal prototype to avoid an error. |
11480 | Use char because int might match the return type of a GCC | |
11481 | builtin and then its argument prototype would still apply. */ | |
11482 | #ifdef __cplusplus | |
11483 | extern "C" | |
11484 | #endif | |
b0322a85 | 11485 | char shl_load (); |
8d138742 CE |
11486 | int |
11487 | main () | |
11488 | { | |
b0322a85 | 11489 | return shl_load (); |
8d138742 CE |
11490 | ; |
11491 | return 0; | |
11492 | } | |
11493 | _ACEOF | |
b0322a85 CE |
11494 | if ac_fn_c_try_link "$LINENO"; then : |
11495 | ac_cv_lib_dld_shl_load=yes | |
8d138742 | 11496 | else |
b0322a85 | 11497 | ac_cv_lib_dld_shl_load=no |
8d138742 | 11498 | fi |
b0322a85 CE |
11499 | rm -f core conftest.err conftest.$ac_objext \ |
11500 | conftest$ac_exeext conftest.$ac_ext | |
11501 | LIBS=$ac_check_lib_save_LIBS | |
8d138742 | 11502 | fi |
b0322a85 CE |
11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11504 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11505 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
d50284c4 | 11506 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
b0322a85 CE |
11507 | else |
11508 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11509 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
d50284c4 | 11510 | lt_cv_dlopen=dlopen |
8d138742 | 11511 | else |
b0322a85 | 11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11513 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11514 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11515 | $as_echo_n "(cached) " >&6 |
11516 | else | |
11517 | ac_check_lib_save_LIBS=$LIBS | |
11518 | LIBS="-ldl $LIBS" | |
b0322a85 | 11519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11520 | /* end confdefs.h. */ |
d9898ee8 | 11521 | |
8d138742 CE |
11522 | /* Override any GCC internal prototype to avoid an error. |
11523 | Use char because int might match the return type of a GCC | |
11524 | builtin and then its argument prototype would still apply. */ | |
11525 | #ifdef __cplusplus | |
11526 | extern "C" | |
11527 | #endif | |
11528 | char dlopen (); | |
11529 | int | |
11530 | main () | |
11531 | { | |
11532 | return dlopen (); | |
11533 | ; | |
11534 | return 0; | |
11535 | } | |
11536 | _ACEOF | |
b0322a85 | 11537 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11538 | ac_cv_lib_dl_dlopen=yes |
11539 | else | |
b0322a85 | 11540 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11541 | fi |
b0322a85 CE |
11542 | rm -f core conftest.err conftest.$ac_objext \ |
11543 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11544 | LIBS=$ac_check_lib_save_LIBS |
11545 | fi | |
b0322a85 | 11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11547 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11548 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 11549 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11550 | else |
b0322a85 | 11551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 11552 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 11553 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
11554 | $as_echo_n "(cached) " >&6 |
11555 | else | |
11556 | ac_check_lib_save_LIBS=$LIBS | |
11557 | LIBS="-lsvld $LIBS" | |
b0322a85 | 11558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11559 | /* end confdefs.h. */ |
d9898ee8 | 11560 | |
8d138742 CE |
11561 | /* Override any GCC internal prototype to avoid an error. |
11562 | Use char because int might match the return type of a GCC | |
11563 | builtin and then its argument prototype would still apply. */ | |
11564 | #ifdef __cplusplus | |
11565 | extern "C" | |
11566 | #endif | |
11567 | char dlopen (); | |
11568 | int | |
11569 | main () | |
11570 | { | |
11571 | return dlopen (); | |
11572 | ; | |
11573 | return 0; | |
11574 | } | |
11575 | _ACEOF | |
b0322a85 | 11576 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11577 | ac_cv_lib_svld_dlopen=yes |
11578 | else | |
b0322a85 | 11579 | ac_cv_lib_svld_dlopen=no |
8d138742 | 11580 | fi |
b0322a85 CE |
11581 | rm -f core conftest.err conftest.$ac_objext \ |
11582 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11583 | LIBS=$ac_check_lib_save_LIBS |
11584 | fi | |
b0322a85 | 11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 11586 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 11587 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d50284c4 | 11588 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
8d138742 | 11589 | else |
b0322a85 | 11590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 11591 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 11592 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
11593 | $as_echo_n "(cached) " >&6 |
11594 | else | |
11595 | ac_check_lib_save_LIBS=$LIBS | |
11596 | LIBS="-ldld $LIBS" | |
b0322a85 | 11597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11598 | /* end confdefs.h. */ |
d9898ee8 | 11599 | |
8d138742 CE |
11600 | /* Override any GCC internal prototype to avoid an error. |
11601 | Use char because int might match the return type of a GCC | |
11602 | builtin and then its argument prototype would still apply. */ | |
11603 | #ifdef __cplusplus | |
11604 | extern "C" | |
11605 | #endif | |
11606 | char dld_link (); | |
11607 | int | |
11608 | main () | |
11609 | { | |
11610 | return dld_link (); | |
11611 | ; | |
11612 | return 0; | |
11613 | } | |
11614 | _ACEOF | |
b0322a85 | 11615 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11616 | ac_cv_lib_dld_dld_link=yes |
11617 | else | |
b0322a85 | 11618 | ac_cv_lib_dld_dld_link=no |
8d138742 | 11619 | fi |
b0322a85 CE |
11620 | rm -f core conftest.err conftest.$ac_objext \ |
11621 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11622 | LIBS=$ac_check_lib_save_LIBS |
11623 | fi | |
b0322a85 | 11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 11625 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 11626 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d50284c4 | 11627 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
8d138742 | 11628 | fi |
d9898ee8 | 11629 | |
d9898ee8 | 11630 | |
8d138742 | 11631 | fi |
d9898ee8 | 11632 | |
d9898ee8 | 11633 | |
8d138742 | 11634 | fi |
d9898ee8 | 11635 | |
d9898ee8 | 11636 | |
8d138742 | 11637 | fi |
d9898ee8 | 11638 | |
d9898ee8 | 11639 | |
8d138742 | 11640 | fi |
d9898ee8 | 11641 | |
d9898ee8 | 11642 | |
8d138742 | 11643 | fi |
d9898ee8 | 11644 | |
8d138742 CE |
11645 | ;; |
11646 | esac | |
d9898ee8 | 11647 | |
d50284c4 | 11648 | if test no = "$lt_cv_dlopen"; then |
8d138742 | 11649 | enable_dlopen=no |
d50284c4 CE |
11650 | else |
11651 | enable_dlopen=yes | |
8d138742 | 11652 | fi |
d9898ee8 | 11653 | |
8d138742 CE |
11654 | case $lt_cv_dlopen in |
11655 | dlopen) | |
d50284c4 CE |
11656 | save_CPPFLAGS=$CPPFLAGS |
11657 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11658 | |
d50284c4 | 11659 | save_LDFLAGS=$LDFLAGS |
8d138742 | 11660 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
d9898ee8 | 11661 | |
d50284c4 | 11662 | save_LIBS=$LIBS |
8d138742 | 11663 | LIBS="$lt_cv_dlopen_libs $LIBS" |
d9898ee8 | 11664 | |
b0322a85 | 11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 11666 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 11667 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 CE |
11668 | $as_echo_n "(cached) " >&6 |
11669 | else | |
d50284c4 | 11670 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
11671 | lt_cv_dlopen_self=cross |
11672 | else | |
11673 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11674 | lt_status=$lt_dlunknown | |
11675 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11676 | #line $LINENO "configure" |
8d138742 | 11677 | #include "confdefs.h" |
d9898ee8 | 11678 | |
8d138742 CE |
11679 | #if HAVE_DLFCN_H |
11680 | #include <dlfcn.h> | |
11681 | #endif | |
d9898ee8 | 11682 | |
8d138742 | 11683 | #include <stdio.h> |
d9898ee8 | 11684 | |
8d138742 CE |
11685 | #ifdef RTLD_GLOBAL |
11686 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11687 | #else | |
11688 | # ifdef DL_GLOBAL | |
11689 | # define LT_DLGLOBAL DL_GLOBAL | |
11690 | # else | |
11691 | # define LT_DLGLOBAL 0 | |
11692 | # endif | |
11693 | #endif | |
d9898ee8 | 11694 | |
8d138742 CE |
11695 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11696 | find out it does not work in some platform. */ | |
11697 | #ifndef LT_DLLAZY_OR_NOW | |
11698 | # ifdef RTLD_LAZY | |
11699 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11700 | # else | |
11701 | # ifdef DL_LAZY | |
11702 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11703 | # else | |
11704 | # ifdef RTLD_NOW | |
11705 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11706 | # else | |
11707 | # ifdef DL_NOW | |
11708 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11709 | # else | |
11710 | # define LT_DLLAZY_OR_NOW 0 | |
11711 | # endif | |
11712 | # endif | |
11713 | # endif | |
11714 | # endif | |
11715 | #endif | |
d9898ee8 | 11716 | |
d50284c4 | 11717 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11718 | correspondingly for the symbols needed. */ |
d50284c4 | 11719 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11720 | int fnord () __attribute__((visibility("default"))); |
11721 | #endif | |
11722 | ||
11723 | int fnord () { return 42; } | |
8d138742 CE |
11724 | int main () |
11725 | { | |
11726 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11727 | int status = $lt_dlunknown; | |
d9898ee8 | 11728 | |
8d138742 CE |
11729 | if (self) |
11730 | { | |
11731 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11732 | else |
11733 | { | |
11734 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11735 | else puts (dlerror ()); | |
11736 | } | |
8d138742 CE |
11737 | /* dlclose (self); */ |
11738 | } | |
11739 | else | |
11740 | puts (dlerror ()); | |
d9898ee8 | 11741 | |
8d138742 CE |
11742 | return status; |
11743 | } | |
11744 | _LT_EOF | |
b0322a85 | 11745 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11746 | (eval $ac_link) 2>&5 |
11747 | ac_status=$? | |
b0322a85 | 11748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11749 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11750 | (./conftest; exit; ) >&5 2>/dev/null |
11751 | lt_status=$? | |
11752 | case x$lt_status in | |
11753 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11754 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11755 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11756 | esac | |
11757 | else : | |
11758 | # compilation failed | |
11759 | lt_cv_dlopen_self=no | |
11760 | fi | |
11761 | fi | |
11762 | rm -fr conftest* | |
d9898ee8 | 11763 | |
d9898ee8 | 11764 | |
8d138742 | 11765 | fi |
b0322a85 | 11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 11767 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 11768 | |
d50284c4 | 11769 | if test yes = "$lt_cv_dlopen_self"; then |
8d138742 | 11770 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
b0322a85 | 11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 11772 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 11773 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 | 11774 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 11775 | else |
d50284c4 | 11776 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
11777 | lt_cv_dlopen_self_static=cross |
11778 | else | |
11779 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11780 | lt_status=$lt_dlunknown | |
11781 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11782 | #line $LINENO "configure" |
8d138742 | 11783 | #include "confdefs.h" |
d9898ee8 | 11784 | |
8d138742 CE |
11785 | #if HAVE_DLFCN_H |
11786 | #include <dlfcn.h> | |
11787 | #endif | |
d9898ee8 | 11788 | |
8d138742 | 11789 | #include <stdio.h> |
d9898ee8 | 11790 | |
8d138742 CE |
11791 | #ifdef RTLD_GLOBAL |
11792 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11793 | #else | |
11794 | # ifdef DL_GLOBAL | |
11795 | # define LT_DLGLOBAL DL_GLOBAL | |
11796 | # else | |
11797 | # define LT_DLGLOBAL 0 | |
11798 | # endif | |
11799 | #endif | |
d9898ee8 | 11800 | |
8d138742 CE |
11801 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11802 | find out it does not work in some platform. */ | |
11803 | #ifndef LT_DLLAZY_OR_NOW | |
11804 | # ifdef RTLD_LAZY | |
11805 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11806 | # else | |
11807 | # ifdef DL_LAZY | |
11808 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11809 | # else | |
11810 | # ifdef RTLD_NOW | |
11811 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11812 | # else | |
11813 | # ifdef DL_NOW | |
11814 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11815 | # else | |
11816 | # define LT_DLLAZY_OR_NOW 0 | |
11817 | # endif | |
11818 | # endif | |
11819 | # endif | |
11820 | # endif | |
11821 | #endif | |
d9898ee8 | 11822 | |
d50284c4 | 11823 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11824 | correspondingly for the symbols needed. */ |
d50284c4 | 11825 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11826 | int fnord () __attribute__((visibility("default"))); |
11827 | #endif | |
11828 | ||
11829 | int fnord () { return 42; } | |
8d138742 CE |
11830 | int main () |
11831 | { | |
11832 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11833 | int status = $lt_dlunknown; | |
d9898ee8 | 11834 | |
8d138742 CE |
11835 | if (self) |
11836 | { | |
11837 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11838 | else |
11839 | { | |
11840 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11841 | else puts (dlerror ()); | |
11842 | } | |
8d138742 CE |
11843 | /* dlclose (self); */ |
11844 | } | |
11845 | else | |
11846 | puts (dlerror ()); | |
d9898ee8 | 11847 | |
8d138742 CE |
11848 | return status; |
11849 | } | |
11850 | _LT_EOF | |
b0322a85 | 11851 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11852 | (eval $ac_link) 2>&5 |
11853 | ac_status=$? | |
b0322a85 | 11854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11855 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11856 | (./conftest; exit; ) >&5 2>/dev/null |
11857 | lt_status=$? | |
11858 | case x$lt_status in | |
11859 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11860 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11861 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11862 | esac | |
11863 | else : | |
11864 | # compilation failed | |
11865 | lt_cv_dlopen_self_static=no | |
11866 | fi | |
11867 | fi | |
11868 | rm -fr conftest* | |
d9898ee8 | 11869 | |
d9898ee8 | 11870 | |
8d138742 | 11871 | fi |
b0322a85 | 11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
11873 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
11874 | fi | |
d9898ee8 | 11875 | |
d50284c4 CE |
11876 | CPPFLAGS=$save_CPPFLAGS |
11877 | LDFLAGS=$save_LDFLAGS | |
11878 | LIBS=$save_LIBS | |
8d138742 CE |
11879 | ;; |
11880 | esac | |
d9898ee8 | 11881 | |
8d138742 CE |
11882 | case $lt_cv_dlopen_self in |
11883 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11884 | *) enable_dlopen_self=unknown ;; | |
11885 | esac | |
d9898ee8 | 11886 | |
8d138742 CE |
11887 | case $lt_cv_dlopen_self_static in |
11888 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11889 | *) enable_dlopen_self_static=unknown ;; | |
11890 | esac | |
11891 | fi | |
d9898ee8 | 11892 | |
d9898ee8 | 11893 | |
11894 | ||
d9898ee8 | 11895 | |
11896 | ||
d9898ee8 | 11897 | |
d9898ee8 | 11898 | |
d9898ee8 | 11899 | |
d9898ee8 | 11900 | |
d9898ee8 | 11901 | |
d9898ee8 | 11902 | |
d9898ee8 | 11903 | |
d9898ee8 | 11904 | |
d9898ee8 | 11905 | |
d9898ee8 | 11906 | |
d9898ee8 | 11907 | |
d9898ee8 | 11908 | |
8d138742 CE |
11909 | striplib= |
11910 | old_striplib= | |
b0322a85 | 11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
11912 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11913 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11914 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11915 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11917 | $as_echo "yes" >&6; } |
11918 | else | |
11919 | # FIXME - insert some real tests, host_os isn't really good enough | |
11920 | case $host_os in | |
11921 | darwin*) | |
d50284c4 | 11922 | if test -n "$STRIP"; then |
8d138742 CE |
11923 | striplib="$STRIP -x" |
11924 | old_striplib="$STRIP -S" | |
b0322a85 | 11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11926 | $as_echo "yes" >&6; } |
11927 | else | |
b0322a85 | 11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
11929 | $as_echo "no" >&6; } |
11930 | fi | |
11931 | ;; | |
11932 | *) | |
b0322a85 | 11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
11934 | $as_echo "no" >&6; } |
11935 | ;; | |
11936 | esac | |
11937 | fi | |
d9898ee8 | 11938 | |
d9898ee8 | 11939 | |
d9898ee8 | 11940 | |
d9898ee8 | 11941 | |
d9898ee8 | 11942 | |
d9898ee8 | 11943 | |
d9898ee8 | 11944 | |
d9898ee8 | 11945 | |
d9898ee8 | 11946 | |
d9898ee8 | 11947 | |
d9898ee8 | 11948 | |
d9898ee8 | 11949 | |
d50284c4 | 11950 | # Report what library types will actually be built |
b0322a85 | 11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 11952 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 | 11954 | $as_echo "$can_build_shared" >&6; } |
ac40fd9e | 11955 | |
b0322a85 | 11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 | 11957 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
d50284c4 | 11958 | test no = "$can_build_shared" && enable_shared=no |
d9898ee8 | 11959 | |
8d138742 CE |
11960 | # On AIX, shared libraries and static libraries use the same namespace, and |
11961 | # are all built from PIC. | |
11962 | case $host_os in | |
11963 | aix3*) | |
d50284c4 | 11964 | test yes = "$enable_shared" && enable_static=no |
8d138742 CE |
11965 | if test -n "$RANLIB"; then |
11966 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11967 | postinstall_cmds='$RANLIB $lib' | |
11968 | fi | |
11969 | ;; | |
d9898ee8 | 11970 | |
8d138742 | 11971 | aix[4-9]*) |
d50284c4 CE |
11972 | if test ia64 != "$host_cpu"; then |
11973 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
11974 | yes,aix,yes) ;; # shared object as lib.so file only | |
11975 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
11976 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
11977 | esac | |
8d138742 CE |
11978 | fi |
11979 | ;; | |
11980 | esac | |
b0322a85 | 11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 | 11982 | $as_echo "$enable_shared" >&6; } |
d9898ee8 | 11983 | |
b0322a85 | 11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
11985 | $as_echo_n "checking whether to build static libraries... " >&6; } |
11986 | # Make sure either enable_shared or enable_static is yes. | |
d50284c4 | 11987 | test yes = "$enable_shared" || enable_static=yes |
b0322a85 | 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 | 11989 | $as_echo "$enable_static" >&6; } |
d9898ee8 | 11990 | |
d9898ee8 | 11991 | |
d9898ee8 | 11992 | |
d9898ee8 | 11993 | |
8d138742 CE |
11994 | fi |
11995 | ac_ext=c | |
11996 | ac_cpp='$CPP $CPPFLAGS' | |
11997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 12000 | |
d50284c4 | 12001 | CC=$lt_save_CC |
d9898ee8 | 12002 | |
d9898ee8 | 12003 | |
d9898ee8 | 12004 | |
8d138742 CE |
12005 | |
12006 | ||
12007 | ||
12008 | ||
12009 | ||
12010 | ||
12011 | ||
12012 | ||
12013 | ||
12014 | ||
b0322a85 CE |
12015 | |
12016 | ||
8d138742 CE |
12017 | ac_config_commands="$ac_config_commands libtool" |
12018 | ||
12019 | ||
12020 | ||
12021 | ||
12022 | # Only expand once: | |
12023 | ||
12024 | ||
12025 | ||
12026 | if test "$GCC" = "yes" | |
12027 | then | |
12028 | CFLAGS="$CFLAGS -Wall" | |
d9898ee8 | 12029 | fi |
d9898ee8 | 12030 | |
b0322a85 | 12031 | CFLAGS="-I.. -I${srcdir}/.. $CFLAGS" |
8d138742 CE |
12032 | |
12033 | ||
12034 | ||
b0322a85 CE |
12035 | for ac_header in unistd.h stdint.h |
12036 | do : | |
12037 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12038 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12039 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
12040 | cat >>confdefs.h <<_ACEOF | |
12041 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8d138742 | 12042 | _ACEOF |
8d138742 | 12043 | |
d9898ee8 | 12044 | fi |
12045 | ||
b0322a85 | 12046 | done |
8d138742 | 12047 | |
8d138742 | 12048 | |
b0322a85 CE |
12049 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
12050 | if test "x$ac_cv_type_int64_t" = xyes; then : | |
12051 | : | |
d9898ee8 | 12052 | else |
d9898ee8 | 12053 | |
b0322a85 CE |
12054 | |
12055 | cat >>confdefs.h <<_ACEOF | |
12056 | #define int64_t long long | |
8d138742 | 12057 | _ACEOF |
d9898ee8 | 12058 | |
d9898ee8 | 12059 | |
b0322a85 | 12060 | fi |
8d138742 | 12061 | |
d9898ee8 | 12062 | |
b0322a85 | 12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8d138742 | 12064 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
b0322a85 | 12065 | if ${ac_cv_type_uid_t+:} false; then : |
8d138742 | 12066 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12067 | else |
b0322a85 | 12068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12069 | /* end confdefs.h. */ |
12070 | #include <sys/types.h> | |
d9898ee8 | 12071 | |
8d138742 CE |
12072 | _ACEOF |
12073 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 | 12074 | $EGREP "uid_t" >/dev/null 2>&1; then : |
8d138742 CE |
12075 | ac_cv_type_uid_t=yes |
12076 | else | |
12077 | ac_cv_type_uid_t=no | |
12078 | fi | |
12079 | rm -f conftest* | |
d9898ee8 | 12080 | |
12081 | fi | |
b0322a85 | 12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8d138742 CE |
12083 | $as_echo "$ac_cv_type_uid_t" >&6; } |
12084 | if test $ac_cv_type_uid_t = no; then | |
d9898ee8 | 12085 | |
b0322a85 CE |
12086 | $as_echo "#define uid_t int" >>confdefs.h |
12087 | ||
d9898ee8 | 12088 | |
b0322a85 | 12089 | $as_echo "#define gid_t int" >>confdefs.h |
d9898ee8 | 12090 | |
b0322a85 CE |
12091 | fi |
12092 | ||
12093 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
12094 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
12095 | ||
12096 | else | |
12097 | ||
12098 | cat >>confdefs.h <<_ACEOF | |
12099 | #define pid_t int | |
8d138742 | 12100 | _ACEOF |
d9898ee8 | 12101 | |
8d138742 | 12102 | fi |
d9898ee8 | 12103 | |
b0322a85 CE |
12104 | # Check whether --enable-largefile was given. |
12105 | if test "${enable_largefile+set}" = set; then : | |
12106 | enableval=$enable_largefile; | |
12107 | fi | |
12108 | ||
12109 | if test "$enable_largefile" != no; then | |
12110 | ||
12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
12112 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
12113 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
12114 | $as_echo_n "(cached) " >&6 | |
12115 | else | |
12116 | ac_cv_sys_largefile_CC=no | |
12117 | if test "$GCC" != yes; then | |
12118 | ac_save_CC=$CC | |
12119 | while :; do | |
12120 | # IRIX 6.2 and later do not support large files by default, | |
12121 | # so use the C compiler's -n32 option if that helps. | |
12122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12123 | /* end confdefs.h. */ | |
12124 | #include <sys/types.h> | |
12125 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12126 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12127 | since some C++ compilers masquerading as C compilers | |
12128 | incorrectly reject 9223372036854775807. */ | |
12129 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12130 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12131 | && LARGE_OFF_T % 2147483647 == 1) | |
12132 | ? 1 : -1]; | |
12133 | int | |
12134 | main () | |
12135 | { | |
12136 | ||
12137 | ; | |
12138 | return 0; | |
12139 | } | |
12140 | _ACEOF | |
12141 | if ac_fn_c_try_compile "$LINENO"; then : | |
12142 | break | |
12143 | fi | |
12144 | rm -f core conftest.err conftest.$ac_objext | |
12145 | CC="$CC -n32" | |
12146 | if ac_fn_c_try_compile "$LINENO"; then : | |
12147 | ac_cv_sys_largefile_CC=' -n32'; break | |
12148 | fi | |
12149 | rm -f core conftest.err conftest.$ac_objext | |
12150 | break | |
12151 | done | |
12152 | CC=$ac_save_CC | |
12153 | rm -f conftest.$ac_ext | |
12154 | fi | |
12155 | fi | |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
12157 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
12158 | if test "$ac_cv_sys_largefile_CC" != no; then | |
12159 | CC=$CC$ac_cv_sys_largefile_CC | |
12160 | fi | |
12161 | ||
12162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
12163 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
12164 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
8d138742 CE |
12165 | $as_echo_n "(cached) " >&6 |
12166 | else | |
b0322a85 CE |
12167 | while :; do |
12168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12169 | /* end confdefs.h. */ | |
12170 | #include <sys/types.h> | |
12171 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12172 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12173 | since some C++ compilers masquerading as C compilers | |
12174 | incorrectly reject 9223372036854775807. */ | |
12175 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12176 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12177 | && LARGE_OFF_T % 2147483647 == 1) | |
12178 | ? 1 : -1]; | |
12179 | int | |
12180 | main () | |
12181 | { | |
12182 | ||
12183 | ; | |
12184 | return 0; | |
12185 | } | |
12186 | _ACEOF | |
12187 | if ac_fn_c_try_compile "$LINENO"; then : | |
12188 | ac_cv_sys_file_offset_bits=no; break | |
12189 | fi | |
12190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12192 | /* end confdefs.h. */ | |
12193 | #define _FILE_OFFSET_BITS 64 | |
12194 | #include <sys/types.h> | |
12195 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12196 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12197 | since some C++ compilers masquerading as C compilers | |
12198 | incorrectly reject 9223372036854775807. */ | |
12199 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12200 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12201 | && LARGE_OFF_T % 2147483647 == 1) | |
12202 | ? 1 : -1]; | |
12203 | int | |
12204 | main () | |
12205 | { | |
12206 | ||
12207 | ; | |
12208 | return 0; | |
12209 | } | |
12210 | _ACEOF | |
12211 | if ac_fn_c_try_compile "$LINENO"; then : | |
12212 | ac_cv_sys_file_offset_bits=64; break | |
12213 | fi | |
12214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12215 | ac_cv_sys_file_offset_bits=unknown | |
12216 | break | |
12217 | done | |
12218 | fi | |
12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
12220 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
12221 | case $ac_cv_sys_file_offset_bits in #( | |
12222 | no | unknown) ;; | |
12223 | *) | |
12224 | cat >>confdefs.h <<_ACEOF | |
12225 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
8d138742 | 12226 | _ACEOF |
b0322a85 CE |
12227 | ;; |
12228 | esac | |
12229 | rm -rf conftest* | |
12230 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
12232 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
12233 | if ${ac_cv_sys_large_files+:} false; then : | |
12234 | $as_echo_n "(cached) " >&6 | |
12235 | else | |
12236 | while :; do | |
12237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12238 | /* end confdefs.h. */ |
b0322a85 CE |
12239 | #include <sys/types.h> |
12240 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12241 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12242 | since some C++ compilers masquerading as C compilers | |
12243 | incorrectly reject 9223372036854775807. */ | |
12244 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12245 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12246 | && LARGE_OFF_T % 2147483647 == 1) | |
12247 | ? 1 : -1]; | |
8d138742 CE |
12248 | int |
12249 | main () | |
12250 | { | |
b0322a85 | 12251 | |
8d138742 CE |
12252 | ; |
12253 | return 0; | |
12254 | } | |
12255 | _ACEOF | |
b0322a85 CE |
12256 | if ac_fn_c_try_compile "$LINENO"; then : |
12257 | ac_cv_sys_large_files=no; break | |
12258 | fi | |
12259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12261 | /* end confdefs.h. */ |
b0322a85 CE |
12262 | #define _LARGE_FILES 1 |
12263 | #include <sys/types.h> | |
12264 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12265 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12266 | since some C++ compilers masquerading as C compilers | |
12267 | incorrectly reject 9223372036854775807. */ | |
12268 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12269 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12270 | && LARGE_OFF_T % 2147483647 == 1) | |
12271 | ? 1 : -1]; | |
8d138742 CE |
12272 | int |
12273 | main () | |
12274 | { | |
b0322a85 | 12275 | |
8d138742 CE |
12276 | ; |
12277 | return 0; | |
12278 | } | |
12279 | _ACEOF | |
b0322a85 CE |
12280 | if ac_fn_c_try_compile "$LINENO"; then : |
12281 | ac_cv_sys_large_files=1; break | |
8d138742 | 12282 | fi |
8d138742 | 12283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12284 | ac_cv_sys_large_files=unknown |
12285 | break | |
12286 | done | |
8d138742 | 12287 | fi |
b0322a85 CE |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
12289 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
12290 | case $ac_cv_sys_large_files in #( | |
12291 | no | unknown) ;; | |
12292 | *) | |
8d138742 | 12293 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12294 | #define _LARGE_FILES $ac_cv_sys_large_files |
8d138742 | 12295 | _ACEOF |
b0322a85 CE |
12296 | ;; |
12297 | esac | |
12298 | rm -rf conftest* | |
12299 | fi | |
d9898ee8 | 12300 | |
d9898ee8 | 12301 | |
b0322a85 | 12302 | fi |
d9898ee8 | 12303 | |
d9898ee8 | 12304 | |
d9898ee8 | 12305 | |
8d138742 | 12306 | for ac_func in setgroups initgroups |
b0322a85 CE |
12307 | do : |
12308 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12309 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12310 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
8d138742 CE |
12311 | cat >>confdefs.h <<_ACEOF |
12312 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12313 | _ACEOF | |
dd184caf | 12314 | |
d9898ee8 | 12315 | fi |
8d138742 | 12316 | done |
dd184caf | 12317 | |
8d138742 | 12318 | ac_config_files="$ac_config_files Makefile" |
d9898ee8 | 12319 | |
8d138742 CE |
12320 | cat >confcache <<\_ACEOF |
12321 | # This file is a shell script that caches the results of configure | |
12322 | # tests run on this system so they can be shared between configure | |
12323 | # scripts and configure runs, see configure's option --config-cache. | |
12324 | # It is not useful on other systems. If it contains results you don't | |
12325 | # want to keep, you may remove or edit it. | |
12326 | # | |
12327 | # config.status only pays attention to the cache file if you give it | |
12328 | # the --recheck option to rerun configure. | |
12329 | # | |
12330 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12331 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12332 | # following values. | |
d9898ee8 | 12333 | |
8d138742 | 12334 | _ACEOF |
d9898ee8 | 12335 | |
8d138742 CE |
12336 | # The following way of writing the cache mishandles newlines in values, |
12337 | # but we know of no workaround that is simple, portable, and efficient. | |
12338 | # So, we kill variables containing newlines. | |
12339 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12340 | # and sets the high bit in the cache file unless we assign to the vars. | |
12341 | ( | |
12342 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12343 | eval ac_val=\$$ac_var | |
12344 | case $ac_val in #( | |
12345 | *${as_nl}*) | |
12346 | case $ac_var in #( | |
b0322a85 | 12347 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
12348 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
12349 | esac | |
12350 | case $ac_var in #( | |
12351 | _ | IFS | as_nl) ;; #( | |
12352 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 12353 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
12354 | esac ;; |
12355 | esac | |
12356 | done | |
d9898ee8 | 12357 | |
8d138742 CE |
12358 | (set) 2>&1 | |
12359 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12360 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
12361 | # `set' does not quote correctly, so add quotes: double-quote |
12362 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
12363 | sed -n \ |
12364 | "s/'/'\\\\''/g; | |
12365 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12366 | ;; #( | |
12367 | *) | |
12368 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12369 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
d9898ee8 | 12370 | ;; |
8d138742 CE |
12371 | esac | |
12372 | sort | |
12373 | ) | | |
12374 | sed ' | |
12375 | /^ac_cv_env_/b end | |
12376 | t clear | |
12377 | :clear | |
12378 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12379 | t end | |
12380 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12381 | :end' >>confcache | |
12382 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12383 | if test -w "$cache_file"; then | |
b0322a85 CE |
12384 | if test "x$cache_file" != "x/dev/null"; then |
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 12386 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
12387 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12388 | cat confcache >"$cache_file" | |
12389 | else | |
12390 | case $cache_file in #( | |
12391 | */* | ?:*) | |
12392 | mv -f confcache "$cache_file"$$ && | |
12393 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12394 | *) | |
12395 | mv -f confcache "$cache_file" ;; | |
12396 | esac | |
12397 | fi | |
12398 | fi | |
8d138742 | 12399 | else |
b0322a85 | 12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
12401 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
12402 | fi | |
12403 | fi | |
12404 | rm -f confcache | |
d9898ee8 | 12405 | |
8d138742 CE |
12406 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12407 | # Let make expand exec_prefix. | |
12408 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 12409 | |
8d138742 | 12410 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 12411 | |
8d138742 CE |
12412 | ac_libobjs= |
12413 | ac_ltlibobjs= | |
d50284c4 | 12414 | U= |
8d138742 CE |
12415 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12416 | # 1. Remove the extension, and $U if already installed. | |
12417 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12418 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12419 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12420 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
12421 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12422 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
12423 | done |
12424 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 12425 | |
8d138742 | 12426 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 12427 | |
d9898ee8 | 12428 | |
b0322a85 CE |
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12430 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
12431 | if test -n "$am_sleep_pid"; then | |
12432 | # Hide warnings about reused PIDs. | |
12433 | wait $am_sleep_pid 2>/dev/null | |
12434 | fi | |
12435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
12436 | $as_echo "done" >&6; } | |
8d138742 CE |
12437 | if test -n "$EXEEXT"; then |
12438 | am__EXEEXT_TRUE= | |
12439 | am__EXEEXT_FALSE='#' | |
12440 | else | |
12441 | am__EXEEXT_TRUE='#' | |
12442 | am__EXEEXT_FALSE= | |
12443 | fi | |
d9898ee8 | 12444 | |
8d138742 | 12445 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
b0322a85 CE |
12446 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
12447 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
12448 | fi |
12449 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
12450 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
12451 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 | 12452 | fi |
d9898ee8 | 12453 | |
b0322a85 | 12454 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
12455 | ac_write_fail=0 |
12456 | ac_clean_files_save=$ac_clean_files | |
12457 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 12459 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
12460 | as_write_fail=0 |
12461 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
12462 | #! $SHELL |
12463 | # Generated by $as_me. | |
12464 | # Run this file to recreate the current configuration. | |
12465 | # Compiler output produced by configure, useful for debugging | |
12466 | # configure, is in config.log if it exists. | |
d9898ee8 | 12467 | |
8d138742 CE |
12468 | debug=false |
12469 | ac_cs_recheck=false | |
12470 | ac_cs_silent=false | |
d9898ee8 | 12471 | |
b0322a85 CE |
12472 | SHELL=\${CONFIG_SHELL-$SHELL} |
12473 | export SHELL | |
12474 | _ASEOF | |
12475 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12476 | ## -------------------- ## | |
12477 | ## M4sh Initialization. ## | |
12478 | ## -------------------- ## | |
d9898ee8 | 12479 | |
8d138742 CE |
12480 | # Be more Bourne compatible |
12481 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 12482 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
12483 | emulate sh |
12484 | NULLCMD=: | |
12485 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
12486 | # is contrary to our usage. Disable this feature. | |
12487 | alias -g '${1+"$@"}'='"$@"' | |
12488 | setopt NO_GLOB_SUBST | |
12489 | else | |
b0322a85 CE |
12490 | case `(set -o) 2>/dev/null` in #( |
12491 | *posix*) : | |
12492 | set -o posix ;; #( | |
12493 | *) : | |
12494 | ;; | |
8d138742 | 12495 | esac |
8d138742 | 12496 | fi |
d9898ee8 | 12497 | |
d9898ee8 | 12498 | |
8d138742 CE |
12499 | as_nl=' |
12500 | ' | |
12501 | export as_nl | |
12502 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12503 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12504 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12505 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
12506 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
12507 | # but without wasting forks for bash or zsh. | |
12508 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12509 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12510 | as_echo='print -r --' | |
12511 | as_echo_n='print -rn --' | |
12512 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
12513 | as_echo='printf %s\n' |
12514 | as_echo_n='printf %s' | |
12515 | else | |
12516 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12517 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12518 | as_echo_n='/usr/ucb/echo -n' | |
12519 | else | |
12520 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12521 | as_echo_n_body='eval | |
12522 | arg=$1; | |
b0322a85 | 12523 | case $arg in #( |
8d138742 CE |
12524 | *"$as_nl"*) |
12525 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12526 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12527 | esac; | |
12528 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12529 | ' | |
12530 | export as_echo_n_body | |
12531 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12532 | fi | |
12533 | export as_echo_body | |
12534 | as_echo='sh -c $as_echo_body as_echo' | |
12535 | fi | |
d9898ee8 | 12536 | |
8d138742 CE |
12537 | # The user is always right. |
12538 | if test "${PATH_SEPARATOR+set}" != set; then | |
12539 | PATH_SEPARATOR=: | |
12540 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12541 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12542 | PATH_SEPARATOR=';' | |
12543 | } | |
12544 | fi | |
d9898ee8 | 12545 | |
d9898ee8 | 12546 | |
8d138742 CE |
12547 | # IFS |
12548 | # We need space, tab and new line, in precisely that order. Quoting is | |
12549 | # there to prevent editors from complaining about space-tab. | |
12550 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12551 | # splitting by setting IFS to empty value.) | |
12552 | IFS=" "" $as_nl" | |
d9898ee8 | 12553 | |
8d138742 | 12554 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
12555 | as_myself= |
12556 | case $0 in #(( | |
8d138742 CE |
12557 | *[\\/]* ) as_myself=$0 ;; |
12558 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12559 | for as_dir in $PATH | |
12560 | do | |
12561 | IFS=$as_save_IFS | |
12562 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
12563 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12564 | done | |
8d138742 | 12565 | IFS=$as_save_IFS |
d9898ee8 | 12566 | |
8d138742 CE |
12567 | ;; |
12568 | esac | |
12569 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12570 | # in which case we are not to be found in the path. | |
12571 | if test "x$as_myself" = x; then | |
12572 | as_myself=$0 | |
12573 | fi | |
12574 | if test ! -f "$as_myself"; then | |
12575 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 12576 | exit 1 |
8d138742 | 12577 | fi |
d9898ee8 | 12578 | |
b0322a85 CE |
12579 | # Unset variables that we do not need and which cause bugs (e.g. in |
12580 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12581 | # suppresses any "Segmentation fault" message there. '((' could | |
12582 | # trigger a bug in pdksh 5.2.14. | |
12583 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12584 | do eval test x\${$as_var+set} = xset \ | |
12585 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
12586 | done |
12587 | PS1='$ ' | |
12588 | PS2='> ' | |
12589 | PS4='+ ' | |
d9898ee8 | 12590 | |
8d138742 CE |
12591 | # NLS nuisances. |
12592 | LC_ALL=C | |
12593 | export LC_ALL | |
12594 | LANGUAGE=C | |
12595 | export LANGUAGE | |
d9898ee8 | 12596 | |
b0322a85 CE |
12597 | # CDPATH. |
12598 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12599 | ||
12600 | ||
12601 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
12602 | # ---------------------------------------- | |
12603 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12604 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12605 | # script with STATUS, using 1 if that was 0. | |
12606 | as_fn_error () | |
12607 | { | |
12608 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
12609 | if test "$4"; then | |
12610 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12611 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
12612 | fi | |
12613 | $as_echo "$as_me: error: $2" >&2 | |
12614 | as_fn_exit $as_status | |
12615 | } # as_fn_error | |
12616 | ||
12617 | ||
12618 | # as_fn_set_status STATUS | |
12619 | # ----------------------- | |
12620 | # Set $? to STATUS, without forking. | |
12621 | as_fn_set_status () | |
12622 | { | |
12623 | return $1 | |
12624 | } # as_fn_set_status | |
12625 | ||
12626 | # as_fn_exit STATUS | |
12627 | # ----------------- | |
12628 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12629 | as_fn_exit () | |
12630 | { | |
12631 | set +e | |
12632 | as_fn_set_status $1 | |
12633 | exit $1 | |
12634 | } # as_fn_exit | |
12635 | ||
12636 | # as_fn_unset VAR | |
12637 | # --------------- | |
12638 | # Portably unset VAR. | |
12639 | as_fn_unset () | |
12640 | { | |
12641 | { eval $1=; unset $1;} | |
12642 | } | |
12643 | as_unset=as_fn_unset | |
12644 | # as_fn_append VAR VALUE | |
12645 | # ---------------------- | |
12646 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12647 | # advantage of any shell optimizations that allow amortized linear growth over | |
12648 | # repeated appends, instead of the typical quadratic growth present in naive | |
12649 | # implementations. | |
12650 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12651 | eval 'as_fn_append () | |
12652 | { | |
12653 | eval $1+=\$2 | |
12654 | }' | |
12655 | else | |
12656 | as_fn_append () | |
12657 | { | |
12658 | eval $1=\$$1\$2 | |
12659 | } | |
12660 | fi # as_fn_append | |
12661 | ||
12662 | # as_fn_arith ARG... | |
12663 | # ------------------ | |
12664 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12665 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12666 | # must be portable across $(()) and expr. | |
12667 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12668 | eval 'as_fn_arith () | |
12669 | { | |
12670 | as_val=$(( $* )) | |
12671 | }' | |
12672 | else | |
12673 | as_fn_arith () | |
12674 | { | |
12675 | as_val=`expr "$@" || test $? -eq 1` | |
12676 | } | |
12677 | fi # as_fn_arith | |
12678 | ||
12679 | ||
8d138742 CE |
12680 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12681 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12682 | as_expr=expr | |
12683 | else | |
12684 | as_expr=false | |
12685 | fi | |
d9898ee8 | 12686 | |
8d138742 CE |
12687 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12688 | as_basename=basename | |
12689 | else | |
12690 | as_basename=false | |
12691 | fi | |
d9898ee8 | 12692 | |
b0322a85 CE |
12693 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12694 | as_dirname=dirname | |
12695 | else | |
12696 | as_dirname=false | |
12697 | fi | |
d9898ee8 | 12698 | |
8d138742 CE |
12699 | as_me=`$as_basename -- "$0" || |
12700 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12701 | X"$0" : 'X\(//\)$' \| \ | |
12702 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12703 | $as_echo X/"$0" | | |
12704 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12705 | s//\1/ | |
12706 | q | |
12707 | } | |
12708 | /^X\/\(\/\/\)$/{ | |
12709 | s//\1/ | |
12710 | q | |
12711 | } | |
12712 | /^X\/\(\/\).*/{ | |
12713 | s//\1/ | |
12714 | q | |
12715 | } | |
12716 | s/.*/./; q'` | |
d9898ee8 | 12717 | |
b0322a85 CE |
12718 | # Avoid depending upon Character Ranges. |
12719 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12720 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12721 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12722 | as_cr_digits='0123456789' | |
12723 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8d138742 CE |
12724 | |
12725 | ECHO_C= ECHO_N= ECHO_T= | |
b0322a85 | 12726 | case `echo -n x` in #((((( |
8d138742 | 12727 | -n*) |
b0322a85 | 12728 | case `echo 'xy\c'` in |
8d138742 | 12729 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
12730 | xy) ECHO_C='\c';; |
12731 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12732 | ECHO_T=' ';; | |
8d138742 CE |
12733 | esac;; |
12734 | *) | |
12735 | ECHO_N='-n';; | |
12736 | esac | |
b0322a85 CE |
12737 | |
12738 | rm -f conf$$ conf$$.exe conf$$.file | |
12739 | if test -d conf$$.dir; then | |
12740 | rm -f conf$$.dir/conf$$.file | |
8d138742 | 12741 | else |
b0322a85 CE |
12742 | rm -f conf$$.dir |
12743 | mkdir conf$$.dir 2>/dev/null | |
12744 | fi | |
12745 | if (echo >conf$$.file) 2>/dev/null; then | |
12746 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12747 | as_ln_s='ln -s' | |
12748 | # ... but there are two gotchas: | |
12749 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12750 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12751 | # In both cases, we have to default to `cp -pR'. | |
12752 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12753 | as_ln_s='cp -pR' | |
12754 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12755 | as_ln_s=ln | |
12756 | else | |
12757 | as_ln_s='cp -pR' | |
12758 | fi | |
12759 | else | |
12760 | as_ln_s='cp -pR' | |
8d138742 | 12761 | fi |
b0322a85 CE |
12762 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12763 | rmdir conf$$.dir 2>/dev/null | |
12764 | ||
12765 | ||
12766 | # as_fn_mkdir_p | |
12767 | # ------------- | |
12768 | # Create "$as_dir" as a directory, including parents if necessary. | |
12769 | as_fn_mkdir_p () | |
12770 | { | |
12771 | ||
12772 | case $as_dir in #( | |
12773 | -*) as_dir=./$as_dir;; | |
12774 | esac | |
12775 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12776 | as_dirs= | |
12777 | while :; do | |
12778 | case $as_dir in #( | |
12779 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12780 | *) as_qdir=$as_dir;; | |
12781 | esac | |
12782 | as_dirs="'$as_qdir' $as_dirs" | |
12783 | as_dir=`$as_dirname -- "$as_dir" || | |
12784 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12785 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12786 | X"$as_dir" : 'X\(//\)$' \| \ | |
12787 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12788 | $as_echo X"$as_dir" | | |
12789 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12790 | s//\1/ | |
12791 | q | |
12792 | } | |
12793 | /^X\(\/\/\)[^/].*/{ | |
12794 | s//\1/ | |
12795 | q | |
12796 | } | |
12797 | /^X\(\/\/\)$/{ | |
12798 | s//\1/ | |
12799 | q | |
12800 | } | |
12801 | /^X\(\/\).*/{ | |
12802 | s//\1/ | |
12803 | q | |
12804 | } | |
12805 | s/.*/./; q'` | |
12806 | test -d "$as_dir" && break | |
12807 | done | |
12808 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12809 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
8d138742 | 12810 | |
8d138742 | 12811 | |
b0322a85 | 12812 | } # as_fn_mkdir_p |
8d138742 | 12813 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 12814 | as_mkdir_p='mkdir -p "$as_dir"' |
8d138742 CE |
12815 | else |
12816 | test -d ./-p && rmdir ./-p | |
12817 | as_mkdir_p=false | |
12818 | fi | |
12819 | ||
b0322a85 CE |
12820 | |
12821 | # as_fn_executable_p FILE | |
12822 | # ----------------------- | |
12823 | # Test if FILE is an executable regular file. | |
12824 | as_fn_executable_p () | |
12825 | { | |
12826 | test -f "$1" && test -x "$1" | |
12827 | } # as_fn_executable_p | |
12828 | as_test_x='test -x' | |
12829 | as_executable_p=as_fn_executable_p | |
8d138742 CE |
12830 | |
12831 | # Sed expression to map a string onto a valid CPP name. | |
12832 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12833 | ||
12834 | # Sed expression to map a string onto a valid variable name. | |
12835 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12836 | ||
12837 | ||
12838 | exec 6>&1 | |
b0322a85 CE |
12839 | ## ----------------------------------- ## |
12840 | ## Main body of $CONFIG_STATUS script. ## | |
12841 | ## ----------------------------------- ## | |
12842 | _ASEOF | |
12843 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
8d138742 | 12844 | |
b0322a85 CE |
12845 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12846 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
12847 | # report actual input values of CONFIG_FILES etc. instead of their |
12848 | # values after options handling. | |
12849 | ac_log=" | |
12850 | This file was extended by numlib $as_me 0.10, which was | |
b0322a85 | 12851 | generated by GNU Autoconf 2.69. Invocation command line was |
8d138742 CE |
12852 | |
12853 | CONFIG_FILES = $CONFIG_FILES | |
12854 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12855 | CONFIG_LINKS = $CONFIG_LINKS | |
12856 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12857 | $ $0 $@ | |
12858 | ||
12859 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12860 | " | |
12861 | ||
12862 | _ACEOF | |
12863 | ||
12864 | case $ac_config_files in *" | |
12865 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
d9898ee8 | 12866 | esac |
12867 | ||
8d138742 CE |
12868 | case $ac_config_headers in *" |
12869 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12870 | esac | |
ac40fd9e | 12871 | |
d9898ee8 | 12872 | |
8d138742 CE |
12873 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12874 | # Files that config.status was made for. | |
12875 | config_files="$ac_config_files" | |
12876 | config_headers="$ac_config_headers" | |
12877 | config_commands="$ac_config_commands" | |
d9898ee8 | 12878 | |
8d138742 | 12879 | _ACEOF |
d9898ee8 | 12880 | |
8d138742 CE |
12881 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12882 | ac_cs_usage="\ | |
b0322a85 CE |
12883 | \`$as_me' instantiates files and other configuration actions |
12884 | from templates according to the current configuration. Unless the files | |
12885 | and actions are specified as TAGs, all are instantiated by default. | |
d9898ee8 | 12886 | |
b0322a85 | 12887 | Usage: $0 [OPTION]... [TAG]... |
d9898ee8 | 12888 | |
8d138742 CE |
12889 | -h, --help print this help, then exit |
12890 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 12891 | --config print configuration, then exit |
8d138742 CE |
12892 | -q, --quiet, --silent |
12893 | do not print progress messages | |
12894 | -d, --debug don't remove temporary files | |
12895 | --recheck update $as_me by reconfiguring in the same conditions | |
12896 | --file=FILE[:TEMPLATE] | |
12897 | instantiate the configuration file FILE | |
12898 | --header=FILE[:TEMPLATE] | |
12899 | instantiate the configuration header FILE | |
d9898ee8 | 12900 | |
8d138742 CE |
12901 | Configuration files: |
12902 | $config_files | |
d9898ee8 | 12903 | |
8d138742 CE |
12904 | Configuration headers: |
12905 | $config_headers | |
d9898ee8 | 12906 | |
8d138742 CE |
12907 | Configuration commands: |
12908 | $config_commands | |
d9898ee8 | 12909 | |
b0322a85 | 12910 | Report bugs to <courier-users@lists.sourceforge.net>." |
d9898ee8 | 12911 | |
8d138742 CE |
12912 | _ACEOF |
12913 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 12914 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
12915 | ac_cs_version="\\ |
12916 | numlib config.status 0.10 | |
b0322a85 CE |
12917 | configured by $0, generated by GNU Autoconf 2.69, |
12918 | with options \\"\$ac_cs_config\\" | |
8d138742 | 12919 | |
b0322a85 | 12920 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
12921 | This config.status script is free software; the Free Software Foundation |
12922 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 12923 | |
8d138742 CE |
12924 | ac_pwd='$ac_pwd' |
12925 | srcdir='$srcdir' | |
12926 | INSTALL='$INSTALL' | |
12927 | MKDIR_P='$MKDIR_P' | |
12928 | AWK='$AWK' | |
12929 | test -n "\$AWK" || AWK=awk | |
12930 | _ACEOF | |
12931 | ||
12932 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12933 | # The default lists apply if the user does not specify any file. | |
12934 | ac_need_defaults=: | |
12935 | while test $# != 0 | |
12936 | do | |
12937 | case $1 in | |
b0322a85 | 12938 | --*=?*) |
8d138742 CE |
12939 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12940 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12941 | ac_shift=: | |
12942 | ;; | |
b0322a85 CE |
12943 | --*=) |
12944 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12945 | ac_optarg= | |
12946 | ac_shift=: | |
12947 | ;; | |
d9898ee8 | 12948 | *) |
8d138742 CE |
12949 | ac_option=$1 |
12950 | ac_optarg=$2 | |
12951 | ac_shift=shift | |
d9898ee8 | 12952 | ;; |
12953 | esac | |
d9898ee8 | 12954 | |
8d138742 CE |
12955 | case $ac_option in |
12956 | # Handling of the options. | |
12957 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12958 | ac_cs_recheck=: ;; | |
12959 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12960 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
12961 | --config | --confi | --conf | --con | --co | --c ) |
12962 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
12963 | --debug | --debu | --deb | --de | --d | -d ) |
12964 | debug=: ;; | |
12965 | --file | --fil | --fi | --f ) | |
12966 | $ac_shift | |
12967 | case $ac_optarg in | |
12968 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 12969 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 12970 | esac |
b0322a85 | 12971 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
12972 | ac_need_defaults=false;; |
12973 | --header | --heade | --head | --hea ) | |
12974 | $ac_shift | |
12975 | case $ac_optarg in | |
12976 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12977 | esac | |
b0322a85 | 12978 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
12979 | ac_need_defaults=false;; |
12980 | --he | --h) | |
12981 | # Conflict between --help and --header | |
b0322a85 CE |
12982 | as_fn_error $? "ambiguous option: \`$1' |
12983 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
12984 | --help | --hel | -h ) |
12985 | $as_echo "$ac_cs_usage"; exit ;; | |
12986 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12987 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12988 | ac_cs_silent=: ;; | |
ac40fd9e | 12989 | |
8d138742 | 12990 | # This is an error. |
b0322a85 CE |
12991 | -*) as_fn_error $? "unrecognized option: \`$1' |
12992 | Try \`$0 --help' for more information." ;; | |
d9898ee8 | 12993 | |
b0322a85 | 12994 | *) as_fn_append ac_config_targets " $1" |
8d138742 | 12995 | ac_need_defaults=false ;; |
d9898ee8 | 12996 | |
8d138742 CE |
12997 | esac |
12998 | shift | |
12999 | done | |
d9898ee8 | 13000 | |
8d138742 CE |
13001 | ac_configure_extra_args= |
13002 | ||
13003 | if $ac_cs_silent; then | |
13004 | exec 6>/dev/null | |
13005 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13006 | fi | |
13007 | ||
13008 | _ACEOF | |
13009 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13010 | if \$ac_cs_recheck; then | |
b0322a85 | 13011 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
13012 | shift |
13013 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13014 | CONFIG_SHELL='$SHELL' | |
13015 | export CONFIG_SHELL | |
13016 | exec "\$@" | |
13017 | fi | |
13018 | ||
13019 | _ACEOF | |
13020 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13021 | exec 5>>config.log | |
13022 | { | |
13023 | echo | |
13024 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13025 | ## Running $as_me. ## | |
13026 | _ASBOX | |
13027 | $as_echo "$ac_log" | |
13028 | } >&5 | |
13029 | ||
13030 | _ACEOF | |
13031 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13032 | # | |
13033 | # INIT-COMMANDS | |
13034 | # | |
13035 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
13036 | ||
13037 | ||
13038 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13039 | # if CDPATH is set. | |
13040 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13041 | ||
13042 | sed_quote_subst='$sed_quote_subst' | |
13043 | double_quote_subst='$double_quote_subst' | |
13044 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
13045 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
13046 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13047 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13048 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13049 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13050 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13051 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13052 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
13053 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13054 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
13055 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13056 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13057 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13058 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13059 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13060 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13061 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13062 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13063 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13064 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13065 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13066 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13067 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13068 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13069 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13070 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13071 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13072 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13073 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13074 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13075 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13076 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13077 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13078 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13079 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13080 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13081 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13082 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
13083 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
13084 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
13085 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
13086 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13087 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13088 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
13089 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13090 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13091 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13092 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13093 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13094 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13095 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13096 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13097 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13098 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13099 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13100 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13101 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13102 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
13103 | 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"`' | |
d50284c4 | 13104 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13105 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
13106 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13107 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13108 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
13109 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13110 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13111 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13112 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13113 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13114 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13115 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13116 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
13117 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13118 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13119 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13120 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13121 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13122 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13123 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13124 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13125 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13126 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13127 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13128 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13129 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13130 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13131 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13132 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13133 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13134 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13135 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13136 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13137 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13138 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13139 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13140 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13141 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13142 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13143 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13144 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13145 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13146 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13147 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13148 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13149 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13150 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13151 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13152 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13153 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13154 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13155 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13156 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13157 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13158 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13159 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13160 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13161 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13162 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13163 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13164 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13165 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13166 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13167 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13168 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13169 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13170 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13171 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
d50284c4 CE |
13172 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
13173 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b0322a85 CE |
13174 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
13175 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13176 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13177 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13178 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13179 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
13180 | |
13181 | LTCC='$LTCC' | |
13182 | LTCFLAGS='$LTCFLAGS' | |
13183 | compiler='$compiler_DEFAULT' | |
13184 | ||
b0322a85 CE |
13185 | # A function that is used when there is no print builtin or printf. |
13186 | func_fallback_echo () | |
13187 | { | |
13188 | eval 'cat <<_LTECHO_EOF | |
13189 | \$1 | |
13190 | _LTECHO_EOF' | |
13191 | } | |
13192 | ||
8d138742 | 13193 | # Quote evaled strings. |
b0322a85 CE |
13194 | for var in SHELL \ |
13195 | ECHO \ | |
13196 | PATH_SEPARATOR \ | |
13197 | SED \ | |
8d138742 CE |
13198 | GREP \ |
13199 | EGREP \ | |
13200 | FGREP \ | |
13201 | LD \ | |
13202 | NM \ | |
13203 | LN_S \ | |
13204 | lt_SP2NL \ | |
13205 | lt_NL2SP \ | |
13206 | reload_flag \ | |
13207 | OBJDUMP \ | |
13208 | deplibs_check_method \ | |
13209 | file_magic_cmd \ | |
b0322a85 CE |
13210 | file_magic_glob \ |
13211 | want_nocaseglob \ | |
13212 | DLLTOOL \ | |
13213 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
13214 | AR \ |
13215 | AR_FLAGS \ | |
b0322a85 | 13216 | archiver_list_spec \ |
8d138742 CE |
13217 | STRIP \ |
13218 | RANLIB \ | |
13219 | CC \ | |
13220 | CFLAGS \ | |
13221 | compiler \ | |
13222 | lt_cv_sys_global_symbol_pipe \ | |
13223 | lt_cv_sys_global_symbol_to_cdecl \ | |
d50284c4 | 13224 | lt_cv_sys_global_symbol_to_import \ |
8d138742 CE |
13225 | lt_cv_sys_global_symbol_to_c_name_address \ |
13226 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
d50284c4 | 13227 | lt_cv_nm_interface \ |
b0322a85 | 13228 | nm_file_list_spec \ |
d50284c4 | 13229 | lt_cv_truncate_bin \ |
8d138742 | 13230 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 13231 | lt_prog_compiler_pic \ |
b0322a85 | 13232 | lt_prog_compiler_wl \ |
8d138742 CE |
13233 | lt_prog_compiler_static \ |
13234 | lt_cv_prog_compiler_c_o \ | |
13235 | need_locks \ | |
b0322a85 | 13236 | MANIFEST_TOOL \ |
8d138742 CE |
13237 | DSYMUTIL \ |
13238 | NMEDIT \ | |
13239 | LIPO \ | |
13240 | OTOOL \ | |
13241 | OTOOL64 \ | |
13242 | shrext_cmds \ | |
13243 | export_dynamic_flag_spec \ | |
13244 | whole_archive_flag_spec \ | |
13245 | compiler_needs_object \ | |
13246 | with_gnu_ld \ | |
13247 | allow_undefined_flag \ | |
13248 | no_undefined_flag \ | |
13249 | hardcode_libdir_flag_spec \ | |
8d138742 | 13250 | hardcode_libdir_separator \ |
8d138742 CE |
13251 | exclude_expsyms \ |
13252 | include_expsyms \ | |
13253 | file_list_spec \ | |
13254 | variables_saved_for_relink \ | |
13255 | libname_spec \ | |
13256 | library_names_spec \ | |
13257 | soname_spec \ | |
b0322a85 | 13258 | install_override_mode \ |
8d138742 CE |
13259 | finish_eval \ |
13260 | old_striplib \ | |
13261 | striplib; do | |
b0322a85 | 13262 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13263 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13264 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
13265 | ;; |
13266 | *) | |
13267 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13268 | ;; | |
d9898ee8 | 13269 | esac |
8d138742 CE |
13270 | done |
13271 | ||
13272 | # Double-quote double-evaled strings. | |
13273 | for var in reload_cmds \ | |
13274 | old_postinstall_cmds \ | |
13275 | old_postuninstall_cmds \ | |
13276 | old_archive_cmds \ | |
13277 | extract_expsyms_cmds \ | |
13278 | old_archive_from_new_cmds \ | |
13279 | old_archive_from_expsyms_cmds \ | |
13280 | archive_cmds \ | |
13281 | archive_expsym_cmds \ | |
13282 | module_cmds \ | |
13283 | module_expsym_cmds \ | |
13284 | export_symbols_cmds \ | |
13285 | prelink_cmds \ | |
b0322a85 | 13286 | postlink_cmds \ |
8d138742 CE |
13287 | postinstall_cmds \ |
13288 | postuninstall_cmds \ | |
13289 | finish_cmds \ | |
13290 | sys_lib_search_path_spec \ | |
d50284c4 CE |
13291 | configure_time_dlsearch_path \ |
13292 | configure_time_lt_sys_library_path; do | |
b0322a85 | 13293 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13294 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13295 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
d9898ee8 | 13296 | ;; |
8d138742 CE |
13297 | *) |
13298 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
d9898ee8 | 13299 | ;; |
8d138742 CE |
13300 | esac |
13301 | done | |
d9898ee8 | 13302 | |
8d138742 | 13303 | ac_aux_dir='$ac_aux_dir' |
d9898ee8 | 13304 | |
d50284c4 | 13305 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 13306 | # commands through without removal of \ escapes INIT. |
d50284c4 | 13307 | if test -n "\${ZSH_VERSION+set}"; then |
8d138742 CE |
13308 | setopt NO_GLOB_SUBST |
13309 | fi | |
d9898ee8 | 13310 | |
d9898ee8 | 13311 | |
8d138742 CE |
13312 | PACKAGE='$PACKAGE' |
13313 | VERSION='$VERSION' | |
8d138742 CE |
13314 | RM='$RM' |
13315 | ofile='$ofile' | |
d9898ee8 | 13316 | |
d9898ee8 | 13317 | |
d9898ee8 | 13318 | |
d9898ee8 | 13319 | |
8d138742 | 13320 | _ACEOF |
d9898ee8 | 13321 | |
8d138742 | 13322 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 13323 | |
8d138742 CE |
13324 | # Handling of arguments. |
13325 | for ac_config_target in $ac_config_targets | |
13326 | do | |
13327 | case $ac_config_target in | |
13328 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
13329 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13330 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13331 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
d9898ee8 | 13332 | |
b0322a85 | 13333 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
d9898ee8 | 13334 | esac |
8d138742 | 13335 | done |
d9898ee8 | 13336 | |
d9898ee8 | 13337 | |
8d138742 CE |
13338 | # If the user did not use the arguments to specify the items to instantiate, |
13339 | # then the envvar interface is used. Set only those that are not. | |
13340 | # We use the long form for the default assignment because of an extremely | |
13341 | # bizarre bug on SunOS 4.1.3. | |
13342 | if $ac_need_defaults; then | |
13343 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13344 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13345 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13346 | fi | |
ac40fd9e | 13347 | |
8d138742 CE |
13348 | # Have a temporary directory for convenience. Make it in the build tree |
13349 | # simply because there is no reason against having it here, and in addition, | |
13350 | # creating and moving files from /tmp can sometimes cause problems. | |
13351 | # Hook for its removal unless debugging. | |
13352 | # Note that there is a small window in which the directory will not be cleaned: | |
13353 | # after its creation but before its name has been assigned to `$tmp'. | |
13354 | $debug || | |
13355 | { | |
b0322a85 | 13356 | tmp= ac_tmp= |
8d138742 | 13357 | trap 'exit_status=$? |
b0322a85 CE |
13358 | : "${ac_tmp:=$tmp}" |
13359 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 13360 | ' 0 |
b0322a85 | 13361 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
13362 | } |
13363 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 13364 | |
8d138742 CE |
13365 | { |
13366 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 13367 | test -d "$tmp" |
8d138742 CE |
13368 | } || |
13369 | { | |
13370 | tmp=./conf$$-$RANDOM | |
13371 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
13372 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13373 | ac_tmp=$tmp | |
d9898ee8 | 13374 | |
8d138742 CE |
13375 | # Set up the scripts for CONFIG_FILES section. |
13376 | # No need to generate them if there are no CONFIG_FILES. | |
13377 | # This happens for instance with `./config.status config.h'. | |
13378 | if test -n "$CONFIG_FILES"; then | |
d9898ee8 | 13379 | |
d9898ee8 | 13380 | |
b0322a85 CE |
13381 | ac_cr=`echo X | tr X '\015'` |
13382 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13383 | # But we know of no other shell where ac_cr would be empty at this | |
13384 | # point, so we can use a bashism as a fallback. | |
13385 | if test "x$ac_cr" = x; then | |
13386 | eval ac_cr=\$\'\\r\' | |
13387 | fi | |
8d138742 CE |
13388 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13389 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13390 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 13391 | else |
8d138742 | 13392 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 13393 | fi |
13394 | ||
b0322a85 | 13395 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
8d138742 | 13396 | _ACEOF |
d9898ee8 | 13397 | |
d9898ee8 | 13398 | |
8d138742 CE |
13399 | { |
13400 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13401 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13402 | echo "_ACEOF" | |
13403 | } >conf$$subs.sh || | |
b0322a85 CE |
13404 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13405 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
13406 | ac_delim='%!_!# ' |
13407 | for ac_last_try in false false false false false :; do | |
13408 | . ./conf$$subs.sh || | |
b0322a85 | 13409 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 13410 | |
8d138742 CE |
13411 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13412 | if test $ac_delim_n = $ac_delim_num; then | |
13413 | break | |
13414 | elif $ac_last_try; then | |
b0322a85 | 13415 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
13416 | else |
13417 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13418 | fi | |
13419 | done | |
13420 | rm -f conf$$subs.sh | |
13421 | ||
13422 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 13423 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
13424 | _ACEOF |
13425 | sed -n ' | |
13426 | h | |
13427 | s/^/S["/; s/!.*/"]=/ | |
13428 | p | |
13429 | g | |
13430 | s/^[^!]*!// | |
13431 | :repl | |
13432 | t repl | |
13433 | s/'"$ac_delim"'$// | |
13434 | t delim | |
13435 | :nl | |
13436 | h | |
b0322a85 | 13437 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13438 | t more1 |
13439 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13440 | p | |
13441 | n | |
13442 | b repl | |
13443 | :more1 | |
13444 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13445 | p | |
13446 | g | |
13447 | s/.\{148\}// | |
13448 | t nl | |
13449 | :delim | |
13450 | h | |
b0322a85 | 13451 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13452 | t more2 |
13453 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13454 | p | |
13455 | b | |
13456 | :more2 | |
13457 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13458 | p | |
13459 | g | |
13460 | s/.\{148\}// | |
13461 | t delim | |
13462 | ' <conf$$subs.awk | sed ' | |
13463 | /^[^""]/{ | |
13464 | N | |
13465 | s/\n// | |
13466 | } | |
13467 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13468 | rm -f conf$$subs.awk | |
13469 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13470 | _ACAWK | |
b0322a85 | 13471 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
13472 | for (key in S) S_is_set[key] = 1 |
13473 | FS = "\a" | |
d9898ee8 | 13474 | |
8d138742 CE |
13475 | } |
13476 | { | |
13477 | line = $ 0 | |
13478 | nfields = split(line, field, "@") | |
13479 | substed = 0 | |
13480 | len = length(field[1]) | |
13481 | for (i = 2; i < nfields; i++) { | |
13482 | key = field[i] | |
13483 | keylen = length(key) | |
13484 | if (S_is_set[key]) { | |
13485 | value = S[key] | |
13486 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13487 | len += length(value) + length(field[++i]) | |
13488 | substed = 1 | |
13489 | } else | |
13490 | len += 1 + keylen | |
13491 | } | |
d9898ee8 | 13492 | |
8d138742 CE |
13493 | print line |
13494 | } | |
d9898ee8 | 13495 | |
8d138742 CE |
13496 | _ACAWK |
13497 | _ACEOF | |
13498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13499 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13500 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13501 | else | |
13502 | cat | |
b0322a85 CE |
13503 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
13504 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8d138742 | 13505 | _ACEOF |
d9898ee8 | 13506 | |
b0322a85 CE |
13507 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13508 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
13509 | # trailing colons and then remove the whole line if VPATH becomes empty |
13510 | # (actually we leave an empty line to preserve line numbers). | |
13511 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
13512 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13513 | h | |
13514 | s/// | |
13515 | s/^/:/ | |
13516 | s/[ ]*$/:/ | |
13517 | s/:\$(srcdir):/:/g | |
13518 | s/:\${srcdir}:/:/g | |
13519 | s/:@srcdir@:/:/g | |
13520 | s/^:*// | |
8d138742 | 13521 | s/:*$// |
b0322a85 CE |
13522 | x |
13523 | s/\(=[ ]*\).*/\1/ | |
13524 | G | |
13525 | s/\n// | |
8d138742 CE |
13526 | s/^[^=]*=[ ]*$// |
13527 | }' | |
13528 | fi | |
d9898ee8 | 13529 | |
8d138742 CE |
13530 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13531 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 13532 | |
8d138742 CE |
13533 | # Set up the scripts for CONFIG_HEADERS section. |
13534 | # No need to generate them if there are no CONFIG_HEADERS. | |
13535 | # This happens for instance with `./config.status Makefile'. | |
13536 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 13537 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 CE |
13538 | BEGIN { |
13539 | _ACEOF | |
d9898ee8 | 13540 | |
8d138742 CE |
13541 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
13542 | # here-document in config.status, that substitutes the proper values into | |
13543 | # config.h.in to produce config.h. | |
d9898ee8 | 13544 | |
8d138742 CE |
13545 | # Create a delimiter string that does not exist in confdefs.h, to ease |
13546 | # handling of long lines. | |
13547 | ac_delim='%!_!# ' | |
13548 | for ac_last_try in false false :; do | |
b0322a85 CE |
13549 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13550 | if test -z "$ac_tt"; then | |
8d138742 CE |
13551 | break |
13552 | elif $ac_last_try; then | |
b0322a85 | 13553 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
13554 | else |
13555 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13556 | fi | |
13557 | done | |
d9898ee8 | 13558 | |
8d138742 CE |
13559 | # For the awk script, D is an array of macro values keyed by name, |
13560 | # likewise P contains macro parameters if any. Preserve backslash | |
13561 | # newline sequences. | |
d9898ee8 | 13562 | |
8d138742 CE |
13563 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
13564 | sed -n ' | |
13565 | s/.\{148\}/&'"$ac_delim"'/g | |
13566 | t rset | |
13567 | :rset | |
13568 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13569 | t def | |
13570 | d | |
13571 | :def | |
13572 | s/\\$// | |
13573 | t bsnl | |
13574 | s/["\\]/\\&/g | |
13575 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13576 | D["\1"]=" \3"/p | |
13577 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13578 | d | |
13579 | :bsnl | |
13580 | s/["\\]/\\&/g | |
13581 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13582 | D["\1"]=" \3\\\\\\n"\\/p | |
13583 | t cont | |
13584 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13585 | t cont | |
13586 | d | |
13587 | :cont | |
13588 | n | |
13589 | s/.\{148\}/&'"$ac_delim"'/g | |
13590 | t clear | |
13591 | :clear | |
13592 | s/\\$// | |
13593 | t bsnlc | |
13594 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13595 | d | |
13596 | :bsnlc | |
13597 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13598 | b cont | |
13599 | ' <confdefs.h | sed ' | |
13600 | s/'"$ac_delim"'/"\\\ | |
13601 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13602 | ||
13603 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13604 | for (key in D) D_is_set[key] = 1 | |
13605 | FS = "\a" | |
13606 | } | |
13607 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13608 | line = \$ 0 | |
13609 | split(line, arg, " ") | |
13610 | if (arg[1] == "#") { | |
13611 | defundef = arg[2] | |
13612 | mac1 = arg[3] | |
13613 | } else { | |
13614 | defundef = substr(arg[1], 2) | |
13615 | mac1 = arg[2] | |
13616 | } | |
13617 | split(mac1, mac2, "(") #) | |
13618 | macro = mac2[1] | |
13619 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13620 | if (D_is_set[macro]) { | |
13621 | # Preserve the white space surrounding the "#". | |
13622 | print prefix "define", macro P[macro] D[macro] | |
13623 | next | |
13624 | } else { | |
13625 | # Replace #undef with comments. This is necessary, for example, | |
13626 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13627 | # on some systems where configure will not decide to define it. | |
13628 | if (defundef == "undef") { | |
13629 | print "/*", prefix defundef, macro, "*/" | |
13630 | next | |
13631 | } | |
13632 | } | |
13633 | } | |
13634 | { print } | |
13635 | _ACAWK | |
13636 | _ACEOF | |
13637 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b0322a85 | 13638 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 13639 | fi # test -n "$CONFIG_HEADERS" |
d9898ee8 | 13640 | |
d9898ee8 | 13641 | |
8d138742 CE |
13642 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
13643 | shift | |
13644 | for ac_tag | |
13645 | do | |
13646 | case $ac_tag in | |
13647 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13648 | esac | |
13649 | case $ac_mode$ac_tag in | |
13650 | :[FHL]*:*);; | |
b0322a85 | 13651 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
13652 | :[FH]-) ac_tag=-:-;; |
13653 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13654 | esac | |
13655 | ac_save_IFS=$IFS | |
13656 | IFS=: | |
13657 | set x $ac_tag | |
13658 | IFS=$ac_save_IFS | |
13659 | shift | |
13660 | ac_file=$1 | |
13661 | shift | |
d9898ee8 | 13662 | |
8d138742 CE |
13663 | case $ac_mode in |
13664 | :L) ac_source=$1;; | |
13665 | :[FH]) | |
13666 | ac_file_inputs= | |
13667 | for ac_f | |
13668 | do | |
13669 | case $ac_f in | |
b0322a85 | 13670 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
13671 | *) # Look for the file first in the build tree, then in the source tree |
13672 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13673 | # because $ac_f cannot contain `:'. | |
13674 | test -f "$ac_f" || | |
13675 | case $ac_f in | |
13676 | [\\/$]*) false;; | |
13677 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13678 | esac || | |
b0322a85 | 13679 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
13680 | esac |
13681 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 13682 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 13683 | done |
d9898ee8 | 13684 | |
8d138742 CE |
13685 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13686 | # use $as_me), people would be surprised to read: | |
13687 | # /* config.h. Generated by config.status. */ | |
13688 | configure_input='Generated from '` | |
13689 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13690 | `' by configure.' | |
13691 | if test x"$ac_file" != x-; then | |
13692 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
13694 | $as_echo "$as_me: creating $ac_file" >&6;} |
13695 | fi | |
13696 | # Neutralize special characters interpreted by sed in replacement strings. | |
13697 | case $configure_input in #( | |
13698 | *\&* | *\|* | *\\* ) | |
13699 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13700 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13701 | *) ac_sed_conf_input=$configure_input;; | |
13702 | esac | |
d9898ee8 | 13703 | |
8d138742 | 13704 | case $ac_tag in |
b0322a85 CE |
13705 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
13706 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
13707 | esac |
13708 | ;; | |
13709 | esac | |
d9898ee8 | 13710 | |
8d138742 CE |
13711 | ac_dir=`$as_dirname -- "$ac_file" || |
13712 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13713 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13714 | X"$ac_file" : 'X\(//\)$' \| \ | |
13715 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13716 | $as_echo X"$ac_file" | | |
13717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13718 | s//\1/ | |
13719 | q | |
13720 | } | |
13721 | /^X\(\/\/\)[^/].*/{ | |
13722 | s//\1/ | |
13723 | q | |
13724 | } | |
13725 | /^X\(\/\/\)$/{ | |
13726 | s//\1/ | |
13727 | q | |
13728 | } | |
13729 | /^X\(\/\).*/{ | |
13730 | s//\1/ | |
13731 | q | |
13732 | } | |
13733 | s/.*/./; q'` | |
b0322a85 | 13734 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 | 13735 | ac_builddir=. |
d9898ee8 | 13736 | |
8d138742 CE |
13737 | case "$ac_dir" in |
13738 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13739 | *) | |
13740 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13741 | # A ".." for each directory in $ac_dir_suffix. | |
13742 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13743 | case $ac_top_builddir_sub in | |
13744 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13745 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13746 | esac ;; | |
13747 | esac | |
13748 | ac_abs_top_builddir=$ac_pwd | |
13749 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13750 | # for backward compatibility: | |
13751 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 13752 | |
8d138742 CE |
13753 | case $srcdir in |
13754 | .) # We are building in place. | |
13755 | ac_srcdir=. | |
13756 | ac_top_srcdir=$ac_top_builddir_sub | |
13757 | ac_abs_top_srcdir=$ac_pwd ;; | |
13758 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13759 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13760 | ac_top_srcdir=$srcdir | |
13761 | ac_abs_top_srcdir=$srcdir ;; | |
13762 | *) # Relative name. | |
13763 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13764 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13765 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13766 | esac | |
13767 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 13768 | |
d9898ee8 | 13769 | |
8d138742 CE |
13770 | case $ac_mode in |
13771 | :F) | |
13772 | # | |
13773 | # CONFIG_FILE | |
13774 | # | |
d9898ee8 | 13775 | |
8d138742 CE |
13776 | case $INSTALL in |
13777 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13778 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13779 | esac | |
13780 | ac_MKDIR_P=$MKDIR_P | |
13781 | case $MKDIR_P in | |
13782 | [\\/$]* | ?:[\\/]* ) ;; | |
13783 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13784 | esac | |
13785 | _ACEOF | |
d9898ee8 | 13786 | |
8d138742 CE |
13787 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13788 | # If the template does not know about datarootdir, expand it. | |
13789 | # FIXME: This hack should be removed a few years after 2.60. | |
13790 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
13791 | ac_sed_dataroot=' |
13792 | /datarootdir/ { | |
13793 | p | |
13794 | q | |
13795 | } | |
13796 | /@datadir@/p | |
13797 | /@docdir@/p | |
13798 | /@infodir@/p | |
13799 | /@localedir@/p | |
b0322a85 | 13800 | /@mandir@/p' |
8d138742 CE |
13801 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
13802 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13803 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 13804 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
13805 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
13806 | _ACEOF | |
13807 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13808 | ac_datarootdir_hack=' | |
13809 | s&@datadir@&$datadir&g | |
13810 | s&@docdir@&$docdir&g | |
13811 | s&@infodir@&$infodir&g | |
13812 | s&@localedir@&$localedir&g | |
13813 | s&@mandir@&$mandir&g | |
b0322a85 | 13814 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8d138742 CE |
13815 | esac |
13816 | _ACEOF | |
d9898ee8 | 13817 | |
8d138742 CE |
13818 | # Neutralize VPATH when `$srcdir' = `.'. |
13819 | # Shell code in configure.ac might set extrasub. | |
13820 | # FIXME: do we really want to maintain this feature? | |
13821 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13822 | ac_sed_extra="$ac_vpsub | |
13823 | $extrasub | |
13824 | _ACEOF | |
13825 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13826 | :t | |
13827 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13828 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13829 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13830 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13831 | s&@srcdir@&$ac_srcdir&;t t | |
13832 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13833 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13834 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13835 | s&@builddir@&$ac_builddir&;t t | |
13836 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13837 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13838 | s&@INSTALL@&$ac_INSTALL&;t t | |
13839 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13840 | $ac_datarootdir_hack | |
13841 | " | |
b0322a85 CE |
13842 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
13843 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 13844 | |
8d138742 | 13845 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
13846 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
13847 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13848 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
13849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13850 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 13851 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 13852 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 13853 | |
b0322a85 | 13854 | rm -f "$ac_tmp/stdin" |
8d138742 | 13855 | case $ac_file in |
b0322a85 CE |
13856 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
13857 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 13858 | esac \ |
b0322a85 | 13859 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
13860 | ;; |
13861 | :H) | |
13862 | # | |
13863 | # CONFIG_HEADER | |
13864 | # | |
13865 | if test x"$ac_file" != x-; then | |
13866 | { | |
13867 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13868 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
13869 | } >"$ac_tmp/config.h" \ | |
13870 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13871 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
13872 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
13873 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
13874 | else | |
13875 | rm -f "$ac_file" | |
b0322a85 CE |
13876 | mv "$ac_tmp/config.h" "$ac_file" \ |
13877 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
13878 | fi |
13879 | else | |
13880 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13881 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
13882 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
13883 | fi |
13884 | # Compute "$ac_file"'s index in $config_headers. | |
13885 | _am_arg="$ac_file" | |
13886 | _am_stamp_count=1 | |
13887 | for _am_header in $config_headers :; do | |
13888 | case $_am_header in | |
13889 | $_am_arg | $_am_arg:* ) | |
13890 | break ;; | |
13891 | * ) | |
13892 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13893 | esac | |
13894 | done | |
13895 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13896 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13897 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13898 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13899 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13900 | $as_echo X"$_am_arg" | | |
13901 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13902 | s//\1/ | |
13903 | q | |
13904 | } | |
13905 | /^X\(\/\/\)[^/].*/{ | |
13906 | s//\1/ | |
13907 | q | |
13908 | } | |
13909 | /^X\(\/\/\)$/{ | |
13910 | s//\1/ | |
13911 | q | |
13912 | } | |
13913 | /^X\(\/\).*/{ | |
13914 | s//\1/ | |
13915 | q | |
13916 | } | |
13917 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13918 | ;; | |
d9898ee8 | 13919 | |
b0322a85 | 13920 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
13921 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
13922 | ;; | |
13923 | esac | |
d9898ee8 | 13924 | |
d9898ee8 | 13925 | |
8d138742 CE |
13926 | case $ac_file$ac_mode in |
13927 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 13928 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
13929 | # are listed without --file. Let's play safe and only enable the eval |
13930 | # if we detect the quoting. | |
13931 | case $CONFIG_FILES in | |
13932 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13933 | *) set x $CONFIG_FILES ;; | |
13934 | esac | |
13935 | shift | |
13936 | for mf | |
13937 | do | |
13938 | # Strip MF so we end up with the name of the file. | |
13939 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13940 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 13941 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
13942 | # some people rename them; so instead we look at the file content. |
13943 | # Grep'ing the first line is not enough: some people post-process | |
13944 | # each Makefile.in and add a new line on top of each file to say so. | |
13945 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13946 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13947 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13948 | dirpart=`$as_dirname -- "$mf" || | |
13949 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13950 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13951 | X"$mf" : 'X\(//\)$' \| \ | |
13952 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13953 | $as_echo X"$mf" | | |
13954 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13955 | s//\1/ | |
13956 | q | |
13957 | } | |
13958 | /^X\(\/\/\)[^/].*/{ | |
13959 | s//\1/ | |
13960 | q | |
13961 | } | |
13962 | /^X\(\/\/\)$/{ | |
13963 | s//\1/ | |
13964 | q | |
13965 | } | |
13966 | /^X\(\/\).*/{ | |
13967 | s//\1/ | |
13968 | q | |
13969 | } | |
13970 | s/.*/./; q'` | |
13971 | else | |
13972 | continue | |
13973 | fi | |
13974 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 13975 | # from the Makefile without running 'make'. |
8d138742 CE |
13976 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13977 | test -z "$DEPDIR" && continue | |
13978 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 13979 | test -z "$am__include" && continue |
8d138742 | 13980 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
13981 | # Find all dependency output files, they are included files with |
13982 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13983 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13984 | # expansion. | |
13985 | for file in `sed -n " | |
13986 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 13987 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
13988 | # Make sure the directory exists. |
13989 | test -f "$dirpart/$file" && continue | |
13990 | fdir=`$as_dirname -- "$file" || | |
13991 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13992 | X"$file" : 'X\(//\)[^/]' \| \ | |
13993 | X"$file" : 'X\(//\)$' \| \ | |
13994 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13995 | $as_echo X"$file" | | |
13996 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13997 | s//\1/ | |
13998 | q | |
13999 | } | |
14000 | /^X\(\/\/\)[^/].*/{ | |
14001 | s//\1/ | |
14002 | q | |
14003 | } | |
14004 | /^X\(\/\/\)$/{ | |
14005 | s//\1/ | |
14006 | q | |
14007 | } | |
14008 | /^X\(\/\).*/{ | |
14009 | s//\1/ | |
14010 | q | |
14011 | } | |
14012 | s/.*/./; q'` | |
b0322a85 | 14013 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
14014 | # echo "creating $dirpart/$file" |
14015 | echo '# dummy' > "$dirpart/$file" | |
14016 | done | |
14017 | done | |
d9898ee8 | 14018 | } |
8d138742 CE |
14019 | ;; |
14020 | "libtool":C) | |
dd184caf | 14021 | |
d50284c4 | 14022 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 14023 | # commands through without removal of \ escapes. |
d50284c4 | 14024 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
14025 | setopt NO_GLOB_SUBST |
14026 | fi | |
d9898ee8 | 14027 | |
d50284c4 | 14028 | cfgfile=${ofile}T |
8d138742 CE |
14029 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
14030 | $RM "$cfgfile" | |
d9898ee8 | 14031 | |
8d138742 CE |
14032 | cat <<_LT_EOF >> "$cfgfile" |
14033 | #! $SHELL | |
d50284c4 | 14034 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
8d138742 CE |
14035 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14036 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d50284c4 CE |
14037 | |
14038 | # Provide generalized library-building support services. | |
14039 | # Written by Gordon Matzigkeit, 1996 | |
14040 | ||
14041 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
14042 | # This is free software; see the source for copying conditions. There is NO | |
14043 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
14044 | ||
14045 | # GNU Libtool is free software; you can redistribute it and/or modify | |
14046 | # it under the terms of the GNU General Public License as published by | |
14047 | # the Free Software Foundation; either version 2 of of the License, or | |
14048 | # (at your option) any later version. | |
d9898ee8 | 14049 | # |
d50284c4 CE |
14050 | # As a special exception to the GNU General Public License, if you |
14051 | # distribute this file as part of a program or library that is built | |
14052 | # using GNU Libtool, you may include this file under the same | |
14053 | # distribution terms that you use for the rest of that program. | |
8d138742 | 14054 | # |
d50284c4 CE |
14055 | # GNU Libtool is distributed in the hope that it will be useful, but |
14056 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8d138742 CE |
14057 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14058 | # GNU General Public License for more details. | |
14059 | # | |
14060 | # You should have received a copy of the GNU General Public License | |
d50284c4 | 14061 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
d9898ee8 | 14062 | |
d9898ee8 | 14063 | |
8d138742 | 14064 | # The names of the tagged configurations supported by this script. |
d50284c4 CE |
14065 | available_tags='' |
14066 | ||
14067 | # Configured defaults for sys_lib_dlsearch_path munging. | |
14068 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
d9898ee8 | 14069 | |
8d138742 | 14070 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 14071 | |
8d138742 CE |
14072 | # Which release of libtool.m4 was used? |
14073 | macro_version=$macro_version | |
14074 | macro_revision=$macro_revision | |
d9898ee8 | 14075 | |
8d138742 CE |
14076 | # Whether or not to build shared libraries. |
14077 | build_libtool_libs=$enable_shared | |
d9898ee8 | 14078 | |
8d138742 CE |
14079 | # Whether or not to build static libraries. |
14080 | build_old_libs=$enable_static | |
d9898ee8 | 14081 | |
8d138742 CE |
14082 | # What type of objects to build. |
14083 | pic_mode=$pic_mode | |
d9898ee8 | 14084 | |
8d138742 CE |
14085 | # Whether or not to optimize for fast installation. |
14086 | fast_install=$enable_fast_install | |
d9898ee8 | 14087 | |
d50284c4 CE |
14088 | # Shared archive member basename,for filename based shared library versioning on AIX. |
14089 | shared_archive_member_spec=$shared_archive_member_spec | |
14090 | ||
b0322a85 CE |
14091 | # Shell to use when invoking shell scripts. |
14092 | SHELL=$lt_SHELL | |
14093 | ||
14094 | # An echo program that protects backslashes. | |
14095 | ECHO=$lt_ECHO | |
14096 | ||
14097 | # The PATH separator for the build system. | |
14098 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
14099 | ||
8d138742 CE |
14100 | # The host system. |
14101 | host_alias=$host_alias | |
14102 | host=$host | |
14103 | host_os=$host_os | |
d9898ee8 | 14104 | |
8d138742 CE |
14105 | # The build system. |
14106 | build_alias=$build_alias | |
14107 | build=$build | |
14108 | build_os=$build_os | |
dd184caf | 14109 | |
8d138742 CE |
14110 | # A sed program that does not truncate output. |
14111 | SED=$lt_SED | |
dd184caf | 14112 | |
8d138742 CE |
14113 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
14114 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 14115 | |
8d138742 CE |
14116 | # A grep program that handles long lines. |
14117 | GREP=$lt_GREP | |
dd184caf | 14118 | |
8d138742 CE |
14119 | # An ERE matcher. |
14120 | EGREP=$lt_EGREP | |
dd184caf | 14121 | |
8d138742 CE |
14122 | # A literal string matcher. |
14123 | FGREP=$lt_FGREP | |
dd184caf | 14124 | |
8d138742 CE |
14125 | # A BSD- or MS-compatible name lister. |
14126 | NM=$lt_NM | |
d9898ee8 | 14127 | |
8d138742 CE |
14128 | # Whether we need soft or hard links. |
14129 | LN_S=$lt_LN_S | |
d9898ee8 | 14130 | |
8d138742 CE |
14131 | # What is the maximum length of a command? |
14132 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 14133 | |
8d138742 CE |
14134 | # Object file suffix (normally "o"). |
14135 | objext=$ac_objext | |
dd184caf | 14136 | |
8d138742 CE |
14137 | # Executable file suffix (normally ""). |
14138 | exeext=$exeext | |
dd184caf | 14139 | |
8d138742 CE |
14140 | # whether the shell understands "unset". |
14141 | lt_unset=$lt_unset | |
dd184caf | 14142 | |
8d138742 CE |
14143 | # turn spaces into newlines. |
14144 | SP2NL=$lt_lt_SP2NL | |
d9898ee8 | 14145 | |
8d138742 CE |
14146 | # turn newlines into spaces. |
14147 | NL2SP=$lt_lt_NL2SP | |
d9898ee8 | 14148 | |
b0322a85 CE |
14149 | # convert \$build file names to \$host format. |
14150 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14151 | ||
14152 | # convert \$build files to toolchain format. | |
14153 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
d9898ee8 | 14154 | |
8d138742 CE |
14155 | # An object symbol dumper. |
14156 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 14157 | |
8d138742 CE |
14158 | # Method to check whether dependent libraries are shared objects. |
14159 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 14160 | |
b0322a85 | 14161 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 14162 | file_magic_cmd=$lt_file_magic_cmd |
d9898ee8 | 14163 | |
b0322a85 CE |
14164 | # How to find potential files when deplibs_check_method = "file_magic". |
14165 | file_magic_glob=$lt_file_magic_glob | |
14166 | ||
14167 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14168 | want_nocaseglob=$lt_want_nocaseglob | |
14169 | ||
14170 | # DLL creation program. | |
14171 | DLLTOOL=$lt_DLLTOOL | |
14172 | ||
14173 | # Command to associate shared and link libraries. | |
14174 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14175 | ||
8d138742 CE |
14176 | # The archiver. |
14177 | AR=$lt_AR | |
b0322a85 CE |
14178 | |
14179 | # Flags to create an archive. | |
8d138742 | 14180 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 14181 | |
b0322a85 CE |
14182 | # How to feed a file listing to the archiver. |
14183 | archiver_list_spec=$lt_archiver_list_spec | |
14184 | ||
8d138742 CE |
14185 | # A symbol stripping program. |
14186 | STRIP=$lt_STRIP | |
d9898ee8 | 14187 | |
8d138742 CE |
14188 | # Commands used to install an old-style archive. |
14189 | RANLIB=$lt_RANLIB | |
14190 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14191 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 14192 | |
b0322a85 CE |
14193 | # Whether to use a lock for old archive extraction. |
14194 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14195 | ||
8d138742 CE |
14196 | # A C compiler. |
14197 | LTCC=$lt_CC | |
d9898ee8 | 14198 | |
8d138742 CE |
14199 | # LTCC compiler flags. |
14200 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 14201 | |
8d138742 CE |
14202 | # Take the output of nm and produce a listing of raw symbols and C names. |
14203 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 14204 | |
8d138742 CE |
14205 | # Transform the output of nm in a proper C declaration. |
14206 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 14207 | |
d50284c4 CE |
14208 | # Transform the output of nm into a list of symbols to manually relocate. |
14209 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
14210 | ||
8d138742 CE |
14211 | # Transform the output of nm in a C name address pair. |
14212 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
dd184caf | 14213 | |
8d138742 CE |
14214 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14215 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14216 | ||
d50284c4 CE |
14217 | # The name lister interface. |
14218 | nm_interface=$lt_lt_cv_nm_interface | |
14219 | ||
b0322a85 CE |
14220 | # Specify filename containing input files for \$NM. |
14221 | nm_file_list_spec=$lt_nm_file_list_spec | |
8d138742 | 14222 | |
d50284c4 | 14223 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b0322a85 | 14224 | lt_sysroot=$lt_sysroot |
8d138742 | 14225 | |
d50284c4 CE |
14226 | # Command to truncate a binary pipe. |
14227 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
14228 | ||
b0322a85 CE |
14229 | # The name of the directory that contains temporary libtool files. |
14230 | objdir=$objdir | |
d9898ee8 | 14231 | |
8d138742 CE |
14232 | # Used to examine libraries when file_magic_cmd begins with "file". |
14233 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 14234 | |
8d138742 CE |
14235 | # Must we lock files when doing compilation? |
14236 | need_locks=$lt_need_locks | |
d9898ee8 | 14237 | |
b0322a85 CE |
14238 | # Manifest tool. |
14239 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14240 | ||
8d138742 CE |
14241 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14242 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 14243 | |
8d138742 CE |
14244 | # Tool to change global to local symbols on Mac OS X. |
14245 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 14246 | |
8d138742 CE |
14247 | # Tool to manipulate fat objects and archives on Mac OS X. |
14248 | LIPO=$lt_LIPO | |
d9898ee8 | 14249 | |
8d138742 CE |
14250 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14251 | OTOOL=$lt_OTOOL | |
d9898ee8 | 14252 | |
8d138742 CE |
14253 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14254 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 14255 | |
8d138742 CE |
14256 | # Old archive suffix (normally "a"). |
14257 | libext=$libext | |
d9898ee8 | 14258 | |
8d138742 CE |
14259 | # Shared library suffix (normally ".so"). |
14260 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 14261 | |
8d138742 CE |
14262 | # The commands to extract the exported symbol list from a shared archive. |
14263 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 14264 | |
8d138742 CE |
14265 | # Variables whose values should be saved in libtool wrapper scripts and |
14266 | # restored at link time. | |
14267 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 14268 | |
8d138742 CE |
14269 | # Do we need the "lib" prefix for modules? |
14270 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 14271 | |
8d138742 CE |
14272 | # Do we need a version for libraries? |
14273 | need_version=$need_version | |
d9898ee8 | 14274 | |
8d138742 CE |
14275 | # Library versioning type. |
14276 | version_type=$version_type | |
d9898ee8 | 14277 | |
8d138742 CE |
14278 | # Shared library runtime path variable. |
14279 | runpath_var=$runpath_var | |
d9898ee8 | 14280 | |
8d138742 CE |
14281 | # Shared library path variable. |
14282 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 14283 | |
8d138742 CE |
14284 | # Is shlibpath searched before the hard-coded library search path? |
14285 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 14286 | |
8d138742 CE |
14287 | # Format of library name prefix. |
14288 | libname_spec=$lt_libname_spec | |
d9898ee8 | 14289 | |
8d138742 CE |
14290 | # List of archive names. First name is the real one, the rest are links. |
14291 | # The last name is the one that the linker finds with -lNAME | |
14292 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 14293 | |
8d138742 CE |
14294 | # The coded name of the library, if different from the real name. |
14295 | soname_spec=$lt_soname_spec | |
d9898ee8 | 14296 | |
b0322a85 CE |
14297 | # Permission mode override for installation of shared libraries. |
14298 | install_override_mode=$lt_install_override_mode | |
14299 | ||
8d138742 CE |
14300 | # Command to use after installation of a shared archive. |
14301 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 14302 | |
8d138742 CE |
14303 | # Command to use after uninstallation of a shared archive. |
14304 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 14305 | |
8d138742 CE |
14306 | # Commands used to finish a libtool library installation in a directory. |
14307 | finish_cmds=$lt_finish_cmds | |
dd184caf | 14308 | |
8d138742 CE |
14309 | # As "finish_cmds", except a single script fragment to be evaled but |
14310 | # not shown. | |
14311 | finish_eval=$lt_finish_eval | |
d9898ee8 | 14312 | |
8d138742 CE |
14313 | # Whether we should hardcode library paths into libraries. |
14314 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 14315 | |
8d138742 CE |
14316 | # Compile-time system search path for libraries. |
14317 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 14318 | |
d50284c4 CE |
14319 | # Detected run-time system search path for libraries. |
14320 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
14321 | ||
14322 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
14323 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
d9898ee8 | 14324 | |
8d138742 CE |
14325 | # Whether dlopen is supported. |
14326 | dlopen_support=$enable_dlopen | |
d9898ee8 | 14327 | |
8d138742 CE |
14328 | # Whether dlopen of programs is supported. |
14329 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 14330 | |
8d138742 CE |
14331 | # Whether dlopen of statically linked programs is supported. |
14332 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 14333 | |
8d138742 CE |
14334 | # Commands to strip libraries. |
14335 | old_striplib=$lt_old_striplib | |
14336 | striplib=$lt_striplib | |
d9898ee8 | 14337 | |
d9898ee8 | 14338 | |
8d138742 CE |
14339 | # The linker used to build libraries. |
14340 | LD=$lt_LD | |
d9898ee8 | 14341 | |
b0322a85 CE |
14342 | # How to create reloadable object files. |
14343 | reload_flag=$lt_reload_flag | |
14344 | reload_cmds=$lt_reload_cmds | |
14345 | ||
8d138742 CE |
14346 | # Commands used to build an old-style archive. |
14347 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 14348 | |
8d138742 CE |
14349 | # A language specific compiler. |
14350 | CC=$lt_compiler | |
d9898ee8 | 14351 | |
8d138742 CE |
14352 | # Is the compiler the GNU compiler? |
14353 | with_gcc=$GCC | |
dd184caf | 14354 | |
8d138742 CE |
14355 | # Compiler flag to turn off builtin functions. |
14356 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 14357 | |
8d138742 CE |
14358 | # Additional compiler flags for building library objects. |
14359 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 14360 | |
b0322a85 CE |
14361 | # How to pass a linker flag through the compiler. |
14362 | wl=$lt_lt_prog_compiler_wl | |
14363 | ||
8d138742 CE |
14364 | # Compiler flag to prevent dynamic linking. |
14365 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 14366 | |
8d138742 CE |
14367 | # Does compiler simultaneously support -c and -o options? |
14368 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14369 | ||
14370 | # Whether or not to add -lc for building shared libraries. | |
14371 | build_libtool_need_lc=$archive_cmds_need_lc | |
14372 | ||
14373 | # Whether or not to disallow shared libs when runtime libs are static. | |
14374 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14375 | ||
14376 | # Compiler flag to allow reflexive dlopens. | |
14377 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 14378 | |
8d138742 CE |
14379 | # Compiler flag to generate shared objects directly from archives. |
14380 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 14381 | |
8d138742 CE |
14382 | # Whether the compiler copes with passing no objects directly. |
14383 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 14384 | |
8d138742 CE |
14385 | # Create an old-style archive from a shared archive. |
14386 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 14387 | |
8d138742 CE |
14388 | # Create a temporary old-style archive to link instead of a shared archive. |
14389 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 14390 | |
8d138742 CE |
14391 | # Commands used to build a shared archive. |
14392 | archive_cmds=$lt_archive_cmds | |
14393 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 14394 | |
8d138742 CE |
14395 | # Commands used to build a loadable module if different from building |
14396 | # a shared archive. | |
14397 | module_cmds=$lt_module_cmds | |
14398 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 14399 | |
8d138742 CE |
14400 | # Whether we are building with GNU ld or not. |
14401 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 14402 | |
8d138742 CE |
14403 | # Flag that allows shared libraries with undefined symbols to be built. |
14404 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 14405 | |
8d138742 CE |
14406 | # Flag that enforces no undefined symbols. |
14407 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 14408 | |
8d138742 CE |
14409 | # Flag to hardcode \$libdir into a binary during linking. |
14410 | # This must work even if \$libdir does not exist | |
14411 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 14412 | |
8d138742 CE |
14413 | # Whether we need a single "-rpath" flag with a separated argument. |
14414 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 14415 | |
d50284c4 | 14416 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 CE |
14417 | # DIR into the resulting binary. |
14418 | hardcode_direct=$hardcode_direct | |
dd184caf | 14419 | |
d50284c4 | 14420 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 | 14421 | # DIR into the resulting binary and the resulting library dependency is |
d50284c4 | 14422 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
8d138742 CE |
14423 | # library is relocated. |
14424 | hardcode_direct_absolute=$hardcode_direct_absolute | |
d9898ee8 | 14425 | |
8d138742 CE |
14426 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14427 | # into the resulting binary. | |
14428 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 14429 | |
8d138742 CE |
14430 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14431 | # into the resulting binary. | |
14432 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 14433 | |
8d138742 CE |
14434 | # Set to "yes" if building a shared library automatically hardcodes DIR |
14435 | # into the library and all subsequent libraries and executables linked | |
14436 | # against it. | |
14437 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 14438 | |
8d138742 CE |
14439 | # Set to yes if linker adds runtime paths of dependent libraries |
14440 | # to runtime path list. | |
14441 | inherit_rpath=$inherit_rpath | |
dd184caf | 14442 | |
8d138742 CE |
14443 | # Whether libtool must link a program against all its dependency libraries. |
14444 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 14445 | |
8d138742 CE |
14446 | # Set to "yes" if exported symbols are required. |
14447 | always_export_symbols=$always_export_symbols | |
dd184caf | 14448 | |
8d138742 CE |
14449 | # The commands to list exported symbols. |
14450 | export_symbols_cmds=$lt_export_symbols_cmds | |
d9898ee8 | 14451 | |
8d138742 CE |
14452 | # Symbols that should not be listed in the preloaded symbols. |
14453 | exclude_expsyms=$lt_exclude_expsyms | |
dd184caf | 14454 | |
8d138742 CE |
14455 | # Symbols that must always be exported. |
14456 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 14457 | |
8d138742 CE |
14458 | # Commands necessary for linking programs (against libraries) with templates. |
14459 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 14460 | |
b0322a85 CE |
14461 | # Commands necessary for finishing linking programs. |
14462 | postlink_cmds=$lt_postlink_cmds | |
14463 | ||
8d138742 CE |
14464 | # Specify filename containing input files. |
14465 | file_list_spec=$lt_file_list_spec | |
14466 | ||
14467 | # How to hardcode a shared library path into an executable. | |
14468 | hardcode_action=$hardcode_action | |
d9898ee8 | 14469 | |
8d138742 | 14470 | # ### END LIBTOOL CONFIG |
d9898ee8 | 14471 | |
d50284c4 CE |
14472 | _LT_EOF |
14473 | ||
14474 | cat <<'_LT_EOF' >> "$cfgfile" | |
14475 | ||
14476 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
14477 | ||
14478 | # func_munge_path_list VARIABLE PATH | |
14479 | # ----------------------------------- | |
14480 | # VARIABLE is name of variable containing _space_ separated list of | |
14481 | # directories to be munged by the contents of PATH, which is string | |
14482 | # having a format: | |
14483 | # "DIR[:DIR]:" | |
14484 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
14485 | # ":DIR[:DIR]" | |
14486 | # string "DIR[ DIR]" will be appended to VARIABLE | |
14487 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
14488 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
14489 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
14490 | # "DIR[:DIR]" | |
14491 | # VARIABLE will be replaced by "DIR[ DIR]" | |
14492 | func_munge_path_list () | |
14493 | { | |
14494 | case x$2 in | |
14495 | x) | |
14496 | ;; | |
14497 | *:) | |
14498 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
14499 | ;; | |
14500 | x:*) | |
14501 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
14502 | ;; | |
14503 | *::*) | |
14504 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
14505 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
14506 | ;; | |
14507 | *) | |
14508 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
14509 | ;; | |
14510 | esac | |
14511 | } | |
14512 | ||
14513 | ||
14514 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
14515 | func_cc_basename () | |
14516 | { | |
14517 | for cc_temp in $*""; do | |
14518 | case $cc_temp in | |
14519 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
14520 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
14521 | \-*) ;; | |
14522 | *) break;; | |
14523 | esac | |
14524 | done | |
14525 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
14526 | } | |
14527 | ||
14528 | ||
14529 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
14530 | ||
8d138742 | 14531 | _LT_EOF |
d9898ee8 | 14532 | |
8d138742 CE |
14533 | case $host_os in |
14534 | aix3*) | |
14535 | cat <<\_LT_EOF >> "$cfgfile" | |
14536 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14537 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14538 | # vanish in a puff of smoke. | |
d50284c4 | 14539 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
14540 | COLLECT_NAMES= |
14541 | export COLLECT_NAMES | |
14542 | fi | |
14543 | _LT_EOF | |
14544 | ;; | |
dd184caf | 14545 | esac |
8d138742 CE |
14546 | |
14547 | ||
d50284c4 | 14548 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 CE |
14549 | |
14550 | ||
14551 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14552 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14553 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14554 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
14555 | sed '$q' "$ltmain" >> "$cfgfile" \ |
14556 | || (rm -f "$cfgfile"; exit 1) | |
14557 | ||
b0322a85 | 14558 | mv -f "$cfgfile" "$ofile" || |
8d138742 CE |
14559 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
14560 | chmod +x "$ofile" | |
14561 | ||
d9898ee8 | 14562 | ;; |
dd184caf | 14563 | |
d9898ee8 | 14564 | esac |
dd184caf | 14565 | done # for ac_tag |
d9898ee8 | 14566 | |
d9898ee8 | 14567 | |
b0322a85 | 14568 | as_fn_exit 0 |
d9898ee8 | 14569 | _ACEOF |
d9898ee8 | 14570 | ac_clean_files=$ac_clean_files_save |
14571 | ||
8d138742 | 14572 | test $ac_write_fail = 0 || |
b0322a85 | 14573 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 14574 | |
d9898ee8 | 14575 | |
14576 | # configure is writing to config.log, and then calls config.status. | |
14577 | # config.status does its own redirection, appending to config.log. | |
14578 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14579 | # by configure, so config.status won't be able to write to it; its | |
14580 | # output is simply discarded. So we exec the FD to /dev/null, | |
14581 | # effectively closing config.log, so it can be properly (re)opened and | |
14582 | # appended to by config.status. When coming back to configure, we | |
14583 | # need to make the FD available again. | |
14584 | if test "$no_create" != yes; then | |
14585 | ac_cs_success=: | |
14586 | ac_config_status_args= | |
14587 | test "$silent" = yes && | |
14588 | ac_config_status_args="$ac_config_status_args --quiet" | |
14589 | exec 5>/dev/null | |
14590 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14591 | exec 5>>config.log | |
14592 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14593 | # would make configure fail if this is the last instruction. | |
b0322a85 | 14594 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 14595 | fi |
8d138742 | 14596 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
14598 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
14599 | fi | |
d9898ee8 | 14600 |