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 rfc822lib 0.13. |
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 | test \$(( 1 + 1 )) = 2 || exit 1 | |
202 | ||
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | PATH=/empty FPATH=/empty; export PATH FPATH | |
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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= ;; | |
262 | esac | |
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='rfc822lib' | |
592 | PACKAGE_TARNAME='rfc822lib' | |
8d138742 CE |
593 | PACKAGE_VERSION='0.13' |
594 | PACKAGE_STRING='rfc822lib 0.13' | |
d9898ee8 | 595 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
b0322a85 | 596 | PACKAGE_URL='' |
d9898ee8 | 597 | |
598 | ac_unique_file="rfc822.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 | |
639 | HAVE_SGML_FALSE | |
640 | HAVE_SGML_TRUE | |
641 | LIBIDN_LIBS | |
642 | LIBIDN_CFLAGS | |
b0322a85 CE |
643 | PKG_CONFIG_LIBDIR |
644 | PKG_CONFIG_PATH | |
8d138742 | 645 | PKG_CONFIG |
d50284c4 | 646 | LT_SYS_LIBRARY_PATH |
8d138742 CE |
647 | OTOOL64 |
648 | OTOOL | |
649 | LIPO | |
650 | NMEDIT | |
651 | DSYMUTIL | |
b0322a85 | 652 | MANIFEST_TOOL |
dd184caf | 653 | RANLIB |
b0322a85 | 654 | ac_ct_AR |
8d138742 | 655 | AR |
b0322a85 | 656 | DLLTOOL |
8d138742 CE |
657 | OBJDUMP |
658 | LN_S | |
659 | NM | |
660 | ac_ct_DUMPBIN | |
661 | DUMPBIN | |
662 | LD | |
663 | FGREP | |
664 | SED | |
665 | host_os | |
666 | host_vendor | |
667 | host_cpu | |
668 | host | |
669 | build_os | |
670 | build_vendor | |
671 | build_cpu | |
672 | build | |
dd184caf | 673 | LIBTOOL |
8d138742 CE |
674 | EGREP |
675 | GREP | |
676 | CPP | |
677 | am__fastdepCC_FALSE | |
678 | am__fastdepCC_TRUE | |
679 | CCDEPMODE | |
b0322a85 | 680 | am__nodep |
8d138742 CE |
681 | AMDEPBACKSLASH |
682 | AMDEP_FALSE | |
683 | AMDEP_TRUE | |
684 | am__quote | |
685 | am__include | |
686 | DEPDIR | |
687 | OBJEXT | |
688 | EXEEXT | |
689 | ac_ct_CC | |
690 | CPPFLAGS | |
691 | LDFLAGS | |
692 | CFLAGS | |
693 | CC | |
b0322a85 CE |
694 | AM_BACKSLASH |
695 | AM_DEFAULT_VERBOSITY | |
696 | AM_DEFAULT_V | |
697 | AM_V | |
8d138742 CE |
698 | am__untar |
699 | am__tar | |
700 | AMTAR | |
701 | am__leading_dot | |
702 | SET_MAKE | |
703 | AWK | |
704 | mkdir_p | |
705 | MKDIR_P | |
706 | INSTALL_STRIP_PROGRAM | |
707 | STRIP | |
708 | install_sh | |
709 | MAKEINFO | |
710 | AUTOHEADER | |
711 | AUTOMAKE | |
712 | AUTOCONF | |
713 | ACLOCAL | |
714 | VERSION | |
715 | PACKAGE | |
716 | CYGPATH_W | |
717 | am__isrc | |
718 | INSTALL_DATA | |
719 | INSTALL_SCRIPT | |
720 | INSTALL_PROGRAM | |
721 | target_alias | |
722 | host_alias | |
723 | build_alias | |
724 | LIBS | |
725 | ECHO_T | |
726 | ECHO_N | |
727 | ECHO_C | |
728 | DEFS | |
729 | mandir | |
730 | localedir | |
731 | libdir | |
732 | psdir | |
733 | pdfdir | |
734 | dvidir | |
735 | htmldir | |
736 | infodir | |
737 | docdir | |
738 | oldincludedir | |
739 | includedir | |
740 | localstatedir | |
741 | sharedstatedir | |
742 | sysconfdir | |
743 | datadir | |
744 | datarootdir | |
745 | libexecdir | |
746 | sbindir | |
747 | bindir | |
748 | program_transform_name | |
749 | prefix | |
750 | exec_prefix | |
b0322a85 | 751 | PACKAGE_URL |
8d138742 CE |
752 | PACKAGE_BUGREPORT |
753 | PACKAGE_STRING | |
754 | PACKAGE_VERSION | |
755 | PACKAGE_TARNAME | |
756 | PACKAGE_NAME | |
757 | PATH_SEPARATOR | |
758 | SHELL' | |
d9898ee8 | 759 | ac_subst_files='' |
8d138742 CE |
760 | ac_user_opts=' |
761 | enable_option_checking | |
b0322a85 | 762 | enable_silent_rules |
8d138742 CE |
763 | enable_dependency_tracking |
764 | enable_shared | |
765 | enable_static | |
766 | with_pic | |
767 | enable_fast_install | |
d50284c4 | 768 | with_aix_soname |
8d138742 | 769 | with_gnu_ld |
b0322a85 | 770 | with_sysroot |
8d138742 | 771 | enable_libtool_lock |
b0322a85 | 772 | enable_largefile |
8d138742 CE |
773 | with_libidn |
774 | ' | |
dd184caf | 775 | ac_precious_vars='build_alias |
776 | host_alias | |
777 | target_alias | |
778 | CC | |
779 | CFLAGS | |
780 | LDFLAGS | |
781 | LIBS | |
782 | CPPFLAGS | |
783 | CPP | |
d50284c4 | 784 | LT_SYS_LIBRARY_PATH |
8d138742 | 785 | PKG_CONFIG |
b0322a85 CE |
786 | PKG_CONFIG_PATH |
787 | PKG_CONFIG_LIBDIR | |
8d138742 CE |
788 | LIBIDN_CFLAGS |
789 | LIBIDN_LIBS' | |
dd184caf | 790 | |
d9898ee8 | 791 | |
792 | # Initialize some variables set by options. | |
793 | ac_init_help= | |
794 | ac_init_version=false | |
8d138742 CE |
795 | ac_unrecognized_opts= |
796 | ac_unrecognized_sep= | |
d9898ee8 | 797 | # The variables have the same names as the options, with |
798 | # dashes changed to underlines. | |
799 | cache_file=/dev/null | |
800 | exec_prefix=NONE | |
801 | no_create= | |
802 | no_recursion= | |
803 | prefix=NONE | |
804 | program_prefix=NONE | |
805 | program_suffix=NONE | |
806 | program_transform_name=s,x,x, | |
807 | silent= | |
808 | site= | |
809 | srcdir= | |
810 | verbose= | |
811 | x_includes=NONE | |
812 | x_libraries=NONE | |
813 | ||
814 | # Installation directory options. | |
815 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
816 | # and all the variables that are supposed to be based on exec_prefix | |
817 | # by default will actually change. | |
818 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 819 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 820 | bindir='${exec_prefix}/bin' |
821 | sbindir='${exec_prefix}/sbin' | |
822 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 823 | datarootdir='${prefix}/share' |
824 | datadir='${datarootdir}' | |
d9898ee8 | 825 | sysconfdir='${prefix}/etc' |
826 | sharedstatedir='${prefix}/com' | |
827 | localstatedir='${prefix}/var' | |
d9898ee8 | 828 | includedir='${prefix}/include' |
829 | oldincludedir='/usr/include' | |
dd184caf | 830 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
831 | infodir='${datarootdir}/info' | |
832 | htmldir='${docdir}' | |
833 | dvidir='${docdir}' | |
834 | pdfdir='${docdir}' | |
835 | psdir='${docdir}' | |
836 | libdir='${exec_prefix}/lib' | |
837 | localedir='${datarootdir}/locale' | |
838 | mandir='${datarootdir}/man' | |
d9898ee8 | 839 | |
840 | ac_prev= | |
dd184caf | 841 | ac_dashdash= |
d9898ee8 | 842 | for ac_option |
843 | do | |
844 | # If the previous option needs an argument, assign it. | |
845 | if test -n "$ac_prev"; then | |
dd184caf | 846 | eval $ac_prev=\$ac_option |
d9898ee8 | 847 | ac_prev= |
848 | continue | |
849 | fi | |
850 | ||
dd184caf | 851 | case $ac_option in |
b0322a85 CE |
852 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
853 | *=) ac_optarg= ;; | |
854 | *) ac_optarg=yes ;; | |
dd184caf | 855 | esac |
d9898ee8 | 856 | |
857 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
858 | ||
dd184caf | 859 | case $ac_dashdash$ac_option in |
860 | --) | |
861 | ac_dashdash=yes ;; | |
d9898ee8 | 862 | |
863 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
864 | ac_prev=bindir ;; | |
865 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
866 | bindir=$ac_optarg ;; | |
867 | ||
868 | -build | --build | --buil | --bui | --bu) | |
869 | ac_prev=build_alias ;; | |
870 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
871 | build_alias=$ac_optarg ;; | |
872 | ||
873 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
874 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
875 | ac_prev=cache_file ;; | |
876 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
877 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
878 | cache_file=$ac_optarg ;; | |
879 | ||
880 | --config-cache | -C) | |
881 | cache_file=config.cache ;; | |
882 | ||
dd184caf | 883 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 884 | ac_prev=datadir ;; |
dd184caf | 885 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 886 | datadir=$ac_optarg ;; |
887 | ||
dd184caf | 888 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
889 | | --dataroo | --dataro | --datar) | |
890 | ac_prev=datarootdir ;; | |
891 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
892 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
893 | datarootdir=$ac_optarg ;; | |
894 | ||
d9898ee8 | 895 | -disable-* | --disable-*) |
8d138742 | 896 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 897 | # Reject names that are not valid shell variable names. |
8d138742 | 898 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 899 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
900 | ac_useropt_orig=$ac_useropt |
901 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
902 | case $ac_user_opts in | |
903 | *" | |
904 | "enable_$ac_useropt" | |
905 | "*) ;; | |
906 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
907 | ac_unrecognized_sep=', ';; | |
908 | esac | |
909 | eval enable_$ac_useropt=no ;; | |
dd184caf | 910 | |
911 | -docdir | --docdir | --docdi | --doc | --do) | |
912 | ac_prev=docdir ;; | |
913 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
914 | docdir=$ac_optarg ;; | |
915 | ||
916 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
917 | ac_prev=dvidir ;; | |
918 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
919 | dvidir=$ac_optarg ;; | |
d9898ee8 | 920 | |
921 | -enable-* | --enable-*) | |
8d138742 | 922 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 923 | # Reject names that are not valid shell variable names. |
8d138742 | 924 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 925 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
926 | ac_useropt_orig=$ac_useropt |
927 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
928 | case $ac_user_opts in | |
929 | *" | |
930 | "enable_$ac_useropt" | |
931 | "*) ;; | |
932 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
933 | ac_unrecognized_sep=', ';; | |
934 | esac | |
935 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 936 | |
937 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
938 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
939 | | --exec | --exe | --ex) | |
940 | ac_prev=exec_prefix ;; | |
941 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
942 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
943 | | --exec=* | --exe=* | --ex=*) | |
944 | exec_prefix=$ac_optarg ;; | |
945 | ||
946 | -gas | --gas | --ga | --g) | |
947 | # Obsolete; use --with-gas. | |
948 | with_gas=yes ;; | |
949 | ||
950 | -help | --help | --hel | --he | -h) | |
951 | ac_init_help=long ;; | |
952 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
953 | ac_init_help=recursive ;; | |
954 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
955 | ac_init_help=short ;; | |
956 | ||
957 | -host | --host | --hos | --ho) | |
958 | ac_prev=host_alias ;; | |
959 | -host=* | --host=* | --hos=* | --ho=*) | |
960 | host_alias=$ac_optarg ;; | |
961 | ||
dd184caf | 962 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
963 | ac_prev=htmldir ;; | |
964 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
965 | | --ht=*) | |
966 | htmldir=$ac_optarg ;; | |
967 | ||
d9898ee8 | 968 | -includedir | --includedir | --includedi | --included | --include \ |
969 | | --includ | --inclu | --incl | --inc) | |
970 | ac_prev=includedir ;; | |
971 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
972 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
973 | includedir=$ac_optarg ;; | |
974 | ||
975 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
976 | ac_prev=infodir ;; | |
977 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
978 | infodir=$ac_optarg ;; | |
979 | ||
980 | -libdir | --libdir | --libdi | --libd) | |
981 | ac_prev=libdir ;; | |
982 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
983 | libdir=$ac_optarg ;; | |
984 | ||
985 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
986 | | --libexe | --libex | --libe) | |
987 | ac_prev=libexecdir ;; | |
988 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
989 | | --libexe=* | --libex=* | --libe=*) | |
990 | libexecdir=$ac_optarg ;; | |
991 | ||
dd184caf | 992 | -localedir | --localedir | --localedi | --localed | --locale) |
993 | ac_prev=localedir ;; | |
994 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
995 | localedir=$ac_optarg ;; | |
996 | ||
d9898ee8 | 997 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 998 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 999 | ac_prev=localstatedir ;; |
1000 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1001 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1002 | localstatedir=$ac_optarg ;; |
1003 | ||
1004 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1005 | ac_prev=mandir ;; | |
1006 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1007 | mandir=$ac_optarg ;; | |
1008 | ||
1009 | -nfp | --nfp | --nf) | |
1010 | # Obsolete; use --without-fp. | |
1011 | with_fp=no ;; | |
1012 | ||
1013 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1014 | | --no-cr | --no-c | -n) | |
1015 | no_create=yes ;; | |
1016 | ||
1017 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1018 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1019 | no_recursion=yes ;; | |
1020 | ||
1021 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1022 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1023 | | --oldin | --oldi | --old | --ol | --o) | |
1024 | ac_prev=oldincludedir ;; | |
1025 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1026 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1027 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1028 | oldincludedir=$ac_optarg ;; | |
1029 | ||
1030 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1031 | ac_prev=prefix ;; | |
1032 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1033 | prefix=$ac_optarg ;; | |
1034 | ||
1035 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1036 | | --program-pre | --program-pr | --program-p) | |
1037 | ac_prev=program_prefix ;; | |
1038 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1039 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1040 | program_prefix=$ac_optarg ;; | |
1041 | ||
1042 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1043 | | --program-suf | --program-su | --program-s) | |
1044 | ac_prev=program_suffix ;; | |
1045 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1046 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1047 | program_suffix=$ac_optarg ;; | |
1048 | ||
1049 | -program-transform-name | --program-transform-name \ | |
1050 | | --program-transform-nam | --program-transform-na \ | |
1051 | | --program-transform-n | --program-transform- \ | |
1052 | | --program-transform | --program-transfor \ | |
1053 | | --program-transfo | --program-transf \ | |
1054 | | --program-trans | --program-tran \ | |
1055 | | --progr-tra | --program-tr | --program-t) | |
1056 | ac_prev=program_transform_name ;; | |
1057 | -program-transform-name=* | --program-transform-name=* \ | |
1058 | | --program-transform-nam=* | --program-transform-na=* \ | |
1059 | | --program-transform-n=* | --program-transform-=* \ | |
1060 | | --program-transform=* | --program-transfor=* \ | |
1061 | | --program-transfo=* | --program-transf=* \ | |
1062 | | --program-trans=* | --program-tran=* \ | |
1063 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1064 | program_transform_name=$ac_optarg ;; | |
1065 | ||
dd184caf | 1066 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1067 | ac_prev=pdfdir ;; | |
1068 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1069 | pdfdir=$ac_optarg ;; | |
1070 | ||
1071 | -psdir | --psdir | --psdi | --psd | --ps) | |
1072 | ac_prev=psdir ;; | |
1073 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1074 | psdir=$ac_optarg ;; | |
1075 | ||
d9898ee8 | 1076 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1077 | | -silent | --silent | --silen | --sile | --sil) | |
1078 | silent=yes ;; | |
1079 | ||
1080 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1081 | ac_prev=sbindir ;; | |
1082 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1083 | | --sbi=* | --sb=*) | |
1084 | sbindir=$ac_optarg ;; | |
1085 | ||
1086 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1087 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1088 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1089 | | --sha | --sh) | |
1090 | ac_prev=sharedstatedir ;; | |
1091 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1092 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1093 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1094 | | --sha=* | --sh=*) | |
1095 | sharedstatedir=$ac_optarg ;; | |
1096 | ||
1097 | -site | --site | --sit) | |
1098 | ac_prev=site ;; | |
1099 | -site=* | --site=* | --sit=*) | |
1100 | site=$ac_optarg ;; | |
1101 | ||
1102 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1103 | ac_prev=srcdir ;; | |
1104 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1105 | srcdir=$ac_optarg ;; | |
1106 | ||
1107 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1108 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1109 | ac_prev=sysconfdir ;; | |
1110 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1111 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1112 | sysconfdir=$ac_optarg ;; | |
1113 | ||
1114 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1115 | ac_prev=target_alias ;; | |
1116 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1117 | target_alias=$ac_optarg ;; | |
1118 | ||
1119 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1120 | verbose=yes ;; | |
1121 | ||
1122 | -version | --version | --versio | --versi | --vers | -V) | |
1123 | ac_init_version=: ;; | |
1124 | ||
1125 | -with-* | --with-*) | |
8d138742 | 1126 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1127 | # Reject names that are not valid shell variable names. |
8d138742 | 1128 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1129 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1130 | ac_useropt_orig=$ac_useropt |
1131 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1132 | case $ac_user_opts in | |
1133 | *" | |
1134 | "with_$ac_useropt" | |
1135 | "*) ;; | |
1136 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1137 | ac_unrecognized_sep=', ';; | |
1138 | esac | |
1139 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1140 | |
1141 | -without-* | --without-*) | |
8d138742 | 1142 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1143 | # Reject names that are not valid shell variable names. |
8d138742 | 1144 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1145 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1146 | ac_useropt_orig=$ac_useropt |
1147 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1148 | case $ac_user_opts in | |
1149 | *" | |
1150 | "with_$ac_useropt" | |
1151 | "*) ;; | |
1152 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1153 | ac_unrecognized_sep=', ';; | |
1154 | esac | |
1155 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1156 | |
1157 | --x) | |
1158 | # Obsolete; use --with-x. | |
1159 | with_x=yes ;; | |
1160 | ||
1161 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1162 | | --x-incl | --x-inc | --x-in | --x-i) | |
1163 | ac_prev=x_includes ;; | |
1164 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1165 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1166 | x_includes=$ac_optarg ;; | |
1167 | ||
1168 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1169 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1170 | ac_prev=x_libraries ;; | |
1171 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1172 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1173 | x_libraries=$ac_optarg ;; | |
1174 | ||
b0322a85 CE |
1175 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1176 | Try \`$0 --help' for more information" | |
d9898ee8 | 1177 | ;; |
1178 | ||
1179 | *=*) | |
1180 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1181 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1182 | case $ac_envvar in #( |
1183 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1184 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1185 | esac | |
dd184caf | 1186 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1187 | export $ac_envvar ;; |
1188 | ||
1189 | *) | |
1190 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1191 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1192 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1193 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1194 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1195 | ;; |
1196 | ||
1197 | esac | |
1198 | done | |
1199 | ||
1200 | if test -n "$ac_prev"; then | |
1201 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1202 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1203 | fi |
1204 | ||
8d138742 CE |
1205 | if test -n "$ac_unrecognized_opts"; then |
1206 | case $enable_option_checking in | |
1207 | no) ;; | |
b0322a85 | 1208 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1209 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1210 | esac | |
1211 | fi | |
1212 | ||
1213 | # Check all directory arguments for consistency. | |
1214 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
dd184caf | 1215 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1216 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1217 | libdir localedir mandir | |
d9898ee8 | 1218 | do |
dd184caf | 1219 | eval ac_val=\$$ac_var |
8d138742 CE |
1220 | # Remove trailing slashes. |
1221 | case $ac_val in | |
1222 | */ ) | |
1223 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1224 | eval $ac_var=\$ac_val;; | |
1225 | esac | |
1226 | # Be sure to have absolute directory names. | |
d9898ee8 | 1227 | case $ac_val in |
dd184caf | 1228 | [\\/$]* | ?:[\\/]* ) continue;; |
1229 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1230 | esac |
b0322a85 | 1231 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1232 | done |
1233 | ||
1234 | # There might be people who depend on the old broken behavior: `$host' | |
1235 | # used to hold the argument of --host etc. | |
1236 | # FIXME: To remove some day. | |
1237 | build=$build_alias | |
1238 | host=$host_alias | |
1239 | target=$target_alias | |
1240 | ||
1241 | # FIXME: To remove some day. | |
1242 | if test "x$host_alias" != x; then | |
1243 | if test "x$build_alias" = x; then | |
1244 | cross_compiling=maybe | |
d9898ee8 | 1245 | elif test "x$build_alias" != "x$host_alias"; then |
1246 | cross_compiling=yes | |
1247 | fi | |
1248 | fi | |
1249 | ||
1250 | ac_tool_prefix= | |
1251 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1252 | ||
1253 | test "$silent" = yes && exec 6>/dev/null | |
1254 | ||
1255 | ||
dd184caf | 1256 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1257 | ac_ls_di=`ls -di .` && | |
1258 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1259 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1260 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1261 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1262 | |
1263 | ||
d9898ee8 | 1264 | # Find the source files, if location was not specified. |
1265 | if test -z "$srcdir"; then | |
1266 | ac_srcdir_defaulted=yes | |
dd184caf | 1267 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1268 | ac_confdir=`$as_dirname -- "$as_myself" || |
1269 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1270 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1271 | X"$as_myself" : 'X\(//\)$' \| \ | |
1272 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1273 | $as_echo X"$as_myself" | | |
dd184caf | 1274 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1275 | s//\1/ | |
1276 | q | |
1277 | } | |
1278 | /^X\(\/\/\)[^/].*/{ | |
1279 | s//\1/ | |
1280 | q | |
1281 | } | |
1282 | /^X\(\/\/\)$/{ | |
1283 | s//\1/ | |
1284 | q | |
1285 | } | |
1286 | /^X\(\/\).*/{ | |
1287 | s//\1/ | |
1288 | q | |
1289 | } | |
1290 | s/.*/./; q'` | |
d9898ee8 | 1291 | srcdir=$ac_confdir |
dd184caf | 1292 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1293 | srcdir=.. |
1294 | fi | |
1295 | else | |
1296 | ac_srcdir_defaulted=no | |
1297 | fi | |
dd184caf | 1298 | if test ! -r "$srcdir/$ac_unique_file"; then |
1299 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1300 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1301 | fi |
dd184caf | 1302 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1303 | ac_abs_confdir=`( | |
b0322a85 | 1304 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1305 | pwd)` |
1306 | # When building in place, set srcdir=. | |
1307 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1308 | srcdir=. | |
1309 | fi | |
1310 | # Remove unnecessary trailing slashes from srcdir. | |
1311 | # Double slashes in file names in object file debugging info | |
1312 | # mess up M-x gdb in Emacs. | |
1313 | case $srcdir in | |
1314 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1315 | esac | |
1316 | for ac_var in $ac_precious_vars; do | |
1317 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1318 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1319 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1320 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1321 | done | |
d9898ee8 | 1322 | |
1323 | # | |
1324 | # Report the --help message. | |
1325 | # | |
1326 | if test "$ac_init_help" = "long"; then | |
1327 | # Omit some internal or obsolete options to make the list less imposing. | |
1328 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1329 | cat <<_ACEOF | |
8d138742 | 1330 | \`configure' configures rfc822lib 0.13 to adapt to many kinds of systems. |
d9898ee8 | 1331 | |
1332 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1333 | ||
1334 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1335 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1336 | ||
1337 | Defaults for the options are specified in brackets. | |
1338 | ||
1339 | Configuration: | |
1340 | -h, --help display this help and exit | |
1341 | --help=short display options specific to this package | |
1342 | --help=recursive display the short help of all the included packages | |
1343 | -V, --version display version information and exit | |
b0322a85 | 1344 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1345 | --cache-file=FILE cache test results in FILE [disabled] |
1346 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1347 | -n, --no-create do not create output files | |
1348 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1349 | ||
d9898ee8 | 1350 | Installation directories: |
1351 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1352 | [$ac_default_prefix] |
d9898ee8 | 1353 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1354 | [PREFIX] |
d9898ee8 | 1355 | |
1356 | By default, \`make install' will install all the files in | |
1357 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1358 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1359 | for instance \`--prefix=\$HOME'. | |
1360 | ||
1361 | For better control, use the options below. | |
1362 | ||
1363 | Fine tuning of the installation directories: | |
8d138742 CE |
1364 | --bindir=DIR user executables [EPREFIX/bin] |
1365 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1366 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1367 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1368 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1369 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1370 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1371 | --includedir=DIR C header files [PREFIX/include] | |
1372 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1373 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1374 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1375 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1376 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1377 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1378 | --docdir=DIR documentation root [DATAROOTDIR/doc/rfc822lib] | |
1379 | --htmldir=DIR html documentation [DOCDIR] | |
1380 | --dvidir=DIR dvi documentation [DOCDIR] | |
1381 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1382 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1383 | _ACEOF |
1384 | ||
1385 | cat <<\_ACEOF | |
1386 | ||
1387 | Program names: | |
1388 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1389 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1390 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1391 | ||
1392 | System types: | |
1393 | --build=BUILD configure for building on BUILD [guessed] | |
1394 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1395 | _ACEOF | |
1396 | fi | |
1397 | ||
1398 | if test -n "$ac_init_help"; then | |
1399 | case $ac_init_help in | |
8d138742 | 1400 | short | recursive ) echo "Configuration of rfc822lib 0.13:";; |
d9898ee8 | 1401 | esac |
1402 | cat <<\_ACEOF | |
1403 | ||
1404 | Optional Features: | |
8d138742 | 1405 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1406 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1407 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1408 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1409 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1410 | --enable-dependency-tracking | |
1411 | do not reject slow dependency extractors | |
1412 | --disable-dependency-tracking | |
1413 | speeds up one-time build | |
dd184caf | 1414 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1415 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1416 | --enable-fast-install[=PKGS] |
1417 | optimize for fast installation [default=yes] | |
1418 | --disable-libtool-lock avoid locking (might break parallel builds) | |
b0322a85 | 1419 | --disable-largefile omit support for large files |
d9898ee8 | 1420 | |
1421 | Optional Packages: | |
1422 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1423 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1424 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1425 | both] |
d50284c4 CE |
1426 | --with-aix-soname=aix|svr4|both |
1427 | shared library versioning (aka "SONAME") variant to | |
1428 | provide on AIX, [default=aix]. | |
8d138742 | 1429 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d50284c4 CE |
1430 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1431 | compiler's sysroot if not specified). | |
8d138742 | 1432 | --with-libidn=DIR Support IDN (needs GNU Libidn) |
d9898ee8 | 1433 | |
b0322a85 CE |
1434 | Some influential environment variables: |
1435 | CC C compiler command | |
1436 | CFLAGS C compiler flags | |
1437 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1438 | nonstandard directory <lib dir> | |
1439 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1440 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1441 | you have headers in a nonstandard directory <include dir> | |
1442 | CPP C preprocessor | |
d50284c4 CE |
1443 | LT_SYS_LIBRARY_PATH |
1444 | User-defined run-time library search path. | |
b0322a85 CE |
1445 | PKG_CONFIG path to pkg-config utility |
1446 | PKG_CONFIG_PATH | |
1447 | directories to add to pkg-config's search path | |
1448 | PKG_CONFIG_LIBDIR | |
1449 | path overriding pkg-config's built-in search path | |
1450 | LIBIDN_CFLAGS | |
1451 | C compiler flags for LIBIDN, overriding pkg-config | |
1452 | LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config | |
1453 | ||
1454 | Use these variables to override the choices made by `configure' or to help | |
1455 | it to find libraries and programs with nonstandard names/locations. | |
1456 | ||
1457 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1458 | _ACEOF | |
1459 | ac_status=$? | |
1460 | fi | |
1461 | ||
1462 | if test "$ac_init_help" = "recursive"; then | |
1463 | # If there are subdirs, report their specific --help. | |
1464 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1465 | test -d "$ac_dir" || | |
1466 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1467 | continue | |
1468 | ac_builddir=. | |
1469 | ||
1470 | case "$ac_dir" in | |
1471 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1472 | *) | |
1473 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1474 | # A ".." for each directory in $ac_dir_suffix. | |
1475 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1476 | case $ac_top_builddir_sub in | |
1477 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1478 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1479 | esac ;; | |
1480 | esac | |
1481 | ac_abs_top_builddir=$ac_pwd | |
1482 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1483 | # for backward compatibility: | |
1484 | ac_top_builddir=$ac_top_build_prefix | |
1485 | ||
1486 | case $srcdir in | |
1487 | .) # We are building in place. | |
1488 | ac_srcdir=. | |
1489 | ac_top_srcdir=$ac_top_builddir_sub | |
1490 | ac_abs_top_srcdir=$ac_pwd ;; | |
1491 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1492 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1493 | ac_top_srcdir=$srcdir | |
1494 | ac_abs_top_srcdir=$srcdir ;; | |
1495 | *) # Relative name. | |
1496 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1497 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1498 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1499 | esac | |
1500 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1501 | ||
1502 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1503 | # Check for guested configure. | |
1504 | if test -f "$ac_srcdir/configure.gnu"; then | |
1505 | echo && | |
1506 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1507 | elif test -f "$ac_srcdir/configure"; then | |
1508 | echo && | |
1509 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1510 | else | |
1511 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1512 | fi || ac_status=$? | |
1513 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1514 | done | |
1515 | fi | |
1516 | ||
1517 | test -n "$ac_init_help" && exit $ac_status | |
1518 | if $ac_init_version; then | |
1519 | cat <<\_ACEOF | |
1520 | rfc822lib configure 0.13 | |
1521 | generated by GNU Autoconf 2.69 | |
1522 | ||
1523 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1524 | This configure script is free software; the Free Software Foundation | |
1525 | gives unlimited permission to copy, distribute and modify it. | |
1526 | _ACEOF | |
1527 | exit | |
1528 | fi | |
1529 | ||
1530 | ## ------------------------ ## | |
1531 | ## Autoconf initialization. ## | |
1532 | ## ------------------------ ## | |
1533 | ||
1534 | # ac_fn_c_try_compile LINENO | |
1535 | # -------------------------- | |
1536 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1537 | ac_fn_c_try_compile () | |
1538 | { | |
1539 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1540 | rm -f conftest.$ac_objext | |
1541 | if { { ac_try="$ac_compile" | |
1542 | case "(($ac_try" in | |
1543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1544 | *) ac_try_echo=$ac_try;; | |
1545 | esac | |
1546 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1547 | $as_echo "$ac_try_echo"; } >&5 | |
1548 | (eval "$ac_compile") 2>conftest.err | |
1549 | ac_status=$? | |
1550 | if test -s conftest.err; then | |
1551 | grep -v '^ *+' conftest.err >conftest.er1 | |
1552 | cat conftest.er1 >&5 | |
1553 | mv -f conftest.er1 conftest.err | |
1554 | fi | |
1555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1556 | test $ac_status = 0; } && { | |
1557 | test -z "$ac_c_werror_flag" || | |
1558 | test ! -s conftest.err | |
1559 | } && test -s conftest.$ac_objext; then : | |
1560 | ac_retval=0 | |
1561 | else | |
1562 | $as_echo "$as_me: failed program was:" >&5 | |
1563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1564 | ||
1565 | ac_retval=1 | |
1566 | fi | |
1567 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1568 | as_fn_set_status $ac_retval | |
1569 | ||
1570 | } # ac_fn_c_try_compile | |
1571 | ||
1572 | # ac_fn_c_try_cpp LINENO | |
1573 | # ---------------------- | |
1574 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1575 | ac_fn_c_try_cpp () | |
1576 | { | |
1577 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1578 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1579 | case "(($ac_try" in | |
1580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1581 | *) ac_try_echo=$ac_try;; | |
1582 | esac | |
1583 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1584 | $as_echo "$ac_try_echo"; } >&5 | |
1585 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1586 | ac_status=$? | |
1587 | if test -s conftest.err; then | |
1588 | grep -v '^ *+' conftest.err >conftest.er1 | |
1589 | cat conftest.er1 >&5 | |
1590 | mv -f conftest.er1 conftest.err | |
1591 | fi | |
1592 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1593 | test $ac_status = 0; } > conftest.i && { | |
1594 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1595 | test ! -s conftest.err | |
1596 | }; then : | |
1597 | ac_retval=0 | |
1598 | else | |
1599 | $as_echo "$as_me: failed program was:" >&5 | |
1600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1601 | ||
1602 | ac_retval=1 | |
1603 | fi | |
1604 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1605 | as_fn_set_status $ac_retval | |
1606 | ||
1607 | } # ac_fn_c_try_cpp | |
1608 | ||
1609 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1610 | # ------------------------------------------------------- | |
1611 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1612 | # the include files in INCLUDES and setting the cache variable VAR | |
1613 | # accordingly. | |
1614 | ac_fn_c_check_header_mongrel () | |
1615 | { | |
1616 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1617 | if eval \${$3+:} false; then : | |
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1619 | $as_echo_n "checking for $2... " >&6; } | |
1620 | if eval \${$3+:} false; then : | |
1621 | $as_echo_n "(cached) " >&6 | |
1622 | fi | |
1623 | eval ac_res=\$$3 | |
1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1625 | $as_echo "$ac_res" >&6; } | |
1626 | else | |
1627 | # Is the header compilable? | |
1628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1629 | $as_echo_n "checking $2 usability... " >&6; } | |
1630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1631 | /* end confdefs.h. */ | |
1632 | $4 | |
1633 | #include <$2> | |
1634 | _ACEOF | |
1635 | if ac_fn_c_try_compile "$LINENO"; then : | |
1636 | ac_header_compiler=yes | |
1637 | else | |
1638 | ac_header_compiler=no | |
1639 | fi | |
1640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1642 | $as_echo "$ac_header_compiler" >&6; } | |
1643 | ||
1644 | # Is the header present? | |
1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1646 | $as_echo_n "checking $2 presence... " >&6; } | |
1647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1648 | /* end confdefs.h. */ | |
1649 | #include <$2> | |
1650 | _ACEOF | |
1651 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1652 | ac_header_preproc=yes | |
1653 | else | |
1654 | ac_header_preproc=no | |
1655 | fi | |
1656 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1658 | $as_echo "$ac_header_preproc" >&6; } | |
1659 | ||
1660 | # So? What about this header? | |
1661 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1662 | yes:no: ) | |
1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1664 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1666 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1667 | ;; | |
1668 | no:yes:* ) | |
1669 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1670 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1672 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1674 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1676 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1678 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1679 | ( $as_echo "## -------------------------------------------------- ## | |
1680 | ## Report this to courier-users@lists.sourceforge.net ## | |
1681 | ## -------------------------------------------------- ##" | |
1682 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1683 | ;; | |
1684 | esac | |
1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1686 | $as_echo_n "checking for $2... " >&6; } | |
1687 | if eval \${$3+:} false; then : | |
1688 | $as_echo_n "(cached) " >&6 | |
1689 | else | |
1690 | eval "$3=\$ac_header_compiler" | |
1691 | fi | |
1692 | eval ac_res=\$$3 | |
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1694 | $as_echo "$ac_res" >&6; } | |
1695 | fi | |
1696 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1697 | ||
1698 | } # ac_fn_c_check_header_mongrel | |
1699 | ||
1700 | # ac_fn_c_try_run LINENO | |
1701 | # ---------------------- | |
1702 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1703 | # that executables *can* be run. | |
1704 | ac_fn_c_try_run () | |
1705 | { | |
1706 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1707 | if { { ac_try="$ac_link" | |
1708 | case "(($ac_try" in | |
1709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1710 | *) ac_try_echo=$ac_try;; | |
1711 | esac | |
1712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1713 | $as_echo "$ac_try_echo"; } >&5 | |
1714 | (eval "$ac_link") 2>&5 | |
1715 | ac_status=$? | |
1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1717 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1718 | { { case "(($ac_try" in | |
1719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1720 | *) ac_try_echo=$ac_try;; | |
1721 | esac | |
1722 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1723 | $as_echo "$ac_try_echo"; } >&5 | |
1724 | (eval "$ac_try") 2>&5 | |
1725 | ac_status=$? | |
1726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1727 | test $ac_status = 0; }; }; then : | |
1728 | ac_retval=0 | |
1729 | else | |
1730 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1731 | $as_echo "$as_me: failed program was:" >&5 | |
1732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1733 | ||
1734 | ac_retval=$ac_status | |
1735 | fi | |
1736 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1737 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1738 | as_fn_set_status $ac_retval | |
d9898ee8 | 1739 | |
b0322a85 | 1740 | } # ac_fn_c_try_run |
d9898ee8 | 1741 | |
b0322a85 CE |
1742 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1743 | # ------------------------------------------------------- | |
1744 | # Tests whether HEADER exists and can be compiled using the include files in | |
1745 | # INCLUDES, setting the cache variable VAR accordingly. | |
1746 | ac_fn_c_check_header_compile () | |
1747 | { | |
1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1750 | $as_echo_n "checking for $2... " >&6; } | |
1751 | if eval \${$3+:} false; then : | |
1752 | $as_echo_n "(cached) " >&6 | |
1753 | else | |
1754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1755 | /* end confdefs.h. */ | |
1756 | $4 | |
1757 | #include <$2> | |
d9898ee8 | 1758 | _ACEOF |
b0322a85 CE |
1759 | if ac_fn_c_try_compile "$LINENO"; then : |
1760 | eval "$3=yes" | |
1761 | else | |
1762 | eval "$3=no" | |
1763 | fi | |
1764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 1765 | fi |
b0322a85 CE |
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 | |
d9898ee8 | 1770 | |
b0322a85 | 1771 | } # ac_fn_c_check_header_compile |
d9898ee8 | 1772 | |
b0322a85 CE |
1773 | # ac_fn_c_try_link LINENO |
1774 | # ----------------------- | |
1775 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1776 | ac_fn_c_try_link () | |
1777 | { | |
1778 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1780 | if { { ac_try="$ac_link" | |
1781 | case "(($ac_try" in | |
1782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1783 | *) ac_try_echo=$ac_try;; | |
dd184caf | 1784 | esac |
b0322a85 CE |
1785 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1786 | $as_echo "$ac_try_echo"; } >&5 | |
1787 | (eval "$ac_link") 2>conftest.err | |
1788 | ac_status=$? | |
1789 | if test -s conftest.err; then | |
1790 | grep -v '^ *+' conftest.err >conftest.er1 | |
1791 | cat conftest.er1 >&5 | |
1792 | mv -f conftest.er1 conftest.err | |
1793 | fi | |
1794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1795 | test $ac_status = 0; } && { | |
1796 | test -z "$ac_c_werror_flag" || | |
1797 | test ! -s conftest.err | |
1798 | } && test -s conftest$ac_exeext && { | |
1799 | test "$cross_compiling" = yes || | |
1800 | test -x conftest$ac_exeext | |
1801 | }; then : | |
1802 | ac_retval=0 | |
1803 | else | |
1804 | $as_echo "$as_me: failed program was:" >&5 | |
1805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1806 | |
b0322a85 CE |
1807 | ac_retval=1 |
1808 | fi | |
1809 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1810 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1811 | # interfere with the next link command; also delete a directory that is | |
1812 | # left behind by Apple's compiler. We do this before executing the actions. | |
1813 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1814 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1815 | as_fn_set_status $ac_retval | |
dd184caf | 1816 | |
b0322a85 CE |
1817 | } # ac_fn_c_try_link |
1818 | ||
1819 | # ac_fn_c_check_func LINENO FUNC VAR | |
1820 | # ---------------------------------- | |
1821 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1822 | ac_fn_c_check_func () | |
1823 | { | |
1824 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1826 | $as_echo_n "checking for $2... " >&6; } | |
1827 | if eval \${$3+:} false; then : | |
1828 | $as_echo_n "(cached) " >&6 | |
1829 | else | |
1830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1831 | /* end confdefs.h. */ | |
1832 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1834 | #define $2 innocuous_$2 | |
1835 | ||
1836 | /* System header to define __stub macros and hopefully few prototypes, | |
1837 | which can conflict with char $2 (); below. | |
1838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1839 | <limits.h> exists even on freestanding compilers. */ | |
1840 | ||
1841 | #ifdef __STDC__ | |
1842 | # include <limits.h> | |
1843 | #else | |
1844 | # include <assert.h> | |
1845 | #endif | |
1846 | ||
1847 | #undef $2 | |
1848 | ||
1849 | /* Override any GCC internal prototype to avoid an error. | |
1850 | Use char because int might match the return type of a GCC | |
1851 | builtin and then its argument prototype would still apply. */ | |
1852 | #ifdef __cplusplus | |
1853 | extern "C" | |
1854 | #endif | |
1855 | char $2 (); | |
1856 | /* The GNU C library defines this for functions which it implements | |
1857 | to always fail with ENOSYS. Some functions are actually named | |
1858 | something starting with __ and the normal name is an alias. */ | |
1859 | #if defined __stub_$2 || defined __stub___$2 | |
1860 | choke me | |
1861 | #endif | |
1862 | ||
1863 | int | |
1864 | main () | |
1865 | { | |
1866 | return $2 (); | |
1867 | ; | |
1868 | return 0; | |
1869 | } | |
1870 | _ACEOF | |
1871 | if ac_fn_c_try_link "$LINENO"; then : | |
1872 | eval "$3=yes" | |
1873 | else | |
1874 | eval "$3=no" | |
1875 | fi | |
1876 | rm -f core conftest.err conftest.$ac_objext \ | |
1877 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 1878 | fi |
b0322a85 CE |
1879 | eval ac_res=\$$3 |
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1881 | $as_echo "$ac_res" >&6; } | |
1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1883 | |
b0322a85 | 1884 | } # ac_fn_c_check_func |
d9898ee8 | 1885 | |
b0322a85 CE |
1886 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1887 | # ------------------------------------------- | |
1888 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1889 | # variable VAR accordingly. | |
1890 | ac_fn_c_check_type () | |
1891 | { | |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1894 | $as_echo_n "checking for $2... " >&6; } | |
1895 | if eval \${$3+:} false; then : | |
1896 | $as_echo_n "(cached) " >&6 | |
1897 | else | |
1898 | eval "$3=no" | |
1899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1900 | /* end confdefs.h. */ | |
1901 | $4 | |
1902 | int | |
1903 | main () | |
1904 | { | |
1905 | if (sizeof ($2)) | |
1906 | return 0; | |
1907 | ; | |
1908 | return 0; | |
1909 | } | |
d9898ee8 | 1910 | _ACEOF |
b0322a85 CE |
1911 | if ac_fn_c_try_compile "$LINENO"; then : |
1912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1913 | /* end confdefs.h. */ | |
1914 | $4 | |
1915 | int | |
1916 | main () | |
1917 | { | |
1918 | if (sizeof (($2))) | |
1919 | return 0; | |
1920 | ; | |
1921 | return 0; | |
1922 | } | |
1923 | _ACEOF | |
1924 | if ac_fn_c_try_compile "$LINENO"; then : | |
1925 | ||
1926 | else | |
1927 | eval "$3=yes" | |
d9898ee8 | 1928 | fi |
b0322a85 CE |
1929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1930 | fi | |
1931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1932 | fi | |
1933 | eval ac_res=\$$3 | |
1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1935 | $as_echo "$ac_res" >&6; } | |
1936 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1937 | ||
1938 | } # ac_fn_c_check_type | |
dd184caf | 1939 | cat >config.log <<_ACEOF |
d9898ee8 | 1940 | This file contains any messages produced by compilers while |
1941 | running configure, to aid debugging if configure makes a mistake. | |
1942 | ||
8d138742 | 1943 | It was created by rfc822lib $as_me 0.13, which was |
b0322a85 | 1944 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 1945 | |
1946 | $ $0 $@ | |
1947 | ||
1948 | _ACEOF | |
dd184caf | 1949 | exec 5>>config.log |
d9898ee8 | 1950 | { |
1951 | cat <<_ASUNAME | |
1952 | ## --------- ## | |
1953 | ## Platform. ## | |
1954 | ## --------- ## | |
1955 | ||
1956 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1957 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1958 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1959 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1960 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1961 | ||
1962 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1963 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1964 | ||
1965 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1966 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1967 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1968 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1969 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1970 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1971 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1972 | ||
1973 | _ASUNAME | |
1974 | ||
1975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1976 | for as_dir in $PATH | |
1977 | do | |
1978 | IFS=$as_save_IFS | |
1979 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
1980 | $as_echo "PATH: $as_dir" |
1981 | done | |
dd184caf | 1982 | IFS=$as_save_IFS |
d9898ee8 | 1983 | |
1984 | } >&5 | |
1985 | ||
1986 | cat >&5 <<_ACEOF | |
1987 | ||
1988 | ||
1989 | ## ----------- ## | |
1990 | ## Core tests. ## | |
1991 | ## ----------- ## | |
1992 | ||
1993 | _ACEOF | |
1994 | ||
1995 | ||
1996 | # Keep a trace of the command line. | |
1997 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1998 | # Strip out --silent because we don't want to record it for future runs. | |
1999 | # Also quote any args containing shell meta-characters. | |
2000 | # Make two passes to allow for proper duplicate-argument suppression. | |
2001 | ac_configure_args= | |
2002 | ac_configure_args0= | |
2003 | ac_configure_args1= | |
d9898ee8 | 2004 | ac_must_keep_next=false |
2005 | for ac_pass in 1 2 | |
2006 | do | |
2007 | for ac_arg | |
2008 | do | |
2009 | case $ac_arg in | |
2010 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2012 | | -silent | --silent | --silen | --sile | --sil) | |
2013 | continue ;; | |
dd184caf | 2014 | *\'*) |
8d138742 | 2015 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2016 | esac |
2017 | case $ac_pass in | |
b0322a85 | 2018 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 2019 | 2) |
b0322a85 | 2020 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 2021 | if test $ac_must_keep_next = true; then |
2022 | ac_must_keep_next=false # Got value, back to normal. | |
2023 | else | |
2024 | case $ac_arg in | |
2025 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2026 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2027 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2028 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2029 | case "$ac_configure_args0 " in | |
2030 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2031 | esac | |
2032 | ;; | |
2033 | -* ) ac_must_keep_next=true ;; | |
2034 | esac | |
2035 | fi | |
b0322a85 | 2036 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 2037 | ;; |
2038 | esac | |
2039 | done | |
2040 | done | |
b0322a85 CE |
2041 | { ac_configure_args0=; unset ac_configure_args0;} |
2042 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 2043 | |
2044 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2045 | # config.log. We remove comments because anyway the quotes in there | |
2046 | # would cause problems or look ugly. | |
dd184caf | 2047 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2048 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 2049 | trap 'exit_status=$? |
2050 | # Save into config.log some information that might help in debugging. | |
2051 | { | |
2052 | echo | |
2053 | ||
b0322a85 | 2054 | $as_echo "## ---------------- ## |
d9898ee8 | 2055 | ## Cache variables. ## |
b0322a85 | 2056 | ## ---------------- ##" |
d9898ee8 | 2057 | echo |
2058 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 2059 | ( |
2060 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2061 | eval ac_val=\$$ac_var | |
2062 | case $ac_val in #( | |
2063 | *${as_nl}*) | |
2064 | case $ac_var in #( | |
b0322a85 | 2065 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 2066 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 2067 | esac |
2068 | case $ac_var in #( | |
2069 | _ | IFS | as_nl) ;; #( | |
8d138742 | 2070 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 2071 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 2072 | esac ;; |
2073 | esac | |
2074 | done | |
d9898ee8 | 2075 | (set) 2>&1 | |
dd184caf | 2076 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2077 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 2078 | sed -n \ |
dd184caf | 2079 | "s/'\''/'\''\\\\'\'''\''/g; |
2080 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2081 | ;; #( | |
d9898ee8 | 2082 | *) |
dd184caf | 2083 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 2084 | ;; |
dd184caf | 2085 | esac | |
2086 | sort | |
2087 | ) | |
d9898ee8 | 2088 | echo |
2089 | ||
b0322a85 | 2090 | $as_echo "## ----------------- ## |
d9898ee8 | 2091 | ## Output variables. ## |
b0322a85 | 2092 | ## ----------------- ##" |
d9898ee8 | 2093 | echo |
2094 | for ac_var in $ac_subst_vars | |
2095 | do | |
dd184caf | 2096 | eval ac_val=\$$ac_var |
2097 | case $ac_val in | |
8d138742 | 2098 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2099 | esac |
8d138742 | 2100 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2101 | done | sort |
2102 | echo | |
2103 | ||
2104 | if test -n "$ac_subst_files"; then | |
b0322a85 | 2105 | $as_echo "## ------------------- ## |
dd184caf | 2106 | ## File substitutions. ## |
b0322a85 | 2107 | ## ------------------- ##" |
d9898ee8 | 2108 | echo |
2109 | for ac_var in $ac_subst_files | |
2110 | do | |
dd184caf | 2111 | eval ac_val=\$$ac_var |
2112 | case $ac_val in | |
8d138742 | 2113 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2114 | esac |
8d138742 | 2115 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2116 | done | sort |
2117 | echo | |
2118 | fi | |
2119 | ||
2120 | if test -s confdefs.h; then | |
b0322a85 | 2121 | $as_echo "## ----------- ## |
d9898ee8 | 2122 | ## confdefs.h. ## |
b0322a85 | 2123 | ## ----------- ##" |
d9898ee8 | 2124 | echo |
dd184caf | 2125 | cat confdefs.h |
d9898ee8 | 2126 | echo |
2127 | fi | |
2128 | test "$ac_signal" != 0 && | |
8d138742 CE |
2129 | $as_echo "$as_me: caught signal $ac_signal" |
2130 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2131 | } >&5 |
dd184caf | 2132 | rm -f core *.core core.conftest.* && |
2133 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2134 | exit $exit_status |
dd184caf | 2135 | ' 0 |
d9898ee8 | 2136 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2137 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2138 | done |
2139 | ac_signal=0 | |
2140 | ||
2141 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2142 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2143 | |
b0322a85 CE |
2144 | $as_echo "/* confdefs.h */" > confdefs.h |
2145 | ||
d9898ee8 | 2146 | # Predefined preprocessor variables. |
2147 | ||
2148 | cat >>confdefs.h <<_ACEOF | |
2149 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2150 | _ACEOF | |
2151 | ||
d9898ee8 | 2152 | cat >>confdefs.h <<_ACEOF |
2153 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2154 | _ACEOF | |
2155 | ||
d9898ee8 | 2156 | cat >>confdefs.h <<_ACEOF |
2157 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2158 | _ACEOF | |
2159 | ||
d9898ee8 | 2160 | cat >>confdefs.h <<_ACEOF |
2161 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2162 | _ACEOF | |
2163 | ||
d9898ee8 | 2164 | cat >>confdefs.h <<_ACEOF |
2165 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2166 | _ACEOF | |
2167 | ||
b0322a85 CE |
2168 | cat >>confdefs.h <<_ACEOF |
2169 | #define PACKAGE_URL "$PACKAGE_URL" | |
2170 | _ACEOF | |
2171 | ||
d9898ee8 | 2172 | |
2173 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2174 | # Prefer an explicitly selected file to automatically selected ones. |
2175 | ac_site_file1=NONE | |
2176 | ac_site_file2=NONE | |
dd184caf | 2177 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2178 | # We do not want a PATH search for config.site. |
2179 | case $CONFIG_SITE in #(( | |
2180 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2181 | */*) ac_site_file1=$CONFIG_SITE;; | |
2182 | *) ac_site_file1=./$CONFIG_SITE;; | |
2183 | esac | |
dd184caf | 2184 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2185 | ac_site_file1=$prefix/share/config.site |
2186 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2187 | else |
8d138742 CE |
2188 | ac_site_file1=$ac_default_prefix/share/config.site |
2189 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2190 | fi |
8d138742 | 2191 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2192 | do |
8d138742 | 2193 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2194 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2196 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2197 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2198 | . "$ac_site_file" \ |
2199 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2200 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2201 | as_fn_error $? "failed to load site script $ac_site_file | |
2202 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2203 | fi |
2204 | done | |
2205 | ||
2206 | if test -r "$cache_file"; then | |
b0322a85 CE |
2207 | # Some versions of bash will fail to source /dev/null (special files |
2208 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2209 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2211 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2212 | case $cache_file in |
dd184caf | 2213 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2214 | *) . "./$cache_file";; | |
d9898ee8 | 2215 | esac |
2216 | fi | |
2217 | else | |
b0322a85 | 2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2219 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2220 | >$cache_file |
2221 | fi | |
2222 | ||
2223 | # Check that the precious variables saved in the cache have kept the same | |
2224 | # value. | |
2225 | ac_cache_corrupted=false | |
dd184caf | 2226 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2227 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2228 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2229 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2230 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2231 | case $ac_old_set,$ac_new_set in |
2232 | set,) | |
b0322a85 | 2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2234 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2235 | ac_cache_corrupted=: ;; |
2236 | ,set) | |
b0322a85 | 2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2238 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2239 | ac_cache_corrupted=: ;; |
2240 | ,);; | |
2241 | *) | |
2242 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2243 | # differences in whitespace do not lead to failure. |
2244 | ac_old_val_w=`echo x $ac_old_val` | |
2245 | ac_new_val_w=`echo x $ac_new_val` | |
2246 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2248 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2249 | ac_cache_corrupted=: | |
2250 | else | |
b0322a85 | 2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2252 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2253 | eval $ac_var=\$ac_old_val | |
2254 | fi | |
b0322a85 | 2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2256 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2258 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2259 | fi;; |
2260 | esac | |
2261 | # Pass precious variables to config.status. | |
2262 | if test "$ac_new_set" = set; then | |
2263 | case $ac_new_val in | |
8d138742 | 2264 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2265 | *) ac_arg=$ac_var=$ac_new_val ;; |
2266 | esac | |
2267 | case " $ac_configure_args " in | |
2268 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2269 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2270 | esac |
2271 | fi | |
2272 | done | |
2273 | if $ac_cache_corrupted; then | |
b0322a85 | 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2275 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2277 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2278 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2279 | fi |
b0322a85 CE |
2280 | ## -------------------- ## |
2281 | ## Main body of script. ## | |
2282 | ## -------------------- ## | |
d9898ee8 | 2283 | |
dd184caf | 2284 | ac_ext=c |
2285 | ac_cpp='$CPP $CPPFLAGS' | |
2286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2289 | |
2290 | ||
2291 | ||
2292 | >confdefs.h # Kill PACKAGE_ macros | |
2293 | ||
2294 | ||
d9898ee8 | 2295 | ac_aux_dir= |
b0322a85 | 2296 | for ac_dir in ../.. "$srcdir"/../..; do |
dd184caf | 2297 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2298 | ac_aux_dir=$ac_dir |
2299 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2300 | break | |
dd184caf | 2301 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2302 | ac_aux_dir=$ac_dir |
2303 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2304 | break | |
dd184caf | 2305 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2306 | ac_aux_dir=$ac_dir |
2307 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2308 | break | |
2309 | fi | |
2310 | done | |
2311 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2312 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 |
d9898ee8 | 2313 | fi |
dd184caf | 2314 | |
2315 | # These three variables are undocumented and unsupported, | |
2316 | # and are intended to be withdrawn in a future Autoconf release. | |
2317 | # They can cause serious problems if a builder's source tree is in a directory | |
2318 | # whose full name contains unusual characters. | |
2319 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2320 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2321 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2322 | ||
d9898ee8 | 2323 | |
d50284c4 | 2324 | am__api_version='1.15' |
b0322a85 | 2325 | |
d9898ee8 | 2326 | # Find a good install program. We prefer a C program (faster), |
2327 | # so one script is as good as another. But avoid the broken or | |
2328 | # incompatible versions: | |
2329 | # SysV /etc/install, /usr/sbin/install | |
2330 | # SunOS /usr/etc/install | |
2331 | # IRIX /sbin/install | |
2332 | # AIX /bin/install | |
2333 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2334 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2335 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2336 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2337 | # OS/2's system install, which has a completely different semantic | |
2338 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2339 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2341 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2342 | if test -z "$INSTALL"; then |
b0322a85 | 2343 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2344 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2345 | else |
2346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2347 | for as_dir in $PATH | |
2348 | do | |
2349 | IFS=$as_save_IFS | |
2350 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2351 | # Account for people who put trailing slashes in PATH elements. |
2352 | case $as_dir/ in #(( | |
2353 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2354 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2355 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2356 | /usr/ucb/* ) ;; |
2357 | *) | |
2358 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2359 | # Don't use installbsd from OSF since it installs stuff as root | |
2360 | # by default. | |
2361 | for ac_prog in ginstall scoinst install; do | |
2362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2363 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2364 | if test $ac_prog = install && |
2365 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2366 | # AIX install. It has an incompatible calling convention. | |
2367 | : | |
2368 | elif test $ac_prog = install && | |
2369 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2370 | # program-specific install script used by HP pwplus--don't use. | |
2371 | : | |
2372 | else | |
8d138742 CE |
2373 | rm -rf conftest.one conftest.two conftest.dir |
2374 | echo one > conftest.one | |
2375 | echo two > conftest.two | |
2376 | mkdir conftest.dir | |
2377 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2378 | test -s conftest.one && test -s conftest.two && | |
2379 | test -s conftest.dir/conftest.one && | |
2380 | test -s conftest.dir/conftest.two | |
2381 | then | |
2382 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2383 | break 3 | |
2384 | fi | |
d9898ee8 | 2385 | fi |
2386 | fi | |
2387 | done | |
2388 | done | |
2389 | ;; | |
2390 | esac | |
8d138742 | 2391 | |
b0322a85 | 2392 | done |
dd184caf | 2393 | IFS=$as_save_IFS |
d9898ee8 | 2394 | |
8d138742 | 2395 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2396 | |
2397 | fi | |
2398 | if test "${ac_cv_path_install+set}" = set; then | |
2399 | INSTALL=$ac_cv_path_install | |
2400 | else | |
dd184caf | 2401 | # As a last resort, use the slow shell script. Don't cache a |
2402 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2403 | # break other packages using the cache if that directory is |
dd184caf | 2404 | # removed, or if the value is a relative name. |
d9898ee8 | 2405 | INSTALL=$ac_install_sh |
2406 | fi | |
2407 | fi | |
b0322a85 | 2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2409 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2410 | |
2411 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2412 | # It thinks the first close brace ends the variable substitution. | |
2413 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2414 | ||
2415 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2416 | ||
2417 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2418 | ||
b0322a85 | 2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2420 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2421 | # Reject unsafe characters in $srcdir or the absolute working directory |
2422 | # name. Accept space and tab only in the latter. | |
2423 | am_lf=' | |
2424 | ' | |
2425 | case `pwd` in | |
2426 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2427 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2428 | esac |
2429 | case $srcdir in | |
2430 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2431 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2432 | esac |
2433 | ||
b0322a85 | 2434 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2435 | # arguments. Must try -L first in case configure is actually a |
2436 | # symlink; some systems play weird games with the mod time of symlinks | |
2437 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2438 | # directory). | |
2439 | if ( | |
b0322a85 CE |
2440 | am_has_slept=no |
2441 | for am_try in 1 2; do | |
2442 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2443 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2444 | if test "$*" = "X"; then | |
2445 | # -L didn't work. | |
2446 | set X `ls -t "$srcdir/configure" conftest.file` | |
2447 | fi | |
2448 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2449 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2450 | ||
2451 | # If neither matched, then we have a broken ls. This can happen | |
2452 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2453 | # broken ls alias from the environment. This has actually | |
2454 | # happened. Such a system could not be considered "sane". | |
2455 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2456 | alias in your environment" "$LINENO" 5 | |
2457 | fi | |
2458 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2459 | break | |
2460 | fi | |
2461 | # Just in case. | |
2462 | sleep 1 | |
2463 | am_has_slept=yes | |
2464 | done | |
d9898ee8 | 2465 | test "$2" = conftest.file |
2466 | ) | |
2467 | then | |
2468 | # Ok. | |
2469 | : | |
2470 | else | |
b0322a85 CE |
2471 | as_fn_error $? "newly created file is older than distributed files! |
2472 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2473 | fi |
b0322a85 | 2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2475 | $as_echo "yes" >&6; } |
b0322a85 CE |
2476 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2477 | # generated files are strictly newer. | |
2478 | am_sleep_pid= | |
2479 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2480 | ( sleep 1 ) & | |
2481 | am_sleep_pid=$! | |
2482 | fi | |
2483 | ||
2484 | rm -f conftest.file | |
2485 | ||
d9898ee8 | 2486 | test "$program_prefix" != NONE && |
dd184caf | 2487 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2488 | # Use a double $ so make ignores it. |
2489 | test "$program_suffix" != NONE && | |
dd184caf | 2490 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2491 | # Double any \ or $. |
d9898ee8 | 2492 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2493 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2494 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2495 | |
d50284c4 CE |
2496 | # Expand $ac_aux_dir to an absolute path. |
2497 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
d9898ee8 | 2498 | |
8d138742 CE |
2499 | if test x"${MISSING+set}" != xset; then |
2500 | case $am_aux_dir in | |
2501 | *\ * | *\ *) | |
2502 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2503 | *) | |
2504 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2505 | esac | |
2506 | fi | |
d9898ee8 | 2507 | # Use eval to expand $SHELL |
b0322a85 CE |
2508 | if eval "$MISSING --is-lightweight"; then |
2509 | am_missing_run="$MISSING " | |
d9898ee8 | 2510 | else |
2511 | am_missing_run= | |
b0322a85 CE |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2513 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2514 | fi |
2515 | ||
d50284c4 | 2516 | if test x"${install_sh+set}" != xset; then |
8d138742 CE |
2517 | case $am_aux_dir in |
2518 | *\ * | *\ *) | |
2519 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2520 | *) | |
2521 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2522 | esac | |
2523 | fi | |
2524 | ||
b0322a85 CE |
2525 | # Installed binaries are usually stripped using 'strip' when the user |
2526 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2527 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2528 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2529 | if test "$cross_compiling" != no; then |
2530 | if test -n "$ac_tool_prefix"; then | |
2531 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2532 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2534 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2535 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2536 | $as_echo_n "(cached) " >&6 |
2537 | else | |
2538 | if test -n "$STRIP"; then | |
2539 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2540 | else | |
2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2542 | for as_dir in $PATH | |
2543 | do | |
2544 | IFS=$as_save_IFS | |
2545 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2546 | for ac_exec_ext in '' $ac_executable_extensions; do |
2547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2548 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2550 | break 2 |
2551 | fi | |
2552 | done | |
b0322a85 | 2553 | done |
8d138742 CE |
2554 | IFS=$as_save_IFS |
2555 | ||
2556 | fi | |
2557 | fi | |
2558 | STRIP=$ac_cv_prog_STRIP | |
2559 | if test -n "$STRIP"; then | |
b0322a85 | 2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2561 | $as_echo "$STRIP" >&6; } |
2562 | else | |
b0322a85 | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2564 | $as_echo "no" >&6; } |
2565 | fi | |
2566 | ||
2567 | ||
2568 | fi | |
2569 | if test -z "$ac_cv_prog_STRIP"; then | |
2570 | ac_ct_STRIP=$STRIP | |
2571 | # Extract the first word of "strip", so it can be a program name with args. | |
2572 | set dummy strip; ac_word=$2 | |
b0322a85 | 2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2574 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2575 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2576 | $as_echo_n "(cached) " >&6 |
2577 | else | |
2578 | if test -n "$ac_ct_STRIP"; then | |
2579 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2580 | else | |
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2582 | for as_dir in $PATH | |
2583 | do | |
2584 | IFS=$as_save_IFS | |
2585 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2586 | for ac_exec_ext in '' $ac_executable_extensions; do |
2587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2588 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2590 | break 2 |
2591 | fi | |
2592 | done | |
b0322a85 | 2593 | done |
8d138742 CE |
2594 | IFS=$as_save_IFS |
2595 | ||
2596 | fi | |
2597 | fi | |
2598 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2599 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2601 | $as_echo "$ac_ct_STRIP" >&6; } |
2602 | else | |
b0322a85 | 2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2604 | $as_echo "no" >&6; } |
2605 | fi | |
2606 | ||
2607 | if test "x$ac_ct_STRIP" = x; then | |
2608 | STRIP=":" | |
2609 | else | |
2610 | case $cross_compiling:$ac_tool_warned in | |
2611 | yes:) | |
b0322a85 | 2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2613 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2614 | ac_tool_warned=yes ;; | |
2615 | esac | |
2616 | STRIP=$ac_ct_STRIP | |
2617 | fi | |
2618 | else | |
2619 | STRIP="$ac_cv_prog_STRIP" | |
2620 | fi | |
2621 | ||
d9898ee8 | 2622 | fi |
8d138742 | 2623 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2624 | |
b0322a85 | 2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2626 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2627 | if test -z "$MKDIR_P"; then |
b0322a85 | 2628 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2629 | $as_echo_n "(cached) " >&6 |
dd184caf | 2630 | else |
2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2632 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2633 | do | |
2634 | IFS=$as_save_IFS | |
2635 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2636 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2637 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2638 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2639 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2640 | 'mkdir (GNU coreutils) '* | \ | |
2641 | 'mkdir (coreutils) '* | \ | |
2642 | 'mkdir (fileutils) '4.1*) | |
2643 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2644 | break 3;; | |
2645 | esac | |
2646 | done | |
2647 | done | |
b0322a85 | 2648 | done |
dd184caf | 2649 | IFS=$as_save_IFS |
2650 | ||
2651 | fi | |
2652 | ||
b0322a85 | 2653 | test -d ./--version && rmdir ./--version |
dd184caf | 2654 | if test "${ac_cv_path_mkdir+set}" = set; then |
2655 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2656 | else |
dd184caf | 2657 | # As a last resort, use the slow shell script. Don't cache a |
2658 | # value for MKDIR_P within a source directory, because that will | |
2659 | # break other packages using the cache if that directory is | |
2660 | # removed, or if the value is a relative name. | |
dd184caf | 2661 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2662 | fi |
2663 | fi | |
b0322a85 | 2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2665 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2666 | |
d9898ee8 | 2667 | for ac_prog in gawk mawk nawk awk |
2668 | do | |
2669 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2670 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2672 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2673 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2674 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2675 | else |
2676 | if test -n "$AWK"; then | |
2677 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2678 | else | |
2679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2680 | for as_dir in $PATH | |
2681 | do | |
2682 | IFS=$as_save_IFS | |
2683 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2684 | for ac_exec_ext in '' $ac_executable_extensions; do |
2685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2686 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2688 | break 2 |
2689 | fi | |
2690 | done | |
b0322a85 | 2691 | done |
dd184caf | 2692 | IFS=$as_save_IFS |
d9898ee8 | 2693 | |
2694 | fi | |
2695 | fi | |
2696 | AWK=$ac_cv_prog_AWK | |
2697 | if test -n "$AWK"; then | |
b0322a85 | 2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2699 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2700 | else |
b0322a85 | 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2702 | $as_echo "no" >&6; } |
d9898ee8 | 2703 | fi |
2704 | ||
dd184caf | 2705 | |
d9898ee8 | 2706 | test -n "$AWK" && break |
2707 | done | |
2708 | ||
b0322a85 | 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2710 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2711 | set x ${MAKE-make} | |
2712 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2713 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2714 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2715 | else |
2716 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2717 | SHELL = /bin/sh |
d9898ee8 | 2718 | all: |
dd184caf | 2719 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2720 | _ACEOF |
b0322a85 | 2721 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2722 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2723 | *@@@%%%=?*=@@@%%%*) | |
2724 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2725 | *) | |
2726 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2727 | esac | |
d9898ee8 | 2728 | rm -f conftest.make |
2729 | fi | |
dd184caf | 2730 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2732 | $as_echo "yes" >&6; } |
d9898ee8 | 2733 | SET_MAKE= |
2734 | else | |
b0322a85 | 2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2736 | $as_echo "no" >&6; } |
d9898ee8 | 2737 | SET_MAKE="MAKE=${MAKE-make}" |
2738 | fi | |
2739 | ||
2740 | rm -rf .tst 2>/dev/null | |
2741 | mkdir .tst 2>/dev/null | |
2742 | if test -d .tst; then | |
2743 | am__leading_dot=. | |
2744 | else | |
2745 | am__leading_dot=_ | |
2746 | fi | |
2747 | rmdir .tst 2>/dev/null | |
2748 | ||
b0322a85 CE |
2749 | # Check whether --enable-silent-rules was given. |
2750 | if test "${enable_silent_rules+set}" = set; then : | |
2751 | enableval=$enable_silent_rules; | |
2752 | fi | |
2753 | ||
2754 | case $enable_silent_rules in # ((( | |
2755 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2756 | no) AM_DEFAULT_VERBOSITY=1;; | |
2757 | *) AM_DEFAULT_VERBOSITY=1;; | |
2758 | esac | |
2759 | am_make=${MAKE-make} | |
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2761 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2762 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2763 | $as_echo_n "(cached) " >&6 | |
2764 | else | |
2765 | if $as_echo 'TRUE=$(BAR$(V)) | |
2766 | BAR0=false | |
2767 | BAR1=true | |
2768 | V=1 | |
2769 | am__doit: | |
2770 | @$(TRUE) | |
2771 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2772 | am_cv_make_support_nested_variables=yes | |
2773 | else | |
2774 | am_cv_make_support_nested_variables=no | |
2775 | fi | |
2776 | fi | |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2778 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2779 | if test $am_cv_make_support_nested_variables = yes; then | |
2780 | AM_V='$(V)' | |
2781 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2782 | else | |
2783 | AM_V=$AM_DEFAULT_VERBOSITY | |
2784 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2785 | fi | |
2786 | AM_BACKSLASH='\' | |
2787 | ||
dd184caf | 2788 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2789 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2790 | # is not polluted with repeated "-I." | |
2791 | am__isrc=' -I$(srcdir)' | |
2792 | # test to see if srcdir already configured | |
2793 | if test -f $srcdir/config.status; then | |
b0322a85 | 2794 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2795 | fi |
d9898ee8 | 2796 | fi |
2797 | ||
2798 | # test whether we have cygpath | |
2799 | if test -z "$CYGPATH_W"; then | |
2800 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2801 | CYGPATH_W='cygpath -w' | |
2802 | else | |
2803 | CYGPATH_W=echo | |
2804 | fi | |
2805 | fi | |
2806 | ||
2807 | ||
2808 | # Define the identity of the package. | |
2809 | PACKAGE='rfc822lib' | |
8d138742 | 2810 | VERSION='0.13' |
d9898ee8 | 2811 | |
2812 | ||
2813 | # Some tools Automake needs. | |
2814 | ||
2815 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2816 | ||
2817 | ||
2818 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2819 | ||
2820 | ||
2821 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2822 | ||
2823 | ||
2824 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2825 | ||
2826 | ||
2827 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2828 | ||
b0322a85 CE |
2829 | # For better backward compatibility. To be removed once Automake 1.9.x |
2830 | # dies out for good. For more background, see: | |
2831 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2832 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2833 | mkdir_p='$(MKDIR_P)' | |
2834 | ||
d50284c4 CE |
2835 | # We need awk for the "check" target (and possibly the TAP driver). The |
2836 | # system "awk" is bad on some platforms. | |
b0322a85 CE |
2837 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2838 | # in the wild :-( We should find a proper way to deprecate it ... | |
2839 | AMTAR='$${TAR-tar}' | |
2840 | ||
d9898ee8 | 2841 | |
b0322a85 CE |
2842 | # We'll loop over all known methods to create a tar archive until one works. |
2843 | _am_tools='gnutar pax cpio none' | |
2844 | ||
2845 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
d9898ee8 | 2846 | |
d9898ee8 | 2847 | |
dd184caf | 2848 | |
d9898ee8 | 2849 | |
d9898ee8 | 2850 | |
d9898ee8 | 2851 | |
d50284c4 CE |
2852 | # POSIX will say in a future version that running "rm -f" with no argument |
2853 | # is OK; and we want to be able to make that assumption in our Makefile | |
2854 | # recipes. So use an aggressive probe to check that the usage we want is | |
2855 | # actually supported "in the wild" to an acceptable degree. | |
2856 | # See automake bug#10828. | |
2857 | # To make any issue more visible, cause the running configure to be aborted | |
2858 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2859 | # user can still override this though. | |
2860 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2861 | cat >&2 <<'END' | |
2862 | Oops! | |
2863 | ||
2864 | Your 'rm' program seems unable to run without file operands specified | |
2865 | on the command line, even when the '-f' option is present. This is contrary | |
2866 | to the behaviour of most rm programs out there, and not conforming with | |
2867 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2868 | ||
2869 | Please tell bug-automake@gnu.org about your system, including the value | |
2870 | of your $PATH and any error possibly output before this message. This | |
2871 | can help us improve future automake versions. | |
2872 | ||
2873 | END | |
2874 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2875 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2876 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2877 | echo >&2 | |
2878 | else | |
2879 | cat >&2 <<'END' | |
2880 | Aborting the configuration process, to ensure you take notice of the issue. | |
2881 | ||
2882 | You can download and install GNU coreutils to get an 'rm' implementation | |
2883 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2884 | ||
2885 | If you want to complete the configuration process using your problematic | |
2886 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2887 | to "yes", and re-run configure. | |
2888 | ||
2889 | END | |
2890 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2891 | fi | |
2892 | fi | |
2893 | ||
8d138742 | 2894 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 | 2895 | |
d9898ee8 | 2896 | |
8d138742 | 2897 | DEPDIR="${am__leading_dot}deps" |
d9898ee8 | 2898 | |
8d138742 | 2899 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 2900 | |
2901 | ||
8d138742 CE |
2902 | am_make=${MAKE-make} |
2903 | cat > confinc << 'END' | |
2904 | am__doit: | |
2905 | @echo this is the am__doit target | |
2906 | .PHONY: am__doit | |
2907 | END | |
2908 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 CE |
2910 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
2911 | am__include="#" | |
2912 | am__quote= | |
2913 | _am_result=none | |
2914 | # First try GNU make style include. | |
2915 | echo "include confinc" > confmf | |
b0322a85 | 2916 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
2917 | case `$am_make -s -f confmf 2> /dev/null` in #( |
2918 | *the\ am__doit\ target*) | |
2919 | am__include=include | |
2920 | am__quote= | |
2921 | _am_result=GNU | |
2922 | ;; | |
2923 | esac | |
2924 | # Now try BSD make style include. | |
2925 | if test "$am__include" = "#"; then | |
2926 | echo '.include "confinc"' > confmf | |
2927 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2928 | *the\ am__doit\ target*) | |
2929 | am__include=.include | |
2930 | am__quote="\"" | |
2931 | _am_result=BSD | |
2932 | ;; | |
2933 | esac | |
2934 | fi | |
d9898ee8 | 2935 | |
2936 | ||
b0322a85 | 2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 CE |
2938 | $as_echo "$_am_result" >&6; } |
2939 | rm -f confinc confmf | |
d9898ee8 | 2940 | |
8d138742 | 2941 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 2942 | if test "${enable_dependency_tracking+set}" = set; then : |
8d138742 CE |
2943 | enableval=$enable_dependency_tracking; |
2944 | fi | |
2945 | ||
2946 | if test "x$enable_dependency_tracking" != xno; then | |
2947 | am_depcomp="$ac_aux_dir/depcomp" | |
2948 | AMDEPBACKSLASH='\' | |
b0322a85 | 2949 | am__nodep='_no' |
8d138742 CE |
2950 | fi |
2951 | if test "x$enable_dependency_tracking" != xno; then | |
2952 | AMDEP_TRUE= | |
2953 | AMDEP_FALSE='#' | |
2954 | else | |
2955 | AMDEP_TRUE='#' | |
2956 | AMDEP_FALSE= | |
2957 | fi | |
d9898ee8 | 2958 | |
2959 | ||
2960 | ac_ext=c | |
2961 | ac_cpp='$CPP $CPPFLAGS' | |
2962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2965 | if test -n "$ac_tool_prefix"; then | |
2966 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2967 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2969 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2970 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2971 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2972 | else |
2973 | if test -n "$CC"; then | |
2974 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2975 | else | |
2976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2977 | for as_dir in $PATH | |
2978 | do | |
2979 | IFS=$as_save_IFS | |
2980 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2981 | for ac_exec_ext in '' $ac_executable_extensions; do |
2982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2983 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 2984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2985 | break 2 |
2986 | fi | |
2987 | done | |
b0322a85 | 2988 | done |
dd184caf | 2989 | IFS=$as_save_IFS |
d9898ee8 | 2990 | |
2991 | fi | |
2992 | fi | |
2993 | CC=$ac_cv_prog_CC | |
2994 | if test -n "$CC"; then | |
b0322a85 | 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2996 | $as_echo "$CC" >&6; } |
d9898ee8 | 2997 | else |
b0322a85 | 2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2999 | $as_echo "no" >&6; } |
d9898ee8 | 3000 | fi |
3001 | ||
dd184caf | 3002 | |
d9898ee8 | 3003 | fi |
3004 | if test -z "$ac_cv_prog_CC"; then | |
3005 | ac_ct_CC=$CC | |
3006 | # Extract the first word of "gcc", so it can be a program name with args. | |
3007 | set dummy gcc; ac_word=$2 | |
b0322a85 | 3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3009 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3010 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3011 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3012 | else |
3013 | if test -n "$ac_ct_CC"; then | |
3014 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3015 | else | |
3016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3017 | for as_dir in $PATH | |
3018 | do | |
3019 | IFS=$as_save_IFS | |
3020 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3021 | for ac_exec_ext in '' $ac_executable_extensions; do |
3022 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3023 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 3024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3025 | break 2 |
3026 | fi | |
3027 | done | |
b0322a85 | 3028 | done |
dd184caf | 3029 | IFS=$as_save_IFS |
d9898ee8 | 3030 | |
3031 | fi | |
3032 | fi | |
3033 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3034 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3036 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3037 | else |
b0322a85 | 3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3039 | $as_echo "no" >&6; } |
d9898ee8 | 3040 | fi |
3041 | ||
dd184caf | 3042 | if test "x$ac_ct_CC" = x; then |
3043 | CC="" | |
3044 | else | |
3045 | case $cross_compiling:$ac_tool_warned in | |
3046 | yes:) | |
b0322a85 | 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3048 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3049 | ac_tool_warned=yes ;; |
3050 | esac | |
3051 | CC=$ac_ct_CC | |
3052 | fi | |
d9898ee8 | 3053 | else |
3054 | CC="$ac_cv_prog_CC" | |
3055 | fi | |
3056 | ||
3057 | if test -z "$CC"; then | |
dd184caf | 3058 | if test -n "$ac_tool_prefix"; then |
3059 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 3060 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3062 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3063 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3064 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3065 | else |
3066 | if test -n "$CC"; then | |
3067 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3068 | else | |
3069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3070 | for as_dir in $PATH | |
3071 | do | |
3072 | IFS=$as_save_IFS | |
3073 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3074 | for ac_exec_ext in '' $ac_executable_extensions; do |
3075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3076 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 3077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3078 | break 2 |
3079 | fi | |
3080 | done | |
b0322a85 | 3081 | done |
dd184caf | 3082 | IFS=$as_save_IFS |
d9898ee8 | 3083 | |
3084 | fi | |
3085 | fi | |
3086 | CC=$ac_cv_prog_CC | |
3087 | if test -n "$CC"; then | |
b0322a85 | 3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3089 | $as_echo "$CC" >&6; } |
d9898ee8 | 3090 | else |
b0322a85 | 3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3092 | $as_echo "no" >&6; } |
d9898ee8 | 3093 | fi |
3094 | ||
d9898ee8 | 3095 | |
dd184caf | 3096 | fi |
d9898ee8 | 3097 | fi |
3098 | if test -z "$CC"; then | |
3099 | # Extract the first word of "cc", so it can be a program name with args. | |
3100 | set dummy cc; ac_word=$2 | |
b0322a85 | 3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3102 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3103 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3104 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3105 | else |
3106 | if test -n "$CC"; then | |
3107 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3108 | else | |
3109 | ac_prog_rejected=no | |
3110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3111 | for as_dir in $PATH | |
3112 | do | |
3113 | IFS=$as_save_IFS | |
3114 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3115 | for ac_exec_ext in '' $ac_executable_extensions; do |
3116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3117 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3118 | ac_prog_rejected=yes | |
3119 | continue | |
3120 | fi | |
3121 | ac_cv_prog_CC="cc" | |
b0322a85 | 3122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3123 | break 2 |
3124 | fi | |
3125 | done | |
b0322a85 | 3126 | done |
dd184caf | 3127 | IFS=$as_save_IFS |
d9898ee8 | 3128 | |
3129 | if test $ac_prog_rejected = yes; then | |
3130 | # We found a bogon in the path, so make sure we never use it. | |
3131 | set dummy $ac_cv_prog_CC | |
3132 | shift | |
3133 | if test $# != 0; then | |
3134 | # We chose a different compiler from the bogus one. | |
3135 | # However, it has the same basename, so the bogon will be chosen | |
3136 | # first if we set CC to just the basename; use the full file name. | |
3137 | shift | |
3138 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3139 | fi | |
3140 | fi | |
3141 | fi | |
3142 | fi | |
3143 | CC=$ac_cv_prog_CC | |
3144 | if test -n "$CC"; then | |
b0322a85 | 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3146 | $as_echo "$CC" >&6; } |
d9898ee8 | 3147 | else |
b0322a85 | 3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3149 | $as_echo "no" >&6; } |
d9898ee8 | 3150 | fi |
3151 | ||
dd184caf | 3152 | |
d9898ee8 | 3153 | fi |
3154 | if test -z "$CC"; then | |
3155 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3156 | for ac_prog in cl.exe |
d9898ee8 | 3157 | do |
3158 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3159 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3161 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3162 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3163 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3164 | else |
3165 | if test -n "$CC"; then | |
3166 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3167 | else | |
3168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3169 | for as_dir in $PATH | |
3170 | do | |
3171 | IFS=$as_save_IFS | |
3172 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3173 | for ac_exec_ext in '' $ac_executable_extensions; do |
3174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3175 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3177 | break 2 |
3178 | fi | |
3179 | done | |
b0322a85 | 3180 | done |
dd184caf | 3181 | IFS=$as_save_IFS |
d9898ee8 | 3182 | |
3183 | fi | |
3184 | fi | |
3185 | CC=$ac_cv_prog_CC | |
3186 | if test -n "$CC"; then | |
b0322a85 | 3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3188 | $as_echo "$CC" >&6; } |
d9898ee8 | 3189 | else |
b0322a85 | 3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3191 | $as_echo "no" >&6; } |
d9898ee8 | 3192 | fi |
3193 | ||
dd184caf | 3194 | |
d9898ee8 | 3195 | test -n "$CC" && break |
3196 | done | |
3197 | fi | |
3198 | if test -z "$CC"; then | |
3199 | ac_ct_CC=$CC | |
dd184caf | 3200 | for ac_prog in cl.exe |
d9898ee8 | 3201 | do |
3202 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3203 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3205 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3206 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3207 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3208 | else |
3209 | if test -n "$ac_ct_CC"; then | |
3210 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3211 | else | |
3212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3213 | for as_dir in $PATH | |
3214 | do | |
3215 | IFS=$as_save_IFS | |
3216 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3217 | for ac_exec_ext in '' $ac_executable_extensions; do |
3218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3219 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3221 | break 2 |
3222 | fi | |
3223 | done | |
b0322a85 | 3224 | done |
dd184caf | 3225 | IFS=$as_save_IFS |
d9898ee8 | 3226 | |
3227 | fi | |
3228 | fi | |
3229 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3230 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3232 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3233 | else |
b0322a85 | 3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3235 | $as_echo "no" >&6; } |
d9898ee8 | 3236 | fi |
3237 | ||
dd184caf | 3238 | |
d9898ee8 | 3239 | test -n "$ac_ct_CC" && break |
3240 | done | |
3241 | ||
dd184caf | 3242 | if test "x$ac_ct_CC" = x; then |
3243 | CC="" | |
3244 | else | |
3245 | case $cross_compiling:$ac_tool_warned in | |
3246 | yes:) | |
b0322a85 | 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3248 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3249 | ac_tool_warned=yes ;; |
3250 | esac | |
3251 | CC=$ac_ct_CC | |
3252 | fi | |
d9898ee8 | 3253 | fi |
3254 | ||
3255 | fi | |
3256 | ||
3257 | ||
b0322a85 | 3258 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3259 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3260 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3261 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3262 | |
3263 | # Provide some information about the compiler. | |
b0322a85 | 3264 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3265 | set X $ac_compile |
3266 | ac_compiler=$2 | |
b0322a85 CE |
3267 | for ac_option in --version -v -V -qversion; do |
3268 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3269 | case "(($ac_try" in |
3270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3271 | *) ac_try_echo=$ac_try;; | |
3272 | esac | |
b0322a85 CE |
3273 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3274 | $as_echo "$ac_try_echo"; } >&5 | |
3275 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3276 | ac_status=$? |
b0322a85 CE |
3277 | if test -s conftest.err; then |
3278 | sed '10a\ | |
3279 | ... rest of stderr output deleted ... | |
3280 | 10q' conftest.err >conftest.er1 | |
3281 | cat conftest.er1 >&5 | |
3282 | fi | |
3283 | rm -f conftest.er1 conftest.err | |
3284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3285 | test $ac_status = 0; } | |
3286 | done | |
d9898ee8 | 3287 | |
b0322a85 | 3288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3289 | /* end confdefs.h. */ |
3290 | ||
3291 | int | |
3292 | main () | |
3293 | { | |
3294 | ||
3295 | ; | |
3296 | return 0; | |
3297 | } | |
3298 | _ACEOF | |
3299 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3300 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3301 | # Try to create an executable without -o first, disregard a.out. |
3302 | # It will help us diagnose broken compilers, and finding out an intuition | |
3303 | # of exeext. | |
b0322a85 CE |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3305 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3306 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3307 | ||
3308 | # The possible output files: | |
3309 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3310 | ||
dd184caf | 3311 | ac_rmfiles= |
3312 | for ac_file in $ac_files | |
3313 | do | |
3314 | case $ac_file in | |
8d138742 | 3315 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3316 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3317 | esac | |
3318 | done | |
3319 | rm -f $ac_rmfiles | |
3320 | ||
b0322a85 | 3321 | if { { ac_try="$ac_link_default" |
dd184caf | 3322 | case "(($ac_try" in |
3323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3324 | *) ac_try_echo=$ac_try;; | |
3325 | esac | |
b0322a85 CE |
3326 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3327 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3328 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3329 | ac_status=$? |
b0322a85 CE |
3330 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3331 | test $ac_status = 0; }; then : | |
dd184caf | 3332 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3333 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3334 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3335 | # so that the user can short-circuit this test for compilers unknown to | |
3336 | # Autoconf. | |
3337 | for ac_file in $ac_files '' | |
d9898ee8 | 3338 | do |
3339 | test -f "$ac_file" || continue | |
3340 | case $ac_file in | |
8d138742 | 3341 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3342 | ;; |
3343 | [ab].out ) | |
3344 | # We found the default executable, but exeext='' is most | |
3345 | # certainly right. | |
3346 | break;; | |
3347 | *.* ) | |
b0322a85 | 3348 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3349 | then :; else |
3350 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3351 | fi | |
3352 | # We set ac_cv_exeext here because the later test for it is not | |
3353 | # safe: cross compilers may not add the suffix if given an `-o' | |
3354 | # argument, so we may need to know it at that point already. | |
3355 | # Even if this section looks crufty: it has the advantage of | |
3356 | # actually working. | |
d9898ee8 | 3357 | break;; |
3358 | * ) | |
3359 | break;; | |
3360 | esac | |
3361 | done | |
dd184caf | 3362 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3363 | ||
d9898ee8 | 3364 | else |
dd184caf | 3365 | ac_file='' |
3366 | fi | |
b0322a85 CE |
3367 | if test -z "$ac_file"; then : |
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3369 | $as_echo "no" >&6; } | |
3370 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3371 | sed 's/^/| /' conftest.$ac_ext >&5 |
3372 | ||
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 77 "C compiler cannot create executables |
3376 | See \`config.log' for more details" "$LINENO" 5; } | |
3377 | else | |
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3379 | $as_echo "yes" >&6; } | |
d9898ee8 | 3380 | fi |
b0322a85 CE |
3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3382 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3384 | $as_echo "$ac_file" >&6; } | |
d9898ee8 | 3385 | ac_exeext=$ac_cv_exeext |
d9898ee8 | 3386 | |
8d138742 | 3387 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3388 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3390 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3391 | if { { ac_try="$ac_link" |
dd184caf | 3392 | case "(($ac_try" in |
3393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3394 | *) ac_try_echo=$ac_try;; | |
3395 | esac | |
b0322a85 CE |
3396 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3397 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3398 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3399 | ac_status=$? |
b0322a85 CE |
3400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3401 | test $ac_status = 0; }; then : | |
d9898ee8 | 3402 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3403 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3404 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3405 | # `rm'. | |
3406 | for ac_file in conftest.exe conftest conftest.*; do | |
3407 | test -f "$ac_file" || continue | |
3408 | case $ac_file in | |
8d138742 | 3409 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3410 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3411 | break;; |
3412 | * ) break;; | |
3413 | esac | |
3414 | done | |
3415 | else | |
b0322a85 | 3416 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3417 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3418 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3419 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3420 | fi |
b0322a85 CE |
3421 | rm -f conftest conftest$ac_cv_exeext |
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3423 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3424 | |
3425 | rm -f conftest.$ac_ext | |
3426 | EXEEXT=$ac_cv_exeext | |
3427 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3429 | /* end confdefs.h. */ | |
3430 | #include <stdio.h> | |
3431 | int | |
3432 | main () | |
3433 | { | |
3434 | FILE *f = fopen ("conftest.out", "w"); | |
3435 | return ferror (f) || fclose (f) != 0; | |
3436 | ||
3437 | ; | |
3438 | return 0; | |
3439 | } | |
3440 | _ACEOF | |
3441 | ac_clean_files="$ac_clean_files conftest.out" | |
3442 | # Check that the compiler produces executables we can run. If not, either | |
3443 | # the compiler is broken, or we cross compile. | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3445 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3446 | if test "$cross_compiling" != yes; then | |
3447 | { { ac_try="$ac_link" | |
3448 | case "(($ac_try" in | |
3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3450 | *) ac_try_echo=$ac_try;; | |
3451 | esac | |
3452 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3453 | $as_echo "$ac_try_echo"; } >&5 | |
3454 | (eval "$ac_link") 2>&5 | |
3455 | ac_status=$? | |
3456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3457 | test $ac_status = 0; } | |
3458 | if { ac_try='./conftest$ac_cv_exeext' | |
3459 | { { case "(($ac_try" in | |
3460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3461 | *) ac_try_echo=$ac_try;; | |
3462 | esac | |
3463 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3464 | $as_echo "$ac_try_echo"; } >&5 | |
3465 | (eval "$ac_try") 2>&5 | |
3466 | ac_status=$? | |
3467 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3468 | test $ac_status = 0; }; }; then | |
3469 | cross_compiling=no | |
3470 | else | |
3471 | if test "$cross_compiling" = maybe; then | |
3472 | cross_compiling=yes | |
3473 | else | |
3474 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3476 | as_fn_error $? "cannot run C compiled programs. | |
3477 | If you meant to cross compile, use \`--host'. | |
3478 | See \`config.log' for more details" "$LINENO" 5; } | |
3479 | fi | |
3480 | fi | |
3481 | fi | |
3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3483 | $as_echo "$cross_compiling" >&6; } | |
3484 | ||
3485 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3486 | ac_clean_files=$ac_clean_files_save | |
3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3488 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3489 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3490 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3491 | else |
b0322a85 | 3492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3493 | /* end confdefs.h. */ |
3494 | ||
3495 | int | |
3496 | main () | |
3497 | { | |
3498 | ||
3499 | ; | |
3500 | return 0; | |
3501 | } | |
3502 | _ACEOF | |
3503 | rm -f conftest.o conftest.obj | |
b0322a85 | 3504 | if { { ac_try="$ac_compile" |
dd184caf | 3505 | case "(($ac_try" in |
3506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3507 | *) ac_try_echo=$ac_try;; | |
3508 | esac | |
b0322a85 CE |
3509 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3510 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3511 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3512 | ac_status=$? |
b0322a85 CE |
3513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3514 | test $ac_status = 0; }; then : | |
dd184caf | 3515 | for ac_file in conftest.o conftest.obj conftest.*; do |
3516 | test -f "$ac_file" || continue; | |
d9898ee8 | 3517 | case $ac_file in |
8d138742 | 3518 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3519 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3520 | break;; | |
3521 | esac | |
3522 | done | |
3523 | else | |
8d138742 | 3524 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3525 | sed 's/^/| /' conftest.$ac_ext >&5 |
3526 | ||
b0322a85 | 3527 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3528 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3529 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3530 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3531 | fi |
d9898ee8 | 3532 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3533 | fi | |
b0322a85 | 3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3535 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3536 | OBJEXT=$ac_cv_objext |
3537 | ac_objext=$OBJEXT | |
b0322a85 | 3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3539 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3540 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3541 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3542 | else |
b0322a85 | 3543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3544 | /* end confdefs.h. */ |
3545 | ||
3546 | int | |
3547 | main () | |
3548 | { | |
3549 | #ifndef __GNUC__ | |
3550 | choke me | |
3551 | #endif | |
3552 | ||
3553 | ; | |
3554 | return 0; | |
3555 | } | |
3556 | _ACEOF | |
b0322a85 | 3557 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3558 | ac_compiler_gnu=yes |
3559 | else | |
b0322a85 | 3560 | ac_compiler_gnu=no |
d9898ee8 | 3561 | fi |
dd184caf | 3562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3563 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3564 | ||
3565 | fi | |
b0322a85 | 3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3567 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3568 | if test $ac_compiler_gnu = yes; then | |
3569 | GCC=yes | |
3570 | else | |
3571 | GCC= | |
3572 | fi | |
d9898ee8 | 3573 | ac_test_CFLAGS=${CFLAGS+set} |
3574 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3576 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3577 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3578 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3579 | else |
dd184caf | 3580 | ac_save_c_werror_flag=$ac_c_werror_flag |
3581 | ac_c_werror_flag=yes | |
3582 | ac_cv_prog_cc_g=no | |
3583 | CFLAGS="-g" | |
b0322a85 | 3584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3585 | /* end confdefs.h. */ |
3586 | ||
3587 | int | |
3588 | main () | |
3589 | { | |
3590 | ||
3591 | ; | |
3592 | return 0; | |
3593 | } | |
3594 | _ACEOF | |
b0322a85 | 3595 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3596 | ac_cv_prog_cc_g=yes |
3597 | else | |
b0322a85 CE |
3598 | CFLAGS="" |
3599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 3600 | /* end confdefs.h. */ |
3601 | ||
3602 | int | |
3603 | main () | |
3604 | { | |
3605 | ||
3606 | ; | |
3607 | return 0; | |
3608 | } | |
3609 | _ACEOF | |
b0322a85 | 3610 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3611 | |
b0322a85 CE |
3612 | else |
3613 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3614 | CFLAGS="-g" |
b0322a85 | 3615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3616 | /* end confdefs.h. */ |
3617 | ||
3618 | int | |
3619 | main () | |
3620 | { | |
3621 | ||
3622 | ; | |
3623 | return 0; | |
3624 | } | |
3625 | _ACEOF | |
b0322a85 | 3626 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3627 | ac_cv_prog_cc_g=yes |
dd184caf | 3628 | fi |
dd184caf | 3629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3630 | fi | |
dd184caf | 3631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3632 | fi |
dd184caf | 3633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3634 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3635 | fi |
b0322a85 | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3637 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3638 | if test "$ac_test_CFLAGS" = set; then |
3639 | CFLAGS=$ac_save_CFLAGS | |
3640 | elif test $ac_cv_prog_cc_g = yes; then | |
3641 | if test "$GCC" = yes; then | |
3642 | CFLAGS="-g -O2" | |
3643 | else | |
3644 | CFLAGS="-g" | |
3645 | fi | |
3646 | else | |
3647 | if test "$GCC" = yes; then | |
3648 | CFLAGS="-O2" | |
3649 | else | |
3650 | CFLAGS= | |
3651 | fi | |
3652 | fi | |
b0322a85 | 3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3654 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3655 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3656 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3657 | else |
dd184caf | 3658 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3659 | ac_save_CC=$CC |
b0322a85 | 3660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3661 | /* end confdefs.h. */ |
3662 | #include <stdarg.h> | |
3663 | #include <stdio.h> | |
b0322a85 | 3664 | struct stat; |
d9898ee8 | 3665 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3666 | struct buf { int x; }; | |
3667 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3668 | static char *e (p, i) | |
3669 | char **p; | |
3670 | int i; | |
3671 | { | |
3672 | return p[i]; | |
3673 | } | |
3674 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3675 | { | |
3676 | char *s; | |
3677 | va_list v; | |
3678 | va_start (v,p); | |
3679 | s = g (p, va_arg (v,int)); | |
3680 | va_end (v); | |
3681 | return s; | |
3682 | } | |
3683 | ||
3684 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3685 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3686 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3687 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3688 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3689 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3690 | that's true only with -std. */ |
d9898ee8 | 3691 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3692 | ||
dd184caf | 3693 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3694 | inside strings and character constants. */ | |
3695 | #define FOO(x) 'x' | |
3696 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3697 | ||
d9898ee8 | 3698 | int test (int i, double x); |
3699 | struct s1 {int (*f) (int a);}; | |
3700 | struct s2 {int (*f) (double a);}; | |
3701 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3702 | int argc; | |
3703 | char **argv; | |
3704 | int | |
3705 | main () | |
3706 | { | |
3707 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3708 | ; | |
3709 | return 0; | |
3710 | } | |
3711 | _ACEOF | |
dd184caf | 3712 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3713 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3714 | do |
3715 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3716 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3717 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3718 | fi |
dd184caf | 3719 | rm -f core conftest.err conftest.$ac_objext |
3720 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3721 | done |
dd184caf | 3722 | rm -f conftest.$ac_ext |
d9898ee8 | 3723 | CC=$ac_save_CC |
3724 | ||
3725 | fi | |
dd184caf | 3726 | # AC_CACHE_VAL |
3727 | case "x$ac_cv_prog_cc_c89" in | |
3728 | x) | |
b0322a85 | 3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3730 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3731 | xno) |
b0322a85 | 3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3733 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3734 | *) |
dd184caf | 3735 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3737 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3738 | esac |
b0322a85 | 3739 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3740 | |
b0322a85 | 3741 | fi |
d9898ee8 | 3742 | |
d9898ee8 | 3743 | ac_ext=c |
3744 | ac_cpp='$CPP $CPPFLAGS' | |
3745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 3748 | |
d50284c4 CE |
3749 | ac_ext=c |
3750 | ac_cpp='$CPP $CPPFLAGS' | |
3751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3755 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3756 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3757 | $as_echo_n "(cached) " >&6 | |
3758 | else | |
3759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3760 | /* end confdefs.h. */ | |
3761 | ||
3762 | int | |
3763 | main () | |
3764 | { | |
3765 | ||
3766 | ; | |
3767 | return 0; | |
3768 | } | |
3769 | _ACEOF | |
3770 | # Make sure it works both with $CC and with simple cc. | |
3771 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3772 | # compilers refuse to overwrite an existing .o file with -o, | |
3773 | # though they will create one. | |
3774 | am_cv_prog_cc_c_o=yes | |
3775 | for am_i in 1 2; do | |
3776 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3777 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3778 | ac_status=$? | |
3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3780 | (exit $ac_status); } \ | |
3781 | && test -f conftest2.$ac_objext; then | |
3782 | : OK | |
3783 | else | |
3784 | am_cv_prog_cc_c_o=no | |
3785 | break | |
3786 | fi | |
3787 | done | |
3788 | rm -f core conftest* | |
3789 | unset am_i | |
3790 | fi | |
3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3792 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3793 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3794 | # Losing compiler, so override with the script. | |
3795 | # FIXME: It is wrong to rewrite CC. | |
3796 | # But if we don't then we get into trouble of one sort or another. | |
3797 | # A longer-term fix would be to have automake use am__CC in this case, | |
3798 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3799 | CC="$am_aux_dir/compile $CC" | |
3800 | fi | |
3801 | ac_ext=c | |
3802 | ac_cpp='$CPP $CPPFLAGS' | |
3803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3806 | ||
3807 | ||
8d138742 | 3808 | depcc="$CC" am_compiler_list= |
d9898ee8 | 3809 | |
b0322a85 | 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3811 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3812 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3813 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3814 | else |
3815 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3816 | # We make a subdir and do the tests there. Otherwise we can end up | |
3817 | # making bogus files that we don't know about and never remove. For | |
3818 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3819 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3820 | # in D". | |
3821 | rm -rf conftest.dir | |
d9898ee8 | 3822 | mkdir conftest.dir |
3823 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3824 | # using a relative directory. | |
3825 | cp "$am_depcomp" conftest.dir | |
3826 | cd conftest.dir | |
3827 | # We will build objects and dependencies in a subdirectory because | |
3828 | # it helps to detect inapplicable dependency modes. For instance | |
3829 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3830 | # side effect of compilation, but ICC will put the dependencies in | |
3831 | # the current directory while Tru64 will put them in the object | |
3832 | # directory. | |
3833 | mkdir sub | |
3834 | ||
3835 | am_cv_CC_dependencies_compiler_type=none | |
3836 | if test "$am_compiler_list" = ""; then | |
3837 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3838 | fi | |
8d138742 CE |
3839 | am__universal=false |
3840 | case " $depcc " in #( | |
3841 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3842 | esac | |
3843 | ||
d9898ee8 | 3844 | for depmode in $am_compiler_list; do |
3845 | # Setup a source with many dependencies, because some compilers | |
3846 | # like to wrap large dependency lists on column 80 (with \), and | |
3847 | # we should not choose a depcomp mode which is confused by this. | |
3848 | # | |
3849 | # We need to recreate these files for each test, as the compiler may | |
3850 | # overwrite some of them when testing with obscure command lines. | |
3851 | # This happens at least with the AIX C compiler. | |
3852 | : > sub/conftest.c | |
3853 | for i in 1 2 3 4 5 6; do | |
3854 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3855 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3856 | # Solaris 10 /bin/sh. | |
3857 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3858 | done |
3859 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3860 | ||
b0322a85 | 3861 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3862 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3863 | # handle '-M -o', and we need to detect this. Also, some Intel |
3864 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3865 | am__obj=sub/conftest.${OBJEXT-o} |
3866 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3867 | case $depmode in |
8d138742 CE |
3868 | gcc) |
3869 | # This depmode causes a compiler race in universal mode. | |
3870 | test "$am__universal" = false || continue | |
3871 | ;; | |
d9898ee8 | 3872 | nosideeffect) |
b0322a85 CE |
3873 | # After this tag, mechanisms are not by side-effect, so they'll |
3874 | # only be used when explicitly requested. | |
d9898ee8 | 3875 | if test "x$enable_dependency_tracking" = xyes; then |
3876 | continue | |
3877 | else | |
3878 | break | |
3879 | fi | |
3880 | ;; | |
b0322a85 CE |
3881 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3882 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
3883 | # not run yet. These depmodes are late enough in the game, and |
3884 | # so weak that their functioning should not be impacted. | |
3885 | am__obj=conftest.${OBJEXT-o} | |
3886 | am__minus_obj= | |
3887 | ;; | |
d9898ee8 | 3888 | none) break ;; |
3889 | esac | |
d9898ee8 | 3890 | if depmode=$depmode \ |
8d138742 | 3891 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3892 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3893 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3894 | >/dev/null 2>conftest.err && |
dd184caf | 3895 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3896 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3897 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3898 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3899 | # icc doesn't choke on unknown options, it will just issue warnings | |
3900 | # or remarks (even with -Werror). So we grep stderr for any message | |
3901 | # that says an option was ignored or not supported. | |
3902 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3903 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3904 | # The diagnosis changed in icc 8.0: | |
3905 | # icc: Command line remark: option '-MP' not supported | |
3906 | if (grep 'ignoring option' conftest.err || | |
3907 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3908 | am_cv_CC_dependencies_compiler_type=$depmode | |
3909 | break | |
3910 | fi | |
3911 | fi | |
3912 | done | |
3913 | ||
3914 | cd .. | |
3915 | rm -rf conftest.dir | |
3916 | else | |
3917 | am_cv_CC_dependencies_compiler_type=none | |
3918 | fi | |
3919 | ||
3920 | fi | |
b0322a85 | 3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 3922 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 3923 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3924 | ||
dd184caf | 3925 | if |
d9898ee8 | 3926 | test "x$enable_dependency_tracking" != xno \ |
3927 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3928 | am__fastdepCC_TRUE= | |
3929 | am__fastdepCC_FALSE='#' | |
3930 | else | |
3931 | am__fastdepCC_TRUE='#' | |
3932 | am__fastdepCC_FALSE= | |
3933 | fi | |
3934 | ||
3935 | ||
3936 | ||
d9898ee8 | 3937 | ac_ext=c |
3938 | ac_cpp='$CPP $CPPFLAGS' | |
3939 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3940 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 | 3943 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
d9898ee8 | 3944 | # On Suns, sometimes $CPP names a directory. |
3945 | if test -n "$CPP" && test -d "$CPP"; then | |
3946 | CPP= | |
3947 | fi | |
3948 | if test -z "$CPP"; then | |
b0322a85 | 3949 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 | 3950 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3951 | else |
3952 | # Double quotes because CPP needs to be expanded | |
3953 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3954 | do | |
3955 | ac_preproc_ok=false | |
3956 | for ac_c_preproc_warn_flag in '' yes | |
3957 | do | |
3958 | # Use a header file that comes with gcc, so configuring glibc | |
3959 | # with a fresh cross-compiler works. | |
3960 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3961 | # <limits.h> exists even on freestanding compilers. | |
3962 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3963 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3965 | /* end confdefs.h. */ |
3966 | #ifdef __STDC__ | |
3967 | # include <limits.h> | |
3968 | #else | |
3969 | # include <assert.h> | |
3970 | #endif | |
3971 | Syntax error | |
3972 | _ACEOF | |
b0322a85 | 3973 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 3974 | |
b0322a85 | 3975 | else |
d9898ee8 | 3976 | # Broken: fails on valid input. |
3977 | continue | |
3978 | fi | |
b0322a85 | 3979 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 3980 | |
dd184caf | 3981 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 3982 | # can be detected and how. |
b0322a85 | 3983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3984 | /* end confdefs.h. */ |
3985 | #include <ac_nonexistent.h> | |
3986 | _ACEOF | |
b0322a85 | 3987 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 3988 | # Broken: success on invalid input. |
3989 | continue | |
3990 | else | |
d9898ee8 | 3991 | # Passes both tests. |
3992 | ac_preproc_ok=: | |
3993 | break | |
3994 | fi | |
b0322a85 | 3995 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 3996 | |
3997 | done | |
3998 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
3999 | rm -f conftest.i conftest.err conftest.$ac_ext |
4000 | if $ac_preproc_ok; then : | |
d9898ee8 | 4001 | break |
4002 | fi | |
4003 | ||
4004 | done | |
4005 | ac_cv_prog_CPP=$CPP | |
4006 | ||
4007 | fi | |
4008 | CPP=$ac_cv_prog_CPP | |
4009 | else | |
4010 | ac_cv_prog_CPP=$CPP | |
4011 | fi | |
b0322a85 | 4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 | 4013 | $as_echo "$CPP" >&6; } |
d9898ee8 | 4014 | ac_preproc_ok=false |
4015 | for ac_c_preproc_warn_flag in '' yes | |
4016 | do | |
4017 | # Use a header file that comes with gcc, so configuring glibc | |
4018 | # with a fresh cross-compiler works. | |
4019 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4020 | # <limits.h> exists even on freestanding compilers. | |
4021 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4022 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 4023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4024 | /* end confdefs.h. */ |
4025 | #ifdef __STDC__ | |
4026 | # include <limits.h> | |
4027 | #else | |
4028 | # include <assert.h> | |
4029 | #endif | |
4030 | Syntax error | |
4031 | _ACEOF | |
b0322a85 | 4032 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4033 | |
b0322a85 | 4034 | else |
d9898ee8 | 4035 | # Broken: fails on valid input. |
4036 | continue | |
4037 | fi | |
b0322a85 | 4038 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4039 | |
dd184caf | 4040 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 4041 | # can be detected and how. |
b0322a85 | 4042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4043 | /* end confdefs.h. */ |
4044 | #include <ac_nonexistent.h> | |
4045 | _ACEOF | |
b0322a85 | 4046 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4047 | # Broken: success on invalid input. |
4048 | continue | |
4049 | else | |
d9898ee8 | 4050 | # Passes both tests. |
4051 | ac_preproc_ok=: | |
4052 | break | |
4053 | fi | |
b0322a85 | 4054 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4055 | |
4056 | done | |
4057 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
4058 | rm -f conftest.i conftest.err conftest.$ac_ext |
4059 | if $ac_preproc_ok; then : | |
4060 | ||
d9898ee8 | 4061 | else |
b0322a85 | 4062 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 4063 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
4064 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4065 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 4066 | fi |
4067 | ||
4068 | ac_ext=c | |
4069 | ac_cpp='$CPP $CPPFLAGS' | |
4070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4073 | ||
4074 | ||
b0322a85 | 4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4076 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4077 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4078 | $as_echo_n "(cached) " >&6 |
dd184caf | 4079 | else |
8d138742 | 4080 | if test -z "$GREP"; then |
dd184caf | 4081 | ac_path_GREP_found=false |
8d138742 CE |
4082 | # Loop through the user's path and test for each of PROGNAME-LIST |
4083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4084 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4085 | do | |
4086 | IFS=$as_save_IFS | |
4087 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4088 | for ac_prog in grep ggrep; do |
8d138742 CE |
4089 | for ac_exec_ext in '' $ac_executable_extensions; do |
4090 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4091 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4092 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4093 | # Check for GNU $ac_path_GREP |
4094 | case `"$ac_path_GREP" --version 2>&1` in | |
4095 | *GNU*) | |
4096 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4097 | *) | |
4098 | ac_count=0 | |
8d138742 | 4099 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4100 | while : |
4101 | do | |
4102 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4103 | mv "conftest.tmp" "conftest.in" | |
4104 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4105 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4106 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4107 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4108 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4109 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4110 | # Best one so far, save it but keep looking for a better one | |
4111 | ac_cv_path_GREP="$ac_path_GREP" | |
4112 | ac_path_GREP_max=$ac_count | |
4113 | fi | |
4114 | # 10*(2^10) chars as input seems more than enough | |
4115 | test $ac_count -gt 10 && break | |
4116 | done | |
4117 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4118 | esac | |
4119 | ||
8d138742 CE |
4120 | $ac_path_GREP_found && break 3 |
4121 | done | |
dd184caf | 4122 | done |
b0322a85 | 4123 | done |
dd184caf | 4124 | IFS=$as_save_IFS |
8d138742 | 4125 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4126 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4127 | fi |
dd184caf | 4128 | else |
4129 | ac_cv_path_GREP=$GREP | |
4130 | fi | |
4131 | ||
dd184caf | 4132 | fi |
b0322a85 | 4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4134 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4135 | GREP="$ac_cv_path_GREP" |
4136 | ||
4137 | ||
b0322a85 | 4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4139 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4140 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4141 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4142 | else |
dd184caf | 4143 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4144 | then ac_cv_path_EGREP="$GREP -E" | |
4145 | else | |
8d138742 | 4146 | if test -z "$EGREP"; then |
dd184caf | 4147 | ac_path_EGREP_found=false |
8d138742 CE |
4148 | # Loop through the user's path and test for each of PROGNAME-LIST |
4149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4150 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4151 | do | |
4152 | IFS=$as_save_IFS | |
4153 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4154 | for ac_prog in egrep; do |
8d138742 CE |
4155 | for ac_exec_ext in '' $ac_executable_extensions; do |
4156 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4157 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4158 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4159 | # Check for GNU $ac_path_EGREP |
4160 | case `"$ac_path_EGREP" --version 2>&1` in | |
4161 | *GNU*) | |
4162 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4163 | *) | |
4164 | ac_count=0 | |
8d138742 | 4165 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4166 | while : |
4167 | do | |
4168 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4169 | mv "conftest.tmp" "conftest.in" | |
4170 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4171 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4172 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4173 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4174 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4175 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4176 | # Best one so far, save it but keep looking for a better one | |
4177 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4178 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4179 | fi |
dd184caf | 4180 | # 10*(2^10) chars as input seems more than enough |
4181 | test $ac_count -gt 10 && break | |
4182 | done | |
4183 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4184 | esac | |
4185 | ||
8d138742 CE |
4186 | $ac_path_EGREP_found && break 3 |
4187 | done | |
dd184caf | 4188 | done |
b0322a85 | 4189 | done |
dd184caf | 4190 | IFS=$as_save_IFS |
8d138742 | 4191 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4192 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4193 | fi |
dd184caf | 4194 | else |
4195 | ac_cv_path_EGREP=$EGREP | |
4196 | fi | |
4197 | ||
dd184caf | 4198 | fi |
d9898ee8 | 4199 | fi |
b0322a85 | 4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 | 4201 | $as_echo "$ac_cv_path_EGREP" >&6; } |
dd184caf | 4202 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 | 4203 | |
4204 | ||
b0322a85 | 4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 4206 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 4207 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 | 4208 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4209 | else |
b0322a85 | 4210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4211 | /* end confdefs.h. */ |
4212 | #include <stdlib.h> | |
4213 | #include <stdarg.h> | |
4214 | #include <string.h> | |
4215 | #include <float.h> | |
4216 | ||
4217 | int | |
4218 | main () | |
4219 | { | |
b0322a85 CE |
4220 | |
4221 | ; | |
4222 | return 0; | |
4223 | } | |
4224 | _ACEOF | |
4225 | if ac_fn_c_try_compile "$LINENO"; then : | |
d9898ee8 | 4226 | ac_cv_header_stdc=yes |
4227 | else | |
b0322a85 | 4228 | ac_cv_header_stdc=no |
d9898ee8 | 4229 | fi |
dd184caf | 4230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 4231 | |
4232 | if test $ac_cv_header_stdc = yes; then | |
4233 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 4234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4235 | /* end confdefs.h. */ |
4236 | #include <string.h> | |
4237 | ||
4238 | _ACEOF | |
4239 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
4240 | $EGREP "memchr" >/dev/null 2>&1; then : |
4241 | ||
d9898ee8 | 4242 | else |
4243 | ac_cv_header_stdc=no | |
4244 | fi | |
4245 | rm -f conftest* | |
4246 | ||
4247 | fi | |
4248 | ||
4249 | if test $ac_cv_header_stdc = yes; then | |
4250 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 4251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4252 | /* end confdefs.h. */ |
4253 | #include <stdlib.h> | |
4254 | ||
4255 | _ACEOF | |
4256 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
4257 | $EGREP "free" >/dev/null 2>&1; then : |
4258 | ||
d9898ee8 | 4259 | else |
4260 | ac_cv_header_stdc=no | |
4261 | fi | |
4262 | rm -f conftest* | |
4263 | ||
4264 | fi | |
4265 | ||
4266 | if test $ac_cv_header_stdc = yes; then | |
4267 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 4268 | if test "$cross_compiling" = yes; then : |
d9898ee8 | 4269 | : |
4270 | else | |
b0322a85 | 4271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4272 | /* end confdefs.h. */ |
4273 | #include <ctype.h> | |
dd184caf | 4274 | #include <stdlib.h> |
d9898ee8 | 4275 | #if ((' ' & 0x0FF) == 0x020) |
4276 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4277 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4278 | #else | |
4279 | # define ISLOWER(c) \ | |
4280 | (('a' <= (c) && (c) <= 'i') \ | |
4281 | || ('j' <= (c) && (c) <= 'r') \ | |
4282 | || ('s' <= (c) && (c) <= 'z')) | |
4283 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4284 | #endif | |
4285 | ||
4286 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4287 | int | |
4288 | main () | |
4289 | { | |
4290 | int i; | |
4291 | for (i = 0; i < 256; i++) | |
4292 | if (XOR (islower (i), ISLOWER (i)) | |
4293 | || toupper (i) != TOUPPER (i)) | |
dd184caf | 4294 | return 2; |
4295 | return 0; | |
d9898ee8 | 4296 | } |
4297 | _ACEOF | |
b0322a85 | 4298 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 4299 | |
b0322a85 CE |
4300 | else |
4301 | ac_cv_header_stdc=no | |
d9898ee8 | 4302 | fi |
b0322a85 CE |
4303 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4304 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 4305 | fi |
dd184caf | 4306 | |
d9898ee8 | 4307 | fi |
4308 | fi | |
b0322a85 | 4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 | 4310 | $as_echo "$ac_cv_header_stdc" >&6; } |
d9898ee8 | 4311 | if test $ac_cv_header_stdc = yes; then |
4312 | ||
b0322a85 | 4313 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 4314 | |
4315 | fi | |
4316 | ||
4317 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
d9898ee8 | 4318 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4319 | inttypes.h stdint.h unistd.h | |
b0322a85 CE |
4320 | do : |
4321 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4322 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4323 | " | |
4324 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d9898ee8 | 4325 | cat >>confdefs.h <<_ACEOF |
8d138742 | 4326 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 4327 | _ACEOF |
4328 | ||
4329 | fi | |
4330 | ||
4331 | done | |
4332 | ||
4333 | ||
8d138742 | 4334 | |
b0322a85 CE |
4335 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4336 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
d9898ee8 | 4337 | MINIX=yes |
4338 | else | |
4339 | MINIX= | |
4340 | fi | |
4341 | ||
4342 | ||
8d138742 | 4343 | if test "$MINIX" = yes; then |
d9898ee8 | 4344 | |
b0322a85 | 4345 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d9898ee8 | 4346 | |
4347 | ||
b0322a85 | 4348 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d9898ee8 | 4349 | |
4350 | ||
b0322a85 | 4351 | $as_echo "#define _MINIX 1" >>confdefs.h |
d9898ee8 | 4352 | |
8d138742 | 4353 | fi |
d9898ee8 | 4354 | |
dd184caf | 4355 | |
b0322a85 | 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
8d138742 | 4357 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
b0322a85 | 4358 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
8d138742 | 4359 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4360 | else |
b0322a85 | 4361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 4362 | /* end confdefs.h. */ |
dd184caf | 4363 | |
b0322a85 CE |
4364 | # define __EXTENSIONS__ 1 |
4365 | $ac_includes_default | |
8d138742 CE |
4366 | int |
4367 | main () | |
4368 | { | |
d9898ee8 | 4369 | |
8d138742 CE |
4370 | ; |
4371 | return 0; | |
4372 | } | |
4373 | _ACEOF | |
b0322a85 | 4374 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 4375 | ac_cv_safe_to_define___extensions__=yes |
d9898ee8 | 4376 | else |
b0322a85 | 4377 | ac_cv_safe_to_define___extensions__=no |
8d138742 | 4378 | fi |
8d138742 CE |
4379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4380 | fi | |
b0322a85 | 4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
8d138742 CE |
4382 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4383 | test $ac_cv_safe_to_define___extensions__ = yes && | |
b0322a85 | 4384 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
d9898ee8 | 4385 | |
b0322a85 | 4386 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d9898ee8 | 4387 | |
b0322a85 | 4388 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
8d138742 | 4389 | |
b0322a85 | 4390 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
8d138742 | 4391 | |
b0322a85 | 4392 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
dd184caf | 4393 | |
4394 | ||
8d138742 CE |
4395 | ac_ext=c |
4396 | ac_cpp='$CPP $CPPFLAGS' | |
4397 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4398 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4399 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4400 | if test -n "$ac_tool_prefix"; then | |
4401 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4402 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4404 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4405 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 4406 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4407 | else |
8d138742 CE |
4408 | if test -n "$CC"; then |
4409 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dd184caf | 4410 | else |
8d138742 CE |
4411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4412 | for as_dir in $PATH | |
4413 | do | |
4414 | IFS=$as_save_IFS | |
4415 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4416 | for ac_exec_ext in '' $ac_executable_extensions; do |
4417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4418 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 4419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4420 | break 2 |
4421 | fi | |
4422 | done | |
b0322a85 | 4423 | done |
8d138742 | 4424 | IFS=$as_save_IFS |
d9898ee8 | 4425 | |
4426 | fi | |
8d138742 CE |
4427 | fi |
4428 | CC=$ac_cv_prog_CC | |
4429 | if test -n "$CC"; then | |
b0322a85 | 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 CE |
4431 | $as_echo "$CC" >&6; } |
4432 | else | |
b0322a85 | 4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4434 | $as_echo "no" >&6; } |
4435 | fi | |
dd184caf | 4436 | |
4437 | ||
8d138742 CE |
4438 | fi |
4439 | if test -z "$ac_cv_prog_CC"; then | |
4440 | ac_ct_CC=$CC | |
4441 | # Extract the first word of "gcc", so it can be a program name with args. | |
4442 | set dummy gcc; ac_word=$2 | |
b0322a85 | 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4444 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4445 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 CE |
4446 | $as_echo_n "(cached) " >&6 |
4447 | else | |
4448 | if test -n "$ac_ct_CC"; then | |
4449 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d9898ee8 | 4450 | else |
d9898ee8 | 4451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4452 | for as_dir in $PATH | |
4453 | do | |
4454 | IFS=$as_save_IFS | |
4455 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4456 | for ac_exec_ext in '' $ac_executable_extensions; do |
4457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4458 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 4459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 4460 | break 2 |
d9898ee8 | 4461 | fi |
d9898ee8 | 4462 | done |
b0322a85 | 4463 | done |
8d138742 | 4464 | IFS=$as_save_IFS |
d9898ee8 | 4465 | |
4466 | fi | |
8d138742 CE |
4467 | fi |
4468 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4469 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 4471 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 4472 | else |
b0322a85 | 4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4474 | $as_echo "no" >&6; } |
dd184caf | 4475 | fi |
4476 | ||
8d138742 CE |
4477 | if test "x$ac_ct_CC" = x; then |
4478 | CC="" | |
4479 | else | |
4480 | case $cross_compiling:$ac_tool_warned in | |
4481 | yes:) | |
b0322a85 | 4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4483 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4484 | ac_tool_warned=yes ;; | |
4485 | esac | |
4486 | CC=$ac_ct_CC | |
4487 | fi | |
d9898ee8 | 4488 | else |
8d138742 | 4489 | CC="$ac_cv_prog_CC" |
d9898ee8 | 4490 | fi |
8d138742 CE |
4491 | |
4492 | if test -z "$CC"; then | |
4493 | if test -n "$ac_tool_prefix"; then | |
4494 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4495 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
b0322a85 | 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4497 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4498 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 4499 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4500 | else |
8d138742 CE |
4501 | if test -n "$CC"; then |
4502 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d9898ee8 | 4503 | else |
8d138742 CE |
4504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4505 | for as_dir in $PATH | |
4506 | do | |
4507 | IFS=$as_save_IFS | |
4508 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4509 | for ac_exec_ext in '' $ac_executable_extensions; do |
4510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4511 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 4512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4513 | break 2 |
4514 | fi | |
4515 | done | |
b0322a85 | 4516 | done |
8d138742 | 4517 | IFS=$as_save_IFS |
d9898ee8 | 4518 | |
d9898ee8 | 4519 | fi |
8d138742 CE |
4520 | fi |
4521 | CC=$ac_cv_prog_CC | |
4522 | if test -n "$CC"; then | |
b0322a85 | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 4524 | $as_echo "$CC" >&6; } |
d9898ee8 | 4525 | else |
b0322a85 | 4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4527 | $as_echo "no" >&6; } |
d9898ee8 | 4528 | fi |
d9898ee8 | 4529 | |
4530 | ||
8d138742 | 4531 | fi |
d9898ee8 | 4532 | fi |
8d138742 CE |
4533 | if test -z "$CC"; then |
4534 | # Extract the first word of "cc", so it can be a program name with args. | |
4535 | set dummy cc; ac_word=$2 | |
b0322a85 | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4537 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4538 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 4539 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4540 | else |
8d138742 CE |
4541 | if test -n "$CC"; then |
4542 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4543 | else | |
4544 | ac_prog_rejected=no | |
4545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4546 | for as_dir in $PATH | |
4547 | do | |
4548 | IFS=$as_save_IFS | |
4549 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4550 | for ac_exec_ext in '' $ac_executable_extensions; do |
4551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 CE |
4552 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4553 | ac_prog_rejected=yes | |
4554 | continue | |
4555 | fi | |
4556 | ac_cv_prog_CC="cc" | |
b0322a85 | 4557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4558 | break 2 |
4559 | fi | |
4560 | done | |
b0322a85 | 4561 | done |
8d138742 CE |
4562 | IFS=$as_save_IFS |
4563 | ||
4564 | if test $ac_prog_rejected = yes; then | |
4565 | # We found a bogon in the path, so make sure we never use it. | |
4566 | set dummy $ac_cv_prog_CC | |
4567 | shift | |
4568 | if test $# != 0; then | |
4569 | # We chose a different compiler from the bogus one. | |
4570 | # However, it has the same basename, so the bogon will be chosen | |
4571 | # first if we set CC to just the basename; use the full file name. | |
4572 | shift | |
4573 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
d9898ee8 | 4574 | fi |
d9898ee8 | 4575 | fi |
4576 | fi | |
8d138742 CE |
4577 | fi |
4578 | CC=$ac_cv_prog_CC | |
4579 | if test -n "$CC"; then | |
b0322a85 | 4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 4581 | $as_echo "$CC" >&6; } |
d9898ee8 | 4582 | else |
b0322a85 | 4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4584 | $as_echo "no" >&6; } |
d9898ee8 | 4585 | fi |
4586 | ||
8d138742 CE |
4587 | |
4588 | fi | |
4589 | if test -z "$CC"; then | |
4590 | if test -n "$ac_tool_prefix"; then | |
4591 | for ac_prog in cl.exe | |
4592 | do | |
4593 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4594 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4596 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4597 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 4598 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4599 | else |
8d138742 CE |
4600 | if test -n "$CC"; then |
4601 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4602 | else | |
4603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4604 | for as_dir in $PATH | |
4605 | do | |
4606 | IFS=$as_save_IFS | |
4607 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4608 | for ac_exec_ext in '' $ac_executable_extensions; do |
4609 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4610 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 4611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4612 | break 2 |
4613 | fi | |
4614 | done | |
b0322a85 | 4615 | done |
8d138742 | 4616 | IFS=$as_save_IFS |
d9898ee8 | 4617 | |
8d138742 CE |
4618 | fi |
4619 | fi | |
4620 | CC=$ac_cv_prog_CC | |
4621 | if test -n "$CC"; then | |
b0322a85 | 4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 CE |
4623 | $as_echo "$CC" >&6; } |
4624 | else | |
b0322a85 | 4625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4626 | $as_echo "no" >&6; } |
4627 | fi | |
d9898ee8 | 4628 | |
d9898ee8 | 4629 | |
8d138742 CE |
4630 | test -n "$CC" && break |
4631 | done | |
4632 | fi | |
4633 | if test -z "$CC"; then | |
4634 | ac_ct_CC=$CC | |
4635 | for ac_prog in cl.exe | |
4636 | do | |
4637 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4638 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4640 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4641 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 CE |
4642 | $as_echo_n "(cached) " >&6 |
4643 | else | |
4644 | if test -n "$ac_ct_CC"; then | |
4645 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4646 | else | |
4647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4648 | for as_dir in $PATH | |
4649 | do | |
4650 | IFS=$as_save_IFS | |
4651 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4652 | for ac_exec_ext in '' $ac_executable_extensions; do |
4653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4654 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 4655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4656 | break 2 |
4657 | fi | |
4658 | done | |
b0322a85 | 4659 | done |
8d138742 | 4660 | IFS=$as_save_IFS |
d9898ee8 | 4661 | |
8d138742 CE |
4662 | fi |
4663 | fi | |
4664 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4665 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 CE |
4667 | $as_echo "$ac_ct_CC" >&6; } |
4668 | else | |
b0322a85 | 4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4670 | $as_echo "no" >&6; } |
4671 | fi | |
d9898ee8 | 4672 | |
d9898ee8 | 4673 | |
8d138742 CE |
4674 | test -n "$ac_ct_CC" && break |
4675 | done | |
d9898ee8 | 4676 | |
8d138742 CE |
4677 | if test "x$ac_ct_CC" = x; then |
4678 | CC="" | |
d9898ee8 | 4679 | else |
8d138742 CE |
4680 | case $cross_compiling:$ac_tool_warned in |
4681 | yes:) | |
b0322a85 | 4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4683 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4684 | ac_tool_warned=yes ;; | |
4685 | esac | |
4686 | CC=$ac_ct_CC | |
d9898ee8 | 4687 | fi |
8d138742 | 4688 | fi |
d9898ee8 | 4689 | |
8d138742 | 4690 | fi |
d9898ee8 | 4691 | |
d9898ee8 | 4692 | |
b0322a85 | 4693 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 4694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
4695 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4696 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 4697 | |
8d138742 | 4698 | # Provide some information about the compiler. |
b0322a85 | 4699 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
4700 | set X $ac_compile |
4701 | ac_compiler=$2 | |
b0322a85 CE |
4702 | for ac_option in --version -v -V -qversion; do |
4703 | { { ac_try="$ac_compiler $ac_option >&5" | |
8d138742 CE |
4704 | case "(($ac_try" in |
4705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4706 | *) ac_try_echo=$ac_try;; | |
4707 | esac | |
b0322a85 CE |
4708 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4709 | $as_echo "$ac_try_echo"; } >&5 | |
4710 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 4711 | ac_status=$? |
b0322a85 CE |
4712 | if test -s conftest.err; then |
4713 | sed '10a\ | |
4714 | ... rest of stderr output deleted ... | |
4715 | 10q' conftest.err >conftest.er1 | |
4716 | cat conftest.er1 >&5 | |
4717 | fi | |
4718 | rm -f conftest.er1 conftest.err | |
4719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4720 | test $ac_status = 0; } | |
4721 | done | |
d9898ee8 | 4722 | |
b0322a85 | 4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 4724 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 4725 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 4726 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4727 | else |
b0322a85 | 4728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4729 | /* end confdefs.h. */ |
4730 | ||
4731 | int | |
4732 | main () | |
4733 | { | |
8d138742 CE |
4734 | #ifndef __GNUC__ |
4735 | choke me | |
4736 | #endif | |
d9898ee8 | 4737 | |
4738 | ; | |
4739 | return 0; | |
4740 | } | |
4741 | _ACEOF | |
b0322a85 | 4742 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 4743 | ac_compiler_gnu=yes |
d9898ee8 | 4744 | else |
b0322a85 | 4745 | ac_compiler_gnu=no |
d9898ee8 | 4746 | fi |
8d138742 CE |
4747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4748 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
d9898ee8 | 4749 | |
4750 | fi | |
b0322a85 | 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
4752 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4753 | if test $ac_compiler_gnu = yes; then | |
4754 | GCC=yes | |
4755 | else | |
4756 | GCC= | |
d9898ee8 | 4757 | fi |
8d138742 CE |
4758 | ac_test_CFLAGS=${CFLAGS+set} |
4759 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 4761 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 4762 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 4763 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4764 | else |
8d138742 CE |
4765 | ac_save_c_werror_flag=$ac_c_werror_flag |
4766 | ac_c_werror_flag=yes | |
4767 | ac_cv_prog_cc_g=no | |
4768 | CFLAGS="-g" | |
b0322a85 | 4769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4770 | /* end confdefs.h. */ |
8d138742 CE |
4771 | |
4772 | int | |
4773 | main () | |
4774 | { | |
4775 | ||
4776 | ; | |
4777 | return 0; | |
4778 | } | |
d9898ee8 | 4779 | _ACEOF |
b0322a85 | 4780 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 4781 | ac_cv_prog_cc_g=yes |
d9898ee8 | 4782 | else |
b0322a85 CE |
4783 | CFLAGS="" |
4784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 4785 | /* end confdefs.h. */ |
4786 | ||
4787 | int | |
4788 | main () | |
4789 | { | |
d9898ee8 | 4790 | |
4791 | ; | |
4792 | return 0; | |
4793 | } | |
4794 | _ACEOF | |
b0322a85 | 4795 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 4796 | |
b0322a85 CE |
4797 | else |
4798 | ac_c_werror_flag=$ac_save_c_werror_flag | |
8d138742 | 4799 | CFLAGS="-g" |
b0322a85 | 4800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4801 | /* end confdefs.h. */ |
4802 | ||
4803 | int | |
4804 | main () | |
4805 | { | |
4806 | ||
4807 | ; | |
4808 | return 0; | |
4809 | } | |
4810 | _ACEOF | |
b0322a85 | 4811 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 4812 | ac_cv_prog_cc_g=yes |
8d138742 | 4813 | fi |
8d138742 CE |
4814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4815 | fi | |
8d138742 CE |
4816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4817 | fi | |
8d138742 CE |
4818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4819 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4820 | fi | |
b0322a85 | 4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 CE |
4822 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
4823 | if test "$ac_test_CFLAGS" = set; then | |
4824 | CFLAGS=$ac_save_CFLAGS | |
4825 | elif test $ac_cv_prog_cc_g = yes; then | |
4826 | if test "$GCC" = yes; then | |
4827 | CFLAGS="-g -O2" | |
4828 | else | |
4829 | CFLAGS="-g" | |
4830 | fi | |
4831 | else | |
4832 | if test "$GCC" = yes; then | |
4833 | CFLAGS="-O2" | |
4834 | else | |
4835 | CFLAGS= | |
4836 | fi | |
4837 | fi | |
b0322a85 | 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 4839 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 4840 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 CE |
4841 | $as_echo_n "(cached) " >&6 |
4842 | else | |
4843 | ac_cv_prog_cc_c89=no | |
4844 | ac_save_CC=$CC | |
b0322a85 | 4845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4846 | /* end confdefs.h. */ |
8d138742 CE |
4847 | #include <stdarg.h> |
4848 | #include <stdio.h> | |
b0322a85 | 4849 | struct stat; |
8d138742 CE |
4850 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4851 | struct buf { int x; }; | |
4852 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4853 | static char *e (p, i) | |
4854 | char **p; | |
4855 | int i; | |
4856 | { | |
4857 | return p[i]; | |
4858 | } | |
4859 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4860 | { | |
4861 | char *s; | |
4862 | va_list v; | |
4863 | va_start (v,p); | |
4864 | s = g (p, va_arg (v,int)); | |
4865 | va_end (v); | |
4866 | return s; | |
4867 | } | |
4868 | ||
4869 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4870 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4871 | These don't provoke an error unfortunately, instead are silently treated | |
4872 | as 'x'. The following induces an error, until -std is added to get | |
4873 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4874 | array size at least. It's necessary to write '\x00'==0 to get something | |
4875 | that's true only with -std. */ | |
4876 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4877 | ||
4878 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4879 | inside strings and character constants. */ | |
4880 | #define FOO(x) 'x' | |
4881 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
dd184caf | 4882 | |
8d138742 CE |
4883 | int test (int i, double x); |
4884 | struct s1 {int (*f) (int a);}; | |
4885 | struct s2 {int (*f) (double a);}; | |
4886 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4887 | int argc; | |
4888 | char **argv; | |
d9898ee8 | 4889 | int |
4890 | main () | |
4891 | { | |
8d138742 | 4892 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d9898ee8 | 4893 | ; |
4894 | return 0; | |
b0322a85 CE |
4895 | } |
4896 | _ACEOF | |
4897 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4898 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4899 | do | |
4900 | CC="$ac_save_CC $ac_arg" | |
4901 | if ac_fn_c_try_compile "$LINENO"; then : | |
8d138742 | 4902 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 4903 | fi |
8d138742 CE |
4904 | rm -f core conftest.err conftest.$ac_objext |
4905 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4906 | done | |
4907 | rm -f conftest.$ac_ext | |
4908 | CC=$ac_save_CC | |
dd184caf | 4909 | |
d9898ee8 | 4910 | fi |
8d138742 CE |
4911 | # AC_CACHE_VAL |
4912 | case "x$ac_cv_prog_cc_c89" in | |
4913 | x) | |
b0322a85 | 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 CE |
4915 | $as_echo "none needed" >&6; } ;; |
4916 | xno) | |
b0322a85 | 4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 CE |
4918 | $as_echo "unsupported" >&6; } ;; |
4919 | *) | |
4920 | CC="$CC $ac_cv_prog_cc_c89" | |
b0322a85 | 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 CE |
4922 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4923 | esac | |
b0322a85 | 4924 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 4925 | |
b0322a85 | 4926 | fi |
d9898ee8 | 4927 | |
8d138742 CE |
4928 | ac_ext=c |
4929 | ac_cpp='$CPP $CPPFLAGS' | |
4930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4933 | ||
d50284c4 CE |
4934 | ac_ext=c |
4935 | ac_cpp='$CPP $CPPFLAGS' | |
4936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4940 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4941 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4942 | $as_echo_n "(cached) " >&6 | |
4943 | else | |
4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4945 | /* end confdefs.h. */ | |
4946 | ||
4947 | int | |
4948 | main () | |
4949 | { | |
4950 | ||
4951 | ; | |
4952 | return 0; | |
4953 | } | |
4954 | _ACEOF | |
4955 | # Make sure it works both with $CC and with simple cc. | |
4956 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4957 | # compilers refuse to overwrite an existing .o file with -o, | |
4958 | # though they will create one. | |
4959 | am_cv_prog_cc_c_o=yes | |
4960 | for am_i in 1 2; do | |
4961 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4962 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4963 | ac_status=$? | |
4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4965 | (exit $ac_status); } \ | |
4966 | && test -f conftest2.$ac_objext; then | |
4967 | : OK | |
4968 | else | |
4969 | am_cv_prog_cc_c_o=no | |
4970 | break | |
4971 | fi | |
4972 | done | |
4973 | rm -f core conftest* | |
4974 | unset am_i | |
4975 | fi | |
4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4977 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4978 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4979 | # Losing compiler, so override with the script. | |
4980 | # FIXME: It is wrong to rewrite CC. | |
4981 | # But if we don't then we get into trouble of one sort or another. | |
4982 | # A longer-term fix would be to have automake use am__CC in this case, | |
4983 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4984 | CC="$am_aux_dir/compile $CC" | |
4985 | fi | |
4986 | ac_ext=c | |
4987 | ac_cpp='$CPP $CPPFLAGS' | |
4988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4991 | ||
4992 | ||
8d138742 | 4993 | depcc="$CC" am_compiler_list= |
d9898ee8 | 4994 | |
b0322a85 | 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 4996 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 4997 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 4998 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4999 | else |
5000 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5001 | # We make a subdir and do the tests there. Otherwise we can end up | |
5002 | # making bogus files that we don't know about and never remove. For | |
5003 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
5004 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5005 | # in D". | |
5006 | rm -rf conftest.dir | |
d9898ee8 | 5007 | mkdir conftest.dir |
5008 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5009 | # using a relative directory. | |
5010 | cp "$am_depcomp" conftest.dir | |
5011 | cd conftest.dir | |
5012 | # We will build objects and dependencies in a subdirectory because | |
5013 | # it helps to detect inapplicable dependency modes. For instance | |
5014 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5015 | # side effect of compilation, but ICC will put the dependencies in | |
5016 | # the current directory while Tru64 will put them in the object | |
5017 | # directory. | |
5018 | mkdir sub | |
5019 | ||
8d138742 | 5020 | am_cv_CC_dependencies_compiler_type=none |
d9898ee8 | 5021 | if test "$am_compiler_list" = ""; then |
5022 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5023 | fi | |
8d138742 CE |
5024 | am__universal=false |
5025 | case " $depcc " in #( | |
5026 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5027 | esac | |
5028 | ||
d9898ee8 | 5029 | for depmode in $am_compiler_list; do |
5030 | # Setup a source with many dependencies, because some compilers | |
5031 | # like to wrap large dependency lists on column 80 (with \), and | |
5032 | # we should not choose a depcomp mode which is confused by this. | |
5033 | # | |
5034 | # We need to recreate these files for each test, as the compiler may | |
5035 | # overwrite some of them when testing with obscure command lines. | |
5036 | # This happens at least with the AIX C compiler. | |
5037 | : > sub/conftest.c | |
5038 | for i in 1 2 3 4 5 6; do | |
5039 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
5040 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5041 | # Solaris 10 /bin/sh. | |
5042 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 5043 | done |
5044 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5045 | ||
b0322a85 | 5046 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 5047 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
5048 | # handle '-M -o', and we need to detect this. Also, some Intel |
5049 | # versions had trouble with output in subdirs. | |
8d138742 CE |
5050 | am__obj=sub/conftest.${OBJEXT-o} |
5051 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 5052 | case $depmode in |
8d138742 CE |
5053 | gcc) |
5054 | # This depmode causes a compiler race in universal mode. | |
5055 | test "$am__universal" = false || continue | |
5056 | ;; | |
d9898ee8 | 5057 | nosideeffect) |
b0322a85 CE |
5058 | # After this tag, mechanisms are not by side-effect, so they'll |
5059 | # only be used when explicitly requested. | |
d9898ee8 | 5060 | if test "x$enable_dependency_tracking" = xyes; then |
5061 | continue | |
5062 | else | |
5063 | break | |
5064 | fi | |
5065 | ;; | |
b0322a85 CE |
5066 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
5067 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
5068 | # not run yet. These depmodes are late enough in the game, and |
5069 | # so weak that their functioning should not be impacted. | |
5070 | am__obj=conftest.${OBJEXT-o} | |
5071 | am__minus_obj= | |
5072 | ;; | |
d9898ee8 | 5073 | none) break ;; |
5074 | esac | |
d9898ee8 | 5075 | if depmode=$depmode \ |
8d138742 | 5076 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 5077 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 5078 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 5079 | >/dev/null 2>conftest.err && |
dd184caf | 5080 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 5081 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 5082 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 5083 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5084 | # icc doesn't choke on unknown options, it will just issue warnings | |
5085 | # or remarks (even with -Werror). So we grep stderr for any message | |
5086 | # that says an option was ignored or not supported. | |
5087 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5088 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5089 | # The diagnosis changed in icc 8.0: | |
5090 | # icc: Command line remark: option '-MP' not supported | |
5091 | if (grep 'ignoring option' conftest.err || | |
5092 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
8d138742 | 5093 | am_cv_CC_dependencies_compiler_type=$depmode |
d9898ee8 | 5094 | break |
5095 | fi | |
5096 | fi | |
5097 | done | |
5098 | ||
5099 | cd .. | |
5100 | rm -rf conftest.dir | |
5101 | else | |
8d138742 | 5102 | am_cv_CC_dependencies_compiler_type=none |
d9898ee8 | 5103 | fi |
5104 | ||
5105 | fi | |
b0322a85 | 5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 CE |
5107 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
5108 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
d9898ee8 | 5109 | |
dd184caf | 5110 | if |
d9898ee8 | 5111 | test "x$enable_dependency_tracking" != xno \ |
8d138742 CE |
5112 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
5113 | am__fastdepCC_TRUE= | |
5114 | am__fastdepCC_FALSE='#' | |
d9898ee8 | 5115 | else |
8d138742 CE |
5116 | am__fastdepCC_TRUE='#' |
5117 | am__fastdepCC_FALSE= | |
d9898ee8 | 5118 | fi |
5119 | ||
5120 | ||
8d138742 CE |
5121 | case `pwd` in |
5122 | *\ * | *\ *) | |
b0322a85 | 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 | 5124 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
dd184caf | 5125 | esac |
d9898ee8 | 5126 | |
dd184caf | 5127 | |
d9898ee8 | 5128 | |
d50284c4 CE |
5129 | macro_version='2.4.6' |
5130 | macro_revision='2.4.6' | |
d9898ee8 | 5131 | |
dd184caf | 5132 | |
d9898ee8 | 5133 | |
d9898ee8 | 5134 | |
d9898ee8 | 5135 | |
d9898ee8 | 5136 | |
dd184caf | 5137 | |
d9898ee8 | 5138 | |
d9898ee8 | 5139 | |
dd184caf | 5140 | |
d9898ee8 | 5141 | |
d9898ee8 | 5142 | |
d9898ee8 | 5143 | |
d50284c4 | 5144 | ltmain=$ac_aux_dir/ltmain.sh |
d9898ee8 | 5145 | |
8d138742 CE |
5146 | # Make sure we can run config.sub. |
5147 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
b0322a85 | 5148 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 5149 | |
b0322a85 | 5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 5151 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 5152 | if ${ac_cv_build+:} false; then : |
8d138742 | 5153 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5154 | else |
8d138742 CE |
5155 | ac_build_alias=$build_alias |
5156 | test "x$ac_build_alias" = x && | |
5157 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5158 | test "x$ac_build_alias" = x && | |
b0322a85 | 5159 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
8d138742 | 5160 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 5161 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
8d138742 CE |
5162 | |
5163 | fi | |
b0322a85 | 5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 CE |
5165 | $as_echo "$ac_cv_build" >&6; } |
5166 | case $ac_cv_build in | |
5167 | *-*-*) ;; | |
b0322a85 | 5168 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
8d138742 CE |
5169 | esac |
5170 | build=$ac_cv_build | |
5171 | ac_save_IFS=$IFS; IFS='-' | |
5172 | set x $ac_cv_build | |
5173 | shift | |
5174 | build_cpu=$1 | |
5175 | build_vendor=$2 | |
5176 | shift; shift | |
5177 | # Remember, the first character of IFS is used to create $*, | |
5178 | # except with old shells: | |
5179 | build_os=$* | |
5180 | IFS=$ac_save_IFS | |
5181 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5182 | ||
5183 | ||
b0322a85 | 5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 5185 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 5186 | if ${ac_cv_host+:} false; then : |
8d138742 | 5187 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5188 | else |
8d138742 CE |
5189 | if test "x$host_alias" = x; then |
5190 | ac_cv_host=$ac_cv_build | |
5191 | else | |
5192 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 5193 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
8d138742 CE |
5194 | fi |
5195 | ||
5196 | fi | |
b0322a85 | 5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 CE |
5198 | $as_echo "$ac_cv_host" >&6; } |
5199 | case $ac_cv_host in | |
5200 | *-*-*) ;; | |
b0322a85 | 5201 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
8d138742 CE |
5202 | esac |
5203 | host=$ac_cv_host | |
5204 | ac_save_IFS=$IFS; IFS='-' | |
5205 | set x $ac_cv_host | |
5206 | shift | |
5207 | host_cpu=$1 | |
5208 | host_vendor=$2 | |
5209 | shift; shift | |
5210 | # Remember, the first character of IFS is used to create $*, | |
5211 | # except with old shells: | |
5212 | host_os=$* | |
5213 | IFS=$ac_save_IFS | |
5214 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5215 | ||
5216 | ||
b0322a85 CE |
5217 | # Backslashify metacharacters that are still active within |
5218 | # double-quoted strings. | |
5219 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5220 | ||
5221 | # Same as above, but do not quote variable references. | |
5222 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5223 | ||
5224 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5225 | # double_quote_subst'ed string. | |
5226 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5227 | ||
5228 | # Sed substitution to delay expansion of an escaped single quote. | |
5229 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5230 | ||
5231 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5232 | no_glob_subst='s/\*/\\\*/g' | |
5233 | ||
5234 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5235 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5236 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5237 | ||
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5239 | $as_echo_n "checking how to print strings... " >&6; } | |
5240 | # Test print first, because it will be a builtin if present. | |
5241 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5242 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5243 | ECHO='print -r --' | |
5244 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5245 | ECHO='printf %s\n' | |
5246 | else | |
5247 | # Use this function as a fallback that always works. | |
5248 | func_fallback_echo () | |
5249 | { | |
5250 | eval 'cat <<_LTECHO_EOF | |
5251 | $1 | |
5252 | _LTECHO_EOF' | |
5253 | } | |
5254 | ECHO='func_fallback_echo' | |
5255 | fi | |
5256 | ||
5257 | # func_echo_all arg... | |
5258 | # Invoke $ECHO with all args, space-separated. | |
5259 | func_echo_all () | |
5260 | { | |
5261 | $ECHO "" | |
5262 | } | |
5263 | ||
d50284c4 | 5264 | case $ECHO in |
b0322a85 CE |
5265 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
5266 | $as_echo "printf" >&6; } ;; | |
5267 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5268 | $as_echo "print -r" >&6; } ;; | |
5269 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5270 | $as_echo "cat" >&6; } ;; | |
5271 | esac | |
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 5287 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 5288 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
5289 | $as_echo_n "(cached) " >&6 |
5290 | else | |
5291 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5292 | for ac_i in 1 2 3 4 5 6 7; do | |
5293 | ac_script="$ac_script$as_nl$ac_script" | |
5294 | done | |
5295 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 5296 | { ac_script=; unset ac_script;} |
8d138742 CE |
5297 | if test -z "$SED"; then |
5298 | ac_path_SED_found=false | |
5299 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 5301 | for as_dir in $PATH |
5302 | do | |
5303 | IFS=$as_save_IFS | |
5304 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 5305 | for ac_prog in sed gsed; do |
8d138742 CE |
5306 | for ac_exec_ext in '' $ac_executable_extensions; do |
5307 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 5308 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
5309 | # Check for GNU ac_path_SED and select it if it is found. |
5310 | # Check for GNU $ac_path_SED | |
5311 | case `"$ac_path_SED" --version 2>&1` in | |
5312 | *GNU*) | |
5313 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5314 | *) | |
5315 | ac_count=0 | |
5316 | $as_echo_n 0123456789 >"conftest.in" | |
5317 | while : | |
5318 | do | |
5319 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5320 | mv "conftest.tmp" "conftest.in" | |
5321 | cp "conftest.in" "conftest.nl" | |
5322 | $as_echo '' >> "conftest.nl" | |
5323 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5324 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 5325 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
5326 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
5327 | # Best one so far, save it but keep looking for a better one | |
5328 | ac_cv_path_SED="$ac_path_SED" | |
5329 | ac_path_SED_max=$ac_count | |
5330 | fi | |
5331 | # 10*(2^10) chars as input seems more than enough | |
5332 | test $ac_count -gt 10 && break | |
5333 | done | |
5334 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5335 | esac | |
5336 | ||
5337 | $ac_path_SED_found && break 3 | |
5338 | done | |
5339 | done | |
b0322a85 | 5340 | done |
dd184caf | 5341 | IFS=$as_save_IFS |
8d138742 | 5342 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 5343 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8d138742 | 5344 | fi |
d9898ee8 | 5345 | else |
8d138742 | 5346 | ac_cv_path_SED=$SED |
d9898ee8 | 5347 | fi |
5348 | ||
d9898ee8 | 5349 | fi |
b0322a85 | 5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
5351 | $as_echo "$ac_cv_path_SED" >&6; } |
5352 | SED="$ac_cv_path_SED" | |
5353 | rm -f conftest.sed | |
5354 | ||
5355 | test -z "$SED" && SED=sed | |
5356 | Xsed="$SED -e 1s/^X//" | |
5357 | ||
5358 | ||
5359 | ||
5360 | ||
5361 | ||
5362 | ||
5363 | ||
5364 | ||
5365 | ||
5366 | ||
5367 | ||
b0322a85 | 5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 5369 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 5370 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 5371 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5372 | else |
8d138742 CE |
5373 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5374 | then ac_cv_path_FGREP="$GREP -F" | |
5375 | else | |
5376 | if test -z "$FGREP"; then | |
5377 | ac_path_FGREP_found=false | |
5378 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5380 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
d9898ee8 | 5381 | do |
5382 | IFS=$as_save_IFS | |
5383 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 5384 | for ac_prog in fgrep; do |
8d138742 CE |
5385 | for ac_exec_ext in '' $ac_executable_extensions; do |
5386 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 5387 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
5388 | # Check for GNU ac_path_FGREP and select it if it is found. |
5389 | # Check for GNU $ac_path_FGREP | |
5390 | case `"$ac_path_FGREP" --version 2>&1` in | |
5391 | *GNU*) | |
5392 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5393 | *) | |
5394 | ac_count=0 | |
5395 | $as_echo_n 0123456789 >"conftest.in" | |
5396 | while : | |
5397 | do | |
5398 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5399 | mv "conftest.tmp" "conftest.in" | |
5400 | cp "conftest.in" "conftest.nl" | |
5401 | $as_echo 'FGREP' >> "conftest.nl" | |
5402 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5403 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 5404 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
5405 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
5406 | # Best one so far, save it but keep looking for a better one | |
5407 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5408 | ac_path_FGREP_max=$ac_count | |
5409 | fi | |
5410 | # 10*(2^10) chars as input seems more than enough | |
5411 | test $ac_count -gt 10 && break | |
5412 | done | |
5413 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5414 | esac | |
5415 | ||
5416 | $ac_path_FGREP_found && break 3 | |
5417 | done | |
5418 | done | |
b0322a85 | 5419 | done |
dd184caf | 5420 | IFS=$as_save_IFS |
8d138742 | 5421 | if test -z "$ac_cv_path_FGREP"; then |
b0322a85 | 5422 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 5423 | fi |
d9898ee8 | 5424 | else |
8d138742 | 5425 | ac_cv_path_FGREP=$FGREP |
d9898ee8 | 5426 | fi |
5427 | ||
8d138742 CE |
5428 | fi |
5429 | fi | |
b0322a85 | 5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
5431 | $as_echo "$ac_cv_path_FGREP" >&6; } |
5432 | FGREP="$ac_cv_path_FGREP" | |
dd184caf | 5433 | |
d9898ee8 | 5434 | |
8d138742 | 5435 | test -z "$GREP" && GREP=grep |
d9898ee8 | 5436 | |
5437 | ||
d9898ee8 | 5438 | |
d9898ee8 | 5439 | |
d9898ee8 | 5440 | |
dd184caf | 5441 | |
d9898ee8 | 5442 | |
d9898ee8 | 5443 | |
d9898ee8 | 5444 | |
dd184caf | 5445 | |
d9898ee8 | 5446 | |
d9898ee8 | 5447 | |
d9898ee8 | 5448 | |
5449 | ||
5450 | ||
d9898ee8 | 5451 | |
d9898ee8 | 5452 | |
d9898ee8 | 5453 | |
8d138742 CE |
5454 | |
5455 | # Check whether --with-gnu-ld was given. | |
b0322a85 | 5456 | if test "${with_gnu_ld+set}" = set; then : |
d50284c4 | 5457 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
8d138742 CE |
5458 | else |
5459 | with_gnu_ld=no | |
5460 | fi | |
5461 | ||
5462 | ac_prog=ld | |
d50284c4 | 5463 | if test yes = "$GCC"; then |
8d138742 | 5464 | # Check if gcc -print-prog-name=ld gives a path. |
b0322a85 | 5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 CE |
5466 | $as_echo_n "checking for ld used by $CC... " >&6; } |
5467 | case $host in | |
5468 | *-*-mingw*) | |
d50284c4 | 5469 | # gcc leaves a trailing carriage return, which upsets mingw |
8d138742 CE |
5470 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
5471 | *) | |
5472 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5473 | esac | |
5474 | case $ac_prog in | |
5475 | # Accept absolute paths. | |
5476 | [\\/]* | ?:[\\/]*) | |
5477 | re_direlt='/[^/][^/]*/\.\./' | |
5478 | # Canonicalize the pathname of ld | |
5479 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5480 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5481 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5482 | done | |
d50284c4 | 5483 | test -z "$LD" && LD=$ac_prog |
8d138742 CE |
5484 | ;; |
5485 | "") | |
5486 | # If it fails, then pretend we aren't using GCC. | |
5487 | ac_prog=ld | |
5488 | ;; | |
5489 | *) | |
5490 | # If it is relative, then search for the first ld in PATH. | |
5491 | with_gnu_ld=unknown | |
5492 | ;; | |
5493 | esac | |
d50284c4 | 5494 | elif test yes = "$with_gnu_ld"; then |
b0322a85 | 5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 CE |
5496 | $as_echo_n "checking for GNU ld... " >&6; } |
5497 | else | |
b0322a85 | 5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 CE |
5499 | $as_echo_n "checking for non-GNU ld... " >&6; } |
5500 | fi | |
b0322a85 | 5501 | if ${lt_cv_path_LD+:} false; then : |
8d138742 CE |
5502 | $as_echo_n "(cached) " >&6 |
5503 | else | |
5504 | if test -z "$LD"; then | |
d50284c4 | 5505 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8d138742 | 5506 | for ac_dir in $PATH; do |
d50284c4 | 5507 | IFS=$lt_save_ifs |
8d138742 CE |
5508 | test -z "$ac_dir" && ac_dir=. |
5509 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
d50284c4 | 5510 | lt_cv_path_LD=$ac_dir/$ac_prog |
8d138742 CE |
5511 | # Check to see if the program is GNU ld. I'd rather use --version, |
5512 | # but apparently some variants of GNU ld only accept -v. | |
5513 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5514 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5515 | *GNU* | *'with BFD'*) | |
d50284c4 | 5516 | test no != "$with_gnu_ld" && break |
8d138742 CE |
5517 | ;; |
5518 | *) | |
d50284c4 | 5519 | test yes != "$with_gnu_ld" && break |
8d138742 CE |
5520 | ;; |
5521 | esac | |
5522 | fi | |
5523 | done | |
d50284c4 | 5524 | IFS=$lt_save_ifs |
8d138742 | 5525 | else |
d50284c4 | 5526 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
8d138742 CE |
5527 | fi |
5528 | fi | |
5529 | ||
d50284c4 | 5530 | LD=$lt_cv_path_LD |
8d138742 | 5531 | if test -n "$LD"; then |
b0322a85 | 5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 CE |
5533 | $as_echo "$LD" >&6; } |
5534 | else | |
b0322a85 | 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5536 | $as_echo "no" >&6; } |
5537 | fi | |
b0322a85 CE |
5538 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 5540 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 5541 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 CE |
5542 | $as_echo_n "(cached) " >&6 |
5543 | else | |
5544 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5545 | case `$LD -v 2>&1 </dev/null` in | |
5546 | *GNU* | *'with BFD'*) | |
5547 | lt_cv_prog_gnu_ld=yes | |
5548 | ;; | |
5549 | *) | |
5550 | lt_cv_prog_gnu_ld=no | |
5551 | ;; | |
5552 | esac | |
5553 | fi | |
b0322a85 | 5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 CE |
5555 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
5556 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5557 | ||
5558 | ||
5559 | ||
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | ||
b0322a85 | 5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 5567 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 5568 | if ${lt_cv_path_NM+:} false; then : |
8d138742 CE |
5569 | $as_echo_n "(cached) " >&6 |
5570 | else | |
5571 | if test -n "$NM"; then | |
5572 | # Let the user override the test. | |
d50284c4 | 5573 | lt_cv_path_NM=$NM |
8d138742 | 5574 | else |
d50284c4 | 5575 | lt_nm_to_check=${ac_tool_prefix}nm |
8d138742 CE |
5576 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
5577 | lt_nm_to_check="$lt_nm_to_check nm" | |
5578 | fi | |
5579 | for lt_tmp_nm in $lt_nm_to_check; do | |
d50284c4 | 5580 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8d138742 | 5581 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
d50284c4 | 5582 | IFS=$lt_save_ifs |
8d138742 | 5583 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
5584 | tmp_nm=$ac_dir/$lt_tmp_nm |
5585 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
8d138742 | 5586 | # Check to see if the nm accepts a BSD-compat flag. |
d50284c4 | 5587 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
8d138742 CE |
5588 | # nm: unknown option "B" ignored |
5589 | # Tru64's nm complains that /dev/null is an invalid object file | |
d50284c4 CE |
5590 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
5591 | case $build_os in | |
5592 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
5593 | *) lt_bad_file=/dev/null ;; | |
5594 | esac | |
5595 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
5596 | *$lt_bad_file* | *'Invalid file or object type'*) | |
8d138742 | 5597 | lt_cv_path_NM="$tmp_nm -B" |
d50284c4 | 5598 | break 2 |
8d138742 CE |
5599 | ;; |
5600 | *) | |
5601 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5602 | */dev/null*) | |
5603 | lt_cv_path_NM="$tmp_nm -p" | |
d50284c4 | 5604 | break 2 |
8d138742 CE |
5605 | ;; |
5606 | *) | |
5607 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5608 | continue # so that we can try to find one that supports BSD flags | |
5609 | ;; | |
5610 | esac | |
5611 | ;; | |
5612 | esac | |
5613 | fi | |
5614 | done | |
d50284c4 | 5615 | IFS=$lt_save_ifs |
8d138742 CE |
5616 | done |
5617 | : ${lt_cv_path_NM=no} | |
5618 | fi | |
5619 | fi | |
b0322a85 | 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 | 5621 | $as_echo "$lt_cv_path_NM" >&6; } |
d50284c4 CE |
5622 | if test no != "$lt_cv_path_NM"; then |
5623 | NM=$lt_cv_path_NM | |
8d138742 CE |
5624 | else |
5625 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
b0322a85 CE |
5626 | if test -n "$DUMPBIN"; then : |
5627 | # Let the user override the test. | |
5628 | else | |
5629 | if test -n "$ac_tool_prefix"; then | |
5630 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
5631 | do |
5632 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5633 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5635 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5636 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
5637 | $as_echo_n "(cached) " >&6 |
5638 | else | |
5639 | if test -n "$DUMPBIN"; then | |
5640 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5641 | else | |
5642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5643 | for as_dir in $PATH | |
5644 | do | |
5645 | IFS=$as_save_IFS | |
5646 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5647 | for ac_exec_ext in '' $ac_executable_extensions; do |
5648 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5649 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 5650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5651 | break 2 |
5652 | fi | |
5653 | done | |
b0322a85 | 5654 | done |
8d138742 CE |
5655 | IFS=$as_save_IFS |
5656 | ||
5657 | fi | |
5658 | fi | |
5659 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5660 | if test -n "$DUMPBIN"; then | |
b0322a85 | 5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 CE |
5662 | $as_echo "$DUMPBIN" >&6; } |
5663 | else | |
b0322a85 | 5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5665 | $as_echo "no" >&6; } |
5666 | fi | |
5667 | ||
5668 | ||
5669 | test -n "$DUMPBIN" && break | |
5670 | done | |
5671 | fi | |
5672 | if test -z "$DUMPBIN"; then | |
5673 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 5674 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
5675 | do |
5676 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5677 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5679 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5680 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
5681 | $as_echo_n "(cached) " >&6 |
5682 | else | |
5683 | if test -n "$ac_ct_DUMPBIN"; then | |
5684 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5685 | else | |
5686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5687 | for as_dir in $PATH | |
5688 | do | |
5689 | IFS=$as_save_IFS | |
5690 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5691 | for ac_exec_ext in '' $ac_executable_extensions; do |
5692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5693 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 5694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5695 | break 2 |
5696 | fi | |
5697 | done | |
b0322a85 | 5698 | done |
8d138742 CE |
5699 | IFS=$as_save_IFS |
5700 | ||
5701 | fi | |
5702 | fi | |
5703 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5704 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
5706 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
5707 | else | |
b0322a85 | 5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5709 | $as_echo "no" >&6; } |
5710 | fi | |
5711 | ||
5712 | ||
5713 | test -n "$ac_ct_DUMPBIN" && break | |
5714 | done | |
5715 | ||
5716 | if test "x$ac_ct_DUMPBIN" = x; then | |
5717 | DUMPBIN=":" | |
5718 | else | |
5719 | case $cross_compiling:$ac_tool_warned in | |
5720 | yes:) | |
b0322a85 | 5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5722 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5723 | ac_tool_warned=yes ;; | |
5724 | esac | |
5725 | DUMPBIN=$ac_ct_DUMPBIN | |
5726 | fi | |
5727 | fi | |
5728 | ||
d50284c4 | 5729 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b0322a85 | 5730 | *COFF*) |
d50284c4 | 5731 | DUMPBIN="$DUMPBIN -symbols -headers" |
b0322a85 CE |
5732 | ;; |
5733 | *) | |
5734 | DUMPBIN=: | |
5735 | ;; | |
5736 | esac | |
5737 | fi | |
8d138742 | 5738 | |
d50284c4 CE |
5739 | if test : != "$DUMPBIN"; then |
5740 | NM=$DUMPBIN | |
8d138742 CE |
5741 | fi |
5742 | fi | |
5743 | test -z "$NM" && NM=nm | |
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | ||
b0322a85 | 5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 5751 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 5752 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
5753 | $as_echo_n "(cached) " >&6 |
5754 | else | |
5755 | lt_cv_nm_interface="BSD nm" | |
5756 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 5757 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
5758 | (eval "$ac_compile" 2>conftest.err) |
5759 | cat conftest.err >&5 | |
b0322a85 | 5760 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
5761 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5762 | cat conftest.err >&5 | |
b0322a85 | 5763 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
5764 | cat conftest.out >&5 |
5765 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5766 | lt_cv_nm_interface="MS dumpbin" | |
5767 | fi | |
5768 | rm -f conftest* | |
5769 | fi | |
b0322a85 | 5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 CE |
5771 | $as_echo "$lt_cv_nm_interface" >&6; } |
5772 | ||
b0322a85 | 5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 CE |
5774 | $as_echo_n "checking whether ln -s works... " >&6; } |
5775 | LN_S=$as_ln_s | |
5776 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
5778 | $as_echo "yes" >&6; } |
5779 | else | |
b0322a85 | 5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 CE |
5781 | $as_echo "no, using $LN_S" >&6; } |
5782 | fi | |
5783 | ||
5784 | # find the maximum length of command line arguments | |
b0322a85 | 5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 5786 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 5787 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
5788 | $as_echo_n "(cached) " >&6 |
5789 | else | |
5790 | i=0 | |
d50284c4 | 5791 | teststring=ABCD |
8d138742 CE |
5792 | |
5793 | case $build_os in | |
5794 | msdosdjgpp*) | |
5795 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5796 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5797 | # during glob expansion). Even if it were fixed, the result of this | |
5798 | # check would be larger than it should be. | |
5799 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5800 | ;; | |
5801 | ||
5802 | gnu*) | |
5803 | # Under GNU Hurd, this test is not required because there is | |
d9898ee8 | 5804 | # no limit to the length of command line arguments. |
5805 | # Libtool will interpret -1 as no limit whatsoever | |
5806 | lt_cv_sys_max_cmd_len=-1; | |
5807 | ;; | |
5808 | ||
8d138742 | 5809 | cygwin* | mingw* | cegcc*) |
d9898ee8 | 5810 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5811 | # about 5 minutes as the teststring grows exponentially. | |
5812 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5813 | # you end up with a "frozen" computer, even though with patience | |
5814 | # the test eventually succeeds (with a max line length of 256k). | |
5815 | # Instead, let's just punt: use the minimum linelength reported by | |
5816 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5817 | lt_cv_sys_max_cmd_len=8192; | |
5818 | ;; | |
5819 | ||
b0322a85 CE |
5820 | mint*) |
5821 | # On MiNT this can take a long time and run out of memory. | |
5822 | lt_cv_sys_max_cmd_len=8192; | |
5823 | ;; | |
5824 | ||
d9898ee8 | 5825 | amigaos*) |
5826 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5827 | # So we just punt and use a minimum line length of 8192. | |
5828 | lt_cv_sys_max_cmd_len=8192; | |
5829 | ;; | |
5830 | ||
d50284c4 | 5831 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
d9898ee8 | 5832 | # This has been around since 386BSD, at least. Likely further. |
5833 | if test -x /sbin/sysctl; then | |
5834 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5835 | elif test -x /usr/sbin/sysctl; then | |
5836 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5837 | else | |
5838 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5839 | fi | |
5840 | # And add a safety zone | |
5841 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5842 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5843 | ;; | |
5844 | ||
5845 | interix*) | |
5846 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5847 | lt_cv_sys_max_cmd_len=196608 | |
5848 | ;; | |
5849 | ||
b0322a85 CE |
5850 | os2*) |
5851 | # The test takes a long time on OS/2. | |
5852 | lt_cv_sys_max_cmd_len=8192 | |
5853 | ;; | |
5854 | ||
d9898ee8 | 5855 | osf*) |
5856 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5857 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5858 | # nice to cause kernel panics so lets avoid the loop below. | |
5859 | # First set a reasonable default. | |
5860 | lt_cv_sys_max_cmd_len=16384 | |
5861 | # | |
5862 | if test -x /sbin/sysconfig; then | |
5863 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5864 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5865 | esac | |
5866 | fi | |
5867 | ;; | |
5868 | sco3.2v5*) | |
5869 | lt_cv_sys_max_cmd_len=102400 | |
5870 | ;; | |
5871 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5872 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5873 | if test -n "$kargmax"; then | |
8d138742 | 5874 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
d9898ee8 | 5875 | else |
5876 | lt_cv_sys_max_cmd_len=32768 | |
5877 | fi | |
5878 | ;; | |
5879 | *) | |
ac40fd9e | 5880 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
d50284c4 CE |
5881 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
5882 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
ac40fd9e | 5883 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5884 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5885 | else | |
8d138742 CE |
5886 | # Make teststring a little bigger before we do anything with it. |
5887 | # a 1K string should be a reasonable start. | |
d50284c4 | 5888 | for i in 1 2 3 4 5 6 7 8; do |
8d138742 CE |
5889 | teststring=$teststring$teststring |
5890 | done | |
ac40fd9e | 5891 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
8d138742 CE |
5892 | # If test is not a shell built-in, we'll probably end up computing a |
5893 | # maximum length that is only half of the actual maximum length, but | |
5894 | # we can't tell. | |
d50284c4 | 5895 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b0322a85 | 5896 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
d50284c4 | 5897 | test 17 != "$i" # 1/2 MB should be enough |
ac40fd9e | 5898 | do |
5899 | i=`expr $i + 1` | |
5900 | teststring=$teststring$teststring | |
5901 | done | |
8d138742 CE |
5902 | # Only check the string length outside the loop. |
5903 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
ac40fd9e | 5904 | teststring= |
8d138742 CE |
5905 | # Add a significant safety factor because C++ compilers can tack on |
5906 | # massive amounts of additional arguments before passing them to the | |
5907 | # linker. It appears as though 1/2 is a usable value. | |
ac40fd9e | 5908 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5909 | fi | |
d9898ee8 | 5910 | ;; |
5911 | esac | |
5912 | ||
5913 | fi | |
5914 | ||
d50284c4 | 5915 | if test -n "$lt_cv_sys_max_cmd_len"; then |
b0322a85 | 5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 | 5917 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 | 5918 | else |
b0322a85 | 5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 5920 | $as_echo "none" >&6; } |
d9898ee8 | 5921 | fi |
8d138742 | 5922 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 5923 | |
5924 | ||
5925 | ||
5926 | ||
ac40fd9e | 5927 | |
d9898ee8 | 5928 | |
8d138742 CE |
5929 | : ${CP="cp -f"} |
5930 | : ${MV="mv -f"} | |
5931 | : ${RM="rm -f"} | |
d9898ee8 | 5932 | |
8d138742 CE |
5933 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5934 | lt_unset=unset | |
5935 | else | |
5936 | lt_unset=false | |
5937 | fi | |
d9898ee8 | 5938 | |
d9898ee8 | 5939 | |
d9898ee8 | 5940 | |
d9898ee8 | 5941 | |
d9898ee8 | 5942 | |
8d138742 CE |
5943 | # test EBCDIC or ASCII |
5944 | case `echo X|tr X '\101'` in | |
5945 | A) # ASCII based system | |
5946 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5947 | lt_SP2NL='tr \040 \012' | |
5948 | lt_NL2SP='tr \015\012 \040\040' | |
5949 | ;; | |
5950 | *) # EBCDIC based system | |
5951 | lt_SP2NL='tr \100 \n' | |
5952 | lt_NL2SP='tr \r\n \100\100' | |
5953 | ;; | |
5954 | esac | |
d9898ee8 | 5955 | |
d9898ee8 | 5956 | |
d9898ee8 | 5957 | |
d9898ee8 | 5958 | |
d9898ee8 | 5959 | |
d9898ee8 | 5960 | |
d9898ee8 | 5961 | |
d9898ee8 | 5962 | |
d9898ee8 | 5963 | |
b0322a85 CE |
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5965 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5966 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5967 | $as_echo_n "(cached) " >&6 | |
5968 | else | |
5969 | case $host in | |
5970 | *-*-mingw* ) | |
5971 | case $build in | |
5972 | *-*-mingw* ) # actually msys | |
5973 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5974 | ;; | |
5975 | *-*-cygwin* ) | |
5976 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5977 | ;; | |
5978 | * ) # otherwise, assume *nix | |
5979 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5980 | ;; | |
5981 | esac | |
5982 | ;; | |
5983 | *-*-cygwin* ) | |
5984 | case $build in | |
5985 | *-*-mingw* ) # actually msys | |
5986 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5987 | ;; | |
5988 | *-*-cygwin* ) | |
5989 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5990 | ;; | |
5991 | * ) # otherwise, assume *nix | |
5992 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5993 | ;; | |
5994 | esac | |
5995 | ;; | |
5996 | * ) # unhandled hosts (and "normal" native builds) | |
5997 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5998 | ;; | |
5999 | esac | |
6000 | ||
6001 | fi | |
6002 | ||
6003 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6005 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6006 | ||
6007 | ||
6008 | ||
6009 | ||
6010 | ||
6011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6012 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6013 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6014 | $as_echo_n "(cached) " >&6 | |
6015 | else | |
6016 | #assume ordinary cross tools, or native build. | |
6017 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6018 | case $host in | |
6019 | *-*-mingw* ) | |
6020 | case $build in | |
6021 | *-*-mingw* ) # actually msys | |
6022 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6023 | ;; | |
6024 | esac | |
6025 | ;; | |
6026 | esac | |
6027 | ||
6028 | fi | |
6029 | ||
6030 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6032 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6033 | ||
6034 | ||
6035 | ||
6036 | ||
6037 | ||
6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 6039 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 6040 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 | 6041 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6042 | else |
8d138742 | 6043 | lt_cv_ld_reload_flag='-r' |
d9898ee8 | 6044 | fi |
b0322a85 | 6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
6046 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
6047 | reload_flag=$lt_cv_ld_reload_flag | |
6048 | case $reload_flag in | |
6049 | "" | " "*) ;; | |
6050 | *) reload_flag=" $reload_flag" ;; | |
6051 | esac | |
6052 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
d9898ee8 | 6053 | case $host_os in |
b0322a85 | 6054 | cygwin* | mingw* | pw32* | cegcc*) |
d50284c4 | 6055 | if test yes != "$GCC"; then |
b0322a85 CE |
6056 | reload_cmds=false |
6057 | fi | |
6058 | ;; | |
8d138742 | 6059 | darwin*) |
d50284c4 CE |
6060 | if test yes = "$GCC"; then |
6061 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
8d138742 CE |
6062 | else |
6063 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6064 | fi | |
6065 | ;; | |
d9898ee8 | 6066 | esac |
6067 | ||
d9898ee8 | 6068 | |
d9898ee8 | 6069 | |
d9898ee8 | 6070 | |
d9898ee8 | 6071 | |
d9898ee8 | 6072 | |
d9898ee8 | 6073 | |
8d138742 | 6074 | |
d9898ee8 | 6075 | |
6076 | if test -n "$ac_tool_prefix"; then | |
8d138742 CE |
6077 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
6078 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6080 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6081 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 6082 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6083 | else |
8d138742 CE |
6084 | if test -n "$OBJDUMP"; then |
6085 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 6086 | else |
6087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6088 | for as_dir in $PATH | |
6089 | do | |
6090 | IFS=$as_save_IFS | |
6091 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6092 | for ac_exec_ext in '' $ac_executable_extensions; do |
6093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6094 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 6095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6096 | break 2 |
6097 | fi | |
6098 | done | |
b0322a85 | 6099 | done |
dd184caf | 6100 | IFS=$as_save_IFS |
d9898ee8 | 6101 | |
6102 | fi | |
6103 | fi | |
8d138742 CE |
6104 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6105 | if test -n "$OBJDUMP"; then | |
b0322a85 | 6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 | 6107 | $as_echo "$OBJDUMP" >&6; } |
d9898ee8 | 6108 | else |
b0322a85 | 6109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6110 | $as_echo "no" >&6; } |
d9898ee8 | 6111 | fi |
6112 | ||
dd184caf | 6113 | |
d9898ee8 | 6114 | fi |
8d138742 CE |
6115 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6116 | ac_ct_OBJDUMP=$OBJDUMP | |
6117 | # Extract the first word of "objdump", so it can be a program name with args. | |
6118 | set dummy objdump; ac_word=$2 | |
b0322a85 | 6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6120 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6121 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 | 6122 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6123 | else |
8d138742 CE |
6124 | if test -n "$ac_ct_OBJDUMP"; then |
6125 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
d9898ee8 | 6126 | else |
6127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6128 | for as_dir in $PATH | |
6129 | do | |
6130 | IFS=$as_save_IFS | |
6131 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6132 | for ac_exec_ext in '' $ac_executable_extensions; do |
6133 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6134 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 6135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6136 | break 2 |
6137 | fi | |
6138 | done | |
b0322a85 | 6139 | done |
dd184caf | 6140 | IFS=$as_save_IFS |
d9898ee8 | 6141 | |
d9898ee8 | 6142 | fi |
6143 | fi | |
8d138742 CE |
6144 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6145 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 | 6147 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
d9898ee8 | 6148 | else |
b0322a85 | 6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6150 | $as_echo "no" >&6; } |
d9898ee8 | 6151 | fi |
6152 | ||
8d138742 CE |
6153 | if test "x$ac_ct_OBJDUMP" = x; then |
6154 | OBJDUMP="false" | |
dd184caf | 6155 | else |
6156 | case $cross_compiling:$ac_tool_warned in | |
6157 | yes:) | |
b0322a85 | 6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6159 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6160 | ac_tool_warned=yes ;; |
6161 | esac | |
8d138742 | 6162 | OBJDUMP=$ac_ct_OBJDUMP |
dd184caf | 6163 | fi |
d9898ee8 | 6164 | else |
8d138742 | 6165 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 6166 | fi |
6167 | ||
8d138742 | 6168 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 6169 | |
d9898ee8 | 6170 | |
dd184caf | 6171 | |
d9898ee8 | 6172 | |
8d138742 CE |
6173 | |
6174 | ||
6175 | ||
6176 | ||
6177 | ||
b0322a85 | 6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 6179 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 6180 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 6181 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6182 | else |
8d138742 CE |
6183 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6184 | lt_cv_file_magic_test_file= | |
6185 | lt_cv_deplibs_check_method='unknown' | |
6186 | # Need to set the preceding variable on all platforms that support | |
6187 | # interlibrary dependencies. | |
6188 | # 'none' -- dependencies not supported. | |
d50284c4 | 6189 | # 'unknown' -- same as none, but documents that we really don't know. |
8d138742 CE |
6190 | # 'pass_all' -- all dependencies passed with no checks. |
6191 | # 'test_compile' -- check by making test program. | |
6192 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
d50284c4 CE |
6193 | # that responds to the $file_magic_cmd with a given extended regex. |
6194 | # If you have 'file' or equivalent on your system and you're not sure | |
6195 | # whether 'pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 6196 | |
8d138742 CE |
6197 | case $host_os in |
6198 | aix[4-9]*) | |
6199 | lt_cv_deplibs_check_method=pass_all | |
6200 | ;; | |
6201 | ||
6202 | beos*) | |
6203 | lt_cv_deplibs_check_method=pass_all | |
6204 | ;; | |
6205 | ||
6206 | bsdi[45]*) | |
6207 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6208 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6209 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6210 | ;; | |
6211 | ||
6212 | cygwin*) | |
6213 | # func_win32_libid is a shell function defined in ltmain.sh | |
6214 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6215 | lt_cv_file_magic_cmd='func_win32_libid' | |
6216 | ;; | |
6217 | ||
6218 | mingw* | pw32*) | |
6219 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6220 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6221 | # unless we find 'file', for example because we are cross-compiling. | |
d50284c4 | 6222 | if ( file / ) >/dev/null 2>&1; then |
8d138742 CE |
6223 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6224 | lt_cv_file_magic_cmd='func_win32_libid' | |
dd184caf | 6225 | else |
b0322a85 CE |
6226 | # Keep this pattern in sync with the one in func_win32_libid. |
6227 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 | 6228 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
dd184caf | 6229 | fi |
8d138742 CE |
6230 | ;; |
6231 | ||
b0322a85 | 6232 | cegcc*) |
8d138742 CE |
6233 | # use the weaker test based on 'objdump'. See mingw*. |
6234 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6235 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6236 | ;; | |
6237 | ||
6238 | darwin* | rhapsody*) | |
6239 | lt_cv_deplibs_check_method=pass_all | |
6240 | ;; | |
6241 | ||
6242 | freebsd* | dragonfly*) | |
6243 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6244 | case $host_cpu in | |
6245 | i*86 ) | |
6246 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6247 | # Let's accept both of them until this is cleared up. | |
6248 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6249 | lt_cv_file_magic_cmd=/usr/bin/file | |
6250 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6251 | ;; | |
6252 | esac | |
6253 | else | |
6254 | lt_cv_deplibs_check_method=pass_all | |
6255 | fi | |
6256 | ;; | |
6257 | ||
b0322a85 CE |
6258 | haiku*) |
6259 | lt_cv_deplibs_check_method=pass_all | |
6260 | ;; | |
6261 | ||
8d138742 CE |
6262 | hpux10.20* | hpux11*) |
6263 | lt_cv_file_magic_cmd=/usr/bin/file | |
6264 | case $host_cpu in | |
6265 | ia64*) | |
6266 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6267 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6268 | ;; | |
6269 | hppa*64*) | |
b0322a85 | 6270 | 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 |
6271 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6272 | ;; | |
6273 | *) | |
b0322a85 | 6274 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
6275 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6276 | ;; | |
6277 | esac | |
6278 | ;; | |
6279 | ||
6280 | interix[3-9]*) | |
6281 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6282 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6283 | ;; | |
6284 | ||
6285 | irix5* | irix6* | nonstopux*) | |
6286 | case $LD in | |
6287 | *-32|*"-32 ") libmagic=32-bit;; | |
6288 | *-n32|*"-n32 ") libmagic=N32;; | |
6289 | *-64|*"-64 ") libmagic=64-bit;; | |
6290 | *) libmagic=never-match;; | |
6291 | esac | |
6292 | lt_cv_deplibs_check_method=pass_all | |
6293 | ;; | |
6294 | ||
b0322a85 | 6295 | # This must be glibc/ELF. |
d50284c4 | 6296 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 CE |
6297 | lt_cv_deplibs_check_method=pass_all |
6298 | ;; | |
6299 | ||
6300 | netbsd*) | |
6301 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6302 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6303 | else | |
6304 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6305 | fi | |
6306 | ;; | |
6307 | ||
6308 | newos6*) | |
6309 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6310 | lt_cv_file_magic_cmd=/usr/bin/file | |
6311 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6312 | ;; | |
6313 | ||
6314 | *nto* | *qnx*) | |
6315 | lt_cv_deplibs_check_method=pass_all | |
6316 | ;; | |
6317 | ||
d50284c4 CE |
6318 | openbsd* | bitrig*) |
6319 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
8d138742 CE |
6320 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
6321 | else | |
6322 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6323 | fi | |
6324 | ;; | |
6325 | ||
6326 | osf3* | osf4* | osf5*) | |
6327 | lt_cv_deplibs_check_method=pass_all | |
6328 | ;; | |
6329 | ||
6330 | rdos*) | |
6331 | lt_cv_deplibs_check_method=pass_all | |
6332 | ;; | |
6333 | ||
6334 | solaris*) | |
6335 | lt_cv_deplibs_check_method=pass_all | |
6336 | ;; | |
6337 | ||
6338 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6339 | lt_cv_deplibs_check_method=pass_all | |
6340 | ;; | |
6341 | ||
6342 | sysv4 | sysv4.3*) | |
6343 | case $host_vendor in | |
6344 | motorola) | |
6345 | 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]' | |
6346 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6347 | ;; | |
6348 | ncr) | |
6349 | lt_cv_deplibs_check_method=pass_all | |
6350 | ;; | |
6351 | sequent) | |
6352 | lt_cv_file_magic_cmd='/bin/file' | |
6353 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6354 | ;; | |
6355 | sni) | |
6356 | lt_cv_file_magic_cmd='/bin/file' | |
6357 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6358 | lt_cv_file_magic_test_file=/lib/libc.so | |
6359 | ;; | |
6360 | siemens) | |
6361 | lt_cv_deplibs_check_method=pass_all | |
6362 | ;; | |
6363 | pc) | |
6364 | lt_cv_deplibs_check_method=pass_all | |
6365 | ;; | |
6366 | esac | |
6367 | ;; | |
6368 | ||
6369 | tpf*) | |
6370 | lt_cv_deplibs_check_method=pass_all | |
6371 | ;; | |
d50284c4 CE |
6372 | os2*) |
6373 | lt_cv_deplibs_check_method=pass_all | |
6374 | ;; | |
8d138742 CE |
6375 | esac |
6376 | ||
d9898ee8 | 6377 | fi |
b0322a85 | 6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
8d138742 | 6379 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
b0322a85 CE |
6380 | |
6381 | file_magic_glob= | |
6382 | want_nocaseglob=no | |
6383 | if test "$build" = "$host"; then | |
6384 | case $host_os in | |
6385 | mingw* | pw32*) | |
6386 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6387 | want_nocaseglob=yes | |
6388 | else | |
6389 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6390 | fi | |
6391 | ;; | |
6392 | esac | |
6393 | fi | |
6394 | ||
8d138742 CE |
6395 | file_magic_cmd=$lt_cv_file_magic_cmd |
6396 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6397 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6398 | ||
6399 | ||
6400 | ||
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
d9898ee8 | 6409 | |
b0322a85 CE |
6410 | |
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | if test -n "$ac_tool_prefix"; then | |
6421 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6422 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6424 | $as_echo_n "checking for $ac_word... " >&6; } | |
6425 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6426 | $as_echo_n "(cached) " >&6 | |
6427 | else | |
6428 | if test -n "$DLLTOOL"; then | |
6429 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6430 | else | |
6431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6432 | for as_dir in $PATH | |
6433 | do | |
6434 | IFS=$as_save_IFS | |
6435 | test -z "$as_dir" && as_dir=. | |
6436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6438 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6440 | break 2 | |
6441 | fi | |
6442 | done | |
6443 | done | |
6444 | IFS=$as_save_IFS | |
6445 | ||
6446 | fi | |
6447 | fi | |
6448 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6449 | if test -n "$DLLTOOL"; then | |
6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6451 | $as_echo "$DLLTOOL" >&6; } | |
6452 | else | |
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6454 | $as_echo "no" >&6; } | |
6455 | fi | |
6456 | ||
6457 | ||
6458 | fi | |
6459 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6460 | ac_ct_DLLTOOL=$DLLTOOL | |
6461 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6462 | set dummy dlltool; ac_word=$2 | |
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6464 | $as_echo_n "checking for $ac_word... " >&6; } | |
6465 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6466 | $as_echo_n "(cached) " >&6 | |
6467 | else | |
6468 | if test -n "$ac_ct_DLLTOOL"; then | |
6469 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6470 | else | |
6471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6472 | for as_dir in $PATH | |
6473 | do | |
6474 | IFS=$as_save_IFS | |
6475 | test -z "$as_dir" && as_dir=. | |
6476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6478 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6480 | break 2 | |
6481 | fi | |
6482 | done | |
6483 | done | |
6484 | IFS=$as_save_IFS | |
6485 | ||
6486 | fi | |
6487 | fi | |
6488 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
6489 | if test -n "$ac_ct_DLLTOOL"; then | |
6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6491 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
6492 | else | |
6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6494 | $as_echo "no" >&6; } | |
6495 | fi | |
6496 | ||
6497 | if test "x$ac_ct_DLLTOOL" = x; then | |
6498 | DLLTOOL="false" | |
6499 | else | |
6500 | case $cross_compiling:$ac_tool_warned in | |
6501 | yes:) | |
6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6503 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6504 | ac_tool_warned=yes ;; | |
6505 | esac | |
6506 | DLLTOOL=$ac_ct_DLLTOOL | |
6507 | fi | |
6508 | else | |
6509 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
6510 | fi | |
6511 | ||
6512 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | ||
6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6524 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6525 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6526 | $as_echo_n "(cached) " >&6 | |
6527 | else | |
6528 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6529 | ||
6530 | case $host_os in | |
6531 | cygwin* | mingw* | pw32* | cegcc*) | |
d50284c4 CE |
6532 | # two different shell functions defined in ltmain.sh; |
6533 | # decide which one to use based on capabilities of $DLLTOOL | |
b0322a85 CE |
6534 | case `$DLLTOOL --help 2>&1` in |
6535 | *--identify-strict*) | |
6536 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6537 | ;; | |
6538 | *) | |
6539 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6540 | ;; | |
6541 | esac | |
6542 | ;; | |
6543 | *) | |
6544 | # fallback: assume linklib IS sharedlib | |
d50284c4 | 6545 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
b0322a85 CE |
6546 | ;; |
6547 | esac | |
6548 | ||
6549 | fi | |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6551 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6552 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6553 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
d9898ee8 | 6561 | if test -n "$ac_tool_prefix"; then |
b0322a85 CE |
6562 | for ac_prog in ar |
6563 | do | |
6564 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6565 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 6567 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6568 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 6569 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6570 | else |
8d138742 CE |
6571 | if test -n "$AR"; then |
6572 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 6573 | else |
6574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6575 | for as_dir in $PATH | |
6576 | do | |
6577 | IFS=$as_save_IFS | |
6578 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6579 | for ac_exec_ext in '' $ac_executable_extensions; do |
6580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6581 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6583 | break 2 |
6584 | fi | |
6585 | done | |
b0322a85 | 6586 | done |
dd184caf | 6587 | IFS=$as_save_IFS |
d9898ee8 | 6588 | |
6589 | fi | |
6590 | fi | |
8d138742 CE |
6591 | AR=$ac_cv_prog_AR |
6592 | if test -n "$AR"; then | |
b0322a85 | 6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 | 6594 | $as_echo "$AR" >&6; } |
d9898ee8 | 6595 | else |
b0322a85 | 6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6597 | $as_echo "no" >&6; } |
d9898ee8 | 6598 | fi |
6599 | ||
dd184caf | 6600 | |
b0322a85 CE |
6601 | test -n "$AR" && break |
6602 | done | |
d9898ee8 | 6603 | fi |
b0322a85 | 6604 | if test -z "$AR"; then |
8d138742 | 6605 | ac_ct_AR=$AR |
b0322a85 CE |
6606 | for ac_prog in ar |
6607 | do | |
6608 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6609 | set dummy $ac_prog; ac_word=$2 | |
6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 6611 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6612 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 | 6613 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6614 | else |
8d138742 CE |
6615 | if test -n "$ac_ct_AR"; then |
6616 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
d9898ee8 | 6617 | else |
6618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6619 | for as_dir in $PATH | |
6620 | do | |
6621 | IFS=$as_save_IFS | |
6622 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6623 | for ac_exec_ext in '' $ac_executable_extensions; do |
6624 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6625 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6627 | break 2 |
6628 | fi | |
6629 | done | |
b0322a85 | 6630 | done |
dd184caf | 6631 | IFS=$as_save_IFS |
d9898ee8 | 6632 | |
d9898ee8 | 6633 | fi |
6634 | fi | |
8d138742 CE |
6635 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6636 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 | 6638 | $as_echo "$ac_ct_AR" >&6; } |
d9898ee8 | 6639 | else |
b0322a85 | 6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6641 | $as_echo "no" >&6; } |
d9898ee8 | 6642 | fi |
6643 | ||
b0322a85 CE |
6644 | |
6645 | test -n "$ac_ct_AR" && break | |
6646 | done | |
6647 | ||
8d138742 CE |
6648 | if test "x$ac_ct_AR" = x; then |
6649 | AR="false" | |
dd184caf | 6650 | else |
6651 | case $cross_compiling:$ac_tool_warned in | |
6652 | yes:) | |
b0322a85 | 6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6654 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6655 | ac_tool_warned=yes ;; |
6656 | esac | |
8d138742 | 6657 | AR=$ac_ct_AR |
dd184caf | 6658 | fi |
b0322a85 CE |
6659 | fi |
6660 | ||
6661 | : ${AR=ar} | |
6662 | : ${AR_FLAGS=cru} | |
6663 | ||
6664 | ||
6665 | ||
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | ||
6671 | ||
6672 | ||
6673 | ||
6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6675 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6676 | if ${lt_cv_ar_at_file+:} false; then : | |
6677 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6678 | else |
b0322a85 CE |
6679 | lt_cv_ar_at_file=no |
6680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6681 | /* end confdefs.h. */ | |
d9898ee8 | 6682 | |
b0322a85 CE |
6683 | int |
6684 | main () | |
6685 | { | |
d9898ee8 | 6686 | |
b0322a85 CE |
6687 | ; |
6688 | return 0; | |
6689 | } | |
6690 | _ACEOF | |
6691 | if ac_fn_c_try_compile "$LINENO"; then : | |
6692 | echo conftest.$ac_objext > conftest.lst | |
6693 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6694 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6695 | (eval $lt_ar_try) 2>&5 | |
6696 | ac_status=$? | |
6697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6698 | test $ac_status = 0; } | |
d50284c4 | 6699 | if test 0 -eq "$ac_status"; then |
b0322a85 CE |
6700 | # Ensure the archiver fails upon bogus file names. |
6701 | rm -f conftest.$ac_objext libconftest.a | |
6702 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6703 | (eval $lt_ar_try) 2>&5 | |
6704 | ac_status=$? | |
6705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6706 | test $ac_status = 0; } | |
d50284c4 | 6707 | if test 0 -ne "$ac_status"; then |
b0322a85 CE |
6708 | lt_cv_ar_at_file=@ |
6709 | fi | |
6710 | fi | |
6711 | rm -f conftest.* libconftest.a | |
d9898ee8 | 6712 | |
b0322a85 CE |
6713 | fi |
6714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 6715 | |
b0322a85 CE |
6716 | fi |
6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6718 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
d9898ee8 | 6719 | |
d50284c4 | 6720 | if test no = "$lt_cv_ar_at_file"; then |
b0322a85 CE |
6721 | archiver_list_spec= |
6722 | else | |
6723 | archiver_list_spec=$lt_cv_ar_at_file | |
6724 | fi | |
d9898ee8 | 6725 | |
d9898ee8 | 6726 | |
d9898ee8 | 6727 | |
d9898ee8 | 6728 | |
8d138742 CE |
6729 | |
6730 | ||
6731 | ||
6732 | if test -n "$ac_tool_prefix"; then | |
6733 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6734 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6736 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6737 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 | 6738 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6739 | else |
8d138742 CE |
6740 | if test -n "$STRIP"; then |
6741 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6742 | else | |
6743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6744 | for as_dir in $PATH | |
6745 | do | |
6746 | IFS=$as_save_IFS | |
6747 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6748 | for ac_exec_ext in '' $ac_executable_extensions; do |
6749 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6750 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 6751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6752 | break 2 |
6753 | fi | |
6754 | done | |
b0322a85 | 6755 | done |
8d138742 | 6756 | IFS=$as_save_IFS |
d9898ee8 | 6757 | |
8d138742 CE |
6758 | fi |
6759 | fi | |
6760 | STRIP=$ac_cv_prog_STRIP | |
6761 | if test -n "$STRIP"; then | |
b0322a85 | 6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 | 6763 | $as_echo "$STRIP" >&6; } |
d9898ee8 | 6764 | else |
b0322a85 | 6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6766 | $as_echo "no" >&6; } |
6767 | fi | |
d9898ee8 | 6768 | |
d9898ee8 | 6769 | |
d9898ee8 | 6770 | fi |
8d138742 CE |
6771 | if test -z "$ac_cv_prog_STRIP"; then |
6772 | ac_ct_STRIP=$STRIP | |
6773 | # Extract the first word of "strip", so it can be a program name with args. | |
6774 | set dummy strip; ac_word=$2 | |
b0322a85 | 6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6776 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6777 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
6778 | $as_echo_n "(cached) " >&6 |
6779 | else | |
6780 | if test -n "$ac_ct_STRIP"; then | |
6781 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6782 | else | |
6783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6784 | for as_dir in $PATH | |
6785 | do | |
6786 | IFS=$as_save_IFS | |
6787 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6788 | for ac_exec_ext in '' $ac_executable_extensions; do |
6789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6790 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 6791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6792 | break 2 |
6793 | fi | |
6794 | done | |
b0322a85 | 6795 | done |
8d138742 | 6796 | IFS=$as_save_IFS |
d9898ee8 | 6797 | |
8d138742 CE |
6798 | fi |
6799 | fi | |
6800 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6801 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 6802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 | 6803 | $as_echo "$ac_ct_STRIP" >&6; } |
d9898ee8 | 6804 | else |
b0322a85 | 6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6806 | $as_echo "no" >&6; } |
d9898ee8 | 6807 | fi |
6808 | ||
8d138742 CE |
6809 | if test "x$ac_ct_STRIP" = x; then |
6810 | STRIP=":" | |
d9898ee8 | 6811 | else |
8d138742 CE |
6812 | case $cross_compiling:$ac_tool_warned in |
6813 | yes:) | |
b0322a85 | 6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6815 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6816 | ac_tool_warned=yes ;; | |
6817 | esac | |
6818 | STRIP=$ac_ct_STRIP | |
d9898ee8 | 6819 | fi |
8d138742 CE |
6820 | else |
6821 | STRIP="$ac_cv_prog_STRIP" | |
d9898ee8 | 6822 | fi |
6823 | ||
8d138742 | 6824 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 6825 | |
d9898ee8 | 6826 | |
d9898ee8 | 6827 | |
d9898ee8 | 6828 | |
6829 | ||
8d138742 CE |
6830 | |
6831 | if test -n "$ac_tool_prefix"; then | |
6832 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6833 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 6834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6835 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6836 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 6837 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6838 | else |
8d138742 CE |
6839 | if test -n "$RANLIB"; then |
6840 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6841 | else | |
6842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6843 | for as_dir in $PATH | |
6844 | do | |
6845 | IFS=$as_save_IFS | |
6846 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6847 | for ac_exec_ext in '' $ac_executable_extensions; do |
6848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6849 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 6850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6851 | break 2 |
6852 | fi | |
6853 | done | |
b0322a85 | 6854 | done |
8d138742 CE |
6855 | IFS=$as_save_IFS |
6856 | ||
6857 | fi | |
6858 | fi | |
6859 | RANLIB=$ac_cv_prog_RANLIB | |
6860 | if test -n "$RANLIB"; then | |
b0322a85 | 6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 CE |
6862 | $as_echo "$RANLIB" >&6; } |
6863 | else | |
b0322a85 | 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6865 | $as_echo "no" >&6; } |
dd184caf | 6866 | fi |
6867 | ||
d9898ee8 | 6868 | |
8d138742 CE |
6869 | fi |
6870 | if test -z "$ac_cv_prog_RANLIB"; then | |
6871 | ac_ct_RANLIB=$RANLIB | |
6872 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6873 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6875 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6876 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 CE |
6877 | $as_echo_n "(cached) " >&6 |
6878 | else | |
6879 | if test -n "$ac_ct_RANLIB"; then | |
6880 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6881 | else | |
6882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6883 | for as_dir in $PATH | |
6884 | do | |
6885 | IFS=$as_save_IFS | |
6886 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6887 | for ac_exec_ext in '' $ac_executable_extensions; do |
6888 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6889 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 6890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6891 | break 2 |
6892 | fi | |
6893 | done | |
b0322a85 | 6894 | done |
8d138742 | 6895 | IFS=$as_save_IFS |
d9898ee8 | 6896 | |
8d138742 CE |
6897 | fi |
6898 | fi | |
6899 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6900 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 6901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
6902 | $as_echo "$ac_ct_RANLIB" >&6; } |
6903 | else | |
b0322a85 | 6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6905 | $as_echo "no" >&6; } |
6906 | fi | |
d9898ee8 | 6907 | |
8d138742 CE |
6908 | if test "x$ac_ct_RANLIB" = x; then |
6909 | RANLIB=":" | |
6910 | else | |
6911 | case $cross_compiling:$ac_tool_warned in | |
6912 | yes:) | |
b0322a85 | 6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6915 | ac_tool_warned=yes ;; | |
6916 | esac | |
6917 | RANLIB=$ac_ct_RANLIB | |
6918 | fi | |
6919 | else | |
6920 | RANLIB="$ac_cv_prog_RANLIB" | |
6921 | fi | |
d9898ee8 | 6922 | |
8d138742 | 6923 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 6924 | |
d9898ee8 | 6925 | |
d9898ee8 | 6926 | |
6927 | ||
d9898ee8 | 6928 | |
d9898ee8 | 6929 | |
8d138742 CE |
6930 | # Determine commands to create old-style static archives. |
6931 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6932 | old_postinstall_cmds='chmod 644 $oldlib' | |
6933 | old_postuninstall_cmds= | |
d9898ee8 | 6934 | |
8d138742 CE |
6935 | if test -n "$RANLIB"; then |
6936 | case $host_os in | |
d50284c4 | 6937 | bitrig* | openbsd*) |
b0322a85 | 6938 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
6939 | ;; |
6940 | *) | |
b0322a85 | 6941 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
6942 | ;; |
6943 | esac | |
b0322a85 | 6944 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
8d138742 | 6945 | fi |
d9898ee8 | 6946 | |
b0322a85 CE |
6947 | case $host_os in |
6948 | darwin*) | |
6949 | lock_old_archive_extraction=yes ;; | |
6950 | *) | |
6951 | lock_old_archive_extraction=no ;; | |
6952 | esac | |
6953 | ||
6954 | ||
6955 | ||
6956 | ||
6957 | ||
6958 | ||
d9898ee8 | 6959 | |
d9898ee8 | 6960 | |
6961 | ||
6962 | ||
d9898ee8 | 6963 | |
d9898ee8 | 6964 | |
6965 | ||
d9898ee8 | 6966 | |
d9898ee8 | 6967 | |
d9898ee8 | 6968 | |
d9898ee8 | 6969 | |
d9898ee8 | 6970 | |
d9898ee8 | 6971 | |
d9898ee8 | 6972 | |
d9898ee8 | 6973 | |
d9898ee8 | 6974 | |
d9898ee8 | 6975 | |
d9898ee8 | 6976 | |
d9898ee8 | 6977 | |
d9898ee8 | 6978 | |
d9898ee8 | 6979 | |
d9898ee8 | 6980 | |
d9898ee8 | 6981 | |
d9898ee8 | 6982 | |
d9898ee8 | 6983 | |
d9898ee8 | 6984 | |
d9898ee8 | 6985 | |
d9898ee8 | 6986 | |
d9898ee8 | 6987 | |
d9898ee8 | 6988 | |
ac40fd9e | 6989 | |
d9898ee8 | 6990 | |
d9898ee8 | 6991 | |
8d138742 CE |
6992 | # If no C compiler was specified, use CC. |
6993 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 6994 | |
8d138742 CE |
6995 | # If no C compiler flags were specified, use CFLAGS. |
6996 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 6997 | |
8d138742 CE |
6998 | # Allow CC to be a program name with arguments. |
6999 | compiler=$CC | |
d9898ee8 | 7000 | |
d9898ee8 | 7001 | |
8d138742 | 7002 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
b0322a85 | 7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 7004 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 7005 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 CE |
7006 | $as_echo_n "(cached) " >&6 |
7007 | else | |
d9898ee8 | 7008 | |
8d138742 CE |
7009 | # These are sane defaults that work on at least a few old systems. |
7010 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d9898ee8 | 7011 | |
8d138742 CE |
7012 | # Character class describing NM global symbol codes. |
7013 | symcode='[BCDEGRST]' | |
d9898ee8 | 7014 | |
8d138742 CE |
7015 | # Regexp to match symbols that can be accessed directly from C. |
7016 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d9898ee8 | 7017 | |
8d138742 CE |
7018 | # Define system-specific variables. |
7019 | case $host_os in | |
7020 | aix*) | |
7021 | symcode='[BCDT]' | |
7022 | ;; | |
7023 | cygwin* | mingw* | pw32* | cegcc*) | |
7024 | symcode='[ABCDGISTW]' | |
7025 | ;; | |
7026 | hpux*) | |
d50284c4 | 7027 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
7028 | symcode='[ABCDEGRST]' |
7029 | fi | |
7030 | ;; | |
7031 | irix* | nonstopux*) | |
7032 | symcode='[BCDEGRST]' | |
7033 | ;; | |
7034 | osf*) | |
7035 | symcode='[BCDEGQRST]' | |
7036 | ;; | |
7037 | solaris*) | |
7038 | symcode='[BDRT]' | |
7039 | ;; | |
7040 | sco3.2v5*) | |
7041 | symcode='[DT]' | |
7042 | ;; | |
7043 | sysv4.2uw2*) | |
7044 | symcode='[DT]' | |
7045 | ;; | |
7046 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7047 | symcode='[ABDT]' | |
7048 | ;; | |
7049 | sysv4) | |
7050 | symcode='[DFNSTU]' | |
7051 | ;; | |
7052 | esac | |
d9898ee8 | 7053 | |
8d138742 CE |
7054 | # If we're using GNU nm, then use its standard symbol codes. |
7055 | case `$NM -V 2>&1` in | |
7056 | *GNU* | *'with BFD'*) | |
7057 | symcode='[ABCDGIRSTW]' ;; | |
7058 | esac | |
d9898ee8 | 7059 | |
d50284c4 CE |
7060 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
7061 | # Gets list of data symbols to import. | |
7062 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
7063 | # Adjust the below global symbol transforms to fixup imported variables. | |
7064 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
7065 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
7066 | lt_c_name_lib_hook="\ | |
7067 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
7068 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
7069 | else | |
7070 | # Disable hooks by default. | |
7071 | lt_cv_sys_global_symbol_to_import= | |
7072 | lt_cdecl_hook= | |
7073 | lt_c_name_hook= | |
7074 | lt_c_name_lib_hook= | |
7075 | fi | |
7076 | ||
8d138742 CE |
7077 | # Transform an extracted symbol line into a proper C declaration. |
7078 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7079 | # so use this general approach. | |
d50284c4 CE |
7080 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
7081 | $lt_cdecl_hook\ | |
7082 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
7083 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 7084 | |
8d138742 | 7085 | # Transform an extracted symbol line into symbol name and symbol address |
d50284c4 CE |
7086 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
7087 | $lt_c_name_hook\ | |
7088 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7089 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
7090 | ||
7091 | # Transform an extracted symbol line into symbol name with lib prefix and | |
7092 | # symbol address. | |
7093 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
7094 | $lt_c_name_lib_hook\ | |
7095 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7096 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
7097 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
8d138742 CE |
7098 | |
7099 | # Handle CRLF in mingw tool chain | |
7100 | opt_cr= | |
7101 | case $build_os in | |
7102 | mingw*) | |
7103 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7104 | ;; | |
d9898ee8 | 7105 | esac |
7106 | ||
8d138742 CE |
7107 | # Try without a prefix underscore, then with it. |
7108 | for ac_symprfx in "" "_"; do | |
d9898ee8 | 7109 | |
8d138742 CE |
7110 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7111 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d9898ee8 | 7112 | |
8d138742 CE |
7113 | # Write the raw and C identifiers. |
7114 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
d50284c4 CE |
7115 | # Fake it for dumpbin and say T for any non-static function, |
7116 | # D for any global variable and I for any imported variable. | |
8d138742 CE |
7117 | # Also find C++ and __fastcall symbols from MSVC++, |
7118 | # which start with @ or ?. | |
7119 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7120 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 7121 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 | 7122 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
d50284c4 CE |
7123 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
7124 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
7125 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
8d138742 CE |
7126 | " \$ 0!~/External *\|/{next};"\ |
7127 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7128 | " {if(hide[section]) next};"\ | |
d50284c4 CE |
7129 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
7130 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
7131 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
7132 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
8d138742 CE |
7133 | " ' prfx=^$ac_symprfx" |
7134 | else | |
7135 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7136 | fi | |
b0322a85 | 7137 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
d9898ee8 | 7138 | |
8d138742 CE |
7139 | # Check to see that the pipe works correctly. |
7140 | pipe_works=no | |
d9898ee8 | 7141 | |
8d138742 CE |
7142 | rm -f conftest* |
7143 | cat > conftest.$ac_ext <<_LT_EOF | |
7144 | #ifdef __cplusplus | |
7145 | extern "C" { | |
7146 | #endif | |
7147 | char nm_test_var; | |
7148 | void nm_test_func(void); | |
7149 | void nm_test_func(void){} | |
7150 | #ifdef __cplusplus | |
7151 | } | |
7152 | #endif | |
7153 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7154 | _LT_EOF | |
d9898ee8 | 7155 | |
b0322a85 | 7156 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
7157 | (eval $ac_compile) 2>&5 |
7158 | ac_status=$? | |
b0322a85 CE |
7159 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7160 | test $ac_status = 0; }; then | |
8d138742 CE |
7161 | # Now try to grab the symbols. |
7162 | nlist=conftest.nm | |
b0322a85 CE |
7163 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7164 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
8d138742 | 7165 | ac_status=$? |
b0322a85 CE |
7166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7167 | test $ac_status = 0; } && test -s "$nlist"; then | |
8d138742 CE |
7168 | # Try sorting and uniquifying the output. |
7169 | if sort "$nlist" | uniq > "$nlist"T; then | |
7170 | mv -f "$nlist"T "$nlist" | |
7171 | else | |
7172 | rm -f "$nlist"T | |
7173 | fi | |
d9898ee8 | 7174 | |
8d138742 CE |
7175 | # Make sure that we snagged all the symbols we need. |
7176 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7177 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7178 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 | 7179 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
d50284c4 CE |
7180 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
7181 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b0322a85 CE |
7182 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
7183 | # define LT_DLSYM_CONST | |
d50284c4 | 7184 | #elif defined __osf__ |
b0322a85 CE |
7185 | /* This system does not cope well with relocations in const data. */ |
7186 | # define LT_DLSYM_CONST | |
7187 | #else | |
7188 | # define LT_DLSYM_CONST const | |
7189 | #endif | |
7190 | ||
8d138742 CE |
7191 | #ifdef __cplusplus |
7192 | extern "C" { | |
7193 | #endif | |
d9898ee8 | 7194 | |
8d138742 CE |
7195 | _LT_EOF |
7196 | # Now generate the symbol file. | |
7197 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 7198 | |
8d138742 CE |
7199 | cat <<_LT_EOF >> conftest.$ac_ext |
7200 | ||
7201 | /* The mapping between symbol names and symbols. */ | |
b0322a85 | 7202 | LT_DLSYM_CONST struct { |
8d138742 CE |
7203 | const char *name; |
7204 | void *address; | |
7205 | } | |
7206 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7207 | { | |
7208 | { "@PROGRAM@", (void *) 0 }, | |
7209 | _LT_EOF | |
d50284c4 | 7210 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
8d138742 CE |
7211 | cat <<\_LT_EOF >> conftest.$ac_ext |
7212 | {0, (void *) 0} | |
7213 | }; | |
7214 | ||
7215 | /* This works around a problem in FreeBSD linker */ | |
7216 | #ifdef FREEBSD_WORKAROUND | |
7217 | static const void *lt_preloaded_setup() { | |
7218 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7219 | } | |
7220 | #endif | |
7221 | ||
7222 | #ifdef __cplusplus | |
7223 | } | |
7224 | #endif | |
7225 | _LT_EOF | |
7226 | # Now try linking the two files. | |
7227 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
7228 | lt_globsym_save_LIBS=$LIBS |
7229 | lt_globsym_save_CFLAGS=$CFLAGS | |
d50284c4 | 7230 | LIBS=conftstm.$ac_objext |
8d138742 | 7231 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
b0322a85 | 7232 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
7233 | (eval $ac_link) 2>&5 |
7234 | ac_status=$? | |
b0322a85 | 7235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 7236 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
8d138742 CE |
7237 | pipe_works=yes |
7238 | fi | |
b0322a85 CE |
7239 | LIBS=$lt_globsym_save_LIBS |
7240 | CFLAGS=$lt_globsym_save_CFLAGS | |
8d138742 CE |
7241 | else |
7242 | echo "cannot find nm_test_func in $nlist" >&5 | |
7243 | fi | |
7244 | else | |
7245 | echo "cannot find nm_test_var in $nlist" >&5 | |
7246 | fi | |
7247 | else | |
7248 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7249 | fi | |
7250 | else | |
7251 | echo "$progname: failed program was:" >&5 | |
7252 | cat conftest.$ac_ext >&5 | |
7253 | fi | |
7254 | rm -rf conftest* conftst* | |
7255 | ||
7256 | # Do not use the global_symbol_pipe unless it works. | |
d50284c4 | 7257 | if test yes = "$pipe_works"; then |
8d138742 CE |
7258 | break |
7259 | else | |
7260 | lt_cv_sys_global_symbol_pipe= | |
d9898ee8 | 7261 | fi |
8d138742 CE |
7262 | done |
7263 | ||
7264 | fi | |
7265 | ||
7266 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7267 | lt_cv_sys_global_symbol_to_cdecl= | |
7268 | fi | |
7269 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
b0322a85 | 7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 7271 | $as_echo "failed" >&6; } |
d9898ee8 | 7272 | else |
b0322a85 | 7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 7274 | $as_echo "ok" >&6; } |
d9898ee8 | 7275 | fi |
7276 | ||
b0322a85 CE |
7277 | # Response file support. |
7278 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7279 | nm_file_list_spec='@' | |
7280 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7281 | nm_file_list_spec='@' | |
7282 | fi | |
7283 | ||
7284 | ||
7285 | ||
7286 | ||
7287 | ||
7288 | ||
7289 | ||
7290 | ||
7291 | ||
7292 | ||
7293 | ||
7294 | ||
7295 | ||
7296 | ||
d9898ee8 | 7297 | |
d9898ee8 | 7298 | |
d50284c4 CE |
7299 | |
7300 | ||
7301 | ||
7302 | ||
7303 | ||
7304 | ||
7305 | ||
7306 | ||
7307 | ||
7308 | ||
d9898ee8 | 7309 | |
d9898ee8 | 7310 | |
d9898ee8 | 7311 | |
d9898ee8 | 7312 | |
d9898ee8 | 7313 | |
d9898ee8 | 7314 | |
d9898ee8 | 7315 | |
d9898ee8 | 7316 | |
d9898ee8 | 7317 | |
d9898ee8 | 7318 | |
d9898ee8 | 7319 | |
b0322a85 CE |
7320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7321 | $as_echo_n "checking for sysroot... " >&6; } | |
d9898ee8 | 7322 | |
b0322a85 CE |
7323 | # Check whether --with-sysroot was given. |
7324 | if test "${with_sysroot+set}" = set; then : | |
7325 | withval=$with_sysroot; | |
7326 | else | |
7327 | with_sysroot=no | |
7328 | fi | |
d9898ee8 | 7329 | |
d9898ee8 | 7330 | |
b0322a85 | 7331 | lt_sysroot= |
d50284c4 | 7332 | case $with_sysroot in #( |
b0322a85 | 7333 | yes) |
d50284c4 | 7334 | if test yes = "$GCC"; then |
b0322a85 CE |
7335 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
7336 | fi | |
7337 | ;; #( | |
7338 | /*) | |
7339 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7340 | ;; #( | |
7341 | no|'') | |
7342 | ;; #( | |
7343 | *) | |
d50284c4 CE |
7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
7345 | $as_echo "$with_sysroot" >&6; } | |
b0322a85 CE |
7346 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
7347 | ;; | |
7348 | esac | |
7349 | ||
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
7351 | $as_echo "${lt_sysroot:-no}" >&6; } | |
d9898ee8 | 7352 | |
d9898ee8 | 7353 | |
d9898ee8 | 7354 | |
d9898ee8 | 7355 | |
d9898ee8 | 7356 | |
d50284c4 CE |
7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
7358 | $as_echo_n "checking for a working dd... " >&6; } | |
7359 | if ${ac_cv_path_lt_DD+:} false; then : | |
7360 | $as_echo_n "(cached) " >&6 | |
7361 | else | |
7362 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7363 | cat conftest.i conftest.i >conftest2.i | |
7364 | : ${lt_DD:=$DD} | |
7365 | if test -z "$lt_DD"; then | |
7366 | ac_path_lt_DD_found=false | |
7367 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7369 | for as_dir in $PATH | |
7370 | do | |
7371 | IFS=$as_save_IFS | |
7372 | test -z "$as_dir" && as_dir=. | |
7373 | for ac_prog in dd; do | |
7374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7375 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
7376 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
7377 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7378 | cmp -s conftest.i conftest.out \ | |
7379 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
7380 | fi | |
7381 | $ac_path_lt_DD_found && break 3 | |
7382 | done | |
7383 | done | |
7384 | done | |
7385 | IFS=$as_save_IFS | |
7386 | if test -z "$ac_cv_path_lt_DD"; then | |
7387 | : | |
7388 | fi | |
7389 | else | |
7390 | ac_cv_path_lt_DD=$lt_DD | |
7391 | fi | |
7392 | ||
7393 | rm -f conftest.i conftest2.i conftest.out | |
7394 | fi | |
7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
7396 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
7397 | ||
7398 | ||
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
7400 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
7401 | if ${lt_cv_truncate_bin+:} false; then : | |
7402 | $as_echo_n "(cached) " >&6 | |
7403 | else | |
7404 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7405 | cat conftest.i conftest.i >conftest2.i | |
7406 | lt_cv_truncate_bin= | |
7407 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7408 | cmp -s conftest.i conftest.out \ | |
7409 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
7410 | fi | |
7411 | rm -f conftest.i conftest2.i conftest.out | |
7412 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
7413 | fi | |
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
7415 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
7416 | ||
7417 | ||
7418 | ||
7419 | ||
7420 | ||
7421 | ||
7422 | ||
7423 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
7424 | func_cc_basename () | |
7425 | { | |
7426 | for cc_temp in $*""; do | |
7427 | case $cc_temp in | |
7428 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7429 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7430 | \-*) ;; | |
7431 | *) break;; | |
7432 | esac | |
7433 | done | |
7434 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7435 | } | |
7436 | ||
8d138742 | 7437 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 7438 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 CE |
7439 | enableval=$enable_libtool_lock; |
7440 | fi | |
d9898ee8 | 7441 | |
d50284c4 | 7442 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
8d138742 CE |
7443 | |
7444 | # Some flags need to be propagated to the compiler or linker for good | |
7445 | # libtool support. | |
7446 | case $host in | |
7447 | ia64-*-hpux*) | |
d50284c4 CE |
7448 | # Find out what ABI is being produced by ac_compile, and set mode |
7449 | # options accordingly. | |
8d138742 | 7450 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 7451 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
7452 | (eval $ac_compile) 2>&5 |
7453 | ac_status=$? | |
b0322a85 CE |
7454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7455 | test $ac_status = 0; }; then | |
8d138742 CE |
7456 | case `/usr/bin/file conftest.$ac_objext` in |
7457 | *ELF-32*) | |
d50284c4 | 7458 | HPUX_IA64_MODE=32 |
d9898ee8 | 7459 | ;; |
8d138742 | 7460 | *ELF-64*) |
d50284c4 | 7461 | HPUX_IA64_MODE=64 |
d9898ee8 | 7462 | ;; |
d9898ee8 | 7463 | esac |
8d138742 CE |
7464 | fi |
7465 | rm -rf conftest* | |
7466 | ;; | |
7467 | *-*-irix6*) | |
d50284c4 CE |
7468 | # Find out what ABI is being produced by ac_compile, and set linker |
7469 | # options accordingly. | |
b0322a85 CE |
7470 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
7471 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
7472 | (eval $ac_compile) 2>&5 |
7473 | ac_status=$? | |
b0322a85 CE |
7474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7475 | test $ac_status = 0; }; then | |
d50284c4 | 7476 | if test yes = "$lt_cv_prog_gnu_ld"; then |
8d138742 CE |
7477 | case `/usr/bin/file conftest.$ac_objext` in |
7478 | *32-bit*) | |
7479 | LD="${LD-ld} -melf32bsmip" | |
7480 | ;; | |
7481 | *N32*) | |
7482 | LD="${LD-ld} -melf32bmipn32" | |
7483 | ;; | |
7484 | *64-bit*) | |
7485 | LD="${LD-ld} -melf64bmip" | |
7486 | ;; | |
7487 | esac | |
7488 | else | |
7489 | case `/usr/bin/file conftest.$ac_objext` in | |
7490 | *32-bit*) | |
7491 | LD="${LD-ld} -32" | |
7492 | ;; | |
7493 | *N32*) | |
7494 | LD="${LD-ld} -n32" | |
7495 | ;; | |
7496 | *64-bit*) | |
7497 | LD="${LD-ld} -64" | |
7498 | ;; | |
7499 | esac | |
d9898ee8 | 7500 | fi |
8d138742 CE |
7501 | fi |
7502 | rm -rf conftest* | |
7503 | ;; | |
d9898ee8 | 7504 | |
d50284c4 CE |
7505 | mips64*-*linux*) |
7506 | # Find out what ABI is being produced by ac_compile, and set linker | |
7507 | # options accordingly. | |
7508 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7509 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7510 | (eval $ac_compile) 2>&5 | |
7511 | ac_status=$? | |
7512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7513 | test $ac_status = 0; }; then | |
7514 | emul=elf | |
7515 | case `/usr/bin/file conftest.$ac_objext` in | |
7516 | *32-bit*) | |
7517 | emul="${emul}32" | |
7518 | ;; | |
7519 | *64-bit*) | |
7520 | emul="${emul}64" | |
7521 | ;; | |
7522 | esac | |
7523 | case `/usr/bin/file conftest.$ac_objext` in | |
7524 | *MSB*) | |
7525 | emul="${emul}btsmip" | |
7526 | ;; | |
7527 | *LSB*) | |
7528 | emul="${emul}ltsmip" | |
7529 | ;; | |
7530 | esac | |
7531 | case `/usr/bin/file conftest.$ac_objext` in | |
7532 | *N32*) | |
7533 | emul="${emul}n32" | |
7534 | ;; | |
7535 | esac | |
7536 | LD="${LD-ld} -m $emul" | |
7537 | fi | |
7538 | rm -rf conftest* | |
7539 | ;; | |
7540 | ||
7541 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8d138742 | 7542 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
d50284c4 CE |
7543 | # Find out what ABI is being produced by ac_compile, and set linker |
7544 | # options accordingly. Note that the listed cases only cover the | |
7545 | # situations where additional linker options are needed (such as when | |
7546 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
7547 | # vice versa); the common cases where no linker options are needed do | |
7548 | # not appear in the list. | |
8d138742 | 7549 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 7550 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
7551 | (eval $ac_compile) 2>&5 |
7552 | ac_status=$? | |
b0322a85 CE |
7553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7554 | test $ac_status = 0; }; then | |
8d138742 CE |
7555 | case `/usr/bin/file conftest.o` in |
7556 | *32-bit*) | |
7557 | case $host in | |
7558 | x86_64-*kfreebsd*-gnu) | |
7559 | LD="${LD-ld} -m elf_i386_fbsd" | |
7560 | ;; | |
7561 | x86_64-*linux*) | |
d50284c4 CE |
7562 | case `/usr/bin/file conftest.o` in |
7563 | *x86-64*) | |
7564 | LD="${LD-ld} -m elf32_x86_64" | |
7565 | ;; | |
7566 | *) | |
7567 | LD="${LD-ld} -m elf_i386" | |
7568 | ;; | |
7569 | esac | |
7570 | ;; | |
7571 | powerpc64le-*linux*) | |
7572 | LD="${LD-ld} -m elf32lppclinux" | |
8d138742 | 7573 | ;; |
d50284c4 | 7574 | powerpc64-*linux*) |
8d138742 CE |
7575 | LD="${LD-ld} -m elf32ppclinux" |
7576 | ;; | |
7577 | s390x-*linux*) | |
7578 | LD="${LD-ld} -m elf_s390" | |
7579 | ;; | |
7580 | sparc64-*linux*) | |
7581 | LD="${LD-ld} -m elf32_sparc" | |
7582 | ;; | |
d9898ee8 | 7583 | esac |
8d138742 CE |
7584 | ;; |
7585 | *64-bit*) | |
7586 | case $host in | |
7587 | x86_64-*kfreebsd*-gnu) | |
7588 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7589 | ;; | |
7590 | x86_64-*linux*) | |
7591 | LD="${LD-ld} -m elf_x86_64" | |
7592 | ;; | |
d50284c4 CE |
7593 | powerpcle-*linux*) |
7594 | LD="${LD-ld} -m elf64lppc" | |
7595 | ;; | |
7596 | powerpc-*linux*) | |
8d138742 CE |
7597 | LD="${LD-ld} -m elf64ppc" |
7598 | ;; | |
7599 | s390*-*linux*|s390*-*tpf*) | |
7600 | LD="${LD-ld} -m elf64_s390" | |
7601 | ;; | |
7602 | sparc*-*linux*) | |
7603 | LD="${LD-ld} -m elf64_sparc" | |
7604 | ;; | |
d9898ee8 | 7605 | esac |
8d138742 CE |
7606 | ;; |
7607 | esac | |
7608 | fi | |
7609 | rm -rf conftest* | |
7610 | ;; | |
d9898ee8 | 7611 | |
8d138742 CE |
7612 | *-*-sco3.2v5*) |
7613 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
d50284c4 | 7614 | SAVE_CFLAGS=$CFLAGS |
8d138742 | 7615 | CFLAGS="$CFLAGS -belf" |
b0322a85 | 7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 7617 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 7618 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 CE |
7619 | $as_echo_n "(cached) " >&6 |
7620 | else | |
7621 | ac_ext=c | |
7622 | ac_cpp='$CPP $CPPFLAGS' | |
7623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7626 | ||
b0322a85 | 7627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 7628 | /* end confdefs.h. */ |
7629 | ||
7630 | int | |
7631 | main () | |
7632 | { | |
7633 | ||
7634 | ; | |
7635 | return 0; | |
7636 | } | |
7637 | _ACEOF | |
b0322a85 | 7638 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 7639 | lt_cv_cc_needs_belf=yes |
d9898ee8 | 7640 | else |
b0322a85 | 7641 | lt_cv_cc_needs_belf=no |
d9898ee8 | 7642 | fi |
b0322a85 CE |
7643 | rm -f core conftest.err conftest.$ac_objext \ |
7644 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
7645 | ac_ext=c |
7646 | ac_cpp='$CPP $CPPFLAGS' | |
7647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7650 | |
8d138742 | 7651 | fi |
b0322a85 | 7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 | 7653 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
d50284c4 | 7654 | if test yes != "$lt_cv_cc_needs_belf"; then |
8d138742 | 7655 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
d50284c4 | 7656 | CFLAGS=$SAVE_CFLAGS |
8d138742 CE |
7657 | fi |
7658 | ;; | |
b0322a85 | 7659 | *-*solaris*) |
d50284c4 CE |
7660 | # Find out what ABI is being produced by ac_compile, and set linker |
7661 | # options accordingly. | |
8d138742 | 7662 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 7663 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
7664 | (eval $ac_compile) 2>&5 |
7665 | ac_status=$? | |
b0322a85 CE |
7666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7667 | test $ac_status = 0; }; then | |
8d138742 CE |
7668 | case `/usr/bin/file conftest.o` in |
7669 | *64-bit*) | |
7670 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
7671 | yes*) |
7672 | case $host in | |
d50284c4 | 7673 | i?86-*-solaris*|x86_64-*-solaris*) |
b0322a85 CE |
7674 | LD="${LD-ld} -m elf_x86_64" |
7675 | ;; | |
7676 | sparc*-*-solaris*) | |
7677 | LD="${LD-ld} -m elf64_sparc" | |
7678 | ;; | |
7679 | esac | |
7680 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7681 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
d50284c4 | 7682 | LD=${LD-ld}_sol2 |
b0322a85 CE |
7683 | fi |
7684 | ;; | |
8d138742 CE |
7685 | *) |
7686 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7687 | LD="${LD-ld} -64" | |
7688 | fi | |
7689 | ;; | |
7690 | esac | |
7691 | ;; | |
7692 | esac | |
7693 | fi | |
7694 | rm -rf conftest* | |
7695 | ;; | |
7696 | esac | |
d9898ee8 | 7697 | |
d50284c4 | 7698 | need_locks=$enable_libtool_lock |
d9898ee8 | 7699 | |
b0322a85 CE |
7700 | if test -n "$ac_tool_prefix"; then |
7701 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7702 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7704 | $as_echo_n "checking for $ac_word... " >&6; } | |
7705 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7706 | $as_echo_n "(cached) " >&6 | |
7707 | else | |
7708 | if test -n "$MANIFEST_TOOL"; then | |
7709 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7710 | else | |
7711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7712 | for as_dir in $PATH | |
7713 | do | |
7714 | IFS=$as_save_IFS | |
7715 | test -z "$as_dir" && as_dir=. | |
7716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7717 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7718 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7720 | break 2 | |
7721 | fi | |
7722 | done | |
7723 | done | |
7724 | IFS=$as_save_IFS | |
7725 | ||
7726 | fi | |
7727 | fi | |
7728 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7729 | if test -n "$MANIFEST_TOOL"; then | |
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7731 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7732 | else | |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7734 | $as_echo "no" >&6; } | |
7735 | fi | |
7736 | ||
7737 | ||
7738 | fi | |
7739 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7740 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7741 | # Extract the first word of "mt", so it can be a program name with args. | |
7742 | set dummy mt; ac_word=$2 | |
7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7744 | $as_echo_n "checking for $ac_word... " >&6; } | |
7745 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7746 | $as_echo_n "(cached) " >&6 | |
7747 | else | |
7748 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7749 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7750 | else | |
7751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7752 | for as_dir in $PATH | |
7753 | do | |
7754 | IFS=$as_save_IFS | |
7755 | test -z "$as_dir" && as_dir=. | |
7756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7758 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7760 | break 2 | |
7761 | fi | |
7762 | done | |
7763 | done | |
7764 | IFS=$as_save_IFS | |
7765 | ||
7766 | fi | |
7767 | fi | |
7768 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7769 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7771 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7772 | else | |
7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7774 | $as_echo "no" >&6; } | |
7775 | fi | |
7776 | ||
7777 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7778 | MANIFEST_TOOL=":" | |
7779 | else | |
7780 | case $cross_compiling:$ac_tool_warned in | |
7781 | yes:) | |
7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7784 | ac_tool_warned=yes ;; | |
7785 | esac | |
7786 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7787 | fi | |
7788 | else | |
7789 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7790 | fi | |
7791 | ||
7792 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7794 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7795 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7796 | $as_echo_n "(cached) " >&6 | |
7797 | else | |
7798 | lt_cv_path_mainfest_tool=no | |
7799 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7800 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7801 | cat conftest.err >&5 | |
7802 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7803 | lt_cv_path_mainfest_tool=yes | |
7804 | fi | |
7805 | rm -f conftest* | |
7806 | fi | |
7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7808 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
d50284c4 | 7809 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b0322a85 CE |
7810 | MANIFEST_TOOL=: |
7811 | fi | |
7812 | ||
7813 | ||
7814 | ||
7815 | ||
7816 | ||
d9898ee8 | 7817 | |
8d138742 CE |
7818 | case $host_os in |
7819 | rhapsody* | darwin*) | |
7820 | if test -n "$ac_tool_prefix"; then | |
7821 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7822 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7824 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7825 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 CE |
7826 | $as_echo_n "(cached) " >&6 |
7827 | else | |
7828 | if test -n "$DSYMUTIL"; then | |
7829 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7830 | else | |
7831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7832 | for as_dir in $PATH | |
7833 | do | |
7834 | IFS=$as_save_IFS | |
7835 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7836 | for ac_exec_ext in '' $ac_executable_extensions; do |
7837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7838 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 7839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7840 | break 2 |
7841 | fi | |
7842 | done | |
b0322a85 | 7843 | done |
8d138742 CE |
7844 | IFS=$as_save_IFS |
7845 | ||
7846 | fi | |
ac40fd9e | 7847 | fi |
8d138742 CE |
7848 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
7849 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 | 7851 | $as_echo "$DSYMUTIL" >&6; } |
d9898ee8 | 7852 | else |
b0322a85 | 7853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7854 | $as_echo "no" >&6; } |
7855 | fi | |
d9898ee8 | 7856 | |
dd184caf | 7857 | |
d9898ee8 | 7858 | fi |
8d138742 CE |
7859 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7860 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7861 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7862 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 7863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7864 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7865 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 CE |
7866 | $as_echo_n "(cached) " >&6 |
7867 | else | |
7868 | if test -n "$ac_ct_DSYMUTIL"; then | |
7869 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7870 | else | |
7871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7872 | for as_dir in $PATH | |
7873 | do | |
7874 | IFS=$as_save_IFS | |
7875 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7876 | for ac_exec_ext in '' $ac_executable_extensions; do |
7877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7878 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 7879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7880 | break 2 |
7881 | fi | |
7882 | done | |
b0322a85 | 7883 | done |
8d138742 | 7884 | IFS=$as_save_IFS |
dd184caf | 7885 | |
8d138742 CE |
7886 | fi |
7887 | fi | |
7888 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7889 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 CE |
7891 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
7892 | else | |
b0322a85 | 7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7894 | $as_echo "no" >&6; } |
7895 | fi | |
d9898ee8 | 7896 | |
8d138742 CE |
7897 | if test "x$ac_ct_DSYMUTIL" = x; then |
7898 | DSYMUTIL=":" | |
7899 | else | |
7900 | case $cross_compiling:$ac_tool_warned in | |
7901 | yes:) | |
b0322a85 | 7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7904 | ac_tool_warned=yes ;; | |
7905 | esac | |
7906 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7907 | fi | |
7908 | else | |
7909 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7910 | fi | |
d9898ee8 | 7911 | |
8d138742 CE |
7912 | if test -n "$ac_tool_prefix"; then |
7913 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7914 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7916 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7917 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 CE |
7918 | $as_echo_n "(cached) " >&6 |
7919 | else | |
7920 | if test -n "$NMEDIT"; then | |
7921 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7922 | else | |
7923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7924 | for as_dir in $PATH | |
7925 | do | |
7926 | IFS=$as_save_IFS | |
7927 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7928 | for ac_exec_ext in '' $ac_executable_extensions; do |
7929 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7930 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 7931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7932 | break 2 |
7933 | fi | |
7934 | done | |
b0322a85 | 7935 | done |
8d138742 | 7936 | IFS=$as_save_IFS |
d9898ee8 | 7937 | |
8d138742 CE |
7938 | fi |
7939 | fi | |
7940 | NMEDIT=$ac_cv_prog_NMEDIT | |
7941 | if test -n "$NMEDIT"; then | |
b0322a85 | 7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 CE |
7943 | $as_echo "$NMEDIT" >&6; } |
7944 | else | |
b0322a85 | 7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7946 | $as_echo "no" >&6; } |
7947 | fi | |
d9898ee8 | 7948 | |
d9898ee8 | 7949 | |
8d138742 CE |
7950 | fi |
7951 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7952 | ac_ct_NMEDIT=$NMEDIT | |
7953 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7954 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7956 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7957 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 CE |
7958 | $as_echo_n "(cached) " >&6 |
7959 | else | |
7960 | if test -n "$ac_ct_NMEDIT"; then | |
7961 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7962 | else | |
7963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7964 | for as_dir in $PATH | |
7965 | do | |
7966 | IFS=$as_save_IFS | |
7967 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7968 | for ac_exec_ext in '' $ac_executable_extensions; do |
7969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7970 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 7971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7972 | break 2 |
7973 | fi | |
7974 | done | |
b0322a85 | 7975 | done |
8d138742 | 7976 | IFS=$as_save_IFS |
d9898ee8 | 7977 | |
8d138742 CE |
7978 | fi |
7979 | fi | |
7980 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7981 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 CE |
7983 | $as_echo "$ac_ct_NMEDIT" >&6; } |
7984 | else | |
b0322a85 | 7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7986 | $as_echo "no" >&6; } |
7987 | fi | |
d9898ee8 | 7988 | |
8d138742 CE |
7989 | if test "x$ac_ct_NMEDIT" = x; then |
7990 | NMEDIT=":" | |
7991 | else | |
7992 | case $cross_compiling:$ac_tool_warned in | |
7993 | yes:) | |
b0322a85 | 7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7995 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7996 | ac_tool_warned=yes ;; | |
7997 | esac | |
7998 | NMEDIT=$ac_ct_NMEDIT | |
7999 | fi | |
8000 | else | |
8001 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8002 | fi | |
d9898ee8 | 8003 | |
8d138742 CE |
8004 | if test -n "$ac_tool_prefix"; then |
8005 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8006 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8008 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8009 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 CE |
8010 | $as_echo_n "(cached) " >&6 |
8011 | else | |
8012 | if test -n "$LIPO"; then | |
8013 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8014 | else | |
8015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8016 | for as_dir in $PATH | |
8017 | do | |
8018 | IFS=$as_save_IFS | |
8019 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8020 | for ac_exec_ext in '' $ac_executable_extensions; do |
8021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8022 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 8023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8024 | break 2 |
8025 | fi | |
8026 | done | |
b0322a85 | 8027 | done |
8d138742 | 8028 | IFS=$as_save_IFS |
d9898ee8 | 8029 | |
8d138742 CE |
8030 | fi |
8031 | fi | |
8032 | LIPO=$ac_cv_prog_LIPO | |
8033 | if test -n "$LIPO"; then | |
b0322a85 | 8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 CE |
8035 | $as_echo "$LIPO" >&6; } |
8036 | else | |
b0322a85 | 8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8038 | $as_echo "no" >&6; } |
8039 | fi | |
d9898ee8 | 8040 | |
d9898ee8 | 8041 | |
8d138742 CE |
8042 | fi |
8043 | if test -z "$ac_cv_prog_LIPO"; then | |
8044 | ac_ct_LIPO=$LIPO | |
8045 | # Extract the first word of "lipo", so it can be a program name with args. | |
8046 | set dummy lipo; ac_word=$2 | |
b0322a85 | 8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8048 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8049 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 CE |
8050 | $as_echo_n "(cached) " >&6 |
8051 | else | |
8052 | if test -n "$ac_ct_LIPO"; then | |
8053 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8054 | else | |
8055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8056 | for as_dir in $PATH | |
8057 | do | |
8058 | IFS=$as_save_IFS | |
8059 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8060 | for ac_exec_ext in '' $ac_executable_extensions; do |
8061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8062 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 8063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8064 | break 2 |
8065 | fi | |
8066 | done | |
b0322a85 | 8067 | done |
8d138742 | 8068 | IFS=$as_save_IFS |
d9898ee8 | 8069 | |
8d138742 CE |
8070 | fi |
8071 | fi | |
8072 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8073 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 CE |
8075 | $as_echo "$ac_ct_LIPO" >&6; } |
8076 | else | |
b0322a85 | 8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8078 | $as_echo "no" >&6; } |
8079 | fi | |
d9898ee8 | 8080 | |
8d138742 CE |
8081 | if test "x$ac_ct_LIPO" = x; then |
8082 | LIPO=":" | |
8083 | else | |
8084 | case $cross_compiling:$ac_tool_warned in | |
8085 | yes:) | |
b0322a85 | 8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
8087 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
8088 | ac_tool_warned=yes ;; | |
8089 | esac | |
8090 | LIPO=$ac_ct_LIPO | |
8091 | fi | |
8092 | else | |
8093 | LIPO="$ac_cv_prog_LIPO" | |
8094 | fi | |
d9898ee8 | 8095 | |
8d138742 CE |
8096 | if test -n "$ac_tool_prefix"; then |
8097 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8098 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8100 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8101 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 CE |
8102 | $as_echo_n "(cached) " >&6 |
8103 | else | |
8104 | if test -n "$OTOOL"; then | |
8105 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8106 | else | |
8107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8108 | for as_dir in $PATH | |
8109 | do | |
8110 | IFS=$as_save_IFS | |
8111 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8112 | for ac_exec_ext in '' $ac_executable_extensions; do |
8113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8114 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 8115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8116 | break 2 |
8117 | fi | |
8118 | done | |
b0322a85 | 8119 | done |
8d138742 | 8120 | IFS=$as_save_IFS |
d9898ee8 | 8121 | |
8d138742 CE |
8122 | fi |
8123 | fi | |
8124 | OTOOL=$ac_cv_prog_OTOOL | |
8125 | if test -n "$OTOOL"; then | |
b0322a85 | 8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 CE |
8127 | $as_echo "$OTOOL" >&6; } |
8128 | else | |
b0322a85 | 8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8130 | $as_echo "no" >&6; } |
8131 | fi | |
d9898ee8 | 8132 | |
d9898ee8 | 8133 | |
8d138742 CE |
8134 | fi |
8135 | if test -z "$ac_cv_prog_OTOOL"; then | |
8136 | ac_ct_OTOOL=$OTOOL | |
8137 | # Extract the first word of "otool", so it can be a program name with args. | |
8138 | set dummy otool; ac_word=$2 | |
b0322a85 | 8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8140 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8141 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 CE |
8142 | $as_echo_n "(cached) " >&6 |
8143 | else | |
8144 | if test -n "$ac_ct_OTOOL"; then | |
8145 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8146 | else | |
8147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8148 | for as_dir in $PATH | |
8149 | do | |
8150 | IFS=$as_save_IFS | |
8151 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8152 | for ac_exec_ext in '' $ac_executable_extensions; do |
8153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8154 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 8155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8156 | break 2 |
8157 | fi | |
8158 | done | |
b0322a85 | 8159 | done |
8d138742 | 8160 | IFS=$as_save_IFS |
d9898ee8 | 8161 | |
8d138742 CE |
8162 | fi |
8163 | fi | |
8164 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8165 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 CE |
8167 | $as_echo "$ac_ct_OTOOL" >&6; } |
8168 | else | |
b0322a85 | 8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8170 | $as_echo "no" >&6; } |
8171 | fi | |
d9898ee8 | 8172 | |
8d138742 CE |
8173 | if test "x$ac_ct_OTOOL" = x; then |
8174 | OTOOL=":" | |
8175 | else | |
8176 | case $cross_compiling:$ac_tool_warned in | |
8177 | yes:) | |
b0322a85 | 8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
8179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
8180 | ac_tool_warned=yes ;; | |
8181 | esac | |
8182 | OTOOL=$ac_ct_OTOOL | |
8183 | fi | |
8184 | else | |
8185 | OTOOL="$ac_cv_prog_OTOOL" | |
8186 | fi | |
d9898ee8 | 8187 | |
8d138742 CE |
8188 | if test -n "$ac_tool_prefix"; then |
8189 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8190 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8192 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8193 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 CE |
8194 | $as_echo_n "(cached) " >&6 |
8195 | else | |
8196 | if test -n "$OTOOL64"; then | |
8197 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8198 | else | |
8199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8200 | for as_dir in $PATH | |
8201 | do | |
8202 | IFS=$as_save_IFS | |
8203 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8204 | for ac_exec_ext in '' $ac_executable_extensions; do |
8205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8206 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 8207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8208 | break 2 |
8209 | fi | |
8210 | done | |
b0322a85 | 8211 | done |
8d138742 | 8212 | IFS=$as_save_IFS |
d9898ee8 | 8213 | |
8d138742 CE |
8214 | fi |
8215 | fi | |
8216 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8217 | if test -n "$OTOOL64"; then | |
b0322a85 | 8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 CE |
8219 | $as_echo "$OTOOL64" >&6; } |
8220 | else | |
b0322a85 | 8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8222 | $as_echo "no" >&6; } |
8223 | fi | |
d9898ee8 | 8224 | |
d9898ee8 | 8225 | |
8d138742 CE |
8226 | fi |
8227 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8228 | ac_ct_OTOOL64=$OTOOL64 | |
8229 | # Extract the first word of "otool64", so it can be a program name with args. | |
8230 | set dummy otool64; ac_word=$2 | |
b0322a85 | 8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8232 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8233 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 CE |
8234 | $as_echo_n "(cached) " >&6 |
8235 | else | |
8236 | if test -n "$ac_ct_OTOOL64"; then | |
8237 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8238 | else | |
8239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8240 | for as_dir in $PATH | |
8241 | do | |
8242 | IFS=$as_save_IFS | |
8243 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8244 | for ac_exec_ext in '' $ac_executable_extensions; do |
8245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8246 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 8247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8248 | break 2 |
8249 | fi | |
8250 | done | |
b0322a85 | 8251 | done |
8d138742 | 8252 | IFS=$as_save_IFS |
d9898ee8 | 8253 | |
8d138742 CE |
8254 | fi |
8255 | fi | |
8256 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8257 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 CE |
8259 | $as_echo "$ac_ct_OTOOL64" >&6; } |
8260 | else | |
b0322a85 | 8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8262 | $as_echo "no" >&6; } |
8263 | fi | |
d9898ee8 | 8264 | |
8d138742 CE |
8265 | if test "x$ac_ct_OTOOL64" = x; then |
8266 | OTOOL64=":" | |
8267 | else | |
8268 | case $cross_compiling:$ac_tool_warned in | |
8269 | yes:) | |
b0322a85 | 8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
8271 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
8272 | ac_tool_warned=yes ;; | |
8273 | esac | |
8274 | OTOOL64=$ac_ct_OTOOL64 | |
8275 | fi | |
8276 | else | |
8277 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8278 | fi | |
d9898ee8 | 8279 | |
d9898ee8 | 8280 | |
d9898ee8 | 8281 | |
d9898ee8 | 8282 | |
d9898ee8 | 8283 | |
d9898ee8 | 8284 | |
d9898ee8 | 8285 | |
d9898ee8 | 8286 | |
d9898ee8 | 8287 | |
d9898ee8 | 8288 | |
d9898ee8 | 8289 | |
d9898ee8 | 8290 | |
d9898ee8 | 8291 | |
d9898ee8 | 8292 | |
d9898ee8 | 8293 | |
d9898ee8 | 8294 | |
d9898ee8 | 8295 | |
ac40fd9e | 8296 | |
d9898ee8 | 8297 | |
d9898ee8 | 8298 | |
d9898ee8 | 8299 | |
d9898ee8 | 8300 | |
d9898ee8 | 8301 | |
d9898ee8 | 8302 | |
d9898ee8 | 8303 | |
d9898ee8 | 8304 | |
d9898ee8 | 8305 | |
b0322a85 | 8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 8307 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 8308 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 CE |
8309 | $as_echo_n "(cached) " >&6 |
8310 | else | |
8311 | lt_cv_apple_cc_single_mod=no | |
d50284c4 | 8312 | if test -z "$LT_MULTI_MODULE"; then |
8d138742 CE |
8313 | # By default we will add the -single_module flag. You can override |
8314 | # by either setting the environment variable LT_MULTI_MODULE | |
8315 | # non-empty at configure time, or by adding -multi_module to the | |
8316 | # link flags. | |
8317 | rm -rf libconftest.dylib* | |
8318 | echo "int foo(void){return 1;}" > conftest.c | |
8319 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8320 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8321 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8322 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8323 | _lt_result=$? | |
b0322a85 CE |
8324 | # If there is a non-empty error log, and "single_module" |
8325 | # appears in it, assume the flag caused a linker warning | |
8326 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8327 | cat conftest.err >&5 | |
8328 | # Otherwise, if the output was created with a 0 exit code from | |
8329 | # the compiler, it worked. | |
d50284c4 | 8330 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
8d138742 CE |
8331 | lt_cv_apple_cc_single_mod=yes |
8332 | else | |
8333 | cat conftest.err >&5 | |
8334 | fi | |
8335 | rm -rf libconftest.dylib* | |
8336 | rm -f conftest.* | |
d9898ee8 | 8337 | fi |
8d138742 | 8338 | fi |
b0322a85 | 8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 8340 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
8341 | |
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 8343 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 8344 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
8345 | $as_echo_n "(cached) " >&6 |
8346 | else | |
8347 | lt_cv_ld_exported_symbols_list=no | |
8348 | save_LDFLAGS=$LDFLAGS | |
8349 | echo "_main" > conftest.sym | |
8350 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 8351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 8352 | /* end confdefs.h. */ |
d9898ee8 | 8353 | |
8d138742 CE |
8354 | int |
8355 | main () | |
8356 | { | |
ac40fd9e | 8357 | |
8d138742 CE |
8358 | ; |
8359 | return 0; | |
8360 | } | |
8361 | _ACEOF | |
b0322a85 | 8362 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
8363 | lt_cv_ld_exported_symbols_list=yes |
8364 | else | |
b0322a85 | 8365 | lt_cv_ld_exported_symbols_list=no |
8d138742 | 8366 | fi |
b0322a85 CE |
8367 | rm -f core conftest.err conftest.$ac_objext \ |
8368 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 8369 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 8370 | |
8d138742 | 8371 | fi |
b0322a85 | 8372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 8373 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
8374 | |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8376 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8377 | if ${lt_cv_ld_force_load+:} false; then : | |
8378 | $as_echo_n "(cached) " >&6 | |
8379 | else | |
8380 | lt_cv_ld_force_load=no | |
8381 | cat > conftest.c << _LT_EOF | |
8382 | int forced_loaded() { return 2;} | |
8383 | _LT_EOF | |
8384 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8385 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8386 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8387 | $AR cru libconftest.a conftest.o 2>&5 | |
8388 | echo "$RANLIB libconftest.a" >&5 | |
8389 | $RANLIB libconftest.a 2>&5 | |
8390 | cat > conftest.c << _LT_EOF | |
8391 | int main() { return 0;} | |
8392 | _LT_EOF | |
8393 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8394 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8395 | _lt_result=$? | |
8396 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8397 | cat conftest.err >&5 | |
d50284c4 | 8398 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b0322a85 CE |
8399 | lt_cv_ld_force_load=yes |
8400 | else | |
8401 | cat conftest.err >&5 | |
8402 | fi | |
8403 | rm -f conftest.err libconftest.a conftest conftest.c | |
8404 | rm -rf conftest.dSYM | |
8405 | ||
8406 | fi | |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8408 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
d9898ee8 | 8409 | case $host_os in |
8d138742 | 8410 | rhapsody* | darwin1.[012]) |
d50284c4 | 8411 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
8d138742 | 8412 | darwin1.*) |
d50284c4 | 8413 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
8d138742 CE |
8414 | darwin*) # darwin 5.x on |
8415 | # if running on 10.5 or later, the deployment target defaults | |
8416 | # to the OS version, if on x86, and 10.4, the deployment | |
8417 | # target defaults to 10.4. Don't you love it? | |
8418 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8419 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
d50284c4 CE |
8420 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8421 | 10.[012][,.]*) | |
8422 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8d138742 | 8423 | 10.*) |
d50284c4 | 8424 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8d138742 | 8425 | esac |
d9898ee8 | 8426 | ;; |
8427 | esac | |
d50284c4 | 8428 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
8d138742 CE |
8429 | _lt_dar_single_mod='$single_module' |
8430 | fi | |
d50284c4 CE |
8431 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
8432 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
d9898ee8 | 8433 | else |
d50284c4 | 8434 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
8d138742 | 8435 | fi |
d50284c4 | 8436 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
8d138742 CE |
8437 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8438 | else | |
8439 | _lt_dsymutil= | |
d9898ee8 | 8440 | fi |
d9898ee8 | 8441 | ;; |
8442 | esac | |
d9898ee8 | 8443 | |
d50284c4 CE |
8444 | # func_munge_path_list VARIABLE PATH |
8445 | # ----------------------------------- | |
8446 | # VARIABLE is name of variable containing _space_ separated list of | |
8447 | # directories to be munged by the contents of PATH, which is string | |
8448 | # having a format: | |
8449 | # "DIR[:DIR]:" | |
8450 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
8451 | # ":DIR[:DIR]" | |
8452 | # string "DIR[ DIR]" will be appended to VARIABLE | |
8453 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
8454 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
8455 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
8456 | # "DIR[:DIR]" | |
8457 | # VARIABLE will be replaced by "DIR[ DIR]" | |
8458 | func_munge_path_list () | |
8459 | { | |
8460 | case x$2 in | |
8461 | x) | |
8462 | ;; | |
8463 | *:) | |
8464 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
8465 | ;; | |
8466 | x:*) | |
8467 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
8468 | ;; | |
8469 | *::*) | |
8470 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
8471 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
8472 | ;; | |
8473 | *) | |
8474 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
8475 | ;; | |
8476 | esac | |
8477 | } | |
8478 | ||
8d138742 | 8479 | for ac_header in dlfcn.h |
b0322a85 CE |
8480 | do : |
8481 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8482 | " | |
8483 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 8484 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 8485 | #define HAVE_DLFCN_H 1 |
8d138742 | 8486 | _ACEOF |
d9898ee8 | 8487 | |
8d138742 | 8488 | fi |
d9898ee8 | 8489 | |
8d138742 | 8490 | done |
d9898ee8 | 8491 | |
d9898ee8 | 8492 | |
d9898ee8 | 8493 | |
b0322a85 CE |
8494 | |
8495 | ||
8d138742 | 8496 | # Set options |
d9898ee8 | 8497 | |
d9898ee8 | 8498 | |
ac40fd9e | 8499 | |
8d138742 | 8500 | enable_dlopen=no |
d9898ee8 | 8501 | |
d9898ee8 | 8502 | |
8d138742 | 8503 | enable_win32_dll=no |
d9898ee8 | 8504 | |
d9898ee8 | 8505 | |
8d138742 | 8506 | # Check whether --enable-shared was given. |
b0322a85 | 8507 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
8508 | enableval=$enable_shared; p=${PACKAGE-default} |
8509 | case $enableval in | |
8510 | yes) enable_shared=yes ;; | |
8511 | no) enable_shared=no ;; | |
8512 | *) | |
8513 | enable_shared=no | |
8514 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8515 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 8516 | for pkg in $enableval; do |
d50284c4 | 8517 | IFS=$lt_save_ifs |
8d138742 CE |
8518 | if test "X$pkg" = "X$p"; then |
8519 | enable_shared=yes | |
8520 | fi | |
8521 | done | |
d50284c4 | 8522 | IFS=$lt_save_ifs |
8d138742 | 8523 | ;; |
d9898ee8 | 8524 | esac |
8d138742 CE |
8525 | else |
8526 | enable_shared=yes | |
8527 | fi | |
d9898ee8 | 8528 | |
d9898ee8 | 8529 | |
d9898ee8 | 8530 | |
d9898ee8 | 8531 | |
d9898ee8 | 8532 | |
d9898ee8 | 8533 | |
d9898ee8 | 8534 | |
8d138742 CE |
8535 | |
8536 | ||
8537 | # Check whether --enable-static was given. | |
b0322a85 | 8538 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
8539 | enableval=$enable_static; p=${PACKAGE-default} |
8540 | case $enableval in | |
8541 | yes) enable_static=yes ;; | |
8542 | no) enable_static=no ;; | |
8543 | *) | |
8544 | enable_static=no | |
8545 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8546 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 8547 | for pkg in $enableval; do |
d50284c4 | 8548 | IFS=$lt_save_ifs |
8d138742 CE |
8549 | if test "X$pkg" = "X$p"; then |
8550 | enable_static=yes | |
8551 | fi | |
8552 | done | |
d50284c4 | 8553 | IFS=$lt_save_ifs |
8d138742 CE |
8554 | ;; |
8555 | esac | |
d9898ee8 | 8556 | else |
8d138742 | 8557 | enable_static=yes |
d9898ee8 | 8558 | fi |
8559 | ||
d9898ee8 | 8560 | |
d9898ee8 | 8561 | |
d9898ee8 | 8562 | |
d9898ee8 | 8563 | |
d9898ee8 | 8564 | |
d9898ee8 | 8565 | |
dd184caf | 8566 | |
d9898ee8 | 8567 | |
d9898ee8 | 8568 | |
8d138742 | 8569 | # Check whether --with-pic was given. |
b0322a85 CE |
8570 | if test "${with_pic+set}" = set; then : |
8571 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8572 | case $withval in | |
8573 | yes|no) pic_mode=$withval ;; | |
8574 | *) | |
8575 | pic_mode=default | |
8576 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8577 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
b0322a85 | 8578 | for lt_pkg in $withval; do |
d50284c4 | 8579 | IFS=$lt_save_ifs |
b0322a85 CE |
8580 | if test "X$lt_pkg" = "X$lt_p"; then |
8581 | pic_mode=yes | |
8582 | fi | |
8583 | done | |
d50284c4 | 8584 | IFS=$lt_save_ifs |
b0322a85 CE |
8585 | ;; |
8586 | esac | |
8d138742 CE |
8587 | else |
8588 | pic_mode=default | |
d9898ee8 | 8589 | fi |
8590 | ||
d9898ee8 | 8591 | |
d9898ee8 | 8592 | |
d9898ee8 | 8593 | |
d9898ee8 | 8594 | |
d9898ee8 | 8595 | |
d9898ee8 | 8596 | |
dd184caf | 8597 | |
8d138742 | 8598 | # Check whether --enable-fast-install was given. |
b0322a85 | 8599 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
8600 | enableval=$enable_fast_install; p=${PACKAGE-default} |
8601 | case $enableval in | |
8602 | yes) enable_fast_install=yes ;; | |
8603 | no) enable_fast_install=no ;; | |
8604 | *) | |
8605 | enable_fast_install=no | |
8606 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8607 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 8608 | for pkg in $enableval; do |
d50284c4 | 8609 | IFS=$lt_save_ifs |
8d138742 CE |
8610 | if test "X$pkg" = "X$p"; then |
8611 | enable_fast_install=yes | |
8612 | fi | |
8613 | done | |
d50284c4 | 8614 | IFS=$lt_save_ifs |
8d138742 CE |
8615 | ;; |
8616 | esac | |
d9898ee8 | 8617 | else |
8d138742 CE |
8618 | enable_fast_install=yes |
8619 | fi | |
d9898ee8 | 8620 | |
d9898ee8 | 8621 | |
dd184caf | 8622 | |
d9898ee8 | 8623 | |
d9898ee8 | 8624 | |
d9898ee8 | 8625 | |
d9898ee8 | 8626 | |
d9898ee8 | 8627 | |
d50284c4 CE |
8628 | shared_archive_member_spec= |
8629 | case $host,$enable_shared in | |
8630 | power*-*-aix[5-9]*,yes) | |
8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
8632 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
8633 | ||
8634 | # Check whether --with-aix-soname was given. | |
8635 | if test "${with_aix_soname+set}" = set; then : | |
8636 | withval=$with_aix_soname; case $withval in | |
8637 | aix|svr4|both) | |
8638 | ;; | |
8639 | *) | |
8640 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
8641 | ;; | |
8642 | esac | |
8643 | lt_cv_with_aix_soname=$with_aix_soname | |
8644 | else | |
8645 | if ${lt_cv_with_aix_soname+:} false; then : | |
8646 | $as_echo_n "(cached) " >&6 | |
8647 | else | |
8648 | lt_cv_with_aix_soname=aix | |
8649 | fi | |
8650 | ||
8651 | with_aix_soname=$lt_cv_with_aix_soname | |
8652 | fi | |
8653 | ||
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8655 | $as_echo "$with_aix_soname" >&6; } | |
8656 | if test aix != "$with_aix_soname"; then | |
8657 | # For the AIX way of multilib, we name the shared archive member | |
8658 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8659 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8660 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8661 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8662 | if test 64 = "${OBJECT_MODE-32}"; then | |
8663 | shared_archive_member_spec=shr_64 | |
8664 | else | |
8665 | shared_archive_member_spec=shr | |
8666 | fi | |
8667 | fi | |
8668 | ;; | |
8669 | *) | |
8670 | with_aix_soname=aix | |
8671 | ;; | |
8672 | esac | |
8673 | ||
8674 | ||
8675 | ||
8676 | ||
8677 | ||
8678 | ||
8679 | ||
d9898ee8 | 8680 | |
dd184caf | 8681 | |
d9898ee8 | 8682 | |
8d138742 | 8683 | # This can be used to rebuild libtool when needed |
d50284c4 | 8684 | LIBTOOL_DEPS=$ltmain |
d9898ee8 | 8685 | |
b0322a85 CE |
8686 | # Always use our own libtool. |
8687 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8688 | ||
8689 | ||
8690 | ||
8691 | ||
8692 | ||
dd184caf | 8693 | |
d9898ee8 | 8694 | |
d9898ee8 | 8695 | |
dd184caf | 8696 | |
d9898ee8 | 8697 | |
d9898ee8 | 8698 | |
dd184caf | 8699 | |
d9898ee8 | 8700 | |
8701 | ||
d9898ee8 | 8702 | |
8703 | ||
d9898ee8 | 8704 | |
8705 | ||
d9898ee8 | 8706 | |
8707 | ||
d9898ee8 | 8708 | |
8709 | ||
d9898ee8 | 8710 | |
d9898ee8 | 8711 | |
d9898ee8 | 8712 | |
d9898ee8 | 8713 | |
d9898ee8 | 8714 | |
d9898ee8 | 8715 | |
d9898ee8 | 8716 | |
d9898ee8 | 8717 | |
8d138742 | 8718 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 8719 | |
d9898ee8 | 8720 | |
d9898ee8 | 8721 | |
d9898ee8 | 8722 | |
8723 | ||
d9898ee8 | 8724 | |
d9898ee8 | 8725 | |
d9898ee8 | 8726 | |
d9898ee8 | 8727 | |
d9898ee8 | 8728 | |
d9898ee8 | 8729 | |
d9898ee8 | 8730 | |
d9898ee8 | 8731 | |
d9898ee8 | 8732 | |
d50284c4 | 8733 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 | 8734 | setopt NO_GLOB_SUBST |
d9898ee8 | 8735 | fi |
d9898ee8 | 8736 | |
b0322a85 | 8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 8738 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 8739 | if ${lt_cv_objdir+:} false; then : |
8d138742 CE |
8740 | $as_echo_n "(cached) " >&6 |
8741 | else | |
8742 | rm -f .libs 2>/dev/null | |
8743 | mkdir .libs 2>/dev/null | |
8744 | if test -d .libs; then | |
8745 | lt_cv_objdir=.libs | |
8746 | else | |
8747 | # MS-DOS does not allow filenames that begin with a dot. | |
8748 | lt_cv_objdir=_libs | |
d9898ee8 | 8749 | fi |
8d138742 | 8750 | rmdir .libs 2>/dev/null |
d9898ee8 | 8751 | fi |
b0322a85 | 8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
8753 | $as_echo "$lt_cv_objdir" >&6; } |
8754 | objdir=$lt_cv_objdir | |
d9898ee8 | 8755 | |
8756 | ||
d9898ee8 | 8757 | |
d9898ee8 | 8758 | |
d9898ee8 | 8759 | |
8d138742 CE |
8760 | cat >>confdefs.h <<_ACEOF |
8761 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8762 | _ACEOF | |
d9898ee8 | 8763 | |
d9898ee8 | 8764 | |
d9898ee8 | 8765 | |
d9898ee8 | 8766 | |
8d138742 CE |
8767 | case $host_os in |
8768 | aix3*) | |
8769 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8770 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8771 | # vanish in a puff of smoke. | |
d50284c4 | 8772 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
8773 | COLLECT_NAMES= |
8774 | export COLLECT_NAMES | |
8775 | fi | |
8776 | ;; | |
8777 | esac | |
d9898ee8 | 8778 | |
8d138742 CE |
8779 | # Global variables: |
8780 | ofile=libtool | |
8781 | can_build_shared=yes | |
d9898ee8 | 8782 | |
d50284c4 | 8783 | # All known linkers require a '.a' archive for static linking (except MSVC, |
8d138742 CE |
8784 | # which needs '.lib'). |
8785 | libext=a | |
d9898ee8 | 8786 | |
d50284c4 | 8787 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d9898ee8 | 8788 | |
d50284c4 CE |
8789 | old_CC=$CC |
8790 | old_CFLAGS=$CFLAGS | |
d9898ee8 | 8791 | |
8d138742 CE |
8792 | # Set sane defaults for various variables |
8793 | test -z "$CC" && CC=cc | |
8794 | test -z "$LTCC" && LTCC=$CC | |
8795 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8796 | test -z "$LD" && LD=ld | |
8797 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 8798 | |
d50284c4 CE |
8799 | func_cc_basename $compiler |
8800 | cc_basename=$func_cc_basename_result | |
d9898ee8 | 8801 | |
d9898ee8 | 8802 | |
8d138742 CE |
8803 | # Only perform the check for file, if the check method requires it |
8804 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8805 | case $deplibs_check_method in | |
8806 | file_magic*) | |
8807 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 8809 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 8810 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8811 | $as_echo_n "(cached) " >&6 |
8812 | else | |
8813 | case $MAGIC_CMD in | |
8814 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8815 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8816 | ;; |
8817 | *) | |
d50284c4 CE |
8818 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8819 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8820 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8821 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8822 | IFS=$lt_save_ifs |
8d138742 | 8823 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8824 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8825 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8d138742 CE |
8826 | if test -n "$file_magic_test_file"; then |
8827 | case $deplibs_check_method in | |
8828 | "file_magic "*) | |
8829 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8830 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8831 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8832 | $EGREP "$file_magic_regex" > /dev/null; then | |
8833 | : | |
8834 | else | |
8835 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8836 | |
8d138742 CE |
8837 | *** Warning: the command libtool uses to detect shared libraries, |
8838 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8839 | *** The result is that libtool may fail to recognize shared libraries | |
8840 | *** as such. This will affect the creation of libtool libraries that | |
8841 | *** depend on shared libraries, but programs linked with such libtool | |
8842 | *** libraries will work regardless of this problem. Nevertheless, you | |
8843 | *** may want to report the problem to your system manager and/or to | |
8844 | *** bug-libtool@gnu.org | |
d9898ee8 | 8845 | |
8d138742 CE |
8846 | _LT_EOF |
8847 | fi ;; | |
8848 | esac | |
8849 | fi | |
8850 | break | |
8851 | fi | |
8852 | done | |
d50284c4 CE |
8853 | IFS=$lt_save_ifs |
8854 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8855 | ;; |
8856 | esac | |
8857 | fi | |
d9898ee8 | 8858 | |
d50284c4 | 8859 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8860 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
8862 | $as_echo "$MAGIC_CMD" >&6; } |
8863 | else | |
b0322a85 | 8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8865 | $as_echo "no" >&6; } |
8866 | fi | |
d9898ee8 | 8867 | |
d9898ee8 | 8868 | |
d9898ee8 | 8869 | |
d9898ee8 | 8870 | |
d9898ee8 | 8871 | |
8d138742 CE |
8872 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8873 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8875 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8876 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8877 | $as_echo_n "(cached) " >&6 |
8878 | else | |
8879 | case $MAGIC_CMD in | |
8880 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8881 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8882 | ;; |
8883 | *) | |
d50284c4 CE |
8884 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8885 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8886 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8887 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8888 | IFS=$lt_save_ifs |
8d138742 | 8889 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8890 | if test -f "$ac_dir/file"; then |
8891 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8d138742 CE |
8892 | if test -n "$file_magic_test_file"; then |
8893 | case $deplibs_check_method in | |
8894 | "file_magic "*) | |
8895 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8896 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8897 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8898 | $EGREP "$file_magic_regex" > /dev/null; then | |
8899 | : | |
8900 | else | |
8901 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8902 | |
8d138742 CE |
8903 | *** Warning: the command libtool uses to detect shared libraries, |
8904 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8905 | *** The result is that libtool may fail to recognize shared libraries | |
8906 | *** as such. This will affect the creation of libtool libraries that | |
8907 | *** depend on shared libraries, but programs linked with such libtool | |
8908 | *** libraries will work regardless of this problem. Nevertheless, you | |
8909 | *** may want to report the problem to your system manager and/or to | |
8910 | *** bug-libtool@gnu.org | |
d9898ee8 | 8911 | |
8d138742 CE |
8912 | _LT_EOF |
8913 | fi ;; | |
8914 | esac | |
8915 | fi | |
8916 | break | |
8917 | fi | |
8918 | done | |
d50284c4 CE |
8919 | IFS=$lt_save_ifs |
8920 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8921 | ;; |
8922 | esac | |
8923 | fi | |
d9898ee8 | 8924 | |
d50284c4 | 8925 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8926 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
8928 | $as_echo "$MAGIC_CMD" >&6; } |
8929 | else | |
b0322a85 | 8930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8931 | $as_echo "no" >&6; } |
8932 | fi | |
d9898ee8 | 8933 | |
d9898ee8 | 8934 | |
8d138742 CE |
8935 | else |
8936 | MAGIC_CMD=: | |
8937 | fi | |
8938 | fi | |
d9898ee8 | 8939 | |
8d138742 CE |
8940 | fi |
8941 | ;; | |
8942 | esac | |
d9898ee8 | 8943 | |
8d138742 | 8944 | # Use C for the default configuration in the libtool script |
d9898ee8 | 8945 | |
d50284c4 | 8946 | lt_save_CC=$CC |
8d138742 CE |
8947 | ac_ext=c |
8948 | ac_cpp='$CPP $CPPFLAGS' | |
8949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 8952 | |
d9898ee8 | 8953 | |
8d138742 CE |
8954 | # Source file extension for C test sources. |
8955 | ac_ext=c | |
d9898ee8 | 8956 | |
8d138742 CE |
8957 | # Object file extension for compiled C test sources. |
8958 | objext=o | |
8959 | objext=$objext | |
d9898ee8 | 8960 | |
8d138742 CE |
8961 | # Code to be used in simple compile tests |
8962 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 8963 | |
8d138742 CE |
8964 | # Code to be used in simple link tests |
8965 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 8966 | |
d9898ee8 | 8967 | |
d9898ee8 | 8968 | |
d9898ee8 | 8969 | |
d9898ee8 | 8970 | |
d9898ee8 | 8971 | |
d9898ee8 | 8972 | |
8d138742 CE |
8973 | # If no C compiler was specified, use CC. |
8974 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 8975 | |
8d138742 CE |
8976 | # If no C compiler flags were specified, use CFLAGS. |
8977 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 8978 | |
8d138742 CE |
8979 | # Allow CC to be a program name with arguments. |
8980 | compiler=$CC | |
d9898ee8 | 8981 | |
8d138742 CE |
8982 | # Save the default compiler, since it gets overwritten when the other |
8983 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8984 | compiler_DEFAULT=$CC | |
d9898ee8 | 8985 | |
8d138742 CE |
8986 | # save warnings/boilerplate of simple test code |
8987 | ac_outfile=conftest.$ac_objext | |
8988 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8989 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8990 | _lt_compiler_boilerplate=`cat conftest.err` | |
8991 | $RM conftest* | |
d9898ee8 | 8992 | |
8d138742 CE |
8993 | ac_outfile=conftest.$ac_objext |
8994 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8995 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8996 | _lt_linker_boilerplate=`cat conftest.err` | |
8997 | $RM -r conftest* | |
d9898ee8 | 8998 | |
d9898ee8 | 8999 | |
8d138742 | 9000 | if test -n "$compiler"; then |
d9898ee8 | 9001 | |
8d138742 | 9002 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 9003 | |
d50284c4 | 9004 | if test yes = "$GCC"; then |
b0322a85 CE |
9005 | case $cc_basename in |
9006 | nvcc*) | |
9007 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9008 | *) | |
9009 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9010 | esac | |
d9898ee8 | 9011 | |
b0322a85 | 9012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 9013 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 9014 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 CE |
9015 | $as_echo_n "(cached) " >&6 |
9016 | else | |
9017 | lt_cv_prog_compiler_rtti_exceptions=no | |
9018 | ac_outfile=conftest.$ac_objext | |
9019 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 9020 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
9021 | # Insert the option either (1) after the last *FLAGS variable, or |
9022 | # (2) before a word containing "conftest.", or (3) at the end. | |
9023 | # Note that $ac_compile itself does not contain backslashes and begins | |
9024 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9025 | # The option is referenced via a variable to avoid confusing sed. | |
9026 | lt_compile=`echo "$ac_compile" | $SED \ | |
9027 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9028 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9029 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9030 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9031 | (eval "$lt_compile" 2>conftest.err) |
9032 | ac_status=$? | |
9033 | cat conftest.err >&5 | |
b0322a85 | 9034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9035 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9036 | # The compiler can only warn and ignore the option if not recognized | |
9037 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 9038 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
9039 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9040 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9041 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9042 | fi | |
9043 | fi | |
9044 | $RM conftest* | |
d9898ee8 | 9045 | |
8d138742 | 9046 | fi |
b0322a85 | 9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 9048 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 9049 | |
d50284c4 | 9050 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8d138742 CE |
9051 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
9052 | else | |
9053 | : | |
9054 | fi | |
d9898ee8 | 9055 | |
8d138742 | 9056 | fi |
d9898ee8 | 9057 | |
d9898ee8 | 9058 | |
d9898ee8 | 9059 | |
d9898ee8 | 9060 | |
d9898ee8 | 9061 | |
d9898ee8 | 9062 | |
8d138742 CE |
9063 | lt_prog_compiler_wl= |
9064 | lt_prog_compiler_pic= | |
9065 | lt_prog_compiler_static= | |
d9898ee8 | 9066 | |
d9898ee8 | 9067 | |
d50284c4 | 9068 | if test yes = "$GCC"; then |
8d138742 CE |
9069 | lt_prog_compiler_wl='-Wl,' |
9070 | lt_prog_compiler_static='-static' | |
d9898ee8 | 9071 | |
8d138742 CE |
9072 | case $host_os in |
9073 | aix*) | |
9074 | # All AIX code is PIC. | |
d50284c4 | 9075 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9076 | # AIX 5 now supports IA64 processor |
9077 | lt_prog_compiler_static='-Bstatic' | |
9078 | fi | |
d50284c4 | 9079 | lt_prog_compiler_pic='-fPIC' |
8d138742 | 9080 | ;; |
d9898ee8 | 9081 | |
8d138742 CE |
9082 | amigaos*) |
9083 | case $host_cpu in | |
9084 | powerpc) | |
9085 | # see comment about AmigaOS4 .so support | |
9086 | lt_prog_compiler_pic='-fPIC' | |
9087 | ;; | |
9088 | m68k) | |
9089 | # FIXME: we need at least 68020 code to build shared libraries, but | |
d50284c4 CE |
9090 | # adding the '-m68020' flag to GCC prevents building anything better, |
9091 | # like '-m68040'. | |
8d138742 CE |
9092 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
9093 | ;; | |
9094 | esac | |
9095 | ;; | |
d9898ee8 | 9096 | |
8d138742 CE |
9097 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9098 | # PIC is the default for these OSes. | |
9099 | ;; | |
d9898ee8 | 9100 | |
8d138742 CE |
9101 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9102 | # This hack is so that the source file can tell whether it is being | |
9103 | # built for inclusion in a dll (and should export symbols for example). | |
9104 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9105 | # (--disable-auto-import) libraries | |
9106 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
9107 | case $host_os in |
9108 | os2*) | |
9109 | lt_prog_compiler_static='$wl-static' | |
9110 | ;; | |
9111 | esac | |
8d138742 | 9112 | ;; |
d9898ee8 | 9113 | |
8d138742 CE |
9114 | darwin* | rhapsody*) |
9115 | # PIC is the default on this platform | |
9116 | # Common symbols not allowed in MH_DYLIB files | |
9117 | lt_prog_compiler_pic='-fno-common' | |
9118 | ;; | |
d9898ee8 | 9119 | |
b0322a85 CE |
9120 | haiku*) |
9121 | # PIC is the default for Haiku. | |
9122 | # The "-static" flag exists, but is broken. | |
9123 | lt_prog_compiler_static= | |
9124 | ;; | |
9125 | ||
8d138742 CE |
9126 | hpux*) |
9127 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9128 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9129 | # sets the default TLS model and affects inlining. | |
9130 | case $host_cpu in | |
9131 | hppa*64*) | |
9132 | # +Z the default | |
9133 | ;; | |
9134 | *) | |
9135 | lt_prog_compiler_pic='-fPIC' | |
9136 | ;; | |
9137 | esac | |
9138 | ;; | |
d9898ee8 | 9139 | |
8d138742 CE |
9140 | interix[3-9]*) |
9141 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9142 | # Instead, we relocate shared libraries at runtime. | |
9143 | ;; | |
d9898ee8 | 9144 | |
8d138742 CE |
9145 | msdosdjgpp*) |
9146 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9147 | # on systems that don't support them. | |
9148 | lt_prog_compiler_can_build_shared=no | |
9149 | enable_shared=no | |
9150 | ;; | |
d9898ee8 | 9151 | |
8d138742 CE |
9152 | *nto* | *qnx*) |
9153 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9154 | # it will coredump. | |
9155 | lt_prog_compiler_pic='-fPIC -shared' | |
9156 | ;; | |
d9898ee8 | 9157 | |
8d138742 CE |
9158 | sysv4*MP*) |
9159 | if test -d /usr/nec; then | |
9160 | lt_prog_compiler_pic=-Kconform_pic | |
9161 | fi | |
9162 | ;; | |
d9898ee8 | 9163 | |
8d138742 CE |
9164 | *) |
9165 | lt_prog_compiler_pic='-fPIC' | |
9166 | ;; | |
9167 | esac | |
b0322a85 CE |
9168 | |
9169 | case $cc_basename in | |
9170 | nvcc*) # Cuda Compiler Driver 2.2 | |
9171 | lt_prog_compiler_wl='-Xlinker ' | |
9172 | if test -n "$lt_prog_compiler_pic"; then | |
9173 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9174 | fi | |
9175 | ;; | |
9176 | esac | |
8d138742 CE |
9177 | else |
9178 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9179 | case $host_os in | |
9180 | aix*) | |
9181 | lt_prog_compiler_wl='-Wl,' | |
d50284c4 | 9182 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9183 | # AIX 5 now supports IA64 processor |
9184 | lt_prog_compiler_static='-Bstatic' | |
9185 | else | |
9186 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9187 | fi | |
9188 | ;; | |
d9898ee8 | 9189 | |
d50284c4 CE |
9190 | darwin* | rhapsody*) |
9191 | # PIC is the default on this platform | |
9192 | # Common symbols not allowed in MH_DYLIB files | |
9193 | lt_prog_compiler_pic='-fno-common' | |
9194 | case $cc_basename in | |
9195 | nagfor*) | |
9196 | # NAG Fortran compiler | |
9197 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9198 | lt_prog_compiler_pic='-PIC' | |
9199 | lt_prog_compiler_static='-Bstatic' | |
9200 | ;; | |
9201 | esac | |
9202 | ;; | |
9203 | ||
8d138742 CE |
9204 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9205 | # This hack is so that the source file can tell whether it is being | |
9206 | # built for inclusion in a dll (and should export symbols for example). | |
9207 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
9208 | case $host_os in |
9209 | os2*) | |
9210 | lt_prog_compiler_static='$wl-static' | |
9211 | ;; | |
9212 | esac | |
8d138742 | 9213 | ;; |
d9898ee8 | 9214 | |
8d138742 CE |
9215 | hpux9* | hpux10* | hpux11*) |
9216 | lt_prog_compiler_wl='-Wl,' | |
9217 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9218 | # not for PA HP-UX. | |
9219 | case $host_cpu in | |
9220 | hppa*64*|ia64*) | |
9221 | # +Z the default | |
9222 | ;; | |
9223 | *) | |
9224 | lt_prog_compiler_pic='+Z' | |
9225 | ;; | |
9226 | esac | |
9227 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
d50284c4 | 9228 | lt_prog_compiler_static='$wl-a ${wl}archive' |
8d138742 | 9229 | ;; |
d9898ee8 | 9230 | |
8d138742 CE |
9231 | irix5* | irix6* | nonstopux*) |
9232 | lt_prog_compiler_wl='-Wl,' | |
9233 | # PIC (with -KPIC) is the default. | |
9234 | lt_prog_compiler_static='-non_shared' | |
9235 | ;; | |
d9898ee8 | 9236 | |
d50284c4 | 9237 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 | 9238 | case $cc_basename in |
d50284c4 | 9239 | # old Intel for x86_64, which still supported -KPIC. |
8d138742 CE |
9240 | ecc*) |
9241 | lt_prog_compiler_wl='-Wl,' | |
9242 | lt_prog_compiler_pic='-KPIC' | |
9243 | lt_prog_compiler_static='-static' | |
9244 | ;; | |
9245 | # icc used to be incompatible with GCC. | |
9246 | # ICC 10 doesn't accept -KPIC any more. | |
9247 | icc* | ifort*) | |
9248 | lt_prog_compiler_wl='-Wl,' | |
9249 | lt_prog_compiler_pic='-fPIC' | |
9250 | lt_prog_compiler_static='-static' | |
9251 | ;; | |
9252 | # Lahey Fortran 8.1. | |
9253 | lf95*) | |
9254 | lt_prog_compiler_wl='-Wl,' | |
9255 | lt_prog_compiler_pic='--shared' | |
9256 | lt_prog_compiler_static='--static' | |
9257 | ;; | |
b0322a85 CE |
9258 | nagfor*) |
9259 | # NAG Fortran compiler | |
9260 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9261 | lt_prog_compiler_pic='-PIC' | |
9262 | lt_prog_compiler_static='-Bstatic' | |
9263 | ;; | |
d50284c4 CE |
9264 | tcc*) |
9265 | # Fabrice Bellard et al's Tiny C Compiler | |
9266 | lt_prog_compiler_wl='-Wl,' | |
9267 | lt_prog_compiler_pic='-fPIC' | |
9268 | lt_prog_compiler_static='-static' | |
9269 | ;; | |
b0322a85 | 9270 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8d138742 CE |
9271 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9272 | # which looks to be a dead project) | |
9273 | lt_prog_compiler_wl='-Wl,' | |
9274 | lt_prog_compiler_pic='-fpic' | |
9275 | lt_prog_compiler_static='-Bstatic' | |
9276 | ;; | |
9277 | ccc*) | |
9278 | lt_prog_compiler_wl='-Wl,' | |
9279 | # All Alpha code is PIC. | |
9280 | lt_prog_compiler_static='-non_shared' | |
9281 | ;; | |
b0322a85 CE |
9282 | xl* | bgxl* | bgf* | mpixl*) |
9283 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
9284 | lt_prog_compiler_wl='-Wl,' |
9285 | lt_prog_compiler_pic='-qpic' | |
9286 | lt_prog_compiler_static='-qstaticlink' | |
9287 | ;; | |
9288 | *) | |
9289 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
9290 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
9291 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9292 | lt_prog_compiler_pic='-KPIC' | |
9293 | lt_prog_compiler_static='-Bstatic' | |
9294 | lt_prog_compiler_wl='' | |
9295 | ;; | |
9296 | *Sun\ F* | *Sun*Fortran*) | |
9297 | lt_prog_compiler_pic='-KPIC' | |
9298 | lt_prog_compiler_static='-Bstatic' | |
9299 | lt_prog_compiler_wl='-Qoption ld ' | |
9300 | ;; | |
8d138742 CE |
9301 | *Sun\ C*) |
9302 | # Sun C 5.9 | |
9303 | lt_prog_compiler_pic='-KPIC' | |
9304 | lt_prog_compiler_static='-Bstatic' | |
9305 | lt_prog_compiler_wl='-Wl,' | |
9306 | ;; | |
b0322a85 CE |
9307 | *Intel*\ [CF]*Compiler*) |
9308 | lt_prog_compiler_wl='-Wl,' | |
9309 | lt_prog_compiler_pic='-fPIC' | |
9310 | lt_prog_compiler_static='-static' | |
9311 | ;; | |
9312 | *Portland\ Group*) | |
9313 | lt_prog_compiler_wl='-Wl,' | |
9314 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 9315 | lt_prog_compiler_static='-Bstatic' |
8d138742 CE |
9316 | ;; |
9317 | esac | |
9318 | ;; | |
9319 | esac | |
9320 | ;; | |
d9898ee8 | 9321 | |
8d138742 CE |
9322 | newsos6) |
9323 | lt_prog_compiler_pic='-KPIC' | |
9324 | lt_prog_compiler_static='-Bstatic' | |
9325 | ;; | |
d9898ee8 | 9326 | |
8d138742 CE |
9327 | *nto* | *qnx*) |
9328 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9329 | # it will coredump. | |
9330 | lt_prog_compiler_pic='-fPIC -shared' | |
9331 | ;; | |
d9898ee8 | 9332 | |
8d138742 CE |
9333 | osf3* | osf4* | osf5*) |
9334 | lt_prog_compiler_wl='-Wl,' | |
9335 | # All OSF/1 code is PIC. | |
9336 | lt_prog_compiler_static='-non_shared' | |
9337 | ;; | |
d9898ee8 | 9338 | |
8d138742 CE |
9339 | rdos*) |
9340 | lt_prog_compiler_static='-non_shared' | |
9341 | ;; | |
d9898ee8 | 9342 | |
8d138742 CE |
9343 | solaris*) |
9344 | lt_prog_compiler_pic='-KPIC' | |
9345 | lt_prog_compiler_static='-Bstatic' | |
9346 | case $cc_basename in | |
b0322a85 | 9347 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
9348 | lt_prog_compiler_wl='-Qoption ld ';; |
9349 | *) | |
9350 | lt_prog_compiler_wl='-Wl,';; | |
9351 | esac | |
9352 | ;; | |
d9898ee8 | 9353 | |
8d138742 CE |
9354 | sunos4*) |
9355 | lt_prog_compiler_wl='-Qoption ld ' | |
9356 | lt_prog_compiler_pic='-PIC' | |
9357 | lt_prog_compiler_static='-Bstatic' | |
9358 | ;; | |
d9898ee8 | 9359 | |
8d138742 CE |
9360 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9361 | lt_prog_compiler_wl='-Wl,' | |
9362 | lt_prog_compiler_pic='-KPIC' | |
9363 | lt_prog_compiler_static='-Bstatic' | |
9364 | ;; | |
dd184caf | 9365 | |
8d138742 | 9366 | sysv4*MP*) |
d50284c4 | 9367 | if test -d /usr/nec; then |
8d138742 CE |
9368 | lt_prog_compiler_pic='-Kconform_pic' |
9369 | lt_prog_compiler_static='-Bstatic' | |
9370 | fi | |
9371 | ;; | |
d9898ee8 | 9372 | |
8d138742 CE |
9373 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9374 | lt_prog_compiler_wl='-Wl,' | |
9375 | lt_prog_compiler_pic='-KPIC' | |
9376 | lt_prog_compiler_static='-Bstatic' | |
9377 | ;; | |
d9898ee8 | 9378 | |
8d138742 CE |
9379 | unicos*) |
9380 | lt_prog_compiler_wl='-Wl,' | |
9381 | lt_prog_compiler_can_build_shared=no | |
9382 | ;; | |
d9898ee8 | 9383 | |
8d138742 CE |
9384 | uts4*) |
9385 | lt_prog_compiler_pic='-pic' | |
9386 | lt_prog_compiler_static='-Bstatic' | |
9387 | ;; | |
d9898ee8 | 9388 | |
8d138742 CE |
9389 | *) |
9390 | lt_prog_compiler_can_build_shared=no | |
9391 | ;; | |
d9898ee8 | 9392 | esac |
8d138742 | 9393 | fi |
d9898ee8 | 9394 | |
8d138742 | 9395 | case $host_os in |
d50284c4 | 9396 | # For platforms that do not support PIC, -DPIC is meaningless: |
8d138742 CE |
9397 | *djgpp*) |
9398 | lt_prog_compiler_pic= | |
9399 | ;; | |
9400 | *) | |
9401 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9402 | ;; | |
9403 | esac | |
d9898ee8 | 9404 | |
b0322a85 CE |
9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9406 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9407 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9408 | $as_echo_n "(cached) " >&6 | |
9409 | else | |
9410 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9411 | fi | |
9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9413 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9414 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 9415 | |
8d138742 CE |
9416 | # |
9417 | # Check to make sure the PIC flag actually works. | |
9418 | # | |
9419 | if test -n "$lt_prog_compiler_pic"; then | |
b0322a85 | 9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 9421 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 9422 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 CE |
9423 | $as_echo_n "(cached) " >&6 |
9424 | else | |
9425 | lt_cv_prog_compiler_pic_works=no | |
9426 | ac_outfile=conftest.$ac_objext | |
9427 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 9428 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
9429 | # Insert the option either (1) after the last *FLAGS variable, or |
9430 | # (2) before a word containing "conftest.", or (3) at the end. | |
9431 | # Note that $ac_compile itself does not contain backslashes and begins | |
9432 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9433 | # The option is referenced via a variable to avoid confusing sed. | |
9434 | lt_compile=`echo "$ac_compile" | $SED \ | |
9435 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9436 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9437 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9438 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9439 | (eval "$lt_compile" 2>conftest.err) |
9440 | ac_status=$? | |
9441 | cat conftest.err >&5 | |
b0322a85 | 9442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9443 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9444 | # The compiler can only warn and ignore the option if not recognized | |
9445 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 9446 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
9447 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9448 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9449 | lt_cv_prog_compiler_pic_works=yes | |
9450 | fi | |
9451 | fi | |
9452 | $RM conftest* | |
d9898ee8 | 9453 | |
8d138742 | 9454 | fi |
b0322a85 | 9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 9456 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
d9898ee8 | 9457 | |
d50284c4 | 9458 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8d138742 CE |
9459 | case $lt_prog_compiler_pic in |
9460 | "" | " "*) ;; | |
9461 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9462 | esac | |
d9898ee8 | 9463 | else |
8d138742 CE |
9464 | lt_prog_compiler_pic= |
9465 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 9466 | fi |
8d138742 | 9467 | |
d9898ee8 | 9468 | fi |
d9898ee8 | 9469 | |
9470 | ||
d9898ee8 | 9471 | |
d9898ee8 | 9472 | |
9473 | ||
dd184caf | 9474 | |
b0322a85 CE |
9475 | |
9476 | ||
9477 | ||
9478 | ||
9479 | ||
8d138742 CE |
9480 | # |
9481 | # Check to make sure the static flag actually works. | |
9482 | # | |
9483 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
b0322a85 | 9484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 9485 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 9486 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 | 9487 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 9488 | else |
8d138742 | 9489 | lt_cv_prog_compiler_static_works=no |
d50284c4 | 9490 | save_LDFLAGS=$LDFLAGS |
8d138742 CE |
9491 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
9492 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9493 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9494 | # The linker can only warn and ignore the option if not recognized | |
9495 | # So say no if there are warnings | |
9496 | if test -s conftest.err; then | |
9497 | # Append any errors to the config.log. | |
9498 | cat conftest.err 1>&5 | |
b0322a85 | 9499 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
9500 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9501 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9502 | lt_cv_prog_compiler_static_works=yes | |
9503 | fi | |
9504 | else | |
9505 | lt_cv_prog_compiler_static_works=yes | |
9506 | fi | |
9507 | fi | |
9508 | $RM -r conftest* | |
d50284c4 | 9509 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 9510 | |
d9898ee8 | 9511 | fi |
b0322a85 | 9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 CE |
9513 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
9514 | ||
d50284c4 | 9515 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
8d138742 | 9516 | : |
d9898ee8 | 9517 | else |
8d138742 | 9518 | lt_prog_compiler_static= |
d9898ee8 | 9519 | fi |
d9898ee8 | 9520 | |
9521 | ||
d9898ee8 | 9522 | |
d9898ee8 | 9523 | |
d9898ee8 | 9524 | |
d9898ee8 | 9525 | |
d9898ee8 | 9526 | |
b0322a85 | 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 9528 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 9529 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 | 9530 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 9531 | else |
8d138742 CE |
9532 | lt_cv_prog_compiler_c_o=no |
9533 | $RM -r conftest 2>/dev/null | |
9534 | mkdir conftest | |
9535 | cd conftest | |
9536 | mkdir out | |
9537 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 9538 | |
8d138742 CE |
9539 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9540 | # Insert the option either (1) after the last *FLAGS variable, or | |
9541 | # (2) before a word containing "conftest.", or (3) at the end. | |
9542 | # Note that $ac_compile itself does not contain backslashes and begins | |
9543 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9544 | lt_compile=`echo "$ac_compile" | $SED \ | |
9545 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9546 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9547 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9548 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9549 | (eval "$lt_compile" 2>out/conftest.err) |
9550 | ac_status=$? | |
9551 | cat out/conftest.err >&5 | |
b0322a85 | 9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9553 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9554 | then | |
9555 | # The compiler can only warn and ignore the option if not recognized | |
9556 | # So say no if there are warnings | |
b0322a85 | 9557 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
9558 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9559 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9560 | lt_cv_prog_compiler_c_o=yes | |
9561 | fi | |
9562 | fi | |
9563 | chmod u+w . 2>&5 | |
9564 | $RM conftest* | |
9565 | # SGI C++ compiler will create directory out/ii_files/ for | |
9566 | # template instantiation | |
9567 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9568 | $RM out/* && rmdir out | |
9569 | cd .. | |
9570 | $RM -r conftest | |
9571 | $RM conftest* | |
d9898ee8 | 9572 | |
8d138742 | 9573 | fi |
b0322a85 | 9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 9575 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 9576 | |
d9898ee8 | 9577 | |
d9898ee8 | 9578 | |
d9898ee8 | 9579 | |
d9898ee8 | 9580 | |
8d138742 | 9581 | |
b0322a85 | 9582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 9583 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 9584 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 | 9585 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 9586 | else |
8d138742 CE |
9587 | lt_cv_prog_compiler_c_o=no |
9588 | $RM -r conftest 2>/dev/null | |
9589 | mkdir conftest | |
9590 | cd conftest | |
9591 | mkdir out | |
9592 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 9593 | |
8d138742 CE |
9594 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9595 | # Insert the option either (1) after the last *FLAGS variable, or | |
9596 | # (2) before a word containing "conftest.", or (3) at the end. | |
9597 | # Note that $ac_compile itself does not contain backslashes and begins | |
9598 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9599 | lt_compile=`echo "$ac_compile" | $SED \ | |
9600 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9601 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9602 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9603 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9604 | (eval "$lt_compile" 2>out/conftest.err) |
9605 | ac_status=$? | |
9606 | cat out/conftest.err >&5 | |
b0322a85 | 9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9608 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9609 | then | |
9610 | # The compiler can only warn and ignore the option if not recognized | |
9611 | # So say no if there are warnings | |
b0322a85 | 9612 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
9613 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9614 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9615 | lt_cv_prog_compiler_c_o=yes | |
9616 | fi | |
9617 | fi | |
9618 | chmod u+w . 2>&5 | |
9619 | $RM conftest* | |
9620 | # SGI C++ compiler will create directory out/ii_files/ for | |
9621 | # template instantiation | |
9622 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9623 | $RM out/* && rmdir out | |
9624 | cd .. | |
9625 | $RM -r conftest | |
9626 | $RM conftest* | |
dd184caf | 9627 | |
d9898ee8 | 9628 | fi |
b0322a85 | 9629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 9630 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
dd184caf | 9631 | |
d9898ee8 | 9632 | |
d9898ee8 | 9633 | |
d9898ee8 | 9634 | |
d50284c4 CE |
9635 | hard_links=nottested |
9636 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8d138742 | 9637 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
9639 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
9640 | hard_links=yes | |
9641 | $RM conftest* | |
9642 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9643 | touch conftest.a | |
9644 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9645 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 9647 | $as_echo "$hard_links" >&6; } |
d50284c4 CE |
9648 | if test no = "$hard_links"; then |
9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9650 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
8d138742 CE |
9651 | need_locks=warn |
9652 | fi | |
9653 | else | |
9654 | need_locks=no | |
9655 | fi | |
d9898ee8 | 9656 | |
d9898ee8 | 9657 | |
d9898ee8 | 9658 | |
dd184caf | 9659 | |
dd184caf | 9660 | |
d9898ee8 | 9661 | |
b0322a85 | 9662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 9663 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 9664 | |
8d138742 CE |
9665 | runpath_var= |
9666 | allow_undefined_flag= | |
9667 | always_export_symbols=no | |
9668 | archive_cmds= | |
9669 | archive_expsym_cmds= | |
9670 | compiler_needs_object=no | |
9671 | enable_shared_with_static_runtimes=no | |
9672 | export_dynamic_flag_spec= | |
9673 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9674 | hardcode_automatic=no | |
9675 | hardcode_direct=no | |
9676 | hardcode_direct_absolute=no | |
9677 | hardcode_libdir_flag_spec= | |
8d138742 CE |
9678 | hardcode_libdir_separator= |
9679 | hardcode_minus_L=no | |
9680 | hardcode_shlibpath_var=unsupported | |
9681 | inherit_rpath=no | |
9682 | link_all_deplibs=unknown | |
9683 | module_cmds= | |
9684 | module_expsym_cmds= | |
9685 | old_archive_from_new_cmds= | |
9686 | old_archive_from_expsyms_cmds= | |
9687 | thread_safe_flag_spec= | |
9688 | whole_archive_flag_spec= | |
9689 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9690 | # included in the symbol list | |
9691 | include_expsyms= | |
9692 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
d50284c4 CE |
9693 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
9694 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9695 | # as well as any symbol that contains 'd'. | |
8d138742 CE |
9696 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9697 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9698 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9699 | # the symbol is explicitly referenced. Since portable code cannot | |
9700 | # rely on this symbol name, it's probably fine to never include it in | |
9701 | # preloaded symbol tables. | |
9702 | # Exclude shared library initialization/finalization symbols. | |
9703 | extract_expsyms_cmds= | |
9704 | ||
9705 | case $host_os in | |
9706 | cygwin* | mingw* | pw32* | cegcc*) | |
9707 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9708 | # When not using gcc, we currently assume that we are using | |
9709 | # Microsoft Visual C++. | |
d50284c4 | 9710 | if test yes != "$GCC"; then |
8d138742 | 9711 | with_gnu_ld=no |
d9898ee8 | 9712 | fi |
9713 | ;; | |
8d138742 CE |
9714 | interix*) |
9715 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9716 | with_gnu_ld=yes | |
d9898ee8 | 9717 | ;; |
d50284c4 | 9718 | openbsd* | bitrig*) |
8d138742 CE |
9719 | with_gnu_ld=no |
9720 | ;; | |
9721 | esac | |
d9898ee8 | 9722 | |
8d138742 | 9723 | ld_shlibs=yes |
b0322a85 CE |
9724 | |
9725 | # On some targets, GNU ld is compatible enough with the native linker | |
9726 | # that we're better off using the native interface for both. | |
9727 | lt_use_gnu_ld_interface=no | |
d50284c4 | 9728 | if test yes = "$with_gnu_ld"; then |
b0322a85 CE |
9729 | case $host_os in |
9730 | aix*) | |
9731 | # The AIX port of GNU ld has always aspired to compatibility | |
9732 | # with the native linker. However, as the warning in the GNU ld | |
9733 | # block says, versions before 2.19.5* couldn't really create working | |
9734 | # shared libraries, regardless of the interface used. | |
9735 | case `$LD -v 2>&1` in | |
9736 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9737 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9738 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9739 | *) | |
9740 | lt_use_gnu_ld_interface=yes | |
9741 | ;; | |
9742 | esac | |
9743 | ;; | |
9744 | *) | |
9745 | lt_use_gnu_ld_interface=yes | |
9746 | ;; | |
9747 | esac | |
9748 | fi | |
9749 | ||
d50284c4 | 9750 | if test yes = "$lt_use_gnu_ld_interface"; then |
8d138742 | 9751 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d50284c4 | 9752 | wlarc='$wl' |
8d138742 CE |
9753 | |
9754 | # Set some defaults for GNU ld with shared library support. These | |
9755 | # are reset later if shared libraries are not supported. Putting them | |
9756 | # here allows them to be overridden if necessary. | |
9757 | runpath_var=LD_RUN_PATH | |
d50284c4 CE |
9758 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9759 | export_dynamic_flag_spec='$wl--export-dynamic' | |
8d138742 CE |
9760 | # ancient GNU ld didn't support --whole-archive et. al. |
9761 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
d50284c4 | 9762 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
d9898ee8 | 9763 | else |
8d138742 | 9764 | whole_archive_flag_spec= |
d9898ee8 | 9765 | fi |
8d138742 | 9766 | supports_anon_versioning=no |
d50284c4 | 9767 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b0322a85 | 9768 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
9769 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9770 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9771 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9772 | *\ 2.11.*) ;; # other 2.11 versions | |
9773 | *) supports_anon_versioning=yes ;; | |
d9898ee8 | 9774 | esac |
8d138742 CE |
9775 | |
9776 | # See if GNU ld supports shared libraries. | |
9777 | case $host_os in | |
9778 | aix[3-9]*) | |
9779 | # On AIX/PPC, the GNU linker is very broken | |
d50284c4 | 9780 | if test ia64 != "$host_cpu"; then |
8d138742 CE |
9781 | ld_shlibs=no |
9782 | cat <<_LT_EOF 1>&2 | |
9783 | ||
b0322a85 | 9784 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
9785 | *** to be unable to reliably create shared libraries on AIX. |
9786 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
9787 | *** really care for shared libraries, you may want to install binutils |
9788 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9789 | *** You will then need to restart the configuration process. | |
8d138742 CE |
9790 | |
9791 | _LT_EOF | |
d9898ee8 | 9792 | fi |
9793 | ;; | |
d9898ee8 | 9794 | |
8d138742 | 9795 | amigaos*) |
d9898ee8 | 9796 | case $host_cpu in |
8d138742 CE |
9797 | powerpc) |
9798 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9799 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9800 | archive_expsym_cmds='' |
9801 | ;; | |
9802 | m68k) | |
9803 | 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)' | |
9804 | hardcode_libdir_flag_spec='-L$libdir' | |
9805 | hardcode_minus_L=yes | |
d9898ee8 | 9806 | ;; |
9807 | esac | |
d9898ee8 | 9808 | ;; |
8d138742 CE |
9809 | |
9810 | beos*) | |
9811 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9812 | allow_undefined_flag=unsupported | |
9813 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9814 | # support --undefined. This deserves some investigation. FIXME | |
d50284c4 | 9815 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9816 | else |
9817 | ld_shlibs=no | |
9818 | fi | |
d9898ee8 | 9819 | ;; |
d9898ee8 | 9820 | |
8d138742 CE |
9821 | cygwin* | mingw* | pw32* | cegcc*) |
9822 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9823 | # as there is no search path for DLLs. | |
9824 | hardcode_libdir_flag_spec='-L$libdir' | |
d50284c4 | 9825 | export_dynamic_flag_spec='$wl--export-all-symbols' |
8d138742 CE |
9826 | allow_undefined_flag=unsupported |
9827 | always_export_symbols=no | |
9828 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
9829 | 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' |
9830 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
8d138742 CE |
9831 | |
9832 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
d50284c4 CE |
9833 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9834 | # If the export-symbols file already is a .def file, use it as | |
9835 | # is; otherwise, prepend EXPORTS... | |
9836 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9837 | cp $export_symbols $output_objdir/$soname.def; | |
9838 | else | |
9839 | echo EXPORTS > $output_objdir/$soname.def; | |
9840 | cat $export_symbols >> $output_objdir/$soname.def; | |
9841 | fi~ | |
9842 | $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 |
9843 | else |
9844 | ld_shlibs=no | |
9845 | fi | |
9846 | ;; | |
9847 | ||
b0322a85 | 9848 | haiku*) |
d50284c4 | 9849 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b0322a85 CE |
9850 | link_all_deplibs=yes |
9851 | ;; | |
9852 | ||
d50284c4 CE |
9853 | os2*) |
9854 | hardcode_libdir_flag_spec='-L$libdir' | |
9855 | hardcode_minus_L=yes | |
9856 | allow_undefined_flag=unsupported | |
9857 | shrext_cmds=.dll | |
9858 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9859 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9860 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9861 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9862 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9863 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9864 | emximp -o $lib $output_objdir/$libname.def' | |
9865 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9866 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9867 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9868 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9869 | prefix_cmds="$SED"~ | |
9870 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9871 | prefix_cmds="$prefix_cmds -e 1d"; | |
9872 | fi~ | |
9873 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9874 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9875 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9876 | emximp -o $lib $output_objdir/$libname.def' | |
9877 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9878 | enable_shared_with_static_runtimes=yes | |
9879 | ;; | |
9880 | ||
8d138742 CE |
9881 | interix[3-9]*) |
9882 | hardcode_direct=no | |
9883 | hardcode_shlibpath_var=no | |
d50284c4 CE |
9884 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9885 | export_dynamic_flag_spec='$wl-E' | |
8d138742 CE |
9886 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9887 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9888 | # default) and relocated if they conflict, which is a slow very memory | |
9889 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9890 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9891 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
d50284c4 CE |
9892 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9893 | 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 CE |
9894 | ;; |
9895 | ||
b0322a85 | 9896 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 | 9897 | tmp_diet=no |
d50284c4 | 9898 | if test linux-dietlibc = "$host_os"; then |
8d138742 CE |
9899 | case $cc_basename in |
9900 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9901 | esac | |
9902 | fi | |
9903 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
d50284c4 | 9904 | && test no = "$tmp_diet" |
8d138742 | 9905 | then |
b0322a85 | 9906 | tmp_addflag=' $pic_flag' |
8d138742 CE |
9907 | tmp_sharedflag='-shared' |
9908 | case $cc_basename,$host_cpu in | |
9909 | pgcc*) # Portland Group C compiler | |
d50284c4 | 9910 | 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 | 9911 | tmp_addflag=' $pic_flag' |
d9898ee8 | 9912 | ;; |
b0322a85 CE |
9913 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9914 | # Portland Group f77 and f90 compilers | |
d50284c4 | 9915 | 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 |
9916 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9917 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9918 | tmp_addflag=' -i_dynamic' ;; | |
9919 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9920 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9921 | ifc* | ifort*) # Intel Fortran compiler | |
9922 | tmp_addflag=' -nofor_main' ;; | |
9923 | lf95*) # Lahey Fortran 8.1 | |
9924 | whole_archive_flag_spec= | |
9925 | tmp_sharedflag='--shared' ;; | |
d50284c4 CE |
9926 | nagfor*) # NAGFOR 5.3 |
9927 | tmp_sharedflag='-Wl,-shared' ;; | |
b0322a85 | 9928 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
9929 | tmp_sharedflag='-qmkshrobj' |
9930 | tmp_addflag= ;; | |
b0322a85 | 9931 | nvcc*) # Cuda Compiler Driver 2.2 |
d50284c4 | 9932 | 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 |
9933 | compiler_needs_object=yes |
9934 | ;; | |
d9898ee8 | 9935 | esac |
ac40fd9e | 9936 | case `$CC -V 2>&1 | sed 5q` in |
8d138742 | 9937 | *Sun\ C*) # Sun C 5.9 |
d50284c4 | 9938 | 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 |
9939 | compiler_needs_object=yes |
9940 | tmp_sharedflag='-G' ;; | |
9941 | *Sun\ F*) # Sun Fortran 8.3 | |
9942 | tmp_sharedflag='-G' ;; | |
9943 | esac | |
d50284c4 | 9944 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 | 9945 | |
d50284c4 | 9946 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9947 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9948 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9949 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9950 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
9951 | fi |
9952 | ||
9953 | case $cc_basename in | |
d50284c4 CE |
9954 | tcc*) |
9955 | export_dynamic_flag_spec='-rdynamic' | |
9956 | ;; | |
b0322a85 | 9957 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
9958 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9959 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
d50284c4 | 9960 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b0322a85 | 9961 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
d50284c4 | 9962 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9963 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9964 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9965 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9966 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8d138742 | 9967 | fi |
ac40fd9e | 9968 | ;; |
9969 | esac | |
8d138742 CE |
9970 | else |
9971 | ld_shlibs=no | |
ac40fd9e | 9972 | fi |
8d138742 | 9973 | ;; |
d9898ee8 | 9974 | |
8d138742 CE |
9975 | netbsd*) |
9976 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9977 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9978 | wlarc= | |
9979 | else | |
d50284c4 CE |
9980 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9981 | 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 |
9982 | fi |
9983 | ;; | |
d9898ee8 | 9984 | |
8d138742 CE |
9985 | solaris*) |
9986 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9987 | ld_shlibs=no | |
9988 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9989 | |
8d138742 CE |
9990 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9991 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9992 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9993 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9994 | *** your PATH or compiler configuration so that the native linker is | |
9995 | *** used, and then restart. | |
d9898ee8 | 9996 | |
8d138742 CE |
9997 | _LT_EOF |
9998 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9999 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10000 | 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 |
10001 | else |
10002 | ld_shlibs=no | |
10003 | fi | |
10004 | ;; | |
d9898ee8 | 10005 | |
8d138742 CE |
10006 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
10007 | case `$LD -v 2>&1` in | |
10008 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10009 | ld_shlibs=no | |
10010 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 10011 | |
d50284c4 | 10012 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
8d138742 CE |
10013 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
10014 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10015 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10016 | *** your PATH or compiler configuration so that the native linker is | |
10017 | *** used, and then restart. | |
d9898ee8 | 10018 | |
8d138742 | 10019 | _LT_EOF |
d9898ee8 | 10020 | ;; |
8d138742 CE |
10021 | *) |
10022 | # For security reasons, it is highly recommended that you always | |
10023 | # use absolute paths for naming shared libraries, and exclude the | |
10024 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10025 | # requires that you compile everything twice, which is a pain. | |
10026 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
10027 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10028 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10029 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
10030 | else |
10031 | ld_shlibs=no | |
10032 | fi | |
d9898ee8 | 10033 | ;; |
8d138742 CE |
10034 | esac |
10035 | ;; | |
d9898ee8 | 10036 | |
8d138742 CE |
10037 | sunos4*) |
10038 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10039 | wlarc= | |
10040 | hardcode_direct=yes | |
10041 | hardcode_shlibpath_var=no | |
10042 | ;; | |
d9898ee8 | 10043 | |
8d138742 CE |
10044 | *) |
10045 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
10046 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10047 | 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 |
10048 | else |
10049 | ld_shlibs=no | |
10050 | fi | |
10051 | ;; | |
d9898ee8 | 10052 | esac |
8d138742 | 10053 | |
d50284c4 | 10054 | if test no = "$ld_shlibs"; then |
8d138742 CE |
10055 | runpath_var= |
10056 | hardcode_libdir_flag_spec= | |
10057 | export_dynamic_flag_spec= | |
10058 | whole_archive_flag_spec= | |
10059 | fi | |
10060 | else | |
10061 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10062 | case $host_os in | |
10063 | aix3*) | |
10064 | allow_undefined_flag=unsupported | |
10065 | always_export_symbols=yes | |
10066 | 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' | |
10067 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10068 | # are no directories specified by -L. | |
10069 | hardcode_minus_L=yes | |
d50284c4 | 10070 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
8d138742 CE |
10071 | # Neither direct hardcoding nor static linking is supported with a |
10072 | # broken collect2. | |
10073 | hardcode_direct=unsupported | |
10074 | fi | |
10075 | ;; | |
10076 | ||
10077 | aix[4-9]*) | |
d50284c4 | 10078 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
10079 | # On IA64, the linker does run time linking by default, so we don't |
10080 | # have to do anything special. | |
10081 | aix_use_runtimelinking=no | |
10082 | exp_sym_flag='-Bexport' | |
d50284c4 | 10083 | no_entry_flag= |
8d138742 CE |
10084 | else |
10085 | # If we're using GNU nm, then we don't want the "-C" option. | |
d50284c4 CE |
10086 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
10087 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
10088 | # weak defined symbols like other global defined symbols, whereas | |
10089 | # GNU nm marks them as "W". | |
10090 | # While the 'weak' keyword is ignored in the Export File, we need | |
10091 | # it in the Import File for the 'aix-soname' feature, so we have | |
10092 | # to replace the "-B" option with "-P" for AIX nm. | |
8d138742 | 10093 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
d50284c4 | 10094 | 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 | 10095 | else |
d50284c4 | 10096 | 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 |
10097 | fi |
10098 | aix_use_runtimelinking=no | |
10099 | ||
10100 | # Test if we are trying to use run time linking or normal | |
10101 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
d50284c4 CE |
10102 | # have runtime linking enabled, and use it for executables. |
10103 | # For shared libraries, we enable/disable runtime linking | |
10104 | # depending on the kind of the shared library created - | |
10105 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
10106 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
10107 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
10108 | # lib.a static archive | |
10109 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
10110 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
10111 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10112 | # lib.a(lib.so.V) shared, rtl:no | |
10113 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10114 | # lib.a static archive | |
8d138742 CE |
10115 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
10116 | for ld_flag in $LDFLAGS; do | |
d50284c4 | 10117 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
8d138742 CE |
10118 | aix_use_runtimelinking=yes |
10119 | break | |
10120 | fi | |
10121 | done | |
d50284c4 CE |
10122 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
10123 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
10124 | # so we don't have lib.a shared libs to link our executables. | |
10125 | # We have to force runtime linking in this case. | |
10126 | aix_use_runtimelinking=yes | |
10127 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
10128 | fi | |
8d138742 | 10129 | ;; |
d9898ee8 | 10130 | esac |
d9898ee8 | 10131 | |
8d138742 CE |
10132 | exp_sym_flag='-bexport' |
10133 | no_entry_flag='-bnoentry' | |
10134 | fi | |
d9898ee8 | 10135 | |
8d138742 CE |
10136 | # When large executables or shared objects are built, AIX ld can |
10137 | # have problems creating the table of contents. If linking a library | |
10138 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10139 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10140 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 10141 | |
8d138742 CE |
10142 | archive_cmds='' |
10143 | hardcode_direct=yes | |
10144 | hardcode_direct_absolute=yes | |
10145 | hardcode_libdir_separator=':' | |
10146 | link_all_deplibs=yes | |
d50284c4 CE |
10147 | file_list_spec='$wl-f,' |
10148 | case $with_aix_soname,$aix_use_runtimelinking in | |
10149 | aix,*) ;; # traditional, no import file | |
10150 | svr4,* | *,yes) # use import file | |
10151 | # The Import File defines what to hardcode. | |
10152 | hardcode_direct=no | |
10153 | hardcode_direct_absolute=no | |
10154 | ;; | |
10155 | esac | |
8d138742 | 10156 | |
d50284c4 | 10157 | if test yes = "$GCC"; then |
8d138742 CE |
10158 | case $host_os in aix4.[012]|aix4.[012].*) |
10159 | # We only want to do this on AIX 4.2 and lower, the check | |
10160 | # below for broken collect2 doesn't work under 4.3+ | |
d50284c4 | 10161 | collect2name=`$CC -print-prog-name=collect2` |
8d138742 CE |
10162 | if test -f "$collect2name" && |
10163 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10164 | then | |
10165 | # We have reworked collect2 | |
10166 | : | |
d9898ee8 | 10167 | else |
8d138742 CE |
10168 | # We have old collect2 |
10169 | hardcode_direct=unsupported | |
10170 | # It fails to find uninstalled libraries when the uninstalled | |
10171 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10172 | # to unsupported forces relinking | |
10173 | hardcode_minus_L=yes | |
10174 | hardcode_libdir_flag_spec='-L$libdir' | |
10175 | hardcode_libdir_separator= | |
d9898ee8 | 10176 | fi |
8d138742 CE |
10177 | ;; |
10178 | esac | |
10179 | shared_flag='-shared' | |
d50284c4 CE |
10180 | if test yes = "$aix_use_runtimelinking"; then |
10181 | shared_flag="$shared_flag "'$wl-G' | |
d9898ee8 | 10182 | fi |
d50284c4 CE |
10183 | # Need to ensure runtime linking is disabled for the traditional |
10184 | # shared library, or the linker may eventually find shared libraries | |
10185 | # /with/ Import File - we do not want to mix them. | |
10186 | shared_flag_aix='-shared' | |
10187 | shared_flag_svr4='-shared $wl-G' | |
8d138742 CE |
10188 | else |
10189 | # not using gcc | |
d50284c4 | 10190 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
10191 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10192 | # chokes on -Wl,-G. The following line is correct: | |
10193 | shared_flag='-G' | |
10194 | else | |
d50284c4 CE |
10195 | if test yes = "$aix_use_runtimelinking"; then |
10196 | shared_flag='$wl-G' | |
8d138742 | 10197 | else |
d50284c4 | 10198 | shared_flag='$wl-bM:SRE' |
8d138742 | 10199 | fi |
d50284c4 CE |
10200 | shared_flag_aix='$wl-bM:SRE' |
10201 | shared_flag_svr4='$wl-G' | |
8d138742 CE |
10202 | fi |
10203 | fi | |
d9898ee8 | 10204 | |
d50284c4 | 10205 | export_dynamic_flag_spec='$wl-bexpall' |
8d138742 CE |
10206 | # It seems that -bexpall does not export symbols beginning with |
10207 | # underscore (_), so it is better to generate a list of symbols to export. | |
10208 | always_export_symbols=yes | |
d50284c4 | 10209 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
8d138742 CE |
10210 | # Warning - without using the other runtime loading flags (-brtl), |
10211 | # -berok will link without error, but may produce a broken library. | |
10212 | allow_undefined_flag='-berok' | |
10213 | # Determine the default libpath from the value encoded in an | |
10214 | # empty executable. | |
d50284c4 | 10215 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
10216 | aix_libpath=$lt_cv_aix_libpath |
10217 | else | |
10218 | if ${lt_cv_aix_libpath_+:} false; then : | |
10219 | $as_echo_n "(cached) " >&6 | |
10220 | else | |
10221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 10222 | /* end confdefs.h. */ |
d9898ee8 | 10223 | |
8d138742 CE |
10224 | int |
10225 | main () | |
d9898ee8 | 10226 | { |
d9898ee8 | 10227 | |
8d138742 CE |
10228 | ; |
10229 | return 0; | |
10230 | } | |
10231 | _ACEOF | |
b0322a85 | 10232 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 10233 | |
b0322a85 CE |
10234 | lt_aix_libpath_sed=' |
10235 | /Import File Strings/,/^$/ { | |
10236 | /^0/ { | |
10237 | s/^0 *\([^ ]*\) *$/\1/ | |
10238 | p | |
10239 | } | |
10240 | }' | |
10241 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10242 | # Check for a 64-bit object if we didn't find anything. | |
10243 | if test -z "$lt_cv_aix_libpath_"; then | |
10244 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10245 | fi | |
10246 | fi | |
10247 | rm -f core conftest.err conftest.$ac_objext \ | |
10248 | conftest$ac_exeext conftest.$ac_ext | |
10249 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 10250 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 10251 | fi |
d9898ee8 | 10252 | |
d9898ee8 | 10253 | fi |
10254 | ||
b0322a85 CE |
10255 | aix_libpath=$lt_cv_aix_libpath_ |
10256 | fi | |
d9898ee8 | 10257 | |
d50284c4 CE |
10258 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
10259 | 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 | 10260 | else |
d50284c4 CE |
10261 | if test ia64 = "$host_cpu"; then |
10262 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
8d138742 | 10263 | allow_undefined_flag="-z nodefs" |
d50284c4 | 10264 | 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 |
10265 | else |
10266 | # Determine the default libpath from the value encoded in an | |
10267 | # empty executable. | |
d50284c4 | 10268 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
10269 | aix_libpath=$lt_cv_aix_libpath |
10270 | else | |
10271 | if ${lt_cv_aix_libpath_+:} false; then : | |
10272 | $as_echo_n "(cached) " >&6 | |
10273 | else | |
10274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 10275 | /* end confdefs.h. */ |
ac40fd9e | 10276 | |
8d138742 CE |
10277 | int |
10278 | main () | |
10279 | { | |
ac40fd9e | 10280 | |
8d138742 CE |
10281 | ; |
10282 | return 0; | |
10283 | } | |
10284 | _ACEOF | |
b0322a85 | 10285 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 10286 | |
b0322a85 CE |
10287 | lt_aix_libpath_sed=' |
10288 | /Import File Strings/,/^$/ { | |
10289 | /^0/ { | |
10290 | s/^0 *\([^ ]*\) *$/\1/ | |
10291 | p | |
10292 | } | |
10293 | }' | |
10294 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10295 | # Check for a 64-bit object if we didn't find anything. | |
10296 | if test -z "$lt_cv_aix_libpath_"; then | |
10297 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10298 | fi | |
10299 | fi | |
10300 | rm -f core conftest.err conftest.$ac_objext \ | |
10301 | conftest$ac_exeext conftest.$ac_ext | |
10302 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 10303 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 10304 | fi |
d9898ee8 | 10305 | |
8d138742 | 10306 | fi |
d9898ee8 | 10307 | |
b0322a85 CE |
10308 | aix_libpath=$lt_cv_aix_libpath_ |
10309 | fi | |
d9898ee8 | 10310 | |
d50284c4 | 10311 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
8d138742 CE |
10312 | # Warning - without using the other run time loading flags, |
10313 | # -berok will link without error, but may produce a broken library. | |
d50284c4 CE |
10314 | no_undefined_flag=' $wl-bernotok' |
10315 | allow_undefined_flag=' $wl-berok' | |
10316 | if test yes = "$with_gnu_ld"; then | |
b0322a85 | 10317 | # We only use this code for GNU lds that support --whole-archive. |
d50284c4 | 10318 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b0322a85 CE |
10319 | else |
10320 | # Exported symbols can be pulled into shared objects from archives | |
10321 | whole_archive_flag_spec='$convenience' | |
10322 | fi | |
8d138742 | 10323 | archive_cmds_need_lc=yes |
d50284c4 CE |
10324 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
10325 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
10326 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
10327 | if test svr4 != "$with_aix_soname"; then | |
10328 | # This is similar to how AIX traditionally builds its shared libraries. | |
10329 | 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' | |
10330 | fi | |
10331 | if test aix != "$with_aix_soname"; then | |
10332 | 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' | |
10333 | else | |
10334 | # used by -dlpreopen to get the symbols | |
10335 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
10336 | fi | |
10337 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
8d138742 | 10338 | fi |
d9898ee8 | 10339 | fi |
10340 | ;; | |
8d138742 | 10341 | |
d9898ee8 | 10342 | amigaos*) |
d9898ee8 | 10343 | case $host_cpu in |
8d138742 CE |
10344 | powerpc) |
10345 | # see comment about AmigaOS4 .so support | |
d50284c4 | 10346 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
10347 | archive_expsym_cmds='' |
10348 | ;; | |
10349 | m68k) | |
10350 | 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)' | |
10351 | hardcode_libdir_flag_spec='-L$libdir' | |
10352 | hardcode_minus_L=yes | |
10353 | ;; | |
d9898ee8 | 10354 | esac |
10355 | ;; | |
d9898ee8 | 10356 | |
8d138742 CE |
10357 | bsdi[45]*) |
10358 | export_dynamic_flag_spec=-rdynamic | |
10359 | ;; | |
d9898ee8 | 10360 | |
8d138742 CE |
10361 | cygwin* | mingw* | pw32* | cegcc*) |
10362 | # When not using gcc, we currently assume that we are using | |
10363 | # Microsoft Visual C++. | |
10364 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10365 | # no search path for DLLs. | |
b0322a85 CE |
10366 | case $cc_basename in |
10367 | cl*) | |
10368 | # Native MSVC | |
10369 | hardcode_libdir_flag_spec=' ' | |
10370 | allow_undefined_flag=unsupported | |
10371 | always_export_symbols=yes | |
10372 | file_list_spec='@' | |
10373 | # Tell ltmain to make .lib files, not .a files. | |
10374 | libext=lib | |
10375 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 10376 | shrext_cmds=.dll |
b0322a85 | 10377 | # FIXME: Setting linknames here is a bad hack. |
d50284c4 CE |
10378 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
10379 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10380 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
10381 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
10382 | else | |
10383 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
10384 | fi~ | |
10385 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10386 | linknames=' | |
b0322a85 CE |
10387 | # The linker will not automatically build a static lib if we build a DLL. |
10388 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10389 | enable_shared_with_static_runtimes=yes | |
10390 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10391 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10392 | # Don't use ranlib | |
10393 | old_postinstall_cmds='chmod 644 $oldlib' | |
10394 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
d50284c4 CE |
10395 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
10396 | case $lt_outputfile in | |
10397 | *.exe|*.EXE) ;; | |
10398 | *) | |
10399 | lt_outputfile=$lt_outputfile.exe | |
10400 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
10401 | ;; | |
10402 | esac~ | |
10403 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
10404 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10405 | $RM "$lt_outputfile.manifest"; | |
10406 | fi' | |
b0322a85 CE |
10407 | ;; |
10408 | *) | |
10409 | # Assume MSVC wrapper | |
10410 | hardcode_libdir_flag_spec=' ' | |
10411 | allow_undefined_flag=unsupported | |
10412 | # Tell ltmain to make .lib files, not .a files. | |
10413 | libext=lib | |
10414 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 10415 | shrext_cmds=.dll |
b0322a85 CE |
10416 | # FIXME: Setting linknames here is a bad hack. |
10417 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10418 | # The linker will automatically build a .lib file if we build a DLL. | |
10419 | old_archive_from_new_cmds='true' | |
10420 | # FIXME: Should let the user specify the lib program. | |
10421 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10422 | enable_shared_with_static_runtimes=yes | |
10423 | ;; | |
10424 | esac | |
8d138742 | 10425 | ;; |
d9898ee8 | 10426 | |
8d138742 | 10427 | darwin* | rhapsody*) |
d9898ee8 | 10428 | |
d9898ee8 | 10429 | |
8d138742 CE |
10430 | archive_cmds_need_lc=no |
10431 | hardcode_direct=no | |
10432 | hardcode_automatic=yes | |
10433 | hardcode_shlibpath_var=unsupported | |
d50284c4 CE |
10434 | if test yes = "$lt_cv_ld_force_load"; then |
10435 | 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 |
10436 | |
10437 | else | |
10438 | whole_archive_flag_spec='' | |
10439 | fi | |
8d138742 | 10440 | link_all_deplibs=yes |
d50284c4 | 10441 | allow_undefined_flag=$_lt_dar_allow_undefined |
8d138742 | 10442 | case $cc_basename in |
d50284c4 | 10443 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
8d138742 CE |
10444 | *) _lt_dar_can_shared=$GCC ;; |
10445 | esac | |
d50284c4 | 10446 | if test yes = "$_lt_dar_can_shared"; then |
b0322a85 | 10447 | output_verbose_link_cmd=func_echo_all |
d50284c4 CE |
10448 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
10449 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
10450 | 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" | |
10451 | 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" | |
d9898ee8 | 10452 | |
8d138742 CE |
10453 | else |
10454 | ld_shlibs=no | |
10455 | fi | |
d9898ee8 | 10456 | |
8d138742 | 10457 | ;; |
d9898ee8 | 10458 | |
8d138742 CE |
10459 | dgux*) |
10460 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10461 | hardcode_libdir_flag_spec='-L$libdir' | |
10462 | hardcode_shlibpath_var=no | |
10463 | ;; | |
d9898ee8 | 10464 | |
8d138742 CE |
10465 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10466 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10467 | # does not break anything, and helps significantly (at the cost of a little | |
10468 | # extra space). | |
10469 | freebsd2.2*) | |
10470 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10471 | hardcode_libdir_flag_spec='-R$libdir' | |
10472 | hardcode_direct=yes | |
10473 | hardcode_shlibpath_var=no | |
10474 | ;; | |
d9898ee8 | 10475 | |
8d138742 | 10476 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
b0322a85 | 10477 | freebsd2.*) |
8d138742 CE |
10478 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10479 | hardcode_direct=yes | |
10480 | hardcode_minus_L=yes | |
10481 | hardcode_shlibpath_var=no | |
10482 | ;; | |
d9898ee8 | 10483 | |
8d138742 CE |
10484 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10485 | freebsd* | dragonfly*) | |
b0322a85 | 10486 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10487 | hardcode_libdir_flag_spec='-R$libdir' |
10488 | hardcode_direct=yes | |
10489 | hardcode_shlibpath_var=no | |
10490 | ;; | |
d9898ee8 | 10491 | |
8d138742 | 10492 | hpux9*) |
d50284c4 CE |
10493 | if test yes = "$GCC"; then |
10494 | 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 | 10495 | else |
d50284c4 | 10496 | 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 | 10497 | fi |
d50284c4 | 10498 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
8d138742 CE |
10499 | hardcode_libdir_separator=: |
10500 | hardcode_direct=yes | |
d9898ee8 | 10501 | |
8d138742 CE |
10502 | # hardcode_minus_L: Not really in the search PATH, |
10503 | # but as the default location of the library. | |
10504 | hardcode_minus_L=yes | |
d50284c4 | 10505 | export_dynamic_flag_spec='$wl-E' |
8d138742 | 10506 | ;; |
d9898ee8 | 10507 | |
8d138742 | 10508 | hpux10*) |
d50284c4 CE |
10509 | if test yes,no = "$GCC,$with_gnu_ld"; then |
10510 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10511 | else |
10512 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10513 | fi | |
d50284c4 CE |
10514 | if test no = "$with_gnu_ld"; then |
10515 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
10516 | hardcode_libdir_separator=: |
10517 | hardcode_direct=yes | |
10518 | hardcode_direct_absolute=yes | |
d50284c4 | 10519 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
10520 | # hardcode_minus_L: Not really in the search PATH, |
10521 | # but as the default location of the library. | |
10522 | hardcode_minus_L=yes | |
10523 | fi | |
d9898ee8 | 10524 | ;; |
d9898ee8 | 10525 | |
8d138742 | 10526 | hpux11*) |
d50284c4 | 10527 | if test yes,no = "$GCC,$with_gnu_ld"; then |
8d138742 CE |
10528 | case $host_cpu in |
10529 | hppa*64*) | |
d50284c4 | 10530 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10531 | ;; |
10532 | ia64*) | |
d50284c4 | 10533 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10534 | ;; |
10535 | *) | |
d50284c4 | 10536 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10537 | ;; |
10538 | esac | |
d9898ee8 | 10539 | else |
8d138742 CE |
10540 | case $host_cpu in |
10541 | hppa*64*) | |
d50284c4 | 10542 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10543 | ;; |
10544 | ia64*) | |
d50284c4 | 10545 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10546 | ;; |
10547 | *) | |
b0322a85 CE |
10548 | |
10549 | # Older versions of the 11.00 compiler do not understand -b yet | |
10550 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10552 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10553 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10554 | $as_echo_n "(cached) " >&6 | |
10555 | else | |
10556 | lt_cv_prog_compiler__b=no | |
d50284c4 | 10557 | save_LDFLAGS=$LDFLAGS |
b0322a85 CE |
10558 | LDFLAGS="$LDFLAGS -b" |
10559 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10560 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10561 | # The linker can only warn and ignore the option if not recognized | |
10562 | # So say no if there are warnings | |
10563 | if test -s conftest.err; then | |
10564 | # Append any errors to the config.log. | |
10565 | cat conftest.err 1>&5 | |
10566 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10567 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10568 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10569 | lt_cv_prog_compiler__b=yes | |
10570 | fi | |
10571 | else | |
10572 | lt_cv_prog_compiler__b=yes | |
10573 | fi | |
10574 | fi | |
10575 | $RM -r conftest* | |
d50284c4 | 10576 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
10577 | |
10578 | fi | |
10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10580 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10581 | ||
d50284c4 CE |
10582 | if test yes = "$lt_cv_prog_compiler__b"; then |
10583 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b0322a85 CE |
10584 | else |
10585 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10586 | fi | |
10587 | ||
8d138742 CE |
10588 | ;; |
10589 | esac | |
10590 | fi | |
d50284c4 CE |
10591 | if test no = "$with_gnu_ld"; then |
10592 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
10593 | hardcode_libdir_separator=: |
10594 | ||
10595 | case $host_cpu in | |
10596 | hppa*64*|ia64*) | |
10597 | hardcode_direct=no | |
10598 | hardcode_shlibpath_var=no | |
10599 | ;; | |
10600 | *) | |
10601 | hardcode_direct=yes | |
10602 | hardcode_direct_absolute=yes | |
d50284c4 | 10603 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
10604 | |
10605 | # hardcode_minus_L: Not really in the search PATH, | |
10606 | # but as the default location of the library. | |
10607 | hardcode_minus_L=yes | |
10608 | ;; | |
10609 | esac | |
d9898ee8 | 10610 | fi |
d9898ee8 | 10611 | ;; |
d9898ee8 | 10612 | |
8d138742 | 10613 | irix5* | irix6* | nonstopux*) |
d50284c4 CE |
10614 | if test yes = "$GCC"; then |
10615 | 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 |
10616 | # Try to use the -exported_symbol ld option, if it does not |
10617 | # work, assume that -exports_file does not work either and | |
10618 | # implicitly export all symbols. | |
b0322a85 CE |
10619 | # This should be the same for all languages, so no per-tag cache variable. |
10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10621 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10622 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10623 | $as_echo_n "(cached) " >&6 | |
10624 | else | |
d50284c4 CE |
10625 | save_LDFLAGS=$LDFLAGS |
10626 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b0322a85 CE |
10627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10628 | /* end confdefs.h. */ | |
10629 | int foo (void) { return 0; } | |
8d138742 | 10630 | _ACEOF |
b0322a85 CE |
10631 | if ac_fn_c_try_link "$LINENO"; then : |
10632 | lt_cv_irix_exported_symbol=yes | |
8d138742 | 10633 | else |
b0322a85 | 10634 | lt_cv_irix_exported_symbol=no |
8d138742 | 10635 | fi |
b0322a85 CE |
10636 | rm -f core conftest.err conftest.$ac_objext \ |
10637 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 10638 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
10639 | fi |
10640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10641 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
d50284c4 CE |
10642 | if test yes = "$lt_cv_irix_exported_symbol"; then |
10643 | 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 | 10644 | fi |
8d138742 | 10645 | else |
d50284c4 CE |
10646 | 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' |
10647 | 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 |
10648 | fi |
10649 | archive_cmds_need_lc='no' | |
d50284c4 | 10650 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10651 | hardcode_libdir_separator=: |
10652 | inherit_rpath=yes | |
10653 | link_all_deplibs=yes | |
10654 | ;; | |
d9898ee8 | 10655 | |
d50284c4 CE |
10656 | linux*) |
10657 | case $cc_basename in | |
10658 | tcc*) | |
10659 | # Fabrice Bellard et al's Tiny C Compiler | |
10660 | ld_shlibs=yes | |
10661 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10662 | ;; | |
10663 | esac | |
10664 | ;; | |
10665 | ||
8d138742 CE |
10666 | netbsd*) |
10667 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10668 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
d9898ee8 | 10669 | else |
8d138742 | 10670 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
d9898ee8 | 10671 | fi |
8d138742 CE |
10672 | hardcode_libdir_flag_spec='-R$libdir' |
10673 | hardcode_direct=yes | |
10674 | hardcode_shlibpath_var=no | |
d9898ee8 | 10675 | ;; |
d9898ee8 | 10676 | |
8d138742 CE |
10677 | newsos6) |
10678 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10679 | hardcode_direct=yes | |
d50284c4 | 10680 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10681 | hardcode_libdir_separator=: |
10682 | hardcode_shlibpath_var=no | |
10683 | ;; | |
d9898ee8 | 10684 | |
8d138742 CE |
10685 | *nto* | *qnx*) |
10686 | ;; | |
d9898ee8 | 10687 | |
d50284c4 | 10688 | openbsd* | bitrig*) |
8d138742 CE |
10689 | if test -f /usr/libexec/ld.so; then |
10690 | hardcode_direct=yes | |
10691 | hardcode_shlibpath_var=no | |
10692 | hardcode_direct_absolute=yes | |
d50284c4 | 10693 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
8d138742 | 10694 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d50284c4 CE |
10695 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
10696 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10697 | export_dynamic_flag_spec='$wl-E' | |
8d138742 | 10698 | else |
d50284c4 CE |
10699 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10700 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
8d138742 CE |
10701 | fi |
10702 | else | |
10703 | ld_shlibs=no | |
10704 | fi | |
10705 | ;; | |
d9898ee8 | 10706 | |
8d138742 CE |
10707 | os2*) |
10708 | hardcode_libdir_flag_spec='-L$libdir' | |
10709 | hardcode_minus_L=yes | |
10710 | allow_undefined_flag=unsupported | |
d50284c4 CE |
10711 | shrext_cmds=.dll |
10712 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10713 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10714 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10715 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10716 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10717 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10718 | emximp -o $lib $output_objdir/$libname.def' | |
10719 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10720 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10721 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10722 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10723 | prefix_cmds="$SED"~ | |
10724 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10725 | prefix_cmds="$prefix_cmds -e 1d"; | |
10726 | fi~ | |
10727 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10728 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10729 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10730 | emximp -o $lib $output_objdir/$libname.def' | |
10731 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10732 | enable_shared_with_static_runtimes=yes | |
8d138742 | 10733 | ;; |
d9898ee8 | 10734 | |
8d138742 | 10735 | osf3*) |
d50284c4 CE |
10736 | if test yes = "$GCC"; then |
10737 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10738 | 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 |
10739 | else |
10740 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 10741 | 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 |
10742 | fi |
10743 | archive_cmds_need_lc='no' | |
d50284c4 | 10744 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10745 | hardcode_libdir_separator=: |
10746 | ;; | |
d9898ee8 | 10747 | |
8d138742 | 10748 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
d50284c4 CE |
10749 | if test yes = "$GCC"; then |
10750 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10751 | 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' | |
10752 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
8d138742 CE |
10753 | else |
10754 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 10755 | 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 | 10756 | 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 | 10757 | $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' |
8d138742 CE |
10758 | |
10759 | # Both c and cxx compiler support -rpath directly | |
10760 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10761 | fi | |
10762 | archive_cmds_need_lc='no' | |
10763 | hardcode_libdir_separator=: | |
d9898ee8 | 10764 | ;; |
8d138742 CE |
10765 | |
10766 | solaris*) | |
10767 | no_undefined_flag=' -z defs' | |
d50284c4 CE |
10768 | if test yes = "$GCC"; then |
10769 | wlarc='$wl' | |
10770 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10771 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10772 | $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' |
d9898ee8 | 10773 | else |
8d138742 CE |
10774 | case `$CC -V 2>&1` in |
10775 | *"Compilers 5.0"*) | |
10776 | wlarc='' | |
d50284c4 | 10777 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8d138742 | 10778 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10779 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
8d138742 CE |
10780 | ;; |
10781 | *) | |
d50284c4 CE |
10782 | wlarc='$wl' |
10783 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10784 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10785 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
8d138742 CE |
10786 | ;; |
10787 | esac | |
d9898ee8 | 10788 | fi |
8d138742 CE |
10789 | hardcode_libdir_flag_spec='-R$libdir' |
10790 | hardcode_shlibpath_var=no | |
10791 | case $host_os in | |
10792 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10793 | *) | |
10794 | # The compiler driver will combine and reorder linker options, | |
d50284c4 | 10795 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
8d138742 CE |
10796 | # but is careful enough not to reorder. |
10797 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
d50284c4 CE |
10798 | if test yes = "$GCC"; then |
10799 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
8d138742 CE |
10800 | else |
10801 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10802 | fi | |
10803 | ;; | |
10804 | esac | |
10805 | link_all_deplibs=yes | |
d9898ee8 | 10806 | ;; |
8d138742 CE |
10807 | |
10808 | sunos4*) | |
d50284c4 | 10809 | if test sequent = "$host_vendor"; then |
8d138742 CE |
10810 | # Use $CC to link under sequent, because it throws in some extra .o |
10811 | # files that make .init and .fini sections work. | |
d50284c4 | 10812 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10813 | else |
10814 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10815 | fi | |
10816 | hardcode_libdir_flag_spec='-L$libdir' | |
10817 | hardcode_direct=yes | |
10818 | hardcode_minus_L=yes | |
10819 | hardcode_shlibpath_var=no | |
d9898ee8 | 10820 | ;; |
d9898ee8 | 10821 | |
8d138742 CE |
10822 | sysv4) |
10823 | case $host_vendor in | |
10824 | sni) | |
10825 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10826 | hardcode_direct=yes # is this really true??? | |
10827 | ;; | |
10828 | siemens) | |
10829 | ## LD is ld it makes a PLAMLIB | |
10830 | ## CC just makes a GrossModule. | |
10831 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10832 | reload_cmds='$CC -r -o $output$reload_objs' | |
10833 | hardcode_direct=no | |
10834 | ;; | |
10835 | motorola) | |
10836 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10837 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10838 | ;; | |
10839 | esac | |
10840 | runpath_var='LD_RUN_PATH' | |
10841 | hardcode_shlibpath_var=no | |
10842 | ;; | |
d9898ee8 | 10843 | |
8d138742 CE |
10844 | sysv4.3*) |
10845 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10846 | hardcode_shlibpath_var=no | |
10847 | export_dynamic_flag_spec='-Bexport' | |
10848 | ;; | |
ac40fd9e | 10849 | |
8d138742 CE |
10850 | sysv4*MP*) |
10851 | if test -d /usr/nec; then | |
10852 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10853 | hardcode_shlibpath_var=no | |
10854 | runpath_var=LD_RUN_PATH | |
10855 | hardcode_runpath_var=yes | |
10856 | ld_shlibs=yes | |
10857 | fi | |
10858 | ;; | |
d9898ee8 | 10859 | |
8d138742 | 10860 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d50284c4 | 10861 | no_undefined_flag='$wl-z,text' |
8d138742 CE |
10862 | archive_cmds_need_lc=no |
10863 | hardcode_shlibpath_var=no | |
10864 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 10865 | |
d50284c4 CE |
10866 | if test yes = "$GCC"; then |
10867 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10868 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10869 | else |
d50284c4 CE |
10870 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10871 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10872 | fi |
10873 | ;; | |
d9898ee8 | 10874 | |
8d138742 | 10875 | sysv5* | sco3.2v5* | sco5v6*) |
d50284c4 | 10876 | # Note: We CANNOT use -z defs as we might desire, because we do not |
8d138742 CE |
10877 | # link with -lc, and that would cause any symbols used from libc to |
10878 | # always be unresolved, which means just about no library would | |
10879 | # ever link correctly. If we're not using GNU ld we use -z text | |
10880 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10881 | # as -z defs. | |
d50284c4 CE |
10882 | no_undefined_flag='$wl-z,text' |
10883 | allow_undefined_flag='$wl-z,nodefs' | |
8d138742 CE |
10884 | archive_cmds_need_lc=no |
10885 | hardcode_shlibpath_var=no | |
d50284c4 | 10886 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
8d138742 CE |
10887 | hardcode_libdir_separator=':' |
10888 | link_all_deplibs=yes | |
d50284c4 | 10889 | export_dynamic_flag_spec='$wl-Bexport' |
8d138742 CE |
10890 | runpath_var='LD_RUN_PATH' |
10891 | ||
d50284c4 CE |
10892 | if test yes = "$GCC"; then |
10893 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10894 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10895 | else |
d50284c4 CE |
10896 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10897 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10898 | fi |
d9898ee8 | 10899 | ;; |
8d138742 CE |
10900 | |
10901 | uts4*) | |
10902 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10903 | hardcode_libdir_flag_spec='-L$libdir' | |
10904 | hardcode_shlibpath_var=no | |
d9898ee8 | 10905 | ;; |
d9898ee8 | 10906 | |
8d138742 CE |
10907 | *) |
10908 | ld_shlibs=no | |
10909 | ;; | |
10910 | esac | |
d9898ee8 | 10911 | |
d50284c4 | 10912 | if test sni = "$host_vendor"; then |
8d138742 CE |
10913 | case $host in |
10914 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
d50284c4 | 10915 | export_dynamic_flag_spec='$wl-Blargedynsym' |
8d138742 CE |
10916 | ;; |
10917 | esac | |
d9898ee8 | 10918 | fi |
8d138742 | 10919 | fi |
d9898ee8 | 10920 | |
b0322a85 | 10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 | 10922 | $as_echo "$ld_shlibs" >&6; } |
d50284c4 | 10923 | test no = "$ld_shlibs" && can_build_shared=no |
d9898ee8 | 10924 | |
8d138742 | 10925 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 10926 | |
d9898ee8 | 10927 | |
d9898ee8 | 10928 | |
d9898ee8 | 10929 | |
d9898ee8 | 10930 | |
d9898ee8 | 10931 | |
d9898ee8 | 10932 | |
d9898ee8 | 10933 | |
d9898ee8 | 10934 | |
d9898ee8 | 10935 | |
d9898ee8 | 10936 | |
ac40fd9e | 10937 | |
d9898ee8 | 10938 | |
d9898ee8 | 10939 | |
d9898ee8 | 10940 | |
8d138742 CE |
10941 | # |
10942 | # Do we need to explicitly link libc? | |
10943 | # | |
10944 | case "x$archive_cmds_need_lc" in | |
10945 | x|xyes) | |
10946 | # Assume -lc should be added | |
10947 | archive_cmds_need_lc=yes | |
d9898ee8 | 10948 | |
d50284c4 | 10949 | if test yes,yes = "$GCC,$enable_shared"; then |
8d138742 CE |
10950 | case $archive_cmds in |
10951 | *'~'*) | |
10952 | # FIXME: we may have to deal with multi-command sequences. | |
10953 | ;; | |
10954 | '$CC '*) | |
10955 | # Test whether the compiler implicitly links with -lc since on some | |
10956 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10957 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 10959 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
10960 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10961 | $as_echo_n "(cached) " >&6 | |
10962 | else | |
10963 | $RM conftest* | |
10964 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8d138742 | 10965 | |
b0322a85 | 10966 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
10967 | (eval $ac_compile) 2>&5 |
10968 | ac_status=$? | |
b0322a85 CE |
10969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10970 | test $ac_status = 0; } 2>conftest.err; then | |
10971 | soname=conftest | |
10972 | lib=conftest | |
10973 | libobjs=conftest.$ac_objext | |
10974 | deplibs= | |
10975 | wl=$lt_prog_compiler_wl | |
10976 | pic_flag=$lt_prog_compiler_pic | |
10977 | compiler_flags=-v | |
10978 | linker_flags=-v | |
10979 | verstring= | |
10980 | output_objdir=. | |
10981 | libname=conftest | |
10982 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10983 | allow_undefined_flag= | |
10984 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
10985 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10986 | ac_status=$? | |
b0322a85 CE |
10987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10988 | test $ac_status = 0; } | |
10989 | then | |
10990 | lt_cv_archive_cmds_need_lc=no | |
10991 | else | |
10992 | lt_cv_archive_cmds_need_lc=yes | |
10993 | fi | |
10994 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10995 | else | |
10996 | cat conftest.err 1>&5 | |
10997 | fi | |
10998 | $RM conftest* | |
10999 | ||
11000 | fi | |
11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11002 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11003 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
8d138742 | 11004 | ;; |
d9898ee8 | 11005 | esac |
11006 | fi | |
d9898ee8 | 11007 | ;; |
8d138742 | 11008 | esac |
d9898ee8 | 11009 | |
d9898ee8 | 11010 | |
d9898ee8 | 11011 | |
d9898ee8 | 11012 | |
d9898ee8 | 11013 | |
d9898ee8 | 11014 | |
d9898ee8 | 11015 | |
11016 | ||
d9898ee8 | 11017 | |
d9898ee8 | 11018 | |
d9898ee8 | 11019 | |
d9898ee8 | 11020 | |
d9898ee8 | 11021 | |
d9898ee8 | 11022 | |
d9898ee8 | 11023 | |
d9898ee8 | 11024 | |
d9898ee8 | 11025 | |
d9898ee8 | 11026 | |
d9898ee8 | 11027 | |
d9898ee8 | 11028 | |
d9898ee8 | 11029 | |
d9898ee8 | 11030 | |
d9898ee8 | 11031 | |
d9898ee8 | 11032 | |
d9898ee8 | 11033 | |
d9898ee8 | 11034 | |
d9898ee8 | 11035 | |
d9898ee8 | 11036 | |
d9898ee8 | 11037 | |
d9898ee8 | 11038 | |
d9898ee8 | 11039 | |
d9898ee8 | 11040 | |
d9898ee8 | 11041 | |
d9898ee8 | 11042 | |
d9898ee8 | 11043 | |
d9898ee8 | 11044 | |
d9898ee8 | 11045 | |
d9898ee8 | 11046 | |
d9898ee8 | 11047 | |
d9898ee8 | 11048 | |
d9898ee8 | 11049 | |
d9898ee8 | 11050 | |
d9898ee8 | 11051 | |
d9898ee8 | 11052 | |
d9898ee8 | 11053 | |
d9898ee8 | 11054 | |
d9898ee8 | 11055 | |
d9898ee8 | 11056 | |
d9898ee8 | 11057 | |
d9898ee8 | 11058 | |
d9898ee8 | 11059 | |
d9898ee8 | 11060 | |
d9898ee8 | 11061 | |
d9898ee8 | 11062 | |
d9898ee8 | 11063 | |
d9898ee8 | 11064 | |
d9898ee8 | 11065 | |
d9898ee8 | 11066 | |
d9898ee8 | 11067 | |
d9898ee8 | 11068 | |
d9898ee8 | 11069 | |
d9898ee8 | 11070 | |
d9898ee8 | 11071 | |
d9898ee8 | 11072 | |
d9898ee8 | 11073 | |
d9898ee8 | 11074 | |
d9898ee8 | 11075 | |
d9898ee8 | 11076 | |
d9898ee8 | 11077 | |
d9898ee8 | 11078 | |
d9898ee8 | 11079 | |
d9898ee8 | 11080 | |
d9898ee8 | 11081 | |
d9898ee8 | 11082 | |
d9898ee8 | 11083 | |
d9898ee8 | 11084 | |
d9898ee8 | 11085 | |
d9898ee8 | 11086 | |
d9898ee8 | 11087 | |
d9898ee8 | 11088 | |
d9898ee8 | 11089 | |
d9898ee8 | 11090 | |
d9898ee8 | 11091 | |
d9898ee8 | 11092 | |
d9898ee8 | 11093 | |
d9898ee8 | 11094 | |
d9898ee8 | 11095 | |
d9898ee8 | 11096 | |
d9898ee8 | 11097 | |
d9898ee8 | 11098 | |
d9898ee8 | 11099 | |
d9898ee8 | 11100 | |
d9898ee8 | 11101 | |
d9898ee8 | 11102 | |
d9898ee8 | 11103 | |
d9898ee8 | 11104 | |
d9898ee8 | 11105 | |
d9898ee8 | 11106 | |
d9898ee8 | 11107 | |
d9898ee8 | 11108 | |
d9898ee8 | 11109 | |
d9898ee8 | 11110 | |
d9898ee8 | 11111 | |
d9898ee8 | 11112 | |
11113 | ||
d9898ee8 | 11114 | |
11115 | ||
d9898ee8 | 11116 | |
d9898ee8 | 11117 | |
d9898ee8 | 11118 | |
d9898ee8 | 11119 | |
d9898ee8 | 11120 | |
d9898ee8 | 11121 | |
d9898ee8 | 11122 | |
d9898ee8 | 11123 | |
d9898ee8 | 11124 | |
d9898ee8 | 11125 | |
11126 | ||
d9898ee8 | 11127 | |
d9898ee8 | 11128 | |
11129 | ||
d9898ee8 | 11130 | |
11131 | ||
d9898ee8 | 11132 | |
d9898ee8 | 11133 | |
d9898ee8 | 11134 | |
d9898ee8 | 11135 | |
d9898ee8 | 11136 | |
d9898ee8 | 11137 | |
d9898ee8 | 11138 | |
d9898ee8 | 11139 | |
d9898ee8 | 11140 | |
d9898ee8 | 11141 | |
d9898ee8 | 11142 | |
d9898ee8 | 11143 | |
d9898ee8 | 11144 | |
d9898ee8 | 11145 | |
d9898ee8 | 11146 | |
d9898ee8 | 11147 | |
d9898ee8 | 11148 | |
d9898ee8 | 11149 | |
d9898ee8 | 11150 | |
d9898ee8 | 11151 | |
d9898ee8 | 11152 | |
d9898ee8 | 11153 | |
d9898ee8 | 11154 | |
d9898ee8 | 11155 | |
ac40fd9e | 11156 | |
d9898ee8 | 11157 | |
d9898ee8 | 11158 | |
d9898ee8 | 11159 | |
d9898ee8 | 11160 | |
b0322a85 | 11161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 | 11162 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
d9898ee8 | 11163 | |
d50284c4 | 11164 | if test yes = "$GCC"; then |
8d138742 | 11165 | case $host_os in |
d50284c4 CE |
11166 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
11167 | *) lt_awk_arg='/^libraries:/' ;; | |
8d138742 | 11168 | esac |
b0322a85 | 11169 | case $host_os in |
d50284c4 CE |
11170 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
11171 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b0322a85 CE |
11172 | esac |
11173 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11174 | case $lt_search_path_spec in | |
11175 | *\;*) | |
8d138742 CE |
11176 | # if the path contains ";" then we assume it to be the separator |
11177 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11178 | # assumed that no part of a normal pathname contains ";" but that should | |
11179 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
11180 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11181 | ;; | |
11182 | *) | |
11183 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11184 | ;; | |
11185 | esac | |
8d138742 | 11186 | # Ok, now we have the path, separated by spaces, we can step through it |
d50284c4 | 11187 | # and add multilib dir if necessary... |
8d138742 | 11188 | lt_tmp_lt_search_path_spec= |
d50284c4 CE |
11189 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
11190 | # ...but if some path component already ends with the multilib dir we assume | |
11191 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
11192 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
11193 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
11194 | lt_multi_os_dir= | |
11195 | ;; | |
11196 | esac | |
8d138742 | 11197 | for lt_sys_path in $lt_search_path_spec; do |
d50284c4 CE |
11198 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
11199 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
11200 | elif test -n "$lt_multi_os_dir"; then | |
8d138742 CE |
11201 | test -d "$lt_sys_path" && \ |
11202 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11203 | fi | |
11204 | done | |
b0322a85 | 11205 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d50284c4 CE |
11206 | BEGIN {RS = " "; FS = "/|\n";} { |
11207 | lt_foo = ""; | |
11208 | lt_count = 0; | |
8d138742 CE |
11209 | for (lt_i = NF; lt_i > 0; lt_i--) { |
11210 | if ($lt_i != "" && $lt_i != ".") { | |
11211 | if ($lt_i == "..") { | |
11212 | lt_count++; | |
11213 | } else { | |
11214 | if (lt_count == 0) { | |
d50284c4 | 11215 | lt_foo = "/" $lt_i lt_foo; |
8d138742 CE |
11216 | } else { |
11217 | lt_count--; | |
11218 | } | |
11219 | } | |
11220 | } | |
11221 | } | |
11222 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11223 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11224 | }'` | |
b0322a85 CE |
11225 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11226 | # for these hosts. | |
11227 | case $host_os in | |
11228 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
d50284c4 | 11229 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b0322a85 CE |
11230 | esac |
11231 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d9898ee8 | 11232 | else |
8d138742 | 11233 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
d9898ee8 | 11234 | fi |
8d138742 CE |
11235 | library_names_spec= |
11236 | libname_spec='lib$name' | |
11237 | soname_spec= | |
d50284c4 | 11238 | shrext_cmds=.so |
8d138742 CE |
11239 | postinstall_cmds= |
11240 | postuninstall_cmds= | |
11241 | finish_cmds= | |
11242 | finish_eval= | |
11243 | shlibpath_var= | |
11244 | shlibpath_overrides_runpath=unknown | |
11245 | version_type=none | |
11246 | dynamic_linker="$host_os ld.so" | |
11247 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11248 | need_lib_prefix=unknown | |
11249 | hardcode_into_libs=no | |
d9898ee8 | 11250 | |
8d138742 CE |
11251 | # when you set need_version to no, make sure it does not cause -set_version |
11252 | # flags to be left without arguments | |
11253 | need_version=unknown | |
d9898ee8 | 11254 | |
d50284c4 CE |
11255 | |
11256 | ||
d9898ee8 | 11257 | case $host_os in |
8d138742 | 11258 | aix3*) |
b0322a85 | 11259 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11260 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
8d138742 CE |
11261 | shlibpath_var=LIBPATH |
11262 | ||
11263 | # AIX 3 has no versioning support, so we append a major version to the name. | |
d50284c4 | 11264 | soname_spec='$libname$release$shared_ext$major' |
8d138742 CE |
11265 | ;; |
11266 | ||
11267 | aix[4-9]*) | |
b0322a85 | 11268 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11269 | need_lib_prefix=no |
11270 | need_version=no | |
11271 | hardcode_into_libs=yes | |
d50284c4 | 11272 | if test ia64 = "$host_cpu"; then |
8d138742 | 11273 | # AIX 5 supports IA64 |
d50284c4 | 11274 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
8d138742 CE |
11275 | shlibpath_var=LD_LIBRARY_PATH |
11276 | else | |
11277 | # With GCC up to 2.95.x, collect2 would create an import file | |
11278 | # for dependence libraries. The import file would start with | |
d50284c4 CE |
11279 | # the line '#! .'. This would cause the generated library to |
11280 | # depend on '.', always an invalid library. This was fixed in | |
8d138742 CE |
11281 | # development snapshots of GCC prior to 3.0. |
11282 | case $host_os in | |
11283 | aix4 | aix4.[01] | aix4.[01].*) | |
11284 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11285 | echo ' yes ' | |
d50284c4 | 11286 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
8d138742 CE |
11287 | : |
11288 | else | |
11289 | can_build_shared=no | |
11290 | fi | |
11291 | ;; | |
11292 | esac | |
d50284c4 CE |
11293 | # Using Import Files as archive members, it is possible to support |
11294 | # filename-based versioning of shared library archives on AIX. While | |
11295 | # this would work for both with and without runtime linking, it will | |
11296 | # prevent static linking of such archives. So we do filename-based | |
11297 | # shared library versioning with .so extension only, which is used | |
11298 | # when both runtime linking and shared linking is enabled. | |
11299 | # Unfortunately, runtime linking may impact performance, so we do | |
11300 | # not want this to be the default eventually. Also, we use the | |
11301 | # versioned .so libs for executables only if there is the -brtl | |
11302 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
11303 | # To allow for filename-based versioning support, we need to create | |
11304 | # libNAME.so.V as an archive file, containing: | |
11305 | # *) an Import File, referring to the versioned filename of the | |
11306 | # archive as well as the shared archive member, telling the | |
11307 | # bitwidth (32 or 64) of that shared object, and providing the | |
11308 | # list of exported symbols of that shared object, eventually | |
11309 | # decorated with the 'weak' keyword | |
11310 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
11311 | # it being seen by the linker. | |
11312 | # At run time we better use the real file rather than another symlink, | |
11313 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
11314 | ||
11315 | case $with_aix_soname,$aix_use_runtimelinking in | |
11316 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
8d138742 CE |
11317 | # soname into executable. Probably we can add versioning support to |
11318 | # collect2, so additional links can be useful in future. | |
d50284c4 CE |
11319 | aix,yes) # traditional libtool |
11320 | dynamic_linker='AIX unversionable lib.so' | |
8d138742 CE |
11321 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11322 | # instead of lib<name>.a to let people know that these are not | |
11323 | # typical AIX shared libraries. | |
d50284c4 CE |
11324 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11325 | ;; | |
11326 | aix,no) # traditional AIX only | |
11327 | dynamic_linker='AIX lib.a(lib.so.V)' | |
8d138742 CE |
11328 | # We preserve .a as extension for shared libraries through AIX4.2 |
11329 | # and later when we are not doing run time linking. | |
d50284c4 CE |
11330 | library_names_spec='$libname$release.a $libname.a' |
11331 | soname_spec='$libname$release$shared_ext$major' | |
11332 | ;; | |
11333 | svr4,*) # full svr4 only | |
11334 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
11335 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11336 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11337 | shlibpath_overrides_runpath=yes | |
11338 | ;; | |
11339 | *,yes) # both, prefer svr4 | |
11340 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
11341 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11342 | # unpreferred sharedlib libNAME.a needs extra handling | |
11343 | 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"' | |
11344 | 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"' | |
11345 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11346 | shlibpath_overrides_runpath=yes | |
11347 | ;; | |
11348 | *,no) # both, prefer aix | |
11349 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
11350 | library_names_spec='$libname$release.a $libname.a' | |
11351 | soname_spec='$libname$release$shared_ext$major' | |
11352 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
11353 | 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)' | |
11354 | 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"' | |
11355 | ;; | |
11356 | esac | |
8d138742 CE |
11357 | shlibpath_var=LIBPATH |
11358 | fi | |
11359 | ;; | |
11360 | ||
11361 | amigaos*) | |
11362 | case $host_cpu in | |
11363 | powerpc) | |
11364 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11365 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
d50284c4 | 11366 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
d9898ee8 | 11367 | ;; |
8d138742 CE |
11368 | m68k) |
11369 | library_names_spec='$libname.ixlibrary $libname.a' | |
11370 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
d50284c4 | 11371 | 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' |
d9898ee8 | 11372 | ;; |
8d138742 CE |
11373 | esac |
11374 | ;; | |
d9898ee8 | 11375 | |
8d138742 | 11376 | beos*) |
d50284c4 | 11377 | library_names_spec='$libname$shared_ext' |
8d138742 CE |
11378 | dynamic_linker="$host_os ld.so" |
11379 | shlibpath_var=LIBRARY_PATH | |
11380 | ;; | |
d9898ee8 | 11381 | |
8d138742 | 11382 | bsdi[45]*) |
b0322a85 | 11383 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 | 11384 | need_version=no |
d50284c4 CE |
11385 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11386 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11387 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11388 | shlibpath_var=LD_LIBRARY_PATH | |
11389 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11390 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11391 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11392 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11393 | # libtool to hard-code these into programs | |
11394 | ;; | |
d9898ee8 | 11395 | |
8d138742 CE |
11396 | cygwin* | mingw* | pw32* | cegcc*) |
11397 | version_type=windows | |
d50284c4 | 11398 | shrext_cmds=.dll |
8d138742 CE |
11399 | need_version=no |
11400 | need_lib_prefix=no | |
d9898ee8 | 11401 | |
b0322a85 CE |
11402 | case $GCC,$cc_basename in |
11403 | yes,*) | |
11404 | # gcc | |
8d138742 CE |
11405 | library_names_spec='$libname.dll.a' |
11406 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
11407 | postinstall_cmds='base_file=`basename \$file`~ |
11408 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
8d138742 CE |
11409 | dldir=$destdir/`dirname \$dlpath`~ |
11410 | test -d \$dldir || mkdir -p \$dldir~ | |
11411 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11412 | chmod a+x \$dldir/$dlname~ | |
11413 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11414 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11415 | fi' | |
11416 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11417 | dlpath=$dir/\$dldll~ | |
11418 | $RM \$dlpath' | |
11419 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 11420 | |
8d138742 CE |
11421 | case $host_os in |
11422 | cygwin*) | |
11423 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
d50284c4 | 11424 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b0322a85 CE |
11425 | |
11426 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
8d138742 CE |
11427 | ;; |
11428 | mingw* | cegcc*) | |
11429 | # MinGW DLLs use traditional 'lib' prefix | |
d50284c4 | 11430 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
8d138742 CE |
11431 | ;; |
11432 | pw32*) | |
11433 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
d50284c4 | 11434 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
8d138742 CE |
11435 | ;; |
11436 | esac | |
b0322a85 CE |
11437 | dynamic_linker='Win32 ld.exe' |
11438 | ;; | |
11439 | ||
11440 | *,cl*) | |
11441 | # Native MSVC | |
11442 | libname_spec='$name' | |
d50284c4 CE |
11443 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
11444 | library_names_spec='$libname.dll.lib' | |
b0322a85 CE |
11445 | |
11446 | case $build_os in | |
11447 | mingw*) | |
11448 | sys_lib_search_path_spec= | |
11449 | lt_save_ifs=$IFS | |
11450 | IFS=';' | |
11451 | for lt_path in $LIB | |
11452 | do | |
11453 | IFS=$lt_save_ifs | |
11454 | # Let DOS variable expansion print the short 8.3 style file name. | |
11455 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11456 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11457 | done | |
11458 | IFS=$lt_save_ifs | |
11459 | # Convert to MSYS style. | |
11460 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11461 | ;; | |
11462 | cygwin*) | |
11463 | # Convert to unix form, then to dos form, then back to unix form | |
11464 | # but this time dos style (no spaces!) so that the unix form looks | |
11465 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11466 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11467 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11468 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11469 | ;; | |
11470 | *) | |
d50284c4 | 11471 | sys_lib_search_path_spec=$LIB |
b0322a85 CE |
11472 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
11473 | # It is most probably a Windows format PATH. | |
11474 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11475 | else | |
11476 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11477 | fi | |
11478 | # FIXME: find the short name or the path components, as spaces are | |
11479 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11480 | ;; | |
11481 | esac | |
11482 | ||
11483 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
11484 | postinstall_cmds='base_file=`basename \$file`~ |
11485 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b0322a85 CE |
11486 | dldir=$destdir/`dirname \$dlpath`~ |
11487 | test -d \$dldir || mkdir -p \$dldir~ | |
11488 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11489 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11490 | dlpath=$dir/\$dldll~ | |
11491 | $RM \$dlpath' | |
11492 | shlibpath_overrides_runpath=yes | |
11493 | dynamic_linker='Win32 link.exe' | |
8d138742 | 11494 | ;; |
d9898ee8 | 11495 | |
8d138742 | 11496 | *) |
b0322a85 | 11497 | # Assume MSVC wrapper |
d50284c4 | 11498 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b0322a85 | 11499 | dynamic_linker='Win32 ld.exe' |
8d138742 CE |
11500 | ;; |
11501 | esac | |
8d138742 CE |
11502 | # FIXME: first we should search . and the directory the executable is in |
11503 | shlibpath_var=PATH | |
11504 | ;; | |
d9898ee8 | 11505 | |
8d138742 CE |
11506 | darwin* | rhapsody*) |
11507 | dynamic_linker="$host_os dyld" | |
11508 | version_type=darwin | |
11509 | need_lib_prefix=no | |
11510 | need_version=no | |
d50284c4 CE |
11511 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
11512 | soname_spec='$libname$release$major$shared_ext' | |
8d138742 CE |
11513 | shlibpath_overrides_runpath=yes |
11514 | shlibpath_var=DYLD_LIBRARY_PATH | |
11515 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
d9898ee8 | 11516 | |
8d138742 CE |
11517 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11518 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11519 | ;; | |
d9898ee8 | 11520 | |
8d138742 | 11521 | dgux*) |
b0322a85 | 11522 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11523 | need_lib_prefix=no |
11524 | need_version=no | |
d50284c4 CE |
11525 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11526 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11527 | shlibpath_var=LD_LIBRARY_PATH |
11528 | ;; | |
d9898ee8 | 11529 | |
8d138742 CE |
11530 | freebsd* | dragonfly*) |
11531 | # DragonFly does not have aout. When/if they implement a new | |
11532 | # versioning mechanism, adjust this. | |
11533 | if test -x /usr/bin/objformat; then | |
11534 | objformat=`/usr/bin/objformat` | |
11535 | else | |
11536 | case $host_os in | |
b0322a85 | 11537 | freebsd[23].*) objformat=aout ;; |
8d138742 CE |
11538 | *) objformat=elf ;; |
11539 | esac | |
11540 | fi | |
11541 | version_type=freebsd-$objformat | |
11542 | case $version_type in | |
11543 | freebsd-elf*) | |
d50284c4 CE |
11544 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11545 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11546 | need_version=no |
11547 | need_lib_prefix=no | |
11548 | ;; | |
11549 | freebsd-*) | |
d50284c4 | 11550 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
8d138742 CE |
11551 | need_version=yes |
11552 | ;; | |
d9898ee8 | 11553 | esac |
8d138742 | 11554 | shlibpath_var=LD_LIBRARY_PATH |
d9898ee8 | 11555 | case $host_os in |
b0322a85 | 11556 | freebsd2.*) |
8d138742 | 11557 | shlibpath_overrides_runpath=yes |
d9898ee8 | 11558 | ;; |
8d138742 CE |
11559 | freebsd3.[01]* | freebsdelf3.[01]*) |
11560 | shlibpath_overrides_runpath=yes | |
11561 | hardcode_into_libs=yes | |
d9898ee8 | 11562 | ;; |
8d138742 CE |
11563 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
11564 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11565 | shlibpath_overrides_runpath=no | |
11566 | hardcode_into_libs=yes | |
11567 | ;; | |
11568 | *) # from 4.6 on, and DragonFly | |
11569 | shlibpath_overrides_runpath=yes | |
11570 | hardcode_into_libs=yes | |
d9898ee8 | 11571 | ;; |
11572 | esac | |
8d138742 | 11573 | ;; |
d9898ee8 | 11574 | |
b0322a85 CE |
11575 | haiku*) |
11576 | version_type=linux # correct to gnu/linux during the next big refactor | |
11577 | need_lib_prefix=no | |
11578 | need_version=no | |
11579 | dynamic_linker="$host_os runtime_loader" | |
d50284c4 CE |
11580 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11581 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 | 11582 | shlibpath_var=LIBRARY_PATH |
d50284c4 | 11583 | shlibpath_overrides_runpath=no |
b0322a85 | 11584 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
8d138742 CE |
11585 | hardcode_into_libs=yes |
11586 | ;; | |
d9898ee8 | 11587 | |
8d138742 CE |
11588 | hpux9* | hpux10* | hpux11*) |
11589 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11590 | # link against other versions. | |
11591 | version_type=sunos | |
11592 | need_lib_prefix=no | |
11593 | need_version=no | |
11594 | case $host_cpu in | |
11595 | ia64*) | |
11596 | shrext_cmds='.so' | |
11597 | hardcode_into_libs=yes | |
11598 | dynamic_linker="$host_os dld.so" | |
11599 | shlibpath_var=LD_LIBRARY_PATH | |
11600 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
11601 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11602 | soname_spec='$libname$release$shared_ext$major' | |
11603 | if test 32 = "$HPUX_IA64_MODE"; then | |
8d138742 | 11604 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
d50284c4 | 11605 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
8d138742 CE |
11606 | else |
11607 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d50284c4 | 11608 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
d9898ee8 | 11609 | fi |
8d138742 CE |
11610 | ;; |
11611 | hppa*64*) | |
11612 | shrext_cmds='.sl' | |
11613 | hardcode_into_libs=yes | |
11614 | dynamic_linker="$host_os dld.sl" | |
11615 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11616 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
11617 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11618 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11619 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
11620 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11621 | ;; | |
11622 | *) | |
11623 | shrext_cmds='.sl' | |
11624 | dynamic_linker="$host_os dld.sl" | |
11625 | shlibpath_var=SHLIB_PATH | |
11626 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
d50284c4 CE |
11627 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11628 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11629 | ;; |
11630 | esac | |
b0322a85 | 11631 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
8d138742 | 11632 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
11633 | # or fails outright, so override atomically: |
11634 | install_override_mode=555 | |
8d138742 CE |
11635 | ;; |
11636 | ||
11637 | interix[3-9]*) | |
b0322a85 | 11638 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11639 | need_lib_prefix=no |
11640 | need_version=no | |
d50284c4 CE |
11641 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11642 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11643 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
11644 | shlibpath_var=LD_LIBRARY_PATH | |
11645 | shlibpath_overrides_runpath=no | |
11646 | hardcode_into_libs=yes | |
11647 | ;; | |
11648 | ||
11649 | irix5* | irix6* | nonstopux*) | |
11650 | case $host_os in | |
11651 | nonstopux*) version_type=nonstopux ;; | |
11652 | *) | |
d50284c4 | 11653 | if test yes = "$lt_cv_prog_gnu_ld"; then |
b0322a85 | 11654 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11655 | else |
11656 | version_type=irix | |
11657 | fi ;; | |
11658 | esac | |
11659 | need_lib_prefix=no | |
11660 | need_version=no | |
d50284c4 CE |
11661 | soname_spec='$libname$release$shared_ext$major' |
11662 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
8d138742 CE |
11663 | case $host_os in |
11664 | irix5* | nonstopux*) | |
11665 | libsuff= shlibsuff= | |
11666 | ;; | |
11667 | *) | |
11668 | case $LD in # libtool.m4 will add one of these switches to LD | |
11669 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11670 | libsuff= shlibsuff= libmagic=32-bit;; | |
11671 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11672 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11673 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11674 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11675 | *) libsuff= shlibsuff= libmagic=never-match;; | |
d9898ee8 | 11676 | esac |
8d138742 CE |
11677 | ;; |
11678 | esac | |
11679 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11680 | shlibpath_overrides_runpath=no | |
d50284c4 CE |
11681 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
11682 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
8d138742 CE |
11683 | hardcode_into_libs=yes |
11684 | ;; | |
d9898ee8 | 11685 | |
8d138742 CE |
11686 | # No shared lib support for Linux oldld, aout, or coff. |
11687 | linux*oldld* | linux*aout* | linux*coff*) | |
11688 | dynamic_linker=no | |
11689 | ;; | |
d9898ee8 | 11690 | |
d50284c4 CE |
11691 | linux*android*) |
11692 | version_type=none # Android doesn't support versioned libraries. | |
11693 | need_lib_prefix=no | |
11694 | need_version=no | |
11695 | library_names_spec='$libname$release$shared_ext' | |
11696 | soname_spec='$libname$release$shared_ext' | |
11697 | finish_cmds= | |
11698 | shlibpath_var=LD_LIBRARY_PATH | |
11699 | shlibpath_overrides_runpath=yes | |
11700 | ||
11701 | # This implies no fast_install, which is unacceptable. | |
11702 | # Some rework will be needed to allow for fast_install | |
11703 | # before this can be enabled. | |
11704 | hardcode_into_libs=yes | |
11705 | ||
11706 | dynamic_linker='Android linker' | |
11707 | # Don't embed -rpath directories since the linker doesn't support them. | |
11708 | hardcode_libdir_flag_spec='-L$libdir' | |
11709 | ;; | |
11710 | ||
b0322a85 | 11711 | # This must be glibc/ELF. |
d50284c4 | 11712 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 | 11713 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11714 | need_lib_prefix=no |
11715 | need_version=no | |
d50284c4 CE |
11716 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11717 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11718 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11719 | shlibpath_var=LD_LIBRARY_PATH | |
11720 | shlibpath_overrides_runpath=no | |
b0322a85 | 11721 | |
8d138742 | 11722 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
11723 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
11724 | $as_echo_n "(cached) " >&6 | |
11725 | else | |
11726 | lt_cv_shlibpath_overrides_runpath=no | |
11727 | save_LDFLAGS=$LDFLAGS | |
11728 | save_libdir=$libdir | |
11729 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11730 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 11732 | /* end confdefs.h. */ |
d9898ee8 | 11733 | |
8d138742 CE |
11734 | int |
11735 | main () | |
11736 | { | |
d9898ee8 | 11737 | |
8d138742 CE |
11738 | ; |
11739 | return 0; | |
11740 | } | |
11741 | _ACEOF | |
b0322a85 CE |
11742 | if ac_fn_c_try_link "$LINENO"; then : |
11743 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11744 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 11745 | fi |
b0322a85 CE |
11746 | fi |
11747 | rm -f core conftest.err conftest.$ac_objext \ | |
11748 | conftest$ac_exeext conftest.$ac_ext | |
11749 | LDFLAGS=$save_LDFLAGS | |
11750 | libdir=$save_libdir | |
d9898ee8 | 11751 | |
8d138742 | 11752 | fi |
d9898ee8 | 11753 | |
b0322a85 | 11754 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
d9898ee8 | 11755 | |
8d138742 CE |
11756 | # This implies no fast_install, which is unacceptable. |
11757 | # Some rework will be needed to allow for fast_install | |
11758 | # before this can be enabled. | |
11759 | hardcode_into_libs=yes | |
d9898ee8 | 11760 | |
8d138742 CE |
11761 | # Add ABI-specific directories to the system library path. |
11762 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 11763 | |
d50284c4 CE |
11764 | # Ideally, we could use ldconfig to report *all* directores which are |
11765 | # searched for libraries, however this is still not possible. Aside from not | |
11766 | # being certain /sbin/ldconfig is available, command | |
11767 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11768 | # even though it is searched at run-time. Try to do the best guess by | |
11769 | # appending ld.so.conf contents (and includes) to the search path. | |
8d138742 | 11770 | if test -f /etc/ld.so.conf; then |
b0322a85 | 11771 | 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 |
11772 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
11773 | fi | |
d9898ee8 | 11774 | |
8d138742 CE |
11775 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11776 | # powerpc, because MkLinux only supported shared libraries with the | |
11777 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11778 | # most powerpc-linux boxes support dynamic linking these days and | |
11779 | # people can always --disable-shared, the test was removed, and we | |
11780 | # assume the GNU/Linux dynamic linker is in use. | |
11781 | dynamic_linker='GNU/Linux ld.so' | |
11782 | ;; | |
d9898ee8 | 11783 | |
8d138742 CE |
11784 | netbsd*) |
11785 | version_type=sunos | |
11786 | need_lib_prefix=no | |
11787 | need_version=no | |
11788 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
d50284c4 | 11789 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
8d138742 CE |
11790 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11791 | dynamic_linker='NetBSD (a.out) ld.so' | |
11792 | else | |
d50284c4 CE |
11793 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11794 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11795 | dynamic_linker='NetBSD ld.elf_so' |
11796 | fi | |
11797 | shlibpath_var=LD_LIBRARY_PATH | |
11798 | shlibpath_overrides_runpath=yes | |
11799 | hardcode_into_libs=yes | |
11800 | ;; | |
d9898ee8 | 11801 | |
8d138742 | 11802 | newsos6) |
b0322a85 | 11803 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11804 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11805 | shlibpath_var=LD_LIBRARY_PATH |
11806 | shlibpath_overrides_runpath=yes | |
11807 | ;; | |
d9898ee8 | 11808 | |
8d138742 CE |
11809 | *nto* | *qnx*) |
11810 | version_type=qnx | |
11811 | need_lib_prefix=no | |
11812 | need_version=no | |
d50284c4 CE |
11813 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11814 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11815 | shlibpath_var=LD_LIBRARY_PATH |
11816 | shlibpath_overrides_runpath=no | |
11817 | hardcode_into_libs=yes | |
11818 | dynamic_linker='ldqnx.so' | |
11819 | ;; | |
d9898ee8 | 11820 | |
d50284c4 | 11821 | openbsd* | bitrig*) |
8d138742 | 11822 | version_type=sunos |
d50284c4 | 11823 | sys_lib_dlsearch_path_spec=/usr/lib |
8d138742 | 11824 | need_lib_prefix=no |
d50284c4 CE |
11825 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11826 | need_version=no | |
8d138742 | 11827 | else |
d50284c4 | 11828 | need_version=yes |
8d138742 | 11829 | fi |
d50284c4 CE |
11830 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11831 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11832 | shlibpath_var=LD_LIBRARY_PATH | |
11833 | shlibpath_overrides_runpath=yes | |
8d138742 | 11834 | ;; |
d9898ee8 | 11835 | |
8d138742 CE |
11836 | os2*) |
11837 | libname_spec='$name' | |
d50284c4 CE |
11838 | version_type=windows |
11839 | shrext_cmds=.dll | |
11840 | need_version=no | |
8d138742 | 11841 | need_lib_prefix=no |
d50284c4 CE |
11842 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11843 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11844 | v=$($ECHO $release$versuffix | tr -d .-); | |
11845 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11846 | $ECHO $n$v`$shared_ext' | |
11847 | library_names_spec='${libname}_dll.$libext' | |
8d138742 | 11848 | dynamic_linker='OS/2 ld.exe' |
d50284c4 CE |
11849 | shlibpath_var=BEGINLIBPATH |
11850 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11851 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11852 | postinstall_cmds='base_file=`basename \$file`~ | |
11853 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11854 | dldir=$destdir/`dirname \$dlpath`~ | |
11855 | test -d \$dldir || mkdir -p \$dldir~ | |
11856 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11857 | chmod a+x \$dldir/$dlname~ | |
11858 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11859 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11860 | fi' | |
11861 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11862 | dlpath=$dir/\$dldll~ | |
11863 | $RM \$dlpath' | |
8d138742 | 11864 | ;; |
d9898ee8 | 11865 | |
8d138742 CE |
11866 | osf3* | osf4* | osf5*) |
11867 | version_type=osf | |
11868 | need_lib_prefix=no | |
11869 | need_version=no | |
d50284c4 CE |
11870 | soname_spec='$libname$release$shared_ext$major' |
11871 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
8d138742 CE |
11872 | shlibpath_var=LD_LIBRARY_PATH |
11873 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
d50284c4 | 11874 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8d138742 | 11875 | ;; |
d9898ee8 | 11876 | |
8d138742 CE |
11877 | rdos*) |
11878 | dynamic_linker=no | |
11879 | ;; | |
d9898ee8 | 11880 | |
8d138742 | 11881 | solaris*) |
b0322a85 | 11882 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11883 | need_lib_prefix=no |
11884 | need_version=no | |
d50284c4 CE |
11885 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11886 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11887 | shlibpath_var=LD_LIBRARY_PATH |
11888 | shlibpath_overrides_runpath=yes | |
11889 | hardcode_into_libs=yes | |
11890 | # ldd complains unless libraries are executable | |
11891 | postinstall_cmds='chmod +x $lib' | |
11892 | ;; | |
d9898ee8 | 11893 | |
8d138742 CE |
11894 | sunos4*) |
11895 | version_type=sunos | |
d50284c4 | 11896 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
8d138742 CE |
11897 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11898 | shlibpath_var=LD_LIBRARY_PATH | |
11899 | shlibpath_overrides_runpath=yes | |
d50284c4 | 11900 | if test yes = "$with_gnu_ld"; then |
8d138742 CE |
11901 | need_lib_prefix=no |
11902 | fi | |
11903 | need_version=yes | |
11904 | ;; | |
d9898ee8 | 11905 | |
8d138742 | 11906 | sysv4 | sysv4.3*) |
b0322a85 | 11907 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11908 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11909 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11910 | shlibpath_var=LD_LIBRARY_PATH |
11911 | case $host_vendor in | |
11912 | sni) | |
11913 | shlibpath_overrides_runpath=no | |
11914 | need_lib_prefix=no | |
11915 | runpath_var=LD_RUN_PATH | |
11916 | ;; | |
11917 | siemens) | |
11918 | need_lib_prefix=no | |
11919 | ;; | |
11920 | motorola) | |
11921 | need_lib_prefix=no | |
11922 | need_version=no | |
11923 | shlibpath_overrides_runpath=no | |
11924 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11925 | ;; | |
11926 | esac | |
11927 | ;; | |
d9898ee8 | 11928 | |
8d138742 | 11929 | sysv4*MP*) |
d50284c4 | 11930 | if test -d /usr/nec; then |
b0322a85 | 11931 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11932 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11933 | soname_spec='$libname$shared_ext.$major' | |
8d138742 CE |
11934 | shlibpath_var=LD_LIBRARY_PATH |
11935 | fi | |
11936 | ;; | |
d9898ee8 | 11937 | |
8d138742 | 11938 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
d50284c4 | 11939 | version_type=sco |
8d138742 CE |
11940 | need_lib_prefix=no |
11941 | need_version=no | |
d50284c4 CE |
11942 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11943 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11944 | shlibpath_var=LD_LIBRARY_PATH |
11945 | shlibpath_overrides_runpath=yes | |
11946 | hardcode_into_libs=yes | |
d50284c4 | 11947 | if test yes = "$with_gnu_ld"; then |
8d138742 CE |
11948 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11949 | else | |
11950 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11951 | case $host_os in | |
11952 | sco3.2v5*) | |
11953 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11954 | ;; | |
11955 | esac | |
11956 | fi | |
11957 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11958 | ;; | |
d9898ee8 | 11959 | |
8d138742 CE |
11960 | tpf*) |
11961 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 11962 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11963 | need_lib_prefix=no |
11964 | need_version=no | |
d50284c4 | 11965 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11966 | shlibpath_var=LD_LIBRARY_PATH |
11967 | shlibpath_overrides_runpath=no | |
11968 | hardcode_into_libs=yes | |
11969 | ;; | |
d9898ee8 | 11970 | |
8d138742 | 11971 | uts4*) |
b0322a85 | 11972 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11973 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11974 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11975 | shlibpath_var=LD_LIBRARY_PATH |
11976 | ;; | |
11977 | ||
11978 | *) | |
11979 | dynamic_linker=no | |
11980 | ;; | |
dd184caf | 11981 | esac |
b0322a85 | 11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 | 11983 | $as_echo "$dynamic_linker" >&6; } |
d50284c4 | 11984 | test no = "$dynamic_linker" && can_build_shared=no |
d9898ee8 | 11985 | |
8d138742 | 11986 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
d50284c4 | 11987 | if test yes = "$GCC"; then |
8d138742 | 11988 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
ac40fd9e | 11989 | fi |
dd184caf | 11990 | |
d50284c4 CE |
11991 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11992 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
8d138742 | 11993 | fi |
d50284c4 CE |
11994 | |
11995 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11996 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
d9898ee8 | 11997 | fi |
dd184caf | 11998 | |
d50284c4 CE |
11999 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
12000 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
12001 | ||
12002 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
12003 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
12004 | ||
12005 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
12006 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
12007 | ||
12008 | ||
12009 | ||
12010 | ||
12011 | ||
12012 | ||
d9898ee8 | 12013 | |
d9898ee8 | 12014 | |
d9898ee8 | 12015 | |
d9898ee8 | 12016 | |
dd184caf | 12017 | |
dd184caf | 12018 | |
d9898ee8 | 12019 | |
d9898ee8 | 12020 | |
d9898ee8 | 12021 | |
d9898ee8 | 12022 | |
d9898ee8 | 12023 | |
d9898ee8 | 12024 | |
d9898ee8 | 12025 | |
d9898ee8 | 12026 | |
d9898ee8 | 12027 | |
d9898ee8 | 12028 | |
d9898ee8 | 12029 | |
d9898ee8 | 12030 | |
d9898ee8 | 12031 | |
d9898ee8 | 12032 | |
d9898ee8 | 12033 | |
d9898ee8 | 12034 | |
d9898ee8 | 12035 | |
d9898ee8 | 12036 | |
d9898ee8 | 12037 | |
d9898ee8 | 12038 | |
d9898ee8 | 12039 | |
d9898ee8 | 12040 | |
d9898ee8 | 12041 | |
d9898ee8 | 12042 | |
d9898ee8 | 12043 | |
d9898ee8 | 12044 | |
d9898ee8 | 12045 | |
d9898ee8 | 12046 | |
d9898ee8 | 12047 | |
d9898ee8 | 12048 | |
d9898ee8 | 12049 | |
d9898ee8 | 12050 | |
d9898ee8 | 12051 | |
d9898ee8 | 12052 | |
d9898ee8 | 12053 | |
d9898ee8 | 12054 | |
d9898ee8 | 12055 | |
d9898ee8 | 12056 | |
d9898ee8 | 12057 | |
d9898ee8 | 12058 | |
d9898ee8 | 12059 | |
d9898ee8 | 12060 | |
ac40fd9e | 12061 | |
d9898ee8 | 12062 | |
d9898ee8 | 12063 | |
d9898ee8 | 12064 | |
d9898ee8 | 12065 | |
d9898ee8 | 12066 | |
d9898ee8 | 12067 | |
d9898ee8 | 12068 | |
d9898ee8 | 12069 | |
d9898ee8 | 12070 | |
d9898ee8 | 12071 | |
d9898ee8 | 12072 | |
d9898ee8 | 12073 | |
ac40fd9e | 12074 | |
d9898ee8 | 12075 | |
d9898ee8 | 12076 | |
d9898ee8 | 12077 | |
d9898ee8 | 12078 | |
d9898ee8 | 12079 | |
d9898ee8 | 12080 | |
d9898ee8 | 12081 | |
d9898ee8 | 12082 | |
d9898ee8 | 12083 | |
d9898ee8 | 12084 | |
d9898ee8 | 12085 | |
d9898ee8 | 12086 | |
d9898ee8 | 12087 | |
d9898ee8 | 12088 | |
d9898ee8 | 12089 | |
d9898ee8 | 12090 | |
d9898ee8 | 12091 | |
d9898ee8 | 12092 | |
ac40fd9e | 12093 | |
d9898ee8 | 12094 | |
d9898ee8 | 12095 | |
d9898ee8 | 12096 | |
d9898ee8 | 12097 | |
d9898ee8 | 12098 | |
b0322a85 CE |
12099 | |
12100 | ||
12101 | ||
12102 | ||
12103 | ||
12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
12105 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
12106 | hardcode_action= | |
12107 | if test -n "$hardcode_libdir_flag_spec" || | |
12108 | test -n "$runpath_var" || | |
d50284c4 | 12109 | test yes = "$hardcode_automatic"; then |
d9898ee8 | 12110 | |
8d138742 | 12111 | # We can hardcode non-existent directories. |
d50284c4 | 12112 | if test no != "$hardcode_direct" && |
d9898ee8 | 12113 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12114 | # have to relink, otherwise we might link with an installed library | |
12115 | # when we should be linking with a yet-to-be-installed one | |
d50284c4 CE |
12116 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
12117 | test no != "$hardcode_minus_L"; then | |
d9898ee8 | 12118 | # Linking always hardcodes the temporary library directory. |
8d138742 | 12119 | hardcode_action=relink |
d9898ee8 | 12120 | else |
12121 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8d138742 | 12122 | hardcode_action=immediate |
d9898ee8 | 12123 | fi |
12124 | else | |
12125 | # We cannot hardcode anything, or else we can only hardcode existing | |
12126 | # directories. | |
8d138742 | 12127 | hardcode_action=unsupported |
d9898ee8 | 12128 | fi |
b0322a85 | 12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 | 12130 | $as_echo "$hardcode_action" >&6; } |
d9898ee8 | 12131 | |
d50284c4 CE |
12132 | if test relink = "$hardcode_action" || |
12133 | test yes = "$inherit_rpath"; then | |
d9898ee8 | 12134 | # Fast installation is not supported |
12135 | enable_fast_install=no | |
d50284c4 CE |
12136 | elif test yes = "$shlibpath_overrides_runpath" || |
12137 | test no = "$enable_shared"; then | |
d9898ee8 | 12138 | # Fast installation is not necessary |
12139 | enable_fast_install=needless | |
12140 | fi | |
12141 | ||
12142 | ||
d9898ee8 | 12143 | |
d9898ee8 | 12144 | |
d9898ee8 | 12145 | |
d9898ee8 | 12146 | |
d50284c4 | 12147 | if test yes != "$enable_dlopen"; then |
8d138742 CE |
12148 | enable_dlopen=unknown |
12149 | enable_dlopen_self=unknown | |
12150 | enable_dlopen_self_static=unknown | |
12151 | else | |
12152 | lt_cv_dlopen=no | |
12153 | lt_cv_dlopen_libs= | |
d9898ee8 | 12154 | |
8d138742 CE |
12155 | case $host_os in |
12156 | beos*) | |
d50284c4 | 12157 | lt_cv_dlopen=load_add_on |
8d138742 CE |
12158 | lt_cv_dlopen_libs= |
12159 | lt_cv_dlopen_self=yes | |
12160 | ;; | |
d9898ee8 | 12161 | |
8d138742 | 12162 | mingw* | pw32* | cegcc*) |
d50284c4 | 12163 | lt_cv_dlopen=LoadLibrary |
8d138742 CE |
12164 | lt_cv_dlopen_libs= |
12165 | ;; | |
d9898ee8 | 12166 | |
8d138742 | 12167 | cygwin*) |
d50284c4 | 12168 | lt_cv_dlopen=dlopen |
8d138742 CE |
12169 | lt_cv_dlopen_libs= |
12170 | ;; | |
d9898ee8 | 12171 | |
8d138742 | 12172 | darwin*) |
d50284c4 | 12173 | # if libdl is installed we need to link against it |
b0322a85 | 12174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 12175 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 12176 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
12177 | $as_echo_n "(cached) " >&6 |
12178 | else | |
12179 | ac_check_lib_save_LIBS=$LIBS | |
12180 | LIBS="-ldl $LIBS" | |
b0322a85 | 12181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12182 | /* end confdefs.h. */ |
d9898ee8 | 12183 | |
8d138742 CE |
12184 | /* Override any GCC internal prototype to avoid an error. |
12185 | Use char because int might match the return type of a GCC | |
12186 | builtin and then its argument prototype would still apply. */ | |
12187 | #ifdef __cplusplus | |
12188 | extern "C" | |
12189 | #endif | |
12190 | char dlopen (); | |
12191 | int | |
12192 | main () | |
12193 | { | |
12194 | return dlopen (); | |
12195 | ; | |
12196 | return 0; | |
12197 | } | |
12198 | _ACEOF | |
b0322a85 | 12199 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12200 | ac_cv_lib_dl_dlopen=yes |
12201 | else | |
b0322a85 | 12202 | ac_cv_lib_dl_dlopen=no |
8d138742 | 12203 | fi |
b0322a85 CE |
12204 | rm -f core conftest.err conftest.$ac_objext \ |
12205 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12206 | LIBS=$ac_check_lib_save_LIBS |
12207 | fi | |
b0322a85 | 12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 12209 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 12210 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 12211 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 12212 | else |
d9898ee8 | 12213 | |
d50284c4 | 12214 | lt_cv_dlopen=dyld |
8d138742 CE |
12215 | lt_cv_dlopen_libs= |
12216 | lt_cv_dlopen_self=yes | |
d9898ee8 | 12217 | |
8d138742 | 12218 | fi |
d9898ee8 | 12219 | |
8d138742 | 12220 | ;; |
d9898ee8 | 12221 | |
d50284c4 CE |
12222 | tpf*) |
12223 | # Don't try to run any link tests for TPF. We know it's impossible | |
12224 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
12225 | lt_cv_dlopen=dlopen | |
12226 | lt_cv_dlopen_libs= | |
12227 | lt_cv_dlopen_self=no | |
12228 | ;; | |
12229 | ||
8d138742 | 12230 | *) |
b0322a85 CE |
12231 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
12232 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d50284c4 | 12233 | lt_cv_dlopen=shl_load |
8d138742 | 12234 | else |
b0322a85 | 12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
8d138742 | 12236 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
b0322a85 | 12237 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
8d138742 CE |
12238 | $as_echo_n "(cached) " >&6 |
12239 | else | |
12240 | ac_check_lib_save_LIBS=$LIBS | |
12241 | LIBS="-ldld $LIBS" | |
b0322a85 | 12242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12243 | /* end confdefs.h. */ |
d9898ee8 | 12244 | |
8d138742 CE |
12245 | /* Override any GCC internal prototype to avoid an error. |
12246 | Use char because int might match the return type of a GCC | |
12247 | builtin and then its argument prototype would still apply. */ | |
12248 | #ifdef __cplusplus | |
12249 | extern "C" | |
12250 | #endif | |
12251 | char shl_load (); | |
12252 | int | |
12253 | main () | |
12254 | { | |
12255 | return shl_load (); | |
12256 | ; | |
12257 | return 0; | |
12258 | } | |
12259 | _ACEOF | |
b0322a85 | 12260 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12261 | ac_cv_lib_dld_shl_load=yes |
12262 | else | |
b0322a85 | 12263 | ac_cv_lib_dld_shl_load=no |
8d138742 | 12264 | fi |
b0322a85 CE |
12265 | rm -f core conftest.err conftest.$ac_objext \ |
12266 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12267 | LIBS=$ac_check_lib_save_LIBS |
12268 | fi | |
b0322a85 | 12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
8d138742 | 12270 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
b0322a85 | 12271 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d50284c4 | 12272 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
8d138742 | 12273 | else |
b0322a85 CE |
12274 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
12275 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
d50284c4 | 12276 | lt_cv_dlopen=dlopen |
8d138742 | 12277 | else |
b0322a85 | 12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 12279 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 12280 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
12281 | $as_echo_n "(cached) " >&6 |
12282 | else | |
12283 | ac_check_lib_save_LIBS=$LIBS | |
12284 | LIBS="-ldl $LIBS" | |
b0322a85 | 12285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12286 | /* end confdefs.h. */ |
d9898ee8 | 12287 | |
8d138742 CE |
12288 | /* Override any GCC internal prototype to avoid an error. |
12289 | Use char because int might match the return type of a GCC | |
12290 | builtin and then its argument prototype would still apply. */ | |
12291 | #ifdef __cplusplus | |
12292 | extern "C" | |
12293 | #endif | |
12294 | char dlopen (); | |
12295 | int | |
12296 | main () | |
12297 | { | |
12298 | return dlopen (); | |
12299 | ; | |
12300 | return 0; | |
12301 | } | |
12302 | _ACEOF | |
b0322a85 | 12303 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12304 | ac_cv_lib_dl_dlopen=yes |
12305 | else | |
b0322a85 | 12306 | ac_cv_lib_dl_dlopen=no |
8d138742 | 12307 | fi |
b0322a85 CE |
12308 | rm -f core conftest.err conftest.$ac_objext \ |
12309 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12310 | LIBS=$ac_check_lib_save_LIBS |
12311 | fi | |
b0322a85 | 12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 12313 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 12314 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 12315 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 12316 | else |
b0322a85 | 12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 12318 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 12319 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
12320 | $as_echo_n "(cached) " >&6 |
12321 | else | |
12322 | ac_check_lib_save_LIBS=$LIBS | |
12323 | LIBS="-lsvld $LIBS" | |
b0322a85 | 12324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12325 | /* end confdefs.h. */ |
d9898ee8 | 12326 | |
8d138742 CE |
12327 | /* Override any GCC internal prototype to avoid an error. |
12328 | Use char because int might match the return type of a GCC | |
12329 | builtin and then its argument prototype would still apply. */ | |
12330 | #ifdef __cplusplus | |
12331 | extern "C" | |
12332 | #endif | |
12333 | char dlopen (); | |
12334 | int | |
12335 | main () | |
12336 | { | |
12337 | return dlopen (); | |
12338 | ; | |
12339 | return 0; | |
12340 | } | |
12341 | _ACEOF | |
b0322a85 | 12342 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12343 | ac_cv_lib_svld_dlopen=yes |
12344 | else | |
b0322a85 | 12345 | ac_cv_lib_svld_dlopen=no |
8d138742 | 12346 | fi |
b0322a85 CE |
12347 | rm -f core conftest.err conftest.$ac_objext \ |
12348 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12349 | LIBS=$ac_check_lib_save_LIBS |
12350 | fi | |
b0322a85 | 12351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 12352 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 12353 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d50284c4 | 12354 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
8d138742 | 12355 | else |
b0322a85 | 12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 12357 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 12358 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
12359 | $as_echo_n "(cached) " >&6 |
12360 | else | |
12361 | ac_check_lib_save_LIBS=$LIBS | |
12362 | LIBS="-ldld $LIBS" | |
b0322a85 | 12363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12364 | /* end confdefs.h. */ |
d9898ee8 | 12365 | |
8d138742 CE |
12366 | /* Override any GCC internal prototype to avoid an error. |
12367 | Use char because int might match the return type of a GCC | |
12368 | builtin and then its argument prototype would still apply. */ | |
12369 | #ifdef __cplusplus | |
12370 | extern "C" | |
12371 | #endif | |
12372 | char dld_link (); | |
12373 | int | |
12374 | main () | |
12375 | { | |
12376 | return dld_link (); | |
12377 | ; | |
12378 | return 0; | |
12379 | } | |
12380 | _ACEOF | |
b0322a85 | 12381 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12382 | ac_cv_lib_dld_dld_link=yes |
12383 | else | |
b0322a85 | 12384 | ac_cv_lib_dld_dld_link=no |
8d138742 | 12385 | fi |
b0322a85 CE |
12386 | rm -f core conftest.err conftest.$ac_objext \ |
12387 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12388 | LIBS=$ac_check_lib_save_LIBS |
12389 | fi | |
b0322a85 | 12390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 12391 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 12392 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d50284c4 | 12393 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
8d138742 | 12394 | fi |
d9898ee8 | 12395 | |
d9898ee8 | 12396 | |
8d138742 | 12397 | fi |
d9898ee8 | 12398 | |
d9898ee8 | 12399 | |
8d138742 | 12400 | fi |
d9898ee8 | 12401 | |
d9898ee8 | 12402 | |
8d138742 | 12403 | fi |
d9898ee8 | 12404 | |
d9898ee8 | 12405 | |
8d138742 | 12406 | fi |
d9898ee8 | 12407 | |
d9898ee8 | 12408 | |
8d138742 | 12409 | fi |
d9898ee8 | 12410 | |
8d138742 CE |
12411 | ;; |
12412 | esac | |
d9898ee8 | 12413 | |
d50284c4 | 12414 | if test no = "$lt_cv_dlopen"; then |
8d138742 | 12415 | enable_dlopen=no |
d50284c4 CE |
12416 | else |
12417 | enable_dlopen=yes | |
8d138742 | 12418 | fi |
d9898ee8 | 12419 | |
8d138742 CE |
12420 | case $lt_cv_dlopen in |
12421 | dlopen) | |
d50284c4 CE |
12422 | save_CPPFLAGS=$CPPFLAGS |
12423 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 12424 | |
d50284c4 | 12425 | save_LDFLAGS=$LDFLAGS |
8d138742 | 12426 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
d9898ee8 | 12427 | |
d50284c4 | 12428 | save_LIBS=$LIBS |
8d138742 | 12429 | LIBS="$lt_cv_dlopen_libs $LIBS" |
d9898ee8 | 12430 | |
b0322a85 | 12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 12432 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 12433 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 CE |
12434 | $as_echo_n "(cached) " >&6 |
12435 | else | |
d50284c4 | 12436 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
12437 | lt_cv_dlopen_self=cross |
12438 | else | |
12439 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12440 | lt_status=$lt_dlunknown | |
12441 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 12442 | #line $LINENO "configure" |
8d138742 | 12443 | #include "confdefs.h" |
d9898ee8 | 12444 | |
8d138742 CE |
12445 | #if HAVE_DLFCN_H |
12446 | #include <dlfcn.h> | |
12447 | #endif | |
d9898ee8 | 12448 | |
8d138742 | 12449 | #include <stdio.h> |
d9898ee8 | 12450 | |
8d138742 CE |
12451 | #ifdef RTLD_GLOBAL |
12452 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12453 | #else | |
12454 | # ifdef DL_GLOBAL | |
12455 | # define LT_DLGLOBAL DL_GLOBAL | |
12456 | # else | |
12457 | # define LT_DLGLOBAL 0 | |
12458 | # endif | |
12459 | #endif | |
d9898ee8 | 12460 | |
8d138742 CE |
12461 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12462 | find out it does not work in some platform. */ | |
12463 | #ifndef LT_DLLAZY_OR_NOW | |
12464 | # ifdef RTLD_LAZY | |
12465 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12466 | # else | |
12467 | # ifdef DL_LAZY | |
12468 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12469 | # else | |
12470 | # ifdef RTLD_NOW | |
12471 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12472 | # else | |
12473 | # ifdef DL_NOW | |
12474 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12475 | # else | |
12476 | # define LT_DLLAZY_OR_NOW 0 | |
12477 | # endif | |
12478 | # endif | |
12479 | # endif | |
12480 | # endif | |
12481 | #endif | |
d9898ee8 | 12482 | |
d50284c4 | 12483 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 12484 | correspondingly for the symbols needed. */ |
d50284c4 | 12485 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
12486 | int fnord () __attribute__((visibility("default"))); |
12487 | #endif | |
12488 | ||
12489 | int fnord () { return 42; } | |
8d138742 CE |
12490 | int main () |
12491 | { | |
12492 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12493 | int status = $lt_dlunknown; | |
d9898ee8 | 12494 | |
8d138742 CE |
12495 | if (self) |
12496 | { | |
12497 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
12498 | else |
12499 | { | |
12500 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12501 | else puts (dlerror ()); | |
12502 | } | |
8d138742 CE |
12503 | /* dlclose (self); */ |
12504 | } | |
12505 | else | |
12506 | puts (dlerror ()); | |
d9898ee8 | 12507 | |
8d138742 CE |
12508 | return status; |
12509 | } | |
12510 | _LT_EOF | |
b0322a85 | 12511 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
12512 | (eval $ac_link) 2>&5 |
12513 | ac_status=$? | |
b0322a85 | 12514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 12515 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
12516 | (./conftest; exit; ) >&5 2>/dev/null |
12517 | lt_status=$? | |
12518 | case x$lt_status in | |
12519 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12520 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12521 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12522 | esac | |
12523 | else : | |
12524 | # compilation failed | |
12525 | lt_cv_dlopen_self=no | |
12526 | fi | |
12527 | fi | |
12528 | rm -fr conftest* | |
d9898ee8 | 12529 | |
d9898ee8 | 12530 | |
8d138742 | 12531 | fi |
b0322a85 | 12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 12533 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 12534 | |
d50284c4 | 12535 | if test yes = "$lt_cv_dlopen_self"; then |
8d138742 | 12536 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
b0322a85 | 12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 12538 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 12539 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 | 12540 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12541 | else |
d50284c4 | 12542 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
12543 | lt_cv_dlopen_self_static=cross |
12544 | else | |
12545 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12546 | lt_status=$lt_dlunknown | |
12547 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 12548 | #line $LINENO "configure" |
8d138742 | 12549 | #include "confdefs.h" |
d9898ee8 | 12550 | |
8d138742 CE |
12551 | #if HAVE_DLFCN_H |
12552 | #include <dlfcn.h> | |
12553 | #endif | |
d9898ee8 | 12554 | |
8d138742 | 12555 | #include <stdio.h> |
d9898ee8 | 12556 | |
8d138742 CE |
12557 | #ifdef RTLD_GLOBAL |
12558 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12559 | #else | |
12560 | # ifdef DL_GLOBAL | |
12561 | # define LT_DLGLOBAL DL_GLOBAL | |
12562 | # else | |
12563 | # define LT_DLGLOBAL 0 | |
12564 | # endif | |
12565 | #endif | |
d9898ee8 | 12566 | |
8d138742 CE |
12567 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12568 | find out it does not work in some platform. */ | |
12569 | #ifndef LT_DLLAZY_OR_NOW | |
12570 | # ifdef RTLD_LAZY | |
12571 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12572 | # else | |
12573 | # ifdef DL_LAZY | |
12574 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12575 | # else | |
12576 | # ifdef RTLD_NOW | |
12577 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12578 | # else | |
12579 | # ifdef DL_NOW | |
12580 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12581 | # else | |
12582 | # define LT_DLLAZY_OR_NOW 0 | |
12583 | # endif | |
12584 | # endif | |
12585 | # endif | |
12586 | # endif | |
12587 | #endif | |
d9898ee8 | 12588 | |
d50284c4 | 12589 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 12590 | correspondingly for the symbols needed. */ |
d50284c4 | 12591 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
12592 | int fnord () __attribute__((visibility("default"))); |
12593 | #endif | |
12594 | ||
12595 | int fnord () { return 42; } | |
8d138742 CE |
12596 | int main () |
12597 | { | |
12598 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12599 | int status = $lt_dlunknown; | |
d9898ee8 | 12600 | |
8d138742 CE |
12601 | if (self) |
12602 | { | |
12603 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
12604 | else |
12605 | { | |
12606 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12607 | else puts (dlerror ()); | |
12608 | } | |
8d138742 CE |
12609 | /* dlclose (self); */ |
12610 | } | |
12611 | else | |
12612 | puts (dlerror ()); | |
d9898ee8 | 12613 | |
8d138742 CE |
12614 | return status; |
12615 | } | |
12616 | _LT_EOF | |
b0322a85 | 12617 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
12618 | (eval $ac_link) 2>&5 |
12619 | ac_status=$? | |
b0322a85 | 12620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 12621 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
12622 | (./conftest; exit; ) >&5 2>/dev/null |
12623 | lt_status=$? | |
12624 | case x$lt_status in | |
12625 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12626 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12627 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12628 | esac | |
12629 | else : | |
12630 | # compilation failed | |
12631 | lt_cv_dlopen_self_static=no | |
12632 | fi | |
12633 | fi | |
12634 | rm -fr conftest* | |
d9898ee8 | 12635 | |
d9898ee8 | 12636 | |
8d138742 | 12637 | fi |
b0322a85 | 12638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
12639 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
12640 | fi | |
d9898ee8 | 12641 | |
d50284c4 CE |
12642 | CPPFLAGS=$save_CPPFLAGS |
12643 | LDFLAGS=$save_LDFLAGS | |
12644 | LIBS=$save_LIBS | |
8d138742 CE |
12645 | ;; |
12646 | esac | |
d9898ee8 | 12647 | |
8d138742 CE |
12648 | case $lt_cv_dlopen_self in |
12649 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12650 | *) enable_dlopen_self=unknown ;; | |
12651 | esac | |
d9898ee8 | 12652 | |
8d138742 CE |
12653 | case $lt_cv_dlopen_self_static in |
12654 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12655 | *) enable_dlopen_self_static=unknown ;; | |
12656 | esac | |
12657 | fi | |
d9898ee8 | 12658 | |
d9898ee8 | 12659 | |
d9898ee8 | 12660 | |
12661 | ||
d9898ee8 | 12662 | |
d9898ee8 | 12663 | |
12664 | ||
d9898ee8 | 12665 | |
12666 | ||
d9898ee8 | 12667 | |
d9898ee8 | 12668 | |
12669 | ||
d9898ee8 | 12670 | |
d9898ee8 | 12671 | |
12672 | ||
d9898ee8 | 12673 | |
d9898ee8 | 12674 | |
8d138742 CE |
12675 | striplib= |
12676 | old_striplib= | |
b0322a85 | 12677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
12678 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
12679 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12680 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12681 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 12683 | $as_echo "yes" >&6; } |
d9898ee8 | 12684 | else |
8d138742 CE |
12685 | # FIXME - insert some real tests, host_os isn't really good enough |
12686 | case $host_os in | |
12687 | darwin*) | |
d50284c4 | 12688 | if test -n "$STRIP"; then |
8d138742 CE |
12689 | striplib="$STRIP -x" |
12690 | old_striplib="$STRIP -S" | |
b0322a85 | 12691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
12692 | $as_echo "yes" >&6; } |
12693 | else | |
b0322a85 | 12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
12695 | $as_echo "no" >&6; } |
12696 | fi | |
12697 | ;; | |
12698 | *) | |
b0322a85 | 12699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
12700 | $as_echo "no" >&6; } |
12701 | ;; | |
12702 | esac | |
d9898ee8 | 12703 | fi |
12704 | ||
d9898ee8 | 12705 | |
d9898ee8 | 12706 | |
d9898ee8 | 12707 | |
d9898ee8 | 12708 | |
d9898ee8 | 12709 | |
d9898ee8 | 12710 | |
d9898ee8 | 12711 | |
d9898ee8 | 12712 | |
d9898ee8 | 12713 | |
d9898ee8 | 12714 | |
d9898ee8 | 12715 | |
d50284c4 | 12716 | # Report what library types will actually be built |
b0322a85 | 12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 12718 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 12719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 | 12720 | $as_echo "$can_build_shared" >&6; } |
d9898ee8 | 12721 | |
b0322a85 | 12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 | 12723 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
d50284c4 | 12724 | test no = "$can_build_shared" && enable_shared=no |
d9898ee8 | 12725 | |
8d138742 CE |
12726 | # On AIX, shared libraries and static libraries use the same namespace, and |
12727 | # are all built from PIC. | |
12728 | case $host_os in | |
12729 | aix3*) | |
d50284c4 | 12730 | test yes = "$enable_shared" && enable_static=no |
8d138742 CE |
12731 | if test -n "$RANLIB"; then |
12732 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12733 | postinstall_cmds='$RANLIB $lib' | |
12734 | fi | |
12735 | ;; | |
d9898ee8 | 12736 | |
8d138742 | 12737 | aix[4-9]*) |
d50284c4 CE |
12738 | if test ia64 != "$host_cpu"; then |
12739 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12740 | yes,aix,yes) ;; # shared object as lib.so file only | |
12741 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12742 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12743 | esac | |
8d138742 CE |
12744 | fi |
12745 | ;; | |
12746 | esac | |
b0322a85 | 12747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 | 12748 | $as_echo "$enable_shared" >&6; } |
d9898ee8 | 12749 | |
b0322a85 | 12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
12751 | $as_echo_n "checking whether to build static libraries... " >&6; } |
12752 | # Make sure either enable_shared or enable_static is yes. | |
d50284c4 | 12753 | test yes = "$enable_shared" || enable_static=yes |
b0322a85 | 12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 | 12755 | $as_echo "$enable_static" >&6; } |
d9898ee8 | 12756 | |
d9898ee8 | 12757 | |
d9898ee8 | 12758 | |
d9898ee8 | 12759 | |
8d138742 CE |
12760 | fi |
12761 | ac_ext=c | |
12762 | ac_cpp='$CPP $CPPFLAGS' | |
12763 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12764 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12765 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 12766 | |
d50284c4 | 12767 | CC=$lt_save_CC |
ac40fd9e | 12768 | |
d9898ee8 | 12769 | |
d9898ee8 | 12770 | |
d9898ee8 | 12771 | |
d9898ee8 | 12772 | |
d9898ee8 | 12773 | |
d9898ee8 | 12774 | |
d9898ee8 | 12775 | |
d9898ee8 | 12776 | |
d9898ee8 | 12777 | |
d9898ee8 | 12778 | |
d9898ee8 | 12779 | |
d9898ee8 | 12780 | |
b0322a85 CE |
12781 | |
12782 | ||
8d138742 | 12783 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 12784 | |
d9898ee8 | 12785 | |
d9898ee8 | 12786 | |
d9898ee8 | 12787 | |
8d138742 CE |
12788 | # Only expand once: |
12789 | ||
12790 | ||
12791 | ||
12792 | if test "$GCC" = yes ; then | |
12793 | CXXFLAGS="$CXXFLAGS -Wall" | |
12794 | CFLAGS="$CFLAGS -Wall" | |
d9898ee8 | 12795 | fi |
12796 | ||
b0322a85 | 12797 | CFLAGS="$CFLAGS -I.. -I$srcdir/.." |
d9898ee8 | 12798 | |
b0322a85 CE |
12799 | |
12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
8d138742 | 12801 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 12802 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 | 12803 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12804 | else |
b0322a85 | 12805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12806 | /* end confdefs.h. */ |
12807 | #include <stdlib.h> | |
12808 | #include <stdarg.h> | |
12809 | #include <string.h> | |
12810 | #include <float.h> | |
d9898ee8 | 12811 | |
8d138742 CE |
12812 | int |
12813 | main () | |
12814 | { | |
12815 | ||
12816 | ; | |
12817 | return 0; | |
12818 | } | |
12819 | _ACEOF | |
b0322a85 | 12820 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12821 | ac_cv_header_stdc=yes |
12822 | else | |
b0322a85 | 12823 | ac_cv_header_stdc=no |
d9898ee8 | 12824 | fi |
8d138742 | 12825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12826 | |
8d138742 CE |
12827 | if test $ac_cv_header_stdc = yes; then |
12828 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 12829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12830 | /* end confdefs.h. */ |
12831 | #include <string.h> | |
12832 | ||
12833 | _ACEOF | |
12834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
12835 | $EGREP "memchr" >/dev/null 2>&1; then : |
12836 | ||
d9898ee8 | 12837 | else |
8d138742 | 12838 | ac_cv_header_stdc=no |
d9898ee8 | 12839 | fi |
8d138742 | 12840 | rm -f conftest* |
d9898ee8 | 12841 | |
8d138742 | 12842 | fi |
d9898ee8 | 12843 | |
8d138742 CE |
12844 | if test $ac_cv_header_stdc = yes; then |
12845 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 12846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12847 | /* end confdefs.h. */ |
12848 | #include <stdlib.h> | |
d9898ee8 | 12849 | |
8d138742 CE |
12850 | _ACEOF |
12851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
12852 | $EGREP "free" >/dev/null 2>&1; then : |
12853 | ||
8d138742 CE |
12854 | else |
12855 | ac_cv_header_stdc=no | |
12856 | fi | |
12857 | rm -f conftest* | |
d9898ee8 | 12858 | |
8d138742 | 12859 | fi |
d9898ee8 | 12860 | |
8d138742 CE |
12861 | if test $ac_cv_header_stdc = yes; then |
12862 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 12863 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
12864 | : |
12865 | else | |
b0322a85 | 12866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12867 | /* end confdefs.h. */ |
8d138742 CE |
12868 | #include <ctype.h> |
12869 | #include <stdlib.h> | |
12870 | #if ((' ' & 0x0FF) == 0x020) | |
12871 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12872 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12873 | #else | |
12874 | # define ISLOWER(c) \ | |
12875 | (('a' <= (c) && (c) <= 'i') \ | |
12876 | || ('j' <= (c) && (c) <= 'r') \ | |
12877 | || ('s' <= (c) && (c) <= 'z')) | |
12878 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12879 | #endif | |
d9898ee8 | 12880 | |
8d138742 | 12881 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
d9898ee8 | 12882 | int |
12883 | main () | |
12884 | { | |
8d138742 CE |
12885 | int i; |
12886 | for (i = 0; i < 256; i++) | |
12887 | if (XOR (islower (i), ISLOWER (i)) | |
12888 | || toupper (i) != TOUPPER (i)) | |
12889 | return 2; | |
d9898ee8 | 12890 | return 0; |
12891 | } | |
12892 | _ACEOF | |
b0322a85 | 12893 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 12894 | |
b0322a85 CE |
12895 | else |
12896 | ac_cv_header_stdc=no | |
8d138742 | 12897 | fi |
b0322a85 CE |
12898 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12899 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 CE |
12900 | fi |
12901 | ||
d9898ee8 | 12902 | fi |
8d138742 | 12903 | fi |
b0322a85 | 12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
12905 | $as_echo "$ac_cv_header_stdc" >&6; } |
12906 | if test $ac_cv_header_stdc = yes; then | |
dd184caf | 12907 | |
b0322a85 | 12908 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 12909 | |
8d138742 CE |
12910 | fi |
12911 | ||
8d138742 | 12912 | for ac_header in locale.h |
b0322a85 CE |
12913 | do : |
12914 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" | |
12915 | if test "x$ac_cv_header_locale_h" = xyes; then : | |
8d138742 | 12916 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12917 | #define HAVE_LOCALE_H 1 |
8d138742 | 12918 | _ACEOF |
d9898ee8 | 12919 | |
8d138742 | 12920 | fi |
d9898ee8 | 12921 | |
8d138742 | 12922 | done |
d9898ee8 | 12923 | |
d9898ee8 | 12924 | |
b0322a85 | 12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
8d138742 | 12926 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
b0322a85 | 12927 | if ${ac_cv_c_const+:} false; then : |
8d138742 CE |
12928 | $as_echo_n "(cached) " >&6 |
12929 | else | |
b0322a85 | 12930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12931 | /* end confdefs.h. */ |
d9898ee8 | 12932 | |
8d138742 CE |
12933 | int |
12934 | main () | |
12935 | { | |
b0322a85 | 12936 | |
8d138742 | 12937 | #ifndef __cplusplus |
b0322a85 | 12938 | /* Ultrix mips cc rejects this sort of thing. */ |
8d138742 | 12939 | typedef int charset[2]; |
b0322a85 | 12940 | const charset cs = { 0, 0 }; |
8d138742 CE |
12941 | /* SunOS 4.1.1 cc rejects this. */ |
12942 | char const *const *pcpcc; | |
12943 | char **ppc; | |
12944 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12945 | struct point {int x, y;}; | |
12946 | static struct point const zero = {0,0}; | |
12947 | /* AIX XL C 1.02.0.0 rejects this. | |
12948 | It does not let you subtract one const X* pointer from another in | |
12949 | an arm of an if-expression whose if-part is not a constant | |
12950 | expression */ | |
12951 | const char *g = "string"; | |
12952 | pcpcc = &g + (g ? g-g : 0); | |
12953 | /* HPUX 7.0 cc rejects these. */ | |
12954 | ++pcpcc; | |
12955 | ppc = (char**) pcpcc; | |
12956 | pcpcc = (char const *const *) ppc; | |
b0322a85 CE |
12957 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
12958 | char tx; | |
12959 | char *t = &tx; | |
8d138742 | 12960 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
d9898ee8 | 12961 | |
8d138742 CE |
12962 | *t++ = 0; |
12963 | if (s) return 0; | |
12964 | } | |
12965 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12966 | int x[] = {25, 17}; | |
12967 | const int *foo = &x[0]; | |
12968 | ++foo; | |
12969 | } | |
12970 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12971 | typedef const int *iptr; | |
12972 | iptr p = 0; | |
12973 | ++p; | |
12974 | } | |
b0322a85 | 12975 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
8d138742 | 12976 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
b0322a85 CE |
12977 | struct s { int j; const int *ap[3]; } bx; |
12978 | struct s *b = &bx; b->j = 5; | |
8d138742 CE |
12979 | } |
12980 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12981 | const int foo = 10; | |
12982 | if (!foo) return 0; | |
12983 | } | |
12984 | return !cs[0] && !zero.x; | |
12985 | #endif | |
d9898ee8 | 12986 | |
8d138742 CE |
12987 | ; |
12988 | return 0; | |
12989 | } | |
12990 | _ACEOF | |
b0322a85 | 12991 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12992 | ac_cv_c_const=yes |
12993 | else | |
b0322a85 | 12994 | ac_cv_c_const=no |
8d138742 | 12995 | fi |
8d138742 CE |
12996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12997 | fi | |
b0322a85 | 12998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
8d138742 CE |
12999 | $as_echo "$ac_cv_c_const" >&6; } |
13000 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 13001 | |
b0322a85 CE |
13002 | $as_echo "#define const /**/" >>confdefs.h |
13003 | ||
13004 | fi | |
13005 | ||
13006 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
13007 | if test "x$ac_cv_type_size_t" = xyes; then : | |
13008 | ||
13009 | else | |
13010 | ||
13011 | cat >>confdefs.h <<_ACEOF | |
13012 | #define size_t unsigned int | |
8d138742 | 13013 | _ACEOF |
d9898ee8 | 13014 | |
8d138742 | 13015 | fi |
d9898ee8 | 13016 | |
b0322a85 CE |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
13018 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
13019 | if ${ac_cv_struct_tm+:} false; then : | |
8d138742 CE |
13020 | $as_echo_n "(cached) " >&6 |
13021 | else | |
b0322a85 | 13022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 13023 | /* end confdefs.h. */ |
b0322a85 CE |
13024 | #include <sys/types.h> |
13025 | #include <time.h> | |
13026 | ||
8d138742 CE |
13027 | int |
13028 | main () | |
13029 | { | |
b0322a85 CE |
13030 | struct tm tm; |
13031 | int *p = &tm.tm_sec; | |
13032 | return !p; | |
8d138742 CE |
13033 | ; |
13034 | return 0; | |
13035 | } | |
13036 | _ACEOF | |
b0322a85 CE |
13037 | if ac_fn_c_try_compile "$LINENO"; then : |
13038 | ac_cv_struct_tm=time.h | |
13039 | else | |
13040 | ac_cv_struct_tm=sys/time.h | |
13041 | fi | |
13042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13043 | fi | |
13044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
13045 | $as_echo "$ac_cv_struct_tm" >&6; } | |
13046 | if test $ac_cv_struct_tm = sys/time.h; then | |
13047 | ||
13048 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
13049 | ||
13050 | fi | |
13051 | ||
13052 | # Check whether --enable-largefile was given. | |
13053 | if test "${enable_largefile+set}" = set; then : | |
13054 | enableval=$enable_largefile; | |
13055 | fi | |
13056 | ||
13057 | if test "$enable_largefile" != no; then | |
13058 | ||
13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
13060 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
13061 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
13062 | $as_echo_n "(cached) " >&6 | |
13063 | else | |
13064 | ac_cv_sys_largefile_CC=no | |
13065 | if test "$GCC" != yes; then | |
13066 | ac_save_CC=$CC | |
13067 | while :; do | |
13068 | # IRIX 6.2 and later do not support large files by default, | |
13069 | # so use the C compiler's -n32 option if that helps. | |
13070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 13071 | /* end confdefs.h. */ |
b0322a85 CE |
13072 | #include <sys/types.h> |
13073 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13074 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13075 | since some C++ compilers masquerading as C compilers | |
13076 | incorrectly reject 9223372036854775807. */ | |
13077 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13078 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13079 | && LARGE_OFF_T % 2147483647 == 1) | |
13080 | ? 1 : -1]; | |
8d138742 CE |
13081 | int |
13082 | main () | |
13083 | { | |
b0322a85 | 13084 | |
8d138742 CE |
13085 | ; |
13086 | return 0; | |
13087 | } | |
13088 | _ACEOF | |
b0322a85 CE |
13089 | if ac_fn_c_try_compile "$LINENO"; then : |
13090 | break | |
13091 | fi | |
13092 | rm -f core conftest.err conftest.$ac_objext | |
13093 | CC="$CC -n32" | |
13094 | if ac_fn_c_try_compile "$LINENO"; then : | |
13095 | ac_cv_sys_largefile_CC=' -n32'; break | |
13096 | fi | |
13097 | rm -f core conftest.err conftest.$ac_objext | |
13098 | break | |
13099 | done | |
13100 | CC=$ac_save_CC | |
13101 | rm -f conftest.$ac_ext | |
13102 | fi | |
8d138742 | 13103 | fi |
b0322a85 CE |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
13105 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
13106 | if test "$ac_cv_sys_largefile_CC" != no; then | |
13107 | CC=$CC$ac_cv_sys_largefile_CC | |
13108 | fi | |
d9898ee8 | 13109 | |
b0322a85 CE |
13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
13111 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
13112 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
13113 | $as_echo_n "(cached) " >&6 | |
8d138742 | 13114 | else |
b0322a85 CE |
13115 | while :; do |
13116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13117 | /* end confdefs.h. */ | |
13118 | #include <sys/types.h> | |
13119 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13120 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13121 | since some C++ compilers masquerading as C compilers | |
13122 | incorrectly reject 9223372036854775807. */ | |
13123 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13124 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13125 | && LARGE_OFF_T % 2147483647 == 1) | |
13126 | ? 1 : -1]; | |
13127 | int | |
13128 | main () | |
13129 | { | |
d9898ee8 | 13130 | |
b0322a85 CE |
13131 | ; |
13132 | return 0; | |
13133 | } | |
13134 | _ACEOF | |
13135 | if ac_fn_c_try_compile "$LINENO"; then : | |
13136 | ac_cv_sys_file_offset_bits=no; break | |
8d138742 | 13137 | fi |
b0322a85 CE |
13138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13140 | /* end confdefs.h. */ | |
13141 | #define _FILE_OFFSET_BITS 64 | |
13142 | #include <sys/types.h> | |
13143 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13144 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13145 | since some C++ compilers masquerading as C compilers | |
13146 | incorrectly reject 9223372036854775807. */ | |
13147 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13148 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13149 | && LARGE_OFF_T % 2147483647 == 1) | |
13150 | ? 1 : -1]; | |
13151 | int | |
13152 | main () | |
13153 | { | |
d9898ee8 | 13154 | |
b0322a85 CE |
13155 | ; |
13156 | return 0; | |
13157 | } | |
13158 | _ACEOF | |
13159 | if ac_fn_c_try_compile "$LINENO"; then : | |
13160 | ac_cv_sys_file_offset_bits=64; break | |
13161 | fi | |
8d138742 | 13162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
13163 | ac_cv_sys_file_offset_bits=unknown |
13164 | break | |
13165 | done | |
8d138742 | 13166 | fi |
b0322a85 CE |
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
13168 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
13169 | case $ac_cv_sys_file_offset_bits in #( | |
13170 | no | unknown) ;; | |
13171 | *) | |
8d138742 | 13172 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 13173 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
8d138742 | 13174 | _ACEOF |
b0322a85 CE |
13175 | ;; |
13176 | esac | |
13177 | rm -rf conftest* | |
13178 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
13180 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
13181 | if ${ac_cv_sys_large_files+:} false; then : | |
8d138742 CE |
13182 | $as_echo_n "(cached) " >&6 |
13183 | else | |
b0322a85 CE |
13184 | while :; do |
13185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
13186 | /* end confdefs.h. */ |
13187 | #include <sys/types.h> | |
b0322a85 CE |
13188 | /* Check that off_t can represent 2**63 - 1 correctly. |
13189 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13190 | since some C++ compilers masquerading as C compilers | |
13191 | incorrectly reject 9223372036854775807. */ | |
13192 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13193 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13194 | && LARGE_OFF_T % 2147483647 == 1) | |
13195 | ? 1 : -1]; | |
8d138742 CE |
13196 | int |
13197 | main () | |
13198 | { | |
b0322a85 | 13199 | |
8d138742 CE |
13200 | ; |
13201 | return 0; | |
13202 | } | |
13203 | _ACEOF | |
b0322a85 CE |
13204 | if ac_fn_c_try_compile "$LINENO"; then : |
13205 | ac_cv_sys_large_files=no; break | |
8d138742 | 13206 | fi |
b0322a85 CE |
13207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13209 | /* end confdefs.h. */ | |
13210 | #define _LARGE_FILES 1 | |
13211 | #include <sys/types.h> | |
13212 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13213 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13214 | since some C++ compilers masquerading as C compilers | |
13215 | incorrectly reject 9223372036854775807. */ | |
13216 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13217 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13218 | && LARGE_OFF_T % 2147483647 == 1) | |
13219 | ? 1 : -1]; | |
13220 | int | |
13221 | main () | |
13222 | { | |
d9898ee8 | 13223 | |
b0322a85 CE |
13224 | ; |
13225 | return 0; | |
13226 | } | |
13227 | _ACEOF | |
13228 | if ac_fn_c_try_compile "$LINENO"; then : | |
13229 | ac_cv_sys_large_files=1; break | |
13230 | fi | |
8d138742 | 13231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
13232 | ac_cv_sys_large_files=unknown |
13233 | break | |
13234 | done | |
8d138742 | 13235 | fi |
b0322a85 CE |
13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
13237 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
13238 | case $ac_cv_sys_large_files in #( | |
13239 | no | unknown) ;; | |
13240 | *) | |
13241 | cat >>confdefs.h <<_ACEOF | |
13242 | #define _LARGE_FILES $ac_cv_sys_large_files | |
8d138742 | 13243 | _ACEOF |
b0322a85 CE |
13244 | ;; |
13245 | esac | |
13246 | rm -rf conftest* | |
13247 | fi | |
13248 | ||
d9898ee8 | 13249 | |
8d138742 | 13250 | fi |
d9898ee8 | 13251 | |
d9898ee8 | 13252 | |
d9898ee8 | 13253 | |
d9898ee8 | 13254 | |
8d138742 | 13255 | # Check whether --with-libidn was given. |
b0322a85 | 13256 | if test "${with_libidn+set}" = set; then : |
8d138742 CE |
13257 | withval=$with_libidn; libidn=$withval |
13258 | else | |
13259 | libidn=yes | |
13260 | fi | |
d9898ee8 | 13261 | |
d9898ee8 | 13262 | |
8d138742 CE |
13263 | if test "$libidn" != "no" |
13264 | then | |
d9898ee8 | 13265 | |
d9898ee8 | 13266 | |
b0322a85 CE |
13267 | |
13268 | ||
13269 | ||
13270 | ||
13271 | ||
8d138742 CE |
13272 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
13273 | if test -n "$ac_tool_prefix"; then | |
13274 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
13275 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
b0322a85 | 13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 13277 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 13278 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
8d138742 CE |
13279 | $as_echo_n "(cached) " >&6 |
13280 | else | |
13281 | case $PKG_CONFIG in | |
13282 | [\\/]* | ?:[\\/]*) | |
13283 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13284 | ;; | |
13285 | *) | |
13286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13287 | for as_dir in $PATH | |
13288 | do | |
13289 | IFS=$as_save_IFS | |
13290 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13291 | for ac_exec_ext in '' $ac_executable_extensions; do |
13292 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 13293 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 13294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 13295 | break 2 |
d9898ee8 | 13296 | fi |
8d138742 | 13297 | done |
b0322a85 | 13298 | done |
8d138742 CE |
13299 | IFS=$as_save_IFS |
13300 | ||
d9898ee8 | 13301 | ;; |
13302 | esac | |
8d138742 CE |
13303 | fi |
13304 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
13305 | if test -n "$PKG_CONFIG"; then | |
b0322a85 | 13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
8d138742 CE |
13307 | $as_echo "$PKG_CONFIG" >&6; } |
13308 | else | |
b0322a85 | 13309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
13310 | $as_echo "no" >&6; } |
13311 | fi | |
d9898ee8 | 13312 | |
d9898ee8 | 13313 | |
8d138742 CE |
13314 | fi |
13315 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
13316 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
13317 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13318 | set dummy pkg-config; ac_word=$2 | |
b0322a85 | 13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 13320 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 13321 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
8d138742 CE |
13322 | $as_echo_n "(cached) " >&6 |
13323 | else | |
13324 | case $ac_pt_PKG_CONFIG in | |
13325 | [\\/]* | ?:[\\/]*) | |
13326 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
13327 | ;; | |
13328 | *) | |
13329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13330 | for as_dir in $PATH | |
13331 | do | |
13332 | IFS=$as_save_IFS | |
13333 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13334 | for ac_exec_ext in '' $ac_executable_extensions; do |
13335 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 13336 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 13337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
13338 | break 2 |
13339 | fi | |
13340 | done | |
b0322a85 | 13341 | done |
8d138742 | 13342 | IFS=$as_save_IFS |
d9898ee8 | 13343 | |
d9898ee8 | 13344 | ;; |
8d138742 CE |
13345 | esac |
13346 | fi | |
13347 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
13348 | if test -n "$ac_pt_PKG_CONFIG"; then | |
b0322a85 | 13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
8d138742 CE |
13350 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
13351 | else | |
b0322a85 | 13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
13353 | $as_echo "no" >&6; } |
13354 | fi | |
d9898ee8 | 13355 | |
8d138742 CE |
13356 | if test "x$ac_pt_PKG_CONFIG" = x; then |
13357 | PKG_CONFIG="" | |
d9898ee8 | 13358 | else |
8d138742 CE |
13359 | case $cross_compiling:$ac_tool_warned in |
13360 | yes:) | |
b0322a85 | 13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
13362 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
13363 | ac_tool_warned=yes ;; | |
13364 | esac | |
13365 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
d9898ee8 | 13366 | fi |
8d138742 CE |
13367 | else |
13368 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
13369 | fi | |
d9898ee8 | 13370 | |
8d138742 CE |
13371 | fi |
13372 | if test -n "$PKG_CONFIG"; then | |
13373 | _pkg_min_version=0.9.0 | |
b0322a85 | 13374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
8d138742 CE |
13375 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
13376 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
b0322a85 | 13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
13378 | $as_echo "yes" >&6; } |
13379 | else | |
b0322a85 | 13380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
13381 | $as_echo "no" >&6; } |
13382 | PKG_CONFIG="" | |
13383 | fi | |
8d138742 | 13384 | fi |
d9898ee8 | 13385 | |
8d138742 | 13386 | pkg_failed=no |
b0322a85 | 13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5 |
8d138742 | 13388 | $as_echo_n "checking for LIBIDN... " >&6; } |
d9898ee8 | 13389 | |
8d138742 CE |
13390 | if test -n "$LIBIDN_CFLAGS"; then |
13391 | pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS" | |
13392 | elif test -n "$PKG_CONFIG"; then | |
13393 | if test -n "$PKG_CONFIG" && \ | |
b0322a85 | 13394 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 |
8d138742 CE |
13395 | ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 |
13396 | ac_status=$? | |
b0322a85 CE |
13397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13398 | test $ac_status = 0; }; then | |
8d138742 | 13399 | pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null` |
b0322a85 | 13400 | test "x$?" != "x0" && pkg_failed=yes |
8d138742 CE |
13401 | else |
13402 | pkg_failed=yes | |
13403 | fi | |
13404 | else | |
13405 | pkg_failed=untried | |
13406 | fi | |
13407 | if test -n "$LIBIDN_LIBS"; then | |
13408 | pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS" | |
13409 | elif test -n "$PKG_CONFIG"; then | |
13410 | if test -n "$PKG_CONFIG" && \ | |
b0322a85 | 13411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 |
8d138742 CE |
13412 | ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 |
13413 | ac_status=$? | |
b0322a85 CE |
13414 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13415 | test $ac_status = 0; }; then | |
8d138742 | 13416 | pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null` |
b0322a85 | 13417 | test "x$?" != "x0" && pkg_failed=yes |
8d138742 CE |
13418 | else |
13419 | pkg_failed=yes | |
13420 | fi | |
13421 | else | |
13422 | pkg_failed=untried | |
13423 | fi | |
d9898ee8 | 13424 | |
d9898ee8 | 13425 | |
d9898ee8 | 13426 | |
8d138742 | 13427 | if test $pkg_failed = yes; then |
b0322a85 CE |
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13429 | $as_echo "no" >&6; } | |
d9898ee8 | 13430 | |
8d138742 CE |
13431 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
13432 | _pkg_short_errors_supported=yes | |
d9898ee8 | 13433 | else |
8d138742 | 13434 | _pkg_short_errors_supported=no |
d9898ee8 | 13435 | fi |
8d138742 | 13436 | if test $_pkg_short_errors_supported = yes; then |
b0322a85 | 13437 | LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` |
8d138742 | 13438 | else |
b0322a85 | 13439 | LIBIDN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` |
8d138742 CE |
13440 | fi |
13441 | # Put the nasty error message in config.log where it belongs | |
13442 | echo "$LIBIDN_PKG_ERRORS" >&5 | |
13443 | ||
b0322a85 | 13444 | libidn=no |
8d138742 | 13445 | elif test $pkg_failed = untried; then |
b0322a85 CE |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13447 | $as_echo "no" >&6; } | |
8d138742 CE |
13448 | libidn=no |
13449 | else | |
13450 | LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS | |
13451 | LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS | |
b0322a85 | 13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
13453 | $as_echo "yes" >&6; } |
13454 | libidn=yes | |
13455 | fi | |
13456 | if test "$libidn" != "yes" | |
13457 | then | |
13458 | libidn=no | |
b0322a85 | 13459 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libidn not found" >&5 |
8d138742 | 13460 | $as_echo "$as_me: WARNING: Libidn not found" >&2;} |
d9898ee8 | 13461 | else |
8d138742 | 13462 | libidn=yes |
d9898ee8 | 13463 | |
b0322a85 | 13464 | $as_echo "#define LIBIDN 1" >>confdefs.h |
d9898ee8 | 13465 | |
8d138742 CE |
13466 | fi |
13467 | fi | |
b0322a85 | 13468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Libidn should be used" >&5 |
8d138742 | 13469 | $as_echo_n "checking if Libidn should be used... " >&6; } |
b0322a85 | 13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libidn" >&5 |
8d138742 | 13471 | $as_echo "$libidn" >&6; } |
d9898ee8 | 13472 | |
8d138742 | 13473 | for ac_func in strcasecmp strncasecmp setlocale |
b0322a85 CE |
13474 | do : |
13475 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13476 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13477 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
8d138742 CE |
13478 | cat >>confdefs.h <<_ACEOF |
13479 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13480 | _ACEOF | |
d9898ee8 | 13481 | |
8d138742 CE |
13482 | fi |
13483 | done | |
d9898ee8 | 13484 | |
d9898ee8 | 13485 | |
b0322a85 | 13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to calculate alternate timezone" >&5 |
8d138742 | 13487 | $as_echo_n "checking how to calculate alternate timezone... " >&6; } |
b0322a85 | 13488 | if ${librfc822_cv_SYS_TIMEZONE+:} false; then : |
8d138742 CE |
13489 | $as_echo_n "(cached) " >&6 |
13490 | else | |
b0322a85 | 13491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 13492 | /* end confdefs.h. */ |
d9898ee8 | 13493 | |
8d138742 | 13494 | #include <time.h> |
d9898ee8 | 13495 | |
8d138742 CE |
13496 | int |
13497 | main () | |
13498 | { | |
d9898ee8 | 13499 | |
8d138742 | 13500 | time_t t=altzone; |
d9898ee8 | 13501 | |
8d138742 CE |
13502 | ; |
13503 | return 0; | |
13504 | } | |
13505 | _ACEOF | |
b0322a85 | 13506 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
13507 | librfc822_cv_SYS_TIMEZONE=altzone |
13508 | else | |
b0322a85 | 13509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 13510 | /* end confdefs.h. */ |
d9898ee8 | 13511 | |
8d138742 | 13512 | #include <time.h> |
d9898ee8 | 13513 | |
8d138742 CE |
13514 | int |
13515 | main () | |
13516 | { | |
d9898ee8 | 13517 | |
8d138742 | 13518 | int n=daylight; |
d9898ee8 | 13519 | |
8d138742 CE |
13520 | ; |
13521 | return 0; | |
13522 | } | |
13523 | _ACEOF | |
b0322a85 | 13524 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
13525 | librfc822_cv_SYS_TIMEZONE=daylight |
13526 | else | |
b0322a85 | 13527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 13528 | /* end confdefs.h. */ |
d9898ee8 | 13529 | |
8d138742 | 13530 | #include <time.h> |
d9898ee8 | 13531 | |
8d138742 | 13532 | extern struct tm dummy; |
d9898ee8 | 13533 | |
8d138742 CE |
13534 | int |
13535 | main () | |
13536 | { | |
d9898ee8 | 13537 | |
8d138742 | 13538 | long n=dummy.tm_gmtoff; |
d9898ee8 | 13539 | |
8d138742 CE |
13540 | ; |
13541 | return 0; | |
13542 | } | |
13543 | _ACEOF | |
b0322a85 | 13544 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
13545 | librfc822_cv_SYS_TIMEZONE=tm_gmtoff |
13546 | else | |
b0322a85 | 13547 | librfc822_cv_SYS_TIMEZONE=unknown |
d9898ee8 | 13548 | |
8d138742 | 13549 | fi |
8d138742 | 13550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 13551 | |
8d138742 | 13552 | fi |
8d138742 | 13553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 13554 | |
8d138742 | 13555 | fi |
8d138742 | 13556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 13557 | |
8d138742 | 13558 | fi |
b0322a85 | 13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $librfc822_cv_SYS_TIMEZONE" >&5 |
8d138742 | 13560 | $as_echo "$librfc822_cv_SYS_TIMEZONE" >&6; } |
d9898ee8 | 13561 | |
8d138742 CE |
13562 | case $librfc822_cv_SYS_TIMEZONE in |
13563 | tm_gmtoff) | |
d9898ee8 | 13564 | |
8d138742 CE |
13565 | cat >>confdefs.h <<_ACEOF |
13566 | #define USE_TIME_GMTOFF 1 | |
13567 | _ACEOF | |
d9898ee8 | 13568 | |
8d138742 CE |
13569 | ;; |
13570 | altzone) | |
d9898ee8 | 13571 | |
8d138742 CE |
13572 | cat >>confdefs.h <<_ACEOF |
13573 | #define USE_TIME_ALTZONE 1 | |
13574 | _ACEOF | |
d9898ee8 | 13575 | |
8d138742 CE |
13576 | ;; |
13577 | daylight) | |
d9898ee8 | 13578 | |
8d138742 CE |
13579 | cat >>confdefs.h <<_ACEOF |
13580 | #define USE_TIME_DAYLIGHT 1 | |
13581 | _ACEOF | |
d9898ee8 | 13582 | |
8d138742 CE |
13583 | ;; |
13584 | *) | |
b0322a85 | 13585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5 |
8d138742 CE |
13586 | $as_echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;} |
13587 | ;; | |
13588 | esac | |
d9898ee8 | 13589 | |
8d138742 CE |
13590 | if test -d ${srcdir}/../docbook; then |
13591 | HAVE_SGML_TRUE= | |
13592 | HAVE_SGML_FALSE='#' | |
13593 | else | |
13594 | HAVE_SGML_TRUE='#' | |
13595 | HAVE_SGML_FALSE= | |
13596 | fi | |
d9898ee8 | 13597 | |
d9898ee8 | 13598 | |
b0322a85 | 13599 | echo "libidn=$libidn" >rfc822.config |
8d138742 | 13600 | ac_config_files="$ac_config_files Makefile" |
d9898ee8 | 13601 | |
8d138742 CE |
13602 | cat >confcache <<\_ACEOF |
13603 | # This file is a shell script that caches the results of configure | |
13604 | # tests run on this system so they can be shared between configure | |
13605 | # scripts and configure runs, see configure's option --config-cache. | |
13606 | # It is not useful on other systems. If it contains results you don't | |
13607 | # want to keep, you may remove or edit it. | |
13608 | # | |
13609 | # config.status only pays attention to the cache file if you give it | |
13610 | # the --recheck option to rerun configure. | |
13611 | # | |
13612 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13613 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13614 | # following values. | |
d9898ee8 | 13615 | |
8d138742 | 13616 | _ACEOF |
d9898ee8 | 13617 | |
8d138742 CE |
13618 | # The following way of writing the cache mishandles newlines in values, |
13619 | # but we know of no workaround that is simple, portable, and efficient. | |
13620 | # So, we kill variables containing newlines. | |
13621 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13622 | # and sets the high bit in the cache file unless we assign to the vars. | |
13623 | ( | |
13624 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13625 | eval ac_val=\$$ac_var | |
13626 | case $ac_val in #( | |
13627 | *${as_nl}*) | |
13628 | case $ac_var in #( | |
b0322a85 | 13629 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
13630 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
13631 | esac | |
13632 | case $ac_var in #( | |
13633 | _ | IFS | as_nl) ;; #( | |
13634 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 13635 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
13636 | esac ;; |
13637 | esac | |
13638 | done | |
d9898ee8 | 13639 | |
8d138742 CE |
13640 | (set) 2>&1 | |
13641 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
13642 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
13643 | # `set' does not quote correctly, so add quotes: double-quote |
13644 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
13645 | sed -n \ |
13646 | "s/'/'\\\\''/g; | |
13647 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13648 | ;; #( | |
13649 | *) | |
13650 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13651 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
13652 | ;; | |
13653 | esac | | |
13654 | sort | |
13655 | ) | | |
13656 | sed ' | |
13657 | /^ac_cv_env_/b end | |
13658 | t clear | |
13659 | :clear | |
13660 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13661 | t end | |
13662 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13663 | :end' >>confcache | |
13664 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13665 | if test -w "$cache_file"; then | |
b0322a85 CE |
13666 | if test "x$cache_file" != "x/dev/null"; then |
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 13668 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
13669 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
13670 | cat confcache >"$cache_file" | |
13671 | else | |
13672 | case $cache_file in #( | |
13673 | */* | ?:*) | |
13674 | mv -f confcache "$cache_file"$$ && | |
13675 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
13676 | *) | |
13677 | mv -f confcache "$cache_file" ;; | |
13678 | esac | |
13679 | fi | |
13680 | fi | |
8d138742 | 13681 | else |
b0322a85 | 13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 | 13683 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 | 13684 | fi |
13685 | fi | |
8d138742 | 13686 | rm -f confcache |
d9898ee8 | 13687 | |
8d138742 CE |
13688 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13689 | # Let make expand exec_prefix. | |
13690 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 13691 | |
8d138742 | 13692 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 13693 | |
8d138742 CE |
13694 | ac_libobjs= |
13695 | ac_ltlibobjs= | |
d50284c4 | 13696 | U= |
8d138742 CE |
13697 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13698 | # 1. Remove the extension, and $U if already installed. | |
13699 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
13700 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13701 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13702 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
13703 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
13704 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
13705 | done |
13706 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 13707 | |
8d138742 | 13708 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 13709 | |
d9898ee8 | 13710 | |
b0322a85 CE |
13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
13712 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
13713 | if test -n "$am_sleep_pid"; then | |
13714 | # Hide warnings about reused PIDs. | |
13715 | wait $am_sleep_pid 2>/dev/null | |
13716 | fi | |
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
13718 | $as_echo "done" >&6; } | |
8d138742 CE |
13719 | if test -n "$EXEEXT"; then |
13720 | am__EXEEXT_TRUE= | |
13721 | am__EXEEXT_FALSE='#' | |
13722 | else | |
13723 | am__EXEEXT_TRUE='#' | |
13724 | am__EXEEXT_FALSE= | |
13725 | fi | |
d9898ee8 | 13726 | |
8d138742 | 13727 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
b0322a85 CE |
13728 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
13729 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d9898ee8 | 13730 | fi |
8d138742 | 13731 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
b0322a85 CE |
13732 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
13733 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13734 | fi |
13735 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
13736 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
13737 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13738 | fi |
13739 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then | |
b0322a85 CE |
13740 | as_fn_error $? "conditional \"HAVE_SGML\" was never defined. |
13741 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d9898ee8 | 13742 | fi |
13743 | ||
b0322a85 | 13744 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
13745 | ac_write_fail=0 |
13746 | ac_clean_files_save=$ac_clean_files | |
13747 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 13749 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
13750 | as_write_fail=0 |
13751 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
13752 | #! $SHELL |
13753 | # Generated by $as_me. | |
13754 | # Run this file to recreate the current configuration. | |
13755 | # Compiler output produced by configure, useful for debugging | |
13756 | # configure, is in config.log if it exists. | |
d9898ee8 | 13757 | |
8d138742 CE |
13758 | debug=false |
13759 | ac_cs_recheck=false | |
13760 | ac_cs_silent=false | |
d9898ee8 | 13761 | |
b0322a85 CE |
13762 | SHELL=\${CONFIG_SHELL-$SHELL} |
13763 | export SHELL | |
13764 | _ASEOF | |
13765 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13766 | ## -------------------- ## | |
13767 | ## M4sh Initialization. ## | |
13768 | ## -------------------- ## | |
d9898ee8 | 13769 | |
8d138742 CE |
13770 | # Be more Bourne compatible |
13771 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 13772 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
13773 | emulate sh |
13774 | NULLCMD=: | |
13775 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13776 | # is contrary to our usage. Disable this feature. | |
13777 | alias -g '${1+"$@"}'='"$@"' | |
13778 | setopt NO_GLOB_SUBST | |
d9898ee8 | 13779 | else |
b0322a85 CE |
13780 | case `(set -o) 2>/dev/null` in #( |
13781 | *posix*) : | |
13782 | set -o posix ;; #( | |
13783 | *) : | |
13784 | ;; | |
8d138742 | 13785 | esac |
d9898ee8 | 13786 | fi |
dd184caf | 13787 | |
d9898ee8 | 13788 | |
8d138742 CE |
13789 | as_nl=' |
13790 | ' | |
13791 | export as_nl | |
13792 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13793 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13794 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13795 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
13796 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
13797 | # but without wasting forks for bash or zsh. | |
13798 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13799 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13800 | as_echo='print -r --' | |
13801 | as_echo_n='print -rn --' | |
13802 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
13803 | as_echo='printf %s\n' |
13804 | as_echo_n='printf %s' | |
13805 | else | |
13806 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13807 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13808 | as_echo_n='/usr/ucb/echo -n' | |
13809 | else | |
13810 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13811 | as_echo_n_body='eval | |
13812 | arg=$1; | |
b0322a85 | 13813 | case $arg in #( |
8d138742 CE |
13814 | *"$as_nl"*) |
13815 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13816 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13817 | esac; | |
13818 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13819 | ' | |
13820 | export as_echo_n_body | |
13821 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13822 | fi | |
13823 | export as_echo_body | |
13824 | as_echo='sh -c $as_echo_body as_echo' | |
d9898ee8 | 13825 | fi |
d9898ee8 | 13826 | |
8d138742 CE |
13827 | # The user is always right. |
13828 | if test "${PATH_SEPARATOR+set}" != set; then | |
13829 | PATH_SEPARATOR=: | |
13830 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13831 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13832 | PATH_SEPARATOR=';' | |
13833 | } | |
d9898ee8 | 13834 | fi |
13835 | ||
8d138742 CE |
13836 | |
13837 | # IFS | |
13838 | # We need space, tab and new line, in precisely that order. Quoting is | |
13839 | # there to prevent editors from complaining about space-tab. | |
13840 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13841 | # splitting by setting IFS to empty value.) | |
13842 | IFS=" "" $as_nl" | |
13843 | ||
13844 | # Find who we are. Look in the path if we contain no directory separator. | |
b0322a85 CE |
13845 | as_myself= |
13846 | case $0 in #(( | |
8d138742 CE |
13847 | *[\\/]* ) as_myself=$0 ;; |
13848 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13849 | for as_dir in $PATH | |
13850 | do | |
13851 | IFS=$as_save_IFS | |
13852 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13853 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13854 | done | |
8d138742 CE |
13855 | IFS=$as_save_IFS |
13856 | ||
13857 | ;; | |
13858 | esac | |
13859 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13860 | # in which case we are not to be found in the path. | |
13861 | if test "x$as_myself" = x; then | |
13862 | as_myself=$0 | |
d9898ee8 | 13863 | fi |
8d138742 CE |
13864 | if test ! -f "$as_myself"; then |
13865 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 13866 | exit 1 |
d9898ee8 | 13867 | fi |
dd184caf | 13868 | |
b0322a85 CE |
13869 | # Unset variables that we do not need and which cause bugs (e.g. in |
13870 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13871 | # suppresses any "Segmentation fault" message there. '((' could | |
13872 | # trigger a bug in pdksh 5.2.14. | |
13873 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
13874 | do eval test x\${$as_var+set} = xset \ | |
13875 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
13876 | done |
13877 | PS1='$ ' | |
13878 | PS2='> ' | |
13879 | PS4='+ ' | |
13880 | ||
13881 | # NLS nuisances. | |
13882 | LC_ALL=C | |
13883 | export LC_ALL | |
13884 | LANGUAGE=C | |
13885 | export LANGUAGE | |
dd184caf | 13886 | |
b0322a85 CE |
13887 | # CDPATH. |
13888 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13889 | ||
13890 | ||
13891 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
13892 | # ---------------------------------------- | |
13893 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
13894 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
13895 | # script with STATUS, using 1 if that was 0. | |
13896 | as_fn_error () | |
13897 | { | |
13898 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
13899 | if test "$4"; then | |
13900 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13901 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
13902 | fi | |
13903 | $as_echo "$as_me: error: $2" >&2 | |
13904 | as_fn_exit $as_status | |
13905 | } # as_fn_error | |
13906 | ||
13907 | ||
13908 | # as_fn_set_status STATUS | |
13909 | # ----------------------- | |
13910 | # Set $? to STATUS, without forking. | |
13911 | as_fn_set_status () | |
13912 | { | |
13913 | return $1 | |
13914 | } # as_fn_set_status | |
13915 | ||
13916 | # as_fn_exit STATUS | |
13917 | # ----------------- | |
13918 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13919 | as_fn_exit () | |
13920 | { | |
13921 | set +e | |
13922 | as_fn_set_status $1 | |
13923 | exit $1 | |
13924 | } # as_fn_exit | |
13925 | ||
13926 | # as_fn_unset VAR | |
13927 | # --------------- | |
13928 | # Portably unset VAR. | |
13929 | as_fn_unset () | |
13930 | { | |
13931 | { eval $1=; unset $1;} | |
13932 | } | |
13933 | as_unset=as_fn_unset | |
13934 | # as_fn_append VAR VALUE | |
13935 | # ---------------------- | |
13936 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13937 | # advantage of any shell optimizations that allow amortized linear growth over | |
13938 | # repeated appends, instead of the typical quadratic growth present in naive | |
13939 | # implementations. | |
13940 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13941 | eval 'as_fn_append () | |
13942 | { | |
13943 | eval $1+=\$2 | |
13944 | }' | |
13945 | else | |
13946 | as_fn_append () | |
13947 | { | |
13948 | eval $1=\$$1\$2 | |
13949 | } | |
13950 | fi # as_fn_append | |
13951 | ||
13952 | # as_fn_arith ARG... | |
13953 | # ------------------ | |
13954 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13955 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13956 | # must be portable across $(()) and expr. | |
13957 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13958 | eval 'as_fn_arith () | |
13959 | { | |
13960 | as_val=$(( $* )) | |
13961 | }' | |
13962 | else | |
13963 | as_fn_arith () | |
13964 | { | |
13965 | as_val=`expr "$@" || test $? -eq 1` | |
13966 | } | |
13967 | fi # as_fn_arith | |
13968 | ||
13969 | ||
8d138742 CE |
13970 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13971 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13972 | as_expr=expr | |
13973 | else | |
13974 | as_expr=false | |
d9898ee8 | 13975 | fi |
8d138742 CE |
13976 | |
13977 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
13978 | as_basename=basename | |
13979 | else | |
13980 | as_basename=false | |
d9898ee8 | 13981 | fi |
d9898ee8 | 13982 | |
b0322a85 CE |
13983 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13984 | as_dirname=dirname | |
13985 | else | |
13986 | as_dirname=false | |
13987 | fi | |
d9898ee8 | 13988 | |
8d138742 CE |
13989 | as_me=`$as_basename -- "$0" || |
13990 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13991 | X"$0" : 'X\(//\)$' \| \ | |
13992 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
13993 | $as_echo X/"$0" | | |
13994 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13995 | s//\1/ | |
13996 | q | |
13997 | } | |
13998 | /^X\/\(\/\/\)$/{ | |
13999 | s//\1/ | |
14000 | q | |
14001 | } | |
14002 | /^X\/\(\/\).*/{ | |
14003 | s//\1/ | |
14004 | q | |
14005 | } | |
14006 | s/.*/./; q'` | |
d9898ee8 | 14007 | |
b0322a85 CE |
14008 | # Avoid depending upon Character Ranges. |
14009 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14010 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14011 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14012 | as_cr_digits='0123456789' | |
14013 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 14014 | |
8d138742 | 14015 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 14016 | case `echo -n x` in #((((( |
8d138742 | 14017 | -n*) |
b0322a85 | 14018 | case `echo 'xy\c'` in |
8d138742 | 14019 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
14020 | xy) ECHO_C='\c';; |
14021 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14022 | ECHO_T=' ';; | |
8d138742 CE |
14023 | esac;; |
14024 | *) | |
14025 | ECHO_N='-n';; | |
14026 | esac | |
b0322a85 CE |
14027 | |
14028 | rm -f conf$$ conf$$.exe conf$$.file | |
14029 | if test -d conf$$.dir; then | |
14030 | rm -f conf$$.dir/conf$$.file | |
8d138742 | 14031 | else |
b0322a85 CE |
14032 | rm -f conf$$.dir |
14033 | mkdir conf$$.dir 2>/dev/null | |
14034 | fi | |
14035 | if (echo >conf$$.file) 2>/dev/null; then | |
14036 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14037 | as_ln_s='ln -s' | |
14038 | # ... but there are two gotchas: | |
14039 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14040 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14041 | # In both cases, we have to default to `cp -pR'. | |
14042 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14043 | as_ln_s='cp -pR' | |
14044 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14045 | as_ln_s=ln | |
14046 | else | |
14047 | as_ln_s='cp -pR' | |
14048 | fi | |
14049 | else | |
14050 | as_ln_s='cp -pR' | |
d9898ee8 | 14051 | fi |
b0322a85 CE |
14052 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14053 | rmdir conf$$.dir 2>/dev/null | |
14054 | ||
14055 | ||
14056 | # as_fn_mkdir_p | |
14057 | # ------------- | |
14058 | # Create "$as_dir" as a directory, including parents if necessary. | |
14059 | as_fn_mkdir_p () | |
14060 | { | |
14061 | ||
14062 | case $as_dir in #( | |
14063 | -*) as_dir=./$as_dir;; | |
14064 | esac | |
14065 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14066 | as_dirs= | |
14067 | while :; do | |
14068 | case $as_dir in #( | |
14069 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14070 | *) as_qdir=$as_dir;; | |
14071 | esac | |
14072 | as_dirs="'$as_qdir' $as_dirs" | |
14073 | as_dir=`$as_dirname -- "$as_dir" || | |
14074 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14075 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14076 | X"$as_dir" : 'X\(//\)$' \| \ | |
14077 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14078 | $as_echo X"$as_dir" | | |
14079 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14080 | s//\1/ | |
14081 | q | |
14082 | } | |
14083 | /^X\(\/\/\)[^/].*/{ | |
14084 | s//\1/ | |
14085 | q | |
14086 | } | |
14087 | /^X\(\/\/\)$/{ | |
14088 | s//\1/ | |
14089 | q | |
14090 | } | |
14091 | /^X\(\/\).*/{ | |
14092 | s//\1/ | |
14093 | q | |
14094 | } | |
14095 | s/.*/./; q'` | |
14096 | test -d "$as_dir" && break | |
14097 | done | |
14098 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14099 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
dd184caf | 14100 | |
d9898ee8 | 14101 | |
b0322a85 | 14102 | } # as_fn_mkdir_p |
8d138742 | 14103 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 14104 | as_mkdir_p='mkdir -p "$as_dir"' |
d9898ee8 | 14105 | else |
8d138742 CE |
14106 | test -d ./-p && rmdir ./-p |
14107 | as_mkdir_p=false | |
d9898ee8 | 14108 | fi |
d9898ee8 | 14109 | |
b0322a85 CE |
14110 | |
14111 | # as_fn_executable_p FILE | |
14112 | # ----------------------- | |
14113 | # Test if FILE is an executable regular file. | |
14114 | as_fn_executable_p () | |
14115 | { | |
14116 | test -f "$1" && test -x "$1" | |
14117 | } # as_fn_executable_p | |
14118 | as_test_x='test -x' | |
14119 | as_executable_p=as_fn_executable_p | |
8d138742 CE |
14120 | |
14121 | # Sed expression to map a string onto a valid CPP name. | |
14122 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 14123 | |
8d138742 CE |
14124 | # Sed expression to map a string onto a valid variable name. |
14125 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 14126 | |
d9898ee8 | 14127 | |
8d138742 | 14128 | exec 6>&1 |
b0322a85 CE |
14129 | ## ----------------------------------- ## |
14130 | ## Main body of $CONFIG_STATUS script. ## | |
14131 | ## ----------------------------------- ## | |
14132 | _ASEOF | |
14133 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 14134 | |
b0322a85 CE |
14135 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14136 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
14137 | # report actual input values of CONFIG_FILES etc. instead of their |
14138 | # values after options handling. | |
14139 | ac_log=" | |
14140 | This file was extended by rfc822lib $as_me 0.13, which was | |
b0322a85 | 14141 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 14142 | |
8d138742 CE |
14143 | CONFIG_FILES = $CONFIG_FILES |
14144 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14145 | CONFIG_LINKS = $CONFIG_LINKS | |
14146 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14147 | $ $0 $@ | |
d9898ee8 | 14148 | |
8d138742 CE |
14149 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14150 | " | |
d9898ee8 | 14151 | |
d9898ee8 | 14152 | _ACEOF |
8d138742 CE |
14153 | |
14154 | case $ac_config_files in *" | |
14155 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
dd184caf | 14156 | esac |
d9898ee8 | 14157 | |
8d138742 CE |
14158 | case $ac_config_headers in *" |
14159 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14160 | esac | |
dd184caf | 14161 | |
d9898ee8 | 14162 | |
8d138742 CE |
14163 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14164 | # Files that config.status was made for. | |
14165 | config_files="$ac_config_files" | |
14166 | config_headers="$ac_config_headers" | |
14167 | config_commands="$ac_config_commands" | |
14168 | ||
d9898ee8 | 14169 | _ACEOF |
14170 | ||
8d138742 CE |
14171 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14172 | ac_cs_usage="\ | |
b0322a85 CE |
14173 | \`$as_me' instantiates files and other configuration actions |
14174 | from templates according to the current configuration. Unless the files | |
14175 | and actions are specified as TAGs, all are instantiated by default. | |
d9898ee8 | 14176 | |
b0322a85 | 14177 | Usage: $0 [OPTION]... [TAG]... |
d9898ee8 | 14178 | |
8d138742 CE |
14179 | -h, --help print this help, then exit |
14180 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 14181 | --config print configuration, then exit |
8d138742 CE |
14182 | -q, --quiet, --silent |
14183 | do not print progress messages | |
14184 | -d, --debug don't remove temporary files | |
14185 | --recheck update $as_me by reconfiguring in the same conditions | |
14186 | --file=FILE[:TEMPLATE] | |
14187 | instantiate the configuration file FILE | |
14188 | --header=FILE[:TEMPLATE] | |
14189 | instantiate the configuration header FILE | |
dd184caf | 14190 | |
8d138742 CE |
14191 | Configuration files: |
14192 | $config_files | |
d9898ee8 | 14193 | |
8d138742 CE |
14194 | Configuration headers: |
14195 | $config_headers | |
d9898ee8 | 14196 | |
8d138742 CE |
14197 | Configuration commands: |
14198 | $config_commands | |
14199 | ||
b0322a85 | 14200 | Report bugs to <courier-users@lists.sourceforge.net>." |
d9898ee8 | 14201 | |
d9898ee8 | 14202 | _ACEOF |
8d138742 | 14203 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0322a85 | 14204 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
14205 | ac_cs_version="\\ |
14206 | rfc822lib config.status 0.13 | |
b0322a85 CE |
14207 | configured by $0, generated by GNU Autoconf 2.69, |
14208 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 14209 | |
b0322a85 | 14210 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
14211 | This config.status script is free software; the Free Software Foundation |
14212 | gives unlimited permission to copy, distribute and modify it." | |
14213 | ||
14214 | ac_pwd='$ac_pwd' | |
14215 | srcdir='$srcdir' | |
14216 | INSTALL='$INSTALL' | |
14217 | MKDIR_P='$MKDIR_P' | |
14218 | AWK='$AWK' | |
14219 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 14220 | _ACEOF |
d9898ee8 | 14221 | |
8d138742 CE |
14222 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14223 | # The default lists apply if the user does not specify any file. | |
14224 | ac_need_defaults=: | |
14225 | while test $# != 0 | |
14226 | do | |
14227 | case $1 in | |
b0322a85 | 14228 | --*=?*) |
8d138742 CE |
14229 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14230 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
14231 | ac_shift=: | |
14232 | ;; | |
b0322a85 CE |
14233 | --*=) |
14234 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14235 | ac_optarg= | |
14236 | ac_shift=: | |
14237 | ;; | |
8d138742 CE |
14238 | *) |
14239 | ac_option=$1 | |
14240 | ac_optarg=$2 | |
14241 | ac_shift=shift | |
14242 | ;; | |
14243 | esac | |
14244 | ||
14245 | case $ac_option in | |
14246 | # Handling of the options. | |
14247 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14248 | ac_cs_recheck=: ;; | |
14249 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
14250 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
14251 | --config | --confi | --conf | --con | --co | --c ) |
14252 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
14253 | --debug | --debu | --deb | --de | --d | -d ) |
14254 | debug=: ;; | |
14255 | --file | --fil | --fi | --f ) | |
14256 | $ac_shift | |
14257 | case $ac_optarg in | |
14258 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 14259 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 14260 | esac |
b0322a85 | 14261 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
14262 | ac_need_defaults=false;; |
14263 | --header | --heade | --head | --hea ) | |
14264 | $ac_shift | |
14265 | case $ac_optarg in | |
14266 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14267 | esac | |
b0322a85 | 14268 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
14269 | ac_need_defaults=false;; |
14270 | --he | --h) | |
14271 | # Conflict between --help and --header | |
b0322a85 CE |
14272 | as_fn_error $? "ambiguous option: \`$1' |
14273 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
14274 | --help | --hel | -h ) |
14275 | $as_echo "$ac_cs_usage"; exit ;; | |
14276 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14277 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14278 | ac_cs_silent=: ;; | |
14279 | ||
14280 | # This is an error. | |
b0322a85 CE |
14281 | -*) as_fn_error $? "unrecognized option: \`$1' |
14282 | Try \`$0 --help' for more information." ;; | |
8d138742 | 14283 | |
b0322a85 | 14284 | *) as_fn_append ac_config_targets " $1" |
8d138742 CE |
14285 | ac_need_defaults=false ;; |
14286 | ||
14287 | esac | |
14288 | shift | |
14289 | done | |
14290 | ||
14291 | ac_configure_extra_args= | |
14292 | ||
14293 | if $ac_cs_silent; then | |
14294 | exec 6>/dev/null | |
14295 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 14296 | fi |
dd184caf | 14297 | |
8d138742 CE |
14298 | _ACEOF |
14299 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14300 | if \$ac_cs_recheck; then | |
b0322a85 | 14301 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
14302 | shift |
14303 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14304 | CONFIG_SHELL='$SHELL' | |
14305 | export CONFIG_SHELL | |
14306 | exec "\$@" | |
d9898ee8 | 14307 | fi |
d9898ee8 | 14308 | |
d9898ee8 | 14309 | _ACEOF |
8d138742 CE |
14310 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14311 | exec 5>>config.log | |
14312 | { | |
14313 | echo | |
14314 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14315 | ## Running $as_me. ## | |
14316 | _ASBOX | |
14317 | $as_echo "$ac_log" | |
14318 | } >&5 | |
d9898ee8 | 14319 | |
8d138742 CE |
14320 | _ACEOF |
14321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14322 | # | |
14323 | # INIT-COMMANDS | |
14324 | # | |
14325 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 14326 | |
14327 | ||
8d138742 CE |
14328 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
14329 | # if CDPATH is set. | |
14330 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 14331 | |
8d138742 CE |
14332 | sed_quote_subst='$sed_quote_subst' |
14333 | double_quote_subst='$double_quote_subst' | |
14334 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
14335 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
14336 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
14337 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
14338 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
14339 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
14340 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 14341 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
14342 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
14343 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
14344 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
14345 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
14346 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
14347 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
14348 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
14349 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
14350 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
14351 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
14352 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
14353 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
14354 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
14355 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
14356 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
14357 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
14358 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
14359 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
14360 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
14361 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
14362 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
14363 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
14364 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
14365 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
14366 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
14367 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
14368 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
14369 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
14370 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
14371 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
14372 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
14373 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
14374 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
14375 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
14376 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
14377 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
14378 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
14379 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
14380 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
14381 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14382 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14383 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14384 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
14385 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
14386 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
14387 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
14388 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
14389 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
14390 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 14391 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
14392 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
14393 | 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 | 14394 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
14395 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
14396 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 14397 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
14398 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
14399 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
14400 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
14401 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
14402 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
14403 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
14404 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
14405 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
14406 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
14407 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
14408 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
14409 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
14410 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
14411 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
14412 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
14413 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
14414 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14415 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
14416 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
14417 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14418 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14419 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
14420 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
14421 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14422 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14423 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14424 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
14425 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14426 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
14427 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14428 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14429 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14430 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
14431 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
14432 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
14433 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
14434 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14435 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
14436 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
14437 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
14438 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
14439 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
14440 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
14441 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
14442 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
14443 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
14444 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
14445 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
14446 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14447 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
14448 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
14449 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
14450 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14451 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
14452 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
14453 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
14454 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
14455 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
14456 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14457 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14458 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
14459 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
14460 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
14461 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
d50284c4 CE |
14462 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
14463 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b0322a85 CE |
14464 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
14465 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
14466 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
14467 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
14468 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
14469 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
14470 | |
14471 | LTCC='$LTCC' | |
14472 | LTCFLAGS='$LTCFLAGS' | |
14473 | compiler='$compiler_DEFAULT' | |
14474 | ||
b0322a85 CE |
14475 | # A function that is used when there is no print builtin or printf. |
14476 | func_fallback_echo () | |
14477 | { | |
14478 | eval 'cat <<_LTECHO_EOF | |
14479 | \$1 | |
14480 | _LTECHO_EOF' | |
14481 | } | |
14482 | ||
8d138742 | 14483 | # Quote evaled strings. |
b0322a85 CE |
14484 | for var in SHELL \ |
14485 | ECHO \ | |
14486 | PATH_SEPARATOR \ | |
14487 | SED \ | |
8d138742 CE |
14488 | GREP \ |
14489 | EGREP \ | |
14490 | FGREP \ | |
14491 | LD \ | |
14492 | NM \ | |
14493 | LN_S \ | |
14494 | lt_SP2NL \ | |
14495 | lt_NL2SP \ | |
14496 | reload_flag \ | |
14497 | OBJDUMP \ | |
14498 | deplibs_check_method \ | |
14499 | file_magic_cmd \ | |
b0322a85 CE |
14500 | file_magic_glob \ |
14501 | want_nocaseglob \ | |
14502 | DLLTOOL \ | |
14503 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
14504 | AR \ |
14505 | AR_FLAGS \ | |
b0322a85 | 14506 | archiver_list_spec \ |
8d138742 CE |
14507 | STRIP \ |
14508 | RANLIB \ | |
14509 | CC \ | |
14510 | CFLAGS \ | |
14511 | compiler \ | |
14512 | lt_cv_sys_global_symbol_pipe \ | |
14513 | lt_cv_sys_global_symbol_to_cdecl \ | |
d50284c4 | 14514 | lt_cv_sys_global_symbol_to_import \ |
8d138742 CE |
14515 | lt_cv_sys_global_symbol_to_c_name_address \ |
14516 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
d50284c4 | 14517 | lt_cv_nm_interface \ |
b0322a85 | 14518 | nm_file_list_spec \ |
d50284c4 | 14519 | lt_cv_truncate_bin \ |
8d138742 | 14520 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 14521 | lt_prog_compiler_pic \ |
b0322a85 | 14522 | lt_prog_compiler_wl \ |
8d138742 CE |
14523 | lt_prog_compiler_static \ |
14524 | lt_cv_prog_compiler_c_o \ | |
14525 | need_locks \ | |
b0322a85 | 14526 | MANIFEST_TOOL \ |
8d138742 CE |
14527 | DSYMUTIL \ |
14528 | NMEDIT \ | |
14529 | LIPO \ | |
14530 | OTOOL \ | |
14531 | OTOOL64 \ | |
14532 | shrext_cmds \ | |
14533 | export_dynamic_flag_spec \ | |
14534 | whole_archive_flag_spec \ | |
14535 | compiler_needs_object \ | |
14536 | with_gnu_ld \ | |
14537 | allow_undefined_flag \ | |
14538 | no_undefined_flag \ | |
14539 | hardcode_libdir_flag_spec \ | |
8d138742 | 14540 | hardcode_libdir_separator \ |
8d138742 CE |
14541 | exclude_expsyms \ |
14542 | include_expsyms \ | |
14543 | file_list_spec \ | |
14544 | variables_saved_for_relink \ | |
14545 | libname_spec \ | |
14546 | library_names_spec \ | |
14547 | soname_spec \ | |
b0322a85 | 14548 | install_override_mode \ |
8d138742 CE |
14549 | finish_eval \ |
14550 | old_striplib \ | |
14551 | striplib; do | |
b0322a85 | 14552 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 14553 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 14554 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
14555 | ;; |
14556 | *) | |
14557 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14558 | ;; | |
14559 | esac | |
14560 | done | |
d9898ee8 | 14561 | |
8d138742 CE |
14562 | # Double-quote double-evaled strings. |
14563 | for var in reload_cmds \ | |
14564 | old_postinstall_cmds \ | |
14565 | old_postuninstall_cmds \ | |
14566 | old_archive_cmds \ | |
14567 | extract_expsyms_cmds \ | |
14568 | old_archive_from_new_cmds \ | |
14569 | old_archive_from_expsyms_cmds \ | |
14570 | archive_cmds \ | |
14571 | archive_expsym_cmds \ | |
14572 | module_cmds \ | |
14573 | module_expsym_cmds \ | |
14574 | export_symbols_cmds \ | |
14575 | prelink_cmds \ | |
b0322a85 | 14576 | postlink_cmds \ |
8d138742 CE |
14577 | postinstall_cmds \ |
14578 | postuninstall_cmds \ | |
14579 | finish_cmds \ | |
14580 | sys_lib_search_path_spec \ | |
d50284c4 CE |
14581 | configure_time_dlsearch_path \ |
14582 | configure_time_lt_sys_library_path; do | |
b0322a85 | 14583 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 14584 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 14585 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
14586 | ;; |
14587 | *) | |
14588 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14589 | ;; | |
14590 | esac | |
14591 | done | |
d9898ee8 | 14592 | |
8d138742 | 14593 | ac_aux_dir='$ac_aux_dir' |
d9898ee8 | 14594 | |
d50284c4 | 14595 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 14596 | # commands through without removal of \ escapes INIT. |
d50284c4 | 14597 | if test -n "\${ZSH_VERSION+set}"; then |
8d138742 CE |
14598 | setopt NO_GLOB_SUBST |
14599 | fi | |
d9898ee8 | 14600 | |
d9898ee8 | 14601 | |
8d138742 CE |
14602 | PACKAGE='$PACKAGE' |
14603 | VERSION='$VERSION' | |
8d138742 CE |
14604 | RM='$RM' |
14605 | ofile='$ofile' | |
d9898ee8 | 14606 | |
d9898ee8 | 14607 | |
d9898ee8 | 14608 | |
dd184caf | 14609 | |
d9898ee8 | 14610 | _ACEOF |
14611 | ||
8d138742 | 14612 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 14613 | |
8d138742 CE |
14614 | # Handling of arguments. |
14615 | for ac_config_target in $ac_config_targets | |
14616 | do | |
14617 | case $ac_config_target in | |
14618 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
14619 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
14620 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
14621 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
d9898ee8 | 14622 | |
b0322a85 | 14623 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
14624 | esac |
14625 | done | |
d9898ee8 | 14626 | |
d9898ee8 | 14627 | |
8d138742 CE |
14628 | # If the user did not use the arguments to specify the items to instantiate, |
14629 | # then the envvar interface is used. Set only those that are not. | |
14630 | # We use the long form for the default assignment because of an extremely | |
14631 | # bizarre bug on SunOS 4.1.3. | |
14632 | if $ac_need_defaults; then | |
14633 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14634 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14635 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14636 | fi | |
d9898ee8 | 14637 | |
8d138742 CE |
14638 | # Have a temporary directory for convenience. Make it in the build tree |
14639 | # simply because there is no reason against having it here, and in addition, | |
14640 | # creating and moving files from /tmp can sometimes cause problems. | |
14641 | # Hook for its removal unless debugging. | |
14642 | # Note that there is a small window in which the directory will not be cleaned: | |
14643 | # after its creation but before its name has been assigned to `$tmp'. | |
14644 | $debug || | |
d9898ee8 | 14645 | { |
b0322a85 | 14646 | tmp= ac_tmp= |
8d138742 | 14647 | trap 'exit_status=$? |
b0322a85 CE |
14648 | : "${ac_tmp:=$tmp}" |
14649 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 14650 | ' 0 |
b0322a85 | 14651 | trap 'as_fn_exit 1' 1 2 13 15 |
d9898ee8 | 14652 | } |
8d138742 | 14653 | # Create a (secure) tmp directory for tmp files. |
d9898ee8 | 14654 | |
8d138742 CE |
14655 | { |
14656 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 14657 | test -d "$tmp" |
8d138742 CE |
14658 | } || |
14659 | { | |
14660 | tmp=./conf$$-$RANDOM | |
14661 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
14662 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14663 | ac_tmp=$tmp | |
8d138742 CE |
14664 | |
14665 | # Set up the scripts for CONFIG_FILES section. | |
14666 | # No need to generate them if there are no CONFIG_FILES. | |
14667 | # This happens for instance with `./config.status config.h'. | |
14668 | if test -n "$CONFIG_FILES"; then | |
14669 | ||
14670 | ||
b0322a85 CE |
14671 | ac_cr=`echo X | tr X '\015'` |
14672 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14673 | # But we know of no other shell where ac_cr would be empty at this | |
14674 | # point, so we can use a bashism as a fallback. | |
14675 | if test "x$ac_cr" = x; then | |
14676 | eval ac_cr=\$\'\\r\' | |
14677 | fi | |
8d138742 CE |
14678 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
14679 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14680 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 14681 | else |
8d138742 CE |
14682 | ac_cs_awk_cr=$ac_cr |
14683 | fi | |
d9898ee8 | 14684 | |
b0322a85 | 14685 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
d9898ee8 | 14686 | _ACEOF |
d9898ee8 | 14687 | |
d9898ee8 | 14688 | |
d9898ee8 | 14689 | { |
8d138742 CE |
14690 | echo "cat >conf$$subs.awk <<_ACEOF" && |
14691 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14692 | echo "_ACEOF" | |
14693 | } >conf$$subs.sh || | |
b0322a85 CE |
14694 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14695 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
14696 | ac_delim='%!_!# ' |
14697 | for ac_last_try in false false false false false :; do | |
14698 | . ./conf$$subs.sh || | |
b0322a85 | 14699 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 14700 | |
8d138742 CE |
14701 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
14702 | if test $ac_delim_n = $ac_delim_num; then | |
14703 | break | |
14704 | elif $ac_last_try; then | |
b0322a85 | 14705 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
14706 | else |
14707 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14708 | fi | |
14709 | done | |
14710 | rm -f conf$$subs.sh | |
14711 | ||
14712 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 14713 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
14714 | _ACEOF |
14715 | sed -n ' | |
14716 | h | |
14717 | s/^/S["/; s/!.*/"]=/ | |
14718 | p | |
14719 | g | |
14720 | s/^[^!]*!// | |
14721 | :repl | |
14722 | t repl | |
14723 | s/'"$ac_delim"'$// | |
14724 | t delim | |
14725 | :nl | |
14726 | h | |
b0322a85 | 14727 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
14728 | t more1 |
14729 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14730 | p | |
14731 | n | |
14732 | b repl | |
14733 | :more1 | |
14734 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14735 | p | |
14736 | g | |
14737 | s/.\{148\}// | |
14738 | t nl | |
14739 | :delim | |
14740 | h | |
b0322a85 | 14741 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
14742 | t more2 |
14743 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14744 | p | |
14745 | b | |
14746 | :more2 | |
14747 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14748 | p | |
14749 | g | |
14750 | s/.\{148\}// | |
14751 | t delim | |
14752 | ' <conf$$subs.awk | sed ' | |
14753 | /^[^""]/{ | |
14754 | N | |
14755 | s/\n// | |
14756 | } | |
14757 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14758 | rm -f conf$$subs.awk | |
14759 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14760 | _ACAWK | |
b0322a85 | 14761 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
14762 | for (key in S) S_is_set[key] = 1 |
14763 | FS = "\a" | |
d9898ee8 | 14764 | |
d9898ee8 | 14765 | } |
8d138742 CE |
14766 | { |
14767 | line = $ 0 | |
14768 | nfields = split(line, field, "@") | |
14769 | substed = 0 | |
14770 | len = length(field[1]) | |
14771 | for (i = 2; i < nfields; i++) { | |
14772 | key = field[i] | |
14773 | keylen = length(key) | |
14774 | if (S_is_set[key]) { | |
14775 | value = S[key] | |
14776 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14777 | len += length(value) + length(field[++i]) | |
14778 | substed = 1 | |
14779 | } else | |
14780 | len += 1 + keylen | |
14781 | } | |
d9898ee8 | 14782 | |
8d138742 | 14783 | print line |
d9898ee8 | 14784 | } |
8d138742 CE |
14785 | |
14786 | _ACAWK | |
d9898ee8 | 14787 | _ACEOF |
8d138742 CE |
14788 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14789 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14790 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 14791 | else |
8d138742 | 14792 | cat |
b0322a85 CE |
14793 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14794 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8d138742 CE |
14795 | _ACEOF |
14796 | ||
b0322a85 CE |
14797 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14798 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
14799 | # trailing colons and then remove the whole line if VPATH becomes empty |
14800 | # (actually we leave an empty line to preserve line numbers). | |
14801 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
14802 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14803 | h | |
14804 | s/// | |
14805 | s/^/:/ | |
14806 | s/[ ]*$/:/ | |
14807 | s/:\$(srcdir):/:/g | |
14808 | s/:\${srcdir}:/:/g | |
14809 | s/:@srcdir@:/:/g | |
14810 | s/^:*// | |
8d138742 | 14811 | s/:*$// |
b0322a85 CE |
14812 | x |
14813 | s/\(=[ ]*\).*/\1/ | |
14814 | G | |
14815 | s/\n// | |
8d138742 CE |
14816 | s/^[^=]*=[ ]*$// |
14817 | }' | |
14818 | fi | |
d9898ee8 | 14819 | |
8d138742 CE |
14820 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14821 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 14822 | |
8d138742 CE |
14823 | # Set up the scripts for CONFIG_HEADERS section. |
14824 | # No need to generate them if there are no CONFIG_HEADERS. | |
14825 | # This happens for instance with `./config.status Makefile'. | |
14826 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 14827 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 CE |
14828 | BEGIN { |
14829 | _ACEOF | |
d9898ee8 | 14830 | |
8d138742 CE |
14831 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
14832 | # here-document in config.status, that substitutes the proper values into | |
14833 | # config.h.in to produce config.h. | |
d9898ee8 | 14834 | |
8d138742 CE |
14835 | # Create a delimiter string that does not exist in confdefs.h, to ease |
14836 | # handling of long lines. | |
14837 | ac_delim='%!_!# ' | |
14838 | for ac_last_try in false false :; do | |
b0322a85 CE |
14839 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14840 | if test -z "$ac_tt"; then | |
8d138742 CE |
14841 | break |
14842 | elif $ac_last_try; then | |
b0322a85 | 14843 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
14844 | else |
14845 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14846 | fi | |
14847 | done | |
d9898ee8 | 14848 | |
8d138742 CE |
14849 | # For the awk script, D is an array of macro values keyed by name, |
14850 | # likewise P contains macro parameters if any. Preserve backslash | |
14851 | # newline sequences. | |
d9898ee8 | 14852 | |
8d138742 CE |
14853 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
14854 | sed -n ' | |
14855 | s/.\{148\}/&'"$ac_delim"'/g | |
14856 | t rset | |
14857 | :rset | |
14858 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14859 | t def | |
14860 | d | |
14861 | :def | |
14862 | s/\\$// | |
14863 | t bsnl | |
14864 | s/["\\]/\\&/g | |
14865 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14866 | D["\1"]=" \3"/p | |
14867 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14868 | d | |
14869 | :bsnl | |
14870 | s/["\\]/\\&/g | |
14871 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14872 | D["\1"]=" \3\\\\\\n"\\/p | |
14873 | t cont | |
14874 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14875 | t cont | |
14876 | d | |
14877 | :cont | |
14878 | n | |
14879 | s/.\{148\}/&'"$ac_delim"'/g | |
14880 | t clear | |
14881 | :clear | |
14882 | s/\\$// | |
14883 | t bsnlc | |
14884 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14885 | d | |
14886 | :bsnlc | |
14887 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14888 | b cont | |
14889 | ' <confdefs.h | sed ' | |
14890 | s/'"$ac_delim"'/"\\\ | |
14891 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14892 | ||
14893 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14894 | for (key in D) D_is_set[key] = 1 | |
14895 | FS = "\a" | |
d9898ee8 | 14896 | } |
8d138742 CE |
14897 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
14898 | line = \$ 0 | |
14899 | split(line, arg, " ") | |
14900 | if (arg[1] == "#") { | |
14901 | defundef = arg[2] | |
14902 | mac1 = arg[3] | |
14903 | } else { | |
14904 | defundef = substr(arg[1], 2) | |
14905 | mac1 = arg[2] | |
14906 | } | |
14907 | split(mac1, mac2, "(") #) | |
14908 | macro = mac2[1] | |
14909 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14910 | if (D_is_set[macro]) { | |
14911 | # Preserve the white space surrounding the "#". | |
14912 | print prefix "define", macro P[macro] D[macro] | |
14913 | next | |
14914 | } else { | |
14915 | # Replace #undef with comments. This is necessary, for example, | |
14916 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14917 | # on some systems where configure will not decide to define it. | |
14918 | if (defundef == "undef") { | |
14919 | print "/*", prefix defundef, macro, "*/" | |
14920 | next | |
14921 | } | |
14922 | } | |
d9898ee8 | 14923 | } |
8d138742 CE |
14924 | { print } |
14925 | _ACAWK | |
d9898ee8 | 14926 | _ACEOF |
8d138742 | 14927 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0322a85 | 14928 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 14929 | fi # test -n "$CONFIG_HEADERS" |
d9898ee8 | 14930 | |
d9898ee8 | 14931 | |
8d138742 CE |
14932 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
14933 | shift | |
14934 | for ac_tag | |
14935 | do | |
14936 | case $ac_tag in | |
14937 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14938 | esac | |
14939 | case $ac_mode$ac_tag in | |
14940 | :[FHL]*:*);; | |
b0322a85 | 14941 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
14942 | :[FH]-) ac_tag=-:-;; |
14943 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14944 | esac | |
14945 | ac_save_IFS=$IFS | |
14946 | IFS=: | |
14947 | set x $ac_tag | |
14948 | IFS=$ac_save_IFS | |
14949 | shift | |
14950 | ac_file=$1 | |
14951 | shift | |
dd184caf | 14952 | |
8d138742 CE |
14953 | case $ac_mode in |
14954 | :L) ac_source=$1;; | |
14955 | :[FH]) | |
14956 | ac_file_inputs= | |
14957 | for ac_f | |
14958 | do | |
14959 | case $ac_f in | |
b0322a85 | 14960 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
14961 | *) # Look for the file first in the build tree, then in the source tree |
14962 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14963 | # because $ac_f cannot contain `:'. | |
14964 | test -f "$ac_f" || | |
14965 | case $ac_f in | |
14966 | [\\/$]*) false;; | |
14967 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14968 | esac || | |
b0322a85 | 14969 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
14970 | esac |
14971 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 14972 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 14973 | done |
d9898ee8 | 14974 | |
8d138742 CE |
14975 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14976 | # use $as_me), people would be surprised to read: | |
14977 | # /* config.h. Generated by config.status. */ | |
14978 | configure_input='Generated from '` | |
14979 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14980 | `' by configure.' | |
14981 | if test x"$ac_file" != x-; then | |
14982 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 14983 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
14984 | $as_echo "$as_me: creating $ac_file" >&6;} |
14985 | fi | |
14986 | # Neutralize special characters interpreted by sed in replacement strings. | |
14987 | case $configure_input in #( | |
14988 | *\&* | *\|* | *\\* ) | |
14989 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14990 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14991 | *) ac_sed_conf_input=$configure_input;; | |
14992 | esac | |
dd184caf | 14993 | |
8d138742 | 14994 | case $ac_tag in |
b0322a85 CE |
14995 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
14996 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
14997 | esac |
14998 | ;; | |
14999 | esac | |
d9898ee8 | 15000 | |
8d138742 CE |
15001 | ac_dir=`$as_dirname -- "$ac_file" || |
15002 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15003 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15004 | X"$ac_file" : 'X\(//\)$' \| \ | |
15005 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
15006 | $as_echo X"$ac_file" | | |
15007 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15008 | s//\1/ | |
15009 | q | |
15010 | } | |
15011 | /^X\(\/\/\)[^/].*/{ | |
15012 | s//\1/ | |
15013 | q | |
15014 | } | |
15015 | /^X\(\/\/\)$/{ | |
15016 | s//\1/ | |
15017 | q | |
15018 | } | |
15019 | /^X\(\/\).*/{ | |
15020 | s//\1/ | |
15021 | q | |
15022 | } | |
15023 | s/.*/./; q'` | |
b0322a85 | 15024 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 | 15025 | ac_builddir=. |
dd184caf | 15026 | |
8d138742 CE |
15027 | case "$ac_dir" in |
15028 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15029 | *) | |
15030 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15031 | # A ".." for each directory in $ac_dir_suffix. | |
15032 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15033 | case $ac_top_builddir_sub in | |
15034 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15035 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15036 | esac ;; | |
15037 | esac | |
15038 | ac_abs_top_builddir=$ac_pwd | |
15039 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15040 | # for backward compatibility: | |
15041 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 15042 | |
8d138742 CE |
15043 | case $srcdir in |
15044 | .) # We are building in place. | |
15045 | ac_srcdir=. | |
15046 | ac_top_srcdir=$ac_top_builddir_sub | |
15047 | ac_abs_top_srcdir=$ac_pwd ;; | |
15048 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15049 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15050 | ac_top_srcdir=$srcdir | |
15051 | ac_abs_top_srcdir=$srcdir ;; | |
15052 | *) # Relative name. | |
15053 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15054 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15055 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15056 | esac | |
15057 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 15058 | |
d9898ee8 | 15059 | |
8d138742 CE |
15060 | case $ac_mode in |
15061 | :F) | |
15062 | # | |
15063 | # CONFIG_FILE | |
15064 | # | |
15065 | ||
15066 | case $INSTALL in | |
15067 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15068 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
15069 | esac | |
15070 | ac_MKDIR_P=$MKDIR_P | |
15071 | case $MKDIR_P in | |
15072 | [\\/$]* | ?:[\\/]* ) ;; | |
15073 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
15074 | esac | |
d9898ee8 | 15075 | _ACEOF |
15076 | ||
8d138742 CE |
15077 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15078 | # If the template does not know about datarootdir, expand it. | |
15079 | # FIXME: This hack should be removed a few years after 2.60. | |
15080 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
15081 | ac_sed_dataroot=' |
15082 | /datarootdir/ { | |
15083 | p | |
15084 | q | |
15085 | } | |
15086 | /@datadir@/p | |
15087 | /@docdir@/p | |
15088 | /@infodir@/p | |
15089 | /@localedir@/p | |
b0322a85 | 15090 | /@mandir@/p' |
8d138742 CE |
15091 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
15092 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15093 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 15094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
15095 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
15096 | _ACEOF | |
15097 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15098 | ac_datarootdir_hack=' | |
15099 | s&@datadir@&$datadir&g | |
15100 | s&@docdir@&$docdir&g | |
15101 | s&@infodir@&$infodir&g | |
15102 | s&@localedir@&$localedir&g | |
15103 | s&@mandir@&$mandir&g | |
b0322a85 | 15104 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8d138742 | 15105 | esac |
d9898ee8 | 15106 | _ACEOF |
15107 | ||
8d138742 CE |
15108 | # Neutralize VPATH when `$srcdir' = `.'. |
15109 | # Shell code in configure.ac might set extrasub. | |
15110 | # FIXME: do we really want to maintain this feature? | |
15111 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15112 | ac_sed_extra="$ac_vpsub | |
15113 | $extrasub | |
d9898ee8 | 15114 | _ACEOF |
8d138742 CE |
15115 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15116 | :t | |
15117 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15118 | s|@configure_input@|$ac_sed_conf_input|;t t | |
15119 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15120 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15121 | s&@srcdir@&$ac_srcdir&;t t | |
15122 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15123 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15124 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15125 | s&@builddir@&$ac_builddir&;t t | |
15126 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15127 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15128 | s&@INSTALL@&$ac_INSTALL&;t t | |
15129 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
15130 | $ac_datarootdir_hack | |
15131 | " | |
b0322a85 CE |
15132 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
15133 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 15134 | |
8d138742 | 15135 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
15136 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15137 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15138 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15140 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 15141 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 15142 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 15143 | |
b0322a85 | 15144 | rm -f "$ac_tmp/stdin" |
8d138742 | 15145 | case $ac_file in |
b0322a85 CE |
15146 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15147 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 15148 | esac \ |
b0322a85 | 15149 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
15150 | ;; |
15151 | :H) | |
15152 | # | |
15153 | # CONFIG_HEADER | |
15154 | # | |
15155 | if test x"$ac_file" != x-; then | |
15156 | { | |
15157 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
15158 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
15159 | } >"$ac_tmp/config.h" \ | |
15160 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15161 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
15162 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
15163 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
15164 | else | |
15165 | rm -f "$ac_file" | |
b0322a85 CE |
15166 | mv "$ac_tmp/config.h" "$ac_file" \ |
15167 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
15168 | fi |
15169 | else | |
15170 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
15171 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
15172 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
15173 | fi |
15174 | # Compute "$ac_file"'s index in $config_headers. | |
15175 | _am_arg="$ac_file" | |
15176 | _am_stamp_count=1 | |
15177 | for _am_header in $config_headers :; do | |
15178 | case $_am_header in | |
15179 | $_am_arg | $_am_arg:* ) | |
15180 | break ;; | |
15181 | * ) | |
15182 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15183 | esac | |
15184 | done | |
15185 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
15186 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15187 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
15188 | X"$_am_arg" : 'X\(//\)$' \| \ | |
15189 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
15190 | $as_echo X"$_am_arg" | | |
15191 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15192 | s//\1/ | |
15193 | q | |
15194 | } | |
15195 | /^X\(\/\/\)[^/].*/{ | |
15196 | s//\1/ | |
15197 | q | |
15198 | } | |
15199 | /^X\(\/\/\)$/{ | |
15200 | s//\1/ | |
15201 | q | |
15202 | } | |
15203 | /^X\(\/\).*/{ | |
15204 | s//\1/ | |
15205 | q | |
15206 | } | |
15207 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15208 | ;; | |
d9898ee8 | 15209 | |
b0322a85 | 15210 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
15211 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
15212 | ;; | |
15213 | esac | |
d9898ee8 | 15214 | |
d9898ee8 | 15215 | |
8d138742 CE |
15216 | case $ac_file$ac_mode in |
15217 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 15218 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
15219 | # are listed without --file. Let's play safe and only enable the eval |
15220 | # if we detect the quoting. | |
15221 | case $CONFIG_FILES in | |
15222 | *\'*) eval set x "$CONFIG_FILES" ;; | |
15223 | *) set x $CONFIG_FILES ;; | |
15224 | esac | |
15225 | shift | |
15226 | for mf | |
15227 | do | |
15228 | # Strip MF so we end up with the name of the file. | |
15229 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
15230 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 15231 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
15232 | # some people rename them; so instead we look at the file content. |
15233 | # Grep'ing the first line is not enough: some people post-process | |
15234 | # each Makefile.in and add a new line on top of each file to say so. | |
15235 | # Grep'ing the whole file is not good either: AIX grep has a line | |
15236 | # limit of 2048, but all sed's we know have understand at least 4000. | |
15237 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
15238 | dirpart=`$as_dirname -- "$mf" || | |
15239 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15240 | X"$mf" : 'X\(//\)[^/]' \| \ | |
15241 | X"$mf" : 'X\(//\)$' \| \ | |
15242 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
15243 | $as_echo X"$mf" | | |
15244 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15245 | s//\1/ | |
15246 | q | |
15247 | } | |
15248 | /^X\(\/\/\)[^/].*/{ | |
15249 | s//\1/ | |
15250 | q | |
15251 | } | |
15252 | /^X\(\/\/\)$/{ | |
15253 | s//\1/ | |
15254 | q | |
15255 | } | |
15256 | /^X\(\/\).*/{ | |
15257 | s//\1/ | |
15258 | q | |
15259 | } | |
15260 | s/.*/./; q'` | |
15261 | else | |
15262 | continue | |
15263 | fi | |
15264 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 15265 | # from the Makefile without running 'make'. |
8d138742 CE |
15266 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
15267 | test -z "$DEPDIR" && continue | |
15268 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 15269 | test -z "$am__include" && continue |
8d138742 | 15270 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
15271 | # Find all dependency output files, they are included files with |
15272 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
15273 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
15274 | # expansion. | |
15275 | for file in `sed -n " | |
15276 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 15277 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
15278 | # Make sure the directory exists. |
15279 | test -f "$dirpart/$file" && continue | |
15280 | fdir=`$as_dirname -- "$file" || | |
15281 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15282 | X"$file" : 'X\(//\)[^/]' \| \ | |
15283 | X"$file" : 'X\(//\)$' \| \ | |
15284 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
15285 | $as_echo X"$file" | | |
15286 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15287 | s//\1/ | |
15288 | q | |
15289 | } | |
15290 | /^X\(\/\/\)[^/].*/{ | |
15291 | s//\1/ | |
15292 | q | |
15293 | } | |
15294 | /^X\(\/\/\)$/{ | |
15295 | s//\1/ | |
15296 | q | |
15297 | } | |
15298 | /^X\(\/\).*/{ | |
15299 | s//\1/ | |
15300 | q | |
15301 | } | |
15302 | s/.*/./; q'` | |
b0322a85 | 15303 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
15304 | # echo "creating $dirpart/$file" |
15305 | echo '# dummy' > "$dirpart/$file" | |
15306 | done | |
15307 | done | |
15308 | } | |
15309 | ;; | |
15310 | "libtool":C) | |
d9898ee8 | 15311 | |
d50284c4 | 15312 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 15313 | # commands through without removal of \ escapes. |
d50284c4 | 15314 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
15315 | setopt NO_GLOB_SUBST |
15316 | fi | |
d9898ee8 | 15317 | |
d50284c4 | 15318 | cfgfile=${ofile}T |
8d138742 CE |
15319 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
15320 | $RM "$cfgfile" | |
dd184caf | 15321 | |
8d138742 CE |
15322 | cat <<_LT_EOF >> "$cfgfile" |
15323 | #! $SHELL | |
d50284c4 | 15324 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
8d138742 CE |
15325 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15326 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d50284c4 CE |
15327 | |
15328 | # Provide generalized library-building support services. | |
15329 | # Written by Gordon Matzigkeit, 1996 | |
15330 | ||
15331 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
15332 | # This is free software; see the source for copying conditions. There is NO | |
15333 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
15334 | ||
15335 | # GNU Libtool is free software; you can redistribute it and/or modify | |
15336 | # it under the terms of the GNU General Public License as published by | |
15337 | # the Free Software Foundation; either version 2 of of the License, or | |
15338 | # (at your option) any later version. | |
d9898ee8 | 15339 | # |
d50284c4 CE |
15340 | # As a special exception to the GNU General Public License, if you |
15341 | # distribute this file as part of a program or library that is built | |
15342 | # using GNU Libtool, you may include this file under the same | |
15343 | # distribution terms that you use for the rest of that program. | |
8d138742 | 15344 | # |
d50284c4 CE |
15345 | # GNU Libtool is distributed in the hope that it will be useful, but |
15346 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8d138742 CE |
15347 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15348 | # GNU General Public License for more details. | |
15349 | # | |
15350 | # You should have received a copy of the GNU General Public License | |
d50284c4 | 15351 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
d9898ee8 | 15352 | |
dd184caf | 15353 | |
8d138742 | 15354 | # The names of the tagged configurations supported by this script. |
d50284c4 CE |
15355 | available_tags='' |
15356 | ||
15357 | # Configured defaults for sys_lib_dlsearch_path munging. | |
15358 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
d9898ee8 | 15359 | |
8d138742 | 15360 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 15361 | |
8d138742 CE |
15362 | # Which release of libtool.m4 was used? |
15363 | macro_version=$macro_version | |
15364 | macro_revision=$macro_revision | |
d9898ee8 | 15365 | |
8d138742 CE |
15366 | # Whether or not to build shared libraries. |
15367 | build_libtool_libs=$enable_shared | |
d9898ee8 | 15368 | |
8d138742 CE |
15369 | # Whether or not to build static libraries. |
15370 | build_old_libs=$enable_static | |
d9898ee8 | 15371 | |
8d138742 CE |
15372 | # What type of objects to build. |
15373 | pic_mode=$pic_mode | |
d9898ee8 | 15374 | |
8d138742 CE |
15375 | # Whether or not to optimize for fast installation. |
15376 | fast_install=$enable_fast_install | |
d9898ee8 | 15377 | |
d50284c4 CE |
15378 | # Shared archive member basename,for filename based shared library versioning on AIX. |
15379 | shared_archive_member_spec=$shared_archive_member_spec | |
15380 | ||
b0322a85 CE |
15381 | # Shell to use when invoking shell scripts. |
15382 | SHELL=$lt_SHELL | |
15383 | ||
15384 | # An echo program that protects backslashes. | |
15385 | ECHO=$lt_ECHO | |
15386 | ||
15387 | # The PATH separator for the build system. | |
15388 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
15389 | ||
8d138742 CE |
15390 | # The host system. |
15391 | host_alias=$host_alias | |
15392 | host=$host | |
15393 | host_os=$host_os | |
d9898ee8 | 15394 | |
8d138742 CE |
15395 | # The build system. |
15396 | build_alias=$build_alias | |
15397 | build=$build | |
15398 | build_os=$build_os | |
d9898ee8 | 15399 | |
8d138742 CE |
15400 | # A sed program that does not truncate output. |
15401 | SED=$lt_SED | |
d9898ee8 | 15402 | |
8d138742 CE |
15403 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
15404 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 15405 | |
8d138742 CE |
15406 | # A grep program that handles long lines. |
15407 | GREP=$lt_GREP | |
dd184caf | 15408 | |
8d138742 CE |
15409 | # An ERE matcher. |
15410 | EGREP=$lt_EGREP | |
dd184caf | 15411 | |
8d138742 CE |
15412 | # A literal string matcher. |
15413 | FGREP=$lt_FGREP | |
dd184caf | 15414 | |
8d138742 CE |
15415 | # A BSD- or MS-compatible name lister. |
15416 | NM=$lt_NM | |
dd184caf | 15417 | |
8d138742 CE |
15418 | # Whether we need soft or hard links. |
15419 | LN_S=$lt_LN_S | |
dd184caf | 15420 | |
8d138742 CE |
15421 | # What is the maximum length of a command? |
15422 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 15423 | |
8d138742 CE |
15424 | # Object file suffix (normally "o"). |
15425 | objext=$ac_objext | |
d9898ee8 | 15426 | |
8d138742 CE |
15427 | # Executable file suffix (normally ""). |
15428 | exeext=$exeext | |
d9898ee8 | 15429 | |
8d138742 CE |
15430 | # whether the shell understands "unset". |
15431 | lt_unset=$lt_unset | |
d9898ee8 | 15432 | |
8d138742 CE |
15433 | # turn spaces into newlines. |
15434 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 15435 | |
8d138742 CE |
15436 | # turn newlines into spaces. |
15437 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 15438 | |
b0322a85 CE |
15439 | # convert \$build file names to \$host format. |
15440 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
15441 | ||
15442 | # convert \$build files to toolchain format. | |
15443 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
dd184caf | 15444 | |
8d138742 CE |
15445 | # An object symbol dumper. |
15446 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 15447 | |
8d138742 CE |
15448 | # Method to check whether dependent libraries are shared objects. |
15449 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 15450 | |
b0322a85 | 15451 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 15452 | file_magic_cmd=$lt_file_magic_cmd |
d9898ee8 | 15453 | |
b0322a85 CE |
15454 | # How to find potential files when deplibs_check_method = "file_magic". |
15455 | file_magic_glob=$lt_file_magic_glob | |
15456 | ||
15457 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
15458 | want_nocaseglob=$lt_want_nocaseglob | |
15459 | ||
15460 | # DLL creation program. | |
15461 | DLLTOOL=$lt_DLLTOOL | |
15462 | ||
15463 | # Command to associate shared and link libraries. | |
15464 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
15465 | ||
8d138742 CE |
15466 | # The archiver. |
15467 | AR=$lt_AR | |
b0322a85 CE |
15468 | |
15469 | # Flags to create an archive. | |
8d138742 | 15470 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 15471 | |
b0322a85 CE |
15472 | # How to feed a file listing to the archiver. |
15473 | archiver_list_spec=$lt_archiver_list_spec | |
15474 | ||
8d138742 CE |
15475 | # A symbol stripping program. |
15476 | STRIP=$lt_STRIP | |
d9898ee8 | 15477 | |
8d138742 CE |
15478 | # Commands used to install an old-style archive. |
15479 | RANLIB=$lt_RANLIB | |
15480 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15481 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 15482 | |
b0322a85 CE |
15483 | # Whether to use a lock for old archive extraction. |
15484 | lock_old_archive_extraction=$lock_old_archive_extraction | |
15485 | ||
8d138742 CE |
15486 | # A C compiler. |
15487 | LTCC=$lt_CC | |
d9898ee8 | 15488 | |
8d138742 CE |
15489 | # LTCC compiler flags. |
15490 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 15491 | |
8d138742 CE |
15492 | # Take the output of nm and produce a listing of raw symbols and C names. |
15493 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 15494 | |
8d138742 CE |
15495 | # Transform the output of nm in a proper C declaration. |
15496 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 15497 | |
d50284c4 CE |
15498 | # Transform the output of nm into a list of symbols to manually relocate. |
15499 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
15500 | ||
8d138742 CE |
15501 | # Transform the output of nm in a C name address pair. |
15502 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 15503 | |
8d138742 CE |
15504 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
15505 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 15506 | |
d50284c4 CE |
15507 | # The name lister interface. |
15508 | nm_interface=$lt_lt_cv_nm_interface | |
15509 | ||
b0322a85 CE |
15510 | # Specify filename containing input files for \$NM. |
15511 | nm_file_list_spec=$lt_nm_file_list_spec | |
dd184caf | 15512 | |
d50284c4 | 15513 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b0322a85 | 15514 | lt_sysroot=$lt_sysroot |
d9898ee8 | 15515 | |
d50284c4 CE |
15516 | # Command to truncate a binary pipe. |
15517 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
15518 | ||
b0322a85 CE |
15519 | # The name of the directory that contains temporary libtool files. |
15520 | objdir=$objdir | |
d9898ee8 | 15521 | |
8d138742 CE |
15522 | # Used to examine libraries when file_magic_cmd begins with "file". |
15523 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 15524 | |
8d138742 CE |
15525 | # Must we lock files when doing compilation? |
15526 | need_locks=$lt_need_locks | |
d9898ee8 | 15527 | |
b0322a85 CE |
15528 | # Manifest tool. |
15529 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
15530 | ||
8d138742 CE |
15531 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
15532 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 15533 | |
8d138742 CE |
15534 | # Tool to change global to local symbols on Mac OS X. |
15535 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 15536 | |
8d138742 CE |
15537 | # Tool to manipulate fat objects and archives on Mac OS X. |
15538 | LIPO=$lt_LIPO | |
d9898ee8 | 15539 | |
8d138742 CE |
15540 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
15541 | OTOOL=$lt_OTOOL | |
d9898ee8 | 15542 | |
8d138742 CE |
15543 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
15544 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 15545 | |
8d138742 CE |
15546 | # Old archive suffix (normally "a"). |
15547 | libext=$libext | |
d9898ee8 | 15548 | |
8d138742 CE |
15549 | # Shared library suffix (normally ".so"). |
15550 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 15551 | |
8d138742 CE |
15552 | # The commands to extract the exported symbol list from a shared archive. |
15553 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
dd184caf | 15554 | |
8d138742 CE |
15555 | # Variables whose values should be saved in libtool wrapper scripts and |
15556 | # restored at link time. | |
15557 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
d9898ee8 | 15558 | |
8d138742 CE |
15559 | # Do we need the "lib" prefix for modules? |
15560 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 15561 | |
8d138742 CE |
15562 | # Do we need a version for libraries? |
15563 | need_version=$need_version | |
d9898ee8 | 15564 | |
8d138742 CE |
15565 | # Library versioning type. |
15566 | version_type=$version_type | |
d9898ee8 | 15567 | |
8d138742 CE |
15568 | # Shared library runtime path variable. |
15569 | runpath_var=$runpath_var | |
d9898ee8 | 15570 | |
8d138742 CE |
15571 | # Shared library path variable. |
15572 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 15573 | |
8d138742 CE |
15574 | # Is shlibpath searched before the hard-coded library search path? |
15575 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 15576 | |
8d138742 CE |
15577 | # Format of library name prefix. |
15578 | libname_spec=$lt_libname_spec | |
d9898ee8 | 15579 | |
8d138742 CE |
15580 | # List of archive names. First name is the real one, the rest are links. |
15581 | # The last name is the one that the linker finds with -lNAME | |
15582 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 15583 | |
8d138742 CE |
15584 | # The coded name of the library, if different from the real name. |
15585 | soname_spec=$lt_soname_spec | |
d9898ee8 | 15586 | |
b0322a85 CE |
15587 | # Permission mode override for installation of shared libraries. |
15588 | install_override_mode=$lt_install_override_mode | |
15589 | ||
8d138742 CE |
15590 | # Command to use after installation of a shared archive. |
15591 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 15592 | |
8d138742 CE |
15593 | # Command to use after uninstallation of a shared archive. |
15594 | postuninstall_cmds=$lt_postuninstall_cmds | |
dd184caf | 15595 | |
8d138742 CE |
15596 | # Commands used to finish a libtool library installation in a directory. |
15597 | finish_cmds=$lt_finish_cmds | |
d9898ee8 | 15598 | |
8d138742 CE |
15599 | # As "finish_cmds", except a single script fragment to be evaled but |
15600 | # not shown. | |
15601 | finish_eval=$lt_finish_eval | |
d9898ee8 | 15602 | |
8d138742 CE |
15603 | # Whether we should hardcode library paths into libraries. |
15604 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 15605 | |
8d138742 CE |
15606 | # Compile-time system search path for libraries. |
15607 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 15608 | |
d50284c4 CE |
15609 | # Detected run-time system search path for libraries. |
15610 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
15611 | ||
15612 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
15613 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
d9898ee8 | 15614 | |
8d138742 CE |
15615 | # Whether dlopen is supported. |
15616 | dlopen_support=$enable_dlopen | |
d9898ee8 | 15617 | |
8d138742 CE |
15618 | # Whether dlopen of programs is supported. |
15619 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 15620 | |
8d138742 CE |
15621 | # Whether dlopen of statically linked programs is supported. |
15622 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 15623 | |
8d138742 CE |
15624 | # Commands to strip libraries. |
15625 | old_striplib=$lt_old_striplib | |
15626 | striplib=$lt_striplib | |
d9898ee8 | 15627 | |
d9898ee8 | 15628 | |
8d138742 CE |
15629 | # The linker used to build libraries. |
15630 | LD=$lt_LD | |
d9898ee8 | 15631 | |
b0322a85 CE |
15632 | # How to create reloadable object files. |
15633 | reload_flag=$lt_reload_flag | |
15634 | reload_cmds=$lt_reload_cmds | |
15635 | ||
8d138742 CE |
15636 | # Commands used to build an old-style archive. |
15637 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 15638 | |
8d138742 CE |
15639 | # A language specific compiler. |
15640 | CC=$lt_compiler | |
dd184caf | 15641 | |
8d138742 CE |
15642 | # Is the compiler the GNU compiler? |
15643 | with_gcc=$GCC | |
dd184caf | 15644 | |
8d138742 CE |
15645 | # Compiler flag to turn off builtin functions. |
15646 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
d9898ee8 | 15647 | |
8d138742 CE |
15648 | # Additional compiler flags for building library objects. |
15649 | pic_flag=$lt_lt_prog_compiler_pic | |
d9898ee8 | 15650 | |
b0322a85 CE |
15651 | # How to pass a linker flag through the compiler. |
15652 | wl=$lt_lt_prog_compiler_wl | |
15653 | ||
8d138742 CE |
15654 | # Compiler flag to prevent dynamic linking. |
15655 | link_static_flag=$lt_lt_prog_compiler_static | |
15656 | ||
15657 | # Does compiler simultaneously support -c and -o options? | |
15658 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
15659 | ||
15660 | # Whether or not to add -lc for building shared libraries. | |
15661 | build_libtool_need_lc=$archive_cmds_need_lc | |
15662 | ||
15663 | # Whether or not to disallow shared libs when runtime libs are static. | |
15664 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
15665 | ||
15666 | # Compiler flag to allow reflexive dlopens. | |
15667 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 15668 | |
8d138742 CE |
15669 | # Compiler flag to generate shared objects directly from archives. |
15670 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 15671 | |
8d138742 CE |
15672 | # Whether the compiler copes with passing no objects directly. |
15673 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 15674 | |
8d138742 CE |
15675 | # Create an old-style archive from a shared archive. |
15676 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 15677 | |
8d138742 CE |
15678 | # Create a temporary old-style archive to link instead of a shared archive. |
15679 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 15680 | |
8d138742 CE |
15681 | # Commands used to build a shared archive. |
15682 | archive_cmds=$lt_archive_cmds | |
15683 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 15684 | |
8d138742 CE |
15685 | # Commands used to build a loadable module if different from building |
15686 | # a shared archive. | |
15687 | module_cmds=$lt_module_cmds | |
15688 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 15689 | |
8d138742 CE |
15690 | # Whether we are building with GNU ld or not. |
15691 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 15692 | |
8d138742 CE |
15693 | # Flag that allows shared libraries with undefined symbols to be built. |
15694 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 15695 | |
8d138742 CE |
15696 | # Flag that enforces no undefined symbols. |
15697 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 15698 | |
8d138742 CE |
15699 | # Flag to hardcode \$libdir into a binary during linking. |
15700 | # This must work even if \$libdir does not exist | |
15701 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
d9898ee8 | 15702 | |
8d138742 CE |
15703 | # Whether we need a single "-rpath" flag with a separated argument. |
15704 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 15705 | |
d50284c4 | 15706 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 CE |
15707 | # DIR into the resulting binary. |
15708 | hardcode_direct=$hardcode_direct | |
dd184caf | 15709 | |
d50284c4 | 15710 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 | 15711 | # DIR into the resulting binary and the resulting library dependency is |
d50284c4 | 15712 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
8d138742 CE |
15713 | # library is relocated. |
15714 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 15715 | |
8d138742 CE |
15716 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
15717 | # into the resulting binary. | |
15718 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 15719 | |
8d138742 CE |
15720 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
15721 | # into the resulting binary. | |
15722 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 15723 | |
8d138742 CE |
15724 | # Set to "yes" if building a shared library automatically hardcodes DIR |
15725 | # into the library and all subsequent libraries and executables linked | |
15726 | # against it. | |
15727 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 15728 | |
8d138742 CE |
15729 | # Set to yes if linker adds runtime paths of dependent libraries |
15730 | # to runtime path list. | |
15731 | inherit_rpath=$inherit_rpath | |
dd184caf | 15732 | |
8d138742 CE |
15733 | # Whether libtool must link a program against all its dependency libraries. |
15734 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 15735 | |
8d138742 CE |
15736 | # Set to "yes" if exported symbols are required. |
15737 | always_export_symbols=$always_export_symbols | |
dd184caf | 15738 | |
8d138742 CE |
15739 | # The commands to list exported symbols. |
15740 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 15741 | |
8d138742 CE |
15742 | # Symbols that should not be listed in the preloaded symbols. |
15743 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 15744 | |
8d138742 CE |
15745 | # Symbols that must always be exported. |
15746 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 15747 | |
8d138742 CE |
15748 | # Commands necessary for linking programs (against libraries) with templates. |
15749 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 15750 | |
b0322a85 CE |
15751 | # Commands necessary for finishing linking programs. |
15752 | postlink_cmds=$lt_postlink_cmds | |
15753 | ||
8d138742 CE |
15754 | # Specify filename containing input files. |
15755 | file_list_spec=$lt_file_list_spec | |
15756 | ||
15757 | # How to hardcode a shared library path into an executable. | |
15758 | hardcode_action=$hardcode_action | |
d9898ee8 | 15759 | |
8d138742 | 15760 | # ### END LIBTOOL CONFIG |
d9898ee8 | 15761 | |
d50284c4 CE |
15762 | _LT_EOF |
15763 | ||
15764 | cat <<'_LT_EOF' >> "$cfgfile" | |
15765 | ||
15766 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
15767 | ||
15768 | # func_munge_path_list VARIABLE PATH | |
15769 | # ----------------------------------- | |
15770 | # VARIABLE is name of variable containing _space_ separated list of | |
15771 | # directories to be munged by the contents of PATH, which is string | |
15772 | # having a format: | |
15773 | # "DIR[:DIR]:" | |
15774 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
15775 | # ":DIR[:DIR]" | |
15776 | # string "DIR[ DIR]" will be appended to VARIABLE | |
15777 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
15778 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
15779 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
15780 | # "DIR[:DIR]" | |
15781 | # VARIABLE will be replaced by "DIR[ DIR]" | |
15782 | func_munge_path_list () | |
15783 | { | |
15784 | case x$2 in | |
15785 | x) | |
15786 | ;; | |
15787 | *:) | |
15788 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
15789 | ;; | |
15790 | x:*) | |
15791 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
15792 | ;; | |
15793 | *::*) | |
15794 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
15795 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
15796 | ;; | |
15797 | *) | |
15798 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
15799 | ;; | |
15800 | esac | |
15801 | } | |
15802 | ||
15803 | ||
15804 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
15805 | func_cc_basename () | |
15806 | { | |
15807 | for cc_temp in $*""; do | |
15808 | case $cc_temp in | |
15809 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15810 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15811 | \-*) ;; | |
15812 | *) break;; | |
15813 | esac | |
15814 | done | |
15815 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
15816 | } | |
15817 | ||
15818 | ||
15819 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
15820 | ||
8d138742 | 15821 | _LT_EOF |
d9898ee8 | 15822 | |
8d138742 CE |
15823 | case $host_os in |
15824 | aix3*) | |
15825 | cat <<\_LT_EOF >> "$cfgfile" | |
15826 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15827 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15828 | # vanish in a puff of smoke. | |
d50284c4 | 15829 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
15830 | COLLECT_NAMES= |
15831 | export COLLECT_NAMES | |
15832 | fi | |
15833 | _LT_EOF | |
15834 | ;; | |
d9898ee8 | 15835 | esac |
8d138742 CE |
15836 | |
15837 | ||
d50284c4 | 15838 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 CE |
15839 | |
15840 | ||
15841 | # We use sed instead of cat because bash on DJGPP gets confused if | |
15842 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15843 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15844 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
15845 | sed '$q' "$ltmain" >> "$cfgfile" \ |
15846 | || (rm -f "$cfgfile"; exit 1) | |
15847 | ||
b0322a85 | 15848 | mv -f "$cfgfile" "$ofile" || |
8d138742 CE |
15849 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
15850 | chmod +x "$ofile" | |
15851 | ||
d9898ee8 | 15852 | ;; |
dd184caf | 15853 | |
d9898ee8 | 15854 | esac |
dd184caf | 15855 | done # for ac_tag |
d9898ee8 | 15856 | |
d9898ee8 | 15857 | |
b0322a85 | 15858 | as_fn_exit 0 |
d9898ee8 | 15859 | _ACEOF |
d9898ee8 | 15860 | ac_clean_files=$ac_clean_files_save |
15861 | ||
8d138742 | 15862 | test $ac_write_fail = 0 || |
b0322a85 | 15863 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 15864 | |
d9898ee8 | 15865 | |
15866 | # configure is writing to config.log, and then calls config.status. | |
15867 | # config.status does its own redirection, appending to config.log. | |
15868 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15869 | # by configure, so config.status won't be able to write to it; its | |
15870 | # output is simply discarded. So we exec the FD to /dev/null, | |
15871 | # effectively closing config.log, so it can be properly (re)opened and | |
15872 | # appended to by config.status. When coming back to configure, we | |
15873 | # need to make the FD available again. | |
15874 | if test "$no_create" != yes; then | |
15875 | ac_cs_success=: | |
15876 | ac_config_status_args= | |
15877 | test "$silent" = yes && | |
15878 | ac_config_status_args="$ac_config_status_args --quiet" | |
15879 | exec 5>/dev/null | |
15880 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15881 | exec 5>>config.log | |
15882 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15883 | # would make configure fail if this is the last instruction. | |
b0322a85 | 15884 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 15885 | fi |
8d138742 | 15886 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 15887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
15888 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15889 | fi | |
d9898ee8 | 15890 |